/* Morrowfill: the decision desk. Flat bands, hairline rules, one action colour (brinjal plum), turmeric for Pongal. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #FFFFFF; --surface: #FFFFFF; --surface-2: #F6F5F2; --wash: #F6F5F2; --line: #E4E2DD; --line-2: #CDCAC3; --line-input: #8C8A83;
  --ink: #16171A; --ink-2: #4B4F55; --ink-3: #62666C;
  --crate: #4B2142; --crate-dark: #371631; --crate-tint: #F3EBF1;
  --series: #3E5466; --series-tint: #E7ECF0;
  --ticket: #E3C15A; --ticket-edge: #8A6A00; --ticket-tint: #FAF1D3;
  --markdown: #BF3A20; --markdown-tint: #F6DDD5;
  --kraft: #7A5A36; --kraft-mid: #B8895A; --kraft-tint: #F1E6D8;
  --cold: #4E8FB5; --marigold: #B47A0A; --pongal-t: #7F5606; --pongal-soft: #F7EBCF; --sup: #53606C;
  --float: 0 8px 28px rgba(22, 23, 26, .14);
  --sans: "Archivo", system-ui, "Helvetica Neue", Arial, sans-serif;
  --cond: "Archivo", system-ui, "Helvetica Neue", Arial, sans-serif;
  --top: 56px; --scope: 40px;
  --ctl: 36px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 14px/1.35 var(--sans); font-variant-numeric: lining-nums; min-height: 100vh; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--crate); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--crate); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--ink-2); }
.num { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--crate); color: #fff; padding: 8px 12px; text-decoration: none; }
.skip:focus { top: 8px; color: #fff; }
.ic { display: inline-flex; width: 16px; height: 16px; flex: none; }
.ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.ic-none { width: 16px; }
.only-phone { display: none !important; }
.noscript { padding: 24px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: stretch; gap: 20px; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 16px; height: 16px; }
.bm-fill { fill: var(--crate); stroke: var(--crate); stroke-width: 1.5; }
.bm-line { fill: none; stroke: var(--crate); stroke-width: 1.5; }
.brand-word { font: 800 20px/1 var(--sans); font-stretch: 118%; letter-spacing: -.01em; }
.org { align-self: center; color: var(--ink-2); font-size: 13px; white-space: nowrap; padding-left: 12px; border-left: 1px solid var(--line); line-height: 20px; }
.nav { display: flex; align-items: stretch; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 2px; }
.nav-list li { display: flex; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 0 9px; color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; position: relative; }
.nav-link:hover { color: var(--ink); }
.nav-link.is-current { color: var(--ink); font-weight: 600; }
.nav-link.is-current::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 2px; background: var(--ink); }
.nav-count { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink-2); font-size: 13px; }
.nav-link.is-current .nav-count { color: var(--ink); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.gsearch { position: relative; display: flex; align-items: center; }
.gsearch > .ic { position: absolute; left: 9px; color: var(--ink-2); pointer-events: none; }
.gsearch .input { width: 270px; padding-left: 30px; }
.gsearch-results { position: absolute; top: calc(100% + 4px); right: 0; width: 380px; background: var(--surface); border: 1px solid var(--line-input); box-shadow: var(--float); z-index: 60; max-height: 420px; overflow: auto; }
.gs-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--line); align-items: baseline; }
.gs-item:last-child { border-bottom: 0; }
.gs-item.is-act, .gs-item:hover { background: var(--crate-tint); }
.gs-kind { color: var(--ink-2); font-size: 12px; }
.gs-code { color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.gs-empty { padding: 10px; color: var(--ink-2); }
.user-btn { gap: 6px; padding: 0 6px; }
.user-init { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--wash); font: 600 11px/1 var(--sans); letter-spacing: .02em; }
.user-name { font-weight: 500; }

/* ---------- scope bar ---------- */
.scope { position: sticky; top: var(--top); z-index: 25; min-height: var(--scope); background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 6px 16px; flex-wrap: wrap; }
.scope-fields { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.scope-field { display: flex; align-items: center; gap: 6px; }
.scope-label { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.scope-value { font-weight: 500; }
.scope .select { max-width: 240px; }
.week-pick { display: flex; align-items: center; gap: 4px; }
.week-val { min-width: 148px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.scope-check { display: flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 13px; }
.scope-to { color: var(--ink-2); }
.runline { margin-left: auto; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.scope-phone { display: none; }
.scope-sheet { display: grid; gap: 16px; }
.scope-sheet .scope-field { display: grid; gap: 4px; }
.scope-sheet .select { max-width: none; width: 100%; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--ctl); padding: 0 12px; border: 1px solid transparent; border-radius: 6px; background: none; cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none; line-height: 1; }
.btn-primary { background: var(--crate); color: #fff; font-weight: 600; border-color: var(--crate); }
.btn-primary:hover { background: var(--crate-dark); border-color: var(--crate-dark); color: #fff; }
.btn-primary:active { background: #2A1026; }
.btn-secondary { background: var(--surface); border-color: var(--line-input); color: var(--ink); }
.btn-secondary:hover { background: var(--paper); border-color: var(--ink-2); }
.btn-secondary:active { background: var(--surface-2); }
.btn-danger { background: var(--surface); color: var(--markdown); border-color: var(--markdown); }
.btn-danger:hover { background: var(--markdown-tint); }
.btn-quiet { color: var(--ink); padding: 0 6px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.btn-quiet:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-quiet:active { color: var(--crate-dark); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-quiet.btn-sm { padding: 0 4px; }
.btn-icon { width: var(--ctl); padding: 0; }
.btn-sm.btn-icon { width: 28px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; text-decoration: none; }
.btn-menu .ic { color: var(--ink-2); }
.btn-menu.has-active { border-color: var(--crate); }
.btn-count { min-width: 18px; height: 18px; padding: 0 4px; background: var(--crate); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; border-radius: 2px; font-variant-numeric: tabular-nums; }
.btn-demo { font-weight: 600; }
.input, .select { height: var(--ctl); border: 1px solid var(--line-input); border-radius: 6px; background: var(--surface); padding: 0 8px; min-width: 0; }
.select { padding-right: 26px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%235A6472' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; background-size: 14px; cursor: pointer; }
.select-sm { height: 28px; font-size: 13px; }
.input:hover, .select:hover { border-color: var(--ink-2); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--markdown); }
.input-search::-webkit-search-cancel-button { cursor: pointer; }
.input-num { width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.cbx { width: 16px; height: 16px; margin: 0; accent-color: var(--crate); cursor: pointer; }
.cbx:disabled { cursor: not-allowed; }
input[type="range"] { accent-color: var(--crate); width: 100%; height: 24px; margin: 0; }
kbd { font: 600 12px/1 var(--sans); border: 1px solid var(--line-input); border-bottom-width: 2px; padding: 2px 5px; border-radius: 2px; background: var(--surface); }
.field { display: grid; gap: 4px; margin-top: 12px; }
.field-label { font-weight: 500; }
.field-help { color: var(--ink-2); font-size: 13px; }
.field-error { color: var(--markdown); font-weight: 500; margin-top: 8px; }
.field-after { color: var(--ink-2); margin-left: 8px; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; gap: 4px; }

/* ---------- layout ---------- */
main { display: block; outline: none; }
.page { padding: 20px 16px 48px; max-width: 1920px; margin: 0 auto; }
.h1 { font: 700 20px/1.2 var(--sans); letter-spacing: -.01em; outline: none; }
.h2 { font: 600 16px/1.3 var(--sans); }
.h3 { font: 600 14px/1.3 var(--sans); }
.lede { margin-top: 6px; max-width: 68ch; line-height: 1.5; font-size: 15px; }
.lede-2 { margin-top: 2px; color: var(--ink-2); font-size: 14px; }
.fig { font: 700 30px/1 var(--cond); font-stretch: 112%; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.005em; }
.fig-sm { font-size: 26px; }
.state { padding: 40px 0; max-width: 52ch; }
.state-title { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.state .btn { margin-top: 12px; }
.view-only { margin: 8px 0; padding: 8px 10px; background: var(--surface-2); font-weight: 500; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ---------- toolbar, chips ---------- */
.tb { margin-top: 12px; }
.tb-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.tb-end { margin-left: auto; display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field > .ic { position: absolute; left: 9px; color: var(--ink-2); pointer-events: none; }
.search-field .input { padding-left: 30px; width: 220px; }
.tb-chips { margin-top: 8px; min-height: 26px; }
.tb-count { color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; margin-right: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 6px 0 10px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--crate-tint); color: var(--ink); font-size: 13px; cursor: pointer; }
.chip:hover { background: #EADCE6; }
.chip .ic { width: 12px; height: 12px; }
.chip .ic svg { width: 12px; height: 12px; }
.grp { display: flex; align-items: center; gap: 6px; }
.grp-label { color: var(--ink-2); font-size: 13px; }

/* ---------- tables ---------- */
.tbl { border-collapse: collapse; width: 100%; background: var(--surface); font-size: 13px; font-variant-numeric: tabular-nums lining-nums; }
.tbl thead th { position: sticky; top: 0; z-index: 2; background: var(--paper); text-align: left; font: 600 14px/1.15 var(--cond); font-stretch: 92%; color: var(--ink); padding: 8px 10px 6px; border-top: 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; white-space: nowrap; }
.tbl thead th.num { text-align: right; }
.tbl td, .tbl tbody th { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; font-weight: 400; }
.tbl tbody th { font-weight: 500; }
.tbl td.num, .tbl th.num { text-align: right; }
.th-sort { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.th-sort:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
th.num .th-sort { flex-direction: row-reverse; }
.th-sort .ic { color: var(--crate); width: 14px; }
.tbl-scroll { overflow: auto; max-width: 100%; }
.tbl-scroll-short { max-height: 260px; }
.vt { margin-top: 4px; position: relative; }
.vt-scroll { overflow: auto; height: calc(100vh - var(--top) - var(--scope) - var(--concept-bar) - var(--jh, 0px) - 330px); min-height: 320px; border-bottom: 1px solid var(--line); background: var(--surface); }
.tbl-v { table-layout: fixed; }
.vt-row { cursor: pointer; }
.vt-row:hover { background: var(--surface-2); }
.vt-row:focus-visible { outline-offset: -2px; }
.vt-row.is-sel { background: var(--crate-tint); }
.vt-row.is-checked { background: #F8F3F7; }
.vt-row.row-done { color: var(--ink-2); }
.vt-spacer td { padding: 0; border: 0; }
.c-check { width: 36px; text-align: center !important; padding-left: 10px !important; padding-right: 0 !important; }
.two { display: flex; flex-direction: column; min-width: 0; }
.two-a { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.two-b { color: var(--ink-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.two-wrap .two-a { font-weight: 500; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.sev { display: block; }
.sev-high path { fill: var(--markdown); }
.sev-medium path { fill: var(--markdown); }
.sev-medium path.hollow { fill: none; stroke: var(--markdown); stroke-width: 1.2; }
.sev-low circle { fill: var(--ink-2); }
.sevcell { display: inline-flex; }
.status { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; white-space: nowrap; }
.status .ic { color: var(--ink); width: 14px; }
.status-approved, .status-resolved { color: var(--ink); font-weight: 600; }
.status-send_failed, .status-rejected { color: var(--markdown); font-weight: 600; }
.status-needs_manager { color: var(--ink); font-weight: 600; }
.status-changed { color: var(--ink); }
.status-changed::before { content: ""; width: 8px; height: 8px; background: var(--ticket); border: 1px solid var(--ticket-edge); margin-right: 3px; }
.status-snoozed, .status-dismissed, .status-proposed, .status-open { color: var(--ink-2); }
.row-group { background: var(--paper); font-weight: 500; }
.row-group:hover { background: var(--surface-2); }
.row-child td:nth-child(3) { padding-left: 26px; }
.grp-toggle { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }

/* the cover strip */
.strip { display: block; overflow: visible; }
.st-track { fill: var(--surface-2); }
.st-stock { fill: var(--ink); }
.st-gap { fill: var(--markdown); }
.st-waste { fill: var(--kraft-mid); }
.st-after { fill: none; stroke: var(--series); stroke-width: 1; }
.st-expiry { stroke: var(--kraft); stroke-width: 1; stroke-dasharray: 1.5 1.5; }
.st-delivery { fill: var(--ink); }
.st-more { fill: none; stroke: var(--ink-2); stroke-width: 1; }

/* ---------- Exceptions ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) clamp(460px, 41%, 640px); gap: 0; padding: 0; }
.worklist { padding: 20px 20px 24px 16px; min-width: 0; border-right: 1px solid var(--line); }
.wl-head { max-width: 760px; }
.typetabs { display: flex; flex-wrap: wrap; gap: 0 2px; margin-top: 16px; border-bottom: 1px solid var(--line); }
.typetab { border: 0; background: none; padding: 8px 8px 7px; cursor: pointer; display: inline-flex; gap: 5px; align-items: baseline; color: var(--ink-2); font-weight: 500; position: relative; }
.typetab:hover { color: var(--ink); }
.typetab.is-current { color: var(--ink); font-weight: 600; }
.typetab.is-current::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 3px; background: var(--ink); }
.typetab-n { font-variant-numeric: tabular-nums; font-weight: 400; }
.typeselect { display: none; }
.sb-toggle, .tb-fbtn { display: none; }
.vt-ex .vt-scroll { height: calc(100vh - var(--top) - var(--scope) - var(--concept-bar) - var(--jh, 0px) - 300px); }
.vt-ex .tbl td { height: 52px; }
.vt-ex .vt-row.row-group td { height: 52px; }
col.w-check { width: 36px; } col.w-sev { width: 26px; } col.w-item { width: 25%; } col.w-store { width: 19%; } col.w-text { width: auto; } col.w-strip { width: 136px; } col.w-value { width: 76px; } col.w-status { width: 88px; }
.c-sev { padding-right: 0 !important; padding-left: 4px !important; }
.c-type { font-size: 13px; }
.c-text { font-size: 13px; }
.type-promo::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--ticket); border: 1px solid var(--ticket-edge); margin-right: 5px; vertical-align: 0; }
.type-festival::before { content: ""; display: inline-block; width: 8px; height: 3px; background: var(--marigold); margin-right: 5px; vertical-align: 2px; }
.c-value { font-weight: 600; }
.bulkbar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line-2); flex-wrap: wrap; z-index: 5; }
.bulk-n { font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }
.pane { background: var(--surface); min-width: 0; position: sticky; top: calc(var(--top) + var(--scope)); height: calc(100vh - var(--top) - var(--scope) - var(--concept-bar) - var(--jh, 0px)); overflow: auto; }
.pane-inner { display: flex; flex-direction: column; min-height: 100%; }
.pane-body { padding: 20px 20px 8px; display: grid; gap: 18px; }
.pane-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.pane-title-row { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.pane-title { font: 600 16px/1.3 var(--sans); }
.pane-code { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 13px; }
.pane-store { margin-top: 2px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 13px; }
.fact { display: flex; gap: 5px; }
.fact dt { color: var(--ink-2); }
.fact dd { font-variant-numeric: tabular-nums; }
.facts-tight { margin-top: 0; flex-direction: column; gap: 4px; align-items: flex-end; position: relative; }
.problem { display: flex; gap: 8px; align-items: baseline; font-size: 15px; line-height: 1.45; font-weight: 500; max-width: 62ch; }
.problem .sev { flex: none; transform: translateY(1px); }
.problem-meta { color: var(--ink-2); margin-top: 4px; padding-left: 20px; font-size: 13px; font-variant-numeric: tabular-nums; }
.problem-also { margin-top: 4px; padding-left: 20px; font-size: 13px; }
.fc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.fc-num { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 2px 8px; }
.fc-label { grid-column: 1 / -1; color: var(--ink-2); font-size: 13px; }
.fc-unit { color: var(--ink-2); font-size: 13px; }
.conf { border: 0; background: none; padding: 0; font-weight: 600; cursor: help; border-bottom: 1px dotted var(--ink-2); }
.conf-low { color: var(--markdown); }
.conf-rule { display: none; position: absolute; right: 0; top: calc(100% + 6px); width: 280px; background: var(--surface); border: 1px solid var(--line-input); box-shadow: var(--float); padding: 8px 10px; font-size: 13px; z-index: 10; text-align: left; line-height: 1.4; }
.conf:hover + .conf-rule, .conf:focus + .conf-rule { display: block; }
.pane-order { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.order-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.order-line .h3 { margin-right: auto; }
.pane-foot { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 20px 14px; margin-top: auto; }
.pane-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pane-links { display: flex; gap: 4px 16px; margin-top: 8px; font-size: 13px; align-items: center; flex-wrap: wrap; }
.pane-links-sep { flex: 1; }
.tw { color: var(--ink); }
.tw::before { margin-right: 4px !important; }
.type-stockout::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--markdown); margin-right: 5px; vertical-align: 1px; }
.type-waste::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--kraft-mid); margin-right: 5px; vertical-align: 1px; }
.sumbox { display: grid; gap: 4px; }
.sum { border-collapse: collapse; width: 100%; max-width: 440px; font-variant-numeric: tabular-nums; }
.sum th { text-align: left; font-weight: 400; padding: 2px 0; }
.sum td { padding: 2px 0 2px 8px; }
.sum-note { color: var(--ink-2); font-size: 13px; }
.sum-total th, .sum-total td { border-top: 1px solid var(--ink); font-weight: 600; padding-top: 4px; }
.sum-line { color: var(--ink-2); font-size: 13px; max-width: 62ch; }
.strip-pair { display: grid; gap: 6px; margin-top: 4px; }
.strip-row { display: grid; grid-template-columns: 124px 172px 1fr; gap: 8px; align-items: center; font-size: 13px; }
.strip-k { color: var(--ink-2); }
.strip-t { color: var(--ink-2); font-size: 12px; line-height: 1.35; }

/* waterfall */
.wf { display: grid; gap: 2px; }
.wf-row { display: grid; grid-template-columns: 112px 1fr 64px; gap: 8px; align-items: center; height: 24px; outline-offset: 1px; }
.wf-row:hover { background: var(--paper); }
.wf-label { font-size: 13px; }
.wf-track { position: relative; height: 14px; border-left: 1px solid var(--line); }
.wf-bar { position: absolute; top: 0; bottom: 0; }
.wf-usual { background: var(--ink-2); }
.wf-promo { background: var(--ticket); box-shadow: inset 0 0 0 1px var(--ticket-edge); }
.wf-fest { background: var(--marigold); }
.wf-wx { background: var(--cold); }
.wf-plan { background: repeating-linear-gradient(135deg, var(--series) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--series); }
.wf-final { background: var(--ink); }
.wf-cap { background: repeating-linear-gradient(90deg, var(--ink-2) 0 1px, transparent 1px 4px); box-shadow: inset 0 0 0 1px var(--ink-2); }
.wf-row:last-child { border-top: 1px solid var(--ink); padding-top: 3px; height: 28px; font-weight: 600; }
.wf-val { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }

/* chart boxes and plots */
.cb { min-width: 0; }
.cb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.cb-title { font: 600 14px/1.3 var(--sans); }
.cb-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cb-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.seg-sm { margin-top: 0; }
.seg-sm button { height: 32px; font-size: 13px; }
.cb-note { color: var(--ink-2); font-size: 12px; margin-top: 4px; max-width: 80ch; }
.plot { width: 100%; min-width: 0; position: relative; }
.plot-chart { display: block; overflow: visible; }
.plot-chart:focus-visible { outline-offset: 4px; }
.grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.grid.zero { stroke: var(--ink-2); }
.ax { font: 600 12px/1 var(--cond); font-stretch: 92%; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.ax-title { fill: var(--ink-2); font-weight: 600; }
.xtick { stroke: var(--line-input); }
.bar { fill: var(--ink-2); fill-opacity: .55; }
.bar-so { fill: url(#hatch); fill: var(--markdown); fill-opacity: .35; }
.bar-spike { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.bar-week { fill: var(--ink-2); fill-opacity: .55; }
.gap-mark { stroke: var(--ink-2); stroke-width: 1.5; }
.band { fill: var(--series-tint); }
.line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.line.fc { stroke: var(--series); }
.line.earlier { stroke: var(--series); stroke-width: 1; stroke-dasharray: 3 2; }
.line.stock { stroke: var(--ink); stroke-width: 1.5; }
.line.like { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.line.wape { stroke: var(--series); }
.line.prev { stroke: var(--ink-2); stroke-width: 1; stroke-opacity: .7; }
.line.waste { stroke: var(--kraft); }
.line.avail { stroke: var(--series); }
.line.stockval { stroke: var(--series); }
.line.lost { stroke: var(--markdown); }
.dot.wape, .dot.avail { fill: var(--series); }
.dot.waste { fill: var(--kraft); }
.dot.prev { fill: var(--ink-2); }
.bar-over { fill: var(--kraft-mid); }
.bar-under { fill: var(--markdown); fill-opacity: .8; }
.sh.sh-promo { fill: var(--ticket-tint); }
.sh-edge.sh-promo { stroke: var(--ticket-edge); stroke-width: 1; }
.sh.sh-fest { fill: #F6E3D1; }
.sh-edge.sh-fest { stroke: var(--marigold); stroke-width: 2; }
.mark { stroke: var(--ink); stroke-width: 1; }
.mark.fest { stroke: var(--marigold); stroke-dasharray: 2 2; }
.mark.cur { stroke: var(--series); stroke-dasharray: 3 2; }
.mark-label { font: 600 12px/1 var(--cond); font-stretch: 92%; fill: var(--ink); }
.mark-label.fest { fill: var(--pongal-t); }
.end-label { font: 600 12px/1 var(--cond); font-stretch: 92%; fill: var(--ink-2); }
.end-label.fc, .end-label.stockval, .end-label.wape { fill: var(--series); }
.end-label.lost { fill: var(--markdown); }
.end-label.waste { fill: var(--kraft); }
.tick-up { fill: var(--series); }
.pt { fill: var(--surface); stroke-width: 2; }
.pt.cur { stroke: var(--ink); }
.pt.scn { stroke: var(--series); fill: var(--series); }
.pt-label { font: 600 12px/1 var(--cond); font-stretch: 92%; fill: var(--ink); }
.pt-label.scn { fill: var(--series); }
.hover-rule { stroke: var(--ink); stroke-width: 1; stroke-opacity: .35; pointer-events: none; }

/* tooltip */
.tip { position: fixed; z-index: 90; background: var(--surface); border: 1px solid var(--line-input); box-shadow: var(--float); padding: 7px 10px 8px; font-size: 13px; pointer-events: none; max-width: 300px; }
.tip-title { font-weight: 600; margin-bottom: 4px; }
.tip table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tip th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 1px 12px 1px 0; vertical-align: top; }
.tip td { text-align: right; padding: 1px 0; }

/* ---------- overlays ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(22, 23, 26, .3); z-index: 70; }
.backdrop-dialog { z-index: 80; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); z-index: 75; box-shadow: var(--float); display: flex; flex-direction: column; transform: translateX(24px); opacity: 0; transition: transform 160ms ease-out, opacity 160ms ease-out; }
.panel.open { transform: none; opacity: 1; }
.panel-wide { width: min(720px, 100vw); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.panel-title { font: 600 16px/1.3 var(--sans); outline: none; }
.panel-body { flex: 1; overflow: auto; }
.panel-body > .pane-body { padding-top: 16px; }
.panel-foot:empty { display: none; }
.panel-foot .pane-foot { position: static; }
.panel-foot > .btn { margin: 12px 20px; }
.dialog { position: fixed; z-index: 85; left: 50%; top: 12vh; transform: translateX(-50%); width: min(460px, calc(100vw - 32px)); max-height: 80vh; overflow: auto; background: var(--surface); box-shadow: var(--float); border-radius: 6px; padding: 20px 22px 18px; }
.dialog-title { font: 600 16px/1.3 var(--sans); outline: none; }
.dialog-body { margin-top: 8px; line-height: 1.45; }
.dialog-lead { color: var(--ink-2); }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.menu { position: absolute; z-index: 65; min-width: 200px; max-width: 340px; max-height: 60vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-input); box-shadow: var(--float); padding: 4px 0; animation: fade 120ms ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.menu-item { display: grid; grid-template-columns: 18px 1fr; align-items: baseline; gap: 6px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 12px 7px 8px; cursor: pointer; color: var(--ink); text-decoration: none; }
.menu-item[role="menuitem"] { grid-template-columns: 1fr; padding-left: 12px; }
.menu-item:hover, .menu-item:focus { background: var(--crate-tint); outline: none; }
.menu-item:focus-visible { box-shadow: inset 2px 0 0 var(--crate); }
.menu-item[aria-disabled="true"] { color: var(--ink-2); cursor: not-allowed; }
.menu-check .ic { color: var(--crate); }
.menu-note { grid-column: 2; color: var(--ink-2); font-size: 12px; }
.menu-item[role="menuitem"] .menu-note { grid-column: 1; }
.menu-danger { color: var(--markdown); }
.menu-sep { border-top: 1px solid var(--line); margin: 4px 0; }
.menu-head { padding: 6px 12px 2px; color: var(--ink-2); font-size: 12px; }
.menu-text { padding: 6px 12px; color: var(--ink-2); font-size: 13px; max-width: 300px; line-height: 1.4; }
.menu-user { padding: 8px 12px 6px; display: grid; gap: 1px; }
.menu-user span { color: var(--ink-2); font-size: 13px; }
.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 95; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 8px 6px 8px 12px; max-width: 460px; box-shadow: var(--float); }
.toast .btn-quiet { color: #fff; }
.toast-error { background: var(--markdown); }
.sheet-results, .panel nav { display: grid; }
.sheet-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); text-decoration: none; font-weight: 500; width: 100%; cursor: pointer; }
.sheet-link.is-current { background: var(--crate-tint); font-weight: 600; }
.sheet-h { padding: 16px 20px 6px; font: 600 13px/1.3 var(--sans); color: var(--ink-2); }
.panel .scope-sheet { padding: 16px 20px; }
.panel-body > .input { margin: 16px 20px; width: calc(100% - 40px); }

/* journey */
.journey { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 92; width: min(760px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--float); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: end; }
.journey-step { color: var(--ink-2); font-size: 13px; grid-column: 1 / -1; }
.journey-text { font-size: 15px; line-height: 1.45; max-width: 66ch; outline: none; }
.journey-btns { display: flex; gap: 6px; }
.journey-focus { outline: 2px solid var(--marigold); outline-offset: 2px; }
body.in-journey .panel { bottom: var(--jh, 0px); }
body.in-journey .page { padding-bottom: 140px; }

/* changed flash */
.flash { animation: flash 600ms ease-out; }
@keyframes flash { from { background-color: var(--ticket-tint); } to { background-color: transparent; } }

/* skeleton (still) */
.boot { padding: 0; }
.sk-split { display: grid; grid-template-columns: 56fr 44fr; min-height: calc(100vh - 92px); }
.sk-list { padding: 20px 20px 0 16px; border-right: 1px solid var(--line); }
.sk-pane { background: var(--surface); padding: 20px; }
.sk { background: var(--surface-2); }
.sk-h1 { width: 120px; height: 22px; }
.sk-h2 { width: 60%; height: 18px; }
.sk-line { height: 14px; margin-top: 10px; }
.w70 { width: 70%; } .w60 { width: 60%; } .w50 { width: 50%; }
.sk-tabs { height: 32px; margin-top: 18px; }
.sk-rows { margin-top: 18px; display: grid; gap: 2px; }
.sk-row { height: 50px; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.sk-row::before { content: ""; position: absolute; left: 12px; top: 18px; width: 40%; height: 14px; background: var(--surface-2); }
.sk-block { height: 140px; margin-top: 18px; }
.sk-block.short { height: 80px; }

/* ---------- Orders ---------- */
.ord-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.seg { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.seg button { border: 0; background: none; height: 40px; padding: 0; cursor: pointer; font-weight: 400; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }

.seg button[aria-pressed="true"] { color: var(--ink); font-weight: 650; border-bottom-color: var(--ink); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.vt-ord .vt-scroll { height: calc(100vh - var(--top) - var(--scope) - var(--concept-bar) - var(--jh, 0px) - 290px); }
.vt-ord .tbl td { height: 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 700px) { .vt-ord .tbl-v { min-width: 1240px; } .vt-ex .tbl-v { min-width: 760px; } .vt-cal .tbl-v { min-width: 980px; } .vt-acc .tbl-v { min-width: 760px; } }
col.o-item { width: auto; } col.o-n { width: 70px; } col.o-n2 { width: 104px; } col.o-v { width: 84px; } col.o-strip { width: 176px; } col.o-flags { width: 150px; } col.o-status { width: 108px; }
.strip-cell { display: inline-flex; align-items: center; gap: 8px; }
.strip-n { font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }
.l-name { font-weight: 500; }
.l-code { color: var(--ink-2); font-size: 12px; }
.ord-name { font-weight: 700; font-size: 14.5px; }
.ord-route { margin-left: 10px; }
.was { color: var(--ink-2); text-decoration: line-through; font-size: 12px; margin-right: 4px; }
.c-o-act { overflow: visible !important; }
.c-o-act .limit-note { margin-left: 8px; }
.row-order td { background: var(--wash); border-top: 1px solid var(--line-2); border-bottom-color: var(--line-2); font-weight: 500; padding-top: 13px; padding-bottom: 13px; }
.row-order:hover td { background: var(--surface-2); }
.row-order.is-sel td { background: var(--crate-tint); }
.row-order td.ord-id { font-weight: 600; }
.ord-route { color: var(--ink-2); font-weight: 400; }
.row-line td:nth-child(2) { padding-left: 28px; }
.flagset { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.flag { font-size: 12px; padding: 0 4px; border: 1px solid var(--line-input); border-radius: 2px; line-height: 18px; color: var(--ink); background: var(--surface); }
.flag-promo { background: var(--ticket); border-color: var(--ticket-edge); }
.flag-fest { border-color: var(--marigold); color: var(--pongal-t); }
.flag-plan { border-color: var(--crate); color: var(--crate); }
.flag-cap { border-color: var(--kraft); color: var(--kraft); }
.errbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; background: var(--markdown-tint); }
.errbar p { font-weight: 500; }
.limit-note { font-size: 12px; color: var(--ink-2); }
.ord-approve { height: 26px; font-size: 13px; padding: 0 10px; }
.last5 { margin-top: 6px; }

/* ---------- Item plan ---------- */
.ip-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; }
.ip-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ip-code { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ip-storepick { display: flex; align-items: center; gap: 4px; justify-self: end; }
.ip-storepick .select { max-width: 300px; }
.ip-order { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; grid-column: 1 / -1; margin-top: 2px; font-size: 15px; }
.ip-order strong { font-weight: 600; }
.ip-band { padding: 18px 0; border-bottom: 1px solid var(--line); }
.ip-toggles { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ip-toggles label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.ip-cover { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.ip-cover .strip { width: min(640px, 100%); height: 28px; }
.ip-grid-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-width: 0; gap: 28px; padding-top: 18px; }
.pgrid { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums lining-nums; background: var(--surface); font-size: 13px; }
.pgrid th, .pgrid td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.pgrid thead th { font: 600 14px/1.1 var(--cond); font-stretch: 92%; border-top: 0; border-bottom: 1px solid var(--ink); background: var(--paper); }
.pgrid thead th.cur { background: var(--crate-tint); }
.pgrid tbody th { text-align: left; font-weight: 400; color: var(--ink); background: var(--surface); position: sticky; left: 0; z-index: 1; }
.pgrid .past { color: var(--ink-2); }
.pgrid .split-l { border-left: 1px solid var(--ink); }
.pgrid .row-key th, .pgrid .row-key td { font-weight: 600; }
.pgrid .row-total td, .pgrid .row-total th { background: var(--surface-2); }
.pgrid td.edit { padding: 2px 4px; }
.pgrid td[role="gridcell"]:focus { outline: 2px solid var(--crate); outline-offset: -2px; }
.pc { display: block; width: 100%; min-width: 64px; height: 26px; border: 1px dashed var(--line-input); background: var(--surface); text-align: right; padding: 0 6px; cursor: text; font-variant-numeric: tabular-nums; }
.pc.has { border-style: solid; border-color: var(--crate); color: var(--crate); font-weight: 600; background: var(--crate-tint); }
.pc-input { width: 80px; height: 26px; text-align: right; border: 2px solid var(--crate); padding: 0 6px; font-variant-numeric: tabular-nums; }
.neg { color: var(--markdown); }
.pos-k { color: var(--kraft); }
.notes { font-size: 13px; line-height: 1.45; }
.notes h3 { margin-bottom: 6px; }
.notes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.notes li { padding-left: 12px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 1px; background: var(--ink-2); }
.ov-list { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.weekcards { display: none; }
.weekcard { border-top: 1px solid var(--line-2); background: var(--surface); padding: 8px 12px 10px; }
.weekcard.past { border-top-color: var(--line-input); }
.weekcard dl { display: grid; gap: 2px; margin-top: 6px; }
.wc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line); padding: 3px 0; }
.wc-row dt { color: var(--ink-2); }
.ip-phone-edit { display: none; }

/* ---------- What-if ---------- */
.wi { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 0; padding: 0; }
.wi-controls { padding: 20px 20px 32px 16px; border-right: 1px solid var(--line); }
.wi-results { padding: 20px 16px 48px 24px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.ctl { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.ctl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ctl-label { font-weight: 600; }
.ctl-default { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.ctl-row { display: grid; grid-template-columns: 1fr 84px; gap: 10px; align-items: center; margin-top: 8px; }
.ctl-ends { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 12px; font-family: var(--cond); font-stretch: 92%; font-weight: 600; margin-top: 2px; }
.ctl-why { color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.lt-step { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.lt-val { min-width: 72px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.wi-buttons { display: grid; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); justify-items: start; }
.wi-buttons .row { display: flex; gap: 8px; flex-wrap: wrap; }
.cmp td.chg { font-weight: 600; }
.cmp td.up-bad { color: var(--markdown); }
.cmp td.up-cost { color: var(--kraft); }
.cmp td.good { color: var(--series); }
.saved { margin-top: 28px; }
.saved ul { list-style: none; padding: 0; margin: 6px 0 0; }
.saved li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.wi-live { font-size: 15px; font-weight: 500; max-width: 72ch; }

/* ---------- Accuracy ---------- */
.report { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.report-sub { color: var(--ink-2); margin-top: 4px; }
.insights { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; max-width: 80ch; }
.insights li { font-size: 15px; line-height: 1.5; padding-left: 16px; position: relative; }
.insights li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--series); }
.headline { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; margin: 24px 0 0; border-top: 0; border-bottom: 1px solid var(--line); }
.headline > div { padding: 12px 16px 14px 0; }
.headline > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.headline dt { color: var(--ink-2); font-size: 13px; }
.headline dd { margin-top: 4px; }
.headline .delta { display: block; font-size: 13px; margin-top: 4px; color: var(--ink-2); }
.headline .delta.better { color: var(--series); }
.headline .delta.worse { color: var(--markdown); }
.rsec { margin-top: 32px; }
.rsec > h2 { margin-bottom: 4px; }
.rsec-lede { color: var(--ink-2); margin-bottom: 10px; font-size: 13px; max-width: 80ch; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.heat { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 13px; }
.heat th, .heat td { padding: 0; border: 1px solid var(--surface); }
.heat thead th { font: 600 13px/1.1 var(--cond); font-stretch: 92%; padding: 6px 4px; text-align: center; color: var(--ink-2); background: var(--paper); border: 0; border-bottom: 1px solid var(--ink); }
.heat tbody th { width: 190px; text-align: left; font-weight: 500; padding: 0 10px 0 0; white-space: nowrap; background: var(--paper); position: sticky; left: 0; }
.heat td button { width: 100%; min-width: 54px; height: 32px; border: 0; cursor: pointer; font: inherit; font-variant-numeric: tabular-nums; }
.heat td button:hover { outline: 2px solid var(--ink); outline-offset: -2px; }
.h0 { background: #F4F3F0; color: var(--ink); } .h1c { background: #E3E7EA; color: var(--ink); } .h2c { background: #B9C3CB; color: var(--ink); } .h3c { background: #5E7080; color: #fff; } .h4c { background: #2E3D4A; color: #fff; }
.heat .hna { background: var(--surface); color: var(--ink-2); }
.heat-scale { display: flex; gap: 0; align-items: center; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.heat-scale span.sw { width: 36px; height: 12px; display: inline-block; }
.heat-scale span.lab { margin: 0 8px; }

/* ---------- Calendar ---------- */
.tl-wrap { overflow-x: auto; margin-top: 16px; border-top: 1px solid var(--line-2); background: var(--surface); }
.tl { position: relative; min-width: 920px; }
.tl-head { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--ink); background: var(--paper); }
.tl-weeks { display: grid; grid-template-columns: repeat(8, 1fr); }
.tl-weeks span { font: 600 13px/1 var(--cond); font-stretch: 92%; padding: 8px 6px; border-left: 1px solid var(--line); color: var(--ink-2); }
.tl-weeks span.cur { color: var(--ink); background: var(--crate-tint); }
.tl-lane { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--line); min-height: 32px; }
.tl-lane-name { padding: 7px 10px; font-size: 13px; font-weight: 500; border-right: 1px solid var(--line); background: var(--surface); position: sticky; left: 0; z-index: 2; }
.tl-track { position: relative; }
.tl-bar { position: absolute; height: 22px; border: 1px solid var(--ticket-edge); background: var(--ticket-tint); font-size: 12px; line-height: 20px; padding: 0 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; text-align: left; color: var(--ink); border-radius: 0; }
.tl-bar.running { background: var(--ticket); }
.tl-bar.past { background: var(--surface-2); border-color: var(--line-input); color: var(--ink-2); }
.tl-bar.fest, .tl-bar.wx { overflow: visible; }
.tl-bar.fest { background: none; border: 0; border-left: 3px solid var(--marigold); color: var(--pongal-t); font-weight: 600; padding-left: 4px; }
.tl-bar.wx { background: #E2EEF5; border-color: var(--cold); color: var(--ink); }
.tl-bar:hover, .tl-bar:focus { outline: 2px solid var(--crate); outline-offset: 1px; z-index: 3; }
.tl-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--ink); z-index: 1; pointer-events: none; }
.tl-today span { position: absolute; top: 31px; left: 3px; font: 600 12px/1 var(--cond); font-stretch: 92%; background: var(--ink); color: #fff; padding: 2px 4px; }
.agenda { display: none; }
.vt-cal .vt-scroll, .vt-acc .vt-scroll, .vt-act .vt-scroll { height: auto; max-height: 560px; min-height: 0; }
.vt-cal .tbl td, .vt-act .tbl td, .vt-acc .tbl td { height: 40px; }
.vt-act .tbl td { height: auto; min-height: 40px; white-space: normal; vertical-align: top; }
.wrap-any { overflow-wrap: anywhere; }

@media (max-width: 1360px) {
  .nav-link { padding: 0 7px; }
  .org { display: none; }
  .gsearch .input { width: 200px; }
}
@media (max-width: 1180px) {
  .runline { margin-left: 0; width: 100%; }
  .gsearch .input { width: 160px; }
  .user-name { display: none; }
}
@media (max-width: 1099px) {
  .split { grid-template-columns: 1fr; }
  .worklist { border-right: 0; }
  .sk-split { grid-template-columns: 1fr; }
  .sk-pane { display: none; }
  .ip-grid-wrap { grid-template-columns: minmax(0, 1fr); }
  .wi { grid-template-columns: 280px minmax(0, 1fr); }
  .top { gap: 12px; }
  .nav-link { padding: 0 6px; font-size: 13px; }
  .gsearch { display: none; }
  .only-phone.btn-icon { display: inline-flex !important; }
}
@media (max-width: 899px) {
  .nav { display: none; }
  .only-phone { display: inline-flex !important; }
  .top-tools { gap: 4px; }
  .headline { grid-template-columns: 1fr 1fr; }
  .headline > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .headline > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .two-up { grid-template-columns: 1fr; }
  .wi { grid-template-columns: 1fr; }
  .wi-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .wi-results { padding-left: 16px; }
}
@media (max-width: 699px) {
  :root { --ctl: 44px; }
  body { font-size: 15px; }
  .top { padding: 0 8px 0 12px; gap: 6px; }
  .brand-word { font-size: 16px; }
  .btn-sm { height: 44px; }
  .btn-quiet.btn-sm { height: 44px; }
  .user-btn { display: none; }
  .scope { padding: 6px 12px; min-height: 0; }
  .scope-fields, .runline { display: none; }
  .scope-phone { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--line-input); border-radius: 2px; padding: 0 12px; text-align: left; font-weight: 500; cursor: pointer; }
  .scope-words { overflow: hidden; text-overflow: ellipsis; }
  .page, .worklist { padding: 16px 12px 40px; }
  .lede { font-size: 15px; }
  .typetabs { display: none; }
  .typeselect { display: block; flex: 0 0 38%; min-width: 0; }
  .typeselect .select { width: 100%; }
  .tb-row { gap: 6px; }
  .tb-row:first-child { flex-wrap: nowrap; }
  .search-field { flex: 1 1 0; min-width: 0; }
  .search-field .input { width: 100%; }
  .tb-fbtn { display: inline-flex; flex: none; }
  .tb-filters, .tb > .tb-row:first-child > .btn-menu, .tb-end { display: none; }
  .tb.f-open .tb-row:first-child { flex-wrap: wrap; }
  .tb.f-open .tb-filters { display: flex; width: 100%; order: 5; }
  .tb.f-open .tb-row:first-child > .btn-menu { display: inline-flex; order: 6; }
  .tb.f-open .tb-end { display: flex; margin-left: 0; width: 100%; justify-content: space-between; }
  .sb-toggle { display: inline-flex; margin: 6px 0 0 -10px; }
  .sb-fold:not(.open) .sband { display: none; }
  .grp { width: 100%; }
  .grp .select { flex: 1; }
  /* stacked cards */
  .vt .vt-scroll { height: calc(100dvh - var(--top) - var(--concept-bar) - var(--jh, 0px) - 120px); min-height: 380px; }
  .tbl-v, .tbl-v tbody, .tbl-v tr, .tbl-v td { display: block; width: 100%; }
  .tbl-v thead, .tbl-v colgroup { display: none; }
  .tbl-v .vt-spacer { display: block; }
  .tbl-v .vt-spacer td { height: 100%; }
  .tbl-v td { border: 0; padding: 0; height: auto !important; }
  .vt-ex .vt-row { height: 150px; padding: 10px 12px 10px 44px; border-bottom: 1px solid var(--line); position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "text value" "item item" "store store" "strip status"; align-content: start; gap: 4px 8px; overflow: hidden; }
  .vt-ex .c-check { position: absolute; left: 0; top: 4px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0 !important; }
  .vt-ex .c-sev { position: absolute; left: 16px; top: 46px; width: auto; }
  .vt-ex .c-value { grid-area: value; text-align: right; }
  .vt-ex .c-value span::before { content: "₹"; }
  .vt-ex .c-item { grid-area: item; }
  .vt-ex .c-item .two { flex-direction: row; gap: 6px; align-items: baseline; }
  .vt-ex .c-store { grid-area: store; color: var(--ink-2); }
  .vt-ex .c-store .two-a { font-weight: 400; color: var(--ink-2); }
  .vt-ex .c-store .two-b { display: none; }
  .vt-ex .c-text { grid-area: text; font-size: 14px; }
  .vt-ex .c-text .two-a { font-weight: 600; }
  .vt-ex .c-text .clamp1 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink); font-size: 14px; }
  .vt-ex .vt-row { grid-template-areas: "item value" "text text" "store store" "strip status"; height: 116px; }
  .vt-ex .c-strip { grid-area: strip; align-self: center; }
  .vt-ex .c-status { grid-area: status; text-align: right; }
  .vt-ex .vt-row.row-group { height: 116px; }
  .tb-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .tb-filters .btn { flex: none; }
  .bulkbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); z-index: 40; }
  .bulkbar .btn { flex: 1 1 auto; }
  .panel { width: 100vw; }
  .panel-sheet { transform: translateY(24px); }
  .panel-sheet.open { transform: none; }
  .pane-body { padding: 16px; }
  .pane-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .pane-actions .btn { flex: 1 1 calc(50% - 6px); }
  .pane-actions .btn-primary { flex-basis: 100%; }
  .strip-row { grid-template-columns: 1fr; gap: 3px; }
  .fc-head { flex-direction: column; align-items: flex-start; }
  .facts-tight { align-items: flex-start; }
  .conf-rule { left: 0; right: auto; }
  .wf-row { grid-template-columns: 96px 1fr 56px; }
  .vt-ord .vt-row { height: 112px; position: relative; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 4px 10px; padding: 10px 12px 10px 44px; border-bottom: 1px solid var(--line); overflow: hidden; }
  .vt-ord .tbl td { white-space: normal; }
  .vt-ord .c-check { position: absolute; left: 0; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0 !important; }
  .vt-ord .row-order { grid-template-areas: "route route" "value act" "status status"; background: var(--paper); }
  .vt-ord .row-order td { background: none !important; border: 0; }
  .vt-ord .c-o-route { grid-area: route; overflow: hidden; }
  .vt-ord .c-o-route .ord-route { display: block; margin: 2px 0 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vt-ord .c-o-value { grid-area: value; text-align: left !important; font-weight: 600; }
  .vt-ord .c-o-value::before { content: "₹"; }
  .vt-ord .c-o-act { grid-area: act; }
  .vt-ord .c-o-act .limit-note { display: none; }
  .vt-ord .c-o-status { grid-area: status; }
  .vt-ord .c-o-cases, .vt-ord .c-o-units { display: none !important; }
  .vt-ord .row-line { grid-template-areas: "item item" "cases value" "flags status"; }
  .vt-ord .c-l-item { grid-area: item; font-size: 14px; padding-left: 0 !important; }
  .bulkbar .btn-danger:disabled { display: none; }
  .vt-ord .c-l-cases { grid-area: cases; text-align: left !important; }
  .vt-ord .c-l-cases::after { content: " cases"; color: var(--ink-2); }
  .vt-ord .c-l-value { grid-area: value; }
  .vt-ord .c-l-value::before { content: "₹"; }
  .vt-ord .c-l-flags { grid-area: flags; }
  .vt-ord .c-l-status { grid-area: status; text-align: right; }
  .vt-ord .c-l-oh, .vt-ord .c-l-oo, .vt-ord .c-l-fc, .vt-ord .c-l-ss, .vt-ord .c-l-units, .vt-ord .c-l-strip { display: none !important; }
  .bulkbar .limit-note { display: none; }
  .bulkbar .bulk-n { display: none; }
  .bulkbar .btn { flex: 1 1 40%; font-size: 14px; padding: 0 8px; }
  .toasts { left: 8px; right: 8px; bottom: 72px; }
  .journey { grid-template-columns: 1fr; bottom: 8px; }
  .journey-btns .btn { flex: 1; }
  .dialog { top: 6vh; }
  .ip-head { grid-template-columns: minmax(0, 1fr); }
  .ip-storepick { justify-self: stretch; }
  .ip-storepick .select { flex: 1; max-width: none; }
  .headline { grid-template-columns: 1fr; }
  .headline > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .report { padding: 16px 12px 48px; }
  .heat-wrap { overflow-x: auto; }
  .tl-wrap { display: none; }
  .vt-cal .vt-row, .vt-acc .vt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow: hidden; align-content: start; }
  .vt-cal .vt-row { height: 176px; } .vt-acc .vt-row { height: 128px; }
  .vt-cal td:first-child, .vt-acc td:first-child { grid-column: 1 / -1; }
  .vt-cal td:not(:first-child)::before, .vt-acc td:not(:first-child)::before { content: attr(data-l); display: block; color: var(--ink-2); font-size: 12px; }
  .vt-cal td.num, .vt-acc td.num { text-align: left; }
  .vt-cal .vt-scroll, .vt-acc .vt-scroll { height: 70vh; max-height: none; }
  .cmp thead { display: none; }
  .cmp tr { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .cmp tbody th { grid-column: 1 / -1; border: 0; padding: 0 0 2px; }
  .cmp td { border: 0; padding: 0; text-align: left; }
  .cmp td::before { content: attr(data-l); display: block; color: var(--ink-2); font-size: 12px; }
  .act thead { display: none; }
  .act tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .act td { border: 0; padding: 0; }
  .act td[data-l="Role"] { display: none; }
  .act td[data-l="Action"], .act td[data-l="Record"], .act td[data-l="Reason"] { grid-column: 1 / -1; }
  .act td[data-l="Before"]::after { content: " to"; color: var(--ink-2); }
  .act td:empty { display: none; }
  .pgrid-scroll { display: none; }
  .weekcards { display: grid; gap: 12px; margin-top: 8px; }
  .ip-phone-edit { display: inline-flex; margin-top: 8px; }
  #pgrid-help { display: none; }
  .agenda { display: block; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .flash { outline: 1px solid var(--ticket-edge); }
}

.print-only { display: none; }

/* rework, 15 Nov */
.mark-label, .end-label, .pt-label { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.plot-chart .ax-title { paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
.mark.out { stroke: var(--markdown); stroke-dasharray: 2 2; }
.mark-label.out { fill: var(--markdown); }
.ip-stock { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 22px; }
.headline-tbl { margin-top: 22px; }
.headline-tbl tbody th { font-weight: 500; }
.headline-tbl .hl-v { font-weight: 600; font-size: 14px; }
.hl-c.better { color: var(--series); font-weight: 600; }
.hl-c.worse { color: var(--markdown); font-weight: 500; }
.cbx-hit { display: inline-grid; place-items: center; min-width: 24px; min-height: 24px; cursor: pointer; }
col.c-offer { width: auto; } col.c-n { width: 70px; } col.c-reg { width: 140px; } col.c-dates { width: 150px; } col.c-n2 { width: 104px; } col.c-conf { width: 120px; }
.scroll-hint { display: none; color: var(--ink-2); font-size: 13px; margin-top: 6px; }
@media (min-width: 700px) and (max-width: 1279px) { .scroll-hint { display: block; } }
.agenda .ag-week { margin-top: 14px; }
.agenda .ag-week .h3 { padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.agenda ul { list-style: none; margin: 0; padding: 0; }
.agenda li { border-bottom: 1px solid var(--line); }
.agenda li a { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.agenda li .ag-meta { color: var(--ink-2); font-weight: 400; font-size: 13px; }
.agenda li .ag-k { display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 1px; border: 1px solid var(--ticket-edge); background: var(--ticket-tint); }
.agenda li .ag-k.running { background: var(--ticket); } .agenda li .ag-k.past { background: var(--surface-2); border-color: var(--line-input); } .agenda li .ag-k.fest { background: var(--marigold); border-color: var(--marigold); } .agenda li .ag-k.wx { background: var(--cold); border-color: var(--cold); }
body.in-journey .toasts { bottom: 150px; }
@media print { .report .two-a, .tbl td, .tbl th { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; } }
@media (max-width: 699px) {
  .chip { height: 44px; padding: 0 10px 0 14px; border-radius: 22px; }
  .seg button { height: 44px; }
  .seg-sm button { height: 44px; }
  .menu-item { min-height: 44px; display: grid; align-content: center; }
  .cbx-hit { width: 44px; height: 44px; }
  .vt-ex .c-check, .vt-ord .c-check { top: 0; }
  .vt-ex .vt-row { grid-template-columns: minmax(0, 1fr) auto; }
  .vt-ex .vt-row > td { min-width: 0; }
  .vt-ex .c-value { white-space: nowrap; }
  .vt-ex .c-item .two { flex-wrap: wrap; row-gap: 0; }
  .vt-ex .c-item .two-a { white-space: normal; }
  .vt-ex .strip { width: 100%; max-width: 160px; }
  .vt-ord .vt-row { grid-template-columns: minmax(0, 1fr) auto; }
  .act a, .tbl td a, .tbl th a, .pane-links a, .problem-also a, .store-list a, .saved a, .heat td button { display: inline-flex; align-items: center; min-height: 44px; }
  .heat td button { width: 100%; justify-content: center; }
  .act tr { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; }
  .act td[data-l="Who"] { text-align: right; font-weight: 500; }
  .act .act-t { display: inline-flex; align-items: center; min-height: 24px; }
  .tbl-stack thead { display: none; }
  .tbl-stack tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .tbl-stack tbody th { grid-column: 1 / -1; border: 0; padding: 0; }
  .tbl-stack td { border: 0; padding: 0; text-align: left !important; }
  .tbl-stack td:nth-child(2) { grid-column: 1 / -1; color: var(--ink-2); }
  .tbl-stack td:not(:nth-child(2))::before { content: attr(data-l); display: block; color: var(--ink-2); font-size: 12px; }
  .headline-tbl thead { display: none; }
  .headline-tbl tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .headline-tbl tbody th { grid-column: 1 / -1; border: 0; padding: 0; }
  .headline-tbl td { border: 0; padding: 0; text-align: left !important; }
  .headline-tbl td:last-child { grid-column: 1 / -1; }
  .headline-tbl td:not(:last-child)::before { content: attr(data-l); display: block; color: var(--ink-2); font-size: 12px; font-weight: 400; }
  .dialog .input, .dialog .select { width: 100%; }
}
.dialog .field .input, .dialog .field .select { width: 100%; }
.dialog .stepper .input { width: 96px; }
@media (max-width: 699px) {
  .skip:focus { min-height: 44px; display: inline-flex; align-items: center; }
  .skip { padding: 12px 14px; }
  .select-sm { height: 44px; font-size: 15px; }
  .btn-icon { min-width: 44px; }
  .seg button { min-width: 48px; }
  .conf { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
  .ord-approve { height: 44px; padding: 0 14px; }
  .cb-check, .ctl-default { display: flex; align-items: center; gap: 8px; min-height: 44px; }
  input[type="range"] { height: 44px; }
}

.fade-host { position: relative; }
.fade-host.fade-r::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 36px; pointer-events: none; background: linear-gradient(to right, rgba(246, 244, 238, 0), var(--paper)); border-right: 2px solid var(--line-input); }
.tl-bar { z-index: 2; }
.tl-bar.fest { background: var(--surface); }
.tl-today { z-index: 1; }
@media (min-width: 700px) and (max-width: 1279px) {
  .vt-cal .tbl-v { min-width: 1020px; }
  .vt-cal td { white-space: nowrap; }
  col.c-reg { width: 108px; } col.c-dates { width: 150px; } col.c-n2 { width: 84px; } col.c-conf { width: 104px; } col.c-n { width: 58px; }
}
.tl-outer { margin-top: 16px; } .tl-outer .tl-wrap { margin-top: 0; } @media (max-width: 699px) { .tl-outer { display: none; } }
@media (min-width: 700px) and (max-width: 1279px) {
  .vt-ord .tbl-v { min-width: 1400px; }
  .act { min-width: 900px; }
  .act th:nth-child(3), .act td:nth-child(3) { display: none; }
  .act td { overflow-wrap: normal; }
  .act td.act-time, .act td[data-l="Before"] { white-space: nowrap; }
}
/* Exceptions summary band */
.lede-one { max-width: none; }
.sband { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px 24px; margin-top: 14px; padding: 12px 0 14px; border-top: 0; border-bottom: 1px solid var(--line); }
.sb { min-width: 0; }
.sb-bar { grid-column: 1 / -1; }
.sb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.sb-title { font: 600 13px/1.3 var(--sans); }
.sb-note { color: var(--ink-2); font-size: 12px; margin-top: 4px; }
.sb-total { display: flex; align-items: baseline; gap: 8px; color: var(--ink-2); font-size: 13px; margin-bottom: 6px; }
.fig-md { font-size: 24px; color: var(--ink); }
.stack { display: flex; height: 22px; gap: 1px; background: var(--surface); }
.seg-t { border: 0; padding: 0; height: 100%; cursor: pointer; min-width: 3px; }
.seg-t:hover, .seg-t.is-on { outline: 2px solid var(--ink); outline-offset: 1px; position: relative; z-index: 1; }
.st-stockout { background: var(--markdown); } .st-waste { background: var(--kraft-mid); } .st-promo { background: var(--ticket); box-shadow: inset 0 0 0 1px var(--ticket-edge); }
.st-festival { background: var(--marigold); } .st-weather { background: var(--cold); } .st-supplier { background: var(--ink-2); } .st-drift { background: var(--series); } .st-new { background: var(--crate-tint); box-shadow: inset 0 0 0 1px var(--crate); }
.stack-labels { position: relative; height: 18px; margin-top: 3px; }
.stack-l { position: absolute; top: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 1px; border-left: 1px solid var(--ink-2); padding: 0 4px; font-variant-numeric: tabular-nums; }
.stack-l strong { font-weight: 600; }
.stack-rest { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.sw-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; vertical-align: 0; }
.sbg-wrap { overflow-x: auto; }
.sbg { table-layout: fixed; }
.sbg thead th { font-size: 12px; padding: 2px 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbg tbody th { width: 52px; font-size: 12px; padding-right: 6px; }
.sbg td button { height: 26px; min-width: 0; font-size: 12px; font-weight: 600; }
.sbg td button.is-on { outline: 2px solid var(--ink); outline-offset: -2px; }
.sbg-empty { display: block; height: 26px; background: var(--surface); }
/* signal tags in the list */
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; border: 1px solid var(--line-2); border-left-width: 2px; border-radius: 3px; background: var(--surface); color: var(--ink); font-weight: 500; }
.tag-plain { border: 0; padding: 0 2px; color: var(--ink-2); font-weight: 400; background: none; }
.tag-stockout { border-left-color: var(--markdown); } .tag-waste { border-left-color: var(--kraft-mid); } .tag-promo { border-left-color: var(--ticket-edge); background: var(--ticket-tint); }
.tag-festival { border-left-color: var(--marigold); } .tag-weather { border-left-color: var(--cold); } .tag-supplier { border-left-color: var(--ink-2); } .tag-drift { border-left-color: var(--series); } .tag-new { border-left-color: var(--crate); }
.grp-toggle .tags { margin-left: 6px; }
@media (max-width: 699px) {
  .lede-one { white-space: normal; }
  .sband { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 12px 0; margin: 12px -12px 0; padding-left: 12px; padding-right: 12px; scroll-padding-left: 12px; }
  .sband > .sb { flex: 0 0 calc(100vw - 48px); scroll-snap-align: start; max-width: 340px; border-right: 1px solid var(--line); padding-right: 12px; }
  .sbg td button { height: 44px; }
  .sbg-empty { height: 44px; }
  .seg-t { min-width: 6px; }
  .stack { height: 44px; }
  .vt-ex .c-text .tags { gap: 4px; }
}
@media (max-width: 699px) {
  .sband { align-items: flex-start; }
  .sband { overflow-y: hidden; align-items: flex-start; }
}
.sbg-tall { display: none; }
.sbg-tall tbody th { width: 76px; }
@media (max-width: 699px) {
  .sbg-wide { display: none; }
  .sbg-tall { display: table; }
  .sbg-tall td button, .sbg-tall .sbg-empty { height: 36px; }
}

.stack-keys { display: none; }
@media (max-width: 699px) {
  .stack-labels, .stack-rest { display: none; }
  .stack { height: 18px; }
  .stack .seg-t { pointer-events: none; }
  .stack-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 8px; }
  .stack-key { display: flex; align-items: center; gap: 6px; min-height: 44px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 13px; padding: 0; cursor: pointer; }
  .stack-key.is-on { font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
  .stack-key-v { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-2); }
}

/* ---------- Today: the decision desk ---------- */
.page.page-today { padding: 0; max-width: none; }
.page-today .num { text-align: inherit; }
.page-today .hero { background: var(--wash); border-bottom: 1px solid var(--line); }
.page-today .hero-in { max-width: 1400px; margin: 0 auto; padding: 26px 32px 24px; display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; gap: 40px; align-items: end; }
.page-today .lbl { font-size: 15px; color: var(--ink-2); }
.page-today .big { font: 700 66px/1 var(--sans); font-stretch: 112%; letter-spacing: -.02em; margin: 8px 0 6px; white-space: nowrap; }
.page-today .big small { font-size: .48em; font-weight: 600; margin-left: 6px; }
.page-today .s { font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.page-today .spark .t h2 { font-size: 17px; font-weight: 650; font-stretch: 106%; }
.page-today .spark .t p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.page-today .plot-wrap { margin-top: 10px; }
.page-today .plot svg { display: block; width: 100%; height: 112px; overflow: visible; }
.page-today .sp-fest { fill: var(--pongal-soft); }
.page-today .sp-area { fill: var(--markdown-tint); }
.page-today .sp-line { fill: none; stroke: var(--markdown); stroke-width: 2.5; stroke-linejoin: round; }
.page-today .sp-base { stroke: var(--ink); stroke-width: 1; }
.page-today .ax { position: relative; height: 18px; font: 400 13px/1.3 var(--sans); color: var(--ink-3); margin-top: 6px; }
.page-today .ax > * { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.page-today .ax > .first { transform: none; }
.page-today .ax > .last { transform: translateX(-100%); }
.page-today .ax b { color: var(--pongal-t); font-weight: 650; }
.linkbtn { background: none; border: 0; padding: 0; margin-top: 8px; min-height: 24px; color: var(--ink-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
.page-today .spark-tbl { max-height: 220px; margin-top: 8px; }
.page-today .spark-tbl .tbl { background: transparent; }

.page-today .cta p { font-size: 15px; color: var(--ink-2); }
.page-today .cta p b { display: block; color: var(--ink); font-size: 20px; font-stretch: 92%; }
.btn.btn-big { height: 48px; padding: 0 22px; font-size: 16px; font-weight: 700; }
.page-today .cta .btn-big { width: 100%; margin-top: 12px; }
.page-today .cta small { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.page-today .cta small b { color: var(--markdown); }
.page-today .cta small a { color: var(--ink); font-weight: 600; }
.page-today .cta .why { color: var(--ink); }
.page-today .sent { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 8px; justify-items: start; font-size: 14px; }

.page-today .desk { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.page-today .list { padding: 22px 32px 40px; border-right: 1px solid var(--line); min-width: 0; }
.page-today .lh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.page-today .lh h2, .page-today .dh h2 { font-size: 19px; font-weight: 700; font-stretch: 112%; }
.page-today .lh a { font-size: 14px; color: var(--ink-2); }
.page-today .seg { gap: 18px; margin: 12px 0 6px; }
.page-today .seg button { font-size: 14px; height: 38px; }
.page-today .colhead { text-align: right; font-size: 13px; color: var(--ink-3); margin: 4px 0 -2px; }
.page-today .rows { list-style: none; padding: 0; margin: 0; }
.page-today .rows li { border-bottom: 1px solid var(--line); }
.page-today .tp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 64px; padding: 12px 10px; margin: 0 -10px; text-decoration: none; color: var(--ink); }
.page-today .tp-row:hover { background: var(--wash); }
.page-today .tp-row[aria-current] { background: var(--crate-tint); }
.page-today .tp-row:focus-visible { outline-offset: -2px; }
.page-today .rn { font-size: 16px; font-weight: 650; display: block; }
.page-today .rd { font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.page-today .sw { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ink-3); }
.page-today .sw-fest { background: var(--marigold); } .page-today .sw-loss { background: var(--markdown); } .page-today .sw-sup { background: var(--sup); }
.page-today .rv { text-align: right; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.page-today .tp-row[aria-current] .rv { font-weight: 700; }
.page-today .chev { display: none; color: var(--ink-3); }
.page-today .empty { padding: 24px 0; color: var(--ink-2); }

.page-today .detail { padding: 22px 32px 40px; min-width: 0; }
.det .dh { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.det .dh h2 { font-size: 25px; line-height: 1.15; font-weight: 700; font-stretch: 112%; }
.det .dh p { font-size: 15px; color: var(--ink-2); margin-top: 4px; max-width: 60ch; line-height: 1.4; }
.det .dh p + p { font-size: 14px; color: var(--ink-3); }
.det .badge { flex: none; background: var(--surface-2); color: var(--ink); font-size: 14px; font-weight: 700; padding: 3px 9px; border-radius: 4px; }
.det .badge-festival { background: var(--pongal-soft); color: var(--pongal-t); }
.det .badge-stockout { background: var(--markdown-tint); color: #8E2612; }
.det .facts, .det .facts dd { text-align: left; }
.det .facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: inherit; }
.det .facts dt { font-size: 14px; color: var(--ink-2); }
.det .facts dd { font-size: 27px; font-weight: 700; font-stretch: 112%; margin-top: 2px; font-variant-numeric: tabular-nums; }
.det .facts dd small { font-size: 15px; font-weight: 500; color: var(--ink-2); font-stretch: 100%; }
.det .facts dd.l { color: var(--markdown); }
.det .wk { margin-top: 18px; }
.det .wk h3 { font-size: 15px; font-weight: 650; display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.det .wk h3 span { font-weight: 400; color: var(--ink-3); }
.det .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.det .legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.det .lg-stock { background: var(--line-2); } .det .lg-order { background: #8C5A80; }
.det .lg-short { background: repeating-linear-gradient(135deg, var(--markdown) 0 3px, #D6644C 3px 5px); }
.det .lg-usual { height: 0 !important; border-top: 2px dashed var(--ink); vertical-align: 3px !important; }
.det .lg-fest { background: var(--pongal-soft); outline: 1px solid var(--marigold); }
.det .cols { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 180px; align-items: end; margin-top: 26px; border-bottom: 1px solid var(--ink); }
.det .col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.det .col.fest { background: var(--pongal-soft); box-shadow: 0 0 0 5px var(--pongal-soft); }
.det .stack { display: flex; flex-direction: column; min-height: 0; }
.det .stack > div { flex: none; }
.det .b-stock { background: var(--line-2); }
.det .b-order { background: #8C5A80; }
.det .b-short { background: repeating-linear-gradient(135deg, var(--markdown) 0 5px, #D6644C 5px 9px); }
.det .u { position: absolute; left: -3px; right: -3px; border-top: 2px dashed var(--ink); z-index: 1; }
.det .q { position: absolute; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.det .cl { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 6px; }
.det .cl b { display: block; color: var(--ink); font-weight: 650; }
.det .cl .p b { color: var(--pongal-t); }
.det .story { margin-top: 12px; font-size: 14px; color: var(--ink-2); max-width: 62ch; line-height: 1.45; }
.det .fix, .panel-foot .fix { display: flex; align-items: center; gap: 12px 20px; margin-top: 22px; flex-wrap: wrap; }
.fix .link { font-size: 15px; font-weight: 600; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.panel-foot .fix { margin: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.panel-foot .fix .btn-big { flex: 1 1 auto; }
.panel .det { padding: 16px 20px 24px; }
a.btn { text-decoration: none; }
a.btn-primary, a.btn-primary:hover { color: #fff; }

@media (max-width: 1099px) {
  .page-today .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .page-today .cta { grid-column: 1 / -1; }
}
@media (max-width: 959px) {
  .page.page-today { padding-bottom: 110px; }
  .page-today .hero-in { grid-template-columns: 1fr; gap: 14px; padding: 18px 16px; }
  .page-today .desk { grid-template-columns: 1fr; }
  .page-today .list { border-right: 0; padding: 18px 16px 24px; }
  .page-today .chev { display: block; }
  .page-today .colhead { padding-right: 28px; }
  .page-today .tp-row { grid-template-columns: minmax(0, 1fr) auto 16px; }
  .page-today .cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: center; box-shadow: 0 -6px 20px rgba(22, 23, 26, .08); }
  .page-today .cta p b { font-size: 17px; }
  .page-today .cta .btn-big { margin: 0; width: auto; grid-column: 2; grid-row: 1 / span 2; }
  .page-today .cta small { margin: 2px 0 0; }
  .page-today .cta .why, .page-today .sent { grid-column: 1 / -1; }
  .page-today .sent { margin-top: 8px; padding-top: 8px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .page-today .big { font-size: 44px; margin: 4px 0; }
  .page-today .plot svg { height: 64px; }
  .page-today .ax .ox { display: none; }
  .page-today .s { font-size: 14px; }
  body.in-journey .page-today .cta { bottom: var(--jh, 0px); }
}
@media (max-width: 699px) {
  .det .dh h2 { font-size: 21px; }
  .det .facts { gap: 12px 18px; }
  .det .facts dd { font-size: 21px; }
  .det .wk h3 { flex-direction: column; gap: 2px; }
  .det .cols, .det .cl { gap: 5px; }
  .det .cols { height: 150px; }
  .det .q { font-size: 11px; }
  .page-today .seg { gap: 16px; }
  .page-today .seg button { height: 44px; }
}

/* boot: the Today frame with its chart space held, painted before the model is ready */
.sk-hero { background: var(--wash); border-bottom: 1px solid var(--line); }
.sk-hero-in { max-width: 1400px; margin: 0 auto; padding: 26px 32px 24px; display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; gap: 40px; align-items: end; min-height: 214px; }
.sk-lbl { font-size: 15px; color: var(--ink-2); }
.sk-big { height: 58px; width: 220px; margin: 12px 0 10px; }
.sk-chart { height: 150px; }
.sk-cta { height: 120px; }
.sk-hero .sk { background: #ECEAE5; }
@media (max-width: 959px) {
  .sk-hero-in { grid-template-columns: 1fr; padding: 18px 16px; gap: 14px; min-height: 0; }
  .sk-cta { display: none; }
  .sk-chart { height: 90px; }
  .sk-split { grid-template-columns: 1fr; }
  .sk-pane { display: none; }
}

@media (max-width: 959px) {
  .page-today .wide-only { display: none; }
}

/* Orders: labelled figures instead of a prose header; cover as a count with a shortage mark */
.ord-stats { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 10px; }
.ord-stats dt { font-size: 13px; color: var(--ink-2); }
.ord-stats dd { font-size: 18px; font-weight: 650; text-align: left; margin-top: 1px; }
.row-line td { color: var(--ink); }
.cov { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.cov-n { font-variant-numeric: tabular-nums; font-weight: 600; }
.cov-out { color: var(--markdown); font-weight: 600; font-size: 12.5px; }
.cov-out::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--markdown); margin-right: 5px; vertical-align: 1px; }

/* nav: primary screens plus More; scope: one compact line */
.nav-more { background: none; border: 0; cursor: pointer; font: inherit; }
.nav-more .ic { width: 14px; }
.nav-more .ic svg { width: 14px; height: 14px; }
@media (min-width: 700px) {
  .scope { min-height: 40px; padding: 4px 16px; gap: 12px; }
  .scope-fields { gap: 8px; }
  .scope .select { height: 30px; font-size: 13.5px; max-width: 220px; }
  .scope .week-pick .btn { height: 30px; width: 30px; }
  .scope .scope-label, .runline { font-size: 13px; }
}

/* detail: store and takeaway first, context folded away */
.det .lead { font-size: 16px; color: var(--ink); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.det .lead strong { font-weight: 650; }
.det .more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; color: var(--ink-2); }
.det .more summary { cursor: pointer; color: var(--ink); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.det .more p { margin-top: 6px; max-width: 62ch; line-height: 1.45; }
.det .facts { margin-top: 14px; padding-bottom: 14px; }
.det .wk { margin-top: 14px; }
.det .cols { height: 150px; margin-top: 22px; }
.det .fix { margin-top: 16px; }
.panel-foot .fix-sheet { flex-wrap: nowrap; gap: 16px; box-shadow: 0 -6px 16px rgba(22, 23, 26, .06); }
.panel-foot .fix-sheet .btn-big { flex: 1 1 auto; }
.panel-foot .fix-sheet .link { flex: none; font-size: 15px; }
/* hero: tighter so the opened problem fits on a laptop screen */
@media (min-width: 960px) {
  .page-today .hero-in { padding: 18px 32px 16px; gap: 32px; }
  .page-today .big { font-size: 58px; margin: 6px 0 4px; }
  .page-today .plot svg { height: 84px; }
  .page-today .plot-wrap { margin-top: 6px; }
  .page-today .list, .page-today .detail { padding-top: 18px; }
  .page-today .tp-row { min-height: 58px; padding: 9px 10px; }
}
.det .lg-row { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; margin-top: 6px; }
.det .lg-row .legend { margin-top: 0; }
.det .lg-row .linkbtn { margin-top: 0; }
@media (min-width: 960px) {
  .page-today .measure .hm { display: none; }
  .det .facts dd { font-size: 24px; }
}
.det .dh .lead { color: var(--ink); font-size: 16px; }
.det .more summary { list-style: none; gap: 10px; }
.det .more summary::-webkit-details-marker { display: none; }
.det .more summary::before { content: ""; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(-45deg); flex: none; }
.det .more[open] summary::before { transform: rotate(45deg); }
.vt-scroll { position: relative; } /* keeps visually hidden text inside the scroller */

/* touch targets: at least 24 px everywhere, 44 px on phones */
.page-today .lh a, .page-today .cta small a { display: inline-flex; align-items: center; min-height: 24px; }
.seg-t { min-height: 24px; }
@media (max-width: 959px) {
  .page-today .lh a, .page-today .cta small a { min-height: 44px; }
  .page-today .cta small { display: flex; flex-wrap: wrap; align-items: center; margin-top: 0; }
  .page-today .cta small a { margin-left: 4px; }
}
@media (max-width: 699px) { .seg-t { min-height: 44px; } }
