@font-face{font-family:Barlow;src:url('assets/barlow-condensed-800.ttf') format('truetype');font-weight:800;font-display:swap}
@font-face{font-family:Barlow;src:url('assets/barlow-condensed-700.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:DM;src:url('assets/dm-sans-400.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:DM;src:url('assets/dm-sans-700.ttf') format('truetype');font-weight:700;font-display:swap}

/* Same tokens as styles.css (the restaurant site). */
:root {
  --rose: oklch(.49 .18 350);
  --rose-dark: oklch(.39 .15 350);
  --rose-tint: oklch(.95 .03 350);
  --white: oklch(1 0 0);
  --page: oklch(.975 .006 340);
  --ink: oklch(.24 .035 340);
  --muted: oklch(.46 .03 340);
  --line: oklch(.86 .015 340);
  --yellow: oklch(.92 .12 95);
  --yellow-tint: oklch(.97 .05 95);
  --plum: oklch(.25 .065 345);
  --on-plum: oklch(.86 .025 340);
  --green: oklch(.45 .1 150);
  --green-tint: oklch(.94 .04 150);
  --amber-ink: oklch(.42 .09 70);
  --display: Barlow, 'Arial Narrow', Impact, sans-serif;
  --body: DM, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.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; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 40; padding: 12px 20px; background: var(--white); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num, .price { font-variant-numeric: tabular-nums; }

/* Demo bar */
.demo-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding: 8px 24px; background: var(--ink); color: var(--white); font-size: 12px; }
.demo-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.demo-links a { font-weight: 700; }
.link-button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.link-button .icon { width: 14px; height: 14px; }

/* Top bar: plum band like the site's visit panel and footer */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--plum); color: var(--white); }
.topbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 46px; object-fit: contain; }
.brand > span { font: 800 24px/.95 var(--display); letter-spacing: .015em; }
.brand small { display: block; margin-top: 5px; font: 700 9px/1.4 var(--body); letter-spacing: .2em; color: var(--on-plum); }
.open-state { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: oklch(1 0 0 / .08); font-size: 13px; color: var(--on-plum); }
.open-state strong { color: var(--white); }
.open-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--on-plum); }
.open-state.is-open .open-dot { background: var(--yellow); box-shadow: 0 0 0 4px oklch(.92 .12 95 / .25); }
.open-state.is-closed .open-dot { background: oklch(.7 .15 20); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 13px; }
.clock { font: 800 22px/1 var(--display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.who { display: inline-flex; align-items: center; gap: 8px; color: var(--on-plum); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 13px; }
.tabs { display: flex; gap: 2px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; background: var(--rose); }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; font: 800 18px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; color: oklch(1 0 0 / .78); white-space: nowrap; }
.tabs a:hover { color: var(--white); }
.tabs a[aria-current="page"] { color: var(--white); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 5px; background: var(--yellow); }
.tab-count { min-width: 22px; padding: 3px 6px; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 12px/1 var(--body); text-align: center; }
.tab-warn { background: var(--white); color: var(--rose-dark); }

/* Layout */
main { padding: 32px 24px 72px; }
main:focus { outline: none; }
.view-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: 24px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-dark); margin-bottom: 8px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
.view-head h1 { font: 800 clamp(40px, 5vw, 60px)/.92 var(--display); letter-spacing: -.01em; }
.view-lead { margin-top: 10px; max-width: 46rem; color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { font: 800 24px/1 var(--display); }
.panel-head a { font-size: 13px; font-weight: 700; }
.empty-line { padding: 6px 0; font-size: 14px; color: var(--muted); }
.footnote { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius); font-size: 14px; font-weight: 700; text-decoration: none; transition: transform 180ms var(--ease), background-color 180ms var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-rose { background: var(--rose); color: var(--white); }
.btn-rose:hover { background: var(--rose-dark); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--rose); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: oklch(.88 .13 95); }
.btn-line { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--yellow-tint); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 13px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.icon-btn:hover { background: var(--yellow-tint); }

/* Today */
.day-bar { margin-bottom: 22px; }
.day-track { position: relative; height: 40px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: visible; }
.day-open { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, var(--rose-tint) 0 12px, oklch(.93 .04 350) 12px 13px); border-left: 3px solid var(--rose); border-right: 3px solid var(--rose); }
.day-now { position: absolute; top: -6px; bottom: -6px; width: 3px; background: var(--ink); }
.day-now span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); padding: 2px 6px; border-radius: 2px; background: var(--yellow); font: 800 12px/1 var(--display); letter-spacing: .06em; }
.day-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 14px; margin: 0 0 18px; }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.stat dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat dd { margin: 8px 0 0; font: 800 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.stat-hero { background: var(--rose); border-color: var(--rose); color: var(--white); }
.stat-hero dt { color: oklch(1 0 0 / .8); }
.stat-hero dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; font-size: 56px; }
.stat-hero small { font: 700 13px/1.3 var(--body); padding: 4px 8px; border-radius: 2px; background: var(--yellow); color: var(--ink); }
.today-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.panel-wide { grid-column: 1 / -1; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 8rem 1fr 3rem; gap: 12px; align-items: center; font-size: 14px; }
.bar { height: 14px; border-radius: 2px; background: var(--rose-tint); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--rose); transition: width .4s var(--ease); }
.bars .num { text-align: right; font-weight: 700; }
.low-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.low-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--radius); background: var(--yellow-tint); font-size: 14px; }
.low-list strong { font-weight: 700; }
.low-list .num { color: var(--muted); }
.off-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.off-list li { display: inline-flex; align-items: center; gap: 4px; padding: 5px 4px 5px 12px; border-radius: 999px; background: var(--rose-tint); color: var(--rose-dark); font-size: 14px; font-weight: 700; }
.off-list button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: inherit; }
.off-list button:hover { background: var(--white); }
.next-cater { display: grid; gap: 4px; }
.next-cater strong { font: 800 26px/1 var(--display); }
.next-cater .meta { color: var(--muted); font-size: 14px; }
.note-copy { font-size: 16px; white-space: pre-wrap; }
.note-meta { margin-top: 10px; font-size: 12px; color: var(--muted); }
.note-form { display: grid; gap: 8px; }
.note-form label { font-weight: 700; font-size: 14px; }
.note-form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--page); resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* Comandas */
.head-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--line); transition: background-color .2s var(--ease); }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px oklch(0 0 0 / .25); transition: transform .2s var(--ease); }
.switch input:checked + .switch-track { background: var(--rose); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--rose); outline-offset: 3px; }
.filters { display: inline-flex; padding: 3px; gap: 3px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); }
.filters button { min-height: 38px; padding: 0 14px; border: 0; border-radius: var(--radius); background: none; font-size: 13px; font-weight: 700; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.banner { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--yellow); font-size: 14px; font-weight: 700; }
.line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.lane { min-height: 240px; padding: 12px; border-radius: var(--radius); background: oklch(.95 .012 340); }
.lane h2 { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; font: 800 24px/1 var(--display); }
.lane h2 span { min-width: 28px; padding: 4px 8px; border-radius: 999px; background: var(--ink); color: var(--white); font: 700 13px/1 var(--body); text-align: center; }
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lane-empty { padding: 22px 8px; text-align: center; font-size: 14px; color: var(--muted); }
.ticket { overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); animation: drop .35s var(--ease); }
.ticket::before { content: ""; display: block; height: 5px; background: var(--line); }
.ticket.src-online::before { background: var(--rose); }
.ticket.src-phone::before { background: var(--plum); }
.ticket.src-counter::before { background: var(--yellow); }
.ticket.is-late { box-shadow: 0 0 0 2px var(--rose); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.ticket-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 12px 8px; }
.ticket-who { display: grid; gap: 2px; min-width: 0; }
.ticket-who strong { font: 800 22px/1 var(--display); }
.ticket-who span { font-size: 12px; color: var(--muted); }
.due { flex: none; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.due small { display: block; font-weight: 400; color: var(--muted); }
.is-late .due { color: var(--rose-dark); }
.ticket-items { list-style: none; margin: 0; padding: 4px 12px 8px; display: grid; gap: 6px; border-top: 1px dashed var(--line); padding-top: 8px; }
.ticket-items li { display: grid; grid-template-columns: 1.8rem 1fr auto; gap: 6px; align-items: baseline; font-size: 14px; }
.qty { font-weight: 700; }
.chip { padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; background: var(--rose-tint); color: var(--rose-dark); }
.chip-veg { background: var(--green-tint); color: var(--green); }
.mod { grid-column: 2 / -1; font-size: 12px; font-weight: 700; color: var(--rose-dark); }
.ticket-actions { display: flex; gap: 8px; padding: 0 12px 12px; }
.ticket-actions .btn { flex: 1; }
.done { margin-top: 24px; }
.done h2 { font: 800 22px/1 var(--display); margin-bottom: 10px; }
.done-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.done-list li { padding: 6px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Prep */
.masa { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 28px; margin-bottom: 14px; padding: 22px 24px; border-radius: var(--radius); background: var(--yellow); }
.masa-count { font: 800 76px/.85 var(--display); font-variant-numeric: tabular-nums; }
.masa h2 { font: 800 30px/1 var(--display); }
.masa p { font-size: 14px; }
.masa .meter { margin-top: 10px; height: 16px; background: oklch(1 0 0 / .65); }
.masa .meter span { background: var(--ink); }
.masa-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.prep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.prep { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.prep.is-low { border-color: var(--rose); box-shadow: inset 4px 0 0 var(--rose); }
.prep-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.prep-head h3 { font: 800 22px/1 var(--display); }
.prep-head span { font-size: 12px; color: var(--muted); }
.prep-level { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.prep-level strong { font: 800 30px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.meter { position: relative; height: 10px; border-radius: 2px; background: var(--rose-tint); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--green); transition: width .4s var(--ease); }
.is-low .meter span { background: var(--rose); }
.meter i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.prep-actions { display: flex; gap: 6px; }
.prep-actions .btn { flex: 1; padding: 0 8px; white-space: nowrap; }
.prep-actions .btn-yellow { flex: 1.6; }

/* Catering */
.cater-form { margin-bottom: 18px; }
.cater-form h2 { font: 800 26px/1 var(--display); margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.form-grid label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.form-grid input { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--page); font-weight: 400; }
.form-grid .span-2 { grid-column: span 2; }
.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.stage { padding: 12px; border-radius: var(--radius); background: oklch(.95 .012 340); min-height: 200px; }
.stage h2 { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 12px; font: 800 24px/1 var(--display); }
.stage h2 span { min-width: 28px; padding: 4px 8px; border-radius: 999px; background: var(--ink); color: var(--white); font: 700 13px/1 var(--body); text-align: center; }
.cater-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cater { display: grid; gap: 8px; padding: 14px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.cater-date { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cater-date strong { font: 800 24px/1 var(--display); }
.cater-date span { font-size: 12px; font-weight: 700; color: var(--rose-dark); }
.cater p { font-size: 14px; }
.cater .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.cater .meta a { color: var(--ink); font-weight: 700; }
.cater-actions { display: flex; gap: 8px; }
.cater-actions .btn { flex: 1; }
.stage-empty { padding: 18px 8px; text-align: center; font-size: 14px; color: var(--muted); }

/* Menu */
.search { display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: min(320px, 100%); padding: 0 12px; border-radius: var(--radius); background: var(--white); border: 1.5px solid var(--ink); }
.search input { width: 100%; min-height: 40px; border: 0; background: none; outline: none; }
.table-scroll { overflow-x: auto; padding: 4px 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 12px; border-bottom: 2px solid var(--ink); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; }
.data-table td:first-child { font-weight: 700; }
.data-table tr.is-off td:not(:last-child) { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--rose); }
.price-input { display: inline-flex; align-items: center; gap: 2px; }
.price-input input { width: 6rem; min-height: 38px; padding: 0 8px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--page); text-align: right; font-variant-numeric: tabular-nums; }
.price-input input:focus { border-color: var(--ink); }
.avail { min-width: 7.5rem; }
.avail[aria-pressed="true"] { background: var(--green-tint); color: var(--green); }
.avail[aria-pressed="false"] { background: var(--rose-tint); color: var(--rose-dark); }

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

@media (max-width: 1000px) {
  .line, .pipeline { grid-template-columns: 1fr; }
  .lane, .stage { min-height: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-hero { grid-column: 1 / -1; }
  .today-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .topbar { position: static; }
  .topbar-row { padding: 10px 16px; gap: 10px 16px; }
  .topbar-right .who { display: none; }
  .open-state { order: 3; width: 100%; justify-content: flex-start; border-radius: var(--radius); }
  .tabs { padding: 0 8px; }
  .tabs a { padding: 0 12px; font-size: 16px; }
  main { padding: 24px 16px 56px; }
  .demo-note { padding: 8px 16px; }
  .head-controls, .filters { width: 100%; }
  .filters button { flex: 1; padding: 0 6px; }
  .masa { grid-template-columns: 1fr; }
  .masa-count { font-size: 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .bars li { grid-template-columns: 6.5rem 1fr 2.5rem; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .brand > span { font-size: 20px; }
  .clock { font-size: 18px; }
}
