:root {
  /* Cliq dark theme (reference: bootstrapget.com Cliq admin template) */
  --page: #0f0e0f;
  --surface: #1f1e1f;
  --surface-subtle: rgba(0, 0, 0, .28);
  --ink: #e4e3e4;
  --muted: #8a8a8a;
  --line: #2e2d2e;
  --line-strong: #565556;
  --accent: #03835d;
  --accent-gradient: linear-gradient(45deg, #006b60 0%, #96c252 100%);
  --card-gradient: linear-gradient(45deg, #464646 0%, #141819 100%);
  --sidebar: #1b1a1b;
  --sidebar-active: #2b2a2b;
  --success: #b2ce84;
  --warning: #ffd26a;
  --danger: #ff6a59;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .28);
  --heading: #fff;
  --th-bg: #262527;
  --th-ink: #b5b4b5;
  --sticky-cell: #222123;
  --category-row: #343335;
  --option-bg: #1f1e1f;
  --topbar-bg: rgba(15,14,15,.92);
  --line-soft: rgba(255,255,255,.08);
  --hover-soft: rgba(255,255,255,.04);
  --placeholder: #6b6a6b;
}
/* Light theme (Settings → Appearance). The sidebar deliberately stays dark; page, cards and tables go light. */
html.theme-light {
  --page: #e0dcc5;
  --surface: #e2dec9;
  --surface-subtle: rgba(0, 0, 0, .05);
  --ink: #1d1d1f;
  --muted: #6b6b70;
  --line: #d9d5c4;
  --line-strong: #bcb8a6;
  --card-gradient: linear-gradient(45deg, #e6e2cf 0%, #dcd8c3 100%); /* beige cards, same tone as the light top bar (Eddie, 4 Sep 2026) */
  --success: #3f8a2f;
  --warning: #b07d0a;
  --danger: #d8402d;
  --shadow: 0 8px 24px rgba(0, 0, 0, .08);
  --heading: #111114;
  --th-bg: #d6d1ba;
  --th-ink: #4e4a3c;
  --sticky-cell: #e2dec9;
  --category-row: #cbc6ad;
  --option-bg: #ece8d8;
  --topbar-bg: rgba(226,222,201,.88);
  --line-soft: rgba(0,0,0,.08);
  --hover-soft: rgba(0,0,0,.03);
  --placeholder: #9a9aa0;
}
/* Light theme page background: seamless paper tile (paper-light.jpg), fixed so the grain doesn't scroll with content. */
html.theme-light { background: var(--page) url("paper-light.jpg") repeat; background-attachment: fixed; }
html.theme-light .par-category-row th { color: var(--heading); }
html.theme-light .status-cell .status-label { color: var(--muted); }
/* Overview tiles: coloured paper textures (paper/*.jpg, seamless tiles), used in BOTH themes. Tile-by-tile so each keeps its own colour identity.
   Doors, Rings and Liquor sit on pale papers (sky blue, pink, orange) so they use dark ink; the rest keep white text. */
.bento-tile.bento-sales  { background: #3f91b7 url("paper/paper-cyan.jpg") repeat; }
.bento-tile.bento-drinks { background: #5b965f url("paper/paper-green.jpg") repeat; }
.bento-tile.bento-liquor { background: #e79e50 url("paper/paper-orange.jpg") repeat; color: #3a2008; }
.bento-tile.bento-liquor > small, .bento-tile.bento-liquor .eyebrow { color: rgba(58,32,8,.7); }
.bento-tile.bento-gap    { background: #0282ce url("paper/paper-royal.jpg") repeat; }
.bento-tile.bento-checks { background: #2a6f69 url("paper/paper-velvet.jpg") repeat; }
.bento-tile.bento-flow   { background: #829e6e url("paper/paper-sage.jpg") repeat; color: #fff; }
.bento-tile.bento-flow .flow > div { background: rgba(0,0,0,.22); border-color: rgba(255,255,255,.14); }
.bento-tile.bento-flow .flow span, .bento-tile.bento-flow .flow small, .bento-tile.bento-flow .flow i, .bento-tile.bento-flow .eyebrow { color: rgba(255,255,255,.72); }
.bento-tile.bento-flow .flow strong, .bento-tile.bento-flow h2, .bento-tile.bento-flow .link { color: #fff; }
.bento-tile.bento-rings  { background: #fd8cba url("paper/paper-pink.jpg") repeat; color: #3a1020; }
.bento-tile.bento-rings .ring circle { stroke: rgba(0,0,0,.14); }
.bento-tile.bento-doors:not(.has-poster) { background: #86b3c4 url("paper/paper-sky.jpg") repeat; color: #10222b; }
.bento-tile.bento-doors:not(.has-poster) .poster-hint { color: rgba(16,34,43,.62); }
/* The Doors tile is the poster frame; the countdown lives in the top bar. Bottom-left caption: event name, date, doors-open – end. */
.bento-tile.bento-doors .poster-caption, .bento-tile.bento-doors.has-poster > .poster-caption { position: absolute; left: 24px; right: 60px; bottom: 20px; top: auto; display: grid; gap: 3px; z-index: 1; }
.poster-caption strong { font-size: 36px; line-height: 1.1; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-caption span { font-size: 24px; line-height: 1.2; opacity: .85; }
.poster-caption .poster-venue { margin-top: 6px; }
.poster-caption small { font-size: 12px; line-height: 1.3; opacity: .85; }
/* Caption scales down with the tile size chosen in Customise mode (data-cols / data-rows set by renderBento). */
.bento-doors[data-cols="1"] .poster-caption { right: 48px; }
.bento-doors[data-cols="1"] .poster-caption strong { font-size: 26px; }
.bento-doors[data-cols="1"] .poster-caption span { font-size: 16px; }
.bento-doors[data-cols="1"] .poster-caption small { font-size: 11px; }
.bento-doors[data-rows="1"] .poster-caption { bottom: 14px; gap: 1px; }
.bento-doors[data-rows="1"] .poster-caption strong { font-size: 20px; }
.bento-doors[data-rows="1"] .poster-caption span { font-size: 13px; }
.bento-doors[data-rows="1"] .poster-caption .poster-venue { margin-top: 2px; }
.bento-doors[data-rows="1"] .poster-caption small { font-size: 10px; }
.bento-tile.bento-doors:not(.has-poster) .poster-caption span { color: rgba(16,34,43,.72); opacity: 1; }
.bento:not(.editing) .bento-tile.bento-doors:not(.has-poster) .poster-hint { opacity: 1; top: 14px; bottom: auto; right: 16px; }
html.theme-light .bento-tile { box-shadow: 0 6px 18px rgba(60,50,20,.14), inset 0 0 0 1px rgba(255,255,255,.18); }

* { box-sizing: border-box; }
html { background: var(--page); color: var(--ink); font-family: Lato, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input, select, textarea { width: 100%; border: 1px solid var(--line-strong); background: transparent; color: var(--heading); border-radius: 4px; padding: 9px 10px; outline: none; }
select option { background: var(--option-bg); color: var(--heading); }
::placeholder { color: var(--placeholder); }
input:focus, select:focus, textarea:focus { border-color: #96c252; box-shadow: 0 0 0 2px rgba(150, 194, 82, .18); }
input[type="number"] { font-variant-numeric: tabular-nums; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 10px auto 10px 10px; z-index: 20; width: var(--sidebar-w, 232px); display: flex; flex-direction: column; background: var(--sidebar); color: #fff; border-radius: 10px; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 12px; height: 82px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-train { margin-left: auto; width: 104px; height: auto; flex: 0 0 auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.brand strong, .brand small, .sidebar-foot strong, .sidebar-foot small { display: block; }
.brand strong { font-size: 15px; }.brand small,.sidebar-foot small { margin-top: 2px; color: rgba(255,255,255,.55); font-size: 11px; }
.nav { display: grid; align-content: start; gap: 2px; padding: 18px 12px; overflow-y: auto; overscroll-behavior: contain; }
.nav-group { display: grid; gap: 2px; }
.nav-group[hidden] { display: none; }
.nav-toggle,.nav-item { width: 100%; min-height: 34px; border: 0; border-radius: 4px; background: transparent; color: #979697; text-align: left; text-transform: uppercase; }
.nav-toggle { display: flex; align-items: center; gap: 7px; padding: 7px 8px; font-size: 12px; }
.nav-toggle:hover,.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-chevron { width: 11px; color: rgba(255,255,255,.45); font-size: 18px; line-height: 1; transform: rotate(90deg); transition: transform .16s ease; }
.nav-toggle[aria-expanded="false"] .nav-chevron { transform: rotate(0); }
.nav-toggle.nav-level-0 { color: #fff; font-size: 13px; }
.nav-toggle.nav-level-1 { padding-left: 22px; }
.nav-toggle.nav-level-2 { padding-left: 42px; }
.nav-item { display: flex; align-items: center; padding: 8px 10px; font-size: 11px; line-height: 1.25; }
.nav-item.nav-level-1 { padding-left: 41px; }
.nav-item.nav-level-2 { padding-left: 34px; gap: 8px; white-space: nowrap; }
.nav-toggle.nav-level-2.nav-po { padding-left: 16px; gap: 8px; white-space: nowrap; }
.nav-item.nav-level-3 { padding-left: 62px; }
.nav-ico { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; }
.nav-ico svg { width: 14px; height: 14px; }
.nav-item.active .nav-ico, .nav-item:hover .nav-ico { box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.nav-item.nav-level-4 { padding-left: 100px; font-size: 10px; }
.nav-item.nav-level-4.nav-po-row { padding-left: 78px; }
.nav-note { display: block; padding: 6px 12px 6px 100px; color: rgba(255,255,255,.45); font-size: 10px; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: #fff; font-weight: 700; }
.sidebar-settings { margin-top: auto; display: grid; gap: 2px; padding: 8px 10px 0; }
.sidebar-settings .nav-settings { gap: 8px; }
.sidebar-settings .nav-settings.active { color: #fff; background: rgba(255,255,255,.06); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.client-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; } /* one straight row, bottom-right of the tile */
.client-actions .action-btn { width: 130px; }
.action-btn.save { background: #00b050; }
.action-btn.save:disabled { opacity: .45; cursor: default; filter: none; }
.action-btn { display: block; width: 100%; padding: 9px 12px; border: 2px solid rgba(0,0,0,.35); border-radius: 8px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.action-btn.edit { background: #ed7d31; }
.action-btn.edit.active { border-color: rgba(255,255,255,.85); box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
.action-btn.delete { background: #c00000; }
.action-btn:hover { filter: brightness(1.08); }
#clientForm.readonly input, #clientForm.readonly textarea { border-color: transparent; background: var(--surface-subtle); color: var(--ink); cursor: default; }
.settings-list { display: grid; gap: 10px; }
.settings-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); }
.settings-row strong { display: block; color: var(--ink); font-size: 12.5px; }
.settings-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.theme-switch { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.theme-switch button { padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.theme-switch button.active { background: var(--accent-gradient); color: #fff; }
.settings-value { color: var(--heading); font-size: 12px; font-weight: 700; white-space: nowrap; }
.button.danger { background: var(--danger); color: #fff; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
/* Sidebar textures (Eddie, 4 Sep 2026). Dark theme: dark concrete (paper/dark-sidebar.jpg) with light ink. Light theme: darker cream/beige paper (paper/paper-sidebar.jpg) with dark ink. Fonts one step bigger and darker in both. */
.sidebar { background: #343432 url("paper/dark-sidebar.jpg") repeat; box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.sidebar .nav-toggle.nav-level-0 { font-size: 15px; font-weight: 800; }
.sidebar .nav-toggle { font-size: 14px; }
.sidebar .nav-item { font-size: 13px; }
.sidebar .nav-item.nav-level-4 { font-size: 12px; }
.sidebar .nav-note { font-size: 11px; }
.sidebar .nav-toggle, .sidebar .nav-item { color: #d6d5d2; }
.sidebar .nav-toggle.nav-level-0 { color: #fff; }
.sidebar .brand small, .sidebar .sidebar-foot small { color: rgba(255,255,255,.7); }
html.theme-light .sidebar { background: #c0b38d url("paper/paper-sidebar.jpg") repeat; color: #15120b; box-shadow: 0 10px 28px rgba(0,0,0,.28); }
html.theme-light .sidebar .brand { border-bottom-color: rgba(21,18,11,.18); }
html.theme-light .sidebar .brand small, html.theme-light .sidebar .sidebar-foot small { color: rgba(21,18,11,.7); }
html.theme-light .sidebar .nav-toggle, html.theme-light .sidebar .nav-item { color: rgba(21,18,11,.88); }
html.theme-light .sidebar .nav-toggle.nav-level-0 { color: #15120b; }
html.theme-light .sidebar .nav-toggle:hover, html.theme-light .sidebar .nav-item:hover { background: rgba(21,18,11,.08); color: #15120b; }
html.theme-light .sidebar .nav-item.active { background: rgba(21,18,11,.14); color: #15120b; }
html.theme-light .sidebar .nav-chevron, html.theme-light .sidebar .nav-note { color: rgba(21,18,11,.6); }
html.theme-light .sidebar .nav-item.active .nav-ico, html.theme-light .sidebar .nav-item:hover .nav-ico { box-shadow: 0 0 0 3px rgba(21,18,11,.14); }
html.theme-light .sidebar .sidebar-settings .nav-settings.active { color: #15120b; background: rgba(21,18,11,.08); }
html.theme-light .sidebar .sidebar-foot { border-top-color: rgba(21,18,11,.18); }
html.theme-light .sidebar .brand-train { filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
/* Dark theme page background: dark concrete (paper/dark-page.jpg), fixed like the light paper. */
html:not(.theme-light) { background: #191919 url("paper/dark-page.jpg") repeat; background-attachment: fixed; }
.status-dot { width: 8px; height: 8px; background: #96c252; border-radius: 50%; box-shadow: 0 0 0 4px rgba(150,194,82,.18); }

.main { min-height: 100vh; margin-left: calc(var(--sidebar-w, 232px) + 20px); }
/* User-adjustable menu width (Eddie, 4 Sep 2026): drag the sidebar's right edge; stored per browser in localStorage (px.sidebarWidth). Double-click resets. */
.sidebar-resizer { position: absolute; top: 0; right: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 3; }
.sidebar-resizer:hover, .sidebar-resizer.active { background: linear-gradient(90deg, transparent 0%, rgba(150,194,82,.55) 100%); }
body.resizing-sidebar { cursor: col-resize; user-select: none; }
body.resizing-sidebar .sidebar { transition: none; }
.nav { overflow-x: hidden; }
@media (max-width: 1120px) { .sidebar-resizer { display: none; } }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 82px; display: flex; align-items: center; gap: 20px; padding: 14px 28px; background: var(--topbar-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 20px; }
.event-context { width: min(330px, 34vw); }
.event-context label, .date-field { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.event-context input { margin-top: 4px; padding: 0; border: 0; border-radius: 0; font-size: 15px; font-weight: 700; box-shadow: none; }
.topbar-countdown { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; text-align: center; }
.topbar-countdown-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.topbar-countdown strong { margin-top: 2px; color: var(--heading); font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.topbar-countdown small { margin-top: 2px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.topbar-countdown.live strong { color: var(--success); }
.topbar-countdown.past strong { color: var(--muted); }
.topbar-countdown.unset strong { color: var(--muted); font-size: 14px; font-weight: 650; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.date-field { width: 160px; }.date-field input { margin-top: 4px; padding: 0; border: 0; border-radius: 0; color: var(--heading); box-shadow: none; }
.save-status { color: var(--muted); font-size: 11px; }
.button { min-height: 36px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 50px; font-size: 12px; font-weight: 700; }
.button.primary { background: var(--accent-gradient); color: white; border-color: transparent; }
.button.secondary { background: transparent; color: var(--heading); }
.button.secondary:hover { background: rgba(255,255,255,.06); }
.text-button { padding: 0; background: transparent; border: 0; color: var(--muted); font-size: 12px; }
.text-button:hover { color: var(--ink); }

.view { display: none; padding: 34px 28px 56px; }.view.active { display: block; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.title-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.countdown { display: grid; gap: 1px; min-width: 150px; padding: 8px 14px; background: var(--card-gradient); border: 0; border-radius: 8px; box-shadow: var(--shadow); }
.countdown span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.countdown strong { font-size: 18px; letter-spacing: -.02em; line-height: 1.1; }
.countdown small { color: var(--muted); font-size: 10px; }
.countdown.live strong { color: var(--success); }.countdown.past strong { color: var(--muted); }
.page-heading h1 { color: var(--heading); margin: 5px 0 0; font-size: clamp(26px, 3vw, 38px); line-height: 1; letter-spacing: -.04em; }
.page-heading p { max-width: 440px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: right; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.metric-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; background: var(--card-gradient); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.metric span { color: var(--muted); font-size: 11px; font-weight: 700; }.metric strong { margin: 14px 0 6px; color: var(--heading); font-size: 25px; letter-spacing: -.04em; }.metric small { color: var(--muted); font-size: 10px; line-height: 1.4; }

.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.span-4 { grid-column: span 4; }.span-5 { grid-column: span 5; }.span-7 { grid-column: span 7; }.span-8 { grid-column: span 8; }.span-12 { grid-column: span 12; }
.panel { padding: 20px; background: var(--card-gradient); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.panel-head h2 { margin: 4px 0 0; color: var(--heading); font-size: 16px; letter-spacing: -.02em; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.2fr; align-items: stretch; gap: 9px; }
.flow > div { min-height: 104px; display: flex; flex-direction: column; justify-content: center; padding: 14px; background: var(--surface-subtle); border: 1px solid var(--line-soft); border-radius: 8px; }
.flow > div.result { background: rgba(0,0,0,.45); border-color: rgba(150,194,82,.5); }.flow i { align-self: center; color: var(--muted); font-style: normal; }.flow span { color: var(--muted); font-size: 10px; text-transform: uppercase; }.flow strong { margin: 5px 0; color: var(--heading); font-size: 24px; }.flow small { color: var(--muted); font-size: 10px; }
.field { display: block; color: var(--muted); font-size: 11px; font-weight: 650; }.field input,.field select,.field textarea { margin-top: 6px; color: var(--ink); font-weight: 500; }
.panel > .field + .field { margin-top: 12px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-subtle); cursor: pointer; }
.checkbox-field input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: #96c252; }
.checkbox-field span { display: grid; gap: 3px; }
.checkbox-field strong { color: var(--ink); font-size: 12px; }
.checkbox-field small { color: var(--muted); font-size: 10px; line-height: 1.4; }
[hidden] { display: none !important; }
.bar-page-heading { align-items: start; }
.optional-requirement-panel { width: min(640px, 100%); flex: none; }
.optional-requirement-grid { display: grid; grid-template-columns: minmax(200px, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.mobile-bar-block { display: grid; gap: 12px; }
.manpower-title { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.manpower-list { display: grid; gap: 6px; }
.manpower-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 7px 10px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--surface-subtle); }
.manpower-list span { color: var(--ink); font-size: 12px; font-weight: 650; }
.manpower-list strong { grid-row: span 2; color: var(--heading); font-size: 20px; font-variant-numeric: tabular-nums; text-align: right; }
.manpower-list small { color: var(--muted); font-size: 9.5px; line-height: 1.35; }
.manpower-link { display: inline-block; margin-top: 10px; color: #96c252; font-size: 11px; font-weight: 700; text-decoration: none; }
.manpower-link:hover { text-decoration: underline; }
.bar-totals-row { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 12px; align-items: stretch; }
.bar-total-field { max-width: 360px; padding: 16px; border: 1px solid rgba(150,194,82,.45); border-radius: 8px; background: rgba(0,0,0,.24); color: var(--ink); }
.bar-total-field input { margin-top: 10px; background: rgba(255,255,255,.04); font-size: 18px; font-weight: 750; text-align: center; }
.bar-total-readonly { display: flex; flex-direction: column; justify-content: center; }
.bar-total-readonly > span { color: var(--muted); font-size: 11px; font-weight: 650; }
.bar-total-readonly > strong { margin-top: 10px; color: var(--heading); font-size: 26px; line-height: 1; text-align: center; }
.station-limit-warning { display: block; margin-top: 8px; color: var(--danger); font-size: 10px; font-weight: 700; line-height: 1.4; text-align: center; }
.bar-allocation-list { display: grid; gap: 10px; margin-top: 18px; }
.bar-allocation-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px); gap: 12px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); }
.bar-allocation-row .field { color: var(--ink); font-size: 12px; }
.bar-allocation-row input { margin-top: 8px; background: rgba(255,255,255,.04); }
.station-allocation-field input { text-align: center; }
.vip-house-option, .ga-premium-option { grid-column: 1 / -1; }
.bar-empty-note { margin: 18px 0 0; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.mobile-bar-count { padding: 16px; border: 1px solid rgba(150,194,82,.45); border-radius: 8px; background: var(--surface-subtle); color: var(--ink); }
.mobile-bar-count input { margin-top: 10px; background: rgba(255,255,255,.04); font-size: 18px; font-weight: 750; text-align: center; }
.logic-rule-card { display: grid; grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(130px, .35fr)); gap: 12px; align-items: stretch; }
.logic-rule-card > div { display: grid; align-content: center; gap: 6px; min-height: 76px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); }
.logic-rule-card span { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.logic-rule-card strong { color: var(--ink); font-size: 14px; line-height: 1.4; }
.logic-rule-card > div:not(:first-child) strong { color: var(--heading); font-size: 24px; text-align: center; }
.logic-rule-card > small { grid-column: 1 / -1; color: var(--success); font-size: 11px; font-weight: 750; }
.logic-rule-card > small.danger { color: var(--danger); }
.logic-rule-card.danger > div { border-color: rgba(255,106,89,.35); }
#view-logic > .panel + .panel { margin-top: 12px; }
.par-level-status { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.par-level-wrap { max-height: calc(100vh - 200px) !important; } /* header row and category rows float while the table scrolls inside this wrap */
.par-level-table { width: max-content; min-width: 100%; }
.par-level-table th, .par-level-table td { min-width: 132px; }
.par-level-table th:nth-child(1), .par-level-table td:nth-child(1) { width: 260px; min-width: 260px; }  /* Inventory Item */
.par-level-table th:nth-child(2), .par-level-table td:nth-child(2) { width: 130px; min-width: 130px; }  /* Par Level */
.par-level-table th:nth-child(3), .par-level-table td:nth-child(3) { width: 126px; min-width: 126px; }  /* Total */
.par-level-table thead th { z-index: 5; }
.par-level-table thead th:nth-child(1) { left: 0; z-index: 6 !important; }
.par-level-table .par-item-row td:nth-child(1) { position: sticky; left: 0; z-index: 2; background: var(--sticky-cell); box-shadow: 1px 0 0 var(--line-strong); }
.par-category-row th { position: sticky !important; left: 0; top: 34px; z-index: 4 !important; padding-block: 8px; background: var(--category-row); color: var(--heading); font-size: 10px; letter-spacing: .1em; } /* floats just under the header row */
.par-category-row th:not(:first-child) { left: auto; }
.par-category-row th.par-consign-cell { text-align: right; }
.par-category-row th.par-cat-bar { text-align: center; }
.par-cat-bar input[type="checkbox"] { width: 16px; height: 16px; accent-color: #96c252; cursor: pointer; vertical-align: middle; }
.par-toggle { cursor: pointer; }
.par-toggle:hover { box-shadow: inset 0 0 0 1px rgba(150,194,82,.7); }
.par-item-off { color: var(--muted); }
.par-cat-off { color: var(--muted); opacity: .45; }
.par-level-table thead th { top: 0; }
.par-consign-head { text-align: right; }
.th-link { display: block; margin: 4px auto 0; padding: 0; border: 0; background: transparent; color: #7aa83f; font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: none; cursor: pointer; }
.th-link:hover { text-decoration: underline; }
html.theme-light .th-link { color: #3f7a1f; }
/* Bar products panel */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 22px 24px; background: var(--card-gradient); color: var(--ink); border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.modal-head h2 { margin: 2px 0 0; color: var(--heading); font-size: 20px; }
.modal-close { color: var(--heading); font-size: 13px; font-weight: 700; }
.template-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 11px; color: var(--muted); }
.template-chip { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.template-chip button { border: 0; background: transparent; color: var(--heading); font-size: 11px; font-weight: 700; padding: 5px 10px; }
.template-chip .chip-x { padding: 5px 8px 5px 0; color: var(--muted); }
.template-chip.active { border-color: #96c252; background: rgba(150,194,82,.16); }
.mode-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mode-opt { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); cursor: pointer; }
.mode-opt input { grid-row: span 2; accent-color: #96c252; }
.mode-opt strong { color: var(--heading); font-size: 13px; }
.mode-opt small { color: var(--muted); font-size: 11px; }
.mode-opt.active { border-color: #96c252; }
.product-groups { display: grid; gap: 10px; }
.product-group { border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.product-group-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--surface-subtle); cursor: pointer; }
.product-group-head strong { color: var(--heading); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.product-group-head small { margin-left: auto; color: var(--muted); font-size: 11px; }
.product-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 14px; padding: 8px 12px 10px; }
.product-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; color: var(--ink); cursor: pointer; }
.product-group input[type="checkbox"], .product-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: #96c252; flex: none; }
.template-save { display: flex; gap: 8px; margin-top: 14px; }
.template-save input { flex: 1; }
.th-sub { display: block; margin-top: 2px; font-size: 9px; font-weight: 400; letter-spacing: .04em; text-transform: none; opacity: .75; }
.par-consign-pct { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 11px; letter-spacing: 0; text-transform: none; }
.par-consign-pct input { width: 64px; padding: 4px 6px; font-size: 12px; font-weight: 750; text-align: right; }
.par-consign-cell { text-align: right; }
.par-consign-cell input[type="checkbox"] { width: 16px; height: 16px; accent-color: #96c252; cursor: pointer; }
.par-store { font-weight: 750; }
.par-item-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 600; }
.par-item-cell strong { display: block; }
/* Softdrinks can / ctns choice: plain text, no boxes — grey until picked, bold black once chosen (Eddie, 4 Sep 2026). */
.par-unit-choice { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11px; color: var(--muted); }
.par-unit-choice i { font-style: normal; opacity: .5; }
.par-unit-opt { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: 400; letter-spacing: .02em; cursor: pointer; }
.par-unit-opt:hover { color: var(--heading); }
.par-unit-opt.chosen { color: var(--heading); font-weight: 800; }
html.theme-light .par-unit-opt.chosen { color: #000; }
.par-total small { font-size: 9px; font-weight: 600; opacity: .7; margin-left: 2px; text-transform: uppercase; letter-spacing: .05em; }
.par-readonly { background: rgba(255,255,255,.035); color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 400; text-align: center; } /* bar allocation figures are regular weight (Eddie) */
.par-readonly.par-total { font-weight: 750; }
.par-unavailable { color: var(--muted); }
.par-input-cell input { background: rgba(255,255,255,.025); font-weight: 750; text-align: center; }
.par-level-empty { padding: 28px !important; color: var(--muted); text-align: center !important; }
.form-grid { display: grid; gap: 13px; }
.basic-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.field-span-3 { grid-column: span 3; }
.schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sponsored-table th:last-child, .sponsored-table td:last-child { width: 48px; }
.sponsored-table select, .sponsored-table input { width: 100%; }
.sponsored-table th:nth-child(4), .sponsored-table td:nth-child(4) { width: 130px; }
.sponsored-table td:nth-child(4) input { text-align: center; }
.basic-vendor-table td:first-child { width: 52%; }
.basic-vendor-table td:last-child { width: 42px; min-width: 42px; }
.time-between { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr); align-items: center; gap: 8px; }
.time-between span { color: var(--muted); text-align: center; }
input[readonly] { background: rgba(255,255,255,.04); color: var(--muted); }
.address-lookup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 6px; }
.address-lookup-row input { margin-top: 0; }
.lookup-status { display: block; min-height: 15px; margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 500; }
.lookup-status.success { color: var(--success); }.lookup-status.error { color: var(--danger); }
.onemap-connect { padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--surface-subtle); color: var(--ink); }
.onemap-connect summary { cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 700; }
.onemap-connect .field { max-width: 520px; margin-top: 12px; }
.formula-card { margin-top: 18px; padding: 16px; background: var(--surface-subtle); border: 1px solid var(--line-soft); border-radius: 8px; }.formula-card span,.formula-card code { display: block; color: var(--muted); font-size: 10px; }.formula-card strong { display: block; margin: 7px 0; color: var(--heading); font-size: 28px; }.formula-card code { font-family: inherit; }

.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--line-soft); border-radius: 8px; }.wide-table table { min-width: 980px; }
.view:not(#view-purchase-orders) .table-wrap { max-height: min(68vh, 640px); overflow: auto; }
.view:not(#view-purchase-orders) .table-wrap thead th { position: sticky; top: 0; z-index: 3; box-shadow: 0 1px 0 var(--line-strong), 0 5px 10px rgba(0,0,0,.35); }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; background: var(--th-bg); color: var(--th-ink); border-bottom: 1px solid var(--line-strong); text-align: left; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }tbody tr:hover td { background: var(--hover-soft); }
tfoot th { position: static; border-top: 1px solid var(--line-strong); border-bottom: 0; }
.input-table td { min-width: 92px; }.input-table td:has(> .supplier-select) { width: 124px; min-width: 124px; }.supplier-select { width: 112px; min-width: 112px; }.input-table td:nth-child(2) { min-width: 150px; }.input-table input,.input-table select { min-width: 76px; padding: 7px 8px; border-radius: 4px; }.input-table .computed { background: var(--hover-soft); color: var(--heading); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.view:not(#view-purchase-orders) .table-wrap th:first-child,
.view:not(#view-purchase-orders) .table-wrap td:first-child { text-align: left; }
.view:not(#view-purchase-orders) .table-wrap th:not(:first-child),
.view:not(#view-purchase-orders) .table-wrap td:not(:first-child) { text-align: center; }
.view:not(#view-purchase-orders) .table-wrap td:first-child input,
.view:not(#view-purchase-orders) .table-wrap td:first-child select { text-align: left; text-align-last: left; }
.view:not(#view-purchase-orders) .table-wrap td:not(:first-child) input,
.view:not(#view-purchase-orders) .table-wrap td:not(:first-child) select { text-align: center; text-align-last: center; }
.currency-input { position: relative; display: flex; align-items: center; }
.currency-input > span { position: absolute; left: 9px; z-index: 1; color: var(--muted); font-weight: 700; pointer-events: none; }
.currency-input input { padding-left: 22px !important; }
.logic-table { max-width: 620px; margin: 0 auto; }
.logic-measure { display: grid; grid-template-columns: minmax(90px, 140px) auto; align-items: center; justify-content: center; gap: 8px; }
.logic-measure span { color: var(--muted); font-weight: 700; }
.delete-row,.visibility-row,.edit-row { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 5px; cursor: pointer; }
.delete-row svg,.visibility-row svg,.edit-row svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.delete-row:hover { color: var(--danger); border-color: rgba(255,106,89,.4); background: rgba(255,106,89,.12); }
.edit-row:hover { color: var(--heading); border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.edit-row.editing { color: var(--success); border-color: rgba(178,206,132,.4); background: rgba(178,206,132,.12); }
.cell-text { display: block; white-space: normal; line-height: 1.35; }
.menu-cards { display: grid; gap: 16px; }
.menu-card .panel-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.menu-card .menu-card-eyebrow { justify-self: start; }
.menu-card .panel-title-edit { grid-column: 2; text-align: center; }
.menu-card .panel-title-edit .title-input { margin: 0 auto; text-align: center; min-width: 320px; }
.menu-card .panel-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.menu-card .panel-head .delete-row { margin-left: 4px; }
.panel-title-edit { min-width: 0; flex: 1; }
.title-input { display: block; width: 100%; max-width: 640px; margin: 5px 0 0; padding: 0 0 2px; border: 0; border-bottom: 1px dashed transparent; border-radius: 0; background: transparent; color: var(--heading); font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.title-input:hover { border-bottom-color: var(--line-strong); }.title-input:focus { outline: none; border-bottom-color: #96c252; box-shadow: none; }
.status-cell { white-space: nowrap; }
.status-buttons { display: grid; gap: 5px; width: 96px; margin: 0 auto; }
.status-btn { display: block; width: 100%; padding: 6px 8px; border: 2px solid transparent; border-radius: 6px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; opacity: .55; transition: opacity .15s ease, transform .15s ease; }
.status-btn.approve { background: #c6efce; color: #1d5e2f; border-color: #8fd39f; opacity: 1; } /* "To Be Approved" — pale green until approved */
.status-btn.approve.active { background: #00b050; color: #fff; }
.status-btn.edit { background: #ed7d31; }
.status-btn:hover { opacity: .85; }
.status-btn.active { opacity: 1; border-color: rgba(255,255,255,.85); box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
.status-buttons[data-status="draft"] .status-btn.edit { opacity: .8; }
.margin-cell.negative { color: var(--danger); }
.move-row { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; color: var(--muted); background: transparent; border: 1px solid var(--line-strong); border-radius: 5px; cursor: pointer; font-size: 11px; }
.move-row:hover:not(:disabled) { color: var(--heading); background: rgba(255,255,255,.06); }.move-row:disabled { opacity: .35; cursor: default; }
.row-actions-cell.arranging { width: 64px; min-width: 64px !important; }
.button.active { background: var(--sidebar-active); color: var(--heading); border-color: var(--line-strong); }
.panel-head-lead { display: flex; align-items: flex-start; gap: 10px; }
.panel-head-lead .edit-row { margin-top: 2px; flex: none; }
.panel-subhead { margin: 18px 0 10px; }.panel-subhead h3 { margin: 4px 0 0; color: var(--heading); font-size: 14px; letter-spacing: -.02em; }
.assumption-list { display: grid; gap: 10px; }.assumption-list div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12px; }.assumption-list span { color: var(--muted); font-weight: 650; font-size: 11px; }.assumption-list strong { color: var(--heading); font-weight: 700; }
.visibility-row:hover { color: var(--heading); border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.row-actions-cell { width: 58px; min-width: 58px !important; padding-right: 8px; text-align: right; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.cogs-toolbar { margin-top: 0; }
.cogs-row-hidden td { opacity: .48; }
.ratio-status { padding: 5px 8px; color: var(--success); background: rgba(178,206,132,.14); border-radius: 999px; font-size: 11px; font-weight: 800; }.ratio-status.invalid { color: var(--danger); background: rgba(255,106,89,.14); }
.check-list { display: grid; gap: 8px; }.check { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; background: var(--surface-subtle); border: 1px solid var(--line-soft); border-radius: 8px; font-size: 12px; }.check span:last-child { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }.check.warning span:last-child { color: var(--warning); }.check.danger span:last-child { color: var(--danger); }
.inline-number { display: inline-block; width: 54px; margin: 0 4px; padding: 3px 5px; }
.panel-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.po-workspace { max-width: 1060px; margin: 0 auto; }
.po-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; padding: 12px 14px; background: var(--card-gradient); border: 0; border-radius: 8px; box-shadow: var(--shadow); }
.po-toolbar strong { display: block; margin-top: 3px; color: var(--heading); font-size: 12px; }.po-toolbar .panel-actions { margin: 0; }
.po-document { min-height: 860px; padding: 42px 54px 38px; background: #fff; border: 0; box-shadow: 0 16px 50px rgba(0,0,0,.45); color: #2e2c29; font-family: Cambria, Georgia, serif; }
.po-document input, .po-document select, .po-document textarea { color: #2e2c29; }
.po-document input:focus, .po-document select:focus, .po-document textarea:focus { box-shadow: none; }
.po-document ::placeholder { color: #8f8a83; }
.po-document .currency-input > span { color: #2e2c29; }
.po-document .delete-row { color: #8f8a83; }
.po-document-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); align-items: start; gap: 24px; margin-bottom: 30px; }.po-title { margin: 0; text-align: right; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 42px; font-weight: 700; letter-spacing: .01em; }.po-event-title { min-width: 0; padding: 0; border: 0; background: transparent; color: #2e2c29; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 42px; font-weight: 700; line-height: 1.1; }.po-event-title:focus { border: 0; box-shadow: none; }
.po-details-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 60px; margin-bottom: 30px; }.po-details-block { display: grid; align-content: start; gap: 4px; }.po-details-block.right .po-line span { text-align: right; }
.po-line { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; min-height: 25px; font-size: 11px; }.po-details-block.right .po-line { grid-template-columns: 112px minmax(0, 1fr); }.po-line span { font-weight: 700; }.po-line input { height: 25px; padding: 2px 4px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; font-family: Cambria, Georgia, serif; font-size: 12px; }.po-line input:hover,.po-line input:focus { border-bottom-color: #a9a49c; box-shadow: none; }.po-line select { height: 25px; padding: 2px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; font-family: Cambria, Georgia, serif; font-size: 12px; }.po-line select:hover,.po-line select:focus { border-bottom-color: #a9a49c; box-shadow: none; }.po-spacer { height: 15px; }.po-spacer.small { height: 6px; }
.po-line.billing-line { grid-template-columns: 92px minmax(0, 1fr); }.po-line .billing-name { height: auto; min-height: 29px; font-size: 13px; font-weight: 800; white-space: normal; }
.po-table-wrap { overflow-x: auto; }.po-table { min-width: 760px; font-family: Cambria, Georgia, serif; font-size: 11px; }.po-table th { position: static; padding: 8px; background: transparent; color: #2e2c29; border-top: 1px solid #2e2c29; border-bottom: 1px solid #2e2c29; font-family: Cambria, Georgia, serif; font-size: 10px; letter-spacing: 0; text-align: center; text-transform: none; }.po-table th:nth-child(2) { text-align: left; }.po-table td { height: 34px; padding: 3px 6px; border-bottom: 0; }.po-table td { text-align: center; }.po-table td.po-product { text-align: left; }.po-table td.po-qty input { text-align: center; }.po-table td.po-qty input::placeholder { color: #2e2c29; opacity: 1; }.po-table tbody tr:hover td { background: #fbfaf8; }.po-table input { height: 28px; min-width: 70px; padding: 3px 4px; border: 0; border-bottom: 1px solid #dedbd6; border-radius: 0; background: transparent; font-family: Cambria, Georgia, serif; font-size: 11px; }.po-table input:focus { border-bottom-color: #2e2c29; box-shadow: none; }.po-table .serial { width: 48px; min-width: 48px; text-align: center; }.po-table .po-amount { min-width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
.po-table .currency-input > span { left: 4px; }.po-table .currency-input input { padding-left: 14px !important; }
.po-totals { display: grid; grid-template-columns: 1fr 270px; margin-top: 14px; }.po-totals table { font-family: Cambria, Georgia, serif; font-size: 11px; }.po-totals th { position: static; padding: 5px 10px; background: transparent; border: 0; color: #2e2c29; font-family: Cambria, Georgia, serif; font-size: 10px; letter-spacing: 0; text-align: right; text-transform: none; }.po-totals td { width: 120px; padding: 5px 8px; border: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }.po-totals .grand-total th,.po-totals .grand-total td { padding-top: 10px; border-top: 1px solid #2e2c29; font-size: 12px; }.po-gst-input { display: inline-block; width: 40px; padding: 1px 3px; border: 0; border-bottom: 1px solid #c9c5be; border-radius: 0; text-align: right; }
.po-notes { margin-top: 28px; }.po-notes label { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 700; }.po-notes textarea { min-height: 88px; padding: 7px 0; border: 0; border-top: 1px solid #dedbd6; border-bottom: 1px solid #dedbd6; border-radius: 0; font-family: Cambria, Georgia, serif; font-size: 11px; line-height: 1.55; resize: vertical; }.po-notes textarea:focus { box-shadow: none; border-color: #2e2c29; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: 320px; padding: 12px 15px; background: #2b2a2b; color: white; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 14px 40px rgba(0,0,0,.5); font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; }.toast.show { opacity: 1; transform: translateY(0); }

.panel-note { margin: 14px 0 0; color: var(--muted, #6b6b6b); font-size: 12px; }
/* Bento dashboard (Cliq colour set) */
.bento-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bento-bar[hidden] { display: none; }
#bentoEditToggle { display: none; }
body[data-view="overview"] #bentoEditToggle { display: inline-flex; }
.bento-hint { color: var(--muted); font-size: 11px; }
.bento-wrap { position: relative; }
.sidebar, .topbar { z-index: 20; }
/* Dashboard grid (Eddie, 5 Sep 2026) = GridStack (vendor/gridstack-all.js): 36 columns, 1 cm rows, 8px margins, free drag/resize in Customise mode. */
.bento { position: relative; z-index: 1; }
.grid-stack > .grid-stack-item > .bento-tile { position: absolute; overflow: hidden; } /* GridStack positions the item; the tile fills it */
.bento.editing .grid-stack-item { cursor: grab; }
.bento.editing .grid-stack-item > .bento-tile { outline: 2px dashed rgba(150,194,82,.7); outline-offset: -2px; }
.bento.editing .grid-stack-item.ui-draggable-dragging { cursor: grabbing; z-index: 30; }
.bento.editing .grid-stack-item.ui-draggable-dragging > .bento-tile, .bento.editing .grid-stack-item.ui-resizable-resizing > .bento-tile { box-shadow: 0 18px 40px rgba(0,0,0,.45); opacity: .92; }
.grid-stack-placeholder > .placeholder-content { border: 2px dashed #96c252; border-radius: 10px; background: rgba(150,194,82,.16); } /* live outline of the snapped drop position */
.bento.editing .grid-stack-item > .ui-resizable-handle { opacity: 0; transition: opacity .15s; }
.bento.editing .grid-stack-item:hover > .ui-resizable-handle { opacity: 1; }
.bento.editing .grid-stack-item > .ui-resizable-se { width: 18px; height: 18px; right: 4px; bottom: 4px; background: none; transform: none; }
.bento.editing .grid-stack-item > .ui-resizable-se::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 9px; height: 9px; border-right: 3px solid #96c252; border-bottom: 3px solid #96c252; }
.bento.editing .grid-stack-item > .ui-resizable-e { width: 10px; right: 0; cursor: ew-resize; }
.bento.editing .grid-stack-item > .ui-resizable-s { height: 10px; bottom: 0; cursor: ns-resize; }
.bento.editing .grid-stack-item > .ui-resizable-e:hover, .bento.editing .grid-stack-item > .ui-resizable-s:hover { background: rgba(150,194,82,.35); }
.bento-grid-overlay { position: fixed; inset: 0; z-index: 0; pointer-events: none; /* covers the whole page while customising (Eddie, 5 Sep 2026); cell size + origin set by renderBentoGridOverlay() so lines match the real cells */
  background-image: linear-gradient(to right, rgba(150,194,82,.45) 1px, transparent 1px), linear-gradient(to bottom, rgba(150,194,82,.45) 1px, transparent 1px);
  background-size: 1cm 1cm; background-position: 0 0; }
.bento-grid-overlay[hidden] { display: none; }
html.theme-light .bento-grid-overlay { background-image: linear-gradient(to right, rgba(63,122,31,.45) 1px, transparent 1px), linear-gradient(to bottom, rgba(63,122,31,.45) 1px, transparent 1px); }
.bento-grid-info { font-size: 11px; font-weight: 700; color: var(--heading); }
.tile-tools { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 10px; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); font-size: 11px; color: #fff; }
.tile-dims { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .04em; opacity: .9; }
.tile-swatches { display: flex; gap: 6px; }
.tile-swatch { width: 16px; height: 16px; border: 2px solid transparent; border-radius: 50%; padding: 0; cursor: pointer; }
.tile-swatch.active { border-color: #fff; }
.tile-size { display: flex; align-items: center; gap: 4px; }
.tile-size button { width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: transparent; color: #fff; font-size: 13px; line-height: 1; padding: 0; }
.tile-size button:hover { background: rgba(255,255,255,.15); }
.tile-size span { min-width: 34px; text-align: center; }
.tile-font { width: auto; padding: 3px 6px; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; background: rgba(0,0,0,.5); color: #fff; font-size: 11px; }
.tile-size button[data-font-step] { width: auto; padding: 0 6px; border-radius: 11px; font-size: 11px; }
.bento-tile { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px 24px; border-radius: 10px; box-shadow: var(--shadow); color: #fff; overflow: hidden; }
.bento-tile h2 { margin: 0; color: inherit; font-size: 20px; letter-spacing: -.01em; }
.bento-tile > small { margin-top: 8px; font-size: 12px; opacity: .85; }
.bento-big { display: block; margin-top: 18px; color: inherit; font-size: clamp(40px, 4vw, 60px); font-weight: 300; line-height: 1; letter-spacing: -.03em; }
.bento-dark { background: linear-gradient(45deg, #464646 0%, #141819 100%); } /* fixed: the "dark" tile colour is a tile choice, not the page theme */
.bento-teal { background: linear-gradient(160deg, #3fb0c1 0%, #67cdca 100%); }
.bento-green { background: linear-gradient(160deg, #5aa66b 0%, #a7d05e 100%); }
.bento-orange { background: linear-gradient(160deg, #ee6f57 0%, #f9a27c 100%); }
.bento-purple { background: linear-gradient(160deg, #4a4fd6 0%, #5d6ff3 100%); }
.bento-warm { background: linear-gradient(160deg, #5a4b41 0%, #2b3a3c 100%); }
.bento-light { background: linear-gradient(160deg, #f2f2f2 0%, #d9d9d9 100%); color: #1b1a1b; }
.bento-doors .eyebrow { color: var(--muted); }
.bento-doors small { margin-top: auto; color: var(--muted); font-size: 12px; line-height: 1.5; }
.bento-doors.live .bento-big { color: var(--success); }.bento-doors.past .bento-big { color: var(--muted); }
.bento:not(.editing) .bento-doors { cursor: pointer; }
.bento-doors.has-poster { background-color: #141819; background-size: cover; background-position: center; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.bento-doors.has-poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.65) 100%); pointer-events: none; }
.bento-doors.has-poster > * { position: relative; }
.bento-doors.has-poster .eyebrow, .bento-doors.has-poster small { color: rgba(255,255,255,.85); }
.bento-doors.has-poster.past .bento-big { color: rgba(255,255,255,.7); }
.poster-hint { position: absolute; right: 14px; bottom: 12px; color: var(--muted); font-size: 10px; opacity: 0; transition: opacity .15s; }
.bento:not(.editing) .bento-doors:hover .poster-hint { opacity: 1; }
.bento-doors.has-poster .poster-hint { display: none; }
.poster-remove { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; line-height: 1; opacity: 0; transition: opacity .15s; }
.bento-doors:hover .poster-remove { opacity: 1; }
.bento.editing .poster-remove { display: none; }
.bento-drinks > small { margin-top: auto; }
.bento-rings { display: flex; flex-direction: column; } /* was a 2-column ring grid; now the Event Production list */
.bento-flow { justify-content: center; }
.bento-flow .panel-head { margin-bottom: 10px; }
.bento-flow .flow > div { min-height: 64px; padding: 10px 12px; }.bento-flow .flow strong { font-size: 20px; margin: 3px 0; }
.tile-action { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.82); color: #ee6f57; }
.tile-action:hover { background: #fff; }
.bento.editing .tile-action { display: none; }
.bento-foot { margin-top: auto; }
.button.pill-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.button.pill-light:hover { background: rgba(255,255,255,.14); }
.bento-inputs { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.bento-inputs .field { color: rgba(255,255,255,.9); font-weight: 700; }
.bento-inputs input { background: rgba(255,255,255,.45); border-color: rgba(255,255,255,.55); color: #0f2b2e; font-weight: 700; }
.bento-inputs input:focus { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.ring-stat { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; text-align: center; }
.ring-stat span { font-size: 12px; opacity: .75; }.ring-stat strong { font-size: 22px; letter-spacing: -.02em; color: inherit; }.ring-stat small { font-size: 10px; opacity: .6; }
.ring circle { fill: none; stroke: rgba(128,128,128,.3); stroke-width: 6; }
.ring .ring-fill { stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dasharray .4s ease; }
.ring text { font-family: inherit; font-size: 14px; font-weight: 700; fill: currentColor; text-anchor: middle; }
.ring-lg circle { stroke: rgba(255,255,255,.28); stroke-width: 10; }.ring-lg text { font-size: 22px; fill: #fff; }
.gap-row { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.gap-row .bento-big { margin-top: 0; }.gap-row small { display: block; margin-top: 6px; font-size: 12px; opacity: .85; }
.tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tile-head .eyebrow { display: block; margin-bottom: 2px; opacity: .8; }
.tile-head .tile-action { position: static; }
.tile-list { margin-top: 10px; display: grid; gap: 0; overflow: auto; min-height: 0; }
.bento-gap .bento-big, .bento-drinks .bento-big { margin-top: 8px; font-size: clamp(30px, 3vw, 40px); }
.bento-gap[data-rows="1"] { padding-top: 14px; padding-bottom: 12px; } .bento-gap[data-rows="1"] .bento-big { margin-top: 2px; font-size: 26px; } .bento-gap[data-rows="1"] > small { display: none; } .bento-gap[data-rows="1"] .bento-rows { gap: 2px; font-size: 11px; } .bento-gap[data-rows="1"] .bento-rows > div { padding-top: 3px; }
.bento-gap .bento-rows, .bento-drinks .bento-rows { gap: 4px; font-size: 12px; }
.bento-gap .bento-rows > div, .bento-drinks .bento-rows > div { padding-top: 5px; }
.bento-rings .bento-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: flex-end; }
.tile-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.22); font-size: 12px; line-height: 1.3; }
.tile-row:last-child { border-bottom: 0; }
.tile-row strong small { font-size: 10px; font-weight: 400; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.bento-rings .tile-row, .bento-liquor .tile-row { border-bottom-color: rgba(0,0,0,.14); }
.menu-row { justify-content: flex-start; }
.menu-row .menu-product { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-row .menu-serving { flex: 1 1 auto; opacity: .75; font-size: 12px; }
.menu-row .menu-price { flex: 0 0 auto; margin-left: auto; text-align: right; }
.tile-person { display: grid; gap: 0; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.14); font-size: 11px; line-height: 1.35; }
.tile-person:last-child { border-bottom: 0; }
.tile-person strong { font-size: 13px; }
.tile-person span:empty { display: none; }
.tile-empty { margin: 14px 0 0; font-size: 12px; opacity: .75; }
.team-list { display: grid; gap: 12px; }
.team-member { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 12px 12px 34px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); }
.team-member .delete-row { position: absolute; right: 12px; bottom: 10px; color: var(--danger); font-size: 11px; }
.bento-rows { margin-top: auto; display: grid; gap: 8px; font-size: 13px; }
.bento-rows > div { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.3); }
.bento-checks .check-list { margin-top: 12px; gap: 0; }
.bento-checks .check { padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; font-size: 13px; }
.bento-checks .check:last-child { border-bottom: 0; }
.bento-checks .check span:last-child { padding: 4px 10px; border-radius: 4px; background: #8dc25a; color: #0f0e0f; letter-spacing: .06em; }
.bento-checks .check.warning span:last-child { background: var(--warning); color: #0f0e0f; }.bento-checks .check.danger span:last-child { background: var(--danger); color: #fff; }
@media (max-width: 1120px) {
  /* GridStack switches to 12 columns ≤1120px and 1 column ≤640px (columnOpts in initBento). */
}

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .span-4,.span-5,.span-7,.span-8 { grid-column: span 6; }
  .facilities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .save-status { display: none; }
}
@media (max-width: 820px) {
  .sidebar { transform: translateX(calc(-100% - 12px)); transition: transform .22s ease; }.sidebar.open { transform: translateX(0); box-shadow: 20px 0 50px rgba(0,0,0,.55); }
  .main { margin-left: 0; }.menu-toggle { display: block; }.topbar { padding: 12px 16px; }.topbar-actions .date-field,.topbar-actions .secondary,.topbar-countdown small { display: none; }.topbar-countdown strong { font-size: 15px; }.event-context { width: auto; flex: 1; }
  .view { padding: 26px 16px 48px; }.page-heading { align-items: start; flex-direction: column; }.page-heading p { text-align: left; }
  .basic-info-grid,.schedule-grid,.facilities-grid,.bar-allocation-row,.bar-totals-row,.logic-rule-card,.optional-requirement-grid,.settings-grid { grid-template-columns: 1fr; }
  .logic-rule-card > small { grid-column: auto; }
  .optional-requirement-panel { width: 100%; }
  .field-span-3 { grid-column: span 1; }
  .time-between { grid-template-columns: 1fr; }
  .time-between span { display: none; }
  .address-lookup-row { grid-template-columns: 1fr; }
  .span-4,.span-5,.span-7,.span-8,.span-12 { grid-column: span 12; }.metric-grid,.metric-grid.compact { grid-template-columns: repeat(2, 1fr); }.flow { grid-template-columns: 1fr; }.flow i { transform: rotate(90deg); }
  .po-toolbar { align-items: flex-start; flex-direction: column; }.po-document { min-height: 0; padding: 32px 24px; }.po-document-head { grid-template-columns: 1fr; }.po-event-title,.po-title { font-size: 34px; text-align: left; }.po-details-grid { grid-template-columns: 1fr; gap: 24px; }.po-details-block.right .po-line span { text-align: left; }
}
@media (max-width: 480px) {
  .metric-grid,.metric-grid.compact { grid-template-columns: 1fr; }.metric { min-height: 108px; }.topbar-actions .button { padding-inline: 9px; }.page-heading h1 { font-size: 27px; }
}

@media print {
  @page { size: A4 portrait; margin: 10mm; }
  .sidebar,.topbar,.page-heading,.po-toolbar,.panel-actions,.delete-row,.button,.toast { display: none !important; }.main { margin: 0; }.view { display: none !important; padding: 0; }.view.active { display: block !important; }.panel { border: 0; box-shadow: none; }.table-wrap { overflow: visible; }.po-workspace { max-width: none; }.po-document { min-height: 0; padding: 7mm 9mm; border: 0; box-shadow: none; }.po-document-head { margin-bottom: 5mm; }.po-event-title,.po-title { font-size: 28pt; }.po-table-wrap { overflow: visible; }.po-table { min-width: 0; }.po-table td { height: 7mm; }.po-line input,.po-table input,.po-notes textarea,.po-gst-input { border-color: transparent !important; }.po-details-grid { gap: 10mm; margin-bottom: 6mm; }.po-totals { margin-top: 3mm; }.po-notes { margin-top: 5mm; }.po-notes textarea { min-height: 18mm; }
  /* print layout restore: mobile breakpoint must not apply on A4 */
  .po-workspace { padding: 0; }
  .po-document-head { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 8mm; margin-bottom: 4mm; }
  .po-event-title, .po-title { font-size: 24pt; }
  .po-title { text-align: right; }
  .po-details-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 12mm; margin-bottom: 5mm; }
  .po-details-block.right .po-line span { text-align: right; }
  .po-line { min-height: 5.4mm; font-size: 10px; }
  .po-line input, .po-line select { height: 5.4mm; font-size: 10.5px; }
  .po-line select { appearance: none; -webkit-appearance: none; }
  .po-line .billing-name { min-height: 6mm; font-size: 11px; }
  .po-spacer { height: 3mm; } .po-spacer.small { height: 1.5mm; }
  .po-table td { height: 6.4mm; padding: 1px 6px; }
  .po-table input { height: 5.6mm; }
  .po-notes { margin-top: 4mm; }
  .po-notes textarea { min-height: 14mm; }
  .po-table tr, .po-totals, .po-notes { page-break-inside: avoid; }

  html, body, .app, .main, .view, .po-workspace { background: #fff !important; }
  .po-document-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
  .po-event-title { width: 100%; font-size: 20pt; }
  .po-table input { width: 100%; min-width: 0; }
  .po-table .serial { width: 8mm; min-width: 8mm; }
  .po-table .po-amount { min-width: 22mm; }
  .po-notes textarea { resize: none; }

  .po-title { white-space: nowrap; font-size: 22pt; }
  .po-document input, .po-document textarea { background: transparent !important; }
  .po-table th:nth-child(2), .po-table td:nth-child(2) { width: 32%; }
  .po-table th:nth-child(3), .po-table td:nth-child(3) { width: 16%; }

  .po-table tbody tr:hover td { background: transparent !important; }

}

/* ── Entry / sign-in screen ─────────────────────────────────────────── */
body.auth-checking .app-shell,
body.auth-locked .app-shell { display: none; }
body.auth-checking .auth-screen { display: none; }
body.auth-open .auth-screen,
body.auth-open .auth-boot { display: none; }

.auth-boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--page); z-index: 60; }
body:not(.auth-checking) .auth-boot { display: none; }
.auth-spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.16); border-top-color: #96c252; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-screen { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; overflow-y: auto; background:
  radial-gradient(900px 520px at 12% -10%, rgba(0,107,96,.34), transparent 60%),
  radial-gradient(760px 480px at 96% 108%, rgba(150,194,82,.16), transparent 62%), var(--page); }
.auth-panel { width: min(1040px, 100%); display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--sidebar); box-shadow: 0 30px 80px rgba(0,0,0,.55); }

.auth-hero { display: flex; flex-direction: column; padding: 40px 38px; background: var(--card-gradient); border-right: 1px solid rgba(255,255,255,.08); }
.auth-hero-top { display: flex; align-items: center; gap: 14px; }
.auth-mark strong { display: block; color: #fff; font-size: 17px; letter-spacing: .01em; }
.auth-mark small { display: block; margin-top: 2px; color: rgba(255,255,255,.55); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.auth-train { margin-left: auto; width: 128px; height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.55)); }
.auth-hero h1 { margin: 34px 0 0; color: #fff; font-size: 34px; line-height: 1.12; font-weight: 900; letter-spacing: -.01em; }
.auth-hero-sub { margin: 14px 0 0; max-width: 40ch; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.65; }
.auth-points { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.auth-points li { position: relative; padding-left: 22px; color: rgba(255,255,255,.78); font-size: 12.5px; line-height: 1.5; }
.auth-points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-gradient); }
.auth-hero-foot { margin-top: auto; padding-top: 30px; color: rgba(255,255,255,.4); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }

.auth-card { padding: 44px 38px; background: var(--sidebar); }
.auth-card form { display: grid; gap: 0; }
.auth-card .eyebrow { color: #96c252; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.auth-card h2 { margin: 8px 0 0; color: #fff; font-size: 24px; font-weight: 700; }
.auth-sub { margin: 8px 0 26px; color: var(--muted); font-size: 12.5px; }
.auth-card label { margin-bottom: 7px; color: rgba(255,255,255,.72); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.auth-card input { margin-bottom: 16px; padding: 11px 12px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.22); border-radius: 6px; color: #fff; caret-color: #fff; }
/* The sign-in panel is always dark, so its text must not inherit the light theme's dark ink (Eddie, 6 Sep 2026). */
.auth-card input::placeholder { color: rgba(255,255,255,.4); }
.auth-card input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.auth-card input:-webkit-autofill, .auth-card input:-webkit-autofill:hover, .auth-card input:-webkit-autofill:focus { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #262527 inset; caret-color: #fff; }
.auth-card .auth-error, .auth-card #authMsg { color: var(--danger); }
.auth-submit { margin-top: 6px; padding: 12px 14px; border: 0; border-radius: 6px; background: var(--accent-gradient); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transition: filter .15s ease; }
.auth-submit:hover:not(:disabled) { filter: brightness(1.08); }
.auth-submit:disabled { opacity: .6; cursor: default; }
.auth-alt { margin-top: 12px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: transparent; color: rgba(255,255,255,.7); font-size: 12px; }
.auth-alt:hover:not(:disabled) { border-color: #96c252; color: #fff; }
.auth-alt:disabled { opacity: .5; cursor: default; }
.auth-msg { min-height: 18px; margin: 14px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.auth-msg.is-error { color: var(--danger); }
.auth-msg.is-ok { color: var(--success); }

.sign-out { flex: 0 0 auto; margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: transparent; color: rgba(255,255,255,.6); }
.sign-out:hover { border-color: var(--danger); color: var(--danger); }
.sign-out svg { width: 15px; height: 15px; }
.sidebar-foot strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 126px; }

@media (max-width: 820px) {
  .auth-panel { grid-template-columns: minmax(0, 1fr); }
  .auth-hero { padding: 32px 26px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .auth-hero h1 { margin-top: 24px; font-size: 27px; }
  .auth-points { display: none; }
  .auth-card { padding: 30px 26px; }
}
@media print { .auth-screen, .auth-boot { display: none !important; } }

/* PX Crew (4 Sep 2026) — crew database, role slots, bids and the crew-view preview */
.empty-note { padding: 18px; color: var(--muted); font-size: 12px; text-align: center; }
.button.small { min-height: 28px; padding: 4px 12px; font-size: 11px; }
.button[disabled] { opacity: .45; cursor: not-allowed; }
.crew-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.crew-slot { padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); }
.crew-slot.filled { border-color: rgba(150,194,82,.5); }
.crew-slot-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.crew-slot-row input { width: 72px; text-align: center; }
.crew-slot-row small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.crew-slot.filled small { color: var(--success); font-weight: 700; }
.crew-photo { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--sidebar-active, #2a2a2a); color: var(--heading); font-size: 13px; font-weight: 800; flex: none; }
.crew-photo-pick { cursor: pointer; display: inline-block; outline: 2px dashed var(--line-strong); outline-offset: 2px; border-radius: 50%; }
.crew-name-cell { display: flex; align-items: center; gap: 10px; }
.crew-table td, .crew-bid-table td { vertical-align: middle; }
.crew-table input, .crew-table select { min-width: 110px; }
.crew-table input[data-crew="postalCode"] { min-width: 80px; }
.crew-bid-table input[data-bid-shift] { width: 124px; text-align: center; }
.crew-geo { font-size: 11px; }
.crew-missing { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--warning, #f0b43a); color: #1a1a1a; font-size: 11px; font-weight: 900; cursor: help; }
.crew-status { display: inline-block; padding: 4px 10px; border-radius: 50px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.crew-status-pending { background: rgba(240,180,58,.18); color: #f0b43a; }
.crew-status-confirmed { background: rgba(150,194,82,.18); color: #96c252; }
.crew-status-declined { background: rgba(255,106,89,.16); color: #ff6a59; }
.crew-bid-declined td { opacity: .55; }
.crew-bid-actions { justify-content: flex-end; gap: 6px; }
.crew-preview-field { display: flex; align-items: center; gap: 8px; }
.crew-preview-field select { margin-top: 0; min-width: 220px; }
.crew-phone { width: min(420px, 100%); margin: 0 auto; padding: 18px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface-subtle); }
.crew-phone-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.crew-phone-head strong { display: block; color: var(--heading); font-size: 15px; }
.crew-phone-head small { color: var(--muted); font-size: 11px; }
.crew-event-card { padding: 16px; border-radius: 14px; background: var(--card-gradient); box-shadow: var(--shadow); }
.crew-event-card h3 { margin: 4px 0 12px; color: var(--heading); font-size: 16px; letter-spacing: -.02em; }
.crew-event-card dl { display: grid; gap: 8px; margin: 0; }
.crew-event-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.crew-event-card dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.crew-event-card dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 600; text-align: right; }
.crew-event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
#staffTimingLogic > small { color: var(--muted); font-weight: 500; }
@media (max-width: 1120px) { .crew-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Event Information page (Eddie, 5 Sep 2026) — spacious bordered panels; theme tokens only, no hardcoded colours ===== */
:is(#view-basic-information, #view-logistics) .ei-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
:is(#view-basic-information, #view-logistics) .ei-span { grid-column: 1 / -1; }
:is(#view-basic-information, #view-logistics) .ei-panel { padding: 26px 28px 28px; background: var(--card-gradient); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.05); }
:is(#view-basic-information, #view-logistics) .ei-panel .panel-head { align-items: center; margin-bottom: 22px; padding-bottom: 0; }
:is(#view-basic-information, #view-logistics) .ei-panel .panel-head h2 { margin-top: 3px; font-size: 20px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
:is(#view-basic-information, #view-logistics) .ei-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
:is(#view-basic-information, #view-logistics) .ei-fields > .ei-full { grid-column: 1 / -1; }
:is(#view-basic-information, #view-logistics) .field { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.3; }
:is(#view-basic-information, #view-logistics) .field > input, :is(#view-basic-information, #view-logistics) .field > select, :is(#view-basic-information, #view-logistics) .field > textarea, :is(#view-basic-information, #view-logistics) .address-lookup-row input, :is(#view-basic-information, #view-logistics) .team-member input {
  margin-top: 8px; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-subtle); color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.35; }
:is(#view-basic-information, #view-logistics) .field > textarea { min-height: 128px; resize: vertical; }
:is(#view-basic-information, #view-logistics) .field > select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
:is(#view-basic-information, #view-logistics) input[readonly] { background: var(--hover-soft); color: var(--muted); }
:is(#view-basic-information, #view-logistics) input:focus-visible, :is(#view-basic-information, #view-logistics) select:focus-visible, :is(#view-basic-information, #view-logistics) textarea:focus-visible, :is(#view-basic-information, #view-logistics) .button:focus-visible, :is(#view-basic-information, #view-logistics) summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); box-shadow: none; }
:is(#view-basic-information, #view-logistics) .field .req { color: var(--danger); margin-left: 3px; } /* required marker — only where a field is already required */
:is(#view-basic-information, #view-logistics) .address-lookup-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 8px; align-items: stretch; }
:is(#view-basic-information, #view-logistics) .address-lookup-row .button { min-height: 48px; padding: 0 18px; border-radius: 6px; white-space: nowrap; }
:is(#view-basic-information, #view-logistics) .lookup-status { margin-top: 8px; font-size: 12px; }
:is(#view-basic-information, #view-logistics) .onemap-connect { padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 6px; }
:is(#view-basic-information, #view-logistics) .onemap-connect summary { font-size: 12px; }
:is(#view-basic-information, #view-logistics) .onemap-connect .field { margin-top: 14px; max-width: none; }
:is(#view-basic-information, #view-logistics) .team-list { gap: 16px; }
:is(#view-basic-information, #view-logistics) .team-member { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; padding: 20px 20px 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; }
:is(#view-basic-information, #view-logistics) .team-member .delete-row { right: 20px; bottom: 14px; font-size: 12px; }
:is(#view-basic-information, #view-logistics) .panel-actions { margin-top: 20px; }
:is(#view-basic-information, #view-logistics) .panel-actions .button, :is(#view-basic-information, #view-logistics) .panel-head .button { min-height: 44px; padding: 0 18px; border-radius: 6px; }
:is(#view-basic-information, #view-logistics) .panel-note { margin-top: 16px; font-size: 13px; }
:is(#view-basic-information, #view-logistics) .table-wrap { border-radius: 8px; border-color: var(--line); }
:is(#view-basic-information, #view-logistics) .input-table input, :is(#view-basic-information, #view-logistics) .input-table select { min-height: 42px; padding: 9px 12px; border-radius: 6px; }
@media (max-width: 1120px) { :is(#view-basic-information, #view-logistics) .ei-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } :is(#view-basic-information, #view-logistics) .ei-panel { padding: 22px 20px 24px; } }
@media (max-width: 640px) { :is(#view-basic-information, #view-logistics) .ei-fields, :is(#view-basic-information, #view-logistics) .team-member { grid-template-columns: minmax(0, 1fr); gap: 16px; } :is(#view-basic-information, #view-logistics) .address-lookup-row { grid-template-columns: minmax(0, 1fr); } :is(#view-basic-information, #view-logistics) .address-lookup-row .button { width: 100%; } }


/* ===== Settings → Permissions (Eddie, 5 Sep 2026). One tile per editable role; PXSA is fixed full access. ===== */
.perm-section { margin-top: 28px; }
.perm-section-head { display: block; margin-bottom: 16px; }
.perm-section-head h2 { font-size: 20px; font-weight: 650; }
.perm-note { margin: 8px 0 0; max-width: 900px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.perm-note strong { color: var(--ink); }
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.perm-tile { display: flex; flex-direction: column; gap: 18px; padding: 26px 28px 22px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.perm-tile.expanded { grid-column: 1 / -1; }
.perm-tile.dirty { border-color: var(--accent); }
.perm-tile .panel-head { align-items: flex-start; }
.perm-tile .panel-head h2 { font-size: 20px; font-weight: 650; }
.perm-blurb { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.perm-block { display: flex; flex-direction: column; gap: 10px; }
.perm-block > .eyebrow { color: var(--muted); }
.perm-users { display: flex; flex-wrap: wrap; gap: 8px; }
.perm-user { display: inline-flex; flex-direction: column; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); font-size: 12px; line-height: 1.35; }
.perm-user strong { color: var(--ink); font-size: 12.5px; }
.perm-user small { color: var(--muted); font-size: 11px; }
.perm-user[data-status="banned"] strong { color: var(--danger); text-decoration: line-through; }
.perm-empty { color: var(--muted); font-size: 12px; }
.perm-scopes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.perm-scope { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.perm-scope select { min-height: 40px; padding: 8px 32px 8px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-subtle); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.perm-menus { display: flex; flex-direction: column; gap: 6px; }
.perm-menu { border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); overflow: hidden; }
.perm-menu[data-off] > summary strong { color: var(--muted); }
.perm-menu > summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; color: var(--ink); font-size: 13px; user-select: none; }
.perm-menu > summary::-webkit-details-marker { display: none; }
.perm-menu > summary:hover { background: var(--hover-soft); }
.perm-menu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.perm-chevron { display: inline-block; width: 12px; color: var(--muted); transition: transform .15s; }
.perm-menu[open] .perm-chevron { transform: rotate(90deg); }
.perm-menu > summary strong { flex: 1 1 auto; font-weight: 650; }
.perm-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.perm-access { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 4px 10px; border: 1px solid var(--line-soft); border-radius: 50px; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.perm-access:has(input:checked) { color: var(--ink); border-color: var(--line-strong); }
.perm-table-wrap { margin: 0; border-top: 1px solid var(--line-soft); border-radius: 0; }
.perm-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.perm-table th { padding: 8px 12px; background: var(--th-bg); color: var(--th-ink); font-size: 11px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.perm-table th + th { text-align: center; width: 76px; }
.perm-table td { padding: 10px 12px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.perm-row-label strong { display: block; color: var(--ink); font-weight: 600; }
.perm-row-label small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.perm-row-label .perm-scope-hint { color: var(--warning); opacity: .85; }
html.theme-light .perm-row-label .perm-scope-hint { color: #8a6d1f; }
.perm-cb { text-align: center; }
.perm-tile input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.perm-tile input[type="checkbox"]:disabled { opacity: .35; cursor: not-allowed; }
.perm-tile input[type="checkbox"]:focus-visible, .perm-tile select:focus-visible, .perm-tile .button:focus-visible, .perm-tile .text-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.perm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.perm-action-group { display: flex; flex-direction: column; gap: 8px; }
.perm-action { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); cursor: pointer; }
.perm-action input { margin-top: 1px; flex: 0 0 auto; }
.perm-action strong { display: block; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.perm-action small { display: block; color: var(--muted); font-size: 11px; }
.perm-history { display: flex; flex-direction: column; gap: 8px; }
.perm-audit { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); font-size: 12px; }
.perm-audit-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--ink); }
.perm-audit-head small { color: var(--muted); }
.perm-audit ul { margin: 8px 0 0; padding-left: 16px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.perm-audit code { color: var(--ink); font-size: 11px; }
.perm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.perm-meta { color: var(--muted); font-size: 11px; }
.perm-msg { flex: 1 1 auto; color: var(--warning); font-size: 12px; text-align: right; }
.perm-foot-actions { display: flex; gap: 8px; }
@media (max-width: 1120px) { .perm-grid { grid-template-columns: 1fr; } .perm-actions { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .perm-tile { padding: 20px 16px; }
  .perm-scopes { grid-template-columns: 1fr; }
  .perm-menu > summary { flex-wrap: wrap; }
  .perm-access { margin-left: 22px; }
  .perm-table th + th { width: 56px; padding-left: 4px; padding-right: 4px; }
  .perm-table td { padding: 8px 6px; }
  .perm-foot { flex-direction: column; align-items: stretch; }
  .perm-msg { text-align: left; }
  .perm-foot-actions .button { flex: 1 1 auto; }
}
.perm-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.perm-bulk { display: inline-flex; gap: 12px; }
.perm-bulk .text-button { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.perm-bulk .text-button:hover { color: var(--accent); }
.perm-col-all { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; text-transform: uppercase; }
.perm-col-all input { width: 15px; height: 15px; }
.perm-tile.error { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger) inset; }
.perm-msg.is-error { color: var(--danger); font-weight: 600; }
.perm-item-error { outline: 2px solid var(--danger); outline-offset: -2px; border-radius: 8px; }
tr.perm-item-error td { background: rgba(255, 106, 89, .12); }
tr.perm-item-error { outline-offset: 0; border-radius: 0; }
.perm-menu.perm-item-error > summary strong { color: var(--danger); }

.settings-grid-about { grid-template-columns: 1fr; }
.settings-grid-backup { grid-template-columns: 1fr; margin-top: 28px; }
.settings-row-stack { grid-template-columns: 1fr; }
.settings-snapshots { display: flex; flex-direction: column; gap: 8px; }
.snapshot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); }
.snapshot-row strong { flex: 1 1 200px; color: var(--ink); font-size: 12.5px; }
.snapshot-row small { color: var(--muted); font-size: 11px; }
.snapshot-row .snapshot-actions { display: flex; gap: 8px; }

/* ===== Logistics vendor tiles + Dashboard logistics summary + Footprint Water (Eddie, 7 Sep 2026) ===== */
.logistics-vendors-head { margin-bottom: 14px; }
.logistics-vendors { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; margin-bottom: 28px; }
.logistics-vendors .logistics-empty { grid-column: 1 / -1; }
.vendor-tile { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.vendor-tile .panel-head { align-items: flex-start; }
.vendor-tile h2 { font-size: 18px; font-weight: 650; }
.vendor-count { flex: 0 0 auto; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 50px; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.vendor-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.vendor-detail span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.vendor-detail strong { display: block; margin-top: 2px; color: var(--ink); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.vendor-detail .missing { color: var(--muted); font-style: italic; font-weight: 400; }
.vendor-missing { margin: 0; }
.vendor-missing .text-button, .logistics-empty .text-button { color: var(--accent); font-size: inherit; font-weight: 600; }
.vendor-windows { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); font-size: 12.5px; color: var(--ink); }
.vendor-items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.vendor-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink); }
.vendor-items li small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.logistics-summary { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.logistics-summary .tile-row-head { font-weight: 700; }
.logistics-summary .tile-row small { display: block; opacity: .7; font-size: 10.5px; }
.logistics-summary .tile-divider { height: 1px; margin: 6px 0; background: rgba(255,255,255,.18); }
.sales-tile-inputs { margin-top: auto; }
.footprint-water { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 14px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); cursor: pointer; }
.footprint-water.active { border-color: var(--accent); }
.footprint-water input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); }
.footprint-water strong { display: block; color: var(--ink); font-size: 13px; }
.footprint-water small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.par-level-table .th-tag { display: block; margin-top: 2px; color: var(--accent); font-weight: 700; }
/* Per-supplier Delivery & Collection (Eddie, 8 Sep 2026) — sits between the supplier details and the item list. */
.vendor-logistics { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.vendor-logistics > .eyebrow { color: var(--muted); }
.vendor-logistics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.vendor-logistics-grid .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; } /* inputs/labels inherit the Logistics page field styling (48px inputs, 6px radius) */
.vendor-logistics-grid .field > input, .vendor-logistics-grid .field > textarea { margin-top: 0; }
:is(#view-basic-information, #view-logistics) .vendor-logistics-grid .field > textarea { min-height: 84px; }
.vendor-logistics-grid input[type="date"] { color-scheme: dark; }
html.theme-light .vendor-logistics-grid input[type="date"] { color-scheme: light; }
.vendor-logistics-notes { grid-column: 1 / -1; }
.logistics-summary .tile-row-3 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 10px; }
.logistics-summary .tile-row-3 .tile-col-left { text-align: left; font-weight: 600; overflow-wrap: anywhere; }
.logistics-summary .tile-row-3 .tile-col-center { text-align: center; }
.logistics-summary .tile-row-3 .tile-col-right { text-align: right; overflow-wrap: anywhere; }
.logistics-summary .tile-row-head.tile-row-3 span { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.logistics-summary .tile-unset { opacity: .55; font-style: normal; }
@media (max-width: 640px) { .logistics-vendors { grid-template-columns: 1fr; } .vendor-details, .vendor-logistics-grid { grid-template-columns: 1fr; } }
/* UI View preview (owners only) */
.ui-preview-banner { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 16px; background: var(--warning); color: #1d1d1f; font-size: 12.5px; }
.ui-preview-banner strong { font-weight: 700; }
.ui-preview-banner .button { min-height: 28px; padding: 4px 12px; color: #1d1d1f; border-color: rgba(0,0,0,.35); }
.settings-select { min-height: 36px; padding: 6px 30px 6px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-subtle); color: var(--ink); font: inherit; font-size: 12.5px; }
/* Total Beverage Sales tile: compact manual inputs (Eddie, 7 Sep 2026) */
.bento-gap { display: flex; flex-direction: column; }
.bento-gap .bento-big { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; }
.bento-gap > small { display: none; }
.sales-tile-inputs { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; overflow: auto; min-height: 0; }
.sales-tile-inputs .field { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.22); padding: 3px 0; }
.sales-tile-inputs .field:last-child { border-bottom: 0; }
.sales-tile-inputs input { width: 104px; min-height: 26px; padding: 3px 8px; font-size: 12px; text-align: right; }

/* ===== Past Inventory (Eddie, 8 Sep 2026) ===== */
.past-inventory-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.past-inventory-modal { width: min(640px, 100%); }
.past-inventory-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 14px; }
.past-inventory-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.past-inventory-form .field input, .past-inventory-form .field select { width: 100%; min-height: 42px; margin-top: 0; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-subtle); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; }
.past-inventory-form .field input:focus-visible, .past-inventory-form .field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.past-inventory-form .field input[type="date"] { color-scheme: dark; }
html.theme-light .past-inventory-form .field input[type="date"] { color-scheme: light; }
.past-inventory-form .form-error { grid-column: 1 / -1; margin: 0; color: var(--danger); font-size: 12.5px; }
.past-inventory-form .modal-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
@media (max-width: 640px) { .past-inventory-form { grid-template-columns: 1fr; } .past-inventory-actions .button { flex: 1 1 auto; } }
.past-closing { white-space: nowrap; }
.past-closing small { color: var(--muted); font-size: 11px; font-weight: 400; }
.transfer-qty { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; }
.external-transfer-table .transfer-source { max-width: 260px; white-space: pre-wrap; color: var(--muted); font-size: 12px; }
.external-transfer-table td.computed small { color: var(--muted); font-size: 11px; }
/* Past Inventory event tiles sized like the Event Information cards (Eddie, 8 Sep 2026): two per row, same border / radius / padding / heading. */
.past-inventory-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.past-inventory-group { padding: 26px 28px 24px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.05); min-width: 0; }
.past-inventory-group .panel-head { align-items: center; margin-bottom: 16px; padding-bottom: 0; }
.past-inventory-group .panel-head h2 { margin-top: 3px; font-size: 20px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.past-inventory-group .panel-status { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.past-inventory-table { font-size: 12.5px; }
.past-inventory-table th, .past-inventory-table td { padding: 8px 10px; }
@media (max-width: 1120px) { .past-inventory-groups { grid-template-columns: minmax(0, 1fr); gap: 20px; } .past-inventory-group { padding: 22px 20px 24px; } }
.past-inventory-table td { min-width: 0; }
.past-inventory-table th:nth-child(2), .past-inventory-table td:nth-child(2) { width: 64px; min-width: 64px; white-space: nowrap; }
.past-inventory-table th:nth-child(3), .past-inventory-table td:nth-child(3) { width: 132px; min-width: 132px; white-space: nowrap; }
.past-inventory-table th:nth-child(4), .past-inventory-table td:nth-child(4) { width: 86px; min-width: 86px; white-space: nowrap; }
.past-inventory-table th:nth-child(5), .past-inventory-table td:nth-child(5) { width: 64px; }
.past-inventory-table td:first-child { width: auto; min-width: 0; }
.past-inventory-table input[type="number"] { max-width: 120px; }

/* Par Level → Previous Event Stock (Eddie, 8 Sep 2026) */
.prev-stock-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 0 0 16px; font-size: 13px; }
.prev-stock-label { color: var(--ink); font-weight: 600; font-size: 13px; }
.prev-stock-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.prev-stock-toggle label { position: relative; cursor: pointer; }
.prev-stock-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.prev-stock-toggle span { display: block; padding: 6px 14px; color: var(--muted); font-size: 12px; font-weight: 600; }
.prev-stock-toggle label + label span { border-left: 1px solid var(--line-strong); }
.prev-stock-toggle input:checked + span { background: var(--accent); color: #fff; }
.prev-stock-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.prev-stock-controls select { min-height: 34px; min-width: 260px; max-width: 480px; flex: 0 1 auto; padding: 6px 32px 6px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-subtle); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 500; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.prev-stock-status { color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.prev-stock-status:empty { display: none; }
.prev-stock-fields[hidden], .prev-stock-fields .field[hidden] { display: none; }
.prev-stock-status.warn { color: var(--warning); }
.par-level-table .par-prev-head, .par-level-table .par-prev-cell { min-width: 150px; text-align: right; }
.par-level-table td.par-prev-cell { color: var(--ink); font-weight: 600; }
.par-level-table td.par-prev-cell small { color: var(--muted); font-size: 10.5px; font-weight: 400; }
.par-level-table td.par-prev-missing { color: var(--warning); font-weight: 500; font-size: 11.5px; }
.par-level-table td.par-prev-unit { text-decoration: underline dotted var(--warning); text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Event Information: Event timings + Previous event stock share the right-hand column (Eddie, 8 Sep 2026) */
#view-basic-information .ei-stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (max-width: 1120px) { #view-basic-information .ei-stack { gap: 20px; } }

/* ---------- Client Event Team (Eddie, 8 Sep 2026): member tiles, status colours, drawer, permissions matrix; PXSA read-only ---------- */
.team-legacy { border: 1px dashed var(--line-soft); border-radius: 10px; padding: 10px 14px; margin-top: 12px; }
.team-legacy > summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.team-legacy[open] > summary { margin-bottom: 12px; }
body[data-team-mode="client"] .team-legacy { display: none; }
.team-legacy.plain { border: 0; padding: 0; margin-top: 0; }
.team-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.team-filters button { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-soft); background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.team-filters button.active { background: var(--accent, #ee6f57); border-color: transparent; color: #fff; }
.team-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.team-tile { display: grid; grid-template-columns: 46px 1fr; gap: 6px 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-subtle); min-height: 132px; }
.team-tile:hover { border-color: var(--heading); }
.team-avatar { grid-row: span 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, #4fb7c4, #6a5be0); overflow: hidden; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-tile strong { font-size: 15px; line-height: 1.2; color: var(--heading); }
.team-tile .team-role { font-size: 12px; color: var(--muted); }
.team-tile .team-company { font-size: 12px; color: var(--muted); }
.team-tile .team-company:empty { display: none; }
.team-tile .team-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.team-tile .team-foot .text-button { font-size: 12px; font-weight: 700; color: var(--heading); }
.team-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.team-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.team-status[data-status="active"] { color: #3fa66b; }
.team-status[data-status="pending"] { color: #f0b43a; }
.team-status[data-status="expiring"] { color: #e6892e; }
.team-status[data-status="expired"] { color: #8a8a8a; }
.team-status[data-status="revoked"] { color: #e05252; }
.team-tile[data-status="revoked"], .team-tile[data-status="expired"] { opacity: .78; }
.team-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.team-modal { width: min(880px, 100%); }
.team-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.team-form .field.full { grid-column: 1 / -1; }
.team-form .field > input, .team-form .field > select { width: 100%; }
.team-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.team-section h3 { margin: 0 0 4px; font-size: 14px; color: var(--heading); }
.team-section .panel-note { margin: 0 0 10px; }
.perm-matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.perm-matrix th, .perm-matrix td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.perm-matrix th:first-child, .perm-matrix td:first-child { text-align: left; }
.perm-matrix td small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.perm-matrix input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent, #ee6f57); }
.perm-matrix .na { color: var(--muted); }
.perm-matrix.readonly input { pointer-events: none; }
.team-toggle { display: flex; gap: 14px; align-items: center; font-size: 13px; margin-bottom: 10px; }
.team-toggle label { display: inline-flex !important; flex: 0 0 auto; width: auto; gap: 6px; align-items: center; cursor: pointer; white-space: nowrap; font-size: 13px; }
.team-toggle input[type="radio"] { width: 16px; height: 16px; margin: 0; }
.team-expiry { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.team-expiry small { color: var(--muted); font-size: 11px; }
.team-modal-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.team-modal-actions .left, .team-modal-actions .right { display: flex; gap: 8px; flex-wrap: wrap; }
.team-msg { font-size: 12px; color: var(--muted); min-height: 16px; margin-top: 8px; }
.team-msg.error { color: var(--danger, #e06666); }
.team-audit { margin-top: 12px; max-height: 220px; overflow: auto; font-size: 12px; }
.team-audit div { display: grid; grid-template-columns: 150px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.team-audit span:first-child { color: var(--muted); white-space: nowrap; }

/* Invite Client Admin — bottom-left of the client card (PXSA only) */
.client-admin-invite { margin-right: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.client-admin-status { font-size: 12px; color: var(--muted); }
.client-admin-status[data-status="pending"] { color: #f0b43a; }
.client-admin-status[data-status="accepted"] { color: #3fa66b; }

/* Next-step buttons under a page + submit status */
.page-next { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 18px; }
.page-next-status { font-size: 12px; color: var(--muted); }
.page-next-status.error { color: var(--danger, #e06666); }
.page-next-status.ok { color: #3fa66b; }

/* Notifications bell (PXSA) */
.notify-wrap { position: relative; }
.notify-bell { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-soft); background: transparent; color: var(--heading); display: grid; place-items: center; cursor: pointer; }
.notify-bell svg { width: 18px; height: 18px; }
.notify-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e05252; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.notify-panel { position: absolute; right: 0; top: 44px; width: min(380px, 90vw); max-height: 60vh; overflow: auto; z-index: 70; padding: 12px; border-radius: 12px; background: var(--card-gradient); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.notify-panel h3 { margin: 0 0 8px; font-size: 13px; color: var(--heading); }
.notify-item { padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.notify-item strong { display: block; font-size: 13px; color: var(--heading); }
.notify-item small { color: var(--muted); }
.notify-item.unread { border-left: 3px solid var(--accent, #ee6f57); padding-left: 8px; }
.notify-empty { font-size: 12px; color: var(--muted); }

/* Client View: event picker in the sidebar */
.client-events-nav { padding: 8px 14px 4px; }
.client-events-nav select { width: 100%; }
.client-events-nav .button { width: 100%; margin-top: 8px; }
.client-banner { display: none; }
@media (max-width: 720px) { .team-form { grid-template-columns: 1fr; } .team-expiry { grid-template-columns: 1fr; } }
