/*
 * Grupo Norte (redrawn on 2026-11-27, chosen by the owner): the light line of the brand's site on every
 * screen, the kitchen TV included ("tem q aplicar esse mesmo padrão da gestão").
 * Rules of the audit: no box inside a box; color only where it means something (orange = the action
 * that moves the order on, red = cancel, yellow = change or someone waiting); weight 800 only on the
 * order number; one radius (8px). Motion only explains what changed, and stops with reduced motion.
 */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --laranja: #ff6a00;
  --laranja-forte: #ff7d1f;
  --laranja-texto: #a84300;
  --azul: #0b2d36;
  --carvao: #111820;
  --cinza: #3e4b55;
  --claro: #f4f5f2;
  --vermelho: #c81e33;
  --vermelho-fundo: #fbdde1;
  --vermelho-texto: #8e1022;
  --amarelo: #f5cd19;
  --amarelo-fundo: #fcf0c4;
  --amarelo-texto: #5c4700;
  --verde: #1e7a4f;
  /* the light line */
  --fundo: var(--claro);
  --folha: #ffffff;
  --tinta: var(--azul);
  --apoio: #56636b;
  --suave: #7d8a91;
  --risco: #e1e4df;
  --risco-forte: #cdd3ce;
  --realce: rgb(11 45 54 / 5%);
  --serie: #33545c;
  /* tints and the few places that are not the sheet */
  --tom-tinta: rgb(11 45 54 / 7%);
  --tom-laranja: rgb(255 106 0 / 11%);
  --tom-vermelho: rgb(200 30 51 / 9%);
  --tom-amarelo: rgb(245 205 25 / 24%);
  --vermelho-suave: #fdf2f3;
  --amarelo-suave: #fdf8e4;
  --amarelo-traco: #dda900;
  --amarelo-borda: #d9b100;
  --inverso: var(--azul);
  --inverso-texto: var(--claro);
  --bia: var(--azul);
  --bia-texto: var(--claro);
  --bia-suave: #a9bbc0;
  --trilho: #e7ebe6;
  --chat: #f7f8f6;
  --sombra: rgb(11 45 54 / 30%);
  --sombra-leve: rgb(11 45 54 / 14%);
  /* motion */
  --curva: cubic-bezier(0.2, 0.7, 0.2, 1);
  --rapido: 160ms;
  --medio: 280ms;
  --lento: 420ms;
}
/*
 * Dark (2026-11-27, the owner: "opção para colocar no modo escuro"). The same brand at night: the navy
 * goes deep, the sheets stay one step above the floor, orange and yellow keep their light; the reds,
 * greens and yellows that are text get lighter so they read. The choice stays on the device.
 */
:root[data-tema="escuro"] {
  color-scheme: dark;
  --laranja-texto: #ff9a4d;
  --cinza: #c2ccd1;
  --vermelho: #e5485c;
  --vermelho-fundo: #3d1d24;
  --vermelho-texto: #ff9eaa;
  --amarelo-fundo: #3a3214;
  --amarelo-texto: #f3d56b;
  --verde: #34a36f;
  --fundo: #0c1418;
  --folha: #141e24;
  --tinta: #e6ecee;
  --apoio: #a1aeb5;
  --suave: #7b8a92;
  --risco: #233038;
  --risco-forte: #33434c;
  --realce: rgb(230 236 238 / 6%);
  --serie: #6f9aa5;
  --tom-tinta: rgb(230 236 238 / 9%);
  --tom-laranja: rgb(255 106 0 / 17%);
  --tom-vermelho: rgb(229 72 92 / 16%);
  --tom-amarelo: rgb(245 205 25 / 16%);
  --vermelho-suave: #26161b;
  --amarelo-suave: #262110;
  --amarelo-traco: #f5cd19;
  --amarelo-borda: #c9a425;
  --inverso: #e6ecee;
  --inverso-texto: #0b2d36;
  --bia: #1e4954;
  --bia-texto: #eef3f4;
  --bia-suave: #a6c0c7;
  --trilho: #0e171c;
  --chat: #10191e;
  --sombra: rgb(0 0 0 / 55%);
  --sombra-leve: rgb(0 0 0 / 40%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font: 500 15px/1.45 "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif; background: var(--fundo); color: var(--tinta); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 2px; border-radius: 4px; }
a { color: inherit; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -0.005em; }
h2 { font-size: 16px; }
small { color: var(--apoio); }
.sobre { color: var(--apoio); font-size: 13px; }
.num, table, .relogio, .conta, .valor { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- header */
.topo { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 60px; padding: 0 24px; background: var(--folha); border-bottom: 1px solid var(--risco); }
.marca { display: flex; align-items: center; min-width: 0; gap: 14px; }
.norte { display: inline-flex; align-items: center; flex: none; gap: 8px; }
.norte img { display: block; width: 30px; height: 28px; object-fit: contain; }
.norte-nome { display: flex; flex-direction: column; line-height: 1; }
.norte-nome span { font-size: 11px; font-weight: 400; color: var(--apoio); }
.norte-nome b { font-size: 16px; font-weight: 800; }
.restaurante { min-width: 0; padding-left: 14px; border-left: 1px solid var(--risco-forte); color: var(--apoio); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abas { display: flex; align-self: stretch; gap: 30px; }
.abas a { position: relative; display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--apoio); font-weight: 600; font-size: 15px; transition: color var(--rapido); }
.abas a:hover { color: var(--tinta); }
.abas a[aria-current] { color: var(--tinta); }
.abas a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--laranja); }
.ferramentas { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.selo { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px; background: var(--realce); color: var(--tinta); font-size: 11px; font-weight: 700; }
.selo.alerta { background: var(--amarelo); color: var(--carvao); }

/* the kitchen clock: the colon breathes, nothing else */
.relogio { margin-right: 6px; color: var(--apoio); font-weight: 600; }
.relogio i { font-style: normal; animation: respira-dois-pontos 2s steps(1) infinite; }
@keyframes respira-dois-pontos { 50% { opacity: 0.25; } }

/* offline: a quiet bar, the dots say it keeps trying */
.sem-conexao { display: flex; justify-content: center; align-items: baseline; gap: 4px; padding: 7px; background: var(--inverso); color: var(--inverso-texto); font-size: 13px; }
.sem-conexao i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; animation: tentando 1.2s infinite; }
.sem-conexao i:nth-of-type(2) { animation-delay: 0.2s; }
.sem-conexao i:nth-of-type(3) { animation-delay: 0.4s; }
@keyframes tentando { 0%, 60%, 100% { opacity: 0.2; } 30% { opacity: 1; } }

/* ---------------------------------------------------------------- buttons */
.botao { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--risco-forte); border-radius: 8px; background: transparent; font-weight: 600; white-space: nowrap; transition: background var(--rapido), border-color var(--rapido), transform var(--rapido); }
.botao:hover { background: var(--realce); }
.botao:active { transform: translateY(1px); }
.botao:disabled { cursor: default; }
.botao.principal, .botao.avancar { border-color: transparent; background: var(--laranja); color: var(--carvao); }
.botao.principal:hover, .botao.avancar:hover { background: var(--laranja-forte); }
.botao.perigo { border-color: transparent; background: var(--vermelho); color: #fff; }
.botao.atencao { border-color: transparent; background: var(--amarelo); color: var(--carvao); }
.botao.escuro { border-color: transparent; background: var(--inverso); color: var(--inverso-texto); }
.botao.icone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* a tap is answered where it happened: a spinner while it goes, a check when it went, a shake if not */
.botao .rotulo { transition: opacity var(--rapido); }
.botao .ok { position: absolute; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.botao.enviando .rotulo, .botao.feito .rotulo { opacity: 0; }
.botao.enviando::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira 0.6s linear infinite; }
.botao.feito .ok { stroke-dashoffset: 0; transition: stroke-dashoffset var(--medio) var(--curva); }
.botao.falhou { animation: nao 0.32s var(--curva); }
@keyframes gira { to { transform: rotate(1turn); } }
@keyframes nao { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }

/* ---------------------------------------------------------------- the sound */
.som { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px 0 9px; border: 1px solid var(--risco-forte); border-radius: 8px; background: transparent; font-weight: 600; white-space: nowrap; transition: background var(--rapido), border-color var(--rapido); }
.som:hover { background: var(--realce); }
.som svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.som .falante { fill: currentColor; fill-opacity: 0.12; }
.som .onda { stroke-dasharray: 1; stroke-dashoffset: 0; transform-origin: 11px 12px; transition: opacity var(--medio) var(--curva), transform var(--medio) var(--curva); }
.som .corte { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--medio) var(--curva); }
.som .c2 { transition-delay: 80ms; }
.som[data-estado="ligado"] .onda { color: var(--laranja); }
.som[data-estado="desligado"] { color: var(--apoio); }
.som[data-estado="desligado"] .onda { opacity: 0; transform: scale(0.6); }
.som[data-estado="desligado"] .corte { stroke-dashoffset: 0; }
.som[data-estado="esperando"] { border-color: var(--laranja); }
.som[data-estado="esperando"] .onda { opacity: 0.35; animation: espera-toque 2.4s ease-in-out infinite; }
.som[data-estado="esperando"] .o2 { animation-delay: 0.3s; }
/* turning it on: the waves leave the speaker, the near one first */
.som.emitindo .onda { animation: emite 0.7s var(--curva) both; }
.som.emitindo .o2 { animation-delay: 0.12s; }
/* an order rang: the waves answer the three notes */
.som.tocando .onda { animation: nota 0.2s ease-out 3 alternate; }
.som.tocando .o2 { animation-delay: 0.06s; }
@keyframes espera-toque { 50% { opacity: 0.9; } }
@keyframes emite { 0% { opacity: 0; transform: scale(0.55); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes nota { to { transform: scale(1.18); } }

/* ---------------------------------------------------------------- the kitchen TV: a queue */
/* (2026-11-27, the owner: "mais em formato de fila mesmo") One list in the order of arrival, the first
   in line on top; the positions sit on one line, like people in a queue. On the right, what left it. */
.operacoes .relogio { color: var(--tinta); font-size: 18px; font-weight: 700; }
.tv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 29%); gap: 20px; align-items: start; padding: 18px 24px 24px; }
.fila-painel, .saindo-bloco { position: relative; min-width: 0; background: var(--folha); border: 1px solid var(--risco); border-radius: 8px; overflow: hidden; }
.fila-topo, .saindo-topo { display: flex; align-items: baseline; gap: 10px; padding: 15px 20px 13px; border-bottom: 1px solid var(--risco); }
.fila-topo h1 { font-size: 20px; }
.saindo-topo h2 { font-size: 17px; }
.conta { display: inline-block; font-weight: 600; color: var(--apoio); }
.fila-topo .conta { font-size: 18px; }
.conta.mudou { animation: rola var(--medio) var(--curva); }
@keyframes rola { from { opacity: 0.2; transform: translateY(45%); } }
.hoje { margin-left: auto; color: var(--apoio); font-size: 14px; }
/* the queue */
.fila-lista, .saindo-lista { position: relative; margin: 0; padding: 0; list-style: none; }
/* fixed columns on the right: every stopwatch and every action stands under the one above it */
.pedido-fila { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px 200px; align-items: center; gap: 0 22px; padding: 14px 20px; border-bottom: 1px solid var(--risco); }
/* the line of the queue: from the first in line to the last, through the positions */
.pedido-fila::before { content: ""; position: absolute; top: 0; bottom: 0; left: 39px; width: 2px; background: var(--risco); }
.pedido-fila.primeiro::before { top: 50%; }
.pedido-fila:last-child::before { bottom: 50%; }
.pede-cancelar::before, .pede-alterar::before { display: none; }
.posicao { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border: 1.5px solid var(--risco-forte); border-radius: 50%; background: var(--folha); color: var(--apoio); font-size: 17px; font-weight: 700; }
.posicao b { display: block; font-weight: inherit; }
.posicao.avancou b { animation: sobe var(--lento) var(--curva); }
@keyframes sobe { from { opacity: 0; transform: translateY(70%); } }
.primeiro .posicao { border-color: var(--inverso); background: var(--inverso); color: var(--inverso-texto); }
.pf-topo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.pedido-fila .numero { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.pf-tipo { display: inline-flex; align-items: center; gap: 6px; color: var(--apoio); font-size: 15px; }
.pf-tipo svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pf-quem { color: var(--cinza); font-size: 15px; font-weight: 600; }
.pf-itens { display: flex; flex-wrap: wrap; gap: 2px 30px; margin-top: 6px; }
.pf-item { font-size: 22px; font-weight: 600; line-height: 1.3; }
.pf-item small { display: block; color: var(--laranja-texto); font-size: 15px; font-weight: 600; line-height: 1.25; }
/* the time promised to the customer ("preparo em 20 a 25 min") as a stopwatch that fills, and its words
   (2026-11-27, the owner did not get the "min" alone): "faltam 12 min", yellow inside the promised
   window, "atrasado 8 min" past it */
.prazo { display: flex; align-items: center; gap: 10px; color: var(--serie); }
.prazo svg { flex: none; width: 38px; height: 38px; fill: none; stroke-linecap: round; }
.prazo .trilha { stroke: var(--risco); stroke-width: 2.2; }
.prazo .volta { stroke: currentColor; stroke-width: 2.6; stroke-dasharray: var(--p, 0) 100; transform: rotate(-90deg); transform-origin: 18px 20.5px; }
.chegou .prazo .volta { animation: volta 0.9s var(--curva) both; }
@keyframes volta { from { stroke-dasharray: 0 100; } }
.prazo .coroa { stroke: currentColor; stroke-width: 2; }
.prazo span { display: grid; line-height: 1.15; }
.prazo small { color: var(--apoio); font-size: 13px; font-weight: 600; }
.prazo b { color: var(--tinta); font-size: 20px; font-weight: 700; white-space: nowrap; }
.prazo.atencao { color: var(--amarelo-traco); }
.prazo.atencao small, .prazo.atencao b { color: var(--amarelo-texto); }
.prazo.atraso { color: var(--vermelho); }
.prazo.atraso small, .prazo.atraso b { color: var(--vermelho-texto); }
/* the actions: a thin drawing in a circle and its word (2026-11-27, the owner: "evite ficar usando
   botões, algo mais caracterizado, mais fino"). The bell for ready, the motorbike for out, the house
   for delivered, the bag for picked up, the struck receipt for a cancellation, the arrows for a change. */
.pf-acoes { display: flex; justify-content: center; align-items: flex-start; gap: 4px; }
.toque { position: relative; display: inline-grid; justify-items: center; align-content: start; gap: 6px; min-width: 86px; padding: 2px; border: 0; background: none; color: var(--tinta); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.toque:disabled { cursor: default; }
.toque:focus-visible { outline: none; }
.toque-circulo { position: relative; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border: 1.5px solid var(--risco-forte); border-radius: 50%; background: var(--folha); transition: border-color var(--rapido), background-color 200ms var(--curva), color 200ms var(--curva), transform 240ms var(--curva), box-shadow 240ms var(--curva); }
.toque-circulo > svg { grid-area: 1 / 1; width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: opacity 120ms, transform var(--rapido); }
.toque-rotulo { color: var(--cinza); font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
.toque:focus-visible .toque-circulo { box-shadow: 0 0 0 3px var(--tom-tinta), 0 0 0 5px var(--risco-forte); }
.toque.destaque .toque-circulo { border-color: var(--laranja); color: var(--laranja-texto); box-shadow: 0 0 0 4px var(--tom-laranja); }
.toque.destaque .toque-rotulo { color: var(--laranja-texto); }
.toque.perigo .toque-circulo { border-color: var(--vermelho); color: var(--vermelho); }
.toque.perigo .toque-rotulo { color: var(--vermelho-texto); }
.toque.atencao .toque-circulo { border-color: var(--amarelo-borda); background-color: var(--amarelo-suave); color: var(--amarelo-texto); }
.toque.atencao .toque-rotulo { color: var(--amarelo-texto); }
.toque.pequena { min-width: 72px; gap: 4px; }
.toque.pequena .toque-circulo { width: 44px; height: 44px; }
.toque.pequena .toque-circulo > svg { width: 24px; height: 24px; }
.toque.pequena .toque-rotulo { font-size: 12px; }
.toque { --tom: var(--tom-tinta); }
.toque.destaque { --tom: var(--tom-laranja); }
.toque.perigo { --tom: var(--tom-vermelho); }
.toque.atencao { --tom: var(--tom-amarelo); }
/* the mouse over it (2026-11-27, the owner: "a sensação do mouse em cima está fraca"): the circle rises,
   fills with its color and gets a halo; the drawing moves its own way. Only where there is a mouse. */
@media (hover: hover) {
  .toque:hover .toque-circulo { transform: translateY(-3px); border-color: currentColor; background-color: var(--tom); box-shadow: 0 0 0 6px var(--tom), 0 12px 20px -12px var(--sombra); }
  .toque:hover .toque-rotulo { color: var(--tinta); }
  .toque.destaque:hover .toque-rotulo { color: var(--laranja-texto); }
  .toque.perigo:hover .toque-rotulo { color: var(--vermelho-texto); }
  .toque.atencao:hover .toque-rotulo { color: var(--amarelo-texto); }
  .toque:hover .sino { animation: balanca 0.7s var(--curva); transform-origin: 50% 65%; }
  .toque:hover .sino .raios { opacity: 1; }
  .toque:hover .veiculo { animation: acelera 0.55s var(--curva) forwards; }
  .toque:hover .vento { animation: sopra 0.6s linear infinite; }
  .toque:hover .seta-a { animation: empurra 0.65s var(--curva); }
  .toque:hover .seta-b { animation: puxa 0.65s var(--curva); }
  .toque:hover .visto { animation: risca 0.45s var(--curva) 60ms both; }
  .toque:hover .sacola, .toque:hover .casa { transform: translateY(-1.5px); }
}
.toque:active .toque-circulo { transform: scale(0.94); box-shadow: 0 0 0 3px var(--tom); }
@keyframes balanca { 20% { transform: rotate(-10deg); } 45% { transform: rotate(7deg); } 70% { transform: rotate(-3deg); } }
@keyframes acelera { 0% { transform: none; } 30% { transform: translateX(-1.5px); } 100% { transform: translateX(2px); } }
@keyframes sopra { 0% { opacity: 0; transform: translateX(2px); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateX(-3px); } }
@keyframes empurra { 50% { transform: translateX(2.5px); } }
@keyframes puxa { 50% { transform: translateX(-2.5px); } }
@keyframes risca { from { stroke-dashoffset: 1; } }
.vento { opacity: 0; }
.visto { stroke-dasharray: 1; }
/* the drawing answers the tap: the bell rings, the motorbike leaves, the bag and the house lift, the
   arrows swap; then the circle fills and a check is drawn. A failure shakes. */
.sino .raios { opacity: 0; transition: opacity var(--rapido); }
.toque.feito .sino { animation: toca 0.42s var(--curva); transform-origin: 50% 65%; }
.toque.feito .sino .raios { opacity: 1; }
@keyframes toca { 25% { transform: rotate(-12deg); } 50% { transform: rotate(9deg); } 75% { transform: rotate(-4deg); } }
.toque.feito .moto { animation: parte 0.46s cubic-bezier(0.5, 0, 0.75, 0) both; }
@keyframes parte { 25% { transform: translateX(-2px); } to { transform: translateX(34px); } }
.toque.feito .casa, .toque.feito .sacola { animation: ergue 0.38s var(--curva); }
@keyframes ergue { 45% { transform: translateY(-4px); } }
.toque.feito .trocar { animation: troca 0.42s var(--curva); }
@keyframes troca { to { transform: rotate(180deg); } }
.toque .ok { stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.toque.enviando .toque-circulo::after { content: ""; position: absolute; inset: 3px; border: 1.5px solid transparent; border-top-color: currentColor; border-radius: 50%; animation: gira 0.7s linear infinite; }
.toque.feito .toque-circulo { border-color: var(--verde); background-color: var(--verde); color: #fff; box-shadow: none; transition-delay: 0s, 260ms, 260ms; }
.toque.perigo.feito .toque-circulo { border-color: var(--vermelho); background-color: var(--vermelho); }
.toque.feito .toque-circulo > svg:not(.ok) { opacity: 0; transition: opacity 120ms 300ms; }
.toque.feito .ok { stroke-dashoffset: 0; transition: stroke-dashoffset var(--medio) var(--curva) 330ms; }
.toque.falhou .toque-circulo { border-color: var(--vermelho); animation: nao 0.32s var(--curva); }
/* what the customer asked: on top of the queue, a "!" in place of the position */
.pede-cancelar { background: var(--vermelho-suave); }
.pede-alterar { background: var(--amarelo-suave); }
.pede-cancelar .posicao { border-color: var(--vermelho); background: var(--vermelho); color: #fff; }
.pede-alterar .posicao { border-color: var(--amarelo); background: var(--amarelo); color: var(--carvao); }
.pf-pedido { margin: 6px 0 2px; font-size: 16px; font-weight: 700; animation: acesa 2.4s ease-in-out infinite; }
.pede-cancelar .pf-pedido { color: var(--vermelho-texto); }
.pede-alterar .pf-pedido { color: var(--amarelo-texto); }
.pf-pedido span { font-weight: 500; }
@keyframes acesa { 50% { opacity: 0.62; } }
/* a new order joins the end of the queue: a warm wash that fades */
.pedido-fila.chegou, .saindo-item.chegou { animation: entra 2s var(--curva); }
@keyframes entra { from { background-color: rgb(255 106 0 / 16%); } }
.fantasma { position: fixed; z-index: 4; margin: 0; list-style: none; pointer-events: none; background: var(--folha); }
.fila-vazia { display: grid; justify-items: center; gap: 6px; padding: 16vh 20px; color: var(--apoio); text-align: center; }
.fila-vazia b { color: var(--tinta); font-size: 20px; font-weight: 600; }
/* on the right, what left the queue: ready to go, and on the way */
.saindo { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.saindo-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--risco); }
.saindo-item:last-child { border-bottom: 0; }
.si-info { min-width: 0; }
.si-topo { display: flex; align-items: baseline; gap: 12px; }
.saindo-item .numero { font-size: 22px; font-weight: 800; }
.saindo-item.curto { padding-top: 8px; padding-bottom: 8px; }
.curto .numero { font-size: 18px; }
.curto .si-quem { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-quem { margin-top: 1px; font-size: 16px; font-weight: 600; }
.si-onde { color: var(--apoio); font-size: 14px; overflow-wrap: anywhere; }
.saindo .vazio-col { padding: 14px 20px; }
.vazio-col { color: var(--suave); font-size: 14px; }
.vazio { padding: 18px 0; color: var(--apoio); }
/* more than fits: nobody scrolls a TV, so it says how many are below */
.mais { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: center; padding: 36px 0 8px; background: linear-gradient(to bottom, transparent, var(--folha) 58%); color: var(--azul); font-weight: 700; pointer-events: none; }
/* a TV: the screen is the limit */
@media (min-width: 901px) {
  .tv { height: calc(100vh - 60px); overflow: hidden; }
  .fila-painel { display: flex; flex-direction: column; max-height: 100%; }
  .fila-lista { flex: 1; min-height: 0; overflow: hidden; }
  .saindo { max-height: 100%; }
  .saindo-bloco { display: flex; flex-direction: column; min-height: 0; }
  .saindo-bloco:last-child { flex-shrink: 0; }
  .saindo-lista { flex: 1; min-height: 0; overflow: hidden; }
}
/* an HD TV (768 high): tighter rows, so more of the queue fits */
@media (min-width: 901px) and (max-height: 860px) {
  .tv { padding-top: 14px; }
  .pedido-fila { grid-template-columns: 40px minmax(0, 1fr) 140px 190px; padding: 10px 18px; }
  .pedido-fila::before { left: 37px; }
  .pedido-fila .numero { font-size: 27px; }
  .pf-item { font-size: 20px; }
  .toque-circulo { width: 50px; height: 50px; }
  .toque-circulo > svg { width: 27px; height: 27px; }
  .saindo-item { padding-top: 9px; padding-bottom: 9px; }
}
/* light or dark: the moon turns into the sun */
.tema svg { overflow: visible; }
.tema .lua, .tema .sol { transform-origin: 12px 12px; transition: transform var(--lento) var(--curva), opacity var(--medio) var(--curva); }
.tema .sol { opacity: 0; transform: rotate(-90deg) scale(0.4); }
[data-tema="escuro"] .tema .lua { opacity: 0; transform: rotate(90deg) scale(0.4); }
[data-tema="escuro"] .tema .sol { opacity: 1; transform: none; }
@media (hover: hover) {
  .tema:hover .lua { transform: rotate(-16deg); }
  [data-tema="escuro"] .tema:hover .sol { transform: rotate(45deg); }
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (max-width: 1500px) {
  .botao.icone span { display: none; }
  .botao.icone { padding: 0 10px; }
}

/* ---------------------------------------------------------------- management */
.gestao-corpo { max-width: 1240px; margin: 0 auto; padding: 20px 24px 32px; }
.subabas { position: relative; display: flex; gap: 26px; margin-bottom: 18px; border-bottom: 1px solid var(--risco); overflow-x: auto; scrollbar-width: none; }
.subabas button { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 0 0 11px; border: 0; background: none; color: var(--apoio); font-weight: 600; transition: color var(--rapido); }
.subabas button:hover, .subabas button[aria-pressed="true"] { color: var(--tinta); }
.marcador { position: absolute; left: 0; bottom: 0; width: var(--w, 0); height: 2px; background: var(--tinta); transform: translateX(var(--x, 0)); transition: transform var(--medio) var(--curva), width var(--medio) var(--curva); }
.filtros { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; }
.periodos { position: relative; display: inline-flex; padding: 3px; border-radius: 9px; background: var(--trilho); }
.periodos button { position: relative; z-index: 1; padding: 6px 12px; border: 0; border-radius: 7px; background: none; color: var(--apoio); font-size: 14px; font-weight: 600; transition: color var(--rapido); }
.periodos button[aria-pressed="true"] { color: var(--tinta); }
.bolha { position: absolute; top: 3px; bottom: 3px; left: 0; width: var(--w, 0); border-radius: 7px; background: var(--folha); box-shadow: 0 1px 2px var(--sombra-leve); transform: translateX(var(--x, 0)); transition: transform var(--medio) var(--curva), width var(--medio) var(--curva); }
/* the numbers of the period: one strip, a hairline between them */
.numeros { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 16px; background: var(--folha); border: 1px solid var(--risco); border-radius: 8px; }
.numeros.quatro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.indicador { min-width: 0; padding: 15px 18px; border-left: 1px solid var(--risco); }
.indicador:first-child { border-left: 0; }
.indicador .rotulo { color: var(--apoio); font-size: 13px; font-weight: 600; }
.indicador .valor { margin: 5px 0 3px; font-size: 25px; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.indicador small { font-size: 12px; }
.variacao.sobe { color: var(--verde); }
.variacao.desce { color: var(--vermelho); }
.variacao.sobe::before { content: "▲ "; font-size: 9px; }
.variacao.desce::before { content: "▼ "; font-size: 9px; }
.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.painel { min-width: 0; padding: 18px 20px; background: var(--folha); border: 1px solid var(--risco); border-radius: 8px; }
.painel > .sobre { margin: 2px 0 14px; }
.largo { grid-column: 1 / -1; }

/* charts: one series in the blue of the brand; orange only marks the best one */
.colunas { position: relative; height: 190px; margin-top: 22px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--risco-forte); }
.coluna { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 4px 4px 0 0; transition: background var(--rapido); }
.coluna i { width: 100%; max-width: 26px; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--serie); transform-origin: bottom; animation: cresce var(--lento) var(--curva) both; animation-delay: calc(var(--i, 0) * 14ms); }
.coluna.pico i { background: var(--laranja); }
.coluna i.zero { visibility: hidden; }
.coluna:hover, .coluna:focus-visible { background: var(--realce); }
@keyframes cresce { from { transform: scaleY(0); } }
.topo-barra { position: absolute; left: 50%; transform: translate(-50%, -4px); white-space: nowrap; font-size: 12px; font-weight: 700; font-style: normal; }
.topo-barra.inicio { left: 0; transform: translate(0, -4px); }
.topo-barra.fim { left: auto; right: 0; transform: translate(0, -4px); }
.eixo { position: relative; height: 22px; color: var(--suave); font-size: 12px; font-variant-numeric: tabular-nums; }
.eixo span { position: absolute; top: 5px; transform: translateX(-50%); white-space: nowrap; }
.eixo span.inicio { transform: none; left: 0 !important; }
.eixo span.fim { transform: none; left: auto !important; right: 0; }
.barra-linha { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); align-items: center; gap: 12px; min-height: 34px; border-radius: 6px; transition: background var(--rapido); }
.barra-linha:hover, .barra-linha:focus-visible { background: var(--realce); }
.barra-nome { overflow-wrap: anywhere; font-size: 14px; }
.barra-area { display: flex; align-items: center; gap: 10px; min-width: 0; }
.barra-pista { flex: 1; }
.barra-pista i { display: block; height: 12px; min-width: 2px; border-radius: 0 3px 3px 0; background: var(--serie); transform-origin: left; animation: enche var(--lento) var(--curva) both; }
@keyframes enche { from { transform: scaleX(0); } }
.barra-valor { width: 92px; flex: none; text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
#g-distancias .barra-linha { grid-template-columns: clamp(86px, 22%, 190px) minmax(0, 1fr); }
.fora i { background: var(--risco-forte); }
.dica { position: fixed; z-index: 5; max-width: 260px; padding: 7px 10px; border-radius: 6px; background: var(--inverso); color: var(--inverso-texto); font-size: 13px; pointer-events: none; }
details { margin-top: 12px; color: var(--apoio); font-size: 13px; }
summary { cursor: pointer; font-weight: 600; }
.rolagem { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--tinta); }
th, td { padding: 8px; border-bottom: 1px solid var(--risco); text-align: left; }
th { color: var(--apoio); font-size: 12px; font-weight: 600; }
td.n, th.n { text-align: right; white-space: nowrap; }
td small { display: block; white-space: nowrap; }

/* ---------------------------------------------------------------- delivery */
.campo { display: grid; gap: 6px; align-content: start; margin-bottom: 14px; }
.campo > span { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.campo input:not([type="range"]), .busca, .entrada input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--risco-forte); border-radius: 8px; background: var(--folha); color: var(--tinta); transition: border-color var(--rapido), box-shadow var(--rapido); }
.campo input:not([type="range"]):focus, .busca:focus, .entrada input:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px var(--tom-tinta); }
.campo small { font-size: 12px; }
.raio b { font-size: 20px; font-weight: 700; }
input[type="range"] { width: 100%; height: 22px; margin: 4px 0; accent-color: var(--laranja); background: transparent; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; }
form .acoes { margin-top: 14px; }
.recado { min-height: 22px; margin-top: 8px; font-size: 14px; }
.recado.ok { color: var(--verde); }
.recado.ok::before { content: "✓ "; }
.recado.erro { color: var(--vermelho); }
.nota { margin-top: 12px; padding: 9px 12px; border-radius: 6px; background: var(--realce); color: var(--apoio); font-size: 13px; }
.nota.atencao { background: var(--amarelo-fundo); color: var(--amarelo-texto); }

/* ---------------------------------------------------------------- Acompanhar: the same path, in columns */
.humanos { display: grid; gap: 10px; margin-bottom: 22px; }
.humanos:empty { display: none; }
.humano { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 8px; background: var(--amarelo-fundo); color: var(--amarelo-texto); }
.humano b { display: block; color: var(--tinta); font-size: 15px; font-weight: 700; }
.humano .botao { margin-left: auto; }
.quadro { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: start; }
.raia-topo { display: flex; align-items: baseline; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--risco-forte); }
.raia > .sobre { margin-top: 8px; }
.raia-lista { display: grid; gap: 10px; margin-top: 12px; }
.ficha { padding: 12px 14px; background: var(--folha); border: 1px solid var(--risco); border-radius: 8px; }
.ficha-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ficha .numero { font-size: 18px; font-weight: 800; }
.ficha .total { font-weight: 600; }
.ficha .quem { margin-top: 2px; font-size: 14px; color: var(--cinza); overflow-wrap: anywhere; }
.ficha .quando { font-size: 13px; color: var(--suave); }
.ficha .pediu { margin-top: 6px; font-size: 13px; font-weight: 600; }
.ficha .pediu.cancelar { color: var(--vermelho-texto); }
.ficha .pediu.alterar { color: var(--amarelo-texto); }
.ficha .acoes { margin-top: 10px; }
.ficha .botao { min-height: 34px; font-size: 14px; }
.ficha details { margin-top: 8px; }
.ficha details div { margin-top: 6px; color: var(--cinza); }
.ficha.chegou { animation: chegada 1.8s var(--curva); }
/* the end of the path (2026-11-27): a finished order is quieter, and says when it ended */
.ficha.feita { background: transparent; }
.ficha.feita .quando { color: var(--verde); font-weight: 600; }
.ficha.feita .quando::before { content: "✓ "; }
@keyframes chegada { 0% { box-shadow: 0 0 0 3px var(--laranja); } 100% { box-shadow: 0 0 0 0 rgb(255 106 0 / 0%); } }

/* ---------------------------------------------------------------- conversations */
.explica { margin: -4px 0 12px; }
.conversas { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 16px; height: max(430px, calc(100vh - 190px)); }
.conversas-lista, .conversa-aberta { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--folha); border: 1px solid var(--risco); border-radius: 8px; }
.busca { width: auto; margin: 10px; }
.conversas-rolagem { flex: 1; min-height: 0; overflow-y: auto; }
.conversas-rolagem .vazio { padding: 18px 12px; }
#limite-conversas:not(:empty) { padding: 8px 12px; border-top: 1px solid var(--risco); }
.conversa { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 1px 10px; width: 100%; padding: 11px 12px; border: 0; border-top: 1px solid var(--risco); background: none; text-align: left; transition: background var(--rapido); }
.conversa:hover { background: var(--realce); }
.conversa[aria-current="true"] { background: var(--tom-tinta); }
.inicial { grid-row: span 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tom-tinta); color: var(--tinta); font-size: 13px; font-weight: 700; }
.conversa[aria-current="true"] .inicial { background: var(--inverso); color: var(--inverso-texto); }
.conversa-quem { min-width: 0; overflow-wrap: anywhere; }
.conversa-quem small { display: block; }
.conversa-valor { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.conversa-previa, .conversa-numeros { grid-column: 2 / -1; }
.conversa-previa { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--cinza); }
.conversa-numeros { color: var(--suave); font-size: 12px; }
.centro { margin: auto; padding: 24px; text-align: center; }
.chat-topo { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--risco); }
.chat-quem { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.chat-quem small { display: block; }
.chat-total { flex: none; text-align: right; }
.chat-total span { display: block; color: var(--apoio); font-size: 11px; }
.chat-total b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.voltar { display: none; }
.chat { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--chat); }
.chat.abrindo { animation: abre var(--medio) var(--curva); }
@keyframes abre { from { opacity: 0; transform: translateY(6px); } }
.chat > * { flex: none; }
.balao { max-width: 80%; padding: 9px 12px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; }
.balao small { display: block; margin-top: 5px; font-size: 11px; white-space: normal; }
.balao.cliente { align-self: flex-start; border-bottom-left-radius: 3px; background: var(--folha); border: 1px solid var(--risco); }
.balao.bia { align-self: flex-end; border-bottom-right-radius: 3px; background: var(--bia); color: var(--bia-texto); }
.balao.bia small { color: var(--bia-suave); }
.balao.bia small b { color: var(--bia-texto); font-weight: 700; }
.balao.aviso { background: var(--folha); color: var(--tinta); border: 1px dashed var(--risco-forte); }
.balao.aviso small { color: var(--apoio); }
.balao.aviso small b { color: var(--tinta); }
.balao-tipo { display: block; margin-bottom: 4px; color: var(--apoio); font-size: 12px; font-style: normal; font-weight: 600; }
.evento { align-self: center; max-width: 92%; color: var(--apoio); text-align: center; font-size: 12px; }

/* ---------------------------------------------------------------- code screens */
body.entrada { display: grid; place-items: center; padding: 24px 16px; }
.entrada-caixa { width: min(360px, 100%); animation: assenta var(--lento) var(--curva) both; }
.entrada .norte { gap: 12px; }
.entrada .norte img { width: 58px; height: 55px; }
.entrada .norte-nome span { font-size: 18px; }
.entrada .norte-nome b { font-size: 30px; }
.assinatura { margin: 10px 0 22px; color: var(--apoio); font-size: 13px; }
.entrada form { display: grid; gap: 10px; padding: 22px; background: var(--folha); border: 1px solid var(--risco); border-radius: 8px; }
.entrada h1 { margin-bottom: 6px; font-size: 18px; }
.entrada label { font-weight: 600; }
.entrada input { min-height: 46px; letter-spacing: 0.2em; }
.entrada .botao { min-height: 46px; margin-top: 4px; font-weight: 700; }
.com-erro input { border-color: var(--vermelho); animation: nao 0.32s var(--curva) 0.15s; }
@keyframes assenta { from { opacity: 0; transform: translateY(8px); } }
.entrada.gestores { width: min(380px, 100%); margin: 0 auto; padding: 14vh 16px 24px; }
.entrada.gestores form { width: 100%; }
.fechar-gestao { display: inline; padding: 0; margin: 0; }
.rodape { padding: 8px 20px 20px; text-align: center; color: var(--suave); font-size: 12px; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1180px) {
  .restaurante { display: none; }
  .tv { grid-template-columns: minmax(0, 1fr) minmax(280px, 32%); }
  .quadro { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .numeros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .numeros .indicador:nth-child(4) { border-left: 0; }
  .numeros .indicador:nth-child(n + 4) { border-top: 1px solid var(--risco); }
}
@media (max-width: 900px) {
  .tv { grid-template-columns: minmax(0, 1fr); }
  .pedido-fila { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px 14px; padding: 14px; }
  .pedido-fila::before { display: none; }
  .posicao { width: 36px; height: 36px; font-size: 15px; }
  .pf-acoes { grid-column: 2 / -1; justify-content: flex-start; }
  .grade { grid-template-columns: minmax(0, 1fr); }
  .quadro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numeros.quatro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numeros.quatro .indicador:nth-child(3) { border-left: 0; }
  .numeros.quatro .indicador:nth-child(n + 3) { border-top: 1px solid var(--risco); }
  .conversas { display: block; height: auto; }
  .conversas-lista { max-height: 75vh; }
  .conversa-aberta { display: none; }
  .conversas.com-aberta .conversas-lista { display: none; }
  .conversas.com-aberta .conversa-aberta { display: flex; height: calc(100dvh - 150px); min-height: 380px; }
  .voltar { display: inline-flex; }
}
@media (max-width: 620px) {
  .topo { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 12px 0; row-gap: 4px; }
  .abas { grid-column: 1 / -1; grid-row: 2; height: 42px; gap: 0; }
  .abas a { flex: 1; justify-content: center; }
  .so-largo, .relogio, .som-rotulo { display: none; }
  .som { padding: 0 8px; }
  .tv, .gestao-corpo { padding: 14px 12px 24px; }
  .pedido-fila .numero { font-size: 25px; }
  .pf-item { font-size: 18px; }
  .fila-topo, .saindo-topo { padding: 13px 14px 11px; }
  .fila-topo { flex-wrap: wrap; row-gap: 2px; }
  .fila-topo .hoje { width: 100%; margin-left: 0; }
  .subabas { gap: 16px; }
  .subabas button { font-size: 14px; }
  .numeros, .numeros.quatro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numeros .indicador { border-left: 0; border-top: 1px solid var(--risco); }
  .numeros .indicador:nth-child(2n) { border-left: 1px solid var(--risco); }
  .numeros .indicador:nth-child(-n + 2) { border-top: 0; }
  .indicador { padding: 12px; }
  .indicador .valor { font-size: 21px; }
  .quadro { grid-template-columns: minmax(0, 1fr); }
  .campos { grid-template-columns: minmax(0, 1fr); }
  .humano { flex-wrap: wrap; }
  .humano .botao { margin-left: 0; }
  .balao { max-width: 92%; }
  .fechar-gestao .botao { min-height: 34px; padding: 0 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Gestão > Impressora (Fase 4) */
.estado-impressora { margin: 4px 0 12px; font-weight: 600; }
.estado-impressora.ok { color: var(--verde); }
.estado-impressora.alerta { color: var(--vermelho); }
.campo.marcar { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.campo.marcar input { width: auto; }
.lista-impressoes { display: grid; gap: 0; }
.lista-impressoes .linha-impressao { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--risco); }
.lista-impressoes .linha-impressao:first-child { border-top: 0; }
.lista-impressoes .quando { color: var(--tinta-2, inherit); font-size: 14px; }
.campo select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--risco-forte); border-radius: 8px; background: var(--folha); color: var(--tinta); font: inherit; }
.campo select:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px var(--tom-tinta); }
.campo.marcar input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--laranja); }
