/* Tabliqo console: shell, service screens (orders, tables, till, kitchen), back office. */
.boot { display: grid; place-items: center; min-height: 60vh; }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }

/* ---- Sidebar ------------------------------------------------------------- */
.side { background: var(--awning); color: #fff; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 18px 12px 14px; gap: 2px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 4px; font: 750 21px var(--display); letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.venue { margin: 10px 4px 14px; padding: 10px 12px; border-radius: 10px; background: var(--awning-2); font-size: 14px; color: var(--awning-text); line-height: 1.35; }
.venue b { display: block; color: #fff; font-size: 15px; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav .group { margin: 14px 12px 4px; font-size: 13px; font-weight: 650; color: #8fb3a6; }
.nav .group:first-child { margin-top: 0; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--awning-text); text-decoration: none; font-weight: 600; min-height: 42px; }
.nav a:hover { background: var(--awning-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--chalk); color: var(--awning); }
.nav svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav .badge { margin-left: auto; background: var(--mango); color: var(--ink); font-weight: 800; border-radius: 99px; min-width: 24px; text-align: center; padding: 0 7px; font-size: 13px; }
.side .who { margin-top: auto; padding: 14px 8px 0; font-size: 14px; color: var(--awning-text); }
.side .who b { display: block; color: #fff; }
.side .who .link { color: #f7c56b; }

/* ---- Top bar --------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 10px 22px; background: rgba(242, 244, 243, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); min-height: 64px; }
.topbar h1 { font-size: 22px; }
.topbar .live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--slate); }
.content { padding: 22px; max-width: 1360px; margin: 0 auto; }
#view:focus { outline: none; }
.mobile-brand { display: none; }

.pagehead { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pagehead h2 { font-size: 28px; }
.pagehead p { color: var(--slate); }

/* ---- Dashboard ------------------------------------------------------------- */
.dash { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.dash > * { min-width: 0; }
.today { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); background: var(--chalk); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.today > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.today > div:first-child { border-left: 0; background: var(--awning); color: #fff; }
.today .l { font-size: 14px; font-weight: 600; color: var(--slate); }
.today > div:first-child .l { color: var(--awning-text); }
.today .v { font: 750 30px/1.1 var(--display); margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.today > div:first-child .v { font-size: 40px; }
.today .s { font-size: 13.5px; color: var(--slate); margin-top: 4px; }
.today > div:first-child .s { color: var(--awning-text); }
.panel { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h3 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; }
.panel h3 .link { margin-left: auto; font-family: var(--text); font-size: 14px; }
.span-8 { grid-column: span 8; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-12 { grid-column: 1 / -1; }
.channels { display: flex; flex-direction: column; gap: 14px; }
.channel .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.channel .track { height: 10px; border-radius: 5px; background: var(--fog); overflow: hidden; margin-bottom: 4px; }
.channel .track i { display: block; height: 100%; border-radius: 5px; background: var(--awning); }
.channel.s-pos .track i { background: var(--mango); }
.channel.s-kiosk .track i { background: var(--sky); }
.floor-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.floor-mini a { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; text-decoration: none; font: 750 18px var(--display); background: var(--fog); color: var(--slate); border: 1.5px solid var(--line); }
.floor-mini a.open { background: var(--palm-soft); color: var(--palm-ink); border-color: #9fd6bf; }
.floor-mini a.attn { background: var(--mango-soft); color: var(--mango-ink); border-color: var(--mango); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--fog); }
.feed li:first-child { border-top: 0; }
.feed .n { font: 750 15px var(--display); color: var(--slate); min-width: 42px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.quick a { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius); background: var(--fog); text-decoration: none; font-weight: 700; border: 1px solid transparent; }
.quick a:hover { border-color: var(--line); background: var(--chalk); }
.quick a span { font-weight: 500; color: var(--slate); font-size: 13.5px; }

/* ---- Orders board ---------------------------------------------------------- */
.coltabs { display: none; gap: 6px; margin-bottom: 12px; }
.coltabs button { flex: 1; min-height: 42px; border: 1.5px solid var(--line); background: var(--chalk); border-radius: 99px; font-weight: 700; }
.coltabs button[aria-pressed="true"] { background: var(--awning); color: #fff; border-color: var(--awning); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.col h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 2px 14px; }
.col h3 .count { background: var(--awning); color: #fff; border-radius: 99px; font-size: 13px; padding: 0 9px; font-family: var(--text); }
.col.new h3 .count { background: var(--mango); color: var(--ink); }
.col .none { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 22px 14px; color: var(--slate); text-align: center; font-size: 15px; }
.ocard { margin-bottom: 18px; box-shadow: 0 1px 0 #e6e1d3, 0 6px 16px rgba(15, 59, 48, .06); }
.ocard.pending { box-shadow: 0 0 0 2px var(--mango), 0 8px 20px rgba(245, 165, 36, .18); }
.ocard header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ocard .tbl { font: 800 22px/1.15 var(--display); }
.ocard .num-tag { color: var(--slate); font-weight: 650; }
.ocard .age { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--slate); }
.ocard .age.late { color: var(--chili); }
.src { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--slate); }
.src::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--awning); }
.src.s-pos::before { background: var(--mango); }
.src.s-kiosk::before { background: var(--sky); }
.oline { padding: 5px 0; }
.oline b { font-variant-numeric: tabular-nums; }
.oline .opts { color: var(--slate); font-size: 14px; }
.oline .lnote { font-size: 14px; color: var(--mango-ink); }
.onote { margin: 8px 0; padding: 8px 10px; background: var(--mango-soft); border-radius: 8px; font-size: 14.5px; }
.ocard footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ocard footer .total { font: 750 17px var(--display); margin-right: auto; }

/* ---- Tables (floor) ---------------------------------------------------------- */
.floorbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.legend { display: flex; gap: 14px; font-size: 14px; color: var(--slate); margin-left: auto; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tcard { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.tcard .top { display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px; }
.tcard .lbl { width: 54px; height: 54px; flex: none; border-radius: 12px; display: grid; place-items: center; font: 800 24px var(--display); background: var(--fog); color: var(--slate); }
.tcard.open .lbl { background: var(--awning); color: #fff; }
.tcard.attn .lbl { background: var(--mango); color: var(--ink); }
.tcard .state { font-weight: 700; }
.tcard .sub { color: var(--slate); font-size: 13.5px; }
.tcard .stats { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px; min-height: 26px; }
.tcard .acts { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 14px 14px; margin-top: auto; }
.tcard.off { opacity: .55; }
.tcard .due { margin-left: auto; font: 750 15px var(--display); }

/* Key notifications: the live table key, ready to copy */
.keynotes { position: fixed; z-index: 90; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 24px)); }
.keynote { background: var(--awning); color: #fff; border-radius: 14px; padding: 14px 14px 12px; box-shadow: 0 18px 50px rgba(9, 32, 26, .35); }
.keynote header { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--awning-text); font-size: 14px; }
.keynote header b { color: #fff; font-size: 15px; }
.keynote header button { margin-left: auto; background: transparent; border: 0; color: var(--awning-text); font-size: 22px; line-height: 1; width: 32px; height: 32px; border-radius: 8px; }
.keynote header button:hover { background: var(--awning-2); color: #fff; }
.keynote .kd { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px; }
.keynote .digits { font: 800 40px/1 var(--display); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.keynote .left { margin-left: auto; font: 700 14px var(--display); color: var(--awning-text); font-variant-numeric: tabular-nums; text-align: right; }
.keynote .bar { height: 4px; border-radius: 2px; background: var(--awning-3); overflow: hidden; margin-bottom: 12px; }
.keynote .bar i { display: block; height: 100%; background: var(--mango); transition: width .9s linear; }
.keynote .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.keynote .btn.ghost { color: #fff; border-color: var(--awning-3); }
.keynote .btn.ghost:hover { background: var(--awning-2); }
.keynote .qr { margin-top: 10px; background: var(--chalk); border-radius: 10px; padding: 8px; }
.keynote .qr img { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .keynote { animation: keyin .22s ease-out; }
  @keyframes keyin { from { opacity: 0; transform: translateY(14px); } }
}

/* On the till the check panel owns the right edge: keys sit beside it. */
body.pos-mode .keynotes { right: 398px; }
@media (max-width: 1180px) { body.pos-mode .keynotes { right: 348px; } }

/* Check (bill) dialog */
.check-lines { width: 100%; border-collapse: collapse; }
.check-lines td { padding: 7px 0; border-bottom: 1px solid var(--fog); vertical-align: top; }
.check-lines td.q { width: 3em; font-weight: 750; font-variant-numeric: tabular-nums; }
.check-lines td.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.check-lines .o { color: var(--slate); font-size: 13.5px; }
.check-totals { margin-top: 8px; }
.check-totals td { border-bottom: 0; padding: 3px 0; }
.check-totals tr.tot td { font-weight: 800; font-size: 17px; padding-top: 8px; border-top: 1px solid var(--line); }
.check-totals tr.sub td { color: var(--slate); font-size: 13.5px; }
.check-totals tr.due td { padding-top: 10px; }
.check-totals .big { font: 800 24px var(--display); }
.check-sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.check-sum .big { font: 800 22px var(--display); }
.methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.methods label { display: grid; place-items: center; min-height: 54px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; cursor: pointer; text-align: center; padding: 4px; }
.methods input { position: absolute; opacity: 0; pointer-events: none; }
.methods input:checked + span { color: var(--awning); }
.methods label:has(input:checked) { border-color: var(--awning); background: var(--palm-soft); }
.methods label:has(input:focus-visible) { outline: 3px solid var(--mango); outline-offset: 2px; }
@media (max-width: 520px) { .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Till (point of sale) ------------------------------------------------------ */
body.pos-mode .content { max-width: none; padding: 0; }
.pos { display: grid; grid-template-columns: 180px minmax(0, 1fr) 380px; height: calc(100dvh - 65px); }
.pos-cats { background: var(--chalk); border-right: 1px solid var(--line); overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.pos-cats button { text-align: left; border: 0; border-radius: 10px; padding: 12px; font-weight: 700; background: transparent; min-height: 48px; border-left: 5px solid var(--c, var(--line)); }
.pos-cats button:hover { background: var(--fog); }
.pos-cats button[aria-pressed="true"] { background: var(--fog); color: var(--ink); }
.pos-main { overflow-y: auto; padding: 14px 16px 24px; }
.pos-search { display: flex; gap: 10px; margin-bottom: 14px; position: sticky; top: 0; z-index: 2; background: var(--fog); padding: 2px 0 8px; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 104px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--chalk); text-align: left; border-top: 6px solid var(--c, var(--awning)); }
.tile:hover { border-color: #b8c3bd; border-top-color: var(--c, var(--awning)); }
.tile:active { transform: scale(.98); }
.tile .nm { font-weight: 700; line-height: 1.25; }
.tile .pr { font: 700 15px var(--display); color: var(--slate); font-variant-numeric: tabular-nums; }
.tile .opt { font-size: 12px; color: var(--slate); font-weight: 600; }
.tile .q { position: absolute; top: 8px; right: 8px; min-width: 26px; height: 26px; border-radius: 99px; background: var(--awning); color: #fff; font: 800 14px/26px var(--display); text-align: center; padding: 0 6px; }
.tile.out { opacity: .45; cursor: not-allowed; }
.tile.out .pr::after { content: " · sold out"; color: var(--chili); }
.pos-check { background: var(--chalk); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.pos-check .head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.pos-check .lines { flex: 1; overflow-y: auto; padding: 4px 16px; }
.pos-line { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--fog); }
.pos-line .qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.pos-line .qty button { width: 30px; height: 30px; border: 0; background: var(--fog); font-size: 18px; line-height: 1; }
.pos-line .qty output { min-width: 26px; text-align: center; font: 750 15px var(--display); }
.pos-line .nm { font-weight: 650; }
.pos-line .o { color: var(--slate); font-size: 13px; }
.pos-line .lp { font: 700 15px var(--display); font-variant-numeric: tabular-nums; }
.pos-check .foot { border-top: 1px solid var(--line); padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; background: var(--surface-2); }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.pos-total .num { font-size: 28px; font-weight: 800; }
.pos-send { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-send .btn { min-height: 56px; font-size: 16px; }
.pos-empty { text-align: center; color: var(--slate); padding: 40px 10px; }
.pos-mobilebar { display: none; }
.pos-back { display: none; justify-self: start; }

/* ---- Kitchen display --------------------------------------------------------- */
body.kds-mode { background: #0c1c17; }
body.kds-mode .content { max-width: none; padding: 0; }
body.kds-mode .topbar { background: #0c1c17; border-color: #1f3a31; color: #fff; }
body.kds-mode .topbar .btn.ghost { color: #fff; border-color: #2b4a40; }
body.kds-mode .topbar .live { color: #9db8ae; }
.kds { min-height: calc(100dvh - 65px); color: #e8f0ec; padding: 16px 18px 24px; }
.kds-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.kds-bar .seg { background: #13292200; border-color: #2b4a40; }
.kds-bar .seg button { color: #9db8ae; }
.kds-bar .seg button[aria-pressed="true"] { background: #1d3a31; color: #fff; box-shadow: none; }
.kds-bar .stat { font-size: 14px; color: #9db8ae; }
.kds-bar .btn.ghost { color: #fff; border-color: #2b4a40; background: transparent; }
.kds-bar .btn.ghost:hover { background: #1d3a31; }
.kds-bar .stat b { font: 800 20px var(--display); color: #fff; margin-right: 4px; }
.kds-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 16px; align-items: start; }
.kt { color: var(--ink); }
.kt .kh { display: flex; align-items: center; gap: 8px; margin: -16px -14px 10px; padding: 12px 14px 10px; background: #2f6b58; color: #fff; }
.kt.warn .kh { background: #c98612; }
.kt.late .kh { background: var(--chili); }
.kt .kh .who { font: 800 20px/1.1 var(--display); }
.kt .kh .nm { opacity: .85; font-weight: 650; }
.kt .kh .t { margin-left: auto; font: 800 20px var(--display); font-variant-numeric: tabular-nums; }
.kt .tag { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--fog); margin-right: 6px; }
.kt .tag.take { background: var(--mango-soft); color: var(--mango-ink); }
.kt .tag.prep { background: var(--sky-soft); color: var(--sky-ink); }
.kt ul { list-style: none; margin: 8px 0 0; padding: 0; }
.kt li { display: grid; grid-template-columns: 2.2em 1fr; gap: 2px 8px; padding: 7px 0; border-top: 1px dashed #e2dccb; cursor: pointer; font-size: 17px; }
.kt li:first-child { border-top: 0; }
.kt li b { font: 800 19px var(--display); }
.kt li .o { grid-column: 2; font-size: 14.5px; color: var(--slate); }
.kt li .n { grid-column: 2; font-size: 14.5px; color: var(--chili); font-weight: 700; }
.kt li.done { opacity: .4; text-decoration: line-through; }
.kt .onote { font-size: 14px; }
.kt .kb { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.kt .kb .btn { min-height: 52px; font-size: 17px; }
.kds-empty { text-align: center; padding: 14vh 20px; color: #9db8ae; }
.kds-empty h3 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.kds-recall { margin-top: 28px; }
.kds-recall h3 { font-size: 16px; color: #9db8ae; margin-bottom: 10px; }
.kds-recall .row .btn { color: #fff; border-color: #2b4a40; }

/* ---- Tables of data ------------------------------------------------------------- */
.tablewrap { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th { text-align: left; font-size: 13px; color: var(--slate); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--fog); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr.click { cursor: pointer; }
table.data tbody tr.click:hover { background: var(--surface-2); }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters .field { min-width: 140px; }

/* ---- Menu manager --------------------------------------------------------------- */
.mcat { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.mcat > header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mcat > header h3 { font-size: 20px; }
.mitem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--fog); }
.mitem:last-child { border-bottom: 0; }
.mitem .thumb { width: 52px; height: 52px; font-size: 22px; border-radius: 8px; background: var(--fog); display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #aab6b0; overflow: hidden; }
.mitem .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mitem.out .nm { text-decoration: line-through; color: var(--slate); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: #c2ccc7; position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--chalk); transition: transform .15s; }
.switch input:checked { background: var(--palm); }
.switch input:checked::after { transform: translateX(18px); }
.gbox { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; background: var(--surface-2); }
.gbox .orow { display: grid; grid-template-columns: 1fr 100px auto auto; gap: 8px; align-items: center; margin-top: 8px; }
@media (max-width: 560px) { .gbox .orow { grid-template-columns: 1fr 84px auto; } .gbox .orow .check { grid-column: 1 / -1; min-height: 32px; } }
.imgpick { display: flex; gap: 12px; align-items: center; }
.imgpick .preview { width: 84px; height: 84px; border-radius: 10px; background: var(--fog); overflow: hidden; display: grid; place-items: center; color: var(--slate); font-size: 12px; text-align: center; }
.imgpick .preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Reports -------------------------------------------------------------------- */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); margin-bottom: 16px; }
.kpi { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.kpi .v { font: 750 25px/1.15 var(--display); white-space: nowrap; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--slate); font-size: 14px; font-weight: 600; }
.kpi .s { color: var(--slate); font-size: 13px; margin-top: 2px; }
.panels { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panels .wide { grid-column: 1 / -1; }
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--awning); }
.chart .bar:hover { fill: var(--mango); }
.chart text { font: 600 11px var(--text); fill: var(--slate); }
.chart .grid { stroke: var(--fog); stroke-width: 1; }
.hbar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 15px; }
.hbar .track { height: 8px; border-radius: 4px; background: var(--fog); overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--awning); border-radius: 4px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 14px 22px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--awning); border: 2px solid var(--chalk); box-shadow: 0 0 0 1px var(--awning); }
.timeline .when { color: var(--slate); font-size: 13px; }

/* Settings: kiosk list */
.devices { list-style: none; margin: 0; padding: 0; }
.devices li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--fog); flex-wrap: wrap; }
.devices li:first-child { border-top: 0; }

/* ---- Login ---------------------------------------------------------------------- */
.loginpage { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.loginhero { background: var(--awning); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.loginhero .brand { padding: 0; font-size: 26px; }
.loginhero h1 { font-size: clamp(36px, 4.6vw, 60px); max-width: 13ch; margin-bottom: 16px; }
.loginhero p { color: var(--awning-text); max-width: 40ch; font-size: 18px; }
.loginhero .stations { display: flex; gap: 8px; flex-wrap: wrap; }
.loginhero .stations span { border: 1px solid var(--awning-3); border-radius: 99px; padding: 4px 12px; font-size: 14px; color: var(--awning-text); }
.loginform { display: grid; place-items: center; padding: 28px; }
.loginform form { width: min(400px, 100%); display: grid; gap: 16px; }
.loginform h2 { font-size: 28px; }
.demo { border: 1.5px dashed #b4c2bb; border-radius: 10px; padding: 12px; font-size: 14px; }

/* ---- Print: QR sheet -------------------------------------------------------------- */
.qrsheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14mm; padding: 6mm; }
.qrcard { break-inside: avoid; border: 1.5px solid #111; border-radius: 6mm; padding: 8mm; text-align: center; }
.qrcard img.qr { width: 100%; max-width: 62mm; margin: 4mm auto; }
.qrcard h2 { font-size: 34pt; }
.qrcard p { font-size: 11pt; }
.qrcard .rname { font-size: 12pt; color: #444; margin-bottom: 2mm; }

/* ---- Phones and tablets ----------------------------------------------------------- */
@media (max-width: 1180px) {
  .pos { grid-template-columns: 150px minmax(0, 1fr) 330px; }
  .span-8, .span-4, .span-6 { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 20; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); gap: 0; overflow-x: auto; }
  .side .brand, .side .who, .side .venue, .nav .group { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: flex-start; }
  .nav a { flex-direction: column; gap: 2px; font-size: 11.5px; padding: 6px 8px; min-width: 64px; justify-content: center; position: relative; }
  .nav a[aria-current="page"] { background: var(--awning-2); color: #fff; }
  .nav .badge { position: absolute; top: 2px; right: 8px; margin: 0; min-width: 20px; font-size: 11px; }
  .content { padding: 14px 12px 96px; }
  .topbar { padding: 10px 12px; }
  .mobile-brand { display: block; width: 30px; height: 30px; border-radius: 8px; }
  .board { grid-template-columns: 1fr; }
  .coltabs { display: flex; }
  .col[hidden-mobile="true"] { display: none; }
  .panels { grid-template-columns: 1fr; }
  .today { grid-template-columns: 1fr 1fr; }
  .today > div:first-child { grid-column: 1 / -1; }
  .today > div:nth-child(3) { border-left: 1px solid var(--line); }
  .today > div:nth-child(2), .today > div:nth-child(4) { border-left: 0; }
  .today > div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .loginpage { grid-template-columns: 1fr; }
  .loginhero { padding: 24px; }
  .loginhero h1 { font-size: 34px; }
  .legend { margin-left: 0; }
  .keynotes, body.pos-mode .keynotes { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); right: 12px; }
  body.pos-mode .keynotes { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  /* Till on a phone: the check becomes a sheet */
  .pos { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pos-cats { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 3; padding: 8px; }
  .pos-cats button { flex: none; border-left: 0; border-bottom: 4px solid var(--c, var(--line)); min-height: 40px; padding: 8px 12px; }
  .pos-main { padding-bottom: 150px; }
  .pos-check { display: none; }
  .pos.show-check .pos-check { display: flex; position: fixed; inset: 0 0 0 0; z-index: 30; }
  .pos-back { display: inline-flex; }
  .pos-mobilebar { display: block; position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); z-index: 15; padding: 8px 12px; }
  .pos-mobilebar .btn { width: 100%; min-height: 54px; justify-content: space-between; box-shadow: var(--shadow); }
  .kds { padding: 12px 12px 96px; }
}

/* ---- Settings hub ------------------------------------------------------------------ */
.settabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.settabs button { border: 0; background: none; padding: 10px 14px; font-weight: 650; color: var(--slate); border-bottom: 3px solid transparent; margin-bottom: -1px; min-height: 44px; }
.settabs button[aria-selected="true"] { color: var(--awning); border-bottom-color: var(--awning); }
.setpane { max-width: 820px; }
.setpane .card h3 { font-size: 18px; }
.hours-ed { display: grid; gap: 2px; }
.hrow { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--fog); }
.hperiods { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.hp-item { display: inline-flex; align-items: center; gap: 6px; }
.hp-item .input { width: 120px; min-height: 40px; padding: 6px 8px; }
.taxrow { margin-bottom: 8px; }
.taxrow .input:first-child { max-width: 220px; }
@media (max-width: 640px) { .hrow { grid-template-columns: 1fr; } }

/* ---- Design (brand) ----------------------------------------------------------------- */
.design { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.design .card h3 { font-size: 18px; margin-bottom: 4px; }
.imgrow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.imgrow .thumbbox { width: 96px; height: 96px; border-radius: 14px; background: var(--fog); border: 1px dashed var(--line); display: grid; place-items: center; overflow: hidden; color: var(--slate); font-size: 12px; text-align: center; }
.imgrow .thumbbox.wide { width: 180px; }
.imgrow .thumbbox img { width: 100%; height: 100%; object-fit: cover; }
.imgrow .thumbbox.logo img { object-fit: contain; padding: 6px; background: var(--chalk); }
.colorrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.colorrow input[type=color] { width: 52px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; background: var(--chalk); }
.colorrow .input { max-width: 130px; font-family: ui-monospace, Menlo, monospace; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.fontcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fontcards label { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; display: grid; gap: 4px; }
.fontcards label:has(input:checked) { border-color: var(--awning); background: var(--palm-soft); }
.fontcards input { position: absolute; opacity: 0; }
.fontcards .aa { font-size: 30px; line-height: 1; }
.fontcards label:has(input:focus-visible) { outline: 3px solid var(--mango); outline-offset: 2px; }
.where { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.where a { display: block; padding: 12px; border-radius: 10px; background: var(--fog); text-decoration: none; font-weight: 700; }
.where a span { display: block; font-weight: 500; color: var(--slate); font-size: 13px; }
/* Phone preview: a scaled copy of the guest menu, themed by inline brand variables. */
.phone { position: sticky; top: 84px; width: 340px; height: 660px; border-radius: 42px; background: #111; padding: 12px; box-shadow: 0 30px 60px rgba(9, 32, 26, .25); }
.phone .screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--fog); position: relative; font-family: var(--text); color: var(--ink); }
.pv-hero { background: var(--awning) center / cover no-repeat; color: var(--on-awning); padding: 34px 16px 16px; position: relative; }
.pv-hero.cover { color: #fff; min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; }
.pv-hero.cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .1) 75%); }
.pv-hero > * { position: relative; }
.pv-hero img.logo { width: 46px; height: 46px; border-radius: 12px; background: var(--chalk); padding: 4px; object-fit: contain; margin-bottom: 8px; }
.pv-hero h4 { font: 800 25px/1.05 var(--display); letter-spacing: -.01em; }
.pv-hero p { font-size: 12.5px; opacity: .85; margin-top: 4px; }
.pv-chip { display: inline-block; margin-top: 10px; background: var(--mango); color: var(--on-mango); font: 750 12px var(--display); padding: 3px 10px; border-radius: 99px; }
.pv-cats { display: flex; gap: 6px; padding: 10px 12px; overflow: hidden; }
.pv-cats span { flex: none; padding: 4px 10px; border-radius: 99px; background: var(--chalk); border: 1px solid var(--line); font-size: 12px; font-weight: 650; }
.pv-cats span.on { background: var(--awning); border-color: var(--awning); color: var(--on-awning); }
.pv-sec { padding: 0 12px; }
.pv-sec h5 { font: 750 17px var(--display); margin: 6px 0 8px; }
.pv-dish { display: grid; grid-template-columns: 1fr 58px; gap: 10px; background: var(--chalk); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.pv-dish.on { border-color: var(--awning); box-shadow: inset 3px 0 0 var(--awning); }
.pv-dish b { font-size: 13.5px; display: block; }
.pv-dish small { color: var(--slate); font-size: 11.5px; display: block; margin-top: 2px; }
.pv-dish .pr { font: 700 13px var(--display); margin-top: 6px; display: block; }
.pv-dish .th { width: 58px; height: 58px; border-radius: 8px; background: var(--palm-soft); display: grid; place-items: center; font: 800 20px var(--display); color: var(--awning); opacity: .8; overflow: hidden; }
.pv-dish .th img { width: 100%; height: 100%; object-fit: cover; }
.pv-add { display: inline-block; margin-top: 8px; border: 1.5px solid var(--awning); color: var(--awning); border-radius: 99px; padding: 2px 12px; font-size: 12px; font-weight: 750; }
.pv-step { display: inline-flex; gap: 10px; margin-top: 8px; background: var(--awning); color: var(--on-awning); border-radius: 99px; padding: 2px 12px; font-size: 12.5px; font-weight: 800; }
.pv-bar { position: absolute; left: 10px; right: 10px; bottom: 12px; background: var(--awning); color: var(--on-awning); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; font-weight: 750; font-size: 14px; }
.pv-bar i { font-style: normal; background: var(--mango); color: var(--on-mango); border-radius: 99px; padding: 0 8px; margin-left: 6px; }
@media (max-width: 1180px) { .design { grid-template-columns: 1fr; } .phone { position: relative; top: 0; margin: 0 auto; } }

/* ---- Reservations and feedback ----------------------------------------------------- */
.daybar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.daybar .input { max-width: 180px; }
.daystats { display: flex; gap: 18px; color: var(--slate); font-size: 14.5px; margin-left: auto; }
.daystats b { color: var(--ink); font: 800 20px var(--display); margin-right: 4px; }
.slotgroup { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.slotgroup:first-child { border-top: 0; }
.slotgroup .tm { font: 800 20px var(--display); font-variant-numeric: tabular-nums; padding-top: 10px; }
.bk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; background: var(--chalk); border: 1px solid var(--line); border-left: 5px solid var(--awning); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.bk.requested { border-left-color: var(--mango); }
.bk.seated { border-left-color: var(--sky); }
.bk.cancelled, .bk.no_show, .bk.declined, .bk.completed { opacity: .6; border-left-color: var(--line); }
.bk .nm { font-weight: 750; font-size: 16.5px; }
.bk .meta { color: var(--slate); font-size: 14px; }
.bk .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill.requested { background: var(--mango-soft); color: var(--mango-ink); }
.pill.confirmed { background: var(--palm-soft); color: var(--palm-ink); }
.pill.seated { background: var(--sky-soft); color: var(--sky-ink); }
.pill.no_show, .pill.declined { background: var(--chili-soft); color: var(--chili-ink); }
.tcard .booked { font-size: 13px; font-weight: 700; color: var(--sky); }
.rating-big { font: 800 52px/1 var(--display); }
.starline { color: #d88a0b; letter-spacing: 2px; font-size: 18px; }
.starline .off { color: #d5dcd8; }
.fbrow { padding: 14px 0; border-top: 1px solid var(--fog); }
.fbrow:first-child { border-top: 0; }
.fbrow.low { background: linear-gradient(to right, var(--chili-soft), transparent 40%); padding-left: 10px; border-radius: 8px; }
@media (max-width: 640px) { .slotgroup { grid-template-columns: 1fr; } .bk { grid-template-columns: 1fr; } .bk .acts { justify-content: flex-start; } }

/* Theme picker: a small sketch of each layout */
.themecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.themecard { position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 4px; cursor: pointer; background: var(--chalk); }
.themecard input { position: absolute; opacity: 0; pointer-events: none; }
.themecard:has(input:checked) { border-color: var(--awning); box-shadow: 0 0 0 2px var(--awning); }
.themecard:has(input:focus-visible) { outline: 3px solid var(--mango); outline-offset: 2px; }
.themecard.locked { opacity: .62; }
.themecard .lock { font-size: 11.5px; font-weight: 700; color: var(--mango-ink); background: var(--mango-soft); border-radius: 99px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
.themecard .lock::before { content: "\1F512\FE0E  "; font-size: 10px; }
.tc-art { height: 74px; border-radius: 8px; padding: 10px; display: grid; gap: 7px; align-content: start; background: var(--chalk); border: 1px solid var(--line); margin-bottom: 4px; }
.tc-art i { display: block; height: 7px; border-radius: 3px; background: #c9d1cd; }
.tc-art i:first-child { width: 55%; height: 9px; background: var(--awning); }
.tc-signature i:not(:first-child) { height: 16px; background: var(--surface-2); border: 1px solid #dde3e0; }
.tc-bistro { background: #dfe7f1; } .tc-bistro i:first-child { width: 100%; height: 2px; background: #111; margin: 4px 0; }
.tc-bistro i:not(:first-child) { background: linear-gradient(to right, #333 45%, transparent 45% 55%, #333 55%); height: 6px; }
.tc-minimal i:not(:first-child) { background: linear-gradient(to right, #444 40%, transparent 40%), radial-gradient(circle, #aaa 1px, transparent 1.5px) 0 50% / 5px 5px repeat-x; }
.tc-chalkboard { background: #23292a; border-color: #23292a; } .tc-chalkboard i { background: #e6e9e4; } .tc-chalkboard i:first-child { background: #f2d48a; }
.tc-elegant { background: #fbf8f2; justify-items: center; } .tc-elegant i { width: 60%; } .tc-elegant i:first-child { width: 40%; height: 2px; }
.tc-cafe { background: #f6efe4; } .tc-cafe i:not(:first-child) { height: 16px; background: #fffaf2; border: 1px solid #eadcc6; border-radius: 9px; }
.tc-noir { background: #0c0c0c; border-color: #0c0c0c; } .tc-noir i { background: linear-gradient(to right, #ddd 45%, transparent 45% 55%, #d8b45a 55%); } .tc-noir i:first-child { background: #d8b45a; width: 100%; height: 2px; }
.tc-editorial i:nth-child(2) { height: 26px; background: #c9d1cd; } .tc-editorial i:first-child { background: #111; height: 11px; }
#d-ctl { min-width: 0; }

/* ---- Menu & design: editor on the left, live preview on the right ---------------------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.studio-main { min-width: 0; }
.studio-side { position: sticky; top: 84px; display: grid; gap: 10px; justify-items: center; }
.studio-side .phone { position: relative; top: 0; }
.studio-side p { text-align: center; max-width: 320px; }
.studio .settabs { margin-bottom: 16px; }
.studio-mobile-preview { display: none; }
fieldset.bare { border: 0; padding: 0; margin: 0; min-width: 0; }
.is-locked fieldset.bare { opacity: .45; }
.locknote { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; background: var(--fog); border-radius: 10px; padding: 10px 12px; color: var(--graphite); }
@media (max-width: 1180px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .studio-side { display: none; }
  .studio-mobile-preview { display: inline-flex; }
}

/* Split bill: who pays for a line */
.payer { display: inline-block; padding: 0 8px; margin-left: 4px; border-radius: 99px; background: var(--palm-soft); color: var(--palm-ink); font-size: 13px; font-weight: 700; vertical-align: 1px; }
.split-h { font-size: 17px; margin: 18px 0 6px; }

/* Waiter calls from table phones: stays in view under the top bar until someone answers */
.callstrip { position: sticky; top: 64px; z-index: 5; display: grid; gap: 6px; padding: 8px 22px; background: var(--mango-soft); border-bottom: 1px solid #f0d28a; }
.callitem { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 1316px; margin: 0 auto; width: 100%; }
.callitem svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--mango-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.callitem .age { color: var(--mango-ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.callitem .msg { flex: 1; min-width: 12em; color: #5d3a00; font-weight: 600; }
body.kds-mode .callstrip { background: #3a2a06; border-color: #5d4510; }
body.kds-mode .callitem .msg, body.kds-mode .callitem b { color: #ffe3a6; }
@media (max-width: 760px) { .callstrip { padding: 8px 12px; } }

/* Game code for the "Who pays?" wheel */
.gamecode { text-align: center; font: 800 52px/1 var(--display); letter-spacing: .08em; margin: 6px 0 14px; color: var(--awning); }

/* ======================================================================================
   Refined console (1.11): a quieter, fine-dining look. Serif display type, hairline rules,
   one solid colour for primary actions, saffron only where something needs attention.
   Uses the shared colour variables only, so every staff colour theme follows along.
   ====================================================================================== */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
.shell { font-variant-numeric: lining-nums; }
.shell { --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif; --hair: 1px solid var(--line); --radius-c: 6px; --primary: var(--btn-bg, var(--awning)); --on-primary: var(--btn-fg, var(--on-awning, #fff)); }

/* ---- Sidebar ---- */
.shell .brand { font: 600 26px/1 var(--serif); letter-spacing: .01em; }
.shell .venue { background: transparent; border: 1px solid var(--awning-3); border-radius: var(--radius-c); }
.shell .venue b { font: 600 18px/1.2 var(--serif); letter-spacing: .01em; }
.shell .nav .group { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-top: 22px; opacity: .8; }
.shell .nav a { font-weight: 500; font-size: 14.5px; border-radius: 4px; min-height: 40px; position: relative; }
.shell .nav a[aria-current="page"] { background: var(--awning-2); color: #fff; }
.shell .nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 2px; background: var(--mango); border-radius: 2px; }
.shell .nav svg { stroke-width: 1.5; }
.shell .nav .badge { font-weight: 700; font-size: 12px; min-width: 22px; }

/* ---- Top bar ---- */
.shell .topbar { background: var(--chalk); backdrop-filter: none; border-bottom: var(--hair); min-height: 72px; padding: 10px 28px; gap: 18px; }
.tb-title { display: grid; line-height: 1.1; min-width: 0; }
.tb-venue { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell .topbar h1 { font: 600 28px/1.1 var(--serif); letter-spacing: .005em; margin-top: 2px; }
.tb-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.shell .live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--slate); padding: 0 12px 0 4px; margin-right: 6px; border-right: var(--hair); height: 28px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--palm); box-shadow: 0 0 0 3px var(--palm-soft); }
.live.off .live-dot { background: var(--mango); box-shadow: 0 0 0 3px var(--mango-soft); }
.tb-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: var(--radius-c); background: transparent; color: var(--graphite); }
.tb-icon:hover { background: var(--fog); color: var(--ink); }
.tb-icon svg, .tb-new svg, .tb-chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tb-icon[aria-pressed="false"] { color: var(--slate); }
.tb-new { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; margin: 0 6px; border-radius: var(--radius-c); background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .01em; }
.tb-new:hover { filter: brightness(1.12); }
.tb-acct { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 8px 0 4px; border: 0; border-radius: 99px; background: transparent; color: var(--ink); }
.tb-acct:hover { background: var(--fog); }
.tb-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fog); border: var(--hair); font: 600 15px/1 var(--serif); letter-spacing: .04em; color: var(--ink); }
.tb-name { font-weight: 600; font-size: 14px; }
.tb-chev { width: 15px; height: 15px; color: var(--slate); }

/* ---- Page heading ---- */
.shell .pagehead { align-items: flex-end; padding-bottom: 18px; margin-bottom: 22px; border-bottom: var(--hair); }
.shell .pagehead h2 { font: 500 42px/1.05 var(--serif); letter-spacing: -.005em; }
.shell .pagehead p { font-size: 14.5px; margin-top: 4px; }

/* ---- Buttons: one solid colour for the main action, hairlines for the rest ---- */
.shell .content .btn { border-radius: var(--radius-c); font-weight: 600; letter-spacing: .01em; box-shadow: none; }
.shell .content .btn.sm { min-height: 34px; padding: 0 13px; font-size: 13.5px; }
.shell .content .btn.primary, .shell .content .btn.green, .shell .content .btn.accent { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.shell .content .btn.primary:hover, .shell .content .btn.green:hover, .shell .content .btn.accent:hover { filter: brightness(1.12); }
.shell .content .btn.ghost { background: transparent; border: var(--hair); color: var(--ink); }
.shell .content .btn.ghost:hover { border-color: var(--slate); background: var(--fog); }

/* ---- Filters and legend ---- */
.shell .seg { border-radius: var(--radius-c); border: var(--hair); background: transparent; padding: 3px; }
.shell .seg button { border-radius: 4px; font-size: 13.5px; letter-spacing: .02em; }
.shell .seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.shell .legend { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.shell .legend i { border-radius: 50%; width: 8px; height: 8px; }

/* ---- Cards and panels ---- */
.shell .card, .shell .panel, .shell .kpi, .shell .tablewrap, .shell .mcat { border-radius: 8px; box-shadow: none; border: var(--hair); }
.shell .panel h3, .shell .card > h3 { font: 600 22px/1.2 var(--serif); letter-spacing: .005em; }
.shell .today { border-radius: 8px; }
.shell .today .v, .shell .kpi .v { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
.shell .pill { border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }

/* ---- Tables (floor) ---- */
.shell .tgrid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.shell .tcard { border-radius: 8px; border: var(--hair); padding: 0; transition: border-color .2s; }
.shell .tcard:hover { border-color: var(--slate); }
.shell .tcard .top { padding: 20px 20px 12px; gap: 16px; align-items: flex-start; }
.shell .tcard .lbl { width: 56px; height: 56px; border-radius: 6px; font: 500 30px/1 var(--serif); background: transparent; border: var(--hair); color: var(--graphite); }
.shell .tcard.open .lbl { background: var(--awning); border-color: var(--awning); color: var(--on-awning, #fff); }
.shell .tcard.attn { border-color: var(--mango); box-shadow: inset 3px 0 0 var(--mango); }
.shell .tcard.attn .lbl { background: var(--mango-soft); border-color: var(--mango); color: var(--mango-ink); }
.tname { font: 600 20px/1.15 var(--serif); letter-spacing: .005em; }
.shell .tcard .state { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--slate); margin-top: 3px; }
.shell .tcard.open .state { color: var(--palm-ink, var(--palm)); }
.shell .tcard.attn .state { color: var(--mango-ink); }
.shell .tcard .booked { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--sky-ink, var(--sky)); border: 1px solid currentColor; border-radius: 4px; padding: 1px 7px; }
.shell .tcard .sub { font-size: 13px; line-height: 1.55; margin-top: 6px; }
.shell .tcard .stats { padding: 0 20px; gap: 6px; }
.shell .tcard .due { font: 600 18px var(--serif); }
.shell .tcard .acts { padding: 14px 20px 18px; gap: 6px; border-top: var(--hair); margin-top: 14px; }

/* ---- "More" menu ---- */
details.more { position: relative; }
details.more > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
details.more[open] > summary svg { transform: rotate(180deg); }
.more-menu { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; min-width: 190px; background: var(--chalk); border: var(--hair); border-radius: 8px; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .14); display: grid; }
.more-menu button { text-align: left; border: 0; background: transparent; color: var(--ink); padding: 10px 12px; border-radius: 4px; font-size: 14px; font-weight: 500; }
.more-menu button:hover, .more-menu button:focus-visible { background: var(--fog); }
.more-menu button.danger { color: var(--chili-ink, var(--chili)); border-top: var(--hair); border-radius: 0 0 4px 4px; margin-top: 4px; padding-top: 12px; }

/* ---- Kitchen display keeps its dark look ---- */
body.kds-mode .shell .topbar, body.kds-mode .topbar { background: #0c1c17; border-color: #1f3a31; }
body.kds-mode .tb-venue, body.kds-mode .shell .live { color: #9db8ae; border-color: #1f3a31; }
body.kds-mode .tb-icon, body.kds-mode .tb-acct { color: #e8f0ec; }
body.kds-mode .tb-icon:hover, body.kds-mode .tb-acct:hover { background: #1d3a31; }
body.kds-mode .tb-avatar { background: #13292a; border-color: #2b4a40; color: #fff; }

/* ---- Phones ---- */
@media (max-width: 900px) {
  .shell .topbar { padding: 10px 12px; min-height: 60px; gap: 10px; }
  .tb-venue, .tb-name, .tb-chev, .tb-new span, .shell .live span:last-child { display: none; }
  .shell .live { border-right: 0; padding: 0 4px; margin: 0; }
  .tb-new { padding: 0 10px; margin: 0 2px; }
  .shell .topbar h1 { font-size: 24px; }
  .shell .pagehead h2 { font-size: 32px; }
}

/* Serif numbers: lining figures (1 2 3, not old-style). Kept last, because the font shorthand
   used above resets numeric variants. */
body .shell .tcard .lbl, body .shell .tname, body .shell .tb-avatar, body .shell .pagehead h2, body .shell .topbar h1,
body .shell .tcard .due, body .shell .today .v, body .shell .kpi .v, body .shell .panel h3, body .shell .card > h3, body .shell .brand, body .shell .venue b {
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
}
/* Let the "More" menu escape the card, and lift the card it belongs to above its neighbours. */
.shell .tcard { overflow: visible; position: relative; }
.shell .tcard:has(details.more[open]) { z-index: 10; }
/* The kitchen display's own controls stay light on its dark background. */
body.kds-mode .shell .content .kds-bar .btn.ghost { color: #fff; border-color: #2b4a40; background: transparent; }
body.kds-mode .shell .content .kds-bar .btn.ghost:hover { background: #1d3a31; }
