/* Scout Coffee Dashboard — design system
   Editorial, after the HoneyCo Buying Index: serif text, warm near-white ground,
   rules instead of boxes, one deep green accent, brick for warnings, gold as a
   highlight. Dark mode is the same tokens redefined. Legacy token names below
   (--bg, --surface, --border, --text …) alias the new ones so older markup keeps
   working while views are migrated. */

:root {
  --ground: #FAFAF8;
  --panel: #FFFFFF;
  --panel-2: #F6F3EB;
  --ink: #1A1712;
  --ink-soft: #524A3D;
  --ink-faint: #8A8069;
  --rule: #E7E0D2;
  --rule-soft: #F1ECE1;
  --accent: #38563C;
  --accent-deep: #294331;
  --warn: #8B382A;
  --gold: #D4820C;
  /* Store colors: validated store palette, never reused for categories or status */
  --loc-foothill: #2D6A9F;
  --loc-garden: #C4602E;
  --loc-morro: #0E8C76;
  --loc-bakery: #8A5BA0;
  --accent-bg: #EAF0E9;
  --warn-bg: #F6E7E2;
  --gold-bg: #FBF0DF;

  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --sidebar-width: 220px;

  /* legacy aliases */
  --bg: var(--ground);
  --surface: var(--panel);
  --border: var(--rule);
  --text: var(--ink);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-soft);
  --text-muted: var(--ink-faint);
  --label: var(--ink-faint);
  --positive: var(--accent);
  --negative: var(--warn);
  --warning: var(--gold);
  --positive-bg: var(--accent-bg);
  --negative-bg: var(--warn-bg);
  --warning-bg: var(--gold-bg);
  --hover-bg: var(--panel-2);
  --active-bg: var(--rule-soft);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #100E0B;
    --panel: #1B1712;
    --panel-2: #221D17;
    --ink: #F2ECDD;
    --ink-soft: #B2A892;
    --ink-faint: #7F7664;
    --rule: #38322A;
    --rule-soft: #2C2721;
    --accent: #85AC86;
    --accent-deep: #9DBE9C;
    --warn: #CB715D;
    --gold: #F4A833;
    --loc-foothill: #4A8BC4;
    --loc-garden: #CC6A35;
    --loc-morro: #1E9C84;
    --loc-bakery: #9A6DB3;
    --accent-bg: #1E2A1F;
    --warn-bg: #2E1C18;
    --gold-bg: #2E2415;
  }
}

/* ═══════ RESET & BASE ═══════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  background: var(--ground);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ═══════ TYPE UTILITIES ═══════ */
.eyebrow,
.section-label, .chart-title, .kpi-label, .nav-label, .card-header, .fn-label,
.footnotes-title, .fn-policy-title, .stat .cap {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.mono, .dateline { font-family: var(--mono); }
.sans { font-family: var(--sans); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.nowrap form { display: inline; }
.table-wrap + .form-card, .data-table + .form-card { margin-top: 28px; }

/* ═══════ LAYOUT ═══════ */
.layout { display: flex; min-height: 100vh; }

/* ═══════ SIDEBAR ═══════ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--ground);
  border-right: 1px solid var(--rule);
  padding: 28px 0 20px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-logo { text-decoration: none; padding: 0 22px 20px; display: flex; flex-direction: row; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); margin: 0 14px 22px 0; }
.sidebar-logo img, .logo-img { display: block; height: auto; max-width: 100%; }
.sidebar-logo img { width: 84px; }
.logo-img { width: 120px; margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .sidebar-logo img, .logo-img { filter: invert(1) brightness(.95); } }
.sidebar-logo .mark { display: none; }
.sidebar-logo .name { font-family: var(--serif); font-style: italic; font-size: 20px; letter-spacing: -.01em; color: var(--ink); line-height: 1.1; }
.sidebar-logo .sub { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); }

.nav-section { padding: 0 14px 0 0; margin-bottom: 22px; }
.nav-label { padding: 0 22px; margin-bottom: 8px; font-size: 10px; letter-spacing: .16em; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 22px 7px 20px;
  border-left: 2px solid transparent;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.nav-item:hover { color: var(--ink); }
.nav-item.active { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }

.nav-icon { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ink-faint); }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { color: var(--accent); }
.nav-icon svg, svg.nav-icon { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.6; fill: none; }

.nav-sub { margin: 2px 0 6px 20px; padding-left: 0; border-left: 1px solid var(--rule); display: flex; flex-direction: column; }
.nav-subitem {
  display: block;
  padding: 5px 14px 5px 22px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.nav-subitem:hover { color: var(--ink); }
.nav-subitem.active { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
.nav-item.parent { color: var(--ink); }
.nav-bottom { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule); margin-right: 14px; }
.nav-signout { color: var(--ink-faint); }

.nav-user { gap: 10px; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rule); background: var(--panel-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.nav-user-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.nav-user-name { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user-role { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

/* ═══════ MAIN ═══════ */
.main { flex: 1; min-width: 0; padding-block: 36px 72px; padding-inline: 48px; max-width: 1180px; }

/* ═══════ MASTHEAD (page header) ═══════ */
.mast { border-bottom: 3px double var(--ink); padding-bottom: 16px; margin-bottom: 30px; }
.mast .kick { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 14px; }
.mast .kick .eyebrow a { color: var(--ink-faint); text-decoration: none; }
.mast .kick .eyebrow a:hover { color: var(--ink-soft); }
.mast .pub { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.01em; line-height: 1.12; text-wrap: balance; }
.mast .pub b { font-style: normal; font-weight: 700; }
.mast .pub-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dateline { font-size: 12px; color: var(--ink-faint); margin-top: 10px; }
.dateline b { color: var(--ink-soft); font-weight: 600; }

/* Arrow pager (prev / next day or week) */
.pager { display: inline-flex; gap: 0; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.pager a { text-decoration: none; }
.pager a button, .week-nav button {
  background: var(--ground);
  border: 0;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.pager a + a button { border-left: 1px solid var(--rule); }
.pager a button:hover, .week-nav button:hover { background: var(--panel-2); color: var(--ink); }

/* Legacy page headers (kept so untouched views read right) */
.week-nav { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 3px double var(--ink); }
.week-arrows { display: inline-flex; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.week-arrows a { text-decoration: none; }
.week-arrows a + a button { border-left: 1px solid var(--rule); }
.week-title h1, .page-header h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.01em; line-height: 1.12; color: var(--ink); }
.week-title p, .page-subtitle { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-top: 6px; }
.page-header { margin-bottom: 26px; padding-bottom: 16px; border-bottom: 3px double var(--ink); }

/* ═══════ SECTION LABELS ═══════ */
.section-label { margin: 34px 0 12px; padding-top: 14px; border-top: 1px solid var(--rule); }
.section-label:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.section-header { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 12px; padding-top: 14px; border-top: 1px solid var(--rule); }
.section-header h2 { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.section-divider { height: 1px; background: var(--rule); margin: 30px 0; }

/* ═══════ TAKEAWAY (the sentence a chart proves) ═══════ */
.takeaway, .read {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  margin: 0 0 18px;
  max-width: 62ch;
}
.takeaway b { font-style: normal; font-weight: 700; }
.takeaway.neutral { border-left-color: var(--ink-faint); }
.takeaway.down { border-left-color: var(--warn); }

/* ═══════ STAT BAR (big numbers) ═══════ */
.statbar, .kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0 0 30px;
}
.statbar.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.statbar.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat, .kpi-card {
  padding: 4px 0 10px;
  border-top: 1px solid var(--rule);
  min-width: 0;
}
.stat .cap, .kpi-label { display: block; margin: 10px 0 6px; }
.stat .big, .kpi-value {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.stat .big sub, .kpi-value sub { font-size: .38em; font-weight: 400; color: var(--ink-faint); vertical-align: baseline; margin-left: 2px; }
.kpi-changes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.kpi-change { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.kpi-change.up { color: var(--accent); }
.kpi-change.down { color: var(--warn); }
.kpi-change.flat { color: var(--ink-faint); }
.kpi-sub { font-family: var(--sans); font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }
.kpi-spark { height: 28px; margin-top: 8px; display: flex; align-items: flex-end; gap: 2px; }
.kpi-spark div { flex: 1; background: var(--rule); border-radius: 1px; }
.kpi-spark div:last-child { background: var(--accent); }

/* ═══════ FIGURES (charts) ═══════ */
.chart-card, .par-card, .card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  padding: 16px 0 6px;
  margin: 0 0 22px;
}
.chart-card.no-rule { border-top: 0; padding-top: 0; }
.chart-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.chart-title { display: block; }
.chart-meta { font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.chart-meta .value { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); }
.figure { position: relative; }
.figure.h-48 { height: 48px; } .figure.h-56 { height: 56px; } .figure.h-80 { height: 80px; } .figure.h-120 { height: 120px; } .figure.h-160 { height: 160px; } .figure.h-200 { height: 200px; } .figure.h-240 { height: 240px; } .figure.h-280 { height: 280px; } .figure.h-320 { height: 320px; }
.chart-legend { display: flex; gap: 16px; font-family: var(--sans); font-size: 12px; color: var(--ink-soft); flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chart-legend .dot.faint { background: var(--rule); }
.chart-legend .dot.accent { background: var(--accent); }
.dot[data-loc="Foothill"] { background: var(--loc-foothill); }
.dot[data-loc="Garden St"] { background: var(--loc-garden); }
.dot[data-loc="Morro Bay"] { background: var(--loc-morro); }
.dot[data-loc="Bakery"] { background: var(--loc-bakery); }
.chart-legend .dot.gold { background: var(--gold); }
.chart-note { font-family: var(--sans); font-size: 11.5px; color: var(--ink-faint); margin-top: 8px; }

/* Two-up */
.donut-row, .two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; margin-bottom: 8px; }
.donut-card { margin-bottom: 0; }

/* CSS bar chart (legacy) */
.daily-chart { display: flex; gap: 16px; align-items: flex-end; height: 140px; padding: 0 4px; }
.day-group { flex: 1; display: flex; flex-direction: column; align-items: center; }
.day-bars { display: flex; gap: 3px; align-items: flex-end; height: 120px; width: 100%; }
.day-bars .bar { flex: 1; border-radius: 3px 3px 0 0; }
.day-label { font-family: var(--sans); font-size: 11.5px; color: var(--ink-faint); margin-top: 8px; }

/* ═══════ LOCATION ROWS ═══════ */
.loc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-bottom: 10px; }
.loc-card { background: transparent; border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 12px 0 14px; cursor: default; }
.loc-card:hover { border-color: var(--rule); box-shadow: none; }
a.loc-card, .loc-card[href] { cursor: pointer; text-decoration: none; display: block; }
a.loc-card:hover .loc-name { color: var(--accent-deep); }
.loc-name { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); display: flex; justify-content: space-between; }
.loc-name .arrow { color: var(--ink-faint); }
.loc-revenue { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--ink); margin: 10px 0 8px; }
.loc-meta { font-family: var(--sans); font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }
.loc-meta b { color: var(--ink-soft); font-weight: 600; }

/* ═══════ PILLS / TOGGLES / TABS ═══════ */
.loc-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.loc-pills { margin-bottom: 22px; }
.loc-pill, .tab-btn {
  padding: 5px 12px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: var(--ground);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.loc-pill:hover, .tab-btn:hover { border-color: var(--ink-faint); color: var(--ink); }
.loc-pill.active, .tab-btn.active { background: var(--ink); color: var(--ground); border-color: var(--ink); box-shadow: none; }
/* Segmented control (.loc-toggles > .loc-toggle): one row, thin border, the
   pressed segment filled in ink, the rest ghost. Buttons carry aria-pressed. */
.loc-toggles { display: inline-flex; flex-wrap: nowrap; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; background: var(--ground); max-width: 100%; }
.loc-toggle {
  padding: 4px 11px;
  border: 0;
  border-left: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.loc-toggle:first-child { border-left: 0; }
.loc-toggle:hover { color: var(--ink); background: var(--panel-2); }
.loc-toggle.active, .loc-toggle[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.loc-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.loc-toggles + .loc-toggles { margin-left: 10px; }

/* Ranked bar list (replaces donuts with more than five parts) */
.bar-list { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 12.5px; }
.bar-list li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(40px, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid var(--rule-soft); }
.bar-list li:first-child { border-top: 0; }
.bar-list .bl-label { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-list .bl-track { height: 10px; }
.bar-list .bl-bar { display: block; height: 10px; border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-list .bl-val { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bar-list .bl-val i { font-style: normal; color: var(--ink-faint); margin-left: 6px; display: inline-block; min-width: 3ch; }
.bar-list li.other .bl-label, .bar-list li.other .bl-val { color: var(--ink-faint); }

/* Donut with an HTML legend in fixed category order */
.donut-legend-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 20px; align-items: center; }
.donut-legend { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 12.5px; }
.donut-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 8px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--rule-soft); }
.donut-legend li:first-child { border-top: 0; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; align-self: center; }
.donut-legend .dl-label { color: var(--ink-soft); }
.donut-legend .dl-val { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.donut-legend .dl-pct { color: var(--ink-faint); font-variant-numeric: tabular-nums; text-align: right; min-width: 3.2ch; }
.donut-legend li.other .dl-label { color: var(--ink-faint); }
@media (max-width: 560px) { .donut-legend-row { grid-template-columns: 1fr; } }

.tab-switch { display: flex; gap: 6px; margin-bottom: 26px; width: fit-content; background: transparent; padding: 0; border-radius: 0; }

/* ═══════ TABLES ═══════ */
.par-table, .data-table, .price-table, table.ftbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.par-table th, .data-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.par-table th.day, .par-table th.text-center, .data-table th.text-center { text-align: center; }
.par-table th.text-right, .data-table th.text-right { text-align: right; }
.par-table td, .data-table td {
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  vertical-align: middle;
}
.par-table td:last-child, .data-table td:last-child, .par-table th:last-child, .data-table th:last-child { padding-right: 0; }
.par-table tr:last-child td, .data-table tr:last-child td { border-bottom: 0; }
.par-table tbody tr:hover td, .data-table tbody tr:hover td { background: var(--panel-2); }
.item-name-cell { font-weight: 600; color: var(--ink); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.data-table .muted, .muted { color: var(--ink-faint); }
.table-wrap { overflow-x: auto; }

.par-cell { text-align: center; font-weight: 600; padding: 6px 4px; border-radius: 3px; }
.par-cell .projected { font-size: 14px; }
.par-cell .current { font-size: 11px; font-weight: 400; color: var(--ink-faint); }
.par-up { background: var(--gold-bg); color: var(--gold); }
.par-same { background: var(--accent-bg); color: var(--accent); }
.par-down { background: var(--rule-soft); color: var(--ink-soft); }

/* ═══════ BADGES ═══════ */
.badge, .match-badge, .status-badge.status-warning {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-red, .match-badge-discrepancy { background: var(--warn-bg); color: var(--warn); }
.badge-yellow, .match-badge-partial { background: var(--gold-bg); color: var(--gold); }
.badge-green, .match-badge-full { background: var(--accent-bg); color: var(--accent); }
.badge-neutral, .match-badge-amount_only, .match-badge-cc_only { background: var(--rule-soft); color: var(--ink-soft); }
.status-badge { font-family: var(--sans); font-size: 13px; }
.status-badge.status-ok { color: var(--accent); }
.status-badge.status-warning { background: var(--gold-bg); color: var(--gold); }

/* ═══════ ITEM CARDS (sellout detail) ═══════ */
.item-card { background: transparent; border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 14px 0; margin: 0; cursor: default; }
.item-card:hover { border-color: var(--rule); box-shadow: none; }
.item-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.item-card-name { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.item-card-badges { display: flex; gap: 6px; align-items: center; }
.item-card-meta { font-family: var(--sans); font-size: 11.5px; color: var(--ink-faint); }
.item-card-body { display: grid; grid-template-columns: 180px 1fr; gap: 20px; }

.hourly-bars { display: flex; gap: 2px; align-items: flex-end; height: 44px; }
.hourly-bars .hbar { flex: 1; border-radius: 2px 2px 0 0; min-width: 0; }
.hourly-labels { display: flex; gap: 2px; margin-top: 3px; }
.hourly-labels span { flex: 1; text-align: center; font-family: var(--sans); font-size: 9px; color: var(--ink-faint); }

.dow-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow-head { text-align: center; font-family: var(--sans); font-size: 10.5px; color: var(--ink-faint); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-bottom: 4px; }
.dow-cell { text-align: center; padding: 6px 2px; border-radius: 3px; font-family: var(--sans); }
.dow-cell .sold { font-size: 14px; font-weight: 700; }
.dow-cell .par { font-size: 11px; opacity: .7; }
.dow-red { background: var(--warn-bg); color: var(--warn); }
.dow-yellow { background: var(--gold-bg); color: var(--gold); }
.dow-green { background: var(--accent-bg); color: var(--accent); }

.rec-line { margin-top: 10px; font-family: var(--serif); font-size: 14px; color: var(--ink-soft); padding: 8px 12px; background: var(--panel-2); border-radius: 0 3px 3px 0; border-left: 2px solid var(--gold); }
.rec-line strong { color: var(--ink); }
.rec-green { border-left-color: var(--accent); }

.trend-area { height: 100px; margin-top: 8px; position: relative; overflow: hidden; }
.trend-line { position: absolute; bottom: 0; left: 0; right: 0; }

/* ═══════ ACTION BOX (the one allowed box) ═══════ */
.action { background: var(--panel-2); border: 1px solid var(--rule); border-radius: 4px; padding: 18px 20px; margin: 22px 0; }
.action .label { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; }
.action p { margin: 0; font-family: var(--serif); font-size: 15.5px; color: var(--ink); }
.action.setup ol { font-family: var(--sans); font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; padding-left: 20px; margin: 10px 0 0; }
.action.setup ol strong { color: var(--ink); }
.env-block { font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--ink-soft); background: var(--ground); border: 1px solid var(--rule); border-radius: 3px; padding: 12px 14px; margin-top: 12px; overflow-x: auto; }
.env-block b { color: var(--accent-deep); font-weight: 600; }
.stat .figure { margin-top: 8px; }

/* ═══════ FORMS & BUTTONS ═══════ */
.form-card { background: transparent; border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 18px 0 6px; max-width: 520px; }
.form-card h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row label { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.form-row > div { font-size: 15px; color: var(--ink); }
.form-row input, .form-row select, .data-table input, .data-table select {
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 13.5px;
  background: var(--panel);
  color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .data-table input:focus, .data-table select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.data-table input, .data-table select { padding: 5px 8px; font-size: 12.5px; }
.data-table input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.btn {
  padding: 8px 14px;
  border-radius: 3px;
  border: 1px solid var(--ink-soft);
  background: transparent;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.3;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--panel-2); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn-primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-danger { color: var(--warn); border-color: var(--warn); }
.btn-danger:hover { background: var(--warn-bg); }
.data-table .btn { padding: 5px 10px; font-size: 12px; }

.notice { padding: 10px 14px; border-radius: 0 3px 3px 0; font-family: var(--serif); font-size: 14.5px; margin-bottom: 16px; background: var(--panel-2); border-left: 2px solid var(--ink-faint); color: var(--ink); }
.notice-ok { border-left-color: var(--accent); }
.notice-err { border-left-color: var(--warn); }
.notice small { font-family: var(--sans); font-size: 11.5px; color: var(--ink-faint); }
.temp-password { font-family: var(--mono); font-size: 15px; background: var(--gold-bg); color: var(--ink); padding: 6px 10px; border-radius: 3px; display: inline-block; margin: 4px 0; letter-spacing: .04em; }
.diff-pre { font-family: var(--mono); font-size: 11px; white-space: pre-wrap; background: var(--panel-2); padding: 6px 8px; border-radius: 3px; max-width: 360px; color: var(--ink-soft); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 18px; }
.filters .form-row { margin: 0; }

/* ═══════ LOGIN ═══════ */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh; background: var(--ground); padding: 40px 16px 12vh; }
.login-card { width: 100%; max-width: 340px; }
.login-head { text-align: center; margin-bottom: 32px; }
.login-logo { display: block; width: 148px; height: auto; margin: 0 auto 26px; }
@media (prefers-color-scheme: dark) { .login-logo { filter: invert(1) brightness(.95); } }
.login-title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.25; letter-spacing: -.005em; color: var(--ink-soft); margin: 0; padding-top: 22px; border-top: 1px solid var(--rule); }
.login-title b { font-style: normal; font-weight: 700; color: var(--ink); }
.login-error { background: var(--warn-bg); border-left: 2px solid var(--warn); color: var(--ink); padding: 10px 14px; border-radius: 0 3px 3px 0; font-family: var(--sans); font-size: 14px; line-height: 1.4; margin-bottom: 18px; }
.login-label { display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.login-input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 16px; /* 16px keeps iOS Safari from zooming on focus */
  background: var(--panel);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 16px;
}
.login-input:hover { border-color: var(--ink-faint); }
.login-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.login-input::placeholder { color: var(--ink-faint); }
.login-button {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 8px;
  background: var(--ink);
  color: var(--ground);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.login-button:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.login-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.login-foot { margin: 28px 0 0; text-align: center; font-family: var(--sans); font-size: 12px; line-height: 1.6; color: var(--ink-faint); }

/* ═══════ FOOTNOTES ═══════ */
.footnotes { margin: 56px 0 0; padding-top: 18px; border-top: 2px solid var(--ink); color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.footnotes-title { margin-bottom: 14px; }
.footnotes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px 32px; }
.footnote dt { font-weight: 700; color: var(--ink); margin-bottom: 4px; font-size: 14.5px; }
.footnote dt sup { color: var(--accent); margin-right: 3px; font-family: var(--sans); font-size: 10px; }
.footnote dd { margin: 0; font-size: 13.5px; }
.fn-label { display: inline-block; min-width: 92px; font-size: 10px; }
.footnotes-policy { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); max-width: 72ch; }
.fn-policy-title { margin-bottom: 8px; }
.footnotes-policy p { margin: 0 0 6px; font-size: 13.5px; }
.footnotes-policy strong { color: var(--ink); }

/* ═══════ EMPTY / ERROR ═══════ */
.empty-state { text-align: center; padding: 48px 24px; color: var(--ink-faint); font-style: italic; }
.back-link { font-family: var(--sans); color: var(--ink-soft); text-decoration: none; font-size: 12.5px; margin-bottom: 8px; display: inline-block; }
.back-link:hover { color: var(--ink); }
.detail-link { font-family: var(--sans); color: var(--accent-deep); text-decoration: none; font-size: 12px; font-weight: 600; }
.detail-link:hover { text-decoration: underline; }

/* ═══════ COGS: comparison + discrepancies + price trends ═══════ */
.card-header { padding: 0; margin-bottom: 8px; }
.match-detail-card { padding: 16px 0; }
.match-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.value-lg { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.comparison-table { border: 0; border-top: 1px solid var(--ink); border-radius: 0; overflow: hidden; font-family: var(--sans); }
.comparison-header { display: grid; grid-template-columns: 1fr 1fr 80px; background: transparent; padding: 8px 0; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--rule); }
.comparison-row { display: grid; grid-template-columns: 1fr 1fr 80px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-soft); }
.comparison-row:first-of-type { border-top: 0; }
.comparison-row-flag { background: var(--gold-bg); }
.comparison-total { background: transparent; border-top: 1px solid var(--ink); font-weight: 700; color: var(--ink); }
.comparison-status { text-align: center; }
.item-detail { font-size: 11px; color: var(--ink-faint); }
.discrepancy-summary { margin-top: 20px; }
.discrepancy-item { display: flex; gap: 12px; padding: 7px 0; font-family: var(--sans); font-size: 13px; border-bottom: 1px solid var(--rule); }
.disc-type { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); min-width: 120px; }
.disc-product { flex: 1; }
.disc-impact { font-weight: 700; }
.disc-impact.negative { color: var(--warn); }
.disc-impact.positive { color: var(--accent); }

.price-trend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; }
.price-trend-card { padding: 12px 0 14px; border-top: 1px solid var(--rule); }
.price-trend-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.price-trend-header .item-name { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.price-change { font-family: var(--sans); font-size: 12.5px; font-weight: 700; }
.price-change.negative { color: var(--warn); }
.price-change.positive { color: var(--accent); }
.price-trend-current { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0; }
.price-trend-current .unit { font-family: var(--sans); font-size: 12px; color: var(--ink-faint); font-weight: 400; letter-spacing: 0; }
.price-trend-vendor { font-family: var(--sans); font-size: 11px; color: var(--ink-faint); }
.price-table .item-name-cell { font-weight: 600; white-space: nowrap; }
.price-table .vendor-cell { font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.price-table .price-cell { font-weight: 700; white-space: nowrap; color: var(--ink); }
.price-table .unit-label { font-size: 10px; color: var(--ink-faint); font-weight: 400; }
.price-table .prev-price { font-size: 12px; color: var(--ink-faint); }
.trend-arrow { font-size: 11px; }
.trend-arrow.trend-up { color: var(--warn); }
.trend-arrow.trend-down { color: var(--accent); }
.trend-arrow.trend-flat { color: var(--ink-faint); }
.warning { color: var(--gold); }

/* ═══════ MOBILE ═══════ */
.hamburger { display: none; position: fixed; top: 14px; left: 14px; z-index: 1000; background: var(--ground); border: 1px solid var(--rule); border-radius: 3px; padding: 8px 10px; cursor: pointer; line-height: 1; }
.hamburger svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 1.8; fill: none; }

@media (max-width: 1024px) {
  .statbar, .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loc-row { grid-template-columns: 1fr; }
  .main { padding-inline: 24px; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .layout { flex-direction: column; }
  .main { padding-block: 60px 48px; padding-inline: 16px; max-width: 100%; }
  .statbar, .statbar.three, .statbar.two, .kpi-row { grid-template-columns: 1fr; }
  .donut-row, .two-up { grid-template-columns: 1fr; }
  .week-nav { align-items: flex-start; flex-direction: column; gap: 12px; }
  .item-card-body { grid-template-columns: 1fr; }
  .daily-chart { gap: 8px; height: 100px; }
  .day-bars { height: 80px; }
  .hamburger { display: block; }
  .sidebar.open { display: flex; position: fixed; top: 0; left: 0; z-index: 999; box-shadow: 4px 0 24px rgba(0, 0, 0, .12); }
}

/* ═══════ SCORECARD ═══════ */
.sc-wrap { margin-top: 4px; }
.sc-table { width: auto; min-width: 100%; }
.sc-table th.sc-label, .sc-table td.sc-label {
  position: sticky; left: 0; z-index: 1;
  background: var(--ground);
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap; padding-right: 14px;
  border-right: 1px solid var(--rule);
}
.sc-table tbody th.sc-label { border-bottom: 1px solid var(--rule); }
.sc-table tbody tr:last-child th.sc-label { border-bottom: 0; }
.sc-table thead th.sc-label { color: var(--ink-faint); z-index: 2; }
.sc-table tbody tr:hover th.sc-label { background: var(--panel-2); }
.sc-table td, .sc-table thead th { min-width: 78px; padding-left: 10px; }
.sc-table td.text-right { white-space: nowrap; }
.sc-table tr.sc-group th, .sc-table tr.sc-group td { border-top: 1px solid var(--ink-faint); }
.sc-todate { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .06em; color: var(--gold); }
.sc-table td.sc-bad { color: var(--warn); background: var(--warn-bg); font-weight: 700; }
.sc-table td.sc-note { min-width: 220px; max-width: 280px; white-space: pre-line; vertical-align: top; font-size: 12px; line-height: 1.45; }
.sc-pending { color: var(--ink-faint); margin-left: 2px; cursor: help; }
.sc-sub { font-size: 10.5px; color: var(--ink-faint); margin-top: 2px; }
.sc-arrow { font-size: 9px; margin-left: 4px; }
.sc-arrow.up { color: var(--accent); }
.sc-arrow.down { color: var(--warn); }
@media (max-width: 768px) {
  .sc-table th.sc-label { font-size: 9.5px; padding-right: 8px; max-width: 120px; white-space: normal; }
}

/* ═══════ MANAGER HOME (phone first, one column) ═══════ */
.mh-section { margin: 0 0 8px; }
.mh-section .section-label:first-child { margin-top: 26px; }
.mh-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.mh-stat, .mh-lever, .mh-check { display: block; text-decoration: none; color: var(--ink); min-width: 0; }
.mh-stat { padding: 8px 0 12px; border-top: 1px solid var(--rule); }
.mh-big { display: block; font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 4px 0 6px; }
.mh-sub-muted { color: var(--ink-faint) !important; }
.mh-sub { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.mh-stat.warn .mh-big, .mh-lever.warn .mh-big { color: var(--warn); }
.mh-empty { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-soft); margin: 0; }
.mh-tasks { list-style: none; margin: 0; padding: 0; }
.mh-tasks li { border-top: 1px solid var(--rule); }
.mh-tasks a { display: block; padding: 12px 0; text-decoration: none; color: var(--ink); min-height: 44px; }
.mh-task-text { font-family: var(--serif); font-size: 17px; line-height: 1.35; }
.mh-levers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.mh-lever { padding: 10px 0 14px; border-top: 1px solid var(--rule); }
.mh-lever.focus { grid-column: 1 / -1; background: var(--panel-2); padding: 14px; border-top: 2px solid var(--accent); margin-bottom: 8px; }
.mh-lever.focus .mh-big { font-size: 40px; }
.mh-flag { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 4px; }
.mh-gap { font-weight: 600; color: var(--ink); }
.mh-checks { display: grid; grid-template-columns: 1fr; }
.mh-check { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); min-height: 44px; }
.mh-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 12px; font-weight: 700; margin-top: 2px; }
.mh-check.ok .mh-mark { background: var(--accent-bg); color: var(--accent); }
.mh-check.flag .mh-mark { background: var(--warn-bg); color: var(--warn); }
.mh-check-body { display: block; min-width: 0; }
.mh-check-text { display: block; font-family: var(--serif); font-size: 16px; line-height: 1.35; }
.mh-streaks { font-family: var(--sans); font-size: 12.5px; color: var(--accent-deep); margin: 10px 0 0; }
.mh-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; font-family: var(--sans); font-size: 14px; font-weight: 600; }
.mh-links a { color: var(--accent-deep); text-decoration: none; padding: 8px 0; }
.mh-more a { font-weight: 500; }
@media (min-width: 769px) { .mh-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mh-levers { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mh-lever.focus { grid-column: span 2; } .mh-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; } }

/* Labor compliance flags: grouped by employee, expandable timecard detail */
.lf-person { margin: 14px 0; }
.lf-head { padding: 4px 0 6px; border-bottom: 1px solid var(--line, #e5e0d8); }
.lf-row { border-bottom: 1px solid var(--line, #eee8df); }
.lf-row > summary { cursor: pointer; padding: 8px 2px; display: grid; grid-template-columns: 78px 1fr; gap: 2px 10px; align-items: baseline; list-style: none; }
.lf-row > summary::-webkit-details-marker { display: none; }
.lf-row > summary::before { content: none; }
.lf-date { font-weight: 600; white-space: nowrap; }
.lf-issue { min-width: 0; }
.lf-tag { grid-column: 2; font-size: 12px; color: #7a7a7a; }
.lf-tag-gate, .lf-tag-attn { color: #a33a2a; font-weight: 600; }
.lf-tag-ack { color: #5b6b5b; }
.lf-row.flag-acked .lf-issue { color: #7a7a7a; }
.lf-detail { padding: 4px 2px 12px 88px; font-size: 13px; }
.lf-shift { margin-bottom: 8px; }
.lf-breaks { margin: 2px 0 0 18px; padding: 0; }
.lf-days { border-collapse: collapse; width: 100%; max-width: 520px; }
.lf-days td { padding: 2px 10px 2px 0; vertical-align: top; }
.lf-total { margin-top: 6px; }
.lf-ack { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.lf-ack input[type=text] { flex: 1 1 180px; min-width: 0; }
.lf-waiver { padding: 4px 0; }
@media (max-width: 640px) {
  .lf-row > summary { grid-template-columns: 1fr; }
  .lf-tag { grid-column: 1; }
  .lf-detail { padding-left: 2px; }
}

/* ---- Today (ROD / owner exceptions home) and Monday 1:1 ---- */
.ex-lede { font-family: var(--serif); font-size: 22px; line-height: 1.35; margin: 0 0 6px; color: var(--ink); }
.ex-sub { font-family: var(--sans); font-size: 12.5px; color: var(--ink-faint); margin: 0 0 18px; }
.ex-list { list-style: none; margin: 0; padding: 0; counter-reset: ex; }
.ex-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: start; padding: 16px 0; border-top: 1px solid var(--rule); }
.ex-row:last-child { border-bottom: 1px solid var(--rule); }
.ex-store { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ex-fact { font-family: var(--serif); font-size: 17px; line-height: 1.4; color: var(--ink); margin: 4px 0 4px; }
.ex-why { font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft); margin: 0; }
.ex-act { align-self: center; }
.ex-normal { font-family: var(--serif); font-size: 15.5px; color: var(--accent-deep); margin: 22px 0 0; padding-left: 12px; border-left: 2px solid var(--accent); }
.ex-notes { font-family: var(--sans); font-size: 12.5px; color: var(--ink-faint); margin: 14px 0 0; }
@media (max-width: 640px) { .ex-row { grid-template-columns: 1fr; } .ex-act { align-self: start; } }

.oo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
@media (max-width: 760px) { .oo-grid { grid-template-columns: 1fr; } }
.oo-list { list-style: none; margin: 0; padding: 0; }
.oo-list li { border-top: 1px solid var(--rule); padding: 10px 0; font-family: var(--serif); font-size: 16px; line-height: 1.4; }
.oo-list .oo-meta { display: block; font-family: var(--sans); font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.oo-form label { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 12px 0 4px; }
.oo-form input[type="text"], .oo-form input[type="date"], .oo-form input[type="number"], .oo-form select, .oo-form textarea {
  width: 100%; box-sizing: border-box; font-family: var(--sans); font-size: 14px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 3px; background: var(--panel); color: var(--ink);
}
.oo-form textarea { min-height: 110px; font-family: var(--serif); font-size: 15.5px; line-height: 1.45; }
.oo-inline { display: inline; margin: 0; }
.oo-inline .btn { margin-left: 4px; }
.oo-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px; }

/* Section tab strip shared by the consolidated nav (Week, Stores, Time off, Money, Admin) */
.section-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px; }
