/* v2.63 — White / Soft Charcoal global palette and desktop top navigation.
   Layout reorganisation is desktop-only. Existing phone screens and API are reused. */
:root, html[data-theme="light"] {
  color-scheme:light;
  --theme-bg:#FFFFFF;
  --theme-surface:#F5F6F8;
  --theme-surface-2:#EAEDF2;
  --theme-ink:#24272C;
  --theme-muted:#626B78;
  --theme-border:#E1E6EE;
  --theme-nav:#FFFFFF;
  --theme-accent:#526783;
  --theme-accent-hover:#405773;
  --theme-positive:#287C59;
  --theme-negative:#B44754;
  --theme-chart-line:#526783;
  --theme-chart-muted:#B5C1D0;
  --navy:#26364A;
  --navy-2:#415471;
  --bg:#FFFFFF;
  --card:#F5F6F8;
  --ink:#24272C;
  --muted:#626B78;
  --line:#E1E6EE;
  --accent:#526783;
  --accent-2:#405773;
  --positive:#287C59;
  --negative:#B44754;
  --warning:#B18436;
  --shadow:0 4px 18px rgba(34,43,57,.045);
}
html[data-theme="dark"] {
  color-scheme:dark;
  --theme-bg:#181A1D;
  --theme-surface:#23262B;
  --theme-surface-2:#2D3138;
  --theme-ink:#E7E9ED;
  --theme-muted:#AFB8C4;
  --theme-border:#3B4049;
  --theme-nav:#23262B;
  --theme-accent:#91A4BE;
  --theme-accent-hover:#B4C5DC;
  --theme-positive:#7AD0A7;
  --theme-negative:#F59AA4;
  --theme-chart-line:#91A4BE;
  --theme-chart-muted:#67788E;
  --navy:#23262B;
  --navy-2:#2D3138;
  --bg:#181A1D;
  --card:#23262B;
  --ink:#E7E9ED;
  --muted:#AFB8C4;
  --line:#3B4049;
  --accent:#91A4BE;
  --accent-2:#B4C5DC;
  --positive:#7AD0A7;
  --negative:#F59AA4;
  --warning:#E6C188;
  --shadow:0 6px 22px rgba(0,0,0,.14);
}
html[data-theme] body {
  background:var(--theme-bg);
  color:var(--theme-ink);
}
html[data-theme] .card,html[data-theme] .kpi,html[data-theme] .filters,
html[data-theme] .scan-item,html[data-theme] .portal-stat,
html[data-theme] .settings-shell .settings-nav,
html[data-theme] .voucher-store-box,html[data-theme] .voucher-current-location,
html[data-theme] .modal-card,html[data-theme] .progress-box {
  background:var(--theme-surface);
  color:var(--theme-ink);
  border-color:var(--theme-border);
  box-shadow:var(--shadow);
}
html[data-theme] .card-head h2,html[data-theme] .kpi .value,
html[data-theme] .portal-stat strong,html[data-theme] .settings-content h2,
html[data-theme] .settings-content h3,html[data-theme] .settings-tab strong,
html[data-theme] .cell-main { color:var(--theme-ink); }
html[data-theme] .empty-table,html[data-theme] .settings-content p,
html[data-theme] .settings-kicker,html[data-theme] .card-head p,
html[data-theme] .kpi .label,html[data-theme] .kpi .hint,
html[data-theme] .portal-stat small { color:var(--theme-muted); }
html[data-theme] .settings-tab,html[data-theme] .voucher-config-tab,
html[data-theme] .settings-detail-grid,html[data-theme] .settings-section-card,
html[data-theme] .portal-location-switcher,html[data-theme] .portal-security-note,
html[data-theme] .portal-location-checks {
  background:var(--theme-surface);
  color:var(--theme-ink);
  border-color:var(--theme-border);
}
html[data-theme] .settings-tab.active,html[data-theme] .voucher-config-tab.active {
  background:color-mix(in srgb,var(--theme-accent) 15%,var(--theme-surface));
  color:var(--theme-ink);
  border-color:var(--theme-accent);
}
html[data-theme] th { background:var(--theme-surface-2);color:var(--theme-muted); }
html[data-theme] td {border-bottom-color:var(--theme-border);}
html[data-theme] tr:hover td {background:color-mix(in srgb,var(--theme-accent) 6%,var(--theme-surface));}
html[data-theme] .bar-fill {background:var(--theme-accent);}
html[data-theme] .bar {fill:var(--theme-accent);}
html[data-theme] .line-path {stroke:var(--theme-chart-line);}
html[data-theme] .dot {fill:var(--theme-chart-line);}
html[data-theme] .grid-line {stroke:var(--theme-border);}
html[data-theme] .btn.primary {background:var(--theme-accent);color:#FFF;}
html[data-theme="dark"] .btn.primary {color:#181A1D;}
html[data-theme] .btn.primary:hover {background:var(--theme-accent-hover);}
html[data-theme] .btn.dark {background:var(--navy);color:var(--theme-ink);}
html[data-theme="light"] .btn.dark {color:white;}
html[data-theme] .btn.secondary,html[data-theme] .btn.ghost,
html[data-theme] .portal-theme-toggle,html[data-theme] .mini-btn,
html[data-theme] .badge {background:var(--theme-surface-2);border-color:var(--theme-border);color:var(--theme-ink);}
html[data-theme] .compare.up,html[data-theme] .comparison-kicker {color:var(--theme-positive);}
html[data-theme] .compare.down {color:var(--theme-negative);}
html[data-theme] input,html[data-theme] select,html[data-theme] textarea {
  background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-border);
}
html[data-theme] input::placeholder,html[data-theme] textarea::placeholder { color:var(--theme-muted); }
html[data-theme] .chart svg text,html[data-theme] .axis-text { fill:var(--theme-muted); }
html[data-theme] a:not(.btn) { accent-color:var(--theme-accent); }

/* Desktop top bar replaces, rather than wraps, the existing sidebar. */
.desktop-header {display:none;}
@media (min-width:761px) {
  html,body{width:100%;}
  .app-shell { display:block!important;min-width:0; }
  #appShell > .sidebar {display:none!important;}
  .desktop-header {
    display:block;
    position:sticky;top:0;z-index:90;
    width:100%;background:var(--theme-nav);
    border-bottom:1px solid var(--theme-border);
    box-shadow:0 2px 10px rgba(18,32,50,.025);
  }
  .desktop-header-row {
    min-height:62px;max-width:1900px;margin:0 auto;
    padding:7px clamp(14px,2.7vw,44px);
    display:grid;grid-template-columns:minmax(150px,1fr) minmax(340px,2.3fr) minmax(220px,1fr);
    align-items:center;gap:10px;
  }
  .desktop-brand {
    display:inline-flex;align-items:center;gap:8px;justify-self:start;
    border:0;background:transparent;color:var(--theme-ink);
    padding:5px 0;white-space:nowrap;font-size:20px;font-weight:850;
    letter-spacing:-.75px;
  }
  .desktop-brand:hover{color:var(--theme-accent);}
  .desktop-primary-nav {
    position:relative;display:flex;align-items:center;justify-content:center;gap:3px;
    min-width:0;max-width:100%;height:46px;margin:auto;
    overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
  }
  .desktop-primary-nav::-webkit-scrollbar {display:none;}
  .desktop-primary-btn {
    border:1px solid transparent;background:transparent;
    display:inline-flex;align-items:center;justify-content:center;gap:9px;
    flex-shrink:0;position:relative;z-index:1;
    padding:10px 15px;min-height:42px;border-radius:12px;
    color:var(--theme-ink);font-size:13px;font-weight:700;
    transition:color .2s ease;
  }
  .desktop-primary-btn:hover {background:color-mix(in srgb,var(--theme-accent) 7%,transparent);}
  .desktop-primary-btn.active{color:var(--theme-ink);}
  .desktop-primary-btn.permission-hidden{display:none!important;}
  .desktop-icon {display:grid;place-items:center;flex:0 0 auto;}
  .desktop-icon svg,.desktop-action-icon svg {display:block;width:18px;height:18px;}
  .desktop-nav-glass {
    position:absolute;top:2px;bottom:2px;left:0;width:80px;opacity:0;
    pointer-events:none;z-index:0;border-radius:12px;
    border:1px solid color-mix(in srgb,var(--theme-accent) 32%,var(--theme-border));
    background:linear-gradient(122deg,
      color-mix(in srgb,var(--theme-accent) 22%,var(--theme-surface)) 0%,
      color-mix(in srgb,var(--theme-accent) 7%,var(--theme-surface)) 57%,
      color-mix(in srgb,var(--theme-accent) 18%,var(--theme-surface)) 100%);
    box-shadow:inset 0 1px rgba(255,255,255,.27),0 2px 7px rgba(18,32,52,.05);
    backdrop-filter:blur(16px) saturate(120%);
    -webkit-backdrop-filter:blur(16px) saturate(120%);
    transition:transform .47s cubic-bezier(.22,.9,.24,1),width .45s cubic-bezier(.22,.9,.24,1),opacity .2s ease;
  }
  .desktop-nav-glass:after {
    content:'';position:absolute;inset:0;border-radius:inherit;
    background:radial-gradient(ellipse at 17% 2%,rgba(255,255,255,.34),transparent 55%);
    pointer-events:none;
  }
  .desktop-actions {display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;}
  .desktop-location-holder {display:flex;align-items:center;gap:6px;min-width:0;}
  .desktop-location-holder .desktop-icon{color:var(--theme-ink);}
  .desktop-location-holder .top-location-switcher {
    z-index:110;max-width:185px;margin:0;min-height:38px;
    background:var(--theme-surface);border:1px solid var(--theme-border);
    border-radius:12px;padding:3px 10px;
  }
  .desktop-location-holder .top-location-button,
  .desktop-location-holder .top-location-single {font-size:12px;color:var(--theme-ink);white-space:nowrap;}
  .desktop-location-holder .top-location-button span:first-child,
  .desktop-location-holder .top-location-single {overflow:hidden;text-overflow:ellipsis;max-width:145px;}
  .desktop-location-holder .top-location-menu {
    right:0;left:auto;top:calc(100% + 8px);
    background:var(--theme-surface);border-color:var(--theme-border);
    box-shadow:0 14px 32px rgba(0,0,0,.17);padding:6px;
  }
  .desktop-location-holder .top-location-option {color:var(--theme-ink);}
  .desktop-location-holder .top-location-option:hover,
  .desktop-location-holder .top-location-option.active {background:var(--theme-surface-2);color:var(--theme-ink);}
  .desktop-theme-switch {
    display:flex;align-items:center;gap:6px;
    border:0;background:transparent;color:var(--theme-ink);
    padding:7px 2px;border-radius:10px;
  }
  .desktop-theme-switch:focus-visible,.desktop-profile-button:focus-visible,
  .desktop-subtab:focus-visible,.desktop-primary-btn:focus-visible {outline:2px solid var(--theme-accent);outline-offset:2px;}
  .desktop-theme-switch .desktop-action-icon {display:grid;place-items:center;color:var(--theme-muted);}
  .desktop-theme-track {
    display:flex;align-items:center;width:34px;height:20px;padding:3px;
    border:1px solid var(--theme-border);border-radius:99px;
    background:var(--theme-surface-2);transition:background .2s ease;
  }
  .desktop-theme-knob {
    width:14px;height:14px;border-radius:50%;background:var(--theme-accent);
    transform:translateX(0);transition:transform .25s ease;
  }
  .desktop-theme-switch.is-dark .desktop-theme-knob{transform:translateX(14px);}
  .desktop-profile-wrap{position:relative;flex-shrink:0;}
  .desktop-profile-button {
    display:grid;place-items:center;width:37px;height:37px;
    padding:0;border:1px solid var(--theme-border);border-radius:50%;
    background:var(--theme-accent);color:#fff;font-weight:800;font-size:15px;
  }
  html[data-theme="dark"] .desktop-profile-button{color:#181A1D;}
  .desktop-profile-menu {
    position:absolute;right:0;top:calc(100% + 12px);z-index:120;
    width:240px;padding:9px;border-radius:16px;
    border:1px solid var(--theme-border);
    background:var(--theme-surface);color:var(--theme-ink);
    box-shadow:0 20px 50px rgba(0,0,0,.18);
  }
  .desktop-profile-head {padding:9px 11px 12px;display:grid;gap:3px;}
  .desktop-profile-head strong{font-size:13px;overflow-wrap:anywhere;}
  .desktop-profile-head small{font-size:11px;color:var(--theme-muted);}
  .desktop-profile-menu button {
    width:100%;border:0;border-radius:10px;background:transparent;
    color:var(--theme-ink);font-size:13px;font-weight:700;text-align:left;padding:11px 12px;
  }
  .desktop-profile-menu button:hover{background:var(--theme-surface-2);}
  .desktop-profile-menu hr{border:0;border-top:1px solid var(--theme-border);margin:6px 2px;}
  .desktop-subnav-scroll {border-top:1px solid var(--theme-border);padding:8px clamp(14px,2.7vw,44px);}
  .desktop-section-tabs {
    display:flex;align-items:center;justify-content:stretch;
    gap:7px;overflow-x:auto;scrollbar-width:thin;
    max-width:1900px;margin:0 auto;padding:0 0 1px;
  }
  .desktop-section-tabs::-webkit-scrollbar{height:3px;}
  .desktop-subtab {
    display:inline-flex;align-items:center;justify-content:center;flex:1 0 auto;
    min-height:36px;min-width:max-content;border:1px solid transparent;
    background:var(--theme-surface);color:var(--theme-ink);
    padding:9px 16px;border-radius:11px;white-space:nowrap;
    font-size:12.5px;font-weight:700;
    transition:background .22s ease,color .22s ease,border-color .22s ease;
  }
  .desktop-subtab:hover{border-color:var(--theme-border);}
  .desktop-subtab.active {
    background:var(--theme-accent);border-color:var(--theme-accent);color:#fff;
    box-shadow:inset 0 1px rgba(255,255,255,.18);
  }
  html[data-theme="dark"] .desktop-subtab.active {color:#181A1D;}
  #appShell > .main {width:100%;max-width:none;min-height:calc(100vh - 63px);padding:24px clamp(14px,2.7vw,44px) 54px;}
  #appShell > .main > .topbar {margin-bottom:19px;}
  #appShell > .main > .topbar .top-actions #portalThemeToggle,
  #appShell > .main > .topbar .top-actions #portalUserChip {display:none!important;}
  #appShell > .main > .topbar h1 {font-size:28px;}
  /* The Online Vouchers entry is focused; the normal Settings profile entry retains its sidebar. */
  body.desktop-online-vouchers #view-settings .settings-nav {display:none!important;}
  body.desktop-online-vouchers #view-settings .settings-shell {display:block!important;}
  body.desktop-online-vouchers #view-settings .settings-content {width:100%;max-width:none;}
}
@media (min-width:761px) and (max-width:1110px){
  .desktop-header-row {grid-template-columns:minmax(135px,.5fr) minmax(280px,2fr) minmax(170px,.9fr);gap:4px;padding-left:16px;padding-right:16px;}
  .desktop-brand {font-size:17px;}
  .desktop-primary-btn {padding:9px 10px;gap:5px;font-size:12px;}
  .desktop-icon svg {width:16px;height:16px;}
  .desktop-actions {gap:7px;}
  .desktop-location-holder .top-location-switcher {max-width:134px;}
  .desktop-section-tabs {justify-content:flex-start;}
  .desktop-subtab {flex:0 0 auto;}
}
@media (max-width:760px) {
  .desktop-header {display:none!important;}
  html[data-theme] body {background:var(--theme-bg);color:var(--theme-ink);}
  /* Preserve the five-button phone dock; recolour only its glass and icons. */
  html[data-theme] .mobile-bottom-nav {
    background:color-mix(in srgb,var(--theme-surface) 91%,transparent);
    border-color:var(--theme-border);
    box-shadow:0 7px 22px rgba(0,0,0,.12),inset 0 1px rgba(255,255,255,.17);
  }
  html[data-theme] .mobile-bottom-nav-glow {
    border-color:color-mix(in srgb,var(--theme-accent) 37%,var(--theme-border));
    background:linear-gradient(125deg,
      color-mix(in srgb,var(--theme-accent) 18%,var(--theme-surface)),
      color-mix(in srgb,var(--theme-accent) 5%,var(--theme-surface)) 55%,
      color-mix(in srgb,var(--theme-accent) 14%,var(--theme-surface)));
    box-shadow:inset 0 1px rgba(255,255,255,.19),0 3px 8px rgba(0,0,0,.07);
  }
  html[data-theme] .mobile-bottom-nav-glow:after {
    background:radial-gradient(ellipse at 19% 0%,rgba(255,255,255,.35),transparent 65%);
    opacity:.48;
  }
  html[data-theme] .mobile-nav-btn {color:var(--theme-muted);}
  html[data-theme] .mobile-nav-btn.active {color:var(--theme-accent);}
  html[data-theme] .mobile-nav-caret {color:var(--theme-muted);}
  html[data-theme] .mobile-section-tabs .mobile-chip.active {background:var(--theme-accent);border-color:var(--theme-accent);color:#fff;}
  html[data-theme="dark"] .mobile-section-tabs .mobile-chip.active {color:#181A1D;}
  html[data-theme] .mobile-header-btn,
  html[data-theme] .mobile-profile-menu,
  html[data-theme] .mobile-location-menu {background:var(--theme-surface);border-color:var(--theme-border);color:var(--theme-ink);}
  html[data-theme] .mobile-profile-btn {background:var(--theme-accent);}
  html[data-theme="dark"] .mobile-profile-btn {color:#181A1D;}
  html[data-theme] .card,
  html[data-theme] .kpi {background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-border);}
}
@media (prefers-reduced-motion:reduce) {
  .desktop-nav-glass,.desktop-theme-knob {transition:none!important;}
}

/* Make non-selected pills visible in charcoal without introducing bright glow. */
@media (min-width:761px) {
 html[data-theme="dark"] .desktop-subtab:not(.active) {
   background:color-mix(in srgb,var(--theme-surface-2) 66%,var(--theme-nav));
   border-color:color-mix(in srgb,var(--theme-border) 42%,transparent);
 }
}
/* Only location names are necessary in the phone selector. */
@media (max-width:760px) { .mobile-location-menu button small {display:none!important;} }

/* Standalone POS Mode remains a distraction-free full-screen till view. */
body.pos-standalone .desktop-header,
body.pos-standalone .mobile-bottom-nav,
body.pos-standalone .mobile-section-tabs {display:none!important;}
body.pos-standalone #appShell > .main {padding:0!important;min-height:100vh;}


/* v2.70 desktop Weekly Performance final override */
@media (min-width: 761px) {

  #mobileWeekChartCard.mobile-week-chart {
    display: block !important;
    padding: 14px 16px 10px !important;
    overflow: hidden !important;
  }

  #mobileWeekChartCard .mobile-week-chart-top {
    gap: 8px !important;
  }

  #mobileWeekChartCard .mobile-chart-eyebrow {
    font-size: 8px !important;
    letter-spacing: .07em !important;
  }

  #mobileWeekChartCard .mobile-week-chart-top h2 {
    font-size: 14px !important;
    margin: 4px 0 0 !important;
  }

  #mobileWeekChartCard .mobile-week-delta {
    font-size: 10px !important;
    padding: 5px 7px !important;
    border-radius: 8px !important;
  }

  #mobileWeekChartCard .mobile-week-chart-graph {
    width: 270px !important;
    max-width: 100% !important;
    height: 130px !important;
    min-height: 0 !important;
    margin: 5px auto 0 !important;
  }

  #mobileWeekChartCard .mobile-week-chart-graph svg {
    width: 270px !important;
    max-width: 100% !important;
    height: 130px !important;
    overflow: visible !important;
  }

  /* Small axis labels, matching the phone chart. */
  #mobileWeekChartCard .mobile-week-chart-graph svg text {
    font-size: 8px !important;
  }

  /* The two series must ALWAYS be strokes, never filled shapes. */
  #mobileWeekChartCard .mobile-week-chart-graph svg path.current-line,
  #mobileWeekChartCard .mobile-week-chart-graph svg path.previous-line {
    fill: none !important;
    fill-opacity: 0 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  #mobileWeekChartCard .mobile-week-chart-graph svg path.current-line {
    stroke-width: 3 !important;
  }

  #mobileWeekChartCard .mobile-week-chart-graph svg path.previous-line {
    stroke-width: 2 !important;
    stroke-dasharray: 5 5 !important;
  }

  #mobileWeekChartCard .mobile-week-chart-graph svg circle.week-dot {
    r: 2.5 !important;
  }

  #mobileWeekChartCard .mobile-week-chart-legend {
    font-size: 8px !important;
    gap: 13px !important;
    margin-top: 1px !important;
  }

  #mobileWeekChartCard .mobile-week-chart-legend i {
    width: 13px !important;
  }
}


/* v2.73 — Desktop Weekly Performance final visual */
@media (min-width: 761px) {

  #mobileWeekChartCard.mobile-week-chart {
    display: block !important;
    padding: 14px 16px 12px !important;
    min-height: 0 !important;
    height: auto !important;
    align-self: start !important;
    overflow: hidden !important;
  }

  #mobileWeekChartCard .mobile-chart-eyebrow {
    font-size: 10px !important;
    line-height: 1.2 !important;
    letter-spacing: .08em !important;
    font-weight: 800 !important;
  }

  #mobileWeekChartCard .mobile-week-chart-top h2 {
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin: 4px 0 0 !important;
  }

  #mobileWeekChartCard .mobile-week-delta {
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    padding: 7px 9px !important;
    border-radius: 9px !important;
  }

  #mobileWeekChartCard .mobile-week-chart-graph {
    width: 100% !important;
    max-width: 520px !important;
    height: 190px !important;
    min-height: 0 !important;
    margin: 8px auto 0 !important;
  }

  #mobileWeekChartCard .mobile-week-chart-graph svg {
    display: block !important;
    width: 100% !important;
    height: 190px !important;
    overflow: visible !important;
  }

  /* Axis/grid labels */
  #mobileWeekChartCard .mobile-week-chart-graph svg text {
    font-size: 10px !important;
    font-family: inherit !important;
    fill: var(--theme-muted) !important;
  }

  /* Grid */
  #mobileWeekChartCard .mobile-week-chart-graph svg .week-grid {
    stroke: var(--theme-border) !important;
    stroke-width: 1 !important;
    stroke-dasharray: 3 5 !important;
    fill: none !important;
  }

  /* IMPORTANT: these are lines, never filled polygons */
  #mobileWeekChartCard .mobile-week-chart-graph svg path.current-line {
    fill: none !important;
    fill-opacity: 0 !important;
    stroke: var(--theme-chart-line) !important;
    stroke-width: 3 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    opacity: 1 !important;
  }

  #mobileWeekChartCard .mobile-week-chart-graph svg path.previous-line {
    fill: none !important;
    fill-opacity: 0 !important;
    stroke: var(--theme-chart-muted) !important;
    stroke-width: 2.5 !important;
    stroke-dasharray: 6 6 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    opacity: .9 !important;
  }

  /* Data points */
  #mobileWeekChartCard .mobile-week-chart-graph svg circle.week-dot {
    fill: var(--theme-chart-line) !important;
    stroke: var(--theme-surface) !important;
    stroke-width: 1.5 !important;
    r: 3 !important;
  }

  /* Legend */
  #mobileWeekChartCard .mobile-week-chart-legend {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin-top: 2px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: var(--theme-muted) !important;
  }

  #mobileWeekChartCard .mobile-week-chart-legend span {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  #mobileWeekChartCard .mobile-week-chart-legend i {
    display: block !important;
    width: 14px !important;
    height: 0 !important;
    border-top: 2px solid var(--theme-chart-line) !important;
  }

  #mobileWeekChartCard .mobile-week-chart-legend .legend-previous {
    border-top-style: dashed !important;
    border-color: var(--theme-chart-muted) !important;
  }
}

    
/* v2.74 — Weekly + Hourly 50/50 */
@media (min-width: 761px) {
  .dashboard-grid:has(#mobileWeekChartCard) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}


/* v2.76 — Weekly comparison totals */
@media (min-width: 761px) {

  #mobileWeekChartCard .mobile-week-totals {
    display: flex !important;
    align-items: flex-end !important;
    gap: 28px !important;
    margin-top: 8px !important;
  }

  #mobileWeekChartCard .mobile-week-totals > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
  }

  #mobileWeekChartCard .mobile-week-totals span {
    font-size: 10px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    color: var(--theme-muted) !important;
  }

  #mobileWeekChartCard .mobile-week-totals strong {
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -.025em !important;
    color: var(--theme-ink) !important;
  }

  #mobileWeekChartCard .mobile-week-chart-graph {
    margin-top: 10px !important;
  }

  #mobileWeekChartCard .mobile-week-delta.positive {
    color: var(--theme-positive) !important;
  }

  #mobileWeekChartCard .mobile-week-delta.negative {
    color: var(--theme-negative) !important;
  }
}

/* v3.13.27: Product Performance collapsible sections across both themes. */
.dailo-performance-section>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;}
.dailo-performance-section>summary::-webkit-details-marker{display:none;}
.dailo-performance-section>summary span{transition:transform .2s ease;}
.dailo-performance-section[open]>summary span{transform:rotate(180deg);}
.dailo-performance-section>summary small{font-size:12px;color:var(--theme-muted);}
.dailo-performance-section>.table-wrap{overflow-x:auto;}
