*, *::before, *::after { box-sizing: border-box; }
:root {
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: #2b211e;
  background: #f7f4ef;
  --ink: #2b211e;
  --muted: #6c5d55;
  --border: #e8e0d8;
  --paper: #fffefa;
  --clay: #a23b20;
  --clay-hover: #87301a;
  --sidebar: #221b18;
  --accent: #e49b69;
  --focus: #136b85;
  --radius: 18px;
  --shadow: 0 3px 12px #321c1409;
}
body { margin: 0; min-width: 300px; }
main { width: 100%; max-width: 1480px; margin: 0 auto; padding: 34px 36px 72px; }
.staff { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px 15px 18px;
  background: var(--sidebar);
  color: #f9f0e9;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; font-size: 1.45rem; font-weight: 750; letter-spacing: -.04em; line-height: 1; text-decoration: none; }
.sidebar .brand { margin: 3px 10px 37px; }
.brand small { display: block; margin-top: 6px; color: #d0bfb4; font-size: .79rem; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  gap: 5px;
  border-radius: 13px;
  color: #762e1d;
  background: #efaa7b;
  box-shadow: inset 0 1px #ffe6cc90;
}
.brand-mark i { position: relative; width: 1.5px; height: 20px; background: currentColor; transform: rotate(24deg); }
.brand-mark i::after { content: ""; position: absolute; top: 4px; left: -2px; width: 6px; height: 10px; background: currentColor; border-radius: 2px; }
.brand-mark i:nth-child(2) { top: -3px; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a {
  display: flex;
  min-height: 48px;
  padding: 8px 13px;
  align-items: center;
  gap: 12px;
  color: #dfd2c8;
  text-decoration: none;
  border-radius: 10px;
  font-size: .93rem;
  font-weight: 550;
}
.sidebar nav a:hover { background: #ffffff13; color: #fff9f4; }
.sidebar nav a[aria-current] { background: #503025; color: #ffccb0; font-weight: 700; }
.nav-divider { height: 1px; background: #ffffff1b; margin: 11px 10px; }
.nav-icon { position: relative; flex: 0 0 17px; width: 17px; height: 17px; opacity: .85; border: 1.5px solid currentColor; border-radius: 4px; }
.nav-icon::after { content: ""; position: absolute; }
.orders-icon::after, .menu-icon::after { top: 4px; left: 3px; right: 3px; height: 1.5px; background: currentColor; box-shadow: 0 3.5px currentColor; }
.kitchen-icon { border-radius: 50% 50% 4px 4px; height: 12px; }
.kitchen-icon::after { left: 6px; top: -5px; height: 4px; border-left: 2px solid currentColor; }
.tables-icon::after { inset: 3px 0 0; border-top: 1.5px solid currentColor; }
.history-icon { border-radius: 50%; }
.history-icon::after { left: 6px; top: 3px; width: 4px; height: 5px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.team-icon { height: 8px; margin-top: 8px; border-radius: 8px 8px 3px 3px; }
.team-icon::after { width: 7px; height: 7px; top: -9px; left: 3.5px; border-radius: 50%; border: 1.5px solid currentColor; }
.account { display: flex; align-items: center; gap: 9px; margin: auto 3px 0; border-top: 1px solid #ffffff24; padding: 15px 0 0; }
.avatar { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; background: #56392f; color: #ffd5bb; border-radius: 50%; font-weight: 750; }
.account-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 1; color: #fff3e9; font-size: .88rem; }
.exit { background: transparent; color: #e1d3c9; padding-inline: 8px; font-size: .85rem; }
.exit:hover { background: #ffffff14; color: #fff; }
.public-header { background: var(--sidebar); color: #fff5ed; }
.public-bar { max-width: 1060px; margin: auto; padding: 13px 22px; }
.public-bar .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
.guest main { max-width: 1060px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.05em; font-weight: 780; }
main > h1, main > .heading:has(h1), main > .page-heading { margin-bottom: 24px; }
h2 { font-size: 1.18rem; font-weight: 740; letter-spacing: -.02em; }
h3 { font-size: 1.13rem; font-weight: 720; letter-spacing: -.025em; }
p + p { margin-top: 9px; }
.muted { color: var(--muted); }
.board-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 168px;
  padding: 30px 34px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(ellipse at 95% -45%, #a4492e 0%, transparent 60%), linear-gradient(110deg, #2e211d, #4b2b20);
  color: #fff7f0;
}
.board-hero::after { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; border: 1px solid #ffc09b30; border-radius: 50%; right: 12%; top: -125%; box-shadow: 0 0 0 26px #ffc09b13, 0 0 0 52px #ffc09b0c, 0 0 0 78px #ffc09b09; }
.board-hero p { margin-top: 9px; color: #f3d9ca; }
.board-hero .hero-button { color: #39221a; background: #ffc19a; flex-shrink: 0; }
.board-hero .hero-button:hover { color: #39221a; background: #ffd1b4; }
.hero-button span { font-size: 1.35rem; line-height: 1; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 29px; }
.metric { min-width: 0; padding: 12px 16px 13px; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.metric span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; font-weight: 650; }
.metric strong { display: block; font-size: 1.65rem; line-height: 1.2; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pending { --state-dot: #a35b77; --state-soft: #f6e8ef; --state-ink: #7a3554; }
.received { --state-dot: #a65c1c; --state-soft: #fff0da; --state-ink: #80420f; }
.preparing { --state-dot: #39708b; --state-soft: #e5f0f6; --state-ink: #265e75; }
.ready, .done { --state-dot: #478260; --state-soft: #e5f2e7; --state-ink: #2e633e; }
.canceled, .denied { --state-dot: #ad4037; --state-soft: #fae9e6; --state-ink: #922e26; }
.metric span::before, .status::before, .lane .section-heading::before { content: ""; display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--state-dot, #8d776c); }
.queue-section { margin-block: 24px; }
.section-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 25px; padding: 0 7px; border-radius: 8px; background: #eee6df; color: #5e4a40; font-size: .83rem; font-weight: 750; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); align-items: start; gap: 15px; margin-bottom: 22px; }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 13px; }
.lane { background: #eee9e3; border-radius: var(--radius); padding: 11px; min-width: 0; }
.lane .section-heading { padding: 4px 5px 0; }
.lane .section-heading h2 { flex: 1; }
.lane .order-card + .order-card { margin-top: 10px; }
.empty { display: flex; align-items: center; gap: 11px; padding: 17px 18px; min-height: 69px; background: #fffefa89; border: 1px dashed #dfd3c9; border-radius: 13px; color: var(--muted); font-size: .94rem; }
.empty-mark { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border-radius: 9px; background: #eee6df; font-weight: 750; color: #765748; }
.panel, dialog { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.heading { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.narrow { max-width: 450px; margin: 28px auto; }
.order-card { padding: 14px; border-top: 3px solid var(--state-dot); }
.order-head { align-items: flex-start; }
.status { display: inline-flex; align-items: center; gap: 6px; background: var(--state-soft, #eee6df); color: var(--state-ink, #62483b); border-radius: 100px; padding: 4px 8px; font-size: .81rem; font-weight: 700; }
.order-meta { display: flex; gap: 4px 9px; align-items: baseline; flex-wrap: wrap; margin-top: 5px; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.order-meta > strong { color: var(--ink); }
.lines { list-style: none; padding: 0; margin: 13px 0 10px; border-block: 1px solid var(--border); }
.lines li { display: flex; align-items: baseline; gap: 9px; margin: 9px 0; overflow-wrap: anywhere; }
.quantity { display: inline-grid; place-items: center; min-width: 26px; padding: 1px 5px; background: #f0e7de; border-radius: 6px; font-size: .83rem; color: #70452f; font-weight: 750; }
.line-note, .order-reason { color: var(--muted); font-size: .89rem; }
.order-total { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .91rem; color: var(--muted); }
.order-total strong { color: var(--ink); }
.card-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 14px; }
.action:has(> button) { flex: 1; }
.action > button { width: 100%; }
.action:has(details[open]) { flex-basis: 100%; }
.action summary { font-size: .88rem; }
details label { margin-top: 8px; }
form { min-width: 0; }
label { display: block; color: var(--ink); font-size: .93rem; font-weight: 640; margin: 10px 0 5px; }
input:not([type=hidden]), select {
  display: block;
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9bcb1;
  border-radius: 10px;
  margin-top: 5px;
  padding: 8px 11px;
  font: inherit;
  font-weight: 500;
}
button, .button, summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 8px 14px;
  color: #fffaf6;
  background: var(--clay);
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--clay-hover); }
button[disabled] { opacity: .6; cursor: wait; }
.quiet, summary { color: #684437; background: #f5ece4; border-color: #e9dbcf; }
.quiet:hover, summary:hover { color: #4a2d21; background: #ebdbcd; }
.danger { background: #92312b; }
.notice, .errorlist { margin: 0 0 12px; padding: 11px 14px; border-radius: 10px; background: #e8f3e7; color: #305c37; }
.notice-error, .errorlist { background: #fbe8e3; color: #842f27; }
.errorlist { list-style: none; }
.filters { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 17px; }
.filters label { margin: 0; flex: 0 1 220px; }
.product { display: grid; gap: 4px; align-content: start; border-top: 3px solid #d6a58c; }
.order-info { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 23px; }
.order-info label { flex: 1 1 220px; margin: 0; }
.table-chip { display: inline-block; margin-bottom: 9px; padding: 4px 9px; background: #f3e3d7; border-radius: 8px; color: #74402b; font-weight: 700; }
.product-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 10px; }
.product-head strong { color: #7b361f; white-space: nowrap; }
.table-card > .heading:first-child { margin-bottom: 14px; }
.table-code { margin: 0 0 12px; padding: 8px 12px; background: #f3e9df; border-radius: 9px; }
.table-code span { display: block; font-size: .88rem; color: var(--muted); }
.step { display: flex; align-items: center; gap: 8px; }
.step input { max-width: 78px; text-align: center; margin: 0; }
.step button { min-width: 48px; padding-inline: 6px; font-size: 1.27rem; }
.checkout { position: sticky; z-index: 1; bottom: 8px; display: flex; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 7px 32px #40231726; }
.checkout output { font-size: 1.18rem; display: block; }
dialog { width: min(500px, calc(100% - 24px)); color: inherit; }
dialog::backdrop { background: #2b1c18b8; }
dialog h2, dialog p { margin-bottom: 12px; }
.code { font-size: 1.45rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.code-panel, .track-panel { padding: 26px; }
.code-panel h1 { margin: 14px 0 8px; }
.code-panel button, .code-panel .button { width: 100%; margin-top: 14px; }
.code-input { letter-spacing: .3em; }
.track-panel .button { margin-top: 16px; }
.login-shell {
  width: min(1050px, 100%);
  min-height: min(625px, calc(100dvh - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 1.05fr;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 15px 70px #49261716;
}
.entry { background: radial-gradient(ellipse at top left, #e9d9ca, transparent 53%), #f4eee8; }
.entry main { min-height: 100dvh; display: grid; align-content: center; padding: 28px 20px; }
.login-form { display: flex; flex-direction: column; justify-content: center; gap: 27px; margin: auto; width: min(100% - 60px, 360px); padding-block: 34px; }
.login-form h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.login-form p { margin-top: 7px; }
.login-form label { margin-top: 14px; }
.login-form button { width: 100%; margin-top: 23px; }
.login-photo {
  background: linear-gradient(145deg, #26191344, transparent 40%), url("/espetos-brasa.webp") center / cover, radial-gradient(ellipse at 65% 26%, #9d5638, #2b1b16 75%);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sidebar :focus-visible { outline-color: #ffc19a; }
@media (max-width: 1150px) {
  .staff { grid-template-columns: 194px minmax(0, 1fr); }
  main { padding-inline: 23px; }
}
@media (max-width: 900px) {
  .staff { display: block; }
  .sidebar { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; height: auto; padding: 11px 16px 7px; gap: 8px 12px; }
  .sidebar .brand { margin: 0; }
  .sidebar nav { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); }
  .sidebar nav a { padding: 5px 7px; justify-content: center; gap: 6px; }
  .nav-divider { display: none; }
  .account { margin: 0; align-self: center; border: 0; padding: 0; max-width: 175px; }
}
@media (max-width: 650px) {
  main { padding: 18px 13px 46px; }
  .sidebar { padding-inline: 12px; }
  .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sidebar .brand { font-size: 1.23rem; }
  .sidebar nav a { font-size: .85rem; }
  .sidebar .brand small, .account .avatar { display: none; }
  .board-hero { min-height: auto; flex-direction: column; align-items: stretch; padding: 20px; gap: 14px; margin-bottom: 13px; }
  .board-hero p { margin-top: 5px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 18px; }
  .metric { padding: 8px 11px; }
  .lanes { grid-template-columns: 1fr; gap: 9px; }
  .public-bar { padding-inline: 13px; }
  .entry main { padding: 15px; }
  .login-shell { grid-template-columns: 1fr; grid-template-rows: 157px auto; min-height: auto; }
  .login-photo { grid-row: 1; background-position: center 40%; }
  .login-form { width: min(100% - 34px, 350px); padding-block: 21px 23px; gap: 17px; }
}
@media print {
  .sidebar, .public-header, .button, button { display: none !important; }
  .staff { display: block; }
}
