/* ══════════════════════════════════════════════════════════════════════
   Enterprise POS — shared UI stylesheet (admin console + auth pages)
   Brand colours are injected at runtime from branding settings into
   --brand / --brand-ink. Everything else is fixed for legibility.
   ══════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --brand: #C8102E;
  --brand-ink: #FFFFFF;         /* text on brand */
  --brand-deep: #9E0C24;        /* pressed / hover on brand */
  --ink: #231F1C;               /* oven charcoal */
  --ink-2: #4A4541;
  --muted: #6E6862;
  --paper: #FFFFFF;
  --stone: #F4F3F1;
  --line: #E4E1DD;
  --line-strong: #CFCAC4;
  --ok: #1D7A3A;
  --ok-bg: #E7F3EA;
  --warn: #8A5A00;
  --warn-bg: #FBF1DC;
  --bad: #B3261E;
  --bad-bg: #FCEBE9;
  --focus: #1F5FD6;

  --r: 6px;
  --r-lg: 10px;
  --band-h: 56px;
  --nav-w: 220px;

  --f-ui: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  /* type scale (1.2 minor third from 15px) */
  --t-xs: 12.5px; --t-sm: 13.5px; --t-md: 15px; --t-lg: 18px; --t-xl: 22px; --t-2xl: 30px; --t-3xl: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-ui); font-size: var(--t-md); line-height: 1.45;
  color: var(--ink); background: var(--stone); -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink); font-weight: 600; font-size: var(--t-sm); cursor: pointer;
  white-space: nowrap; transition: background-color .12s, border-color .12s;
}
.btn:hover { border-color: var(--ink-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-danger { color: var(--bad); border-color: #E7B7B2; }
.btn-danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn-quiet { border-color: transparent; background: transparent; }
.btn-quiet:hover { background: var(--stone); border-color: transparent; }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: var(--t-xs); }
.btn-block { width: 100%; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > label, .field > .label { font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); }
.field .hint { font-size: var(--t-xs); color: var(--muted); }
.field .err { font-size: var(--t-xs); color: var(--bad); }
.input, .select, .textarea {
  width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--paper);
}
.textarea { min-height: 72px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--bad); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.check { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: var(--t-sm); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.fieldset { border: 0; padding: 0; margin: 4px 0 16px; }
.fieldset > legend { font-family: var(--f-display); font-weight: 600; font-size: var(--t-lg); padding: 0; margin-bottom: 8px; }

/* ── Status & chips ──────────────────────────────────────────────────── */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-sm); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.is-ok::before { background: var(--ok); }
.status.is-warn::before { background: #C98A00; }
.status.is-bad::before { background: var(--bad); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  background: var(--stone); border: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-2); white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-sample { background: var(--warn-bg); color: var(--warn); border-color: #EBD3A2; }

/* ── Alerts / notices ────────────────────────────────────────────────── */
.notice { padding: 11px 14px; border-radius: var(--r); font-size: var(--t-sm); border: 1px solid var(--line); background: var(--paper); margin-bottom: 14px; }
.notice.is-bad { background: var(--bad-bg); border-color: #F0C4BF; color: var(--bad); }
.notice.is-ok { background: var(--ok-bg); border-color: #BFDDC7; color: var(--ok); }
.notice.is-warn { background: var(--warn-bg); border-color: #EBD3A2; color: var(--warn); }

/* ══ Auth pages (sign in, reset) ═════════════════════════════════════ */
.auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.auth-band { background: var(--brand); color: var(--brand-ink); height: var(--band-h); display: flex; align-items: center; padding: 0 24px; }
.brandmark { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: .2px; line-height: 1; }
.auth-main { display: grid; place-items: start center; padding: 9vh 16px 40px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-3xl); line-height: 1.05; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 26px; }
.auth-card .btn-primary { min-height: 48px; font-size: var(--t-md); margin-top: 4px; }

/* ══ App shell ═══════════════════════════════════════════════════════ */
.band {
  position: sticky; top: 0; z-index: 30; height: var(--band-h);
  background: var(--brand); color: var(--brand-ink);
  display: flex; align-items: center; gap: 18px; padding: 0 16px 0 20px;
}
.band .brandmark { min-width: calc(var(--nav-w) - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 6px 0 12px;
  border-radius: var(--r); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
}
.scope label { font-size: var(--t-sm); opacity: .9; }
.scope select {
  background: transparent; border: 0; color: var(--brand-ink); font-weight: 600; font-size: var(--t-md);
  height: 34px; padding: 0 6px; cursor: pointer; max-width: 260px;
}
.scope select option { color: var(--ink); }
.band .spacer { flex: 1; }
.band .who { font-size: var(--t-sm); text-align: right; line-height: 1.2; }
.band .who small { display: block; opacity: .85; font-size: var(--t-xs); }
.band .btn-band { background: transparent; color: var(--brand-ink); border-color: rgba(255,255,255,.45); min-height: 34px; }
.band .btn-band:hover { background: rgba(255,255,255,.12); border-color: var(--brand-ink); }

.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: calc(100vh - var(--band-h)); }
.nav { background: var(--paper); border-right: 1px solid var(--line); padding: 14px 0; }
.nav a {
  display: flex; align-items: center; min-height: 42px; padding: 0 20px; color: var(--ink-2);
  text-decoration: none; font-weight: 500; border-left: 4px solid transparent;
}
.nav a:hover { background: var(--stone); color: var(--ink); }
.nav a[aria-current="page"] { border-left-color: var(--brand); color: var(--ink); font-weight: 600; background: var(--stone); }
.nav .nav-group { margin: 16px 20px 6px; font-size: var(--t-xs); color: var(--muted); }

.main { padding: 26px 28px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-2xl); line-height: 1; margin: 0; }
.page-head .lead { color: var(--muted); font-size: var(--t-sm); margin: 6px 0 0; max-width: 70ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .input, .toolbar .select { width: auto; min-width: 200px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .nav { display: flex; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); position: sticky; top: var(--band-h); z-index: 20; }
  .nav a { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; padding: 0 14px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--brand); background: transparent; }
  .nav .nav-group { display: none; }
  .band .brandmark { min-width: 0; font-size: 21px; }
  .band .who { display: none; }
  .main { padding: 18px 16px 50px; }
}
@media (max-width: 560px) {
  .band { gap: 8px; padding: 0 10px; }
  .band .brandmark { display: none; }
  .band .spacer { display: none; }
  .scope { flex: 1; min-width: 0; padding: 0 2px 0 6px; }
  .scope label { display: none; }
  .scope select { max-width: none; width: 100%; min-width: 0; font-size: var(--t-sm); }
  .band .btn-band { padding: 0 8px; }
  .page-head .actions { margin-left: 0; }
}

/* ── Tables ──────────────────────────────────────────────────────────── */
.table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
table.data th {
  text-align: left; font-weight: 600; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: var(--paper); position: sticky; top: 0;
}
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr.is-clickable { cursor: pointer; }
table.data tbody tr.is-clickable:hover td { background: #FAFAF9; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .primary { font-weight: 600; color: var(--ink); }
table.data .secondary { color: var(--muted); font-size: var(--t-xs); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: var(--t-lg); margin-bottom: 4px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* ── Drawer (right) ──────────────────────────────────────────────────── */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(35,31,28,.38); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 51;
  background: var(--paper); display: flex; flex-direction: column;
  box-shadow: -12px 0 32px rgba(35,31,28,.18); animation: drawer-in .18s ease-out;
}
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-xl); margin: 0; flex: 1; line-height: 1.1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.drawer-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.drawer-section h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--t-lg); margin: 0 0 10px; }
.zone-row { display: grid; grid-template-columns: 1fr 90px 100px auto; gap: 6px; margin-bottom: 6px; align-items: center; }
.zone-head { font-size: var(--t-xs); color: var(--muted); margin-bottom: 4px; }
@media (max-width: 560px) { .zone-row { grid-template-columns: 1fr 1fr; } }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; font-size: var(--t-sm); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.row-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item > .select, .row-item > .input { width: auto; flex: 0 1 320px; min-width: 0; }
@media (max-width: 600px) { .row-item:has(> .select) { flex-wrap: wrap; } .row-item > .select { flex: 1 1 100%; } }

/* ── Dialog & toast ──────────────────────────────────────────────────── */
dialog.confirm { border: 0; border-radius: var(--r-lg); padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(35,31,28,.3); }
dialog.confirm::backdrop { background: rgba(35,31,28,.45); }
dialog.confirm .body { padding: 20px 22px 8px; }
dialog.confirm h2 { font-family: var(--f-display); font-size: var(--t-xl); margin: 0 0 8px; }
dialog.confirm p { margin: 0 0 12px; color: var(--ink-2); }
dialog.confirm .foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 18px; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: var(--r); font-size: var(--t-sm); max-width: 90vw; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.toast.is-bad { background: var(--bad); }

/* ── Specific bits ───────────────────────────────────────────────────── */
.perm-group { margin-bottom: 14px; }
.perm-group h4 { margin: 0 0 4px; font-size: var(--t-sm); color: var(--ink-2); text-transform: capitalize; }
.perm-group .check small { color: var(--muted); }
.swatch { width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--line-strong); flex: none; }
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type=color] { width: 48px; height: 40px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); }
.secret-box { display: flex; gap: 8px; align-items: stretch; }
.secret-box .input { font-family: ui-monospace, Consolas, monospace; font-size: var(--t-xs); }
.hours-row { display: grid; grid-template-columns: 56px 1fr 1fr 80px; gap: 8px; align-items: center; margin-bottom: 6px; font-size: var(--t-sm); }
.diff { font-size: var(--t-xs); background: var(--stone); border-radius: var(--r); padding: 8px 10px; white-space: pre-wrap; word-break: break-word; margin: 6px 0 0; }

/* ── menu admin ─────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 18px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.menu-cat { margin-bottom: 26px; }
.menu-cat.is-off { opacity: .6; }
.menu-cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.menu-cat-head h2 { font-family: var(--f-display); font-size: var(--t-xl); margin: 0; }
.menu-cat-head .grow { flex: 1; }
.primary .chip { margin-left: 6px; vertical-align: 1px; }
.sample-note { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.size-row { display: grid; grid-template-columns: 1fr 120px auto; gap: 6px; margin-bottom: 6px; align-items: center; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 12px; }
.slot-edit { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; margin-bottom: 10px; background: var(--stone); }
.slot-top { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.slot-top .input:first-child { flex: 1; }
.pick-list { max-height: 220px; overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px; }
.pick-cat { font-size: var(--t-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 2px; }
details.more { margin: 12px 0; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.sub-h { font-family: var(--f-display); margin: 22px 0 8px; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--stone) 30%); display: flex; justify-content: flex-end; }
@media (max-width: 560px) { .size-row { grid-template-columns: 1fr 90px; } .size-row .btn { grid-column: 1 / -1; justify-self: start; } }

/* ── get started ────────────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 820px; }
.step-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--stone); color: var(--ink); border: 1px solid var(--line-strong); }
.step-card.is-done .step-n { background: var(--ok); color: #fff; border-color: var(--ok); }
.step-card.is-warn .step-n { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.step-body h2 { font-size: var(--t-md); margin: 0 0 2px; }
.step-body h2 small { color: var(--muted); font-weight: 500; }
.step-body p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.step-card.is-done .step-body h2 { color: var(--muted); }
a.btn[aria-disabled="true"] { opacity: .5; }
@media (max-width: 560px) { .step-card { grid-template-columns: 36px 1fr; } .step-card .btn { grid-column: 2; justify-self: start; } }
a.btn { text-decoration: none; }
.menu-cat table.data { table-layout: fixed; }
.menu-cat table.data th:nth-child(1) { width: 38%; }
.menu-cat table.data th:nth-child(2) { width: 27%; }
.menu-cat table.data th:nth-child(4) { width: 110px; }
@media (max-width: 760px) { .menu-cat table.data { table-layout: auto; } .menu-cat table.data th, .menu-cat table.data td:nth-child(3) { display: none; } }

/* ── reports ────────────────────────────────────────────────────────────── */
.report-filters { gap: 12px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.seg { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--paper); font-weight: 600; cursor: pointer; }
.seg[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.report-filters .range { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.report-filters .range .input { min-width: 0; width: 150px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 10px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.kpi-label { color: var(--muted); font-size: var(--t-sm); }
.kpi-value { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--muted); font-size: var(--t-xs); margin-top: 4px; }
.kpi.lead { border-top: 4px solid var(--brand); }
.exceptions { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 0 0 18px; font-size: var(--t-sm); }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.report-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; min-width: 0; margin-bottom: 14px; }
.report-grid .report-block { margin-bottom: 0; }
.report-block.wide { grid-column: 1 / -1; }
.report-block h2 { font-family: var(--f-display); font-size: var(--t-lg); margin: 0 0 10px; }
.report-block .table-wrap { border: 0; box-shadow: none; }
table.data.compact td, table.data.compact th { padding-top: 7px; padding-bottom: 7px; }
.shares { display: grid; gap: 12px; }
.share-top { display: flex; justify-content: space-between; gap: 10px; font-size: var(--t-sm); }
.share-top b { font-variant-numeric: tabular-nums; }
.share-track { height: 8px; background: var(--stone); border-radius: 4px; margin: 5px 0 3px; overflow: hidden; }
.share-bar { height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.share-sub { color: var(--muted); font-size: var(--t-xs); }
.chart-box { position: relative; }
.colchart { width: 100%; height: auto; display: block; overflow: visible; }
.colchart .grid { stroke: var(--line); stroke-width: 1; }
.colchart .base { stroke: var(--line-strong); stroke-width: 1; }
.colchart .tick { fill: var(--muted); font-size: 11px; font-family: var(--f-ui); }
.colchart .bar { fill: var(--brand); }
.colchart .hit { fill: transparent; cursor: default; outline: none; }
.colchart .hit:hover, .colchart .hit:focus-visible { fill: rgba(35,31,28,.05); }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: var(--r); padding: 6px 10px; font-size: var(--t-xs); pointer-events: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.chart-tip .muted { opacity: .75; }
.axis-note { color: var(--muted); font-size: var(--t-xs); text-align: center; margin-top: 2px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .report-grid { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .band, .nav, .no-print, .toasts { display: none !important; }
  .shell { display: block !important; }
  body { background: #fff; }
  .report-block, .kpi { break-inside: avoid; }
}

/* ── expenses & inventory ───────────────────────────────────────────────── */
tr.is-voided td { color: var(--muted); }
td.strike { text-decoration: line-through; }
td.neg { color: var(--bad); }
td.pos { color: var(--ok); }
.move-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 6px; margin-bottom: 6px; align-items: center; }
.move-row:has(> input + input) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
@media (max-width: 560px) { .move-row, .move-row:has(> input + input) { grid-template-columns: 1fr 1fr; } .move-row select { grid-column: 1 / -1; } }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.update-banner { background: var(--warn-bg); color: var(--warn); padding: 8px 20px; font-size: var(--t-sm); font-weight: 600; border-bottom: 1px solid var(--line); }
.update-banner a { color: inherit; }
.update-ready { border-top: 4px solid var(--brand); }
