:root {
  --ui-font-px: 14px; /* user-overridable via Settings */
  --bg: #f4f6f8;
  --surface: #fff;
  --border: #d8dee6;
  --text: #1a2332;
  --muted: #5c6b7a;
  --accent: #1e4d6b;
  --accent-hover: color-mix(in srgb, var(--accent) 78%, #000);
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --cyan: #0891b2;
  --slate: #64748b;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Density tokens — Compact is default (fewer full-page scrolls) */
  --body-lh: 1.35;
  --container-pad-y: .45rem;
  --container-pad-x: .85rem;
  --container-pad-bottom: .85rem;
  --card-pad-y: .7rem;
  --card-pad-x: .85rem;
  --card-gap: .65rem;
  --h1-size: 1.28rem;
  --h1-margin: 0 0 .55rem;
  --h2-size: 1.05rem;
  --h2-margin: .75rem 0 .45rem;
  --h3-margin: .65rem 0 .35rem;
  --toolbar-gap: .45rem;
  --toolbar-margin: 0 0 .55rem;
  --cell-pad-y: .3rem;
  --cell-pad-x: .5rem;
  --tab-pad-y: .35rem;
  --tab-pad-x: .65rem;
  --tabs-margin: 0 0 .55rem;
  --form-grid-gap: .55rem;
  --flash-pad: .45rem .7rem;
  --flash-margin: 0 0 .55rem;
  --subnav-pad-y: .15rem;
  --subnav-pad-x: .65rem;
  --filter-summary-pad: .4rem .7rem;
  --filter-body-pad: .5rem .75rem .65rem;
  --sticky-actions-pad: .15rem .55rem;
  --sticky-reports-pad: .12rem .5rem;
  --sticky-chrome-margin: 0 0 .45rem;
  --cal-day-min-h: 4.6rem;
  --cal-day-pad: .2rem;
  --cal-event-pad: .06rem .22rem;
  --cal-event-fs: .62rem;
  --actions-h: 36px;
  --reports-h: 28px;
}
* { box-sizing: border-box; }
html { font-size: var(--ui-font-px, 14px); }
body { margin: 0; font-family: var(--font); font-size: 1rem; background: var(--bg); color: var(--text); line-height: var(--body-lh, 1.35); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  background: #0f2740; color: #e8eef4;
  padding: 0 .65rem 0 .75rem;
  display: flex; align-items: center; gap: .4rem;
  min-height: 40px; height: 40px;
  flex-wrap: nowrap;
  overflow: visible; /* allow Toolbox / Language menus to drop below bar */
}
.topbar .brand { display: flex; align-items: center; gap: .4rem; font-weight: 650; letter-spacing: .02em; color: #fff; white-space: nowrap; flex: 0 0 auto; }
.topbar .brand .brand-logo { height: 30px; width: auto; max-width: 110px; object-fit: contain; display: block; flex-shrink: 0; }
.topbar .brand .brand-text { font-size: .78rem; }
.topbar .brand .brand-text span { font-weight: 400; opacity: .65; margin-left: .25rem; font-size: .68rem; display: none; }
.sales-photo { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); background: #eee; display: block; }
.sales-photo-sm { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); background: #eee; vertical-align: middle; }
.lookbook-line { display: flex; gap: .85rem; align-items: flex-start; padding: .5rem .25rem; border-top: 1px solid var(--border); }
.lookbook-line .lookbook-body { flex: 1; min-width: 0; }
.nav-portals {
  display: flex; gap: .1rem; flex-wrap: nowrap;
  flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin; align-items: center;
}
.nav-portals > a,
.nav-portals .nav-portal-link {
  color: #b8c9d9; padding: .2rem .45rem; border-radius: 3px;
  font-size: .72rem; font-weight: 550; white-space: nowrap; flex: 0 0 auto; line-height: 1.2;
  text-decoration: none;
}
.nav-portals > a:hover,
.nav-portals .nav-portal-link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav-portals > a.active,
.nav-portals .nav-portal-link.active { background: var(--accent); color: #fff; }
.user-bar {
  margin-left: auto; flex: 0 0 auto;
  display: flex; align-items: center; gap: .3rem;
  white-space: nowrap; font-size: .7rem;
  position: relative; z-index: 210;
  max-width: none;
}
.user-bar a { color: #c5d4e2; font-size: .7rem; padding: .18rem .35rem; border-radius: 3px; }
.user-bar a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.user-bar .user-meta { font-size: .65rem; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
/* Matching compact pills: Toolbox + language */
.user-bar .lang-summary, .user-bar .toolbox-summary {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  padding: .18rem .4rem; cursor: pointer; list-style: none;
  color: #e8eef4; border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
  background: rgba(255,255,255,.06); line-height: 1.15; user-select: none;
  white-space: nowrap; min-height: 1.55rem;
}
.user-bar .lang-summary:hover, .user-bar .toolbox-summary:hover {
  background: rgba(255,255,255,.14); color: #fff;
}
.user-bar .lang-summary::-webkit-details-marker,
.user-bar .toolbox-summary::-webkit-details-marker { display: none; }
.user-bar .lang-switch, .user-bar .admin-toolbox { flex: 0 0 auto; }
.user-bar .lang-summary::after, .user-bar .toolbox-summary::after {
  content: "▾"; font-size: .62rem; opacity: .75; margin-inline-start: .05rem;
}
.subnav {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: var(--subnav-pad-y, .15rem) var(--subnav-pad-x, .65rem); display: flex; gap: .3rem; flex-wrap: wrap; align-items: center;
  min-height: 0;
}
.subnav a { color: var(--muted); font-size: .75rem; font-weight: 500; padding: .15rem .4rem; border-radius: 3px; }
.subnav a:hover, .subnav a.active { color: var(--accent); background: #eef3f7; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: var(--container-pad-y) var(--container-pad-x) var(--container-pad-bottom); }
h1 { font-size: var(--h1-size); margin: var(--h1-margin); font-weight: 650; }
h2 { font-size: var(--h2-size); margin: var(--h2-margin); }
h3 { font-size: 1rem; margin: var(--h3-margin); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--card-pad-y) var(--card-pad-x); margin-bottom: var(--card-gap); }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-start; }
.row > * { flex: 1 1 220px; }
.toolbar { display: flex; gap: var(--toolbar-gap); flex-wrap: wrap; align-items: center; justify-content: space-between; margin: var(--toolbar-margin); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  box-sizing: border-box;
  min-height: 2.25rem; /* ~36px — full visual = hit target */
  background: var(--accent);
  color: #fff !important;
  border: none;
  padding: .45rem .9rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 560;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  position: relative;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
}
a.btn { color: #fff !important; }
.btn:hover { background: var(--accent-hover); }
.btn-secondary { background: #fff; color: var(--text) !important; border: 1px solid var(--border); }
a.btn-secondary { color: var(--text) !important; }
.btn-secondary:hover { background: #f0f3f6; }
.btn-danger { background: var(--danger); }
.btn-sm {
  min-height: 1.75rem; /* ~28px */
  padding: .25rem .55rem;
  font-size: .8rem;
}
.btn .badge, .btn .muted, .btn img, .btn svg, .btn .flag-icon { pointer-events: none; }
.btn-ok { background: var(--ok); }
.btn-warn { background: var(--warn); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { text-align: left; padding: var(--cell-pad-y) var(--cell-pad-x); border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #f0f3f6; font-weight: 600; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }
tr:hover td { background: #fafbfc; }
label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .25rem; }
input, select, textarea { width: 100%; padding: .4rem .55rem; border: 1px solid var(--border); border-radius: 4px; font: inherit; background: #fff; }
textarea { min-height: 70px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--form-grid-gap); }
.form-actions { margin-top: 1rem; display: flex; gap: .5rem; }
.flash { padding: var(--flash-pad); border-radius: var(--radius); margin-bottom: var(--flash-margin); font-size: .88rem; }
.flash.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.flash.demo { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; font-size: .82rem; }
.badge { display: inline-block; padding: .15rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 650; color: #fff; }
.badge-Inquiry { background: var(--slate); }
.badge-Tentative { background: var(--warn); }

/* Nonstandard / ad-hoc menu items (Admin chrome pref --ns-accent) */

/* Internal suggestion (Sales → client); still monitored as nonstandard */
.badge-suggestion {
  background: #7c3aed;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
}
.is-suggestion {
  border-left-color: #7c3aed;
}

.badge-nonstandard {
  background: var(--ns-accent, #dc2626);
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
}
.is-nonstandard,
.ns-item {
  border-left: 3px solid var(--ns-accent, #dc2626);
  padding-left: .4rem;
}
.mip-result-row.is-nonstandard td:first-child,
tr.is-nonstandard td:first-child {
  box-shadow: inset 3px 0 0 var(--ns-accent, #dc2626);
}
.menu-orders-item.is-nonstandard {
  box-shadow: inset 3px 0 0 var(--ns-accent, #dc2626);
  border-left-color: var(--ns-accent, #dc2626);
}
.beo-station-item.is-nonstandard {
  border-left: 4px solid var(--ns-accent, #dc2626);
}
.beo-ns-tag {
  display: inline-block;
  margin-left: .35rem;
  padding: .1rem .4rem;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--ns-accent, #dc2626);
  vertical-align: middle;
}
.ns-chip {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--ns-accent, #dc2626);
  border: 1px solid color-mix(in srgb, var(--ns-accent, #dc2626) 70%, #000);
}
@media print {
  .badge-nonstandard, .beo-ns-tag, .ns-chip {
    background: var(--ns-accent, #dc2626) !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .is-nonstandard, .beo-station-item.is-nonstandard {
    border-left-color: var(--ns-accent, #dc2626) !important;
  }
}
/* Sales customize → price needs quote / adjustment */
.badge-price-quote {
  background: #b45309;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
}
.price-quote-hint {
  color: #92400e;
  font-size: .78rem;
  font-weight: 600;
}
.price-quote-struck {
  text-decoration: line-through;
  color: #94a3b8;
  margin-right: .35rem;
}
.is-price-quote {
  border-left: 3px solid #b45309;
  padding-left: .4rem;
}
@media print {
  .badge-price-quote {
    background: #b45309 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.badge-Confirmed { background: var(--ok); }
.badge-InProduction { background: var(--cyan); }
.badge-Completed { background: var(--info); }
.badge-Cancelled { background: #94a3b8; }
.badge-Draft { background: var(--slate); }
.badge-InTesting { background: var(--warn); }
.badge-ReadyToPublish { background: #7c3aed; }
.badge-Published { background: var(--ok); }
.badge-Archived { background: #94a3b8; }
.badge-MenuItem { background: #0e7490; }
.badge-Recipe { background: #166534; }
.badge-PendingApproval { background: var(--warn); }
.badge-PendingChef { background: var(--warn); }
.badge-ChefApproved { background: var(--ok); }
.badge-Sent { background: #0e7490; }
.badge-Approved { background: var(--ok); }
.badge-Rejected { background: var(--danger); }
.badge-custom { background: #7c3aed; }
.badge-catalog { background: #0e7490; }
.badge-InHouse { background: #166534; }
.badge-External { background: #9a3412; }
.tabs { display: flex; gap: .2rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin: var(--tabs-margin); }
.tabs a, .tabs button { background: none; border: none; padding: var(--tab-pad-y) var(--tab-pad-x); font: inherit; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active, .tabs button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.muted { color: var(--muted); font-size: .85rem; }
.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.total-box { background: #0f2740; color: #fff; padding: 1rem; border-radius: var(--radius); }
.total-box .line { display: flex; justify-content: space-between; margin: .25rem 0; }
.picker-row { display: grid; grid-template-columns: 2fr 80px 100px auto; gap: .5rem; align-items: end; margin-bottom: .75rem; }
@media (max-width: 700px) { .picker-row { grid-template-columns: 1fr 1fr; } }
.search-input { margin-bottom: .5rem; }
.legend { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 .5rem; }
.legend-item { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; }
.cal-nav { display: flex; gap: .5rem; align-items: center; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal-head { background: #e8eef4; padding: .28rem .2rem; text-align: center; font-size: .7rem; font-weight: 650; color: var(--muted); }
.cal-day {
  background: #fff;
  /* Compact default: drop square aspect so month fits viewport; comfortable restores square */
  aspect-ratio: auto;
  min-height: var(--cal-day-min-h, 4.6rem);
  min-width: 0;
  padding: var(--cal-day-pad, .2rem);
  font-size: .72rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.cal-day.other { background: #f8fafc; color: #94a3b8; }
.cal-day .num { font-weight: 650; margin-bottom: .1rem; flex: 0 0 auto; font-size: .7rem; line-height: 1.15; }
.cal-day-events {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden; /* stack + +N; no absolute overlap / unreadable scroll pile */
  display: flex;
  flex-direction: column;
  gap: .12rem;
}
.cal-event {
  display: block;
  flex: 0 0 auto;
  padding: var(--cal-event-pad, .06rem .22rem);
  border-radius: 3px;
  color: #fff;
  font-size: var(--cal-event-fs, .62rem);
  line-height: 1.15;
  /* Office calendar: name on the day, truncate; concurrent events stack in .cal-day-events */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cal-event:hover { filter: brightness(1.08); text-decoration: none; }
/* Concurrent event stacking — +N more expander (sales + staffing calendars) */
.cal-more-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #f1f5f9;
  color: #334155;
  border-radius: 3px;
  padding: .08rem .22rem;
  font-size: .62rem;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
  flex: 0 0 auto;
}
.cal-more-btn:hover { background: #e2e8f0; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,39,64,.45); display: none; align-items: center; justify-content: center; z-index: 50; padding: 1rem; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 8px; max-width: 520px; width: 100%; padding: 1.25rem; max-height: 90vh; overflow: auto; }
.modal h2 { margin-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.stat { background: #f0f3f6; border-radius: var(--radius); padding: .75rem; }
.stat .v { font-size: 1.35rem; font-weight: 700; }
.stat .l { font-size: .75rem; color: var(--muted); text-transform: uppercase; }
.empty { color: var(--muted); font-style: italic; padding: 1rem 0; }
.footer-note { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.inline-form { display: inline; }
.gap-warn { background: #fff7ed; border-left: 3px solid var(--warn); padding: .5rem .75rem; margin: .35rem 0; }
.prod-station { border-left: 4px solid var(--accent); padding-left: .75rem; margin: 1rem 0; }
.prod-team { margin: .5rem 0 .5rem 1rem; padding: .5rem .75rem; background: #f8fafc; border-radius: 4px; }

.badge-Requested { background: var(--slate); }
.badge-Acknowledged { background: var(--info); }
.badge-Adjusted { background: var(--warn); }
.badge-Ready { background: var(--ok); }
optgroup { font-weight: 700; color: var(--accent); }

.badge-PendingKitchenApproval { background: var(--warn); }
.badge-Library { background: #0e7490; }
.badge-Amuse { background: #7c3aed; }
.item-click-list { list-style: none; padding: 0; margin: 0; }
.item-click-list li { border-top: 1px solid var(--border); }
.item-click-row { display: flex; justify-content: space-between; align-items: center; padding: .65rem .25rem; color: inherit; text-decoration: none; }
.item-click-row:hover { background: #f8fafc; }
.thumb-sm { max-width: 72px; max-height: 54px; border-radius: 4px; object-fit: cover; }

/* Event service chrome — compressible tabs + popups */
.svc-chrome .tabs { gap: .15rem; }
.svc-chrome .tabs button { font-size: .82rem; padding: .45rem .7rem; }
.svc-summary { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin: .5rem 0 1rem; }
.svc-chip { background: #f0f3f6; border-radius: 999px; padding: .35rem .75rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.svc-chip strong { color: var(--text); }
.svc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.modal-backdrop.wide .modal { max-width: 920px; }
.modal-backdrop.xl .modal { max-width: 1100px; }
.collapse-panel { display: none; margin-top: .75rem; border-top: 1px solid var(--border); padding-top: .75rem; }
.collapse-panel.open { display: block; }
.seg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .65rem; }
.seg-card { border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; background: #fafbfc; cursor: pointer; }
.seg-card:hover { border-color: var(--accent); background: #eef3f7; }
.seg-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(30,77,107,.15); }

/* —— Print / PDF (kitchen floor packets: office screens + paper, no dark chrome) —— */
.no-print { }
.btn-print { background: #1e4d6b; }
.report-header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 2px solid #1a2332; }
.report .total-box { background: #fff; color: #1a2332; border: 2px solid #1a2332; }
.print-packet-links { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Print paper sizes: letter 8.5×11, legal 8.5×14, tabloid 11×17 — layout scales with sheet. */
.print-paper-picker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .6rem;
  margin-left: .35rem;
  padding: .25rem .5rem;
  border: 1px solid var(--border, #c5d0da);
  border-radius: 6px;
  background: #f4f7fa;
  font-size: .85rem;
}
.print-paper-label {
  font-weight: 700;
  color: var(--muted, #5a6a7a);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
}
.print-paper-radios {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
}
.print-paper-opt {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
  font-weight: 500;
  margin: 0;
}
.print-paper-opt input { margin: 0; }

/* Sheet width/height + content zoom live in _print_page_css.html (Letter design → scale).
   Keep only light gutter tweaks here — do NOT bump font-size (would double-scale with zoom). */
body.paper-letter { --print-gutter: 0.75rem; }
body.paper-legal { --print-gutter: 0.85rem; }
body.paper-tabloid { --print-gutter: 1.1rem; }
body.paper-tabloid .report table,
body.paper-tabloid .beo-doc table,
body.paper-legal .report table,
body.paper-legal .beo-doc table {
  width: 100%;
}
body.paper-tabloid .beo-sheet-header,
body.paper-legal .beo-sheet-header {
  gap: var(--print-gutter);
}
body.paper-tabloid .prod-station {
  padding-left: 0.75rem;
}

/* @page size + zoom scale injected per-request in _print_page_css.html. */
@media print {
  .print-paper-picker { display: none !important; }
}


/* Gated event report links — empty reports stay visible but muted/disabled.
   Keep pointer-events ON so hover tooltips work (native title + CSS .report-tip). */
.report-link-disabled,
a.report-link-disabled,
span.report-link-disabled,
.btn.report-link-disabled {
  opacity: 0.48;
  color: var(--muted) !important;
  background: #e8eef4 !important;
  border-color: #d0d7de !important;
  cursor: help;
  box-shadow: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

/* CSS tooltip for greyed report links / batch checkboxes */
.report-tip {
  position: relative;
}
.report-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  min-width: 14rem;
  max-width: 22rem;
  padding: .45rem .65rem;
  border-radius: 6px;
  background: #1e293b;
  color: #f8fafc;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .28);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity .12s ease, transform .12s ease;
}
.report-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
  opacity: 0;
  pointer-events: none;
  z-index: 81;
  transition: opacity .12s ease;
}
.report-tip:hover::after,
.report-tip:focus::after,
.report-tip:focus-within::after,
.report-tip:hover::before,
.report-tip:focus::before,
.report-tip:focus-within::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.report-tip:hover::before,
.report-tip:focus::before,
.report-tip:focus-within::before {
  transform: translateX(-50%);
}
.status-check.is-disabled.report-tip {
  cursor: help;
}
@media print {
  .report-tip::after,
  .report-tip::before { display: none !important; }
}

@media print {
  html, body {
    background: #fff !important;
    color: #000 !important;
  }
  body:not([class*="paper-"]) {
    font-size: 11pt;
    line-height: 1.35;
  }
  /* Typography scale comes from --print-scale zoom in _print_page_css.html */
  body.paper-letter,
  body.paper-legal,
  body.paper-tabloid {
    font-size: 11pt;
    line-height: 1.35;
  }
  .topbar,
  .subnav,
  .no-print,
  .flash,
  .modal-backdrop,
  .footer-note,
  nav,
  script {
    display: none !important;
  }
  .container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  a { color: #000 !important; text-decoration: none !important; }
  .card, .report {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 0.75rem !important;
    break-inside: avoid;
  }
  .btn, .btn-sm, .btn-secondary, .btn-ok, .btn-warn, .btn-danger {
    display: none !important;
  }
  table { width: 100%; border-collapse: collapse; }
  th, td {
    border-bottom: 1px solid #999 !important;
    background: #fff !important;
    color: #000 !important;
    padding: 0.3rem 0.4rem !important;
  }
  th {
    background: #eee !important;
    color: #000 !important;
    text-transform: none;
    letter-spacing: 0;
    font-size: 9pt;
  }
  tr:hover td { background: #fff !important; }
  .badge {
    border: 1px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
    border-radius: 2px;
    font-weight: 700;
  }
  .muted { color: #333 !important; }
  .gap-warn {
    background: #fff !important;
    border-left: 3px solid #000 !important;
    color: #000 !important;
  }
  .prod-station {
    border-left: 3px solid #000 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .prod-team { background: #fff !important; border: 1px solid #ccc; }
  .total-box {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .report-header { border-bottom-color: #000 !important; }
  h1, h2, h3 { color: #000 !important; page-break-after: avoid; }
  .empty { color: #444 !important; }
  input, select, textarea {
    border: 1px solid #999 !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .svc-chip { background: #fff !important; border: 1px solid #999; color: #000 !important; }
  .stat { background: #fff !important; border: 1px solid #ccc; }
}


/* Kitchen menu orders — master/detail */
.menu-orders {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1rem;
  align-items: start;
  min-height: 70vh;
}
@media (max-width: 900px) {
  .menu-orders { grid-template-columns: 1fr; }
}
.menu-orders-rail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 140px);
  overflow: auto;
  position: sticky;
  top: 0.75rem;
}
.menu-orders-rail h2 {
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.menu-orders-group { border-bottom: 1px solid var(--border); }
.menu-orders-group-title {
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f0f3f6;
}
.menu-orders-course {
  padding: 0.25rem 0.9rem 0.15rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--accent);
}
.menu-orders-rail a.menu-orders-item {
  display: block;
  padding: 0.55rem 0.9rem 0.55rem 1.1rem;
  color: inherit;
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: 0.875rem;
}
.menu-orders-rail a.menu-orders-item:hover { background: #f8fafc; text-decoration: none; }
.menu-orders-rail a.menu-orders-item.active {
  background: #eef3f7;
  border-left-color: var(--accent);
  font-weight: 600;
}
.menu-orders-rail a.menu-orders-item .meta {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.15rem;
}
.menu-orders-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem;
  min-height: 420px;
}
.menu-orders-panel .panel-empty {
  color: var(--muted);
  font-style: italic;
  padding: 2rem 1rem;
  text-align: center;
}
.menu-orders-panel h1 { font-size: 1.25rem; margin: 0 0 0.35rem; }
.menu-orders-panel .compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}
.menu-orders-panel .section { margin-top: 1.1rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }

.menu-orders-panel .section h2 { margin: 0 0 0.65rem; font-size: 1rem; }

/* Quantify drill-down — top overview + rail states + sticky sales ref */
.menu-rail-page { padding-bottom: 9rem; }


/* ===== Quantify compact sticky event strip + reports/actions ===== */
.event-strip-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .35rem;
  font-size: .78rem;
  line-height: 1.25;
  color: #334155;
  padding: .2rem 0 .35rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .35rem;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
}
.event-strip-line .esl-name { font-size: .82rem; }
.event-strip-line .esl-sep { color: #94a3b8; }
.event-strip-line .muted { color: #64748b; }



/* Quantify chrome minimizer — event strip + menu tabs stay; details collapse */
.quantify-chrome-pin-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .2rem;
}
.quantify-chrome-pin-row .quantify-menu-tabs,
.quantify-chrome-pin-row .menu-tab-bar {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}
.quantify-chrome-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
}
.quantify-chrome-toggle .qct-label-show { display: none; }
.quantify-chrome-toggle .qct-label-hide { display: inline; }
.quantify-top.is-minimized .quantify-chrome-toggle .qct-label-show { display: inline; }
.quantify-top.is-minimized .quantify-chrome-toggle .qct-label-hide { display: none; }
.quantify-chrome-body {
  margin-top: .35rem;
}
.quantify-top.is-minimized .quantify-chrome-body {
  display: none;
}
.quantify-top-sticky.quantify-top-compact {
  padding-bottom: .4rem;
}

.quantify-top-sticky {
  position: sticky;
  top: calc(var(--topbar-h, 40px) + var(--subnav-h, 32px));
  z-index: 46;
  background: var(--surface, #fff);
}
.quantify-top-compact {
  padding: .4rem .75rem .5rem;
  margin-bottom: .55rem;
}
.quantify-top-main-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem .75rem;
  align-items: center;
  margin: 0;
}
.quantify-top-crumbs {
  font-size: .82rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .25rem;
}
.quantify-overview-compact {
  margin-top: .35rem;
  gap: .3rem;
}
.quantify-top-compact .quantify-reports,
.quantify-top-sticky .quantify-reports {
  margin-top: .35rem;
  position: sticky;
  /* stays inside sticky parent */
}
.quantify-menu-tabs {
  margin-top: .3rem;
  margin-bottom: 0;
}
.quantify-top-compact .quantify-top-actions .btn {
  padding: .2rem .45rem;
  font-size: .78rem;
}

/* Module sticky reports must stay visible when scrolling page content */
.module-sticky-chrome .module-sticky-reports {
  position: sticky;
  top: calc(var(--topbar-h, 40px) + var(--subnav-h, 32px) + var(--actions-h, 44px));
  z-index: 47;
}


.quantify-top {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .85rem 1rem;
  margin-bottom: .85rem;
}
.quantify-top-main {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: flex-start;
}
.quantify-top-actions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.quantify-overview {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem;
}
.quantify-reports {
  display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; align-items: center;
}
.menu-orders-has-sticky { margin-bottom: 0; }
.menu-orders-rail-hint {
  margin: 0; padding: .35rem .9rem .5rem; font-size: .72rem; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.menu-orders-rail a.menu-orders-item.is-quantified:not(.active) {
  background: #f0fdf4;
  border-left-color: #16a34a;
}
.menu-orders-rail a.menu-orders-item.is-skipped {
  background: #f8fafc;
  border-left-color: #94a3b8;
  border-left-style: dashed;
  color: #64748b;
}
.menu-orders-rail a.menu-orders-item.is-skipped .meta { color: #94a3b8; }
.menu-orders-rail a.menu-orders-item.is-followup:not(.active) {
  background: #fff7ed;
  border-left-color: #ea580c;
}
.menu-orders-rail a.menu-orders-item.active.is-skipped {
  border-left-style: dashed;
}
.menu-rail-badge-skipped {
  background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1;
}
.menu-rail-badge-followup {
  background: #ffedd5; color: #9a3412; border: 1px solid #fdba74;
}
.menu-rail-chip-skipped { border-color: #94a3b8 !important; }
.menu-rail-chip-followup { border-color: #ea580c !important; }

.menu-item-sticky-ref {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: #0f2740;
  color: #f8fafc;
  border-top: 3px solid var(--accent, #1e4d6b);
  box-shadow: 0 -6px 24px rgba(15, 39, 64, .28);
  padding: .65rem 1rem .75rem;
}
.menu-item-sticky-ref-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.menu-item-sticky-photo {
  width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.2);
}
.menu-item-sticky-body { flex: 1; min-width: 0; }
.menu-item-sticky-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .04em;
  color: #94a3b8 !important; margin-bottom: .15rem;
}
.menu-item-sticky-name {
  font-size: 1.05rem; font-weight: 700; line-height: 1.25; margin-bottom: .2rem;
}
.menu-item-sticky-desc {
  font-size: .88rem; color: #e2e8f0; line-height: 1.35; margin-bottom: .35rem;
  white-space: pre-wrap;
}
.menu-item-sticky-changes {
  font-size: .86rem; line-height: 1.35;
  background: rgba(255,255,255,.08);
  border-left: 3px solid #fbbf24;
  padding: .35rem .55rem;
  border-radius: 0 4px 4px 0;
  white-space: pre-wrap;
}
.menu-item-sticky-changes.muted { border-left-color: #64748b; color: #94a3b8; }


/* Sales change notes — lightweight **bold** / ==highlight== (sales-change-format) */
.change-notes { white-space: pre-wrap; }

/* Sales CR required summary comment (all deltas) — Kitchen/accepter glance */
.cr-summary-comment {
  margin: .4rem 0 .35rem;
  padding: .45rem .65rem;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-left: 4px solid #d97706;
  border-radius: 4px;
  font-size: .86rem;
  line-height: 1.4;
  color: #78350f;
}
.cr-summary-comment .cr-summary-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #92400e;
  margin-bottom: .2rem;
}
.cr-summary-missing {
  margin: .35rem 0;
  padding: .35rem .55rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 600;
  color: #991b1b;
}

mark.cn-hl,
.change-notes mark {
  background: #fde68a;
  color: inherit;
  padding: 0 .18em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.menu-item-sticky-changes mark.cn-hl,
.menu-item-sticky-changes .change-notes mark {
  background: #fbbf24;
  color: #0f2740;
  font-weight: 600;
}
.cn-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
.cn-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: .2rem 0 .35rem;
}
.cn-toolbar .cn-btn {
  padding: .15rem .45rem;
  font-size: .75rem;
  line-height: 1.2;
}
.cn-toolbar .cn-hint { font-size: .72rem; }
textarea.cn-input { font-family: inherit; width: 100%; }
.menu-item-sticky-followup {
  margin-top: .35rem; font-size: .82rem; color: #fdba74;
}
.menu-item-sticky-status { flex-shrink: 0; text-align: right; }
@media (max-width: 700px) {
  .menu-item-sticky-ref-inner { flex-direction: column; }
  .menu-item-sticky-status { text-align: left; }
  .menu-rail-page { padding-bottom: 11rem; }
}


.cr-flag {
  display: inline-flex; align-items: center; gap: .25rem;
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
  border-radius: 999px; padding: .15rem .55rem; font-size: .72rem; font-weight: 700;
}
.seg-card.has-cr-flag, .svc-chip.has-cr-flag {
  border-color: #dc2626; box-shadow: 0 0 0 2px rgba(220,38,38,.12);
}


/* —— ROYGBIV weekday (shared: event list rows + calendar columns) —— */
.legend-roygbiv { display:flex; flex-wrap:wrap; gap:.5rem; margin:.5rem 0 1rem; align-items:center; }
.legend-roygbiv .lg {
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:.75rem; color:var(--muted); font-weight:600;
}
.legend-roygbiv .sw {
  width:14px; height:14px; border-radius:3px; border:2px solid transparent; box-sizing:border-box;
}
.row-dow-sun, .cal-dow-sun { background:#fef2f2 !important; }
.row-dow-mon, .cal-dow-mon { background:#fff7ed !important; }
.row-dow-tue, .cal-dow-tue { background:#fefce8 !important; }
.row-dow-wed, .cal-dow-wed { background:#f0fdf4 !important; }
.row-dow-thu, .cal-dow-thu { background:#eff6ff !important; }
.row-dow-fri, .cal-dow-fri { background:#eef2ff !important; }
.row-dow-sat, .cal-dow-sat { background:#f5f3ff !important; }
tr.row-dow-sun td:first-child, .row-dow-sun { box-shadow: inset 4px 0 0 #dc2626; }
tr.row-dow-mon td:first-child, .row-dow-mon { box-shadow: inset 4px 0 0 #ea580c; }
tr.row-dow-tue td:first-child, .row-dow-tue { box-shadow: inset 4px 0 0 #ca8a04; }
tr.row-dow-wed td:first-child, .row-dow-wed { box-shadow: inset 4px 0 0 #16a34a; }
tr.row-dow-thu td:first-child, .row-dow-thu { box-shadow: inset 4px 0 0 #2563eb; }
tr.row-dow-fri td:first-child, .row-dow-fri { box-shadow: inset 4px 0 0 #4f46e5; }
tr.row-dow-sat td:first-child, .row-dow-sat { box-shadow: inset 4px 0 0 #7c3aed; }
.cal-head.cal-dow-sun { border-bottom:3px solid #dc2626; }
.cal-head.cal-dow-mon { border-bottom:3px solid #ea580c; }
.cal-head.cal-dow-tue { border-bottom:3px solid #ca8a04; }
.cal-head.cal-dow-wed { border-bottom:3px solid #16a34a; }
.cal-head.cal-dow-thu { border-bottom:3px solid #2563eb; }
.cal-head.cal-dow-fri { border-bottom:3px solid #4f46e5; }
.cal-head.cal-dow-sat { border-bottom:3px solid #7c3aed; }
.cal-day.cal-dow-sun { background:#fef2f2; }
.cal-day.cal-dow-mon { background:#fff7ed; }
.cal-day.cal-dow-tue { background:#fefce8; }
.cal-day.cal-dow-wed { background:#f0fdf4; }
.cal-day.cal-dow-thu { background:#eff6ff; }
.cal-day.cal-dow-fri { background:#eef2ff; }
.cal-day.cal-dow-sat { background:#f5f3ff; }
.cal-day.other.cal-dow-sun,
.cal-day.other.cal-dow-mon,
.cal-day.other.cal-dow-tue,
.cal-day.other.cal-dow-wed,
.cal-day.other.cal-dow-thu,
.cal-day.other.cal-dow-fri,
.cal-day.other.cal-dow-sat { opacity:0.72; }

@media print {
  /* Weekday ROYGBIV (row-dow-* / cal-dow-*) is screen-only; print stays neutral */
  tr[class*="row-dow-"],
  [class*="row-dow-"],
  .cal-day[class*="cal-dow-"] {
    background: #fff !important;
    box-shadow: none !important;
  }
  tr[class*="row-dow-"] > td:first-child {
    padding-left: 0.4rem !important;
    box-shadow: none !important;
  }
  tr[class*="row-dow-"] > td:first-child::before {
    content: none !important;
    display: none !important;
  }
  .cal-head[class*="cal-dow-"] {
    background: #eee !important;
    border-bottom: 1px solid #999 !important;
  }
}

/* —— BEO letterhead / print footer / BU swim lanes —— */
.beo-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid #1a2332;
}
.beo-letterhead-brand { display: flex; gap: .75rem; align-items: center; }
.beo-logo { height: 56px; width: auto; object-fit: contain; }
.beo-company-name { font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; color: #1a2332; }
.beo-company-meta { font-size: .9rem; color: #445; }
.beo-letterhead-right { text-align: right; min-width: 7rem; }
.beo-booking-seq {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #1a2332;
  line-height: 1.1;
}
.beo-booking-hint { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.beo-title-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.beo-title-row h1 { margin: 0 0 .5rem; }
.beo-spotlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}
@media (max-width: 900px) {
  .beo-spotlight { grid-template-columns: 1fr; }
}
.beo-spot-card {
  border: 1px solid var(--border, #d0d7de);
  border-radius: 8px;
  padding: .75rem .9rem;
  background: #f8fafc;
}
.beo-spot-card h2 {
  margin: 0 0 .4rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #445;
}
.beo-spot-primary { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.beo-spot-body > div { margin: .15rem 0; }
.beo-note { margin-top: .35rem; font-size: .9rem; }
.beo-mini-table { width: 100%; font-size: .85rem; margin-top: .25rem; }
.beo-mini-table th, .beo-mini-table td { padding: .2rem .3rem; }
.beo-spec-arrivals { margin-top: .5rem; font-size: .85rem; }
.beo-spec-line { margin: .2rem 0; }
.beo-meta-grid { margin-top: .5rem; }
.beo-print-footer { display: none; }

/* Swim-lane BU board */
.swim-wrap { overflow-x: auto; }
.swim-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 960px;
}
.swim-table th, .swim-table td {
  border: 1px solid #c5cdd6;
  vertical-align: top;
  padding: .4rem;
}
.swim-seq-col {
  width: 2.6rem;
  text-align: center;
  background: #eef2f6;
  font-weight: 800;
}
.swim-bu-col { text-align: center; background: #f3f6f9; }
.swim-bu-name { font-size: .85rem; font-weight: 700; line-height: 1.2; }
.swim-bu-suf { font-size: .75rem; color: #556; margin-top: .15rem; }
.swim-cell { min-height: 3.2rem; background: #fff; }
.swim-cell.has-event { background: #f7fbf8; }
.swim-event-name { font-weight: 700; font-size: .9rem; color: inherit; text-decoration: none; }
.swim-event-meta { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; margin-top: .2rem; }
.swim-seq-tag { font-weight: 800; font-size: .8rem; }
.swim-event-date { font-size: .78rem; }

@media print {
  .beo-report, .swim-report { break-inside: auto !important; }
  .beo-logo { height: 48px !important; }
  .beo-spotlight {
    grid-template-columns: repeat(3, 1fr) !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .beo-spot-card {
    background: #fff !important;
    border: 1px solid #000 !important;
  }
  .beo-booking-seq { font-size: 1.6rem !important; }
  .beo-print-footer {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0.45in;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 0 .15in;
    border-top: 1px solid #000;
    background: #fff;
    font-size: 9pt;
    color: #000;
    z-index: 9999;
  }
  .beo-ft-left, .beo-ft-center, .beo-ft-right { flex: 1; }
  .beo-ft-left { text-align: left; font-weight: 700; }
  .beo-ft-center { text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .beo-ft-right { text-align: right; font-weight: 600; }
  .swim-report .beo-print-footer { display: none !important; }
  .swim-table { min-width: 0 !important; font-size: 8.5pt; }
  .swim-bu-name { font-size: 8pt; }
  .swim-cell.has-event { background: #fff !important; }
  .swim-event-name { color: #000 !important; }
  /* Prefer landscape for swim board when user selects it */
}

/* Kitchen catalog collapsible sections */
details.card > summary,
.card details > summary {
  cursor: pointer;
  font-size: .95rem;
}
details[open] > summary { margin-bottom: .35rem; }


/* —— Internal BEO / Client menu (Sheva Brachot–style) —— */
.print-doc-banner {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border: 2px solid var(--beo-brand, #1a2332);
  color: #fff;
  background: var(--beo-brand, #1a2332);
  margin-bottom: .75rem;
}
.print-doc-banner-client {
  background: #fff !important;
  color: var(--beo-brand, #1a2332) !important;
  border-style: dashed;
}
.print-doc-banner-proposal {
  background: #5b4b8a !important;
  border-color: #5b4b8a !important;
}
.print-doc-banner-estimate {
  background: #0f766e !important;
  border-color: #0f766e !important;
}
.print-doc-banner-internal { background: var(--beo-brand, #1a2332); }

.beo-doc { color: #111; }
.beo-page { background: #fff; }
.beo-service-page {
  page-break-before: always;
  break-before: page;
  margin-top: 1.25rem;
  padding-top: .5rem;
  border-top: 1px dashed #ccc;
}
.beo-sheet-header {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(10rem, 1.2fr) minmax(11rem, 1.1fr);
  gap: .75rem;
  align-items: start;
  margin-bottom: .75rem;
}
.beo-allergy-alert {
  border: 1px solid #94a3b8;
  background: #f8fafc;
  padding: .35rem .5rem;
  max-width: 11rem;
  border-radius: 4px;
}
.beo-allergy-title {
  font-weight: 650;
  font-size: .68rem;
  letter-spacing: .02em;
  color: #475569;
  text-transform: none;
}
.beo-allergy-body {
  font-weight: 550;
  color: #334155;
  font-size: .78rem;
  text-transform: none;
  line-height: 1.25;
}
.beo-allergy-sm { max-width: 9rem; }
.beo-allergy-spacer { min-height: 1rem; }

.beo-brand-block { text-align: center; }
.beo-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 2px solid var(--beo-brand, #1a2332);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--beo-brand, #1a2332);
  margin-bottom: .25rem;
}
.beo-brand-logo { height: 52px; width: auto; object-fit: contain; margin-bottom: .25rem; }
.beo-brand-logo-sm { height: 36px; }
.beo-brand-name { font-weight: 800; font-size: 1.15rem; color: var(--beo-brand, #1a2332); }
.beo-brand-unit { font-size: .9rem; font-weight: 650; }
.beo-brand-tagline { font-size: .78rem; color: #445; }


/* Alter R-3 post-confirm extras (printable BEO) */
.beo-conv-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b2d2d;
  background: #fde8e8;
  border: 1px solid #e8b4b4;
  border-radius: 3px;
  padding: .05rem .35rem;
  margin-left: .35rem;
}
.beo-ft-label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #556;
  margin-bottom: .05rem;
}
.beo-header-version-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1rem;
  padding: .55rem .75rem;
  border: 1px dashed #9aa5b1;
  border-radius: 6px;
  background: #f8fafc;
  font-size: .9rem;
}
.beo-post-confirm-extras {
  border: 2px solid #c0392b;
  border-radius: 8px;
  padding: .75rem .9rem;
  background: #fff8f6;
}
.beo-rentals-banner {
  font-weight: 700;
  color: #6b2d2d;
  background: #fde8e8;
  border-left: 4px solid #c0392b;
  padding: .4rem .65rem;
  margin: .5rem 0;
}
.beo-rentals-table thead th {
  background: #fde8e8;
}
.beo-logistics-box {
  border: 1.5px solid #111;
  padding: .45rem .55rem;
  font-size: .82rem;
}
.beo-logistics-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .35rem;
}
.beo-svc-code { font-size: 1.35rem; font-weight: 800; }
.beo-svc-pageof { font-size: 1.15rem; font-weight: 800; color: #c0392b; }
.beo-logistics-rows > div {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin: .12rem 0;
}
.beo-logistics-rows > div > span { color: #333; }
.beo-equip-red { color: #c0392b !important; font-weight: 700; }
.beo-cooking-equip strong { display: block; text-align: right; }

.beo-station-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid #111;
  margin: .75rem 0 .35rem;
  padding-bottom: .15rem;
}
.beo-station-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.beo-station-equip { font-size: .9rem; text-align: right; max-width: 55%; }
.beo-station-meta { font-size: .85rem; margin-bottom: .5rem; }
.beo-station-meta span { margin-right: .35rem; }

.beo-station-item { margin: .65rem 0 0.85rem; }

/* Outsourced / vendor-sourced lines on internal BEO (hidden on client) */
.beo-doc-internal .beo-item-outsourced {
  padding: 0.35rem 0.5rem 0.45rem;
  border-radius: 4px;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.beo-outsourced-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7f1d1d;
  background: rgba(255,255,255,0.72);
  border: 1px solid #b91c1c;
  border-radius: 3px;
  padding: 0.12rem 0.35rem;
  white-space: nowrap;
  margin-left: 0.35rem;
}
.beo-doc-client .beo-item-outsourced,
.beo-doc-client .beo-outsourced-tag { display: contents; }
.beo-item-qty {
  font-size: .78rem;
  font-weight: 700;
  color: #222;
  margin-bottom: .1rem;
}
.beo-item-name-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  width: 100%;
}
.beo-item-name-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem;
  min-width: 0;
  flex: 1 1 auto;
}
.beo-item-name-right {
  margin-left: auto;
  text-align: right;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .2rem;
  max-width: 42%;
}
.beo-deleg-tag,
.beo-unassigned-tag {
  text-align: right;
}
.beo-item-name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.beo-item-equip { font-size: .85rem; text-align: right; max-width: 48%; }
.beo-item-desc {
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #222;
  margin-top: .1rem;
}
.beo-item-adj {
  margin-top: .25rem;
  padding: .25rem .4rem;
  background: #fff3cd;
  border-left: 4px solid #e67e22;
  font-size: .85rem;
  font-weight: 650;
}
.beo-adjustments {
  margin-top: 1rem;
  border: 2px solid #e67e22;
  background: #fffaf0;
  padding: .75rem .9rem;
}
.beo-adjustments h2 { margin: 0 0 .35rem; color: #b35c00; }
.beo-adj-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.beo-adj {
  border: 1px solid #f0c36d;
  background: #fff;
  padding: .45rem .6rem;
  margin: .4rem 0;
}
.beo-adj-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #e67e22;
  color: #fff;
  padding: .15rem .4rem;
  margin-right: .35rem;
}
.beo-adj-change_request .beo-adj-badge { background: #c0392b; }
.beo-adj-by { font-size: .8rem; color: #555; margin-top: .15rem; }

.beo-service-table { width: 100%; font-size: .9rem; margin-top: .5rem; }
.beo-doc-client .beo-svc-pageof { color: var(--beo-brand, #1a2332); }

@media print {
  .beo-service-page {
    page-break-before: always !important;
    break-before: page !important;
    border-top: none !important;
    margin-top: 0 !important;
  }
  .beo-cover { page-break-after: always; }
  .print-doc-banner {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .beo-allergy-alert {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
  }
  .beo-equip-red { color: #c0392b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .beo-item-adj, .beo-adjustments, .beo-adj {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .beo-item-outsourced, .beo-outsourced-tag {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .beo-sheet-header { grid-template-columns: 1.1fr 1.2fr 1.2fr; }
  .beo-print-footer .beo-ft-pages { font-weight: 700; }
}


/* ---- Ingredient flags (allergens / kosher / complications) ---- */
.flag-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.2rem; margin-left: 0.35rem; vertical-align: middle; }
.flag-abbr {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 0.15rem 0.28rem;
  border: 1px solid #94a3b8;
  border-radius: 3px;
  color: #334155;
  background: #f8fafc;
  white-space: nowrap;
}
.flag-abbr-allergen { border-color: #b91c1c; color: #7f1d1d; background: #fff; }
.flag-abbr-kosher { border-color: #475569; color: #1e293b; }
.flag-abbr-comp { border-color: #64748b; color: #475569; border-style: dashed; }
.flag-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
  opacity: 0.9;
}
.flag-icon-beo, .flag-badges-icon .flag-icon {
  width: 14px;
  height: 14px;
}
.flag-icon-preview { width: 18px; height: 18px; margin-left: 0.35rem; }
.flag-icon-cell { width: 1.5rem; text-align: center; }
.flag-picklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.35rem 0.75rem;
  margin-top: 0.35rem;
}
.flag-pick {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.flag-pick input { margin: 0; }
.flag-editor summary { cursor: pointer; }
.beo-allergy-icons { display: inline-flex; gap: 0.2rem; margin-right: 0.35rem; vertical-align: middle; }
.beo-item-name-row .flag-badges { margin-left: 0.4rem; }
@media print {
  .flag-icon, .flag-icon-beo { width: 12px; height: 12px; }
  .flag-abbr { font-size: 0.55rem; padding: 0.1rem 0.2rem; }
}


/* (removed) legacy light-theme .user-bar / wrap overrides — they made
   Directory/Settings/Sign out muted-gray on the dark topbar and forced wrap. */
.user-meta { white-space: nowrap; }


/* —— Weekly catering numbers (office clipboard tracker) —— */
.weekly-tracker-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem;
  padding-bottom: .5rem; border-bottom: 2px solid #1a2332;
}
.weekly-tracker-title { font-size: 1.35rem; font-weight: 800; }
.weekly-tracker-weekof { text-align: right; }
.week-of-value { font-size: 1.5rem; font-weight: 800; color: #b91c1c; margin-left: .35rem; }
.weekly-tracker-wrap { overflow-x: auto; }
.weekly-tracker-table {
  width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 900px;
  font-size: .82rem;
}
.weekly-tracker-table th, .weekly-tracker-table td {
  border: 1px solid #222; vertical-align: top; padding: .25rem .3rem;
}
.weekly-tracker-table th {
  background: #f3f4f6; text-align: center; font-weight: 700; line-height: 1.15;
}
.wt-lane-name { font-size: .78rem; }
.wt-lane-code { font-size: .72rem; color: #445; margin-top: .15rem; }
.wt-cell { min-height: 2.4rem; background: #fff; height: 2.6rem; }
.wt-cell.has-event { background: #fafafa; }
.wt-placeholder { color: #bbb; font-size: .72rem; }
.wt-code { font-size: .65rem; }
.wt-name {
  display: block; font-weight: 700; color: inherit; text-decoration: none;
  font-size: .85rem; margin: .1rem 0;
}
.wt-meta { font-size: .68rem; }
.weekly-tracker-footer { margin-top: .5rem; font-size: .8rem; }
@media print {
  .weekly-tracker-report .toolbar, .no-print { display: none !important; }
  .weekly-tracker-table { min-width: 0 !important; font-size: 8pt; }
  .wt-cell { height: auto; min-height: 1.6rem; }
}

/* Ops progress chips — kitchen quantified / staffing & equipment ack */
.ops-chip-row { display: inline-flex; flex-wrap: wrap; gap: .25rem; align-items: center; max-width: 22rem; }
.ops-chip-row-compact { max-width: 18rem; }
.ops-chip {
  display: inline-block;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  border: 1px solid transparent;
  background: #e2e8f0;
  color: #334155;
}
.ops-tone-empty { background: #f1f5f9; color: #94a3b8; border-color: #e2e8f0; }
.ops-tone-none { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.ops-tone-partial { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }
.ops-tone-done { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.ops-chip-kitchen.ops-tone-partial { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.ops-chip-kitchen.ops-tone-done { background: #dcfce7; color: #166534; }
/* Menu Ack — violet/magenta so it never reads as Qty (sky blue) */
.ops-chip-menu-ack.ops-tone-none { background: #fce7f3; color: #9d174d; border-color: #fbcfe8; }
.ops-chip-menu-ack.ops-tone-partial { background: #f5d0fe; color: #86198f; border-color: #f0abfc; }
.ops-chip-menu-ack.ops-tone-done { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.ops-chip-menu-ack.ops-tone-empty { background: #f1f5f9; color: #94a3b8; border-color: #e2e8f0; }
.ops-services-cell { min-width: 8.5rem; max-width: 22rem; vertical-align: middle; }
.ops-services-cell .ops-chip-row { max-width: 22rem; }
.sales-events-table td.ops-services-cell .ops-chip-row { max-width: 22rem; }

.ops-progress-bar {
  display: inline-block;
  vertical-align: middle;
  width: 3.25rem;
  height: .35rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-left: .35rem;
}
.ops-progress-bar > i {
  display: block;
  height: 100%;
  background: var(--ok, #16a34a);
}
.ops-tone-none .ops-progress-bar > i,
.ops-chip.ops-tone-none + .ops-progress-bar > i { background: #ef4444; }
.ops-tone-partial .ops-progress-bar > i { background: #f59e0b; }
td .ops-chip-row { max-width: 16rem; }
@media print {
  .ops-chip { border: 1px solid #999 !important; background: #fff !important; color: #000 !important; }
}

/* Event-list CR flag badge */
.ops-cr-badge {
  display: inline-block;
  margin-left: .25rem;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  text-decoration: none;
  white-space: nowrap;
}
.ops-cr-badge:hover { background: #ffedd5; }
tr.has-open-cr td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.ops-quant-cell { white-space: nowrap; }
.ops-quant-cell .ops-chip { margin-right: .15rem; }
.ops-quant-bar {
  display: inline-block; width: 3rem; height: .3rem; border-radius: 999px;
  background: #e2e8f0; vertical-align: middle; margin-left: .3rem; overflow: hidden;
}
.ops-quant-bar > i { display: block; height: 100%; background: #16a34a; }
.ops-tone-none-bar > i { background: #ef4444; width: 8% !important; }
.ops-tone-partial-bar > i { background: #f59e0b; }
.ops-tone-done-bar > i { background: #16a34a; }
.ops-tone-empty-bar > i { width: 0 !important; }

/* —— Admin service IA —— */
.admin-search-wrap { margin: 0 0 1rem; }
.admin-search {
  max-width: 420px;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}
.admin-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .85rem;
}
a.admin-service-card {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none !important;
  transition: border-color .12s, box-shadow .12s;
}
a.admin-service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(30, 77, 107, .12);
}
a.admin-service-card[hidden] { display: none !important; }
.admin-service-icon {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  background: #eef3f7;
  color: var(--accent);
  font-weight: 700;
  font-size: .78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-service-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.admin-service-body strong { font-size: 1rem; }
.admin-service-chevron { color: var(--muted); font-size: 1.1rem; align-self: center; }
.admin-hub-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.admin-hub-sections details.admin-hub-section { margin-bottom: .65rem; }
.admin-hub-sections details.admin-hub-section[hidden] { display: none !important; }
.admin-hub-section-title { font-weight: 650; margin-right: .5rem; }
.admin-local-subnav .admin-local-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-right: .25rem;
}
.admin-filter-empty { margin-top: .5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.admin-subnav a.active { font-weight: 650; }


/* —— Language switcher —— */
.lang-switch { position: relative; }
.lang-details { position: relative; }
.lang-summary {
  /* sizing owned by .user-bar .lang-summary; keep list-style reset for login/light */
  list-style: none; cursor: pointer; color: #b8c9d9; font-size: .68rem;
  padding: .18rem .4rem; border-radius: 4px; border: 1px solid rgba(255,255,255,.18);
  user-select: none; white-space: nowrap;
}
.lang-summary::-webkit-details-marker { display: none; }
.lang-summary:hover { background: rgba(255,255,255,.08); color: #fff; }
.lang-code {
  display: inline-block; margin-inline-start: .25rem; padding: .05rem .35rem;
  background: var(--accent, #2563eb); color: #fff; border-radius: 3px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
}
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 4px); z-index: 400;
  min-width: 11rem; margin: 0; padding: .35rem 0; list-style: none;
  background: #fff; color: #1e293b; border: 1px solid #e2e8f0; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.lang-menu a {
  display: flex; align-items: center; gap: .35rem; padding: .4rem .75rem;
  color: #1e293b; text-decoration: none; font-size: .85rem;
}
.lang-menu a:hover { background: #f1f5f9; text-decoration: none; }
.lang-menu a.active { background: #eef2ff; font-weight: 600; }
.lang-default { color: #2563eb; font-size: .75rem; margin-inline-start: auto; }
.lang-summary-light {
  color: #334155; border-color: #cbd5e1; background: #fff; font-size: .8rem;
}
.lang-menu-light { inset-inline-end: 0; }
html[dir=rtl] .topbar { direction: rtl; }
html[dir=rtl] .user-bar { margin-left: 0; margin-right: auto; padding-left: 0; padding-right: 1rem; }

/* Event-list multi status checkboxes + saved views */
.event-list-filters { padding: .75rem 1rem; }
.status-check-bar {
  display: flex; flex-wrap: wrap; gap: .4rem .55rem; align-items: center;
}
.status-check-label {
  font-size: .8rem; font-weight: 650; color: var(--muted); margin-right: .25rem;
}
.status-check {
  display: inline-flex; align-items: center; gap: .3rem;
  margin: 0; padding: .2rem .45rem; border: 1px solid var(--border);
  border-radius: 999px; background: #f8fafc; cursor: pointer; user-select: none;
}
.status-check input { width: auto; margin: 0; accent-color: var(--accent); }
.status-check.is-on { background: #eef3f7; border-color: var(--accent); }
.status-check .badge { pointer-events: none; }
.status-clear { margin-left: .25rem; }
.filter-groups-bar { margin-top: -.35rem; }
.filter-groups-row {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-end;
  justify-content: space-between;
}
.filter-groups-controls { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.filter-groups-controls select,
.filter-groups-controls input[type="text"] { width: auto; min-width: 180px; }
.inline-fg-form { display: inline; margin: 0; }
.filter-groups-save { flex: 1 1 240px; }
.filter-groups-switch { flex: 1 1 280px; }

/* Filter panel typed find */
.filter-panel-find {
  display: flex; flex-wrap: wrap; gap: .4rem .65rem; align-items: center;
  padding: .55rem .85rem .15rem;
}
.filter-panel-find-label {
  font-size: .8rem; font-weight: 650; color: var(--muted); margin: 0;
}
.filter-panel-find-input {
  flex: 1 1 180px; max-width: 22rem; min-width: 140px;
  margin: 0; padding: .35rem .55rem; font-size: .9rem;
}
.filter-panel-find-hint { font-size: .78rem; }
.filter-panel .is-fp-hidden { display: none !important; }
.filter-services-bar { max-height: 7.5rem; overflow: auto; padding-bottom: .15rem; }

/* ---- Home dashboard widgets ---- */
.home-toolbar { display:flex; flex-wrap:wrap; gap:1rem; align-items:flex-start; justify-content:space-between; }
.home-toolbar-actions { display:flex; gap:.5rem; flex-wrap:wrap; }
.dash-widget { margin-bottom:1rem; }
.dash-widget-hidden { opacity:.55; border-style:dashed; }
.dash-widget-head { display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; margin-bottom:.35rem; }
.dash-cal-list, .dash-task-list { list-style:none; margin:0; padding:0; }
.dash-cal-list li, .dash-task-list li {
  /* grid columns set with .dash-list-head below */
  align-items:center;
  padding:.45rem .5rem; border-bottom:1px solid var(--border);
}
.dash-cal-list li:last-child, .dash-task-list li:last-child { border-bottom:none; }
.dash-cal-date, .dash-task-due {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:.8rem; color: var(--muted);
}
.dash-fav-grid { display:flex; flex-wrap:wrap; gap:.55rem; }
.dash-fav-chip {
  display:inline-flex; flex-direction:column; gap:.15rem;
  min-width:140px; max-width:220px; padding:.65rem .8rem;
  border:1px solid var(--border); border-radius: var(--radius);
  background:#f8fafc; text-decoration:none !important; color:inherit !important;
}
.dash-fav-chip:hover { border-color: var(--accent); background:#eef3f7; }
.dash-fav-kind { font-size:.7rem; text-transform:uppercase; color:var(--muted); letter-spacing:.03em; }
.dash-fav-chip.kind-report { border-left:3px solid #2563eb; }
.dash-fav-chip.kind-action { border-left:3px solid #059669; }
.dash-fav-chip.kind-link { border-left:3px solid #7c3aed; }
.dash-customize .dash-layout-table { width:100%; margin:.75rem 0; }
.dash-customize .dash-layout-table th,
.dash-customize .dash-layout-table td { text-align:left; padding:.4rem .5rem; border-bottom:1px solid var(--border); }
.dash-fav-edit { list-style:none; padding:0; margin:0 0 1rem; }
.dash-fav-edit li { display:flex; flex-wrap:wrap; gap:.4rem .6rem; align-items:center; padding:.4rem 0; border-bottom:1px solid var(--border); }
.dash-hr { border:none; border-top:1px solid var(--border); margin:1.25rem 0; }
.inline-form { display:inline; margin:0; }


/* ===== Module sticky Actions / Reports chrome ===== */
:root {
  --topbar-h: 40px;
  --subnav-h: 28px;
  /* --actions-h / --reports-h come from density tokens above; JS still measures live */
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
}
.subnav {
  position: sticky;
  top: var(--topbar-h);
  z-index: 49;
}
.module-sticky-chrome {
  margin: var(--sticky-chrome-margin);
}
.module-sticky-actions {
  position: sticky;
  top: calc(var(--topbar-h) + var(--subnav-h));
  z-index: 48;
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sticky-actions-pad);
  margin-bottom: .25rem;
}
.module-sticky-actions h1 {
  margin: 0;
  font-size: .95rem;
}
.module-sticky-reports {
  padding: var(--sticky-reports-pad) !important;
  min-height: 0;
}
.module-sticky-reports {
  position: sticky;
  top: calc(var(--topbar-h) + var(--subnav-h) + var(--actions-h));
  z-index: 47;
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
  background: #eef3f7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sticky-reports-pad);
  margin-bottom: .4rem;
}
.module-sticky-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.module-sticky-links {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Collapsible filter panel */
.filter-panel {
  padding: 0;
  overflow: hidden;
}
.filter-panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  flex-wrap: wrap;
  padding: var(--filter-summary-pad);
  background: #f7f9fb;
  border-bottom: 1px solid var(--border);
}
.filter-panel.is-collapsed .filter-panel-summary {
  border-bottom: none;
}
.filter-panel-body {
  padding: var(--filter-body-pad);
}
.filter-panel.is-collapsed .filter-panel-body {
  display: none;
}
.filter-panel .event-list-filters {
  /* was .card; now nested */
}
.admin-toolbar-module {
  margin: 0 0 1rem;
  padding: .5rem .75rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.admin-toolbar-module summary {
  cursor: pointer;
  padding: .35rem 0;
}
.admin-toolbar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: .5rem;
}
@media (max-width: 800px) {
  .admin-toolbar-grid { grid-template-columns: 1fr; }
}
.admin-toolbar-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 500;
  color: var(--text);
  margin: .35rem 0;
}
@media print {
  .module-sticky-actions,
  .module-sticky-reports,
  .filter-panel { display: none !important; }
}

/* ---- Event Chef packout board ---- */
/* C6 — Unassigned loudness on long packout (~800KB destinations) */
.packout-unassigned-banner {
  margin: .5rem 0 .85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .35rem;
}
.packout-unassigned.packout-unassigned-has-items {
  border-color: #fdba74;
  box-shadow: 0 0 0 1px #fdba74;
  background: #fffbeb;
  /* Stick whole Unassigned column while destinations scroll (~800KB) */
  position: sticky;
  top: .5rem;
  z-index: 4;
  max-height: calc(100vh - 1rem);
  overflow: auto;
}
.packout-unassigned-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
  margin: -.15rem -.15rem .55rem;
  padding: .55rem .65rem;
  background: #f8fafc;
  border: 1px solid var(--border, #d0d7de);
  border-radius: 8px;
}
.packout-unassigned-has-items .packout-unassigned-head {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.packout-unassigned-has-items .packout-unassigned-head h2 { color: #9a3412; font-size: 1.1rem; }
.packout-unassigned-count {
  font-weight: 700;
  color: #c2410c;
}
@media (max-width: 960px) {
  /* Single-column: keep banner + jump; sticky column less useful */
  .packout-unassigned.packout-unassigned-has-items {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
@media print {
  .packout-unassigned-banner,
  .packout-unassigned-head { position: static; box-shadow: none; }
  .packout-unassigned.packout-unassigned-has-items {
    position: static; max-height: none; overflow: visible; box-shadow: none;
  }
}


.packout-board {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.4fr);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 960px) {
  .packout-board { grid-template-columns: 1fr; }
}
.packout-dest { margin-bottom: .85rem; }
.packout-proofer {
  border: 1px solid var(--border, #d0d7de);
  border-radius: 8px;
  padding: .65rem .75rem;
  margin-bottom: .65rem;
  background: #fbfcfe;
}
.packout-proofer-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: .45rem;
}
.packout-table { width: 100%; font-size: .9rem; }
.packout-assign-form select { max-width: 14rem; }
.packout-rename summary { cursor: pointer; list-style: none; }
.packout-print-meta {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: .75rem 0 1rem;
}
.packout-blank-return {
  display: inline-block;
  min-width: 4.5rem;
  border-bottom: 1px solid #333;
}
.packout-return-cell { min-width: 5rem; }
@media print {
  .packout-sheet-break { break-before: page; page-break-before: always; }
}


/* Production sheet */
.ps-complete td { opacity: .55; text-decoration: line-through; }
.ps-complete td:first-child,
.ps-complete td input { text-decoration: none; opacity: 1; }
.ps-breakdown { width: 100%; margin: 0; background: #f8fafc; }
.ps-breakdown td { border: none; padding: .25rem .4rem; font-size: .85rem; }
.ps-print-ev { margin: .15rem 0; font-size: .85rem; }
.ps-focus-tomorrow { box-shadow: inset 3px 0 0 var(--warn); }
.ps-focus-today { box-shadow: inset 3px 0 0 var(--cyan); }
.ec-next-confirmed { box-shadow: inset 3px 0 0 var(--ok); }
.ec-next-confirmed td:first-child { font-weight: 600; }
.print-only { display: none; }
@media print {
  .print-only { display: inline; }
}


/* event lookbook */
.lookbook-package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .85rem; }
.lookbook-package-card {
  display: block; border: 1px solid var(--border); border-radius: var(--radius);
  padding: .85rem 1rem; background: #f8fafc; color: inherit; text-decoration: none !important;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.lookbook-package-card:hover { border-color: var(--accent); background: #fff; box-shadow: var(--shadow); }
.lookbook-package-card h3 { margin: 0 0 .25rem; font-size: 1rem; color: var(--accent); }
.lookbook-package-preview {
  font-size: .82rem; color: var(--muted); margin: .35rem 0 .5rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lookbook-package-open { font-size: .8rem; font-weight: 600; color: var(--accent); }
.lookbook-photo-placeholder { background: repeating-linear-gradient(45deg,#eee,#eee 6px,#f5f5f5 6px,#f5f5f5 12px); }
.lookbook-builder-row { align-items: center; }
.lookbook-toggle { display: flex; align-items: center; gap: .4rem; white-space: nowrap; font-size: .875rem; font-weight: 560; margin-left: auto; padding-left: .75rem; }
.lookbook-toggle input { width: auto; }

.lookbook-sheet-header {
  display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 1.25rem;
  align-items: start; margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 2px solid var(--beo-brand, #1a2332);
}
.lookbook-brand-block { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.lookbook-brand-logo { max-height: 56px; width: auto; object-fit: contain; }
.lookbook-brand-name { font-weight: 700; font-size: 1.05rem; color: var(--beo-brand, #1a2332); }
.lookbook-meta-kicker { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--beo-accent, #c0392b); font-weight: 700; }
.lookbook-event-title { margin: .2rem 0 .65rem; font-size: 1.45rem; }
.lookbook-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .45rem .85rem; margin: 0; }
.lookbook-meta-grid dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0; }
.lookbook-meta-grid dd { margin: 0; font-weight: 600; font-size: .9rem; }

.lookbook-cascade-layout {
  display: grid; grid-template-columns: minmax(240px, 1.05fr) minmax(260px, 0.95fr);
  gap: 1.25rem; align-items: start;
}
.lookbook-collage-wrap {
  position: sticky; top: .5rem;
}
.lookbook-collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  max-height: min(720px, calc(100vh - 12rem));
  align-content: start;
  overflow: hidden;
}
.lookbook-collage-tile {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: grid;
  aspect-ratio: 1;
}
.lookbook-collage-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee;
}
.lookbook-collage-hero {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.lookbook-collage-tile figcaption {
  font-size: .75rem;
  padding: .25rem .4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lookbook-collage-more {
  margin: .45rem 0 0;
  font-size: .78rem;
}

.lookbook-text-column { min-width: 0; }
.lookbook-text-section { margin-bottom: 1.1rem; }
.lookbook-text-section h2 {
  margin: 0 0 .5rem; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--beo-brand, #1a2332); border-bottom: 1px solid var(--border); padding-bottom: .25rem;
}
.lookbook-text-list { list-style: none; padding: 0; margin: 0; }
.lookbook-text-list li { padding: .55rem 0; border-bottom: 1px solid #eef2f7; }
.lookbook-text-list li strong { display: inline; margin-right: .35rem; }
.lookbook-text-has-photo strong { color: var(--beo-brand, #1a2332); }
.lookbook-text-only strong { color: #334155; }
.lookbook-print-note { margin-top: 1.25rem; font-size: .78rem; }

@media print {
  .lookbook-cascade-layout {
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    break-inside: auto;
  }
  .lookbook-collage-wrap {
    position: static;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .lookbook-collage {
    position: static;
    gap: .35rem;
    max-height: none;
    overflow: visible;
  }
  .lookbook-collage-tile {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  .lookbook-collage-hero {
    grid-column: span 2;
    grid-row: span 1;
  }
  .lookbook-sheet-header { grid-template-columns: 160px 1fr; }
  .lookbook-meta-grid { grid-template-columns: repeat(3, 1fr); }
  .lookbook-text-column { break-inside: auto; }
}

@media (max-width: 800px) {
  .lookbook-cascade-layout { grid-template-columns: 1fr; }
  .lookbook-collage-wrap { position: static; }
  .lookbook-collage {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 60vh;
  }
  .lookbook-collage-hero {
    grid-column: 1 / -1;
    grid-row: span 1;
  }
  .lookbook-sheet-header { grid-template-columns: 1fr; }
}



/* Sticky event-list headers — stay visible while scrolling the table */
.card table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--card-bg, #fff);
  box-shadow: 0 1px 0 var(--border, #e5e7eb);
}
/* When sticky module chrome is present, sit below it */
body.has-sticky-chrome .card table thead th,
.module-sticky-chrome ~ * table thead th {
  top: 0;
}
.card[style*="overflow"] table thead th,
.card.table-scroll table thead th {
  position: sticky;
  top: 0;
}

/* —— Admin toolbox + perspective banner —— */
.admin-toolbox { position: relative; }
.toolbox-details { position: relative; }
.toolbox-summary {
  /* sizing owned by .user-bar .toolbox-summary */
  list-style: none; cursor: pointer; color: #b8c9d9; font-size: .68rem;
  padding: .18rem .4rem; border-radius: 4px; border: 1px solid rgba(255,255,255,.18);
  user-select: none; white-space: nowrap;
}
.toolbox-summary::-webkit-details-marker { display: none; }
.toolbox-summary:hover { background: rgba(255,255,255,.08); color: #fff; }
.toolbox-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 4px); z-index: 400;
  min-width: 15rem; max-height: min(70vh, 28rem); overflow: auto;
  margin: 0; padding: .4rem 0; list-style: none;
  background: #fff; color: #1e293b; border: 1px solid #e2e8f0; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.toolbox-section { padding: .35rem 0; border-top: 1px solid #f1f5f9; }
.toolbox-section:first-child { border-top: 0; }
.toolbox-heading {
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #64748b; padding: .25rem .75rem .15rem;
}
.toolbox-subhead {
  font-size: .72rem; font-weight: 650; color: #94a3b8; padding: .2rem .75rem 0;
}
.toolbox-menu ul { list-style: none; margin: 0; padding: 0; }
.toolbox-menu a {
  display: flex; align-items: center; gap: .35rem; padding: .35rem .75rem;
  color: #1e293b; text-decoration: none; font-size: .85rem;
}
.toolbox-menu a:hover { background: #f1f5f9; text-decoration: none; }
.toolbox-menu a.active { background: #eef2ff; font-weight: 600; }
.toolbox-menu a.toolbox-exit { color: #b45309; font-weight: 650; }
.toolbox-note { padding: .35rem .75rem; font-size: .8rem; }
.perspective-banner {
  background: #fef3c7; color: #92400e; border-bottom: 1px solid #f59e0b;
  padding: .45rem 1rem; font-size: .85rem; display: flex; flex-wrap: wrap;
  align-items: center; gap: .5rem 1rem;
}
.perspective-banner a {
  color: #92400e; font-weight: 700; text-decoration: underline;
}
.perspective-banner a:hover { color: #78350f; }


/* ---- Client allergen conflict pairs (yellow | red) ---- */
.allergen-conflict-block {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  padding: .55rem .7rem .65rem;
}
.allergen-conflict-ok {
  background: #f8fafc;
  border-style: dashed;
}
.allergen-conflict-heading {
  font-size: .82rem;
  font-weight: 650;
  color: #334155;
  margin-bottom: .4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: baseline;
}
.allergen-conflict-link {
  font-weight: 550;
  font-size: .78rem;
}
.allergen-conflict-pairs {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.allergen-conflict-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}
.allergen-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.2;
  padding: .28rem .45rem;
  border-radius: 4px;
  border: 1px solid transparent;
  max-width: 100%;
  text-decoration: none;
}
.allergen-chip-yellow {
  background: #fef9c3;
  border-color: #eab308;
  color: #713f12;
}
.allergen-chip-red {
  background: #fee2e2;
  border-color: #ef4444;
  color: #7f1d1d;
}
a.allergen-chip-red:hover {
  background: #fecaca;
  text-decoration: underline;
}
.allergen-chip-sep {
  color: #94a3b8;
  font-size: .75rem;
}
.allergen-chip-mini {
  font-size: .65rem;
  padding: .12rem .28rem;
  margin-left: .25rem;
  vertical-align: middle;
}
.allergen-conflict-compact .allergen-conflict-heading { font-size: .78rem; }
.allergen-conflict-compact .allergen-chip { font-size: .72rem; }

/* —— check-in mobile / live flags —— */
.checkin-form { padding-bottom: 5.5rem; }
.checkin-sign input { font-size: 1.125rem; padding: .65rem .75rem; width: 100%; box-sizing: border-box; }
.checkin-lines { display: flex; flex-direction: column; gap: .75rem; margin: .75rem 0 1rem; }
.checkin-line {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem;
  background: #fff;
}
.checkin-line.has-variance { background: #fff7ed; border-color: #fdbA74; }
.checkin-line-top { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.checkin-flag-badge {
  display: inline-block; padding: .2rem .55rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.checkin-qtys {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .5rem;
  margin-top: .65rem;
}
.checkin-qty .lbl { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .2rem; }
.checkin-qty .val { font-weight: 650; font-size: 1rem; }
.checkin-qty input {
  width: 100%; box-sizing: border-box;
  font-size: 1.05rem; /* ≥16px-ish to avoid iOS zoom */
  padding: .55rem .5rem;
  min-height: 44px;
}
.checkin-qty .uom { font-size: .75rem; color: var(--muted); }
.checkin-response {
  margin-top: .65rem; padding-top: .55rem; border-top: 1px dashed #fdba74;
  display: flex; flex-direction: column; gap: .4rem;
}
.checkin-response .ack-row { display: flex; gap: .45rem; align-items: center; font-size: .9rem; }
.checkin-response .checkin-exc {
  width: 100%; box-sizing: border-box; min-height: 44px;
  font-size: 1rem; padding: .55rem .6rem;
}
.checkin-ack-all {
  margin: .75rem 0; padding: .75rem; background: #fef3c7;
  border: 1px solid #fcd34d; border-radius: 8px;
}
.checkin-ack-all label { display: flex; gap: .5rem; align-items: flex-start; }
.checkin-advanced { margin-top: 1rem; }
.checkin-sticky-actions {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: .75rem 0 .25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%);
}
.checkin-sticky-actions .btn-ok {
  flex: 1 1 160px; min-height: 48px; font-size: 1.05rem; padding: .7rem 1rem;
}
.checkin-sticky-actions .btn-secondary { min-height: 48px; }
@media (max-width: 640px) {
  .checkin-qtys { grid-template-columns: 1fr; }
  .checkin-meta { grid-template-columns: 1fr !important; }
  .checkin-toolbar { flex-direction: column; align-items: stretch; gap: .5rem; }
  .container { padding: .75rem; }
  .topbar { flex-wrap: wrap; }
}


/* Home module navigation — 4–5 across, fills width */
.home-modules-card { padding: .65rem .85rem !important; }
.home-modules-card h2 { margin: 0 0 .35rem !important; font-size: .95rem !important; }
.home-module-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .45rem;
  margin: .35rem 0 0;
}
.home-module-nav a {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 4.25rem;
  padding: .55rem .65rem;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-weight: 650; font-size: .84rem;
  text-decoration: none; box-shadow: var(--shadow);
}
.home-module-nav a:hover { border-color: var(--accent); color: var(--accent); background: #f8fafc; }
.home-module-nav a .hm-sub {
  display: block; font-weight: 400; font-size: .68rem; color: var(--muted);
  margin-top: .2rem; line-height: 1.25;
}
@media (max-width: 1100px) {
  .home-module-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .home-module-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-module-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.topbar .brand a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: .4rem; }
/* Module tabs restored — role-filtered; scroll on narrow screens */
.nav-portals {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: .15rem;
  scrollbar-width: thin;
}
.nav-portals > a,
.nav-portals .nav-portal-link {
  flex: 0 0 auto;
  font-size: .78rem;
  padding: .28rem .55rem;
}



/* Allergen: one flag, expand for details */
.allergen-flag-summary { padding: .45rem .65rem; }
.allergen-flag-summary-btn {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
  font-size: .88rem;
}
.allergen-flag-summary-btn::-webkit-details-marker { display: none; }
.allergen-flag-summary[open] .allergen-flag-summary-btn .muted { display: none; }
.allergen-flag-summary .allergen-conflict-pairs { margin-top: .55rem; }
.flag-picklist-wrap { display: flex; flex-direction: column; gap: .45rem; }
.flag-selected-chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; min-height: 1.5rem; }
.flag-chip-on {
  display: inline-flex; align-items: center; gap: .25rem;
  background: #fef3c7; border: 1px solid #f59e0b; color: #92400e;
  border-radius: 999px; padding: .15rem .55rem; font-size: .78rem; font-weight: 600;
}
.flag-picklist-edit > summary { width: fit-content; }
.flag-picklist-edit[open] > summary { margin-bottom: .5rem; }

/* Per-page build status (Live / Working / Backlog / Stub) */
.page-build-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .65rem;
  margin: 0 0 .75rem;
  padding: .4rem .65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-size: .8rem;
  line-height: 1.35;
}
.page-build-chip {
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .12rem .45rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.page-build-note {
  flex: 1 1 12rem;
  color: var(--muted);
  font-style: italic;
}
.page-build-live .page-build-chip { background: #ecfdf5; color: #047857; border-color: #6ee7b7; }
.page-build-working .page-build-chip { background: #fff7ed; color: #c2410c; border-color: #fdba74; }
.page-build-backlog .page-build-chip { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
.page-build-stub .page-build-chip { background: #f3f4f6; color: #4b5563; border-color: #d1d5db; }

/* In-app SOP coach (?) */
.page-coach-fab {
  position: fixed; right: calc(15vw + 8px); bottom: 1rem; z-index: 1200;
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  border: 2px solid var(--accent); background: var(--accent); color: #fff;
  font-weight: 800; font-size: 1.1rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.page-coach-fab:hover { filter: brightness(1.08); }

.page-coach-drawer[hidden],
.page-coach-backdrop[hidden] { display: none !important; }
.page-coach-drawer.is-open,
.page-coach-backdrop.is-open { display: flex !important; }
.page-coach-backdrop.is-open { display: block !important; }
.page-coach-close {
  min-width: 2.25rem; min-height: 2.25rem;
  border-radius: 8px; border: 1px solid var(--border) !important;
  background: #f8fafc !important; font-size: 1.35rem !important;
  cursor: pointer; line-height: 1; color: var(--text) !important;
}
.page-coach-close:hover { background: #fee2e2 !important; border-color: #fca5a5 !important; }

.page-coach-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 1300;
}
.page-coach-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1301;
  width: min(24rem, 92vw); background: #fff; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(0,0,0,.12);
}
.page-coach-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border);
}
.page-coach-kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.page-coach-head h2 { margin: .15rem 0 0; font-size: 1.05rem; }
.page-coach-close { border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; line-height: 1; color: var(--muted); }
.page-coach-body { flex: 1; overflow: auto; padding: .85rem 1rem 1.25rem; }
.page-coach-card h3 { margin: 0 0 .4rem; font-size: .98rem; }
.page-coach-goal { margin: .35rem 0; }
.page-coach-steps { margin: .5rem 0 .75rem; padding-left: 1.2rem; }
.page-coach-steps li { margin: .35rem 0; }
.page-coach-steps li.coach-active {
  background: #fff7ed; border-left: 3px solid #ea580c; padding: .35rem .45rem; margin-left: -.45rem;
  border-radius: 4px; font-weight: 600;
}
.page-coach-done, .page-coach-stuck { margin-top: .65rem; font-size: .88rem; }
.page-coach-stuck summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.page-coach-source { font-size: .72rem; margin-top: .75rem; }
.page-coach-hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
.page-coach-foot {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  padding: .65rem 1rem; border-top: 1px solid var(--border); background: #f8fafc;
}
.help-sop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .75rem; }
.help-sop-card h2 { font-size: 1rem; margin-top: 0; }
@media print { .page-coach-fab, .page-coach-drawer, .page-coach-backdrop { display: none !important; } }

.kitchen-menu-block { border: 1px solid var(--border); }
.kitchen-menu-items-table { width: 100%; font-size: .9rem; }
.kitchen-menu-items-table th { text-align: left; font-size: .75rem; color: var(--muted); }
.kitchen-menu-items-table td { vertical-align: top; padding: .35rem .4rem; border-top: 1px solid var(--border); }

/* kitchen-sold-qty-align — sold/menu-items qty columns */
.kitchen-sold-qty-table { table-layout: fixed; width: 100%; border-collapse: collapse; }
.kitchen-sold-qty-table th.col-qty,
.kitchen-sold-qty-table td.col-qty { width: 5.25rem; text-align: right; }
.kitchen-sold-qty-table th.col-unit,
.kitchen-sold-qty-table td.col-unit { width: 4.75rem; white-space: nowrap; }
.kitchen-sold-qty-table th.col-recipe,
.kitchen-sold-qty-table td.col-recipe { width: 11rem; }
.kitchen-sold-qty-table th.col-team,
.kitchen-sold-qty-table td.col-team { width: 9rem; }
.kitchen-sold-qty-table th.col-status,
.kitchen-sold-qty-table td.col-status { width: 6.5rem; }
.kitchen-sold-qty-table th.col-dirs,
.kitchen-sold-qty-table td.col-dirs { width: 14rem; }
.kitchen-sold-qty-table th.col-reorder,
.kitchen-sold-qty-table td.col-reorder { width: 5.5rem; }
.kitchen-sold-qty-table th.col-actions,
.kitchen-sold-qty-table td.col-actions { width: 9.5rem; white-space: nowrap; }
.kitchen-sold-qty-table .sold-qty-input {
  width: 100%; max-width: 5rem; text-align: right;
  font-variant-numeric: tabular-nums; font-size: .86rem;
  padding: .25rem .35rem; border: 1px solid var(--border); border-radius: 4px; background: #fff;
  margin-left: auto; display: block;
}
.kitchen-sold-qty-table .sold-qty-ro {
  display: block; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600;
}
.kitchen-sold-qty-table .sold-recipe-names {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.25;
}
.kitchen-sold-qty-table .sold-qty-input.is-saving { opacity: .65; }
.kitchen-sold-qty-table .sold-qty-input.is-saved { border-color: var(--ok, #16a34a); background: #f0fdf4; }
.sold-qty-toast {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 80;
  background: #0f2740; color: #fff; padding: .45rem .75rem; border-radius: 6px;
  font-size: .82rem; opacity: 0; transform: translateY(8px); transition: .18s ease;
  pointer-events: none; box-shadow: 0 6px 20px rgba(15,39,64,.25);
}
.sold-qty-toast.is-show { opacity: 1; transform: none; }
.sold-qty-toast.is-err { background: #991b1b; }
.sold-qty-toast.is-ok { background: #166534; }
/* scale-prep-to-match — commitment / quantify */
.kitchen-sold-qty-table th.col-actions,
.kitchen-sold-qty-table td.col-actions { width: 8.5rem; white-space: nowrap; }
.kitchen-sold-qty-table tr.prep-scale-mismatch td.col-qty .sold-qty-input {
  border-color: #ea580c; background: #fff7ed;
}
.scale-prep-btn.is-mismatch {
  border-color: #ea580c; color: #9a3412; background: #fff7ed; font-weight: 600;
}
.scale-prep-btn.is-saving { opacity: .65; }

.quantify-ws-meta .sold-qty-input { max-width: 6.5rem; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .kitchen-sold-qty-table { table-layout: auto; }
  .kitchen-sold-qty-table th.col-recipe,
  .kitchen-sold-qty-table td.col-recipe { width: auto; }
}


.recipe-quant-line {
  display: grid;
  grid-template-columns: 6.5rem minmax(0,1fr) minmax(7rem,11rem);
  gap: .5rem .75rem;
  align-items: baseline;
  padding: .45rem .55rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.recipe-quant-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.recipe-quant-name { font-weight: 600; }
.recipe-quant-team { text-align: right; font-size: .85rem; color: var(--text); }
.recipe-quant-edit { margin-top: .35rem; padding-left: .25rem; }
@media (max-width: 720px) {
  .recipe-quant-line { grid-template-columns: 1fr; }
  .recipe-quant-team { text-align: left; }
}

.sitemap-table { width:100%; font-size:.85rem; border-collapse:collapse; }
.sitemap-table th { text-align:left; font-size:.72rem; color:var(--muted); border-bottom:1px solid var(--border); padding:.3rem .4rem; }
.sitemap-table td { padding:.4rem; border-bottom:1px solid var(--border); vertical-align:top; }
.sitemap-table .page-build-chip { font-size:.68rem; }
.sitemap-table code { font-size:.78rem; }


/* —— PAR % inventory count (phone-friendly eyeball) —— */
.inv-count-list { display: flex; flex-direction: column; gap: .65rem; }
.inv-count-card {
  border: 1px solid var(--border, #c5d0da);
  border-radius: 10px;
  padding: .65rem .75rem .75rem;
  background: #fafcfd;
}
.inv-count-card-head {
  display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start;
  margin-bottom: .5rem;
}
.inv-par-chip {
  font-size: .78rem; white-space: nowrap;
  background: #e8eef4; border-radius: 999px; padding: .2rem .55rem;
}
.inv-pct-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .35rem;
  margin-bottom: .45rem;
}
.inv-pct-btn {
  display: flex; align-items: center; justify-content: center;
  margin: 0; padding: .55rem .25rem;
  border: 1px solid var(--border, #c5d0da);
  border-radius: 8px;
  background: #fff;
  font-weight: 600; font-size: .85rem;
  cursor: pointer; user-select: none;
  min-height: 2.6rem;
}
.inv-pct-btn input { position: absolute; opacity: 0; pointer-events: none; }
.inv-pct-btn.is-active,
.inv-pct-btn:has(input:checked) {
  border-color: var(--accent, #1e4d6b);
  background: #e7f0f7;
  box-shadow: 0 0 0 2px rgba(30,77,107,.18);
}
.inv-pct-row {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  margin-bottom: .35rem;
}
.inv-count-notes input { font-size: .9rem; }
.par-table .par-low { background: #fff1f2; }
.par-table .par-warn { background: #fffbeb; }
@media (max-width: 520px) {
  .inv-pct-presets { grid-template-columns: repeat(3, 1fr); }
  .inv-pct-btn { min-height: 2.85rem; font-size: .9rem; }
}

.page-coach-flag {
  border-top: 1px solid var(--border);
  padding: .75rem 1rem 0.25rem;
  background: #f8fafc;
}
.page-coach-flag-form textarea { resize: vertical; min-height: 4rem; }


/* —— Landscape build sheets (one item per page) —— */
.build-sheet-page {
  break-after: page;
  page-break-after: always;
  margin: 0 0 1.25rem;
  padding-bottom: .5rem;
}
.build-sheet-page:last-child {
  break-after: auto;
  page-break-after: auto;
}
.build-sheet-page-head {
  display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  font-size: .8rem; border-bottom: 1px solid #c5d0da; padding-bottom: .35rem; margin-bottom: .55rem;
}
.build-sheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 0.85rem 1.1rem;
  align-items: start;
}
.build-sheet-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef2f6;
  border: 1px solid var(--border, #c5d0da);
  border-radius: 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.build-sheet-photo {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.build-sheet-photo-empty { padding: 1rem; text-align: center; font-size: .9rem; }
.build-sheet-title { margin: .55rem 0 .2rem; font-size: 1.35rem; line-height: 1.2; }
.build-sheet-meta { margin: 0; font-size: .92rem; }
.build-sheet-callout {
  margin-top: .55rem; padding: .45rem .6rem;
  border-left: 4px solid #b45309; background: #fffbeb; border-radius: 0 6px 6px 0;
  font-size: .9rem;
}
.build-sheet-flags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .5rem; }
.build-sheet-recipes-h { margin: 0 0 .45rem; font-size: 1rem; }
.build-sheet-recipe { margin-bottom: .75rem; }
.build-sheet-recipe-line {
  display: flex; flex-wrap: wrap; gap: .35rem .65rem; align-items: baseline;
  margin-bottom: .25rem;
}
.build-sheet-rq { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 4.5rem; }
.build-sheet-rn { font-weight: 650; flex: 1; }
.build-sheet-team { font-size: .82rem; }
.build-sheet-prep { margin: .2rem 0 .35rem; font-size: .88rem; }
.build-sheet-components { width: 100%; font-size: .88rem; }
body.paper-landscape .report.build-sheets-packet { max-width: none; }
@media print {
  .build-sheets-cover { display: none !important; }
  .build-sheet-page { margin: 0; padding: 0; }
  .build-sheet-photo-wrap { max-height: 55vh; }
}
@media (max-width: 800px) {
  .build-sheet-grid { grid-template-columns: 1fr; }
}

/* Help ? in top menu (next to Home / Dashboard) */
.nav-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-left: .15rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-help-btn:hover,
.nav-help-btn[aria-expanded="true"] {
  background: var(--accent, #1e4d6b);
  border-color: #fff;
  color: #fff;
}


/* Topbar help (?) — same slot family as Toolbox */
.topbar-help-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.65rem; height: 1.65rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08); color: #fff;
  font-weight: 700; font-size: .85rem; line-height: 1;
  cursor: pointer; padding: 0; flex-shrink: 0;
}
.topbar-help-btn:hover { background: rgba(255,255,255,.16); }
.topbar-exit-perspective {
  font-size: .7rem !important; font-weight: 600;
  color: #fecaca !important; border: 1px solid rgba(254,202,202,.45);
  border-radius: 999px; padding: .2rem .55rem !important;
  white-space: nowrap;
}
.topbar-exit-perspective:hover { background: rgba(254,202,202,.12); color: #fff !important; }
/* FAB optional — hide when topbar ? exists */
.page-coach-fab { display: none !important; }


/* —— Demo list / event polish —— */
.table-scroll table { font-size: .9rem; }
.table-scroll th, .table-scroll td { padding: .4rem .5rem; vertical-align: top; }
.table-scroll th { white-space: nowrap; }
a.serial-link, a.client-link { color: var(--accent, #1e4d6b); text-decoration: underline; text-underline-offset: 2px; }
a.serial-link:hover, a.client-link:hover { filter: brightness(1.1); }
.row-actions .btn { margin: 0 .1rem .15rem 0; }
.row-actions .btn-sm { padding: .2rem .45rem; font-size: .78rem; }
.kitchen-event-toolbar {
  gap: .35rem;
  align-items: flex-start;
}
.kitchen-event-toolbar .btn-sm { margin: 0 .1rem .2rem 0; }
.event-tab-panel > .muted { max-width: 52rem; }
.form-grid label .muted { font-weight: 400; }

.workflow-flow { padding: .5rem 0; }
.wf-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .65rem; }
.wf-node {
  min-width: 9.5rem; max-width: 14rem; flex: 1;
  border-radius: 10px; padding: .65rem .75rem;
  border: 1px solid var(--border, #c5d0da);
  background: #f8fafc;
}
.wf-node strong { display: block; margin-bottom: .2rem; }
.wf-node span { display: block; font-size: .78rem; color: var(--muted, #5a6a7a); }
.wf-arrow { font-size: 1.25rem; color: var(--muted); }
.wf-sales { background: #e8f1fb; border-color: #6c8ebf; }
.wf-kitchen { background: #e8f6e8; border-color: #82b366; }
.wf-chef { background: #fff3e0; border-color: #d79b00; }
.wf-inv { background: #f3eaf8; border-color: #9673a6; }
.wf-purch { background: #fde8e7; border-color: #b85450; }
.wf-admin { background: #f3f4f6; border-color: #9ca3af; }

/* Admin ops workflow map status check-in */
.wf-legend{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 .85rem}
.workflow-map-card .wf-grid{display:flex;flex-wrap:wrap;align-items:stretch;gap:.55rem .35rem}
.workflow-map-card .wf-node{display:flex;flex-direction:column;gap:.35rem;min-width:9.5rem;max-width:12.5rem;flex:1 1 9.5rem;padding:.65rem .75rem;border-radius:10px;border:1px solid var(--border);background:#fff;text-decoration:none;color:inherit;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.workflow-map-card .wf-node:hover{border-color:var(--accent);box-shadow:0 2px 8px rgba(15,23,42,.08)}
.workflow-map-card .wf-node-top{display:flex;justify-content:space-between;align-items:center;gap:.35rem}
.workflow-map-card .wf-node-top strong{font-size:.92rem}
.workflow-map-card .wf-blurb{font-size:.78rem;color:var(--muted);line-height:1.35}
.workflow-map-card .wf-open{font-size:.72rem;font-weight:600;margin-top:auto}
.workflow-map-card .wf-arrow-grid{align-self:center;color:var(--muted);font-size:1rem;flex:0 0 auto}
.workflow-map-card .wf-status-live{border-left:4px solid #34d399}
.workflow-map-card .wf-status-working{border-left:4px solid #fb923c}
.workflow-map-card .wf-status-backlog{border-left:4px solid #60a5fa}
.workflow-map-card .wf-status-stub{border-left:4px solid #9ca3af}
.workflow-map-card .wf-status-live .wf-chip{background:#ecfdf5;color:#047857;border:1px solid #6ee7b7}
.workflow-map-card .wf-status-working .wf-chip{background:#fff7ed;color:#c2410c;border:1px solid #fdba74}
.workflow-map-card .wf-status-backlog .wf-chip{background:#eff6ff;color:#1d4ed8;border:1px solid #93c5fd}
.workflow-map-card .wf-status-stub .wf-chip{background:#f3f4f6;color:#4b5563;border:1px solid #d1d5db}
.workflow-map-card .wf-chip{font-style:normal;font-weight:700;font-size:.65rem;letter-spacing:.03em;text-transform:uppercase;padding:.1rem .4rem;border-radius:999px}


/* Production / Planning Report (party-chef paper shape) */
.planning-report-title { margin: .35rem 0 .25rem; font-size: 1.35rem; }
.planning-event-list { margin: .5rem 0 1rem; padding-left: 1.2rem; }
.planning-cat-header {
  margin: 0 0 .4rem; font-size: 1.05rem; text-transform: none;
  border-bottom: 2px solid #222; padding-bottom: .2rem;
}
.planning-report-table { width: 100%; border-collapse: collapse; }
.planning-report-table th, .planning-report-table td {
  border: 1px solid #333; padding: .28rem .45rem; text-align: left; vertical-align: top;
}
.planning-report-table th { background: #f3f4f6; font-size: .8rem; }
.planning-cat-cell { font-size: .85rem; color: #444; }
.planning-cat-block { margin-bottom: 1.1rem; }
@media print {
  .planning-report-card { box-shadow: none; border: none; }
  .planning-cat-header { break-after: avoid; }
  .planning-report-table tr { break-inside: avoid; }
}


/* ----- Profile avatars / org directory (Rave! people) ----- */
.avatar-sm, .avatar-md, .avatar-lg, .avatar-topbar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: rgba(255,255,255,.12); color: #fff; font-weight: 650;
}
.avatar-sm { width: 28px; height: 28px; font-size: .65rem; }
.avatar-md { width: 48px; height: 48px; font-size: .9rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.2rem; }
.avatar-topbar { width: 32px; height: 32px; font-size: .72rem; border: 2px solid rgba(255,255,255,.35); }
.avatar-initials { background: var(--accent, #1e4d6b); color: #fff; letter-spacing: .02em; }
table.data .avatar-initials { background: #1e4d6b; }
.org-person-card .avatar-initials,
.dir-card .avatar-initials,
.user-edit-photo-row .avatar-initials { background: #1e4d6b; color: #fff; }

.topbar .brand { gap: .55rem; }
.topbar-you {
  display: inline-flex; align-items: center; gap: .4rem;
  color: #fff !important; text-decoration: none !important;
  padding: .15rem .35rem .15rem .15rem; border-radius: 999px;
  background: rgba(255,255,255,.08); max-width: 11rem;
}
.topbar-you:hover { background: rgba(255,255,255,.16); }
.topbar-you-label { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.topbar-you-name { font-size: .72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 7.5rem; }
.topbar-you-role { font-size: .62rem; opacity: .75; text-transform: capitalize; }

.user-edit-photo-row { display: flex; gap: .85rem; align-items: center; }

.org-chart-card { margin-top: .25rem; }
.org-chart { display: flex; flex-direction: column; gap: .55rem; }
.org-level { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }
.org-level-arrow { text-align: center; color: var(--muted); font-size: 1.1rem; line-height: 1; }
.org-person-card {
  display: flex; gap: .65rem; align-items: flex-start;
  min-width: 14rem; max-width: 18rem; flex: 1 1 14rem;
  padding: .75rem .85rem; border-radius: 10px;
  border: 1px solid var(--border); background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  position: relative;
}
.org-person-card:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.org-person-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.org-person-body strong { font-size: .95rem; }
.org-title { font-size: .8rem; color: var(--muted); }
.org-contact { font-size: .78rem; color: var(--accent); text-decoration: none; }
.org-contact:hover { text-decoration: underline; }
.org-reports { font-size: .72rem; }
.org-dept-chip {
  position: absolute; top: .45rem; right: .45rem;
  font-size: .65rem !important; padding: .1rem .35rem !important;
}

.dir-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: .75rem;
}
.dir-card {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .7rem .8rem; border-radius: 10px;
  border: 1px solid var(--border); background: #fff;
}
.dir-card:hover { border-color: var(--accent); }

/* ----- Avatar preset picker ----- */
.avatar-preset-block { margin-top: 1rem; }
.avatar-preset-block h3 { margin: 0 0 .35rem; font-size: .95rem; }
.avatar-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: .55rem;
  max-width: 36rem;
}
.avatar-preset-btn {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  padding: .35rem; border: 2px solid transparent; border-radius: 10px;
  background: #fff; cursor: pointer; text-decoration: none; color: inherit;
  font: inherit; width: 100%;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.avatar-preset-btn:hover {
  border-color: var(--accent, #1e4d6b);
  box-shadow: 0 2px 8px rgba(15,23,42,.1);
  transform: translateY(-1px);
}
.avatar-preset-btn.is-selected {
  border-color: var(--accent, #1e4d6b);
  background: color-mix(in srgb, var(--accent, #1e4d6b) 10%, #fff);
}
.avatar-preset-btn img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(15,23,42,.08);
}
.avatar-preset-btn .avatar-preset-label {
  font-size: .62rem; line-height: 1.15; text-align: center;
  color: var(--muted, #64748b); max-width: 4.4rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


/* —— Avatar customizer (animal + food + bg) —— */
.avatar-customizer-layout {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 640px) {
  .avatar-customizer-layout { grid-template-columns: 1fr; }
}
.avatar-customizer-preview-wrap {
  display: flex; flex-direction: column; align-items: center;
  position: sticky; top: .5rem;
}
.avatar-customizer-preview {
  width: 128px; height: 128px; border-radius: 50%;
  object-fit: cover; background: #e2e8f0;
  border: 3px solid rgba(15,23,42,.08);
  box-shadow: 0 2px 10px rgba(15,23,42,.08);
}
.avatar-pick-section { margin-bottom: .85rem; }
.avatar-pick-label {
  font-size: .78rem; font-weight: 600; margin-bottom: .35rem;
  color: var(--text, #0f172a);
}
.avatar-part-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr));
  gap: .4rem;
}
.avatar-part-btn {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .3rem .2rem; border: 2px solid transparent; border-radius: 10px;
  background: #fff; cursor: pointer; font: inherit; color: inherit;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.avatar-part-btn img {
  width: 44px; height: 44px; object-fit: contain;
}
.avatar-part-btn span {
  font-size: .58rem; line-height: 1.1; text-align: center;
  color: var(--muted, #64748b); max-width: 4rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.avatar-part-btn:hover {
  border-color: var(--accent, #1e4d6b);
  transform: translateY(-1px);
}
.avatar-part-btn.is-selected {
  border-color: var(--accent, #1e4d6b);
  background: color-mix(in srgb, var(--accent, #1e4d6b) 10%, #fff);
}
.avatar-part-none-glyph {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--muted); background: #f1f5f9; border-radius: 50%;
}
.avatar-bg-swatches {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.avatar-bg-btn {
  width: 1.85rem; height: 1.85rem; border-radius: 50%;
  border: 2px solid rgba(15,23,42,.12); cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.avatar-bg-btn:hover { transform: scale(1.08); }
.avatar-bg-btn.is-selected {
  outline: 2px solid var(--accent, #1e4d6b);
  outline-offset: 2px;
  border-color: #fff;
}
.avatar-preset-summary {
  cursor: pointer; font-weight: 600; font-size: .9rem;
  color: var(--muted, #64748b);
}
.avatar-preset-block[open] .avatar-preset-summary { color: inherit; margin-bottom: .25rem; }

/* —— RTL (Hebrew) layout polish beyond topbar —— */
html[dir=rtl] body { text-align: right; }
html[dir=rtl] .subnav { direction: rtl; }
html[dir=rtl] .module-sticky-chrome,
html[dir=rtl] .module-sticky-actions,
html[dir=rtl] .module-sticky-reports { direction: rtl; }
html[dir=rtl] .filter-panel,
html[dir=rtl] .event-list-filters { direction: rtl; }
html[dir=rtl] .status-check-label { margin-right: 0; margin-left: .25rem; }
html[dir=rtl] .status-clear { margin-left: 0; margin-right: .25rem; }
html[dir=rtl] table.data th,
html[dir=rtl] table th { text-align: right; }
html[dir=rtl] .form-grid label,
html[dir=rtl] .toolbar,
html[dir=rtl] .card > h1,
html[dir=rtl] .card > h2,
html[dir=rtl] .card > h3 { text-align: right; }
html[dir=rtl] .tabs { direction: rtl; }
html[dir=rtl] .admin-service-grid { direction: rtl; }
html[dir=rtl] .admin-service-chevron { transform: scaleX(-1); }
html[dir=rtl] .row-actions { direction: rtl; }


/* Dashboard list column headers */
.dash-list-head{display:grid;grid-template-columns:4.5rem minmax(5.5rem,1.1fr) minmax(7rem,1.4fr) 5.5rem 5rem;gap:.35rem .5rem;padding:.35rem .5rem;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:#64748b;border-bottom:1px solid #e2e8f0;margin-top:.35rem}
.dash-cal-list li,.dash-task-list li{display:grid;grid-template-columns:4.5rem minmax(5.5rem,1.1fr) minmax(7rem,1.4fr) 5.5rem 5rem;gap:.35rem .5rem;align-items:center}
.dash-cal-list,.dash-task-list{list-style:none;margin:.25rem 0 0;padding:0}
.dash-cal-list li,.dash-task-list li{padding:.4rem .5rem;border-bottom:1px solid #f1f5f9}
.dash-cal-list li:last-child,.dash-task-list li:last-child{border-bottom:0}
.dash-task-list li strong{font-weight:600}
body.hide-table-headers .dash-list-head,body.hide-table-headers thead{display:none !important}


/* Compact table-header toggle (topbar) */
.hdr-toggle-form{display:inline-flex;margin:0;align-items:center}
.hdr-toggle-btn{
  font:inherit;font-size:.72rem;font-weight:600;letter-spacing:.02em;
  padding:.2rem .45rem;border:1px solid rgba(255,255,255,.35);border-radius:6px;
  background:rgba(255,255,255,.08);color:inherit;cursor:pointer;line-height:1.2;
  opacity:.9
}
.hdr-toggle-btn:hover{opacity:1;background:rgba(255,255,255,.16)}
.hdr-toggle-btn.is-on{border-color:rgba(255,255,255,.55)}
.hdr-toggle-btn:not(.is-on){opacity:.65;text-decoration:line-through}

/* Dashboard list headers — task grid shares calendar columns */
.dash-list-head[hidden]{display:none !important}

/* ===== Searchable item pickers (typeahead) ===== */
.sp-wrap {
  position: relative;
  width: 100%;
}
.sp-wrap .sp-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sp-input {
  width: 100%;
  box-sizing: border-box;
  padding: .45rem .6rem;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
.sp-input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent, #1e4d6b) 35%, transparent);
  border-color: var(--accent, #1e4d6b);
}
.sp-input[aria-invalid="true"] {
  border-color: var(--danger, #b91c1c);
}
.sp-list {
  position: absolute;
  z-index: 80;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  max-height: 16rem;
  overflow: auto;
  margin: 0;
  padding: .25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
}
.sp-list[hidden] { display: none !important; }
.sp-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .45rem .7rem;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.sp-option:hover,
.sp-option.is-active {
  background: #eef5fa;
}
.sp-option-label {
  display: block;
  font-weight: 600;
  line-height: 1.25;
}
.sp-option-sub {
  display: block;
  font-size: .78rem;
  color: var(--muted, #64748b);
  margin-top: .1rem;
  line-height: 1.2;
}
.sp-empty {
  padding: .55rem .7rem;
  color: var(--muted, #64748b);
  font-size: .85rem;
}
.sp-clear {
  position: absolute;
  right: .4rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted, #64748b);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: .2rem .35rem;
  border-radius: 4px;
}
.sp-clear:hover { background: #f1f5f9; color: #0f172a; }
.sp-wrap.has-value .sp-input { padding-right: 1.8rem; }
.modal .sp-list { z-index: 120; }


/* Kitchen event — Event Info chrome + Food menu tab panels */
.kitchen-event-info-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  margin: 0 0 .75rem;
}
.menu-tabbed {
  margin-top: .35rem;
}
.menu-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .75rem;
  padding-bottom: 0;
}
.menu-tab-bar > button,
.menu-tab-bar > a {
  background: none;
  border: none;
  padding: .55rem .9rem;
  font: inherit;
  font-size: .9rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  border-radius: 6px 6px 0 0;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}
.menu-tab-bar > button:hover,
.menu-tab-bar > a:hover {
  color: var(--text);
  background: #f8fafc;
  text-decoration: none;
}
.menu-tab-bar > button.active,
.menu-tab-bar > a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.menu-tab-bar-links {
  /* quantify page: links instead of JS buttons */
  margin-top: .65rem;
}
.kitchen-menu-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  align-items: center;
  margin-bottom: .5rem;
}
.kitchen-menu-course {
  margin: .65rem 0 .35rem;
  font-size: .88rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.kitchen-menu-block {
  border: none;
  padding: 0;
  box-shadow: none;
  background: transparent;
}
.menu-tabbed .kitchen-menu-block {
  /* panels sit inside tabbed card already */
}
.kitchen-menu-index-card {
  border: 1px solid var(--border);
  padding: .75rem 1rem;
  margin-bottom: .65rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.quantify-top .menu-tab-bar {
  margin-top: .55rem;
  margin-bottom: .35rem;
}

.kitchen-menu-open-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.kitchen-menu-open-link:hover { text-decoration: underline; }
.kitchen-menu-item-link {
  color: inherit;
  text-decoration: none;
}
.kitchen-menu-item-link:hover strong { color: var(--accent); text-decoration: underline; }
.kitchen-menu-index-card {
  cursor: default;
}
.kitchen-menu-index-card .kitchen-menu-items-table { margin-bottom: .35rem; }

/* Check-all masters for multi-select lists / table columns */
input.check-all,
th input.check-all {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
  vertical-align: middle;
}
.check-all-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .55rem;
  font-size: .9rem;
  font-weight: 600;
}
.check-all-bar label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}
.status-check-bar > .check-all-bar.status-check {
  margin: 0;
  font-weight: 600;
}

/* —— Business unit branding hub —— */
.bu-brand-toolbar { align-items: flex-start; }
.bu-brand-banner {
  background: linear-gradient(90deg, #fff8e6, #fff);
  border: 1px solid #f0d78c;
  border-left: 4px solid #c0392b;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin: 0 0 1rem;
  font-size: .95rem;
}
.bu-brand-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 960px) {
  .bu-brand-layout { grid-template-columns: 1fr; }
}
.bu-brand-rail {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  position: sticky;
  top: .75rem;
}
.bu-unit-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.bu-unit-card:hover {
  border-color: var(--bu-accent, var(--accent));
  transform: translateY(-1px);
}
.bu-unit-card.is-selected {
  border-color: var(--bu-accent, var(--accent));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--bu-accent, var(--accent)) 35%, transparent);
}
.bu-unit-card-stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--bu-doc, #1a2332), var(--bu-accent, #c0392b));
}
.bu-unit-card-body {
  display: flex;
  gap: .65rem;
  padding: .7rem .8rem .8rem;
  align-items: flex-start;
}
.bu-unit-mark,
.bu-preview-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bu-doc, #1a2332);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  overflow: hidden;
}
.bu-unit-mark img,
.bu-preview-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.bu-preview-mark.lg {
  width: 56px;
  height: 56px;
  font-size: 1.15rem;
  border-radius: 12px;
}
.bu-unit-name { font-weight: 700; line-height: 1.2; }
.bu-unit-family { font-size: .82rem; margin-top: .1rem; }
.bu-unit-stats { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.bu-chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 650;
  padding: .12rem .4rem;
  border-radius: 999px;
  background: #eef2f6;
  color: #334;
  border: 1px solid var(--border);
}
.bu-chip-default { background: #e8f6ee; border-color: #b7e0c5; color: #1b5e36; }
.bu-kind {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #445;
}
.bu-ext {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .1rem .35rem;
  border-radius: 4px;
  background: #1a2332;
  color: #fff;
  letter-spacing: .03em;
}
.bu-brand-detail { margin-bottom: 0; padding: 0; overflow: hidden; }
.bu-detail-head {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bu-doc) 6%, #fff), #fff);
}
.bu-preview-strip {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.15rem .65rem;
  flex-wrap: wrap;
}
.bu-preview-family {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: var(--bu-accent, #c0392b);
}
.bu-preview-unit { font-size: 1.25rem; font-weight: 800; color: var(--bu-doc, #1a2332); line-height: 1.15; }
.bu-preview-tagline { font-size: .88rem; color: #556; margin-top: .15rem; }
.bu-preview-swatches {
  margin-left: auto;
  display: flex;
  gap: .35rem;
}
.bu-preview-swatches span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.bu-tabs {
  display: flex;
  gap: .15rem;
  padding: 0 .75rem;
  border-top: 1px solid transparent;
}
.bu-tabs a {
  text-decoration: none;
  color: #445;
  font-weight: 650;
  padding: .65rem .9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.bu-tabs a:hover { color: var(--bu-doc, var(--accent)); }
.bu-tabs a.active {
  color: var(--bu-doc, var(--accent));
  border-bottom-color: var(--bu-accent, var(--accent));
}
.bu-letterhead-form,
.bu-forms-intro,
.bu-preview-panel {
  padding: 1rem 1.15rem 1.15rem;
}
.bu-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1rem;
}
@media (max-width: 720px) {
  .bu-form-grid { grid-template-columns: 1fr; }
}
.bu-form-grid label {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 650;
  color: #334;
}
.bu-form-grid label.span-2 { grid-column: 1 / -1; }
.bu-form-grid input[type="text"],
.bu-form-grid input:not([type]),
.bu-form-grid input[type="time"],
.bu-letterhead-form input[name] {
  font-weight: 500;
}
.bu-color-row {
  display: flex;
  gap: .4rem;
  align-items: center;
}
.bu-color-row input[type="color"] {
  width: 2.4rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.bu-flags {
  margin: 1rem 0 0;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.1rem;
}
.bu-flags legend {
  font-weight: 700;
  padding: 0 .35rem;
}
.bu-flags label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}
.bu-actions {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.bu-forms-table tr.is-inactive { opacity: .55; }
.bu-forms-table tr.is-default-row { background: #f3faf6; }
.bu-default-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.bu-default-list li {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .65rem;
  align-items: baseline;
  padding: .55rem .7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfc;
}

/* Form pack public/admin page */
.bu-pack-hero {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bu-doc, #1a2332), color-mix(in srgb, var(--bu-accent, #c0392b) 70%, var(--bu-doc, #1a2332)));
  padding: 1.15rem 1.25rem 1rem;
  color: #fff;
  box-shadow: var(--shadow);
}
.bu-pack-hero-inner {
  display: flex;
  gap: .9rem;
  align-items: center;
  flex-wrap: wrap;
}
.bu-pack-hero .bu-preview-mark {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
}
.bu-pack-hero .bu-preview-mark img { background: #fff; }
.bu-pack-never-mix {
  margin: .85rem 0 0;
  font-size: .9rem;
  font-weight: 650;
  background: rgba(0,0,0,.18);
  display: inline-block;
  padding: .35rem .65rem;
  border-radius: 6px;
}
.bu-pack-section { margin-top: .85rem; }
.bu-pack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.bu-pack-list li {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.bu-pack-list li.is-default {
  border-color: #b7e0c5;
  background: #f3faf6;
}
.bu-pack-actions {
  display: flex;
  gap: .35rem;
  align-items: center;
  flex-wrap: wrap;
}

.topbar .brand a { display: inline-flex; align-items: center; text-decoration: none; }
.topbar .brand .brand-name { font-size: .95rem; letter-spacing: .01em; }
.topbar .brand .brand-text-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--brand-mark, #1a2332);
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .02em;
  line-height: 1;
}

/* Ops weekly review + BEO station/team delegation */
.ops-blockers-card { border-color: #fecaca; background: #fff7f7; }
.ops-blockers-list { margin: 0; padding-left: 1.1rem; }
.ops-blockers-list li { margin: .4rem 0; font-weight: 600; }
.row-blocker { background: #fee2e2; }
.ops-readiness-table { font-size: .8rem; }
.ops-readiness-table th { font-size: .72rem; white-space: nowrap; }
.ops-readiness-chips .ops-chip { font-size: .68rem; padding: .08rem .32rem; }
.ops-clearance-cell { white-space: nowrap; }
.ops-clearance-check { font-weight: 600; margin-right: .35rem; }

.badge-unassigned, .beo-unassigned-tag {
  display: inline-block; background: #b91c1c; color: #fff;
  font-weight: 800; letter-spacing: .02em; padding: .12rem .45rem;
  border-radius: 4px; font-size: .72rem; text-transform: uppercase;
}
.beo-deleg-tag {
  display: inline-block; background: #0f766e; color: #fff;
  font-weight: 650; padding: .12rem .45rem; border-radius: 4px; font-size: .72rem;
}
.row-warn { background: #fff7ed; }
.ops-day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.ops-day { border: 1px solid #e2e8f0; border-radius: 8px; padding: .5rem .6rem; min-height: 4rem; }
.ops-day.has-events { border-color: #94a3b8; background: #f8fafc; }
.ops-day h3 { margin: 0 0 .35rem; font-size: .85rem; }
.ops-event-chip { margin-bottom: .55rem; padding-bottom: .45rem; border-bottom: 1px dashed #e2e8f0; }
.ops-event-chip:last-child { border-bottom: 0; }
.btn.tiny { font-size: .72rem; padding: .15rem .4rem; }
.btn-row.tight { gap: .25rem; flex-wrap: wrap; }
.ok-line { color: #166534; font-weight: 600; }
.gap-list { margin: 0; padding-left: 1.1rem; }
.gap-list li { margin: .35rem 0; }
.deleg-ok { color: #0f766e; font-weight: 600; }


/* Sales events board — denser at ~1280 walkthrough width */
.sales-events-board.table-scroll {
  max-height: calc(100vh - 200px);
}
.sales-events-table {
  font-size: .8rem;
  width: 100%;
  border-collapse: collapse;
}
.sales-events-table th,
.sales-events-table td {
  padding: .28rem .4rem;
  vertical-align: top;
}
.sales-events-table th {
  font-size: .72rem;
  letter-spacing: .01em;
}
.sales-events-table .sales-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sales-events-table .sales-guests {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sales-events-table .row-actions .btn {
  padding: .15rem .4rem;
  font-size: .72rem;
}
.sales-events-table .row-actions .sales-cr-btn {
  opacity: .85;
}
@media (max-width: 1280px) {
  .sales-events-table .muted { font-size: .68rem; }
  .sales-events-table td:nth-child(4) { max-width: 5.5rem; overflow: hidden; text-overflow: ellipsis; }
}


/* —— Persistent color key (day ROYGBIV + status) — compact —— */
.color-key-panel {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: none;
  padding: .2rem .45rem;
  margin: 0 0 .4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .85rem;
  align-items: center;
}
.color-key-head { display: none; } /* legacy; help text now on panel title */
.color-key-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .15rem .22rem;
  align-items: center;
  margin: 0;
}
.color-key-label {
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  min-width: 2.4rem;
}
.color-key-chip {
  display: inline-flex;
  align-items: center;
  gap: .18rem;
  font-size: .65rem;
  font-weight: 600;
  padding: .02rem .22rem .02rem .12rem;
  border-radius: 3px;
  background: transparent;
  border: none;
}
.color-key-chip--day {
  padding-left: 0;
}
.color-key-rail {
  width: 3px;
  height: .85rem;
  border-radius: 1px;
  flex: 0 0 auto;
}
.color-key-swatch {
  width: .65rem;
  height: .65rem;
  border-radius: 2px;
  border: 1px solid;
  flex: 0 0 auto;
}
.color-key-text { line-height: 1; font-size: .65rem; }
.color-key-chip .badge { font-size: .58rem; padding: .02rem .28rem; line-height: 1.25; }

/* —— Folder-tab unit colors (Print brand palette: NA / Shelly / Catering / Delivery) —— */
.folder-tab {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  vertical-align: middle;
}
.folder-tab-ear {
  flex: 0 0 auto;
  width: .72rem;
  height: 1.05rem;
  border-radius: 3px 3px 1px 1px;
  background: var(--ft, #64748b);
  box-shadow:
    inset 0 -2px 0 color-mix(in srgb, var(--ft, #64748b) 55%, #000),
    0 0 0 1px color-mix(in srgb, var(--ft, #64748b) 35%, #000);
}
.folder-tab-label {
  font-size: .82rem;
  font-weight: 650;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.color-key-chip.folder-tab-key-chip .folder-tab-ear {
  width: .5rem;
  height: .7rem;
}
td.unit-cell { max-width: 9.5rem; }


/* Vertical day labels on left color strips (event list rows) */
tr[class*="row-dow-"] > td:first-child {
  position: relative;
  padding-left: 1.45rem !important;
}
tr[class*="row-dow-"] > td:first-child::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  pointer-events: none;
  border-radius: 2px 0 0 2px;
}
tr.row-dow-sun > td:first-child::before { content: "Sun"; background: #dc2626; }
tr.row-dow-mon > td:first-child::before { content: "Mon"; background: #ea580c; }
tr.row-dow-tue > td:first-child::before { content: "Tue"; background: #ca8a04; }
tr.row-dow-wed > td:first-child::before { content: "Wed"; background: #16a34a; }
tr.row-dow-thu > td:first-child::before { content: "Thu"; background: #2563eb; }
tr.row-dow-fri > td:first-child::before { content: "Fri"; background: #4f46e5; }
tr.row-dow-sat > td:first-child::before { content: "Sat"; background: #7c3aed; }

/* Keep legacy swatch legend usable if referenced elsewhere */
.legend-roygbiv { display:flex; flex-wrap:wrap; gap:.5rem; margin:.5rem 0 1rem; align-items:center; }


/* Confirmed / view-only event surfaces */
.readonly-banner {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: .55rem .75rem;
  border-radius: 6px;
  margin: 0 0 .75rem;
  font-size: .85rem;
}
.readonly-surface input,
.readonly-surface select,
.readonly-surface textarea {
  background: #f8fafc !important;
  color: #475569 !important;
  border-style: dashed !important;
  cursor: not-allowed;
  opacity: 1;
}
.specs-readonly input,
.specs-readonly select,
.specs-readonly textarea {
  background: #f8fafc !important;
  border-style: dashed !important;
  cursor: not-allowed;
}


/* Kitchen quantify B′ worksheet */
.quantify-prep-grid { width: 100%; border-collapse: collapse; font-size: .86rem; }
.quantify-prep-grid th { text-align: left; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: .35rem .3rem; border-bottom: 1px solid var(--border); }
.quantify-prep-grid td { padding: .28rem .25rem; vertical-align: top; border-bottom: 1px solid var(--border); }
.quantify-prep-row.is-unassigned { background: #fef2f2; }
.quantify-cell-input { width: 100%; font-size: .84rem; padding: .25rem .35rem; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.quantify-cell-input.gap-input-warn { border-color: #dc2626; background: #fff7f7; }
.quantify-segment { margin-top: .2rem; }
.quantify-seg-chip { display: inline-block; font-size: .7rem; color: #9a3412; background: #ffedd5; border-radius: 3px; padding: 0 .3rem; margin-right: .25rem; }
.quantify-prep-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18rem; }
.quantify-ws-head { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: .5rem; }
.quantify-ws-title { margin: 0; font-size: 1.15rem; }
.quantify-ws-head-main { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.quantify-ws-nav { display: flex; flex-wrap: wrap; gap: .35rem; }
.quantify-ws-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin: 0 0 .65rem; padding: .5rem .65rem; background: #f8fafc; border: 1px solid var(--border); border-radius: 6px; }
.quantify-ws-meta-field { display: flex; flex-direction: column; gap: .15rem; min-width: 8rem; }
.quantify-ws-meta-grow { flex: 1; min-width: 12rem; }
.quantify-ws-meta-field input { font-size: .85rem; padding: .3rem .4rem; border: 1px solid var(--border); border-radius: 4px; }
.kitchen-commitment-footer { margin-top: 1rem; }
.kitchen-commitment-table textarea.quantify-cell-input { min-height: 2.4rem; }
.beo-unassigned-tag { display: inline-block; font-size: .68rem; font-weight: 700; color: #fff; background: #dc2626; padding: .05rem .35rem; border-radius: 3px; letter-spacing: .02em; }
.cr-changed-row { outline: 2px solid #fb923c; outline-offset: -2px; }

/* ---- Portal nav quick-link dropdowns (Core 6) ---- */
.nav-portal-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.nav-portals > a.nav-portal-link,
.nav-portal-item > a.nav-portal-link {
  color: #b8c9d9;
  padding: .2rem .45rem;
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 550;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
}
.nav-portals > a.nav-portal-link:hover,
.nav-portal-item > a.nav-portal-link:hover,
.nav-portal-item.is-open > a.nav-portal-link {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.nav-portals > a.nav-portal-link.active,
.nav-portal-item > a.nav-portal-link.active {
  background: var(--accent);
  color: #fff;
}
.nav-portal-chevron {
  display: none; /* desktop hover uses the whole item; chevron only for touch */
  width: 1.1rem;
  height: 1.1rem;
  margin-left: -0.15rem;
  border: none;
  background: transparent;
  color: #b8c9d9;
  cursor: pointer;
  padding: 0;
  border-radius: 3px;
}
.nav-portal-chevron::after {
  content: "▾";
  font-size: .65rem;
  opacity: .85;
}
.nav-portal-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-width: min(320px, 92vw);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: .45rem 0;
  background: #fff;
  color: #1a2332;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15, 39, 64, .22), 0 2px 8px rgba(15, 39, 64, .08);
  border: 1px solid rgba(15, 39, 64, .08);
  z-index: 400;
}
.nav-portal-section + .nav-portal-section {
  border-top: 1px solid #e8eef4;
  margin-top: .25rem;
  padding-top: .25rem;
}
.nav-portal-heading {
  font-size: .65rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7c8f;
  padding: .35rem .85rem .2rem;
}
.nav-portal-item-link {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .45rem .85rem;
  color: #1a2332 !important;
  text-decoration: none !important;
  font-size: .82rem;
  line-height: 1.25;
}
.nav-portal-item-link:hover,
.nav-portal-item-link:focus {
  background: #f0f5f9;
  outline: none;
}
.nav-portal-kind {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #6b7c8f;
}
.nav-portal-label {
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-portal-empty {
  margin: 0;
  padding: .55rem .85rem .7rem;
  font-size: .78rem;
}
.nav-portal-item-link.kind-report .nav-portal-kind { color: #2563eb; }
.nav-portal-item-link.kind-event .nav-portal-kind { color: #059669; }
.nav-portal-item-link.kind-workflow .nav-portal-kind { color: #d97706; }
.nav-portal-item-link.kind-action .nav-portal-kind { color: #059669; }

/* Desktop: true hover + keyboard focus-within */
@media (hover: hover) and (pointer: fine) {
  .nav-portal-item.has-menu:hover > .nav-portal-menu,
  .nav-portal-item.has-menu:focus-within > .nav-portal-menu,
  .nav-portal-item.has-menu.is-open > .nav-portal-menu {
    display: block;
  }
}
/* Touch / coarse: tap toggles .is-open; no hover-only trap */
@media (hover: none), (pointer: coarse) {
  .nav-portal-item.has-menu .nav-portal-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-portal-item.has-menu.is-open > .nav-portal-menu {
    display: block;
  }
}
/* Narrow topbar: keep menus from overflowing viewport awkwardly */
@media (max-width: 720px) {
  .nav-portal-menu {
    left: auto;
    right: 0;
  }
}

.dash-recent-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.dash-recent-at {
  font-size: .68rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.dash-fav-chip.kind-event { border-left: 3px solid #059669; }
.dash-fav-chip.kind-workflow { border-left: 3px solid #d97706; }
.dash-fav-chip.kind-screen { border-left: 3px solid #64748b; }
.dash-fav-chip.kind-report { border-left: 3px solid #2563eb; }

/* Sales catalog pick — worksheet results (cZmdkjtq Rob layout) */
.modal-backdrop.wide .modal:has(#add-from-panel-catalog:not([style*="display: none"]):not([style*="display:none"])) { /* fe-pkg-picker-scroll-2026-10-01: template ships style="display:none" (no space) */
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}
.mip-catalog-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.mip-results-scroll {
  padding: .4rem .6rem;
  max-height: min(40vh, 18rem);
  overflow: auto;
  margin-bottom: .65rem;
  flex: 1 1 auto;
  min-height: 8rem;
}
.mip-tray-dock {
  padding: .65rem .75rem;
  margin-bottom: .35rem;
  border: 1px solid var(--border, #ddd);
  background: var(--surface-2, #fafaf8);
  position: relative; /* not sticky — stays in flow under results */
  z-index: 1;
  flex: 0 0 auto;
  max-height: min(32vh, 16rem);
  overflow: auto;
  box-shadow: 0 -4px 12px rgba(0,0,0,.04);
}
.mip-results-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .85rem;
}
.mip-results-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f4f1;
  text-align: left;
  font-weight: 600;
  padding: .35rem .4rem;
  border-bottom: 1px solid var(--border, #ddd);
  color: #333;
}
.mip-results-table tbody tr {
  cursor: pointer;
  border-bottom: 1px solid #eee;
}
.mip-results-table tbody tr:hover { background: #fafaf8; }
.mip-results-table tbody tr.mip-kb-active {
  outline: 2px solid var(--accent, #0b5cab);
  outline-offset: -2px;
  background: #eef6ff;
}
.mip-results-table:focus { outline: none; }
.mip-results-table:focus-visible { box-shadow: inset 0 0 0 2px rgba(11,92,171,.35); }
.mip-results-table td {
  padding: .4rem .4rem;
  vertical-align: top;
  text-align: left;
}
.mip-results-table .mip-col-check {
  width: 1.75rem;
  max-width: 1.75rem;
  padding-left: .15rem;
  padding-right: .15rem;
  text-align: center;
  vertical-align: middle;
}
.mip-results-table .mip-col-check input[type="checkbox"],
.mip-results-table .mip-col-check input.mip-item {
  width: auto !important;
  min-width: 1rem;
  max-width: 1.15rem;
  margin: 0;
  padding: 0;
  flex: none;
  accent-color: var(--accent, #0b5cab);
}
.mip-results-table .mip-col-name { width: 32%; font-weight: 500; }
.mip-results-table .mip-col-unit {
  width: 12%;
  white-space: nowrap;
  font-weight: 600;
  color: #1a1a1a;
}
.mip-results-table .mip-col-desc { width: 36%; color: #333; }
.mip-results-table .mip-col-meta { width: 10%; font-size: .78rem; }
.mip-results-table .mip-row-meta {
  font-size: .75rem;
  margin-top: .1rem;
  font-weight: 400;
}

.mip-results-table .mip-col-pop {
  width: 7.5rem;
  min-width: 6.5rem;
  vertical-align: middle;
}
.mip-pop-gauge {
  display: inline-flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 4.5rem;
  max-width: 7rem;
  vertical-align: middle;
}
.mip-pop-chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .12rem .4rem;
  border-radius: 999px;
  background: #e8f4ff;
  color: #0b5cab;
  white-space: nowrap;
  width: fit-content;
}
.mip-pop-empty .mip-pop-chip {
  background: #f0f0ee;
  color: #888;
  font-weight: 500;
}
.mip-pop-bar {
  display: block;
  height: .28rem;
  border-radius: 999px;
  background: #e6eef6;
  overflow: hidden;
}
.mip-pop-empty .mip-pop-bar { background: #ecece8; }
.mip-pop-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7eb8e8, #0b5cab);
  min-width: 0;
}


/* Sales catalog browse + tray (phone booking) */
.sc-filters-sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface, #fff);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.sc-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.sc-results-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f4f1;
  text-align: left;
  padding: .35rem .4rem;
  border-bottom: 1px solid var(--border, #ddd);
}
.sc-results-table tbody tr { cursor: pointer; border-bottom: 1px solid #eee; }
.sc-results-table tbody tr:hover { background: #fafaf8; }
.sc-results-table td { padding: .4rem .4rem; vertical-align: top; }
.sc-results-table .sc-col-check {
  width: 1.75rem; max-width: 1.75rem; text-align: center; vertical-align: middle;
}
.sc-results-table .sc-col-check input[type="checkbox"] {
  width: auto !important; min-width: 1rem; max-width: 1.15rem; margin: 0;
  accent-color: var(--accent, #0b5cab);
}
.sc-tray-dock { margin-top: .65rem; }
.sc-tray-item:first-child { border-top: none !important; }
@media (max-width: 640px) {
  .sc-results-table .sc-col-check { width: 1.5rem; }
  .sc-page .form-grid { grid-template-columns: 1fr 1fr; }
}

/* Sales catalog / picker — allergen exclude chips (not stretched checkboxes) */
.sc-allergen-picks.flag-picklist,
.flag-picklist.sc-allergen-picks {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
}
.sc-allergen-label.flag-pick {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .45rem;
  border: 1px solid var(--border, #ddd);
  border-radius: 999px;
  background: #fff;
  font-size: .78rem;
  cursor: pointer;
  user-select: none;
}
.sc-allergen-label.flag-pick:has(input:checked) {
  border-color: #b91c1c;
  background: #fef2f2;
  color: #7f1d1d;
}
.sc-allergen-label.flag-pick input[type="checkbox"],
.sc-allergen-label .sc-allergen,
.sc-allergen-label .mip-allergen {
  width: auto !important;
  min-width: 0.95rem;
  max-width: 1.05rem;
  margin: 0;
  padding: 0;
  flex: none;
}
.sc-allergen-exclude { margin-top: .55rem; }

/* Sales catalog — collapsible filters + item list (tray focus) */
.sc-page .sc-filters-panel,
.sc-page .sc-results-panel {
  margin-bottom: .65rem;
}
.sc-page .sc-results-panel .sc-results-body-wrap {
  border-top: none;
}
.sc-page .sc-tray-dock {
  border: 2px solid #c7d7ea;
  background: #fbfcfe;
}
.sc-page .sc-filters-panel.is-collapsed ~ .sc-results-panel.is-collapsed ~ .sc-tray-dock {
  border-color: #0b5cab;
  box-shadow: 0 1px 0 rgba(11,92,171,.08);
}

/* —— Event list: weekday section headers + page size —— */
.event-list-paging {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1.1rem;
  margin: 0 0 .65rem;
  padding: .45rem .15rem;
}
.event-list-paging-size {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.event-list-size-btns { display: inline-flex; gap: .3rem; }
.event-list-paging-nav {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-left: auto;
}
.event-list-paging-meta { font-size: .85rem; }
tr.weekday-section-header td {
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  padding: .55rem .75rem;
  border-top: 1px solid var(--border, #e2e8f0);
  border-bottom: 1px solid var(--border, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}
tr.weekday-section-header .weekday-section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
tr.weekday-section-header .weekday-section-swatch {
  width: .7rem;
  height: .7rem;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
tr.weekday-section-header.row-dow-sun td { background: #fef2f2; box-shadow: inset 4px 0 0 #dc2626; }
tr.weekday-section-header.row-dow-mon td { background: #fff7ed; box-shadow: inset 4px 0 0 #ea580c; }
tr.weekday-section-header.row-dow-tue td { background: #fefce8; box-shadow: inset 4px 0 0 #ca8a04; }
tr.weekday-section-header.row-dow-wed td { background: #f0fdf4; box-shadow: inset 4px 0 0 #16a34a; }
tr.weekday-section-header.row-dow-thu td { background: #eff6ff; box-shadow: inset 4px 0 0 #2563eb; }
tr.weekday-section-header.row-dow-fri td { background: #eef2ff; box-shadow: inset 4px 0 0 #4f46e5; }
tr.weekday-section-header.row-dow-sat td { background: #f5f3ff; box-shadow: inset 4px 0 0 #7c3aed; }

/* —— Event list: per-user Columns control —— */
.event-list-columns { margin: 0 0 .65rem; }
.event-list-cols-details > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.event-list-cols-details > summary::-webkit-details-marker { display: none; }
.event-list-cols-form {
  margin-top: .45rem;
  padding: .75rem 1rem;
  max-width: 28rem;
}
.event-list-cols-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.event-list-cols-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .2rem 0;
}
.event-list-cols-label { flex: 1; font-size: .9rem; }
.event-list-cols-move { display: inline-flex; gap: .25rem; }
.event-list-cols-row.is-fixed { opacity: .92; }


/* —— Secondary-system reminders (DoorDash/POS, CS handoff) —— */
.secondary-reminders {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: .75rem 0 1rem;
}
.sr-banner {
  border-radius: 10px;
  padding: .75rem 1rem;
  border: 1px solid #fdba74;
  background: #fff7ed;
  color: #9a3412;
}
.sr-banner-cafe-pos {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
}
.sr-kicker {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: .2rem;
}
.sr-title { display: block; font-size: .98rem; color: #7c2d12; }
.sr-body { margin: .35rem 0 0; font-size: .88rem; line-height: 1.4; color: #9a3412; }
.sr-checklist {
  border: 1px solid #93c5fd;
  background: #f0f9ff;
  padding: .85rem 1rem 1rem;
  border-radius: 10px;
}
.sr-checklist-head {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .55rem;
}
.sr-checklist .sr-kicker { color: #1d4ed8; }
.sr-checklist .sr-title { color: #0c4a6e; }
.sr-checklist-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sr-checklist-items li {
  margin: .35rem 0;
  padding: .35rem .45rem;
  border-radius: 6px;
  background: rgba(255,255,255,.7);
  border: 1px solid #e0f2fe;
}
.sr-checklist-items label {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: .88rem;
  line-height: 1.35;
  color: #0c4a6e;
}
.sr-checklist-items input[type=checkbox] {
  margin-top: .15rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}
.sr-checklist-items input[type=checkbox]:checked + span {
  text-decoration: line-through;
  opacity: .7;
}
.sr-foot { font-size: .72rem; margin: .65rem 0 0; }
@media print {
  .secondary-reminders { display: none !important; }
}


/* Kitchen CR verify-on-event (post-Apply gate) */
.cr-verify-panel {
  background: #fef2f2;
  border: 2px solid #dc2626;
  border-radius: 10px;
  padding: .85rem 1rem;
  margin: 0 0 1rem;
}
.cr-verify-head {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-bottom: .65rem;
}
.cr-verify-card {
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: .75rem .85rem;
  margin: .5rem 0;
}
.cr-verify-card.is-focus {
  box-shadow: 0 0 0 2px #dc2626;
}
.cr-verify-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .65rem;
  align-items: center;
  margin-bottom: .5rem;
}
.cr-verify-checklist {
  list-style: none;
  margin: .5rem 0;
  padding: 0;
}
.cr-verify-item {
  padding: .45rem .5rem;
  border-bottom: 1px solid #fee2e2;
}
.cr-verify-item label {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-weight: 500;
  cursor: pointer;
}
.cr-verify-live { font-size: .78rem; margin: .15rem 0 0 1.5rem; }
.cr-verify-jump { font-size: .78rem; margin-left: 1.5rem; }
.cr-verify-pill {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: .05rem .35rem;
  border-radius: 999px;
  margin-left: .35rem;
}
.cr-verify-pill.ok { background: #dcfce7; color: #166534; }
.cr-verify-pill.bad { background: #fee2e2; color: #991b1b; }
.cr-verify-item.is-match { background: #f0fdf4; }
.cr-verify-item.is-mismatch { background: #fff7ed; }
.cr-verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-top: .55rem;
}
.cr-badge-verify {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  font-size: .68rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 999px;
  margin-left: .25rem;
}
.cr-badge-verified {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: .68rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 999px;
  margin-left: .25rem;
}


/* Sales Food review — reuse Kitchen rail/sticky; slight spacing on event detail */
.sales-food-review .menu-orders { min-height: 52vh; }
.sales-food-item-form .form-grid { gap: .65rem; }

/* CXP-style prep/ingredient remap modal (Kitchen catalog) */
.cxp-remap-modal { max-width: 1100px; width: 100%; }
.cxp-remap-head { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.cxp-remap-table-wrap { max-height: 55vh; overflow: auto; border: 1px solid #e2e8f0; border-radius: 6px; }
.cxp-remap-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin: 0; }
.cxp-remap-table th { position: sticky; top: 0; background: #0f2740; color: #fff; padding: .4rem .5rem; text-align: left; font-weight: 600; z-index: 1; }
.cxp-remap-table td { padding: .35rem .5rem; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.cxp-remap-table tr.cxp-remap-group td { background: #1e3a5f; color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .02em; padding: .4rem .55rem; }
.cxp-temp { display:inline-block; min-width: 1.4rem; text-align:center; font-weight:700; background:#e2e8f0; border-radius:4px; padding:.05rem .3rem; }
.cxp-mic-qty { max-width: 5.5rem; padding: .2rem .35rem; }
.cxp-remap-actions { display:flex; gap:.5rem; flex-wrap:wrap; justify-content:flex-end; margin-top: .85rem; }


/* Quantify — sticky item name/description (top) while BOM scrolls */
.menu-orders-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 7.5rem);
  overflow: hidden;
  padding-bottom: 0;
}
.quantify-ws-sticky-top {
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 0 0 .55rem;
  margin: 0 0 .35rem;
  flex-shrink: 0;
}
.quantify-ws-sticky-desc {
  margin-top: .4rem;
  padding: .45rem .6rem;
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
}
.quantify-ws-sticky-desc-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .1rem;
}
.quantify-ws-sticky-desc-name {
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.25;
}
.quantify-ws-sticky-desc-body {
  margin-top: .25rem;
  font-size: .82rem;
  line-height: 1.35;
  color: #334155;
  max-height: 4.2em;
  overflow: auto;
}
.quantify-ws-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: .75rem;
}
.menu-item-sticky-directions {
  font-size: .92rem;
  line-height: 1.4;
}
.menu-item-sticky-directions strong {
  color: #93c5fd;
}

.menu-item-sticky-ref .menu-item-sticky-desc {
  margin-top: .3rem;
  font-size: .84rem;
  line-height: 1.35;
  color: #e2e8f0;
  max-height: 3.6em;
  overflow: auto;
}
.menu-item-sticky-ref .menu-item-sticky-name {
  font-size: 1.05rem;
}
.menu-rail-page { padding-bottom: 10.5rem; }

.kitchen-menu-items-table th.col-team,
.kitchen-menu-items-table td.col-team {
  text-align: right;
}

/* ==== Hitbox pass 2026-09-17 / 09-18 (Rob): full visible control = click target ==== */
/* Do NOT set pointer-events:none on sticky chrome — it swallows clicks on Open menu /
   menu tabs / Open Quantify when nested hit targets or extended sticky paint disagree.
   Keep sticky bars themselves tight; buttons/links use normal stacking. */
.module-sticky-chrome,
.quantify-top-sticky,
.quantify-top.is-minimized {
  pointer-events: auto;
}
.module-sticky-chrome a,
.module-sticky-chrome button,
.quantify-top a,
.quantify-top button,
.quantify-top .btn,
.quantify-ws-footer a,
.quantify-ws-footer button,
.menu-item-sticky-ref .btn {
  position: relative;
  z-index: 2;
}

/* Fixed bottom sales-ref bar: keep above worksheet chrome but don't cover controls with empty full-bleed */
.menu-item-sticky-ref {
  z-index: 35;
  pointer-events: auto;
}
.menu-item-sticky-ref .btn,
.quantify-ws-footer .btn,
.quantify-ws-nav .btn,
.quantify-top-actions .btn {
  position: relative;
  z-index: 2;
}

/* Forms wrapping a single button used to shrink to text width on some browsers */
form.inline-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
  vertical-align: middle;
}
form.inline-form .btn {
  width: auto;
}

/* Tabs / chips / status checks — whole visible control is the hit target */
.menu-tab-bar a,
.tabs a,
a.status-chip,
button.status-chip,
.label-btn,
.inv-pct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 1.75rem;
  position: relative;
}
.status-check {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.status-check input[type="checkbox"] {
  width: auto !important;
  min-width: 1rem;
  margin: 0 .35rem 0 0;
}

/* Compact sticky action buttons keep usable hit area */
.quantify-top-compact .quantify-top-actions .btn {
  min-height: 1.75rem;
  padding: .25rem .55rem;
}
.module-sticky-links .btn,
.module-sticky-reports .btn {
  min-height: 1.75rem;
}


/* ===== Event report print footer (freshness) ===== */
.event-print-footer { display: none; }
@media print {
  .event-print-footer {
    display: flex !important;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 22pt;
    align-items: center;
    justify-content: space-between;
    gap: 8pt;
    padding: 0 10pt;
    font-size: 7.5pt;
    line-height: 1.2;
    color: #333;
    border-top: 0.6pt solid #999;
    background: #fff;
    z-index: 9999;
  }
  .event-print-footer .epf-label {
    font-size: 6.5pt;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #666;
    margin-right: 3pt;
  }
  .event-print-footer .epf-name {
    flex: 1 1 auto;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
  }
  .event-print-footer .epf-ts,
  .event-print-footer .epf-serial,
  .event-print-footer .epf-client,
  .event-print-footer .epf-week {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  /* leave room so body isn't covered */
  .report, .beo-doc, .beo-sheet, .site-menu-packet {
    padding-bottom: 28pt !important;
  }
}


/* ===== UI density layer (2026-09-18) =====
 * Compact tokens are the :root defaults. Comfortable restores prior spacing.
 * Toggle: html[data-density="comfortable"|"compact"] via localStorage ad.density
 */
html[data-density="comfortable"] {
  --body-lh: 1.45;
  --container-pad-y: .75rem;
  --container-pad-x: 1rem;
  --container-pad-bottom: 1.25rem;
  --card-pad-y: 1rem;
  --card-pad-x: 1.15rem;
  --card-gap: 1rem;
  --h1-size: 1.45rem;
  --h1-margin: 0 0 1rem;
  --h2-size: 1.1rem;
  --h2-margin: 1.25rem 0 .75rem;
  --h3-margin: 1rem 0 .5rem;
  --toolbar-gap: .75rem;
  --toolbar-margin: 0 0 1rem;
  --cell-pad-y: .5rem;
  --cell-pad-x: .6rem;
  --tab-pad-y: .55rem;
  --tab-pad-x: .85rem;
  --tabs-margin: 0 0 1rem;
  --form-grid-gap: .85rem;
  --flash-pad: .65rem .9rem;
  --flash-margin: 0 0 .85rem;
  --subnav-pad-y: .25rem;
  --subnav-pad-x: .85rem;
  --filter-summary-pad: .55rem .9rem;
  --filter-body-pad: .75rem 1rem 1rem;
  --sticky-actions-pad: .25rem .75rem;
  --sticky-reports-pad: .25rem .75rem;
  --sticky-chrome-margin: 0 0 .75rem;
  --cal-day-min-h: 0;
  --cal-day-pad: .35rem;
  --cal-event-pad: .12rem .3rem;
  --cal-event-fs: .68rem;
  --actions-h: 44px;
  --reports-h: 34px;
}
html[data-density="comfortable"] .cal-day {
  aspect-ratio: 1 / 1;
  min-height: 0;
}
html[data-density="comfortable"] .cal-day .num { margin-bottom: .25rem; font-size: inherit; }
html[data-density="comfortable"] .cal-day-events { gap: .1rem; }
html[data-density="comfortable"] .cal-head { padding: .4rem; font-size: .75rem; }

/* Density toggle control (topbar) */
.density-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 650; letter-spacing: .02em;
  padding: .18rem .4rem; min-height: 1.55rem; line-height: 1.15;
  color: #e8eef4; border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
  background: rgba(255,255,255,.06); cursor: pointer; user-select: none;
  white-space: nowrap;
}
.density-toggle-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.density-toggle-btn[aria-pressed="true"] { border-color: rgba(255,255,255,.55); }

/* Keep button hit targets (hitbox pass) — never shrink below 36/28 */
.btn { min-height: 2.25rem; }
.btn-sm { min-height: 1.75rem; }

/* High-traffic denser helpers (templates can opt in) */
.density-tight-card { padding: .55rem .7rem !important; margin-bottom: .55rem !important; }
.item-click-row { padding: .4rem .2rem; }
.svc-summary { margin: .35rem 0 .55rem; gap: .45rem; }
.svc-chrome .tabs button { padding: .3rem .55rem; font-size: .8rem; }
.quantify-top:not(.quantify-top-compact) { padding: .55rem .75rem; margin-bottom: .55rem; }
.lookbook-line { padding: .35rem .2rem; gap: .55rem; }
.empty { padding: .55rem 0; }
.footer-note { margin-top: 1.1rem; padding-top: .65rem; }
.stat { padding: .5rem .6rem; }
.stat-grid { gap: .5rem; }
.seg-card { padding: .5rem .6rem; }
.total-box { padding: .7rem .85rem; }

/* Avoid double-sticky chrome eating viewport: collapse reports into actions row on short screens */
@media (max-height: 700px) {
  .module-sticky-reports {
    position: static;
    margin-bottom: .3rem;
  }
  .quantify-top-sticky {
    top: calc(var(--topbar-h, 40px) + var(--subnav-h, 28px));
  }
}

/* ===== Exec seats FE paint (Shelly/Noam/CEO) — append-only; avoid density merge fights ===== */
.ops-cr-urgency-hot {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fecaca !important;
}
.ops-cr-urgency-warm {
  background: #ffedd5 !important;
  color: #9a3412 !important;
  border-color: #fed7aa !important;
}
.ops-cr-urgency-fresh {
  background: #fff7ed !important;
  color: #9a3412 !important;
  border-color: #fed7aa !important;
}
.ops-cr-urgency-none { /* default badge tone */ }

.menu-ack-never-requested {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fecaca !important;
  font-weight: 700;
}

.exec-fires-strip {
  padding: .75rem 1rem;
  margin: 0 0 1rem;
  border-left: 4px solid #b91c1c;
  background: #fffaf9;
}
.exec-fires-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: .55rem;
}
.exec-fires-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .65rem;
}
.exec-fire-chip {
  display: inline-flex;
  flex-direction: column;
  min-width: 7.5rem;
  max-width: 12rem;
  padding: .35rem .55rem;
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
}
.exec-fire-chip.exec-fire-hot {
  border-color: #f87171;
  background: #fef2f2;
}
.exec-fire-chip.exec-fire-clear {
  border-color: #e2e8f0;
  background: #f8fafc;
  opacity: .85;
}
.exec-fire-chip.exec-fire-ready {
  border-color: #86efac;
  background: #f0fdf4;
}
.exec-fire-chip.exec-fire-ready.has-ready {
  border-color: #16a34a;
}
.exec-fire-count {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
}
.exec-fire-label {
  font-size: .72rem;
  color: #64748b;
  line-height: 1.25;
}
.exec-eeb-block {
  border-top: 1px solid #fecaca;
  padding-top: .55rem;
}
.exec-eeb-head {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: baseline;
}
.exec-eeb-list {
  margin: .35rem 0 0;
  padding-left: 1.1rem;
  font-size: .85rem;
}

.emergency-buy-panel { padding: .85rem 1rem; margin: .75rem 0; border-left: 4px solid #7c3aed; }
.emergency-buy-chip.eeb-open {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
  font-weight: 700;
}
.emergency-buy-chip.eeb-clear {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.eeb-rows { list-style: none; margin: .5rem 0 0; padding: 0; }
.eeb-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  align-items: center;
  padding: .45rem 0;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.eeb-row-actions { display: inline-flex; gap: .35rem; align-items: center; }
.eeb-status { font-size: .8rem; max-width: 9rem; }
.eeb-receipt-label { cursor: pointer; margin: 0; }


/* exec-seats home upcoming ops column 2026-09-19 */
.dash-cal-head,
.dash-cal-list li.dash-cal-row {
  grid-template-columns: 4.5rem minmax(5rem,1fr) minmax(6.5rem,1.3fr) 5rem 4.75rem minmax(7.5rem,1.6fr);
}
.dash-cal-ops {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .2rem;
  align-items: center;
  max-width: 18rem;
}
.dash-cal-ops .ops-chip,
.dash-cal-ops .ops-cr-badge,
.dash-cal-ops .emergency-buy-chip {
  font-size: .68rem;
  padding: .08rem .32rem;
  line-height: 1.2;
}


/* Kitchen quantify fast-pass rail (5-min / 50–60 items) */
.menu-orders-item-wrap {
  display: grid;
  grid-template-columns: 1fr 4.2rem;
  gap: .25rem;
  align-items: center;
  padding: .15rem .35rem .15rem .15rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.menu-orders-item-wrap.active {
  background: #eff6ff;
  border-left: 3px solid var(--accent, #2563eb);
}
.menu-orders-item-wrap .menu-orders-item {
  border: none;
  padding: .35rem .4rem;
  margin: 0;
  background: transparent;
}
.menu-orders-item-wrap .menu-orders-item .menu-orders-item-name {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.25;
}
.menu-orders-qty-fast { margin: 0; }
.menu-orders-qty-fast .rail-qty-input {
  width: 100%;
  max-width: 4.2rem;
  font-size: .8rem;
  padding: .2rem .3rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 4px;
}
.menu-orders-qty-fast .rail-qty-input:focus {
  outline: 2px solid var(--accent, #2563eb);
  border-color: transparent;
}
.ratio-lifecycle-bar .badge { font-size: .72rem; }

/* Catalog attribution footer on build sheets (2026-09-22) */
.build-sheet-catalog-footer {
  margin-top: .55rem;
  padding-top: .35rem;
  border-top: 1px solid #c8c8c8;
  font-size: .8rem;
}

/* In-page Add staff modal (Trello XOrInRzD) — templates/_add_staff_modal.html */
.add-staff-modal .as-msg { min-height: 1.1em; margin: .35rem 0 0; font-size: .85rem; }
.add-staff-modal .as-msg.as-ok { color: var(--ok, #15803d); }
.add-staff-modal .as-msg.as-err { color: var(--danger, #b91c1c); }
.add-staff-modal .as-block + .as-block { border-top: 1px solid var(--border); padding-top: .5rem; margin-top: .5rem; }
.add-staff-modal .modal { max-width: 560px; }
.add-staff-modal .btn:disabled { opacity: .5; cursor: not-allowed; }

/* Cleared-to-schedule UI (Trello TWFcg0mK) — hire checklist, Not cleared chips, pickers */
.clr-chip { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: .7rem; font-weight: 650;
  background: #e5e7eb; color: #475569; border: 1px solid #cbd5e1; vertical-align: middle; white-space: nowrap; }
.clr-chip-ok { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
a.clr-chip { text-decoration: none; }
a.clr-chip:hover { background: #d1d5db; }
tr.clr-row-off td { color: #64748b; }
option.opt-not-cleared, option:disabled.opt-not-cleared { color: #9ca3af; }
.clr-note { font-size: .8rem; color: var(--muted); margin: .25rem 0 0; }
.hc-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.hc-banner { padding: .5rem .7rem; border-radius: 6px; font-size: .9rem; margin-bottom: .4rem; }
.hc-banner-grey { background: #f1f5f9; border: 1px solid #cbd5e1; }
.hc-banner-ok { background: #ecfdf5; border: 1px solid #a7f3d0; }
.hc-left { margin: .15rem 0 0; padding-left: 1.2rem; }
.hc-table { width: 100%; font-size: .88rem; }
.hc-table td, .hc-table th { padding: .25rem .4rem; vertical-align: top; }
.hc-table tr.hc-sub td { background: #f8fafc; padding-top: .4rem; }
.hc-table tr.hc-done td { color: #334155; }
.hc-table tr.hc-done td:first-child { color: var(--ok, #15803d); }
.hc-table tr.hc-unclr td { background: #fef2f2; }
.hc-date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-docs { display: flex; flex-wrap: wrap; gap: .15rem .9rem; }
.hc-docs label { font-weight: 400; font-size: .85rem; margin: 0; }
.hc-ver { width: 10rem; font-size: .8rem; padding: .1rem .3rem; }
.hc-clear { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.hc-clear .btn:disabled { opacity: .55; cursor: not-allowed; }
.hc-msg { min-height: 1.1em; margin: .2rem 0; font-size: .85rem; }
.hc-msg.hc-ok { color: var(--ok, #15803d); }
.hc-msg.hc-err, .as-msg.as-err a { color: var(--danger, #b91c1c); }
.hc-hist { margin-top: .5rem; }
.hc-inline { position: relative; display: inline-block; }
.hc-inline summary { list-style: none; }
.hc-inline summary::-webkit-details-marker { display: none; }
.hc-inline .hc-pop { position: absolute; right: 0; top: 110%; z-index: 20; background: var(--surface, #fff); border: 1px solid var(--border);
  border-radius: 6px; padding: .4rem; display: flex; gap: .3rem; box-shadow: var(--shadow); }
.add-staff-modal .as-notclr { background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 6px; padding: .5rem .7rem; font-size: .9rem; }
.add-staff-modal .as-notclr ul { margin: .25rem 0 0; padding-left: 1.1rem; }

/* 2026-09-28 popup fix (Rob): popups keep a 2rem margin on every side, scroll inside,
   action buttons pinned to the bottom. JS in static/app.js adds .pop-pin to a trailing button row. */
.modal-backdrop { padding: 2rem; }
.modal-backdrop.open { display: flex !important; }           /* sales_catalog commit modal had inline display:none */
.modal { max-height: calc(100vh - 4rem); overflow-y: auto; overscroll-behavior: contain; }
.modal > .form-actions:last-child,
.modal > form > .form-actions:last-child,
.modal .pop-pin {
  position: sticky; bottom: -1.25rem; margin: 1rem -1.25rem -1.25rem; padding: .75rem 1.25rem;
  background: #fff; border-top: 1px solid #e2e8f0; z-index: 2;
}
/* Proposal-menu popups (sales_event_detail): outer .modal is the backdrop, .modal-card is the box */
.modal:has(> .modal-card) {
  position: fixed; inset: 0; z-index: 50; max-width: none; width: auto; max-height: none;
  border-radius: 0; padding: 2rem; background: rgba(15,39,64,.45); overflow: hidden;
  align-items: center; justify-content: center;
}
.modal > .modal-card {
  background: #fff; border-radius: 8px; width: 100%; padding: 1.25rem;
  max-height: calc(100vh - 4rem) !important; overflow-y: auto !important; overscroll-behavior: contain;
}
.modal > .modal-card .pop-pin { margin: 1rem -1.25rem -1.25rem !important; padding: .75rem 1.25rem; }
/* Native <dialog> popups: same 2rem margin; change-popup header (Close) stays at the top */
dialog[open] { max-height: calc(100vh - 4rem); }
.ichg-dialog > div:first-child { position: sticky; top: -1rem; background: #fff; z-index: 2; padding: .35rem 0; }
/* Popup header toggle: open in its own window */
.pop-out-toggle { display: flex !important; justify-content: flex-end; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 500; color: var(--muted, #64748b); margin: -.5rem 0 .35rem; cursor: pointer; }
.pop-out-toggle input { width: auto !important; margin: 0; }
.pop-out-toggle.is-disabled { opacity: .55; cursor: not-allowed; }
body.popout-window { margin: 0; padding: 1rem 1.25rem 0; background: #fff; }
body.popout-window .pop-out-toggle { margin: 0 0 .5rem; }
body.popout-window .pop-pin { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #e2e8f0; padding: .75rem 0; margin-top: 1rem; }
/* "Save your changes?" prompt */
dialog.pop-save-prompt { max-width: 26rem; border: 1px solid #cbd5e1; border-radius: 10px; padding: 1.1rem 1.25rem; }
dialog.pop-save-prompt::backdrop { background: rgba(15,39,64,.35); }
dialog.pop-save-prompt h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
dialog.pop-save-prompt .pop-save-btns { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }
/* popup header row (title + Close) stays visible while a long popup scrolls */
.modal > div.toolbar:first-of-type { position: sticky; top: -1.25rem; margin: -1.25rem -1.25rem .5rem; padding: .75rem 1.25rem .5rem; background: #fff; z-index: 3; border-bottom: 1px solid #eef2f6; }
.modal > .pop-out-toggle + div.toolbar:first-of-type { margin-top: 0; }
.modal > .pop-out-toggle { margin-top: -.35rem; }
/* popup backdrop covers the RAVE 3 sidebar (z 60) and sticky top bar too */
.modal-backdrop, .modal:has(> .modal-card) { z-index: 1000; }
/* Quantify page at laptop heights: sticky chrome (menu tabs wrap to many rows) ate ~460px of an 800px
   screen and covered the item buttons under it. Cap it and let it scroll; leave room above the fixed
   item footer (.menu-item-sticky-ref) so the last buttons can be scrolled into view. */
.quantify-top-sticky { max-height: 38vh; overflow-y: auto; overscroll-behavior: contain; }
body:has(.menu-item-sticky-ref) main.container { padding-bottom: 9rem; }
/* SOP help drawer: same 2rem breathing room as other popups */
.page-coach-drawer { top: 2rem; bottom: 2rem; right: 2rem; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }

/* sticky-actions-2026-09-28 (Rob: "can't click the buttons at the bottom of the screen")
   The box desktop dock covers the bottom ~57px of the screen, so page-bottom buttons sat under it.
   1) Every page gets >= 96px of breathing room below main content, so the last row of buttons can
      always be scrolled clear of a dock / taskbar / fixed strip.
   2) Kitchen menu review keeps its primary actions in the sticky header (.sticky-menu-actions). */
main.container, html.rave3 main.container { padding-bottom: max(var(--container-pad-bottom, .85rem), 96px); }
.sticky-menu-actions { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; margin-left: auto; justify-content: flex-end; }
.sticky-menu-actions .sma-lock { font-size: .74rem; color: #92400e; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 999px; padding: .12rem .5rem; white-space: nowrap; }
.sticky-menu-actions .sma-lock::before { content: "\1F512  "; }
.btn.is-locked, .btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: auto; }
.kitchen-commitment-table textarea[disabled] { background: #f8fafc; color: #334155; cursor: not-allowed; resize: none; }
.menu-ack-lock-note { border-left-color: #d97706; background: #fffbeb; color: #78350f; }
/* hand-off banner (Sales → Kitchen hold / retract) */
.handoff-banner { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0 .75rem; padding: .5rem .75rem;
  border: 1px solid #bfdbfe; border-left: 4px solid #2563eb; background: #eff6ff; border-radius: 6px; font-size: .88rem; }
.handoff-banner.is-held { border-left-color: #d97706; background: #fffbeb; border-color: #fcd34d; }
.handoff-banner.is-retracted { border-left-color: #64748b; background: #f8fafc; border-color: #cbd5e1; }
.handoff-banner form { display: inline-flex; gap: .35rem; align-items: center; margin: 0; }
@media print { main.container { padding-bottom: 0; } .sticky-menu-actions { display: none !important; } }

/* sticky-actions-2026-09-28 follow-up: kitchen menu review at max scroll.
   Food cost bar now sits above the bottom action row (inside the form); room below the form >= bar + 96px,
   and the bar sticks 72px above the viewport bottom so its Save stays clear of a desktop dock. */
body:has(#fc-bar) #commitment-save-form { padding-bottom: var(--fc-bar-h, 130px); } /* + main.container 96px = bar + 96px below the action row */
#commitment-save-form #fc-bar.fc-bar { bottom: 72px; }
.kitchen-commitment-footer { scroll-margin-top: 400px; scroll-margin-bottom: 120px; }
/* commitment view has no fixed item footer, so the menu-rail body padding (9–11rem, meant for the Quantify
   .menu-item-sticky-ref footer) only pushed the bottom action row up under the sticky header at max scroll. */
body.menu-rail-page:has(#commitment-save-form):not(:has(.menu-item-sticky-ref)) { padding-bottom: 0; }

/* ack-is-accept-2026-09-28: Sales-layer "Accepted" (per department acknowledge) */
.sales-accept { display:inline-block; font-size:.72rem; font-weight:600; padding:.05rem .45rem; border-radius:999px; border:1px solid #cbd5e1; background:#f8fafc; color:#475569; white-space:nowrap; }
.sales-accept-accepted { background:#dcfce7; border-color:#86efac; color:#166534; }
.sales-accept-partial { background:#fef9c3; border-color:#fde047; color:#854d0e; }
.sales-accept-pending { background:#fff7ed; border-color:#fdba74; color:#9a3412; }
.sales-accept-depts { display:flex; flex-wrap:wrap; gap:.2rem; margin-top:.15rem; }
.sales-accept-dept { font-size:.66rem; padding:0 .35rem; border-radius:999px; border:1px solid #e2e8f0; white-space:nowrap; }
.sales-accept-dept.sales-accept-accepted { background:#f0fdf4; color:#166534; border-color:#bbf7d0; }
.sales-accept-dept.sales-accept-pending, .sales-accept-dept.sales-accept-partial { background:#fffbeb; color:#92400e; border-color:#fde68a; }

/* fe-clearance-block-2026-10-01: Clearance v0.5 block mode — disabled picker rows + "who, and what's missing" list */
option.opt-blocked, option:disabled.opt-blocked { color: #9ca3af; font-style: italic; }
details.clr-blocked { font-size: .8rem; margin: .2rem 0 0; color: var(--muted); }
details.clr-blocked summary { cursor: pointer; }
details.clr-blocked ul { margin: .25rem 0 0; padding-left: 1.1rem; }

/* fe-pkg-picker-scroll-2026-10-01 BEGIN — Add from… picker (scoped to the picker's own ids/classes)
   1) Packages preview table: header sticks just below the modal's sticky toolbar (toolbar = top:-1.25rem, so
      offset = toolbar height − 1.25rem). --af-toolbar-h is measured by openAddFromModal(); 47px fallback.
      z-index 2: above rows, below the toolbar (3). Solid background so rows never show through.
   2) Catalog results (#mip-results is its own scroller): no padding above the sticky header (rows showed in the gap). */
#copy-menu-preview .mip-results-table thead th,
#mip-results .mip-results-table thead th {
  position: sticky; z-index: 2; background: #f4f4f1; background-clip: padding-box;
  box-shadow: inset 0 -1px 0 var(--border, #ddd);
}
#copy-menu-preview .mip-results-table thead th { top: calc(var(--af-toolbar-h, 47px) - 1.25rem); }
#mip-results .mip-results-table thead th { top: 0; }
#mip-results.mip-results-scroll { padding-top: 0; flex: 0 0 auto; min-height: 12rem; max-height: min(46vh, 24rem); }
/* 3) Catalog tab: the catalog-mode modal is a flex column with overflow:hidden (rule above), so the panel clipped the
      tray's Add button + "Or add a whole catalog menu" and only a ~110px results box scrolled. The panel now scrolls
      on its own (wheel/trackpad/touch/keys); results keep their own scroll and chain into the panel at the ends. */
.modal-backdrop.wide #add-from-panel-catalog.mip-catalog-panel { overflow-y: auto; overscroll-behavior: contain; }
/* 4) wheel/touch on the dimmed backdrop around the picker no longer scrolls the event page underneath */
#modal-add-from.modal-backdrop { overflow-y: auto; overscroll-behavior: contain; }
/* fe-pkg-picker-scroll-2026-10-01 END */

/* ===== fe-color-rule-2026-10-01 (FrontEnd) — Rob's colour rule, app-wide =====
   RED = real problem / overdue (!)   AMBER = soon (~)   GREEN = done (✓)   GREY/BLUE = information.
   One colour per state everywhere; every colour also carries a symbol or word (grayscale + colour-blind safe).
   Rollback: backups/fe-color-rule-20261001/rollback.sh strips this block. */
:root {
  --cr-bad: #991b1b;  --cr-bad-bg: #fee2e2;  --cr-bad-bd: #fecaca;  --cr-bad-solid: #b91c1c;
  --cr-warn: #92400e; --cr-warn-bg: #fef3c7; --cr-warn-bd: #fde68a; --cr-warn-solid: #b45309;
  --cr-ok: #166534;   --cr-ok-bg: #dcfce7;   --cr-ok-bd: #bbf7d0;   --cr-ok-solid: #15803d;
  --cr-info: #334155; --cr-info-bg: #eef2f7; --cr-info-bd: #d5dde8; --cr-info-solid: #1d4ed8;
}
/* Event status labels are information (neutral grey / blue); only Completed is "done" */
.badge-Inquiry { background: #e2e8f0; color: #334155; }
.badge-Tentative { background: #dbeafe; color: #1e3a8a; }
.badge-Confirmed { background: #1d4ed8; color: #fff; }
.badge-InProduction { background: #17304d; color: #fff; }
.badge-Completed { background: var(--cr-ok-solid); color: #fff; }
.badge-Cancelled { background: #e2e8f0; color: #64748b; text-decoration: line-through; }
/* Workflow states: waiting = info, done = green ✓, rejected = red ! */
.badge-Draft, .badge-Requested, .badge-Sent, .badge-PendingApproval, .badge-PendingChef,
.badge-PendingKitchenApproval, .badge-InTesting, .badge-Adjusted, .badge-ReadyToPublish { background: #e2e8f0; color: #334155; }
.badge-Acknowledged, .badge-Ready, .badge-Approved, .badge-ChefApproved, .badge-Published { background: var(--cr-ok-solid); color: #fff; }
.badge-Rejected { background: var(--cr-bad-solid); color: #fff; }
.cr-badge-ok { background: var(--cr-ok-solid); color: #fff; }
.cr-badge-info { background: #e2e8f0; color: #334155; }
.badge-Completed::before, .badge-Acknowledged::before, .badge-Ready::before, .badge-Approved::before,
.badge-ChefApproved::before, .badge-Published::before, .cr-badge-ok::before { content: "\2713\00a0"; }
.badge-Rejected::before { content: "!\00a0"; font-weight: 800; }

/* Ops progress chips (Ack x/y, Qty x/y): one colour per state — in progress = grey, done = green ✓
   (drops the pink/magenta/violet Ack chips and the sky-blue kitchen "partial") */
.ops-tone-none, .ops-tone-partial,
.ops-chip-kitchen.ops-tone-partial, .ops-chip-kitchen.ops-tone-none,
.ops-chip-menu-ack.ops-tone-none, .ops-chip-menu-ack.ops-tone-partial { background: var(--cr-info-bg); color: var(--cr-info); border-color: var(--cr-info-bd); }
.ops-tone-done, .ops-chip-kitchen.ops-tone-done, .ops-chip-menu-ack.ops-tone-done { background: var(--cr-ok-bg); color: var(--cr-ok); border-color: var(--cr-ok-bd); }
.ops-chip.ops-tone-done::before { content: "\2713\00a0"; }
.ops-tone-none .ops-progress-bar > i, .ops-chip.ops-tone-none + .ops-progress-bar > i, .ops-tone-none-bar > i { background: #94a3b8; }
.ops-tone-partial .ops-progress-bar > i, .ops-tone-partial-bar > i { background: var(--cr-info-solid); }
.ops-tone-done-bar > i, .ops-quant-bar > i { background: var(--cr-ok-solid); }
/* "No menu": Confirmed/InProduction = red !, Inquiry/Tentative within 7 days = amber ~, otherwise grey (markup adds the symbol) */
.menu-ack-never-requested.cr-lv-bad { background: var(--cr-bad-bg) !important; color: var(--cr-bad) !important; border-color: var(--cr-bad-bd) !important; }
.menu-ack-never-requested.cr-lv-warn { background: var(--cr-warn-bg) !important; color: var(--cr-warn) !important; border-color: var(--cr-warn-bd) !important; }
.menu-ack-never-requested.cr-lv-info, .menu-ack-never-requested.cr-lv-ok { background: var(--cr-info-bg) !important; color: var(--cr-info) !important; border-color: var(--cr-info-bd) !important; font-weight: 650; }

/* Open change requests by age: >= 48h red !, 24–48h amber ~, < 24h info */
.ops-cr-badge { background: var(--cr-info-bg); color: var(--cr-info); border-color: var(--cr-info-bd); }
.ops-cr-badge:hover { background: #e2e8f0; }
.ops-cr-urgency-hot { background: var(--cr-bad-bg) !important; color: var(--cr-bad) !important; border-color: var(--cr-bad-bd) !important; }
.ops-cr-urgency-warm { background: var(--cr-warn-bg) !important; color: var(--cr-warn) !important; border-color: var(--cr-warn-bd) !important; }
.ops-cr-urgency-fresh { background: var(--cr-info-bg) !important; color: var(--cr-info) !important; border-color: var(--cr-info-bd) !important; }
.ops-cr-urgency-hot::before { content: "!\00a0"; font-weight: 800; }
.ops-cr-urgency-warm::before { content: "~\00a0"; font-weight: 800; }
tr.has-open-cr td:first-child { box-shadow: inset 3px 0 0 #94a3b8; }

/* Clearance: one colour for the count and the pills. Booked + not cleared (linked chip on a shift) = red !;
   not cleared yet (queue / notes) = amber ~; cleared / exempt = green ✓ */
span.clr-chip:not(.clr-chip-ok) { background: var(--cr-warn-bg); color: var(--cr-warn); border-color: var(--cr-warn-bd); }
span.clr-chip:not(.clr-chip-ok)::before { content: "~\00a0"; font-weight: 800; }
a.clr-chip:not(.clr-chip-ok) { background: var(--cr-bad-bg); color: var(--cr-bad); border-color: var(--cr-bad-bd); }
a.clr-chip:not(.clr-chip-ok):hover { background: #fecaca; }
a.clr-chip:not(.clr-chip-ok)::before { content: "!\00a0"; font-weight: 800; }
.clr-chip-ok::before { content: "\2713\00a0"; }

/* Generic semantic chips / text used by the colour-rule templates */
.cr-chip { display: inline-block; padding: .08rem .45rem; border-radius: 999px; font-size: .7rem; font-weight: 700; border: 1px solid; white-space: nowrap; vertical-align: middle; }
.cr-chip.cr-bad { background: var(--cr-bad-bg); color: var(--cr-bad); border-color: var(--cr-bad-bd); }
.cr-chip.cr-warn { background: var(--cr-warn-bg); color: var(--cr-warn); border-color: var(--cr-warn-bd); }
.cr-chip.cr-ok { background: var(--cr-ok-bg); color: var(--cr-ok); border-color: var(--cr-ok-bd); }
.cr-chip.cr-info { background: var(--cr-info-bg); color: var(--cr-info); border-color: var(--cr-info-bd); }
.cr-chip.cr-bad::before { content: "!\00a0"; } .cr-chip.cr-warn::before { content: "~\00a0"; } .cr-chip.cr-ok::before { content: "\2713\00a0"; }
.cr-txt-bad { color: var(--cr-bad-solid); } .cr-txt-warn { color: var(--cr-warn-solid); } .cr-txt-ok { color: var(--cr-ok-solid); } .cr-txt-info { color: var(--cr-info); }
@media print {
  .cr-chip, .cr-key { border: 1px solid #555 !important; background: #fff !important; color: #000 !important; }
}
/* ===== end fe-color-rule-2026-10-01 ===== */
