/* =====================================================================
   Almoço Lajeadense — visual geral (tela principal e base do painel)
   Identidade: vermelho Lajeadense, grafite, fundo claro, cards arredondados.
   ===================================================================== */

:root {
  --vermelho-500: #fb2c36;
  --vermelho-600: #e7000b;
  --vermelho-700: #c10007;
  --vermelho-50: #fef2f2;
  --grafite-950: #0b0f19;
  --grafite-900: #101828;
  --grafite-800: #1d293d;
  --grafite-600: #45556c;
  --grafite-400: #90a1b9;
  --texto: #0a0a0a;
  --fundo: #f8fafc;
  --fundo-2: #f1f5f9;
  --cartao: #ffffff;
  --borda: #e2e8f0;
  --borda-forte: #cad5e2;
  --verde-600: #15803d;
  --verde-50: #f0fdf4;
  --ambar-50: #fffbeb;
  --ambar-700: #b45309;

  --raio-p: 10px;
  --raio: 14px;
  --raio-g: 20px;
  --raio-xg: 24px;
  --sombra: 0 1px 2px rgb(15 23 42 / .05), 0 4px 16px rgb(15 23 42 / .06);
  --sombra-forte: 0 10px 40px rgb(15 23 42 / .16);

  --fonte: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fonte-titulo: "Outfit", var(--fonte);
  --fonte-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --largura: 1120px;
  --lateral: 16px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.5;
  color: var(--texto);
  background: linear-gradient(160deg, var(--fundo), var(--fundo-2)) fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--vermelho-500); outline-offset: 2px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.pular:focus { left: 8px; }

.conteudo { width: 100%; max-width: var(--largura); margin: 0 auto; padding-left: max(var(--lateral), env(safe-area-inset-left)); padding-right: max(var(--lateral), env(safe-area-inset-right)); }

/* ---------- hero: marca + cardápio + relógio ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background: var(--grafite-950);
  padding-bottom: 28px;
}
.hero__fundo { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--grafite-950); }
/* película escura por cima das fotos, para o texto ficar legível */
.hero__fundo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgb(11 15 25 / .6) 0%, rgb(11 15 25 / .2) 30%, rgb(11 15 25 / .25) 60%, rgb(11 15 25 / .8) 100%);
}
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  background: center / cover no-repeat;
  transition: opacity 1.6s ease;
  will-change: opacity, transform;
}
.hero__slide--ativo { opacity: 1; animation: zoom-lento 9s ease-out forwards; }
@keyframes zoom-lento { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__barra {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; padding-bottom: 14px;
}
.marca { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.marca__logo { width: 84px; height: auto; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .35)); }
.marca__sistema {
  display: flex; flex-direction: column; line-height: 1.05;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em;
}
.marca__sistema small { white-space: nowrap; font-family: var(--fonte); font-weight: 500; font-size: .72rem; letter-spacing: .02em; color: rgb(255 255 255 / .65); margin-top: 3px; }

.hero__direita { display: flex; align-items: center; gap: 8px; flex: none; }
.usuario { display: flex; align-items: center; gap: 2px; padding: 3px 3px 3px 10px; border-radius: 10px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); }
.usuario__nome { font-size: .8rem; font-weight: 700; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuario__sair { min-height: 30px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: rgb(255 255 255 / .8); font-size: .78rem; font-weight: 700; }
a.usuario__sair { display: inline-flex; align-items: center; text-decoration: none; }
.usuario__sair[hidden] { display: none; }
.usuario__sair:hover { background: rgb(255 255 255 / .12); color: #fff; }
.estado {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 9px; border-radius: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: rgb(34 197 94 / .16); color: #bbf7d0; border: 1px solid rgb(134 239 172 / .3);
}
.estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgb(74 222 128 / .25); }
.estado__longo { display: none; }
.estado--encerrada { background: rgb(255 255 255 / .08); color: #e2e8f0; border-color: rgb(255 255 255 / .18); }
.estado--encerrada::before { background: var(--vermelho-500); box-shadow: 0 0 0 3px rgb(251 44 54 / .25); }
.estado--parcial { background: rgb(245 158 11 / .16); color: #fde68a; border-color: rgb(253 230 138 / .35); }
.estado--parcial::before { background: #f59e0b; box-shadow: 0 0 0 3px rgb(245 158 11 / .25); }

.hero__grade { display: grid; gap: 18px; padding-top: 22px; }
.hero__dia { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.hero__dia-rotulo { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #fca5a5; }
.hero__dia strong { font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.05rem; color: #fff; }
.hero__titulo {
  margin: 0 0 16px; font-family: var(--fonte-titulo); font-weight: 800;
  font-size: clamp(2.1rem, 8vw, 3.6rem); line-height: 1; letter-spacing: -.018em; word-spacing: .04em; text-wrap: balance;
}

/* cartão de vidro do cardápio */
.cardapio {
  position: relative; max-width: 640px;
  border-radius: var(--raio-g); padding: 14px 16px 16px;
  background: linear-gradient(135deg, rgb(255 255 255 / .14), rgb(255 255 255 / .05));
  border: 1px solid rgb(255 255 255 / .18);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 18px 40px -12px rgb(0 0 0 / .55);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.cardapio::before {
  content: ""; position: absolute; left: 16px; top: -1px; width: 56px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--vermelho-500);
}
.cardapio__cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cardapio__rotulo { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgb(255 255 255 / .75); }
.cardapio__rotulo svg { font-size: 1.05rem; color: #fca5a5; }
.cardapio__editar {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid rgb(255 255 255 / .22); background: rgb(255 255 255 / .08); color: #fff;
  transition: background-color .2s, border-color .2s, transform .1s;
}
.cardapio__editar:hover { background: rgb(255 255 255 / .18); border-color: rgb(255 255 255 / .4); }
.cardapio__editar:active { transform: scale(.95); }
.cardapio__editar svg { font-size: 1.05rem; }

.cardapio__itens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cardapio__itens li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 10px;
  background: rgb(11 15 25 / .45); border: 1px solid rgb(255 255 255 / .1);
  font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere;
}
.cardapio__itens li::before { content: ""; width: 6px; height: 6px; flex: none; transform: skewX(-32deg); background: var(--vermelho-500); }
.cardapio__itens .cardapio__vazio { background: none; border: 0; padding: 0; font-family: var(--fonte); font-weight: 400; font-style: italic; color: rgb(255 255 255 / .7); }
.cardapio__itens .cardapio__vazio::before { display: none; }

.cardapio__form textarea {
  width: 100%; resize: vertical; min-height: 84px;
  border-radius: 12px; border: 1px solid rgb(255 255 255 / .3); background: rgb(11 15 25 / .55); color: #fff;
  padding: 10px 12px; font-size: 1rem; line-height: 1.4;
}
.cardapio__form textarea:focus { outline: 2px solid var(--vermelho-500); outline-offset: 1px; }
.cardapio__acoes { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.cardapio__dica { flex-basis: 100%; margin-right: auto; font-size: .78rem; color: rgb(255 255 255 / .65); }

/* relógio (com a estrela percorrendo a borda: js/borda-estrela.js) */
.relogio {
  position: relative; border-radius: 24px; padding: 14px 16px;
  background: linear-gradient(135deg, rgb(255 255 255 / .14), rgb(255 255 255 / .05));
  border: 1px solid rgb(255 255 255 / .18);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 18px 40px -12px rgb(0 0 0 / .55);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.relogio__rotulo { margin: 0 0 2px; display: flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgb(255 255 255 / .75); }
.relogio__rotulo svg { font-size: 1.05rem; }
.relogio__tempo { margin: 0; font-family: var(--fonte-mono); font-size: 2.1rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.relogio__barra { height: 4px; margin: 10px 0 8px; border-radius: 4px; background: rgb(255 255 255 / .14); overflow: hidden; }
.relogio__barra span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #4ade80, #86efac); transition: width 1s linear; }
.relogio__nota { margin: 0; font-size: .8rem; color: rgb(255 255 255 / .72); }
.relogio--urgente .relogio__barra span { background: linear-gradient(90deg, var(--vermelho-500), #fca5a5); }
.relogio--urgente .relogio__tempo { color: #fecaca; }
.relogio--encerrada .relogio__barra span { background: linear-gradient(90deg, #94a3b8, #e2e8f0); }

.botao--vidro { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .25); color: #fff; }
.botao--vidro:hover { background: rgb(255 255 255 / .18); }

/* diálogo de login */
.dialogo { border: 0; padding: 0; border-radius: var(--raio-xg); width: min(400px, calc(100% - 32px)); box-shadow: var(--sombra-forte); color: var(--texto); }
.dialogo::backdrop { background: rgb(11 15 25 / .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialogo__corpo { padding: 22px; display: grid; gap: 12px; }
.dialogo h2 { margin: 0; font-family: var(--fonte-titulo); font-size: 1.35rem; letter-spacing: -.01em; }
.dialogo__texto { margin: -4px 0 4px; color: var(--grafite-600); font-size: .92rem; }
.dialogo__erro { margin: 0; color: var(--vermelho-700); background: var(--vermelho-50); border-radius: var(--raio-p); padding: 8px 12px; font-size: .9rem; font-weight: 600; }
.dialogo__acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.campo { display: grid; gap: 5px; }
.campo > span { font-size: .85rem; font-weight: 600; color: var(--grafite-800); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid var(--borda-forte); background: #fff; font-size: 1rem;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--vermelho-500); box-shadow: 0 0 0 4px rgb(251 44 54 / .12); }

.aviso-simulado {
  background: var(--ambar-50); color: var(--ambar-700); text-align: center;
  font-size: .85rem; font-weight: 600; padding: 6px var(--lateral); border-bottom: 1px solid #fde68a;
}

/* ---------- totais (fixos no topo ao rolar) ---------- */
.totais {
  position: sticky; top: 0; z-index: 20;
  background: rgb(255 255 255 / .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borda);
  box-shadow: 0 4px 18px rgb(15 23 42 / .06);
}
.totais__grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.total { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 2px; border-radius: var(--raio-p); }
.total__rotulo { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--grafite-600); }
.total__numero { font-family: var(--fonte-titulo); font-size: 1.85rem; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--grafite-900); }
.total__detalhe { font-size: .72rem; color: var(--grafite-600); white-space: nowrap; font-variant-numeric: tabular-nums; }
.total--almoco .total__numero { color: var(--vermelho-600); }

/* ---------- conteúdo ---------- */
.principal { padding-top: 18px; padding-bottom: 40px; }

.situacao { margin-bottom: 14px; }
.situacao__aberta {
  margin: 0; display: flex; align-items: baseline; gap: 10px;
  background: var(--verde-50); color: #14532d; border: 1px solid #bbf7d0;
  border-radius: var(--raio); padding: 10px 14px; font-size: .92rem;
}
.ponto { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgb(34 197 94 / .2); flex: none; transform: translateY(-1px); }
.situacao__encerrada {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(100deg, #000, var(--grafite-900)); color: #fff;
  border-radius: var(--raio-g); padding: 16px 18px; box-shadow: var(--sombra-forte);
}
.situacao__encerrada svg { flex: none; font-size: 1.6rem; margin-top: 2px; color: var(--vermelho-500); }
.situacao__encerrada strong { font-size: 1.08rem; display: block; }
.situacao__encerrada p { margin: 4px 0 0; color: #cbd5e1; font-size: .92rem; }
.situacao__erro { background: var(--vermelho-50); color: var(--vermelho-700); border-radius: var(--raio); padding: 12px 14px; margin: 0; }

.ferramentas { display: flex; gap: 10px; margin-bottom: 16px; }
.busca {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--cartao); border: 1.5px solid var(--borda-forte); border-radius: var(--raio);
  padding: 0 14px; min-height: 50px; box-shadow: var(--sombra);
}
.busca:focus-within { border-color: var(--vermelho-500); box-shadow: 0 0 0 4px rgb(251 44 54 / .12); }
.busca svg { color: var(--grafite-400); font-size: 1.2rem; flex: none; }
.busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; padding: 12px 0; }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--raio); border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.botao:active:not(:disabled) { transform: scale(.98); }
.botao:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.botao svg { font-size: 1.15rem; }
.botao--claro { background: var(--cartao); border-color: var(--borda-forte); color: var(--grafite-800); box-shadow: var(--sombra); }
.botao--claro:hover { border-color: var(--grafite-400); }

/* Estrela percorrendo a borda (js/borda-estrela.js) — tema escuro quando ativa */
.com-borda-estrela { position: relative; }
.com-borda-estrela > :not(.borda-estrela) { position: relative; z-index: 1; }
.borda-estrela {
  position: absolute; z-index: 2; pointer-events: none; /* posição e tamanho vêm do JS */
}
#imprimir, #enviar-whatsapp { border-radius: 12px; }
#enviar-whatsapp svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
#imprimir.com-borda-estrela--ativa:not(:disabled), #enviar-whatsapp.com-borda-estrela--ativa:not(:disabled) {
  background: linear-gradient(180deg, #1d293d, var(--grafite-950));
  border-color: rgb(255 255 255 / .1);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgb(11 15 25 / .6);
}
#imprimir.com-borda-estrela--ativa:not(:disabled):hover, #enviar-whatsapp.com-borda-estrela--ativa:not(:disabled):hover { background: linear-gradient(180deg, #27354b, var(--grafite-900)); }
.com-borda-estrela--pulso { animation: pulso-estrela .55s ease-out; }
@keyframes pulso-estrela {
  from { box-shadow: 0 0 0 0 rgb(255 255 255 / .45), 0 6px 18px -6px rgb(11 15 25 / .6); }
  to { box-shadow: 0 0 0 12px rgb(255 255 255 / 0), 0 6px 18px -6px rgb(11 15 25 / .6); }
}

.botao--primario { background: linear-gradient(100deg, var(--vermelho-600), var(--vermelho-700)); color: #fff; }
.botao--primario:hover { background: var(--vermelho-700); }
.botao--escuro { background: var(--grafite-900); color: #fff; }
.ferramentas .botao { min-height: 50px; }
@media (max-width: 639px) {
  .ferramentas { flex-wrap: wrap; }
  .ferramentas .busca { flex: 1 1 100%; }
  .ferramentas .botao { flex: 1 1 0; padding: 0 12px; }
}
.link { background: none; border: 0; padding: 0; color: var(--vermelho-700); text-decoration: underline; font-weight: 600; }

/* ---------- blocos e lista de pessoas ---------- */
.bloco { margin-bottom: 26px; }
.bloco--sem-resultado { display: none; }
.bloco__titulo {
  margin: 0 0 10px; font-family: var(--fonte-titulo); font-size: 1.15rem; font-weight: 700; color: var(--grafite-900); letter-spacing: -.01em;
  display: flex; align-items: baseline; gap: 8px;
}
.bloco__titulo::before { content: ""; width: 4px; height: 1em; border-radius: 4px; background: var(--vermelho-600); align-self: center; }
.bloco__conta { font-size: .85rem; font-weight: 600; color: var(--grafite-600); font-variant-numeric: tabular-nums; }
.bloco__nota { margin: -4px 0 10px; font-size: .85rem; color: var(--grafite-600); }

.pessoas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pessoa {
  background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio-g);
  padding: 12px 14px 14px; box-shadow: var(--sombra);
  transition: border-color .2s, background-color .2s;
}
.pessoa--nao { background: #fbfcfd; }
.pessoa--nao .pessoa__nome { color: var(--grafite-600); }
.pessoa__cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pessoa__nome { font-weight: 700; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.pessoa__salvo {
  flex: none; font-size: .78rem; font-weight: 700; color: var(--verde-600);
  opacity: 0; transform: translateY(2px);
}
.pessoa__salvo--visivel { animation: salvo 1.8s ease forwards; }
@keyframes salvo { 0% { opacity: 0; transform: translateY(2px); } 12%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.pessoa__perguntas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pergunta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pergunta__rotulo { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--grafite-600); }
.seletor { display: flex; gap: 6px; align-items: center; }

.opcao {
  flex: 1; min-height: 48px; min-width: 0; padding: 0 8px;
  border-radius: 12px; border: 1.5px solid var(--borda-forte); background: #fff;
  font-weight: 700; font-size: 1rem; color: var(--grafite-800);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.opcao:not(:disabled):hover { border-color: var(--grafite-400); }
.opcao:not(:disabled):active { transform: scale(.97); }
.opcao--sim[aria-pressed="true"] { background: var(--verde-600); border-color: var(--verde-600); color: #fff; }
.opcao--nao[aria-pressed="true"] { background: var(--vermelho-600); border-color: var(--vermelho-600); color: #fff; }
.opcao:disabled { cursor: default; }
.opcao:disabled[aria-pressed="false"] { opacity: .45; }

.selo {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 48px; padding: 0 6px; border-radius: 12px;
  background: var(--fundo-2); color: var(--grafite-600); font-size: .72rem; font-weight: 700; text-align: left; line-height: 1.15;
}
.selo svg { flex: none; font-size: .95rem; }

/* chave "Sem carne fixo" no cabeçalho de cada pessoa */
.pessoa__cab { flex-wrap: wrap; }
.pessoa__nome { flex: 1 1 auto; }
.fixo { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--grafite-600); user-select: none; min-height: 32px; }
.fixo__chave {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; cursor: pointer;
  width: 36px; height: 20px; border-radius: 999px; background: var(--borda-forte); position: relative;
  transition: background-color .2s;
}
.fixo__chave::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(15 23 42 / .3); transition: transform .2s;
}
.fixo__chave:checked { background: var(--grafite-800); }
.fixo__chave:checked::after { transform: translateX(16px); }
.fixo__chave:disabled { cursor: default; opacity: .55; }
.fixo__chave:focus-visible { outline: 3px solid var(--vermelho-500); outline-offset: 2px; }
.fixo:has(.fixo__chave:checked) { color: var(--grafite-900); }

/* título da lista com os botões ao lado */
.bloco__cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bloco__cab .bloco__titulo { margin: 0; }
.bloco__acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adicionar__abrir { min-height: 40px; padding: 0 14px; font-size: .9rem; box-shadow: none; }
.adicionar__abrir svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.adicionar__abrir[aria-expanded="true"] { border-color: var(--vermelho-500); color: var(--vermelho-500); }
.botao--perigo { background: var(--vermelho-700); color: #fff; }
.botao--perigo:hover { background: #9f0712; }
.nova-pessoa {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 14px 16px; border-radius: var(--raio-g);
  background: var(--fundo-2); border: 1.5px dashed var(--borda-forte);
}
.nova-pessoa[hidden] { display: none; }
.excluir-pessoa { border-color: var(--vermelho-500); background: var(--vermelho-50); }
.nova-pessoa__nome { flex: 1 1 240px; }
.nova-pessoa__carne { display: flex; align-items: center; gap: 8px; min-height: 46px; font-weight: 600; font-size: .9rem; color: var(--grafite-800); cursor: pointer; }
.nova-pessoa__carne input { width: 18px; height: 18px; accent-color: var(--vermelho-500); }
.nova-pessoa__botoes { display: flex; gap: 8px; }
.nova-pessoa__botoes .botao { min-height: 46px; }
.pessoa--nova { animation: pessoa-nova 2.4s ease-out; }
@keyframes pessoa-nova { 0%, 40% { background: rgb(34 197 94 / .16); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .pessoa--nova { animation: none; } }
.situacao__aberta--manual { background: var(--ambar-50); color: #78350f; border-color: #fde68a; }
.situacao__aberta--manual .ponto { background: #f59e0b; box-shadow: 0 0 0 4px rgb(245 158 11 / .2); }

/* acréscimos: quantidade a mais somada no total */
.acrescimos {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  margin-bottom: 26px; padding: 14px 16px; border-radius: var(--raio-g);
  background: var(--cartao); border: 1px solid var(--borda); box-shadow: var(--sombra);
}
.acrescimos__texto { flex: 1 1 240px; min-width: 0; }
.acrescimos__texto .bloco__titulo { margin: 0 0 2px; }
.acrescimos__nota { margin: 0; font-size: .85rem; color: var(--grafite-600); text-wrap: pretty; }
.acrescimos__nota svg { width: 1em; height: 1em; vertical-align: -.15em; margin-right: 4px; }
.acrescimos__campos { display: grid; gap: 10px; }
.acrescimos__form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acrescimos__rotulo { min-width: 8.5em; display: grid; font-weight: 700; color: var(--grafite-900); cursor: pointer; }
.acrescimos__rotulo small { font-weight: 500; font-size: .78rem; color: var(--grafite-600); }
.contador {
  display: flex; align-items: center; border: 1.5px solid var(--borda-forte); border-radius: var(--raio);
  background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.contador:focus-within { border-color: var(--vermelho-500); box-shadow: 0 0 0 4px rgb(251 44 54 / .12); }
.contador__passo {
  width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: transparent;
  color: var(--grafite-800); touch-action: manipulation; transition: background-color .15s;
}
.contador__passo:not(:disabled):hover { background: var(--fundo-2); }
.contador__passo:not(:disabled):active { background: var(--borda); }
.contador__passo:disabled { opacity: .4; cursor: default; }
.contador__passo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.contador__campo {
  width: 64px; height: 48px; border: 0; outline: 0; text-align: center; background: transparent;
  font: 700 1.25rem var(--fonte-titulo); font-variant-numeric: tabular-nums; color: var(--grafite-900);
  -moz-appearance: textfield; appearance: textfield;
}
.contador__campo::-webkit-inner-spin-button, .contador__campo::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.contador__campo:disabled { color: var(--grafite-600); }
.acrescimos__salvar { min-height: 48px; }
.acrescimos--travada { background: var(--fundo-2); box-shadow: none; }
.acrescimos--travada .contador { background: transparent; }
.acrescimos--travada .acrescimos__salvar { display: none; }
@media (max-width: 480px) {
  .acrescimos__campos, .acrescimos__form { width: 100%; }
  .acrescimos__rotulo { flex: 1 0 100%; }
  .contador { flex: 1; justify-content: space-between; }
  .acrescimos__salvar { flex: 1; }
}

/* lista encerrada: visual de consulta */
.encerrada .opcao { min-height: 40px; font-size: .92rem; }

/* externos do dia (somente leitura) */
.externos-dia { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.externo-dia {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--cartao); border: 1px dashed var(--borda-forte); border-radius: var(--raio);
  padding: 12px 14px;
}
.externo-dia__nome { font-weight: 600; overflow-wrap: anywhere; }
.marca-carne { flex: none; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.marca-carne--com { background: var(--vermelho-50); color: var(--vermelho-700); }
.marca-carne--sem { background: var(--verde-50); color: var(--verde-600); }

.vazio { text-align: center; color: var(--grafite-600); padding: 24px 12px; background: var(--cartao); border: 1px dashed var(--borda-forte); border-radius: var(--raio-g); }

.rodape { padding: 22px 0 32px; text-align: center; font-size: .85rem; color: var(--grafite-600); }
.rodape a { color: var(--grafite-800); }

/* ---------- avisos (toasts) ---------- */
.avisos {
  position: fixed; z-index: 50; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none;
}
.aviso {
  pointer-events: auto; padding: 12px 16px; border-radius: var(--raio); font-weight: 600; font-size: .92rem;
  background: var(--grafite-900); color: #fff; box-shadow: var(--sombra-forte);
  animation: entra .25s ease;
}
.aviso--erro { background: var(--vermelho-700); }
.aviso--ok { background: var(--verde-600); }
.aviso--saindo { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }

.so-impressao { display: none; }

/* ---------- celulares pequenos: topo da hero mais enxuto ---------- */
@media (max-width: 479px) {
  .hero .estado { display: none; }
  .marca__sistema small { display: none; }
  .marca { gap: 10px; }
  .marca__logo { width: 76px; }
}

/* ---------- telas maiores ---------- */
@media (min-width: 560px) {
  .pessoa { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 12px 16px; }
  .pessoa__cab { margin: 0; }
  .pessoa__perguntas { grid-template-columns: 210px 210px; }
  .cardapio__dica { flex-basis: auto; }
}

@media (min-width: 760px) {
  :root { --lateral: 24px; }
  .hero { padding-bottom: 44px; }
  /* no computador a foto fica na metade direita, se fundindo com o fundo escuro (mantém a nitidez) */
  .hero__slide {
    left: 38%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  }
  .hero__fundo::after {
    background:
      linear-gradient(180deg, rgb(11 15 25 / .45) 0%, rgb(11 15 25 / 0) 30%, rgb(11 15 25 / .5) 100%),
      linear-gradient(90deg, rgb(11 15 25 / .6) 0%, rgb(11 15 25 / .35) 45%, rgb(11 15 25 / .05) 80%, rgb(11 15 25 / .25) 100%);
  }
  .hero__barra { padding-top: 18px; padding-bottom: 18px; }
  .marca__logo { width: 124px; }
  .estado__longo { display: inline; }
  .estado__curto { display: none; }
  .marca__sistema { font-size: 1.45rem; }
  .marca__sistema small { font-size: .8rem; }
  .hero__grade { grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: 40px; padding-top: 44px; }
  .hero__dia strong { font-size: 1.25rem; }
  .cardapio { padding: 18px 20px 20px; }
  .cardapio__itens li { font-size: 1.12rem; padding: 8px 14px; }
  .relogio { padding: 20px 22px; }
  .relogio__tempo { font-size: 2.7rem; }
  .total__numero { font-size: 2.1rem; }
  .total__rotulo, .total__detalhe { font-size: .8rem; }
  .totais__grade { padding-top: 10px; padding-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide--ativo { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .pessoa__salvo--visivel { opacity: 1; }
}

/* título "Internos"/"Externos" clicável: abre e minimiza a lista */
.recolher {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px 0 4px; margin-left: -4px;
  background: none; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; color: inherit; letter-spacing: inherit; text-align: left;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.recolher:hover { background: var(--fundo-2); }
.recolher:focus-visible { outline: 3px solid var(--vermelho-500); outline-offset: 2px; }
.recolher__seta {
  flex: none; width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .2s;
}
.recolher[aria-expanded="true"] .recolher__seta { transform: rotate(90deg); }
/* minimizada: some a lista, mas durante uma busca os nomes encontrados aparecem */
@media screen { .bloco--recolhido:not(.bloco--buscando) .pessoas { display: none; } }
@media (prefers-reduced-motion: reduce) { .recolher__seta { transition: none; } }

/* Etiquetas ao lado do nome: atestado/férias e "marcado pelo funcionário" (tela /meu-almoco) */
.pessoa__etiquetas { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pessoa__etiquetas:empty { display: none; }
.etiqueta {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.etiqueta--ausencia { background: var(--ambar-50); color: var(--ambar-700); border: 1px solid #fcd34d; }
.etiqueta--func { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.pessoa--ausente { background: #fffdf5; }

/* CPF no "Adicionar" (o CPF nunca vai para a tela de impressão) */
.nova-pessoa__cpf { flex: 0 1 190px; }
.nova-pessoa__cpf em { font-style: normal; font-weight: 400; color: var(--grafite-600); }
@media (max-width: 560px) { .nova-pessoa__cpf { flex: 1 1 100%; } }

/* ---------- Produção da cozinha (painel e tela /cardapio) ---------- */
.producao { margin-bottom: 26px; background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio-g); box-shadow: var(--sombra); padding: 16px 18px 18px; }
.producao__cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.producao__cab .bloco__titulo { margin: 0; }
.prod__vazio { margin: 0; color: var(--grafite-600); font-size: .92rem; }
.prod__cardapio { margin: 0 0 12px; font-size: .95rem; color: var(--grafite-800); text-wrap: pretty; }
.prod__cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.prod__cartao { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--raio); background: var(--fundo-2); border: 1px solid var(--borda); }
.prod__cartao strong { font-family: var(--fonte-titulo); font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.prod__cartao span { font-size: .8rem; font-weight: 600; color: var(--grafite-600); }
.prod__cartao--destaque { background: var(--vermelho-50); border-color: #fecaca; }
.prod__cartao--destaque strong { color: var(--vermelho-700); }
.prod__grupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.prod__grupo { padding: 12px 14px; border-radius: var(--raio); border: 1px solid var(--borda); }
.prod__grupo h4 { margin: 0 0 6px; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grafite-600); }
.prod__grupo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.prod__grupo li { display: flex; justify-content: space-between; gap: 8px; }
.prod__grupo b { font-variant-numeric: tabular-nums; }
.prod__total { margin: 8px 0 0; padding-top: 6px; border-top: 1px dashed var(--borda-forte); font-weight: 700; font-size: .92rem; }
.prod__tabela-caixa { overflow-x: auto; border: 1px solid var(--borda); border-radius: var(--raio); }
.prod__tabela { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prod__tabela th { text-align: left; padding: 8px 12px; background: var(--fundo-2); color: var(--grafite-600); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.prod__tabela td { padding: 8px 12px; border-top: 1px solid var(--borda); }
.prod__tabela td small { color: var(--grafite-600); }
.prod__tabela td:nth-child(n+2) { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* botão "Definir cardápio do dia" no topo */
.cardapio__definir { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 44px; text-decoration: none; }

/* Topo: Almoços + Com carne + cartões das regras do cardápio (quantidade varia por dia) */
.totais__grade { grid-template-columns: repeat(var(--cartoes, 2), minmax(0, 1fr)); }
.totais__regras { display: contents; }
.total--regra .total__numero { color: var(--ambar-700); }
.total--regra .total__detalhe { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .totais__grade { grid-template-columns: repeat(min(var(--cartoes, 2), 3), minmax(0, 1fr)); }
}

/* Dias sem almoço (feriado, recesso...) no topo do painel */
.sem-almoco { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 6px; }
.sem-almoco li { padding: 8px 12px; border-radius: 10px; background: rgb(220 38 38 / .18); border: 1px solid rgb(252 165 165 / .5); color: #fff; font-size: .92rem; }
.sem-almoco b { font-family: var(--fonte-titulo); letter-spacing: .04em; color: #fecaca; }
@media print { .sem-almoco { display: none; } }
