/* ==========================================================================
   Hospitality OS — console additions
   Layers over dashboard.css for the parts the static mockup never had:
   the branch switcher, flash messages, live POS/KDS interaction and the
   empty states that appear when a real branch simply has no rows yet.
   ========================================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ *
 * Topbar: branch switcher                                            *
 * ------------------------------------------------------------------ */
.branch-switch,
.branch-badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--heading);
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
}

.branch-switch svg,
.branch-badge svg { width: 15px; height: 15px; stroke-width: 1.8; color: var(--primary); flex: none; }

.branch-switch select {
  border: 0; background: transparent; outline: none;
  font: inherit; color: inherit; cursor: pointer;
  max-width: 170px; padding-right: 2px;
}

/* ------------------------------------------------------------------ *
 * Flash messages                                                     *
 * ------------------------------------------------------------------ */
.flash {
  margin: 0 clamp(16px, 3vw, 32px);
  padding: 11px 15px;
  border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500;
  border: 1px solid transparent;
}
.flash-ok  { background: var(--secondary-wash); color: var(--secondary-ink); border-color: #CBE4D9; }
.flash-bad { background: var(--clay-wash);      color: var(--clay-ink);      border-color: #EFD3CC; }

/* Sign-out button tucked into the sidebar user block. */
.nav-user__out { margin-left: auto; display: flex; }
.nav-user__out button {
  display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0;
  background: transparent; border: 0; border-radius: 8px;
  color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-user__out button:hover { background: var(--cream); color: var(--heading); }
.nav-user__out svg { width: 16px; height: 16px; stroke-width: 1.8; }

/* ------------------------------------------------------------------ *
 * Empty states — a real branch can legitimately have nothing to show  *
 * ------------------------------------------------------------------ */
.empty {
  display: grid; place-items: center; gap: 8px;
  padding: 34px 20px; text-align: center;
  color: var(--muted);
}
.empty svg { width: 26px; height: 26px; stroke-width: 1.5; color: var(--border); }
.empty strong { display: block; color: var(--heading); font-size: 14px; font-weight: 600; }
.empty span { font-size: 13px; max-width: 34ch; line-height: 1.5; }

/* ------------------------------------------------------------------ *
 * POS                                                                 *
 * ------------------------------------------------------------------ */
.pos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
  gap: 18px; align-items: start;
}
@media (max-width: 1080px) { .pos-grid { grid-template-columns: 1fr; } }

.menu-cats { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 16px 0; }
.menu-cats button {
  padding: 6px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  font: inherit; font-size: 12.5px; font-weight: 500; color: var(--text);
  transition: background .15s, color .15s, border-color .15s;
}
.menu-cats button:hover { border-color: var(--primary-light); color: var(--primary-ink); }
.menu-cats button.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.menu-grid {
  display: grid; gap: 10px; padding: 14px 16px 16px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.menu-tile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 11px 12px; text-align: left; cursor: pointer;
  background: var(--grad-card); border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); font: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.menu-tile:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.menu-tile:active { transform: translateY(1px); }
.menu-tile[disabled] { opacity: .45; cursor: not-allowed; }
.menu-tile .mt-name { font-size: 13px; font-weight: 600; color: var(--heading); line-height: 1.3; }
.menu-tile .mt-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.menu-tile .mt-price { font-size: 13.5px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.menu-tile .mt-margin { font-size: 11px; color: var(--muted); }

/* Ticket panel */
.ticket-lines { display: flex; flex-direction: column; }
.ticket-line {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 9px 16px; border-bottom: 1px solid var(--border-soft);
}
.ticket-line:last-child { border-bottom: 0; }
.ticket-line .tl-name { font-size: 13px; font-weight: 500; color: var(--heading); }
.ticket-line .tl-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.ticket-line .tl-amt { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--heading); }

.qty-stepper { display: inline-flex; align-items: center; gap: 2px; }
.qty-stepper button {
  width: 24px; height: 24px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 7px; cursor: pointer; color: var(--text);
}
.qty-stepper button:hover { border-color: var(--primary); color: var(--primary); }
.qty-stepper svg { width: 12px; height: 12px; stroke-width: 2.4; }
.qty-stepper .qv {
  min-width: 22px; text-align: center;
  font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}

.pay-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; }
.pay-row .btn { flex: 1 1 auto; }

/* ---- Split bills ---- */
.pay-box { border-top: 1px solid var(--border-soft); }
.pay-box .pay-row { padding-top: 10px; }
.pay-box__row { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 16px 0; }
.pay-box__row .field:first-child { flex: 1 1 110px; }
.field-label { font-size: 11.5px; font-weight: 600; color: var(--muted); }

/* A segmented control: one of four ways to take the next payment. */
.seg {
  display: inline-flex; height: 34px; padding: 2px;
  background: var(--section); border: 1px solid var(--border); border-radius: var(--r-xs);
}
.seg button {
  padding: 0 11px; border-radius: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--text); white-space: nowrap;
  transition: background .15s, color .15s;
}
.seg button:hover:not(:disabled) { color: var(--heading); }
.seg button.on { background: var(--surface); color: var(--heading); box-shadow: var(--shadow-xs); font-weight: 600; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }

.split-even {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 16px 0; font-size: 13px; color: var(--text);
}
.split-hint { padding: 10px 16px 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.split-amount { padding: 12px 16px 0; }
.split-amount input { width: 160px; }

.ticket-line.is-paid .tl-name,
.ticket-line.is-paid .tl-amt { color: var(--muted); }
.tl-paid {
  font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px;
  background: var(--secondary-wash); color: var(--secondary-ink);
}
.tl-pick { width: 18px; height: 18px; margin: 0 4px; accent-color: var(--primary); cursor: pointer; }
.tl-pick-qty {
  height: 28px; padding: 0 6px;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface); font: inherit; font-size: 12px; color: var(--heading);
}

/* ---- QR orders waiting for a person to confirm them ---- */
.s-hold { background: var(--clay-wash); color: var(--clay-ink); }

.qr-hold {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 16px 6px; padding: 11px 13px;
  background: var(--clay-wash); border-radius: var(--r-sm);
  color: var(--clay-ink); font-size: 12.5px; line-height: 1.5;
}
.qr-hold svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke-width: 2; }
.qr-hold strong { display: block; font-size: 13px; }

/* ------------------------------------------------------------------ *
 * KDS                                                                 *
 * ------------------------------------------------------------------ */
.kds-board {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.kds-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kds-col__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 13px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
}
.kds-col__head strong { font-size: 13px; font-weight: 600; color: var(--heading); }
.kds-col__head .n {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: var(--primary-wash); color: var(--primary-ink);
}

.kds-ticket {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-sm); padding: 11px 13px;
  display: flex; flex-direction: column; gap: 7px;
  box-shadow: var(--shadow-xs);
}
.kds-ticket.is-late { border-left-color: var(--clay); background: var(--clay-wash); }
.kds-ticket__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kds-ticket__top strong { font-size: 13px; color: var(--heading); }
.kds-ticket__timer { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.kds-ticket.is-late .kds-ticket__timer { color: var(--clay-ink); }
.kds-ticket__item { font-size: 13.5px; font-weight: 600; color: var(--heading); line-height: 1.35; }
.kds-ticket__note { font-size: 11.5px; color: var(--gold-ink); }
.kds-ticket__mods { font-size: 11.5px; color: var(--muted); }
.kds-ticket .btn { width: 100%; justify-content: center; }

/* ------------------------------------------------------------------ *
 * Floor plan                                                          *
 * ------------------------------------------------------------------ */
.floor-area + .floor-area { margin-top: 18px; }
.floor-area__name {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 9px;
}
.floor-tables {
  display: grid; gap: 11px;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}
.floor-table {
  position: relative; cursor: pointer; text-align: left; font: inherit;
  padding: 12px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--tstat, var(--secondary));
  display: flex; flex-direction: column; gap: 3px;
  transition: box-shadow .15s, transform .1s;
}
.floor-table:hover { box-shadow: var(--shadow-sm); }
.floor-table:active { transform: translateY(1px); }
.floor-table .ft-code { font-size: 15px; font-weight: 700; color: var(--heading); }
.floor-table .ft-seats { font-size: 11.5px; color: var(--muted); }
.floor-table .ft-stat { font-size: 12px; font-weight: 600; color: var(--tstat); }
.floor-table .ft-time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.floor-table.is-selected { outline: 2px solid var(--primary); outline-offset: 2px; }
.floor-table .ft-flag {
  margin-top: 3px; align-self: flex-start;
  font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  background: var(--clay-wash); color: var(--clay-ink);
}

/* The selected table's ordering code. */
.qr-block {
  display: flex; gap: 16px; align-items: flex-start;
  margin: 0 16px 16px; padding: 14px;
  border: 1px solid var(--border-soft); border-radius: var(--r-sm); background: var(--grad-card);
}
.qr-code { flex: none; width: 112px; padding: 4px; background: #fff; border-radius: 8px; }
.qr-code svg { width: 100%; height: auto; }
.qr-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12.5px; line-height: 1.5; color: var(--text); }
.qr-meta strong { font-size: 13px; color: var(--heading); }
.qr-link { color: var(--primary-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.qr-warn { padding: 7px 9px; border-radius: 7px; background: var(--gold-wash); color: var(--gold-ink); font-size: 12px; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
@media (max-width: 420px) {
  .qr-block { flex-direction: column; }
}

/* ------------------------------------------------------------------ *
 * Shared bits                                                         *
 * ------------------------------------------------------------------ */
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  height: 34px; padding: 0 10px; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--r-xs);
  background: var(--surface); font: inherit; font-size: 13px; color: var(--heading);
}
.field textarea { height: auto; padding: 8px 10px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-wash);
}
.field-err { color: var(--clay-ink); font-size: 11.5px; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 0 0 14px;
}
.toolbar .spacer { margin-left: auto; }
.search-input {
  height: 34px; padding: 0 12px; min-width: 180px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font: inherit; font-size: 13px;
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-wash); }

.pager { display: flex; justify-content: center; padding: 12px 16px; }
.pager nav { display: flex; gap: 6px; align-items: center; font-size: 13px; }

/* A busy screen shouldn't flicker while Livewire round-trips. */
[wire\:loading] { opacity: .55; transition: opacity .12s; }

/* ------------------------------------------------------------------ *
 * AI Automation Layer (Phase 2)                                      *
 * ------------------------------------------------------------------ */
.ai-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 11px; border-radius: 999px;
  background: var(--section); border: 1px solid var(--border);
  font-size: 12px; font-weight: 500; color: var(--muted);
  white-space: nowrap;
}
.ai-pill svg { width: 14px; height: 14px; stroke-width: 1.8; }
.ai-pill.is-live {
  background: var(--primary-wash); border-color: #C9DFE1; color: var(--primary-ink);
}
.ai-pill.is-live svg { color: var(--primary); }
.ai-pill__spend {
  padding-left: 8px; margin-left: 2px;
  border-left: 1px solid rgba(46,110,118,.25);
  font-variant-numeric: tabular-nums; opacity: .8;
}

.creative-row {
  display: flex; gap: 10px; align-items: baseline;
  padding: 5px 0; font-size: 13px; color: var(--heading);
}
.creative-row .l {
  flex: none; width: 66px;
  font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted);
}
.creative-body {
  margin: 10px 0 0; padding: 12px 14px;
  background: var(--section); border-radius: var(--r-sm);
  font-size: 13px; line-height: 1.6; color: var(--text);
  white-space: pre-wrap;
}

/* Menu-engineering proposals */
.rec-card {
  padding: 12px 14px; border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); background: var(--surface);
  margin-bottom: 10px;
}
.rec-card__top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.rec-card__name { font-size: 13.5px; font-weight: 600; color: var(--heading); }
.rec-card__move { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rec-card__why { margin: 6px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--text); }
.rec-card__quad {
  display: inline-block; margin-top: 7px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.q-star         { background: var(--secondary-wash); color: var(--secondary-ink); }
.q-plough_horse { background: var(--gold-wash);      color: var(--gold-ink); }
.q-puzzle       { background: var(--primary-wash);   color: var(--primary-ink); }
.q-dog          { background: var(--clay-wash);      color: var(--clay-ink); }

/* ==========================================================================
   Simplification pass
   The console had grown two headers per screen, tables that clipped their own
   buttons, and a mobile layout that buried the content under four full-width
   KPI cards. This section is the fix.
   ========================================================================== */

/* ------------------------------------------------------------------ *
 * Topbar — now the only place a screen is titled                     *
 * ------------------------------------------------------------------ */
.topbar-l { min-width: 0; flex: 1 1 auto; }
.topbar-l h1,
.topbar-l p {
  /* Truncate rather than wrap: a title that grows to three lines pushes the
     actual work off the screen, which is what it was doing on mobile. */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-r { flex: 0 0 auto; }

/* The screen's primary action, promoted into the topbar. */
.topbar-action { display: inline-flex; align-items: center; gap: 7px; }

/* ------------------------------------------------------------------ *
 * Page body — the second header is gone, so the content starts here  *
 * ------------------------------------------------------------------ */
.page > .kpis:first-child,
.page > .toolbar:first-child { margin-top: 0; }

/* A short, optional line of context under the topbar. Replaces the old
   eyebrow + title + sub stack that repeated what the topbar already said. */
.page-note {
  margin: 0 0 16px;
  font-size: 13px; line-height: 1.5; color: var(--muted);
  max-width: 78ch;
}

/* ------------------------------------------------------------------ *
 * Tables — scroll instead of clipping                                *
 * ------------------------------------------------------------------ */
.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Hint that there is more to the right without a scrollbar always showing. */
  background:
    linear-gradient(to right, var(--surface) 30%, rgba(255,255,255,0)) left / 24px 100% no-repeat,
    linear-gradient(to left,  var(--surface) 30%, rgba(255,255,255,0)) right / 24px 100% no-repeat;
}
.tbl-wrap .tbl { min-width: 560px; }

.tbl th, .tbl td { vertical-align: middle; white-space: nowrap; }
/* The name column is the one thing allowed to wrap. */
.tbl td.nm { white-space: normal; min-width: 148px; }
/* Actions always sit hard right and never wrap onto a second line. */
.tbl td.actions { text-align: right; white-space: nowrap; }
.tbl td.actions .btn + .btn { margin-left: 6px; }

/* Secondary text inside a cell, so rows keep an even height. */
.tbl .cell-sub {
  display: block; margin-top: 2px;
  font-size: 11.5px; line-height: 1.35; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 210px;
}

/* ------------------------------------------------------------------ *
 * Toolbars always sit inside the content rhythm                      *
 * ------------------------------------------------------------------ */
.toolbar {
  padding: 0 0 14px;
  align-items: center;
  row-gap: 10px;
}
.toolbar > .chips { flex-wrap: wrap; }

/* ------------------------------------------------------------------ *
 * Mobile — the device a manager actually holds during service        *
 * ------------------------------------------------------------------ */
@media (max-width: 760px) {
  /* The subtitle is decoration; the title and the controls are not. */
  .topbar { padding: 11px 14px; gap: 10px; }
  .topbar-l p { display: none; }
  .topbar-l h1 { font-size: 17px; }
  .topbar-r { gap: 8px; }

  .branch-switch { height: 32px; padding: 0 9px; }
  .branch-switch select { max-width: 88px; font-size: 12.5px; }
  .branch-badge { display: none; }

  /* Two up, not one — four stacked cards buried the content. */
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .kpi { padding: 12px 13px; border-radius: var(--r-sm); }
  .kpi-val { font-size: 20px; }
  .kpi-lbl { font-size: 11.5px; }
  .kpi-top { margin-bottom: 6px; }
  .kpi-ico { width: 28px; height: 28px; }

  .scroll { padding: 16px 14px 32px; }
  .card-head { padding: 13px 14px; }
  .pad { padding: 13px 14px; }

  .pos-grid { gap: 14px; }
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .kds-board { grid-template-columns: 1fr; }
  .floor-tables { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }

  /* Stacked forms rather than a cramped row of fields. */
  .inline-form { flex-direction: column; align-items: stretch; }
  .inline-form .field { width: auto !important; }
  .inline-form .btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .ai-pill__spend { display: none; }
}

/* ------------------------------------------------------------------ *
 * Toasts — every action in the console now confirms itself           *
 * ------------------------------------------------------------------ */
#toasts {
  position: fixed; z-index: 200;
  right: 18px; bottom: 18px;
  display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none;
}
@media (max-width: 760px) {
  #toasts { right: 12px; left: 12px; bottom: 12px; }
}

.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 10px;
  min-width: 230px; max-width: 380px;
  padding: 11px 13px;
  background: var(--heading); color: #fff;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  font-size: 13px; line-height: 1.45;
  animation: toast-in .22s cubic-bezier(.2,.7,.3,1);
}
.toast.is-leaving { animation: toast-out .18s ease forwards; }
.toast svg { width: 15px; height: 15px; flex: none; margin-top: 1px; stroke-width: 2; }
.toast.is-ok svg  { color: var(--secondary-light); }
.toast.is-bad     { background: var(--clay-ink); }
.toast__close {
  margin-left: auto; padding: 0 2px;
  background: none; border: 0; color: rgba(255,255,255,.65);
  cursor: pointer; font-size: 15px; line-height: 1;
}
.toast__close:hover { color: #fff; }

@keyframes toast-in  { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(4px); } }

/* Respect a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  .toast, .toast.is-leaving { animation: none; }
}

/* ------------------------------------------------------------------ *
 * Sidebar: the daily five, then everything else folded away          *
 * ------------------------------------------------------------------ */
.nav-more { margin-top: 6px; }

.nav-more > summary {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 13px; margin: 0 0 2px;
  border-radius: var(--r-xs);
  color: var(--text);
  font-size: 13.5px; font-weight: 450;
  cursor: pointer; list-style: none;
  transition: background .15s, color .15s;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary:hover { background: var(--cream); color: var(--heading); }
.nav-more > summary svg:first-of-type { width: 17px; height: 17px; stroke-width: 1.7; flex: none; }
.nav-more > summary span { flex: 1; }
/* The chevron: points right when closed, down when open. */
.nav-more > summary svg:last-of-type {
  width: 14px; height: 14px; stroke-width: 2; opacity: .55;
  transform: rotate(90deg); transition: transform .18s ease;
}
.nav-more[open] > summary svg:last-of-type { transform: rotate(-90deg); }
.nav-more[open] > summary { color: var(--heading); }

.nav-more .nav-label { margin-top: 12px; }
.nav-more .nav-item { padding-left: 13px; }

@media (prefers-reduced-motion: reduce) {
  .nav-more > summary svg:last-of-type { transition: none; }
}

/* ------------------------------------------------------------------ *
 * Booking list — reservations, without the column pressure           *
 * ------------------------------------------------------------------ */
.booking-list { display: flex; flex-direction: column; }

.booking {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 132px 108px auto;
  align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.booking:last-child { border-bottom: 0; }
.booking:hover { background: var(--cream); }

.booking__time {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15;
}
.booking__time strong {
  font-size: 14.5px; font-weight: 600; color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.booking__time span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.booking__who { min-width: 0; }
.booking__who strong {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--heading);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.booking__who span {
  display: block; margin-top: 1px; font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.booking__table select {
  width: 100%; height: 30px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: var(--r-xs);
  background: var(--surface); font: inherit; font-size: 12.5px; color: var(--heading);
}
.booking__table select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-wash);
}

.booking__status { font-size: 12.5px; white-space: nowrap; }
.booking__do { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }

/* On a phone the row becomes two: details above, actions below. */
@media (max-width: 760px) {
  .booking {
    grid-template-columns: 52px minmax(0, 1fr);
    /* Status gets its own row: sharing one with the buttons left it squeezed
       into the 52px time column and overlapped by them. */
    grid-template-areas:
      "time who"
      "tbl  tbl"
      "stat stat"
      "do   do";
    row-gap: 8px; padding: 12px 14px;
  }
  .booking__time   { grid-area: time; }
  .booking__who    { grid-area: who; }
  .booking__table  { grid-area: tbl; }
  .booking__status { grid-area: stat; }
  .booking__do     { grid-area: do; }
  .booking__do:empty { display: none; }
  .booking__do .btn { flex: 1; justify-content: center; }
}

/* ------------------------------------------------------------------ *
 * Global search — one box that finds the thing you are holding       *
 * ------------------------------------------------------------------ */
[x-cloak] { display: none !important; }

.gsearch { position: relative; }

.gsearch__box {
  display: flex; align-items: center; gap: 8px;
  height: 36px; width: 236px; padding: 0 11px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s, width .18s ease;
}
.gsearch__box.is-open {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-wash);
  width: 320px;
}
.gsearch__box > svg { width: 15px; height: 15px; stroke-width: 1.9; color: var(--muted); flex: none; }
.gsearch__box.is-open > svg { color: var(--primary); }

.gsearch__box input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; outline: none;
  font: inherit; font-size: 13px; color: var(--heading);
}
.gsearch__box input::placeholder { color: var(--muted); }
/* The browser's own clear affordance duplicates ours. */
.gsearch__box input::-webkit-search-cancel-button { display: none; }

.gsearch__kbd {
  flex: none; padding: 2px 5px; border-radius: 5px;
  background: var(--section); border: 1px solid var(--border-soft);
  font-family: inherit; font-size: 10.5px; color: var(--muted);
}
.gsearch__clear {
  flex: none; width: 18px; height: 18px; padding: 0;
  border: 0; border-radius: 50%; background: var(--section);
  color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer;
}
.gsearch__clear:hover { background: var(--border); color: var(--heading); }

/* ---- Results panel ---- */
.gsearch__panel {
  position: absolute; z-index: 60;
  top: calc(100% + 8px); right: 0;
  width: 400px; max-height: 62vh; overflow-y: auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}

.gsearch__group {
  padding: 9px 10px 4px;
  font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
}

.gsearch__hit {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-xs);
  text-decoration: none; color: inherit;
}
.gsearch__hit.is-on { background: var(--primary-wash); }

.gsearch__icon {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--section); color: var(--primary);
}
.gsearch__hit.is-on .gsearch__icon { background: var(--surface); }
.gsearch__icon svg { width: 15px; height: 15px; stroke-width: 1.8; }

.gsearch__text { min-width: 0; flex: 1; }
.gsearch__text strong {
  display: block; font-size: 13px; font-weight: 600; color: var(--heading);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gsearch__text span {
  display: block; margin-top: 1px; font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.gsearch__enter { flex: none; opacity: 0; font-size: 12px; color: var(--primary-ink); }
.gsearch__hit.is-on .gsearch__enter { opacity: 1; }

.gsearch__hint { padding: 14px 12px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.gsearch__hint p { margin: 0; }
.gsearch__hint strong { color: var(--heading); }
.gsearch__hint-keys { margin-top: 8px !important; font-size: 11.5px; }
.gsearch__hint-keys kbd {
  display: inline-block; margin-right: 3px; padding: 1px 5px;
  border-radius: 4px; background: var(--section); border: 1px solid var(--border-soft);
  font-family: inherit; font-size: 10.5px;
}

.gsearch__loading {
  padding: 9px 12px; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--border-soft);
}

/* On a phone the panel is the width of the screen, anchored under the topbar. */
@media (max-width: 760px) {
  .gsearch__box { width: 36px; padding: 0; justify-content: center; }
  .gsearch__box > svg { margin: 0; }
  .gsearch__box input, .gsearch__kbd { display: none; }
  .gsearch__box.is-open {
    position: fixed; top: 8px; left: 12px; right: 12px;
    width: auto; height: 40px; padding: 0 12px;
    justify-content: flex-start; z-index: 70;
  }
  .gsearch__box.is-open input { display: block; }
  .gsearch__panel {
    position: fixed; top: 56px; left: 12px; right: 12px;
    width: auto; max-height: calc(100vh - 76px);
  }
}

/* The panel's fade, as CSS rather than x-transition — see the note in
   global-search.blade.php for why Alpine's version cannot be used here. */
.gsearch__panel { animation: gsearch-in .12s ease-out; }
@keyframes gsearch-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .gsearch__panel { animation: none; } }
