/* ===============================================================
   SHB Restaurant • Aurora / Midnight appearance system
   Loaded AFTER the reference and glossy styles on every screen.
   The light theme is warm porcelain; the dark theme is midnight
   navy-espresso with jewel burgundy and luminous ember highlights.
   =============================================================== */
:root {
  --shbt-radius: 17px;
  --shbt-orange: #f77b16;
  --shbt-orange-bright: #ffab4e;
  --shbt-success: #23854e;
}
html[data-theme="light"] {
  color-scheme: light;
  --shbt-bg: #faf4f0;
  --shbt-text: #381925;
  --shbt-muted: #7c6870;
  --shbt-surface: #fffaf7;
  --shbt-line: #ecd7ce;
  --shbt-shadow: 0 15px 35px rgba(84,29,32,.075),0 3px 9px rgba(84,29,32,.05);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --shbt-bg: #0e1019;
  --shbt-text: #f8e9e4;
  --shbt-muted: #b6a9b3;
  --shbt-surface: #1c2030;
  --shbt-line: #3a384b;
  --shbt-shadow: 0 18px 43px rgba(0,0,0,.33),inset 0 1px 0 rgba(255,255,255,.045);
  --gloss-ink:#f8e9e4;
  --gloss-line:rgba(240,195,172,.14);
  --gloss-shadow:var(--shbt-shadow);
  --gloss-shadow-raised:0 20px 50px rgba(0,0,0,.46),0 4px 14px rgba(0,0,0,.2);
  --guest-gloss-ink:#f8e6dd;
  --guest-gloss-shadow:0 12px 30px rgba(0,0,0,.3);
}

/* A single accessible, keyboard-friendly three-choice selector. */
.shb-theme-switcher {position:relative;isolation:isolate;font:600 12px/1.25 Inter,'Segoe UI',Arial,sans-serif;flex:0 0 auto;z-index:105;white-space:normal}
.shb-theme-switcher summary {display:flex;gap:7px;align-items:center;justify-content:center;min-height:39px;padding:7px 10px;list-style:none;cursor:pointer;border:1px solid rgba(149,89,85,.22);border-radius:12px;background:linear-gradient(140deg,rgba(255,255,255,.98),rgba(255,239,229,.92));color:#6a2838;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 3px 11px rgba(81,36,39,.09);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.shb-theme-switcher summary::-webkit-details-marker {display:none}
.shb-theme-switcher summary:hover {border-color:#eead79;box-shadow:0 5px 14px rgba(155,72,39,.15);transform:translateY(-1px)}
.shb-theme-switcher[open] summary {border-color:#ec9b5b}
.shb-theme-icon {display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border-radius:8px;background:linear-gradient(145deg,#ffedcd,#ffce99);font-size:17px;color:#b9440c}
.shb-theme-label {font-weight:800;font-size:11px}
.shb-theme-chevron {font-size:15px;opacity:.65}
.shb-theme-menu {position:absolute;top:calc(100% + 9px);right:0;width:224px;border:1px solid rgba(161,103,93,.25);border-radius:16px;padding:8px;background:linear-gradient(145deg,#fffefa,#fff3eb);box-shadow:0 19px 45px rgba(58,18,27,.22),inset 0 1px 0 #fff;color:#4d2532;z-index:130;white-space:normal}
.shb-theme-menu-heading {padding:9px 10px 11px;display:flex;align-items:baseline;justify-content:space-between;gap:6px;border-bottom:1px solid #edd6c9;margin-bottom:5px}
.shb-theme-menu-heading strong {font-size:13px;color:#4f1526}
.shb-theme-menu-heading>span {font-size:10px;color:#8c6b71}
.shb-theme-menu button {width:100%;display:flex;gap:10px;align-items:center;text-align:left;border:1px solid transparent;border-radius:11px;cursor:pointer;padding:9px 8px;background:transparent;color:inherit;font:inherit;min-height:52px;transition:background .15s ease,border-color .15s ease}
.shb-theme-menu button:hover {background:#fff0e4}
.shb-theme-menu button[aria-pressed="true"] {background:linear-gradient(120deg,#fff1db,#ffe2c3);border-color:#f1bb91}
.shb-theme-option-icon {display:grid;place-items:center;flex:0 0 33px;height:33px;border-radius:10px;background:#ffeedf;color:#aa4518;font-size:18px}
.shb-theme-option-text {display:flex;flex:1;flex-direction:column;gap:2px}
.shb-theme-option-text b {font-weight:800;font-size:12px;color:inherit}
.shb-theme-option-text small {font-size:10px;opacity:.7}
.shb-theme-check {font-size:14px;color:#d36b12;visibility:hidden}
.shb-theme-menu button[aria-pressed="true"] .shb-theme-check {visibility:visible}
.shb-theme-switcher :is(summary,button):focus-visible {outline:3px solid #ffad4b;outline-offset:3px}
/* Guest theme selection floats ABOVE bottom nav but BELOW critical dialogs. */
.shb-theme-guest-placement {position:fixed;z-index:80;right:16px;bottom:20px}
.shb-theme-guest-placement .shb-theme-menu {top:auto;bottom:calc(100% + 9px)}
.shb-theme-guest-placement .shb-theme-switcher summary {background:linear-gradient(125deg,#fffaf5,#ffe7d1);box-shadow:0 7px 19px rgba(66,21,31,.19)}
.shb-theme-login-placement {position:fixed;z-index:90;top:22px;right:24px}
@media(max-width:850px){
  .shb-theme-guest-placement {right:11px;bottom:calc(88px + env(safe-area-inset-bottom,0px))}
  .shb-theme-guest-placement .shb-theme-switcher summary {padding:5px 8px;min-height:37px}
  .shb-theme-guest-placement .shb-theme-label {display:none}
}
@media(max-width:1050px){body.shb-v2 .topbar .shb-theme-label{display:none}}

/* ===============================================================
   Light: polish and restrained warmth rather than flat white.
   =============================================================== */
html[data-theme="light"] body.shb-v2 .content-area {background:transparent}
html[data-theme="light"] body.shb-v2 :is(.shb-floor-stat,.shb-inv-stat,.shb-report-kpi) {background:linear-gradient(155deg,#fffcfa,#fff2e9);box-shadow:var(--shbt-shadow),inset 0 1px #fff;border-radius:17px;border:1px solid rgba(198,139,117,.2)}
html[data-theme="light"] body.shb-v2 :is(.shb-floor-main-panel,.shb-selected-table-panel,.shb-inventory-table-panel,.shb-rail-panel,.shb-report-visual,.shb-report-box,.shb-report-more) {box-shadow:var(--shbt-shadow),inset 0 1px #fff}
html[data-theme="light"] body.shb-v2 .content-area :is(input,textarea,select):focus-visible {outline:2px solid #ffac58;outline-offset:2px}

/* ===============================================================
   Dark: premium midnight burgundy, not a simple screen inversion.
   =============================================================== */
html[data-theme="dark"],html[data-theme="dark"]:has(body.shb-v2),html[data-theme="dark"]:has(body.guest-order-body){background:#0e1019}
html[data-theme="dark"] body.shb-v2 {
  color:var(--shbt-text);
  background:
    radial-gradient(ellipse 65% 42% at 96% -8%,rgba(135,62,93,.14),transparent 75%),
    radial-gradient(ellipse 50% 45% at 3% 85%,rgba(218,100,35,.065),transparent 78%),
    linear-gradient(138deg,#10121d 0%,#141421 48%,#0e1019 100%);
  background-attachment:fixed;
}
html[data-theme="dark"] body.shb-v2 .sidebar {
  background:radial-gradient(ellipse 90% 35% at 10% 0%,rgba(188,64,83,.27),transparent 80%),linear-gradient(170deg,#4b1026,#280c1d 46%,#170916 96%);
  border-right:1px solid rgba(255,188,142,.13);
  box-shadow:8px 0 35px rgba(0,0,0,.27),inset -1px 0 rgba(255,255,255,.05);
}
html[data-theme="dark"] body.shb-v2 :is(.sidebar-bottom,.sidebar-user) {background:linear-gradient(180deg,rgba(21,7,18,.85),rgba(16,7,15,.98));border-color:rgba(254,195,152,.11)}
html[data-theme="dark"] body.shb-v2 .nav-item:not(.active):not(.muted):hover {background:rgba(255,255,255,.10)}
html[data-theme="dark"] body.shb-v2 .topbar {
  background:linear-gradient(112deg,rgba(32,31,47,.97),rgba(26,27,41,.94));
  border-bottom:1px solid rgba(247,186,154,.14);
  box-shadow:0 7px 28px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.045);
}
html[data-theme="dark"] body.shb-v2 :is(.topbar-welcome strong,.account-title b,.topbar-profile,.topbar-search,.branch-picker-form,.branch-picker-form label,.topbar-welcome small) {color:var(--shbt-text)}
html[data-theme="dark"] body.shb-v2 .topbar-welcome small {color:var(--shbt-muted)}
html[data-theme="dark"] body.shb-v2 :is(.topbar-search,.branch-picker-form,.topbar-bell,.branch-pill) {
  background:linear-gradient(145deg,#2a293a,#202334);
  border-color:#494052;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 4px 12px rgba(0,0,0,.14);
  color:#e9d9dc;
}
html[data-theme="dark"] body.shb-v2 :is(.topbar-search kbd,.branch-picker-form select) {background-color:transparent;color:#f3dedb}
html[data-theme="dark"] body.shb-v2 .topbar-search kbd {background:#393646;color:#e2ccd0}
html[data-theme="dark"] body.shb-v2 :is(.page-footer,.muted,.subdued,.subdued-text,.small-muted,.hint,.empty-note,.text-muted,.eyebrow,.dash-dish-row small,.dash-stock-row small,.dash-stat-card small) {color:var(--shbt-muted)}
html[data-theme="dark"] body.shb-v2 :is(.content-area,.main-area) {color:var(--shbt-text)}
/* Shared cards, including the screenshot-specific dashboard / reports / inventory / billing views. */
html[data-theme="dark"] body.shb-v2 :is(
 .panel,.metric-card,.dash-panel,.dash-stat-card,.report-panel,.report-kpi,.kds-stat,.kds-lane,.kds-assistance,
 .inventory-summary-card,.inventory-alert,.design-table-detail,.table-floor-panel,.table-metrics>*,
 .shb-stat-card,.shb-dashboard-panel,.inventory-panel,.bill-panel,.bill-share,.bill-form-panel,.design-floor-plan,
 .online-panel,.online-zone-row,.shb-floor-stat,.shb-inv-stat,.shb-report-kpi,.shb-report-visual,.shb-report-box,
 .shb-report-more,.shb-report-filter-shell,.shb-inventory-table-panel,.shb-rail-panel,.shb-inv-movement-ledger,
 .shb-floor-main-panel,.shb-selected-table-panel,.shb-table-summary-box,.shb-report-period,.shb-inventory-list-head,
 .kds-column,.kds-order-card,.kds-ticket,.kds-order,.kds-head,.bill-payment,.shb-rail-movement,.shb-rail-row
 ) {
  background:#1b2030;
  background-image:radial-gradient(ellipse at 96% 0%,rgba(175,96,97,.10),transparent 60%),linear-gradient(145deg,#232638,#191c2b 78%,#1a202f);
  border-color:#383949;
  color:var(--shbt-text);
  box-shadow:var(--shbt-shadow);
}
html[data-theme="dark"] body.shb-v2 :is(.dash-stat-card,.shb-inv-stat,.shb-report-kpi,.report-kpi,.metric-card,.kds-stat) {background-image:radial-gradient(circle at 93% 0%,rgba(255,137,66,.13),transparent 56%),linear-gradient(145deg,#2a293a,#1c2030)}
html[data-theme="dark"] body.shb-v2 :is(.dash-panel,.panel,.dash-stat-card,.report-panel,.shb-report-box,.shb-report-visual):hover {border-color:#675062;box-shadow:0 22px 48px rgba(0,0,0,.32),inset 0 1px rgba(255,255,255,.045)}
html[data-theme="dark"] body.shb-v2 :is(.dash-stat-card,.metric-card,.report-kpi,.kds-stat)::before {background:linear-gradient(90deg,transparent,rgba(255,192,144,.08),transparent)}
/* Keep primary metrics and headings highly legible, regardless of old inline colors. */
html[data-theme="dark"] body.shb-v2 .content-area :is(h1,h2,h3,h4,h5,h6) {color:#ffe9e2}
html[data-theme="dark"] body.shb-v2 :is(.dash-stat-card strong,.dash-panel-heading h2,.dash-dish-row strong,.dash-dish-row>b,.dash-stock-row strong,.dash-gauge>span,.dash-donut strong,.report-panel-head h2,.report-kpi strong,.metric-value,.shb-report-kpi strong,.shb-inv-stat strong,.shb-floor-stat strong,.shb-table-summary-box b,.bill-panel h2,.bill-grand strong,.shb-report-box strong) {color:#fff0e7}
html[data-theme="dark"] body.shb-v2 :is(.dash-panel-heading p,.report-panel-head p,.page-heading p,.dash-donut small,.report-payment-donut small,.dash-channel-legend small,.dash-channel-legend,.shb-report-axis,.shb-report-note) {color:#baaeb8}
html[data-theme="dark"] body.shb-v2 :is(p,small,li,dd,dt,blockquote) {border-color:#3a394b}
html[data-theme="dark"] body.shb-v2 :is(.dash-gauge>span,.dash-donut>div,.report-payment-donut>div,.shb-report-donut>div,.shb-mini-ring>span) {background:#232435;color:#fbe4dc}
html[data-theme="dark"] body.shb-v2 :is(.dash-champion,.design-selected-banner) {background-image:radial-gradient(circle at 95% 0%,rgba(255,166,89,.18),transparent 60%),linear-gradient(114deg,#75233e,#401429 79%,#301222);border-color:rgba(255,177,115,.21)}
html[data-theme="dark"] body.shb-v2 :is(.dash-table-total,.bill-grand,.guest-summary-total,.shb-report-period,.shb-report-total) {background:linear-gradient(110deg,#382c35,#3e2a36);color:#ffdfc6;border:1px solid #68505a}
/* Tables and filters: dark columns, visible dividers and correct text contrast. */
html[data-theme="dark"] body.shb-v2 :is(table,.data-table,.dash-data-table,.inventory-table,.report-table,.shb-compact-table) {color:#f0e1e1;background:transparent}
html[data-theme="dark"] body.shb-v2 :is(th,thead th,.data-table thead th,.dash-data-table th,.report-table th,.inventory-table th,.shb-compact-table th) {background:#32303e;color:#ffe8dc;border-color:#514352}
html[data-theme="dark"] body.shb-v2 :is(td,.data-table td,.dash-data-table td,.report-table td,.inventory-table td,.shb-compact-table td) {background-color:transparent;color:#eadde0;border-color:#3e3a4a}
html[data-theme="dark"] body.shb-v2 tbody tr:hover {background:rgba(255,183,119,.07)}
html[data-theme="dark"] body.shb-v2 :is(.dash-dish-row,.dash-stock-row,.shb-report-dish,.shb-rail-row,.bill-payment,.shb-rail-movement,.shb-inv-detail-link) {border-color:#3c394c}
html[data-theme="dark"] body.shb-v2 :is(input,select,textarea,.form-control,.input-control,.search-input) {background-color:#272a39;color:#f7e5e4;border-color:#54475a;box-shadow:inset 0 2px 4px rgba(0,0,0,.12)}
html[data-theme="dark"] body.shb-v2 :is(input,textarea)::placeholder {color:#b3a5ac;opacity:1}
html[data-theme="dark"] body.shb-v2 :is(input,textarea,select):focus-visible {outline:2px solid #ffad55;outline-offset:1px;border-color:#d58b50}
html[data-theme="dark"] body.shb-v2 :is(.button-subtle,.button.button-subtle,.bill-tab,.design-table-tabs button,.shb-selected-tabs button,.shb-inventory-tabs button,.kds-workspace-tabs>span,.shb-report-filter-form button[type="reset"]) {background:linear-gradient(145deg,#323344,#252738);border-color:#584858;color:#f4dcd8;box-shadow:inset 0 1px rgba(255,255,255,.065)}
html[data-theme="dark"] body.shb-v2 :is(.bill-tab.active,.design-table-tabs button.active,.shb-selected-tabs button.active,.shb-inventory-tabs .active,.kds-tab-active) {background:linear-gradient(115deg,#ffab39,#e9680d);color:#fff;border-color:#ffbd77}
html[data-theme="dark"] body.shb-v2 :is(.shb-command-dialog,.modal,.dialog) {background:#202332;color:#f5e9e4;border-color:#68505c;box-shadow:0 24px 80px rgba(0,0,0,.58)}
html[data-theme="dark"] body.shb-v2 :is(.shb-command-heading,.shb-command-input,.shb-command-links a,.shb-command-links a:hover) {color:#f8eae6;border-color:#453d4c}
html[data-theme="dark"] body.shb-v2 :is(.shb-command-links a:hover,.shb-command-input) {background:#303044}
html[data-theme="dark"] body.shb-v2 :is(.shb-command-heading button,.shb-command-input input) {background:transparent;color:#f6e6e3}
/* Dashboard charts and page-specific accents. */
html[data-theme="dark"] body.shb-v2 :is(.design-chart-grid,.shb-report-grid-line) {stroke:#454354}
html[data-theme="dark"] body.shb-v2 :is(.design-chart-axis,.shb-report-axis) {fill:#c4b4bd;color:#c4b4bd}
html[data-theme="dark"] body.shb-v2 :is(.shb-report-bar-column,.shb-branch-bar,.shb-stock-bar) {border-color:#554759}
html[data-theme="dark"] body.shb-v2 :is(.shb-report-donut-center,.shb-report-channel-center,.shb-report-donut strong) {background:#232738;color:#fff1e7}
html[data-theme="dark"] body.shb-v2 :is(.kds-heading,.kds-head-actions,.kds-lane-head,.kds-ticket-body,.kds-order-items,.kds-order-meta,.kds-assistance-header,.shb-floor-titlebar,.shb-floor-zone,.shb-selected-table-header,.shb-floor-illustration,.shb-floor-zone-heading) {color:#f5e7e5;border-color:#444052}
html[data-theme="dark"] body.shb-v2 :is(.shb-floor-illustration,.shb-floor-zone) {background:linear-gradient(145deg,#282a38,#202635)}
html[data-theme="dark"] body.shb-v2 :is(.shb-floor-table.floor-available,.shb-floor-table.floor-occupied,.shb-floor-table.floor-preparing,.shb-floor-table.floor-reserved) {box-shadow:0 7px 14px rgba(0,0,0,.27)}
html[data-theme="dark"] body.shb-v2 :is(.bill-totals,.bill-split-form,.bill-mode-current,.bill-share,.bill-form-panel,.bill-payment-head) {color:#eedcdd;border-color:#474052}
html[data-theme="dark"] body.shb-v2 :is(.bill-sub,.bill-footnote,.bill-payment-meta,.bill-due) {color:#c4b1b6}
html[data-theme="dark"] body.shb-v2 :is(.shb-report-filter-form,.inventory-filters,.shb-inventory-tabs,.shb-inventory-list-head) {border-color:#46404e;color:#e9d6da}
html[data-theme="dark"] body.shb-v2 :is(.dash-dish-row a,.dash-small-link,.shb-report-box a,.shb-report-more a,.shb-rail-head a) {color:#ffb575}
html[data-theme="dark"] body.shb-v2 .flash-success {background:#183929;color:#a6efc2;border-color:#356249}
html[data-theme="dark"] body.shb-v2 .flash-error {background:#462027;color:#ffc3c3;border-color:#87464c}
html[data-theme="dark"] body.shb-v2 .dash-stock-badge {background:#52242c;color:#ffc0b3}

/* ===============================================================
   Guest ordering, mobile checkout, table receipts and online shop.
   =============================================================== */
html[data-theme="dark"] body.guest-order-body {
  background:radial-gradient(ellipse at 84% -8%,rgba(142,61,84,.17),transparent 62%),linear-gradient(155deg,#0e111b,#191521 65%,#0f121a);
  color:#f5e8e7;background-attachment:fixed;
}
html[data-theme="dark"] body.guest-order-body .guest-header {background:radial-gradient(ellipse at 75% 0%,rgba(243,138,91,.10),transparent 65%),linear-gradient(120deg,#50132d,#291125 78%,#1a0e1e);border-color:#634353;box-shadow:0 10px 26px rgba(0,0,0,.35)}
html[data-theme="dark"] body.guest-order-body :is(.guest-shell,.guest-design-shell,.guest-main,.online-shell,.guest-v2-cart .guest-shell) {background:linear-gradient(165deg,#1c1f2f,#171c2a);border-color:#383847;color:#f6e6e2;box-shadow:0 -10px 30px rgba(0,0,0,.16)}
html[data-theme="dark"] body.guest-order-body :is(
 .guest-hero,.guest-menu-card,.guest-cart-item,.guest-receipt-card,.guest-cart-panel,.guest-summary,.guest-checkout-list,
 .online-panel,.online-branch-card,.guest-help-panel,.guest-assistance-card,.guest-order-panel,.guest-empty,
 .guest-search-box,.guest-chip,.guest-quantity-control,.guest-page-back,.guest-assist-action,.online-zone-row,.guest-instructions,.online-tags span,.guest-meta span
) {background:#262839;background-image:linear-gradient(145deg,#2c2d3e,#232637 78%);border-color:#4b4154;color:#f2e6e4;box-shadow:0 9px 23px rgba(0,0,0,.20),inset 0 1px rgba(255,255,255,.04)}
html[data-theme="dark"] body.guest-order-body :is(.guest-menu-card,.guest-cart-item,.online-branch-card):hover {border-color:#9b6870;box-shadow:0 17px 32px rgba(0,0,0,.31)}
html[data-theme="dark"] body.guest-order-body :is(.guest-menu-card h3,.guest-cart-heading h3,.guest-page-heading h1,.guest-section-title h2,.guest-cart-list-header h2,.guest-summary h2,.guest-food-copy h3,.guest-price,.guest-cart-heading span,.guest-cart-edit strong,.guest-summary-row b,.guest-receipt-card h2,.guest-order-panel h2,.guest-food-content h3,.online-panel h2) {color:#ffebe2}
html[data-theme="dark"] body.guest-order-body :is(.guest-section-title p,.guest-food-copy p,.guest-page-heading p,.guest-cart-content small,.guest-summary-row span,.guest-menu-card p,.guest-receipt-card p,.guest-branch-info,.guest-checkout-notice,.online-panel p,.guest-meta) {color:#c7b9c3}
html[data-theme="dark"] body.guest-order-body :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.guest-search-box input) {background-color:#2c2d3d;color:#f8ebec;border-color:#514759;box-shadow:inset 0 1px 3px rgba(0,0,0,.16)}
html[data-theme="dark"] body.guest-order-body :is(input,textarea)::placeholder {color:#b9aab7;opacity:1}
html[data-theme="dark"] body.guest-order-body :is(.guest-search-box,.guest-checkout-notice,.guest-summary-row,.guest-cart-list-header,.guest-food-content,.online-tags) {border-color:#484153}
html[data-theme="dark"] body.guest-order-body :is(.guest-chip:not(.active),.guest-quantity-control button,.guest-assist-action,.guest-secondary-link) {background:#342e3c;color:#ffdfce;border-color:#55445a}
html[data-theme="dark"] body.guest-order-body :is(.guest-summary-total,.online-total,.guest-instructions) {background:linear-gradient(115deg,#42303d,#50323b);border-color:#77535d;color:#ffdfcf}
html[data-theme="dark"] body.guest-order-body :is(.guest-summary-total span,.guest-summary-total strong,.online-total b,.guest-instructions b) {color:#ffe1c5}
html[data-theme="dark"] body.guest-order-body .guest-promo-banner {background:radial-gradient(circle at 75% 2%,rgba(255,168,93,.12),transparent 61%),linear-gradient(120deg,#79203e,#3e142b);border-color:#754e64}
html[data-theme="dark"] body.guest-order-body .guest-mobile-tabs {background:linear-gradient(108deg,#451328,#221225);border-color:#614051;box-shadow:0 -8px 23px rgba(0,0,0,.32)}
html[data-theme="dark"] body.guest-order-body .guest-cart-sticky {background:linear-gradient(120deg,#4c1933,#21101e);border-color:#724555}
html[data-theme="dark"] body.guest-order-body :is(.guest-flash.guest-success,.guest-success) {background:#193b31;color:#b2f4c9;border-color:#3b6d55}
html[data-theme="dark"] body.guest-order-body :is(.guest-flash.guest-error,.guest-error) {background:#51232b;color:#ffc6c2;border-color:#8b494c}
html[data-theme="dark"] body.guest-order-body :is(.guest-footer,.online-footer,.guest-order-footer) {color:#b3a4b3}

/* Staff login shares the exact same appearance preference. */
html[data-theme="dark"] body.login-page {color:#f9eae5;background:radial-gradient(ellipse at 80% 0%,rgba(190,69,86,.10),transparent 60%),linear-gradient(145deg,#10111c,#181725 58%,#11131d)}
html[data-theme="dark"] body.login-page .login-feature {background:radial-gradient(ellipse at 10% 0%,rgba(255,178,115,.13),transparent 65%),linear-gradient(145deg,#561830,#2e1127 75%,#1b0f1f)}
html[data-theme="dark"] body.login-page .login-panel {background:transparent}
html[data-theme="dark"] body.login-page .login-card {background:linear-gradient(147deg,#282a39,#1c2030 85%);border-color:#4f4152;box-shadow:0 24px 55px rgba(0,0,0,.35),inset 0 1px rgba(255,255,255,.05)}
html[data-theme="dark"] body.login-page :is(.login-card h2,.login-card label,.login-card strong,.login-help strong) {color:#ffede3}
html[data-theme="dark"] body.login-page :is(.login-card p,.login-help,.muted-copy) {color:#c2b2bb}
html[data-theme="dark"] body.login-page :is(input,select,textarea) {background:#303142;border-color:#655366;color:#fff3eb;box-shadow:inset 0 2px 4px rgba(0,0,0,.13)}
html[data-theme="dark"] body.login-page input::placeholder {color:#baa9b3}
html[data-theme="dark"] body.login-page .login-badge {background:#433344;color:#ffd1a4;border-color:#684c56}

/* The theme chooser itself adapts to midnight; selected state remains clear. */
html[data-theme="dark"] .shb-theme-switcher summary {background:linear-gradient(145deg,#393042,#292738);color:#ffe6db;border-color:#655263;box-shadow:inset 0 1px rgba(255,255,255,.075),0 5px 14px rgba(0,0,0,.24)}
html[data-theme="dark"] .shb-theme-icon {background:linear-gradient(145deg,#704357,#513042);color:#ffd18c}
html[data-theme="dark"] .shb-theme-menu {background:linear-gradient(150deg,#313041,#242838);border-color:#685262;box-shadow:0 23px 52px rgba(0,0,0,.45),inset 0 1px rgba(255,255,255,.06);color:#f9e9e4}
html[data-theme="dark"] .shb-theme-menu-heading {border-color:#514456}
html[data-theme="dark"] .shb-theme-menu-heading strong {color:#fff0e7}
html[data-theme="dark"] .shb-theme-menu-heading>span {color:#c8b4c1}
html[data-theme="dark"] .shb-theme-menu button:hover {background:#424052}
html[data-theme="dark"] .shb-theme-menu button[aria-pressed="true"] {background:linear-gradient(120deg,#5b3545,#493445);border-color:#a86d6a}
html[data-theme="dark"] .shb-theme-option-icon {background:#504057;color:#ffcb8b}
html[data-theme="dark"] .shb-theme-check {color:#ffc071}
html[data-theme="dark"] .shb-theme-guest-placement .shb-theme-switcher summary {background:linear-gradient(125deg,#594059,#342638)}

/* Respect operating-system accessibility settings and keep receipts printable. */
@media(prefers-reduced-motion:reduce){
 .shb-theme-switcher summary,.shb-theme-menu button {transition:none!important;transform:none!important}
}
@media print {
 .shb-theme-switcher,.shb-theme-guest-placement,.shb-theme-login-placement {display:none!important}
 html[data-theme="dark"] body.shb-v2,html[data-theme="dark"] body.guest-order-body {background:#fff!important;color:#222!important}
 html[data-theme="dark"] body.shb-v2 :is(.panel,table,td,th),html[data-theme="dark"] body.guest-order-body :is(.guest-summary,.guest-receipt-card) {background:#fff!important;color:#222!important;box-shadow:none!important}
}

/* When printing a dark screen, use dark ink on white paper even for
   reference designs that specify heading colors explicitly. */
@media print {
 html[data-theme="dark"] body.shb-v2 .content-area :is(h1,h2,h3,h4,h5,h6,strong,b),
 html[data-theme="dark"] body.shb-v2 :is(th,td,.metric-value,.dash-stat-card strong),
 html[data-theme="dark"] body.guest-order-body :is(h1,h2,h3,h4,h5,h6,th,td,strong) {color:#222!important}
}
