/* Ferculon - the back office's own styles, on top of pos.css (only office.html loads this).
   White cards on soft shadows instead of hairline boxes, sentence case everywhere (no uppercase
   labels), one serif figure per screen, and the pieces only the office uses: the sidebar by role,
   the drawer on phones and tablets in portrait, responsive tables, the menu suite, the booking book,
   the customer drawer, charts and the heat map. */

:root {
  --shadow-card: 0 1px 2px rgba(20, 32, 26, .05), 0 10px 26px -16px rgba(18, 40, 28, .22);
  --shadow-soft: 0 1px 2px rgba(20, 32, 26, .05), 0 4px 12px -8px rgba(18, 40, 28, .18);
  --side-w: 248px;
}
[data-theme="dark"] { --shadow-card: 0 0 0 1px rgba(255, 255, 255, .04), 0 12px 26px -18px rgba(0, 0, 0, .7); --shadow-soft: 0 0 0 1px rgba(255, 255, 255, .05); }

/* ── Calmer type: sentence case, semibold at most for labels ── */
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-muted); }
table.data th { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-muted); }
.nav-label { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: #8FB09C; }
.brief-tag { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }
.btn { font-weight: 600; }
.t-name { font-weight: 600; }
.chip { font-weight: 600; }
.figure { font-family: var(--sans); font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.figure.hero { font-family: var(--display); font-size: 34px; letter-spacing: -.03em; }
.kpi .figure.hero { font-size: 32px; }

/* ── Cards: white on a soft shadow ── */
.card { border: 0; box-shadow: var(--shadow-card); }
.card .card { box-shadow: var(--shadow-soft); }
.card-foot { border-top-color: var(--line); }
.brief { box-shadow: var(--shadow-card); }

/* ── Shell ── */
.shell { grid-template-columns: var(--side-w) minmax(0, 1fr); }
.side { padding: 14px 12px; }
.side-brand { padding: 2px 8px 14px; }
.venue { cursor: default; }
button.venue { cursor: pointer; }
.venue-one .ico { display: none; }
.nav { margin-top: 10px; gap: 1px; }
.nav-label { padding: 14px 10px 5px; }
.nav a { height: 36px; font-size: 14px; font-weight: 550; }
.nav a .count { font-weight: 600; }
.side-foot { gap: 1px; }
.who { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; color: #DDE9DF; }
.who .venue-mark { width: 30px; height: 30px; font-size: 12.5px; background: var(--forest-2); font-family: var(--sans); font-weight: 600; }
.who b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.who small span { font-size: 11.5px; font-weight: 600; color: var(--mint); background: rgba(111, 206, 143, .12); padding: 1px 6px; border-radius: var(--r-xs); }
.side-foot .review { color: #F6C453; }
/* A heading that opens into its parts: the parts sit under its name, indented to its words. */
.hub-head { display: flex; align-items: center; gap: 11px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: var(--r); background: none; color: #C8D9CD; font: inherit; font-size: 14px; font-weight: 550; text-align: left; cursor: pointer; }
.hub-head:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.hub-head > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-head > .ico:last-child { width: 15px; height: 15px; opacity: .7; transition: transform .18s; }
.nav-hub.open .hub-head > .ico:last-child { transform: rotate(180deg); }
.nav-hub.here .hub-head { color: #fff; }
.subnav { display: none; gap: 1px; margin: 2px 0 6px; position: relative; }
.nav-hub.open .subnav { display: grid; }
.subnav::before { content: ''; position: absolute; left: 19px; top: 4px; bottom: 4px; width: 1px; background: rgba(255, 255, 255, .12); }
.nav .subnav a { height: 32px; padding-left: 39px; font-size: 13.5px; font-weight: 500; color: #A9C2B1; }
.nav .subnav a:hover { color: #fff; }
.nav .subnav a.on { background: #F4F1E8; color: var(--forest); font-weight: 600; }
.nav .subnav a > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The header names the page above the part that is open. */
.top .crumb { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); margin-bottom: 2px; }
/* The parts of the open heading in a row, on phones and narrow tablets (the sidebar is a drawer there). */
.sec-tabs { display: none; }
@media (max-width: 900px) {
  .sec-tabs:not([hidden]) { display: flex; gap: 6px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: none; }
  .sec-tabs::-webkit-scrollbar { display: none; }
  .sec-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-soft); color: var(--ink-soft); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .sec-tabs a.on { background: var(--forest); color: #fff; box-shadow: none; }
}
.side-scrim { display: none; }
.top { padding: 16px 32px 14px; flex-wrap: wrap; row-gap: 10px; }
.top h1 { font-size: 26px; }
.top #topActions { flex-wrap: wrap; justify-content: flex-end; }
.page { padding: 6px 32px 56px; }
.page > .stack, .page > div { min-width: 0; }

@media (max-width: 1180px) and (min-width: 901px) { :root { --side-w: 224px; } .top, .page { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 900px) {
  .side { width: 280px; }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(14, 30, 22, .42); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .side.open + .side-scrim { opacity: 1; pointer-events: auto; }
  .top { padding: 12px 16px; gap: 10px; }
  .top h1 { font-size: 21px; }
  .top .sub { font-size: 12.5px; }
  .page { padding: 4px 16px 40px; gap: 14px; }
}
@media (max-width: 640px) {
  .top .live { display: none; }
  .top #topActions { order: 5; width: 100%; justify-content: flex-start; }
  .top #topActions:empty { display: none; }
}

/* ── Small pieces ── */
.meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 2px; font-size: 12.5px; color: var(--ink-muted); }
.meta > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.meta .ico { width: 14px; height: 14px; color: var(--ink-faint); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: var(--r-xs); background: var(--surface-3); color: var(--ink-soft); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill .ico { width: 13px; height: 13px; }
.avatar { width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; flex: none; background: var(--wash); color: var(--brand-2); font-weight: 600; font-size: 13px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 -4px; }
.section-title h2 { font-size: 17px; font-weight: 600; }
.section-title .ico { color: var(--ink-faint); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-card); background: var(--surface-2); color: var(--ink-soft); font-size: 13.5px; }
.note .ico { color: var(--brand-2); margin-top: 1px; }
.note.warn { background: var(--gold-soft); } .note.warn .ico { color: var(--gold); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand-2); font-weight: 600; font-size: inherit; display: inline-flex; align-items: center; gap: 5px; }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.linkbtn.danger { color: var(--danger); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv:first-child { border-top: 0; padding-top: 2px; }
.kv > span:first-child { color: var(--ink-muted); }
.kv > span:last-child { font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; font-weight: 600; }
.seg button .n { font-size: 11.5px; color: var(--ink-faint); font-weight: 600; }
.toolbar .search { flex: 0 1 260px; min-width: 160px; }
.toolbar .select { width: auto; height: 38px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.check-row:first-child { border-top: 0; }
.check-row b { display: block; font-weight: 600; font-size: 14px; }
.check-row .t-sub { display: block; }
.check-row .switch { margin-top: 1px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); font-weight: 600; font-size: 13.5px; cursor: pointer; user-select: none; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .ico { width: 16px; height: 16px; color: var(--ink-faint); }
.choice.on, .choice:has(input:checked) { background: var(--forest); border-color: var(--forest); color: #fff; }
.choice.on .ico, .choice:has(input:checked) .ico { color: var(--mint); }
.choice[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
[data-theme="dark"] .choice.on, [data-theme="dark"] .choice:has(input:checked) { background: var(--brand); border-color: var(--brand); }
.stepper.sm { height: 38px; } .stepper.sm button { width: 38px; }

/* ── KPI tiles ── */
.kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi { padding: 15px 16px; gap: 6px; align-content: start; }
.kpi .delta { font-weight: 600; flex-wrap: wrap; }
.delta .up, .delta.up { color: var(--brand-2); } .delta .down, .delta.down { color: var(--accent-ink); }
[data-theme="dark"] .delta .down { color: var(--accent); }
@media (max-width: 1320px) { .kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis.six, .kpis.five { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .figure { font-size: 20px; } .figure.hero, .kpi .figure.hero { font-size: 26px; } }

@media (max-width: 640px) {
  table.data.resp thead { display: none; }
  table.data.resp, table.data.resp tbody, table.data.resp tr, table.data.resp td { display: block; width: 100%; }
  table.data.resp tr { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
  table.data.resp tbody tr:last-child { border-bottom: 0; }
  table.data.resp td { padding: 0; border: 0; text-align: left; white-space: normal; }
  table.data.resp td.num { text-align: right; }
  table.data.resp td.wide { grid-column: 1 / -1; }
  table.data.resp td.hide-sm, table.data.resp th.hide-sm { display: none; }
  table.data.resp td[data-l]:not([data-l=""])::before { content: attr(data-l) ' '; color: var(--ink-faint); font-size: 12px; font-weight: 600; }
  table.data.resp tfoot { display: block; }
}
@media (max-width: 1024px) { table.data td.hide-md, table.data th.hide-md { display: none; } }

/* ── Lazy lists ── */
.pager { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 13px; min-height: 48px; }
.pager .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Order panel ── */
.panel-head .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.slip .ln.sub { color: #555; }
.slip .ln.waived span:last-child { text-decoration: line-through; color: #888; }

/* ── Menu suite ── */
.menu-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .menu-grid { grid-template-columns: minmax(0, 1fr); } .menu-side { display: none; } }
.menu-side { display: grid; gap: 16px; position: sticky; top: 86px; }
.sec-list { display: grid; gap: 1px; padding: 6px 8px 10px; }
.sec-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 4px 6px 4px 10px; border: 0; background: none; border-radius: var(--r); font-weight: 600; font-size: 14px; text-align: left; color: var(--ink-soft); }
.sec-row:hover { background: var(--surface-2); }
.sec-row.on { background: var(--wash); color: var(--brand-2); }
.sec-row .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-row .n { font-size: 12.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.sec-chips { display: none; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.sec-chips::-webkit-scrollbar { display: none; }
.sec-chips button { flex: none; height: 34px; padding: 0 12px; border-radius: var(--r); border: 0; background: var(--surface); box-shadow: var(--shadow-soft); color: var(--ink-soft); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.sec-chips button.on { background: var(--forest); color: #fff; }
.sec-chips button .n { color: inherit; opacity: .6; font-size: 12px; }
@media (max-width: 1100px) { .sec-chips { display: flex; } }
.lens { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-soft); overflow-x: auto; scrollbar-width: none; }
.lens::-webkit-scrollbar { display: none; }
.lens button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 12px; border: 0; border-radius: var(--r); background: none; color: var(--ink-soft); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.lens button.on { background: var(--forest); color: #fff; }
.lens button.on .ico { color: var(--mint); }
[data-theme="dark"] .lens button.on { background: var(--brand); }
.dish { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.dish:first-child { border-top: 0; }
.dish.off { opacity: .62; }
.dish .thumb { width: 56px; height: 56px; }
.dish .nm { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.dish .nm span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish .ds { font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.dish .chans { display: flex; gap: 5px; }
.dish .chans .ico { width: 16px; height: 16px; color: var(--line-strong); }
.dish .chans .ico.on { color: var(--brand-2); }
.dish .pr { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish .pr small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-faint); }
.dish .acts { display: flex; align-items: center; gap: 4px; }
.dish .sw { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; }
.dish .tags { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .dish { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: 'th nm pr' 'th ch sw'; row-gap: 6px; padding: 12px 14px; }
  .dish .thumb { grid-area: th; width: 52px; height: 52px; align-self: start; }
  .dish > .body { grid-area: nm; } .dish .pr { grid-area: pr; } .dish .chans { grid-area: ch; } .dish .acts { grid-area: sw; justify-content: flex-end; }
  .dish .sw span { display: none; }
}
.thumb { border-radius: var(--r); background: var(--surface-3); display: grid; place-items: center; overflow: hidden; color: var(--ink-faint); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-box { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-card); background: var(--surface-3); overflow: hidden; display: grid; place-items: center; color: var(--ink-faint); }
.photo-box.wide { aspect-ratio: 16 / 7; }
.photo-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-box .ico { width: 30px; height: 30px; }
.photo-box .busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .7); color: var(--ink); font-weight: 600; font-size: 13px; }
.editor { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.editor .side-col { display: grid; gap: 10px; }
@media (max-width: 760px) { .editor { grid-template-columns: minmax(0, 1fr); } }
.chan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chan-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-card); background: var(--surface-2); cursor: pointer; }
.chan-tile .ico { color: var(--ink-faint); }
.chan-tile b { flex: 1; font-weight: 600; font-size: 13.5px; }
.chan-tile:has(input:checked) .ico { color: var(--brand-2); }
.group-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.group-label .ico { width: 16px; height: 16px; color: var(--ink-faint); }
.group-label small { font-weight: 500; color: var(--ink-faint); font-size: 12px; }
@media (max-width: 560px) { .chan-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── People: role tiles ── */
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.role-tile { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 10px; padding: 11px 12px; border-radius: var(--r-card); background: var(--surface-2); cursor: pointer; border: 1.5px solid transparent; }
.role-tile input { position: absolute; opacity: 0; pointer-events: none; }
.role-tile .ri { grid-row: span 2; width: 32px; height: 32px; border-radius: var(--r); display: grid; place-items: center; background: var(--surface); color: var(--ink-soft); }
.role-tile b { font-weight: 600; font-size: 14px; }
.role-tile small { color: var(--ink-muted); font-size: 12px; line-height: 1.35; }
.role-tile:has(input:checked) { border-color: var(--brand-2); background: var(--wash); }
.role-tile:has(input:checked) .ri { background: var(--forest); color: var(--mint); }
.role-tile.locked { opacity: .5; cursor: not-allowed; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .avatar { background: var(--forest-2); color: #fff; }
.roles { display: flex; flex-wrap: wrap; gap: 5px; }

/* ── Bookings ── */
.days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: none; width: 64px; padding: 8px 0 7px; border: 0; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-soft); display: grid; justify-items: center; gap: 1px; color: var(--ink-soft); }
.days button small { font-size: 11.5px; font-weight: 600; color: var(--ink-faint); }
.days button b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.days button.on { background: var(--forest); color: #fff; } .days button.on small { color: var(--mint); }
.days button.closed { opacity: .5; }
.book-slot { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); }
.book-slot:first-child { border-top: 0; }
.book-slot > .t { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; padding-top: 10px; }
.bk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 10px 12px; border-radius: var(--r-card); background: var(--surface-2); }
.bk + .bk { margin-top: 8px; }
.bk.closed { opacity: .6; }
.bk .who2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.bk .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 760px) { .bk { grid-template-columns: minmax(0, 1fr); } .bk .acts { justify-content: flex-start; } .book-slot { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 14px; } .book-slot > .t { padding-top: 0; } }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.slots button { height: 38px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.slots button.over { background: var(--surface-2); color: var(--ink-muted); border-style: dashed; }
.slots button.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.slots button.on.over { background: var(--accent); border-color: var(--accent); }
.slots button[disabled] { opacity: .35; cursor: not-allowed; }
.slots button .ico { width: 12px; height: 12px; }
.table-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.table-pick button { padding: 8px 6px; border-radius: var(--r-card); border: 1.5px solid transparent; background: var(--surface-2); display: grid; gap: 1px; justify-items: center; }
.table-pick button b { font-size: 17px; font-weight: 600; }
.table-pick button small { font-size: 11.5px; color: var(--ink-muted); }
.table-pick button.on { border-color: var(--brand-2); background: var(--wash); }
.table-pick button.busy { opacity: .45; }

/* ── Customers ── */
.cust { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.cust:first-child { border-top: 0; }
.cust:hover { background: var(--surface-2); }
.cust .avatar { width: 38px; height: 38px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 10px 12px; border-radius: var(--r-card); background: var(--surface-2); }
.stat b { display: block; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--ink-muted); }
@media (max-width: 480px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hist { display: grid; gap: 0; }
.hist > div { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.hist > div:first-child { border-top: 0; }
.hist .ico { color: var(--ink-faint); }

/* ── Charts (single series: one hue; the peak in forest) ── */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--ink-faint); font-size: 11px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.chart .bar { fill: color-mix(in srgb, var(--brand-2) 34%, var(--surface)); transition: fill .12s; }
.chart .bar.peak { fill: var(--forest); }
[data-theme="dark"] .chart .bar { fill: color-mix(in srgb, var(--brand-2) 45%, var(--surface)); }
[data-theme="dark"] .chart .bar.peak { fill: var(--brand-2); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar, .chart g.col:hover .bar { fill: var(--brand-2); }
.chart .line { fill: none; stroke: var(--brand-2); stroke-width: 2; }
.chart .area { fill: color-mix(in srgb, var(--brand-2) 12%, transparent); }
.tip { position: absolute; z-index: 5; pointer-events: none; padding: 7px 10px; border-radius: var(--r); background: var(--forest); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-lift); transform: translate(-50%, calc(-100% - 8px)); opacity: 0; transition: opacity .1s; }
.tip small { display: block; font-weight: 500; color: #BFD3C6; font-size: 11.5px; }
.tip.in { opacity: 1; }
.hbars { display: grid; grid-template-columns: minmax(90px, 32%) minmax(0, 1fr) max-content max-content; gap: 10px 12px; }
/* Every row shares the list's columns (subgrid), so the bars start and end on one line whatever the
   numbers beside them. Without notes the last column folds away. */
.hbar { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; font-size: 13.5px; }
.hbar > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); font-weight: 550; }
.hbar .meter { height: 8px; }
.hbar > b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.hbar > small { font-weight: 500; color: var(--ink-faint); white-space: nowrap; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hbars:not(:has(.hbar > small:not(:empty))) { grid-template-columns: minmax(90px, 32%) minmax(0, 1fr) max-content; }
.hbars:not(:has(.hbar > small:not(:empty))) .hbar > small { display: none; }
.heat { display: grid; grid-template-columns: 40px repeat(var(--cols), minmax(0, 1fr)); gap: 3px; font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.heat > span { display: flex; align-items: center; justify-content: center; height: 26px; }
.heat > span.rl { justify-content: flex-start; font-weight: 600; color: var(--ink-muted); }
.heat > i { height: 26px; border-radius: var(--r-xs); background: var(--surface-3); position: relative; }
.heat-scroll { overflow-x: auto; }
.heat-scroll .heat { min-width: 560px; }
.heat-key { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-muted); margin-top: 10px; }
.heat-key i { width: 22px; height: 10px; border-radius: 2px; display: inline-block; }
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.mini-kpis > div { padding: 10px 12px; border-radius: var(--r-card); background: var(--surface-2); }
.mini-kpis b { display: block; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-kpis span { font-size: 12px; color: var(--ink-muted); }
.jump { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; position: sticky; top: 72px; z-index: 10; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-soft); color: var(--ink-soft); font-weight: 600; font-size: 13px; text-decoration: none; }
.jump a .ico { width: 15px; height: 15px; color: var(--ink-faint); }
@media (max-width: 900px) { .jump { position: static; } }
.ins-section { scroll-margin-top: 130px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .input, .filters .select { height: 38px; width: auto; font-size: 14px; }
.filters input[type=date] { width: 150px; }
.filters .search { flex: 1 1 200px; min-width: 160px; }
@media (max-width: 560px) { .filters .select, .filters input[type=date] { flex: 1 1 140px; width: auto; min-width: 0; } }

/* ── Setup ── */
.charge { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-card); background: var(--surface-2); }
.charge + .charge { margin-top: 8px; }
.charge.paused { opacity: .6; }
.charge .ci { width: 36px; height: 36px; border-radius: var(--r); background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; }
.charge b { font-weight: 600; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .setup-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── QR cards: one download per table, a clean print sheet ── */
.qr-card { box-shadow: var(--shadow-card); }
.qr-card b { font-family: var(--sans); font-weight: 600; font-size: 20px; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .side, .side-scrim, .top, .no-print, .toasts { display: none !important; }
  .shell { display: block; } .main { display: block; } .page { padding: 0; display: block; }
  .qr-grid { grid-template-columns: repeat(3, 1fr); gap: 8mm; }
  .qr-card { box-shadow: none; border: 1px dashed #bbb; break-inside: avoid; padding: 6mm; }
  .qr-card svg { width: 46mm; height: 46mm; }
  .qr-sec { break-inside: avoid-page; }
  .qr-sec h2 { font-size: 14pt; margin: 0 0 4mm; }
}

/* ── Report toolkit (office-kit.js): range control, sortable headers, mix bar ── */
:root { --c1: #1E7A4E; --c2: #2B6CB0; --c3: #E06A26; --c4: #C2457A; --c5: #6B4FB8; }
[data-theme="dark"] { --c1: #3E9E6B; --c2: #5B8FD6; --c3: #DB7632; --c4: #D45A97; --c5: #8C74D8; }
/* More ways to pay (office-money.js): Blink, MauCAS QR, bank transfer. */
:root { --c6: #12897F; --c7: #B9812A; --c8: #5C6B7A; }
[data-theme="dark"] { --c6: #2BA89C; --c7: #D19A3E; --c8: #8A98A6; }
.range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.range-pick { position: relative; display: inline-flex; align-items: center; }
.range-pick .ico { position: absolute; left: 11px; color: var(--ink-faint); pointer-events: none; }
.range-pick .select { height: 38px; width: auto; padding-left: 36px; padding-right: 42px; font-weight: 600; font-size: 14px; }
.range-dates { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.range-dates .input { height: 38px; width: 150px; font-size: 14px; }
.range-text { white-space: nowrap; }
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable span { display: inline-flex; align-items: center; gap: 4px; }
table.data th.sortable .ico { width: 13px; height: 13px; color: var(--ink-faint); opacity: .6; }
table.data th.sortable.on { color: var(--ink); }
table.data th.sortable.on .ico { color: var(--brand-2); opacity: 1; }
table.data th.num.sortable span { justify-content: flex-end; }
.chart g.col.click { cursor: pointer; }
.mix { display: flex; gap: 2px; height: 14px; border-radius: var(--r-xs); overflow: hidden; }
.mix i { display: block; min-width: 3px; }
.mix-legend { display: grid; gap: 8px; margin-top: 14px; }
.mix-legend > div { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; font-size: 13.5px; }
.mix-legend i { width: 12px; height: 12px; border-radius: 3px; }
.mix-legend b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.mix-legend small { color: var(--ink-faint); text-align: right; font-variant-numeric: tabular-nums; }
.report-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; }
.report-bar .spacer { min-width: 0; }
.report-bar .exports { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 10px; border-radius: var(--r); background: var(--wash); color: var(--brand-2); font-weight: 600; font-size: 13px; }
.filter-chip button { border: 0; background: none; color: inherit; display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-xs); }
.filter-chip button:hover { background: rgba(0, 0, 0, .06); }
@media (max-width: 640px) { .report-bar .exports { width: 100%; } .report-bar .exports .btn { flex: 1; } .range-text { white-space: normal; } }
.mini-kpis { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
@media (max-width: 760px) { .mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1600px) { .kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis.six { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.figure { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars > div { align-items: center; }
.bars i { width: 100%; max-width: 30px; background: color-mix(in srgb, var(--brand-2) 30%, var(--surface)); }
.bars > div:hover i { background: var(--brand-2); }
.kpi .figure.hero { font-size: 28px; }
.figure { overflow: visible; text-overflow: clip; }
.kpis.five .figure.hero { font-size: 26px; }

/* ── Riders live: a tile map without a map library ── */
.rmap { position: relative; height: 460px; overflow: hidden; background: var(--surface-3); border-radius: var(--r-card) var(--r-card) 0 0; }
@media (max-width: 760px) { .rmap { height: 320px; } }
.rmap .map-tiles { position: absolute; inset: 0; }
.rmap .map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
[data-theme="dark"] .rmap .map-tiles { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88); }
.rpin { position: absolute; transform: translate(-50%, calc(-100% - 6px)); min-width: 36px; height: 30px; padding: 0 6px; border: 2px solid #fff; border-radius: var(--r); background: var(--pin, var(--brand-2)); color: #fff; font-weight: 600; font-size: 12.5px; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .28); cursor: pointer; }
.rpin::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: inherit; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateX(-50%) rotate(45deg); }
.rpin.home { background: var(--forest); cursor: default; }
.rpin.sel { outline: 3px solid var(--accent); outline-offset: 1px; z-index: 2; }
.rmap .map-attr { position: absolute; right: 6px; bottom: 4px; font-size: 10.5px; color: #444; background: rgba(255, 255, 255, .8); padding: 1px 5px; border-radius: 3px; text-decoration: none; }
.rmap .map-note { position: absolute; left: 8px; top: 8px; font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--surface); padding: 4px 8px; border-radius: var(--r); box-shadow: var(--shadow-soft); }

/* Time clock, audit log and security (office-time.js, office-audit.js, office-security.js) */
.clock-list { display: grid; gap: 2px; }
.clock-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.clock-row:first-child { border-top: 0; }
.ts-day { font-variant-numeric: tabular-nums; }
table.data th.prem, table.data td.prem { background: color-mix(in srgb, var(--lagoon-soft) 60%, transparent); }
.ts-marks { display: flex; gap: 3px; justify-content: flex-end; align-items: center; margin-top: 3px; min-height: 12px; }
.ts-marks .ico { width: 12px; height: 12px; color: var(--ink-faint); }
.ts-mark { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.ts-mark.on { background: var(--leaf); }
.ts-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ts-flags .chip { height: 22px; font-size: 11.5px; padding: 0 6px; gap: 4px; }
.ts-flags .chip .ico { width: 12px; height: 12px; }
.ts-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.ts-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ts-legend .ico { width: 13px; height: 13px; }
.ts-swatch { display: inline-block; width: 12px; height: 12px; border-radius: var(--r-xs); background: var(--lagoon-soft); }
.ts-cards { display: none; gap: 10px; }
.ts-card { display: grid; gap: 8px; width: 100%; padding: 12px 14px; border: 0; border-radius: var(--r-card); background: var(--surface-2); text-align: left; color: inherit; cursor: pointer; }
.ts-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ts-strip span { display: grid; justify-items: center; padding: 5px 0; border-radius: var(--r); background: var(--surface); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ts-strip span small { font-size: 10.5px; color: var(--ink-faint); font-weight: 600; }
.ts-strip span.prem { background: var(--lagoon-soft); }
.ts-strip span.ot { box-shadow: inset 0 -2px 0 var(--gold); }
@media (max-width: 760px) { .ts-table, .ts-legend { display: none; } .ts-cards { display: grid; } }
.audit-list { display: grid; }
.filters label.search { display: block; }
.filters label.search .input { width: 100%; }
.audit-dates { gap: 6px; flex: 1 1 300px; min-width: 0; flex-wrap: nowrap; }
.filters .audit-dates input[type=date] { flex: 1 1 0; width: auto; min-width: 0; }
.clock-main { flex: 1 1 180px; min-width: 0; }
.clock-act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.audit-row { border-top: 1px solid var(--line); }
.audit-row:first-child { border-top: 0; }
.audit-row > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 18px; cursor: pointer; }
.audit-row > summary::-webkit-details-marker { display: none; }
.audit-row > summary:hover { background: var(--surface-2); }
.audit-row > summary > .ico { color: var(--ink-faint); transition: transform .15s; flex: none; }
.audit-row[open] > summary > .ico { transform: rotate(180deg); }
.audit-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-card); background: var(--surface-3); color: var(--ink-soft); }
.audit-ico .ico { width: 17px; height: 17px; }
.audit-ico.bad { background: var(--danger-soft); color: var(--danger); } .audit-ico.warn { background: var(--gold-soft); color: var(--gold); }
.audit-ico.info { background: var(--lagoon-soft); color: var(--lagoon); } .audit-ico.good { background: var(--wash); color: var(--brand-2); }
.audit-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.audit-main > b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.audit-kind { flex: none; }
.audit-detail { display: grid; gap: 10px; padding: 0 18px 16px 64px; }
table.audit-facts { font-size: 13.5px; }
table.audit-facts td, table.audit-facts th { padding: 7px 10px; }
table.audit-facts td.changed { font-weight: 600; color: var(--brand-2); }
.audit-hash { font-size: 12px; }
.audit-ok { align-items: center; flex-wrap: wrap; }
.audit-ok > .ico { color: var(--leaf); }
@media (max-width: 760px) { .audit-kind { display: none; } .audit-detail { padding-left: 18px; } .audit-row > summary { padding: 12px 14px; } }
.panel-body.stack, .card-body.stack { align-content: start; }
@media (max-width: 900px) { .shell { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .kpi .figure.hero, .kpis.five .figure.hero { font-size: 24px; } .kpi { padding: 12px 13px; } .kpi .eyebrow { font-size: 12px; } }
@media (max-width: 1100px) { .menu-side { display: none; } }
@media (max-width: 760px) { .dish .sw span { display: inline-block; } .dish .sw > span:first-child { display: none; } }
@media (max-width: 640px) { #days { flex-basis: 100% !important; } }
.page.acct-note { padding-bottom: 0; } /* the account deletion note above every page (office-shell.js) */

/* A row whose cards end level: the brief beside the two charts stretches to their height and spreads its
   points evenly, with the source line at the bottom, so no gap opens under it. */
.fill-row { align-items: stretch; }
.fill-row > .brief { display: flex; flex-direction: column; }
.fill-row > .brief ul { flex: 1; align-content: space-evenly; }

/* The sidebar never scrolls sideways: long names end with an ellipsis. */
.side { overflow-x: hidden; }
.who > span:last-child { flex: 1; min-width: 0; }
.who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot a, .side-foot button, .side nav a { min-width: 0; }

/* Sidebar: the pages scroll on their own, the tools and the signed-in person stay pinned at the bottom. */
.side { overflow: hidden; }
.side-brand, .venue, .side-foot, .who { flex: none; }
.nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; align-content: start; margin-right: -8px; padding-right: 8px; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.side-foot { margin-top: 0; padding-top: 10px; }
.who { margin-top: 10px; padding: 12px 10px 2px; border-top: 1px solid rgba(255, 255, 255, .08); }
.nav { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); padding-bottom: 24px; }
@media (max-height: 820px) { .side-foot a, .side-foot button { height: 32px; } .who { margin-top: 6px; padding-top: 8px; } }

/* Two columns that each stack their cards: a short card sits under its neighbour instead of leaving a
   hole beside a long one, and the last card in each column runs to the bottom so both columns end level. */
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.cols2.cols2-wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.cols2 > .col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cols2 > .col > .card:last-child { flex: 1; }
@media (max-width: 1180px) { .cols2.cols2-wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .cols2 { grid-template-columns: minmax(0, 1fr); } .cols2 > .col > .card:last-child { flex: none; } }
.cell-bar { display: block; height: 4px; margin: 6px 0 0 auto; max-width: 120px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.cell-bar i { display: block; height: 100%; background: var(--forest); }

/* ── Setup, one section at a time ── */
/* The overview: what is left before going live, then a tile for each part. */
.todo-list { display: grid; gap: 2px; padding-top: 4px; }
.todo { display: flex; align-items: center; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: var(--r); color: var(--ink); text-decoration: none; }
.todo:hover { background: var(--surface-2); }
.todo > .ico:first-child { color: var(--gold); flex: none; }
.todo > span { flex: 1; min-width: 0; }
.todo b { display: block; font-weight: 600; font-size: 14px; }
.todo small { display: block; color: var(--ink-muted); font-size: 12.5px; margin-top: 1px; }
.todo > .ico:last-child { color: var(--ink-faint); }
.setup-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.setup-tile { display: flex; align-items: flex-start; gap: 14px; padding: 16px; color: var(--ink); text-decoration: none; transition: box-shadow .15s; }
.setup-tile:hover { box-shadow: 0 1px 2px rgba(20, 32, 26, .06), 0 16px 32px -18px rgba(18, 40, 28, .36); }
.setup-tile .st-ic { flex: none; width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center; background: var(--wash); color: var(--brand-2); }
.setup-tile .st-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.setup-tile b { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.setup-tile .st-text span { font-size: 13.5px; color: var(--ink-soft); }
.setup-tile small { font-size: 12.5px; color: var(--ink-muted); }
.setup-tile > .ico:last-child { flex: none; margin-top: 10px; color: var(--ink-faint); }
/* The cover photo as the page shows it: under a 30% black veil, the name over it. */
.cover-preview { position: relative; width: 100%; aspect-ratio: 16 / 6; min-height: 150px; max-height: 320px; border-radius: var(--r-card); overflow: hidden; background: var(--forest); display: flex; align-items: flex-end; }
.cover-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-preview.has::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.cover-preview .cover-in { position: relative; z-index: 1; padding: 16px 18px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 14px rgba(0, 0, 0, .35); }
.cover-preview .cover-in small { display: block; font-size: 12.5px; font-weight: 600; opacity: .92; }
.cover-preview .cover-in b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.cover-preview .busy { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-weight: 600; }

/* Waiters' tables (office-floor.js) */
.w-list { padding-top: 4px; }
.w-row { padding: 12px 0; border-top: 1px solid var(--line); }
.w-row:first-child { border-top: 0; padding-top: 4px; }
.w-row b { font-weight: 600; }
.w-av { position: relative; width: 36px; height: 36px; flex: none; font-weight: 600; font-size: 12.5px; }
.w-on { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--leaf); border: 2px solid var(--surface); }
.w-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.w-pick .choice { min-width: 56px; justify-content: center; }
.w-pick .choice small { font-size: 11px; font-weight: 600; color: var(--ink-muted); }
.w-pick .choice.on small { color: rgba(255, 255, 255, .8); }

/* Insights shows one part at a time; the page title already names it. */
body[data-page="insights"] .ins-section:only-of-type > .section-title:first-child { display: none; }

/* Last orders today (office-delivery.js) */
.lo-rows { padding-top: 4px; }
.lo-row { padding: 12px 0; border-top: 1px solid var(--line); }
.lo-row:first-child { border-top: 0; padding-top: 4px; }
.lo-row b { font-weight: 600; }
.lo-row .avatar { width: 34px; height: 34px; flex: none; }

/* Numbered pages under a list (O.pager, O.pageFoot) */
.pages { display: inline-flex; align-items: center; gap: 4px; }
.pages .pg { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 600; display: inline-grid; place-items: center; cursor: pointer; }
.pages .pg:hover:not([disabled]) { border-color: var(--brand-2); color: var(--ink); }
.pages .pg.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.pages .pg[disabled] { opacity: .4; cursor: default; }
.pages .pg-gap { color: var(--ink-faint); padding: 0 2px; }
.pager { flex-wrap: wrap; row-gap: 8px; }
.pager > span:first-child { display: inline-flex; align-items: center; gap: 8px; }

/* The sidebar's foot in two columns of small labelled items, so the pages above get the room. */
.side-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2px; }
.side-foot a, .side-foot button { height: 32px; gap: 8px; padding: 0 8px; font-size: 12.5px; }
.side-foot .ico { width: 16px; height: 16px; flex: none; }
.side-foot a > span, .side-foot button > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot a > .ico.sm:last-child { display: none; }
.side-foot #sideSetup { grid-column: 1 / -1; }

/* The dish editor: a choice that adds one, and the row to type a label. */
.choice.add-choice { border-style: dashed; color: var(--brand-2); background: none; }
.choice.add-choice:hover { border-color: var(--brand-2); }
.add-label { gap: 8px; margin-top: 8px; }
.add-label .input { flex: 1; min-width: 0; height: 38px; }

/* A table row as a card on a phone: its facts in two straight columns, each label above its value. */
@media (max-width: 640px) {
  table.data.resp tr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; align-items: start; }
  table.data.resp td, table.data.resp td.num { text-align: left; }
  table.data.resp td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 1px; }
}

/* ── Rows of the new reports on shared columns (subgrid), so nothing zig-zags ── */
.moves { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content max-content; gap: 0 16px; }
.move { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.move:first-child { border-top: 0; padding-top: 4px; }
.move b { font-weight: 600; }
.move-n { width: 28px; height: 28px; border-radius: var(--r); background: var(--wash); color: var(--brand-2); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.move-worth { text-align: right; }
.move-worth b { display: block; font-size: 15px; }
.move-worth small { color: var(--ink-muted); font-size: 12px; }
.move > .btn, .move > a.btn { justify-self: stretch; }
@media (max-width: 760px) {
  .moves { grid-template-columns: max-content minmax(0, 1fr) max-content; }
  .move > .btn, .move > a.btn { grid-column: 2 / -1; justify-self: start; margin-top: 8px; }
}
.quads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quad { padding: 14px; border-radius: var(--r-card); background: var(--surface-2); display: grid; gap: 8px; align-content: start; }
.quad p { margin: 0; font-size: 13px; color: var(--ink-muted); }
.quad-list { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 760px) { .quads { grid-template-columns: minmax(0, 1fr); } }
.lo-rows { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content max-content; column-gap: 12px; }
.lo-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.lo-row > .chip { justify-self: end; }
.lo-row > .btn { justify-self: stretch; }
.lo-rows > p { grid-column: 1 / -1; }
@media (max-width: 640px) { .lo-rows { grid-template-columns: max-content minmax(0, 1fr) max-content; } .lo-row > .btn { grid-column: 2 / -1; justify-self: start; } }
.w-list { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; column-gap: 12px; }
.w-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.w-row > .btn { justify-self: stretch; }
.prep-list { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) max-content max-content; gap: 10px 12px; align-items: center; }
.prep-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; font-size: 13.5px; }
.prep-row .prep-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.prep-row .meter { height: 8px; }
.prep-row > b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.prep-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.prep-item:first-child { border-top: 0; padding-top: 2px; }
.prep-item > .ico { flex: none; color: var(--ink-faint); }
.watch-p { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.watch-p:first-child { border-top: 0; padding-top: 2px; }
.watch-p .avatar { flex: none; width: 36px; height: 36px; font-weight: 600; font-size: 12.5px; }
.watch-s { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); }
.watch-s .ico { flex: none; margin-top: 2px; color: var(--gold); }
table.data tr.flag td { background: color-mix(in srgb, var(--gold-soft) 45%, transparent); }

/* Bookings: the party, the state and the table in their own columns; the buttons on the right. */
.bk { grid-template-columns: minmax(0, 1.5fr) 96px 132px 108px minmax(0, 1fr); }
.bk .bk-col { min-width: 0; }
.bk .acts:empty { display: none; }
@media (max-width: 1100px) { .bk { grid-template-columns: minmax(0, 1fr) 96px 132px 108px; } .bk .acts { grid-column: 1 / -1; justify-content: flex-start; } }
/* A phone: the guest's line on top, its guests, status and table side by side, the actions below. */
@media (max-width: 760px) {
  .bk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
  .bk > div:first-child { flex: 1 1 100%; min-width: 0; }
  .bk .meta { flex-wrap: wrap; white-space: normal; }
  .bk .acts { flex: 1 1 100%; justify-content: flex-start; }
}
/* Customers: the facts in columns under a heading row on wide screens, a line under the name on phones. */
.cust-cols, .cust-head { grid-template-columns: 38px minmax(0, 1.6fr) minmax(0, .6fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1fr) 16px; }
.cust-head { display: grid; gap: 12px; padding: 10px 18px 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-muted); }
.cust-cols .cust-c { font-size: 13.5px; font-variant-numeric: tabular-nums; min-width: 0; }
.cust-cols .cust-phone { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }
.cust-cols .cust-meta { display: none; }
@media (max-width: 900px) {
  .cust-head { display: none; }
  .cust-cols { grid-template-columns: 38px minmax(0, 1fr) 16px; }
  .cust-cols .cust-c { display: none; }
  .cust-cols .cust-meta { display: block; margin-top: 4px; }
}
