/* Overview — owner command center. Tokens only. */
.ov-scope{margin-bottom:var(--sp-4);padding:16px 18px}
.ov-scope-row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.ov-mtx{max-height:420px;overflow:auto}
.ov-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--sp-4);margin-bottom:var(--sp-5)}
.ov-span4{grid-column:span 4}
.ov-span6{grid-column:span 6}
.ov-span8{grid-column:span 8}
.ov-span12{grid-column:span 12}
.ov .card{margin-bottom:0}

.ov-tiny{font-size:11px;color:var(--ink-faint);margin-top:4px;line-height:1.35}
/* One entrance per visit (overview.js settle): the second paint onwards must not replay the fade-up. */
.anim .ov.ov-settled .card,.anim .ov.ov-settled .kpi{animation:none}
/* How customers paid: one column per tender currency, never a total across them. */
.ov-tenders{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:var(--sp-4)}
.ov-tender .ov-curr{margin-bottom:6px}

.ov-act{display:flex;flex-direction:column;gap:8px}
.ov-act a,.ov-act button{display:flex;align-items:flex-start;gap:12px;text-align:left;width:100%;
  background:var(--surface-2);border:0.5px solid var(--line);border-radius:var(--r-md);padding:12px 14px;
  font:inherit;color:inherit;cursor:pointer;text-decoration:none}
.ov-act a:hover,.ov-act button:hover{background:var(--surface);box-shadow:var(--sh-1)}
.ov-act .dot{width:8px;height:8px;border-radius:50%;margin-top:6px;flex:none;background:var(--info-vivid)}
.ov-act .dot.critical{background:var(--sev-critical)}
.ov-act .dot.warn{background:var(--sev-warn)}
.ov-act .dot.good{background:var(--sev-good)}
.ov-act .ttl{font-weight:650;font-size:13.5px;color:var(--ink-strong);letter-spacing:-0.01em}
.ov-act .msg{font-size:12.5px;color:var(--ink-muted);margin-top:2px;line-height:1.4}
.ov-act .go{margin-left:auto;color:var(--ink-faint);font-size:18px;line-height:1;align-self:center}

.ov-curr{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--ink-muted);background:var(--surface-3);border-radius:var(--r-pill);padding:3px 8px}
.ov-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0;border-bottom:0.5px solid var(--line)}
.ov-row:last-child{border-bottom:0}
.ov-row .name{font-weight:590;color:var(--ink)}
.ov-row .num{font-variant-numeric:tabular-nums;font-weight:650;color:var(--ink-strong)}
.ov-row .muted{font-size:11.5px}
.ov-bar{height:6px;border-radius:var(--r-pill);background:var(--surface-3);margin-top:6px;overflow:hidden}
.ov-bar i{display:block;height:100%;background:var(--brand-deep);border-radius:inherit;max-width:100%}

.ov-valstrip{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-3)}
.ov-val{background:var(--surface-2);border-radius:var(--r-md);padding:12px 14px}
.ov-val .lab{font-size:11px;color:var(--ink-muted);font-weight:600;text-transform:uppercase;letter-spacing:.03em}
.ov-val .val{font-size:18px;font-weight:700;letter-spacing:-0.03em;margin-top:4px;font-variant-numeric:tabular-nums}

.ov-empty{text-align:center;padding:var(--sp-8) var(--sp-5)}
.ov-empty h3{font-size:20px;margin-bottom:8px}
.ov-note{font-size:12.5px;color:var(--ink-muted);line-height:1.5;margin:0}

.ov-gate{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:var(--sp-4)}
.ov-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:var(--r-pill);
  background:var(--surface);box-shadow:var(--sh-1);font-size:12px;font-weight:590;color:var(--ink)}
.ov-pill b{font-variant-numeric:tabular-nums}
.ov-pill.is-ok{color:var(--ok)}
.ov-pill.is-warn{color:var(--warn)}
.ov-pill.is-danger{color:var(--danger)}

@media(max-width:1024px){
  .ov-span4,.ov-span6,.ov-span8{grid-column:span 12}
  .ov-valstrip{grid-template-columns:1fr}
}


/* Profit privacy toggle — the board is read on a shop floor, and margin is the one number that must
   not be legible over a shoulder. Tokens only (lint_css.js forbids colour literals outside tokens.css). */
.kpi .k-label { justify-content: space-between; }   /* the profit eye sits at the label's end */
.ov-eye {
  border: 0; background: none; padding: 2px; margin: -2px;
  color: var(--ink-faint); cursor: pointer; line-height: 0; border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.ov-eye:hover { color: var(--ink); background: var(--surface-3); }
.ov-eye:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ov-eye svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ov-hidden { color: var(--ink-faint); letter-spacing: .12em; user-select: none; }
.ov-unit { font-size: var(--fs-sm); color: var(--ink-muted); font-weight: 400; }

/* Sales-by-hour with a staff-coverage overlay. Inline SVG on purpose: the page runs under
   script-src 'self', and the rest of the dashboard's charts are hand-rolled the same way. */
.fc-wrap { width: 100%; overflow-x: auto; }
.fc { width: 100%; min-width: 520px; height: auto; display: block; }
.fc-bar { fill: var(--chart-1); opacity: .85; }
.fc-bar:hover { opacity: 1; }
.fc-line { fill: none; stroke: var(--accent-strong); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fc-dot { fill: var(--accent-strong); }
.fc-base { stroke: var(--line-strong); stroke-width: 1; }
.fc-x { font-size: 11px; fill: var(--ink-faint); font-variant-numeric: tabular-nums; }
.fc-y { font-size: 11px; fill: var(--ink-faint); font-variant-numeric: tabular-nums; }
.fc-y2 { font-size: 11px; fill: var(--accent-strong); font-variant-numeric: tabular-nums; }

/* ---- Hierarchy -------------------------------------------------------------------------------
   Every card used to sit at one visual weight, so a 19-card board had no reading order: the number
   the page exists for ranked the same as a pipeline counter. Three levers, no new colours:
   named sections, a lead tier on the KPI row, and a quieter surface for supporting groups. */
.ov-sec { margin-bottom: var(--sp-6); }
.ov-sec:last-child { margin-bottom: 0; }
.ov-sec .ov-grid { margin-bottom: 0; }
.ov-sec .section-head { margin: 0 2px var(--sp-3); }

/* Supporting groups sit on the page ground with a hairline instead of a raised card, so the
   primary section keeps the only elevation on screen. */
.ov-sec.is-quiet > .ov-grid > .card {
  box-shadow: none;
  border: 0.5px solid var(--line);
  background: var(--surface-2);
}
.ov-sec.is-quiet .section-head h2 { color: var(--ink-muted); font-weight: 700; }

/* The two figures the board exists for are the one tile's `lead` (styles.css .kpi.is-lead, Stage 3d). */

/* ---- Right now: the live board (pages/today.js) ----------------------------------------------------------------
   Colour says state and nothing else: red only for "might need more staff" and for a new-season line sold below its
   rule, amber for what needs a look, green for covered. The one moving thing on the page is the red pulse, and
   reduced motion stills it. Tokens only. */
.lv .section-head { align-items: center; }
.lv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px;
  font-weight: 650; background: var(--surface); box-shadow: var(--sh-1); color: var(--ink-muted); white-space: nowrap; }
.lv-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.lv-pill.is-ok { color: var(--ok); }
.lv-pill.is-ok::before { background: var(--ok-vivid); }
.lv-pill.is-info { color: var(--info); }
.lv-pill.is-info::before { background: var(--info-vivid); }
.lv-pill.is-warn { color: var(--warn); }
.lv-pill.is-warn::before { background: var(--warn-vivid); }
.lv-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: var(--sp-3); border-radius: var(--r-lg);
  background: var(--danger-soft); border: 1px solid var(--danger-line); color: var(--danger); font-size: 13px; line-height: 1.45; }
.lv-banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.lv-protected { display: flex; align-items: center; gap: 8px; padding: 9px 14px; margin-bottom: var(--sp-3); border-radius: var(--r-md);
  background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--ok); font-size: 12.5px; }
.lv-protected svg { width: 16px; height: 16px; flex: none; }
.lv-protected.is-idle { background: var(--surface-2); border-color: var(--line); color: var(--ink-muted); }
.lv-season { margin-bottom: var(--sp-3); border: 1px solid var(--danger-line); }
.lv-shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-3); }
.lv-shop { position: relative; padding: 16px 18px; border-top: 3px solid var(--line); min-width: 0; }
.lv-shop.is-ok { border-top-color: var(--ok-vivid); }
.lv-shop.is-warn { border-top-color: var(--warn-vivid); background: var(--warn-wash); }
.lv-shop.is-danger { border-top-color: var(--danger-vivid); background: var(--danger-wash); }
.lv-shop.is-quiet { border-top-color: var(--line-strong); }
.lv-shop.is-danger::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--sev-critical);
  opacity: 0; pointer-events: none; animation: badge-pulse 1.6s var(--ease) infinite; }
.lv-shop-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lv-shop-h h3 { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 0; min-width: 0; }
.lv-shop-h h3 svg { width: 15px; height: 15px; flex: none; color: var(--ink-muted); }
.lv-net { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink-strong);
  margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.lv-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 0.5px solid var(--line); font-size: 12.5px; color: var(--ink-muted); }
.lv-row b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.lv-people { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 6px 0 2px; font-size: 12px; color: var(--ink); }
.lv-people em { font-style: normal; color: var(--ink-faint); }
.lv-gauge { margin-top: 8px; font-size: 11.5px; color: var(--ink-muted); }
.lv-gauge .vbar { margin-bottom: 4px; }
.lv-state { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 650; color: var(--ink-muted); }
.lv-state svg { width: 15px; height: 15px; }
.lv-shop.is-danger .lv-state { color: var(--danger); }
.lv-shop.is-warn .lv-state { color: var(--warn); }
.lv-shop.is-ok .lv-state { color: var(--ok); }
.lv-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.lv-col { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 12px 14px; border-top: 3px solid var(--line); min-width: 0; }
.lv-col.is-danger { border-top-color: var(--danger-vivid); }
.lv-col.is-warn { border-top-color: var(--warn-vivid); }
.lv-col.is-ok { border-top-color: var(--ok-vivid); }
.lv-col.is-info { border-top-color: var(--info-vivid); }
.lv-col-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 6px; }
.lv-col-h svg { width: 14px; height: 14px; }
.lv-col-h b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); }
.lv-sig { padding: 6px 0; border-top: 0.5px solid var(--line); }
.lv-sig .ttl { font-size: 12.5px; font-weight: 650; color: var(--ink); }
.lv-sig .msg { font-size: 12px; color: var(--ink-muted); line-height: 1.4; }
.lv-empty { padding: 14px 18px; }
.lv-vs { margin: 6px 0 2px; }
.lv-vs .lv-row { border-bottom: 0; padding-bottom: 3px; }
.lv-low { margin-top: 8px; padding: 8px 10px; border-radius: var(--r-md); background: var(--warn-wash); border: 1px solid var(--warn-line);
  font-size: 12px; color: var(--ink); line-height: 1.45; }
/* The sold-out note is buttons since 2026-09-27 (pages/drill.js): each opens the size's details. 32 px targets. */
.lv-low :is(.lv-low-h, .lv-low-i, .lv-low-more) { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 32px; margin: 0;
  padding: 2px 0; border: 0; background: transparent; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.lv-low .lv-low-h { font-weight: 650; color: var(--warn); }
.lv-low-h svg { width: 14px; height: 14px; flex: none; }
.lv-low-go { margin-left: auto; font-size: 16px; line-height: 1; }
.lv-low .lv-low-i { justify-content: space-between; border-top: 0.5px solid var(--warn-line); }
.lv-low-n { min-width: 0; overflow-wrap: anywhere; }
.lv-low .lv-low-i:hover .lv-low-n, .lv-low .lv-low-h:hover span:first-of-type { text-decoration: underline; }
.lv-low .lv-low-more { width: auto; font-weight: 650; color: var(--warn); text-decoration: underline; }
.lv-low :is(.lv-low-h, .lv-low-i, .lv-low-more):focus-visible { outline: 2px solid var(--info-strong); outline-offset: 2px; border-radius: 4px; }
.lv-low em { flex: none; font-style: normal; color: var(--ink-muted); }
.lv-sig-go { margin-top: 4px; }
@media (max-width: 1024px) { .lv-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lv-board { grid-template-columns: 1fr; } .lv-pill { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .lv-shop.is-danger::after { animation: none; opacity: .6; } }
