:root{--bg:#f4f7fb;--card:#fff;--text:#172033;--muted:#6b7280;--line:#e5e7eb;--blue:#2563eb;--blue2:#1d4ed8;--green:#059669;--orange:#d97706;--red:#dc2626;--sidebar:#111827}
*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}
.app{min-height:100vh;display:flex}.sidebar{width:240px;box-sizing:border-box;background:var(--sidebar);color:#fff;position:fixed;left:0;top:0;bottom:0;padding:22px 14px;z-index:10;display:flex;flex-direction:column;overflow:hidden}.brand{flex:0 0 auto;font-size:18px;font-weight:700;padding:8px 8px 24px;text-align:center}.brand img{display:block;width:190px;height:105px;object-fit:contain;margin:0 auto 8px;background:#fff;border-radius:10px}.brand-name{font-size:18px;font-weight:800;line-height:1.2;color:#fff}.brand small{display:block;font-size:11px;font-weight:400;color:#9ca3af;margin-top:5px}.nav{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;gap:7px;overflow-y:auto;overflow-x:hidden;padding:0 2px 10px;overscroll-behavior:contain}.nav a{color:#d1d5db;text-decoration:none;padding:12px 13px;border-radius:9px;font-weight:600}.nav a:hover,.nav a.active{background:#1f2937;color:#fff}.nav a.active{box-shadow:inset 3px 0 var(--blue)}.sidebar-footer{position:absolute;bottom:18px;left:18px;right:18px;color:#9ca3af;font-size:11px;line-height:1.5}.main{margin-left:240px;width:calc(100% - 240px);padding:28px 32px}.topbar{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}.title h1{margin:0 0 5px;font-size:28px}.title p{margin:0;color:var(--muted)}.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:0 3px 15px rgba(17,24,39,.04);margin-bottom:18px}.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:12px;font-weight:700;color:var(--muted)}select,input[type=file]{border:1px solid #d1d5db;background:#fff;border-radius:8px;padding:10px 12px;min-width:150px}.btn{background:var(--blue);color:#fff;border:0;border-radius:8px;padding:10px 15px;font-weight:700;cursor:pointer}.btn:hover{background:var(--blue2)}.btn.secondary{background:#374151}.btn:disabled{opacity:.55;cursor:not-allowed}.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.kpi{padding:18px;border-radius:12px;background:#fff;border:1px solid var(--line)}.kpi .label{color:var(--muted);font-size:12px;font-weight:700}.kpi .value{font-size:27px;font-weight:800;margin-top:8px}.kpi .sub{font-size:11px;color:var(--muted);margin-top:4px}.grid2{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.card h2{font-size:17px;margin:0 0 5px}.card .subtext{font-size:12px;color:var(--muted);margin:0 0 16px}.table-wrap{overflow:auto;max-height:520px}.table{width:100%;border-collapse:collapse;font-size:13px}.table th,.table td{padding:10px 9px;border-bottom:1px solid var(--line);text-align:center;vertical-align:middle;white-space:nowrap}.table th{background:#f9fafb;font-size:11px;color:var(--muted);text-transform:uppercase;position:sticky;top:0}.money{text-align:right!important;font-variant-numeric:tabular-nums}.bar-list{display:flex;flex-direction:column;gap:12px}.bar-row{display:grid;grid-template-columns:90px 1fr 115px;gap:10px;align-items:center;font-size:12px}.bar-track{height:14px;background:#eef2f7;border-radius:20px;overflow:hidden}.bar-fill{height:100%;background:var(--blue);border-radius:20px;min-width:2px}.bar-value{text-align:right;font-weight:700}.daily-chart{width:100%;overflow:hidden}.daily-chart-scroll{width:100%;overflow-x:auto}.daily-chart svg{display:block;width:100%;min-width:760px;height:auto;color:var(--muted)}.daily-chart-note{font-size:11px;color:var(--muted);margin-top:8px}.donut-wrap{display:flex;gap:22px;align-items:center}.donut{width:190px;height:190px;border-radius:50%;background:#e5e7eb;position:relative;flex:0 0 auto}.donut:after{content:"";position:absolute;inset:43px;background:#fff;border-radius:50%}.donut-center{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800}.donut-center small{font-size:10px;color:var(--muted);font-weight:600}.legend{display:flex;flex-direction:column;gap:8px;font-size:12px}.legend-item{display:flex;align-items:center;gap:7px}.dot{width:10px;height:10px;border-radius:50%;display:inline-block}.status{padding:11px 13px;border-radius:8px;margin-top:12px;display:none}.status.ok{display:block;background:#ecfdf5;color:#065f46}.status.bad{display:block;background:#fef2f2;color:#991b1b}.info{background:#eef6ff;border-left:4px solid var(--blue);padding:12px;border-radius:7px;color:#1e3a8a;font-size:13px}.drop{border:2px dashed #9ca3af;border-radius:12px;padding:35px;text-align:center}.preview{overflow:auto;max-height:460px}.muted{color:var(--muted)}code{background:#f3f4f6;padding:2px 5px;border-radius:4px}.hidden{display:none}.empty{padding:30px;text-align:center;color:var(--muted)}
@media(max-width:1000px){.grid2{grid-template-columns:1fr}.kpis{grid-template-columns:1fr 1fr}.sidebar{width:210px}.main{margin-left:210px;width:calc(100% - 210px)}}@media(max-width:700px){.sidebar{position:relative;width:100%;height:auto;min-height:0;overflow:visible;padding:16px 14px;display:flex;flex-direction:column}.app{display:block}.main{margin-left:0;width:100%;padding:18px}.kpis{grid-template-columns:1fr}.topbar{display:block}.donut-wrap{flex-direction:column;align-items:flex-start}.bar-row{grid-template-columns:65px 1fr 95px}.brand{padding-bottom:12px}.nav{flex:0 0 auto;min-height:auto;overflow:visible;flex-direction:row;flex-wrap:wrap}.nav a{flex:1;min-width:130px}.user-box{margin-top:12px}}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field.full{grid-column:1/-1}.field input,.field select{width:100%;min-width:0}.form-actions{display:flex;gap:10px;margin-top:20px}@media(max-width:700px){.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}
.chat-window{height:430px;overflow:auto;background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px;margin-top:16px}.chat-msg{display:flex}.chat-msg.user{justify-content:flex-end}.bubble{max-width:88%;padding:12px 14px;border-radius:12px;background:#fff;border:1px solid var(--line);font-size:13px;line-height:1.55}.chat-msg.user .bubble{background:#2563eb;color:#fff;border-color:#2563eb}.assistant-input-row{display:grid;grid-template-columns:1fr 110px;gap:10px;margin-top:14px}.assistant-input-row textarea{width:100%;resize:vertical;border:1px solid #d1d5db;border-radius:9px;padding:11px 12px;font:inherit}.suggestions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.suggestions .btn{font-size:12px;padding:8px 10px}.assistant-table{overflow:auto;max-height:420px;margin-top:12px;border:1px solid var(--line);border-radius:8px}.assistant-table .table{font-size:12px}.assistant-table .table th,.assistant-table .table td{padding:8px}.chat-msg.bot .assistant-table{min-width:700px}@media(max-width:700px){.assistant-input-row{grid-template-columns:1fr}.chat-window{height:360px}}
.assistant-sql{margin-top:10px;background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:8px}.assistant-sql summary{cursor:pointer;font-weight:600;font-size:12px}.assistant-sql pre{white-space:pre-wrap;overflow:auto;font-size:11px;margin:8px 0 0}
.channel-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.channel-kpi{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff;min-width:0}.channel-kpi.foodpanda{border-top:4px solid #ff5a1f}.channel-kpi.grab{border-top:4px solid #00b14f}.channel-kpi.shopee{border-top:4px solid #ee4d2d}.channel-kpi.walkin{border-top:4px solid #2563eb}.channel-name{font-size:12px;font-weight:700;color:var(--muted);display:flex;gap:6px;align-items:center}.channel-sales{font-size:24px;font-weight:800;margin-top:8px}.channel-meta{font-size:11px;color:var(--muted);margin-top:4px}@media(max-width:1100px){.channel-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.channel-grid{grid-template-columns:1fr}}
.payment-type-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.payment-type-kpi{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff;min-width:0;border-top:4px solid #6b7280}.payment-type-kpi.cash{border-top-color:#059669}.payment-type-kpi.card{border-top-color:#2563eb}.payment-type-kpi.qr{border-top-color:#7c3aed}.payment-type-kpi.voucher{border-top-color:#d97706}.payment-type-kpi.etc{border-top-color:#6b7280}.payment-type-name{font-size:12px;font-weight:700;color:var(--muted);display:flex;gap:6px;align-items:center}.payment-type-sales{font-size:22px;font-weight:800;margin-top:8px}.payment-type-meta{font-size:11px;color:var(--muted);margin-top:4px}@media(max-width:1100px){.payment-type-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.payment-type-grid{grid-template-columns:1fr}}

/* Dashboard themes */
body[data-dashboard-theme="bright"]{--bg:#f7f9fc;--card:#ffffff;--text:#172033;--muted:#667085;--line:#d1d5db;--sidebar:#111827}
body[data-dashboard-theme="warm"]{--bg:#fbf3e7;--card:#fffaf2;--text:#3b2f2f;--muted:#7c6658;--line:#cbb8a4;--sidebar:#4a3428}
body[data-dashboard-theme="dark"]{--bg:#111827;--card:#1f2937;--text:#f3f4f6;--muted:#aab4c3;--line:#4b5563;--sidebar:#030712}
body[data-dashboard-theme="midnight"]{--bg:#080d1c;--card:#111a2e;--text:#eef4ff;--muted:#9eacd0;--line:#2a395d;--sidebar:#050816;--blue:#6ea8ff;--blue2:#4f8ff7}
body[data-dashboard-theme="sunset"]{--bg:#fff4ec;--card:#fffaf7;--text:#3b2430;--muted:#80616d;--line:#e8c5b5;--sidebar:#3a1f32;--blue:#e85d3f;--blue2:#c94562}
body[data-dashboard-theme="midnight"] .card,body[data-dashboard-theme="midnight"] .kpi,body[data-dashboard-theme="midnight"] .channel-kpi,body[data-dashboard-theme="midnight"] .payment-type-kpi{box-shadow:0 6px 22px rgba(0,0,0,.32)}
body[data-dashboard-theme="midnight"] .card,body[data-dashboard-theme="midnight"] .kpi,body[data-dashboard-theme="midnight"] .channel-kpi,body[data-dashboard-theme="midnight"] .payment-type-kpi{background:#111a2e;color:#eef4ff;border-color:#2a395d}
body[data-dashboard-theme="midnight"] select,body[data-dashboard-theme="midnight"] input[type=file],body[data-dashboard-theme="midnight"] textarea{background:#0b1224;color:#eef4ff;border-color:#33446c}
body[data-dashboard-theme="midnight"] .table th{background:#0b1224;color:#9eacd0}
body[data-dashboard-theme="midnight"] .table th,body[data-dashboard-theme="midnight"] .table td{border-color:#2a395d}
body[data-dashboard-theme="midnight"] .chat-window,body[data-dashboard-theme="midnight"] .bubble,body[data-dashboard-theme="midnight"] .assistant-sql{background:#0b1224;color:#eef4ff;border-color:#2a395d}
body[data-dashboard-theme="midnight"] .info{background:#10254b;color:#c8ddff;border-color:#6ea8ff}
body[data-dashboard-theme="midnight"] .bar-track{background:#263451}
body[data-dashboard-theme="midnight"] code{background:#263451;color:#eef4ff}
body[data-dashboard-theme="midnight"] .donut:after{background:#111a2e}
body[data-dashboard-theme="midnight"] .kpi .label,body[data-dashboard-theme="midnight"] .channel-name,body[data-dashboard-theme="midnight"] .payment-type-name{color:#9eacd0}
body[data-dashboard-theme="midnight"] .kpi .value,body[data-dashboard-theme="midnight"] .channel-sales,body[data-dashboard-theme="midnight"] .payment-type-sales{color:#eef4ff}
body[data-dashboard-theme="midnight"] .kpi .sub,body[data-dashboard-theme="midnight"] .channel-meta,body[data-dashboard-theme="midnight"] .payment-type-meta{color:#9eacd0}
body[data-dashboard-theme="midnight"] .title h1,body[data-dashboard-theme="midnight"] h2,body[data-dashboard-theme="midnight"] .card h2{color:#eef4ff}
body[data-dashboard-theme="midnight"] .title p,body[data-dashboard-theme="midnight"] .subtext,body[data-dashboard-theme="midnight"] .muted{color:#9eacd0}
body[data-dashboard-theme="midnight"] .sidebar{background:#050816}
body[data-dashboard-theme="midnight"] .nav a:hover,body[data-dashboard-theme="midnight"] .nav a.active{background:#16213d;color:#fff}
body[data-dashboard-theme="sunset"] .card,body[data-dashboard-theme="sunset"] .kpi,body[data-dashboard-theme="sunset"] .channel-kpi,body[data-dashboard-theme="sunset"] .payment-type-kpi{background:#fffaf7;color:#3b2430;border-color:#e8c5b5;box-shadow:0 5px 18px rgba(137,65,47,.08)}
body[data-dashboard-theme="sunset"] select,body[data-dashboard-theme="sunset"] input[type=file],body[data-dashboard-theme="sunset"] textarea{background:#fffaf7;color:#3b2430;border-color:#e8c5b5}
body[data-dashboard-theme="sunset"] .table th{background:#fff0e7;color:#80616d}
body[data-dashboard-theme="sunset"] .table th,body[data-dashboard-theme="sunset"] .table td{border-color:#e8c5b5}
body[data-dashboard-theme="sunset"] .chat-window,body[data-dashboard-theme="sunset"] .bubble,body[data-dashboard-theme="sunset"] .assistant-sql{background:#fff7f2;color:#3b2430;border-color:#e8c5b5}
body[data-dashboard-theme="sunset"] .info{background:#fff0e7;color:#713c45;border-color:#e85d3f}
body[data-dashboard-theme="sunset"] .bar-track{background:#f2d9cc}
body[data-dashboard-theme="sunset"] code{background:#f6dfd5;color:#3b2430}
body[data-dashboard-theme="sunset"] .donut:after{background:#fffaf7}
body[data-dashboard-theme="sunset"] .kpi .label,body[data-dashboard-theme="sunset"] .channel-name,body[data-dashboard-theme="sunset"] .payment-type-name{color:#80616d}
body[data-dashboard-theme="sunset"] .kpi .value,body[data-dashboard-theme="sunset"] .channel-sales,body[data-dashboard-theme="sunset"] .payment-type-sales{color:#3b2430}
body[data-dashboard-theme="sunset"] .kpi .sub,body[data-dashboard-theme="sunset"] .channel-meta,body[data-dashboard-theme="sunset"] .payment-type-meta{color:#80616d}
body[data-dashboard-theme="sunset"] .title h1,body[data-dashboard-theme="sunset"] h2,body[data-dashboard-theme="sunset"] .card h2{color:#3b2430}
body[data-dashboard-theme="sunset"] .title p,body[data-dashboard-theme="sunset"] .subtext,body[data-dashboard-theme="sunset"] .muted{color:#80616d}
body[data-dashboard-theme="sunset"] .sidebar{background:#3a1f32}
body[data-dashboard-theme="sunset"] .nav a:hover,body[data-dashboard-theme="sunset"] .nav a.active{background:#613247;color:#fff}
body[data-dashboard-theme="dark"] .card,body[data-dashboard-theme="dark"] .kpi,body[data-dashboard-theme="dark"] .channel-kpi,body[data-dashboard-theme="dark"] .payment-type-kpi{box-shadow:0 4px 18px rgba(0,0,0,.28)}
body[data-dashboard-theme="dark"] select,body[data-dashboard-theme="dark"] input[type=file]{background:#111827;color:#f3f4f6;border-color:#4b5563}
body[data-dashboard-theme="dark"] .table th{background:#111827;color:#aab4c3}
body[data-dashboard-theme="dark"] .table th,body[data-dashboard-theme="dark"] .table td{border-color:#374151}
body[data-dashboard-theme="warm"] .table th{background:#f6ead9}
body[data-dashboard-theme="warm"] .bar-track{background:#eadbc9}

/* V45 dashboard visual refinements */
/* Dark theme: dashboard metric/card text stays black on white cards for readability. */
body[data-dashboard-theme="dark"] .kpi,
body[data-dashboard-theme="dark"] .channel-kpi,
body[data-dashboard-theme="dark"] .payment-type-kpi{
  background:#ffffff;
  color:#000000;
}
body[data-dashboard-theme="dark"] .kpi .label,
body[data-dashboard-theme="dark"] .kpi .value,
body[data-dashboard-theme="dark"] .kpi .sub,
body[data-dashboard-theme="dark"] .channel-name,
body[data-dashboard-theme="dark"] .channel-sales,
body[data-dashboard-theme="dark"] .channel-meta,
body[data-dashboard-theme="dark"] .payment-type-name,
body[data-dashboard-theme="dark"] .payment-type-sales,
body[data-dashboard-theme="dark"] .payment-type-meta{
  color:#000000;
}
/* Dark theme: clearly colored outlines for the dashboard boxes. */
body[data-dashboard-theme="dark"] .kpi:nth-child(1){border:2px solid #2563eb;}
body[data-dashboard-theme="dark"] .kpi:nth-child(2){border:2px solid #059669;}
body[data-dashboard-theme="dark"] .kpi:nth-child(3){border:2px solid #d97706;}
body[data-dashboard-theme="dark"] .channel-kpi{border:2px solid #64748b;}
body[data-dashboard-theme="dark"] .channel-kpi.foodpanda{border-color:#ff5a1f;}
body[data-dashboard-theme="dark"] .channel-kpi.grab{border-color:#00b14f;}
body[data-dashboard-theme="dark"] .channel-kpi.shopee{border-color:#ee4d2d;}
body[data-dashboard-theme="dark"] .channel-kpi.walkin{border-color:#2563eb;}
body[data-dashboard-theme="dark"] .payment-type-kpi{border:2px solid #64748b;}
body[data-dashboard-theme="dark"] .payment-type-kpi.cash{border-color:#059669;}
body[data-dashboard-theme="dark"] .payment-type-kpi.card{border-color:#2563eb;}
body[data-dashboard-theme="dark"] .payment-type-kpi.qr{border-color:#7c3aed;}
body[data-dashboard-theme="dark"] .payment-type-kpi.voucher{border-color:#d97706;}



/* Global dashboard themes: the selected Dashboard theme follows the user across every page. */
body[data-dashboard-theme="bright"]{--bg:#f7f9fc;--card:#ffffff;--text:#172033;--muted:#667085;--line:#d1d5db;--sidebar:#111827;--blue:#2563eb;--blue2:#1d4ed8}
body[data-dashboard-theme="warm"]{--bg:#fbf3e7;--card:#fffaf2;--text:#3b2f2f;--muted:#7c6658;--line:#cbb8a4;--sidebar:#4a3428;--blue:#9a5b2b;--blue2:#7c4520}
body[data-dashboard-theme="dark"]{--bg:#111827;--card:#1f2937;--text:#f3f4f6;--muted:#aab4c3;--line:#4b5563;--sidebar:#030712;--blue:#2563eb;--blue2:#1d4ed8}

body[data-dashboard-theme="bright"] .card,body[data-dashboard-theme="bright"] .kpi,body[data-dashboard-theme="bright"] .channel-kpi,body[data-dashboard-theme="bright"] .payment-type-kpi{background:#fff;color:#172033;border-color:#d1d5db}
body[data-dashboard-theme="warm"] .card,body[data-dashboard-theme="warm"] .kpi,body[data-dashboard-theme="warm"] .channel-kpi,body[data-dashboard-theme="warm"] .payment-type-kpi{background:#fffaf2;color:#3b2f2f;border-color:#cbb8a4}
body[data-dashboard-theme="dark"] .card,body[data-dashboard-theme="dark"] .kpi,body[data-dashboard-theme="dark"] .channel-kpi,body[data-dashboard-theme="dark"] .payment-type-kpi{background:#1f2937;color:#f3f4f6;border-color:#4b5563}

body[data-dashboard-theme="bright"] .sidebar{background:#111827}
body[data-dashboard-theme="warm"] .sidebar{background:#4a3428}
body[data-dashboard-theme="dark"] .sidebar{background:#030712}
body[data-dashboard-theme="bright"] .nav a,body[data-dashboard-theme="warm"] .nav a,body[data-dashboard-theme="dark"] .nav a{color:#d1d5db}
body[data-dashboard-theme="bright"] .nav a:hover,body[data-dashboard-theme="bright"] .nav a.active{background:#1f2937;color:#fff}
body[data-dashboard-theme="warm"] .nav a:hover,body[data-dashboard-theme="warm"] .nav a.active{background:#6b4a38;color:#fff}
body[data-dashboard-theme="dark"] .nav a:hover,body[data-dashboard-theme="dark"] .nav a.active{background:#1f2937;color:#fff}

body[data-dashboard-theme="dark"] select,body[data-dashboard-theme="dark"] input[type=file],body[data-dashboard-theme="dark"] textarea{background:#111827;color:#f3f4f6;border-color:#4b5563}
body[data-dashboard-theme="warm"] select,body[data-dashboard-theme="warm"] input[type=file],body[data-dashboard-theme="warm"] textarea{background:#fffaf2;color:#3b2f2f;border-color:#cbb8a4}
body[data-dashboard-theme="bright"] select,body[data-dashboard-theme="bright"] input[type=file],body[data-dashboard-theme="bright"] textarea{background:#fff;color:#172033;border-color:#d1d5db}
body[data-dashboard-theme="dark"] .table th{background:#111827;color:#aab4c3}
body[data-dashboard-theme="warm"] .table th{background:#f6ead9;color:#7c6658}
body[data-dashboard-theme="bright"] .table th{background:#f9fafb;color:#667085}
body[data-dashboard-theme="dark"] .table th,body[data-dashboard-theme="dark"] .table td{border-color:#374151}
body[data-dashboard-theme="warm"] .table th,body[data-dashboard-theme="warm"] .table td{border-color:#cbb8a4}
body[data-dashboard-theme="bright"] .table th,body[data-dashboard-theme="bright"] .table td{border-color:#d1d5db}
body[data-dashboard-theme="dark"] .chat-window,body[data-dashboard-theme="dark"] .bubble,body[data-dashboard-theme="dark"] .assistant-sql{background:#111827;color:#f3f4f6;border-color:#4b5563}
body[data-dashboard-theme="warm"] .chat-window,body[data-dashboard-theme="warm"] .bubble,body[data-dashboard-theme="warm"] .assistant-sql{background:#fffaf2;color:#3b2f2f;border-color:#cbb8a4}
body[data-dashboard-theme="dark"] .info{background:#172554;color:#bfdbfe;border-color:#2563eb}
body[data-dashboard-theme="warm"] .info{background:#fff1dc;color:#6b4327;border-color:#9a5b2b}
body[data-dashboard-theme="dark"] .drop{border-color:#4b5563}
body[data-dashboard-theme="warm"] .drop{border-color:#cbb8a4}
body[data-dashboard-theme="dark"] code{background:#374151;color:#f3f4f6}
body[data-dashboard-theme="warm"] code{background:#f3e6d5;color:#3b2f2f}
body[data-dashboard-theme="dark"] .bar-track{background:#374151}
body[data-dashboard-theme="warm"] .bar-track{background:#eadbc9}
body[data-dashboard-theme="dark"] .donut:after{background:#1f2937}
body[data-dashboard-theme="warm"] .donut:after{background:#fffaf2}
body[data-dashboard-theme="dark"] .kpi .label,body[data-dashboard-theme="dark"] .channel-name,body[data-dashboard-theme="dark"] .payment-type-name{color:#aab4c3}
body[data-dashboard-theme="warm"] .kpi .label,body[data-dashboard-theme="warm"] .channel-name,body[data-dashboard-theme="warm"] .payment-type-name{color:#7c6658}
body[data-dashboard-theme="dark"] .kpi .value,body[data-dashboard-theme="dark"] .channel-sales,body[data-dashboard-theme="dark"] .payment-type-sales{color:#f3f4f6}
body[data-dashboard-theme="warm"] .kpi .value,body[data-dashboard-theme="warm"] .channel-sales,body[data-dashboard-theme="warm"] .payment-type-sales{color:#3b2f2f}
body[data-dashboard-theme="dark"] .kpi .sub,body[data-dashboard-theme="dark"] .channel-meta,body[data-dashboard-theme="dark"] .payment-type-meta{color:#aab4c3}
body[data-dashboard-theme="warm"] .kpi .sub,body[data-dashboard-theme="warm"] .channel-meta,body[data-dashboard-theme="warm"] .payment-type-meta{color:#7c6658}
body[data-dashboard-theme="dark"] .title h1,body[data-dashboard-theme="dark"] h2,body[data-dashboard-theme="dark"] .card h2{color:#f3f4f6}
body[data-dashboard-theme="warm"] .title h1,body[data-dashboard-theme="warm"] h2,body[data-dashboard-theme="warm"] .card h2{color:#3b2f2f}
body[data-dashboard-theme="dark"] .title p,body[data-dashboard-theme="dark"] .subtext,body[data-dashboard-theme="dark"] .muted{color:#aab4c3}
body[data-dashboard-theme="warm"] .title p,body[data-dashboard-theme="warm"] .subtext,body[data-dashboard-theme="warm"] .muted{color:#7c6658}

/* V57: Keep every table header and value aligned to the center */
.table th,
.table td,
.money{
  text-align:center !important;
  vertical-align:middle;
}


/* V72: Sales Channel filter - compact Outlet-style dropdown with checkbox multi-select. */
.sales-channel-field{min-width:220px;position:relative;z-index:50}
.sales-channel-field .multi-select{position:relative;width:100%}
.sales-channel-field .multi-select-button{
  width:100%;min-width:220px;min-height:39px;padding:9px 12px;
  text-align:left;background:var(--card,#fff);border:1px solid #cbd5e1;
  border-radius:2px;color:var(--text,#111827);font:inherit;cursor:pointer;
  display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;
}
.sales-channel-field .multi-select-button:hover{border-color:#94a3b8}
.sales-channel-field .multi-select-button:focus{outline:2px solid rgba(37,99,235,.25);outline-offset:1px}
.sales-channel-field .multi-arrow{font-size:14px;line-height:1;margin-left:8px}
.sales-channel-field .multi-select-menu{
  display:none !important;position:absolute;z-index:10000;top:calc(100% + 1px);left:0;
  width:100%;min-width:220px;max-height:330px;overflow:auto;
  background:var(--card,#fff);border:1px solid #9ca3af;border-radius:0;
  box-shadow:0 5px 14px rgba(0,0,0,.20);box-sizing:border-box;
}
.sales-channel-field .multi-select-menu.open{display:block !important}
.sales-channel-field .multi-select-actions{
  display:flex;gap:4px;padding:6px 8px;border-bottom:1px solid #d1d5db;
  background:var(--card,#fff);position:sticky;top:0;z-index:2;
}
.sales-channel-field .multi-select-actions button{
  border:1px solid #9ca3af;background:var(--card,#fff);color:var(--text,#111827);
  border-radius:2px;font-size:12px;cursor:pointer;padding:3px 8px;
}
.sales-channel-field .multi-select-actions button:hover{background:rgba(59,130,246,.08)}
.sales-channel-field #salesChannelOptions{display:block}
.sales-channel-field .multi-option{
  display:flex;align-items:center;gap:7px;width:100%;box-sizing:border-box;
  padding:7px 8px;font-size:13px;line-height:18px;cursor:pointer;
  color:var(--text,#111827);margin:0;
}
.sales-channel-field .multi-option:hover{background:rgba(59,130,246,.08)}
.sales-channel-field .multi-option input[type="checkbox"]{
  width:15px;height:15px;min-width:15px;margin:0;accent-color:#2563eb;cursor:pointer;
}
.sales-channel-field .multi-option span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-channel-field .multi-select-footer{
  display:flex;justify-content:flex-end;gap:8px;padding:7px 8px;
  border-top:1px solid #d1d5db;background:var(--card,#fff);position:sticky;bottom:0;z-index:2;
}
.sales-channel-field .multi-select-footer .btn{padding:6px 14px;font-size:12px;border-radius:4px}
body[data-dashboard-theme="dark"] .sales-channel-field .multi-select-button,
body[data-dashboard-theme="dark"] .sales-channel-field .multi-select-menu,
body[data-dashboard-theme="dark"] .sales-channel-field .multi-select-actions,
body[data-dashboard-theme="dark"] .sales-channel-field .multi-select-footer,
body[data-dashboard-theme="dark"] .sales-channel-field .multi-select-actions button{background:#111827;color:#f3f4f6;border-color:#4b5563}
body[data-dashboard-theme="warm"] .sales-channel-field .multi-select-button,
body[data-dashboard-theme="warm"] .sales-channel-field .multi-select-menu,
body[data-dashboard-theme="warm"] .sales-channel-field .multi-select-actions,
body[data-dashboard-theme="warm"] .sales-channel-field .multi-select-footer,
body[data-dashboard-theme="warm"] .sales-channel-field .multi-select-actions button{background:#fffaf2;color:#3b2f2f;border-color:#cbb8a4}

.compare-total-row td{font-weight:800;border-top:2px solid currentColor;background:rgba(0,0,0,.035)}
/* V76: Sales Payment Listing filtered total row */
.sales-total-row td{font-weight:800;background:rgba(245,108,67,.10);border-top:2px solid rgba(245,108,67,.45);}
.sales-total-row td:first-child{color:#5b1830;}
.auth-body{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fff5ed,#eefbf7);padding:24px}.auth-card{width:min(430px,100%);background:#fff;border:1px solid #f0c7b5;border-radius:18px;padding:32px;box-shadow:0 18px 50px rgba(50,30,20,.12)}.auth-card.wide{width:min(600px,100%)}.auth-logo{width:68px;height:68px;object-fit:contain}.auth-card h1{margin:10px 0 6px;color:#2b2340}.auth-card p{color:#6b6072}.auth-card form{display:flex;flex-direction:column;gap:8px}.auth-card input,.auth-card select,.auth-card textarea{width:100%;box-sizing:border-box;margin-bottom:8px}.auth-link{text-align:center}.auth-link a{color:#e85b3b;font-weight:700}.alert{padding:10px 14px;border-radius:8px;margin:10px 0;border:1px solid #ddd}.alert.error{background:#fff0f0;border-color:#ef9a9a;color:#9b1c1c}.alert.success{background:#effcf4;border-color:#9ad9b1;color:#17663a}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.inline-form{display:flex;gap:8px;align-items:center;margin:8px 0;flex-wrap:wrap}.inline-form input{flex:1;margin:0}.inline-form label{margin:0}.user-box{flex:0 0 auto;margin:10px 2px 0;padding:12px;border:1px solid rgba(255,255,255,.12);border-radius:8px;color:#e5e7eb;background:var(--sidebar);position:relative;z-index:2;overflow-wrap:anywhere}.user-box small,.user-box a{display:block;margin-top:4px;color:#aab4c3}.user-box a{color:#ffb39f;font-weight:700;padding:4px 0}.sidebar-footer{display:none!important}.perm-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0}.role-perm{border-top:1px solid #ddd;padding:12px 0}.btn.small{padding:6px 10px;font-size:12px}.btn.danger{background:#b42318;color:#fff}.btn.primary{background:#e85b3b;color:#fff}.late{font-weight:700;color:#b42318}.info{margin:8px 0;padding:10px;border-radius:8px;border:1px solid #c9d8ef;background:#eff6ff;color:#1e3a5f}.service-attachment{font-size:12px}@media(max-width:900px){.grid-2,.grid-3{grid-template-columns:1fr}}

/* V79: Service Request form layout */
.service-request-card{max-width:100%;}
.service-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px;}

.service-field-gap{margin-top:18px;}
.service-request-card label{display:block;margin-bottom:6px;font-weight:600;}
.service-request-card input[readonly]{background:#f1f4f7;color:#3f4b5b;}
.service-category-create{margin-top:8px;}
.service-category-create input{min-width:0;}
.field-note{font-weight:400;font-size:12px;color:#6b7280;}
.word-counter{text-align:right;margin-top:4px;font-size:12px;color:#64748b;}
.word-counter.over-limit{color:#b42318;font-weight:700;}
.service-attachment-box{margin-top:18px;padding:14px 16px;border:1px dashed #cbd5e1;border-radius:8px;background:rgba(59,130,246,.035);}
.service-upload-note{margin-top:6px;font-size:12px;}
.service-submit-row{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;}
.service-notice{margin-top:18px;}
@media(max-width:900px){.service-grid-2{grid-template-columns:1fr;}}

/* V83: Service Request description follows full-width 20-row layout. */
.service-request-card #description {
  width: 100%;
  min-height: 360px;
  box-sizing: border-box;
  resize: vertical;
  line-height: 1.45;
}
.service-request-card .service-field-gap {
  width: 100%;
}
.service-detail-description{margin-top:18px}.detail-text{margin-top:8px;padding:14px;border:1px solid #d1d5db;border-radius:8px;white-space:pre-wrap;min-height:100px}.detail-form{display:flex;flex-direction:column;gap:7px;max-width:100%}.detail-form textarea{width:100%;box-sizing:border-box}.status-badge{display:inline-block;margin-top:5px;padding:6px 10px;border-radius:8px;font-weight:700;border:1px solid #cbd5e1}.comment-item{padding:12px 0;border-bottom:1px solid #e5e7eb}.comment-item:last-of-type{border-bottom:0}.success-box{padding:12px;border:1px solid #86efac;background:#f0fdf4;color:#166534;border-radius:8px}.comment-form{margin-top:16px;padding-top:16px;border-top:1px solid #e5e7eb}

.my-sr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.my-sr-card{border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--card);box-shadow:0 3px 12px rgba(17,24,39,.04)}.my-sr-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.my-sr-head h3{margin:0;font-size:18px}.my-sr-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px;margin-bottom:14px}.my-sr-meta div{padding:8px 10px;border:1px solid var(--line);border-radius:8px}.my-sr-desc{padding:10px 12px;border:1px solid var(--line);border-radius:8px;white-space:pre-wrap;font-size:13px;line-height:1.5;margin-bottom:12px;max-height:110px;overflow:auto}.my-sr-actions{display:flex;gap:8px;flex-wrap:wrap}.my-sr-actions form{margin:0}.my-sr-comment{width:100%;box-sizing:border-box;border:1px solid #d1d5db;border-radius:8px;padding:10px 12px;font:inherit;resize:vertical;margin:8px 0}.my-sr-workform{display:flex;flex-direction:column;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.my-sr-empty{padding:42px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:12px}.status-opened{background:#eef6ff;color:#1e3a5f}.status-progress{background:#fff7ed;color:#9a3412}.status-uat{background:#fefce8;color:#854d0e}.status-closed{background:#ecfdf5;color:#166534}@media(max-width:900px){.my-sr-grid{grid-template-columns:1fr}}

/* V91: collapsible sidebar navigation groups */
.nav-group{margin:2px 0 4px}.nav-group-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#d1d5db;background:transparent;border:0;border-radius:9px;padding:11px 13px;font:inherit;font-weight:700;cursor:pointer;text-align:left}.nav-group-toggle:hover{background:#1f2937;color:#fff}.nav-chevron{font-size:14px;line-height:1;opacity:.85}.nav-group-items{display:flex;flex-direction:column;gap:4px;padding:2px 0 4px 8px}.nav-link{display:block;color:#d1d5db;text-decoration:none;padding:10px 11px;border-radius:8px;font-weight:600;font-size:13px}.nav-link:hover,.nav-link.active{background:#1f2937;color:#fff}.nav-link.active{box-shadow:inset 3px 0 var(--blue)}.nav-group.collapsed .nav-group-items{display:none}.nav-link.standalone{margin-bottom:2px}
body[data-dashboard-theme="warm"] .nav-group-toggle:hover,body[data-dashboard-theme="warm"] .nav-link:hover,body[data-dashboard-theme="warm"] .nav-link.active{background:#5b3f32}
body[data-dashboard-theme="sunset"] .nav-group-toggle:hover,body[data-dashboard-theme="sunset"] .nav-link:hover,body[data-dashboard-theme="sunset"] .nav-link.active{background:#5b2947}
body[data-dashboard-theme="midnight"] .nav-group-toggle:hover,body[data-dashboard-theme="midnight"] .nav-link:hover,body[data-dashboard-theme="midnight"] .nav-link.active{background:#182643}
/* V95 IT FA listing and form upgrade */
.itfa-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.itfa-filter-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;position:relative}
.column-menu-wrap{position:relative}.column-menu-wrap.open .column-menu{display:block}.column-menu{display:none;position:absolute;right:0;top:calc(100% + 6px);z-index:2000;width:260px;max-height:420px;overflow:auto;background:var(--card,#fff);border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 12px 30px rgba(0,0,0,.18);padding:8px}
.column-menu-title{font-weight:700;padding:6px 8px}.column-menu-actions{display:flex;gap:6px;padding:6px 8px;border-bottom:1px solid #e5e7eb}.column-menu-actions button{padding:4px 8px}.column-menu label{display:block;padding:5px 8px;font-size:13px;cursor:pointer}.column-menu label:hover{background:rgba(59,130,246,.08)}
.itfa-table-wrap{max-height:72vh;overflow:auto}.itfa-table th{white-space:nowrap}.itfa-table .filter-row th{position:sticky;top:38px;background:var(--card,#fff);z-index:4;padding:5px}.itfa-table thead tr:first-child th{position:sticky;top:0;z-index:5}.column-filter{width:100%;min-width:70px;box-sizing:border-box;padding:5px 6px;font-size:12px;border:1px solid #cbd5e1;border-radius:3px;background:var(--card,#fff);color:var(--text,#111827)}
.btn-small{padding:4px 8px;font-size:11px}.subsection-title{font-weight:700;margin-bottom:8px}.hidden{display:none!important}
.outlet-multi-field{min-width:220px}
body[data-dashboard-theme="dark"] .outlet-multi-field .multi-select-button,body[data-dashboard-theme="dark"] .outlet-multi-field .multi-select-menu,body[data-dashboard-theme="dark"] .outlet-multi-field .multi-select-actions,body[data-dashboard-theme="dark"] .outlet-multi-field .multi-select-footer,body[data-dashboard-theme="dark"] .outlet-multi-field .multi-select-actions button{background:#111827;color:#f3f4f6;border-color:#4b5563}
body[data-dashboard-theme="warm"] .outlet-multi-field .multi-select-button,body[data-dashboard-theme="warm"] .outlet-multi-field .multi-select-menu,body[data-dashboard-theme="warm"] .outlet-multi-field .multi-select-actions,body[data-dashboard-theme="warm"] .outlet-multi-field .multi-select-footer,body[data-dashboard-theme="warm"] .outlet-multi-field .multi-select-actions button{background:#fffaf2;color:#3b2f2f;border-color:#cbb8a4}

/* V97: Door Card Access */
.door-access-card{margin-bottom:16px}.door-access-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.door-access-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.door-access-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.door-access-search{width:min(460px,100%);box-sizing:border-box}.door-access-table th{white-space:nowrap}.door-access-table td{vertical-align:middle}.btn-small{padding:5px 9px;font-size:12px}@media(max-width:900px){.door-access-form-grid{grid-template-columns:1fr}.door-access-toolbar{flex-direction:column;align-items:stretch}.door-access-search{width:100%}}


/* V107: Sales Comparison Store / Sales Channel / Payment Type use the same checkbox multi-select pattern as Dashboard Outlet. */
.comparison-multi-field{min-width:220px;position:relative;z-index:10}
.comparison-multi-field.is-open{z-index:10000}
.comparison-multi-select{position:relative;width:100%}
.comparison-multi-button{width:100%;min-width:220px;min-height:39px;padding:9px 12px;text-align:left;background:var(--card,#fff);border:1px solid #cbd5e1;border-radius:2px;color:var(--text,#111827);font:inherit;cursor:pointer;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box}
.comparison-multi-button:hover{border-color:#94a3b8}
.comparison-multi-button:focus{outline:2px solid rgba(37,99,235,.25);outline-offset:1px}
.comparison-multi-arrow{font-size:14px;line-height:1;margin-left:8px}
.comparison-multi-menu{display:none;position:absolute;z-index:50000;top:calc(100% + 1px);left:0;width:100%;min-width:220px;max-height:330px;overflow:auto;background:var(--card,#fff);border:1px solid #9ca3af;border-radius:0;box-shadow:0 12px 30px rgba(0,0,0,.24);box-sizing:border-box}
.comparison-multi-menu.open{display:block}
.comparison-multi-actions{display:flex;gap:4px;padding:6px 8px;border-bottom:1px solid #d1d5db;background:var(--card,#fff);position:sticky;top:0;z-index:2}
.comparison-multi-actions button{border:1px solid #9ca3af;background:var(--card,#fff);color:var(--text,#111827);border-radius:2px;font-size:12px;cursor:pointer;padding:3px 8px}
.comparison-multi-actions button:hover{background:rgba(59,130,246,.08)}
.comparison-multi-option{display:flex;align-items:center;gap:7px;width:100%;box-sizing:border-box;padding:7px 8px;font-size:13px;line-height:18px;cursor:pointer;color:var(--text,#111827);margin:0}
.comparison-multi-option:hover{background:rgba(59,130,246,.08)}
.comparison-multi-option input[type="checkbox"]{width:15px;height:15px;min-width:15px;margin:0;accent-color:#2563eb;cursor:pointer}
.comparison-multi-option span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.comparison-multi-footer{display:flex;justify-content:flex-end;gap:8px;padding:7px 8px;border-top:1px solid #d1d5db;background:var(--card,#fff);position:sticky;bottom:0;z-index:2}
.comparison-multi-footer .btn{padding:6px 14px;font-size:12px;border-radius:4px}
body[data-dashboard-theme="dark"] .comparison-multi-button,body[data-dashboard-theme="dark"] .comparison-multi-menu,body[data-dashboard-theme="dark"] .comparison-multi-actions,body[data-dashboard-theme="dark"] .comparison-multi-footer,body[data-dashboard-theme="dark"] .comparison-multi-actions button{background:#111827;color:#f3f4f6;border-color:#4b5563}
body[data-dashboard-theme="warm"] .comparison-multi-button,body[data-dashboard-theme="warm"] .comparison-multi-menu,body[data-dashboard-theme="warm"] .comparison-multi-actions,body[data-dashboard-theme="warm"] .comparison-multi-footer,body[data-dashboard-theme="warm"] .comparison-multi-actions button{background:#fffaf2;color:#3b2f2f;border-color:#cbb8a4}
body[data-dashboard-theme="midnight"] .comparison-multi-button,body[data-dashboard-theme="midnight"] .comparison-multi-menu,body[data-dashboard-theme="midnight"] .comparison-multi-actions,body[data-dashboard-theme="midnight"] .comparison-multi-footer,body[data-dashboard-theme="midnight"] .comparison-multi-actions button{background:#0f172a;color:#e5e7eb;border-color:#475569}
body[data-dashboard-theme="sunset"] .comparison-multi-button,body[data-dashboard-theme="sunset"] .comparison-multi-menu,body[data-dashboard-theme="sunset"] .comparison-multi-actions,body[data-dashboard-theme="sunset"] .comparison-multi-footer,body[data-dashboard-theme="sunset"] .comparison-multi-actions button{background:#241625;color:#f8e9f0;border-color:#6d4b63}

/* V109: Item Master auto-import */
.item-master-rule{padding:12px 14px;margin:12px 0;border:1px solid var(--line);border-radius:8px;background:rgba(59,130,246,.05);line-height:1.5}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.item-master-folder-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.item-master-folder-row input{flex:1;min-width:360px;padding:11px 12px;border:1px solid #cbd5e1;border-radius:6px;background:var(--card,#fff);color:var(--text,#111827)}
.item-master-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.item-master-stat-grid div{border:1px solid var(--line);border-radius:8px;padding:12px;text-align:center}.item-master-stat-grid b{display:block;font-size:22px}.item-master-stat-grid span{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.item-master-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}.item-master-search{display:flex;gap:6px;align-items:center}.item-master-search input{min-width:360px;padding:10px 11px;border:1px solid #cbd5e1;border-radius:6px;background:var(--card,#fff);color:var(--text,#111827)}.item-master-table-wrap{max-height:68vh;overflow:auto}.item-master-table th{white-space:nowrap}.item-master-table td{white-space:nowrap;vertical-align:top}.item-master-error{color:#b91c1c}
@media(max-width:900px){.item-master-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.item-master-folder-row input,.item-master-search input{min-width:100%;width:100%}.item-master-search{width:100%;flex-wrap:wrap}.item-master-search input{flex:1}}
.item-master-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.item-master-global-search{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;margin-top:14px}.item-master-global-search label{width:100%;font-size:11px;font-weight:700;color:var(--muted)}.item-master-global-search input{flex:1;min-width:360px;padding:10px 11px;border:1px solid #cbd5e1;border-radius:6px;background:var(--card,#fff);color:var(--text,#111827)}.item-master-filter-note{margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:rgba(59,130,246,.04);font-size:12px;color:var(--muted);line-height:1.45}.item-master-filter-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0}.item-master-table-wrap{max-height:70vh;overflow:auto}.item-master-table{min-width:2300px}.item-master-table thead th{position:sticky;white-space:nowrap;z-index:3;background:var(--card,#fff);box-shadow:inset 0 -1px 0 var(--line)}.item-master-table thead tr:first-child th{top:0}.item-master-table thead tr.filter-row th{top:38px;padding:5px;background:var(--card,#fff);z-index:2}.item-master-table .item-master-column-filter{width:100%;min-width:105px;box-sizing:border-box;padding:7px 8px;border:1px solid #cbd5e1;border-radius:5px;background:var(--bg,#fff);color:var(--text,#111827);font-size:12px}.item-master-table td{white-space:nowrap;vertical-align:top}.item-master-table th:first-child,.item-master-table td:first-child{position:sticky;left:0;z-index:4;background:var(--card,#fff)}.item-master-table thead tr:first-child th:first-child{z-index:7}.item-master-table thead tr.filter-row th:first-child{z-index:6}.item-master-table .item-master-column-filter:focus{outline:2px solid rgba(59,130,246,.25);outline-offset:-1px}.item-master-toolbar{align-items:flex-end}.item-master-toolbar h2{margin-top:0}
@media(max-width:900px){.item-master-global-search input{min-width:100%;width:100%}.item-master-table{min-width:2300px}}


/* V132: Keep both rows of the Chicken Control grouped header visible while scrolling.
   The top row contains the grouped "Sales" heading; the second row contains OR/Spicy/Mix. */
.table-wrap .chicken-control-table thead th {
  position: sticky;
  background: var(--card, #f9fafb);
  background-clip: padding-box;
}
.table-wrap .chicken-control-table thead tr:first-child th {
  top: 0;
  z-index: 8;
}
.table-wrap .chicken-control-table thead tr:nth-child(2) th {
  top: 37px;
  z-index: 7;
}
.table-wrap .chicken-control-table thead th[rowspan="2"] {
  vertical-align: middle;
}
.table-wrap .chicken-control-table thead th[colspan="3"] {
  text-align: center;
}
