* { box-sizing: border-box; }

:root {
  --bg: #101113;
  --panel: #181a1f;
  --card: #20232a;
  --card-2: #282c34;
  --border: #373c47;
  --text: #f6f7f9;
  --text-muted: #a8afbd;
  --danger: #e74c3c;
  --danger-dark: #b93629;
  --warning: #f1c40f;
  --success: #27ae60;
  --blue: #3498db;
  --purple: #8e44ad;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 18px; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 0%, #2a2020 0, #111 45%, #070707 100%);
}

/* ── STORE BOARD: the register's idle face (owner 2026-10-04) ───────────── */
.overlay:has(.store-board) {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  padding: 18px;
  gap: 18px;
}
@media (max-width: 1100px) {
  .overlay:has(.store-board) { grid-template-columns: minmax(0, 1fr); overflow: auto; }
}
.store-board {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #ECE7DD;
}
.store-board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.store-board-eyebrow { font-size: 12px; letter-spacing: .12em; color: #a69f92; font-weight: 700; }
.store-board h2 { margin: 2px 0 0; font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; letter-spacing: .01em; }
.store-board-gate { display: flex; gap: 10px; flex-wrap: wrap; }
.gate-btn {
  min-height: 56px; padding: 0 22px; border-radius: 10px; border: 1px solid #3a3530;
  background: #1d1a15; color: #ECE7DD; font-weight: 800; font-size: 16px; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
}
.gate-btn:hover, .gate-btn:focus-visible { border-color: #E0654F; outline: none; }
.gate-btn.gate-register { background: #E0654F; color: #15130F; border-color: #E0654F; }
.store-board-status { font-size: 13px; color: #a69f92; }
.store-board-status.bad { color: #E0654F; }
.store-board-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 12px; min-height: 0; flex: 1; align-items: stretch; }
.board-card.board-plan { display: flex; flex-direction: column; min-height: 0; }
.board-card.board-plan .board-plan-rows { flex: 1; max-height: none; }
@media (max-width: 900px) { .store-board-grid { grid-template-columns: minmax(0, 1fr); } }
.board-card { background: rgba(24,26,31,.92); border: 1px solid #2e2a23; border-radius: 12px; padding: 14px 16px; min-width: 0; }
.board-card h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: .08em; color: #a69f92; display: flex; align-items: center; gap: 8px; }
.board-count { margin-left: auto; font-size: 22px; color: #ECE7DD; font-variant-numeric: tabular-nums; }
.board-muted { color: #7f786d; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.board-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.board-chip { background: #24201a; border: 1px solid #3a3530; border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 700; }
.board-chip small { color: #a69f92; font-weight: 500; margin-left: 6px; }
.board-chip.left-open { border-color: #D9A84A; color: #D9A84A; }
.board-plan-rows { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; }
.plan-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 8px 10px; border-radius: 8px; background: #16140f; }
.plan-row .plan-item { font-size: 16px; font-weight: 700; }
.plan-row .plan-nums { font-variant-numeric: tabular-nums; font-size: 15px; color: #a69f92; }
.plan-row .plan-nums b { color: #ECE7DD; font-size: 18px; }
.plan-row .plan-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #2e2a23; overflow: hidden; }
.plan-row .plan-bar i { display: block; height: 100%; background: #7FC28C; }
.plan-row.done .plan-bar i { background: #2F6B3A; }
.board-tickets { display: flex; flex-direction: column; gap: 6px; }
.board-ticket { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: #16140f; }
.board-ticket small { color: #a69f92; font-weight: 500; }
.board-ticket.late { border-left: 3px solid #E0654F; }
.board-printer { margin-top: 10px; font-size: 13px; color: #a69f92; }
.board-printer.bad { color: #E0654F; }

.login-container {
  width: min(420px, calc(100vw - 32px));
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(24,26,31,.96);
  box-shadow: var(--shadow);
}

.logo, .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-container .logo {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin-bottom: 22px;
}

.logo-icon, .brand-icon { color: var(--danger); font-size: 28px; }
.logo h1, .brand h2 { margin: 0; font-family: Outfit, var(--font); letter-spacing: 0; }
.logo span { color: var(--text-muted); font-size: 13px; }

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
}
.dot.filled { background: var(--warning); border-color: var(--warning); }
.pin-error {
  height: 20px;
  margin-bottom: 10px;
  text-align: center;
  color: var(--danger);
  opacity: 0;
}
.pin-error.show { opacity: 1; }
.pin-error.status { color: var(--warning); }

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pin-btn {
  min-height: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-2);
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}
.pin-btn:hover { border-color: var(--warning); }
.action-btn { font-size: 14px; }
.action-btn.clear { background: #3a2422; }
.action-btn.ok { background: var(--success); }
.login-hint { margin-top: 18px; color: var(--text-muted); font-size: 12px; text-align: center; }

.app-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 64px calc(100vh - 64px);
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.pos-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: #15171c;
}

.header-left, .header-right, .pos-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-center { min-width: 0; }
.header-right { min-width: 0; }

/* Member chat with V — the pill lives in the header's top-right; the expanded
   panel (members-widget.css, data-mode="float") hangs under the header as a
   large Google-style assistant panel, with an iMessage green icon + red badge. */
.members-chat-slot { display: inline-flex; align-items: center; position: relative; }
.members-chat-slot:empty { display: none; }
.members-chat-slot .zmc[data-mode="float"] .zmc-panel {
  top: 64px;
  right: 12px;
  width: min(620px, calc(100vw - 24px));
  max-height: min(80vh, 720px);
  z-index: 1150;
  border-radius: 20px;
  border: 2px solid #353a47;
  box-shadow: 0 24px 64px rgba(0,0,0,.65);
}
.members-chat-slot .zmc-pill {
  min-height: 44px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 2px solid #2e3440;
  font-size: 15px;
  font-weight: 800;
}
.members-chat-slot .zmc-mark {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(180deg, #52e568 0%, #24b83e 100%);
  color: transparent;
  font-size: 0;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 2px 6px rgba(36,184,62,.35);
}
.members-chat-slot .zmc-mark::before {
  content: "";
  width: 19px;
  height: 15px;
  background: #ffffff;
  border-radius: 50%;
}
.members-chat-slot .zmc-mark::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 7px;
  height: 7px;
  background: #ffffff;
  clip-path: polygon(100% 0, 0 100%, 100% 85%);
}
.members-chat-slot .zmc-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff3b30;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(255,59,48,.6);
}
.header-popover { position: relative; }
.header-popover > summary { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; }
.header-popover > summary::-webkit-details-marker { display: none; }
.header-popover[open] > summary { background: var(--card-2); color: var(--text); border-color: var(--border); }
.header-popover-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1200;
  display: grid;
  width: max-content;
  min-width: 260px;
  gap: 7px;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #15171c;
  box-shadow: 0 18px 45px rgba(0,0,0,.5);
}
.header-popover-menu .header-btn { justify-content: flex-start; width: 100%; border-color: var(--border); background: var(--card); color: var(--text); }

.staff-back-link {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}
.staff-back-link:hover { color: var(--text); border-color: var(--danger); }

.pos-nav-tabs {
  margin-left: 12px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #111318;
}

.pos-nav-tab, .header-btn {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  padding: 0 11px;
  font-weight: 700;
  white-space: nowrap;
}
.pos-nav-tab.active, .header-btn:hover {
  background: var(--card-2);
  color: var(--text);
  border-color: var(--border);
}
.lock-btn { color: #ffb4aa; }
.staff-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  max-width: 210px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.staff-session-pill.signed-in {
  border-color: var(--success);
  background: color-mix(in srgb, var(--success) 18%, var(--card));
  color: var(--text);
}
.staff-session-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.clock {
  color: var(--text-muted);
  font-family: "Share Tech Mono", monospace;
  white-space: nowrap;
}

.alert-banner {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 13px;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.pos-main {
  display: grid;
  grid-template-columns: minmax(380px, 42%) minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
}

.left-panel, .right-panel, .floor-main, .kds-main {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.panel-card, .items-panel-card, .categories-panel, .floor-plan-card, .kds-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
}

.ticket-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  height: 100%;
}

.ticket-header {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.ticket-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 16px;
}
.ticket-number { color: var(--warning); }

.order-type-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.type-btn, .category-tab, .ticket-btn, .modal-btn, .dfee-btn, .mod-option-btn, .coverage-btn, .pill-btn, .venmo-tab, .mini-action {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  padding: 9px 10px;
  font-weight: 800;
}
.type-btn { min-height: 54px; font-size: 18px; }
.type-btn.active, .category-tab.active, .mod-option-btn.active, .coverage-btn.active, .venmo-tab.active {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.table-badge, .beach-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 9px;
  border-radius: var(--radius);
  background: rgba(241,196,15,.12);
  color: var(--warning);
  font-weight: 800;
}
.clear-table, .clear-beach {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
}

.ticket-items-container {
  /* The ticket header can grow when an existing order carries customer notes.
     Never let CSS grid squeeze the actual order lines to zero height: cashiers
     must always be able to select a line before Modify or Void Line. */
  min-height: 128px;
  overflow: auto;
}
.ticket-table, .table-pos {
  width: 100%;
  border-collapse: collapse;
}
.ticket-table { table-layout: fixed; }
.ticket-table th:nth-child(1) { width: 52%; }
.ticket-table th:nth-child(2) { width: 24%; }
.ticket-table th:nth-child(3),
.ticket-table th:nth-child(4) { width: 12%; }
.ticket-table td:nth-child(2) { white-space: nowrap; }
.ticket-table th, .table-pos th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px;
  background: #15171c;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
}
.ticket-table td, .table-pos td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 15px;
}
.ticket-table tr.selected td { background: rgba(241,196,15,.11); }
.ticket-table small {
  display: block;
  color: var(--text-muted);
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.35;
}
.line-note { color: var(--warning) !important; }
.qty-mini {
  width: 34px;
  height: 34px;
  margin: 0 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--card-2);
  color: var(--text);
}

.empty-state {
  padding: 50px 12px;
  color: var(--text-muted);
}
.empty-state i { font-size: 34px; opacity: .5; }
.empty-state p { margin: 8px 0 2px; font-weight: 900; color: var(--text); }

.ticket-totals {
  padding: 12px;
  border-top: 1px solid var(--border);
  background: #15171c;
}
.total-row, .discount-display, .receipt-row, .split-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 5px 0;
}
.grand-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  color: var(--warning);
  font-size: 22px;
  font-weight: 900;
}

.ticket-actions {
  padding: 12px;
  border-top: 1px solid var(--border);
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ticket-btn { min-height: 50px; font-size: 15px; }
.action-void, .btn-danger { background: #3a2422; color: #ffb4aa; }
.action-edit { background: #202e3a; }
.action-hold { background: #342b18; }
.action-recall { background: #252b36; }
.btn-checkout {
  width: 100%;
  min-height: 64px;
  margin-top: 10px;
  border: 0;
  border-radius: var(--radius);
  background: var(--success);
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.right-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}
.menu-command-bar {
  display: grid;
  grid-template-columns: minmax(260px, auto) auto minmax(260px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 12px 0;
}
.menu-load-status {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 11px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}
.menu-load-status.loading { border-color: var(--warning); color: var(--warning); }
.menu-load-status.ready { border-color: var(--success); color: #7df2aa; }
.menu-load-status.error { border-color: var(--danger); color: #ff9f96; }
.menu-retry-btn,
.menu-shortcuts button {
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}
.menu-retry-btn { border-color: var(--warning); color: var(--warning); }
.menu-search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: #0d1d27;
  color: #8bd5ff;
}
.menu-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}
.menu-search-box input::placeholder { color: #c0c8d4; opacity: 1; }
.menu-shortcuts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.menu-shortcuts button { border-color: #627082; background: #222a35; }
.menu-shortcuts button:hover,
.menu-retry-btn:hover { border-color: var(--warning); color: var(--warning); }
.quick-keys-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.quick-key-tile {
  min-height: 60px;
  padding: 7px 10px;
  border: 2px solid color-mix(in srgb, var(--warning) 60%, var(--border));
  border-radius: var(--radius);
  background: linear-gradient(145deg, #272219, var(--card-2));
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  cursor: pointer;
}
.quick-key-tile:hover {
  border-color: var(--warning);
  background: #332c1f;
}
.quick-key-label,
.quick-key-split-title {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-key-price {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: var(--warning);
  line-height: 1.15;
}
.quick-key-split,
.quick-key-pizza.open {
  cursor: default;
  padding: 5px 7px;
}
.quick-key-split-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}
.quick-key-subbtn {
  min-height: 36px;
  padding: 4px 6px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}
.quick-key-subbtn strong {
  color: var(--warning);
  font-size: 12px;
}
.quick-key-subbtn:hover {
  border-color: var(--warning);
  background: #352d1e;
}
.menu-search-result small {
  display: block;
  margin-bottom: 8px;
  color: #8bd5ff;
  font-size: 11px;
  font-weight: 900;
}
.menu-search-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 28px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center;
}
.menu-search-empty strong { color: var(--warning); font-size: 22px; }
.category-scroll-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  overflow: visible;
  max-height: none;
}
.category-tab {
  min-width: 0;
  white-space: normal;
  line-height: 1.15;
  min-height: 86px;
  padding: 12px;
  text-align: center;
}
.category-tile {
  --category-accent: var(--blue);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 4px 10px;
  border: 2px solid color-mix(in srgb, var(--category-accent) 62%, var(--border));
  background: color-mix(in srgb, var(--category-accent) 20%, var(--card));
  color: var(--text);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent);
}
.category-tile:hover {
  border-color: var(--category-accent);
  background: color-mix(in srgb, var(--category-accent) 30%, var(--card));
}
.category-tile.active {
  border-color: var(--warning);
  background: color-mix(in srgb, var(--category-accent) 45%, var(--card));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--warning) 40%, transparent);
}
.category-tile-icon {
  grid-row: 1 / 3;
  font-size: 31px;
  line-height: 1;
}
.category-tile-label {
  align-self: end;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 900;
}
.category-tile-count {
  align-self: start;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.category-color-1 { --category-accent: var(--danger); }
.category-color-2 { --category-accent: var(--blue); }
.category-color-3 { --category-accent: var(--success); }
.category-color-4 { --category-accent: var(--purple); }
.category-color-5 { --category-accent: var(--warning); }
.category-color-6 { --category-accent: var(--text-muted); }
.category-accent-salad { --category-accent: #2ecc71; }
.category-accent-breakfast { --category-accent: #f39c12; }
.category-accent-beverage { --category-accent: #16a6b6; }
.category-accent-retail { --category-accent: #8e6b3d; }
.items-panel-card { overflow: auto; padding: 12px; }
.items-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.menu-item-btn {
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  text-align: left;
}
.menu-item-btn:hover { border-color: var(--warning); background: var(--card-2); }
.menu-item-btn span { display: block; font-size: 17px; font-weight: 900; line-height: 1.25; }
.menu-item-btn strong { display: block; margin-top: 12px; color: var(--warning); font-size: 20px; }
.menu-section-heading {
  grid-column: 1 / -1;
  padding: 9px 12px;
  border-left: 5px solid var(--warning);
  background: rgba(241,196,15,.12);
  color: var(--warning);
  font-weight: 1000;
  letter-spacing: .5px;
}
.cookie-heading { border-left-color: #d79b52; background: rgba(215,155,82,.13); color: #f0bd75; }
.beverage-heading { border-left-color: #25c7d9; background: rgba(37,199,217,.12); color: #74e8f4; }
.catering-pos-intro {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(320px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 3px solid var(--warning);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #312815, #1b1d22);
}
.catering-pos-intro strong { color: var(--warning); font-size: 24px; }
.catering-pos-intro span { color: #f1f3f5; font-size: 17px; line-height: 1.4; }
.catering-pos-intro button {
  min-height: 64px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--success);
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  cursor: pointer;
}
.catering-package-tile { min-height: 220px; border: 2px solid #8a6b24; }
.catering-package-tile small,
.catering-package-tile em { display: block; margin-top: 9px; font-style: normal; line-height: 1.35; }
.catering-package-tile small { color: #fff; font-size: 16px; font-weight: 850; }
.catering-package-tile em { color: #cdd2dc; font-size: 14px; }
.wrap-tray-content { width: min(1100px, 96vw); max-height: 94vh; }
.wrap-tray-count {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px;
  border: 2px solid var(--warning);
  border-radius: var(--radius);
  background: #2b2414;
  color: var(--warning);
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}
.wrap-tray-count.complete { border-color: var(--success); background: #122a1c; color: #55e28a; }
.wrap-tray-help { color: var(--text-muted); font-size: 16px; text-align: center; }
.wrap-tray-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wrap-tray-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.wrap-tray-choice strong { font-size: 18px; }
.wrap-tray-stepper { display: grid; grid-template-columns: 54px 48px 54px; align-items: center; text-align: center; }
.wrap-tray-stepper button {
  min-height: 52px;
  border: 0;
  border-radius: 9px;
  background: var(--primary);
  color: white;
  font-size: 28px;
  font-weight: 950;
}
.wrap-tray-stepper button:disabled { opacity: .28; }
.wrap-tray-stepper span { font-size: 24px; font-weight: 950; }
@media (max-width: 760px) { .wrap-tray-options { grid-template-columns: 1fr; } }
.specialty-pizza-btn { border-color: rgba(241,196,15,.65); background: linear-gradient(145deg, #29251c, var(--card)); }
.specialty-pizza-btn:hover { border-color: var(--warning); background: #332d1f; }
/* Pizza wall family tiles: one tile per specialty, sizes listed underneath. */
.pizza-family-btn { border-color: rgba(241,196,15,.45); background: linear-gradient(145deg, #24221b, var(--card)); }
.pizza-family-btn:hover { border-color: var(--warning); background: #332d1f; }
.pizza-family-btn small { display: block; margin-top: 8px; color: #cdd2dc; font-size: 13px; font-weight: 700; line-height: 1.3; }
.pizza-family-content { max-width: 900px; }
.pizza-family-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.pizza-family-option {
  min-height: 118px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.pizza-family-option:hover { border-color: var(--warning); background: var(--card-2); }
.pizza-family-option span { display: block; font-size: 20px; font-weight: 950; line-height: 1.2; }
.pizza-family-option strong { display: block; margin-top: 8px; color: var(--warning); font-size: 22px; }
.pizza-family-option small { display: block; margin-top: 8px; color: #cdd2dc; font-size: 13px; line-height: 1.3; }
.pizza-family-builder { border-color: #2874A6; background: linear-gradient(120deg, #1B4F72, #1f3a52); }

.floor-main, .kds-main {
  padding: 14px;
  overflow: auto;
}
.floor-plan-card, .kds-card { min-height: 100%; padding: 16px; }
.floor-plan-header, .kds-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.floor-plan-header h3, .kds-header h3 { margin: 0; }
.floor-legend { display: flex; gap: 12px; color: var(--text-muted); font-size: 13px; }
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}
.legend-dot.green { background: var(--success); }
.legend-dot.red { background: var(--danger); }
.legend-dot.yellow { background: var(--warning); }
.floor-grid-container {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}
.room-title { color: var(--text-muted); text-transform: uppercase; font-size: 12px; }
.tables-layout, .patio-tables-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 16px;
}
.bar-stools-layout { display: flex; gap: 12px; flex-wrap: wrap; }
.floor-table {
  min-height: 86px;
  border: 2px solid rgba(39,174,96,.75);
  border-radius: var(--radius);
  background: rgba(39,174,96,.13);
  color: var(--text);
  font-weight: 900;
}
.floor-table.round { border-radius: 50%; aspect-ratio: 1; }
.floor-table.rectangle { grid-column: span 2; }
.floor-table.stool { width: 62px; min-height: 62px; border-radius: 50%; }
.table-name, .table-status { display: block; }
.table-status { color: var(--text-muted); font-size: 11px; }

.kds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.kds-order-card {
  border: 1px solid var(--border);
  border-left: 5px solid var(--warning);
  border-radius: var(--radius);
  background: var(--card);
  padding: 12px;
}
.kds-order-head {
  display: flex;
  justify-content: space-between;
  color: var(--warning);
}
.kds-note {
  margin: 10px 0;
  padding: 8px;
  border-radius: 6px;
  background: rgba(241,196,15,.1);
  color: var(--warning);
  font-size: 13px;
  font-weight: 800;
}
.kds-pay-badge {
  display: inline-block;
  margin: 6px 0 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
}
.kds-pay-badge.paid { background: rgba(6,214,160,.15); color: #06d6a0; }
.kds-pay-badge.pending { background: rgba(241,196,15,.15); color: #f1c40f; }
.kds-pay-badge.unpaid { background: rgba(239,71,111,.15); color: #ef476f; }
.kds-empty-state {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  color: var(--text-muted);
}
.mini-action.done { background: var(--success); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.62);
}
.modal.active { display: flex; }
.modal-content {
  width: min(960px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.small-modal { max-width: 520px; }
.medium-modal { max-width: 760px; }
.manager-content { max-width: 1120px; }
.modifier-content { max-width: 1180px; }
.checkout-content {
  width: min(1420px, calc(100vw - 48px));
  max-width: 1420px;
  min-height: min(820px, calc(100vh - 48px));
}
.modal-header-bar, .modal-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: #15171c;
}
.modal-footer-bar { border-top: 1px solid var(--border); border-bottom: 0; }
.modal-header-bar h3 { margin: 0; }
.close-modal-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-size: 24px;
}
.modal-body, .modifier-body, .checkout-body, .tip-modal-body {
  overflow: auto;
  padding: 16px;
}
.modal-btn.btn-primary { background: var(--success); border-color: var(--success); }
.modal-btn.btn-secondary { background: var(--card); }
.modal-btn.btn-danger { border-color: var(--danger); }

.modifier-section {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #17191f;
}
.modifier-section h4 { margin: 0 0 10px; }
.mod-btn-group, .coverage-toggle, .quick-instruction-pills, .venmo-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topping-coverage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toppings-grid, .mod-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.topping-btn, .discount-option, .beach-street-btn, .cash-btn, .pay-method-btn, .btn-card-action, .btn-split-charge, .btn-venmo-complete, .btn-manual-record, .tip-pct-btn, .btn-manager-action {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  padding: 11px;
  font-weight: 800;
}
.topping-btn { text-align: left; }
.topping-btn small { display: block; color: var(--warning); }
.topping-btn.active {
  border: 3px solid var(--warning);
  background: #155f43;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(241,196,15,.25);
}
.topping-btn.active::before {
  content: "✓ ";
  color: #fff;
  font-weight: 1000;
}
.topping-btn.active small { color: #fff; }
.modifier-summary-box, .alert-note, .manual-warning-banner {
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(241,196,15,.1);
  color: var(--warning);
}
.description { color: var(--text-muted); }
.form-control-pos, .textarea-pos, .tender-input, .dfee-input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #111318;
  color: var(--text);
  padding: 9px 10px;
}
textarea.form-control-pos { resize: vertical; }

.discount-list, .manager-actions-grid {
  display: grid;
  gap: 10px;
}
.discount-option { text-align: left; }
.disc-title, .disc-desc { display: block; }
.disc-desc { color: var(--text-muted); margin-top: 3px; font-size: 13px; }
.remove-disc-btn { color: #ffb4aa; }

.beach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.beach-street-btn { text-align: left; }
.beach-street-btn.active { border-color: var(--warning); background: rgba(241,196,15,.11); }
.street-name, .street-city, .street-meta { display: block; }
.street-city, .street-meta { color: var(--text-muted); font-size: 13px; margin-top: 3px; }

.checkout-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}
.checkout-payment-box, .checkout-receipt-box {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #17191f;
  padding: 14px;
}
.checkout-customer-info-row, .manual-field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.register-customer-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #111318;
}
.register-customer-info .form-control-pos { min-height: 44px; }
.register-start-content { width: min(1120px, 96vw); min-height: min(620px, 90vh); }
.register-start-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 28px; }
.register-start-choice {
  min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; border: 4px solid var(--border); border-radius: 20px; color: #fff; cursor: pointer;
}
.register-start-choice i { font-size: 72px; }
.register-start-choice strong { font-size: 30px; }
.register-start-choice span { max-width: 240px; font-size: 17px; font-weight: 750; text-align: center; }
.register-start-choice.takeout { background: #c0392b; }
.register-start-choice.delivery { background: #1665a8; }
.register-start-choice.beach { background: #118a78; }
.menu-family-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
.menu-family-btn {
  min-height: 82px; padding: 10px 12px; border: 3px solid transparent; border-radius: var(--radius);
  color: #fff; font-size: 18px; font-weight: 950; cursor: pointer;
}
.menu-family-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.menu-family-icon { flex: 0 0 auto; font-size: 28px; line-height: 1; }
.menu-family-more { background: #243244; border-color: #4b6786; }
.menu-family-btn.active { border-color: #fff; box-shadow: 0 0 0 3px var(--warning); }
.family-color-1 { background:#b8322a; } .family-color-2 { background:#135ea2; }
.family-color-3 { background:#8b4d13; } .family-color-4 { background:#157347; }
.family-color-5 { background:#6f42c1; } .family-color-6 { background:#495057; }
.family-accent-salad { background:#157347; }
.family-accent-breakfast { background:#9b5715; }
.family-accent-beverage { background:#087f8c; }
.family-accent-retail { background:#67502e; }
.menu-subcategory-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; }
.menu-focus-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 2px solid #526173;
  border-radius: var(--radius);
  background: #151a22;
}
.menu-focus-bar button {
  min-height: 48px;
  padding: 9px 14px;
  border: 2px solid #68788c;
  border-radius: 8px;
  background: #253142;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}
.menu-focus-back { border-color: var(--warning) !important; color: var(--warning) !important; }
.menu-focus-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 1000;
}
.menu-focus-title small { color: #b9c3d0; font-size: 12px; white-space: nowrap; }
.breakfast-heading { border-left-color: #f39c12; background: rgba(243,156,18,.14); color: #ffc766; }
.board-date-header { grid-column: 1 / -1; padding: 10px 14px; border-radius: 8px; background:#1f2937; color:#fff; font-size:18px; font-weight:950; }
.board-pagination { grid-column: 1 / -1; display:flex; align-items:center; justify-content:center; gap:18px; padding:16px; }
.ready-sms-btn { background:#157347; color:#fff; }
.delivery-phone-content { width: min(720px, 96vw); min-height: min(760px, 94vh); }
.delivery-phone-body { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px; }
.delivery-step-label { margin: 0; color: var(--text-main); font-size: 22px; font-weight: 900; text-align: center; }
.delivery-phone-display {
  width: min(520px, 100%); min-height: 76px; padding: 10px 18px;
  border: 3px solid var(--primary); border-radius: var(--radius);
  background: #fff; color: #111; font-size: 38px; font-weight: 900;
  letter-spacing: 3px; text-align: center;
}
.delivery-keypad { display: grid; grid-template-columns: repeat(3, 112px); gap: 10px; }
.delivery-keypad button {
  min-height: 84px; border: 2px solid var(--border); border-radius: var(--radius);
  background: #f3f4f6; color: #111; font-size: 32px; font-weight: 900; cursor: pointer;
}
.delivery-keypad button:active { transform: scale(.97); }
.delivery-keypad .keypad-clear { color: var(--danger); font-size: 17px; }
.delivery-keypad .keypad-back { color: var(--primary); }
.delivery-phone-status { min-height: 24px; color: var(--warning); font-size: 16px; font-weight: 800; text-align: center; }
.delivery-phone-actions { gap: 12px; }
.delivery-phone-actions .modal-btn { min-width: 170px; min-height: 64px; }
.delivery-customer-content { width: min(1500px, 97vw); min-height: min(860px, 95vh); }
.delivery-customer-body {
  display: grid; grid-template-columns: minmax(520px, 1.1fr) minmax(440px, .9fr);
  gap: 20px; padding: 20px;
}
.delivery-customer-form {
  display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 16px;
  padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #111318;
}
.delivery-form-wide { grid-column: 1 / -1; }

/* Address suggestions under the Delivery Address fields (owner 2026-09-13). */
.addr-suggest-anchor { position: relative; }
.addr-suggest-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
  max-height: 300px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.addr-suggest-item {
  display: block; width: 100%; min-height: 50px; padding: 10px 14px;
  background: none; border: 0; border-bottom: 1px solid var(--border);
  color: var(--text); font: inherit; font-size: 18px; font-weight: 700; text-align: left; cursor: pointer;
}
.addr-suggest-item:last-child { border-bottom: 0; }
.addr-suggest-item.active, .addr-suggest-item:hover { background: var(--card-2); }
.addr-suggest-src { display: block; margin-top: 2px; color: var(--text-muted); font-size: 13px; font-weight: 700; }
.delivery-form-field label { display: block; margin-bottom: 7px; color: var(--text-main); font-size: 16px; font-weight: 900; }
.delivery-form-field .form-control-pos { min-height: 62px; font-size: 20px; }
.delivery-form-field textarea.form-control-pos { min-height: 130px; resize: vertical; }
.delivery-history-panel { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #111318; }
.delivery-history-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.delivery-history-heading h4 { margin: 0; font-size: 21px; }
.delivery-history-heading span { color: var(--text-muted); font-weight: 800; }
.delivery-customer-history { display: grid; gap: 10px; max-height: 610px; overflow-y: auto; }
.delivery-history-order {
  width: 100%; min-height: 104px; padding: 14px; border: 2px solid var(--border);
  border-radius: var(--radius); background: #1b1e25; color: var(--text-main); text-align: left; cursor: pointer;
}
.delivery-history-order:hover { border-color: var(--primary); }
.delivery-history-order-top { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 900; }
.delivery-history-order-items { display: block; margin-top: 7px; color: var(--text-muted); line-height: 1.35; }
.delivery-customer-actions .modal-btn { min-height: 68px; min-width: 240px; }
.cust-info-field label, .manual-interface label, .venmo-interface label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.delivery-fee-btns {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 6px;
}
.checkout-amount-due {
  margin: 14px 0;
  padding: 14px;
  border-radius: var(--radius);
  background: #101318;
}
.checkout-total-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.checkout-total-main h1 { margin: 0; color: var(--warning); font-size: 38px; }
/* Optional tip controls (owner 2026-09-09): sit between the fee lines and the
   big total; never a gate to payment. */
.checkout-tip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}
.payment-method-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.pay-method-btn.active { border-color: var(--warning); background: rgba(241,196,15,.11); }
.cash-input-bar, .split-cash-row, .tip-custom-row, .tip-new-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.quick-cash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cash-btn.action { background: var(--success); }
.cash-btn.clear { background: #3a2422; }
.change-due-box, .card-status-terminal, .venmo-qr-box, .tip-check-display {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: #101318;
  text-align: center;
}
.change-due-box h2, .tip-check-display h2 { margin: 4px 0 0; }
.terminal-screen {
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #07120b;
  color: #75ff94;
  font-family: "Share Tech Mono", monospace;
}
.modifier-qualifier-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #111318;
}
/* Owner 2026-09-17 ("ADD TOPPINGS ON WHOLE AND HALFS"): the Whole / Left ½ /
   Right ½ row stays pinned while the cashier scrolls a long pizza card, so
   the side they are picking for is always in view. */
.modifier-body .modifier-qualifier-row {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-top: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.qualifier-label { grid-column: 1 / -1; color: var(--text-main); font-size: 16px; font-weight: 900; }
/* Owner 2026-09-18 ("why supreme pizza sicilian is 46 dollars?"): the pie's
   own build is ticked and reads INCLUDED — never a "+$4.00". */
.topping-btn.included-option.active { border-style: dashed; }
.topping-btn.included-option.active small { color: #9be7a5; letter-spacing: .04em; }
/* NO on any option: struck and red, never a green tick (owner 2026-09-19). */
.topping-btn.no-option.active { background: #5a1f1f; border-color: var(--danger, #e74c3c); }
.topping-btn.no-option.active::before { content: "✕ "; }
.topping-btn.no-option.active span { text-decoration: line-through; }
.topping-btn.no-option.active small { color: #ffb3b3; }
/* WHICH TOWN? — one question for a town-less delivery address. */
.delivery-town-content { width: min(640px, 96vw); }
.delivery-town-body { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.delivery-town-reason { margin: 0; color: var(--warning); font-size: 15px; font-weight: 800; text-align: center; }
.delivery-town-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.delivery-town-btn {
  min-height: 84px; border: 2px solid var(--border); border-radius: var(--radius);
  background: #f3f4f6; color: #111; font-size: 24px; font-weight: 900; cursor: pointer;
}
.delivery-town-btn:active { transform: scale(.97); }
.delivery-town-actions { justify-content: center; }
.delivery-town-actions .modal-btn { min-width: 260px; min-height: 60px; }
.delivery-town-badge { background: #157347; }
.qualifier-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  min-height: 62px;
  padding: 10px 12px;
  font-size: 17px;
  font-weight: 900;
}
/* Warning-coloured when active because these change what the kitchen makes —
   a cashier must see at a glance that the next tap means "NO", not "add". */
.qualifier-btn.active { background: var(--warning); border-color: var(--warning); color: #111; }
.modifier-content .modal-header-bar h3 { font-size: 24px; }
.modifier-content .modal-footer-bar { padding: 12px 18px; }
.modifier-content .modal-btn {
  min-width: 220px;
  min-height: 58px;
  padding: 12px 20px;
  font-size: 19px;
}
#generic-options-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
#generic-options-section { padding: 0; border: 0; background: transparent; }
.generic-option-group { margin: 0; }
.generic-option-group h4 {
  min-height: 38px;
  margin: 0 0 10px;
  font-size: 18px;
  color: #fff;
}
.modifier-group-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #3d4654;
}
.modifier-group-heading h4 { min-height: 0; margin: 0; color: #fff; font-size: 21px; }
.modifier-group-heading p { margin: 4px 0 0; color: #c7cfda; font-size: 15px; font-weight: 750; }
.modifier-group-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; }
.modifier-requirement { padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 950; letter-spacing: .04em; }
.modifier-requirement.required { background: #8f241c; color: #fff; }
.modifier-requirement.optional { background: #273544; color: #dce6f2; }
.modifier-progress { color: #dce4ef; font-size: 13px; font-weight: 850; }
.generic-option-group.group-complete { border-color: #2e8b57; }
.generic-option-group.group-incomplete { border-color: #c88a1b; }
.generic-option-group.group-attention { border-color: #ff5349; box-shadow: 0 0 0 4px rgba(255,83,73,.28); }
.modifier-missing-warning { color: #ff746c; }
.qualifier-btn small { display: block; margin-top: 3px; font-size: 12px; font-weight: 750; opacity: .9; }
.generic-option-group .toppings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.generic-option-group .topping-btn {
  min-height: 62px;
  padding: 11px 13px;
  font-size: 16px;
  line-height: 1.18;
}
#generic-options-groups.organized-modifier-groups { display: block; }
.generic-group-lane {
  margin-bottom: 18px;
  padding: 14px;
  border: 2px solid #3b4655;
  border-radius: var(--radius);
  background: #12151a;
}
.generic-group-lane > h3 {
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--warning);
  color: var(--warning);
  font-size: 22px;
}
.generic-group-lane-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card-terminal-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.linked-order-banner {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(52,152,219,.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.linked-order-exit {
  min-height: 44px;
  margin-left: 12px;
  padding: 8px 16px;
  border: 2px solid var(--danger-dark);
  border-radius: var(--radius);
  background: var(--danger);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  vertical-align: middle;
  cursor: pointer;
}
.linked-order-exit:focus-visible {
  outline: 3px solid var(--warning);
  outline-offset: 2px;
}
/* Owner 2026-09-13 (T-14): the tag that names where a linked ticket's total
   came from. Green = the customer's quote, verbatim from the server; amber =
   the cashier changed the build and the server re-priced it (or is about to). */
.linked-quote-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--success);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  vertical-align: middle;
  white-space: nowrap;
}
.linked-quote-tag.edited { background: var(--blue); }
.linked-quote-tag.pending { background: var(--warning); color: #1b1f27; }
.ticket-quote-tag {
  text-align: right;
  margin-top: 4px;
}
.ticket-quote-tag .linked-quote-tag { margin-left: 0; }
/* The caller's own words (allergies, gate codes) — warning-coloured because
   this is the line a cashier must not skim past. */
.linked-order-notes {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(52,152,219,.35);
  color: var(--warning);
}
/* The server does not hold what is on screen yet. Louder than the quote tag
   on purpose: an unsaved line is the one the terminal will not charge for
   (owner 2026-09-21, T-1 #88400427). */
.linked-unsaved {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warning);
  color: #1b1f27;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* Checkout-wide line: reader cleared after a tender switch, or the loaded
   order being saved before the tender arms. Visible from every tender tab. */
.checkout-tender-notice {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(46, 204, 113, .15);
  border: 1px solid rgba(46, 204, 113, .55);
  color: var(--success);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  text-align: center;
}
.checkout-tender-notice.tender-notice-busy {
  background: rgba(52, 152, 219, .15);
  border-color: rgba(52, 152, 219, .55);
  color: var(--blue);
}
.checkout-tender-notice.tender-notice-warn {
  background: rgba(231, 76, 60, .15);
  border-color: rgba(231, 76, 60, .6);
  color: var(--danger);
}

.reader-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 800;
}
.reader-picker-row select {
  flex: 1;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
}
.btn-reader-refresh {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  padding: 9px 11px;
}
/* Status is carried by the glyph (● / ○) as well as colour — a red/green dot
   alone is unreadable to a colour-blind cashier under rush lighting. */
.reader-status-dot { font-size: 18px; line-height: 1; color: var(--text-muted); }
.reader-status-dot.online { color: var(--success); }
.reader-status-dot.offline { color: var(--danger); }
.btn-card-action.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-card-action:disabled { opacity: 0.45; cursor: not-allowed; }
.card-fallback { margin-top: 12px; text-align: left; }
.card-fallback summary { cursor: pointer; font-weight: 800; color: var(--text-muted); padding: 6px 0; }
.venmo-qr-icon { font-size: 72px; color: var(--blue); }
.receipt-printer-mouth {
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  background: #0c0c0c;
  border-radius: var(--radius);
}
.receipt-sheet {
  min-height: 420px;
  padding: 18px;
  background: #f8f4e9;
  color: #161616;
  font-family: "Share Tech Mono", monospace;
}
.receipt-center { text-align: center; }
.receipt-row.total { font-weight: 900; font-size: 18px; }
/* Per-item kitchen note on the checkout receipt. Bold and indented under its
   line, mirroring the ">>" accent line the print agent puts on the paper
   ticket, so the cashier sees the same thing the kitchen will. */
.receipt-note { padding-left: 12px; font-weight: 700; }

.recall-table-container, .order-log-container {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.manager-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stat-widget {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.stat-widget .label { color: var(--text-muted); font-size: 12px; font-weight: 800; }
.stat-widget h2 { margin: 6px 0 0; }
.manager-splits {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
  gap: 14px;
}
.manager-card-col {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #17191f;
}
.manager-card-col h4 { margin: 0 0 10px; }
.compact th, .compact td { font-size: 12px; padding: 8px; }
.compact td small {
  display: block;
  color: #ffb4aa;
  margin-top: 3px;
}
.refunded-row td {
  background: rgba(231,76,60,.08);
}
.manager-note {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(241,196,15,.28);
  border-radius: var(--radius);
  background: rgba(241,196,15,.1);
  color: var(--warning);
  font-size: 13px;
  font-weight: 800;
}
.queue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.tip-modal-content {
  width: min(880px, calc(100vw - 64px));
  max-width: 880px;
  min-height: 560px;
}
.tip-modal-content .modal-header-bar,
.tip-modal-content .modal-footer-bar { padding: 18px 22px; }
.tip-modal-content .modal-body { padding: 22px; }
.tip-modal-content h3 { font-size: 24px; }
.tip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 24px;
}
.tip-pct-btn {
  min-height: 104px;
  padding: 16px 12px;
  font-size: 18px;
}
.tip-pct-btn.active { border-color: var(--warning); background: rgba(241,196,15,.12); }
.tip-pct-label, .tip-dollar-label { display: block; }
.tip-pct-label { font-size: 31px; }
.tip-dollar-label { margin-top: 7px; font-size: 17px; }
.tip-modal-content .tip-total-display,
.tip-modal-content .tip-new-total { font-size: 26px; }
.tip-modal-content input { min-height: 54px; font-size: 20px; }
.tip-modal-content .modal-btn { min-height: 58px; padding: 12px 20px; font-size: 17px; }

.blinking { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: .45; } }

@media (max-width: 1500px) {
  .app-wrapper { grid-template-rows: auto minmax(0, 1fr); }
  .pos-header { grid-template-columns: 1fr auto; gap: 8px; padding: 8px 10px; }
  .header-center { display: none; }
  .header-left, .header-right { flex-wrap: wrap; }
  .pos-main { grid-template-columns: minmax(430px, 42%) minmax(0, 1fr); gap: 10px; padding: 10px; }
  .ticket-header { padding: 10px; }
  .ticket-meta { margin-bottom: 8px; }
  .register-customer-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
    padding: 8px;
  }
  .register-customer-info .form-control-pos { min-height: 46px; padding: 8px; font-size: 16px; }
  .linked-order-banner { margin-top: 8px; padding: 6px 8px; font-size: 12px; }
  .linked-order-exit { min-height: 38px; margin-left: 8px; padding: 6px 12px; }
  .ticket-totals { padding: 9px 10px; }
  .grand-total { margin-top: 7px; padding-top: 7px; font-size: 20px; }
  .ticket-actions { padding: 9px 10px; }
  .ticket-btn { min-height: 44px; font-size: 14px; }
  .btn-checkout { min-height: 56px; margin-top: 8px; font-size: 22px; }
  .category-scroll-container { gap: 9px; padding: 10px; }
  .menu-family-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
  .menu-family-btn { min-height: 76px; font-size: 18px; }
  .menu-subcategory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .category-tab { min-height: 86px; padding: 10px; }
  .category-tile-label { font-size: 16px; }
  .category-tile-count { font-size: 13px; }
  .items-panel-card { padding: 10px; }
  .items-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .menu-item-btn { min-height: 118px; padding: 13px; }
  .menu-item-btn span { font-size: 18px; }
  .menu-item-btn strong { font-size: 19px; }
  #checkout-modal { padding: 0; }
  .checkout-content {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }
  #modifier-modal { padding: 0; }
  .modifier-content {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }
  .modifier-body { padding: 12px; }
  .modifier-qualifier-row {
    position: sticky;
    top: 0;
    z-index: 5;
    margin-top: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
  }
}

@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  body { overflow: auto; }
  .app-wrapper { grid-template-rows: auto auto; height: auto; min-height: 100vh; overflow: visible; }
  .pos-header { grid-template-columns: 1fr; padding: 10px; }
  .pos-main, .checkout-body, .floor-grid-container, .manager-splits {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .ticket-card { min-height: 640px; }
  .manager-grid-8 { grid-template-columns: repeat(2, 1fr); }
  .payment-method-selector, .quick-cash-grid { grid-template-columns: repeat(2, 1fr); }
  .category-scroll-container, .items-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-command-bar { grid-template-columns: 1fr auto; }
  .menu-search-box { grid-column: 1 / -1; }
  .menu-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-customer-body { grid-template-columns: 1fr; }
  #generic-options-groups { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .order-type-buttons, .action-grid, .action-row, .checkout-customer-info-row, .register-customer-info, .manual-field-pair, .manager-grid-8, .tip-grid, .delivery-customer-form {
    grid-template-columns: 1fr;
  }
  .delivery-form-wide { grid-column: auto; }
  .delivery-keypad { grid-template-columns: repeat(3, minmax(84px, 112px)); }
  .modifier-qualifier-row { grid-template-columns: repeat(2, 1fr); }
  .items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-scroll-container { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
  .menu-item-btn { min-height: 92px; }
  .floor-legend { flex-direction: column; gap: 4px; }
  .tables-layout, .patio-tables-layout { grid-template-columns: repeat(2, 1fr); }
  .checkout-total-main { align-items: flex-start; flex-direction: column; }
}

.staff-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  background: rgba(241,196,15,.12);
  color: var(--warning);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.staff-back-link:hover { background: var(--warning); color: #111; }

/* ── Order board ─────────────────────────────────────────────────────────── */
#orders-board-modal { padding: 0; }
.orders-board-content {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border-radius: 0;
}
.orders-board-content .modal-header-bar { padding: 18px 22px; }
.orders-board-content .modal-header-bar h3 { font-size: 27px; }
.orders-board-content .modal-body {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 18px 22px;
}
.board-search-row { display: flex; gap: 12px; margin-bottom: 14px; }
.board-search-row .mini-action { min-width: 64px; font-size: 18px; }
.board-tile-actions { display: flex; align-items: stretch; gap: 10px; margin-top: 14px; }
.board-tile-actions .mini-action { flex: 1 1 0; min-height: 52px; padding: 10px 12px; font-size: 15px; }
.board-void-btn { border-color: var(--danger) !important; color: #ffb4aa !important; }
.board-tile.voided { opacity: .7; border-color: var(--danger); }
.board-voided-label { color: #ffb4aa; font-size: 15px; }
.board-search-input {
  flex: 1;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}
.board-filter-row {
  display: flex; align-items: center; gap: 9px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.board-filter-label { color: #fff; font-size: 14px; font-weight: 950; }
.board-chip {
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--text);
  min-height: 44px; padding: 9px 16px; font-size: 15px; font-weight: 900;
}
.board-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.board-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 14px;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding-right: 5px;
}
.board-tile {
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius);
  background: var(--card);
  min-height: 218px;
  padding: 16px;
  cursor: pointer;
}
.board-tile:hover { border-color: var(--blue); }
.board-tile.promise-alarm-card {
  border: 3px solid #ff4d4f;
  border-left-width: 9px;
  box-shadow: 0 0 0 2px rgba(255,77,79,.18);
}
.board-tile.customer-waiting-card { background: rgba(145,20,24,.28); }
.promise-alarm,
.customer-waiting,
.customer-left {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 950;
}
.promise-alarm { background: #a4171d; color: #fff; }
.promise-alarm.late { background: #e01f2b; }
.customer-waiting { background: #e01f2b; color: #fff; }
.customer-left { background: rgba(224,31,43,.22); color: #ffb4b8; }
.customer-here-btn { border-color: #ffd43b !important; color: #ffd43b !important; }
.left-without-btn { border-color: #ff4d4f !important; color: #ffb4b8 !important; }

/* The AI feed is a working order queue. It must show truthful totals and enough
   context to decide which order to load without leaning into a tiny table. */
#voice-orders-modal { padding: 0; }
.voice-orders-content {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border-radius: 0;
}
.voice-orders-content .modal-header-bar { padding: 18px 22px; }
.voice-orders-content .modal-header-bar h3 { font-size: 28px; }
.voice-orders-content .modal-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 18px 22px;
}
.voice-orders-feed-note {
  margin: 0 0 15px;
  padding: 14px 16px;
  border-left: 5px solid var(--blue);
  background: rgba(52,152,219,.12);
  color: #eef2f7;
  font-size: 18px;
  line-height: 1.4;
}
.voice-orders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding: 2px 6px 18px 2px;
}
.voice-orders-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: #cbd2dc;
  font-size: 20px;
  text-align: center;
}
.voice-orders-state i { color: var(--success); font-size: 44px; }
.voice-orders-error i { color: var(--danger); }
.voice-order-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 330px;
  padding: 18px;
  border: 2px solid #414957;
  border-left: 7px solid var(--blue);
  border-radius: var(--radius);
  background: #1c1f26;
}
.voice-order-card.needs-review { border-left-color: var(--danger); }
.voice-order-topline { display: flex; justify-content: space-between; gap: 12px; color: #cbd2dc; font-size: 16px; }
.voice-order-topline strong { color: var(--warning); font-size: 22px; }
.voice-order-customer { color: #fff; font-size: 25px; font-weight: 950; }
.voice-order-phone { color: #7cc9ff; font-size: 20px; font-weight: 850; }
.voice-order-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-order-badges span,
.voice-order-badges strong { padding: 7px 10px; border-radius: 999px; background: #303642; font-size: 15px; text-transform: uppercase; }
.voice-order-badges strong { background: rgba(241,196,15,.15); color: var(--warning); }
.voice-order-detail,
.voice-order-review { padding: 10px 12px; border-radius: 7px; background: #242933; font-size: 17px; line-height: 1.35; }
.voice-order-review { background: rgba(192,57,43,.18); color: #ffb4aa; }
.voice-order-load { min-height: 62px; margin-top: auto; background: var(--success); color: #fff; font-size: 18px; }

@media (max-width: 1500px) {
  .voice-orders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catering-pos-intro { grid-template-columns: 1fr auto; }
}

@media (max-width: 760px) {
  .voice-orders-grid { grid-template-columns: 1fr; }
  .catering-pos-intro { grid-template-columns: 1fr; }
  .generic-group-lane-grid { grid-template-columns: 1fr; }
}
/* Left edge carries settled-ness: green = the money question is answered,
   amber = still the counter's problem. Colour is a hint, the status tag is
   the actual answer. */
.board-tile.settled { border-left-color: var(--success); }
.board-tile.unsettled { border-left-color: var(--warning); }
.board-tile-top { display: flex; justify-content: space-between; gap: 12px; font-size: 21px; }
.board-tile-total { color: var(--warning); font-size: 22px; font-weight: 950; }
.board-tile-meta { color: #d4d8e0; font-size: 15px; line-height: 1.35; margin-top: 7px; }
.board-tile-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.board-tag {
  border-radius: 5px; padding: 5px 9px;
  background: var(--card-2); color: var(--text-muted);
  font-size: 13px; font-weight: 900;
}
.board-tag.paid { background: rgba(39,174,96,.18); color: var(--success); }
.board-tag.owing { background: rgba(241,196,15,.18); color: var(--warning); }
.board-tile-held {
  margin-top: 10px; padding: 9px 0 0;
  border-top: 1px solid var(--border);
  color: #ff8c80; font-size: 15px; line-height: 1.35; font-weight: 900;
}
.board-date-header { font-size: 21px; }
.board-pagination .mini-action { min-width: 180px; min-height: 50px; font-size: 15px; }
.board-status-message {
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(52,152,219,.16);
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}
.board-status-message.success { border-color: var(--success); background: rgba(39,174,96,.18); }
.board-status-message.error { border-color: var(--danger); background: rgba(231,76,60,.18); color: #fff; }
.board-status-message.working { border-color: var(--warning); background: rgba(241,196,15,.14); }

/* ── Store touchscreen readability baseline (owner photos, 2026-08-16) ─────
   The counter screen is viewed at arm's length under kitchen lighting. These
   are the DEFAULT sizes at 1920px too — the old rules enlarged controls only
   below 1500px, which is why the actual full-HD Windows register stayed tiny.
   No CSS zoom/transform is used: native text remains sharp under ClearType. */
:root {
  --font: Arial, "Segoe UI", sans-serif;
  --text-muted: #cbd1db;
}

html { font-size: 18px; }
body {
  font-size: 18px;
  font-weight: 600;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { letter-spacing: 0; }

.app-wrapper {
  grid-template-rows: minmax(76px, auto) minmax(0, 1fr);
}
.pos-header {
  min-height: 76px;
  gap: 12px;
  padding: 8px 14px;
}
.brand h2 { font-size: 24px; }
.staff-back-link,
.pos-nav-tab,
.header-btn,
.staff-session-pill {
  min-height: 48px;
  padding: 9px 13px;
  font-size: 15px;
  font-weight: 900;
}
.clock { font: 700 16px Arial, "Segoe UI", sans-serif; }

.pos-main {
  grid-template-columns: minmax(520px, 44%) minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}
.ticket-card { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.ticket-header { padding: 14px; }
.ticket-meta { font-size: 19px; }
.type-btn { min-height: 58px; font-size: 20px; }
.register-customer-info {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}
.cust-info-field label,
.manual-interface label,
.venmo-interface label {
  margin-bottom: 7px;
  color: #f4f6f8;
  font-size: 16px;
  font-weight: 900;
}
.register-customer-info .form-control-pos,
.form-control-pos,
.textarea-pos,
.tender-input,
.dfee-input {
  min-height: 52px;
  padding: 11px 12px;
  border-width: 2px;
  font-size: 18px;
}
.form-control-pos::placeholder,
.textarea-pos::placeholder { color: #aeb6c3; opacity: 1; }

.ticket-table th,
.table-pos th { padding: 12px 10px; font-size: 15px; color: #e0e4eb; }
.ticket-table td,
.table-pos td { padding: 13px 10px; font-size: 18px; line-height: 1.3; }
.ticket-table td > strong { font-size: 19px; }
.ticket-table small { margin-top: 6px; color: #e0e4eb; font-size: 17px; line-height: 1.42; }
.qty-mini { width: 42px; height: 42px; font-size: 20px; font-weight: 900; }
.ticket-totals { padding: 13px 14px; font-size: 18px; }
.grand-total { font-size: 26px; }
.ticket-actions { padding: 12px 14px; }
.ticket-btn { min-height: 58px; padding: 10px; font-size: 17px; }
.btn-checkout { min-height: 72px; font-size: 27px; }

.category-scroll-container { gap: 12px; padding: 12px; }
.menu-family-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.menu-family-btn {
  min-height: 96px;
  padding: 14px;
  border-width: 4px;
  font-size: 20px;
  line-height: 1.18;
}
.menu-subcategory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.category-tab { min-height: 104px; padding: 13px; }
.category-tile { grid-template-columns: 44px minmax(0, 1fr); border-width: 3px; }
.category-tile-icon { font-size: 36px; }
.category-tile-label { font-size: 19px; line-height: 1.15; }
.category-tile-count { color: #e0e4eb; font-size: 14px; }
.items-panel-card { padding: 12px; }
.items-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.menu-item-btn {
  min-height: 142px;
  padding: 18px;
  border-width: 2px;
}
.menu-item-btn span { font-size: 21px; line-height: 1.25; }
.menu-item-btn strong { margin-top: 14px; font-size: 23px; }
.menu-section-heading { padding: 12px 15px; font-size: 19px; }

/* Modifiers are a working screen, not a small dialog. */
#modifier-modal,
#checkout-modal { padding: 0; }
.modifier-content,
.checkout-content {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border-radius: 0;
}
.modal-header-bar { min-height: 68px; padding: 14px 20px; }
.modal-header-bar h3 { font-size: 25px; }
.close-modal-btn { width: 48px; height: 48px; font-size: 30px; }
.modal-footer-bar { min-height: 78px; padding: 12px 20px; }
.modal-btn { min-height: 58px; padding: 12px 18px; font-size: 18px; }
.modifier-body { padding: 16px; }
.modifier-section { padding: 16px; }
.modifier-section h4,
.generic-option-group h4 { font-size: 20px; }
.modifier-qualifier-row { grid-template-columns: repeat(7, minmax(108px, 1fr)); }
.qualifier-label { font-size: 19px; }
.qualifier-btn { min-height: 70px; font-size: 19px; }
#generic-options-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.generic-option-group .toppings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.generic-option-group .topping-btn,
.topping-btn {
  min-height: 72px;
  padding: 13px 15px;
  border-width: 2px;
  font-size: 18px;
  line-height: 1.25;
}
.modifier-content .modal-btn { min-height: 64px; font-size: 20px; }

/* Payment must be readable without leaning into the screen. */
.checkout-body { grid-template-columns: minmax(0, 1fr) minmax(390px, 32%); gap: 18px; padding: 18px; }
.checkout-payment-box,
.checkout-receipt-box { padding: 18px; }
.checkout-total-main { font-size: 20px; }
.checkout-total-main h1 { font-size: 46px; }
.pay-method-btn,
.cash-btn,
.btn-card-action,
.btn-manual-record,
.btn-split-charge,
.btn-venmo-complete {
  min-height: 66px;
  padding: 12px;
  font-size: 18px;
}
.terminal-screen { min-height: 90px; padding: 12px; font-size: 20px; }
.receipt-sheet { font-size: 17px; line-height: 1.35; }

/* Paid-sale retention: the cashier decides when the ticket may clear. */
.completed-sale-content {
  width: min(980px, calc(100vw - 48px));
  max-width: 980px;
  min-height: 600px;
  border: 4px solid var(--success);
}
.completed-sale-header { background: #123d26; color: #fff; }
.completed-sale-header h3 { font-size: 28px; }
.completed-sale-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  text-align: center;
}
.completed-sale-ticket { color: var(--text); font-size: 28px; font-weight: 950; }
.completed-sale-total { color: var(--warning); font-size: 64px; font-weight: 950; }
.completed-sale-body p { margin: 0; font-size: 21px; line-height: 1.4; }
.printer-warning {
  padding: 20px;
  border: 3px solid var(--warning);
  border-radius: var(--radius);
  background: rgba(241,196,15,.14);
  color: #fff;
  font-size: 20px;
  line-height: 1.45;
}
.completed-sale-actions { gap: 16px; }
.completed-sale-actions .modal-btn { flex: 1; min-height: 78px; font-size: 22px; }

/* The order board photo showed six tiny cards. Keep two columns and make every
   action a true touch target. */
.board-tile { min-height: 242px; padding: 18px; }
.board-tile-top { font-size: 23px; }
.board-tile-total { font-size: 25px; }
.board-tile-meta { font-size: 17px; }
.board-tag { font-size: 15px; }
.board-tile-actions .mini-action { min-height: 62px; font-size: 17px; }

@media (max-width: 1500px) {
  .pos-main { grid-template-columns: minmax(500px, 44%) minmax(0, 1fr); }
  .menu-family-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu-subcategory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #generic-options-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .pos-main { grid-template-columns: minmax(470px, 46%) minmax(0, 1fr); }
  .items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-item-btn { min-height: 126px; }
  .checkout-body { grid-template-columns: 1fr; }
  .checkout-receipt-box { display: none; }
}

/* Standard Windows counter terminals are commonly 1366×768. Keep the same
   sharp, high-contrast UI, but reclaim enough vertical space that the active
   ticket never collapses to zero height. Controls remain touch-sized; only
   decorative/header spacing is compressed. */
@media (min-width: 761px) and (max-width: 1500px) and (max-height: 850px) {
  .app-wrapper { grid-template-rows: 78px minmax(0, 1fr); }
  .pos-header {
    height: 78px;
    min-height: 78px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 5px 8px;
  }
  .header-left,
  .header-right { flex-wrap: nowrap; gap: 4px; }
  .brand h2,
  .clock { display: none; }
  .staff-back-link,
  .pos-nav-tab,
  .header-btn,
  .staff-session-pill {
    min-height: 42px;
    padding: 7px 6px;
    font-size: 11px;
  }
  .staff-session-pill { max-width: 112px; }

  .pos-main { gap: 8px; padding: 8px; }
  .ticket-card { min-height: 0; }
  .ticket-header { padding: 7px 9px; }
  .ticket-meta { margin-bottom: 5px; font-size: 16px; }
  .type-btn { min-height: 44px; font-size: 17px; }
  .register-customer-info {
    gap: 5px 7px;
    margin-top: 5px;
    padding: 5px 7px;
  }
  .cust-info-field label { margin-bottom: 2px; font-size: 13px; }
  .register-customer-info .form-control-pos {
    min-height: 38px;
    padding: 5px 8px;
    font-size: 15px;
  }
  .ticket-items-container { min-height: 104px; }
  .ticket-table th { padding: 7px 8px; font-size: 13px; }
  .ticket-table td { padding: 8px; font-size: 16px; }
  .ticket-table td > strong { font-size: 17px; }
  .ticket-table small { margin-top: 3px; font-size: 15px; }
  .qty-mini { width: 36px; height: 36px; font-size: 18px; }
  .ticket-totals { padding: 6px 10px; font-size: 15px; }
  .total-row { margin: 2px 0; }
  .grand-total { margin-top: 4px; padding-top: 4px; font-size: 21px; }
  .ticket-actions { padding: 6px 9px; }
  .action-grid,
  .action-row { gap: 5px; }
  .ticket-btn { min-height: 42px; padding: 6px; font-size: 14px; }
  .btn-checkout { min-height: 54px; margin-top: 5px; font-size: 21px; }

  .category-scroll-container { gap: 7px; padding: 7px; }
  .menu-command-bar {
    grid-template-columns: minmax(230px, 1fr) auto minmax(220px, 1fr);
    gap: 5px;
    padding: 6px 7px 0;
  }
  .menu-load-status,
  .menu-retry-btn,
  .menu-shortcuts button,
  .menu-search-box { min-height: 38px; }
  .menu-load-status { padding: 5px 7px; font-size: 10px; }
  .menu-retry-btn,
  .menu-shortcuts button { padding: 5px 7px; font-size: 11px; }
  .menu-search-box input { font-size: 13px; }
  .menu-shortcuts { gap: 5px; }
  .menu-family-grid,
  .menu-subcategory-grid { gap: 7px; }
  .menu-family-btn { min-height: 68px; padding: 9px; font-size: 16px; }
  .category-tab { min-height: 72px; padding: 8px; }
  .category-tile { grid-template-columns: 34px minmax(0, 1fr); }
  .category-tile-icon { font-size: 28px; }
  .category-tile-label { font-size: 16px; }
  .category-tile-count { font-size: 13px; }
  .items-panel-card { padding: 8px; }
  .menu-item-btn { min-height: 112px; padding: 12px; }
  .menu-item-btn span { font-size: 18px; }
  .menu-item-btn strong { margin-top: 8px; font-size: 20px; }
}


/* ── Deliveries — the dispatcher's view (owner 2026-09-10) ───────────────── */
#deliveries-modal { padding: 0; }
.deliveries-content .modal-body {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}
.deliveries-toolbar { display: flex; gap: 12px; align-items: stretch; margin-bottom: 12px; }
.deliveries-toolbar .mini-action { min-width: 140px; font-size: 16px; }
.deliveries-roster {
  flex: 1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: #d4d8e0; font-size: 16px; font-weight: 900;
}
.deliveries-roster .driver-chip {
  padding: 6px 12px; border-radius: 999px; background: rgba(39,174,96,.18); color: var(--success);
  font-size: 15px; font-weight: 950;
}
.deliveries-roster .driver-chip.next-up { outline: 2px solid var(--success); }
.deliveries-roster .no-drivers { color: #ffb4aa; }
.deliveries-legend { color: var(--text-muted); font-size: 14px; font-weight: 800; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.deliveries-updated { margin-left: auto; }
.delivery-ready-pill {
  display: inline-block; padding: 4px 10px; border-radius: 5px;
  background: var(--success); color: #fff; font-size: 13px; font-weight: 950; letter-spacing: .04em;
}
.deliveries-tiles {
  /* Tiles grow with their content and the container scrolls. Without this the
     stretched auto rows settle at .board-tile's min-height and content overlaps. */
  grid-auto-rows: max-content;
  align-items: start;
}
.delivery-tile { cursor: default; min-height: 0; }
.delivery-tile.ready {
  border-left-color: var(--success);
  border-color: var(--success);
  box-shadow: 0 0 0 2px rgba(39,174,96,.35), 0 0 22px rgba(39,174,96,.35);
  animation: delivery-ready-pulse 1.6s ease-in-out infinite;
}
@keyframes delivery-ready-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(39,174,96,.35), 0 0 18px rgba(39,174,96,.25); }
  50%      { box-shadow: 0 0 0 3px rgba(39,174,96,.65), 0 0 30px rgba(39,174,96,.55); }
}
.delivery-tile.assigned { border-left-color: var(--blue); }
.delivery-tile.assigned.ready { animation: none; box-shadow: none; }
.delivery-tile.picked-up { opacity: .75; }
.delivery-ready-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 6px; font-size: 16px; font-weight: 950; letter-spacing: .04em;
  background: var(--success); color: #fff;
}
.delivery-ready-badge.not-ready { background: var(--card-2); color: var(--warning); }
.delivery-driver-line {
  margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border);
  font-size: 17px; font-weight: 950; color: #fff;
}
.delivery-driver-line .driver-name { color: #7fd1ff; }
.delivery-driver-line .waiting { color: var(--warning); font-size: 14px; font-weight: 800; }
.delivery-assign-row { display: flex; gap: 10px; align-items: stretch; margin-top: 12px; }
.delivery-assign-row select {
  flex: 1 1 0; min-height: 52px; padding: 8px 12px; font-size: 17px; font-weight: 900;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-2); color: #fff;
}
.delivery-assign-row .mini-action { flex: 0 0 auto; min-width: 130px; min-height: 52px; font-size: 16px; }
.delivery-assign-btn { background: var(--success) !important; color: #fff !important; border-color: var(--success) !important; }
.delivery-unassign-btn { border-color: var(--danger) !important; color: #ffb4aa !important; }
.delivery-tile-actions { display: flex; gap: 10px; margin-top: 10px; }
.delivery-tile-actions .mini-action { flex: 1 1 0; min-height: 44px; font-size: 14px; }
.delivery-tile-actions a.mini-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }

/* Half & half side picker (owner 2026-09-11: "why is there no option for
   custom half pizza?" — the per-topping control was invisible until a
   topping was already on the pie). */
.zpb-side-panel { border: 2px solid var(--line, #2a3550); border-radius: 10px; }
.zpb-side-panel.half-active { border-color: #f2a33c; box-shadow: 0 0 0 2px rgba(242,163,60,.25); }
.zpb-side-panel.half-active .zpb-label { color: #f2a33c; }

/* Half qualifiers on a live-menu pizza card (owner 2026-09-11). */
.qualifier-btn.qualifier-half { border-color: #f2a33c; }
.qualifier-btn.qualifier-half.active { background: #f2a33c; color: #1b1b1b; }

/* Six payment tabs incl. TEXT PAY LINK (owner 2026-09-12). */
.payment-method-selector.six-tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.pay-method-btn.pay-method-paylink { border-color: #2fa36b; }
.pay-method-btn.pay-method-paylink.active { background: #2fa36b; color: #fff; }

/* ── READY BY: ASAP / SCHEDULE (owner 2026-09-12) ─────────────────────── */
.ready-by-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}
.ready-by-label {
  color: var(--text-muted);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .04em;
  padding-right: 4px;
  white-space: nowrap;
}
.ready-by-btn.active {
  background: var(--warning);
  border-color: var(--warning);
  color: #1b1b1b;
}
.ready-by-picker {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  background: rgba(241,196,15,.10);
}
.ready-by-picker-label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}
.ready-by-picker input[type="datetime-local"] {
  width: 100%;
  min-height: 48px;
  font-size: 18px;
  font-weight: 800;
}
.ready-by-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.ready-by-chips .pill-btn { min-height: 42px; font-size: 14px; white-space: nowrap; }
.ready-by-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 11px;
  border: 2px solid var(--warning);
  border-radius: var(--radius);
  background: var(--warning);
  color: #1b1b1b;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
}
.completed-sale-scheduled { justify-content: center; font-size: 1.35rem; margin: 6px 0 10px; }
#completed-sale-modal, #tip-modal { z-index: 1100; }
.register-save-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 3px solid #f1c40f;
  border-radius: var(--radius);
  background: #c0392b;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
  position: relative;
  z-index: 1250;
}
.register-save-error-banner span { flex: 1; }
.register-save-error-close {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  padding: 0 4px;
}
.board-tag.scheduled { background: var(--warning); color: #1b1b1b; font-weight: 900; }
.receipt-scheduled { font-weight: 900; margin: 4px 0; }
@media (max-width: 1100px) {
  .ready-by-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── RECIPES panel (owner 2026-09-21) ──────────────────────────────────────
   The category wall's RECIPES tile and the panel behind it. Gold so a cook
   picks it out of the menu families at a glance — it is the one tile on that
   wall that is not food to sell. */
.recipes-family-btn {
  background: linear-gradient(160deg, #6b5310, #3d2f07);
  border-color: var(--warning);
  color: #ffe9a8;
}
.recipes-family-btn:hover { border-color: #fff; }

/* DRIVER PORTAL / TODAY'S PLAN tiles sit beside RECIPES on the family wall —
   the other non-food tiles, each its own colour so nobody rings one by mistake. */
.driver-portal-family-btn {
  background: linear-gradient(160deg, #0f3d5c, #072030);
  border-color: #7fd1ff;
  color: #d8f1ff;
}
.daily-plan-family-btn {
  background: linear-gradient(160deg, #0f4d2a, #062916);
  border-color: var(--success);
  color: #d6ffe4;
}
.driver-portal-family-btn:hover, .daily-plan-family-btn:hover { border-color: #fff; }

/* DRIVER LEAVING row + DELIVERED / DRIVER APP actions on a delivery tile */
.delivery-leaving-row { display: flex; gap: 10px; align-items: stretch; margin-top: 10px; flex-wrap: wrap; }
.delivery-leaving-row select, .delivery-leaving-row .delivery-leaving-name {
  flex: 1 1 140px; min-height: 52px; padding: 8px 12px; font-size: 17px; font-weight: 900;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-2); color: #fff;
}
.delivery-leaving-row .delivery-leaving-name::placeholder { color: var(--text-muted); font-weight: 700; }
.delivery-leaving-row .mini-action { flex: 0 0 auto; min-width: 170px; min-height: 52px; font-size: 16px; }
.delivery-leaving-btn { background: #e67e22 !important; color: #fff !important; border-color: #e67e22 !important; }
.delivery-delivered-btn { border-color: var(--success) !important; color: #b7f5c8 !important; }
.delivery-delivered-btn.primary { background: var(--success) !important; color: #fff !important; }
.delivery-app-btn { border-color: #7fd1ff !important; color: #d8f1ff !important; }
.delivery-tile-actions { flex-wrap: wrap; }
.delivery-tile-actions .mini-action { flex: 1 1 120px; }

/* DRIVER APP modal: the QR big enough to scan from across the counter */
.driver-app-content { max-width: 560px; }
.driver-app-body { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.driver-app-qr { width: 280px; height: 280px; background: #fff; border-radius: var(--radius); padding: 10px; display: flex; align-items: center; justify-content: center; }
.driver-app-qr svg { width: 100%; height: 100%; }
.driver-app-url { font-size: 13px; color: var(--text-muted); word-break: break-all; }
.driver-app-open { min-height: 56px; padding: 12px 18px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 16px; }

/* Embedded backend pages (driver portal, today's plan) */
.embed-panel-content { max-width: 1400px; width: 96vw; height: 92vh; }
.embed-panel-content .modal-body.embed-panel-body { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.embed-panel-actions { display: flex; gap: 10px; align-items: center; }
.embed-panel-actions .mini-action { min-height: 44px; font-size: 14px; }
.embed-panel-frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.daily-plan-fallback { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.daily-plan-fallback-title { font-size: 24px; font-weight: 950; color: var(--warning); display: flex; gap: 10px; align-items: center; }
.daily-plan-fallback .mini-action { min-height: 52px; padding: 10px 16px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

.device-readiness-content { max-width: 920px; }
.device-readiness-note { margin: 0 0 14px; padding: 12px 14px; border-left: 4px solid #4dd0e1; background: #20252f; color: #dfe4ec; font-weight: 700; line-height: 1.4; }
.device-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.device-status-card { min-height: 82px; padding: 12px 14px; border: 1px solid #48505e; border-radius: 10px; background: #181c24; display: flex; flex-direction: column; gap: 8px; }
.device-status-card strong { color: #fff; font-size: 16px; }
.device-state { font-size: 14px; font-weight: 800; }
.device-state.ready { color: #74e59f; }
.device-state.error { color: #ff8080; }
.device-state.checking { color: #80d8ff; }
.device-state.unknown { color: #ffd166; }
.device-test-section { margin-top: 12px; padding: 14px; border: 1px solid #48505e; border-radius: 10px; background: #20252f; }
.device-test-section h4 { margin: 0 0 8px; color: #fff; }
.device-test-section p, .device-test-section label { color: #dfe4ec; line-height: 1.4; }
.device-test-section label { display: flex; align-items: center; gap: 10px; min-height: 46px; font-weight: 700; }
.device-test-section input[type="checkbox"] { width: 26px; height: 26px; flex: 0 0 auto; }
.device-barcode-input { width: 100%; min-height: 58px; padding: 12px 14px; border: 2px solid #4dd0e1; border-radius: 10px; background: #11151c; color: #fff; font-size: 18px; font-weight: 800; }
.device-test-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.device-test-actions button { min-height: 54px; padding: 10px 16px; border: 2px solid #4dd0e1; border-radius: 10px; background: #17333a; color: #fff; font-weight: 900; cursor: pointer; }
@media (max-width: 760px) {
  .device-status-grid, .recipes-view-tabs { grid-template-columns: 1fr; }
}

.recipes-content { max-width: 900px; }
.recipes-note { font-size: 15px; font-weight: 700; color: #dfe4ec; line-height: 1.35; }
.recipes-view-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.recipes-view-tab { min-height: 54px; border: 2px solid #505968; border-radius: 10px; background: #20252f; color: #fff; font-weight: 900; font-size: 15px; cursor: pointer; }
.recipes-view-tab.active { border-color: #f1c40f; background: #4d4214; color: #fff4a8; }
.recipes-coverage { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.recipes-coverage span { border: 1px solid #566070; border-radius: 999px; padding: 7px 11px; background: #20252f; font-size: 13px; font-weight: 800; }
.recipes-coverage .ready { border-color: #2ecc71; color: #aef3c9; }
.recipes-coverage .warning { border-color: #f39c12; color: #ffd68c; }
.recipes-list { display: flex; flex-direction: column; gap: 18px; }
.recipes-group { display: flex; flex-direction: column; gap: 10px; }
.recipe-plan-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 66px; padding: 12px 14px; border: 1px solid #48505e; border-radius: 10px; background: #20252f; }
.recipe-plan-row div { display: flex; flex-direction: column; gap: 4px; }
.recipe-plan-row strong { font-size: 16px; color: #fff; }
.recipe-plan-row span { font-size: 13px; color: #c3cad5; }
.recipe-plan-row b { color: #f1c40f; text-align: right; }
.recipes-group-title {
  margin: 0; padding-bottom: 6px;
  border-bottom: 2px solid var(--warning);
  color: var(--warning);
  font-size: 15px; font-weight: 950; letter-spacing: .09em;
}
.recipe-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border: 2px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
}
.recipe-row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.recipe-row-name { color: #fff; font-size: 19px; font-weight: 900; line-height: 1.2; }
.recipe-row-yield { color: #b9c2cf; font-size: 14px; font-weight: 700; }
.recipe-print-btn {
  flex: 0 0 auto;
  min-width: 150px; min-height: 62px;
  padding: 10px 20px;
  border: 3px solid var(--warning);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #6b5310, #3d2f07);
  color: #ffe9a8;
  font-size: 20px; font-weight: 950; letter-spacing: .05em;
  cursor: pointer;
}
.recipe-print-btn:hover { border-color: #fff; color: #fff; }
.recipe-print-btn:active { transform: translateY(1px); }

@media (max-width: 720px) {
  .recipe-row { flex-direction: column; align-items: stretch; }
  .recipe-print-btn { width: 100%; }
}

/* Compost card (10/4): the three readiness signs as big tappable checks */
.pos-check { display: flex; align-items: center; gap: 8px; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--border, #2a2a2a); border-radius: 8px; cursor: pointer; }
.pos-check input { width: 22px; height: 22px; }


/* OWNER 10/23: group screen = only the group + BACK / HOME at the bottom */
.menu-drill-bar { display: none; }
body.menu-drill .menu-drill-bar {
  display: flex; gap: 12px; position: sticky; bottom: 0; z-index: 6;
  padding: 10px 12px; background: #0f1720; border-top: 2px solid #f1c40f;
}
body.menu-drill .menu-drill-btn {
  flex: 1; min-height: 60px; font-size: 22px; font-weight: 800; letter-spacing: .04em;
  border-radius: 12px; border: 2px solid #627082; background: #222a35; color: #fff;
}
body.menu-drill .menu-drill-home { background: #f1c40f; border-color: #f1c40f; color: #1a1a2e; }
body.menu-drill .menu-shortcuts,
body.menu-drill #quick-keys-bar,
body.menu-drill .menu-search-box { display: none !important; }

/* ── OWNER 10/25: Bigger Members Board, Clear Variance Choice Tiles,
   Expected Cash Breakdown, Owner Adjust/Close Locked Drawer & Hourly Checklist ── */
#staff-modal .modal-content {
  max-width: 1340px !important;
  width: 96vw !important;
}
#staff-modal .modal-header-bar h3 {
  font-size: 1.45rem;
  font-weight: 900;
}
#staff-modal .manager-card-col {
  padding: 18px;
  border-radius: 14px;
}
#staff-modal .manager-card-col h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
#staff-modal .btn-manager-action {
  min-height: 58px;
  font-size: 1.08rem;
  font-weight: 800;
  border-radius: 12px;
}
#staff-modal .form-control-pos {
  min-height: 54px;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 10px 14px;
}

.drawer-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.drawer-breakdown-pill {
  padding: 10px 12px;
  border-radius: 12px;
  background: #141922;
  border: 1.5px solid #2d3646;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-breakdown-pill .lbl {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9aa6b8;
}
.drawer-breakdown-pill .val {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
}
.drawer-breakdown-pill.delivery .val { color: #ffd166; }
.drawer-breakdown-pill.expected .val { color: #52e568; }

.drawer-reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 820px) {
  .drawer-reason-grid { grid-template-columns: 1fr; }
}
.drawer-reason-tile {
  min-height: 64px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid #394252;
  background: #181d26;
  color: #f3f6fa;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  transition: all .15s ease;
}
.drawer-reason-tile strong {
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}
.drawer-reason-tile small {
  font-size: 13px;
  font-weight: 600;
  color: #a8b3c4;
  line-height: 1.2;
}
.drawer-reason-tile:hover {
  border-color: #f1c40f;
  background: #202734;
}
.drawer-reason-tile.selected {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.18);
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.35);
}

.drawer-locked-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid #f39c12;
  background: linear-gradient(160deg, rgba(243, 156, 18, 0.14), rgba(20, 25, 34, 0.96));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-locked-box h5 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffd166;
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-locked-summary {
  font-size: 1rem;
  font-weight: 700;
  color: #eef2f7;
  line-height: 1.4;
}
.drawer-delivery-quick-btn {
  min-height: 54px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 2px solid #ffd166;
  background: #3d3110;
  color: #fff4b8;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}
.drawer-delivery-quick-btn:hover {
  background: #524114;
  border-color: #ffffff;
}

.hourly-checklist-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  border: 2px solid #2d3848;
  background: #141820;
}
.hourly-checklist-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.hourly-slot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.hourly-slot-tab {
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid #354052;
  background: #1c222d;
  color: #dce3ee;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
}
.hourly-slot-tab.active {
  border-color: #f1c40f;
  background: #423510;
  color: #fff3b0;
}
.hourly-slot-tab.due-now {
  border-color: #2ecc71;
}
.hourly-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 820px) {
  .hourly-task-grid { grid-template-columns: 1fr; }
}
.hourly-task-tile {
  min-height: 66px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #323c4d;
  background: #1b212c;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: all .15s ease;
}
.hourly-task-tile:hover {
  border-color: #63b3ed;
  background: #222a38;
}
.hourly-task-tile.done {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.16);
}
.hourly-task-check {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid #6c7a91;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
  background: #11151d;
  color: transparent;
}
.hourly-task-tile.done .hourly-task-check {
  border-color: #2ecc71;
  background: #2ecc71;
  color: #0b1710;
}
.hourly-task-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hourly-task-text strong {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}
.hourly-task-text small {
  font-size: 13.5px;
  color: #a8b3c4;
}

/* Owner 10/28: one FOCACCIA / MUFFIN button, then pick the flavor */
.bakery-fold-tile { background: linear-gradient(120deg, #8a5a2b, #b8813f); color: #fff; }
.bakery-flavor-back { grid-column: 1 / -1; min-height: 56px; background: #34495e; color: #fff; }

/* Global menu search (owner 11/4) */
.header-search-btn { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-weight: 800; cursor: pointer; }
.global-search-overlay { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.6); display: flex; align-items: flex-start; justify-content: center; padding-top: 70px; }
.global-search-overlay[hidden] { display: none; }
.global-search-card { width: min(720px, 94vw); max-height: 80vh; overflow: auto; background: #1b2230; border-radius: 14px; padding: 14px; }
.global-search-row { display: flex; gap: 10px; margin-bottom: 10px; }
.global-search-row input { flex: 1; min-height: 48px; font-size: 20px; padding: 0 12px; border-radius: 10px; border: 1px solid #44506a; background: #0f1420; color: #fff; }
.global-search-row button { min-width: 90px; font-weight: 800; }
.global-search-results { display: grid; gap: 8px; }

/* ── Organized & Practical Register Header / Grid Layout (owner 11/7) ────────
   1. 5 Quick Keys sit in a 5-column row with zero blank gaps.
   2. 8 primary departments + MORE (9 buttons) fit in 2 compact rows (5 cols)
      instead of stranding + MORE on a 3rd row.
   3. 5 Pizza subcategories (Whole Pizzas / Slices / Calzones / Strombolis /
      Flatbreads) stay on 1 single 5-column row so Flatbreads never wraps onto
      an orphan row and #items-grid gets ~210px more vertical height. */
.categories-panel .menu-command-bar {
  gap: 6px;
  padding: 6px 10px 0;
}
.categories-panel .quick-keys-bar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 4px 10px 0;
}
.categories-panel .category-scroll-container {
  gap: 8px;
  padding: 8px 10px;
}
.categories-panel .menu-family-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.categories-panel .menu-subcategory-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 1500px) {
  .categories-panel .menu-family-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .categories-panel .menu-subcategory-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
