:root {
  --cor: #d62828;
  --cor-escura: #a61e1e;
  --verde: #1f9d55;
  --fundo: #f6f4f1;
  --texto: #222;
  --cinza: #6b6b6b;
  --borda: #e3dfda;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fundo); color: var(--texto); }
.oculto { display: none !important; }
.container { max-width: 720px; margin: 0 auto; padding: 12px 16px 100px; }
.erro { color: var(--cor); font-weight: 600; }
.carregando { text-align: center; color: var(--cinza); }

.btn { background: var(--cor); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.btn:hover { background: var(--cor-escura); }
.btn:disabled { background: #bbb; cursor: not-allowed; }
.btn-grande { width: 100%; padding: 15px; font-size: 17px; }
.btn-whats { background: #25d366; }
.btn-whats:hover { background: #1da851; }
.btn-sec { background: #fff; color: var(--texto); border: 1px solid var(--borda); }
.btn-sec:hover { background: #eee; }
.btn-verde { background: var(--verde); }
.btn-verde:hover { background: #17804a; }

/* ---------- Cliente ---------- */
.topo { background: var(--cor); color: #fff; padding: 20px 16px; text-align: center; }
.topo h1 { margin: 0 0 4px; font-size: 24px; }
.status { font-size: 14px; opacity: .95; }
.aberta { color: #b9ffcf; font-weight: 700; }
.fechada { color: #ffe0a3; font-weight: 700; }
.link-claro { color: #fff; }
.horarios { max-width: 300px; margin: 10px auto 0; background: rgba(0,0,0,.15); border-radius: 10px; padding: 8px 14px; font-size: 14px; text-align: left; }
.horarios div { display: flex; justify-content: space-between; padding: 2px 0; }
.horarios .hoje { font-weight: 800; }
.horarios span:last-child { text-align: right; }
.horarios small { font-weight: 400; opacity: .85; }
.status .atendimento { margin-top: 4px; font-weight: 700; font-size: 15px; }
.tabela-horarios td { padding: 6px 4px; }
.tabela-horarios input[type="time"] { width: 120px; }
.tabela-horarios input[type="time"]:disabled { background: #f0eeeb; color: #b5b0aa; }
.tabela-horarios tr:has(input[name="aberto"]:not(:checked)) td:first-child { color: #9a948d; }
.categoria h2 { font-size: 19px; margin: 22px 0 8px; border-bottom: 2px solid var(--borda); padding-bottom: 6px; }
.produto { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.produto-nome { font-weight: 700; }
.produto-desc { color: var(--cinza); font-size: 14px; margin: 2px 0; }
.produto-preco { color: var(--verde); font-weight: 700; }
.btn-add { white-space: nowrap; }
.produto-num { display: inline-block; background: var(--cor); color: #fff; border-radius: 6px; padding: 0 7px; margin-right: 6px; font-size: 14px; }
.produto-carnes { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--cinza); margin-top: 4px; }
.produto-carnes b { color: var(--verde); }
.produto-escolhas { font-size: 13px; color: var(--cor); font-weight: 600; margin-top: 2px; }
.grupo-edit { background: #fff; border: 1px dashed var(--borda); border-radius: 8px; padding: 8px 10px; margin-top: 8px; display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; align-items: start; }
.grupo-edit label { margin: 0; }
.grupo-falta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; }
.grupo-falta:empty { display: none; }
.grupo-falta-tit { font-weight: 700; color: var(--cor); }
.grupo-falta .falta-op { display: flex; align-items: center; gap: 4px; color: var(--texto); font-size: 13px; }
.grupo-falta .falta-op input { width: auto; margin: 0; }
.grupo-falta .falta-op:has(input:checked) { color: var(--cor); text-decoration: line-through; }
.grupo-edit textarea { font-size: 14px; }
.grupos-titulo { font-weight: 700; margin-top: 10px; font-size: 14px; }
@media (max-width: 640px) { .grupo-edit { grid-template-columns: 1fr; } }
.lista-carnes, .lista-acresc { display: flex; flex-direction: column; gap: 8px; }
.opcao-carne:has(input[name="acrescItem"]:checked) { border-color: var(--verde); background: #f1f8f3; }
.opcao-carne { justify-content: space-between; font-size: 16px; padding: 12px; }
.opcao-carne span { flex: 1; }
.opcao-carne b { color: var(--verde); }
.item-rodape { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.item-rodape .btn { flex: 1; }
.item-carne { font-size: 14px; color: var(--cor); font-weight: 600; }
.carne-tag { color: var(--cor); }

.barra-carrinho { position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 16px; background: rgba(246,244,241,.95); border-top: 1px solid var(--borda); }
.barra-carrinho .btn { max-width: 688px; margin: 0 auto; display: block; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.modal-caixa { background: #fff; width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 16px 18px 24px; }
.modal-caixa.centro { text-align: center; border-radius: 16px; margin: auto 16px; }
@media (min-width: 760px) { .modal { align-items: center; } .modal-caixa { border-radius: 16px; } }
.modal-topo { display: flex; justify-content: space-between; align-items: center; }
.modal-topo h2 { margin: 0; }
.fechar { background: none; border: 0; font-size: 30px; cursor: pointer; line-height: 1; }

.item-carrinho { border-bottom: 1px solid var(--borda); padding: 10px 0; }
.item-linha { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.item-nome small { color: var(--cinza); }
.qtd { display: flex; align-items: center; gap: 10px; }
.qtd button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--borda); background: #fff; font-size: 18px; cursor: pointer; }
.qtd span { min-width: 20px; text-align: center; font-weight: 700; }
.item-obs { margin-top: 6px; }

form h3 { margin: 18px 0 8px; font-size: 16px; }
label { display: block; font-size: 14px; color: var(--cinza); margin-bottom: 8px; }
input, textarea, select { width: 100%; padding: 10px 12px; font-size: 16px; border: 1px solid var(--borda); border-radius: 8px; margin-top: 4px; font-family: inherit; color: var(--texto); background: #fff; }
.linha2 { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.opcao { flex: 1; min-width: 110px; border: 1px solid var(--borda); border-radius: 10px; padding: 10px; color: var(--texto); cursor: pointer; display: flex; align-items: center; gap: 6px; margin: 0; }
.opcao input { width: auto; margin: 0; }
.opcao:has(input:checked) { border-color: var(--cor); background: #fff1f1; }
.cartao-dados { background: #f1f8f3; border: 1px solid #cfe8d6; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; line-height: 1.5; }
.cartao-dados .btn { margin-top: 8px; padding: 8px 12px; font-size: 14px; }
.caixa-troco { background: #fffbea; border: 1px solid #f1e2a8; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
/* "R$" fixo dentro do campo do dinheiro (para "50" nao parecer centavos) */
.campo-reais { position: relative; display: block; }
.campo-reais .prefixo-reais { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; color: #333; pointer-events: none; }
.campo-reais input { padding-left: 42px !important; font-weight: 700; }
.check-exato { display: flex; gap: 8px; align-items: center; color: var(--texto); }
.check-exato input { width: auto; margin: 0; }
.info-troco { font-weight: 700; }
.info-troco .erro { font-weight: 600; }
.pix-valor { font-size: 32px; font-weight: 800; color: var(--verde); margin: 0 0 12px; }
.pix-bloco { background: var(--fundo); border-radius: 12px; padding: 12px; margin: 10px 0; text-align: left; }
.pix-titulo { font-weight: 700; margin-bottom: 6px; }
.pix-bloco textarea { font-family: monospace; font-size: 12px; word-break: break-all; resize: none; margin-bottom: 8px; }
.pix-chave { font-size: 18px; font-weight: 700; word-break: break-all; margin-bottom: 4px; }
.resumo { background: var(--fundo); border-radius: 10px; padding: 10px 14px; margin: 14px 0; }
.resumo div { display: flex; justify-content: space-between; padding: 3px 0; }
.resumo .total { font-weight: 800; font-size: 18px; border-top: 1px solid var(--borda); margin-top: 4px; padding-top: 6px; }

/* ---------- Painel ---------- */
.painel-topo { background: #222; color: #fff; padding: 10px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.painel-topo h1 { font-size: 19px; margin: 0; flex: 1; white-space: nowrap; }
.painel-topo a, .painel-topo button { color: #fff; }
.painel-topo .btn-sec { color: var(--texto); }
.link-cardapio { font-size: 13px; display: flex; align-items: center; gap: 8px; background: #333; padding: 3px 5px 3px 10px; border-radius: 10px; min-width: 0; max-width: 420px; white-space: nowrap; }
.link-cardapio b { color: #b9ffcf; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.painel-topo { gap: 8px 10px; padding: 8px 14px; }
.painel-topo .btn { padding: 7px 12px; font-size: 14px; }
.painel-topo h1 { font-size: 17px; flex: 0 0 auto; }
.painel-topo .link-cardapio { flex: 0 1 330px; }
.painel-topo #btnLoja { white-space: nowrap; }
#resumoDia { margin-left: auto; white-space: nowrap; }
body.com-balcao .painel-topo h1 { flex-basis: 100%; }
body.com-balcao .painel-container { padding: 10px; }
body.com-balcao .filtros .btn { padding: 8px 11px; font-size: 14px; }
.link-cardapio .btn { padding: 5px 10px; font-size: 13px; }
.painel-container { padding: 16px; max-width: 1400px; margin: 0 auto; }
.filtros { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.filtros input { width: auto; margin: 0; }
.filtro.ativo { background: #222; color: #fff; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.card { background: #fff; border-radius: 12px; padding: 14px; border-left: 6px solid #999; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card.novo { border-left-color: var(--cor); animation: pisca 1.2s ease-in-out 3; }
.card.confirmado { border-left-color: var(--verde); }
.card.cancelado { border-left-color: #999; opacity: .6; }
@keyframes pisca { 50% { background: #ffe7e7; } }
.card-topo { display: flex; justify-content: space-between; align-items: baseline; }
.card-num { font-size: 22px; font-weight: 800; }
.etiqueta { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 20px; background: #eee; text-transform: uppercase; }
.etiqueta.novo { background: var(--cor); color: #fff; }
.etiqueta.confirmado { background: var(--verde); color: #fff; }
.card .itens { margin: 8px 0; padding: 8px 0; border-top: 1px dashed var(--borda); border-bottom: 1px dashed var(--borda); }
.card .itens div { margin: 2px 0; }
.card .obs { color: var(--cor); font-size: 14px; }
.card .info { font-size: 14px; color: #444; margin: 3px 0; }
.card .acoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.card .acoes .btn { padding: 8px 12px; font-size: 14px; }
.vazio { color: var(--cinza); text-align: center; padding: 40px; }

/* Lista de pedidos em linhas horizontais (um pedido por linha) */
.grade:has(.lp) { display: flex; flex-direction: column; gap: 6px; }
.grade:has(.lp) { gap: 4px; }
.lp { display: grid; grid-template-columns: 62px minmax(150px, 230px) 1fr 105px 215px; gap: 12px; align-items: center; background: #fff; border-radius: 8px; padding: 5px 10px; border-left: 5px solid #999; box-shadow: 0 1px 2px rgba(0,0,0,.07); cursor: pointer; font-size: 14px; }
.lp:hover { background: #fafafa; box-shadow: 0 1px 5px rgba(0,0,0,.14); }
.lp.novo { border-left-color: var(--cor); background: #fff5f5; animation: pisca 1.2s ease-in-out 3; }
.lp.confirmado { border-left-color: var(--verde); }
.lp.cancelado { opacity: .55; }
.lp-num { font-size: 19px; font-weight: 900; line-height: 1.05; }
.lp-num small { display: block; font-size: 12px; font-weight: 500; color: var(--cinza); }
.lp-cli { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.lp-nome { font-size: 15px; font-weight: 800; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-fone { font-size: 13px; color: #444; white-space: nowrap; }
.lp-onde { min-width: 0; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-tag { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 8px; background: #eee; margin-right: 3px; }
.lp-tag.entrega { background: #e7f0ff; color: #1d4fa8; }
.lp-tag.retirada { background: #fff3d6; color: #8a5a00; }
.lp-tag.balcao { background: #ece6ff; color: #5a3ab0; }
.lp-valor { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lp-total { font-size: 16px; font-weight: 900; white-space: nowrap; }
.lp-valor .etiqueta { font-size: 10px; padding: 2px 6px; }
.lp-acoes { display: flex; gap: 4px; justify-content: flex-end; }
.lp-acoes .btn { padding: 6px 9px; font-size: 13px; white-space: nowrap; }

/* Janela do pedido completo */
.modal.modal-pedido { z-index: 25; }
.modal-pedido .modal-caixa { max-width: 520px; }
.modal-pedido h2 { display: flex; align-items: center; gap: 10px; }
.mp-cli { font-size: 17px; margin: 8px 0 4px; }
.mp-cli small { color: var(--cinza); margin-left: 6px; }
.mp-onde { font-size: 15px; color: #333; margin-bottom: 8px; }
.mp-itens { border-top: 1px dashed var(--borda); border-bottom: 1px dashed var(--borda); padding: 8px 0; }
.mp-item { margin: 4px 0; font-size: 15px; }
.mp-sub { font-size: 14px; color: #444; margin-left: 14px; }
.mp-sub.obs, .mp-obs { color: var(--cor); }
.mp-obs { margin-top: 6px; font-size: 15px; }
.mp-totais { margin-top: 8px; font-size: 15px; }
.mp-total { font-size: 20px; font-weight: 900; }
.modal-pedido .lin { display: flex; justify-content: space-between; gap: 10px; }
.mp-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
/* Linhas se ajustam ao espaco disponivel (ex.: com o balcao aberto ao lado) */
.painel-container { container-type: inline-size; }
@container (max-width: 820px) {
  /* estreito (balcao aberto): 2 linhas finas -> nº | nome/fone | valor ; endereco | botoes */
  .lp { grid-template-columns: 54px 1fr 190px; gap: 2px 10px; }
  .lp-valor { justify-content: flex-end; }
  .lp-num { grid-row: 1 / 3; }
  .lp-cli { flex-direction: row; gap: 8px; align-items: baseline; }
  .lp-valor { flex-direction: row; align-items: center; gap: 6px; }
  .lp-onde { grid-column: 2; grid-row: 2; font-size: 13px; }
  .lp-acoes { grid-column: 3; grid-row: 2; }
}
.busca-caixa { flex: 1; min-width: 260px; display: flex; gap: 6px; }
.filtros .busca-caixa input { margin: 0; font-size: 16px; padding: 10px 12px; width: 100%; flex: 1; }
.busca-caixa .btn { padding: 8px 12px; }

/* ---------- Pedido de balcao ---------- */
.btn-balcao { font-size: 17px; padding: 12px 20px; }
.btn-balcao small, #bFinalizar small { font-weight: 400; opacity: .8; font-size: 13px; }
/* Balcao encaixado na lateral direita: a lista de pedidos continua visivel ao lado */
:root { --largura-balcao: min(60vw, 980px); }
.modal.balcao { left: auto; width: var(--largura-balcao); background: none; align-items: stretch; z-index: 20; box-shadow: -4px 0 16px rgba(0,0,0,.18); }
body.com-balcao { margin-right: var(--largura-balcao); }
.balcao-caixa { background: var(--fundo); width: 100%; display: grid; grid-template-columns: 1fr 360px; height: 100vh; }
.balcao-esq { display: flex; flex-direction: column; padding: 14px; min-height: 0; }
.balcao-busca { display: flex; gap: 8px; align-items: stretch; }
.balcao-busca input { font-size: 17px; padding: 8px 12px; margin: 0; border: 2px solid var(--cor); flex: 1; min-width: 0; }
.balcao-cats { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.bcat { border: 1px solid var(--borda); background: #fff; border-radius: 20px; padding: 7px 14px; font-size: 14px; cursor: pointer; }
.bcat.ativo { background: #222; color: #fff; border-color: #222; }
/* grid-auto-rows max-content: os botoes nao sao espremidos quando a lista passa da altura da tela */
.balcao-grade { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); grid-auto-rows: max-content; gap: 8px; align-content: start; }
.bprod { background: #fff; border: 1px solid var(--borda); border-radius: 10px; padding: 10px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 3px; min-height: 86px; font-family: inherit; }
.bprod:hover { border-color: var(--cor); background: #fff1f1; }
.bprod-num { background: var(--cor); color: #fff; border-radius: 6px; padding: 0 8px; font-size: 20px; font-weight: 800; align-self: flex-start; }
.bprod-nome { font-weight: 700; font-size: 15px; }
.bprod-preco { color: var(--verde); font-weight: 700; font-size: 13px; margin-top: auto; }
.balcao-dir { background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; border-left: 1px solid var(--borda); }
.balcao-dir input { margin: 0; }
.balcao-itens { flex: 1; min-height: 120px; overflow-y: auto; border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); }
.bitem { border-bottom: 1px dashed var(--borda); padding: 8px 0; }
.bitem-nome { flex: 1; font-weight: 600; }
.bitem-nome small { font-weight: 400; color: var(--cinza); }
.bitem-extra { display: flex; gap: 8px; align-items: center; margin-top: 5px; }
.bitem-extra input[data-b="obs"] { font-size: 14px; padding: 6px 8px; }
.bitem-extra label { margin: 0; white-space: nowrap; font-size: 14px; }
.bprox { padding: 6px 10px; font-size: 13px; margin-left: auto; margin-right: 8px; white-space: nowrap; }
.bprox b { font-size: 16px; color: var(--cor); }
.bbtn-acresc, .bbtn-remover { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.bitem-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.bchip { border: 1px solid var(--borda); background: #fff; border-radius: 16px; padding: 5px 10px; font-size: 13px; cursor: pointer; font-family: inherit; }
.bchip.ativo { background: var(--verde); border-color: var(--verde); color: #fff; font-weight: 700; }
.balcao-rotulo { font-size: 13px; color: var(--cinza); font-weight: 600; margin-top: 2px; }
.balcao-botoes { display: flex; gap: 6px; }
.bsel { flex: 1; border: 2px solid var(--borda); background: #fff; border-radius: 10px; padding: 11px 6px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.bsel.ativo { border-color: var(--cor); background: var(--cor); color: #fff; }
.balcao-notas { display: flex; gap: 6px; margin: 6px 0; }
.balcao-notas .btn { padding: 6px 10px; font-size: 14px; }
.balcao-total { display: flex; justify-content: space-between; font-size: 26px; font-weight: 900; }
.balcao-escolha { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.balcao-escolha-caixa { background: #fff; border-radius: 16px; padding: 16px 18px 20px; width: 100%; max-width: 480px; margin: 16px; }
.balcao-escolha-opcoes { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.besc { display: flex; gap: 12px; align-items: center; border: 2px solid var(--borda); background: #fff; border-radius: 10px; padding: 12px; font-size: 18px; cursor: pointer; text-align: left; font-family: inherit; }
.besc:hover { border-color: var(--cor); background: #fff1f1; }
.besc span:last-child { flex: 1; display: flex; justify-content: space-between; }
.besc b { color: var(--verde); }
.besc-tecla { background: #222; color: #fff; border-radius: 6px; min-width: 30px; text-align: center; font-weight: 800; }
.aviso { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: 14px 22px; border-radius: 12px; font-size: 18px; font-weight: 700; z-index: 30; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
@media (max-width: 900px) { .balcao-caixa { grid-template-columns: 1fr; height: auto; min-height: 100vh; } .modal.balcao { overflow-y: auto; width: 100vw; } body.com-balcao { margin-right: 0; } }
.btn-cancelar { background: #fff; color: var(--cor); border: 1px solid #f0b4b4; }
.btn-cancelar:hover { background: #ffecec; }

/* ---------- Admin ---------- */
.secao { background: #fff; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.secao h2 { margin-top: 0; }
.tabela { width: 100%; border-collapse: collapse; }
.tabela td, .tabela th { padding: 6px; border-bottom: 1px solid var(--borda); text-align: left; vertical-align: middle; }
.tabela input, .tabela select { margin: 0; padding: 6px 8px; font-size: 14px; }
.ajuda { font-size: 13px; color: var(--cinza); }
.prod-card { border: 1px solid var(--borda); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.prod-card:has([name="ativo"]:not(:checked)) { opacity: .6; }
.prod-linha1 { display: grid; grid-template-columns: 80px 1fr 180px 90px auto; gap: 10px; align-items: end; }
.prod-ativo { display: flex; gap: 6px; align-items: center; color: var(--texto); white-space: nowrap; padding-bottom: 10px; }
.prod-ativo input { width: auto; margin: 0; }
.prod-precos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; background: var(--fundo); border-radius: 8px; padding: 8px 10px; }
.prod-precos label { margin: 0; }
.prod-preco-unico { border-left: 2px dashed var(--borda); padding-left: 10px; }
.prod-acoes { margin-top: 10px; display: flex; gap: 8px; }
@media (max-width: 640px) { .prod-linha1 { grid-template-columns: 70px 1fr; } }
.ok { color: var(--verde); font-weight: 600; }

.faixa-saude { background: #c62828; color: #fff; font-weight: 700; font-size: 17px; padding: 10px 16px; line-height: 1.5; }
.opcao.travado { opacity: .45; }
.controle-loja { display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.08); border-radius: 10px; padding: 6px 10px; }
.ctrl-linha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctrl-nome { font-weight: 700; min-width: 96px; }
.ctrl-estado { font-weight: 800; padding: 2px 10px; border-radius: 99px; background: #c62828; color: #fff; min-width: 86px; text-align: center; font-size: 14px; }
.ctrl-linha.aberta .ctrl-estado { background: #1f9d55; }
.ctrl-botoes { display: inline-flex; border-radius: 8px; overflow: hidden; border: 1px solid #bbb; }
.ctrl-botoes button { border: 0; background: #fff; color: #333; padding: 5px 10px; font-size: 13px; font-weight: 600; cursor: pointer; border-right: 1px solid #ddd; }
.ctrl-botoes button:last-child { border-right: 0; }
.ctrl-botoes button.ativo { background: #333; color: #fff; }
.ctrl-linha.aberta .ctrl-botoes button.ativo[data-modo="aberto"] { background: #1f9d55; }
.ctrl-botoes button.ativo[data-modo="fechado"] { background: #c62828; }
.ctrl-info { font-size: 12px; opacity: .85; }
.mp-bloq { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #ddd; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-bloquear { color: #c62828; border-color: #e7b3b3; }
.btn-acabou { background: #e65100; white-space: nowrap; font-size: 15px; padding: 6px 12px; }
.btn-acabou:hover { background: #bf4500; }
#modalAcabou { z-index: 40; align-items: center; }
#modalAcabou h3 { margin: 14px 0 6px; font-size: 16px; }
.acab-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.acab-chip { border: 2px solid; border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 700; cursor: pointer; background: #fff; }
.acab-chip.tem { border-color: #1f9d55; color: #1f7a45; background: #eefaf2; }
.acab-chip.falta { border-color: #c62828; color: #fff; background: #c62828; text-decoration: line-through; }
.acab-tem-ex { color: #1f7a45; } .acab-falta-ex { color: #c62828; }
/* Painel: so a lista de pedidos rola; topo, botoes e filtros ficam parados (pedido do dono) */
body.pg-painel { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
body.pg-painel > .painel-topo, body.pg-painel > .faixa-saude { flex: none; }
body.pg-painel > .painel-container { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; }
body.pg-painel .filtros { flex: none; }
body.pg-painel #grade { flex: 1; min-height: 0; overflow-y: auto; align-content: start; padding: 2px 4px 20px 2px; }
.btn-desfazer { background: #f9b233; color: #3a2600; }
.btn-desfazer:hover { background: #e0a020; }
.btn-excluir { color: #c62828; }
/* Botoes do topo do painel numa linha so, menores (pedido do dono) */
.topo-botoes { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.painel-topo .topo-botoes .btn { padding: 4px 9px; font-size: 13px; border-radius: 8px; white-space: nowrap; }
.modal.modal-confirmar { z-index: 50; align-items: center; }
/* Botao "Pedido de balcao" so aparece com o balcao fechado (aberto ele ja fica na tela) */
body.com-balcao #btnBalcao { display: none; }
.dias-bairro { white-space: nowrap; }
.dias-bairro label { display: inline-flex; flex-direction: column; align-items: center; margin: 0 1px; font-size: 12px; color: inherit; }
.dias-bairro input { width: auto; margin: 0; }

/* ---------- Identidade visual (logo) - aprovada pelo dono em 30/11/2026 ---------- */
@font-face { font-family: 'Bebas Neue'; src: url('/static/BebasNeue-Regular.ttf') format('truetype'); font-display: swap; }
.logo-painel { height: 34px; vertical-align: middle; background: #fff; border-radius: 6px; padding: 1px 4px; }
body.cliente {
  --cor: #9e2229; --cor-escura: #7d1a20; --laranja: #cd5c26; --amarelo: #f9b233; --fundo: #fbf6ef;
  --titulo: "Bebas Neue", "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, Impact, sans-serif;
}
body.cliente .topo { background: var(--laranja); padding: 12px 16px 30px; position: relative; overflow: hidden; }
body.cliente .topo::before { /* faixa diagonal mais clara, como no cardapio impresso */
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 120%; background: #d96a2f; transform: rotate(-6deg); }
body.cliente .topo::after { /* onda clara embaixo */
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -26px; height: 52px; background: var(--fundo); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
body.cliente .topo > * { position: relative; z-index: 1; }
body.cliente .marca { display: inline-block; background: #fff; border-radius: 14px; padding: 4px 8px 2px; box-shadow: 0 4px 12px rgba(0,0,0,.18); border: 3px solid var(--amarelo); }
body.cliente .marca img { display: block; width: 90px; height: auto; } /* o dono achou grande no celular */
@media (min-width: 700px) { body.cliente .marca img { width: 120px; } }
body.cliente .topo h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.cliente .status { margin-top: 12px; font-size: 15px; line-height: 1.9; }
body.cliente .aberta, body.cliente .fechada { display: inline-block; white-space: nowrap; }
body.cliente .aberta { color: #fff; background: #1f9d55; padding: 2px 10px; border-radius: 99px; }
body.cliente .fechada { color: var(--cor); background: #fff; padding: 2px 10px; border-radius: 99px; }
body.cliente .status .atendimento { display: inline-block; background: var(--cor); color: #fff; padding: 3px 12px; border-radius: 99px; font-size: 14px; }
body.cliente .status .pedidos-site { background: #fff; color: var(--cor); }
body.cliente .faixas-horario { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
body.cliente .categoria h2 { font-family: var(--titulo); font-size: 26px; letter-spacing: .5px; text-transform: uppercase; color: var(--cor);
  background: var(--amarelo); border: 0; border-radius: 10px; padding: 4px 14px 2px; margin: 24px 0 10px; display: inline-block; }
body.cliente .categoria h2::after { content: "  <<<"; }
body.cliente .produto { border-left: 5px solid var(--laranja); }
body.cliente .produto-nome { font-family: var(--titulo); font-size: 21px; font-weight: 400; letter-spacing: .3px; color: var(--cor); }
body.cliente .produto-num { background: var(--cor); font-family: inherit; font-size: 18px; padding: 0 8px; }
body.cliente .produto-carnes b, body.cliente .produto-preco { color: var(--cor); }
body.cliente .produto-escolhas { color: var(--laranja); }

/* ---------- Motoboys (01/12/2026) ---------- */
.lp-moto { font-weight: 700; }
.piscar { animation: piscar 1s ease-in-out infinite; }
@keyframes piscar { 50% { filter: brightness(1.35); box-shadow: 0 0 0 4px #1f8a3b55; } }
.lp.sem-moto { box-shadow: inset 6px 0 0 #e0a100; background: #fff8e1; }
.escolha-moto { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.escolha-moto .btn { font-size: 18px; padding: 14px 10px; }
.fech-tab td, .fech-tab th { padding: 8px; }
.fech-linha { cursor: pointer; }
.fech-linha:hover { background: #f6f1ea; }
.fech-sem td { color: #b00020; }
.fech-det .lin { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 2px 0; }
.fech-total td { font-weight: 800; border-top: 2px solid #333; }
.tab-motoboys input { width: 100%; }
#modalFechamento { z-index: 40; align-items: center; } /* por cima do balcao aberto na lateral */
.bitem-rapidas { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; } /* obs rapidas do balcao: sem alface, sem tomate... */
/* Balcao (01/12/2026): botoes pequenos de obs rapida, acrescimo e remover numa linha so */
.bitem-rapidas { gap: 4px; margin-top: 5px; }
.bmini { border: 1px solid var(--borda); background: #fff; border-radius: 12px; padding: 2px 8px; font-size: 12px; line-height: 1.5; cursor: pointer; font-family: inherit; color: #333; }
.bmini.ativo { background: var(--verde); border-color: var(--verde); color: #fff; font-weight: 700; }
.bmini-acresc { border-color: #999; font-weight: 600; }
.bmini-remover { margin-left: auto; color: #c0392b; border-color: #e5a8a0; font-weight: 700; }
.bobs-livre { width: 100%; margin-top: 5px; padding: 6px 8px; font-size: 14px; }
.bitem-chips { gap: 4px; margin-top: 5px; } .bitem-chips .bmini small { opacity: .75; } /* acrescimos no mesmo padrao pequeno */
