/* ==============================
   🌐 GLOBAL BASE STYLES
============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; 
  overflow-y: auto;
  font-family: Arial, sans-serif;
}


/* ==============================
   GLOBAL GRID
============================== */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Full width items */
.dashboard-grid .grid-item {
    width: 100% !important;
}
/* ==============================
   SUMMARY CARDS (3 on top, 2 below)
============================== */
.summary-cards {
    display: flex;
    justify-content: space-between;
    width: 100% !important;
    gap: 1.2rem;
}


.summary-cards .card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 17.5%;
    background: #ffffff;
    border-radius: 0.8rem;
    padding: 0.7rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6e6e6;
    transition: 0.25s ease-in-out;
}

.summary-cards .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.summary-cards .card h3 {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.summary-cards .card .value {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.summary-cards .card .unit {
    font-size: 14px;
    color: #9da3af;
    margin: 0;
    padding: 0;
}

/* ==============================
   SPECIAL COLOR STYLING
============================== */

/* 1️⃣ Today's Production → orange value */
.summary-cards .card:nth-child(3) .value {
    color: #ff7a00;
}

/* 2️⃣ No. of Batches → blue card */
.summary-cards .card:nth-child(2) {
    background: #007bff;
    color: white;
}

.summary-cards .card:nth-child(2) h3,
.summary-cards .card:nth-child(2) .value,
.summary-cards .card:nth-child(2) .unit {
    color: white !important;
}

/* 3️⃣ Tons per Hour → green card */
.summary-cards .card:nth-child(1) {
    background: #22c55e;
    color: white;
}

.summary-cards .card:nth-child(1) h3,
.summary-cards .card:nth-child(1) .value,
.summary-cards .card:nth-child(1) .unit {
    color: white !important;
}

/* 4️⃣ Batch Accuracy → blue text */
.summary-cards .card:nth-child(4) .value {
    color: #007bff;
}
.summary-cards .card:nth-child(5) .value {
    color: #ffd000;
}

/* 5️⃣ Avg Cycle Time → yellow text */
.summary-cards .card:nth-child(6) .value {
    color: #ff2200;
}

/* ==============================
   CHART BOXES
============================== */
.chart-box {
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.8rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6e6e6;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: auto;
}

.chart-title {
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0.5rem 0rem 0.5rem 0.5rem;
}

.year-select{
    width: 5rem;
    height: 4vh;
    font-size: 0.93rem;
    border-radius: 0.3rem;
    padding-left: 0.3rem;
}

/* ==============================
   RECIPE PIE CHART BOX
============================== */
.chart-box-recipe {
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.8rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6e6e6;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Title inside recipe box */
.chart-box-recipe .chart-title {
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0.5rem 0 0.5rem 0.5rem;
}

/* 🔥 FIXED: Recipe chart sizing */
#recipeChart {
    width: 100% !important;
    height: 100% !important;
    display: block;
    margin: 0;
    padding: 0.5rem;
}

#lineChart {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5rem;
}

#siloChart {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5rem;
}

#calendarChart {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    margin: 0;
    padding: 1rem 2rem 1rem 2rem !important;
}


/* ==============================
   🧭 MAIN NAVBAR
============================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 8vh;
  width: 100%;
  color: #005da2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  font-size: 1.1rem;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.navbar-left {
  display: flex;
  align-items: center;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Right side (Icons) */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto; /* Push to the right */
    justify-content: flex-end; /* Ensure icons align to the right */
    position: relative;
}

.navbar-right button {
    width: 12vh;
    height: 5vh;
    border-radius: 0.3rem;
    background-color: #005da2;
    color: white;
    font-weight: 600;
    font-size: medium;
    cursor: pointer;
    border-color: none;
    border: none;
}

.navbar-right button:hover {
    background-color: #007bff;
}

.navbar-right .avatar {
    width: 2rem;
    height: 2rem;
    background-color: #005da2;
    color: white;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.avatar-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: #ffffff;
    color: #333;
    min-width: 14rem;
    border-radius: 0.5rem;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.3);
    overflow: hidden;
    z-index: 1500;
    transition: all 0.3s ease;
}

/* Top profile info */
.avatar-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-bottom: 2px solid #ddd;
    margin-bottom: 0.2rem;
}

.dropdown-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #005da2;
    color: white;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-username {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

.avatar-links {
    margin-bottom: 0.2rem;
}

/* Links section */
.avatar-links .avatar-link {
    display: block;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.avatar-links .avatar-link:hover {
    background-color: #f1f1f1;
}

.avatar-links a {
    display: block;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.avatar-links a:hover {
    background-color: #f1f1f1;
}

.inv-button {
    height: 4vh;
    width: 6rem;
    border-radius: 0.3rem;
    background-color: #005da2;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    border-color: none;
    border: none;
}

.inv-button.primary {
  background-color: #0072cf;
  color: white;
  width: 10rem;
}
.inv-button.primary:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}

.inv-button.primary:hover {
  background-color: #005da2;
  opacity: 0.9;
}

.inv-button.success {
  background-color: #009846;
  color: white;
  width: 10rem;
}

.inv-button.success:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}

.inv-button.success:hover {
  background-color: #007b3b;
  opacity: 0.9;
}

.inv-button.info {
  background: #007bff;
  color: #fff;
}

.inv-button:hover {
    background-color: #0072cf;
    opacity: 0.9;
}

.inv-button.warning {
  background-color: #dc3545;
  color: white;
  width: 6rem;
}

.inv-button.warning:hover {
  background-color: #8b0404;
  opacity: 0.9;
}

.inv-button:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}

.inv-navbar {
    height: 5vh;
    width: 100%;
    background-color: #f4f6f8;
    color: #005da2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    z-index: 1000;
    font-size: 1.1rem;
    overflow: hidden; /* Prevent overflow of navbar */
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    border-radius: 0.2rem;
    margin-bottom: 0.5rem;
}

.inv-navbar.recipe {
    height: 5vh;
    width: 100%;
    background-color: #f4f6f8;
    color: #005da2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    z-index: 1000;
    font-size: 1.1rem;
    overflow: hidden; /* Prevent overflow of navbar */
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    border-radius: 0.2rem;
    margin-bottom: 0.5rem;
}

/* Left side (Title) */
.inv-navbar-left {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevent it from shrinking */
}

.inv-navbar-left.recipe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    width: 22%;
}

/* Title styling */
.inv-app-title {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.inv-navbar-left.recipe .list-opt{
    display: flex;
    width: 4.7rem;
    gap: 0.7rem;
}

.inv-navbar-left .icon-button {
    height: 4vh;
    width: 2rem;
    border-radius: 0.3rem;
    background-color: #005da2;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    border-color: none;
    border: none;
}

.inv-navbar-left .icon-button:hover {
    background-color: #007bff;
}

.inv-navbar-left .icon-button:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}

/* Right side (Icons) */
.inv-navbar-right {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    margin-right: 0.5rem;
}

.inv-navbar-right.recipe {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: end;
    margin-right: 0.5rem;
    width: 78%;
}

.inv-navbar-right.recipe .table-opt{
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.table-opt .mix-no{
    padding: 0.5rem 0.5rem;
    width: 6rem;
    height: 4vh;
    font-size: 0.95rem;
    border-radius: 0.3rem;
    border: 1px solid #666;
}

.inv-navbar-right.recipe span {
    color: #333;
    font-size: 0.95rem;
}

.inv-navbar-right span {
    color: #333;
    font-size: 1rem;
}

.inv-navbar-right select {
    width: 6rem;
    height: 4vh;
    font-size: 0.93rem;
    border-radius: 0.3rem;
    padding-left: 0.2rem;
}

.inv-navbar-right input {
    padding: 0.5rem 0.5rem;
    width: 13.5rem;
    height: 4vh;
    font-size: 0.93rem;
    border-radius: 0.3rem;
    border: 1px solid #333;
}

.inv-navbar-right .icon-button {
    height: 4vh;
    width: 2rem;
    border-radius: 0.3rem;
    background-color: #005da2;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    border-color: none;
    border: none;
}

.inv-navbar-right .icon-button:hover {
    background-color: #007bff;
}

.inv-navbar-right .icon-button:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}

.inv-navbar-right.recipe .icon-button {
    height: 4vh;
    width: 2rem;
    border-radius: 0.3rem;
    background-color: #005da2;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    border-color: none;
    border: none;
}

.inv-navbar-right.recipe .icon-button:hover {
    background-color: #007bff;
}

.inv-navbar-right.recipe .icon-button:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}

/* ================================
   📌 RECIPE PAGE LAYOUT
================================ */
.recipe-content {
    display: flex;
    gap: 0.3rem;
    width: 100%;
    padding: 0.5rem;
    background-color: #f4f6f8;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    height: 81.5vh;
    box-sizing: border-box;
}

/* ---------------- LEFT PANEL ---------------- */
.recipe-content .left {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    width: 22%;
    height: 79vh;
    padding: 0.4rem;
    background-color: #fff;
    border: 1px solid #ccc;
    overflow-y: auto;
    border-radius: 0.3rem;
    box-shadow: 0 0 2px rgba(0,0,0,0.1);
}

.recipe-content .left input {
    height: 2rem;
    width: 100%;
    border-radius: 0.3rem;
    font-size: 0.9rem;
    padding: 0.5rem;
    border: 1px solid #aaa;
}

/* ---------------- RIGHT PANEL ---------------- */
.recipe-content .right {
    width: 78%;
    height: 79vh;
    background-color: #fff;
    border: 1px solid #ccc;
    overflow: auto;
    padding: 0.6rem;
    border-radius: 0.3rem;
    box-shadow: 0 0 2px rgba(0,0,0,0.1);
}

/* ================================
      📁 TREE VIEW (MODERN)
================================ */
.tree-view {
    display: flex ;
    flex-direction: column ;
    font-size: 0.93rem;
    user-select: none;
    padding-right: 0.3rem;
}

.tree-root {
    list-style: none;
    padding: 0.3rem;
    margin: 0;
}

/* Folder node */
.folder-node {
    font-weight: 600;
    color: #1f2d3d;
    cursor: pointer;
    margin-bottom: 0.3rem;
    align-items: center;
    gap: 0.4rem;
}
.folder-node i {
    color: #f1c40f;
}

/* Child list with dashed guideline */
/* Child list with dashed guideline + flex column */
.child-list {
    list-style: none;
    margin: 0;
    padding-left: 1rem;
    position: relative;
    /* NEW: force vertical stacking & remove inline gaps */
    display: flex;
    flex-direction: column;
}

.child-list::before {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: 0;
    bottom: 0;
    border-left: 1px dashed #ccc;
}

/* File node */
.file-node {
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 0.1rem;
    font-size: 0.95rem;
    padding: 0.3rem 0.5rem;
}
.file-node i {
    color: #555;
}
.file-node:hover {
    background-color: #f0f6ff;
}

/* No data placeholder */
.placeholder {
    text-align: center;
    margin-top: 40px;
    color: #777;
    font-style: italic;
}

/* ================================
       📊 DATA TABLE (Stocks Style)
================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

/* Header */
.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #005da2;
    color: #fff;
    padding: 0.9rem 1rem;
    font-weight: 600;
    text-align: left;
}

/* Cells */
.data-table th,
.data-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

/* Striping + Hover */
.data-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}
.data-table tbody tr:hover {
    background-color: #e8f1ff;
}

/* ================================
       🛠 ACTION BUTTONS
================================ */
.table-action-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #b5b5b5;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.table-action-btn i {
    font-size: 1.05rem;
    color: #005da2;
}
.table-action-btn:hover {
    background-color: #e8f0ff;
    transform: scale(1.03);
    border-color: #005da2;
}

.index-col {
  display: none !important;
}

/* Color overrides */
.save-new i,
.save-edit i {
    color: #0c7a43 !important;
}
.cancel-new i,
.cancel-edit i {
    color: #d90429 !important;
}
.delete-btn i {
    color: #c00 !important;
}

/* ================================
       ✏️ EDIT INPUTS
================================ */
.edit-input {
    width: 95%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.edit-input:focus {
    border-color: #005da2;
    box-shadow: 0 0 3px rgba(0,93,162,0.4);
}
.edit-input:disabled,
.edit-input[disabled] {
    background: #f3f6f9;
    color: #333;
}

/* New row highlight */
.new-row {
    background: #fffef6;
    border-top: 2px dashed #ccc;
}

/* Scrollbars */
.recipe-content .left::-webkit-scrollbar,
.recipe-content .right::-webkit-scrollbar {
    width: 8px;
}
.recipe-content .left::-webkit-scrollbar-thumb,
.recipe-content .right::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}
.recipe-content .left::-webkit-scrollbar-thumb:hover,
.recipe-content .right::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Responsive */
@media (max-width: 900px) {
    .left { display:none; }
    .right { width:100%; }
}


/* ==============================
   📁 SIDEBAR
============================== */
.sidebar {
  position: fixed;
  top: 8.2vh;
  left: 0;
  width: 13.5vw;
  height: 92vh;
  color: #005da2;
  z-index: 999;
  overflow-y: auto;
  box-shadow: 2px 0 0 rgba(170, 170, 170, 0.3);
}

/* UL & LI */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  position: relative;
}

/* LINKS */
.sidebar ul li a {
  color: black;
  text-decoration: none;
  font-size: 1rem;
  display: block;
  width: 100%;
}

/* Hover effect */
.sidebar ul li:hover {
  background-color: #e8eef3;
}

/* ACTIVE STATE (Selected Menu Item) */
.sidebar ul li.active {
  background-color: #dce6ef; /* soft highlight */
  font-weight: 600;
  color: #005da2;
}

/* left indicator bar */
.sidebar ul li.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #0078d4; /* highlight color */
  border-radius: 0 4px 4px 0;
}

/* active link text color */
.sidebar ul li.active a {
  color: #0056c4 !important;
}


/* ==============================
   🧩 LAYOUT
============================== */
.container {
  display: flex;
  flex-direction: row;
  padding-top: 8vh;
  height: 100vh;
}

.main-content {
  margin-left: 13.5vw;
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
  height: 92vh;
  font-size: 1rem;
}

#totalLabel,
.total-label {
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
  margin-left: 8px;
}

/* ==============================
   📑 REPORT PAGE
============================== */
.report-table-wrapper {
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  overflow: auto;
  max-height: 81.5vh;
  position: relative;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.inv-table thead th {
  background-color: #005da2;
  color: white;
  font-weight: 600;
  padding: 0.8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
}

.table-wrapper-analytics {
  max-height: 75vh;   /* adjust if needed */
  overflow-y: auto;
}

.inv-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  color: #333;
}

.inv-table tbody tr:nth-child(even) {
  background-color: #f8f9fc;
}

.inv-table tbody tr:nth-child(odd) {
  background-color: #fff;
}

.inv-table tbody tr:hover {
  background-color: #e8f0ff;
  transition: background-color 0.2s ease;
}

/* ==============================
   🖱️ SCROLLBAR STYLING
============================== */
.report-table-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.report-table-wrapper::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 10px;
}

.report-table-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #777;
}

/* ==============================
   📊 DASHBOARD, ABOUT, RECIPE, STOCKS
============================== */
.stocks-content {
  background-color: #f4f6f8;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  height: 81.5vh; 
}

/* ==============================
   📈 ANALYTICS PAGE
============================== */
.analytics-content {
    background-color: #f4f6f8;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    min-height: 87.5vh;
    height: auto;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: #005da2;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tab-button:hover {
    background-color: #f4f6f8;
}

.tab-button.active {
    border-bottom: 3px solid #005da2;
    color: #005da2;
}

#totalLabelPercent,
.total-label-percent {
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
  margin-left: 8px;
}

#totalLabelKg,
.total-label-kg {
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
  margin-left: 8px;
}
.graph-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.graph-container .upper,
.graph-container .lower {
    width: 100%;
    height: 400px;  /* stretch height */
}

.graph-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ==============================
   🧾 POPUP MODAL
============================== */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background: white;
  border-radius: 10px;
  width: 80%;
  height: 80%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.popup-content h3 {
  color: #004aad;
  margin-bottom: 10px;
}

.popup-table-wrapper {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

.popup-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ==============================
   🧭 STOCKS HEADER (ADD + SEARCH)
============================== */
.add-btn {
  height: 4vh;
  width: 6rem;
  border-radius: 0.3rem;
  background-color: #005da2;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease-in-out, background-color 0.1s ease-in-out;
}

.add-btn:hover {
  background-color: #007bff;
}

.add-btn:active {
  transform: scale(0.95);
  background-color: #007bff;
}
.add-btn:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}
.inv-navbar-right .search-input{
  height: 4vh;
  width: 15rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #bbb;
  background-color: white;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inv-navbar-right .search-input:focus {
  border-color: #005da2;
  box-shadow: 0 0 3px rgba(0, 93, 162, 0.4);
}

.inv-navbar-right .search-input:hover {
  border-color: #007bff;
}

.add-btn:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}
/* ==============================
   📦 STOCKS TABLE
============================== */
.stocks-table-wrapper {
  background-color: #f4f6f8;
  overflow: auto;
  max-height: 81.5vh;
  border: 1px solid #ddd;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
  position: relative;
}

.stocks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

/* HEADER */
.stocks-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #005da2;
  color: #fff;
  font-weight: 600;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* BODY */
.stocks-table th,
.stocks-table td {
  padding: 0.5rem 1.2rem;
  text-align: left;
  border: none;
  vertical-align: middle;
}

.stocks-table tbody tr:nth-child(even) {
  background-color: #eee;
}

.stocks-table tbody tr:nth-child(odd) {
  background-color: #fff;
}

.stocks-table tbody tr:hover {
  background-color: #e8f0ff;
  transition: background-color 0.2s ease;
}

/* ==============================
   ⚙️ TABLE ACTION BUTTONS
============================== */
.table-action-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #b5b5b5;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  margin: 0 3px;
  transition: all 0.2s ease;
}

.table-action-btn:hover {
  background-color: #e8f0ff;
  border-color: #005da2;
  transform: scale(1.05);
}

.table-action-btn i {
  font-size: 1.1rem;
  color: #005da2;
}

.table-action-btn:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}

.disabled-icon {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none !important;
    color: #999 !important;
}

.save-btn i {
  color: #008a45;
}

.cancel-btn i {
  color: #d90000;
}

.delete-btn i {
  color: #d90429;
}

.table-action-btn:hover i {
  opacity: 0.85;
}

/* Inputs for edit mode */
.edit-input {
  width: 95%;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  font-size: 0.9rem;
}

.edit-input:focus {
  border-color: #005da2;
  box-shadow: 0 0 3px rgba(0, 93, 162, 0.4);
  outline: none;
}

/* ==============================
   ⚠️ TABLE ERROR STATE
============================== */
.table-error {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  padding: 1rem;
}

/* ==============================
   🖱️ SCROLLBAR STYLING
============================== */
.stocks-table-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.stocks-table-wrapper::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 10px;
}

.stocks-table-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #777;
}
/* INLINE EDIT BUTTONS */
.table-action-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #b5b5b5;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  margin: 0 2px;
  transition: all 0.2s ease;
}

.table-action-btn:hover {
  background-color: #e8f0ff;
  border-color: #005da2;
  transform: scale(1.05);
}

.table-action-btn i {
  font-size: 1.1rem;
  color: #005da2;
}

.save-btn i {
  color: #0c7a43;
}

.cancel-btn i {
  color: #b91c1c;
}

.table-action-btn:hover i {
  opacity: 0.8;
}

/* Inputs inside editable rows */
tr.editing input {
  width: 95%;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}

tr.editing input:focus {
  border-color: #005da2;
  box-shadow: 0 0 3px rgba(0, 93, 162, 0.4);
  outline: none;
}

/* Action Buttons */
.table-action-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #b5b5b5;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  margin: 0 2px;
  transition: all 0.2s ease;
}

.table-action-btn:hover {
  background-color: #e8f0ff;
  border-color: #005da2;
  transform: scale(1.05);
}

.table-action-btn i {
  font-size: 1.1rem;
  color: #005da2;
}

.save-btn i,
.save-new-btn i {
  color: #008a45;
}

.cancel-btn i,
.cancel-new-btn i {
  color: #d90429;
}

.delete-btn i {
  color: #c00;
}

.edit-input {
  width: 95%;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  font-size: 0.9rem;
}

.edit-input:focus {
  border-color: #005da2;
  box-shadow: 0 0 3px rgba(0, 93, 162, 0.4);
  outline: none;
}

.new-row {
  background-color: #fdfdfd;
  border-top: 2px dashed #ccc;
}


/* ==============================
   🔒 LOGIN + PASSWORD MODALS
============================== */

.pass-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease-in;
}

.pass-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 360px;
    max-width: 95%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: slideUp 0.3s ease-in;
}

.pass-modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in;
}
  
/* Modal Box */
.modal-content {
    background: #fff;
    /* color: #fff; */
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 12px;
    width: 360px;
    max-width: 95%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease-in;
    position: relative;
}

/* Heading */
.modal-content h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-content p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    /* color: #bbb; */
}

/* Form Fields */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    padding-left: 0.2rem;
    /* color: #ddd; */
}

.form-group input {
    width: 100%;
    padding: 0.65rem;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #fff;
    /* color: #fff; */
    font-size: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 0.65rem;
  border-radius: 6px;
  border: 1px solid #444;
  font-size: 0.95rem;
}

.login-btn {
  width: 100%;
  padding: 0.7rem;
  background: #005da2;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-btn:hover {
  background: #007bff;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #aaa;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.tree-actions {
    display: flex;
    gap: 0.6rem;
    margin: 0.6rem 0;
    padding-left: 0.2rem;
}

.add-icon, .delete-icon {
    font-size: 1.3rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.add-icon:hover { color: #007bff; }
.delete-icon:hover { color: #dc3545; }

.tree-view {
    flex: 1;
    overflow-y: auto;
}

.tree-root {
    list-style-type: none;
    margin: 0;
    padding-left: 0.5rem;
}

.tree-root li {
    margin: 0.3rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.95rem;
    color: #333;
}

.tree-root li.active {
    background: #eef5ff;
    border-radius: 6px;
    padding: 2px 4px;
}

.tree-root li i {
    font-size: 1rem;
}

.placeholder {
    color: #666;
    text-align: center;
    margin-top: 3%;
    font-size: 1rem;
    font-style: italic;
}

.mix-no {
    width: 80px;
    height: 26px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 2px 6px;
}

.logs-page {
    background-color: #fff;
    padding-left: 0.7rem;
    height: 79vh;
    width: 100%;
    border: 1px solid #ccc;
    overflow: auto;
}

.logs-content {
    width: 100%;
    padding: 0.5rem;
    background-color: #f4f6f8;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    height: 81.5vh;
}


.settings-content {
    width: 100%;
    padding: 0.5rem;
    background-color: #f4f6f8;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    height: 81.5vh;
}

.settings-content .upper {
    display: flex;
    gap: 0.3rem;
    width: 100%;
    height: 33vh;
}

.settings-content .upper .upper-right {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 50%;
    height: 33vh;
    background-color: #fff;
    border: 1px solid #ccc;
    overflow: auto;
}

.upper-right .top{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 13vh;
    font-size: 0.95rem;
    padding: 0 1rem;
}

.upper-right .bottom{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 13vh;
    font-size: 0.95rem;
    padding: 0 1rem;
}

.upper-right .bottom input {
    height: 2rem;
    width: 18rem;
    border-radius: 0.3rem;
    font-size: 0.9rem;
    padding: 0.3rem;
    border: 1px solid black;
}



.settings-content .lower .lower-right {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 50%;
    height: 33vh;
    background-color: #fff;
    border: 1px solid #ccc;
    overflow: auto;
}

.lower-right .top{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 13vh;
    font-size: 0.95rem;
    padding: 0 1rem;
}

.upload-button {
    display: flex;
    background-color: #005da2;
    border: 1px solid #005da2;
    justify-content: center;
    align-items: center;
    border-radius: 0.3rem;
    color: white;
    width: 6rem;
    height: 2rem;
    font-size: 0.95rem;
}


.lower-right .bottom{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 13vh;
    font-size: 0.95rem;
    padding: 0 1rem;
}

.lower-right .top button {
    background-color: #005da2;
    border: 1px solid #005da2;
    border-radius: 0.3rem;
    color: white;
    width: 6rem;
    height: 2rem;
}

.lower-right .bottom button {
    background-color: #005da2;
    border: 1px solid #005da2;
    border-radius: 0.3rem;
    color: white;
    width: 6rem;
    height: 2rem;
}

.settings-content .lower {
    display: flex;
    gap: 0.3rem;
    width: 100%;
    height: 33vh;
    margin-top: 0.2rem;
}

.settings-content .upper .upper-left {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 50%;
    height: 33vh;
    background-color: #fff;
    border: 1px solid #ccc;
    overflow: auto;
}

.upper-left .top{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 13vh;
    font-size: 0.95rem;
    padding: 0 1rem;
}

.upper-left .bottom{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 13vh;
    font-size: 0.95rem;
    padding: 0 1rem;
}

.upper-left .top input {
    height: 2rem;
    width: 18rem;
    border-radius: 0.3rem;
    font-size: 0.9rem;
    padding: 0.3rem;
    border: 1px solid black;
}

.upper-left .bottom input {
    height: 2rem;
    width: 18rem;
    border-radius: 0.3rem;
    font-size: 0.9rem;
    padding: 0.3rem;
    border: 1px solid black;
}

.upper-left .top button {
    background-color: #005da2;
    border: 1px solid #005da2;
    border-radius: 0.3rem;
    color: white;
    width: 6rem;
    height: 2rem;
}

.upper-left .bottom button {
    background-color: #005da2;
    border: 1px solid #005da2;
    border-radius: 0.3rem;
    color: white;
    width: 6rem;
    height: 2rem;
}

.settings-content .lower .lower-left {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 50%;
    height: 33vh;
    background-color: #fff;
    border: 1px solid #ccc;
    overflow: auto;
}

.lower-left .one{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26vh;
    font-size: 0.95rem;
    padding: 0 1rem;
}

.lower-left .one button {
    background-color: #005da2;
    border: 1px solid #005da2;
    border-radius: 0.3rem;
    color: white;
    width: 6rem;
    height: 2rem;
}

.settings-content .bottom-content {
    width: 100%;
    height: 12.2vh;
    padding-left: 0.7rem;
    background-color: #fff;
    border: 1px solid #ccc;
    overflow: auto;
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

.settings-select {
    height: 2rem;
    width: 18rem;
    border-radius: 0.3rem;
    font-size: 0.9rem;
}

.about-container {
    width: 100%;
    padding: 1rem 1rem;
    background-color: #f4f6f8;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    height: 81.5vh;
}

.about-main{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 1.5rem;
    background-color: #f4f6f8;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    height: 65vh;
    overflow-y: auto;
}

.about-main h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.1rem;
    color: #005da2;
}

.about-content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.about-text {
    flex: 1 1 60%;
}

.about-text h2 {
    color: #005da2;
    margin-top: 1rem;
    margin-bottom: 0.1rem;
    font-size: 1.3rem;
}

.about-text ul {
    list-style: none;
    padding: 0;
    /* color:#fff; */
}

.about-text ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    /* color:#fff; */
}

.about-text .benefits li {
    padding-left: 1.5rem;
    /* color:#fff; */
}

.key-space{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    background-color: #f4f6f8;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    margin: 1rem 0;
    height: 10vh;
}

.key-space label{
    font-size: 1rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.key-space input{
    width: 30rem;
    height: 2.3rem;
    padding: 0.65rem;
    border-radius: 0.3rem;
    border: 1px solid #444;
    background-color: #fff;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.key-space button {
    width: 6.5rem;
    height: 2.5rem;
    border-radius: 0.3rem;
    background-color: #005da2;
    color: white;
    font-weight: 600;
    font-size: medium;
    cursor: pointer;
    border-color: none;
    border: none;
}

.key-space button:hover {
    background-color: #007bff;
}

.dashboard-content {
    width: 100% !important;
    background-color: #fff;
    border-radius: 0.3rem;
    border: 1px solid #ddd;
    padding: 1rem;
}

/* Inventory Table Styling */
.inventory-table-wrapper {
    background-color: #f4f6f8;
    overflow-x: auto;
    max-height: 81vh; /* enables vertical scroll */
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.inventory-table-wrapper table thead th {
    position: sticky !important;
    top: 0;
    z-index: 10;
    background-color: #005da2 !important;
    color: white !important;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.inventory-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: 1px solid #ddd;
}

.inventory-table-wrapper th,
.inventory-table-wrapper td {
    border: none;
    padding: 0.75rem 1.2rem;
    text-align: left;
}

/* Optional: keep center aligned */
.inventory-table-wrapper td {
    vertical-align: middle;
}
.inventory-table-wrapper thead th {
    position: sticky;
    top: 0;
    background-color: #005da2 !important;
    color: white;
    z-index: 10;
    padding: 1.2rem;
}

.inventory-table-wrapper th {
    font-weight: bold;
    background-color: #005da2;
    color: white;
}

.inventory-table-wrapper tbody tr:nth-child(even) {
    background-color: #eee;
}

.inventory-table-wrapper tbody tr:nth-child(odd) {
    background-color: #fff;
}

.inventory-table-wrapper i.bx {
    color: #005da2;
    transition: color 0.3s ease;
}

.new-row {
    background-color: #f9f9f9;
    border-top: 2px dashed #ccc;
}

/* .inventory-table-wrapper i.bx:hover {
    color: #007bff;
} */

.inventory-table-wrapper select {
    padding: 0.3rem 1.5rem 0.3rem 0.3rem;
    border-radius: 0.3rem;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.inventory-table-wrapper select:focus {
    border-color: #005da2;
    box-shadow: 0 0 3px rgba(0, 93, 162, 0.5);
}

.inventory-table-wrapper input[type="text"] {
    padding: 0.3rem 0.5rem;
    border-radius: 0.3rem;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    background-color: #fff;
    outline: none;
    width: 50%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inventory-table-wrapper input[type="text"]:focus {
    border-color: #005da2;
    box-shadow: 0 0 3px rgba(0, 93, 162, 0.5);
}




.row-checkbox {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: #005da2;
}


.toggle-active {
    width: 40px !important;
    height: 20px !important;
    /* min-width: 40px !important;
    max-width: 40px !important; */
    display: inline-block !important;
    margin: 2px auto !important;
    -webkit-appearance: none !important;
    appearance: none ;
    background: #ccc;
    outline: none !important;
    border-radius: 20px !important;
    position: relative !important;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-active:checked {
    background: #005da2;
}

.toggle-active::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50% !important;
    top: 1px !important;
    left: 1px !important;
    transition: transform 0.3s;
}

.toggle-active:checked::before {
    transform: translateX(20px) !important;
}

/* .header-label {
    display: inline-block;
} */

.sort-arrow {
    position: absolute;
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: white;
    pointer-events: none;
}

/* .inventory-table-wrapper tbody tr:hover {
    background-color: #ddd;
    transition: background-color 0.3s ease;
} */

/* Animations */
/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideUp {
    from {transform: translateY(40px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}



/* =========================================
   ✅ GLOBAL RESPONSIVE TWEAKS
   (Put this at the *end* of your CSS file)
========================================= */

/* Tablet + small laptop and below */
/* ============================
   📱 MOBILE SLIDING SIDEBAR
============================ */

@media (max-width: 992px) {

  /* Hide original static sidebar */
  .sidebar {
    position: fixed;
    left: -260px;        /* hidden off-screen */
    top: 8vh;
    width: 260px;
    height: calc(100vh - 8vh);
    background: white;
    z-index: 3000;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  }

  /* When sidebar is open */
  .sidebar.open {
    left: 0;
  }

  /* Overlay background */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 8vh;
    left: 0;
    width: 100%;
    height: calc(100vh - 8vh);
    background: rgba(0,0,0,0.4);
    z-index: 2500;
  }

  .sidebar-overlay.active {
    display: block;
  }

  /* Show hamburger button */
  .mobile-menu-btn {
    display: inline-block;
    font-size: 1.7rem;
    margin-right: 1rem;
    cursor: pointer;
    color: #005da2;
    font-weight: bold;
  }

  /* Sidebar items bigger for mobile */
  .sidebar ul li {
    padding: 1rem 1.3rem;
    font-size: 1.1rem;
  }

}

/* Desktop: hide hamburger button */
@media (min-width: 993px) {
  .mobile-menu-btn {
    display: none;
  }
}
/* =========================================
   📱 MOBILE FIX – Remove all fixed heights
========================================= */
/* =========================================
   📱 MOBILE FIX – Remove all fixed heights
========================================= */
@media (max-width: 992px) {

  body {
    overflow-y: auto !important;
    height: auto !important;
  }

  .container,
  .main-content,
  .stocks-content,
  .settings-content,
  .analytics-content,
  .dashboard-content,
  .about-container,
  .recipe-content,
  .logs-content {
    height: auto !important;
    min-height: unset !important;
  }

  /* Remove fixed panel heights */
  .upper,
  .lower,
  .upper-left,
  .upper-right,
  .lower-left,
  .lower-right,
  .left,
  .right {
    height: auto !important;
  }

  /* Tables scroll naturally */
  .report-table-wrapper,
  .stocks-table-wrapper,
  .inventory-table-wrapper {
    max-height: none !important;
    height: auto !important;
  }

  /* Sidebar overlay layout fix */
  .main-content {
    margin-left: 0 !important;
  }
}

/* ============================================
   📱 FIX MOBILE ZOOM — KEEP DESKTOP LOOK
   (Scale everything smaller on small screens)
============================================ */

/* ============================================
   📱 FIX MOBILE ZOOM — KEEP DESKTOP LOOK
   (Scale everything smaller on small screens)
============================================ */

@media (max-width: 992px) {

  html {
    transform: scale(0.44);        /* more zoom-out */
    transform-origin: top left;
    width: 230%;                   /* adjust width after scaling */
    overflow-x: hidden !important;
  }

  body {
    overflow-x: hidden !important;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .sidebar {
    width: 240px !important;
  }
}