@import url('/comum/fontes.css');
/* Rodada 2: as classes de estado e todos os eventos vêm dos scripts originais. */
body { font-family: 'DM Sans', sans-serif; --fonte: 'Outfit', sans-serif; --mono: 'Outfit', sans-serif; font-variant-numeric: tabular-nums; }
h1, h2, h3, .numero, .senha-grande, .contador, .relogio, .quem { font-family: 'Outfit', sans-serif; }
button, input, select, textarea { font-family: 'DM Sans', sans-serif; }
button { min-height: 48px; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #1670c5; outline-offset: 4px; }
[hidden] { display: none !important; }
.logo img { object-fit: contain; background: #fff; }
.topo small, .ao-vivo { color: #52616b; }
/* Totem: caminho de leitura vertical, sem competição com a marca. */
.tela-totem { background: #f1f4f3; color: #182b32; overflow: auto; --papel: #f1f4f3; --tinta: #182b32; --tinta-2: #445b64; --tinta-3: #445b64; }
.tela-totem .totem { min-height: 100vh; height: auto; }
.tela-totem header { background: #fff; color: #182b32; border-top: 12px solid var(--cor); padding: 3vh 5vw; }
.tela-totem .logo { border: 1px solid #d4dedb; border-radius: 18px; }
.tela-totem header h1 { font-size: clamp(28px, 3.6vh, 60px); }
.tela-totem header p { font-size: clamp(20px, 2vh, 34px); margin-top: 8px; color: #445b64; }
.tela-totem main { padding: 4vh 5vw; gap: 3vh; align-content: center; }
.tela-totem .pergunta { font-size: clamp(30px, 3.6vh, 64px); text-align: left; line-height: 1.12; max-width: 22ch; }
.tela-totem .servicos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tela-totem .servico { position: relative; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; min-height: 150px; padding: 24px 60px 24px 26px; gap: 12px; border: 1px solid #bdcfca; border-left: 8px solid var(--cor); border-radius: 16px; box-shadow: 0 5px 0 #dfe7e3; font-size: clamp(28px, 3.2vh, 52px); line-height: 1.12; overflow-wrap: anywhere; }
.tela-totem .servico::after { content: '→'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 30px; color: #445b64; }
.tela-totem .servico small { font: 500 clamp(20px, 1.8vh, 28px) 'DM Sans', sans-serif; white-space: normal; }
.tela-totem .servico:active { background: #e5efea; box-shadow: none; }
.tela-totem footer { font-size: clamp(16px, 1.5vh, 23px); max-width: 70ch; margin: auto; }
.tela-totem .tela-cheia { overflow-y: auto; gap: 2.2vh; }
.tela-totem .botao { border-radius: 12px; box-shadow: none; white-space: normal; min-height: 72px; }
.tela-totem .quem span { border: 1px solid #b6c6c1; border-radius: 12px; }
.tela-totem .escolha .botao { font-size: clamp(26px, 3vh, 48px); }
.tela-totem #sim-prioridade { background: #ffdb69; border-color: #73580e; }
.tela-totem #confirmar-nome { background: #182b32; border-color: #182b32; }
.tela-totem #pronto .senha { font-size: min(23vh, 19vw); color: #fff; letter-spacing: -.04em; }
.tela-totem #nome-tela input { border: 2px solid #80978e; border-radius: 12px; }
@media (orientation: portrait) { .tela-totem .servico { min-height: 13vh; } .tela-totem main { padding-top: 5vh; padding-bottom: 5vh; } }
@media (max-width: 600px) { .tela-totem .servicos { grid-template-columns: 1fr; } .tela-totem .escolha { flex-direction: column; } .tela-totem .tela-cheia { place-content: start center; } }
/* Sala: atendimento em primeiro plano; fila sempre ao lado no tablet amplo. */
.tela-sala { --fundo: #eef3f2; --linha: #ccdad5; --tinta: #182c33; --tinta-2: #435d65; --tinta-3: #526770; --verde: #17613e; }
.tela-sala .topo { border-top: 6px solid var(--marca); padding: 18px 28px; }
.tela-sala .topo h1 { font-size: 28px; }
.tela-sala main { max-width: 1500px; grid-template-columns: minmax(0, 1.3fr) minmax(310px, 1fr); gap: 24px; padding: 26px; }
.tela-sala .cartao { border-radius: 16px; box-shadow: 0 6px 22px #18332b08; }
.tela-sala .atual { border-top: 8px solid var(--marca); padding: 28px; gap: 18px; background: #fff; }
.tela-sala .rotulo { color: #435d65; font-size: 14px; }
.tela-sala .senha-grande { font-size: clamp(64px, 8vw, 118px); font-weight: 700; color: #182c33; overflow-wrap: anywhere; }
.tela-sala .quem { font-size: 32px; overflow-wrap: anywhere; }
.tela-sala .principal { background: #183d48; border: 0; border-left: 8px solid var(--marca); border-radius: 12px; min-height: 78px; box-shadow: none; font-size: 23px; }
.tela-sala .acoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tela-sala button { min-height: 56px; border-radius: 10px; }
.tela-sala .espera { padding: 22px; }
.tela-sala .espera h2 { font-size: 24px; }
.tela-sala .contador { color: #183d48; font-size: 32px; }
.tela-sala .lista { max-height: 43vh; gap: 8px; }
.tela-sala .lista li { min-height: 66px; padding: 14px; border: 1px solid #dce5e1; }
.tela-sala .lista li > span { min-width: 0; overflow-wrap: anywhere; }
.tela-sala .lista b { font-size: 21px; }
.tela-sala .lista small { color: #435d65; font-size: 15px; }
.tela-sala .lista li.pri { border-left: 5px solid #ad3b22; background: #fff2e8; }
.tela-sala .numeros span { font-size: 14px; }
.tela-sala .prioridade { justify-self: start; background: #a83220; }
@media (max-width: 740px) { .tela-sala main { grid-template-columns: 1fr; padding: 14px; } .tela-sala .topo { flex-wrap: wrap; padding: 14px; } .tela-sala .atual { padding: 22px; } }
/* Garçom: verde reservado a pedido pronto; pedido novo permanece ao alcance. */
.tela-garcom { --fundo: #f0f3ef; --tinta: #192f2b; --tinta-3: #53675e; --verde: #17603e; --linha: #d3ded6; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.tela-garcom .topo { background: #172e29; padding: 18px 16px; }
.tela-garcom .topo small, .tela-garcom .ao-vivo { color: #c0d6ca; }
.tela-garcom main { gap: 28px; padding-top: 24px; }
.tela-garcom h2 { font-size: 26px; letter-spacing: -.025em; }
.tela-garcom h2 span { background: #dce8df; color: #294b38; border-radius: 8px; padding: 4px 10px; }
.tela-garcom .pedido { border-radius: 14px; box-shadow: none; }
.tela-garcom .pedido.pronto { border: 2px solid #17603e; background: #f7fff8; }
.tela-garcom .pedido.pronto::before { content: 'PRONTO PARA LEVAR'; display: block; padding: 10px 16px; background: #17603e; color: #fff; font-weight: 800; letter-spacing: .09em; font-size: 12px; }
.tela-garcom .pedido header { padding: 16px; flex-wrap: wrap; }
.tela-garcom .numero { font-size: 29px; }
.tela-garcom .mesa { border-radius: 7px; font-size: 17px; background: #ffe2a0; color: #503b09; }
.tela-garcom .itens { padding: 0 16px 18px; gap: 8px; font-size: 18px; }
.tela-garcom .itens em { color: #9e301f; font-size: 16px; }
.tela-garcom .entregar { min-height: 60px; }
.tela-garcom .novo, .tela-garcom .enviar button { background: #192f2b; border-radius: 12px; border-top: 4px solid var(--marca); }
.tela-garcom .vazio { padding: 26px 18px; color: #53675e; }
.tela-garcom .fechar { min-width: 48px; }
.tela-garcom .qtd button { width: 44px; height: 48px; }
.tela-garcom .item { flex-wrap: wrap; }
.tela-garcom .item > div { min-width: 130px; }
.tela-garcom .torrada { width: max-content; max-width: calc(100vw - 32px); }
/* Cozinha: quadro escuro, observações claras e tempos sem pulsação contínua. */
.tela-cozinha { --fundo: #101b20; --cartao: #22333b; --linha: #42545b; --texto: #fff; --fraco: #c2d0d4; --novo: #ffad80; --preparo: #ffe09a; --pronto: #8ae4ad; }
.tela-cozinha .topo { height: 84px; background: #17272e; }
.tela-cozinha .topo h1 { font-size: 23px; }
.tela-cozinha .topo small, .tela-cozinha .ao-vivo { color: #c2d0d4; }
.tela-cozinha .botao-som { color: #e6eff0; min-height: 48px; }
.tela-cozinha .quadro { height: calc(100vh - 84px); gap: 18px; padding: 18px; }
.tela-cozinha .coluna { border-radius: 12px; }
.tela-cozinha .coluna > header { padding: 18px; border-top: 5px solid var(--novo); border-radius: 12px 12px 0 0; }
.tela-cozinha .coluna.preparando > header { border-top-color: var(--preparo); }
.tela-cozinha .coluna.pronto > header { border-top-color: var(--pronto); }
.tela-cozinha .coluna h2 { font-size: 20px; letter-spacing: .02em; }
.tela-cozinha .contador { font-size: 24px; height: 38px; }
.tela-cozinha .pedido { border-radius: 10px; }
.tela-cozinha .pedido header { flex-wrap: wrap; padding: 18px 16px 12px; }
.tela-cozinha .numero { font-size: 38px; }
.tela-cozinha .destino { font-size: 18px; border-radius: 6px; }
.tela-cozinha .tempo { font-size: 19px; background: #183f2d; color: #b4ffd0; }
.tela-cozinha .tempo.atencao { background: #ffdb85; color: #3d2c06; }
.tela-cozinha .tempo.atrasado { background: #b62d22; color: #fff; animation: none; border: 2px solid #ffb5a4; }
.tela-cozinha .itens { gap: 14px; padding: 10px 16px 20px; }
.tela-cozinha .itens li { font-size: 23px; overflow-wrap: anywhere; }
.tela-cozinha .itens li > span { min-width: 0; }
.tela-cozinha .obs-item, .tela-cozinha .obs { background: #ffe1a0; color: #392708; border-left: 5px solid #e19124; padding: 10px; font-size: 20px; border-radius: 4px; }
.tela-cozinha .obs::before { color: #624714; }
.tela-cozinha .quem, .tela-cozinha .chamando { font-size: 17px; }
.tela-cozinha .previsao { font-size: 15px; }
.tela-cozinha .avancar { min-height: 72px; font-size: 22px; }
.tela-cozinha .recebido .avancar { background: #ffad80; color: #321e12; }
.tela-cozinha .pronto .avancar { background: #8ae4ad; color: #153422; }
.tela-cozinha .reimprimir { min-width: 48px; min-height: 48px; }
.tela-cozinha .ativar button { background: #ffdf97; color: #33280f; }
@media (max-width: 1100px) { .tela-cozinha .quadro { gap: 10px; padding: 10px; } .tela-cozinha .lista { padding: 8px; } .tela-cozinha .numero { font-size: 30px; } .tela-cozinha .coluna > header { padding: 12px; } .tela-cozinha .coluna h2 { font-size: 18px; } }
@media (max-width: 820px) { .tela-cozinha .topo { height: auto; flex-wrap: wrap; } .tela-cozinha .quadro { height: auto; grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 1100px) {
  .tela-sala .atual { padding: 24px; gap: 14px; }
  .tela-sala .senha-grande { font-size: 102px; }
  .tela-sala .acoes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
