/* ---------- tokens ---------- */
:root {
  /* Scorecard: cream paper, ink, fairway green, flag red. A club's color replaces the
     green (clubs.js applyClubColor); 👑 Admin mode swaps it for purple. */
  --bg: #F3EEE2;
  --surface: #FBF8F0;
  --surface-2: #EFE8D8;
  --border: #D3C9B1;
  --rule: #E3DBC8;
  --text: #1C2620;
  --text-muted: #6B6453;
  --accent: #2C5A3A;
  --accent-hover: #22482E;
  --accent-soft: rgba(44, 90, 58, 0.10);
  --on-accent: #FFFFFF;
  --flag: #C2412C;
  --negative: #B23A26;
  --negative-soft: rgba(178, 58, 38, 0.10);
  --positive: #2C6E3F;
  --positive-soft: rgba(44, 110, 63, 0.10);
  --warning: #9A6A0C;
  --sidebar: #EAE3D1;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 6px;
  --radius-sm: 4px;
  color-scheme: light;
}

/* (The theme picker is gone — Scorecard is the one look; club colors still apply on top.) */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }
button { font-family: inherit; }
input, select { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.screen { min-height: 100vh; }
.screen[hidden] { display: none !important; }

/* ---------- login ---------- */
/* Photo on the left (top on phones), "Who's signing in?" on the right (login-photos.js). */
#login-screen {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
}
.login-photo { flex: 1.2 1 0; position: relative; overflow: hidden; background: #1d2a17; min-width: 0; }
.lp-img {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0; transform: scale(1.06);
  transition-property: opacity, transform; transition-timing-function: ease-in-out, linear;
  transition-duration: 2500ms, 14000ms;
}
.lp-img.on { opacity: 1; transform: scale(1); }
.login-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,0) 70%, rgba(0,0,0,.35) 100%); }
.lp-greet { position: absolute; left: 36px; top: 32px; right: 24px; z-index: 1; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.lp-greet small { display: block; font: 600 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .92; }
.lp-greet b { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; margin-top: 4px; }
.lp-greet span { display: block; font-size: 15px; opacity: .92; margin-top: 4px; }
.lp-logo { width: 54px; height: 54px; object-fit: contain; display: block; margin-bottom: 10px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.login-side { flex: 1 1 0; display: flex; align-items: center; justify-content: center; padding: 32px 28px; background: var(--surface); min-width: 0; }
.login-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.login-mark { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.login-card h1.login-who { font-size: 26px; letter-spacing: 0.01em; text-align: left; margin: 0 0 14px; }
.login-doors { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.login-door {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.login-door:hover { border-color: var(--accent); }
.login-door.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.login-door i { font-style: normal; font-size: 22px; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.login-door b { display: block; font-size: 15px; }
.login-door small { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 1px; }
.login-card.login-alt .login-who, .login-card.login-alt .login-doors, .login-card.login-alt #staff-signin { display: none; }
.login-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 8px 0 26px;
}
@media (max-width: 780px) {
  #login-screen { flex-direction: column; }
  .login-photo { flex: 0 0 auto; height: 30vh; min-height: 190px; max-height: 300px; }
  .lp-greet { left: 18px; top: auto; bottom: 14px; }
  .lp-greet b { font-size: 28px; }
  .lp-greet span { font-size: 13.5px; }
  .lp-logo { width: 38px; height: 38px; margin-bottom: 6px; }
  .login-side { flex: 1 0 auto; align-items: flex-start; padding: 20px 18px 28px; }
  .login-mark { display: none; }
  .login-card h1.login-who { font-size: 21px; margin-bottom: 10px; }
  .login-doors { gap: 8px; margin-bottom: 16px; }
  .login-door { padding: 10px 12px; }
  .login-door i { width: 38px; height: 38px; flex-basis: 38px; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .lp-img { transform: none !important; } }
#login-form { text-align: left; }
#login-form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 14px 0 6px;
}
#login-form label:first-of-type { margin-top: 0; }
#login-form input {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
}
.btn-block { width: 100%; margin-top: 22px; }
.form-error {
  color: var(--negative);
  font-size: 13px;
  margin: 12px 0 0;
  text-align: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent, #1A140A); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-danger { background: transparent; border-color: var(--border); color: var(--negative); }
.btn-danger:hover { border-color: var(--negative); background: var(--negative-soft); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- app shell ---------- */
/* Desktop: horizontal top bar. Mobile (see max-width: 780px below) repositions this
   same .sidebar element into a fixed bottom bar instead — same markup, same click
   wiring, just relaid-out, so nothing about the mobile experience below changes. */
#app-screen {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}
.app-body {
  display: flex;
  min-height: 0;
}
.context-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  overflow-y: auto;
}
.context-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-family: var(--font-body);
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 2px;
}
.context-sidebar-item:hover { background: var(--surface-2); color: var(--text); }
.context-sidebar-item.active { background: var(--surface-2); color: var(--accent); }
.context-sidebar-item i { font-size: 16px; }
.dashboard-feed-dismiss-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  flex-shrink: 0;
}
.dashboard-feed-dismiss-btn:hover { color: var(--text); }
.dashboard-feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: dashboard-feed-blink 1.1s ease-in-out infinite;
}
.dashboard-feed-item-new {
  animation: dashboard-feed-flash 1.8s ease-out 1;
}
@keyframes dashboard-feed-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes dashboard-feed-flash {
  0% { background: var(--accent-soft); }
  100% { background: transparent; }
}
.sidebar {
  background: var(--surface);
  border-right: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px;
  position: sticky;
  top: 0;
  height: auto;
  z-index: 40;
}
.brand-block {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  justify-self: start;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 0 8px;
}
.sidebar-clock {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 8px;
}
.nav-scroll-wrap { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 2px; overflow-x: auto; overflow-y: hidden; justify-self: center; max-width: 100%; }
.nav { display: flex; flex-direction: row; align-items: center; gap: 2px; flex-shrink: 0; }
.nav-bottom { display: flex; flex-direction: row; align-items: center; gap: 2px; flex-shrink: 0; }
.nav-item {
  text-align: center;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-item i { font-size: 19px; line-height: 1; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-item-disabled { opacity: 0.5; cursor: default; }
.nav-item-disabled:hover { background: none; color: var(--text-muted); }
.badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
}
/* "More" gear menu — groups Monthly Data / Reports / Settings on desktop only. The
   underlying buttons for those three views still exist unchanged inside .nav /
   .nav-bottom for mobile; on desktop they're force-hidden (see the [data-view] rule
   below) in favor of the copies inside this dropdown, which reuse the exact same
   .nav-item class, data-view, and data-roles attributes, so all existing click
   wiring, active-state highlighting, and role visibility keep working with no JS
   changes. */
.nav-more { position: relative; flex-shrink: 0; }
.nav-right-group { display: flex; align-items: center; gap: 8px; justify-self: end; }
.nav-more-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.nav-more-btn i { font-size: 19px; line-height: 1; }
.nav-more-btn:hover, .nav-more-btn.active { background: var(--surface-2); color: var(--text); }
.nav-more-dropdown {
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
  z-index: 60;
}
.nav-more-dropdown[hidden] { display: none; }
.nav-more-dropdown .nav-item { flex-direction: row; justify-content: flex-start; gap: 8px; text-align: left; font-size: 13px; padding: 8px 10px; }
.nav-more-dropdown .nav-item i { font-size: 17px; }
.nav-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.nav-logout i { font-size: 19px; line-height: 1; }
.nav-logout:hover { color: var(--text); border-color: var(--accent); }
/* On desktop, the original buttons for grouped views stay in the DOM (for mobile)
   but are hidden in favor of their .nav-more dropdown copies above. Uses the direct
   child combinator (.nav > ...) rather than a plain descendant selector, since the
   dropdown copies are themselves nested *inside* .nav now (in .nav-communication-more
   and .nav-boh-more) — a descendant selector would incorrectly hide those too.
   Dashboard, Notes, and Reservation Times stay single icons and are never hidden. */
@media (min-width: 781px) {
  .nav > [data-view="monthlydata"],
  .nav-bottom > [data-view="reports"],
  .nav-bottom > [data-view="pricechanges"],
  .nav-bottom > [data-view="settings"],
  .nav > [data-view="deliveries"],
  .nav > [data-view="orders"],
  .nav > [data-view="serversales"],
  .nav > [data-view="labor"],
  .nav > [data-view="eightysix"],
  .nav > [data-view="preshift"],
  .nav > [data-view="comps"],
  .nav > [data-view="waste"],
  .nav > [data-view="mgrschedule"],
  .nav > [data-view="training"],
  .nav > [data-view="costing"],
  .nav > [data-view="incidents"],
  .nav > [data-view="maintenance"],
  .nav > [data-view="managerrecap"],
  .nav > [data-view="managercalendar"],
  .nav > [data-view="events"],
  .nav > [data-view="banquetcalendar"],
  .nav > [data-view="winelist"],
  .nav > [data-view="lowstock"],
  .nav > [data-view="checklists"],
  .nav > [data-view="dailysales"],
  .nav > [data-view="projects"] {
    display: none !important;
  }
}

.main { flex: 1; min-width: 0; padding: 28px 36px 60px; overflow-x: auto; }
.test-banner {
  background: #FBEFC9;
  border: 1px solid #C68A2E;
  color: #6A4A08;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 18px;
}
.test-banner[hidden] { display: none; }
.update-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.update-banner[hidden] { display: none; }
.update-banner-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px;
}
.update-banner-dismiss:hover { color: var(--text); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 14px;
}
.topbar h1 { font-size: 24px; display: flex; align-items: center; gap: 8px; }
.breadcrumb-back {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--text-muted);
  padding: 0;
}
.breadcrumb-back:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }
.month-picker { display: flex; align-items: center; gap: 8px; }
.month-picker label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.month-picker input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
}
.day-nav input[type="date"] {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
}
.segment-control {
  display: inline-flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.segment-btn {
  padding: 7px 16px;
  border: none;
  background: none;
  color: var(--text-muted);
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
}
.segment-btn:hover { color: var(--text); }
.segment-btn.active { background: var(--accent-soft); color: var(--accent); }

/* ---------- cards / tables ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.card-header h2 { font-size: 16px; }
.card-header .hint { font-size: 12.5px; color: var(--text-muted); }

.stat-grid {
  display: grid;
  /* 210px min keeps a six-figure total like $347,231.30 inside its card at the
     24px mono size — at 160px long totals spilled past the card's edge. */
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-card-clickable {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.stat-card-clickable:hover { border-color: var(--accent); background: var(--surface-2); }
.stat-card-clickable:focus-visible { border-color: var(--accent); }
.stat-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  overflow-wrap: anywhere; /* last-resort safety: wrap inside the card rather than spill out */
}
.stat-value.positive { color: var(--positive); }
.stat-value.negative { color: var(--negative); }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.settings-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.settings-card:hover { background: var(--surface-2); border-color: var(--accent); }
.settings-card-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
.settings-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
/* ---------- Checklists ---------- */
.cl-position-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.cl-position-tile {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cl-position-tile:hover { background: var(--surface-2); border-color: var(--accent); }
.cl-position-tile-name { font-weight: 600; font-size: 14px; }
.cl-badge-submitted { background: var(--positive-soft); color: var(--positive); }
.cl-badge-progress { background: var(--accent-soft); color: var(--accent); }
.cl-day-modal-list { display: flex; flex-direction: column; gap: 4px; min-width: 260px; }
.cl-day-modal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
}
.cl-day-modal-row:hover { background: var(--surface-2); border-color: var(--accent); }
/* ---------- Projects ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.proj-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.proj-card:hover { background: var(--surface-2); border-color: var(--accent); }
.proj-card-number { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.proj-card-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.proj-card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.proj-card-members { font-size: 12px; color: var(--text-muted); }
.proj-card-footer { margin-top: 4px; }
.proj-members-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.proj-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12.5px;
}
.proj-member-chip-done { border-color: var(--positive); color: var(--positive); }
.proj-remove-member-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  padding: 0;
  line-height: 1;
}
.proj-remove-member-btn:hover { color: var(--negative); }
.proj-notes-list { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.proj-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.proj-note-header { margin-bottom: 4px; font-size: 13px; }
.proj-note-body { font-size: 13.5px; white-space: pre-wrap; }
.proj-note-system {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  background: none;
  border: none;
  padding: 4px;
}
/* ---------- shared attachment chips (Projects notes + Deliveries) ---------- */
.attachment-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.attachment-chip { display: inline-block; }
.attachment-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
}
.attachment-file-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--text);
  text-decoration: none;
}
.attachment-file-link:hover { border-color: var(--accent); }
.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
}
/* ---------- 86 Board ---------- */
.eightysix-card { border-color: var(--negative); }
.eightysix-card .card-header h2 { color: var(--negative); }
.eightysix-station { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 4px 0 6px; }
.eightysix-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 6px; }
/* ---------- Pre-Shift Notes ---------- */
.ps-att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.ps-att-chip { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 13.5px; }
.ps-att-chip-on { border-color: var(--accent); background: var(--accent-soft); }
/* ---------- Comps / Voids / Waste ---------- */
.comp-badge-comp { background: var(--accent-soft); color: var(--accent); }
.comp-badge-void { background: var(--surface-2); color: var(--text-muted); }
.comp-badge-waste { background: var(--negative-soft); color: var(--negative); }
/* Two tables up top, the third centered underneath at the same size (comps.js) */
.comp-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.comp-summary-grid > :nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
.comp-summary-grid > .card { min-width: 0; overflow-x: auto; }
@media (max-width: 760px) { .comp-summary-grid { grid-template-columns: 1fr; } .comp-summary-grid > :nth-child(3):last-child { width: 100%; } }
/* Names wrap with both lines on the same edge; the ✓ hangs to the left. Numbers stay on one line. */
.cmp-bd td.num, .cmp-bd th.num { white-space: nowrap; width: 1%; padding-left: 6px; padding-right: 6px; }
.cmp-bd td.num { font-size: 12.5px; }
.cmp-bd th.num { font-size: 10px; letter-spacing: .06em; }
.cmp-bd td.cmp-bd-name { white-space: normal; min-width: 110px; text-align: left; position: relative; padding-right: 6px; }
.cmp-bd-f td.cmp-bd-name { padding-left: 24px; }
.cmp-bd .cmp-facet-check { position: absolute; left: 7px; width: auto; }
/* ---------- Incidents ---------- */
.inc-person-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.inc-person-row input[type="text"], .inc-person-row input[type="tel"] { flex: 1; min-width: 140px; }
.inc-person-row input[type="text"], .inc-person-row input[type="tel"], .inc-person-row select {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 8px 10px; border-radius: var(--radius-sm); font-size: 14px;
}
@media print { .modal-dialog .proj-note-system { color: #444 !important; } }
/* ---------- Vendor Orders ---------- */
.order-badge-partial { background: var(--accent-soft); color: var(--warning); }
.vo-row:hover td { background: var(--surface-2); }
/* ---------- Low Stock Requests ---------- */
.ls-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.ls-item-row span:first-child { flex: 1; font-weight: 500; }
.ls-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 2px;
}
.ls-remove-btn:hover { color: var(--negative); }
span.positive { color: var(--positive); font-weight: 600; }
span.negative { color: var(--negative); font-weight: 600; }

table { width: 100%; border-collapse: collapse; }
/* Reusable wrapper for any table with more columns than a phone screen can show at
   once (Manager Schedule's 7 day-columns being the first case) — scrolls sideways
   instead of getting cut off or forcing the whole card to overflow. Use this for
   any new wide table going forward, not just this one. */
.table-scroll-wrap { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.table-scroll-wrap table { min-width: 600px; }
th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-family: var(--font-mono); }
.category-row td {
  padding-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.category-row:first-child td { padding-top: 4px; }

input.cell-input, input.inline-input {
  width: 90px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13.5px;
  text-align: right;
}
input.cell-input:focus, input.inline-input:focus { border-color: var(--accent); }

/* fill-level gauge — signature element for item rows */
.fill-gauge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100px;
}
.fill-track {
  position: relative;
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.fill-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 3px;
}
.fill-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  width: 30px;
  text-align: right;
}

.item-name { font-weight: 500; }
.item-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ---------- forms ---------- */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.field { min-width: 0; }
.field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.field textarea:focus { border-color: var(--accent); }

.bq-cal-cell { cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.bq-cal-cell:hover { border-color: var(--accent); background: var(--surface-2); }
.bq-event-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10.5px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bq-event-more { font-size: 10px; color: var(--text-muted); margin-top: 3px; }

.bq-section-header {
  margin: 20px 0 10px;
  color: var(--accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bq-line-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--surface-2);
}
/* Read-only Banquet event view only — items sit in a grid, next to each other,
   instead of the edit form's vertical stack. align-items:start keeps each box its
   own natural height rather than stretching short items to match a longer neighbor
   in the same row. */
.bq-line-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
  gap: 10px;
  margin-bottom: 18px;
}
.bq-line-items-grid .bq-line-item { margin-bottom: 0; }
.bq-line-item-name { font-weight: 600; margin-bottom: 4px; }
.bq-line-item-price-display { margin-bottom: 4px; }
.bq-line-item-price-display + .hint, .bq-line-item-price-display ~ .hint { margin-top: 2px; }
@media print {
  /* Printed BEOs read better as a single scannable column than a multi-column
     grid — force it back to a plain stacked list only when printing. */
  .bq-line-items-grid { display: block; }
  .bq-line-items-grid .bq-line-item { margin-bottom: 8px; }
}
.bq-line-item-notes {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  margin-top: 8px;
}
.bq-line-item-notes:focus { border-color: var(--accent); }
.bq-add-item-row { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; margin: 0 0 16px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 100;
}
.toast.error { border-color: var(--negative); color: var(--negative); }
.toast[hidden] { display: none; }

/* Loading screen (core.js): blocks clicks while something you started loads. */
.lg-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center; padding: 16px;
  background: transparent; cursor: progress;
  transition: background 0.2s ease;
}
.lg-overlay.lg-active { display: flex; }
.lg-overlay .lg-card { opacity: 0; transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease; }
.lg-overlay.lg-visible { background: rgba(10, 8, 5, 0.55); }
.lg-overlay.lg-visible .lg-card { opacity: 1; transform: none; }
.lg-overlay.lg-done { background: transparent; }
.lg-overlay.lg-done .lg-card { opacity: 0; }
.lg-card {
  width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); cursor: default;
}
.lg-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.lg-label { font-weight: 600; font-size: 15px; color: var(--text); }
.lg-pct { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; color: var(--accent); }
.lg-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.lg-fill { height: 100%; width: 3%; background: var(--accent); border-radius: 999px; transition: width 0.25s ease; box-shadow: 0 0 10px var(--accent); }
.lg-slow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.lg-slow[hidden] { display: none; }
.lg-cancel[hidden] { display: none; }
@media print { .lg-overlay { display: none !important; } }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-dialog h2 { font-size: 18px; margin-bottom: 14px; }
.modal-dialog-fullscreen {
  max-width: 95vw;
  width: 95vw;
  max-height: 92vh;
  height: 92vh;
  display: flex;
  flex-direction: column;
}
.modal-dialog-fullscreen #calendar-body { flex: 1; overflow-y: auto; }
/* Children keep their full height and the whole window scrolls — otherwise a box with a
   min-height (Manage Specials) was squeezed and the button after it landed mid-window. */
.modal-dialog-fullscreen > * { flex-shrink: 0; }
.modal-dialog-fullscreen > .btn { align-self: flex-start; }

@media print {
  @page { margin: 0.5in; } /* no size / orientation: Portrait or Landscape is picked in the print window */
  html, body { height: auto !important; min-height: 0 !important; overflow: visible !important; background: #fff !important; }
  /* Only the report prints — the app behind it is taken out of the layout, so it can't add blank pages. */
  body > *:not(#modal-root) { display: none !important; }
  body * { visibility: hidden; }
  #modal-root, #modal-root * { visibility: visible; }
  #modal-root {
    position: static;
    width: 100%;
  }
  .modal-overlay {
    position: static !important;
    background: none !important;
    padding: 0 !important;
    display: block !important;
  }
  .modal-dialog {
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    color: #000 !important;
    background: #fff !important;
  }
  .modal-dialog .hint, .modal-dialog .stat-label { color: #444 !important; }
  .modal-dialog .bq-section-header { color: #000 !important; border-bottom: 1px solid #999; padding-bottom: 4px; }
  .modal-dialog .stat-card, .modal-dialog .bq-line-item, .modal-dialog .bq-event-chip, .modal-dialog .card {
    border-color: #ccc !important;
    background: #fff !important;
  }
  .modal-close, .btn, .no-print { display: none !important; }
  .modal-dialog details { display: block; }
}

.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-weekday {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 4px 0;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.cal-cell {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-height: 84px;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
}
.cal-cell-empty { border: none; background: none; }
.cal-cell-future { opacity: 0.35; }
.cal-cell-data { cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.cal-cell-data:hover { border-color: var(--accent); background: var(--surface-2); }
.cal-cell-missing {
  cursor: pointer;
  border-color: var(--negative);
  background: rgba(220, 80, 80, 0.07);
  transition: background 0.15s ease;
}
.cal-cell-missing:hover { background: rgba(220, 80, 80, 0.13); }
.cal-cell-selected { border-color: var(--accent) !important; box-shadow: 0 0 0 2px var(--accent) inset; }
.cal-daynum {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.cal-daynum.cal-today { color: var(--accent); }
.cal-total { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); }
.cal-breakdown { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }
/* ---------- Manager Calendar ---------- */
.mgrcal-cell { cursor: pointer; min-height: 100px; transition: border-color 0.15s ease, background 0.15s ease; }
.mgrcal-cell:hover { border-color: var(--accent); background: var(--surface-2); }
.mgrcal-chip-list { display: flex; flex-direction: column; gap: 3px; }
.mgrcal-chip {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.mgrcal-chip-meeting { background: var(--accent-soft); color: var(--accent); }
.mgrcal-chip-dayoff { background: var(--negative-soft); color: var(--negative); }
.mgrcal-chip-other { background: var(--surface-2); color: var(--text-muted); }
.mgrcal-chip-more { font-size: 10.5px; color: var(--text-muted); padding: 0 6px; }
.mgrcal-day-modal-list { display: flex; flex-direction: column; gap: 6px; min-width: 280px; }
.mgrcal-day-modal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
}
.mgrcal-day-modal-row:hover { background: var(--surface-2); border-color: var(--accent); }
.cal-missing-label { font-size: 11px; color: var(--negative); font-weight: 600; margin-top: 8px; }
@media (max-width: 700px) {
  .cal-cell { min-height: 60px; padding: 6px; }
  .cal-daynum { font-size: 12px; }
  .cal-total { font-size: 12px; }
  .cal-breakdown { font-size: 9.5px; }
  /* Stat cards (area totals, dashboard summaries, etc.) — auto-fit naturally lands
     on 2 cramped columns at phone width; a single column reads far more easily. */
  .stat-grid { grid-template-columns: 1fr; }
  /* Every table in this app lives inside a .card. Rather than individually wrapping
     each wide table (easy to miss one, as happened before), this makes ANY card's
     content scroll sideways on narrow screens whenever it doesn't fit — covering
     every existing table and any new one built later, automatically. Cards without
     wide content are completely unaffected; overflow-x:auto is a no-op unless
     something inside actually exceeds the card's width. */
  .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .modal-dialog { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

.res-table-card { max-width: 480px; }
@media (max-width: 700px) {
  .res-table-card { max-width: 100%; }
}

/* Notes: text wraps normally instead of getting squeezed by the action buttons.
   On mobile, the three actions collapse behind a single "⋯" toggle so the row
   doesn't crowd the note text off to one word per line. */
.note-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.note-text-wrap { flex: 1; min-width: 140px; }
.note-actions-toggle { display: none; }
.note-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 700px) {
  .note-actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }
  .note-actions { display: none; width: 100%; margin-top: 8px; }
  .note-actions.expanded { display: flex; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.modal-close:hover { color: var(--text); }

.collapse-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.collapse-toggle:hover { color: var(--accent); }

.best-day-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.best-day-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.best-day-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.best-day-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 6px;
}
.best-day-date { font-size: 13.5px; color: var(--text); }
@media (max-width: 480px) {
  .best-day-grid { grid-template-columns: 1fr; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
}

/* ---------- responsive ---------- */
@media (max-width: 780px) {
  #app-screen { grid-template-columns: 1fr; }
  .context-sidebar { display: none; }
  .app-body { display: block; }
  .sidebar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 8px 10px;
    z-index: 50;
  }
  .brand-block { display: none; }
  .sidebar-clock { display: none; }
  .nav-more { display: none; }
  .nav-right-group { display: contents; }
  /* Nav items scroll horizontally in their own region — Log out sits OUTSIDE that
     scroll area (was previously hidden here entirely with nothing put in its
     place, making it impossible to reach on a phone no matter how far you
     scrolled). It now always stays visible at the edge of the bar regardless of
     nav scroll position. */
  .nav-scroll-wrap { display: flex; flex-direction: row; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; flex: 1; min-width: 0; }
  .nav { flex-direction: row; flex-shrink: 0; justify-content: flex-start; }
  .nav-bottom { flex-direction: row; gap: 4px; margin-bottom: 0; flex-shrink: 0; }
  .nav-item { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 8px; white-space: nowrap; }
  .badge { display: none; }
  .nav-logout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
    margin-left: 8px;
    padding: 8px 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  .main { padding: 20px 16px 90px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Schedule & Labor ---------- */
.labor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.labor-toolbar .segment-control, .labor-report-2col .segment-control, .card-header .segment-control { margin-bottom: 0; }
.labor-cal-scroll { overflow-x: auto; }
.labor-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)) minmax(96px, 0.9fr); gap: 6px; margin-bottom: 6px; min-width: 760px; }
.labor-cal-head { margin-bottom: 4px; }
.labor-day { min-height: 104px; display: flex; flex-direction: column; gap: 3px; }
.labor-day-top { display: flex; justify-content: space-between; align-items: center; }
.labor-check { color: var(--positive); font-weight: 700; font-size: 12px; }
.labor-day-line { font-size: 11.5px; color: var(--text-muted); }
.labor-day-line strong { color: var(--text); }
.labor-day-sales { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--text); }
.labor-day-needs { border-color: rgba(217, 178, 60, 0.55); }
.labor-needs { font-size: 11px; font-weight: 600; color: var(--warning); }
.labor-pay-ok { font-size: 11px; font-weight: 600; color: var(--positive); }
.labor-week-cell { background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.labor-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.labor-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; line-height: 1; padding: 3px 5px; border-radius: 4px;
  color: var(--text); background: color-mix(in srgb, var(--pos, #888) 22%, transparent);
  border-left: 3px solid var(--pos, #888);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.labor-chip-more { --pos: var(--text-muted); }
.labor-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.labor-pct { display: inline-flex; align-items: baseline; gap: 3px; font-weight: 700; font-size: 12px; padding: 2px 7px; border-radius: 999px; width: fit-content; }
.stat-value .labor-pct { font-size: inherit; padding: 2px 10px; }
.labor-pct-good { color: var(--positive); background: var(--positive-soft); }
.labor-pct-warn { color: var(--warning); background: rgba(217, 178, 60, 0.16); }
.labor-pct-bad { color: var(--negative); background: var(--negative-soft); }
.labor-est { font-size: 0.72em; font-weight: 600; opacity: 0.85; }

/* day view */
.labor-day-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 16px; }
.labor-day-stats > div { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.labor-day-stats span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.labor-day-stats strong { font-size: 17px; }
.labor-day-stats em { font-style: normal; font-size: 11.5px; color: var(--text-muted); }
.labor-tl { margin-bottom: 18px; }
.labor-tl-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.labor-tl-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; min-height: 28px; }
.labor-tl-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.labor-tl-track { position: relative; height: 24px; }
.labor-tl-axis .labor-tl-track { height: 18px; }
.labor-tl-hour { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--text-muted); font-family: var(--font-mono); }
.labor-tl-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); opacity: 0.6; }
.labor-tl-bar {
  position: absolute; top: 3px; bottom: 3px; border-radius: 5px; min-width: 6px;
  background: color-mix(in srgb, var(--pos) 30%, var(--surface));
  border: 1px solid var(--pos); border-left-width: 4px;
  display: flex; align-items: center; padding: 0 6px; overflow: hidden;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.labor-tl-bar span { font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--text); }
.labor-tl-group { padding: 4px 0 6px; border-top: 1px solid var(--border); }
.labor-tl-grouphead { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 4px 0 2px; display: flex; align-items: center; gap: 6px; }
.labor-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pos); display: inline-block; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.labor-side-head td { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); padding-top: 14px; }
.labor-add-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.labor-print-only { display: none; }
.labor-list-group { margin-bottom: 10px; break-inside: avoid; }
.labor-list-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted #bbb; padding: 3px 0; font-size: 13px; }
@media print {
  .labor-screen-only { display: none !important; }
  .labor-print-only { display: block !important; }
}

/* week grid */
.labor-week-table th, .labor-week-table td { vertical-align: top; }
.labor-week-table .labor-week-cell-td { min-width: 92px; }
.labor-week-name { white-space: nowrap; }
.labor-week-dayhead { cursor: pointer; }
.labor-week-dayhead:hover { color: var(--accent); }
.labor-block {
  display: flex; justify-content: space-between; gap: 4px; align-items: baseline;
  font-size: 11.5px; padding: 3px 6px; margin-bottom: 3px; border-radius: 4px;
  background: color-mix(in srgb, var(--pos) 20%, transparent); border-left: 3px solid var(--pos);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.labor-block span { font-weight: 600; white-space: nowrap; }
.labor-block em { font-style: normal; font-size: 10px; color: var(--text-muted); }
.labor-act { font-size: 10.5px; color: var(--text-muted); }
.labor-act-diff { color: var(--warning); font-weight: 600; }
.labor-ot { font-size: 10px; font-weight: 700; color: var(--negative); background: var(--negative-soft); padding: 1px 5px; border-radius: 4px; }
.labor-week-foot td { font-weight: 600; border-top: 2px solid var(--border); }
.labor-report-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(560px, 1fr)); gap: 0 16px; }

/* dashboard */
.labor-dash-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 16px; }
.labor-dash-pos { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.labor-dash-person { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 2px 0 2px 15px; }
.labor-dash-nudge { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 12px; border-radius: var(--radius-sm); background: rgba(217, 178, 60, 0.12); border: 1px solid rgba(217, 178, 60, 0.4); font-size: 13.5px; }
@media (max-width: 640px) {
  .labor-tl-row { grid-template-columns: 96px 1fr; }
  .labor-report-2col { grid-template-columns: 1fr; }
}

/* Reservation Times: schedule-driven server sections */
.srv-meal-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin: 6px 0 8px; }
.srv-also-on { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--border); }
.srv-also-group { margin-bottom: 8px; }
.srv-also-pos { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; margin-bottom: 2px; }
.srv-also-person { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--text-muted); padding-left: 15px; }
.srv-meal-block { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; }
.srv-meal-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.srv-pick-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; border-bottom: 1px solid var(--border); }
.srv-pick-row:last-of-type { border-bottom: none; }
.srv-pick-name { flex: 1; font-size: 14px; }
.srv-add-row { display: flex; gap: 6px; margin-top: 8px; }
.srv-add-row input { flex: 1; }

/* Banquet: Upload BEOs */
.beo-tag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; letter-spacing: 0.02em; vertical-align: middle; }
.beo-tag-new { color: var(--positive); background: var(--positive-soft); }
.beo-tag-update { color: var(--accent); background: var(--accent-soft); }
.beo-tag-tent { color: var(--warning); background: rgba(217, 178, 60, 0.16); }
.beo-tag-cancel { color: var(--negative); background: var(--negative-soft); }
.beo-del-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.beo-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 8px 16px; }
.beo-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.beo-item-row .segment-btn { padding: 4px 10px; font-size: 12px; }

/* Orders: add items */
.vo-showall { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.vo-other-vendor { color: var(--warning); }
#vo-new-item-form input[type="checkbox"], #vo-new-item-form input[type="radio"] { width: auto; flex: 0 0 auto; }
.vo-unit-select, .vo-add-unit { width: auto; margin-left: 4px; padding: 5px 6px; font-size: 12.5px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* Price history */
.price-up { color: var(--negative); font-weight: 600; }
.price-down { color: var(--positive); font-weight: 600; }
.ph-source { font-size: 11.5px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.ph-source-past { border-color: var(--accent); color: var(--accent); }
.ph-source-import { color: var(--text-muted); }
.vo-price-flag { font-weight: 700; cursor: help; }

/* Pay rates */
.labor-upload-warn { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius-sm); background: rgba(217, 178, 60, 0.12); border: 1px solid rgba(217, 178, 60, 0.4); font-size: 13.5px; }
.labor-upload-info { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.pay-windows { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13.5px; }
.pay-windows input[type="time"] { width: auto; }
.pay-windows input[type="number"] { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 7px; }
.pay-rate-inputs { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pay-rate-inputs label { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; color: var(--text-muted); gap: 2px; }
.pay-rate-inputs input { width: 86px; text-align: right; }
.pay-rate-table td { vertical-align: middle; }
.pay-rate-table input[type="date"] { width: auto; }
.pay-split { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; cursor: pointer; }
.pay-split input { width: auto; }
.staff-pay-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.staff-pay-row { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; }
.staff-pay-on { border-color: var(--accent); background: var(--accent-soft); }
.staff-pay-job { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.staff-pay-rate { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 6px; font-size: 13px; }
.staff-pay-rate label { display: flex; align-items: center; gap: 6px; }
.staff-pay-row input[type="checkbox"], .staff-pay-row input[type="radio"] { width: auto; }
.staff-pay-rate input[type="date"] { width: auto; }
.pay-rate-table input[type="number"], .pay-rate-table input[type="date"], .pay-windows input[type="time"], .staff-pay-row input[type="number"], .staff-pay-row input[type="date"] {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 7px; font-size: 13px;
}
.pay-rate-inputs input { width: 74px; }

/* Upload Hours (payroll) */
#ph-review select, #ph-review input[type="number"] { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px; font-size: 13px; width: auto; }
.ph-split { padding: 10px 0; border-bottom: 1px solid var(--border); }
.ph-split:last-child { border-bottom: none; }
.ph-split-boxes { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.ph-split-boxes label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ph-split-boxes input { width: 80px !important; text-align: right; }
.ph-split-sum { margin-left: 8px; font-size: 12px; color: var(--positive); font-weight: 600; }
.ph-split-off { color: var(--negative); }

/* Upload Voids */
#vu-review select, #vu-review input[type="text"] { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px; font-size: 13px; width: auto; }
.comp-acct-card { border-color: var(--accent); }

/* Schedule & Labor — Edit shift (day screen) */
.labor-shift-edit-btn { margin-left: 6px; padding: 1px 8px; font-size: 11.5px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--accent); cursor: pointer; }
.labor-shift-edit-btn:hover { background: var(--accent); color: var(--on-accent, #fff); border-color: var(--accent); }
.labor-edited-tag { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); cursor: help; }
.labor-shift-editor td { background: var(--accent-soft); border-top: none; }
.labor-shift-edit-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.labor-shift-edit-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.labor-shift-edit-form label.lse-check { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 7px; color: var(--text); font-weight: 500; }
.labor-shift-edit-form select, .labor-shift-edit-form input[type="time"] { min-width: 120px; }
.labor-shift-edit-form select { min-width: 180px; }
.labor-shift-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.labor-shift-edit-actions .hint { margin-left: 4px; }

/* Schedule & Labor — special pay day (payroll HOLIDAY) */
.labor-special-banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; align-items: center; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent); }
.labor-special-banner .hint { display: block; margin-top: 2px; }
.labor-special-all { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.labor-special-rate { white-space: nowrap; color: var(--accent); font-weight: 600; }
.labor-special-rate input { width: 72px; padding: 1px 4px; font-size: 12px; margin: 0 2px; }
.ph-special { border-color: var(--accent); }
.ph-special-all { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.ph-special-own { font-size: 11px; color: var(--accent); font-weight: 600; margin-left: 4px; }

/* Schedule & Labor — banquet revenue on the calendar */
.labor-day-banq { font-size: 11.5px; font-weight: 600; color: var(--accent); }

/* Staff — Availability */
.av-versions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.av-ver { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.av-ver.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.av-now, .av-soon { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.av-now { background: var(--positive-soft); color: var(--positive); }
.av-soon { background: var(--accent-soft); color: var(--accent); }
.av-table td { vertical-align: middle; }
.av-all { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; cursor: pointer; }
.av-wins { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.av-win { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.av-win input[type="time"] { width: 120px; }
.av-win-del { border: none; background: transparent; color: var(--negative); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.av-state { font-size: 12px; font-weight: 600; white-space: nowrap; }
.av-off-all { color: var(--negative); }
.av-off-part { color: var(--warning); }
.av-open { color: var(--positive); }
.av-team th, .av-team td { text-align: center; }
.av-team td.item-name, .av-team th:first-child, .av-team td.av-note-cell, .av-team th:last-child { text-align: left; }
.avt-name { color: var(--accent); font-weight: 600; text-decoration: none; }
.avt-name:hover { text-decoration: underline; }
.av-cell { font-size: 12px; white-space: nowrap; }
.av-team td.av-off-all { background: var(--negative-soft); font-weight: 700; }
.av-team td.av-off-part { background: color-mix(in srgb, var(--warning) 12%, transparent); }
.av-note-cell { font-size: 12.5px; color: var(--text-muted); min-width: 180px; max-width: 320px; white-space: normal; }

/* Staff — Shirts */
.staff-shirts { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.staff-shirts-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 8px; }
.shirt-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.shirt-log { margin-top: 6px; font-size: 13px; }
.shirt-log td { padding-top: 5px; padding-bottom: 5px; }
.shirt-ret { color: var(--warning); font-weight: 600; }
.staff-shirt-cell { white-space: nowrap; font-size: 13px; }

/* Daily Sales — Item Sales (food + beverage) */
.is-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(560px, 1fr)); gap: 16px; }
@media (max-width: 640px) { .is-2col { grid-template-columns: 1fr; } }
.is-2col > .card { margin-bottom: 0; }
.is-2col { margin-bottom: 20px; }
.is-cal-total { font-size: 11.5px; font-weight: 600; margin-top: 4px; }
.is-old-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--warning); }
.is-cls { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 4px; font-size: 10.5px; font-weight: 700; margin-right: 4px; }
.is-cls-food { background: var(--positive-soft); color: var(--positive); }
.is-cls-beverage { background: var(--accent-soft); color: var(--accent); }
.is-cls-unclassified { background: var(--negative-soft); color: var(--negative); }
.is-row-active td { background: var(--accent-soft); }
.is-filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.is-filter-chip button { border: none; background: transparent; color: inherit; font-size: 15px; cursor: pointer; padding: 0; }

/* Item Sales — calendar day + Misc */
.is-cal-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; margin-top: 4px; }
.is-cal-body .is-cal-total { font-size: 13px; font-weight: 700; margin: 0 0 2px; }
.is-cal-line { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.is-cal-k { display: inline-block; width: 13px; height: 13px; line-height: 13px; border-radius: 3px; font-size: 9px; font-weight: 700; text-align: center; }
.is-k-food { background: var(--positive-soft); color: var(--positive); }
.is-k-bev { background: var(--accent-soft); color: var(--accent); }
.is-k-misc, .is-cls-misc { background: color-mix(in srgb, #7FA7C9 20%, transparent); color: #7FA7C9; }

/* Settings — Sales Items */
.si-counts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; }
.si-new { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--accent); border: none; }
.si-new-btn { cursor: pointer; margin-left: 6px; }
.si-new-btn:hover { background: var(--accent); color: var(--on-accent, #fff); }
.si-bulk, .si-filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.si-filters { margin-bottom: 12px; }
.si-filters input[type="text"] { max-width: 240px; }
.si-check { display: flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; }
.si-seg { margin-bottom: 0; }
.si-seg .segment-btn { padding: 4px 10px; font-size: 12px; }
.si-hidden-row { opacity: 0.55; }

/* Upload windows — compact, widen once a preview table shows up (never full screen) */
.modal-dialog-upload { max-width: 95vw; width: min(640px, 95vw); max-height: 90vh; overflow-y: auto; transition: width 0.15s ease; }
.modal-dialog-upload:has(table), .modal-dialog-upload:has(.labor-cal-grid), .modal-dialog-upload:has(.ph-split) { width: min(1180px, 95vw); }

/* Uploads screen */
.topbar-uploads-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.topbar-uploads-btn i { font-size: 17px; color: var(--accent); }
.topbar-uploads-btn:hover { border-color: var(--accent); }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.up-card { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.up-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.up-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.up-card .btn i { font-size: 15px; vertical-align: -2px; }
.up-status { font-size: 12.5px; font-weight: 600; padding: 5px 9px; border-radius: 6px; }
.up-status-loading, .up-status-none, .up-status-info { color: var(--text-muted); background: var(--surface); }
.up-status-ok { color: var(--positive); background: var(--positive-soft); }
.up-status-due { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); }
.up-status-bad { color: var(--negative); background: var(--negative-soft); }
.up-view { font-size: 12.5px; color: var(--accent); text-decoration: none; margin-top: auto; }
.up-view:hover { text-decoration: underline; }
.up-report { font-size: 12.5px; color: var(--text-muted); }
.up-side-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); padding: 12px 10px 4px; }

/* Monthly inventory — item lookup + month check */
.inv-lookup-search { position: relative; max-width: 460px; margin: 0 0 14px; }
.inv-lookup-search input { width: 100%; }
.inv-lookup-results { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.inv-lookup-results:empty { display: none; }
.inv-lookup-hit { display: block; width: 100%; text-align: left; background: transparent; border: none; color: var(--text); padding: 8px 12px; cursor: pointer; font-size: 14px; }
.inv-lookup-hit:hover { background: var(--accent-soft); }
.count-lookup, .inv-check-item { color: inherit; text-decoration: none; }
.count-lookup:hover, .inv-check-item:hover { color: var(--accent); text-decoration: underline; }
.inv-lookup-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.inv-lookup-2col > .card { margin-bottom: 16px; }
.inv-flag { padding: 10px 12px; border-radius: var(--radius-sm); margin: 6px 0 14px; font-size: 13.5px; font-weight: 600; }
.inv-flag-bad { background: var(--negative-soft); color: var(--negative); }
.inv-flag-warn { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); }
.inv-row-bad td { background: var(--negative-soft); }
.inv-row-warn td { background: color-mix(in srgb, var(--warning) 10%, transparent); }
.inv-flag-dot { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%; font-weight: 800; font-size: 12px; cursor: help; }
.inv-flag-dot-bad { background: var(--negative); color: #fff; }
.inv-flag-dot-warn { background: var(--warning); color: #1a1a1a; }
.inv-why { font-size: 12.5px; max-width: 520px; }
.inv-ok { color: var(--positive); font-weight: 600; }
.inv-notyet { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.inv-notyet summary { cursor: pointer; font-weight: 600; }

/* In-screen month picker (← Month →) — replaces the old top-bar Month box */
.month-nav { display: inline-flex; align-items: center; gap: 8px; }
.month-nav-label { position: relative; background: transparent; border: none; color: var(--text); font-family: var(--font-display); font-size: 18px; font-weight: 700; cursor: pointer; padding: 2px 6px; border-radius: var(--radius-sm); }
.month-nav-label:hover { background: var(--accent-soft); color: var(--accent); }
.month-nav-input { position: absolute; left: 0; bottom: 0; width: 100%; height: 0; opacity: 0; pointer-events: none; border: 0; padding: 0; }

.comp-badge-discount { background: color-mix(in srgb, #7FA7C9 20%, transparent); color: #7FA7C9; }

/* ---------- Phone layout guard (≤ 780px) ----------
   Nothing may be wider than the screen: a wide table or long word used to stretch
   the whole page past the phone's width, which let the page slide sideways and
   pushed the fixed bottom bar out of place. Now the page is always exactly screen
   width; wide tables scroll sideways inside their own box (mobile.js wraps them). */
@media (max-width: 780px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  #app-screen { grid-template-columns: minmax(0, 1fr); }
  .app-body, .main, .view-root { min-width: 0; max-width: 100%; }
  .main { overflow-x: hidden; }
  .card, .stat-card, .modal-dialog { min-width: 0; max-width: 100%; }
  .card, .stat-card, .hint, .empty-state, .item-name, p, td, th, h1, h2, h3 { overflow-wrap: break-word; }
  .auto-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .auto-table-scroll > table { min-width: 100%; }
  .card-header { flex-wrap: wrap; gap: 8px; }
  .topbar { gap: 10px; margin-bottom: 18px; }
  .topbar h1 { font-size: 21px; min-width: 0; }
  .topbar-uploads-btn span { display: none; }
  .sidebar { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .main { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .auto-table-scroll { overflow: visible !important; } }

/* Banquet Upload (BEO Proposal + Booking Report) */
.beo-two-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 16px; margin-bottom: 12px; }
.beo-two-files label { font-weight: 600; }
.beo-tag-nobeo { background: color-mix(in srgb, #7FA7C9 20%, transparent); color: #7FA7C9; }
.beo-bk-adds { font-size: 11.5px; color: var(--accent); margin-top: 2px; }
.beo-diffs { margin-top: 10px; font-size: 12.5px; color: var(--text-muted); }
.bq-event-details { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; }
.bq-event-details strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 6px; }
.bq-event-details-text { white-space: pre-wrap; line-height: 1.5; }

/* ---------- Managers Schedule (BOH + Dashboard) ---------- */
.ms-header { flex-wrap: wrap; gap: 10px; }
.ms-header .month-nav { margin-right: auto; }
.ms-help { font-size: 12px; color: var(--text-muted); margin: 4px 0 10px; }
.ms-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ms-month-label { cursor: default; min-width: 130px; text-align: center; }
.ms-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-muted); margin: 8px 0 4px; }
.ms-key-item b { color: var(--text); font-family: var(--font-mono); font-weight: 600; }
.ms-cell { cursor: pointer; min-height: 96px; position: relative; transition: border-color 0.15s ease, background 0.15s ease; }
.ms-cell:hover, .ms-cell:focus-visible { border-color: var(--accent); background: var(--surface-2); outline: none; }
.ms-lines { display: flex; flex-direction: column; gap: 2px; }
.ms-line { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; line-height: 1.35; min-width: 0; }
.ms-line-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ms-line-time { font-family: var(--font-mono); color: var(--accent); white-space: nowrap; }
.ms-line-off .ms-line-name, .ms-line-off .ms-line-time { color: var(--text-muted); }
.ms-line-conflict .ms-line-name, .ms-line-conflict .ms-line-time { color: var(--negative); font-weight: 600; }
.ms-dayoff-chip { margin-top: 3px; font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: var(--negative-soft); color: var(--negative); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-count { display: none; font-size: 11px; color: var(--accent); font-weight: 600; }
.ms-grid-compact .ms-cell { min-height: 78px; }
.ms-day-dialog { max-width: 620px; }
.ms-day-table { width: 100%; margin: 8px 0; }
.ms-day-table input.cell-input { width: 90px; text-align: center; font-family: var(--font-mono); }
.ms-row-btns { white-space: nowrap; text-align: right; }
.ms-row-btns .btn { margin-left: 4px; }
.ms-flag { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: var(--negative-soft); color: var(--negative); font-weight: 600; }
.ms-dayoff-note { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--negative-soft); color: var(--negative); font-size: 13px; margin-bottom: 6px; }
.ms-day-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ms-copy-mode { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.ms-copy-mode label { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.ms-key-row, .ms-mgr-row, .ms-mgr-add { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.ms-key-row .ms-key-code { width: 80px; flex: none; font-family: var(--font-mono); }
.ms-key-row .ms-key-label, .ms-mgr-row .ms-mgr-name, .ms-mgr-add input { flex: 1; min-width: 0; }
.ms-mgr-add { margin-top: 12px; }
.ms-popup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; padding-right: 36px; }
.ms-detail { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.ms-detail-table { width: auto; min-width: 260px; }
.ms-detail-table td, .ms-detail-table th { padding-right: 24px; }
.ms-dash-header { flex-wrap: wrap; gap: 8px; }
.ms-dash-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ms-week-cell { font-family: var(--font-mono); white-space: nowrap; }
.ms-week-table th.ms-today-col { color: var(--accent); }
.ms-week-table td.ms-today-col { background: var(--accent-soft); }
@media (max-width: 780px) {
  .ms-header .month-nav { margin-right: 0; }
  .ms-grid .ms-lines { display: none; }
  .ms-grid .ms-count { display: block; }
  .ms-cell { min-height: 56px; padding: 6px; }
  .ms-grid-compact .ms-cell { min-height: 52px; }
  .ms-day-table input.cell-input { width: 64px; }
  .ms-day-table th, .ms-day-table td { padding-left: 4px; padding-right: 4px; }
}

/* ---------- Uploads: "?" walkthroughs ---------- */
.up-help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-left: 6px; padding: 0; vertical-align: 2px;
  border-radius: 50%; border: 1px solid var(--accent); background: var(--accent-soft);
  color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer;
}
.up-help:hover { background: var(--accent); color: var(--on-accent, var(--bg)); }
.uh-section { margin-bottom: 14px; }
.uh-section h3 { margin: 0 0 6px; font-size: 15px; }
.uh-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13px; }
.uh-sys { font-weight: 700; color: var(--accent); }
.uh-arrow { color: var(--text-muted); }
.uh-steps { margin: 10px 0 0; padding-left: 22px; line-height: 1.6; }
.uh-final { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 13px; margin-bottom: 10px; }
.uh-tips { margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Orders: more than one order for the same vendor + day ---------- */
.vo-sameday-list { display: flex; flex-direction: column; gap: 6px; }
.vo-sameday-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* ---------- Staff: filter bar + Inactive (terminated) ---------- */
.staff-filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.staff-filter-bar input[type="search"], .staff-filter-bar select { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; }
.staff-filter-bar input[type="search"] { max-width: 220px; }
.staff-filter-bar select { max-width: 240px; }
.staff-inactive { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.staff-inactive-toggle { background: none; border: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; text-align: left; }
.staff-inactive-toggle .hint { font-weight: 400; }
.staff-inactive-table { margin-top: 8px; }
.staff-inactive-table tbody tr { opacity: 0.8; }

/* ---------- Staff reports ---------- */
.staff-head-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sh-preview td { height: 30px; vertical-align: bottom; }
.sh-line { display: block; min-width: 50px; border-bottom: 1px solid var(--text-muted); height: 14px; }

/* ---------- Orders: Build Order List ---------- */
.ob-top { margin-bottom: 12px; }
.ob-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.ob-layout > .card { margin-bottom: 0; }
.ob-list-card { position: sticky; top: 12px; }
.ob-vendor-group { margin-bottom: 12px; }
.ob-vendor-head { font-weight: 700; color: var(--accent); font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.ob-vendor-head.ob-novendor { color: var(--warning); }
.ob-line { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.ob-line-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ob-line-qty { white-space: nowrap; font-size: 12px; }
.ob-qty, .ob-add-qty { width: 70px; text-align: center; }
.ob-list-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ob-search-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ob-search-row input[type="search"] { flex: 1; min-width: 200px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; }
.ob-browse-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); cursor: pointer; text-transform: none; letter-spacing: normal; }
.ob-cat-head { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 12px 0 2px; }
.ob-results-table td { padding-top: 6px; padding-bottom: 6px; }
.ob-results-table tr.ob-on-list td { background: var(--accent-soft); }
.ob-add-cell { width: 90px; }
.ob-create { margin: 10px 0 0; }
.ob-lowstock { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; margin-bottom: 10px; background: var(--surface-2); }
.ob-lowstock-toggle { background: none; border: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; display: flex; align-items: center; gap: 6px; }
.ob-lowstock-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid var(--border); font-size: 13px; flex-wrap: wrap; }
.ob-rev-dialog { max-width: 820px; width: 100%; }
.ob-rev-group { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; }
.ob-rev-novendor { border-color: var(--warning); }
.ob-rev-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ob-rev-head select, .ob-rev-line select, .ob-rev-date input { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px; font-size: 13px; }
.ob-rev-date { display: flex; align-items: center; gap: 6px; font-size: 13px; text-transform: none; letter-spacing: normal; }
.ob-rev-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid var(--border); font-size: 13.5px; flex-wrap: wrap; }
.ob-rev-dup { background: rgba(217, 178, 60, 0.07); }
.ob-rev-dupchoice { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.ob-rev-dupchoice label, .ob-rev-savevendor { display: flex; align-items: center; gap: 6px; font-weight: 400; text-transform: none; letter-spacing: normal; font-size: 12.5px; }
.ob-done-list { display: flex; flex-direction: column; gap: 8px; }
.ob-done-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .ob-layout { grid-template-columns: minmax(0, 1fr); }
  .ob-list-card { position: static; }
}
.ob-layout .hint, .ob-rev-dialog .hint { font-size: 12px; color: var(--text-muted); }
.ob-layout p.hint, .ob-layout .empty-state { font-size: 13px; }
.ob-rev-dialog > p.hint:first-of-type { font-size: 13px; }
.ob-lowstock-toggle { font-size: 13.5px; }

/* ---------- Costing ---------- */
.cs-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.cs-tab { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cs-tab.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.cs-head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.cs-stats > div { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); display: flex; flex-direction: column; }
.cs-stats b { font-family: var(--font-display); font-size: 22px; }
.cs-stats span { font-size: 12px; color: var(--text-muted); }
.cs-stats .cs-stat-warn b { color: var(--warning); }
.cs-stats .cs-stat-bad b { color: var(--negative); }
.cs-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.cs-filters input[type="search"], .cs-filters select { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; }
.cs-filters input[type="search"] { min-width: 200px; flex: 1; max-width: 280px; }
.cs-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); text-transform: none; letter-spacing: normal; cursor: pointer; }
.cs-table .hint, .cs-m-dialog .hint, .cs-filters .hint { font-size: 12px; color: var(--text-muted); }
.cs-subhead td { background: var(--surface-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); padding-top: 8px; padding-bottom: 8px; }
.cs-subhead .hint { text-transform: none; letter-spacing: normal; font-weight: 400; }
.cs-offmenu { opacity: 0.55; }
.cs-made { min-width: 220px; }
.cs-needs { display: flex; flex-direction: column; gap: 4px; }
.cs-sug { font-size: 13px; }
.cs-needs-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.cs-chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); margin: 1px 4px 1px 0; }
.cs-chip-warn { background: rgba(217, 178, 60, 0.15); }
.cs-flag { display: inline-block; font-weight: 700; font-size: 12.5px; padding: 1px 8px; border-radius: 999px; }
.cs-flag-ok { background: var(--positive-soft); color: var(--positive); }
.cs-flag-warn { background: rgba(217, 178, 60, 0.15); color: var(--warning); }
.cs-flag-bad { background: var(--negative-soft); color: var(--negative); }
.linklike { background: none; border: none; padding: 0; color: var(--accent); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.cs-m-dialog { max-width: 760px; width: 100%; }
.cs-m-sugs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.cs-m-sug { background: var(--surface-2); border: 1px dashed var(--accent); color: var(--text); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.cs-m-sug:hover { background: var(--accent-soft); }
.cs-m-label { font-weight: 700; font-size: 13px; margin: 6px 0 6px; }
.cs-m-comp { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.cs-m-comp .cs-m-item { flex: 1; min-width: 200px; }
.cs-m-comp input { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; font-size: 13px; }
.cs-m-comp .cs-m-oz { width: 110px; }
.cs-m-cost { min-width: 64px; text-align: right; font-size: 13px; }
.cs-m-sum { margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; }
.cs-m-actions { align-items: center; }
.cs-up-sum { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-size: 13.5px; }
.cs-up-list { margin: 0 0 4px; padding-left: 20px; font-size: 12.5px; }
.cs-pour-table input.cell-input { width: 80px; text-align: right; }
.cs-def-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cs-def-table { width: 100%; }
.cs-def-table input.cell-input { width: 90px; text-align: right; }
.cs-target-table { max-width: 520px; margin-top: 10px; }
.cs-t-sub { padding-left: 24px !important; color: var(--text-muted); }
@media (max-width: 780px) {
  .cs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-def-grid { grid-template-columns: 1fr; }
}
.cs-sell { white-space: nowrap; }
.cs-sell-up { color: var(--warning); font-weight: 700; }
.cs-m-sell { margin-top: 6px; font-size: 15px; }
.cs-bottle-tag { background: var(--accent-soft); color: var(--accent); }
.cs-m-wholeval { width: 150px; font-size: 13px; font-weight: 600; padding: 6px 4px; }
.cs-where { font-weight: 400; margin-top: 1px; }
.cs-dup-tag { background: rgba(217, 178, 60, 0.15); color: var(--warning); }
.cs-m-same { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 4px; }
.cs-m-same .cs-check { color: var(--text); }
.cs-del-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.cs-del-opts select { margin-left: 6px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 8px; }

/* ---------- Costing → Sales ---------- */
.cs-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-range select, .cs-range input { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; }
.cs-range .hint { font-size: 12px; color: var(--text-muted); }
.cs-stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cs-eng-legend { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.cs-eng-legend .hint { font-size: 12px; color: var(--text-muted); }
.cs-eng-btn { border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; background: var(--surface-2); color: var(--text); }
.cs-eng-btn.active { outline: 2px solid currentColor; }
.cs-eng-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.cs-eng-star { background: var(--positive-soft); color: var(--positive); }
.cs-eng-work { background: rgba(217, 178, 60, 0.15); color: var(--warning); }
.cs-eng-puzzle { background: var(--accent-soft); color: var(--accent); }
.cs-eng-dog { background: var(--negative-soft); color: var(--negative); }
.cs-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.cs-sort.active { color: var(--accent); }
@media (max-width: 780px) { .cs-stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Orders: phone receiving cards, broken, photos ---------- */
.vor-invoice { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.vor-invoice label { font-size: 13px; color: var(--text-muted); text-transform: none; letter-spacing: normal; margin: 0; }
.vor-invoice input { flex: 1; min-width: 160px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 15px; }
.vor-list { display: flex; flex-direction: column; gap: 10px; }
.vor-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--surface-2); }
.vor-card-done { opacity: 0.65; padding: 8px 14px; }
.vor-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vor-name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.vor-unit { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.vor-qty { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.vor-qty b { color: var(--text); font-family: var(--font-mono); }
.vor-status { margin-top: 4px; font-size: 13.5px; }
.vor-st-ok { color: var(--positive); font-weight: 600; }
.vor-st-warn { color: var(--warning); }
.vor-st-bad { color: var(--negative); font-weight: 600; }
.vor-btns { display: flex; gap: 8px; margin-top: 10px; }
.vor-btns .btn { min-height: 44px; font-size: 15px; }
.vor-btns .vor-recv { flex: 1.4; }
.vor-btns .vor-nc { flex: 1; }
.vor-btns .vor-icon { width: 48px; flex: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.vor-done-head { margin: 16px 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.vor-big { width: 100%; min-height: 48px; font-size: 16px; }
.vor-some { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.vor-some label { margin: 0; text-transform: none; letter-spacing: normal; font-size: 14px; }
.vor-some input { width: 110px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 15px; }
.vor-photo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.vor-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.vor-photo { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.vor-photo .attachment-thumb { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; }
.vor-photo figcaption { font-size: 12px; }
.vor-photo figcaption .hint { font-size: 11px; color: var(--text-muted); }
.cs-usage-table td, .cs-usage-table th { white-space: nowrap; }
.cs-usage-table td.item-name { white-space: normal; min-width: 200px; }
.csu-flagged td { background: rgba(184, 89, 63, 0.05); }
.cs-help { font-size: 12.5px; color: var(--text-muted); margin: 0 0 10px; }
#cs-body p.hint { font-size: 12px; color: var(--text-muted); }

/* ---------- BEO meeting notes ---------- */
.bmn-box { border: 1px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; background: var(--accent-soft); }
.bmn-box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.bmn-box-head .hint { font-size: 12px; color: var(--text-muted); }
.bmn-box textarea { width: 100%; min-height: 180px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-size: 15px; line-height: 1.5; resize: vertical; }
.bmn-box-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.bmn-list { margin: 12px 0; }
.bmn-entry { border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; margin: 8px 0; }
.bmn-entry-head { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.bmn-entry-body { white-space: pre-wrap; font-size: 14px; line-height: 1.5; }
.bmn-rep-event { padding: 12px 0; border-top: 1px solid var(--border); }
.bmn-rep-event:first-of-type { border-top: none; }
.bmn-rep-date { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.bmn-rep-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 2px 0 4px; }
.bmn-r-dialog { max-width: 760px; width: 100%; }

/* ---------- Monthly Totals: category pop-up + check sales columns ---------- */
.tot-cat-row { cursor: pointer; }
.tot-cat-row:hover td { background: var(--surface-2); }
.tot-cat-link { color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--text-muted); }
.tot-cat-row:hover .tot-cat-link { color: var(--accent); border-color: var(--accent); }
.tot-cat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding-right: 36px; }
.tot-cat-btns { display: flex; gap: 8px; }
.tot-cat-head .hint { font-size: 12.5px; color: var(--text-muted); }
.tot-item-link { color: var(--text); text-decoration: none; }
.tot-item-link:hover { color: var(--accent); }
.tot-cat-total td { font-weight: 700; }
.tot-notcounted { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; }
.inv-drinks { font-size: 11px; color: var(--text-muted); font-family: var(--font-body); white-space: normal; max-width: 160px; margin-left: auto; }
.inv-partial { font-size: 12.5px; color: var(--warning); margin: 0 0 10px; }
@media print {
  .no-print { display: none !important; }
  .tot-cat-table th, .tot-cat-table td { color: #000 !important; }
}
.inv-check-exp .inv-sep-l { border-right: 2px solid var(--text-muted); padding-right: 14px; }
.inv-check-exp .inv-sep-r { padding-left: 14px; }
.inv-check-exp th.inv-sep-l { border-right: 2px solid var(--text-muted); }
.inv-extra { color: var(--warning); }
.inv-check-exp th { white-space: nowrap; }
.inv-check-exp td.num strong { white-space: nowrap; }
.inv-check-exp .item-name { min-width: 150px; }

/* ---------- Sold breakdown pop-up ---------- */
.sb-link { color: var(--accent); text-decoration: none; border-bottom: 1px dashed var(--accent); font-weight: 600; }
.sb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding-right: 36px; }
.sb-head .hint, .sb-section .hint { font-size: 12.5px; color: var(--text-muted); }
.sb-section { margin-bottom: 18px; }
.sb-via { width: 100%; }
.sb-via td { vertical-align: middle; }
.sb-days td, .sb-days th { white-space: nowrap; }

/* ---------- Comps / Waste print ---------- */
.cmp-print-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding-right: 36px; }
.cmp-print-summary { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.cmp-print-totals { display: flex; gap: 18px; flex-wrap: wrap; }
.cmp-print-totals > div { display: flex; flex-direction: column; min-width: 90px; }
.cmp-print-totals span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.cmp-print-totals b { font-size: 18px; font-family: var(--font-display); }
.cmp-print-totals small { font-size: 11px; color: var(--text-muted); }
.cmp-print-grand b { color: var(--accent); }
.cmp-print-reasons { flex: 1; min-width: 220px; font-size: 12.5px; }
.cmp-print-reason { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--border); padding: 2px 0; }
.cmp-print-reason small { color: var(--text-muted); }
.cmp-print-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 4px; }
.cmp-print-table { width: 100%; font-size: 12.5px; }
.cmp-print-table td, .cmp-print-table th { padding: 5px 8px; }
.cmp-print-note { font-size: 11px; color: var(--text-muted); font-style: italic; }
.cmp-print-total td { font-weight: 700; border-top: 2px solid var(--border); }
.cmp-print-foot { font-size: 11px; color: var(--text-muted); margin-top: 10px; }
@media print {
  .cmp-print, .cmp-print * { color: #000 !important; }
  .cmp-print-summary { border-color: #999 !important; }
  .cmp-print-table th, .cmp-print-table td { border-bottom: 1px solid #ccc !important; }
}

/* ---------- Pour Sheet: count items / per-item target ---------- */
.cs-flag-off { background: var(--surface-2); color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.cs-ungraded td.item-name { color: var(--text-muted); }
.cs-count-val { font-family: var(--font-mono); white-space: nowrap; }
.cs-p-set { padding: 2px 8px; }
.cs-pi-dialog { max-width: 560px; }
.cs-pi-choice { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.cs-pi-choice .cs-check { color: var(--text); flex-wrap: wrap; }
.cs-pi-count { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px 8px; margin-top: 6px; }

/* ---------- New items to match (after Sales By Items upload) ---------- */
.nim-dialog { max-width: 900px; }
.nim-intro { font-size: 13px; margin-bottom: 8px; }
.nim-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.nim-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(200px, 1.6fr) auto 130px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.nim-pick input { width: 100%; }
.nim-sugs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.nim-whole { white-space: nowrap; }
@media (max-width: 720px) {
  .nim-row { grid-template-columns: 1fr 1fr; }
  .nim-name, .nim-pick { grid-column: 1 / -1; }
}

/* ---------- By the Bottle report ---------- */
.btl-table { width: 100%; border-collapse: collapse; }
.btl-table th, .btl-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.btl-table th.num, .btl-table td.num { text-align: right; font-family: var(--font-mono); }
.btl-kind td { background: var(--surface-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.btl-under { color: var(--negative); font-weight: 600; }
.cs-pi-dialog .hint, .nim-dialog .hint, .btl-table .hint, .btl-note { font-size: 12px; color: var(--text-muted); }
.cs-pi-dialog .cs-check .hint { flex-basis: 100%; padding-left: 24px; }
.cs-stats .css-nic { margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 11.5px; color: var(--warning); text-align: left; cursor: pointer; }
.cs-stats .css-nic:hover { text-decoration: underline; }

/* ---------- Monthly Totals → Export to Excel ---------- */
.ie-dialog { max-width: 520px; }
.ie-dialog .hint { font-size: 12.5px; color: var(--text-muted); }
.ie-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ie-list { max-height: 55vh; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.ie-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer; text-transform: none; letter-spacing: normal; font-size: 14px; color: var(--text); }
.ie-row:last-child { border-bottom: 0; }
.ie-row:hover { background: var(--surface-2); }
.ie-row input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.ie-name { flex: 1; font-weight: 600; }
.ie-meta { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; }


/* ---------- Print: the print window's own Layout + fit to page (print-tools.js) ---------- */
/* While printing (and while measuring the width just before): open every scroll box. */
html.printing #modal-root .table-scroll-wrap,
html.printing #modal-root .auto-table-scroll,
html.printing #modal-root [class*="scroll"] { overflow: visible !important; max-height: none !important; height: auto !important; }
html.printing #modal-root table { min-width: 0 !important; }
html.po-measure #modal-root .modal-overlay { display: block !important; padding: 0 !important; }
html.po-measure #modal-root .modal-dialog { width: var(--po-width) !important; max-width: none !important; min-width: 0 !important; height: auto !important; max-height: none !important; overflow: visible !important; }
@media print {
  /* shrink-to-fit worked out for both layouts — the one picked in the print window applies */
  html.printing #modal-root .modal-dialog { zoom: var(--po-zoom-p, 1); width: var(--po-dw-p, auto) !important; max-width: none !important; padding: 0 !important; }
  #modal-root table { font-size: 11px; }
  #modal-root th, #modal-root td { padding: 4px 6px !important; }
  #modal-root tr, #modal-root .card { break-inside: avoid; }
  #modal-root thead { display: table-header-group; }
}
@media print and (orientation: landscape) {
  html.printing #modal-root .modal-dialog { zoom: var(--po-zoom-l, 1); width: var(--po-dw-l, auto) !important; }
}
/* 🖨 Print / Save PDF page (VLPrintDoc): only it prints; never shown on screen */
#vl-print-doc { display: none; }
@media print {
  html.vl-printdoc body > #modal-root { display: none !important; }
  html.vl-printdoc body > #vl-print-doc { display: block !important; visibility: visible !important; color: #000; font-family: var(--font-body, system-ui, sans-serif); font-size: 10pt; }
  html.vl-printdoc #vl-print-doc * { visibility: visible !important; }
  #vl-print-doc .pd-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin: 0 0 3px; }
  #vl-print-doc .pd-right { text-align: right; }
  #vl-print-doc .pd-hr { border: 0; border-top: 1px solid #ccc; margin: 8px 0; }
  #vl-print-doc .pd-table { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 9pt; }
  #vl-print-doc .pd-table th { text-align: left; font-weight: 700; border-bottom: 1.5px solid #000; padding: 4px 6px; background: #f1ece2; }
  #vl-print-doc .pd-table td { border-bottom: 1px solid #ddd; padding: 3px 6px; vertical-align: top; }
  #vl-print-doc .pd-table tr { break-inside: avoid; }
  #vl-print-doc .pd-table thead { display: table-header-group; }
  #vl-print-doc .pd-lined td { border-bottom: 1px solid #999; height: 18px; }
  #vl-print-doc .pd-foot { margin-top: 10px; font-size: 8pt; color: #666; }
}
.btl-onhand { font-weight: 700; }

/* ---------- Items → Compare with Excel list ---------- */
.ilc-dialog .hint { font-size: 12.5px; color: var(--text-muted); }
.ilc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ilc-box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; background: var(--surface-2); }
.ilc-sec { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; padding: 6px 0; border-bottom: 1px dotted var(--border); }
.ilc-sec:last-child { border-bottom: 0; }
.ilc-sec select { max-width: 220px; }
.ilc-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ilc-nol { max-height: 46vh; overflow-y: auto; }
.ilc-nol-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 10px 0 4px; }
.ilc-nol-row { color: var(--text); padding: 3px 0; }
.ilw-src { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; background: var(--surface-2); }
.ilw-src > div { display: flex; flex-direction: column; min-width: 0; }
.ilw-src span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.ilw-src b { overflow-wrap: anywhere; }
.ilw-sugs { margin-bottom: 6px; }
.ilw-sug { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--border); flex-wrap: wrap; }
.ilw-actions { flex-wrap: wrap; }
@media (max-width: 720px) {
  .ilw-src { grid-template-columns: 1fr 1fr; }
  .ilw-src > div:first-child { grid-column: 1 / -1; }
  .ilc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Dashboard feed: Clear all */
.dashboard-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 10px 8px; }
.dashboard-feed-clear-btn { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font: inherit; font-size: 12px; padding: 3px 9px; cursor: pointer; }
.dashboard-feed-clear-btn:hover { color: var(--text); border-color: var(--accent); }
.dashboard-feed-clear-btn:disabled { opacity: 0.6; cursor: default; }
.beo-tag-same { color: var(--text-muted); background: var(--surface-2); }

/* ---------- Dashboard → Take a Break (games.js) ---------- */
.gm-card .hint { font-size: 12.5px; color: var(--text-muted); }
.gm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.gm-top h2 { margin: 0; }
.gm-pick { display: flex; align-items: center; gap: 8px; }
.gm-x { background: none; border: 0; color: var(--text-muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.gm-x:hover { color: var(--text); }
.gm-start { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.gm-won { margin: 0; font-size: 15px; }
.gm-levels, .gm-board-tabs { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.gm-lvl, .gm-board-tab { background: transparent; border: 0; color: var(--text-muted); font: inherit; font-size: 13px; padding: 6px 14px; cursor: pointer; }
.gm-board-tab { font-size: 11.5px; padding: 3px 9px; }
.gm-lvl + .gm-lvl, .gm-board-tab + .gm-board-tab { border-left: 1px solid var(--border); }
.gm-lvl.active, .gm-board-tab.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.gm-rules { margin: 0; max-width: 560px; }
.gm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.gm-lvl-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.gm-clock { font-family: var(--font-mono); font-size: 18px; font-weight: 600; }
.gm-msg { margin: 8px 0 0; min-height: 1.2em; }
.gm-board { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; max-width: 420px; }
.gm-board-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 6px; flex-wrap: wrap; }
.gm-board-list { margin: 0; padding-left: 22px; font-size: 13.5px; }
.gm-board-list li { padding: 3px 0; }
.gm-board-list li > span { display: inline-block; min-width: 180px; }
.gm-board-list li b { font-family: var(--font-mono); }
.gm-board-list li.me { color: var(--accent); }
/* sudoku */
.sdk-wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.sdk-grid { display: grid; grid-template-columns: repeat(9, 1fr); width: min(100%, 396px); aspect-ratio: 1; border: 2px solid var(--text-muted); border-radius: 4px; overflow: hidden; touch-action: manipulation; }
.sdk-c { border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); color: var(--accent); font: inherit; font-size: clamp(14px, 4.2vw, 21px); font-weight: 600; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 0; }
.sdk-c.given { color: var(--text); font-weight: 700; }
.sdk-c.br { border-right: 2px solid var(--text-muted); }
.sdk-c.bb { border-bottom: 2px solid var(--text-muted); }
.sdk-c.peer { background: var(--surface-2); }
.sdk-c.same { background: rgba(198, 138, 46, 0.18); }
.sdk-c.sel { background: rgba(198, 138, 46, 0.35); }
.sdk-c.wrong { color: var(--negative); background: var(--negative-soft); }
.sdk-notes { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; height: 100%; padding: 1px; }
.sdk-notes i { font-style: normal; font-size: clamp(7px, 1.6vw, 10px); color: var(--text-muted); font-weight: 500; display: flex; align-items: center; justify-content: center; }
.sdk-pad { display: grid; grid-template-columns: repeat(3, 52px); gap: 6px; }
.sdk-num, .sdk-tool { height: 46px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; }
.sdk-num:hover, .sdk-tool:hover { border-color: var(--accent); }
.sdk-num.done { opacity: 0.35; }
.sdk-tool { font-size: 12.5px; font-weight: 600; }
.sdk-tool.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
/* word search */
.ws-wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.ws-grid { display: grid; width: min(100%, 420px); aspect-ratio: 1; gap: 2px; touch-action: none; user-select: none; }
.ws-c { border: 0; border-radius: 4px; background: var(--surface-2); color: var(--text); font-family: var(--font-mono); font-size: clamp(11px, 2.6vw, 17px); font-weight: 600; padding: 0; cursor: pointer; min-width: 0; }
.ws-c:hover { background: var(--accent-soft); }
.ws-c.found { background: rgba(122, 154, 99, 0.35); color: var(--text); }
.ws-c.start { background: var(--accent); color: var(--on-accent, #1a140c); }
.ws-words { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; font-family: var(--font-mono); font-size: 13.5px; }
.ws-words li { padding: 3px 0; }
.ws-words li.found { text-decoration: line-through; color: var(--text-muted); }
@media (max-width: 720px) {
  .sdk-pad { grid-template-columns: repeat(6, 1fr); width: 100%; }
}
/* games: best times on the right, hideable */
.gm-layout { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
#gm-game { flex: 1 1 520px; min-width: 0; }
#gm-side { flex: 0 0 280px; max-width: 100%; }
#gm-side.gm-side-hidden { flex: 0 0 auto; }
#gm-side .gm-board { margin-top: 0; border-top: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); max-width: none; }
.gm-board-head { margin-bottom: 8px; }
.gm-board-hide, .gm-side-show { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font: inherit; font-size: 11.5px; font-weight: 600; text-transform: none; letter-spacing: normal; padding: 2px 9px; cursor: pointer; }
.gm-board-hide:hover, .gm-side-show:hover { color: var(--text); border-color: var(--accent); }
.gm-side-show { font-size: 12.5px; padding: 5px 10px; }
#gm-side .gm-board-tabs { margin-bottom: 8px; }
#gm-side .gm-board-list li > span { min-width: 0; flex: 1; }
#gm-side .gm-board-list li { display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 900px) { #gm-side { flex: 1 1 100%; } }

/* ---------- Banquet Bars (banquet-bars.js) ---------- */
.bb-table td { vertical-align: top; }
.bb-table .bb-bev { font-size: 13px; color: var(--text-muted); max-width: 320px; }
.bb-table tr.bb-past td { opacity: 0.75; }
.bb-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.bb-needs { color: var(--warning); background: rgba(217, 178, 60, 0.15); }
.bb-started { color: var(--accent); background: var(--accent-soft); }
.bb-closed { color: var(--positive); background: var(--positive-soft); }
.bb-nn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); text-transform: none; letter-spacing: normal; cursor: pointer; white-space: nowrap; }
.bb-changed { font-size: 12px; color: var(--warning); margin-top: 2px; }
.bb-hidden { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 8px; }
.bb-hidden summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.bb-type { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.bb-type .cs-check { color: var(--text); font-size: 14px; align-items: flex-start; }
.bq-section-header .bb-cal { float: right; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; text-transform: none; letter-spacing: normal; font-weight: 400; }
#bb-card-wrap .hint, .bb-cal .hint { font-size: 12.5px; color: var(--text-muted); }
.bb-beo { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px dashed var(--text-muted); }
.bb-beo:hover { color: var(--accent); border-color: var(--accent); }
.bb-table td.num .bb-nn { font-family: var(--font-body); }

/* ---------- Training (training.js / training-editor.js) ---------- */
.tr-welcome { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.tr-h1 { font-family: var(--font-display); font-size: 26px; margin: 0 0 4px; }
.tr-intro { max-width: 680px; line-height: 1.55; margin: 6px 0 14px; color: var(--text); }
.tr-mgr-btns { display: flex; gap: 8px; }
.tr-rolebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tr-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0; }
.tr-rolebar select { min-width: 220px; }
.tr-stats { display: flex; gap: 10px; margin-left: auto; }
.tr-stats > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 14px; text-align: center; display: flex; flex-direction: column; }
.tr-stats b { font-family: var(--font-display); font-size: 20px; }
.tr-stats span { font-size: 11.5px; color: var(--text-muted); }
.tr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tr-grid { grid-template-columns: 1fr; } .tr-stats { margin-left: 0; } }
.tr-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tr-thumb { height: 120px; background: linear-gradient(135deg, #3a2c18, #1f1912); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 42px; position: relative; }
.tr-pts { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, 0.6); color: var(--warning); font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.tr-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tr-body h3 { margin: 0; font-size: 15.5px; }
.tr-body .hint, .tr-completed .hint, #view-root .tr-card .hint { font-size: 12.5px; color: var(--text-muted); }
.tr-desc { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.tr-bar { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.tr-bar i { display: block; height: 100%; background: var(--accent); transition: width 0.3s; }
.tr-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.tr-tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.tr-new { color: var(--warning); background: rgba(217, 178, 60, 0.15); }
.tr-prog { color: var(--accent); background: var(--accent-soft); }
.tr-ready { color: #9cc3e0; background: rgba(127, 167, 201, 0.16); }
.tr-done { color: var(--positive); background: var(--positive-soft); }
.tr-draft { color: var(--text-muted); background: var(--surface); border: 1px dashed var(--border); }
.tr-completed summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.tr-completed summary::-webkit-details-marker { display: none; }
.tr-completed summary::after { content: "▼"; color: var(--text-muted); font-size: 14px; transition: transform 0.2s; }
.tr-completed[open] summary::after { transform: rotate(180deg); }
.tr-completed summary h2 { margin: 0; }
/* player */
.tr-player-dialog .hint { font-size: 12.5px; color: var(--text-muted); }
.tr-player-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-right: 36px; }
.tr-bar-top { margin: 10px 0 16px; }
.tr-player { display: flex; gap: 22px; align-items: flex-start; }
.tr-steps { flex: 0 0 210px; display: flex; flex-direction: column; gap: 4px; }
.tr-step { display: flex; gap: 8px; align-items: center; text-align: left; background: none; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 8px 10px; color: var(--text-muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.tr-step span { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.tr-step-cur { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.tr-step-done span { background: var(--positive-soft); border-color: var(--positive); color: var(--positive); }
.tr-step-locked { opacity: 0.45; cursor: not-allowed; }
.tr-stage { flex: 1; min-width: 0; max-width: 860px; }
.tr-slide-title { font-family: var(--font-display); font-size: 24px; margin: 0 0 12px; }
.tr-slide-imgs { display: grid; gap: 10px; margin-bottom: 14px; }
.tr-imgs-1 { grid-template-columns: 1fr; } .tr-imgs-2 { grid-template-columns: 1fr 1fr; } .tr-imgs-3 { grid-template-columns: repeat(3, 1fr); }
.tr-slide-imgs img { width: 100%; max-height: 440px; object-fit: contain; border-radius: var(--radius-sm); background: #000; }
.tr-video { position: relative; padding-top: 56.25%; margin-bottom: 14px; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.tr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tr-slide-text { font-size: 15.5px; line-height: 1.6; }
.tr-slide-text p { margin: 0 0 10px; }
.tr-slide-text ul { margin: 0 0 10px 20px; padding: 0; }
.tr-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.tr-q { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; background: var(--surface-2); }
.tr-q-prompt { font-size: 15px; margin-bottom: 8px; }
.tr-q-img { max-width: 100%; max-height: 320px; border-radius: var(--radius-sm); margin-bottom: 8px; display: block; }
.tr-q-opts { display: flex; flex-direction: column; gap: 6px; }
.tr-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; text-transform: none; letter-spacing: normal; font-size: 14px; color: var(--text); background: var(--surface); }
.tr-opt:hover { border-color: var(--accent); }
.tr-opt input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.tr-result { text-align: center; padding: 30px 10px; }
.tr-result h2 { font-family: var(--font-display); font-size: 28px; margin: 6px 0; }
.tr-big { font-size: 54px; }
.tr-pass h2 { color: var(--positive); }
@media (max-width: 760px) { .tr-player { flex-direction: column; } .tr-steps { flex: none; width: 100%; flex-direction: row; overflow-x: auto; } .tr-step { white-space: nowrap; } }
/* editor */
.tr-admin td { vertical-align: middle; }
.tr-admin .hint, .tr-mod .hint, .tr-edit-dialog .hint, .tr-danger .hint, #staff-training-section .hint { font-size: 12.5px; color: var(--text-muted); }
.tr-ord { white-space: nowrap; width: 1%; }
.tr-mini { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted); font-size: 11px; padding: 2px 6px; cursor: pointer; line-height: 1.2; }
.tr-mini:hover:not(:disabled) { color: var(--text); border-color: var(--accent); }
.tr-mini:disabled { opacity: 0.3; cursor: default; }
.tr-path-form { display: flex; gap: 18px; flex-wrap: wrap; }
.tr-cover { flex: 0 0 240px; height: 150px; border-radius: var(--radius); background: linear-gradient(135deg, #3a2c18, #1f1912); background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.tr-cover-btn { position: absolute; bottom: 8px; left: 8px; cursor: pointer; }
.tr-cover-del { position: absolute; top: 8px; right: 8px; }
.tr-path-fields { flex: 1; min-width: 260px; }
.tr-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 12px; }
.tr-checks .cs-check { color: var(--text); }
.tr-people { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .tr-people { grid-template-columns: 1fr; } }
.tr-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 4px 2px 10px; margin: 0 6px 6px 0; font-size: 13px; }
.tr-chip-x { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.tr-chip-x:hover { color: var(--negative); }
.tr-add-row { margin-top: 6px; } .tr-add-row select { max-width: 280px; }
.tr-mod { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface-2); }
.tr-mod.open { border-color: var(--accent); }
.tr-mod-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; flex-wrap: wrap; }
.tr-mod-toggle { background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; text-align: left; padding: 2px 0; }
.tr-mod-tools { display: flex; gap: 6px; align-items: center; }
.tr-mod-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 4px 12px 12px; }
@media (max-width: 900px) { .tr-mod-body { grid-template-columns: 1fr; } }
.tr-list { margin: 6px 0 10px; padding-left: 22px; }
.tr-list li { padding: 5px 0; border-bottom: 1px dotted var(--border); }
.tr-list li > span { vertical-align: middle; }
.tr-li-main { display: inline-block; max-width: calc(100% - 190px); }
.tr-li-tools { float: right; display: inline-flex; gap: 4px; align-items: center; }
.tr-edit-dialog { max-width: 760px; }
.tr-edit-dialog textarea { width: 100%; }
.tr-imgs-edit { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-thumb-edit { position: relative; width: 120px; height: 90px; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.tr-thumb-edit img { width: 100%; height: 100%; object-fit: cover; }
.tr-thumb-edit .tr-mini { position: absolute; top: 4px; right: 4px; }
.tr-thumb-edit .trs-img-left { right: auto; left: 4px; }
.tr-preview-box { border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; }
.trq-opts { display: flex; flex-direction: column; gap: 6px; }
.trq-opt { display: flex; align-items: center; gap: 8px; }
.trq-opt input[type="text"] { flex: 1; }
.trq-opt input[type="radio"], .trq-opt input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--positive); flex: none; }

.tr-rolebar select, .tr-add-row select { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; }
.tr-people .hint, .tr-mod-body .hint { font-size: 12.5px; color: var(--text-muted); }
.tr-quiz .tr-slide-title { color: var(--text); }
/* training role checkboxes: checkbox left of the name, normal text (not form-label caps) */
.tr-checks .cs-check { display: flex; flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: normal; font-size: 14px; font-weight: 500; margin: 0; }
.tr-checks .cs-check input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--accent); }
.tr-checks-list { flex-direction: column; flex-wrap: nowrap; gap: 0; max-height: 340px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 0; }
.tr-checks-list .cs-check { padding: 7px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.tr-checks-list .cs-check:last-child { border-bottom: 0; }
.tr-checks-list .cs-check:hover { background: var(--surface-2); }

/* ---------- Training part 2 (training-progress.js) ---------- */
.trp-grid th { white-space: normal; min-width: 110px; vertical-align: bottom; font-size: 11px; }
.trp-grid th .hint { text-transform: none; letter-spacing: normal; font-weight: 400; }
.trp-grid td { font-size: 12.5px; white-space: nowrap; vertical-align: middle; }
.trp-grid .hint, .trpm-dialog .hint, .tr-lb .hint { font-size: 12px; color: var(--text-muted); }
.trp-grid td.item-name { white-space: normal; min-width: 150px; }
.trp-person { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px dashed var(--text-muted); }
.trp-person:hover { color: var(--accent); border-color: var(--accent); }
.trp-na { color: var(--border); text-align: center; font-size: 18px; }
.trp-nologin { color: var(--text-muted); font-style: italic; }
.trp-done { color: var(--positive); font-weight: 600; }
.trp-fail { color: var(--negative); font-weight: 600; }
.trp-new { color: var(--warning); }
.trp-prog .tr-bar { width: 70px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.trpm-roles { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); }
.trpm-table td { vertical-align: middle; }
.trpm-table tr.trp-off td.item-name { color: var(--text-muted); }
.tr-lb-list { list-style: none; margin: 0; padding: 0; }
.tr-lb-list li { display: flex; align-items: center; gap: 12px; padding: 7px 4px; border-bottom: 1px solid var(--border); }
.tr-lb-list li:last-child { border-bottom: 0; }
.tr-lb-list li.me { background: var(--accent-soft); border-radius: var(--radius-sm); }
.tr-lb-rank { width: 28px; text-align: center; font-weight: 700; color: var(--text-muted); }
.tr-lb-name { flex: 1; font-weight: 600; }
.tr-lb-list b { font-family: var(--font-mono); }
.tr-lb-hidden { margin-bottom: 18px; }
.tr-dash-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-color: var(--accent); background: var(--accent-soft); padding: 12px 16px; }
.trp-na { color: var(--text-muted); opacity: 0.6; }
.trp-note { font-size: 12.5px; color: var(--text-muted); }
.trpm-table td.num .btn { font-family: var(--font-body); }

/* ---------- Staff sign-in with NorthStar code (staff-login.js) ---------- */
#staff-signin { margin: 4px 0 6px; }
#staff-signin.sl-busy { opacity: .55; pointer-events: none; }
.sl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sl-head b { font-size: 16px; }
.sl-search { width: 100%; margin-bottom: 10px; }
.sl-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; margin-bottom: 12px; }
.sl-name { padding: 14px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text); font: 600 14px var(--font-body); cursor: pointer; text-align: center; }
.sl-name:hover, .sl-name:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.sl-link { background: none; border: 0; color: var(--accent); font: 600 13px var(--font-body); cursor: pointer; padding: 4px 0; display: block; margin: 0 auto; }
.sl-head .sl-link { margin: 0; }
.sl-dots { display: flex; justify-content: center; gap: 14px; margin: 6px 0 12px; }
.sl-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); }
.sl-dot.on { background: var(--accent); }
.sl-err { text-align: center; margin: 0 0 10px; }
.sl-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 280px; margin: 0 auto; }
.sl-key { height: 58px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 600 22px var(--font-body); cursor: pointer; touch-action: manipulation; }
.sl-key:active { background: var(--accent-soft); border-color: var(--accent); }
.sl-key-soft { font-size: 14px; color: var(--text-muted); }
.sl-shake { animation: sl-shake .35s; }
@keyframes sl-shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.sl-idle { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sl-idle-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; text-align: center; max-width: 340px; }
.sl-idle-box h2 { margin-top: 0; }
.sc-status { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sc-code { width: 90px; letter-spacing: 6px; font-family: var(--font-mono); text-align: center; }
.sc-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.sc-tag.sc-locked { background: var(--negative-soft); color: var(--negative); }
.sd-dialog { max-width: 680px; }
.sd-this { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.sd-this .sc-row input { flex: 1; min-width: 160px; }
.sd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sd-table th, .sd-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.sd-off td { opacity: .55; }
.sd-events { margin: 0; padding-left: 18px; font-size: 13px; }
.sd-events li { margin: 3px 0; }

/* ---------- Check this month: corrections + over/short print (inventory-corrections.js) ---------- */
.ic-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.inv-corr-cell { min-width: 130px; }
.ic-chip { display: inline-block; text-align: left; font-size: 11.5px; font-weight: 600; background: var(--accent-soft); color: var(--text); border-radius: var(--radius-sm); padding: 3px 8px; margin: 0 0 4px; white-space: nowrap; }
.ic-note { font-weight: 400; color: var(--text-muted); font-size: 11px; white-space: normal; max-width: 180px; }
.ic-del { background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: 0 0 0 4px; font-size: 11px; }
.ic-del:hover { color: var(--negative); }
.ic-adj { font-size: 12px; margin-bottom: 6px; white-space: nowrap; }
.ic-dialog { max-width: 640px; }
.ic-kinds { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.ic-lines { width: 100%; font-size: 12.5px; }
.ic-lines td, .ic-lines th { padding: 4px 6px; vertical-align: middle; }
.ic-lines input[type="number"] { width: 64px; }
#ic-lines { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; }
.ic-used td { opacity: .5; }
.ic-print-table td, .ic-print-table th { white-space: nowrap; }
.ic-print-table td:first-child, .ic-print-table td:nth-last-child(2) { white-space: normal; }
.inv-check-exp .inv-why { min-width: 240px; }
.inv-check-exp .inv-corr-cell { min-width: 150px; }
.inv-check-exp .ic-chip { white-space: normal; max-width: 200px; }
.ic-print-table { font-size: 11.5px; }
.ic-print-table td:first-child { min-width: 120px; }
.ic-print-table td:nth-last-child(2) { min-width: 150px; }
.ic-print-table th { white-space: normal !important; vertical-align: bottom; }

/* ---------- How-To knowledge base (howto.js) ---------- */
.ht-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ht-search { width: 100%; font-size: 15px; padding: 10px 12px; margin-bottom: 10px; }
.ht-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ht-tab { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--font-body); cursor: pointer; }
.ht-tab span { color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.ht-tab.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.ht-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ht-tag { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.ht-tag-btn { cursor: pointer; font-family: var(--font-body); }
.ht-tag-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.ht-section + .ht-section { margin-top: 20px; }
.ht-sec-h { margin: 0 0 8px; font-family: var(--font-display); font-size: 18px; }
.ht-cat { margin: 0 0 12px; }
.ht-cat-h { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 0 0 6px; }
.ht-empty { margin: 0 0 4px; font-size: 12.5px; }
.ht-list { display: flex; flex-direction: column; gap: 6px; }
.ht-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); cursor: pointer; font: 14px var(--font-body); }
.ht-row:hover { border-color: var(--accent); }
.ht-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ht-row-main > b { display: inline; }
.ht-snip { font-size: 12.5px; color: var(--text-muted); }
.ht-row-meta { display: flex; gap: 6px; align-items: center; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.ht-roles { font-size: 11px; color: var(--text-muted); }
.ht-flagged { font-size: 11px; color: var(--warning); font-weight: 600; }
.ht-flags .ht-flag { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.ht-flag-note { font-size: 13px; color: var(--text-muted); font-style: italic; margin-top: 2px; }
.ht-flag-btns { display: flex; gap: 6px; }
.ht-sugg summary { cursor: pointer; list-style: none; }
.ht-sugg summary h2 { display: inline; }
.ht-sugg-sec { margin-top: 14px; }
.ht-sugg-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px dotted var(--border); font-size: 13.5px; }
.ht-sugg-row.done { color: var(--text-muted); }
.ht-article { max-width: 760px; margin: 0 auto; }
.ht-crumb { font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; padding-right: 36px; }
.ht-title { margin: 0 0 10px; font-family: var(--font-display); }
.ht-intro { color: var(--text-muted); margin-bottom: 12px; }
.ht-intro p { margin: 0 0 6px; }
.ht-steps { list-style: none; counter-reset: htstep; padding: 0; margin: 0; }
.ht-steps > li { counter-increment: htstep; position: relative; padding: 0 0 16px 44px; }
.ht-steps > li::before { content: counter(htstep); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent, var(--bg)); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ht-step-text p { margin: 4px 0; }
.ht-step-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ht-step-imgs img { max-width: 100%; max-height: 320px; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.ht-tips { border: 1px solid var(--warning); background: rgba(217, 178, 60, .08); border-radius: var(--radius-sm); padding: 10px 12px; margin: 6px 0 12px; }
.ht-tips p { margin: 4px 0 0; }
.ht-related { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.ht-related .cs-m-label { margin: 0 4px 0 0; }
.ht-updated { font-size: 12px; color: var(--text-muted); margin-top: 14px; }
.ht-flag-form { margin-top: 12px; }
.ht-flag-form textarea { width: 100%; }
.hte-step { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--surface-2); }
.hte-step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent, var(--bg)); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hte-step-body { flex: 1; min-width: 0; }
.hte-step-body textarea { width: 100%; }
.hte-step-btns { display: flex; flex-direction: column; gap: 4px; }
.hte-img-add { align-self: center; }
.ht-paths-pick { max-height: 160px; overflow-y: auto; }
.ht-catedit { margin-bottom: 14px; }
.ht-catedit-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.ht-catedit-row input { flex: 1; }
.htc-sp { width: 26px; }
.tr-howto { margin: 12px 0 0; }
.tr-howto-link { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px dashed var(--accent); }
@media (max-width: 600px) { .ht-row { flex-direction: column; align-items: flex-start; } .ht-row-meta { justify-content: flex-start; } }

/* ---------- Hours & Closures (club-hours.js) ---------- */
.ch-savebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ch-bottom-save { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.ch-save-btns { display: flex; gap: 8px; align-items: center; }
.ch-unsaved { font-size: 12.5px; color: var(--warning); font-weight: 600; }
.ch-week { display: flex; flex-direction: column; }
.ch-day { display: flex; gap: 14px; padding: 8px 0; border-top: 1px solid var(--border); align-items: flex-start; }
.ch-day:first-child { border-top: 0; }
.ch-day-name { width: 100px; font-weight: 700; padding-top: 6px; flex-shrink: 0; }
.ch-periods { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ch-period { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ch-p-name { width: 150px; }
.ch-period input[type="time"] { width: 120px; }
.ch-closed-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--text-muted); background: var(--surface-2); border: 1px dashed var(--border); border-radius: 999px; padding: 3px 12px; align-self: flex-start; }
.ch-day-btns { display: flex; gap: 6px; }
.ch-season { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; background: var(--surface-2); }
.ch-season-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.ch-s-name { width: 140px; font-weight: 700; }
.ch-s-dates { display: inline-flex; gap: 4px; align-items: center; }
.ch-bo-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.ch-bo-form .field { margin: 0; }
.ch-bo-table { width: 100%; font-size: 13.5px; }
.ch-bo-table td, .ch-bo-table th { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.ch-past { margin-top: 10px; font-size: 13px; }
.ch-past summary { cursor: pointer; color: var(--text-muted); }
.ch-dash { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; }
.ch-dash-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-right: 10px; }
.ch-dash-today { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ch-dash-p { font-weight: 600; }
.ch-dash-p.ch-off { text-decoration: line-through; color: var(--text-muted); }
.ch-dash-up { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ch-dash-chip { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.ch-dash-chip.closed { border-color: var(--negative); color: var(--negative); }
.ch-art-block { margin: 14px 0; }
.ch-art-block h3 { margin: 0 0 6px; font-size: 15px; }
.ch-art-table td { padding: 4px 14px 4px 0; vertical-align: top; }
.ch-art-table td:first-child { font-weight: 700; white-space: nowrap; }
.ch-art-bos { margin: 0; padding-left: 18px; }
.ch-art-bos li { margin: 3px 0; }
@media (max-width: 600px) { .ch-day { flex-direction: column; gap: 4px; } .ch-day-name { padding-top: 0; } }

/* ---------- Banquet Bars: open sheet adds (banquet.js) ---------- */
.bb-open-table td { vertical-align: middle; }
.bb-given-total { font-size: 15px; }
.bb-given-log { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; white-space: normal; }
.bb-add-chip { display: inline-flex; align-items: center; gap: 2px; background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 0 6px; margin-left: 2px; white-space: nowrap; }
.bb-add-undo { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 10px; padding: 0 0 0 3px; }
.bb-add-undo:hover { color: var(--negative); }
.bb-add-wrap { display: inline-flex; gap: 4px; align-items: center; }
.bb-add-input { width: 64px; }
.bb-new-item { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.bb-new-row { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.bb-new-pick { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.bb-new-pick input { width: 100%; }
.bb-new-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 6px 20px rgba(0,0,0,.35); max-height: 260px; overflow-y: auto; }
.bb-new-opt { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); padding: 8px 10px; color: var(--text); font: 14px var(--font-body); cursor: pointer; }
.bb-new-opt:hover { background: var(--accent-soft); }
#bb-new-qty { width: 80px; }
@media (max-width: 600px) {
  .bb-open-table thead { display: none; }
  .bb-open-table, .bb-open-table tbody { display: block; width: 100%; }
  .bb-open-table tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .bb-open-table td { border: 0 !important; padding: 0 !important; }
  .bb-open-table .bb-add-cell { text-align: left; }
  .bb-open-table .bb-ret-cell::before { content: "Returned "; font-size: 11px; color: var(--text-muted); margin-right: 4px; }
  .bb-open-table .bb-ret-cell input { width: 70px; }
  .bb-open-table .bb-act-cell { grid-column: 1 / -1; text-align: left; }
}

/* ---------- Phone: Dashboard + ☰ Menu bar (mobile.js) ---------- */
.phone-bar { display: none; }
@media (max-width: 780px) {
  .sidebar { padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .nav-scroll-wrap, .nav-right-group { display: none !important; }
  .phone-bar { display: flex; width: 100%; gap: 8px; }
  .phone-bar-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 7px 8px; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--text-muted); font: 600 11.5px var(--font-body); cursor: pointer; }
  .phone-bar-btn i { font-size: 21px; }
  .phone-bar-btn.active { color: var(--accent); background: var(--accent-soft); }
}
.phone-menu { position: fixed; inset: 0; z-index: 200; }
.phone-menu-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); animation: pm-fade .15s ease-out; }
.phone-menu-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--border); border-radius: 16px 16px 0 0; padding: 8px 14px calc(16px + env(safe-area-inset-bottom, 0px)); animation: pm-up .18s ease-out; }
.phone-menu-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--border); margin: 2px auto 8px; }
.phone-menu-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 12px 4px 4px; }
.phone-menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.phone-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font: 500 14px var(--font-body); cursor: pointer; }
.phone-menu-item i { font-size: 18px; color: var(--text-muted); }
.phone-menu-item:active, .phone-menu-item:hover { background: var(--surface-2); }
.phone-menu-item.active { background: var(--accent-soft); color: var(--accent); }
.phone-menu-item.active i { color: var(--accent); }
.phone-menu-logout { margin-top: 12px; border-top: 1px solid var(--border); border-radius: 0; padding-top: 14px; color: var(--negative); }
.phone-menu-logout i { color: var(--negative); }
@keyframes pm-up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes pm-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Backup & Restore (backup.js) ---------- */
.br-main { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.br-main > div { flex: 1; min-width: 260px; }
.br-last { margin: 10px 0 0; font-size: 13.5px; }
.br-due { color: var(--warning); }
.br-online { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); }
.br-log { width: 100%; font-size: 13px; }
.br-log td, .br-log th { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.br-log .num { text-align: right; }
.br-log-off td { opacity: .6; }
.br-progress { min-width: min(460px, 82vw); }
.br-bar { height: 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.br-bar i { display: block; height: 100%; background: var(--accent); transition: width .25s ease; }
.br-bar-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13.5px; }
.br-bar-row span { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-remind { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-color: var(--warning); }
.br-restore-link { position: fixed; right: 14px; bottom: 12px; background: none; border: 0; color: var(--text-muted); font: 12px var(--font-body); text-decoration: underline; cursor: pointer; opacity: .65; }
.br-restore-link:hover { opacity: 1; color: var(--text); }
@media (max-width: 780px) { .br-restore-link { display: none; } }
.br-restore { max-width: 520px; }
.br-restore input[type="file"], .br-restore input[type="password"] { width: 100%; margin: 6px 0; }
.br-sum { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; }
.br-sum div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; }
.br-sum span { color: var(--text-muted); }
.br-warn { color: var(--negative); font-size: 14px; }

/* Comps / Voids / Discounts — click-to-filter tables, follow-ups, review print */
.cmp-facet-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; min-height: 30px; }
.cmp-facet-bar-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.cmp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.cmp-chip span { opacity: 0.7; }
.cmp-chip:hover span { opacity: 1; }
.cmp-facet-row { cursor: pointer; }
.cmp-facet-row:hover td { background: var(--surface-2); }
.cmp-facet-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cmp-facet-on td { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.cmp-facet-on td.item-name { font-weight: 700; }
.cmp-facet-zero td { opacity: 0.55; }
.cmp-facet-check { display: inline-block; width: 16px; color: var(--accent); font-weight: 700; }
.cmp-facet-active { border-color: var(--accent); }
.cmp-followup { font-size: 12.5px; margin-top: 4px; padding: 4px 8px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cmp-print-filters { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.cmp-review-table th.cmp-why, .cmp-review-table td.cmp-why { width: 32%; }
.cmp-why-line { border-bottom: 1px solid var(--border); height: 18px; }
.cmp-why-done { font-size: 12px; font-style: italic; }
.cmp-sign { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.cmp-sign > div { flex: 1; min-width: 160px; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cmp-sign span { display: block; border-bottom: 1px solid var(--text-muted); height: 28px; margin-bottom: 4px; }
@media print {
  .cmp-why-line { border-bottom-color: #999 !important; }
  .cmp-sign span { border-bottom-color: #000 !important; }
  .cmp-review-table tr { break-inside: avoid; }
}

/* Daily Sales — vs Last Year */
.ly-pct { font-weight: 600; }
.ly-up { color: var(--positive); }
.ly-down { color: var(--negative); }
.ly-none { color: var(--text-muted); }
.ly-line { margin-top: 2px; }
.ly-event-tag { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); vertical-align: middle; }
.ly-table .ly-section td { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding-top: 12px; }
.ly-report .cmp-print-head input, .ly-report .cmp-print-head select { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px; }
@media print { .ly-up, .ly-down { color: #000 !important; } }
.ly-note { margin: 10px 0 0; }
.ly-note-strong { font-size: 13px; padding: 6px 10px; border-left: 3px solid var(--warning); background: var(--surface-2); margin: 0 0 10px; }
.ly-poscheck { margin: 10px 0 0; }

/* Daily Sales area cards — TY · LY · +/− */
.lyc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.lyc-card { all: unset; box-sizing: border-box; display: block; cursor: pointer; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; color: var(--text); font: inherit; }
.lyc-card:hover { border-color: var(--accent); }
.lyc-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lyc-head { text-align: center; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; padding: 10px 12px; border-bottom: 2px solid var(--accent); background: var(--surface-2); }
.lyc-note { font-size: 11.5px; color: var(--text-muted); text-align: center; padding: 5px 10px 0; }
.lyc-table { width: 100%; font-size: 12.5px; table-layout: fixed; border-collapse: collapse; }
.lyc-table th { font-size: 10px; padding: 6px 8px !important; }
.lyc-table td { padding: 5px 8px !important; white-space: nowrap; line-height: 1.3 !important; font-family: var(--font-mono, monospace); }
.lyc-table td:first-child { font-family: inherit; }
.lyc-table td:first-child, .lyc-table th:first-child { width: 70px; }
.lyc-table td:last-child, .lyc-table th:last-child { width: 92px; }
.lyc-strong td { font-weight: 700; font-size: 13px; }
.lyd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.lyd-block h3 { margin: 6px 0; font-size: 14px; }
.lyd-table td:first-child, .lyd-table th:first-child { width: 80px; }
.lyd-table td:last-child, .lyd-table th:last-child { width: 50px; }

/* Pre-Shift — tonight's covers + food to announce */
.ps-tonight { display: grid; grid-template-columns: minmax(180px, 220px) 1fr; gap: 16px; margin-bottom: 14px; }
@media (max-width: 700px) { .ps-tonight { grid-template-columns: 1fr; } }
.ps-covers { border: 1px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; background: var(--surface-2); }
.ps-covers-num { font-family: var(--font-mono, monospace); font-size: 34px; font-weight: 700; line-height: 1.1; }
.ps-covers-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.ps-covers-times { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12.5px; }
.ps-foods { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.ps-food { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; }
.ps-food-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 4px; }
.ps-food-item + .ps-food-item { margin-top: 4px; }

/* ---------- Banquet Bar Setup (bar packages) ---------- */
.bp-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bp-tab { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.bp-tab .hint { font-weight: 400; margin-left: 4px; }
.bp-tab.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.bp-tab.active .hint { color: inherit; opacity: 0.75; }
.bp-starter { border-left: 4px solid var(--accent); }
.bp-lines td { vertical-align: middle; }
.bp-label { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; width: 100%; min-width: 140px; font: inherit; font-weight: 600; }
.bp-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bp-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; }
.bp-chip small { color: var(--text-muted); }
.bp-chip-gone { color: var(--negative); }
.bp-chip-x { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 999px; }
.bp-chip-x:hover { color: var(--negative); background: var(--surface); }
.bp-warn { color: var(--warning); font-size: 12.5px; }
.bp-link-list { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; margin-bottom: 8px; }
.bp-link-opt { display: flex; justify-content: space-between; gap: 10px; text-align: left; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font: inherit; cursor: pointer; }
.bp-link-opt:hover { border-color: var(--accent); }
.bp-pick-wrap .hint { display: block; margin-top: 4px; font-size: 12px; }
.bp-select { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; min-width: 220px; font: inherit; }
tr.bp-unlinked .item-name { color: var(--text-muted); }
.bp-print-lines { display: flex; gap: 28px; margin: 6px 0 12px; flex-wrap: wrap; }
.bp-print-lines > div { display: flex; align-items: flex-end; gap: 8px; }
.bp-print-lines span { font-weight: 700; }
.bp-print-lines b { display: inline-block; min-width: 180px; border-bottom: 1px solid var(--text-muted); padding: 0 4px; }
.bp-print-table th.num, .bp-print-table td.num { width: 22%; text-align: center; }
.bp-print-table td { height: 26px; }
.bp-print-table td.num { border-left: 1px solid var(--border); }
.bp-print-head td { font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; color: var(--text-muted); padding-top: 10px !important; }
@media print {
  .bp-print-lines b { border-color: #000 !important; }
  .bp-print-table td.num { border-left: 1px solid #999 !important; }
}
@media (max-width: 640px) {
  .table-scroll-wrap table.bp-lines, .bp-lines tbody { display: block; width: 100%; min-width: 0; }
  .bp-lines thead { display: none; }
  .bp-lines .bp-label { min-width: 0; }
  .bp-lines tbody tr { display: grid; grid-template-columns: 24px 1fr auto; gap: 6px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .bp-lines td { border: none !important; padding: 0 !important; }
  .bp-lines td:nth-child(3) { grid-row: 2; grid-column: 1 / -1; }
  .bp-lines td:nth-child(4) { grid-row: 1; grid-column: 3; }
}

/* ---------- Monthly Review ---------- */
.mr-sheet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 16px; }
.mr-title h2 { margin: 0; font-family: var(--font-display); font-size: 24px; }
.mr-sub { color: var(--text-muted); font-size: 13px; margin: 3px 0 18px; }
.mr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.mr-kpi { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mr-kpi span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.mr-kpi b { font-size: 22px; font-family: var(--font-display); }
.mr-kpi small { font-size: 12px; }
.mr-up { color: var(--positive); }
.mr-down { color: var(--negative); }
.mr-na { color: var(--text-muted); }
.mr-na-box { font-size: 13px; font-style: italic; margin: 4px 0; }
.mr-sec h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 3px; margin: 20px 0 8px; font-family: var(--font-body); }
.mr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mr-two > .mr-sec { min-width: 0; }
.mr-table { width: 100%; font-size: 13px; }
.mr-table th, .mr-table td { padding: 4px 6px; }
.mr-table td .mr-na, .mr-table td.mr-na { font-size: 12px; }
.mr-strong td { font-weight: 700; border-top: 2px solid var(--border); }
.mr-sub td:first-child { padding-left: 18px; color: var(--text-muted); }
.mr-tag { font-size: 10.5px; background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 1px 6px; font-weight: 600; }
.mr-note { font-size: 11.5px; color: var(--text-muted); margin: 4px 0 0; }
.mr-foot { font-size: 11px; color: var(--text-muted); margin: 18px 0 0; }
.mr-detail .mr-title h2 { font-size: 20px; }
@media (max-width: 760px) {
  .mr-kpis { grid-template-columns: 1fr 1fr; }
  .mr-two { grid-template-columns: 1fr; gap: 0; }
  .mr-sheet { padding: 16px 14px; }
}
@media print {
  .mr-print .mr-sheet { border: none; padding: 0; margin: 0; background: #fff !important; }
  .mr-print, .mr-print * { color: #000 !important; }
  .mr-print .mr-up { color: #2f6b2a !important; }
  .mr-print .mr-down { color: #a3381f !important; }
  .mr-print .mr-na { color: #666 !important; }
  .mr-print .mr-sec h3 { color: #000 !important; border-color: #000 !important; }
  .mr-print .mr-kpi { border-color: #999 !important; break-inside: avoid; }
  .mr-print .mr-kpis { grid-template-columns: repeat(4, 1fr) !important; }
  .mr-print .mr-two { grid-template-columns: 1fr 1fr !important; gap: 18px !important; }
  .mr-print .mr-sec { break-inside: avoid; }
  .mr-print .mr-detail { break-before: page; }
  .mr-print .mr-table th, .mr-print .mr-table td { border-bottom: 1px solid #ddd !important; }
}
.mr-table td.num { white-space: nowrap; }
.mr-detail-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; margin-bottom: 10px; text-transform: none; letter-spacing: normal; }
.mr-detail-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
@media print { .mr-print .mr-table { font-size: 12px; } }
.mr-sec { overflow-x: auto; }
@media print { .mr-print .mr-sec { overflow: visible !important; } }

/* ---------- Import an Old Count ---------- */
.ci-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.ci-filter { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ci-filter.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.ci-filters input[type="search"] { margin-left: auto; max-width: 220px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; font: inherit; }
.ci-bulk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ci-table td { vertical-align: top; }
.ci-badge { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.ci-ok { background: var(--positive-soft); color: var(--positive); }
.ci-check { background: var(--accent-soft); color: var(--warning); }
.ci-none { background: var(--negative-soft); color: var(--negative); }
.ci-skip { background: var(--surface-2); color: var(--text-muted); }
.ci-row-skip td { opacity: 0.6; }
.ci-sugg { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ci-sugg-btn { background: var(--surface-2); color: var(--text); border: 1px dashed var(--accent); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.ci-sugg-btn:hover { background: var(--accent-soft); }
.ci-dup { font-size: 11.5px; color: var(--warning); margin-top: 3px; }
.ci-save-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Daily Sales: date range picker ---------- */
.dsr-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.dsr-preset { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.dsr-preset.active, .dsr-preset:hover { border-color: var(--accent); color: var(--accent); }
.dsr-nav { display: flex; align-items: flex-start; gap: 8px; }
.dsr-months { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.dsr-mtitle { text-align: center; font-weight: 700; margin-bottom: 6px; font-family: var(--font-display); }
.dsr-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.dsr-wd { text-align: center; font-size: 11px; color: var(--text-muted); padding-bottom: 4px; }
.dsr-day { position: relative; background: none; border: none; color: var(--text); font: inherit; font-size: 13.5px; padding: 8px 0; cursor: pointer; border-radius: 0; }
.dsr-day:hover { background: var(--surface-2); }
.dsr-day.in { background: var(--accent-soft); }
.dsr-day.s, .dsr-day.e { background: var(--accent); color: var(--on-accent, #1A140A); font-weight: 700; }
.dsr-day.s { border-radius: 6px 0 0 6px; }
.dsr-day.e { border-radius: 0 6px 6px 0; }
.dsr-day.s.e { border-radius: 6px; }
.dsr-day.today { box-shadow: inset 0 0 0 1px var(--accent); }
.dsr-day.future { color: var(--text-muted); opacity: 0.6; }
.dsr-dot { position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--positive); }
.dsr-day.s .dsr-dot, .dsr-day.e .dsr-dot { background: #1A140A; }
.dsr-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.dsr-label { font-weight: 600; }
.dsr > .hint, .dsr-label .hint { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Word Search: colored bars · Word Guess ---------- */
.ws-board { position: relative; width: min(100%, 420px); }
.ws-board .ws-grid { width: 100%; }
.ws-bars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ws-bars line { stroke-width: 0.74; stroke-linecap: round; opacity: 0.42; }
.ws-c.found { background: var(--surface-2); }
.gm-board-counts, .gm-board-sub { margin-top: 6px; }
.gm-cnt .hint { font-size: 11px; margin-left: 3px; }
.wl-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 460px; }
.wl-grid { display: flex; flex-direction: column; gap: 6px; width: min(100%, 330px); }
.wl-row { display: grid; gap: 6px; }
.wl-tile { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 2px solid var(--border); border-radius: 6px; font-family: var(--font-mono); font-weight: 700; font-size: clamp(18px, 5vw, 28px); text-transform: uppercase; color: var(--text); }
.wl-tile.wl-typed { border-color: var(--text-muted); }
.wl-g { background: #538d4e !important; border-color: #538d4e !important; color: #fff !important; }
.wl-y { background: #b59f3b !important; border-color: #b59f3b !important; color: #fff !important; }
.wl-x { background: #3a3a3c !important; border-color: #3a3a3c !important; color: #ddd !important; }
.wl-shake { animation: wl-shake 0.35s; }
@keyframes wl-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.wl-kb { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.wl-kb-row { display: flex; gap: 5px; justify-content: center; }
.wl-key { flex: 1 1 0; max-width: 42px; min-width: 0; height: 46px; border: 0; border-radius: 5px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 0; }
.wl-key.wl-wide { flex: 1.6 1 0; max-width: 66px; font-size: 12px; }
.wl-key:disabled { cursor: default; }

/* ---------- Notes → managers' board (sticky notes) ---------- */
.nb-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.nb-top input[type="search"] { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; font: inherit; min-width: 220px; }
.nb-legend { display: flex; gap: 10px; align-items: center; color: var(--text-muted); font-size: 12px; margin-left: auto; flex-wrap: wrap; }
.nb-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; }
.nb-legend-edit { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; padding: 1px 7px; font: inherit; }
.nb-legend-edit:hover { color: var(--accent); border-color: var(--accent); }
.nb-yellow { background: #fbe58a; } .nb-pink { background: #f7b6c8; } .nb-blue { background: #a9d2f5; } .nb-green { background: #b9e4a2; } .nb-orange { background: #f8c48a; } .nb-purple { background: #d4c2f5; }
.nb-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; padding: 4px 2px 14px; align-items: start; }
.nb-col { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-height: 420px; transition: background 0.15s, border-color 0.15s; }
.nb-col.nb-over { border-color: var(--accent); background: var(--accent-soft); }
.nb-col-pin { border-style: dashed; border-color: var(--accent); }
.nb-col-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px dashed var(--border); margin-bottom: 18px; }
.nb-col-head b { font-size: 14.5px; }
.nb-col-head small { display: block; color: var(--text-muted); font-size: 12px; }
.nb-you { color: var(--accent); font-weight: 600; font-size: 12px; }
.nb-av { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #1a140a; }
.nb-av-pin { background: var(--accent-soft); font-size: 17px; }
.nb-count { margin-left: auto; background: var(--surface-2); border-radius: 999px; padding: 2px 9px; font-size: 12px; color: var(--text-muted); }
.nb-stack { display: flex; flex-direction: column; gap: 16px; }
.nb-empty { color: var(--text-muted); font-size: 13px; text-align: center; margin: 26px 0; }
.nb-sticky { position: relative; border-radius: 3px 3px 14px 3px; padding: 14px 14px 10px; color: #2a2418; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 -10px 18px rgba(0, 0, 0, 0.05); cursor: grab; transform: rotate(var(--rot, 0deg)); transition: transform 0.12s, box-shadow 0.12s; user-select: none; touch-action: pan-x pan-y; }
.nb-sticky:hover, .nb-sticky:focus-visible { transform: rotate(0deg) translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45); outline: none; }
.nb-sticky::before { content: ""; position: absolute; top: -9px; left: 50%; width: 58px; height: 18px; margin-left: -29px; background: rgba(255, 255, 255, 0.4); transform: rotate(-3deg); border-radius: 2px; }
.nb-sticky.nb-dragging { opacity: 0.35; }
.nb-ghost { position: fixed; z-index: 9999; pointer-events: none; transform: rotate(3deg) scale(1.03); box-shadow: 0 18px 32px rgba(0, 0, 0, 0.55); opacity: 0.95; }
.nb-sticky.nb-new { outline: 3px solid #e5533d; outline-offset: 3px; }
.nb-sticky h3 { font-family: "Caveat", "Segoe Print", cursive; font-size: 24px; line-height: 1.05; margin: 0 0 6px; color: #2a2418; }
.nb-body { margin: 0 0 8px; font-size: 13px; white-space: pre-wrap; color: #2a2418; }
.nb-latest { margin: 6px 0 8px; padding: 6px 8px; background: rgba(255, 255, 255, 0.4); border-radius: 6px; font-size: 12px; color: #2a2418; }
.nb-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; opacity: 0.75; color: #2a2418; }
.nb-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.nb-badge { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: rgba(0, 0, 0, 0.13); color: #2a2418; border-radius: 999px; padding: 1px 7px; }
.nb-badge-from { background: #5a2a12; color: #fff; }
.nb-badge-pin { background: #2a2418; color: #fbe58a; }
.nb-done-strip { margin-top: 16px; border-top: 1px dashed var(--border); padding-top: 10px; color: var(--text-muted); font-size: 12.5px; }
.nb-done-strip > div { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.nb-done-chip { background: var(--surface-2); border: 0; border-radius: 4px; padding: 3px 8px; color: var(--text-muted); text-decoration: line-through; font: inherit; font-size: 12px; cursor: pointer; }
.nb-done-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; padding-top: 8px; }
.nb-done-wrap .nb-sticky { opacity: 0.8; }
.nb-done-wrap .hint { margin-top: 8px; font-size: 12px; color: var(--text-muted); }
/* note pop-up */
.nb-detail { margin: -26px; padding: 24px 26px; border-radius: 4px 4px 18px 4px; color: #2a2418; }
.nb-detail input, .nb-detail textarea, .nb-detail select { color: #2a2418; }
.nb-d-title { width: 100%; font-family: "Caveat", "Segoe Print", cursive; font-size: 34px; font-weight: 700; background: transparent; border: 0; border-bottom: 1px dashed rgba(0, 0, 0, 0.25); padding: 2px 0; }
.nb-d-title:disabled, .nb-d-body:disabled { opacity: 1; border-color: transparent; }
.nb-d-sub { font-size: 12.5px; opacity: 0.8; margin: 6px 0 10px; }
.nb-d-body { width: 100%; background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 6px; padding: 8px 10px; font: inherit; resize: vertical; }
.nb-d-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; font-size: 13px; }
.nb-d-row select { background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 6px; padding: 6px 8px; font: inherit; }
.nb-d-check { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: normal; font-size: 13px; color: #2a2418; cursor: pointer; }
.nb-d-hint { font-size: 12px; opacity: 0.7; }
.nb-d-lbl { font-weight: 700; font-size: 12.5px; }
.nb-sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.25); cursor: pointer; padding: 0; display: inline-block; }
.nb-sw.on { outline: 3px solid #2a2418; outline-offset: 1px; }
.nb-sw:disabled { cursor: default; }
.nb-d-label { font-weight: 700; font-size: 13px; margin-top: 14px; }
.nb-log { list-style: none; margin: 10px 0; padding: 0; border-left: 3px solid rgba(0, 0, 0, 0.2); max-height: 260px; overflow-y: auto; }
.nb-log li { padding: 5px 0 8px 14px; position: relative; font-size: 13px; white-space: pre-wrap; }
.nb-log li::before { content: ""; position: absolute; left: -7px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: #2a2418; }
.nb-log li.nb-log-passed::before, .nb-log li.nb-log-unpinned::before { background: #c0392b; }
.nb-log li.nb-log-pinned::before { background: #c68a2e; }
.nb-log li.nb-log-done::before { background: #3f7a35; }
.nb-log small { display: block; opacity: 0.65; font-size: 11.5px; }
.nb-d-add { display: flex; gap: 8px; }
.nb-d-add input { flex: 1; border: 1px solid rgba(0, 0, 0, 0.25); background: rgba(255, 255, 255, 0.55); border-radius: 6px; padding: 8px 10px; font: inherit; }
.nb-d-btn { background: #2a2418; color: #fbe58a; border: 0; border-radius: 6px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.nb-d-btn:disabled { opacity: 0.45; cursor: default; }
.nb-d-ghost { background: rgba(0, 0, 0, 0.12); color: #2a2418; }
.nb-d-actions { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.nb-lbl-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nb-lbl-row input { flex: 1; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; font: inherit; }
/* blinking dot on Notes */
.nb-blink { position: relative; }
.nb-blink::after { content: ""; position: absolute; top: 3px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #e5533d; animation: nb-pulse 1.4s infinite; }
@keyframes nb-pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 83, 61, 0.7); } 70% { box-shadow: 0 0 0 9px rgba(229, 83, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 83, 61, 0); } }
/* Dashboard card */
.nb-dash { border-color: #e5533d; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.nb-dash-row { font-size: 14px; }
.nb-dash-chip { padding: 1px 8px; border-radius: 4px; color: #2a2418; font-weight: 600; }
@media (max-width: 640px) { .nb-board { grid-auto-columns: 82vw; } .nb-legend { margin-left: 0; } }

/* ---------- Main menu (app-menu.js) — replaces the top bar ---------- */
@media (min-width: 781px) {
  #app-screen > .sidebar { display: none; }
}
.app-menu { width: 248px; flex: 0 0 248px; background: var(--surface); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 14px 10px 10px; z-index: 30; }
.am-brand { padding: 2px 8px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.am-brand .brand { padding: 0; font-size: 17px; }
.am-clock { font-size: 12px; color: var(--text-muted); margin: 4px 0 0 33px; }
.am-list { flex: 1; }
.am-section { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); opacity: 0.75; padding: 14px 10px 5px; }
.am-grp { margin-bottom: 1px; }
.am-head { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); font: 600 14px var(--font-body); padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; position: relative; }
.am-head:hover { background: var(--surface-2); }
.am-head > span:not(.am-badge) { flex: 1; min-width: 0; }
.am-head > .am-badge { flex: 0 0 auto; margin-left: 0; }
.am-ic { font-size: 18px; color: var(--text-muted); width: 20px; text-align: center; flex: 0 0 20px; }
.am-chev { color: var(--text-muted); font-size: 15px; transition: transform 0.2s; }
.am-grp.open > .am-head .am-chev { transform: rotate(90deg); }
.am-grp.open > .am-head .am-ic, .am-grp.has-active > .am-head .am-ic { color: var(--accent); }
.am-head.am-single.active { background: var(--accent-soft); color: var(--accent); }
.am-head.am-single.active .am-ic { color: var(--accent); }
.am-items { display: none; padding: 2px 0 6px; }
.am-grp.open > .am-items { display: block; }
.am-item { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text-muted); font: 500 13.5px var(--font-body); padding: 7px 10px 7px 40px; border-radius: 7px; cursor: pointer; text-align: left; }
.am-item:hover { background: var(--surface-2); color: var(--text); }
.am-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.am-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e86a1c; color: #fff; font: 700 11.5px var(--font-body); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.am-head .am-badge + .am-chev { margin-left: 6px; }
.am-head.nb-blink::after { top: 50%; right: 12px; margin-top: -4.5px; }
.am-logout { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-top: 1px solid var(--border); color: var(--text-muted); font: 500 14px var(--font-body); padding: 12px 10px 4px; margin-top: 10px; cursor: pointer; text-align: left; }
.am-logout:hover { color: var(--negative); }
.am-logout i { font-size: 18px; width: 20px; text-align: center; }
.view-crumb { font-size: 12.5px; color: var(--text-muted); margin: 0 0 2px; min-height: 0; }
.view-crumb:empty { display: none; }
.am-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 190; }
@media (max-width: 780px) {
  .app-menu { position: fixed; top: 0; bottom: 0; left: 0; width: 280px; height: auto; transform: translateX(-105%); transition: transform 0.2s ease; z-index: 200; box-shadow: 0 0 30px rgba(0, 0, 0, 0.6); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  body.am-open .app-menu { transform: none; }
}

/* ---------- What's New (menu + panel) ---------- */
.am-whatsnew { margin-top: 8px; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; padding-top: 11px; }
.am-whatsnew.active { background: var(--accent-soft); color: var(--accent); }
.am-whatsnew.active .am-ic { color: var(--accent); }
.am-whatsnew + .am-logout { margin-top: 2px; }
.am-badge-new { background: var(--accent); color: var(--on-accent, #1a140a); }
.am-pulse { animation: am-pulse 0.9s ease-out 1; }
@keyframes am-pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(198, 138, 46, 0.8); } 40% { transform: scale(1.35); } 100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(198, 138, 46, 0); } }
.am-feed { position: fixed; left: 256px; bottom: 16px; width: 360px; max-height: min(70vh, 560px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); z-index: 180; overflow: hidden; }
.am-feed-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.am-feed-head b { flex: 1; font-family: var(--font-display); font-size: 16px; }
.am-feed-clear, .am-feed-x { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font: 600 12px var(--font-body); padding: 3px 9px; cursor: pointer; }
.am-feed-x { border: 0; font-size: 15px; padding: 2px 6px; }
.am-feed-clear:hover, .am-feed-x:hover { color: var(--text); border-color: var(--accent); }
.am-feed-list { overflow-y: auto; padding: 6px; }
.am-feed-empty { padding: 16px 14px; margin: 0; }
.am-feed-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.am-feed-item:hover { background: var(--surface-2); }
.am-feed-item > i { font-size: 17px; color: var(--accent); margin-top: 1px; }
.am-feed-text { flex: 1; font-size: 13.5px; color: var(--text); }
.am-feed-text small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.am-feed-dismiss { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 12px; padding: 2px 4px; }
.am-feed-dismiss:hover { color: var(--text); }
.am-feed-new { animation: dashboard-feed-flash 1.8s ease-out 1; }
@media (max-width: 780px) {
  .am-feed { left: 8px; right: 8px; width: auto; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); z-index: 260; }
}

/* ---------- BEO: what changed + History (banquet-changes.js) ---------- */
.bq-chg { border-radius: 5px; background: rgba(229, 165, 61, 0.28); box-shadow: 0 0 0 2px rgba(229, 165, 61, 0.55); animation: bq-blink 0.65s ease-in-out 4; }
.bq-chg.bq-chg-done { animation: none; background: rgba(229, 165, 61, 0.16); box-shadow: 0 0 0 1px rgba(229, 165, 61, 0.45); }
@keyframes bq-blink { 0%, 100% { background: rgba(229, 165, 61, 0.12); } 50% { background: rgba(229, 165, 61, 0.55); } }
.bq-was { display: inline-block; font-size: 11px; font-weight: 700; color: #1a140a; background: #e5a53d; border-radius: 999px; padding: 0 7px; margin-left: 6px; vertical-align: 1px; font-style: normal; }
.bq-chg-banner { margin: 10px 0 12px; padding: 10px 12px; border: 1px solid rgba(229, 165, 61, 0.6); border-radius: var(--radius-sm); background: rgba(229, 165, 61, 0.1); font-size: 13px; }
.bq-chg-banner b { display: block; margin-bottom: 3px; color: var(--accent); }
.bq-removed { margin-top: 4px; color: var(--text-muted); }
.bq-history { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 10px; font-size: 13px; }
.bq-history summary { cursor: pointer; font-weight: 700; color: var(--text-muted); }
.bq-history ul { list-style: none; margin: 8px 0 0; padding: 0; }
.bq-history li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.bq-h-when { color: var(--text-muted); font-size: 12px; }
.bq-h-who { font-size: 12px; font-weight: 600; margin-left: 6px; }
@media print { .bq-chg, .bq-chg.bq-chg-done { background: none !important; box-shadow: none !important; } .bq-was, .bq-chg-banner { display: none !important; } }

/* ---------- Clearing the menu badges ---------- */
.vo-badge-skipped { background: var(--surface-2); color: var(--text-muted); border: 1px dashed var(--border); }
tr.vo-skipped-row td { color: var(--text-muted); }
tr.vo-skipped-row td.item-name { text-decoration: line-through; text-decoration-color: rgba(167, 158, 140, 0.6); }
.vo-skipped-note { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-muted); font-size: 13px; }
.vo-draft-skip { margin-left: 6px; padding: 2px 8px; font-size: 11.5px; }
.ls-item-row { flex-wrap: wrap; }
.ls-item-row .ls-handle-btn { padding: 3px 9px; font-size: 12px; }
.ls-item-row.ls-handled { opacity: 0.6; }
.ls-item-row.ls-handled .ls-item-text { text-decoration: line-through; }
.ls-handled-tag { color: var(--positive, #6fae6a); font-weight: 600; }
.inc-followup-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.inc-followup-label input { width: auto; padding: 3px 6px; font-size: 12.5px; }
.vo-act-cell { text-align: right; white-space: nowrap; }
.vo-act-cell .btn + .btn { margin-left: 6px; }
.ls-handled-tag.ls-h-not_needed { color: var(--text-muted); }

/* ---------- Notes board on a phone: one stack + drop-down, hold to move ---------- */
.nb-ph { position: relative; }
.nb-ph .nb-count { margin-left: 4px; }
.nb-ph-picker { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; color: var(--text); font: inherit; cursor: pointer; text-align: left; margin-bottom: 18px; }
.nb-ph-picker b { font-size: 14.5px; } .nb-ph-picker small, .nb-ph-sec-head small { display: block; color: var(--text-muted); font-size: 12px; }
.nb-ph-chev { margin-left: auto; color: var(--text-muted); }
.nb-av-all { background: var(--surface-2); color: var(--text); font-size: 15px; }
.nb-ph-menu { position: absolute; left: 0; right: 0; top: 58px; z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); padding: 6px; }
.nb-ph-menu[hidden] { display: none; }
.nb-ph-menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 6px; }
.nb-ph-opt { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); font: inherit; padding: 8px; border-radius: 8px; text-align: left; cursor: pointer; }
.nb-ph-opt.on { background: var(--accent-soft); }
.nb-ph-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e5533d; margin-left: 6px; vertical-align: 1px; }
.nb-ph-list { display: flex; flex-direction: column; }
.nb-ph-sec { display: flex; flex-direction: column; gap: 18px; padding: 0 4px; }
.nb-ph-sec + .nb-ph-sec { margin-top: 26px; }
.nb-ph-sec-head { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 8px 0; margin: 0 -4px; }
.nb-ph-sec-head b { font-size: 14.5px; }
.nb-empty-phone { border: 1px dashed var(--border); border-radius: 10px; padding: 22px 10px; margin: 0; }
.nb-ph .nb-sticky { -webkit-touch-callout: none; touch-action: pan-y; cursor: pointer; }
.nb-ph .nb-sticky.nb-holding { transform: scale(1.03) rotate(0deg); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6); transition: transform 0.45s, box-shadow 0.45s; }
#nb-sheet-wrap { position: fixed; inset: 0; z-index: 9000; }
.nb-sheet-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.18s; }
.nb-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 85vh; overflow-y: auto; background: var(--surface); border-radius: 18px 18px 0 0; padding: 10px 14px calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform 0.2s; }
#nb-sheet-wrap.open .nb-sheet-shade { opacity: 1; } #nb-sheet-wrap.open .nb-sheet { transform: none; }
.nb-sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto 12px; }
.nb-sheet h4 { margin: 0 0 2px; font-size: 16px; }
.nb-sheet-sub { color: var(--text-muted); font-size: 12.5px; margin-bottom: 10px; }
.nb-sheet-opt { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font: inherit; padding: 10px; border-radius: 10px; margin-bottom: 8px; text-align: left; cursor: pointer; }
.nb-sheet-opt:disabled { opacity: 0.45; cursor: default; }
.nb-sheet-tag { margin-left: auto; color: var(--text-muted); font-size: 12px; }
.nb-sheet-row { display: flex; gap: 8px; margin-top: 6px; }
.nb-sheet-btn { flex: 1; background: none; border: 1px solid var(--border); color: var(--text); font: inherit; padding: 10px; border-radius: 10px; cursor: pointer; }
.nb-ph > .hint { font-size: 12.5px; color: var(--text-muted); }

/* Specials: the dish name stands apart from its description */
.sp-name { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Header quick actions: 86 · repair · incident · Uploads */
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-actions .topbar-uploads-btn { margin-left: 0; }
.topbar-icon-btn { width: 36px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--accent); cursor: pointer; padding: 0; }
.topbar-icon-btn:hover, .topbar-icon-btn:focus-visible { border-color: var(--accent); outline: none; }
.topbar-icon-btn i { font-size: 18px; }
.tb-86 { font-weight: 800; font-size: 13px; letter-spacing: -0.02em; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 3px; line-height: 16px; }

/* Settings: grouped */
.settings-group-card .settings-card-label { display: flex; align-items: center; gap: 8px; }
.settings-group-card .settings-card-label i { color: var(--accent); font-size: 20px; }
.settings-group-count { margin-left: auto; background: var(--surface-2); color: var(--text-muted); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600; font-family: inherit; }
.settings-back { margin-bottom: 14px; }
.settings-group-title { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 20px; }
.settings-group-title i { color: var(--accent); }
.crumb-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; }
.crumb-link:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Bar & Inventory → Stock vs Par */
.sp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-actions .btn.active { border-color: var(--accent); color: var(--accent); }
.sp-filters { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.sp-filters input[type="search"] { flex: 1; min-width: 220px; max-width: 420px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; font: inherit; }
.sp-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); text-transform: none; letter-spacing: normal; cursor: pointer; }
.sp-warn { color: var(--warning); margin: 0 0 10px; }
.sp-table tr.sp-under td.sp-onhand { color: var(--negative); font-weight: 700; }
.sp-table td .hint { font-size: 12px; }
.sp-flag { color: var(--warning); }
.sp-par-input { width: 72px; text-align: right; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 6px; font: inherit; }
/* Item Sales: top 5 when no day is picked */
.is-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.is-top ol { margin: 0; padding: 0; list-style: none; counter-reset: istop; }
.is-top li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); counter-increment: istop; }
.is-top li:last-child { border-bottom: 0; }
.is-top li::before { content: counter(istop); width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.is-top li:first-child::before { background: var(--accent); color: var(--on-accent, #1a140b); }
.is-top .is-top-name { flex: 1; min-width: 0; }
.is-top .is-top-qty { font-weight: 700; }
.is-top .is-top-rev { color: var(--text-muted); font-size: 12.5px; min-width: 72px; text-align: right; }
.sp-warn, .is-top + .hint { font-size: 13px; }
@media (max-width: 640px) { .sp-table th:nth-child(3), .sp-table td:nth-child(3) { display: none; } }

/* Flash Report */
.dash-toolbar { display: flex; justify-content: flex-end; gap: 8px; margin: -8px 0 14px; }
.dash-toolbar .btn i { color: var(--accent); font-size: 16px; vertical-align: -2px; }
.flash { max-width: 980px; margin: 0 auto; }
.flash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 6px; }
.flash-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.flash-nav input[type="date"] { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px; font: inherit; }
.flash-sec { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.flash-sec:last-child { border-bottom: 0; }
.flash-sec h3 { margin: 0 0 12px; font-size: 16px; color: var(--accent); }
.flash-sub { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 14px 0 8px; }
.flash-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
.flash-kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.flash-kpi span { font-size: 12px; color: var(--text-muted); }
.flash-kpi b { font-size: 22px; }
.flash-kpi-sm b { font-size: 18px; }
.flash-kpi small { font-size: 12px; color: var(--text-muted); min-height: 15px; }
.flash-table tr.flash-total td { border-top: 2px solid var(--border); font-weight: 700; }
.flash-list { margin: 0; padding: 0; list-style: none; }
.flash-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.flash-list li:last-child { border-bottom: 0; }
@media print {
  .flash-kpi { background: #fff !important; border-color: #bbb !important; }
  .flash-sec { break-inside: avoid; }
}
.flash { width: 100%; min-width: 0; overflow-x: hidden; }
.flash .table-scroll-wrap { overflow-x: auto; max-width: 100%; }
.flash .hint, .flash p.hint { font-size: 12.5px; }
.flash-list li > span { font-size: 12.5px; }
@media (max-width: 640px) { .flash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flash-kpi b { font-size: 18px; } }

/* Costing → Menu Mix */
.mm-axes { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: 1fr auto; gap: 6px; }
.mm-y { grid-row: 1; grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 12px; color: var(--text-muted); }
.mm-x { grid-row: 2; grid-column: 2; text-align: right; font-size: 12px; color: var(--text-muted); }
.mm-grid { grid-row: 1; grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mm-box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface-2); min-width: 0; }
.mm-star { border-color: var(--positive); }
.mm-box-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mm-box-head b { font-size: 18px; }
.mm-box-head .hint { margin-left: auto; }
.mm-what { font-size: 12.5px; color: var(--text-muted); margin: 0 0 8px; }
.mm-list { list-style: none; margin: 0; padding: 0; }
.mm-list li { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.mm-list li:last-child { border-bottom: 0; }
.mm-name { flex: 1; min-width: 0; }
.mm-name small { display: block; color: var(--text-muted); font-size: 11.5px; }
.mm-qty { font-weight: 700; min-width: 40px; text-align: right; }
.mm-cm { color: var(--text-muted); font-size: 12.5px; min-width: 60px; text-align: right; }
.mm-more { margin-top: 6px; font-size: 12.5px; }
.mm-unclassed { margin-top: 14px; font-size: 13px; }
.mm-unclassed summary { cursor: pointer; color: var(--text-muted); }
.mm-unclassed div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mm-unclassed div span { background: var(--surface-2); border-radius: 4px; padding: 2px 8px; font-size: 12px; }
@media (max-width: 700px) { .mm-grid { grid-template-columns: 1fr; } .mm-axes { display: block; } .mm-y, .mm-x { display: none; } }

/* ⭐ Shout-outs */
.shout-list { list-style: none; margin: 0; padding: 0; }
.shout-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--border); }
.shout-list li:last-child { border-bottom: 0; }
.shout-star { font-size: 18px; line-height: 1.2; }
.shout-body { flex: 1; min-width: 0; }
.shout-body .hint { font-size: 12px; margin-top: 2px; }
.shout-pts { color: var(--accent); font-weight: 700; }
.shout-del { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 12px; padding: 2px 4px; }
.shout-del:hover { color: var(--negative); }
.shout-pop { text-align: center; }
.shout-pop-star { font-size: 54px; animation: shoutPop 0.6s ease-out; }
@keyframes shoutPop { 0% { transform: scale(0.3) rotate(-30deg); opacity: 0; } 70% { transform: scale(1.15) rotate(8deg); opacity: 1; } 100% { transform: none; } }
.shout-pop h2 { margin: 6px 0 14px; }
.shout-pop blockquote { margin: 0 0 12px; padding: 12px 14px; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); text-align: left; font-size: 15px; }
.shout-pop cite { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--text-muted); }

/* My Stats */
.ms-periods { flex-wrap: wrap; }
.ms-avg { border-color: var(--accent); }
.ms-note { margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); }
.ms-weeks tr.ms-off td { color: var(--text-muted); }

/* Dashboard: Next 7 Days forecast */
.fc-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.fc-day { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.fc-day:hover { border-color: var(--accent); }
.fc-today { border-color: var(--accent); }
.fc-dow { font-weight: 700; font-size: 13px; }
.fc-dow small { display: block; font-weight: 400; color: var(--text-muted); font-size: 11.5px; }
.fc-sales { font-size: 17px; margin-top: 4px; }
.fc-cov, .fc-ly { font-size: 12px; color: var(--text-muted); }
.fc-booked, .fc-ev { font-size: 11.5px; color: var(--accent); }
.fc-closed { opacity: 0.6; }
.fc-big { font-size: 18px; }
.fc-why { width: 100%; font-size: 13.5px; }
.fc-why td { padding: 6px 4px; border-bottom: 1px solid var(--border); }
@media (max-width: 900px) { .fc-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fc-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Banquet $ (managers only) */
.bf-box { border: 1px dashed var(--accent); border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0 14px; background: var(--accent-soft); }
.bf-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.bf-kpis { margin-bottom: 4px; }
.bf-act-row { display: flex; align-items: center; gap: 4px; }
.bf-act-row input { width: 100%; max-width: 140px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 6px; font: inherit; font-size: 16px; font-weight: 700; }
.bf-lines { font-size: 13px; margin-top: 6px; }
.bf-lines summary { cursor: pointer; color: var(--text-muted); }
.bf-lines table { width: 100%; margin-top: 6px; }
.bf-lines td { padding: 4px; border-bottom: 1px solid var(--border); }
.bf-chip { color: var(--accent); font-weight: 600; margin-left: 4px; }
.bf-chip:not(:empty)::before { content: "· "; color: var(--text-muted); font-weight: 400; }
.bf-head .hint { font-size: 12px; }

/* Invoice upload */
.inv-paste { margin: 4px 0 12px; font-size: 13px; }
.inv-paste summary { cursor: pointer; color: var(--text-muted); }
.inv-paste textarea { width: 100%; margin-top: 6px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; font: 12.5px/1.4 ui-monospace, monospace; }
.inv-table td { vertical-align: top; }
.inv-table .inv-text { font-family: ui-monospace, monospace; font-size: 12px; color: var(--text-muted); max-width: 320px; }
.inv-table select { max-width: 230px; }
.inv-table .inv-qty { width: 72px; text-align: right; }
.inv-table tr.inv-unmatched td { opacity: 0.75; }
.inv-price { display: inline-flex; align-items: center; gap: 4px; color: var(--warning); font-weight: 600; text-transform: none; letter-spacing: normal; }

/* Manager Calendar: US holidays */
.mgrcal-holiday { font-size: 10.5px; line-height: 1.25; padding: 2px 6px; margin-bottom: 3px; border-radius: 4px; background: var(--surface-2); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgrcal-holiday-fed { color: var(--accent); }
.mgrcal-holiday-line { margin: 0 0 10px; }
.bf-warn { margin: 6px 0 0; font-size: 12.5px; color: var(--warning); }

/* ---- Two inventories (inventory-centers.js) ---- */
.tr-intro, .inv-center-card p.hint, .tr-table .hint, .tr-lines .hint, .tr-results .hint { font-size: 12.5px; color: var(--text-muted); }
.tr-intro { margin: 0 0 12px; }
.tr-kpis { margin-bottom: 14px; }
.tr-dir { white-space: nowrap; font-size: 13px; }
.tr-up { color: var(--accent); }
.tr-results { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.tr-hit { background: var(--surface-2, rgba(255,255,255,.05)); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.tr-hit:hover { border-color: var(--accent); }
.tr-lines { margin-bottom: 12px; }
.tr-lines .tr-qty { max-width: 90px; }
.inv-center-switch { margin: 0; flex-shrink: 0; }
.inv-center-switch .segment-btn { white-space: nowrap; }
@media (max-width: 640px) { .tr-table td:nth-child(5), .tr-table th:nth-child(5), .tr-table td:nth-child(6), .tr-table th:nth-child(6) { display: none; } }

/* ---- Sales → Forecast (forecast-history.js) ---- */
.fh-legend { font-size: 12.5px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.5; }
.fh-dows, .fh-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fh-dows span { text-align: center; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); padding-bottom: 4px; }
.fh-cell { min-height: 84px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 7px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--surface); color: var(--text); font: inherit; text-align: left; position: relative; }
button.fh-cell { cursor: pointer; }
button.fh-cell:hover { border-color: var(--accent); }
.fh-blank { border: none; background: none; }
.fh-far { opacity: .35; }
.fh-n { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.fh-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.fh-act { font-weight: 700; font-size: 14px; }
.fh-fc { font-weight: 600; font-size: 14px; color: var(--accent); }
.fh-sub { font-size: 11.5px; color: var(--text-muted); }
.fh-light { opacity: .6; }
.fh-closed { background: var(--surface-2); }
.fh-closed-lbl { font-size: 12px; color: var(--text-muted); }
.fh-ev { position: absolute; top: 5px; right: 6px; font-size: 11px; }
.fh-miss { font-size: 11.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; margin-top: auto; }
.fh-miss.fh-good { background: rgba(110, 170, 90, .18); }
.fh-miss.fh-warn { background: rgba(214, 160, 40, .2); }
.fh-miss.fh-bad { background: rgba(210, 80, 60, .2); }
.fh-good { color: var(--positive, #6fae5a); }
.fh-warn { color: var(--warning); }
.fh-bad { color: var(--negative, #d2503c); }
.fh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.fh-stat-h { font-weight: 700; margin-bottom: 6px; }
.fh-stat-t td, .fh-stat-t th { padding: 6px 8px; }
.fh-wk .fh-off td { color: var(--text-muted); }
@media (max-width: 640px) {
  .fh-dows, .fh-grid { gap: 3px; }
  .fh-cell { min-height: 64px; padding: 4px; }
  .fh-act, .fh-fc { font-size: 11.5px; }
  .fh-sub { font-size: 10px; }
  .fh-miss { font-size: 10px; padding: 0 4px; }
}
@media (max-width: 640px) { .fh-future .fh-sub { display: none; } .fh-past .fh-sub { white-space: nowrap; letter-spacing: -.02em; } }

/* Reservation upload: several days in one file */
.res-days td { vertical-align: top; }
.res-days .hint { font-size: 12px; color: var(--text-muted); }
.res-day-off td { opacity: .55; }
.res-day-off td:first-child { opacity: 1; }
.res-today { font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.res-warn { font-size: 12px; color: var(--warning); margin-top: 3px; max-width: 420px; }
.res-day-times { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; }
.res-day-times[hidden] { display: none; }
.res-days-intro { font-size: 12.5px; color: var(--text-muted); margin: 0 0 10px; }
.res-day-open { color: var(--text); text-decoration: underline dotted; text-underline-offset: 3px; font-weight: 600; }
.res-day-open:hover { color: var(--accent); }

/* ---- Staff & Labor → Payroll Check (payroll-check.js) ---- */
.pc-week-label { font-weight: 700; font-size: 16px; padding: 0 6px; cursor: default; }
.pc-counts { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.pc-legend { font-size: 12.5px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.6; }
.pc-green { color: var(--positive); } .pc-red { color: var(--negative); } .pc-yellow { color: var(--warning); } .pc-orange { color: #B4561A; } .pc-grey { color: var(--text-muted); }
.pc-table th.pc-dh { text-align: center; } .pc-table th.pc-dh small { display: block; font-weight: 400; }
.pc-table th.pc-noup { opacity: .45; }
.pc-cell { text-align: center; padding: 4px !important; min-width: 74px; }
.pc-btn { background: none; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; width: 100%; cursor: pointer; color: var(--text); font: inherit; display: flex; flex-direction: column; align-items: center; gap: 1px; position: relative; }
.pc-btn:hover { border-color: var(--border); }
.pc-btn small { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.pc-ic { font-size: 18px; font-weight: 800; line-height: 1; }
.pc-cell.pc-green .pc-ic { color: var(--positive); }
.pc-cell.pc-red .pc-ic { color: var(--negative); } .pc-cell.pc-red .pc-btn { background: var(--negative-soft, rgba(184,89,63,.14)); }
.pc-cell.pc-yellow .pc-ic { color: var(--warning); } .pc-cell.pc-yellow .pc-btn { background: rgba(214,160,40,.12); }
.pc-cell.pc-orange .pc-ic { color: #B4561A; } .pc-cell.pc-orange .pc-btn { background: rgba(224,123,42,.12); }
.pc-cell.pc-banquet .pc-ic, .pc-cell.pc-other .pc-ic, .pc-cell.pc-nosched .pc-ic, .pc-cell.pc-nodata-sched .pc-ic { color: var(--text-muted); }
.pc-cell.pc-nodata, .pc-cell.pc-nodata-sched { opacity: .5; }
.pc-sw { position: absolute; top: 1px; right: 4px; font-size: 11px; color: var(--accent); }
.pc-switches { margin: 0; padding-left: 18px; line-height: 1.7; }
.pc-why.pc-red { color: var(--negative); } .pc-why.pc-yellow { color: var(--warning); } .pc-why.pc-orange { color: #B4561A; }
.pc-cell.pc-worked .pc-ic { color: var(--text-muted); }

/* ---- Wine List (daily-sales.js) ---- */
.wl-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; }
.wl-tools input[type="search"] { flex: 1 1 260px; }
.wl-styles { margin: 0; flex-wrap: wrap; }
.wl-group { margin: 20px 0 8px; color: var(--accent); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.wl-group span { color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.wl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.wl-wine { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.wl-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.wl-name { font-weight: 700; font-size: 15px; }
.wl-grape { font-size: 13px; color: var(--accent); margin-top: 1px; }
.wl-actions { display: flex; gap: 6px; flex-shrink: 0; }
.wl-desc { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; }
.wl-empty { margin: 8px 0 0; font-size: 12.5px; color: var(--text-muted); font-style: italic; }
.wl-pair { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.wl-pair span { font-weight: 600; color: var(--text-muted); margin-right: 4px; }
.wl-wine mark { background: rgba(214, 160, 40, .35); color: inherit; border-radius: 2px; }

/* ---- QR scan / item card / pictures (item-scan.js) ---- */
.its-overlay { position: fixed; inset: 0; z-index: 9000; background: #000; display: flex; flex-direction: column; color: #fff; }
.its-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: rgba(0,0,0,.6); }
.its-count { font-weight: 600; }
.its-cam { position: relative; flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.its-cam video { width: 100%; height: 100%; object-fit: cover; }
.its-frame { position: absolute; width: min(60vw, 260px); aspect-ratio: 1; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.its-msg { position: absolute; bottom: 14px; left: 12px; right: 12px; text-align: center; margin: 0; font-weight: 600; text-shadow: 0 1px 4px #000; }
.its-msg:empty { display: none; }
.its-has-card .its-cam { flex: 0 0 22vh; }
.its-panel { flex: 1; overflow-y: auto; background: var(--surface); color: var(--text); border-radius: 16px 16px 0 0; padding: 14px 16px 18px; }
.its-panel[hidden] { display: none; }
.it-info { display: flex; gap: 12px; align-items: flex-start; }
.it-photo { width: 92px; height: 92px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.it-photo img { width: 100%; height: 100%; object-fit: cover; }
.it-nophoto { font-size: 11px; color: var(--text-muted); text-align: center; }
.it-name { font-weight: 700; font-size: 17px; line-height: 1.2; }
.it-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.it-price { font-size: 14px; font-weight: 600; margin-top: 4px; }
.it-pad { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.it-already { font-size: 13px; color: var(--warning); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.it-pad .segment-control { margin: 0; }
.it-units .segment-btn, .it-mode .segment-btn { flex: 1; }
.it-qty-row { display: flex; gap: 8px; align-items: stretch; }
.it-step { width: 56px; font-size: 26px; font-weight: 700; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.it-qty { flex: 1; min-width: 0; width: auto !important; background: var(--surface-2) !important; color: var(--text) !important; border: 1px solid var(--border) !important; border-radius: 10px; font-size: 28px !important; font-weight: 700; text-align: center; padding: 8px !important; }
.it-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.it-key { padding: 12px 0; font-size: 20px; font-weight: 600; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.it-key:active, .it-step:active { background: var(--accent); color: var(--on-accent, #1a140d); }
.it-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.it-actions .it-save { flex: 1 1 100%; padding: 14px; font-size: 16px; }
.it-history { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 8px; }
.it-history[hidden] { display: none; }
.it-usually { margin: 4px 0 8px; font-size: 14px; }
.it-hist { width: 100%; font-size: 13px; }
.it-hist td { padding: 5px 6px !important; vertical-align: top; }
.it-card { max-width: 460px; }
.it-photo-big { display: flex; justify-content: center; margin: 8px 0 12px; }
.it-photo-big img { max-width: 100%; max-height: 60vh; border-radius: 12px; border: 1px solid var(--border); }
.item-photo-btn.has-photo { color: var(--accent); }
@media (min-width: 900px) { .its-overlay { left: auto; width: 480px; border-left: 1px solid var(--border); } }
.its-has-card .its-frame { display: none; }

/* ---- Wine List import / review (wine-import.js) ---- */
.wl-mgr-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.wl-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 1px; }
.wl-price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.wl-top > div:first-child { flex: 1; min-width: 0; }
.wl-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.wl-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; vertical-align: middle; text-transform: uppercase; }
.wl-src { background: rgba(214,160,40,.18); color: var(--warning); border: 1px solid rgba(214,160,40,.45); }
.wl-draft { background: var(--surface-2); color: var(--text-muted); border: 1px dashed var(--border); }
.wl-nolink { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); text-transform: none; letter-spacing: 0; font-weight: 600; }
.wl-out { background: var(--negative-soft, rgba(184,89,63,.14)); color: var(--negative); border: 1px solid var(--negative); }
.wi-sum { line-height: 2; padding-left: 18px; }
.wi-list { margin: 0 0 10px; padding-left: 18px; line-height: 1.7; font-size: 13.5px; }
.wr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wr-price { font-size: 16px; color: var(--accent); margin-left: 6px; }
.wr-tags { margin: 4px 0 10px; }
.wr-facts td { padding: 4px 8px !important; font-size: 13px; vertical-align: top; }
.wr-facts td:first-child { color: var(--text-muted); white-space: nowrap; width: 1%; }
.wr-note { color: var(--warning); }
.wr-link { display: flex; flex-direction: column; gap: 8px; }
.wr-sugg { display: flex; flex-direction: column; gap: 4px; }
.wr-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 14px; }
.wr-opt[hidden] { display: none; }
.wr-opt:has(input:checked) { border-color: var(--accent); background: rgba(214,160,40,.08); }
.wr-link-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.wr-actions { flex-wrap: wrap; }
.wr-actions #wr-keep { min-width: 120px; }

/* ---- Wine List: pictures + locations (wine-extras.js) ---- */
.wl-main { flex: 1; min-width: 0; }
.wl-thumb { width: 64px; height: 84px; flex-shrink: 0; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); padding: 0; overflow: hidden; cursor: zoom-in; }
.wl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-loc { font-size: 12.5px; font-weight: 600; margin-top: 3px; }
#wl-loc { max-width: 170px; }
.wx-loc { display: grid; grid-template-columns: minmax(0, 1.4fr) 64px 76px auto; gap: 6px 8px; align-items: end; margin-bottom: 10px; }
.wx-loc-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.wx-loc-f select, .wx-loc-f input { width: 100%; min-width: 0; }
.wx-loc .wx-letter, .wx-loc .wx-num { text-align: center; text-transform: uppercase; }
.wx-loc-prev { grid-column: 1 / -1; font-size: 12.5px; color: var(--accent); margin-top: -2px; }
.wx-loc-prev:empty { display: none; }
.wx-photo-row { display: flex; gap: 12px; align-items: center; }
.wx-photo { width: 84px; height: 110px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wx-photo img { width: 100%; height: 100%; object-fit: cover; }
.wx-photo-btns { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wx-print-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wx-print { width: 100%; margin-bottom: 14px; }
.wx-print td { padding: 5px 8px !important; }
.wx-spotcell { width: 56px; font-weight: 800; font-size: 16px; text-align: center; }

/* ---- Wine stock + printed menu (wine-menu-stock.js) ---- */
.wl-last { background: rgba(214,160,40,.18); color: var(--warning); border: 1px solid rgba(214,160,40,.5); }
.wl-stock { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.ws-soldout { border-color: var(--negative); }
.ws-list { margin: 0; padding-left: 18px; line-height: 2; }
.ws-list .btn { margin-left: 6px; }
.ws-upload-note { margin: 8px 0 12px; padding: 10px 12px; border: 1px solid var(--negative); border-radius: 8px; background: var(--negative-soft, rgba(184,89,63,.14)); }
.wd-check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; padding-bottom: 8px; }

/* Wine card (phone and desktop): picture | name block | price on top, Edit / ✕ on their
   own row, so the name gets the width instead of one letter per line. */
.wl-tag { white-space: nowrap; }
.wl-list { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }
.wl-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "thumb main price" "acts acts acts"; column-gap: 12px; row-gap: 8px; align-items: start; }
.wl-top.wl-nopic { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main price" "acts acts"; }
.wl-top > .wl-thumb { grid-area: thumb; width: 56px; height: 74px; }
.wl-top > .wl-main { grid-area: main; min-width: 0; }
.wl-top > .wl-price { grid-area: price; }
.wl-top > .wl-actions { grid-area: acts; justify-content: flex-end; }
.wl-name { overflow-wrap: anywhere; word-break: normal; }
@media (max-width: 640px) {
  .wl-top { column-gap: 10px; row-gap: 6px; }
  .wl-top > .wl-price { font-size: 14px; }
  .wl-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phone fit (≤ 640px) ----------
   Found by the phone-width check (every screen + pop-up at 360px and 412px).
   Rows of buttons wrap onto a second line instead of running off the side; boxes that
   asked for a fixed minimum width shrink to the screen. Wide tables still scroll
   sideways inside their own box (mobile.js). */
@media (max-width: 640px) {
  #view-root [style*="display:flex"], #view-root [style*="display: flex"],
  #modal-root [style*="display:flex"], #modal-root [style*="display: flex"] { flex-wrap: wrap; }
  #view-root [style*="flex-shrink:0"], #view-root [style*="flex-shrink: 0"],
  #modal-root [style*="flex-shrink:0"], #modal-root [style*="flex-shrink: 0"] { flex-shrink: 1 !important; min-width: 0; }
  .segment-control { flex-wrap: wrap; max-width: 100%; }
  .card-header > * { min-width: 0; max-width: 100%; }
  .month-nav { flex-wrap: wrap; max-width: 100%; }
  #view-root canvas, #modal-root canvas, #view-root img, #modal-root img { max-width: 100%; }
  /* Grids that asked for 300–360px columns: one column that fits the screen. */
  .lyc-grid { grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
  .inv-lookup-2col { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
  .inv-lookup-2col > * { min-width: 0; }
  .beo-item-grid, .lyd-grid, .up-grid, .is-top, .fh-stats, .nb-done-grid { grid-template-columns: minmax(0, 1fr); }
  .beo-item-row { flex-wrap: wrap; }
  .dsr-months { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); min-width: 0; }
  .dsr-nav { gap: 4px; }
  .dsr-nav > .btn { padding-left: 8px; padding-right: 8px; }
  .br-progress { min-width: 0; }
  .vor-btns { flex-wrap: wrap; }
  .vor-btns .btn { min-width: 0; }
  .labor-special-all { flex-wrap: wrap; }
  .labor-tl-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  /* Item Sales calendar: the day's total in short form ($11k); tap the day for the split. */
  .is-cal-body .is-cal-total { font-size: 11px; letter-spacing: -0.2px; white-space: nowrap; }
  .is-cal-line { display: none; }
}

/* ---------- Orders: printable order sheet (order-print.js) ---------- */
.op-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding-right: 36px; }
.op-check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.op-sheet { max-width: 820px; }
.op-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--border); padding-bottom: 10px; margin-bottom: 12px; }
.op-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.op-status { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.op-dates { display: flex; gap: 20px; font-size: 14px; }
.op-dates span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.op-table { width: 100%; font-size: 13.5px; }
.op-table th, .op-table td { padding: 6px 8px; vertical-align: top; }
.op-item { font-weight: 600; }
.op-sub { font-size: 11.5px; color: var(--text-muted); font-weight: 400; }
.op-qty { font-weight: 700; }
.op-unit { font-size: 12.5px; color: var(--text-muted); }
.op-total td { font-weight: 700; font-size: 15px; border-top: 2px solid var(--border); }
.op-note { font-size: 11.5px; color: var(--text-muted); margin: 8px 0 0; }
.op-sign { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.op-sign > div { flex: 2; min-width: 180px; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.op-sign > .op-sign-date { flex: 1; min-width: 120px; }
.op-sign span { display: block; border-bottom: 1px solid var(--text-muted); height: 34px; margin-bottom: 4px; }
.op-foot { font-size: 11px; color: var(--text-muted); margin-top: 18px; }
@media print {
  .op-sheet, .op-sheet * { color: #000 !important; }
  .op-head { border-bottom-color: #000 !important; }
  .op-table th, .op-table td { border-bottom: 1px solid #bbb !important; }
  .op-total td { border-top: 2px solid #000 !important; }
  .op-sign span { border-bottom-color: #000 !important; }
}

/* ---------- Order flow: Submitted / Submit invoice / Closed (order-flow.js) ---------- */
.of-badge-sub { color: #7fa7c9; border: 1px solid #7fa7c9; background: color-mix(in srgb, #7fa7c9 14%, transparent); }
.of-badge-appr { color: var(--positive, #7fae5b); border: 1px solid var(--positive, #7fae5b); background: color-mix(in srgb, var(--positive, #7fae5b) 14%, transparent); }
.of-badge-inv { color: var(--warning); border: 1px solid var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); }
.of-badge-back { color: var(--negative); border: 1px solid var(--negative); background: color-mix(in srgb, var(--negative) 12%, transparent); }
.of-screen .card-header { margin-bottom: 12px; }
.of-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.of-stats > div { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; min-width: 0; }
.of-stats span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.of-stats b { font-size: 18px; font-family: var(--font-display); }
.of-stats b.of-stat-small { font-size: 14px; font-family: inherit; }
.of-stats small { display: block; font-size: 11px; color: var(--text-muted); }
.of-stats input { width: 100%; font-size: 17px; font-weight: 700; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 8px; }
.of-table { width: 100%; }
.of-table td { vertical-align: top; }
.of-total-row td { font-weight: 700; border-top: 2px solid var(--border); }
.of-note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 10px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 12px 0; font-size: 14px; }
.of-note textarea { width: 100%; margin-top: 8px; }
.of-note-ok { border-left-color: var(--positive, #7fae5b); background: color-mix(in srgb, var(--positive, #7fae5b) 10%, transparent); }
.of-note-warn { border-left-color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); }
.of-note-bad { border-left-color: var(--negative); background: color-mix(in srgb, var(--negative) 10%, transparent); }
.of-note-ask { border: 1px solid var(--accent); border-left-width: 3px; }
.of-ok { color: var(--positive, #7fae5b); margin-top: 6px; }
.of-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.of-main-acts { margin-top: 18px; }
.of-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: normal; }
.of-lock { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; }
.of-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.of-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.of-sec-head h3 { margin: 0; font-size: 16px; }
.of-sec-head .of-acts { margin-top: 0; }
.of-invoices { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.of-inv-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.of-inv-file .attachment-thumb { max-width: 90px; max-height: 110px; border-radius: 6px; cursor: zoom-in; }
.of-chg { color: var(--warning); font-weight: 700; font-size: 12px; }
.of-warn { color: var(--warning); }
.of-line-btns { white-space: nowrap; }
.of-charges { display: flex; flex-direction: column; gap: 6px; }
.of-charge { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.of-charge > span:first-child { min-width: 0; }
.of-charge select, .of-charge input { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 9px; font: inherit; font-size: 14px; min-width: 0; }
.of-charge select { width: 100%; }
.of-charge-new { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.of-charge-new-label { font-size: 12px; color: var(--text-muted); margin: 10px 0 0; }
.of-dollar { display: inline-flex; align-items: center; gap: 4px; }
.of-dollar input { width: 96px; text-align: right; }
.of-sug-charges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.of-history { margin-top: 14px; font-size: 13px; }
.of-history summary { cursor: pointer; color: var(--text-muted); }
.of-history ul { margin: 6px 0 0; padding-left: 18px; }
.of-history li { margin: 4px 0; }
.of-sign-card { border-color: var(--accent); }
.of-sign-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); }
.op-approved { margin-top: 24px; font-size: 13px; }
.ect-table { width: 100%; max-width: 520px; }
.ect-table input { width: 100%; }
.ect-add { display: flex; gap: 8px; margin-top: 10px; max-width: 520px; }
.ect-add input { flex: 1; min-width: 0; }
.ecr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding-right: 36px; }
.ecr-sub { color: var(--text-muted); font-size: 13px; margin: 0 0 6px; }
.ecr-grand b { color: var(--accent); }
.ecr-byvendor { max-width: 420px; font-size: 13px; margin-bottom: 12px; }
.ecr-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 4px; }
.ecr-line { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--border); padding: 2px 0; }
.ecr-table { width: 100%; font-size: 13px; }
@media print {
  .ecr, .ecr * { color: #000 !important; }
  .ecr-table th, .ecr-table td { border-bottom: 1px solid #ccc !important; }
  .ecr .of-stats > div { border-color: #999 !important; }
}

.of-unit-inline { display: none; }
/* Phone: each order line is a small card (no sideways scrolling to reach Edit). */
@media (max-width: 640px) {
  .table-scroll-wrap table.of-table { min-width: 0; }
  .of-table thead { display: none; }
  .of-table, .of-table tbody, .of-table tr { display: block; width: 100%; }
  .of-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .of-table td { display: block; border: 0 !important; padding: 0 !important; text-align: left !important; min-width: 0; }
  .of-table td:first-child { grid-column: 1 / -1; }
  .of-table td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
  .of-table td.of-unit-col { display: none; }
  .of-table .of-unit-inline { display: inline; }
  .of-table td.of-line-btns { grid-column: 1 / -1; text-align: right !important; }
  .of-table td.of-line-btns:empty { display: none; }
  .of-table .of-total-row { grid-template-columns: 1fr auto; }
  .of-table .of-total-row td:first-child { grid-column: auto; }
  .of-table .of-total-row td:empty { display: none; }
}
.of-note textarea, .modal-dialog #of-c-note, .modal-dialog #of-sb-note, .modal-dialog #of-r-why { font: inherit; font-size: 14px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; width: 100%; }
.of-line-btns .btn { font-family: var(--font-body); }

/* ---------- Restock Requests (restock.js) ---------- */
.rs-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.rs-big { min-height: 46px; font-size: 16px; padding-left: 20px; padding-right: 20px; }
.rs-list { display: flex; flex-direction: column; }
.rs-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--border); }
.rs-row:first-child { border-top: 0; }
.rs-main { flex: 1 1 260px; min-width: 0; }
.rs-name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.rs-meta { font-size: 13.5px; margin-top: 2px; }
.rs-tag { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); vertical-align: middle; }
.rs-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.rs-acts .rs-qty { width: 76px; text-align: right; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; font-size: 15px; }
.rs-acts .rs-unit { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; font: inherit; font-size: 13.5px; }
.rs-picker { max-width: 560px; margin: 0 auto; }
.rs-pick-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; padding-right: 36px; }
.rs-sent { color: var(--positive, #7fae5b); font-weight: 600; margin: 0 0 10px; }
.rs-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 170px); gap: 8px; margin-bottom: 10px; }
.rs-filters input, .rs-filters select { width: 100%; min-width: 0; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-size: 15px; }
.rs-pick-list { display: flex; flex-direction: column; gap: 6px; max-height: min(58vh, 520px); overflow-y: auto; padding-right: 2px; }
.rs-pick { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.rs-pick:hover, .rs-pick:focus-visible { border-color: var(--accent); }
.rs-pick-open { border-style: dashed; margin-bottom: 10px; font-weight: 600; }
.rs-pick-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin: 8px 0 2px; }
.rs-q-name { margin: 4px 0 4px; font-size: 20px; overflow-wrap: anywhere; }
.rs-warn { border-left: 3px solid var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); padding: 10px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 4px 0 12px; font-size: 14px; }
.rs-qty-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 16px; }
.rs-qty-row input { width: 96px; text-align: center; font-size: 22px; font-weight: 700; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; }
.rs-step { min-width: 48px; min-height: 48px; font-size: 22px; padding: 0; justify-content: center; }
.rs-picker #rs-submit { width: 100%; justify-content: center; }
.rs-dash-btn-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rs-dash { border-color: var(--accent); }
.rs-dash-list { margin: 0; padding-left: 18px; line-height: 1.8; }
@media (max-width: 640px) {
  .rs-top .rs-big { width: 100%; justify-content: center; }
  .rs-acts { width: 100%; justify-content: flex-start; }
  .rs-filters { grid-template-columns: 1fr; }
}
.rs-case-label { font-weight: 700; font-size: 15px; }

/* ---------- Waste for staff (staff-waste.js) ---------- */
.sw-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.sw-list { display: flex; flex-direction: column; }
.sw-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--border); }
.sw-row:first-child { border-top: 0; }
.sw-main { flex: 1 1 240px; min-width: 0; }
.sw-name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.sw-qty { font-weight: 600; color: var(--accent); }
.sw-note { font-size: 13.5px; margin-top: 3px; }
.sw-acts { display: flex; gap: 8px; }
.sw-qty-in { display: flex; align-items: center; gap: 8px; }
.sw-qty-in input { min-width: 0; }
@media (max-width: 640px) { .sw-top .rs-big { width: 100%; justify-content: center; } }

/* ---------- Wine count (wine-count.js) ---------- */
.wine-count-btn { font-weight: 800; font-size: 15px; min-width: 38px; justify-content: center; }
.wl-counted { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--positive, #7fae5b); border: 1px solid var(--positive, #7fae5b); border-radius: 999px; padding: 1px 8px; }
.wl-counted-old { color: var(--warning); border-color: var(--warning); }
.wc { max-width: 460px; }
.wc-tot { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 2px; flex-wrap: wrap; }
.wc-tot b { font-size: 34px; font-family: var(--font-display); }
.wc-split { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.wc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-top: 6px; }
.wc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.wc-chip { all: unset; cursor: pointer; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; background: var(--surface-2); color: var(--text); }
.wc-chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.wc-qty { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.wc-qty input { width: 90px; text-align: center; font-size: 22px; font-weight: 700; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; }
.wc-go { display: flex; gap: 8px; margin-bottom: 12px; }
.wc-big { flex: 1; min-height: 46px; font-size: 16px; justify-content: center; }
.wc-log { border-top: 1px solid var(--border); margin-top: 4px; }
.wc-log-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dotted var(--border); }
.wc-plus { color: var(--positive, #7fae5b); font-weight: 800; }
.wc-minus { color: var(--negative); font-weight: 800; }
.wc-undo { all: unset; cursor: pointer; color: var(--text-muted); padding: 2px 8px; font-size: 15px; }
.wc-undo:hover { color: var(--negative); }
.wc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.wc-danger { color: var(--negative); border-color: var(--negative); }

/* ---------- Wine List: publish + print check (wine-publish.js) ---------- */
.wl-wine { position: relative; }
.wl-has-chk .wl-top { padding-right: 30px; }
.wp-chk { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid; display: flex; align-items: center; justify-content: center; padding: 0; font-weight: 900; font-size: 14px; line-height: 1; cursor: pointer; background: none; z-index: 1; }
.wp-chk:disabled { cursor: default; opacity: 1; }
.wp-chk-on { color: var(--positive, #7fae5b); border-color: var(--positive, #7fae5b); background: color-mix(in srgb, var(--positive, #7fae5b) 14%, transparent); }
.wp-chk-off { color: var(--negative); border-color: var(--negative); background: color-mix(in srgb, var(--negative) 12%, transparent); }
.wp-chk-grey { color: var(--text-muted); border-color: var(--text-muted); background: color-mix(in srgb, var(--text-muted) 14%, transparent); }
.wp-chk:not(:disabled):hover { transform: scale(1.08); }
.wl-notpub { color: var(--warning); border: 1px solid var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); }
.wp { max-width: 820px; margin: 0 auto; }
.wp-prog { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 36px; }
.wp-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 8px 0 14px; }
.wp-bar i { display: block; height: 100%; background: var(--accent); }
.wp-src { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; margin-bottom: 12px; }
.wp-src table { width: 100%; }
.wp-src td { padding: 3px 6px; vertical-align: top; border: 0; }
.wp-src td:first-child { color: var(--text-muted); width: 90px; }
.wp-draft { border-left: 3px solid var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); padding: 8px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13.5px; margin: 0 0 12px; }
.wp-form { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: start; }
.wp-photo .wx-photo-row { flex-direction: column; align-items: flex-start; }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 0 12px; }
.wp-grid .field { min-width: 0; }
.wp-full { grid-column: 1 / -1; }
.wp textarea { width: 100%; }
.wp-sec { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin: 14px 0 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.wp-opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; text-transform: none; letter-spacing: normal; color: var(--text); font-weight: 400; }
.wp-link-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.wp-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.wp-sp { flex: 1; }
.wp-go { background: var(--positive, #7fae5b); border-color: var(--positive, #7fae5b); color: #10200a; }
.wp-done { text-align: center; padding: 10px 6px; }
@media (max-width: 640px) {
  .wp-form { grid-template-columns: 1fr; }
  .wp-foot .wp-sp { display: none; }
  .wp-foot .btn { flex: 1 1 auto; }
}
.wp .wd-check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: normal; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; cursor: pointer; }

/* ---------- Monthly inventory count (inventory-count.js) ---------- */
.inv-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius-sm, 8px); padding: 10px 12px; margin: 0 0 14px; }
.inv-banner-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.inv-banner-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-banner-lock { border-color: var(--border); background: var(--surface-2); }
.inv-banner-break { border-color: var(--warning); }
.inv-banner-off { border-style: dashed; border-color: var(--border); background: transparent; }
.inv-prog { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.inv-bar { flex: 1 1 140px; max-width: 320px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.inv-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.inv-cell { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.inv-hash { font-weight: 800; min-width: 38px; min-height: 34px; justify-content: center; }
.ending-input.inv-saving { opacity: .6; }
.ending-input.inv-saved { border-color: var(--positive, #7fae5b); box-shadow: 0 0 0 2px rgba(127,174,91,.25); }
.inv-check { border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); padding: 8px 12px; margin-bottom: 14px; }
.inv-check summary { cursor: pointer; }
.inv-check-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.inv-chip { all: unset; cursor: pointer; padding: 6px 11px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; background: var(--surface-2); color: var(--text); max-width: 100%; overflow-wrap: anywhere; }
.inv-chip b { color: var(--accent); margin-left: 4px; }
span.inv-chip { cursor: default; }
.inv-pop-head h2 { margin: 0; padding-right: 36px; overflow-wrap: anywhere; }
.inv-where { margin: 6px 0 4px; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inv-where select { max-width: 100%; }
.inv-last { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; }
.inv-set { color: var(--accent); font-weight: 800; }
.inv-partial { white-space: nowrap; }
.inv-locked { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); padding: 10px 12px; }
.inv-warn { border: 1px solid var(--warning); border-radius: var(--radius-sm, 8px); padding: 10px 12px; margin: 10px 0; display: flex; flex-direction: column; gap: 2px; }
.inv-warn-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.inv-foot-r { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.inv-pop .wc-foot, .its-panel .wc-foot { gap: 8px; flex-wrap: wrap; }
.inv-up { color: var(--positive, #7fae5b); font-weight: 700; }
.inv-down { color: var(--negative); font-weight: 700; }
.inv-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 18px 0 8px; }
.inv-sum-stats { margin: 12px 0 4px; }
.inv-hist { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; }
.inv-reopen { border: 1px solid var(--warning); border-radius: var(--radius-sm, 8px); padding: 10px 12px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.inv-lbl-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.inv-lbl-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.inv-ask { flex-wrap: wrap; }
@media (max-width: 600px) {
  .inv-banner-btns { width: 100%; }
  .inv-banner-btns .btn { flex: 1 1 auto; }
  .inv-cell .cell-input { width: 64px; }
}
@media print {
  .inv-banner, .inv-check { display: none !important; }
}
.inv-pop .wc-qty, .its-panel .wc-qty { flex-wrap: wrap; }
#inv-sum .tot-cat-head { flex-wrap: wrap; }
#inv-sum .tot-cat-btns { flex-wrap: wrap; }
.inv-reopen[hidden], .inv-pop [hidden], .its-panel [hidden] { display: none !important; }
.inv-sum-stats .stat-value { font-size: 22px; white-space: nowrap; }
.beo-kept { font-size: 11.5px; color: var(--positive, #7fae5b); margin-top: 2px; }

/* ---------- Top bar: bubble buttons (emoji + label) ---------- */
.tb-bubble { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; min-height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.tb-bubble:hover, .tb-bubble:focus-visible { border-color: var(--accent); outline: none; }
.tb-bubble .tb-emo { font-size: 17px; line-height: 1; }
#tb-draft-btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #1a140b); }
#tb-draft-btn:hover, #tb-draft-btn:focus-visible { filter: brightness(1.08); }
@media (max-width: 1100px) and (min-width: 781px) {
  .tb-bubble { padding: 8px 11px; font-size: 13px; }
}
@media (max-width: 780px) {
  .topbar { flex-wrap: wrap; }
  .topbar-actions { width: 100%; margin-left: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
  .tb-bubble { flex-direction: column; gap: 3px; padding: 7px 4px; min-height: 54px; font-size: 11.5px; min-width: 0; }
  .tb-bubble .tb-emo { font-size: 18px; }
  .tb-bubble .tb-lbl { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .topbar-uploads-btn span { display: inline; }
}

/* ---------- What's on Draft (ondraft.js) ---------- */
.dr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding-right: 36px; }
.dr-head h2 { margin: 0; }
.dr-taps { display: grid; grid-template-columns: repeat(var(--dr-cols, 6), minmax(0, 1fr)); gap: 10px; }
.dr-tap { position: relative; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; text-align: center; min-width: 0; }
.dr-n { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--accent); }
.dr-nm { font-weight: 800; font-size: 15px; line-height: 1.2; min-height: 36px; display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; }
.dr-ty { font-size: 12.5px; color: var(--text-muted); min-height: 1.2em; }
.dr-pr { font-family: var(--font-display, Georgia, serif); font-size: 20px; font-weight: 700; }
.dr-handle { all: unset; box-sizing: border-box; cursor: pointer; height: 96px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--text-muted); font-size: 12px; }
.dr-handle img { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.dr-86 { all: unset; box-sizing: border-box; cursor: pointer; font-weight: 800; font-size: 14px; padding: 8px 0; border-radius: 8px; border: 1px solid var(--negative); color: var(--negative); text-align: center; }
.dr-86:hover { background: rgba(208,103,79,.12); }
.dr-back { all: unset; box-sizing: border-box; cursor: pointer; font-weight: 700; font-size: 13px; padding: 8px 0; border-radius: 8px; border: 1px solid var(--positive, #7fae5b); color: var(--positive, #7fae5b); text-align: center; }
.dr-out > :not(.dr-tag86):not(.dr-back) { opacity: .4; filter: grayscale(1); }
.dr-out .dr-pr { text-decoration: line-through; }
.dr-tag86 { position: absolute; top: 8px; right: 8px; background: var(--negative); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.dr-empty { border-style: dashed; background: transparent; }
.dr-empty .dr-nm { color: var(--text-muted); font-weight: 600; }
.dr-big[hidden] { display: none; }
.dr-big { position: fixed; inset: 0; z-index: 9500; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dr-big-in { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; }
.dr-big-in img { max-width: min(92vw, 520px); max-height: 72vh; border-radius: 10px; }
.dr-big-nm { color: #fff; font-weight: 800; font-size: 18px; }
@media (max-width: 900px) { .dr-taps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dr-taps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dr-mgr-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dr-count { display: inline-flex; align-items: center; gap: 6px; }
.dr-count input { width: 64px; }
.dr-mini { width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); overflow: hidden; }
.dr-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dr-mini span { display: none; }
.dr-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--negative); color: var(--negative); }
.dr-row-out td { opacity: .75; }
.dr-acts { white-space: nowrap; }
.dr-pic-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dr-pic { width: 84px; height: 84px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dr-pic img { width: 100%; height: 100%; object-fit: cover; }
#dr-f-search { margin-bottom: 6px; }
.dr-board a { color: var(--accent); font-weight: 600; }

/* ---------- Wine menu layout editor (wine-menu-layout.js) ---------- */
.modal-dialog:has(.wml) { padding: 12px 14px; }
.modal-dialog:has(.wml) > .modal-close { display: none; }
.wml { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; }
.wml-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.wml-bar h2 { margin: 0 6px 0 0; font-size: 18px; }
.wml-sp { flex: 1; }
.wml-dirty { color: var(--warning); font-size: 12.5px; font-weight: 700; }
.wml-off { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.wml-tips { margin: 6px 0; }
.wml-frame-wrap { flex: 1; min-height: 0; border-radius: var(--radius-sm, 8px); overflow: hidden; border: 1px solid var(--border); }
#wml-frame { width: 100%; height: 100%; border: 0; display: block; background: #e9e5dd; min-height: 60vh; }
.wml-ov { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 5; }
.wml-ov[hidden] { display: none; }
.wml-dlg { background: var(--surface); border: 1px solid var(--accent); border-radius: 14px; padding: 16px; width: min(440px, 92%); }
.wml-dlg h2 { margin-top: 0; }
@media (max-width: 780px) { .wml-bar h2 { width: 100%; } }

/* ---------- Dashboard 86 line (eightysix.js) ---------- */
.e86-line { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius, 12px); border: 1px solid; font-weight: 800; letter-spacing: .04em; margin-bottom: 16px; }
.e86-bad { cursor: pointer; border-color: var(--negative); background: rgba(208,103,79,.12); color: var(--negative); }
.e86-bad:hover, .e86-bad:focus-visible { background: rgba(208,103,79,.2); }
.e86-good { border-color: var(--positive, #7fae5b); background: rgba(127,174,91,.12); color: var(--positive, #7fae5b); }
.e86-car { margin-left: auto; font-weight: 600; font-size: 13px; letter-spacing: 0; color: var(--text-muted); }
.e86-wrap.open .e86-line { margin-bottom: 0; border-radius: var(--radius, 12px) var(--radius, 12px) 0 0; }
.e86-wrap.open .e86-body { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
.e86-body[hidden] { display: none; }
.wx-lp { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 10px 0; }
.wx-lp > div { display: flex; flex-direction: column; gap: 6px; }
.wx-lp label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* ---------- Daily Sales → Revenue: the day box (sales-ly.js) ---------- */
.dsd-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dsd-nav h2 { margin: 0; }
.dsd-nav input[type=date] { width: auto; }
.dsd-sp { flex: 1; }
.dsd-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.dsd-kpi { border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); padding: 10px 12px; background: var(--surface-2); min-width: 0; }
.dsd-kpi.big { border-color: var(--accent); }
.dsd-kpi .lb { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.dsd-kpi .v { font-family: var(--font-display, Georgia, serif); font-size: 22px; font-weight: 700; }
.dsd-nf { margin: 8px 0 0; }
.dsd-meals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; margin-top: 12px; }
.dsd-meal { border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); padding: 8px 10px; background: var(--surface-2); }
.dsd-meal h3 { margin: 0 0 4px; font-size: 14px; }
.dsd-areas { margin-top: 12px; }
.wml-stb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--border); min-height: 46px; }
.wml-stb select { width: auto; padding: 5px 6px; font-size: 13px; }
.wml-what { font-size: 13px; margin-right: 4px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wml-sep { width: 1px; height: 24px; background: var(--border); }
.wml-tb { all: unset; cursor: pointer; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text); }
.wml-tb.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.wml-sw { all: unset; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); box-sizing: border-box; }
.wml-sw.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
#wml-s-color { width: 34px; height: 28px; padding: 1px; border-radius: 6px; }
.wml-dlg-wide { width: min(620px, 94%); }
.wml-dlg textarea { width: 100%; }
.dsd a, .dsd-nav a { color: var(--accent); font-weight: 600; }

/* ---------- ✉️ Messages (messages.js) ---------- */
.tb-bubble { position: relative; }
.tb-dot { position: absolute; top: -7px; right: -7px; background: var(--negative); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid var(--bg); line-height: 1; }
.ch-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(920px, 100vw); z-index: 8000; background: var(--surface); border-left: 1px solid var(--border); box-shadow: -10px 0 30px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.ch-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.ch-top h2 { margin: 0; font-size: 18px; }
.ch-sp { flex: 1; }
.ch-ibtn { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface-2); font-size: 15px; }
.ch-body-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.ch-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.ch-lh { display: flex; gap: 6px; align-items: center; padding: 10px; border-bottom: 1px solid var(--border); }
.ch-lh input { flex: 1; min-width: 0; }
.ch-convs { overflow-y: auto; flex: 1; }
.ch-conv { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.ch-conv:hover, .ch-conv.on { background: var(--surface-2); }
.ch-av { width: 36px; height: 36px; border-radius: 50%; background: #5b4a32; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; font-size: 12.5px; }
.ch-av-m { background: #6b1f2a; } .ch-av-g { background: #2f5d3a; }
.ch-cm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-ct { display: flex; justify-content: space-between; gap: 6px; }
.ch-ct b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-pv { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-conv.unread .ch-pv { color: var(--text); font-weight: 700; }
.ch-ud { width: 9px; height: 9px; border-radius: 50%; background: var(--negative); flex: none; }
.ch-empty { padding: 14px; }
.ch-thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ch-none { display: flex; align-items: center; justify-content: center; height: 100%; }
.ch-th-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.ch-th-t { flex: 1; min-width: 0; } .ch-th-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-back { display: none; }
.ch-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.ch-day { align-self: center; font-size: 11.5px; color: var(--text-muted); margin: 6px 0; }
.ch-m { max-width: 74%; padding: 7px 11px; border-radius: 14px; background: var(--surface-2); align-self: flex-start; overflow-wrap: anywhere; }
.ch-m.me { align-self: flex-end; background: #5c4320; }
.ch-who { font-size: 11.5px; color: var(--accent); font-weight: 700; margin-bottom: 2px; }
.ch-body a { color: var(--accent); }
.ch-tm { font-size: 11px; color: var(--text-muted); margin-top: 2px; text-align: right; }
.ch-tm a { color: var(--text-muted); }
.ch-del { font-style: italic; color: var(--text-muted); font-size: 13px; }
.ch-seen { align-self: flex-end; font-size: 11px; color: var(--text-muted); margin-top: -3px; }
.ch-files { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.ch-img { all: unset; cursor: pointer; display: block; max-width: 240px; min-height: 40px; border-radius: 8px; overflow: hidden; background: rgba(0,0,0,.25); }
.ch-img img { display: block; max-width: 240px; max-height: 220px; }
.ch-file { color: var(--accent); font-size: 13px; }
.ch-typing { font-size: 12.5px; color: var(--text-muted); font-style: italic; padding: 0 14px 4px; min-height: 18px; }
.ch-files-pending { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 10px; }
.ch-files-pending:empty { display: none; }
.ch-chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 12.5px; }
.ch-chip button { all: unset; cursor: pointer; padding: 0 6px; }
.ch-cmp { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); align-items: flex-end; }
.ch-cmp textarea { flex: 1; min-width: 0; resize: none; min-height: 38px; max-height: 140px; border-radius: 10px; }
.ch-ov { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 2; padding: 12px; }
.ch-ov[hidden] { display: none; }
.ch-dlg { background: var(--surface); border: 1px solid var(--accent); border-radius: 14px; padding: 16px; width: min(440px, 100%); max-height: 90%; display: flex; flex-direction: column; gap: 8px; }
.ch-dlg h2 { margin: 0; }
.ch-pick { overflow-y: auto; max-height: 46vh; display: flex; flex-direction: column; gap: 6px; }
.ch-pick .ch-conv { border: 1px solid var(--border); border-radius: 10px; }
.ch-pick-sm { max-height: 30vh; }
.ch-pk { display: flex; align-items: center; gap: 8px; padding: 4px 2px; cursor: pointer; }
.ch-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ch-big { display: flex; flex-direction: column; align-items: center; gap: 10px; } .ch-big img { max-width: 92vw; max-height: 75vh; border-radius: 10px; }
#ch-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 9200; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.ch-toast { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--accent); border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 20px rgba(0,0,0,.4); width: 340px; max-width: 100%; }
.ch-toast-t { flex: 1; min-width: 0; } .ch-toast-t .hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-toast-x { all: unset; cursor: pointer; color: var(--text-muted); padding: 2px 6px; }
@media (max-width: 760px) {
  .ch-body-wrap { grid-template-columns: minmax(0, 1fr); }
  .ch-list { border-right: 0; }
  .ch-view-list .ch-thread { display: none; }
  .ch-view-thread .ch-list { display: none; }
  .ch-back { display: inline-flex; }
  .ch-m { max-width: 86%; }
  #ch-toasts { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); left: 16px; right: 16px; }
  .ch-toast { width: auto; }
}

/* ---------- Manager Schedule: events & holidays (manager-schedule.js) ---------- */
.ms-hol { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; color: var(--warning); background: rgba(214,176,60,.12); border-radius: 6px; padding: 1px 6px; margin: 1px 4px 2px 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-ev-chip { all: unset; box-sizing: border-box; display: block; font-size: 11px; background: rgba(91,143,214,.16); border: 1px solid #5b8fd6; color: #2A5A9A; border-radius: 6px; padding: 1px 5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ms-day-hols { margin: -4px 0 6px; }
.ms-day-hols .ms-hol { font-size: 12.5px; padding: 2px 8px; }
.ms-day-evs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ms-day-evs .ms-ev-chip { cursor: pointer; font-size: 12.5px; padding: 4px 8px; display: inline-block; white-space: normal; }
.ms-ev-tag { font-size: 11px; font-weight: 700; color: #2A5A9A; border: 1px solid #5b8fd6; border-radius: 999px; padding: 0 7px; margin-left: 4px; white-space: nowrap; }
.ms-ev-warn { font-size: 11px; font-weight: 700; color: var(--warning); border: 1px solid var(--warning); border-radius: 999px; padding: 0 7px; margin-left: 4px; white-space: nowrap; }
.ms-ev-warn[hidden] { display: none; }
.ms-ev-btn { border-color: #5b8fd6; color: #2A5A9A; }
.mgrcal-chip-event { background: rgba(91,143,214,.18); color: #2A5A9A; }
.mgrcal-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 10px; }
.mgrcal-pick[hidden] { display: none; }
.mgrcal-pick label { display: flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 14px; }
.mgrcal-remind { border-color: #5b8fd6; }
.mgrcal-remind-today { border-color: var(--accent); }
.mgrcal-remind-row { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 12px; width: 100%; padding: 7px 4px; border-top: 1px dotted var(--border); }
.mgrcal-remind-row:hover { background: var(--surface-2); }
.mgrcal-remind-tm { font-weight: 800; min-width: 90px; color: #2A5A9A; }
.mgrcal-remind-t { flex: 1; min-width: 0; }
.mgrcal-remind-d { display: block; }
.ms-mgr-login { max-width: 220px; }
.wl-show { margin-top: 0; }
.wl-why { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; }
.wl-stale { color: var(--warning); border: 1px solid var(--warning); }
.wl-fresh { color: var(--text-muted); border: 1px solid var(--border); }

/* ---------- Wine List: 🔁 Comparable (wine-comparable.js) ---------- */
.wl-cmp-row { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wcmp-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 800; margin: 14px 0 6px; }
.wcmp-opt { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; background: var(--surface-2); }
.wcmp-opt:hover { border-color: var(--accent); }
.wcmp-ph { width: 34px; height: 52px; border-radius: 6px; flex: none; overflow: hidden; background: linear-gradient(180deg, #4a1f26, #1d0c0f); }
.wcmp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wcmp-o1 { flex: 1; min-width: 0; }
.wcmp-o1 b { overflow-wrap: anywhere; }
.wcmp-why { display: block; color: var(--text-muted); font-size: 12.5px; }
.wcmp-loc { font-size: 12px; color: var(--text-muted); }
.wcmp-dir { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 1px 8px; border: 1px solid; white-space: nowrap; }
.wcmp-dl { color: #2A5A9A; border-color: #5b8fd6; } .wcmp-db { color: var(--negative); border-color: #d0674f; } .wcmp-df { color: var(--warning); border-color: #d6b03c; } .wcmp-dc { color: var(--positive); border-color: #7fae5b; }
.wcmp-pd { font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--text-muted); }
.wcmp-less { color: var(--positive, #7fae5b); } .wcmp-more { color: var(--negative); }
.wcmp-sliders { display: flex; flex-direction: column; gap: 6px; }
.wcmp-sl { display: grid; grid-template-columns: 90px auto 1fr auto; gap: 8px; align-items: center; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 400; }
.wcmp-sl input { width: 100%; }
.wl-wine.wcmp-flash { box-shadow: 0 0 0 3px var(--accent); transition: box-shadow .3s; }
@media (max-width: 520px) { .wcmp-sl { grid-template-columns: 80px 1fr; } .wcmp-sl .hint { display: none; } }

/* ---- 🛒 Order a wine (wine-order.js) ---- */
.wo-onlist { background: rgba(127,174,91,.16); color: var(--positive, #7fae5b); border: 1px solid rgba(127,174,91,.5); }
.wo-nolink { opacity: .55; }
.wo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.wo-head h2 { margin: 0; font-size: 18px; }
.wo-left { font-weight: 700; color: var(--text-muted); }
.ws-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: 6px; }
.ws-btns .btn { margin-left: 0; }

/* ---- Wine: bottles per spot + Sold / Move (wine-spots.js) ---- */
.wl-spots { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; margin-top: 3px; color: var(--text-muted); }
.wl-spot { white-space: nowrap; }
.wl-spot b { color: var(--text); }
.wl-spot.out { color: var(--negative); font-weight: 600; }
.wl-left { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.wl-left b { color: var(--text); }
.wip-used { opacity: .6; }

/* ---- Wine → Monthly Inventory (wine-inventory.js) ---- */
.winv-steps { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.winv-steps b { color: var(--accent); }
.winv-note { border-radius: 8px; padding: 8px 10px; margin: 8px 0; font-size: 13.5px; }
.winv-note.ok { border: 1px solid var(--positive); background: rgba(127,174,91,.1); }
.winv-note.bad { border: 1px solid var(--negative); background: rgba(208,103,79,.1); }
.winv-note .btn { margin-left: 6px; }
.winv-sec { display: flex; flex-direction: column; margin: 12px 0 6px; }
.winv-fix { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.winv-fix-h { margin-bottom: 4px; }
.winv-w { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px dotted var(--border); }
.winv-acts { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.winv-sub { flex-basis: 100%; }
.winv-q { width: 100%; margin: 4px 0; }
.winv-res { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.winv-pick { all: unset; cursor: pointer; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; }
.winv-pick:hover { border-color: var(--accent); }
.winv-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 4px; }
.winv-new label { display: flex; flex-direction: column; font-size: 11px; color: var(--text-muted); gap: 2px; min-width: 0; }
.winv-new .winv-nn { min-width: min(260px, 100%); }
.winv-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.winv-sum div { border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; display: flex; flex-direction: column; }
.winv-sum b { font-size: 17px; }
.winv-view { margin-bottom: 8px; flex-wrap: wrap; }
.winv-tw { overflow-x: auto; }
.winv-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.winv-t th, .winv-t td { padding: 6px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.winv-t .num { text-align: right; white-space: nowrap; }
.winv-chg { color: var(--accent); font-weight: 700; }
.winv-same { opacity: .7; }
.winv-hand { background: rgba(214,176,60,.15); color: var(--warning); border: 1px solid rgba(214,176,60,.5); }
.winv-skip { margin-top: 8px; font-size: 13px; }
.winv-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.winv-flags .wl-tag { white-space: normal; }
.winv-t td:first-child { word-break: break-word; }
@media (max-width: 480px) { .winv-t th, .winv-t td { padding: 5px 4px; } .winv-t { font-size: 12.5px; } }

/* ---- Settings → Items: 🔍 Find shared links (shared-links.js) ---- */
.sl2-tabs { flex-wrap: wrap; margin-bottom: 8px; }
.sl2-grp { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.sl2-grp.sl2-warn { border-color: #d6b03c; }
.sl2-grp h4 { margin: 0 0 4px; font-size: 14.5px; }
.sl2-flag { margin: 0 0 4px; color: var(--warning); font-size: 13px; }
.sl2-ln { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px dotted var(--border); }
.sl2-acts { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sl2-sub { flex-basis: 100%; }
.sl2-q { width: 100%; margin: 4px 0; }
.sl2-res { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.sl2-whole { background: rgba(214,176,60,.15); color: var(--warning); border: 1px solid rgba(214,176,60,.5); }
.sl2-foot { display: flex; justify-content: flex-end; margin-top: 6px; }
.sl2-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; margin: 6px 0; }
.sl2-cmp-i { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.sl2-cmp-i .btn { margin-top: 4px; }

/* ---- Club color + Super Admin → Clubs (clubs.js) ---- */
.club-band { display: flex; align-items: center; gap: 9px; background: var(--club); color: var(--on-club); border-radius: 10px; padding: 8px 10px; margin: 0 0 10px; font-weight: 800; font-size: 14px; line-height: 1.2; }
.club-band-logo { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; flex: none; }
.club-band-mono { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--club, #333); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; flex: none; }
.club-band-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html.club-color .topbar { box-shadow: inset 0 3px 0 var(--club); }
.club-t { width: 100%; }
.club-t td { vertical-align: middle; }
.club-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; margin-right: 7px; border: 1px solid var(--border); }
.club-pill { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--positive); color: var(--positive); white-space: nowrap; }
.club-pill.club-off { border-color: var(--negative); color: var(--negative); }
.club-pill.club-setup { border-color: var(--warning); color: var(--warning); }
.club-logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.club-logo-prev { height: 54px; max-width: 160px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; border: 1px solid var(--border); }
.club-logo-none { color: var(--text-muted); font-size: 13px; }
.club-sw { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.club-sw-b { all: unset; cursor: pointer; height: 38px; border-radius: 8px; border: 3px solid transparent; display: flex; align-items: flex-end; justify-content: center; font-size: 10px; font-weight: 700; padding-bottom: 3px; box-sizing: border-box; }
.club-sw-b.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface) inset; }
.club-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.club-custom input { width: 110px; }
.club-prev { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--surface); }
.club-prev .club-band { margin-bottom: 8px; }
.club-prev-body { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.club-prev-tab { border-bottom: 3px solid var(--club, var(--accent)); padding: 2px 6px; font-weight: 700; }
.club-prev-btn { background: var(--club, var(--accent)); color: var(--on-club, #1A140A); border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: 13px; }
@media (max-width: 520px) { .club-sw { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.club-edit-box .field > .hint { display: block; margin-top: 4px; }

/* ---- Club Code sign-in (staff-login.js) ---- */
.login-card.sl-has-club > .login-sub { display: none; }
#login-screen .sl-band { display: none; } /* the club shows on the photo instead */
.sl-band { margin: 0 0 14px; font-size: 15px; }
.sl-club { display: flex; flex-direction: column; gap: 8px; text-align: center; margin: 6px 0 12px; }
.sl-club b { font-size: 16px; }
.sl-club-in { text-align: center; font-size: 22px; letter-spacing: .15em; text-transform: uppercase; padding: 12px; }
.sl-pad-title { text-align: center; font-weight: 700; margin: 2px 0 6px; }
.sl-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sl-foot .sl-link { margin: 0; }
.sl-blocked { border: 1px solid var(--negative); background: var(--negative-soft, rgba(184,89,63,.12)); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.sl-blocked p { margin: 0; }
.sl-pending-strip { background: rgba(214,176,60,.16); border: 1px solid rgba(214,176,60,.6); color: var(--text); border-radius: 8px; padding: 7px 12px; margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.sd-list { display: flex; flex-direction: column; }
.sd-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px dotted var(--border); }
.sd-acts { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sd-pill { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--border); white-space: nowrap; color: var(--text-muted); }
.sd-pill.sd-ok { color: var(--positive); border-color: var(--positive); }
.sd-pill.sd-wait { color: var(--warning); border-color: var(--warning); }
.sd-pill.sd-locked, .sd-pill.sd-off { color: var(--negative); border-color: var(--negative); }
.sl-phones-card { border-color: var(--warning); }
.cc-card #cc-code { width: 140px; text-transform: uppercase; letter-spacing: .1em; }

/* ---- 👑 Admin ⇄ club toggle (roles.js) ---- */
.sa-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; flex: none; }
.sa-seg { all: unset; cursor: pointer; padding: 6px 13px; font-weight: 700; font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.sa-seg.on { background: #6b3fa0; color: #fff; }
.sa-seg.on.club { background: var(--club, var(--accent)); color: var(--on-club, #1A140A); }
@media (max-width: 780px) { .topbar { flex-wrap: wrap; } .sa-toggle { order: -1; } .sa-seg { padding: 5px 10px; font-size: 12px; } }

/* ---------- 👑 Club Setup (club-setup.js) ---------- */
.club-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.cset { max-width: 760px; margin: 0 auto; }
.cset-title { margin: 0 0 10px; padding-right: 36px; font-size: 20px; }
.cset-h { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin: 16px 0 6px; }
.cset-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.cset-step { font: inherit; font-size: 12px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); background: none; color: var(--text-muted); cursor: pointer; }
.cset-step:disabled { cursor: default; opacity: .7; }
.cset-step.on { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.cset-step.dn { border-color: var(--positive); color: var(--positive); }
.cset-body .form-row { flex-wrap: wrap; }
.cset-body .form-row > .field { min-width: 150px; flex: 1; }
.cset-nav { justify-content: space-between; margin-top: 14px; }
.cset-foot, .cset-resume { margin: 10px 0 0; }
.cset-codehint { margin: -4px 0 8px; }
.cset-check { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; font-size: 14px; }
.cset-chip { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.cset-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cset-adm { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 12px; margin-bottom: 10px; background: var(--surface-2); }
.cset-pw { display: flex; gap: 6px; align-items: center; }
.cset-pw input, .ca-pw { font-family: ui-monospace, Menlo, monospace; }
.cset-code { font-family: ui-monospace, Menlo, monospace; font-weight: 800; letter-spacing: .06em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.cset-rev { width: 100%; border-collapse: collapse; }
.cset-rev td, .cset-rev th { padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; text-align: left; }
.cset-rev td:last-child { text-align: right; }
.cset-rev td.hint { white-space: nowrap; width: 1%; }
.cset-done p { margin: 6px 0; }
.cset-shown { border: 2px solid var(--positive); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; line-height: 1.8; }
.cset-add { margin: 12px 0 4px; }
.cset-add summary { cursor: pointer; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.cset-list-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.cset-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dotted var(--border); }
.cset-item > div { flex: 1; min-width: 0; }
.cset-box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border); flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.cset-item.ok .cset-box { background: var(--positive); border-color: var(--positive); color: #fff; }
.cset-item.ok b { color: var(--text-muted); text-decoration: line-through; }
.cset-pw-screen { position: fixed; inset: 0; z-index: 3000; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.cset-pw-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.cset-pw-card h2 { margin: 0; text-align: center; }
.cset-pw-card > .hint { text-align: center; margin: 0 0 6px; }
.cset-pw-icon { font-size: 30px; text-align: center; }
.cset-pw-card .btn-primary { margin-top: 8px; justify-content: center; }
.cset-pw-card .link-btn { align-self: center; margin-top: 4px; }
.cset-pw-err { color: var(--negative); margin: 4px 0 0; font-size: 13px; }
@media (max-width: 520px) { .cset-rev td.hint { white-space: normal; } }
.cset-pw-card input { width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 10px; border-radius: var(--radius-sm); font-size: 16px; }
.cset-pw-card input:focus { border-color: var(--accent); outline: none; }
.cset-pw-card label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.cset textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 9px 10px; border-radius: var(--radius-sm); font: inherit; }

/* ---------- + Add person (add-person.js) ---------- */
.ap { max-width: 640px; }
.ap .form-row { flex-wrap: wrap; }
.ap .form-row > .field { min-width: 150px; flex: 1; }
.ap-seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; width: 100%; max-width: 440px; }
.ap-seg-b + .ap-seg-b { border-left: 1px solid var(--border); }
.ap .hint { font-size: 12.5px; }
.ap-seg-b { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 6px; line-height: 1.2; border: 0; background: none; color: var(--text-muted); cursor: pointer; }
.ap-seg-b.on { background: var(--accent); color: var(--on-accent, #1a140b); }
.ap p { margin: 6px 0; }

/* ---------- Revenue centers (revenue-centers.js) ---------- */
.rc-t { width: 100%; border-collapse: collapse; }
.rc-t td, .rc-t th { padding: 7px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rc-name { width: 100%; min-width: 140px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 8px 10px; border-radius: var(--radius-sm); font: inherit; font-size: 14px; }
.rc-name:focus { border-color: var(--accent); outline: none; }
.rc-t input[type="radio"], .rc-t input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.rc-acts { white-space: nowrap; }
.rc-acts .btn + .btn { margin-left: 4px; }
.rc-hidden .rc-name { opacity: .6; }
@media (max-width: 600px) {
  .rc-t thead { display: none; }
  .rc-t, .rc-t tbody { display: block; }
  .rc-t tr { display: grid; grid-template-columns: 26px 1fr; gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .rc-t td { border: 0; padding: 0; }
  .rc-t td.rc-num { align-self: center; }
  .rc-t td.rc-c { grid-column: 2; display: flex; align-items: center; gap: 8px; text-align: left; }
  .rc-t td.rc-c { font-family: inherit; }
  .rc-t td.rc-c::after { content: attr(data-label); font-size: 13px; color: var(--text-muted); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-variant-numeric: normal; }
  .rc-t td.rc-acts { grid-column: 2; text-align: left; }
}

/* ---------- Roles & access (club-roles.js) ---------- */
.cr-t { width: 100%; border-collapse: collapse; }
.cr-t td, .cr-t th { padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cr-ed { max-width: 560px; }
.cr-ed .form-row { flex-wrap: wrap; }
.cr-ed .form-row > .field { min-width: 150px; flex: 1; }
.cr-pages { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 6px 0 8px; }
.cr-grp { background: var(--surface-2); color: var(--accent); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 12px; }
.cr-page { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.cr-grp + .cr-page { border-top: 0; }
.cr-page.cr-off > span:first-child { color: var(--text-muted); text-decoration: line-through; }
.cr-page.cr-view > span:first-child { color: var(--text-muted); }
.cr-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; flex: none; }
.cr-lv { font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border: 0; background: none; color: var(--text-muted); cursor: pointer; }
.cr-lv + .cr-lv { border-left: 1px solid var(--border); }
.cr-off .cr-lv.on { background: var(--surface-2); color: var(--negative); }
.cr-view .cr-lv.on { background: var(--surface-2); color: var(--accent); }
.cr-full .cr-lv.on { background: var(--positive); color: #fff; }
/* 👁 View only (view-only.js) */
.vl-viewonly-strip { margin: 0 0 10px; padding: 7px 12px; border: 1px solid var(--accent); border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.vl-viewonly-strip span { color: var(--text-muted); }
#view-root.vl-viewonly .btn-primary:not(.vo-ok), #view-root.vl-viewonly .btn-danger, #modal-root.vl-viewonly .btn-primary:not(.vo-ok), #modal-root.vl-viewonly .btn-danger { display: none !important; }
.cr-sw { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); position: relative; cursor: pointer; flex: none; margin: 0; }
.cr-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-muted); transition: left .15s; }
.cr-sw:checked { background: var(--positive); border-color: var(--positive); }
.cr-sw:checked::after { left: 20px; background: #fff; }
.cr-ed .modal-actions { display: flex; gap: 8px; align-items: center; }
/* 👁 View only: an "Add a …" card that's only a form (no list in it) has nothing to show */
#view-root.vl-viewonly .card:has(> form button[type="submit"].btn-primary):not(:has(table)) { display: none !important; }

/* ---------- Systems (systems.js) ---------- */
.sys-card { max-width: 640px; }
.sys-f { margin-bottom: 12px; }
.sys-f select, .sys-f .sys-other { width: 100%; }
.sys-other { margin-top: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 8px 10px; border-radius: var(--radius-sm); font: inherit; }
.sys-status { display: block; margin-top: 4px; }
.sys-row { flex-wrap: wrap; }
.sys-row > .field { min-width: 160px; flex: 1; }

/* ---------- Match your columns (match-columns.js) ---------- */
.mc-layer { position: fixed; inset: 0; z-index: 3500; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; }
.mc-box { width: 100%; max-width: 900px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin: auto 0; }
.mc-h { margin: 0 0 4px; font-size: 19px; }
.mc-file { margin: 0 0 10px; }
.mc-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.mc-steps span { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); }
.mc-steps .on { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.mc-steps .dn { border-color: var(--positive); color: var(--positive); }
.mc-ask { font-size: 16px; font-weight: 700; margin: 6px 0 8px; }
.mc-grid-wrap { overflow: auto; max-height: 46vh; border: 1px solid var(--border); border-radius: 8px; }
.mc-grid { border-collapse: collapse; font: 12px/1.3 ui-monospace, Menlo, Consolas, monospace; min-width: 100%; }
.mc-grid th { position: sticky; top: 0; background: var(--surface-2); color: var(--text-muted); font-weight: 600; padding: 4px 6px; border: 1px solid var(--border); text-align: center; z-index: 1; }
.mc-grid td { padding: 4px 6px; border: 1px solid var(--border); white-space: nowrap; }
.mc-grid td.mc-rn { background: var(--surface-2); color: var(--text-muted); text-align: center; }
.mc-grid .mc-click { cursor: pointer; }
.mc-grid tr.mc-click:hover td, .mc-grid td.mc-click:hover, .mc-grid th.mc-click:hover { background: var(--accent-soft, rgba(211, 154, 58, .14)); }
.mc-grid .mc-hl, .mc-grid tr.mc-hl td { background: rgba(211, 154, 58, .22); }
.mc-grid tr.mc-hl td.mc-rn, .mc-grid th.mc-hl { color: var(--accent); font-weight: 700; }
.mc-grid tr.mc-hd td { background: rgba(127, 174, 91, .15); font-weight: 700; }
.mc-pick, .mc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; align-items: center; }
.mc-chip { font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--positive); color: var(--positive); background: none; cursor: pointer; }
.mc-check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: 14px; }
.mc-check input { margin-top: 3px; }
.mc-found { margin: 8px 0 0; }
.mc-sum { margin: 0 0 8px; }
.mc-ok { color: var(--positive); }
.mc-warn { color: var(--warning); }
.mc-prev { width: 100%; border-collapse: collapse; font-size: 13px; }
.mc-prev th { font-size: 11px; text-transform: uppercase; color: var(--text-muted); text-align: left; padding: 5px; border-bottom: 1px solid var(--border); }
.mc-prev td { padding: 5px; border-bottom: 1px solid var(--border); }
.mc-prev .num { text-align: right; }
.mc-nav { margin-top: 12px; }
.mc-saved { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 8px; }
.mc-saved-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dotted var(--border); }
.up-matched { color: var(--positive); }
@media (max-width: 520px) { .mc-box { padding: 12px; } .mc-layer { padding: 8px; } }
.mc-grid td { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.mc-box .hint { font-size: 12.5px; }

/* Top bar quick buttons: shorter on desktop, and clear of the club-color stripe */
@media (min-width: 781px) {
  .tb-bubble { padding: 5px 12px; min-height: 34px; font-size: 13.5px; gap: 6px; border-radius: 9px; }
  .tb-bubble .tb-emo { font-size: 15px; }
}
html.club-color .topbar { padding-top: 10px; }

/* ---------- 👑 Admin mode (admin.js) ---------- */
html.vl-admin { --accent: #8f6fd6; --accent-hover: #a184e2; --accent-soft: rgba(143, 111, 214, .16); --on-accent: #ffffff; }
html.vl-admin .topbar-actions, html.vl-admin .club-band { display: none !important; }
.adm-brand { font-weight: 800; font-size: 15px; padding: 10px 12px; margin-bottom: 6px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.adm-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.adm-kpi b { display: block; font-size: 24px; line-height: 1.2; }
.adm-kpi span { color: var(--text-muted); font-size: 12.5px; }
.adm-warn { color: var(--warning); }
.adm-alert { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dotted var(--border); }
.adm-alert:first-of-type { border-top: 0; }
.adm-alert-t { flex: 1; min-width: 0; }
.adm-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.adm-dot.r { background: var(--negative); } .adm-dot.y { background: var(--warning); }
.adm-t { width: 100%; border-collapse: collapse; }
.adm-t td, .adm-t th { padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.adm-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.adm-chip { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); white-space: nowrap; }
.adm-chip.g { color: var(--positive); } .adm-chip.y { color: var(--warning); } .adm-chip.r { color: var(--negative); }
.adm-prog { display: inline-block; width: 60px; height: 6px; border-radius: 99px; background: var(--surface-2); vertical-align: middle; }
.adm-prog i { display: block; height: 100%; max-width: 100%; border-radius: 99px; background: var(--positive); }
.adm-acts { white-space: nowrap; }
.adm-acts .btn + .btn { margin-left: 4px; }
.adm-menu { display: flex; flex-direction: column; gap: 8px; }
.adm-menu .btn { justify-content: flex-start; }
.vl-viewing-strip { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid #8f6fd6; background: rgba(143, 111, 214, .14); font-size: 13.5px; }
/* Wide tables scroll sideways on phones (Clubs, Roles, Revenue centers, Club Setup, Admin…) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.adm-alert .hint { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Inventory 📋 Summary: Categories | Items ---------- */
.invs-tabs { margin: 10px 0 14px; }
.invs-badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--negative); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.invs-help { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; }
.invs-help b { color: var(--text); }
.invs-early { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--warning); border-radius: var(--radius-sm); background: rgba(217, 178, 60, 0.08); font-size: 13.5px; }
.invs-early-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px dotted var(--border); }
.invs-early-row:first-of-type { margin-top: 6px; }
.invs-early-row > span:last-child { display: flex; gap: 6px; flex-wrap: wrap; }
.invs-ctrls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.invs-ctrls input[type="search"], .invs-ctrls select, .invs-note { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 13.5px; }
.invs-ctrls input[type="search"]:focus, .invs-ctrls select:focus, .invs-note:focus { border-color: var(--accent); outline: none; }
.invs-ctrls input[type="search"] { flex: 1 1 180px; min-width: 0; max-width: 280px; }
.invs-ctrls select { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.invs-only { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.invs-t th { white-space: nowrap; }
.invs-t td { vertical-align: top; }
.invs-t .item-meta { font-size: 11px; color: var(--text-muted); white-space: normal; }
.invs-cat td { padding-top: 14px; font-weight: 700; color: var(--accent); text-transform: uppercase; font-size: 11.5px; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.invs-short .invs-diff { color: var(--negative); font-weight: 700; }
.invs-over .invs-diff { color: var(--warning); font-weight: 700; }
.invs-short { background: var(--negative-soft); }
.invs-ok { color: var(--positive); font-weight: 700; }
.invs-reason { min-width: 160px; }
.invs-note { width: 100%; min-width: 140px; padding: 5px 8px; font-size: 13px; }
.invs-more { margin-top: 18px; }
.invs-more > summary { cursor: pointer; color: var(--text-muted); font-size: 13px; }
@media print {
  #inv-sum .invs-t, #inv-sum .inv-sum-table { font-size: 11px; }
  #inv-sum .invs-t th, #inv-sum .invs-t td, #inv-sum .inv-sum-table th, #inv-sum .inv-sum-table td { color: #000 !important; padding: 3px 5px; }
  #inv-sum .invs-short { background: none !important; }
  #inv-sum .invs-diff { color: #000 !important; }
  #inv-sum .invs-cat td { color: #000 !important; }
  #inv-sum .invs-note { border: none !important; background: none !important; padding: 0 !important; color: #000 !important; font-size: 11px; }
  #inv-sum .invs-note::placeholder { color: transparent; }
  #inv-sum .table-scroll-wrap { overflow: visible !important; }
  #inv-sum tr { break-inside: avoid; }
}
/* sign-in screen (login-photos.js): the Club Code box and links match the email form */
#login-screen .sl-club-in { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
#login-screen .sl-club-in:focus, #login-form input:focus { outline: none; border-color: var(--accent); }
.login-card a.hint { color: var(--text-muted); text-decoration: none; font-size: 13px; }
.login-card a.hint:hover { color: var(--text); text-decoration: underline; }

/* ---------- 👑 Overview: 📈 Activity · Turn a club off (admin-activity.js) ---------- */
.adm-activity .card-header { flex-wrap: wrap; gap: 8px; }
.adm-act-tabs { margin: 0; }
.adm-chart-wrap { position: relative; height: 220px; margin: 6px 0 10px; }
.adm-pick { font-size: 13.5px; min-height: 22px; }
.adm-pick-rows { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.adm-pick-row { display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); max-width: 100%; }
.adm-pick-row > span { display: flex; flex-direction: column; min-width: 0; }
.adm-pick-row small { color: var(--text-muted); font-size: 11.5px; white-space: normal; }
.adm-act-note { margin: 10px 0 0; font-size: 12.5px; color: var(--text-muted); }
.adm-menu-off { color: var(--negative); }
.adm-off p { margin: 0 0 12px; }
.adm-off-prev { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.sl-paused { border: 1px solid var(--warning); background: rgba(217, 178, 60, 0.10); border-radius: var(--radius); padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.sl-paused b { font-size: 16px; }
.sl-paused p { margin: 0; color: var(--text-muted); font-size: 13.5px; }
@media (max-width: 600px) { .adm-chart-wrap { height: 180px; } .adm-act-tabs { width: 100%; } .adm-act-tabs .segment-btn { flex: 1; } }

/* ---------- 👑 🤝 Sales board (sales-board.js) ---------- */
.sb-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sb-top-btns { display: flex; gap: 8px; }
.sb-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.sb-tools input[type="search"], .sb-tools select { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 13.5px; min-width: 0; }
.sb-tools input[type="search"] { flex: 1 1 200px; max-width: 320px; }
.sb-due { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.sb-board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.sb-col { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; min-height: 260px; min-width: 0; transition: border-color .15s, background .15s; }
.sb-col.sold { border-color: rgba(122, 154, 99, .55); }
.sb-col.drop { border-color: var(--accent); background: var(--accent-soft); }
.sb-col-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.sb-col-h b { font-size: 13px; }
.sb-col-h span { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.sb-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; cursor: pointer; }
.sb-card:hover, .sb-card:focus-visible { border-color: var(--accent); outline: none; }
.sb-card.dragging { opacity: .45; }
.sb-card b { display: block; font-size: 13.5px; overflow-wrap: anywhere; }
.sb-who { display: block; color: var(--text-muted); font-size: 12px; overflow-wrap: anywhere; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sb-chip { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-chip.r { border-color: var(--negative); color: var(--negative); }
.sb-chip.y { border-color: var(--warning); color: var(--warning); }
.sb-chip.g { border-color: var(--positive); color: var(--positive); }
.sb-chip.m { border-color: var(--accent); color: var(--accent); }
.sb-empty { font-size: 12.5px; margin: 6px 2px; }
.sb-link { background: none; border: 0; color: var(--accent); font: 600 12.5px var(--font-body); cursor: pointer; padding: 4px 2px; }
.sb-tabs { display: none; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sb-tab { flex: none; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font: 600 12.5px var(--font-body); cursor: pointer; }
.sb-tab.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.sb-lost { margin: 12px 0; }
.sb-lost summary { cursor: pointer; color: var(--text-muted); }
.sb-lost-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px dotted var(--border); }
@media (max-width: 760px) {
  .sb-tabs { display: flex; }
  .sb-board { display: block; overflow: visible; }
  .sb-col { display: none; min-height: 0; }
  .sb-col.ph-on { display: block; }
  .sb-top-btns { width: 100%; }
  .sb-top-btns .btn { flex: 1; justify-content: center; }
}
/* one prospect */
.sb-det-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 36px; margin-bottom: 12px; }
.sb-stages { margin: 0; flex-wrap: wrap; }
.sb-det-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .sb-det-grid { grid-template-columns: 1fr; } }
.sb-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.sb-kv label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 3px; }
.sb-v { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 9px; font-size: 13.5px; min-height: 34px; overflow-wrap: anywhere; }
.sb-full { grid-column: 1 / -1; }
@media (max-width: 480px) { .sb-kv { grid-template-columns: 1fr; } }
.sb-fu { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.sb-fu.due { border-color: var(--warning); background: rgba(217, 178, 60, .08); }
.sb-over { color: var(--negative); font-weight: 600; }
.sb-fu-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.sb-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sb-del { margin-left: auto; color: var(--negative); }
.sb-add { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0; flex-wrap: wrap; }
.sb-add select, .sb-add textarea { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 9px; font: 13.5px var(--font-body); }
.sb-add textarea { flex: 1 1 200px; min-width: 0; resize: vertical; }
.sb-tl { border-left: 2px solid var(--border); margin: 10px 0 0 6px; padding-left: 14px; }
.sb-tl > div { position: relative; margin-bottom: 11px; font-size: 13.5px; overflow-wrap: anywhere; }
.sb-tl > div::before { content: ""; position: absolute; left: -21px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--text-muted); }
.sb-tl > div.mv { color: var(--text-muted); }
.sb-tl > div.mv::before { border-color: var(--accent); }
.sb-tl small { display: block; color: var(--text-muted); font-size: 11.5px; }
.sb-ndel { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 11px; padding: 0 4px; }
.sb-ndel:hover { color: var(--negative); }
.sb-quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 6px; }
.sb-sold ul { margin: 6px 0 12px; padding-left: 18px; }
.sb-sold li { margin: 3px 0; }
.sb-form .form-row { flex-wrap: wrap; }
.sb-v a { color: var(--accent); text-decoration: none; }
.sb-v a:hover { text-decoration: underline; }

/* ---------- 💬 Support (support.js) ---------- */
.am-support { margin-top: 8px; border-top: 1px solid var(--border); border-radius: 0; padding-top: 11px; }
.am-support .ti { font-size: 18px; color: var(--text-muted); width: 20px; text-align: center; flex: 0 0 20px; }
.am-support + .am-logout { margin-top: 4px; }
.sup-badge { background: var(--negative); }
.sup-badge[hidden] { display: none !important; }
.phone-menu-item.sup-btn { position: relative; }
.phone-menu-item.sup-btn .sup-badge { margin-left: auto; }
.sup-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 16px; }
@media (max-width: 520px) { .sup-choice { grid-template-columns: 1fr; } }
.sup-ch { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.sup-ch:hover:not(:disabled) { border-color: var(--accent); }
.sup-ch:disabled { opacity: .5; cursor: not-allowed; }
.sup-ch i { font-style: normal; font-size: 24px; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.sup-ch b { display: block; }
.sup-ch small { color: var(--text-muted); font-size: 12.5px; }
.sup-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.sup-tab { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font: 600 12.5px var(--font-body); cursor: pointer; }
.sup-tab.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #1a140b); }
.sup-items { display: flex; flex-direction: column; }
.sup-it { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; padding: 10px 4px; border: 0; border-top: 1px solid var(--border); background: none; color: var(--text); font: 13.5px var(--font-body); cursor: pointer; }
.sup-it:first-child { border-top: 0; }
.sup-it:hover { background: var(--surface-2); }
.sup-no { color: var(--text-muted); font-size: 12.5px; }
.sup-it-m { min-width: 0; }
.sup-it-m b { font-weight: 500; }
.sup-it.unread .sup-it-m b { font-weight: 700; }
.sup-prev { display: block; color: var(--text-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--negative); margin-right: 6px; vertical-align: middle; }
.sup-st { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.sup-st.o { border-color: var(--warning); color: var(--warning); }
.sup-st.r { border-color: var(--positive); color: var(--positive); }
.sup-st.late { border-color: var(--negative); color: var(--negative); font-weight: 700; }
.sup-foot { margin: 10px 0 0; }
@media (max-width: 520px) { .sup-it { grid-template-columns: minmax(0, 1fr) auto; } .sup-no { display: none; } }
/* compose */
.sup-mail { border: 1px solid var(--border); border-radius: 12px; overflow: visible; margin-top: 24px; }
.sup-tb { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); border-radius: 12px 12px 0 0; }
.sup-discard { margin-left: auto; background: none; border: 0; color: var(--text-muted); font: 13px var(--font-body); cursor: pointer; }
.sup-fld { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; flex-wrap: wrap; min-width: 0; }
.sup-lbl { width: 58px; flex: 0 0 58px; color: var(--text-muted); font-size: 12.5px; }
.sup-fld select { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; font: 13.5px var(--font-body); min-width: 0; max-width: 100%; }
.sup-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font: 12.5px var(--font-body); color: var(--text); max-width: 100%; }
.sup-pill.fx { border-color: var(--accent); }
button.sup-pill { cursor: pointer; }
.sup-x { background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: 0 2px; font-size: 11px; }
.sup-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sup-cc-wrap { position: relative; flex: 1 1 140px; min-width: 120px; }
.sup-cc-wrap input { width: 100%; background: none; border: 0; color: var(--text); font: 13.5px var(--font-body); padding: 4px 0; outline: none; }
.sup-sugg { position: absolute; left: 0; top: 100%; z-index: 5; width: min(300px, 80vw); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.35); display: flex; flex-direction: column; }
.sup-sg { display: flex; flex-direction: column; text-align: left; padding: 6px 8px; border-radius: 6px; border: 0; background: none; color: var(--text); font: 13px var(--font-body); cursor: pointer; }
.sup-sg:hover { background: var(--accent-soft); }
.sup-sg small { color: var(--text-muted); font-size: 11.5px; }
.sup-sg-none { padding: 6px 8px; }
.sup-body { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text); font: 14px/1.5 var(--font-body); padding: 12px; resize: vertical; min-height: 150px; outline: none; }
.sup-att { padding: 8px 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; border-bottom: 1px solid var(--border); }
.sup-att:last-child { border-bottom: 0; }
.sup-att[hidden] { display: none; }
.sup-ok { text-align: center; padding: 26px 16px; }
.sup-tk { font-size: 30px; font-weight: 800; color: var(--accent); margin: 6px 0; }
/* the thread */
.sup-th-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; padding-right: 36px; margin-bottom: 12px; }
.sup-th-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sup-admin-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: -4px 0 12px; font-size: 13px; }
.sup-admin-bar select { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 8px; margin-left: 4px; }
.sup-em { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--surface-2); }
.sup-em.us { border-color: rgba(143, 111, 214, .55); }
.sup-em.note { border-style: dashed; border-color: var(--warning); background: rgba(217, 178, 60, .06); }
.sup-em-h { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; align-items: center; }
.sup-em-h small { color: var(--text-muted); font-size: 12px; }
.sup-em-b { padding: 10px 12px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.sup-em-f { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sup-av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 11.5px; background: var(--accent-soft); color: var(--accent); margin-right: 8px; vertical-align: middle; }
.sup-av.us { background: rgba(143, 111, 214, .16); color: #8f6fd6; }
.sup-ev { text-align: center; color: var(--text-muted); font-size: 12px; margin: 6px 0 12px; }
.sup-reply { border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: var(--surface); }
.sup-reply.note { border-style: dashed; border-color: var(--warning); }
.sup-reply textarea { width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font: 14px/1.5 var(--font-body); resize: vertical; }
.sup-reply .sup-att { border: 0; padding: 6px 0 0; }
.sup-rmode { display: flex; gap: 6px; margin-bottom: 8px; }
.sup-r-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
/* 👑 queue */
.sup-tab.adm.on { background: #8f6fd6; border-color: #8f6fd6; color: #fff; }
.sup-q td { vertical-align: top; }
.sup-q tr.late td:first-child { box-shadow: inset 3px 0 0 var(--negative); }
.sup-q-prev { max-width: 380px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-late { color: var(--negative); }
.sup-sugg[hidden] { display: none !important; }

/* =====================================================================
   SCORECARD LOOK — country-club stationery meets a golf scorecard.
   Cream paper · ink · fairway green (or the club's color) · flag red.
   Fraunces for headlines and big numbers, Inter for everything else,
   small caps-style labels, thin column rules like a scorecard.
   ===================================================================== */
body { background: var(--bg) linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0)) fixed; }
::selection { background: var(--accent-soft); }

/* the menu: a slightly darker sheet with a flag-red marker on the page you're on */
.app-menu { background: var(--sidebar); border-right: 1px solid var(--border); }
.am-brand { border-bottom: 3px double var(--border); }
.am-brand .brand span { font-family: var(--font-display); font-weight: 700; }
.am-section { color: var(--text-muted); opacity: 1; letter-spacing: 0.16em; font-size: 10px; }
.am-head:hover, .am-item:hover { background: rgba(28, 38, 32, 0.06); }
.am-item { color: #4E4838; }
.am-item.active, .am-head.am-single.active { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: inset 3px 0 0 var(--flag), 0 1px 0 var(--border); border-radius: 4px; }
.am-head.am-single.active .am-ic, .am-item.active .am-ic { color: var(--flag); }
.am-logout:hover { color: var(--flag); }

/* the masthead: page title in Fraunces over a double rule */
.topbar { border-bottom: 3px double var(--text); padding-bottom: 12px; margin-bottom: 22px; }
html.club-color .topbar { box-shadow: none; border-top: 3px solid var(--club); padding-top: 12px; }
.topbar h1 { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.01em; }
.view-crumb { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.topbar-uploads-btn, .topbar-icon-btn { background: var(--surface); border-color: var(--border); border-radius: 4px; }

/* cards: paper on paper, a ruled header in small caps */
.card, .stat-card, .stat-card-clickable { background: var(--surface); border-color: var(--border); border-radius: 6px; box-shadow: 0 1px 0 rgba(28, 38, 32, 0.04); }
.card-header { border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.card-header h2 { font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.stat-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--text-muted); }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.01em; }
.stat-card[style*="border-color:var(--accent)"], .stat-card[style*="border-color: var(--accent)"] { box-shadow: inset 0 3px 0 var(--accent); }

/* tables: scorecard columns */
th { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
td { border-bottom-color: var(--rule); font-variant-numeric: tabular-nums; }
.card table th + th, .card table td + td, .modal-dialog table th + th, .modal-dialog table td + td { border-left: 1px solid var(--rule); }
.card table tbody tr:hover td { background: rgba(28, 38, 32, 0.025); }
td.num, th.num, .num { font-variant-numeric: tabular-nums; }

/* buttons + inputs: crisp, stationery-like */
.btn { border-radius: 4px; }
.btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--text); }
.btn-primary { color: var(--on-accent, #fff); }
.segment-control { background: var(--surface-2); border-color: var(--border); }
.segment-btn.active { background: var(--surface); color: var(--text); box-shadow: inset 0 -2px 0 var(--flag), 0 1px 2px rgba(28, 38, 32, 0.12); }
input, select, textarea { accent-color: var(--accent); }
.field input, .field select, .field textarea, input.cell-input, input.inline-input { background: #FFFDF7; border-color: var(--border); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }

/* pop-ups: a sheet of paper */
.modal-dialog { background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(28, 38, 32, 0.25); }
.modal-overlay { background: rgba(28, 38, 32, 0.45); }
.modal-dialog h2 { font-family: var(--font-display); font-weight: 800; }

/* hints and warnings that read on cream */
.hint { color: var(--text-muted); }
.labor-upload-warn { background: rgba(154, 106, 12, 0.08); border-color: rgba(154, 106, 12, 0.35); }
.am-badge { background: var(--flag); }

/* phones: the bottom bar matches */
.phone-bar { background: var(--sidebar); border-top: 1px solid var(--border); }

/* ---------- sign-in keypad: an old black payphone (staff-login.js) ---------- */
.sl-phone {
  --pk1: #4a4e55; --pk2: #26292e; --pktxt: #f1f1f1; --pklt: #b9c0c7; --pkrim: #0f1012;
  position: relative; width: 300px; max-width: 100%; margin: 0 auto; padding: 18px 18px 16px; border-radius: 14px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px), linear-gradient(160deg, #3a3d42, #1d1f23 55%, #2c2f34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 3px rgba(0, 0, 0, .4), 0 10px 24px rgba(28, 38, 32, .35), 0 0 0 1px rgba(0, 0, 0, .5);
}
.pp-screw { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e8e8e8, #7d838a 55%, #3d4146); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
.pp-screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 4px; height: 2px; background: rgba(0, 0, 0, .6); transform: rotate(35deg); }
.pp-screw.tl { top: 7px; left: 7px; } .pp-screw.tr { top: 7px; right: 7px; } .pp-screw.bl { bottom: 7px; left: 7px; } .pp-screw.br { bottom: 7px; right: 7px; }
.pp-lcd { position: relative; margin: 2px 6px 16px; height: 46px; border-radius: 6px; background: linear-gradient(#9fb08a, #b9c9a1); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; }
.sl-phone .sl-dots { margin: 0; gap: 16px; }
.sl-phone .sl-dot { width: 14px; height: 14px; border: 2px solid #2f3d22; transition: background .12s; }
.sl-phone .sl-dot.on { background: #2f3d22; }
.pp-lcd-msg { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 6px; background: linear-gradient(#9fb08a, #b9c9a1); font: 700 13px/1 "Courier New", monospace; letter-spacing: .1em; color: #25311a; animation: pp-msg 1.4s forwards; }
@keyframes pp-msg { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.sl-phone .sl-pad { gap: 12px 14px; max-width: none; padding: 0 6px; }
.sl-phone .sl-key {
  position: relative; height: 58px; border: 0; border-radius: 7px; padding: 0;
  background: linear-gradient(180deg, var(--pk1), var(--pk2)); color: var(--pktxt);
  box-shadow: 0 5px 0 var(--pkrim), 0 7px 8px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -2px 2px rgba(0, 0, 0, .4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: transform .06s ease, box-shadow .06s ease; -webkit-tap-highlight-color: transparent; user-select: none;
}
.sl-phone .sl-key b { font: 700 25px/1 "Helvetica Neue", Arial, sans-serif; }
.sl-phone .sl-key small { font: 700 9px/1 Arial, sans-serif; letter-spacing: .18em; color: var(--pklt); min-height: 9px; }
.sl-phone .sl-key-soft b { font-size: 19px; }
.sl-phone .sl-key:active, .sl-phone .sl-key.down { transform: translateY(4px); box-shadow: 0 1px 0 var(--pkrim), 0 2px 3px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 2px 4px rgba(0, 0, 0, .35); background: linear-gradient(180deg, var(--pk1), var(--pk2)); border: 0; }
.sl-phone .sl-key:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.pp-foot { display: flex; justify-content: space-between; align-items: center; margin: 16px 8px 0; font: 700 9px/1 Arial, sans-serif; letter-spacing: .2em; color: #b9c0c7; text-transform: uppercase; }
.pp-slot { width: 56px; height: 8px; border-radius: 4px; background: #0b0c0e; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .15); }
@media (prefers-reduced-motion: reduce) { .sl-phone .sl-key { transition: none; } .pp-lcd-msg { animation: none; } }

/* Scorecard: my own chat bubbles in the club color; plain inputs look like the rest */
.ch-m.me { background: var(--accent); color: var(--on-accent, #fff); }
.ch-m.me .ch-tm, .ch-m.me .ch-tm a, .ch-m.me .ch-body a, .ch-m.me .ch-del { color: rgba(255, 255, 255, .82); }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]), select, textarea) {
  background-color: #FFFDF7; color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 6px 9px; font-size: 14px;
}
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Scorecard Dashboard: yesterday vs par (scorecard.js) ---------- */
.sc-head-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-other { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.sc-overall { font: 800 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.sc-beat-t { color: var(--accent); }
.sc-miss-t { color: var(--flag); }
.sc-even-t { color: var(--text-muted); }
.sc-bigs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 4px; margin-bottom: 14px; background: var(--surface); }
.sc-big { padding: 12px 14px; border-left: 1px solid var(--rule); min-width: 0; }
.sc-big:first-child { border-left: 0; }
.sc-big-l { display: block; font: 700 10.5px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.sc-big b { display: block; font: 800 30px/1.15 var(--font-display); letter-spacing: -.01em; margin: 2px 0; color: var(--text); }
.sc-big b.sc-beat-t { color: var(--accent); } .sc-big b.sc-miss-t { color: var(--flag); }
.sc-big-p { font-size: 12.5px; color: var(--text-muted); }
.sc-t td, .sc-t th { white-space: nowrap; }
.sc-t td:first-child { white-space: normal; font-weight: 600; }
.sc-sub { font-weight: 400; font-size: 11.5px; }
.sc-score { display: inline-block; padding: 1px 8px; border: 1.5px solid transparent; font-variant-numeric: tabular-nums; }
.sc-score.sc-beat { border-color: var(--accent); border-radius: 999px; color: var(--accent); }
.sc-score.sc-miss { border-color: var(--flag); border-radius: 2px; color: var(--flag); }
.sc-pm { font-weight: 800; }
.sc-tot td { font-weight: 800; background: rgba(28, 38, 32, .05); border-top: 2px solid var(--border); }
.sc-sub-row td { color: var(--text-muted); }
.sc-sub-row td:first-child { font-weight: 600; }
.sc-note { margin: 10px 0 0; font: italic 500 13.5px var(--font-display); color: var(--text-muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sc-legend { font: normal 500 12px var(--font-body); white-space: nowrap; }
.sc-legend .sc-score { padding: 0 6px; font-size: 11.5px; }
@media (max-width: 640px) {
  .sc-bigs { grid-template-columns: 1fr 1fr; }
  .sc-big:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); }
  .sc-big b { font-size: 24px; }
  .sc-ly { display: none; }
  .sc-t td, .sc-t th { padding-left: 6px; padding-right: 6px; }
}
:where(a) { color: var(--accent); }

/* ---------- 💵 Billing (billing.js) ---------- */
.bil-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bil-top-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.bil-pill { font: 700 10.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.bil-pill.draft { color: var(--warning); } .bil-pill.sent { color: #2A5A9A; } .bil-pill.paid { color: var(--positive); } .bil-pill.over { color: var(--flag); } .bil-pill.void { color: var(--text-muted); }
.bil-t td { vertical-align: top; }
.bil-off td { opacity: .6; }
.bil-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; padding-right: 36px; margin-bottom: 12px; }
.bil-lines td.num, .bil-t td.num { white-space: nowrap; }
.bil-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.bil-add #bil-ld { flex: 3 1 220px; min-width: 0; } .bil-add #bil-lq { flex: 0 1 70px; min-width: 0; } .bil-add #bil-lp { flex: 1 1 140px; min-width: 0; }
.bil-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 6px; }
.bil-void { color: var(--flag); }
.bil-paid { margin: 10px 0 0; font-weight: 700; color: var(--positive); }
.bil-paid.void { color: var(--text-muted); }
.bil-form { margin-top: 12px; padding: 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface-2); }
.bil-calc { margin: 2px 0 12px; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--accent-soft); font-size: 13.5px; }
.bil-calc:empty { display: none; }
.bil-warn { margin-top: 8px; padding: 9px 12px; border: 1px solid rgba(154, 106, 12, .4); background: rgba(154, 106, 12, .08); border-radius: 4px; font-size: 13.5px; }
.bil-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.bil-kv label { display: block; font: 700 10.5px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
@media (max-width: 560px) { .bil-kv { grid-template-columns: 1fr; } }

/* the Valley Ledger clubhouse mark (brand-mark.png) next to the name in the menu and on sign-in */
.vl-mark { display: block; flex: none; border-radius: 22%; box-shadow: 0 1px 2px rgba(28, 38, 32, .25); }

/* ---------- 📣 Announcements · 🛠 Updates (announcements.js) ---------- */
.vl-ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: 34px; display: flex; align-items: center; overflow: hidden; background: #0E3B24; color: #F0E8D4; font: 500 13px var(--font-body); box-shadow: 0 -2px 8px rgba(0, 0, 0, .12); }
.vlt-tag { flex: none; height: 100%; display: flex; align-items: center; padding: 0 12px; background: #D6AE60; color: #1C2620; font: 800 11px var(--font-body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.vlt-track { flex: 1; min-width: 0; overflow: hidden; height: 100%; display: flex; align-items: center; }
.vlt-run { display: inline-block; white-space: nowrap; padding-left: 100%; animation: vlt-run 30s linear infinite; }
.vl-ticker:hover .vlt-run { animation-play-state: paused; }
.vlt-dot { margin: 0 18px; opacity: .6; }
@keyframes vlt-run { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .vlt-run { animation: none; padding-left: 12px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } }
.vlt-x { flex: none; height: 100%; padding: 0 12px; border: 0; border-left: 1px solid rgba(255, 255, 255, .18); background: #0E3B24; color: #F0E8D4; font: 600 12px var(--font-body); cursor: pointer; white-space: nowrap; }
.vlt-x:hover { background: #164D31; }
html.has-ticker .main { padding-bottom: 96px; }
@media (max-width: 780px) { .vlt-tag { padding: 0 9px; } .vlt-tag-l { display: none; } html.has-ticker .main { padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)); } }

.ann-pop h2 { margin: 0 0 10px; }
.ann-msg { border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.ann-msg b { display: block; }
.ann-msg small { display: block; color: var(--text-muted); font-size: 13px; margin-top: 2px; white-space: pre-wrap; }
.ann-msg-u { border-color: var(--flag); background: rgba(194, 65, 44, .05); }
.ann-due { border: 1px solid rgba(154, 106, 12, .45); background: rgba(154, 106, 12, .07); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.ann-due ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.ann-due li { margin: 3px 0; }
.ann-due-btns { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.ann-chk { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin: 8px 0; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text); }
.ann-chk input { width: auto; margin: 0; }

.ann-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ann-head-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ann-upd-card { border: 2px solid var(--flag); background: rgba(194, 65, 44, .04); }
.ann-big { font: 800 22px var(--font-display, Georgia, serif); }
.ann-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ann-red { color: var(--flag) !important; }
.ann-pill { font: 700 10.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.ann-pill-live { color: var(--positive, #2C5A3A); }
.ann-pill-sched { color: #2A5A9A; }
.ann-pill-upd { color: var(--flag); }
.ann-t td { vertical-align: top; }
.ann-row-btns { white-space: nowrap; text-align: right; }
.am-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .am-row { grid-template-columns: 1fr; } }
.am-clubs { margin-top: 6px; max-height: 200px; overflow: auto; border: 1px solid var(--rule); border-radius: 6px; padding: 2px 10px; }

.vl-upd-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: -8px 0 14px; padding: 9px 14px; border: 2px solid var(--flag); border-radius: 6px; background: rgba(194, 65, 44, .06); font-size: 13.5px; }
.vl-newver { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 400; display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); font-size: 13.5px; max-width: calc(100% - 32px); flex-wrap: wrap; }

.vl-updating { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); }
.vlu-photo { background: linear-gradient(160deg, #2b5a3a, #0e3b24 60%, #16261e); position: relative; }
.vlu-photo.vlu-has-photo { background-size: cover; background-position: center; }
.vlu-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 40%, rgba(255, 240, 200, .25), transparent 50%); }
.vlu-side { display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow: auto; }
.vlu-box { max-width: 360px; text-align: center; }
.vlu-box h1 { font: 800 28px var(--font-display, Georgia, serif); margin: 0; }
.vlu-logo { width: 72px; height: 72px; border-radius: 16px; display: block; margin: 0 auto 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.vlu-msg { color: var(--text-muted); font-style: italic; }
.vlu-spin { width: 30px; height: 30px; border: 3px solid var(--rule); border-top-color: var(--accent); border-radius: 50%; margin: 14px auto; animation: vlu-sp 1s linear infinite; }
@keyframes vlu-sp { to { transform: rotate(360deg); } }
.vlu-staff { margin-top: 18px; }
@media (max-width: 760px) { .vl-updating { grid-template-columns: 1fr; } .vlu-photo { display: none; } }

/* ---------- 👥 "Which club?" at sign-in + adding an existing login (club-picker.js, add-person.js) ---------- */
.login-card.cp-on > :not(#cp-picker) { display: none !important; }
.cp-picker { text-align: left; }
.cp-sub { color: var(--text-muted); margin: -6px 0 16px; font-size: 14px; }
.cp-list { display: flex; flex-direction: column; gap: 10px; }
.cp-club { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.cp-club:hover:not([disabled]) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cp-club.cp-last { border: 2px solid var(--accent); padding: 11px 13px; }
.cp-club[disabled] { opacity: .6; cursor: default; }
.cp-club.cp-busy { opacity: 1; border-color: var(--accent); }
.cp-club.cp-busy .cp-go { animation: cp-pulse 1s ease-in-out infinite; }
@keyframes cp-pulse { 50% { opacity: .2; } }
.cp-logo { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #F0E8D4; font: 800 15px var(--font-display); letter-spacing: .02em; overflow: hidden; }
.cp-logo-img { background: var(--surface-2); border: 1px solid var(--rule); }
.cp-logo-img img { width: 100%; height: 100%; object-fit: contain; }
.cp-txt { min-width: 0; flex: 1; }
.cp-txt b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.cp-txt small { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 1px; }
.cp-pill { font: 700 10px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 2px; white-space: nowrap; }
.cp-go { margin-left: auto; color: var(--accent); font-size: 22px; font-weight: 700; line-height: 1; }
.cp-back { margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.cp-welcome h2 { margin: 0 0 10px; padding-right: 30px; }

input.ap-bad, input.ap-bad:focus { border: 2px solid var(--flag) !important; background: rgba(194, 65, 44, .05) !important; }
.ap-email-err { color: var(--flag); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.ap-attach { border: 1px solid rgba(42, 90, 154, .4); background: rgba(42, 90, 154, .06); border-radius: 6px; padding: 11px 13px; margin: 2px 0 10px; font-size: 13.5px; }
.ap-attach b:first-child { display: block; margin-bottom: 3px; }
.ap-ok { border: 1px solid rgba(44, 90, 58, .4); background: rgba(44, 90, 58, .07); border-radius: 6px; padding: 11px 13px; }

/* ---------- 🏢 Corporate team + 👁 club visits (corporate.js) ---------- */
.adm-brand small { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-muted); margin-top: 1px; }
.corp-lv { display: inline-block; min-width: 52px; text-align: center; font-weight: 700; font-size: 12px; border-radius: 4px; padding: 3px 6px; }
.corp-lv.e { background: rgba(44, 90, 58, .12); color: var(--positive, #2C5A3A); }
.corp-lv.v { background: rgba(42, 90, 154, .1); color: #2A5A9A; }
.corp-lv.n { color: #b3aa95; }
.corp-lv.k { background: rgba(143, 111, 214, .12); color: #8f6fd6; }
.corp-cell { background: none; border: 0; padding: 0; cursor: pointer; }
.corp-cell:hover .corp-lv { box-shadow: inset 0 0 0 1px currentColor; }
.corp-scope { display: block; background: none; border: 0; padding: 2px 0 0; cursor: pointer; text-decoration: underline dotted; font-size: 11.5px; }
.corp-matrix td, .corp-matrix th { white-space: nowrap; }
.corp-off td { opacity: .55; }
.corp-opt { display: block; width: 100%; text-align: left; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; background: #fff; cursor: pointer; font: inherit; color: var(--text); }
.corp-opt.on { border: 2px solid #8f6fd6; padding: 7px 9px; }
.corp-opt b { display: block; }
.corp-opt small { color: var(--text-muted); }
.vl-viewing-strip.cv-strip { background: rgba(42, 90, 154, .08); border: 1px solid rgba(42, 90, 154, .4); color: var(--text); }
.cv-list { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; }
.cv-card { border: 1px solid rgba(42, 90, 154, .4); background: rgba(42, 90, 154, .06); border-radius: 6px; padding: 10px 12px; margin: 8px 0; font-size: 13.5px; }
.cv-card .cv-note { margin: 4px 0; white-space: pre-wrap; }
.sup-open-club { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }

/* ---------- 🍾 Deposits · ↩ Kegs returned · 🍷 Put wine away (deposits-putaway.js) ---------- */
.dp-charge { display: grid; grid-template-columns: minmax(130px, auto) 1fr auto auto; gap: 10px; align-items: center; }
.dp-name { font-weight: 600; }
.dp-how { color: var(--text-muted); font-size: 12.5px; min-width: 0; overflow-wrap: anywhere; }
.dp-how input { width: 64px; display: inline-block; margin-right: 4px; }
.dp-amt { font-variant-numeric: tabular-nums; text-align: right; }
.dp-neg { color: var(--positive, #2C5A3A); }
.dp-auto { font: 700 10px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #2A5A9A; border: 1px solid currentColor; border-radius: 999px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.dp-ret-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.dp-wine { margin: 12px 0; }
.dp-wine-card { border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.dp-split { display: grid; grid-template-columns: 1.3fr 1fr 74px 30px; gap: 8px; align-items: center; margin-top: 6px; }
.dp-split input, .dp-split select { width: 100%; margin: 0; }
.dp-x { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 15px; }
.dp-x[disabled] { opacity: .3; cursor: default; }
.dp-foot { margin-top: 6px; }
.dp-count { font: 700 10.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.dp-count.ok { color: var(--positive, #2C5A3A); }
.dp-count.bad { color: var(--flag, #C2412C); }
@media (max-width: 560px) { .dp-charge { grid-template-columns: 1fr auto auto; } .dp-how { grid-column: 1 / -1; grid-row: 2; } .dp-split { grid-template-columns: 1fr 1fr 64px 26px; } }

/* ---------- 🍷 Wine spots are the stock (wine-ledger.js) ---------- */
.wl-pending { margin-top: 2px; }
.wl-pending span { color: var(--warning, #9A6A0C); font-weight: 600; }
.wlg-banner { margin: 0 0 12px; }
.wlg-banner .btn { margin-left: 6px; }
.wlg-m { border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.wlg-m.ok { border-color: rgba(44, 90, 58, .4); background: rgba(44, 90, 58, .05); }
.wlg-m.need { border-color: rgba(154, 106, 12, .5); background: rgba(154, 106, 12, .06); }
.wlg-m .hint { margin-top: 2px; }
.wlg-pill { font: 700 10.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; margin-left: 4px; }
.wlg-pill.ok { color: var(--positive, #2C5A3A); }
.wlg-pill.need { color: var(--warning, #9A6A0C); }
.wlg-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.wlg-pick .wlg-q { width: 64px; margin: 0; }
.wlg-pick select { width: auto; margin: 0; }
.wlg-match .modal-actions { align-items: center; }
.wlg-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.wlg-t th { font: 700 10.5px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.wlg-t td { padding: 6px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.wlg-t .num { text-align: right; }
.wlg-t input.wlg-real { width: 72px; margin: 0; text-align: right; }
.wlg-t .wlg-area { width: auto; margin: 0; }
.wlg-t .wlg-spot { width: 70px; margin: 0; text-transform: uppercase; }
.wlg-hist { margin-top: 12px; }
.wlg-hist summary { cursor: pointer; font-weight: 600; }

/* ---------- menu: the list scrolls, What's New · Support · Log out stay at the bottom ---------- */
.app-menu { overflow: hidden; }
.app-menu .am-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px; }
.app-menu .am-brand, .app-menu .am-whatsnew, .app-menu .am-support, .app-menu .am-logout { flex: 0 0 auto; }

/* ---------- top bar: today's hours ---------- */
.tb-hours { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 2px 10px 2px 0; margin-right: 2px; border-right: 1px solid var(--rule); font-size: 11.5px; line-height: 1.3; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb-hours .tb-h-line.off { color: var(--flag); }
@media (max-width: 780px) { .tb-hours { display: none; } }

/* ---------- Dashboard: Pass Along Notes closed; ⭐ Shout-outs page ---------- */
.dash-pass.dash-collapsed .card-header { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.dash-pass-sub { font: 500 12.5px var(--font-body); letter-spacing: 0; text-transform: none; margin-left: 6px; }
.dash-pass-btns { display: flex; gap: 6px; }
.shoutp-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.shoutp-tools select { width: auto; margin: 0; }
.shoutp-top { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.shoutp-chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 13px; color: var(--text); }
.shoutp-chip.on { border: 2px solid var(--accent); padding: 3px 9px; }
.shoutp-month { font: 800 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase; margin: 14px 0 4px; }

/* ---------- ⚡ Quick tiles at the top of the side menu (were across the top bar) ---------- */
.app-menu .am-quick { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 2px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.app-menu .am-quick .tb-bubble { flex-direction: column; gap: 2px; padding: 7px 2px 6px; min-height: 0; min-width: 0; border-radius: 8px; font-size: 11.5px; font-weight: 600; background: var(--surface); }
.app-menu .am-quick .tb-bubble .tb-emo { font-size: 18px; }
.app-menu .am-quick .tb-bubble .tb-lbl { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.app-menu .am-quick #tb-draft-btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #1a140b); }
.app-menu .am-quick .tb-dot { top: -6px; right: -5px; min-width: 18px; height: 18px; font-size: 10px; border-color: var(--sidebar, var(--surface)); }
.tb-hours { border-right: 0; padding-right: 0; text-align: right; align-items: flex-end; }
.tb-msg-phone { display: none; position: relative; background: none; border: 0; padding: 4px 6px; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); }
.tb-msg-phone .tb-dot { top: -4px; right: -6px; min-width: 18px; height: 18px; font-size: 10px; }
@media (max-width: 780px) {
  .topbar-actions { width: auto; margin-left: auto; display: flex; }
  .tb-msg-phone { display: inline-flex; }
}

/* ---------- 📰 Manager Dashboard: The Valley Ledger (dashboard-paper.js) ---------- */
.pap { background: var(--surface); border: 1px solid var(--border); padding: 20px 24px; margin-bottom: 16px; }
.pap-mast { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 3px double var(--text); padding-bottom: 10px; margin-bottom: 16px; }
.pap-mast h2 { font: 800 42px/1 var(--font-display); margin: 0; letter-spacing: -0.01em; }
.pap-mr { display: flex; gap: 18px; align-items: flex-end; text-align: right; }
.pap-mr > div { display: flex; flex-direction: column; font: 600 11px/1.6 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.pap-mr b { color: var(--text); font-weight: 800; }
.pap-hrs { border-left: 1px solid var(--rule); padding-left: 18px; text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important; font-variant-numeric: tabular-nums; }
.pap-hrs:empty { display: none !important; }
.pap-hrs .off { color: var(--flag); }
.pap-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; }
.pap-cols > div { padding: 0 16px; border-left: 1px solid var(--rule); min-width: 0; }
.pap-cols > div:first-child { padding-left: 0; border-left: 0; }
.pap-cols > div:last-child { padding-right: 0; }
.pap-k { font: 800 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; color: var(--text-muted); }
.pap-k.pap-red { color: var(--flag); } .pap-k.pap-blue { color: #2A5A9A; } .pap-k.pap-green { color: var(--positive); } .pap-k.pap-ink { color: var(--text); margin: 0; }
.pap-head { font: 800 28px/1.12 var(--font-display); margin: 0 0 6px; }
.pap-dek { font: 500 15px/1.5 Georgia, serif; color: var(--text); opacity: .85; margin: 0 0 12px; }
.pap-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.pap-mid { font: 800 22px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.pap-pm { font-weight: 700; font-size: 12px; margin-left: 6px; }
.pap-overall { font-weight: 700; margin-left: 6px; }
.pap-link { background: none; border: 0; padding: 4px 0; font: 600 12.5px var(--font-body); color: var(--text-muted); cursor: pointer; text-align: left; }
.pap-link:hover { color: var(--text); text-decoration: underline; }
.pap-story { border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 12px; }
.pap-story p { font: 14px/1.5 Georgia, serif; margin: 0 0 6px; }
.pap-ev { display: block; width: 100%; background: none; border: 0; padding: 2px 0; text-align: left; cursor: pointer; color: var(--text); font: 14px/1.45 Georgia, serif; }
.pap-ev.pap-t { font: 800 17px/1.3 var(--font-display); }
.pap-ev:hover { text-decoration: underline; }
.pap-86 { margin-top: 6px; background: none; border: 0; padding: 0; cursor: pointer; font: 600 13px var(--font-body); color: var(--positive); text-align: left; }
.pap-86.bad { color: var(--flag); }
.pap-quote { font-style: normal; }
.pap-by { color: var(--text-muted); }
.pap-briefs { list-style: none; margin: 0; padding: 0; }
.pap-briefs li { border-bottom: 1px solid var(--rule); }
.pap-briefs li:last-child { border-bottom: 0; }
.pap-briefs li.hint, .pap-clear { padding: 7px 0; font-size: 13.5px; }
.pap-clear { color: var(--positive); font-weight: 600; }
.pap-brief { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; background: none; border: 0; cursor: pointer; font: 500 13.5px var(--font-body); color: var(--text); text-align: left; }
.pap-brief:hover > span:first-child { text-decoration: underline; }
.pap-brief > span:first-child { min-width: 0; }
.pap-red-v { color: var(--flag); font-weight: 800; white-space: nowrap; }
.pap-brief .hint { white-space: nowrap; }
.pap-pill { font: 700 10.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; color: var(--flag); white-space: nowrap; }
.pap-mgr { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.pap-av { width: 34px; height: 34px; border-radius: 50%; background: var(--rule); color: #fff; display: grid; place-items: center; font: 800 13px var(--font-body); flex: none; }
.pap-mgr.off .pap-av { color: var(--text-muted); }
.pap-mgr b { font: 800 15px var(--font-display); display: block; }
.pap-mgr.off b { color: var(--text-muted); }
.pap-shift { font: 600 12.5px var(--font-body); }
.pap-mgr.off .pap-shift { font-weight: 500; color: var(--text-muted); }
.pap-card { margin-top: 16px; }
.pap-card .sc-card { margin: 0; }
.pap-section { border-top: 3px double var(--text); margin-top: 18px; padding-top: 12px; }
.pap-sh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pap-sh .dash-pass-sub { font-weight: 500; letter-spacing: 0; text-transform: none; }
.pap-pass { margin-top: 10px; background: var(--bg); border: 1px solid var(--rule); border-radius: 4px; padding: 12px 14px; font: 15px/1.6 Georgia, serif; white-space: pre-wrap; }
.pap-sp3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; border: 1px solid var(--rule); }
.pap-sp3 > div { padding: 10px 14px; border-left: 1px solid var(--rule); min-width: 0; }
.pap-sp3 > div:first-child { border-left: 0; box-shadow: inset 0 3px 0 var(--flag); }
.pap-spk { font: 800 10.5px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.pap-sp3 > div:first-child .pap-spk { color: var(--flag); }
.pap-sp-list { list-style: none; margin: 0; padding: 0; }
.pap-sp-list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.pap-sp-list li:last-child { border-bottom: 0; }
.pap-sp-list b { font: 800 14.5px/1.25 var(--font-display); display: block; }
.pap-sm { font: 12.5px Georgia, serif; color: var(--text-muted); display: block; }
.pap-pr { font: 600 12.5px var(--font-body); color: var(--text-muted); white-space: nowrap; }
@media (max-width: 1000px) { .pap-cols { grid-template-columns: 1fr 1fr; } .pap-cols > div:first-child { grid-column: 1 / -1; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 12px; } .pap-cols > div:nth-child(2) { padding-left: 0; border-left: 0; } }
@media (max-width: 700px) {
  .pap { padding: 14px; }
  .pap-mast h2 { font-size: 32px; }
  .pap-mr { text-align: left; flex-wrap: wrap; } .pap-hrs { border-left: 0; padding-left: 0; }
  .pap-cols { grid-template-columns: 1fr; }
  .pap-cols > div { border-left: 0; padding: 0; border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 12px; }
  .pap-cols > div:first-child { border-top: 0; margin-top: 0; padding-top: 0; border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .pap-head { font-size: 23px; }
  .pap-sp3 { grid-template-columns: 1fr; } .pap-sp3 > div { border-left: 0; border-top: 1px solid var(--rule); } .pap-sp3 > div:first-child { border-top: 0; }
}
.pap-stale { color: var(--warning); margin: 6px 0 0; font-size: 12.5px; }
html.vl-paper .tb-hours { display: none; } /* the masthead shows today's hours */

/* ---------- 🛒 Purchasing extras (purchasing-extras.js) ---------- */
.ecr-cr { color: var(--positive); }
.ecr-vh { font: 800 15px var(--font-display); margin: 18px 0 4px; }
.ecr-sum { margin-bottom: 6px; }
.px-close-credits { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 10px 0; background: var(--surface-2); }
.px-cc { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13.5px; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 500; cursor: pointer; }
.px-cc input { width: auto; margin: 0; }
.px-cc span { flex: 1; min-width: 0; }
.px-inv-credits { border: 1px solid rgba(44, 110, 63, .35); background: var(--positive-soft); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.px-ic-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 13.5px; flex-wrap: wrap; }
.px-ic-row:first-of-type { margin-top: 6px; }
.px-ic-row > span { flex: 1; min-width: 160px; }
.px-jump { display: inline-block; margin-left: 6px; font: 800 10.5px var(--font-body); color: var(--flag); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; vertical-align: 2px; }
.px-jump-was { color: var(--flag); }
.px-c-btns { white-space: nowrap; }
.px-ks { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; }
.px-ks-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); font-weight: 500; }
.px-ks-row input { width: 90px; margin: 0; text-align: right; }
.px-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 2px 0 12px; }
.px-bar i { display: block; height: 100%; background: var(--positive); }
.px-check { list-style: none; margin: 0; padding: 0; }
.px-check li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.px-check li:last-child { border-bottom: 0; }
.px-check li > div { flex: 1; min-width: 0; }
.px-check b { display: block; }
.px-check .px-todo { color: var(--flag); }
.px-box { width: 22px; height: 22px; border-radius: 5px; border: 2px solid var(--border); flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.px-box.on { background: var(--positive); border-color: var(--positive); color: #fff; }
.px-mc-btns { display: flex; align-items: center; gap: 10px; flex: none; }

/* ---------- ← Back after a drill-in (core.js) ---------- */
.vl-back { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 13px 5px 10px; font: 700 13px var(--font-body); cursor: pointer; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; align-self: center; }
.vl-back:hover, .vl-back:focus-visible { border-color: var(--accent); outline: none; }
.vl-back span { font-size: 15px; line-height: 1; }
@keyframes vl-flash { 0%, 40% { background: rgba(143, 111, 214, .22); } 100% { background: transparent; } }
.vl-flash, .vl-flash > td { animation: vl-flash 1.8s ease-out; }
@media (max-width: 780px) { .vl-back { padding: 4px 10px 4px 8px; font-size: 12.5px; } }
.topbar .vl-back + h1 { margin-right: auto; margin-left: -4px; }

/* ---------- Banquet Calendar: the day's events above the calendar (banquet.js) ---------- */
.bq-day-head { align-items: center; }
.bq-day-nav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bq-day-nav h2 { margin: 0; }
.bq-day-today { font-weight: 500; letter-spacing: 0; text-transform: none; }
.bq-day-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bq-day-list { display: flex; flex-direction: column; }
.bq-day-ev { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 10px 4px; cursor: pointer; color: var(--text); font: inherit; }
.bq-day-ev:last-child { border-bottom: 0; }
.bq-day-ev:hover { background: var(--surface-2); }
.bq-day-t { font-weight: 800; font-variant-numeric: tabular-nums; }
.bq-day-t small { display: block; font-weight: 500; color: var(--text-muted); font-size: 12px; }
.bq-day-what b { font: 800 16px var(--font-display); }
.bq-day-what .hint { display: block; font-size: 12.5px; }
.bq-day-empty { margin: 4px 0; color: var(--text-muted); font-style: italic; }
.bq-cal-sel { outline: 3px solid #2A5A9A; outline-offset: -2px; background: rgba(42, 90, 154, .07); }
@media (max-width: 600px) {
  .bq-day-ev { grid-template-columns: 74px minmax(0, 1fr); }
  .bq-day-t { font-size: 13px; white-space: nowrap; }
  .bq-day-ev .bf-chip { grid-column: 2; }
}

/* ---------- the short staff menu (app-menu.js) ---------- */
.app-menu .am-list { display: flex; flex-direction: column; }
.am-rule { border-top: 1px solid var(--border); margin: 6px 10px; flex: none; }
.am-list > .am-grp { flex: none; }
.am-list > .am-grp-bottom { margin-top: auto; padding-top: 10px; }

/* ---------- Staff page: ⋮ row menu (banquet.js) ---------- */
.sm-cell { width: 1%; white-space: nowrap; }
.sm-dots { display: inline-block; }
.sm-dots-btn { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font: 800 18px/1 var(--font-body); cursor: pointer; }
.sm-dots-btn:hover, .sm-dots-btn[aria-expanded="true"] { border-color: var(--accent); background: var(--surface-2); }
.sm-pop { position: fixed; z-index: 150; min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); padding: 5px; display: flex; flex-direction: column; text-align: left; }
.sm-pop[hidden] { display: none; }
.sm-pop .btn { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 8px 10px; margin: 0; font: 500 14px var(--font-body); color: var(--text); box-shadow: none; }
.sm-pop .btn:hover, .sm-pop .btn:focus-visible { background: var(--surface-2); outline: none; }
.sm-pop .btn-danger { color: var(--flag, var(--negative)); }
.sm-sep { border: 0; border-top: 1px solid var(--rule); margin: 4px 2px; }

/* ---------- 🔘 Button check · Upload menus · New buttons (button-check.js) ---------- */
.bc-up-t input { margin: 0; max-width: 220px; display: inline-block; }
.bc-sure { display: flex; flex-direction: column; max-height: 55vh; overflow: auto; border: 1px solid var(--rule); border-radius: 6px; }
.bc-sure-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--rule); text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 500; font-size: 13.5px; cursor: pointer; }
.bc-sure-row input { width: auto; margin: 0; }
.bc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .bc-grid { grid-template-columns: 1fr; } }
.bc-list { display: flex; flex-direction: column; }
.bc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.bc-row:last-child { border-bottom: 0; }
.bc-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.bc-btns input[type="search"] { margin: 0; width: 160px; }
.bc-cat { font: 800 11px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 12px 0 2px; }
.bc-skipped { opacity: .7; }
.bc-link-dialog { max-width: 760px; }
.bc-lrow { border: 1px solid var(--rule); border-radius: 7px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface); }
.bc-lrow.bc-ok { border-color: rgba(44, 110, 63, .45); background: var(--positive-soft); }
.bc-lrow.bc-need { border-color: rgba(154, 106, 12, .5); }
.bc-pill { font: 700 10.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; color: var(--positive); }
.bc-modes { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 2px; }
.bc-modes .cs-check, .bc-lline .cs-check { margin: 0; }
.bc-lline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.bc-lline input[type="text"] { flex: 1 1 240px; margin: 0; min-width: 0; }
.bc-lline .bc-c-oz { width: 110px; margin: 0; }
.bc-cost { margin-top: 8px; font-size: 13.5px; }
.bc-good { color: var(--positive); } .bc-bad { color: var(--flag, var(--negative)); }
.bc-clean { margin: 6px 0 10px; padding-left: 20px; line-height: 1.7; }

/* ---------- 📋 Settings → Menus (menus.js) ---------- */
.mn-tabs { margin-bottom: 14px; }
.mn-t td { vertical-align: middle; }
.mn-open-row { cursor: pointer; }
.mn-open-row:hover td { background: var(--surface-2); }
.mn-bar { display: inline-block; width: 110px; height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; vertical-align: middle; }
.mn-bar i { display: block; height: 100%; background: var(--positive); }
.mn-head-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mn-pill { display: inline-block; font: 700 10px var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; color: var(--text-muted); white-space: nowrap; vertical-align: 1px; margin-left: 4px; }
.mn-pill.mn-ok, .mn-pill.mn-sure { color: var(--positive); }
.mn-pill.mn-guess { color: var(--warning); }
.mn-pill.mn-cock { color: #2A5A9A; margin-left: 0; }
.mn-pill.mn-dup { color: var(--flag, var(--negative)); }
.mn-btns .mn-pick { margin: 0; width: min(320px, 100%); display: inline-block; }
.mn-acts { white-space: nowrap; }
.mn-acts .btn { margin-left: 4px; }
.mn-btns tr.mn-need td { background: rgba(154, 106, 12, .05); }
.card-header h2 .vl-back { margin-right: 8px; vertical-align: 1px; }
.cmn-math { background: var(--surface-2); border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; margin-top: 10px; font-size: 13.5px; line-height: 1.7; }

/* 🍸 Menus → + Add button */
.mn-add .field { margin-bottom: 10px; }
.mn-a-namerow { display: flex; gap: 6px; }
.mn-a-namerow input { flex: 1; min-width: 0; margin: 0; }
.mn-a-warn { margin: 4px 0 0; color: var(--warning); }
.mn-a-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .mn-a-two { grid-template-columns: 1fr; } }
.mn-seg { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mn-seg button { flex: 1; border: 0; background: transparent; color: inherit; padding: 8px 4px; font: inherit; font-size: 13px; cursor: pointer; }
.mn-seg button + button { border-left: 1px solid var(--border); }
.mn-seg button.on { background: var(--accent); color: #fff; }
.mn-a-sell { font-size: 18px; }
.mn-a-done { margin-top: 0; }
.mn-app-line { margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mn-app-tag { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
tr.mn-app td:first-child { box-shadow: inset 3px 0 0 var(--warning); }
.mn-maybe-row, .bc-same { margin: 8px 0; padding: 8px 10px; border: 1px dashed var(--warning); border-radius: 8px; }
.mn-maybe-btns, .bc-same-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cmn-price { margin-top: 8px; }
.cs-new-tag { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); }
/* 🍸 Items with no button → Counted last month */
.mn-nb-seg { display: inline-flex; margin: 4px 0 2px; }
.mn-nb-seg button { flex: none; padding: 7px 12px; }
.mn-nb-sum { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; margin: 4px 0 8px; font-size: 13.5px; }
.mn-nb-sum b { font-size: 18px; }
.mn-nb-cnt { font-size: 12px; font-weight: 600; color: var(--positive); white-space: nowrap; margin-left: auto; padding-right: 8px; }
.mn-nb-cnt.mn-nb-zero { color: var(--text-muted); font-weight: 400; }
.bc-row > div:first-child { min-width: 0; flex: 1 1 auto; }
@media (max-width: 640px) {
  .bc-row:has(.mn-nb-create) { flex-wrap: wrap; }
  .bc-row:has(.mn-nb-create) > div:first-child { flex: 1 1 55%; }
  .bc-row:has(.mn-nb-create) .bc-btns { flex: 1 1 100%; justify-content: flex-start; }
  .mn-nb-sum { gap: 4px 14px; }
}
/* 🍽 Food menus */
.mn-pill.mn-food { color: var(--warning); margin-left: 0; }
.mn-pill.mn-bev { color: #2A5A9A; margin-left: 0; }
.mn-type-filter { display: inline-flex; }
.mn-type-filter button { flex: none; padding: 5px 10px; font-size: 12.5px; }
#mn-type { max-width: 320px; }
.inv-kitchen-row td { background: color-mix(in srgb, var(--warning) 6%, transparent); }
/* 🍽 Kitchen inventory workbook import (food-workbook.js) */
.fwb-stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 4px 0 14px; }
.fwb-stats div { font-size: 12.5px; color: var(--text-muted); }
.fwb-stats b { display: block; font-size: 22px; color: var(--text); }
.fwb-h { font-size: 14px; margin: 18px 0 6px; }
.fwb-table { width: 100%; font-size: 13.5px; }
.fwb-table input[type="text"] { margin: 0; padding: 5px 8px; max-width: 240px; }
.fwb-pill { display: inline-block; font: 700 10px var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; }
.fwb-pill.fwb-ok { color: var(--positive); }
.fwb-pill.fwb-paper { color: #2A5A9A; }
.fwb-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.fwb-issue-list { max-height: 320px; overflow: auto; }
.fwb-go { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
/* 🖨 Blank bar sheet (bar-packages.js) */
.bp-blank .bp-print-lines { gap: 22px; margin: 4px 0 10px; }
.bp-blank .bp-blank-type span { font-weight: 700; }
.bp-blank .bp-print-table td { height: 28px; }
@media print { .bp-blank .bp-print-table td { height: 0.26in; } .bp-blank .cmp-print-head { margin-bottom: 6px; } .bp-blank > :last-child { margin-bottom: 0 !important; } .bp-blank .bp-print-table td.num { border-left: 1px solid #999 !important; } }
.bp-blank-opts { margin: 4px 0 12px; }
.bp-blank-opts label { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--text); cursor: pointer; }

/* ---------- 📏 Number boxes line up (core.js vlUnit) ---------- */
/* Every number box in a table column is the same width, with a fixed spot after it for the
   unit (cs, btl, lb…). No unit = the spot stays empty, so the boxes don't zig-zag. */
.vl-unit { display: inline-block; width: 2.6em; margin-left: 6px; text-align: left; vertical-align: middle; color: var(--text-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl-unit.vl-unit-wide { width: 5.4em; }
.vl-unit select { width: 100%; margin-left: 0; padding: 4px 2px; font-size: 12.5px; }
/* older screens: a box followed by a unit hint gets the same spot; a box with nothing after it
   in that table leaves the spot empty */
td > input.cell-input + .hint { display: inline-block; min-width: 2.6em; text-align: left; }
table:has(td > input.cell-input + .hint) td > input.cell-input:last-child { margin-right: calc(2.6em + 0.3em); }
/* 🔎 the "All types" dropdown on add-an-item searches */
.vl-type-filter { max-width: 220px; padding: 8px 10px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 14px; }
.tr-search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-search-row input { flex: 1; min-width: 180px; }
.rs-acts .rs-unit { width: 10em; }
.rs-acts .rs-unit-empty { display: inline-block; border-color: transparent; background: transparent; }
@media (max-width: 560px) { .rs-acts .rs-unit { width: 8.5em; } }
td:has(> .vl-unit), td:has(> input.cell-input + .hint) { white-space: nowrap; }
/* ⏸ Season close / reopen (season-close.js) */
.sc-pill { display: inline-block; font: 700 10.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.sc-pill.sc-open { color: var(--positive); }
.sc-pill.sc-closed { color: var(--warning); }
.sc-head { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.sc-head .field { margin: 0; min-width: 150px; }
.sc-fixed { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); min-height: 38px; }
.sc-table { width: 100%; }
.sc-diff { font-size: 11.5px; color: var(--warning); }
.sc-total td { font-weight: 700; border-top: 2px solid var(--border); }
.sc-add { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.sc-add input[type="search"] { flex: 1; min-width: 220px; margin: 0; }
.sc-results { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; }
.sc-hit { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: var(--radius-sm); padding: 6px 10px; font: inherit; font-size: 13.5px; cursor: pointer; }
.sc-batch-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-facts td { padding: 4px 10px 4px 0; border: 0; }
.sc-facts td:first-child { color: var(--text-muted); width: 130px; }
.sc-by-type { margin-top: 12px; max-width: 520px; }
.sc-items-h { margin: 22px 0 6px; font-size: 15px; }
.sc-sub td { font-style: italic; color: var(--text-muted); }
.sc-sign { margin-top: 24px; }
.tr-batch td { background: color-mix(in srgb, var(--warning) 5%, transparent); }
.inv-closed-row td { opacity: .85; }
@media print {
  .sc-print .sc-items { break-before: page; page-break-before: always; }
  .sc-print .sc-items-h { margin-top: 0; }
  .sc-sheet-table td { height: 0.28in; }
  .sc-sheet-table td.num { border-left: 1px solid #999 !important; width: 22%; }
}

/* ---------- 🚚 Purchasing → Vendors (vendor-hub.js) ---------- */
.vh-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vh-month { display: inline-flex; gap: 6px; align-items: center; }
.vh-month b { min-width: 120px; text-align: center; }
.vh-table tbody tr.vh-row { cursor: pointer; }
.vh-table tbody tr.vh-row:hover td { background: var(--surface-2); }
.vh-total td { font-weight: 700; border-top: 2px solid var(--border); }
.vh-up { color: var(--negative); white-space: nowrap; }
.vh-down { color: var(--positive); white-space: nowrap; }
.vh-fill { display: inline-block; width: 90px; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; vertical-align: middle; border: 1px solid var(--border); }
.vh-fill i { display: block; height: 100%; background: var(--accent); }
.vh-vendor-sel { font-weight: 700; max-width: 260px; }
.vh-acct { margin: -4px 0 12px; font-size: 13px; }
.vh-missing { color: var(--warning); }
.vh-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 760px) { .vh-kpis { grid-template-columns: 1fr 1fr; } }
.vh-kpi { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); }
.vh-kpi span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.vh-kpi b { display: block; font-size: 22px; font-family: var(--font-display); }
.vh-kpi small { display: block; font-size: 12px; color: var(--text-muted); }
.vh-split { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; align-items: flex-start; }
.vh-chart-box { flex: 1 1 280px; }
.vh-top-box { flex: 1.2 1 320px; }
.vh-bars { display: flex; align-items: flex-end; gap: 5px; height: 110px; padding-top: 6px; }
.vh-bars i { flex: 1; background: var(--accent); opacity: .45; border-radius: 3px 3px 0 0; }
.vh-bars i.cur { opacity: 1; }
.vh-blab { display: flex; gap: 5px; font-size: 10px; color: var(--text-muted); }
.vh-blab span { flex: 1; text-align: center; }
.vh-top-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.vh-seg { display: inline-flex; }
.vh-seg button { flex: none; padding: 4px 10px; font-size: 12.5px; }
.vh-top td { padding: 5px 4px; font-size: 13.5px; }
.vh-h { font-size: 15px; margin: 20px 0 6px; }
.vh-pill { display: inline-block; font: 700 10px var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.vh-ok { color: var(--positive); }
.vh-wn { color: var(--warning); }
.vh-cmp.active { background: var(--accent-soft); }
.vh-cmp-row > td { background: var(--surface-2); }
.vh-cmp-table { width: 100%; font-size: 13.5px; }
.vh-short td { background: color-mix(in srgb, var(--warning) 9%, transparent); }
.vh-wn-t { color: var(--warning); }
.vh-bad-t { color: var(--negative); }
.vh-ok-t { color: var(--positive); }
@media print { .vh-print .vh-print-cmp { break-before: page; page-break-before: always; } }
/* ✉ Email order (order-email.js) */
.oem .field { margin-bottom: 10px; }
.oem textarea { width: 100%; font: inherit; }
.oem-save { margin-top: 6px; font-size: 13px; }
.oem-att { margin: 4px 0 8px; }

/* ---------- 📗 Valley Ledger tutorials (tutorials.js) ---------- */
.vlt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.vlt-chaps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .vlt-chaps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .vlt-chaps { grid-template-columns: 1fr; } }
.vlt-chap { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface); }
.vlt-chap h4 { margin: 0 0 6px; font-size: 15px; }
.vlt-chap.vlt-soon { opacity: .7; border-style: dashed; }
.vlt-chap.vlt-soon .hint { margin: 0; }
.vlt-list { display: flex; flex-direction: column; }
.vlt-link { text-align: left; background: none; border: 0; padding: 4px 0; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; border-bottom: 1px dotted var(--border); }
.vlt-link:last-child { border-bottom: 0; }
.vlt-link:hover, .vlt-link:focus-visible { color: var(--accent); outline: none; }
.vlt-reader { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.vlt-toc { position: sticky; top: 0; z-index: 1; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.vlt-toc > summary { list-style: none; cursor: default; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: baseline; }
.vlt-toc > summary::-webkit-details-marker { display: none; }
.vlt-toc-n { display: none; font-weight: 600; text-transform: none; letter-spacing: 0; margin-left: auto; }
.vlt-toc-list { display: flex; flex-direction: column; gap: 1px; }
.vlt-toc-a { text-align: left; background: none; border: 0; border-radius: 6px; padding: 5px 8px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.vlt-toc-a:hover { background: var(--surface-2, rgba(0,0,0,.04)); }
.vlt-toc-a.on { color: var(--accent); font-weight: 700; }
.vlt-toc-all { margin-top: 8px; border-top: 1px solid var(--border); border-radius: 0; padding-top: 10px; color: var(--text-muted); }
/* phone / narrow: one column; the chapter list is a closed box above the tutorial (not sticky) */
@media (max-width: 820px) {
  .vlt-reader { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vlt-toc { position: static; padding: 10px 12px; margin-right: 28px; }
  .vlt-toc > summary { cursor: pointer; margin: 0; }
  .vlt-toc > summary::after { content: "▾"; margin-left: 6px; }
  .vlt-toc[open] > summary { margin-bottom: 6px; }
  .vlt-toc[open] > summary::after { content: "▴"; }
  .vlt-toc-n { display: inline; }
  .vlt-shot img { max-height: none; }
}
.vlt-art { margin: 0; max-width: 820px; }
.vlt-who { color: var(--text-muted); font-size: 13px; margin: -4px 0 10px; }
.vlt-shot { margin: 8px 0 4px; }
.vlt-shot img { display: block; max-width: 100%; max-height: 420px; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ht-tips ul { margin: 6px 0 0; padding-left: 20px; }
.ht-tips li { margin: 3px 0; }
.ht-actions .btn { white-space: normal; }
/* "?" next to the page title: hover says what it does, click opens the tutorial */
.vlt-q { position: relative; flex: none; width: 26px; height: 26px; margin-left: -8px; border-radius: 50%; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); font-weight: 800; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.vlt-q:hover, .vlt-q:focus-visible { background: var(--accent); color: var(--on-accent, #fff); outline: none; }
.vlt-q::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 7px); transform: translateX(-50%); white-space: nowrap; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 50; }
.vlt-q:hover::after, .vlt-q:focus-visible::after { opacity: 1; }
@media print { .vlt-q { display: none !important; } }
/* 🖨 Print the manual */
.vlt-pick { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.vlt-pick-list { margin: 2px 0 8px 22px; }
@media print {
  #vl-print-doc.vlt-manual { font-size: 10.5pt; line-height: 1.45; }
  #vl-print-doc.vlt-manual .vlt-m-cover { text-align: center; padding-top: 2.4in; break-after: page; }
  #vl-print-doc.vlt-manual .vlt-m-cover h1 { font-size: 34pt; margin: 14px 0 4px; font-family: Georgia, serif; }
  #vl-print-doc.vlt-manual .vlt-m-cover h2 { font-size: 16pt; font-weight: 400; margin: 0 0 24px; }
  #vl-print-doc.vlt-manual .vlt-m-sub { color: #555; }
  #vl-print-doc.vlt-manual .vlt-m-toc { break-after: page; }
  #vl-print-doc.vlt-manual .vlt-m-toc h2 { font-family: Georgia, serif; font-size: 20pt; }
  #vl-print-doc.vlt-manual .vlt-m-toc-ch { margin: 0 0 10px; break-inside: avoid; }
  #vl-print-doc.vlt-manual .vlt-m-toc-ch ol { margin: 4px 0 0; columns: 2; }
  #vl-print-doc.vlt-manual .vlt-m-ch { break-before: page; }
  #vl-print-doc.vlt-manual .vlt-m-ch-h { font-family: Georgia, serif; font-size: 22pt; margin: 0 0 4px; border-bottom: 2px solid #000; padding-bottom: 4px; }
  #vl-print-doc.vlt-manual .vlt-m-blurb { color: #555; margin: 0 0 14px; }
  #vl-print-doc.vlt-manual .vlt-m-tut { margin: 0 0 18px; padding-top: 6px; border-top: 1px solid #ccc; }
  #vl-print-doc.vlt-manual .ht-title { font-size: 15pt; margin: 6px 0 2px; break-after: avoid; }
  #vl-print-doc.vlt-manual .vlt-who { color: #555; font-size: 9pt; margin: 0 0 6px; }
  #vl-print-doc.vlt-manual .ht-intro p { margin: 0 0 6px; }
  #vl-print-doc.vlt-manual .ht-steps { list-style: decimal; padding-left: 22px; margin: 0; }
  #vl-print-doc.vlt-manual .ht-steps > li { padding: 0 0 6px 2px; }
  #vl-print-doc.vlt-manual .ht-steps > li::before { content: none; }
  #vl-print-doc.vlt-manual .ht-step-text p { margin: 0; }
  #vl-print-doc.vlt-manual .vlt-shot { break-inside: avoid; margin: 5px 0 2px; }
  #vl-print-doc.vlt-manual .vlt-shot img { max-width: 5.2in; max-height: 3.4in; border: 1px solid #bbb; box-shadow: none; }
  #vl-print-doc.vlt-manual .ht-tips { border: 1px solid #c9a227; background: #fbf6e6; padding: 6px 10px; break-inside: avoid; }
}
.vlt-art .ht-title { font-size: 26px; margin: 2px 0 4px; }

/* ---------- 📷 Scan modes (scan-mode.js) ---------- */
.sm-strip { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin: 0 0 12px; border-radius: 10px; color: #fff; font-size: 14px; }
.sm-strip > span { flex: 1; min-width: 0; }
.sm-strip.sm-order { background: var(--accent); }
.sm-strip.sm-inv { background: #245a8a; }
.sm-s-btn { flex: none; border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 7px; padding: 5px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.sm-s-btn:hover { background: rgba(255,255,255,.3); }
.sm-head { display: flex; gap: 10px; align-items: center; padding-right: 30px; }
.sm-photo { width: 56px; height: 56px; flex: none; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--surface-2, rgba(0,0,0,.05)); }
.sm-photo img { width: 100%; height: 100%; object-fit: cover; }
.sm-head-t { display: flex; flex-direction: column; min-width: 0; }
.sm-head-t b { font-size: 16px; }
.sm-info-btn { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); font: italic 800 16px Georgia, serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; margin-left: auto; }
.sm-info-btn:hover, .sm-info-btn:focus-visible { background: var(--accent); color: var(--on-accent, #fff); outline: none; }
.it-card .sm-info-btn, .its-panel > .sm-info-btn { float: right; margin: 0 0 6px 8px; }
.sm-choose .btn-block { margin-top: 8px; }
.sm-big { padding: 12px; font-size: 15px; }
.sm-why { text-align: center; margin: 10px 0 0; }
.sm-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 14px; margin: 12px 0 6px; }
.sm-kv > span:nth-child(odd) { color: var(--text-muted); }
.sm-hist { font-size: 14px; }
.sm-done-btns .btn-block { margin-top: 8px; }

/* ---------- 🖨 Print by area (area-print.js) ---------- */
.ap-pick, .ap-what { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 12px; margin: 0 0 12px; }
.ap-what > b { display: block; font-size: 13px; padding: 6px 0 2px; }
.ap-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.ap-pick .ap-row:first-child { border-top: 0; }
.ap-r { margin-left: auto; color: var(--text-muted); font-size: 13px; }
.ap-row.ap-empty { opacity: .5; cursor: default; }
@media print {
  #vl-print-doc.ap-doc h1 { font-family: Georgia, serif; font-size: 16pt; margin: 0; }
  #vl-print-doc.ap-doc .ap-sub { color: #555; margin: 2px 0 10px; font-size: 9.5pt; }
  #vl-print-doc.ap-doc .ap-break { break-after: page; }
  #vl-print-doc.ap-doc .ap-area-cats { break-inside: avoid; margin: 0 0 22px; }
  #vl-print-doc.ap-doc .num { text-align: right; }
  #vl-print-doc.ap-doc .pd-table th.num { text-align: right; }
  #vl-print-doc.ap-doc tr.ap-cat td { font-weight: 700; border-bottom: 1px solid #999; padding-top: 8px; background: #faf7f0; }
  #vl-print-doc.ap-doc tr.ap-subt td { font-style: italic; color: #333; }
  #vl-print-doc.ap-doc tr.ap-tot td { font-weight: 800; border-top: 2px solid #000; }
  #vl-print-doc.ap-doc .ap-foot { margin-top: 8px; color: #555; font-size: 9pt; }
}

/* ---------- ✅ Month-end close (month-close.js) ---------- */
.mc-grp { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 14px 0 0; }
.mc-list { margin-top: 2px; }
.mc-chk-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mc-area { display: inline-flex; gap: 8px; align-items: baseline; font-size: 13px; margin-top: 3px; }
.mc-area-skip { color: var(--text-muted); }
.px-box.mc-ov { background: var(--warning, #c9a227); border-color: var(--warning, #c9a227); }
.mc-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; margin-bottom: 8px; }
@media (max-width: 640px) { .mc-sections { grid-template-columns: 1fr; } }
.mc-sections label { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 3px 0; cursor: pointer; }
.mc-cr-table td { vertical-align: middle; }
.mc-cr-new input { width: 100%; min-width: 0; margin: 0; }
.mc-nocr { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 14px; cursor: pointer; }
.mc-lock { border-color: var(--accent); }
.mc-hist { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
@media print {
  #vl-print-doc.mcp-doc .mcp-h3 { font-size: 11.5pt; margin: 12px 0 4px; }
  #vl-print-doc.mcp-doc .mcp-waste { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; align-items: start; break-inside: avoid-page; }
  #vl-print-doc.mcp-doc .mcp-notes { margin: 8px 0; font-size: 9.5pt; }
  #vl-print-doc.mcp-doc .mcp-notes ul { margin: 4px 0 0; padding-left: 18px; }
  #vl-print-doc.mcp-doc .mcp-mr { margin-top: 14px; zoom: .8; }
  #vl-print-doc.mcp-doc .mcp-checks td:first-child { white-space: nowrap; }
  #vl-print-doc.mcp-doc .ecr .no-print, #vl-print-doc.mcp-doc .ecr-foot { display: none; }
}
/* Came in while counting: tick list + one Save (inventory-count.js) */
label.invs-early-row { cursor: pointer; }
.invs-early-row input[type="checkbox"] { margin-right: 6px; vertical-align: -2px; }
.invs-early-all { border-top: 0; padding-bottom: 2px; }
.invs-early-where { font-size: 12.5px; }
.invs-early-go { display: flex; justify-content: flex-end; padding-top: 8px; border-top: 1px dotted var(--border); }

/* ---------- 🖨 Item Sales print (item-sales.js) ---------- */
@media print {
  #vl-print-doc.isp-doc h3 { font-size: 11pt; margin: 10px 0 4px; }
  #vl-print-doc.isp-doc .isp-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
  #vl-print-doc.isp-doc .isp-tot > div { border: 1px solid #bbb; border-radius: 6px; padding: 5px 8px; display: flex; flex-direction: column; }
  #vl-print-doc.isp-doc .isp-tot span { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .04em; color: #555; }
  #vl-print-doc.isp-doc .isp-tot b { font-size: 13pt; }
  #vl-print-doc.isp-doc .isp-tot small { font-size: 8.5pt; color: #444; }
  #vl-print-doc.isp-doc .isp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  #vl-print-doc.isp-doc .isp-two .pd-table { font-size: 8.5pt; }
  #vl-print-doc.isp-doc tr.isp-on td { font-weight: 700; }
  #vl-print-doc.isp-doc .isp-items td:nth-child(2) { color: #444; }
}

/* ---------- 🧩 Item modifiers (item-modifiers.js) ---------- */
.im-toggle { border: none; background: transparent; color: inherit; font: inherit; font-weight: inherit; padding: 0; cursor: pointer; text-align: left; }
.im-toggle:hover { color: var(--accent); }
.im-tag { display: inline-block; font-size: 11px; font-weight: 600; border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; margin-left: 4px; color: var(--text-muted, #6b7280); white-space: nowrap; }
tr.im-open > td { background: var(--accent-soft); }
tr.im-item-mod > td { background: var(--accent-soft); font-size: 12.5px; border-bottom: 1px dashed var(--border); }
tr.im-item-mod > td:first-child { padding-left: 28px; }
tr.im-item-mod-tot > td { border-bottom: 1px solid var(--border); }
.im-card tr.im-sub td { font-size: 12.5px; background: var(--accent-soft); }
.im-preview { margin-top: 6px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 6px; color: var(--text); }
@media print {
  #vl-print-doc.isp-doc tr.isp-mod td { font-size: 8pt; color: #444; padding-top: 0; padding-left: 16px; border-bottom: 1px dotted #ccc; }
  #vl-print-doc.isp-doc .isp-mods { font-size: 8.5pt; margin: 8px 0 0; }
}

/* ---------- 🔀 Row Sort (games-rowsort.js) ---------- */
.rs-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.rs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 560px; }
.rs-tile { min-height: 54px; padding: 6px 4px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text); font: 700 clamp(10.5px, 2.7vw, 13px) var(--font-body); letter-spacing: .02em; cursor: pointer; overflow-wrap: anywhere; transition: transform .1s, background .1s; user-select: none; -webkit-tap-highlight-color: transparent; }
.rs-tile:hover { border-color: var(--accent); }
.rs-tile:active { transform: scale(.96); }
.rs-tile.rs-pick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rs-tile.rs-hinted { outline: 2px dashed var(--warning); outline-offset: -3px; }
.rs-row-done { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 10px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); text-align: center; }
.rs-row-done b { color: var(--accent); letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.rs-row-done span { font-size: 12.5px; color: var(--text-muted); }
.rs-row-done.rs-new { animation: rs-pop .35s ease-out; }
@keyframes rs-pop { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
.rs-shake { animation: wl-shake 0.35s; }
.rs-bad { color: var(--negative); font-weight: 600; }
.ws-theme { margin: 0 0 8px; font-size: 13px; color: var(--text-muted); }
.ws-theme b { color: var(--text); }

/* ---------- recipe ingredients by department (costing.js rcp…) ---------- */
.rcp-tick { display: inline-flex; gap: 6px; align-items: center; margin: 10px 0 2px; font-size: 13px; cursor: pointer; }
.rcp-other { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--warning); color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); white-space: nowrap; }

/* ---------- 🍽 food workbook: counts (food-workbook.js) ---------- */
.fwb-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
@media (max-width: 640px) { .fwb-mode { grid-template-columns: 1fr; } }
.fwb-mode-opt { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.fwb-mode-opt:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.fwb-mode-opt:disabled { opacity: .55; cursor: default; }
.fwb-cfg { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; margin: 4px 0 10px; }
.fwb-cfg .field { margin: 0; }
.fwb-warn { border-left: 3px solid var(--warning); background: var(--surface-2); padding: 8px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.fwb-warn-t { color: var(--warning); font-weight: 700; font-family: var(--font-mono); }
.fwb-table tr.fwb-tot td { font-weight: 700; border-top: 2px solid var(--text); }
.fwb-missing { margin: 10px 0; }
.fwb-missing summary { cursor: pointer; }
.fwb-pick { max-width: 280px; }

/* ---------- 🔍 Wine check-up (wine-checkup.js) ---------- */
.wcu { max-width: 640px; margin: 0 auto; }
.wcu-areas { display: flex; flex-direction: column; }
.wcu-area { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.wcu-order { font-family: var(--font-mono); font-size: 12.5px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 6px 9px; }
.wcu-h { margin: 18px 0 6px; font-size: 14px; }
.wcu-past { margin: 0; padding-left: 18px; }
.wcu-past li { margin: 3px 0; }
.wcu-card { max-width: 440px; margin: 0 auto; }
.wcu-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wcu-spot { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.wcu-prog { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 6px 0 12px; }
.wcu-prog i { display: block; height: 100%; background: var(--accent); }
.wcu-wine { display: flex; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 8px 0; background: var(--surface); }
.wcu-pic { width: 56px; height: 100px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.wcu-bottle { width: 40px; height: 96px; border-radius: 8px 8px 4px 4px; background: linear-gradient(#7a2234, #3b0f19); flex: 0 0 auto; }
.wcu-name { font-size: 16px; }
.wcu-exp { margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.wcu-exp b { display: block; font-size: 32px; line-height: 1.1; color: var(--text); font-family: var(--font-mono); }
.wcu-big { display: block; width: 100%; padding: 13px; font-size: 16px; font-weight: 700; margin-top: 8px; }
.wcu-step { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 8px; }
.wcu-step .btn { font-size: 20px; min-width: 52px; }
.wcu-step input { width: 84px; text-align: center; font-size: 22px; margin: 0; }
.wcu-nav { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.wcu-done { font-size: 12.5px; color: var(--text-muted); border-top: 1px solid var(--rule); padding-top: 6px; margin-top: 6px; }
.wcu-sum { font-size: 14px; }
.wcu-ok { color: var(--positive); }
.wcu-bad { color: var(--negative); }
.wcu-hist { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.wcu-report-wrap { overflow-x: auto; }
.wcu-report-wrap h1 { font-family: var(--font-display); font-size: 22px; margin: 0; }
@media print {
  #vl-print-doc.wcu-doc .wcu-hist { font-size: 8pt; color: #444; }
  #vl-print-doc.wcu-doc .wcu-bad { color: #000; font-weight: 700; }
  #vl-print-doc.wcu-doc .wcu-sum { font-size: 10pt; }
}
.wcu-card .wcu-top:first-child { padding-right: 34px; }

/* ---------- 👁 Board (view only) (view-only.js) ---------- */
html.vl-board #tb-msg-phone { display: none !important; }

/* ---------- 📰 Weekly Recap (weekly-recap.js) ---------- */
.wr { max-width: 860px; }
.wr-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; }
.wr-tools label { display: inline-flex; gap: 6px; align-items: center; }
.wr-tools input[type="date"] { width: auto; }
.wr-paper { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; line-height: 1.45; }
.wr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.wr-head h1 { margin: 0; font-size: 22px; }
.wr-sub { color: var(--text-muted); font-size: 12.5px; }
.wr-sum { background: var(--surface-2); border-radius: 8px; padding: 10px 14px; margin: 16px 0 4px; font-size: 14.5px; }
.wr-paper h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 20px 0 8px; }
.wr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wr-kpis-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); margin-top: 10px; }
.wr-kpis-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 640px) { .wr-kpis, .wr-kpis-3 { grid-template-columns: 1fr 1fr; } .wr-kpis-2 { grid-template-columns: 1fr; } }
.wr-kpi { border: 1px solid var(--border); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wr-kpi > span { font-size: 12px; font-weight: 600; }
.wr-kpi > b { font-size: 20px; font-variant-numeric: tabular-nums; }
.wr-kpi small { font-size: 11.5px; color: var(--text-muted); }
.wr-kpi .wr-what { font-style: italic; }
.wr-kpi .wr-mean { font-size: 12.5px; color: var(--text); font-style: normal; }
.wr-up { color: var(--positive); font-weight: 700; }
.wr-dn { color: var(--negative); font-weight: 700; }
.wr-flat { color: var(--text-muted); }
.wr-chart { display: flex; gap: 6px; align-items: flex-end; height: 110px; border-bottom: 1px solid var(--border); padding: 4px 2px 0; }
.wr-col { flex: 1; height: 100%; min-width: 0; }
.wr-bars { display: flex; gap: 2px; align-items: flex-end; justify-content: center; height: 100%; }
.wr-bars i { display: block; width: 42%; max-width: 22px; border-radius: 3px 3px 0 0; }
.wr-bar { background: var(--accent); }
.wr-bar-ly { background: var(--border); }
.wr-xlab { display: flex; gap: 6px; padding: 2px 2px 0; }
.wr-xlab div { flex: 1; min-width: 0; text-align: center; font-size: 10.5px; color: var(--text-muted); overflow: hidden; white-space: nowrap; }
.wr-legend { display: flex; gap: 14px; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.wr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
.wr-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.wr-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); padding: 5px 6px; }
.wr-table td { padding: 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.wr-table td small { display: block; color: var(--text-muted); font-size: 11.5px; }
.wr-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wr-table th.num { text-align: right; }
.wr-tot td { font-weight: 700; border-bottom: 0; }
.wr-note { font-size: 11.5px; color: var(--text-muted); margin: 6px 0 0; }
.wr-foot { margin-top: 18px; font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 8px; }
@media print {
  #vl-print-doc.wr-print { font-size: 10pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #vl-print-doc .wr-paper { border: 0; padding: 0; background: #fff; color: #000; }
  #vl-print-doc .wr-head { border-bottom-color: #2C5A3A; }
  #vl-print-doc .wr-sum { background: #EEF3EF; }
  #vl-print-doc .wr-kpi, #vl-print-doc .wr-table td, #vl-print-doc .wr-table th, #vl-print-doc .wr-chart, #vl-print-doc .wr-foot { border-color: #ccc; }
  #vl-print-doc .wr-kpi { break-inside: avoid; }
  #vl-print-doc .wr-sub, #vl-print-doc .wr-kpi small, #vl-print-doc .wr-table td small, #vl-print-doc .wr-table th, #vl-print-doc .wr-paper h3, #vl-print-doc .wr-foot, #vl-print-doc .wr-xlab div, #vl-print-doc .wr-legend { color: #555; }
  #vl-print-doc .wr-kpi .wr-mean { color: #000; }
  #vl-print-doc .wr-bar { background: #2C5A3A; }
  #vl-print-doc .wr-bar-ly { background: #C9BFA6; }
  #vl-print-doc .wr-up { color: #1d6b3a; }
  #vl-print-doc .wr-dn { color: #a3301f; }
  #vl-print-doc .wr-paper h3 { margin: 12px 0 6px; }
  #vl-print-doc .wr-kpi > b { font-size: 14pt; }
  #vl-print-doc.wr-print { font-size: 9pt; }
  #vl-print-doc .wr-head h1 { font-size: 17pt; }
  #vl-print-doc .wr-sum { margin: 10px 0 2px; padding: 7px 10px; font-size: 10pt; }
  #vl-print-doc .wr-paper h3 { margin: 10px 0 5px; }
  #vl-print-doc .wr-kpis { gap: 6px; }
  #vl-print-doc .wr-kpis-2 { margin-top: 6px; }
  #vl-print-doc .wr-kpi { padding: 6px 8px; gap: 1px; }
  #vl-print-doc .wr-chart { height: 64px; }
  #vl-print-doc .wr-table { margin-top: 6px; font-size: 9pt; }
  #vl-print-doc .wr-table td { padding: 3px 6px; }
  #vl-print-doc .wr-table th { padding: 3px 6px; }
  #vl-print-doc .wr-table td small { display: inline; margin-left: 6px; }
  #vl-print-doc .wr-table, #vl-print-doc .wr-kpis { break-inside: avoid; }
  #vl-print-doc .wr-foot { margin-top: 10px; }
}

/* ---- Payroll Check: ✓ ticks + shift tags (payroll-check.js) ---- */
.pc-cell { position: relative; }
.pc-tick { position: absolute; top: 5px; right: 5px; z-index: 1; width: 18px; height: 18px; padding: 0; border-radius: 4px; border: 1.5px solid var(--text-muted); background: var(--surface); color: #fff; font: 700 12px/15px system-ui, sans-serif; cursor: pointer; opacity: .7; }
.pc-tick:hover { opacity: 1; border-color: var(--positive); }
.pc-ticked .pc-tick { background: var(--positive); border-color: var(--positive); opacity: 1; }
.pc-cell.pc-ticked .pc-btn { background: var(--positive-soft, rgba(46,125,79,.16)) !important; border-color: var(--positive); }
.pc-cell.pc-ticked .pc-ic { color: var(--positive) !important; }
.pc-cell.pc-ticked.pc-nodata, .pc-cell.pc-ticked.pc-nodata-sched { opacity: 1; }
.pc-was { display: none; position: absolute; top: 9px; left: 9px; z-index: 1; width: 8px; height: 8px; border-radius: 50%; }
.pc-ticked .pc-was { display: block; }
.pc-was-red { background: var(--negative); } .pc-was-orange { background: #B4561A; } .pc-was-yellow { background: var(--warning); }
.pc-tags { display: flex; gap: 3px; justify-content: center; margin: 1px 0; }
.pc-tag { display: inline-block; font-size: 10.5px; font-weight: 700; line-height: 1.5; border-radius: 4px; padding: 0 5px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.pc-tag-bq { background: rgba(107,63,160,.14); color: #6b3fa0; border-color: rgba(107,63,160,.35); }
.pc-tag-q { color: var(--text-muted); }
.pc-tick-demo { display: inline-block; width: 15px; height: 15px; border-radius: 3px; background: var(--positive); color: #fff; font-size: 10px; line-height: 15px; text-align: center; }
.pc-cell .pc-sw { top: auto; bottom: 1px; right: 4px; } /* the ✓ tick sits in the top corner */

/* ---------- ⋯ row menus (row-menu.js) ---------- */
.vl-dots { display: inline-block; position: relative; vertical-align: middle; }
.vl-dots-btn { border: 1px solid transparent; background: none; color: var(--text); font: 700 18px/1 system-ui, sans-serif; letter-spacing: 1px; border-radius: 8px; padding: 3px 9px 7px; cursor: pointer; min-width: 36px; min-height: 32px; }
.vl-dots-btn:hover, .vl-dots-btn.open { border-color: var(--border); background: var(--surface-2); }
.vl-dots-menu { font-family: var(--font-body, system-ui, sans-serif); letter-spacing: normal; text-transform: none; position: fixed; z-index: 1200; min-width: 200px; max-width: min(300px, calc(100vw - 16px)); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .16); padding: 4px; text-align: left; }
.vl-dots-menu[hidden] { display: none !important; }
.vl-dots-menu > button, .vl-dots-menu > .btn, .vl-dots-menu > a { display: flex !important; align-items: center; gap: 8px; width: 100%; margin: 0 !important; text-align: left; justify-content: flex-start; background: none !important; border: 0 !important; box-shadow: none !important; color: var(--text) !important; font: inherit; font-size: 14px; font-weight: 500; padding: 8px 10px !important; border-radius: 6px; cursor: pointer; white-space: nowrap; text-decoration: none; min-height: 0; }
.vl-dots-menu > button:hover, .vl-dots-menu > button:focus-visible, .vl-dots-menu > a:hover { background: var(--surface-2) !important; outline: none; }
.vl-dots-menu > .btn-danger, .vl-dots-menu > .vl-dots-danger { color: var(--negative) !important; }
.vl-dots-menu > button i.ti { font-size: 16px; color: var(--text-muted); }
.vl-dots-sep { border: 0; border-top: 1px solid var(--border); margin: 4px 2px; }
.vl-dots-menu > .vl-dots-sep:first-child, .vl-dots-menu > .vl-dots-sep:last-child, .vl-dots-menu > .vl-dots-sep + .vl-dots-sep { display: none; }
@media print { .vl-dots { display: none !important; } }
/* Menus: ⋯ + 📈 price changes (menus.js) */
.mn-dots-td { width: 44px; white-space: nowrap; }
.mn-acts { white-space: nowrap; }
.mn-acts .vl-dots { margin-left: 2px; }
.mn-pchg { font-size: 11px; font-weight: 700; cursor: help; }
.mn-pup { color: var(--positive); font-weight: 700; }
.mn-pdn { color: var(--negative); font-weight: 700; }
.mn-ph { min-width: min(440px, 86vw); }

/* ---------- 🚚 Vendor Totals (vendor-totals.js) ---------- */
.vt-head h2 { margin: 0; font-size: 18px; }
.vt-sub { color: var(--text-muted); font-size: 12px; }
.vt-foot { margin-top: 10px; }
.vt-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.vt-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--text-muted); border-bottom: 1.5px solid var(--text); padding: 5px 6px; }
.vt-table th.num, .vt-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vt-table td { padding: 5px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.vt-table tr.vt-tot td { font-weight: 700; border-top: 1.5px solid var(--text); border-bottom: 0; }
.vt-table tr.vt-vh td { background: var(--surface-2); font-weight: 700; border-bottom: 1px solid var(--border); padding-top: 7px; }
.vt-table tr.vt-vt td { font-weight: 700; border-bottom: 1.5px solid var(--text-muted); }
.vt-note { font-size: 11.5px; color: var(--text-muted); }
.vt-short { color: var(--negative) !important; }
.vt-same { color: var(--text-muted); }
.vt-open { color: var(--text-muted); font-size: 11.5px; font-style: italic; }
@media print {
  #vl-print-doc.vt-print { font-size: 9.5pt; color: #000; }
  #vl-print-doc .vt-head h2 { font-size: 15pt; }
  #vl-print-doc .vt-sub, #vl-print-doc .vt-note, #vl-print-doc .vt-open, #vl-print-doc .vt-table th { color: #555; }
  #vl-print-doc .vt-table td { padding: 3px 6px; border-bottom-color: #ddd; }
  #vl-print-doc .vt-table th, #vl-print-doc .vt-table tr.vt-tot td { border-color: #333; }
  #vl-print-doc .vt-table tr.vt-vh td { background: #EEF3EF; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #vl-print-doc .vt-short { color: #a3301f !important; }
  #vl-print-doc tbody.vt-vendor { break-inside: avoid; }
  #vl-print-doc .table-scroll-wrap { overflow: visible !important; }
}

/* ---------- ↩ Going back + 💳 Credits Available (order-flow.js, purchasing-extras.js) ---------- */
.px-gb-tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 8px; background: rgba(214, 160, 40, .14); color: #8a5f08; border: 1px solid rgba(214, 160, 40, .4); white-space: nowrap; }
.of-gb { margin-top: 3px; font-size: 12px; }
.of-table tr:has(.of-gb) td { background: rgba(214, 160, 40, .07); }
.of-extra-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 4px; }
.px-ca-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.px-ca-n { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.px-cbox { min-width: min(480px, 86vw); }
.px-copt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; margin: 6px 0; cursor: pointer; }
.px-copt.on { border-color: var(--accent); background: var(--surface-2); }
.px-copt > b { margin-left: auto; white-space: nowrap; }
.px-copt input { margin-top: 3px; }
.px-cbox .modal-actions { display: flex; gap: 8px; align-items: center; }
.of-xm { min-width: min(440px, 86vw); }
.of-xm-gb { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.of-xm-gb input { margin-top: 3px; }
.vt-cr { color: #8a5f08; }

/* ---------- 💳 Owed banner + Credits page (purchasing-extras.js, credits-page.js) ---------- */
.px-owed { border: 1px solid rgba(214, 160, 40, .45); background: rgba(214, 160, 40, .08); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.px-owed-h { margin-bottom: 6px; }
.px-owed-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid rgba(214, 160, 40, .25); }
.px-owed-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.crp-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.crp-tab { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.crp-tab.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.crp-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.25); font-size: 11px; font-weight: 700; }
.crp-tab:not(.on) .crp-n { background: var(--surface-2); }
.crp-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.crp-tools .field { margin: 0; }
.crp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
@media (max-width: 640px) { .crp-kpis { grid-template-columns: 1fr 1fr; } }
.crp-kpis > div { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.crp-kpis span { font-size: 11.5px; color: var(--text-muted); }
.crp-kpis b { display: block; font-size: 18px; }
.crp-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.crp-t th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); padding: 5px 6px; }
.crp-t td { padding: 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.crp-t .num { text-align: right; white-space: nowrap; }
.crp-t tr.crp-vh td { background: var(--surface-2); font-weight: 700; }
.crp-t tr.crp-tot td { font-weight: 700; border-bottom: 0; }
.crp-acts { white-space: nowrap; }
.crp-old { color: var(--negative) !important; font-weight: 700; }
.crp-tag { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 0 7px; background: var(--surface-2); white-space: nowrap; }
.crp-return { background: rgba(214, 160, 40, .14); color: #8a5f08; }
.crp-broken { background: rgba(184, 89, 63, .12); color: var(--negative); }
.crp-wont-row td { color: var(--text-muted); }
@media print {
  #vl-print-doc.crp-print { font-size: 9.5pt; color: #000; }
  #vl-print-doc.crp-print h1 { font-size: 15pt; margin: 0; }
  #vl-print-doc .crp-sub { color: #555; font-size: 9pt; margin-bottom: 8px; }
  #vl-print-doc .crp-t td, #vl-print-doc .crp-t th { padding: 3px 6px; border-bottom-color: #ddd; }
  #vl-print-doc .crp-kpis > div { border-color: #ccc; }
  #vl-print-doc .table-scroll-wrap { overflow: visible !important; }
}
/* 🧾 New credit invoice (credits-page.js) */
.crp-ci { min-width: 0; }
#modal-dialog:has(.crp-ci) { width: min(680px, calc(100vw - 24px)); max-width: none; }
.crp-ci .form-row { flex-wrap: wrap; }
.crp-ci .form-row .field { flex: 1 1 160px; min-width: 0; }
.crp-ci .px-copt > b { flex: none; }
.crp-ci-h { font-weight: 700; margin: 12px 0 6px; }
.crp-ci-line { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.crp-ci-line select { width: auto; }
.crp-ci-line .ci-item, .crp-ci-line .ci-name { flex: 1 1 200px; min-width: 0; }
.crp-ci-line .ci-qty { width: 80px; }
.crp-ci-amt { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.crp-ci-amt input { width: 100px; }
.crp-ci .modal-actions { display: flex; gap: 8px; align-items: center; }
.crp-h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 18px 0 6px; }
/* Vendor Totals: 💳 credits applied + total spent */
.vt-table tr.vt-crh td { font-weight: 700; font-size: 12px; color: #8a5f08; padding-top: 8px; border-bottom: 1px solid var(--border); }
.vt-table tr.vt-crt td { font-weight: 700; }
.vt-table tr.vt-spent td { font-weight: 700; border-bottom: 1.5px solid var(--text-muted); }
.vt-table tr.vt-spent-all td { border-top: 0; }
@media print { #vl-print-doc .vt-cr, #vl-print-doc .vt-table tr.vt-crh td { color: #8a5f08 !important; } }
