/* White label de restaurantes · demo · Nineteen Eleven Devs
   Um só arquivo de estilos. Cada casa troca os tokens em [data-tema]. */

@font-face { font-family: 'Archivo'; src: url('fonts/archivo-latin-wdth-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Anton'; src: url('fonts/anton-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Alfa Slab One'; src: url('fonts/alfa-slab-one-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Marcellus'; src: url('fonts/marcellus-latin-400-normal.woff2') format('woff2'); font-display: swap; }

:root, [data-tema="grupo"] {
  --bg: #F6F5F1; --surface: #FFFFFF; --surface-2: #EFEDE6; --ink: #15213B; --muted: #586176; --line: #E1DED5;
  --accent: #15213B; --accent-ink: #FFFFFF; --accent-2: #1E6FD9;
  --red: #D7262E; --green: #2E9A57; --blue: #1E6FD9;
  --ok: #1F8A4C; --warn: #B7791F; --err: #C53030;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-title: 'Archivo', system-ui, sans-serif; --title-weight: 800; --title-stretch: 118%; --title-case: none; --title-track: -0.01em;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(16 20 30 / .06), 0 8px 24px rgb(16 20 30 / .06);
  --demo-h: 40px;
  color-scheme: light;
}
[data-tema="brasa"] {
  --bg: #0E0A09; --surface: #181210; --surface-2: #231915; --ink: #F7EFE8; --muted: #B9A89C; --line: #36261F;
  --accent: #E3261B; --accent-ink: #FFFFFF; --accent-2: #FF8A1F;
  --font-title: 'Anton', 'Archivo', sans-serif; --title-weight: 400; --title-stretch: 100%; --title-case: uppercase; --title-track: 0.01em;
  --shadow: 0 10px 30px rgb(0 0 0 / .35); --ok: #3FBF73; --warn: #F6B34A; --err: #FF6B5E;
  color-scheme: dark;
}
[data-tema="lanche"] {
  --bg: #FBF6EA; --surface: #FFFFFF; --surface-2: #F3EAD3; --ink: #2A1A0E; --muted: #6E5B4A; --line: #EADFC6;
  --accent: #2A1A0E; --accent-ink: #FFD34D; --accent-2: #F2A900;
  --font-title: 'Alfa Slab One', Georgia, serif; --title-weight: 400; --title-stretch: 100%; --title-case: none; --title-track: 0;
}
[data-tema="cantina"] {
  --bg: #F6F2EA; --surface: #FFFFFF; --surface-2: #ECE6D8; --ink: #2B2A1C; --muted: #66654F; --line: #E1DACA;
  --accent: #5F6B2E; --accent-ink: #FFFFFF; --accent-2: #A0522D;
  --font-title: 'Marcellus', Georgia, serif; --title-weight: 400; --title-stretch: 100%; --title-case: none; --title-track: 0.02em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--demo-h) + 80px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); font-stretch: 100%; -webkit-font-smoothing: antialiased; padding-top: var(--demo-h); overflow-x: hidden; }
body.sem-demo { padding-top: 0; --demo-h: 0px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
h1, h2, h3, .titulo { font-family: var(--font-title); font-weight: var(--title-weight); font-stretch: var(--title-stretch); text-transform: var(--title-case); letter-spacing: var(--title-track); line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 84px); }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.secao { padding: clamp(56px, 9vw, 110px) 0; }
.secao-cab { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.secao-cab p { max-width: 520px; color: var(--muted); font-size: 18px; }
.sobre-titulo { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 12px; letter-spacing: .02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- barra da demonstração ---------- */
.demo-bar { position: fixed; inset: 0 0 auto 0; height: var(--demo-h); z-index: 100; background: #0B1020; color: #F2F6FF; display: flex; align-items: center; gap: 14px; padding: 0 12px; font-size: 13px; border-bottom: 1px solid #26314D; }
.demo-bar .marca { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #AAB8D2; text-decoration: none; }
.demo-bar .marca b { color: #55E6FF; font-weight: 600; }
.demo-bar .marca img { width: 22px; height: 22px; border-radius: 5px; }
.demo-bar nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.demo-bar nav::-webkit-scrollbar { display: none; }
.demo-bar nav a { text-decoration: none; color: #AAB8D2; padding: 6px 10px; border-radius: 7px; white-space: nowrap; }
.demo-bar nav a:hover { color: #F2F6FF; background: #11192D; }
.demo-bar nav a[aria-current] { color: #0B1020; background: #55E6FF; font-weight: 600; }
.demo-bar .aviso { color: #AAB8D2; white-space: nowrap; }
@media (max-width: 900px) { .demo-bar .aviso { display: none; } .demo-bar .marca span { display: none; } }

/* ---------- botões, chips, selos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; background: var(--accent); color: var(--accent-ink); font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.sec { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.btn.sec:hover { border-color: var(--ink); }
.btn.claro { background: #fff; color: #111; }
.btn.contorno-claro { background: transparent; color: #fff; border-color: rgb(255 255 255 / .55); }
.btn.peq { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.zap { background: #1F8A4C; color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 550; border: 1px solid transparent; }
.selo { display: inline-block; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent-2) 16%, transparent); color: var(--ink); }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.ponto.on { background: #22C55E; box-shadow: 0 0 0 4px rgb(34 197 94 / .18); }
.pend { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--warn); font-weight: 600; }

/* ---------- cabeçalho do site ---------- */
.topo { position: sticky; top: var(--demo-h); z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topo .wrap { display: flex; align-items: center; gap: 20px; height: 70px; }
.topo .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.topo .logo img { height: 46px; width: auto; border-radius: 8px; }
.topo nav { display: flex; gap: 4px; margin-left: auto; }
.topo nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 550; font-size: 15px; }
.topo nav a:hover { color: var(--ink); background: var(--surface-2); }
@media (max-width: 860px) { .topo nav { display: none; } .topo .btn { margin-left: auto; } }

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grade { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- cardápio ---------- */
.menu-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: none; }
.menu-cats::-webkit-scrollbar { display: none; }
.menu-cats button { border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; font-weight: 600; font-size: 14px; }
.menu-cats button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.menu-cat { margin-bottom: 38px; }
.menu-cat > h3 { margin-bottom: 16px; }
.menu-itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.prato { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prato .foto { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.prato .foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prato:hover .foto img { transform: scale(1.04); }
.prato .foto.vazia { display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 16px; background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, color-mix(in srgb, var(--surface-2) 70%, var(--surface)) 10px 20px); }
.prato .corpo { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prato .linha { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.prato h4 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; }
.prato .preco { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prato .preco.sem { font-weight: 500; font-size: 13px; color: var(--muted); }
.prato p { color: var(--muted); font-size: 15px; }
.prato.indisp { opacity: .55; }
.prato.indisp .foto img { filter: grayscale(1); }
.lista .prato { flex-direction: row; }
.lista .prato .foto { width: 112px; aspect-ratio: 1; flex: none; }
.lista .menu-itens { grid-template-columns: 1fr; gap: 10px; }
.lista .prato h4 { font-size: 16px; }
.lista .prato p { font-size: 14px; }
.lista .prato .corpo { padding: 12px 14px; gap: 4px; }
.aviso-demo { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, #55E6FF 14%, var(--surface)); border: 1px dashed color-mix(in srgb, #0B8FAA 50%, transparent); font-size: 14px; color: var(--ink); }
.aviso-demo b { font-weight: 650; }

/* ---------- reserva ---------- */
.reserva { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.reserva .etapa { margin-bottom: 22px; }
.reserva label.rot, .reserva .rot { display: block; font-weight: 650; font-size: 14px; margin-bottom: 10px; }
.casas-sel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.casas-sel button { border: 1.5px solid var(--line); background: var(--bg); border-radius: var(--radius-sm); padding: 10px; cursor: pointer; font-weight: 650; font-size: 14px; text-align: left; line-height: 1.2; }
.casas-sel button small { display: block; font-weight: 450; color: var(--muted); font-size: 12px; margin-top: 2px; }
.casas-sel button[aria-pressed="true"] { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 10%, var(--surface)); }
.dias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.dias button { flex: none; width: 64px; padding: 8px 0 9px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; text-align: center; line-height: 1.15; }
.dias button small { display: block; font-size: 11.5px; color: var(--muted); text-transform: lowercase; }
.dias button b { display: block; font-size: 20px; font-weight: 700; margin-top: 2px; }
.dias button[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.dias button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.dias button[aria-pressed="true"] small { color: inherit; opacity: .8; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slots button { border: 1.5px solid var(--line); background: var(--bg); border-radius: var(--radius-sm); padding: 8px 4px; cursor: pointer; text-align: center; line-height: 1.15; }
.slots button b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.slots button small { font-size: 11.5px; color: var(--muted); }
.slots button.pouco small { color: var(--warn); font-weight: 600; }
.slots button[disabled] { opacity: .38; cursor: not-allowed; }
.slots button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.slots button[aria-pressed="true"] small { color: inherit; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; cursor: pointer; }
.stepper output { min-width: 54px; text-align: center; font-weight: 700; font-size: 18px; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .campos { grid-template-columns: 1fr; } .casas-sel { grid-template-columns: 1fr; } }
.campo label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.campo input, .campo textarea, .campo select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); }
.campo textarea { min-height: 70px; resize: vertical; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--accent-2); }
.campo.full { grid-column: 1 / -1; }
.reserva .rodape { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 18px; }
.reserva .resumo { font-size: 14px; color: var(--muted); }
.reserva .erro { color: var(--err); font-weight: 600; font-size: 14px; margin-top: 12px; }
.reserva .privacidade { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.ok-reserva { text-align: center; padding: 18px 6px; }
.ok-reserva .icone { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); font-size: 30px; }
.ok-reserva h3 { margin-bottom: 8px; }
.ticket { margin: 18px auto 0; max-width: 360px; text-align: left; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 6px; font-size: 15px; }
.ticket div { display: flex; justify-content: space-between; gap: 10px; }
.ticket span { color: var(--muted); }

/* ---------- horários ---------- */
.horas { display: grid; gap: 0; }
.horas div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.horas div.hoje { font-weight: 700; }
.horas div.hoje span:first-child::after { content: ' · hoje'; color: var(--accent-2); font-weight: 600; }
.horas .ni { color: var(--muted); font-style: italic; }

/* ---------- rodapé ---------- */
.rodape-site { padding: 48px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.rodape-site .wrap { display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr 1fr; }
.rodape-site h4 { color: var(--ink); margin: 0 0 10px; font-size: 14px; }
.rodape-site a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
.rodape-site a:hover { color: var(--ink); }
.rodape-site .demo-nota { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 720px) { .rodape-site .wrap { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: #0B1020; color: #F2F6FF; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 200; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- celular (moldura) ---------- */
.celular { width: 360px; max-width: 100%; aspect-ratio: 9 / 19; border-radius: 46px; padding: 12px; background: #0E0F12; box-shadow: 0 30px 60px rgb(0 0 0 / .28), inset 0 0 0 2px #2A2C33; position: relative; margin-inline: auto; }
.celular iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #fff; display: block; }
.celular::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #0E0F12; border-radius: 20px; z-index: 2; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ======================================================================
   White label: componentes novos (marca, carrinho, pedido, operação)
   ====================================================================== */
.ic { width: 20px; height: 20px; flex: none; }
.demo-bar .troca-marca { display: flex; align-items: center; gap: 6px; color: #AAB8D2; white-space: nowrap; }
.demo-bar .troca-marca select { max-width: 150px; background: #11192D; color: #F2F6FF; border: 1px solid #26314D; border-radius: 7px; height: 28px; padding: 0 6px; font-size: 13px; }
@media (max-width: 700px) { .demo-bar .troca-marca span { display: none; } }

/* logotipos de texto das marcas fictícias */
.logo-txt { font-family: var(--font-title); line-height: 1; white-space: nowrap; display: inline-flex; align-items: baseline; gap: .12em; color: var(--ink); text-decoration: none; }
.logo-brasa { font-family: 'Anton'; font-size: 26px; letter-spacing: .02em; }
.logo-brasa i { font-style: normal; color: #E3261B; }
.logo-lanche { font-family: 'Alfa Slab One'; font-size: 20px; }
.logo-lanche i { font-family: 'Archivo'; font-style: italic; font-weight: 700; font-size: .62em; background: #F2A900; color: #2A1A0E; padding: 2px 5px; border-radius: 4px; transform: rotate(-6deg); display: inline-block; }
.logo-cantina { font-family: 'Marcellus'; font-size: 24px; letter-spacing: .04em; }
.logo-cantina i { font-style: italic; color: #5F6B2E; }
.logo-txt.grande { font-size: clamp(40px, 7vw, 80px); }

/* ilustração no lugar da foto (a foto real entra pelo painel) */
.ilus { width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent-2);
  background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--accent-2) 22%, var(--surface-2)), var(--surface-2)); }
.ilus .ic { width: 42%; height: 42%; max-width: 74px; max-height: 74px; stroke-width: 1.5; }
.lista .prato .foto { width: 92px; }
.prato .pe { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; min-height: 36px; }
.selo.esg { background: color-mix(in srgb, var(--err) 18%, transparent); }
.prato .add { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--accent); color: var(--ink); background: transparent; border-radius: 999px; padding: 6px 12px 6px 8px; font-weight: 650; font-size: 14px; cursor: pointer; }
.prato .add .ic { width: 18px; height: 18px; }
.prato .add:hover { background: var(--accent); color: var(--accent-ink); }
.qtd { display: inline-flex; align-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.qtd button { width: 36px; height: 36px; border: 0; background: none; color: inherit; display: grid; place-items: center; cursor: pointer; }
.qtd button .ic { width: 18px; height: 18px; }
.qtd output { min-width: 18px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
.prato.no-carrinho { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2); }

/* status dos pedidos */
.stp { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.stp.aguardando { background: #FDF0D5; color: #8A5A00; }
.stp.fila { background: #E7E4FB; color: #4B3BA8; }
.stp.preparando { background: #FFE3D3; color: #A33A0B; }
.stp.pronto { background: #DDF3E6; color: #17663A; }
.stp.entregue { background: #E6EAF0; color: #3C4A5E; }
.stp.off { background: #EEE; color: #777; text-decoration: line-through; }
.stp .ponto { background: currentColor; }
.stp.aguardando .ponto, .stp.preparando .ponto { animation: pisca 1.4s infinite; }
@keyframes pisca { 50% { opacity: .25; } }

/* código de conferência (celular do cliente) */
.codigo-conf { display: flex; gap: 8px; justify-content: center; margin: 10px 0 4px; }
.codigo-conf b { width: 54px; height: 66px; border-radius: 12px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 800 38px/1 'Archivo', sans-serif; font-variant-numeric: tabular-nums; }

/* linha do tempo (auditoria) */
.tempo { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; }
.tempo li { position: relative; padding: 0 0 14px 22px; font-size: 14px; }
.tempo li::before { content: ''; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px var(--muted); }
.tempo li::after { content: ''; position: absolute; left: 5px; top: 17px; bottom: 0; width: 1.5px; background: var(--line); }
.tempo li:last-child::after { display: none; }
.tempo li.ev-conferido::before { background: #1F8A4C; box-shadow: 0 0 0 1.5px #1F8A4C; }
.tempo li.ev-recusado::before, .tempo li.ev-cancelado::before { background: var(--err); box-shadow: 0 0 0 1.5px var(--err); }
.tempo time { font-variant-numeric: tabular-nums; font-weight: 700; margin-right: 6px; }
.tempo small { color: var(--muted); display: block; }

/* mapa de mesas */
.mapa { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.mt { position: relative; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); padding: 10px 12px; text-align: left; cursor: pointer; min-height: 84px; display: flex; flex-direction: column; gap: 2px; font: inherit; color: inherit; }
.mt b { font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mt small { font-size: 12px; font-weight: 650; color: var(--muted); }
.mt .tot { font-size: 12px; color: var(--muted); margin-top: auto; font-variant-numeric: tabular-nums; }
.mt.st-livre { background: transparent; border-style: dashed; }
.mt.st-livre b { color: var(--muted); }
.mt.st-aguardando { border-color: #E0A12B; background: #FFF6E0; color: #4A3200; }
.mt.st-aguardando small { color: #8A5A00; }
.mt.st-conta { border-color: #7C3AED; background: #F1EAFE; color: #2E1065; } .mt.st-conta small { color: #6D28D9; }
.mt.st-pronto { border-color: #1F8A4C; background: #E5F6EC; color: #0E3B22; } .mt.st-pronto small { color: #17663A; }
.mt.st-chamando { border-color: #D7262E; background: #FDE8E8; color: #4A0F12; } .mt.st-chamando small { color: #B0222A; }
.mt.st-cozinha { border-color: #6B5BD6; background: #EFEDFD; color: #241A6B; } .mt.st-cozinha small { color: #4B3BA8; }
.mt.st-aguardando, .mt.st-chamando, .mt.st-conta { animation: chama 1.8s infinite; }
@keyframes chama { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent); } }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid; }

/* folha de baixo (celular) */
.folha { position: fixed; inset: 0; background: rgb(0 0 0 / .4); display: none; align-items: flex-end; justify-content: center; z-index: 120; }
.folha.on { display: flex; }
.folha > .caixa { background: var(--surface); color: var(--ink); width: min(560px, 100%); border-radius: 22px 22px 0 0; padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); max-height: 92%; overflow-y: auto; }
.folha .alca { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: -6px auto 12px; }
@media (min-width: 700px) { .folha { align-items: center; } .folha > .caixa { border-radius: 22px; } }

/* passo a passo */
.passos { counter-reset: p; display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.passos li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.passos li::before { content: counter(p); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.passos b { display: block; }
.passos p { color: var(--muted); font-size: 14.5px; }

/* pedido na mesa (cliente) */
.mesa-topo { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.mesa-topo .chip .ic { width: 16px; height: 16px; }
.link-sair { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13.5px; padding: 6px 0; margin-left: auto; }
.mesa-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 6px; }
.mesa-acoes .btn .ic { width: 18px; height: 18px; }
.t-menu { font-size: 26px; margin: 22px 0 14px; }
.como { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.barra-pedido { position: sticky; bottom: 0; padding: 12px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); z-index: 5; }
.barra-pedido .btn { width: 100%; justify-content: space-between; min-height: 54px; box-shadow: 0 10px 30px rgb(0 0 0 / .2); }
.barra-pedido .n { background: var(--accent-ink); color: var(--accent); min-width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 14px; padding: 0 6px; }
.barra-pedido span:nth-child(2) { flex: 1; text-align: left; }
.linha-car { border-bottom: 1px solid var(--line); padding: 12px 0; }
.linha-car.esg { background: color-mix(in srgb, var(--err) 8%, transparent); }
.linha-car .l1 { display: flex; justify-content: space-between; gap: 10px; }
.linha-car .l2 { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.linha-car .obs { flex: 1; min-width: 0; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 12px; }
.erro-inline { color: var(--err); font-size: 13px; font-weight: 600; }
.total-car { display: flex; justify-content: space-between; font-size: 18px; margin: 16px 0 12px; }
.aviso-conf { display: flex; gap: 10px; align-items: flex-start; background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); padding: 12px; border-radius: 12px; font-size: 14px; }
.aviso-conf .ic { color: var(--ok); width: 22px; height: 22px; }
.botoes-folha { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; margin-top: 16px; }
.botoes-folha .btn { padding: 0 12px; white-space: normal; text-align: center; line-height: 1.15; }
.ped { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.ped.aguardando { border: 2px solid #E0A12B; }
.ped.pronto { border: 2px solid #1F8A4C; }
.ped.off { opacity: .6; }
.ped .l1 { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.ped .espera { text-align: center; background: var(--surface-2); border-radius: 12px; padding: 12px; margin: 12px 0 4px; }
.itens-ped { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 15px; }
.itens-ped li { display: grid; grid-template-columns: 30px 1fr; }
.itens-ped li > span { font-weight: 750; font-variant-numeric: tabular-nums; }
.itens-ped small { display: block; color: var(--muted); font-size: 13px; }
.conferido { display: flex; gap: 6px; align-items: center; color: var(--ok); font-weight: 650; font-size: 13.5px; margin-top: 10px; }
.conferido .ic { width: 16px; height: 16px; }
.alteracoes { font-size: 13px; color: var(--muted); margin-top: 4px; }
.conta-linhas { display: grid; gap: 6px; font-size: 15px; }
.conta-linhas div { display: flex; justify-content: space-between; gap: 10px; }
.conta-linhas.tot { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; color: var(--muted); }
.conta-linhas .g { color: var(--ink); font-size: 19px; font-weight: 750; }
.dividir { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.dividir .stepper button { width: 38px; height: 38px; }
.dividir b { margin-left: auto; font-size: 18px; }
