/* =====================================================================
   Maria Simone · Restaurante & Marmitas — visual da marca (v4)
   Cores do logo oficial: vermelho Maria Simone #B23A43 e creme #F6EFDF.
   Duas fontes: Plus Jakarta Sans (texto) e Barlow Condensed (títulos, rótulos e
   números grandes — o mesmo desenho condensado da faixa "RESTAURANTE & MARMITAS").
   Tema claro (creme) por padrão; escuro (vinho) em Mais → Tema.
   Leve no celular: sem desfoque (backdrop-filter), sem textura por cima da tela e
   sem fundo fixo — a rolagem e a troca de tela não engasgam.
   Status sempre com ícone + texto. Canais com paleta validada para daltonismo
   (ordem fixa salão → espeto → marmita). Alvos de toque ≥ 56px · uso com uma mão.
   ===================================================================== */
:root {
  /* marca */
  --marca: #B23A43; --marca-d: #962F37; --marca-l: #C9545D; --creme: #F6EFDF;
  --marca-tx: #A5323B;                      /* vermelho como texto (5,9:1 no creme) */
  --no-marca: #F6EFDF;                      /* creme sobre o vermelho (5,1:1) */
  --grad-marca: linear-gradient(180deg, #BA3F48 0%, #AC363F 100%);
  --marca-bg: rgba(178, 58, 67, .08); --marca-bg2: rgba(178, 58, 67, .15); --marca-borda: rgba(178, 58, 67, .34);
  --marca-sombra: rgba(178, 58, 67, .5);
  --ouro: #A06A12;
  /* superfícies (creme) */
  --bg: #F6EFDF; --s1: #FFFBF3; --s2: #EFE5D1; --s3: #E6D9C2; --s4: #D9C9AE;
  --vidro: #FFFBF3;
  --borda: rgba(110, 40, 40, .11); --borda2: rgba(110, 40, 40, .2);
  --brilho: rgba(255, 255, 255, .5);       /* luz de topo dos cartões */
  /* tinta */
  --tx: #2B1618; --tx2: #5E4547; --tx3: #7A6062;
  /* status (marca = cor fixa; texto = passa 4,5:1 no fundo) */
  --st-bom: #1F9D4C; --st-atencao: #E8A317; --st-critico: #D8382C; --st-neutro: #B9A994;
  --tx-bom: #18703A; --tx-atencao: #8F5A00; --tx-critico: #C42B21;
  --bg-bom: rgba(31, 157, 76, .11); --bg-atencao: rgba(232, 163, 23, .16); --bg-critico: rgba(216, 56, 44, .10);
  /* séries (canais) */
  --serie-salao: #2a78d6; --serie-espeto: #eb6834; --serie-marmita: #1baf7a;
  /* categorias de item (uma por vez na tela) */
  --k-espeto: #eb6834; --k-prato: #1baf7a; --k-bebida: #2a78d6; --k-guarnicao: #9c8f82;
  --passou: #2a78d6; --tx-azul: #1D62B8;
  --pix: #0F6E66;
  /* forma */
  --r-xl: 22px; --r: 18px; --r-s: 14px; --r-xs: 10px; --tap: 56px;
  --sombra: 0 12px 28px -18px rgba(90, 25, 30, .45), 0 1px 2px rgba(90, 25, 30, .06);
  --sombra-s: 0 4px 12px -7px rgba(90, 25, 30, .35);
  --fonte: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fonte-d: 'Barlow Condensed', 'Roboto Condensed', 'Arial Narrow', var(--fonte);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
  font-size: 18px;
}
[data-theme="dark"] {
  --marca-tx: #F0838A;
  --marca-bg: rgba(226, 92, 102, .12); --marca-bg2: rgba(226, 92, 102, .2); --marca-borda: rgba(240, 131, 138, .38);
  --marca-sombra: rgba(0, 0, 0, .55);
  --ouro: #E0B060;
  --bg: #170F11; --s1: #21171A; --s2: #2B1F22; --s3: #36282B; --s4: #423235;
  --vidro: #21171A;
  --borda: rgba(246, 239, 223, .08); --borda2: rgba(246, 239, 223, .15);
  --brilho: rgba(255, 240, 230, .035);
  --tx: #F6EFDF; --tx2: #CBB9AE; --tx3: #A08C84;
  --st-neutro: #6f6358;
  --tx-bom: #52C97E; --tx-atencao: #F2B33D; --tx-critico: #FF6F61;
  --bg-bom: rgba(82, 201, 126, .13); --bg-atencao: rgba(242, 179, 61, .13); --bg-critico: rgba(255, 111, 97, .13);
  --serie-salao: #3987e5; --serie-espeto: #d95926; --serie-marmita: #199e70;
  --k-espeto: #d95926; --k-prato: #199e70; --k-bebida: #3987e5; --k-guarnicao: #8a7d71;
  --passou: #3987e5; --tx-azul: #5EA2F0;
  --pix: #3CC5B6;
  --sombra: 0 18px 40px -20px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .25);
  --sombra-s: 0 6px 16px -8px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--tx); }
body {
  font: 500 1rem/1.4 var(--fonte);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; overscroll-behavior: none;
}
body.sem-sessao { background: var(--marca); color: var(--creme); }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 800; }
svg { width: 1.2em; height: 1.2em; flex: 0 0 auto; }
[hidden] { display: none !important; }
::selection { background: var(--marca-bg2); }
:focus-visible { outline: 2px solid var(--marca); outline-offset: 2px; }
.num-col, .rl-tr, .rs-l, .fd-c, .an-lin, .cp-lin-q, .ct-l-nums, .aj-val, .fx-formas, .res-conta, .res-caixa { font-variant-numeric: tabular-nums; }

#app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 780px; margin: 0 auto; position: relative; }
#view { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 14px 22px; -webkit-overflow-scrolling: touch; position: relative; scrollbar-width: none; }
#view::-webkit-scrollbar { display: none; }
.carregando { padding: 40px; text-align: center; color: var(--tx3); }

/* ---------- Troca de tela: rápida (0,2 s), a tela inteira de uma vez ----------
   frente = entrou numa tela de dentro (vem da direita); volta = voltou (vem da
   esquerda); aba = trocou de aba embaixo (sobe de leve). */
@keyframes entra-frente { from { opacity: 0; transform: translate3d(22px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes entra-volta { from { opacity: 0; transform: translate3d(-22px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes entra-aba { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
#view[data-entra="frente"] { animation: entra-frente .22s var(--ease) both; }
#view[data-entra="volta"] { animation: entra-volta .22s var(--ease) both; }
#view[data-entra="aba"] { animation: entra-aba .2s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Marca: selo (a baiana do "O") e logo ---------- */
.marca {
  display: inline-grid; place-items: center; width: var(--t, 36px); height: var(--t, 36px); flex: 0 0 auto;
  border-radius: 30%; background: var(--marca); color: var(--no-marca);
}
.marca svg { width: 76%; height: 76%; display: block; }
.logo { display: block; color: var(--marca); }
.logo svg { width: 100%; height: auto; display: block; }

/* ---------- Topo ---------- */
#topbar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 11px;
  min-height: 62px; padding: calc(env(safe-area-inset-top) + 9px) 14px 7px; background: var(--bg);
}
.top-marca { flex: 0 0 auto; border-radius: 13px; box-shadow: 0 6px 14px -8px var(--marca-sombra); }
.top-marca .marca { --t: 40px; }
.top-voltar {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--borda2); background: var(--s1); color: var(--tx);
  display: grid; place-items: center; box-shadow: var(--sombra-s); touch-action: manipulation; transition: transform .12s var(--ease), background .15s;
}
.top-voltar svg { width: 24px; height: 24px; stroke-width: 2.4; margin-left: -2px; }
.top-voltar:active { transform: scale(.9); background: var(--s2); }
.top-tit { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.top-titulo {
  font: 800 1.42rem/1 var(--fonte-d); letter-spacing: .015em; text-transform: uppercase; color: var(--tx);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 2px;
}
.top-sub { font-size: .64rem; color: var(--tx3); font-weight: 600; letter-spacing: .01em; text-transform: capitalize; margin-top: 3px; }
#top-acao:empty { display: none; }
.top-acao {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 10px;
  border-radius: 999px; border: 1px solid var(--marca-borda); color: var(--marca-tx); font-size: .7rem; font-weight: 700;
  background: var(--marca-bg); transition: transform .12s var(--ease), background .15s;
}
.top-acao svg { width: 17px; height: 17px; }
.top-acao:active { transform: scale(.95); background: var(--marca-bg2); }
@media (max-width: 400px) {
  .top-acao { width: 36px; padding: 0; justify-content: center; }
  .top-acao span { display: none; }
  /* estado tranquilo vira só o ponto; aviso (offline, pendente, conectar) continua com texto */
  .pilula.local, .pilula.on { width: 30px; padding: 0; font-size: 0; }
  .pilula.local::before, .pilula.on::before { left: 50%; margin-left: -3.5px; }
  .top-titulo { font-size: 1.32rem; }
}
.pilula {
  flex: 0 0 auto; border: 1px solid var(--borda); border-radius: 999px; padding: 0 11px 0 23px; min-height: 30px;
  font-size: .64rem; font-weight: 700; position: relative; background: var(--s1); color: var(--tx2); letter-spacing: .01em;
}
.pilula::before { content: ''; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--tx3); }
.pilula.on { color: var(--tx-bom); } .pilula.on::before { background: var(--st-bom); box-shadow: 0 0 0 3px var(--bg-bom); }
.pilula.off { color: var(--tx-critico); border-color: var(--bg-critico); } .pilula.off::before { background: var(--st-critico); }
.pilula.pend { color: var(--tx-atencao); border-color: var(--bg-atencao); } .pilula.pend::before { background: var(--st-atencao); animation: pulsa 1.4s infinite; }
@keyframes pulsa { 50% { opacity: .3; } }
.avatar {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--borda2); display: grid; place-items: center;
  background: var(--s1); color: var(--tx); font-weight: 800; font-size: .72rem; letter-spacing: .03em;
}
.avatar.dono { border: 0; background: var(--tx); color: var(--bg); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--marca-borda); }
.avatar.grande { width: 56px; height: 56px; font-size: 1.02rem; }

/* ---------- Barra inferior (4 atalhos fixos) ---------- */
#tabbar {
  flex: 0 0 auto; position: relative; display: flex; margin: 0 12px calc(10px + env(safe-area-inset-bottom)); padding: 6px;
  background: var(--vidro); border: 1px solid var(--borda); border-radius: 24px; box-shadow: var(--sombra);
}
.tab-ind {
  position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 18px; pointer-events: none;
  background: var(--marca); box-shadow: 0 8px 16px -10px var(--marca-sombra);
  transition: transform .3s var(--ease), width .3s var(--ease), opacity .2s;
}
#tabbar a {
  position: relative; z-index: 1; flex: 1 1 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--tx3); font-size: .66rem; font-weight: 700; border-radius: 18px; user-select: none; touch-action: manipulation; transition: color .2s;
}
#tabbar a.ativo, #tabbar a.ativo .tab-ic { color: var(--no-marca); }
.tab-ic { position: relative; display: grid; place-items: center; height: 26px; transition: transform .2s var(--ease); }
#tabbar a:active .tab-ic { transform: scale(.86); }
.tab-ic svg { width: 24px; height: 24px; }
.badge {
  position: absolute; top: -6px; left: 14px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--tx); color: var(--bg); font-size: .6rem; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--vidro);
}
.badge.aviso { background: var(--st-atencao); color: #1b1300; }
.badge.info { background: var(--serie-salao); color: #fff; }
body.sem-sessao #topbar, body.sem-sessao #tabbar { display: none; }
/* o "voltar" do topo substitui os links de voltar dentro das telas */
body.com-voltar #view .voltar, body.com-voltar #view .cm-voltar { display: none; }

/* ---------- Botões ---------- */
.btn {
  min-height: var(--tap); padding: 0 18px; border-radius: var(--r-s); border: 1px solid var(--borda2);
  background: var(--s1); color: var(--tx); font-weight: 700; font-size: .9rem; letter-spacing: -.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; user-select: none; touch-action: manipulation;
  text-align: center; line-height: 1.15; box-shadow: 0 1px 2px rgba(60, 20, 20, .05);
  transition: transform .12s var(--ease), filter .15s, background .15s, box-shadow .2s;
}
[data-theme="dark"] .btn { background: var(--s2); border-color: var(--borda); box-shadow: inset 0 1px 0 var(--brilho); }
.btn:active { transform: scale(.97); background: var(--s2); }
.btn:disabled { opacity: .38; pointer-events: none; }
.btn.primario {
  background: var(--grad-marca); border-color: transparent; color: var(--no-marca); font-weight: 800;
  box-shadow: 0 10px 22px -12px var(--marca-sombra), inset 0 -2px 0 rgba(60, 0, 10, .18);
}
.btn.primario:active { background: var(--marca-d); }
.btn.perigo { background: transparent; color: var(--tx-critico); border-color: var(--bg-critico); box-shadow: none; }
.btn.perigo-cheio { background: var(--st-critico); border-color: transparent; color: #fff; }
.btn.bloco { display: flex; width: 100%; margin-top: 10px; }
.btn.grow { flex: 1 1 0; }
.btn.mini { min-height: 38px; padding: 0 13px; font-size: .76rem; border-radius: var(--r-xs); }
.btn.ic { width: var(--tap); padding: 0; flex: 0 0 auto; }
.btn.valor { justify-content: space-between; font-size: 1.05rem; font-weight: 800; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; }
.acoes { margin-top: 16px; }

/* ---------- Tipografia, rótulos, cartões ---------- */
.secao {
  margin: 22px 4px 9px; font: 700 .84rem/1.1 var(--fonte-d); letter-spacing: .1em; text-transform: uppercase; color: var(--marca-tx);
  display: flex; align-items: center; gap: 10px;
}
.secao::after { content: ''; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--marca-borda), transparent); }
.sec-linha { justify-content: space-between; }
.sec-linha::after { display: none; }
.sec-linha small { text-transform: none; letter-spacing: 0; font: 600 .72rem var(--fonte); color: var(--tx3); }
.vazio { padding: 28px 18px; text-align: center; color: var(--tx2); font-size: .86rem; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vazio p { margin: 0; max-width: 330px; line-height: 1.5; }
.vazio-ic {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: var(--marca-tx);
  background: var(--marca-bg); border: 1px solid var(--marca-borda);
}
.vazio-ic svg { width: 26px; height: 26px; }
.dica { color: var(--tx2); font-size: .78rem; margin: 10px 4px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--borda2); background: var(--s1); border-radius: 999px; padding: 8px 14px; font-size: .8rem; font-weight: 600; min-height: 42px; display: inline-flex; align-items: center; }
.chip:active { background: var(--s3); }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 9px; font-size: .6rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.tag.neutra { background: var(--s3); color: var(--tx2); }
.tag.aviso { background: var(--bg-atencao); color: var(--tx-atencao); }
.tag.ok { background: var(--bg-bom); color: var(--tx-bom); }
.voltar { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px 0 0; color: var(--tx2); font-weight: 600; font-size: .84rem; }
.banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-s); margin-bottom: 10px; font-size: .82rem; font-weight: 600; }
.banner.aviso { background: var(--bg-atencao); color: var(--tx-atencao); }
.banner.perigo { background: var(--bg-critico); color: var(--tx-critico); }
.banner.ok { background: var(--bg-bom); color: var(--tx-bom); }
.banner-t { flex: 1 1 auto; }
.banner-a { font-weight: 800; white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--st-neutro); margin-right: 6px; vertical-align: middle; flex: 0 0 auto; }
.dot.verde { background: var(--st-bom); } .dot.amarelo { background: var(--st-atencao); } .dot.vermelho { background: var(--st-critico); }
.t-verde { color: var(--tx-bom) !important; } .t-amarelo { color: var(--tx-atencao) !important; } .t-vermelho { color: var(--tx-critico) !important; }
.t-azul { color: var(--tx-azul) !important; } .t-cinza, .t-na { color: var(--tx3) !important; }
.campo {
  width: 100%; min-height: var(--tap); padding: 0 15px; border-radius: var(--r-s); border: 1px solid var(--borda2);
  background: var(--s1); color: var(--tx); font-size: 1rem; font-weight: 600; outline: none; transition: border-color .15s, box-shadow .15s;
}
.campo:focus { border-color: var(--marca); box-shadow: 0 0 0 4px var(--marca-bg); }
.campo::placeholder { color: var(--tx3); font-weight: 500; }

/* cartão base */
.ms-card, .fx-resumo, .kpi, .aj-sec, .mg-lin, .cad-lin, .fd-topo, .fd-comps, .fd-tot, .rs-cab, .rs-itens, .rl-tab,
.pn-card, .res-card, .viva, .tile, .cm-lin, .cp-lin, .ct-l, .pr-card, .pr-res, .sim-topo, .sim-c, .ed-previa, .an-graf,
.form-info, .pg-lin, .esc-op, .semaf-c {
  background: linear-gradient(180deg, var(--brilho), transparent 42%), var(--s1);
  border: 1px solid var(--borda);
}

/* ---------- Status (sempre ícone + texto) ---------- */
.st-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 10px 4px 7px;
  font-size: .62rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.st-pill svg { width: 13px; height: 13px; stroke-width: 2.6; }
.st-pill.st-bom { background: var(--bg-bom); color: var(--tx-bom); }
.st-pill.st-atencao { background: var(--bg-atencao); color: var(--tx-atencao); }
.st-pill.st-critico { background: var(--bg-critico); color: var(--tx-critico); }
.st-pill.st-neutro { background: var(--s3); color: var(--tx2); }

/* ---------- Segmentado e sub-navegação ---------- */
.seg { display: flex; gap: 3px; padding: 4px; background: var(--s2); border: 1px solid var(--borda); border-radius: 17px; margin-bottom: 10px; }
.seg button {
  flex: 1 1 0; min-height: 48px; border: 0; border-radius: 13px; background: transparent; color: var(--tx3);
  font-weight: 700; font-size: .86rem; padding: 0 6px; touch-action: manipulation; line-height: 1.1; transition: background .2s, color .2s;
}
.seg button.on { background: var(--s1); color: var(--c, var(--tx)); box-shadow: var(--sombra-s); }
[data-theme="dark"] .seg { background: var(--s1); }
[data-theme="dark"] .seg button.on { background: var(--s3); box-shadow: var(--sombra-s), inset 0 1px 0 var(--brilho); }
.seg.seg-p button { min-height: 42px; font-size: .78rem; }
.seg.seg-dias button { padding: 0 2px; }
.seg.seg-cat { flex-wrap: wrap; }
.seg.seg-cat button { flex: 1 1 28%; }
.subnav { display: flex; gap: 6px; margin: 2px -14px 12px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--borda2); background: var(--s1); color: var(--tx2); font-weight: 700; font-size: .74rem; white-space: nowrap;
  touch-action: manipulation; transition: background .15s, color .15s, border-color .15s;
}
.subnav a:active { background: var(--s2); }
.subnav a.on { background: var(--marca-bg2); border-color: var(--marca-borda); color: var(--marca-tx); }
.badge-in { background: var(--marca); color: var(--no-marca); border-radius: 9px; padding: 0 6px; font-size: .6rem; font-weight: 800; line-height: 17px; }

/* ---------- Aviso (toast) ---------- */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast {
  pointer-events: auto; max-width: 560px; width: 100%; display: flex; align-items: center; gap: 10px; position: relative; overflow: hidden;
  background: #2B1618; color: #F6EFDF; border: 1px solid rgba(246, 239, 223, .12); border-radius: 18px; padding: 13px 14px 13px 18px;
  box-shadow: var(--sombra); font-size: .84rem; font-weight: 600; opacity: 0; transform: translateY(12px) scale(.97);
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.toast::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-marca); }
.toast.on { opacity: 1; transform: none; }
.toast.perigo::before { background: var(--st-critico); }
.toast-msg { flex: 1 1 auto; white-space: pre-line; }
.toast-acao { border: 0; background: var(--marca); color: var(--no-marca); font-weight: 800; border-radius: 12px; min-height: 42px; padding: 0 14px; }

/* ---------- Folha inferior ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(30, 10, 12, .55); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.sheet-back.on { opacity: 1; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 30px 30px 0 0; position: relative;
  background: var(--s1); border: 1px solid var(--borda2); border-bottom: 0;
  padding: 24px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(30px); transition: transform .28s var(--ease); box-shadow: 0 -20px 50px rgba(40, 10, 12, .3);
}
.sheet::before { content: ''; position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 2px; background: var(--borda2); }
.sheet-back.on .sheet { transform: none; }
.sheet-tit { font: 800 1.4rem/1.1 var(--fonte-d); letter-spacing: .015em; text-transform: uppercase; margin: 2px 2px 14px; }
.sheet-alta { min-height: 70vh; }
.confirma p { margin: 4px 2px 16px; font-size: .96rem; line-height: 1.5; }
.np-sheet { display: flex; flex-direction: column; gap: 10px; }
.np-sub { color: var(--tx2); font-size: .8rem; line-height: 1.5; }
.np-display, .pr-disp {
  min-height: 74px; display: flex; align-items: center; justify-content: flex-end; padding: 0 18px;
  background: var(--bg); border: 2px solid var(--marca); border-radius: 20px; font-size: 2.2rem; font-weight: 800; letter-spacing: -.035em;
  box-shadow: 0 0 0 5px var(--marca-bg), inset 0 2px 8px rgba(60, 20, 20, .12);
}
.np-display.vazio, .pr-disp.vazio { color: var(--tx3); border-color: var(--borda2); box-shadow: inset 0 2px 8px rgba(60, 20, 20, .1); }
.np-rapidos { display: flex; gap: 8px; }
.np-rapidos .btn { flex: 1 1 0; min-height: 46px; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.np-k {
  min-height: 60px; border: 1px solid var(--borda); border-radius: 18px; font-size: 1.55rem; font-weight: 700;
  background: var(--s1); border-color: var(--borda2);
  display: grid; place-items: center; touch-action: manipulation; user-select: none; transition: transform .08s, background .12s;
  box-shadow: inset 0 1px 0 var(--brilho), 0 2px 0 rgba(0, 0, 0, .25);
}
[data-theme="dark"] .np-k { background: linear-gradient(180deg, var(--brilho), transparent 60%), var(--s2); border-color: var(--borda); }
.np-k:active { background: var(--s3); transform: scale(.95); }
.np-k.np-fn { color: var(--tx2); font-size: 1.15rem; background: transparent; box-shadow: none; }
.np-k svg { width: 26px; height: 26px; }
.treme { animation: treme .35s; }
@keyframes treme { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- Stepper e escolher ---------- */
.stepper { display: flex; align-items: stretch; gap: 6px; }
.st-b { width: 50px; min-height: 50px; border-radius: 15px; border: 1px solid var(--borda); background: var(--s2); display: grid; place-items: center; touch-action: manipulation; }
.st-b:active { background: var(--s3); }
.st-val { min-width: 94px; min-height: 50px; border-radius: 15px; border: 1px dashed var(--borda2); background: var(--bg); font-weight: 800; font-size: .96rem; padding: 0 10px; }
.esc { display: flex; flex-direction: column; gap: 10px; }
.esc-lista { display: flex; flex-direction: column; gap: 6px; }
.esc-op { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: var(--tap); padding: 10px 14px; border-radius: var(--r-s); }
.esc-op:active { background: var(--s3); }
.esc-rot { font-weight: 700; }
.esc-sub { font-size: .72rem; color: var(--tx2); }

/* ---------- PIN (entrada): tela vermelha com o logo em creme ---------- */
.v-pin {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 100%; padding: 26px 22px;
  color: var(--creme); background: radial-gradient(70% 45% at 50% 12%, rgba(255, 255, 255, .1), transparent 70%), var(--marca);
}
.pin-marca { display: flex; flex-direction: column; align-items: center; margin-bottom: 12px; }
.pin-logo { width: min(76vw, 292px); color: var(--creme); }
.pin-local { font: 700 .78rem/1 var(--fonte-d); letter-spacing: .26em; text-transform: uppercase; color: rgba(246, 239, 223, .78); margin-top: 14px; }
.pin-tit { font-weight: 800; font-size: 1.02rem; margin-top: 4px; color: var(--creme); }
.pin-sub { color: rgba(246, 239, 223, .82); font-size: .8rem; min-height: 1.2em; text-align: center; }
.pin-dots { display: flex; gap: 20px; margin: 8px 0 4px; justify-content: center; }
.pin-dots span { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(246, 239, 223, .6); transition: all .18s var(--ease); }
.pin-dots span.on { background: var(--creme); border-color: var(--creme); transform: scale(1.12); }
.pin-msg { color: var(--creme); font-weight: 700; min-height: 1.6em; font-size: .84rem; padding: 3px 12px; border-radius: 999px; background: rgba(40, 0, 8, .28); }
.pin-msg:empty { background: none; }
.pin-pad { width: 100%; max-width: 312px; gap: 14px 18px; }
.pin-pad .np-k {
  width: 78px; height: 78px; min-height: 0; margin: 0 auto; border-radius: 50%; font-size: 1.75rem; font-weight: 600;
  color: var(--creme); background: rgba(246, 239, 223, .12); border: 1px solid rgba(246, 239, 223, .24); box-shadow: none;
}
.pin-pad .np-k:active { background: rgba(246, 239, 223, .28); }
.pin-pad .np-k.np-fn { background: transparent; border-color: transparent; color: var(--creme); }
.pin-aviso { max-width: 330px; font-size: .76rem; color: rgba(246, 239, 223, .85); text-align: center; line-height: 1.5; }
.pin-nuvem { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pin-nuvem .btn { margin-top: 0; font-size: .84rem; }
.pin-nuvem .btn.primario { background: var(--creme); color: var(--marca); box-shadow: 0 10px 22px -12px rgba(40, 0, 8, .6); }
@media (max-height: 720px) {
  .v-pin { gap: 8px; padding-top: 14px; }
  .pin-logo { width: min(64vw, 230px); }
  .pin-local { margin-top: 10px; }
  .pin-pad { gap: 10px 18px; }
  .pin-pad .np-k { width: 66px; height: 66px; font-size: 1.5rem; }
}

/* ---------- Visualizações ---------- */
/* anel (meta) */
.anel { position: relative; width: 78px; height: 78px; flex: 0 0 auto; color: var(--st-neutro); }
.anel.st-bom { color: var(--st-bom); } .anel.st-atencao { color: var(--st-atencao); } .anel.st-critico { color: var(--st-critico); }
.anel svg { width: 100%; height: 100%; display: block; }
.anel-trilho { fill: none; stroke: currentColor; stroke-opacity: .16; stroke-width: 7; }
.anel-arco { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.anel-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.anel-c b { font-size: .98rem; letter-spacing: -.03em; color: var(--tx); }
.anel-c small { font-size: .52rem; color: var(--tx3); font-weight: 700; margin-top: 3px; text-transform: uppercase; letter-spacing: .06em; }
/* barra empilhada (canais) */
.pilha { margin-top: 10px; }
.pilha-b { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; }
.pilha-b.vazia { background: var(--s3); }
.pilha-s { min-width: 3px; height: 100%; }
.pilha-s:first-child { border-radius: 5px 0 0 5px; } .pilha-s:last-child { border-radius: 0 5px 5px 0; } .pilha-s:only-child { border-radius: 5px; }
.serie-salao { background: var(--serie-salao); } .serie-espeto { background: var(--serie-espeto); } .serie-marmita { background: var(--serie-marmita); }
.pilha-leg { display: flex; flex-wrap: wrap; gap: 3px 13px; margin-top: 7px; font-size: .68rem; color: var(--tx2); }
.pn .pilha-leg { flex-wrap: nowrap; justify-content: space-between; gap: 6px; }
.pn .leg-i small { display: none; }
.leg-i { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.leg-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.leg-i b { color: var(--tx); font-weight: 800; }
.leg-i small { color: var(--tx3); font-weight: 600; }
/* colunas pequenas */
.cols-w { display: inline-flex; flex-direction: column; align-items: stretch; }
.cols { display: block; width: auto; height: auto; overflow: visible; }
.cols-base { stroke: var(--borda2); stroke-width: 1; }
.cols-b { fill: var(--tx3); fill-opacity: .55; transition: fill-opacity .15s; }
.cols-g.atual .cols-b { fill: var(--marca); fill-opacity: 1; }
.cols-g:hover .cols-b { fill-opacity: .85; }
.cols-hit { fill: transparent; }
.cols-nulo { fill: var(--tx3); fill-opacity: .5; }
.cols-x { display: flex; justify-content: space-around; font-size: .52rem; color: var(--tx3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.cols-x span.atual { color: var(--marca-tx); }
/* medidor */
.med { color: var(--st-neutro); }
.med.st-bom { color: var(--st-bom); } .med.st-atencao { color: var(--st-atencao); } .med.st-critico { color: var(--st-critico); }
.med-t { position: relative; display: block; height: 6px; border-radius: 3px; background: currentColor; background: color-mix(in srgb, currentColor 18%, transparent); }
.med-f { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: currentColor; transition: width 1s var(--ease); }
.med-m { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--tx); opacity: .45; }

/* ---------- PAINEL ---------- */
#view.v-painel { padding: 4px 12px 8px; }
.v-painel .subnav { margin-bottom: 8px; }
.v-painel .subnav a { min-height: 32px; }
.pn { display: flex; flex-direction: column; gap: 9px; }
.pn-card { border-radius: var(--r-xl); padding: 11px 14px 12px; position: relative; overflow: hidden; box-shadow: var(--sombra); }
.pn-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; }
.pn-card.s-verde::before { background: radial-gradient(90% 70% at 100% 0%, var(--bg-bom), transparent 70%); }
.pn-card.s-amarelo::before { background: radial-gradient(90% 70% at 100% 0%, var(--bg-atencao), transparent 70%); }
.pn-card.s-vermelho::before { background: radial-gradient(90% 70% at 100% 0%, var(--bg-critico), transparent 70%); }
.pn-card.pn-dia { background: radial-gradient(120% 90% at 0% 0%, var(--marca-bg), transparent 55%), linear-gradient(180deg, var(--brilho), transparent 42%), var(--s1); border-color: var(--marca-borda); }
.pn-card > * { position: relative; }
.pn-cab { display: flex; align-items: center; gap: 6px; min-height: 32px; }
.pn-tit { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.pn-tit span { font-weight: 800; font-size: .95rem; letter-spacing: -.02em; text-transform: capitalize; }
.pn-tit small { font-weight: 600; color: var(--tx3); font-size: .66rem; overflow: hidden; text-overflow: ellipsis; }
.pn-nav { width: 36px; height: 32px; border-radius: 11px; border: 1px solid var(--borda); background: var(--s2); display: grid; place-items: center; flex: 0 0 auto; }
.pn-nav:disabled { opacity: .3; }
.pn-nav svg { width: 17px; height: 17px; }
.pn-hero { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; }
.pn-hero-l { min-width: 0; flex: 1 1 auto; }
.pn-rot { font-size: .6rem; color: var(--tx3); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.pn-num { font-size: 2.35rem; font-weight: 800; line-height: 1.02; letter-spacing: -.055em; white-space: nowrap; margin: 2px 0 3px; }
.pn-num.neg { color: var(--tx-critico); }
.pn-meta { font-size: .7rem; color: var(--tx2); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-meta b { color: var(--tx); }
.pn-spark { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pn-spark > small { font-size: .52rem; color: var(--tx3); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pn-linha { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--borda); }
.pn-linha + .pn-linha { border-top: 0; padding-top: 0; margin-top: 7px; }
.pn-mini { min-width: 0; line-height: 1.2; padding: 0 9px; border-left: 1px solid var(--borda); }
.pn-mini:first-child { padding-left: 0; border-left: 0; }
.pn-mini small { display: block; font-size: .52rem; color: var(--tx3); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-mini b { display: block; font-size: .86rem; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.pn-mini em { font-style: normal; font-size: .66rem; color: var(--tx3); font-weight: 700; margin-left: 3px; }
.pn-txt { display: block; font-size: .7rem; color: var(--tx2); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-txt b { color: var(--tx); }
.pn-caixa { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--borda); font-size: .7rem; color: var(--tx2); }
.pn-caixa svg { width: 15px; height: 15px; color: var(--tx3); }
.pn-caixa span { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-caixa span b { color: var(--tx); }
.pn-caixa > b { font-size: .8rem; }
.pn-vazio { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--tx3); font-size: .8rem; padding: 8px 0 2px; }
.pn-escada { margin-top: 9px; }
.pn-esc-t { font-size: .68rem; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.pn-esc-t b { color: var(--tx); }
@media (max-height: 900px) {
  .pn-num { font-size: 2rem; }
  .anel { width: 72px; height: 72px; }
  .pn-card { padding: 8px 12px 10px; }
  .pn { gap: 7px; }
  .pn-linha { margin-top: 6px; }
  .pn-mini { padding: 3px 8px; }
  .pn-mini b { font-size: .78rem; }
  .pilha { margin-top: 7px; }
  .pilha-leg { margin-top: 5px; }
  .pn-caixa { margin-top: 7px; padding-top: 6px; }
  .pn-txt { margin-top: 6px; }
  .pn-escada { margin-top: 7px; }
  .pn-cab { min-height: 28px; }
  .pn-nav { height: 28px; }
  #topbar { min-height: 54px; padding-top: calc(env(safe-area-inset-top) + 6px); padding-bottom: 4px; }
  .v-painel .subnav a { min-height: 28px; }
}
@media (max-height: 690px) {
  #tabbar { margin-bottom: calc(5px + env(safe-area-inset-bottom)); }
  #tabbar a { min-height: 48px; }
  .tab-rot { display: none; }
  .top-sub { display: none; }
  .top-marca .marca { --t: 32px; }
  #view.v-painel { padding: 2px 10px 2px; }
  .v-painel .subnav { margin-bottom: 5px; }
  .v-painel .subnav a { min-height: 26px; font-size: .68rem; }
  .pn { gap: 5px; }
  .pn-num { font-size: 1.6rem; margin: 0 0 1px; }
  .anel { width: 60px; height: 60px; }
  .anel-c b { font-size: .8rem; }
  .anel-c small { display: none; }
  .pn-hero { margin: 0; }
  .pn-card { padding: 5px 10px 7px; }
  .pn-mini small { font-size: .5rem; }
  .pn-mini b { font-size: .72rem; }
  .pn-linha { gap: 4px; margin-top: 5px; }
  .pilha-leg { font-size: .64rem; }
  .pn-txt, .pn-meta { font-size: .64rem; }
  .cols-x { display: none; }
  /* telefone pequeno: detalhes da semana ficam no Relatório */
  .pn-txt, .pn-vol, .pn-spark > small { display: none; }
  #topbar { min-height: 48px; padding-top: calc(env(safe-area-inset-top) + 4px); padding-bottom: 2px; }
  .pn-cab { min-height: 26px; }
  .pn-nav { height: 26px; width: 32px; }
  .pn-caixa { margin-top: 5px; padding-top: 5px; }
  .pn-escada { margin-top: 5px; }
  .pn-esc-t { margin-bottom: 4px; }
  .pilha { margin-top: 5px; }
  .pilha-leg { margin-top: 3px; }
}

/* ---------- Resultado ao vivo (compras, mesas) ---------- */
.res-card { display: block; border-radius: var(--r-xl); padding: 14px 16px; margin-bottom: 12px; position: relative; overflow: hidden; box-shadow: var(--sombra); }
.res-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 0% 0%, var(--marca-bg), transparent 55%); }
.res-card.s-verde::after, .res-card.s-vermelho::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.res-card.s-verde::after { background: radial-gradient(80% 70% at 100% 0%, var(--bg-bom), transparent 70%); }
.res-card.s-vermelho::after { background: radial-gradient(80% 70% at 100% 0%, var(--bg-critico), transparent 70%); }
.res-card > * { position: relative; z-index: 1; }
.res-top { display: flex; align-items: center; justify-content: space-between; color: var(--tx3); }
.res-rot { font-size: .6rem; color: var(--tx3); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.res-num { font-size: 2.1rem; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; margin-top: 2px; }
.res-num.t-verde { color: var(--tx) !important; }
.res-conta, .res-caixa { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .72rem; color: var(--tx2); margin-top: 6px; }
.res-caixa { border-top: 1px solid var(--borda); padding-top: 8px; margin-top: 9px; }
.res-conta b, .res-caixa b { color: var(--tx); }
.viva { display: flex; align-items: center; gap: 12px; border-radius: var(--r); padding: 11px 14px; margin-bottom: 12px; color: var(--tx3); box-shadow: var(--sombra-s); }
.viva-pt { width: 9px; height: 9px; border-radius: 50%; background: var(--st-neutro); flex: 0 0 auto; }
.viva-pt.verde { background: var(--st-bom); box-shadow: 0 0 0 4px var(--bg-bom); animation: pulsa 2s infinite; }
.viva-pt.vermelho { background: var(--st-critico); box-shadow: 0 0 0 4px var(--bg-critico); animation: pulsa 2s infinite; }
.viva-i { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.viva-i + .viva-i { border-left: 1px solid var(--borda); padding-left: 12px; }
.viva-i small { font-size: .52rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--tx3); white-space: nowrap; }
.viva-i b { font-size: .98rem; color: var(--tx); white-space: nowrap; letter-spacing: -.03em; }

/* ---------- MESAS ---------- */
.ms-acoes { display: grid; grid-template-columns: 1.65fr 1fr; gap: 10px; margin-bottom: 4px; }
.ms-rapida { min-height: 64px; font-size: 1rem; border-radius: 20px; }
.ms-rapida svg { width: 22px; height: 22px; }
.ms-marm { min-height: 64px; border-radius: 20px; }
.ms-marm svg { color: var(--serie-marmita); }
.ms-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
@media (min-width: 560px) { .ms-grade { grid-template-columns: repeat(4, 1fr); } }
.ms-mesa {
  position: relative; min-height: 104px; border-radius: 22px; border: 1.5px dashed var(--borda2); background: transparent; padding: 10px 11px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; text-align: left; touch-action: manipulation;
  transition: transform .15s var(--ease), border-color .2s;
}
.ms-mesa:active { transform: scale(.96); }
.ms-mesa.ocupada {
  border: 1.5px solid var(--marca-borda); box-shadow: var(--sombra-s);
  background: radial-gradient(120% 100% at 0% 0%, var(--marca-bg2), transparent 65%), var(--s1);
}
.ms-topo { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 4px; }
.ms-n { font-size: 1.45rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--tx3); opacity: .75; }
.ocupada .ms-n { color: var(--marca-tx); opacity: 1; }
.ms-livre { color: var(--tx3); font-size: .66rem; font-weight: 700; margin-top: auto; letter-spacing: .04em; text-transform: uppercase; }
.ms-cli { font-size: .74rem; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: auto; color: var(--tx2); }
.ms-tot { font-size: 1rem; font-weight: 800; letter-spacing: -.03em; color: var(--tx); }
.ms-tempo { display: inline-flex; align-items: center; gap: 4px; font-size: .58rem; font-weight: 800; color: var(--tx2); }
.ms-rel { width: 15px; height: 15px; border-radius: 50%; flex: 0 0 auto;
  background: conic-gradient(var(--marca) calc(var(--p, 0) * 360deg), color-mix(in srgb, var(--marca) 20%, transparent) 0);
  -webkit-mask: radial-gradient(circle, transparent 4px, #000 4.5px); mask: radial-gradient(circle, transparent 4px, #000 4.5px); }
.demorada .ms-rel { background: conic-gradient(var(--st-atencao) 360deg, transparent 0); }
.demorada .ms-tempo { color: var(--tx-atencao); }
.ms-resumo { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r); font-size: .84rem; color: var(--tx2);
  background: linear-gradient(180deg, var(--brilho), transparent 42%), var(--s1); border: 1px solid var(--borda); }
.ms-resumo span { flex: 1 1 auto; }
.ms-resumo b { color: var(--tx); }
.ms-lista, .mg-lista, .cad-lista { display: flex; flex-direction: column; gap: 8px; }
.ms-card { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 12px 14px; border-radius: 18px; width: 100%; text-align: left; transition: transform .12s var(--ease); }
.ms-card:active { transform: scale(.985); background: var(--s2); }
.ms-card.cancelada { opacity: .5; }
.ms-card-n { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: .9rem; letter-spacing: -.01em; }
.ms-card-n small { display: block; font-weight: 500; color: var(--tx2); font-size: .72rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-card > b, .ms-card-d b { white-space: nowrap; font-size: .98rem; letter-spacing: -.02em; }
.ms-card-d { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.av-f { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: var(--marca-tx);
  background: var(--marca-bg); border: 1px solid var(--marca-borda); }
.av-f svg { width: 19px; height: 19px; }
.fx-resumo { border-radius: var(--r); padding: 13px 15px; margin-bottom: 10px; }
.fx-tot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fx-tot small { color: var(--tx2); font-size: .76rem; }
.fx-tot b { font-size: 1.7rem; letter-spacing: -.045em; }
.fx-formas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: .74rem; color: var(--tx2); }
.fx-formas.link { justify-content: space-between; border-top: 1px solid var(--borda); padding-top: 9px; margin-top: 9px; }
.fx-formas b { color: var(--tx); }
.fx-f.f-pix b { color: var(--pix); }
.lc-dia { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lc-dia .pn-nav { width: 48px; height: 44px; border-radius: 14px; }
.lc-dia-t { flex: 1 1 auto; text-align: center; font-weight: 800; font-size: 1.05rem; text-transform: capitalize; letter-spacing: -.02em; }
.lc-dia-t small { display: block; font-weight: 600; color: var(--tx3); font-size: .7rem; letter-spacing: 0; }
.lc-b { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 15px; border: 1px solid var(--borda); background: var(--s2); display: grid; place-items: center; touch-action: manipulation; }
.lc-b.mais { background: var(--grad-marca); border-color: transparent; color: var(--no-marca); box-shadow: 0 8px 18px -10px var(--marca-sombra); }
.lc-b:active { transform: scale(.93); }

/* ---------- Barra de ação fixa embaixo (comanda, compra) ---------- */
#view.v-comanda, #view.v-cp-form { display: flex; flex-direction: column; }
#view.v-comanda > *, #view.v-cp-form > * { flex: 0 0 auto; }
.barra-acao {
  position: sticky; bottom: -22px; z-index: 4; margin: auto -14px -22px; padding: 12px 14px 14px;
  display: flex; align-items: center; gap: 14px;
  background: var(--vidro); border-top: 1px solid var(--borda); box-shadow: 0 -10px 24px -18px rgba(60, 20, 20, .35);
}
.barra-tot { flex: 0 0 auto; display: flex; flex-direction: column; min-width: 100px; }
.barra-tot small { color: var(--tx3); font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.barra-tot b { font-size: 1.7rem; letter-spacing: -.05em; line-height: 1.05; }
.barra-btn { flex: 1 1 auto; min-height: 60px; font-size: 1rem; border-radius: 18px; }

/* ---------- COMANDA ---------- */
#view.v-comanda { padding-top: 2px; }
.cm-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cm-voltar { width: 34px; height: 48px; display: grid; place-items: center; color: var(--tx2); flex: 0 0 auto; margin-left: -6px; }
.cm-selo {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; font-weight: 800; font-size: 1.35rem; letter-spacing: -.05em;
  color: var(--tx); background: var(--s2); border: 1px solid var(--borda2); box-shadow: inset 0 1px 0 var(--brilho);
}
.cm-selo.k-espeto { background: radial-gradient(circle at 30% 20%, rgba(217, 89, 38, .45), rgba(217, 89, 38, .12)); border-color: rgba(217, 89, 38, .45); }
.cm-selo.k-salao { background: radial-gradient(circle at 30% 20%, rgba(57, 135, 229, .42), rgba(57, 135, 229, .1)); border-color: rgba(57, 135, 229, .45); }
.cm-selo.k-marmita { background: radial-gradient(circle at 30% 20%, rgba(25, 158, 112, .42), rgba(25, 158, 112, .1)); border-color: rgba(25, 158, 112, .45); }
.cm-tit { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; text-align: left; display: flex; flex-direction: column; padding: 0; min-height: 48px; justify-content: center; }
.cm-tit b { font-size: 1.25rem; letter-spacing: -.04em; line-height: 1.1; }
.cm-tit span { font-size: .78rem; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.cm-tit span svg { width: 12px; height: 12px; color: var(--tx3); }
.cm-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.cm-canal { border: 1px solid var(--borda); border-radius: 999px; padding: 0 11px 0 22px; min-height: 30px; font-size: .68rem; font-weight: 800; background: var(--s1); color: var(--tx); position: relative; }
.cm-canal::before { content: ''; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 2px; background: var(--tx3); }
.cm-canal.k-espeto::before { background: var(--serie-espeto); } .cm-canal.k-salao::before { background: var(--serie-salao); } .cm-canal.k-marmita::before { background: var(--serie-marmita); }
.cm-tempo { font-size: .66rem; color: var(--tx3); font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.cm-tempo svg { width: 12px; height: 12px; }
.cm-cats { display: flex; gap: 7px; overflow-x: auto; margin: 0 -14px 10px; padding: 2px 14px; scrollbar-width: none; }
.cm-cats::-webkit-scrollbar { display: none; }
.cm-cat {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--borda); background: var(--s1); color: var(--tx2); font-weight: 700; font-size: .82rem; transition: all .2s var(--ease);
}
.cm-cat.on { background: var(--tx); color: var(--bg); border-color: transparent; box-shadow: var(--sombra-s); }
.cm-cat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k-guarnicao); }
.cm-cat.k-espeto .cm-cat-dot { background: var(--k-espeto); } .cm-cat.k-prato .cm-cat-dot { background: var(--k-prato); } .cm-cat.k-bebida .cm-cat-dot { background: var(--k-bebida); }
.cm-cat b { min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; display: grid; place-items: center; font-size: .64rem; background: var(--marca); color: var(--no-marca); }
.cm-grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
@media (min-width: 560px) { .cm-grade { grid-template-columns: repeat(3, 1fr); } }
.cm-item {
  position: relative; min-height: 84px; border-radius: 20px; border: 1px solid var(--borda); padding: 12px 13px 11px;
  background: linear-gradient(180deg, var(--brilho), transparent 50%), var(--s1);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; text-align: left; touch-action: manipulation; user-select: none; overflow: hidden;
  transition: transform .12s var(--ease), border-color .2s, box-shadow .2s;
}
.cm-item::before { content: ''; position: absolute; left: 13px; top: 13px; width: 16px; height: 3px; border-radius: 2px; background: var(--k-guarnicao); }
.cm-item.k-espeto::before { background: var(--k-espeto); } .cm-item.k-prato::before { background: var(--k-prato); } .cm-item.k-bebida::before { background: var(--k-bebida); }
.cm-item:active { transform: scale(.96); }
.cm-item.tem { border-color: var(--marca); background: linear-gradient(180deg, var(--marca-bg), transparent 70%), var(--s1); box-shadow: 0 0 0 1px var(--marca-borda), 0 10px 22px -14px var(--marca-sombra); }
.cm-item-n { font-weight: 700; font-size: .84rem; line-height: 1.2; padding: 9px 30px 0 0; letter-spacing: -.01em; }
.cm-item-p { font-size: .82rem; color: var(--tx); font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.cm-item-q { position: absolute; top: 9px; right: 9px; min-width: 26px; height: 26px; border-radius: 13px; background: var(--grad-marca); color: var(--no-marca); font-weight: 800; font-size: .76rem; display: grid; place-items: center; padding: 0 7px; box-shadow: 0 4px 10px -4px var(--marca-sombra); }
.cm-consumo { margin-top: 4px; }
.cm-lin { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 18px; margin-bottom: 7px; }
.cm-lin-n { flex: 1 1 auto; min-width: 0; font-size: .86rem; font-weight: 600; }
.cm-lin-n small { display: block; color: var(--tx3); font-size: .64rem; font-weight: 600; margin-top: 1px; }
.cm-lin-v { font-weight: 800; font-size: .88rem; white-space: nowrap; letter-spacing: -.02em; }
.rs-cab { border-radius: var(--r-xl); padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--sombra); }
.rs-cab.cancelada { border-color: var(--bg-critico); }
.rs-tit { font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.rs-sub { color: var(--tx2); font-size: .74rem; }
.rs-total { font-size: 2.2rem; font-weight: 800; letter-spacing: -.055em; margin: 2px 0; }
.rs-cab.cancelada .rs-total { color: var(--tx-critico); font-size: 1.3rem; }
.rs-itens { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; }
.rs-l { display: grid; grid-template-columns: 50px 1fr auto; gap: 8px; align-items: baseline; padding: 11px 14px; border-bottom: 1px solid var(--borda); font-size: .84rem; }
.rs-l.cp { grid-template-columns: 1fr auto; }
.rs-l:last-child { border-bottom: 0; }
.rs-l.removido { color: var(--tx3); text-decoration: line-through; }
.rs-l small { color: var(--tx3); display: block; font-size: .7rem; }
.rs-l.removido small { color: var(--tx-atencao); text-decoration: none; display: inline; }
.rs-l em { font-style: normal; font-weight: 700; }
.rs-h { color: var(--tx3); font-weight: 700; font-size: .74rem; }
.rs-v { font-weight: 800; white-space: nowrap; }
.rs-quem { color: var(--tx3); font-size: .7rem; margin: 10px 4px; }

/* ---------- PAGAMENTO ---------- */
.pg-topo { text-align: center; padding: 8px 0 16px; }
.pg-rot { color: var(--tx2); font-weight: 600; font-size: .86rem; }
.pg-cap { color: var(--tx3); font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; }
.pg-total { font-size: 3.4rem; font-weight: 800; line-height: 1.05; letter-spacing: -.06em; }
.pg-sub { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--tx2); font-size: .76rem; flex-wrap: wrap; margin-top: 6px; }
.pg-formas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 6px 0 12px; }
.pg-forma {
  min-height: 70px; border-radius: 20px; border: 1px solid var(--borda); font-weight: 800; font-size: .96rem; letter-spacing: -.01em;
  background: linear-gradient(180deg, var(--brilho), transparent 50%), var(--s1);
  touch-action: manipulation; display: flex; align-items: center; justify-content: flex-start; gap: 11px; padding: 0 14px; transition: transform .12s var(--ease);
}
.pg-forma:active { transform: scale(.96); background: var(--s2); }
.pg-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--s3); }
.pg-ic svg { width: 20px; height: 20px; }
.f-dinheiro .pg-ic { background: var(--bg-bom); color: var(--tx-bom); }
.f-pix .pg-ic { background: color-mix(in srgb, var(--pix) 16%, transparent); color: var(--pix); }
.f-debito .pg-ic, .f-cartao .pg-ic { background: color-mix(in srgb, var(--serie-salao) 16%, transparent); color: var(--serie-salao); }
.f-credito .pg-ic { background: var(--bg-atencao); color: var(--tx-atencao); }
.pg-forma.f-fiado { grid-column: 1 / -1; justify-content: center; }
.f-fiado .pg-ic { background: var(--bg-critico); color: var(--tx-critico); }
.pg-pags { display: flex; flex-direction: column; gap: 8px; }
.pg-lin { display: flex; align-items: center; gap: 8px; border-radius: 18px; padding: 6px 6px 6px 14px; }
.pg-lin-f { flex: 1 1 auto; font-weight: 700; }
.pg-lin .btn.valor { min-width: 120px; }
.pg-falta { text-align: center; margin: 14px 0 4px; font-weight: 700; color: var(--tx-atencao); font-size: .9rem; }
.pg-falta.ok { color: var(--tx-bom); } .pg-falta.mais { color: var(--tx-critico); }
.pg-ok { min-height: 66px; font-size: 1.05rem; border-radius: 20px; }

/* ---------- COMPRAS ---------- */
.cp-nova { min-height: 62px; margin: 0 0 4px; border-radius: 20px; font-size: .98rem; }
.cp-novas { margin: 0 0 4px; }
.cp-novas .cp-nova { margin: 0; }
.cp-novas .btn { white-space: nowrap; padding: 0 12px; gap: 8px; }
.cp-novas .btn svg { flex: 0 0 auto; }
.form > .cp-novas { margin-bottom: 12px; }
.cp-galeria { display: block; width: 100%; min-height: 44px; border: 0; background: transparent; color: var(--marca-tx); font-weight: 600; font-size: .8rem; }
.cp-lin-lido { font-size: .68rem; color: var(--tx3); margin-top: 1px; }
.cp-lendo { align-items: center; text-align: center; gap: 6px; }
.cp-lendo small { color: var(--tx2); font-size: .8rem; }
.cp-lendo-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 6px auto 4px; background: var(--bg-atencao); color: var(--marca-tx); animation: pulsa 1.4s ease-in-out infinite; }
.cp-lendo-ic svg { width: 30px; height: 30px; }
.cp-busca { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 0 4px 0 14px; border-radius: 16px; background: var(--s2); border: 1px solid var(--borda); }
.cp-busca > svg { width: 18px; height: 18px; color: var(--tx3); flex: 0 0 auto; }
.cp-busca .cp-busca-in { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; box-shadow: none; padding-left: 0; font-size: .9rem; }
.cp-busca-in::-webkit-search-cancel-button, .cp-busca-in::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.cp-busca .cp-busca-x { width: 40px; min-height: 40px; border: 0; background: transparent; box-shadow: none; color: var(--tx3); }
.cp-dia-cal { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; padding: 4px 0; border-radius: 12px; }
.cp-dias { margin-top: 6px; text-align: center; }
.cp-dias small { display: block; color: var(--tx3); font-size: .75rem; margin-bottom: 6px; }
.cp-dias .chips { justify-content: center; }
.cal-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cal-top .pn-nav { width: 44px; height: 40px; border-radius: 13px; }
.cal-mes { flex: 1 1 auto; text-align: center; font-weight: 800; text-transform: capitalize; }
.cal-mes small { display: block; font-weight: 600; font-size: .72rem; color: var(--tx3); text-transform: none; }
.cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-sem { text-align: center; font-size: .62rem; font-weight: 800; text-transform: uppercase; color: var(--tx3); padding: 2px 0 4px; }
.cal-d { min-height: 48px; border-radius: 12px; border: 1px solid transparent; background: var(--s2); color: var(--tx); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; }
.cal-d b { font-size: .88rem; }
.cal-d small { font-size: .56rem; font-weight: 700; color: var(--marca-tx); white-space: nowrap; }
.cal-d.vazio { background: transparent; }
.cal-d:disabled { opacity: .3; }
.cal-d.com { background: var(--bg-atencao); }
.cal-d.hoje { border-color: var(--tx3); }
.cal-d.sel { border-color: var(--marca-tx); box-shadow: 0 0 0 1px var(--marca-tx) inset; }
.cp-colar { min-height: 160px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; line-height: 1.45; resize: vertical; white-space: pre; }
.cp-previa { font-size: .8rem; min-height: 1.2em; }
.cp-passos { margin: 0; padding-left: 20px; color: var(--tx2); font-size: .82rem; line-height: 1.5; }
.cp-link { display: inline; text-align: left; min-height: 0; border: 0; background: none; padding: 0; color: var(--marca-tx); font: inherit; font-weight: 700; text-decoration: underline; }
.qr-caixa { position: relative; width: 100%; aspect-ratio: 1; max-height: 52vh; border-radius: 18px; overflow: hidden; background: #000; }
.qr-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qr-mira { position: absolute; inset: 12%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); pointer-events: none; }
.qr-status { color: var(--tx2); font-size: .8rem; text-align: center; line-height: 1.4; }
.cp-linhas { display: flex; flex-direction: column; gap: 7px; }
.cp-vazio { color: var(--tx3); font-size: .8rem; padding: 16px; border: 1.5px dashed var(--borda2); border-radius: 18px; text-align: center; }
.cp-lin { display: flex; align-items: center; gap: 8px; border-radius: 18px; padding: 4px 4px 4px 14px; }
.cp-lin-main { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; text-align: left; display: flex; flex-direction: column; padding: 6px 0; min-height: 50px; justify-content: center; }
.cp-lin-n { font-weight: 700; font-size: .88rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.cp-lin-q { font-size: .72rem; color: var(--tx2); margin-top: 1px; }
.cp-lin-q em { font-style: normal; font-weight: 800; }
.cp-lin-v { white-space: nowrap; font-size: .95rem; letter-spacing: -.02em; }
.cp-lin .btn.ic { width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--tx3); box-shadow: none; }
.cp-add { border: 1.5px dashed var(--borda2); background: transparent; box-shadow: none; color: var(--marca-tx); }
.cp-criar { border-color: var(--marca-borda); }
.cp-criar .esc-rot { display: inline-flex; align-items: center; gap: 6px; color: var(--marca-tx); }
.cp-ok { display: flex; align-items: center; gap: 12px; background: var(--bg-bom); color: var(--tx-bom); border-radius: 18px; padding: 13px 15px; }
.cp-ok svg { width: 28px; height: 28px; }
.cp-ok b { display: block; color: var(--tx); }
.cp-ok small { color: var(--tx2); font-size: .76rem; }
.qp-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.qp-campo { min-height: 76px; border-radius: 20px; border: 2px solid var(--borda); background: var(--bg); text-align: left; padding: 9px 13px; display: flex; flex-direction: column; justify-content: center; transition: all .2s var(--ease); }
.qp-campo small { font-size: .56rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--tx3); }
.qp-campo b { font-size: 1.5rem; letter-spacing: -.045em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp-campo.on { border-color: var(--marca); box-shadow: 0 0 0 5px var(--marca-bg); }
.qp-info { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: var(--tx2); min-height: 1.3em; }
.qp-info b { color: var(--tx); }
.ct-lista { display: flex; flex-direction: column; gap: 8px; }
.ct-l { border-radius: 18px; padding: 11px 14px; }
.ct-l-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .88rem; }
.ct-l-preco { color: var(--tx3); font-size: .68rem; white-space: nowrap; }
.ct-bar { position: relative; height: 18px; margin: 9px 0 6px; }
.ct-bar-c, .ct-bar-u { position: absolute; left: 0; height: 7px; border-radius: 4px; }
.ct-bar-c { top: 0; background: var(--serie-salao); }
.ct-bar-u { top: 10px; background: var(--serie-marmita); }
.lg-c2, .lg-u2 { display: inline-block; width: 10px; height: 7px; border-radius: 2px; margin-right: 5px; }
.lg-c2 { background: var(--serie-salao); } .lg-u2 { background: var(--serie-marmita); }
.ct-l-nums { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .72rem; color: var(--tx2); }
.ct-l-nums b { color: var(--tx); }

/* ---------- FICHAS ---------- */
.semaf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.semaf-c { border-radius: 18px; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; }
.semaf-t { display: inline-flex; align-items: flex-start; gap: 4px; font-size: .58rem; font-weight: 800; letter-spacing: .02em; min-height: 2.6em; }
.semaf-t svg { width: 12px; height: 12px; stroke-width: 2.6; }
.semaf-c.st-bom .semaf-t { color: var(--tx-bom); } .semaf-c.st-atencao .semaf-t { color: var(--tx-atencao); } .semaf-c.st-critico .semaf-t { color: var(--tx-critico); }
.semaf-c b { font-size: 1.7rem; line-height: 1.1; letter-spacing: -.05em; }
.semaf-c small { font-size: .62rem; color: var(--tx3); font-weight: 600; }
.mg-lin { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center; padding: 12px 15px 12px; min-height: var(--tap); border-radius: 20px; transition: transform .12s var(--ease); }
.mg-lin:active { transform: scale(.985); }
.mg-lin .med { grid-column: 1 / -1; margin: 5px 0 3px; }
.mg-nome { font-weight: 700; font-size: .92rem; letter-spacing: -.015em; }
.mg-nome small { display: block; font-size: .62rem; color: var(--tx3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 1px; }
.mg-fc { font-weight: 800; font-size: 1.2rem; text-align: right; letter-spacing: -.04em; line-height: 1.05; }
.mg-fc small { display: block; font-size: .52rem; color: var(--tx3); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.f-verde .mg-fc { color: var(--tx-bom); } .f-amarelo .mg-fc { color: var(--tx-atencao); } .f-vermelho .mg-fc { color: var(--tx-critico); }
.mg-lin.comp { grid-template-columns: 1fr auto; }
.mg-det { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .7rem; color: var(--tx2); }
.mg-det b { color: var(--tx); font-weight: 700; }
.fd-topo { border-radius: var(--r-xl); padding: 16px; position: relative; overflow: hidden; box-shadow: var(--sombra); }
.fd-topo::before { content: ''; position: absolute; inset: 0; pointer-events: none; }
.fd-topo.f-verde::before { background: radial-gradient(80% 70% at 100% 0%, var(--bg-bom), transparent 70%); }
.fd-topo.f-amarelo::before { background: radial-gradient(80% 70% at 100% 0%, var(--bg-atencao), transparent 70%); }
.fd-topo.f-vermelho::before { background: radial-gradient(80% 70% at 100% 0%, var(--bg-critico), transparent 70%); }
.fd-topo > * { position: relative; }
.fd-cat { font-size: .6rem; font-weight: 800; color: var(--marca-tx); text-transform: uppercase; letter-spacing: .12em; }
.fd-nome { font-size: 1.3rem; font-weight: 800; letter-spacing: -.035em; margin: 3px 0 8px; }
.fd-grande { display: flex; align-items: baseline; gap: 8px; font-size: 2.6rem; font-weight: 800; letter-spacing: -.055em; line-height: 1.05; }
.fd-grande small { font-size: .74rem; color: var(--tx2); font-weight: 600; letter-spacing: 0; }
.fd-grande .dot { width: 12px; height: 12px; align-self: center; }
.f-verde .fd-grande span { color: var(--tx-bom); } .f-amarelo .fd-grande span { color: var(--tx-atencao); } .f-vermelho .fd-grande span { color: var(--tx-critico); }
.fd-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.fd-nums small, .ed-previa small { display: block; font-size: .56rem; color: var(--tx3); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.fd-nums b { font-size: 1.02rem; letter-spacing: -.02em; }
.fd-comps { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; }
.fd-c { display: grid; grid-template-columns: 1fr auto 76px; gap: 8px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--borda); min-height: 52px; }
.fd-c:last-child { border-bottom: 0; }
.fd-cn { font-weight: 600; font-size: .86rem; min-width: 0; }
.fd-cn small { display: block; font-weight: 500; color: var(--tx3); font-size: .68rem; }
.fd-cq { color: var(--tx2); font-size: .78rem; white-space: nowrap; }
.fd-cv { text-align: right; font-weight: 700; font-size: .86rem; }
.fd-tot { margin-top: 10px; border-radius: var(--r); padding: 6px 15px; }
.fd-tot div { display: flex; justify-content: space-between; padding: 7px 0; font-size: .84rem; color: var(--tx2); }
.fd-tot b { color: var(--tx); }
.fd-tot-cmv { border-top: 1px solid var(--borda); font-size: 1.02rem !important; color: var(--tx) !important; font-weight: 800; }
.cad-lin { display: flex; flex-direction: column; gap: 2px; padding: 12px 15px; min-height: var(--tap); border-radius: 18px; }
.cad-lin.inativo { opacity: .5; }
.cad-n { font-weight: 700; letter-spacing: -.01em; }
.cad-d { font-size: .74rem; color: var(--tx2); display: flex; align-items: center; }
.cad-d.velho { color: var(--tx-atencao); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-tit { font-size: 1.4rem; font-weight: 800; letter-spacing: -.04em; display: flex; flex-direction: column; }
.form-tit small { font-size: .72rem; color: var(--tx3); font-weight: 600; letter-spacing: 0; text-transform: capitalize; margin-top: 2px; }
.campo-l { display: flex; flex-direction: column; gap: 8px; }
.campo-r { font-size: .6rem; font-weight: 800; color: var(--tx3); text-transform: uppercase; letter-spacing: .12em; }
.campo-l .seg { margin-bottom: 0; }
.ds-novas { margin: 12px 0; }
.ds-card { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ds-card .ms-card-n { flex: 1 1 auto; min-width: 0; }
.ds-barras { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.ds-barra { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; font-variant-numeric: tabular-nums; }
.ds-barra-n { min-width: 0; color: var(--tx2); font-weight: 600; }
.ds-barra-f { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--marca); min-width: 2px; }
.cs-sheet { gap: 8px; }
.cs-linha { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--borda); font-variant-numeric: tabular-nums; }
.cs-linha span { min-width: 0; }
.cs-linha b { white-space: nowrap; }
.cs-dif { display: flex; flex-direction: column; gap: 8px; }
.cp-dia-f { justify-content: flex-start; gap: 10px; font-weight: 700; }
.cp-dia-f svg { flex: 0 0 auto; }
.cp-dia-f small { margin-left: auto; color: var(--tx3); font-weight: 600; }
.cp-dia-f.passado { border-color: var(--st-atencao); color: var(--tx-atencao); }
.campo-d { color: var(--tx3); font-size: .7rem; line-height: 1.45; }
.form-info { font-size: .78rem; color: var(--tx2); border-radius: 14px; padding: 11px 13px; line-height: 1.5; }
.ed-previa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-radius: 18px; padding: 11px 13px; }
.ed-previa.f-verde { border-color: var(--bg-bom); } .ed-previa.f-amarelo { border-color: var(--bg-atencao); } .ed-previa.f-vermelho { border-color: var(--bg-critico); }
.ed-previa b { font-size: 1.02rem; display: flex; align-items: center; }
.ed-cq { display: flex; align-items: center; gap: 6px; }

/* ---------- Preços ---------- */
#view.v-precos { display: flex; flex-direction: column; gap: 8px; padding-bottom: 0; }
#view.v-precos .subnav { margin-bottom: 0; }
.pr-res { border-radius: 16px; padding: 9px 13px; display: flex; flex-direction: column; gap: 4px; font-size: .82rem; }
.pr-res.alerta { border-color: var(--bg-critico); background: var(--bg-critico); }
.pr-res-tit { color: var(--tx2); }
.efeito { display: flex; align-items: center; gap: 4px; font-size: .84rem; }
.efeito.f-vermelho { color: var(--tx-critico); } .efeito.f-amarelo { color: var(--tx-atencao); } .efeito.f-verde { color: var(--tx-bom); }
.efeito.neutro { color: var(--tx2); font-size: .78rem; }
.pr-area { display: flex; flex-direction: column; gap: 8px; }
.pr-area .numpad { gap: 7px; }
.pr-area .np-k { min-height: 54px; }
.pr-area .pr-disp { min-height: 62px; }
.pr-card { border-radius: var(--r); padding: 10px 15px 12px; }
.pr-topo { display: flex; align-items: center; gap: 8px; }
.pr-pos { flex: 1 1 auto; font-size: .68rem; font-weight: 800; color: var(--marca-tx); letter-spacing: .04em; }
.pr-nome { font-size: 1.35rem; font-weight: 800; letter-spacing: -.04em; margin-top: 2px; line-height: 1.15; }
.pr-meta { color: var(--tx2); font-size: .74rem; margin-top: 2px; }
.pr-atual { margin-top: 6px; font-size: .86rem; color: var(--tx2); }
.pr-atual b { color: var(--tx); }
.pr-atual.velho { color: var(--tx-atencao); }
.pr-botoes { display: flex; gap: 10px; position: sticky; bottom: 0; z-index: 2; background: var(--bg); padding: 6px 0 12px; }
.pr-mesmo { flex: 0 0 40%; }
.pr-salvar { flex: 1 1 auto; min-height: 62px; font-size: 1rem; }
.pr-fim { text-align: center; padding: 22px 6px; }
.pr-fim-ic { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%; background: var(--bg-bom); color: var(--tx-bom); display: grid; place-items: center; }
.pr-fim-ic svg { width: 38px; height: 38px; }
.pr-fim-t { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.pr-fim-lista { text-align: left; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Simulação ---------- */
.sim-nome { font-size: 1.25rem; font-weight: 800; letter-spacing: -.035em; margin: 2px 2px 10px; }
.sim-topo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; border-radius: var(--r); padding: 13px; position: sticky; top: -6px; z-index: 2; box-shadow: var(--sombra); }
.sim-topo.f-verde { border-color: var(--bg-bom); } .sim-topo.f-amarelo { border-color: var(--bg-atencao); } .sim-topo.f-vermelho { border-color: var(--bg-critico); }
.sim-col small { font-size: .56rem; color: var(--tx3); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sim-v { font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; letter-spacing: -.03em; }
.sim-v.grande { font-size: 1.8rem; letter-spacing: -.05em; }
.sim-m { font-size: .72rem; color: var(--tx2); }
.pior { color: var(--tx-critico); font-weight: 800; } .melhor { color: var(--tx-bom); font-weight: 800; }
.sim-seta { color: var(--tx3); }
.sim-meta { margin: 12px 4px; font-size: .82rem; color: var(--tx2); line-height: 1.5; }
.sim-meta b { color: var(--tx); }
.sim-lin { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; font-weight: 700; }
.sim-comps { display: flex; flex-direction: column; gap: 8px; }
.sim-c { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 18px; padding: 8px 8px 8px 13px; }
.sim-cn { min-width: 0; font-weight: 600; font-size: .84rem; }
.sim-cv { color: var(--tx2); font-size: .74rem; font-weight: 600; }
.sim-c .st-val { min-width: 84px; font-size: .86rem; }
.sim-c .st-b { width: 46px; min-height: 46px; }

/* ---------- FLUXO: contagem ---------- */
#view.v-contar { display: flex; flex-direction: column; --modo: var(--passou); padding-bottom: 12px; }
#view.v-contar > * { flex: 0 0 auto; }
.ct-titulo { font-weight: 800; font-size: .66rem; letter-spacing: .14em; color: var(--tx3); margin: 0 4px 4px; text-transform: uppercase; }
.ct-info { display: flex; justify-content: space-between; color: var(--tx2); font-weight: 600; font-size: .8rem; padding: 0 4px; }
.ct-hora { font-size: .98rem; color: var(--tx); font-weight: 800; letter-spacing: -.02em; }
.ct-placar { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; padding: 2px 4px 10px; }
.ct-num { grid-row: span 2; font-size: 4.6rem; font-weight: 800; line-height: .95; letter-spacing: -.07em; color: var(--tx); min-width: 1.2em; }
.ct-rot { color: var(--tx2); font-size: .78rem; align-self: end; }
.ct-tot { display: flex; gap: 14px; font-size: .84rem; color: var(--tx2); align-self: start; }
.ct-tot b { color: var(--tx); font-size: 1.02rem; }
.ct-comp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; border-radius: 16px; padding: 9px 13px; margin-bottom: 12px; font-size: .8rem; color: var(--tx2);
  background: linear-gradient(180deg, var(--brilho), transparent 50%), var(--s1); border: 1px solid var(--borda); }
.ct-comp-t { width: 100%; font-size: .56rem; font-weight: 800; text-transform: uppercase; color: var(--tx3); letter-spacing: .1em; }
.ct-comp b { color: var(--tx); font-size: 1rem; }
#view.v-contar > .ct-mais {
  position: relative; overflow: hidden; flex: 1 1 auto; min-height: 170px; width: 100%; border: 0; border-radius: 32px; color: #fff;
  background: radial-gradient(110% 80% at 50% 0%, rgba(255, 255, 255, .2), transparent 55%), linear-gradient(160deg, #C24A53, var(--marca) 45%, #8E2A32);
  display: grid; place-items: center; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  box-shadow: 0 26px 50px -22px var(--marca-sombra), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -10px 0 rgba(0, 0, 0, .14);
}
.ct-mais:active { filter: brightness(1.08); }
.ct-mais-t { position: relative; z-index: 1; font-size: 5.8rem; font-weight: 800; letter-spacing: -.06em; pointer-events: none; text-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.onda { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255, 255, 255, .45); pointer-events: none; animation: onda .6s var(--ease) forwards; }
@keyframes onda { to { transform: scale(18); opacity: 0; } }
.ct-rodape { display: flex; gap: 10px; margin-top: 12px; }
.ct-menos { flex: 0 0 34%; min-height: 62px; font-size: 1.35rem; }
.ct-enc { flex: 1 1 auto; min-height: 62px; }

/* ---------- FLUXO: análise ---------- */
.filtros { display: flex; flex-direction: column; gap: 2px; }
.filtro-lin { display: flex; align-items: center; gap: 8px; }
.filtro-rot { flex: 0 0 60px; font-size: .58rem; font-weight: 800; color: var(--tx3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.filtro-lin .seg { flex: 1 1 auto; }
.an-base { color: var(--tx2); font-size: .76rem; margin: 4px 4px 12px; line-height: 1.45; }
.an-leg { display: flex; gap: 14px; font-size: .7rem; color: var(--tx2); margin: 0 4px 8px; }
.lg::before { content: ''; display: inline-block; width: 10px; height: 8px; border-radius: 2px; margin-right: 5px; }
.lg-p::before { background: var(--serie-salao); } .lg-c::before { background: var(--serie-marmita); }
.lg-conv { margin-left: auto; }
.an-graf { display: flex; flex-direction: column; gap: 4px; border-radius: var(--r); padding: 10px; }
.an-lin { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 11px; }
.an-lin.top { background: var(--bg-bom); } .an-lin.baixo { background: var(--bg-critico); }
.an-fx { font-weight: 800; font-size: .82rem; display: flex; align-items: center; gap: 4px; }
.an-tag { font-size: .6rem; }
.an-tag.t { color: var(--tx-bom); } .an-tag.b { color: var(--tx-critico); }
.an-barras { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.an-b { display: flex; align-items: center; gap: 6px; height: 16px; }
.an-bar { display: block; height: 10px; border-radius: 0 4px 4px 0; min-width: 2px; }
.an-p .an-bar { background: var(--serie-salao); } .an-c .an-bar { background: var(--serie-marmita); }
.an-bv { font-size: .7rem; font-weight: 700; color: var(--tx2); white-space: nowrap; }
.an-conv { text-align: right; font-weight: 800; font-size: .84rem; }
.an-conv.nd { color: var(--tx3); font-weight: 600; }
.an-dest { display: flex; flex-direction: column; gap: 6px; margin: 12px 4px; font-size: .82rem; color: var(--tx2); }
.an-dest b { color: var(--tx); }

/* ---------- KPIs ---------- */
/* ---------- Análise de compras ---------- */
.az-abas button { padding: 0 6px; }
.az-resumo .az-sub { display: block; color: var(--tx3); font-size: .7rem; margin-top: 2px; text-align: right; }
.az-lista { display: flex; flex-direction: column; gap: 8px; }
.az-card, .az-prato { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 18px; color: inherit;
  background: linear-gradient(180deg, var(--brilho), transparent 42%), var(--s1); border: 1px solid var(--borda); }
.az-prato:active { transform: scale(.985); }
.az-card.oculto { opacity: .6; }
.az-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: .9rem; line-height: 1.3; }
.az-card-top b { min-width: 0; letter-spacing: -.015em; }
.az-card-top b small { display: block; font-size: .6rem; color: var(--tx3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.az-card-top .st-pill { flex: 0 0 auto; }
.az-card p { margin: 0; font-size: .8rem; color: var(--tx2); line-height: 1.45; }
.az-card p.az-dica, .az-p-txt.az-quad { color: var(--tx3); font-size: .74rem; }
.az-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.az-acoes .btn svg { width: 15px; height: 15px; }
.az-p-txt { font-size: .76rem; color: var(--tx2); line-height: 1.45; }
.az-p-txt b { color: var(--tx); }
.az-alvo { color: var(--tx-atencao); font-weight: 600; }
.az-regras { margin: 0 4px; padding-left: 18px; color: var(--tx2); font-size: .76rem; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; }
.semaf.az-q4 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.semaf.az-q4 .semaf-c { padding: 9px 8px; }
.semaf.az-q4 .semaf-c b { font-size: 1.4rem; }
.az-sems { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(180deg, var(--brilho), transparent 42%), var(--s1); border: 1px solid var(--borda); }
.az-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .68rem; color: var(--tx3); }
.az-leg i { display: inline-block; width: 10px; height: 7px; border-radius: 2px; margin-right: 5px; }
.az-leg .lg-v, .az-b-v { background: var(--serie-salao); }
.az-leg .lg-c, .az-b-c { background: var(--marca); }
.az-sem { display: grid; grid-template-columns: 78px 1fr auto; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.az-sem-d { font-size: .7rem; color: var(--tx2); font-weight: 600; }
.az-sem-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.az-sem-b span { display: block; height: 6px; border-radius: 3px; min-width: 2px; }
.az-sem-n { text-align: right; line-height: 1.15; }
.az-sem-n small { display: block; font-size: .62rem; color: var(--tx3); white-space: nowrap; }
.az-sem-n b { font-size: .9rem; }
.az-link { margin-top: 14px; gap: 8px; }
.az-val { font-size: 1rem; white-space: nowrap; }
.kpi { border-radius: 18px; padding: 12px 13px; min-width: 0; }
.kpi-rot { font-size: .56rem; color: var(--tx3); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.kpi-val { font-size: 1.3rem; font-weight: 800; letter-spacing: -.045em; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub { font-size: .66rem; color: var(--tx2); margin-top: 2px; line-height: 1.35; }
.an-kpis, .kpis3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.rl-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }

/* ---------- RELATÓRIO ---------- */
.rl-datas { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 10px; font-size: .78rem; color: var(--tx2); }
.rl-sec { margin-bottom: 4px; }
.rl-l { display: flex; justify-content: space-between; gap: 10px; padding: 11px 15px; font-size: .82rem; color: var(--tx2);
  background: var(--s1); border-left: 1px solid var(--borda); border-right: 1px solid var(--borda); border-top: 1px solid var(--borda); }
.rl-l:first-of-type { border-radius: 18px 18px 0 0; }
.rl-l:last-child { border-bottom: 1px solid var(--borda); border-radius: 0 0 18px 18px; }
.rl-l b { color: var(--tx); white-space: nowrap; }
.rl-l.forte { color: var(--tx); font-weight: 600; }
.rl-l.total { font-size: .96rem; color: var(--tx); font-weight: 800; background: var(--s2); }
.rl-l.total b { color: inherit; font-size: 1.05rem; letter-spacing: -.02em; }
.rl-l.aviso b { color: var(--tx-atencao); }
.rl-l.nota { font-size: .74rem; color: var(--tx3); }
.rl-tab { border-radius: 18px; overflow: hidden; margin-bottom: 8px; }
.rl-tr { display: grid; grid-template-columns: minmax(0, 2.2fr) .7fr 1.3fr 1.2fr .8fr; gap: 6px; padding: 10px 13px; border-bottom: 1px solid var(--borda); font-size: .76rem; align-items: center; }
.rl-tr.rl-tr3 { grid-template-columns: minmax(0, 2fr) 1fr 1fr; }
.rl-tr:last-child { border-bottom: 0; }
.rl-tr span:not(:first-child) { text-align: right; white-space: nowrap; }
.rl-tr span:first-child { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.rl-tr.th { font-size: .56rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--tx3); background: var(--s2); }
.rl-ctrl { font-size: .72rem; color: var(--tx2); padding: 4px 15px; }
.rl-exp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

/* ---------- AJUSTES ---------- */
.aj-sec { border-radius: var(--r); padding: 4px 15px 13px; margin-bottom: 12px; }
.aj-tit { font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--marca-tx); padding: 12px 0 5px; }
.aj-lin { width: 100%; display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 6px 0; border: 0; border-bottom: 1px solid var(--borda); background: transparent; text-align: left; }
.aj-lin:last-of-type { border-bottom: 0; }
.aj-lin.toque:active { background: var(--s2); }
.aj-lin .seg { margin: 0 0 0 auto; min-width: 180px; }
.aj-rot { flex: 1 1 auto; font-weight: 600; font-size: .88rem; min-width: 0; }
.aj-rot small { display: block; color: var(--tx3); font-weight: 500; font-size: .7rem; }
.aj-val { font-size: .9rem; white-space: nowrap; }
.aj-lin svg { color: var(--tx3); width: 16px; height: 16px; }
.aj-erro { color: var(--tx-critico); font-size: .74rem; word-break: break-word; padding: 6px 0; }
.aj-info { color: var(--tx2); font-size: .8rem; padding: 6px 0; line-height: 1.5; }
.aj-rodape { color: var(--tx3); font-size: .66rem; text-align: center; padding: 16px 0 22px; letter-spacing: .02em; }

/* ---------- MAIS: listas por grupo, com busca ---------- */
.mais-conta {
  display: flex; align-items: center; gap: 13px; border-radius: var(--r-xl); padding: 14px 14px 14px 16px; margin-top: 4px;
  color: var(--no-marca); background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .14), transparent 55%), var(--marca);
  box-shadow: 0 14px 28px -18px var(--marca-sombra); position: relative; overflow: hidden;
}
.mais-conta .avatar { background: var(--creme); color: var(--marca); border: 0; box-shadow: none; }
.mais-conta-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; position: relative; }
.mais-conta-t b { font: 800 1.4rem/1.05 var(--fonte-d); letter-spacing: .02em; text-transform: uppercase; }
.mais-conta-t small { color: rgba(246, 239, 223, .85); font-size: .74rem; margin-top: 2px; }
.mais-conta .btn { position: relative; background: rgba(246, 239, 223, .14); border-color: rgba(246, 239, 223, .35); color: var(--creme); box-shadow: none; }
.mais-conta .btn:active { background: rgba(246, 239, 223, .26); }
.v-mais .cp-busca { margin: 12px 0 0; background: var(--s1); border-color: var(--borda2); }
.mais-g .secao { margin-top: 20px; }
.mlista { border-radius: var(--r); overflow: hidden; background: var(--s1); border: 1px solid var(--borda); box-shadow: 0 1px 2px rgba(60, 20, 20, .04); }
.mrow {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 9px 12px; margin: 0;
  border: 0; border-bottom: 1px solid var(--borda); background: transparent; color: inherit; font: inherit; text-align: left;
  touch-action: manipulation; transition: background .12s;
}
.mrow:last-child { border-bottom: 0; }
.mrow:active { background: var(--s2); }
.mrow-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; background: var(--s2); color: var(--tx2); }
.mrow-ic svg { width: 21px; height: 21px; }
.mrow-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mrow-t { font-weight: 700; font-size: .9rem; letter-spacing: -.01em; line-height: 1.2; }
.mrow-s { font-size: .72rem; color: var(--tx2); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow-s.t-amarelo { font-weight: 700; }
.mrow-fim { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; color: var(--tx3); }
.mrow-fim svg { width: 18px; height: 18px; }
.mrow-val { font-size: .74rem; font-weight: 700; color: var(--tx2); }
.mrow-ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--st-atencao); box-shadow: 0 0 0 3px var(--bg-atencao); }
.mais-nada { padding: 26px 10px 6px; text-align: center; color: var(--tx2); font-size: .84rem; }
.mais-rodape { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0 18px; }
.mais-rodape .logo { width: 150px; opacity: .9; }
.mais-rodape small { color: var(--tx3); font-size: .64rem; text-align: center; letter-spacing: .02em; line-height: 1.5; }
/* quadrados (ainda usados em outras telas) */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 112px; padding: 13px; text-align: left; border-radius: 20px; transition: transform .12s var(--ease), background .15s; }
.tile:active { transform: scale(.97); background: var(--s2); }
.tile-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 7px; background: var(--s3); color: var(--tx2); }
.tile-ic svg { width: 21px; height: 21px; }
.tile-t { font-weight: 700; font-size: .88rem; letter-spacing: -.015em; }
.tile-s { font-size: .7rem; color: var(--tx2); line-height: 1.35; }
.c-verde .tile-ic, .c-verde .mrow-ic { background: var(--bg-bom); color: var(--tx-bom); }
.c-azul .tile-ic, .c-azul .mrow-ic { background: color-mix(in srgb, var(--serie-salao) 14%, transparent); color: var(--tx-azul); }
.c-roxo .tile-ic, .c-roxo .mrow-ic { background: color-mix(in srgb, var(--ouro) 15%, transparent); color: var(--ouro); }
.c-laranja .tile-ic, .c-laranja .mrow-ic { background: var(--marca-bg2); color: var(--marca-tx); }
.c-amarelo .tile-ic, .c-amarelo .mrow-ic { background: var(--bg-atencao); color: var(--tx-atencao); }
.c-vermelho .tile-ic, .c-vermelho .mrow-ic { background: var(--bg-critico); color: var(--tx-critico); }

@media print {
  #topbar, #tabbar, .subnav, .seg, .rl-exp, .rl-datas, #toast-root { display: none !important; }
  #app { height: auto; max-width: none; }
  #view { overflow: visible; padding: 0; }
  body { background: #fff; color: #000; }
}

/* ---------- Relatório: gráficos ---------- */
.rl-cols { margin: 2px 0 12px; }
.rl-cols .cols-w { display: flex; width: 100%; }
.rl-cols .cols { width: 100%; height: auto; }
.rl-cols .cols-x { font-size: .56rem; }
.rl-pico { font-size: .72rem; color: var(--tx2); margin-top: 6px; }
.rl-pico b { color: var(--tx); }
.rl-sec .pilha { margin: 2px 0 12px; }
.rl-tr.rl-tr4 { grid-template-columns: minmax(0, .8fr) 1.3fr .8fr 1fr; }
.rl-tr.pico span:first-child { color: var(--marca-tx); }
.rl-tr .leg-dot { margin-right: 7px; vertical-align: 1px; }

/* ---------- Compras: como pagou (partes, crédito com vencimento) ---------- */
.cp-pag { display: flex; flex-direction: column; gap: 8px; }
.cp-pag .seg { margin-bottom: 0; }
.cp-pag-v { align-items: center; }
.cp-vence { gap: 7px; }
.cp-parte { display: flex; flex-direction: column; gap: 8px; padding: 11px 12px; border-radius: 16px; border: 1px dashed var(--borda2); }
.cp-parte-top { display: flex; align-items: center; gap: 10px; }
.cp-parte-top > b { flex: 1 1 auto; font-size: .8rem; }
.cp-parte-v { font-weight: 800; font-size: .95rem; white-space: nowrap; }
.cp-parte-v small { font-weight: 600; color: var(--tx3); font-size: .68rem; }
.cp-partes { margin-top: 2px; line-height: 1.45; }
.rs-obs { margin-top: 6px; padding: 9px 11px; border-radius: 12px; background: var(--s2); color: var(--tx2); font-size: .74rem; line-height: 1.5; white-space: pre-line; }

/* ---------- Painel: aviso de venda sem custo ---------- */
.pn-aviso { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; padding: 7px 9px; border-radius: 11px; background: var(--bg-atencao); color: var(--tx-atencao); font-size: .66rem; line-height: 1.35; }
.pn-aviso svg { width: 14px; height: 14px; margin-top: 1px; }
.pn-aviso b { color: inherit; }

/* ---------- Despesas: equipe ---------- */
.ds-equipe { display: flex; flex-direction: column; gap: 6px; }
.ds-equipe .seg { margin-bottom: 0; }

/* ---------- Equipe ---------- */
.eq-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 20px; margin-bottom: 10px;
  background: linear-gradient(180deg, var(--brilho), transparent 42%), var(--s1); border: 1px solid var(--borda); }
.eq-card.inativo { opacity: .6; }
.eq-top { display: flex; align-items: center; gap: 11px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--borda); }
.eq-top > svg { color: var(--tx3); }
.eq-nome { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.eq-nome b { font-size: .95rem; letter-spacing: -.02em; }
.eq-nome small { color: var(--tx2); font-size: .7rem; }
.eq-l { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: .8rem; color: var(--tx2); }
.eq-l b { color: var(--tx); white-space: nowrap; }
.eq-l.t-amarelo b { color: var(--tx-atencao); }
.eq-l.t-verde b { color: var(--tx-bom); }
.eq-l.t-vermelho b { color: var(--tx-critico); }
.eq-hist, .eq-obs { color: var(--tx3); font-size: .68rem; line-height: 1.45; padding-top: 2px; }
.eq-acoes { margin-top: 8px; }
.eq-acoes .btn { min-height: 46px; }

/* ---------- Pendências e anotações ---------- */
.nt-lista { display: flex; flex-direction: column; gap: 8px; }
.nt-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(180deg, var(--brilho), transparent 42%), var(--s1); border: 1px solid var(--borda); border-left: 3px solid var(--st-atencao); }
.nt-card.nota { border-left-color: var(--serie-salao); }
.nt-card.resolvida { border-left-color: var(--st-bom); opacity: .7; }
.nt-corpo { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 0; background: none; padding: 0; color: inherit; font: inherit; }
.nt-tag { font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tx3); }
.nt-txt { font-size: .86rem; line-height: 1.45; white-space: pre-line; }
.nt-res { color: var(--tx-bom); font-size: .74rem; }
.nt-acoes { display: flex; gap: 8px; justify-content: flex-end; }
.nt-acoes:empty { display: none; }
.nt-ta { min-height: 110px; resize: vertical; }

/* ---------- Importar lançamentos ---------- */
.im-det { border-radius: var(--r); background: var(--s1); border: 1px solid var(--borda); }
.im-det > summary { cursor: pointer; padding: 12px 14px; font-size: .82rem; font-weight: 700; color: var(--marca-tx); }
.im-det .rs-itens { border: 0; border-top: 1px solid var(--borda); border-radius: 0 0 var(--r) var(--r); }
.im-l .rs-v { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.im-chk, .im-op { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--tx2); margin-top: 4px; }
.im-op { font-size: .8rem; color: var(--tx); padding: 10px 2px; line-height: 1.4; }
.im-chk input, .im-op input { width: 20px; height: 20px; accent-color: var(--marca); flex: 0 0 auto; }
.rl-l.link { text-decoration: none; color: var(--tx2); }
.rl-l.link small { color: var(--tx3); }

/* ---------- Cardápio do dia ---------- */
.cd-hoje .avatar svg, .gs-uso .avatar svg { width: 20px; height: 20px; }
.cd-hoje-l { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 2px; }
.cd-chip { border-radius: 999px; padding: 5px 10px; font-size: .72rem; font-weight: 700; background: var(--marca-bg2); color: var(--marca-tx); }
.cd-dias { margin-bottom: 8px; }
.cd-dias button { line-height: 1.15; padding-top: 4px; padding-bottom: 4px; }
.cd-dias small { display: block; font-size: .6rem; font-weight: 600; color: var(--tx3); }
.cd-dias button.on small { color: inherit; opacity: .75; }
.cd-lin { gap: 8px; }
.cd-lin.no { border-left: 3px solid var(--marca); }
.cd-lin .lc-b { width: 44px; height: 44px; border-radius: 13px; }
.cd-lin .lc-b:disabled { opacity: .35; }
.cd-sobe { transform: rotate(90deg); }
.cd-rodape { margin-top: 14px; }
.cd-txt { min-height: 220px; font-size: .8rem; }

/* ---------- Folha da cozinha (A4 para imprimir) ----------
   Mesmo desenho da folha aprovada pelo dono: faixa Maria Simone, creme, cartões brancos com
   borda vermelha (pratos do dia) e escura (fixos), nome na Bagel Fat One e o "Leva" na Atkinson
   Hyperlegible (letra feita para ler de longe). --k encolhe tudo quando há prato demais. */
.cz-lin .ms-card-n small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.cz-acoes { margin-top: 10px; }
.cz-acoes .btn { gap: 6px; padding: 0 10px; white-space: nowrap; }
.cz-trazer { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; }
.cz-trazer small { font-weight: 600; font-size: .7rem; color: var(--tx2); }
.cz-novo .esc-rot { display: inline-flex; align-items: center; gap: 6px; color: var(--marca-tx); }
.cz-ta { min-height: 120px; padding: 12px 15px; font-family: var(--fonte); line-height: 1.45; resize: vertical; }
.cz-data { margin: 12px 0 0; }
.cz-aviso { margin-bottom: 10px; }
.cz-previa { position: relative; width: 100%; max-width: 560px; margin: 0 auto; overflow: hidden; border-radius: 10px; border: 1px solid var(--borda2); box-shadow: var(--sombra); background: #F6EFDF; }
.cz-previa .cz-folha { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.cz-folha {
  --k: 1; --cz-acento: #B23A43; --cz-tinta: #2B1B18;
  width: 793px; height: 1122px; box-sizing: border-box; padding: 40px; overflow: hidden;
  display: flex; flex-direction: column; gap: calc(14px * var(--k));
  background: #F6EFDF; color: var(--cz-tinta); text-align: left;
  font: 400 20px/1.35 'Atkinson Hyperlegible', 'Trebuchet MS', var(--fonte);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.cz-faixa { display: block; flex: 0 0 auto; width: 100%; height: auto; border-radius: 14px; }
.cz-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: -4px; font-weight: 700; }
.cz-cab-t { font-size: 20px; letter-spacing: .1em; color: var(--cz-acento); }
.cz-cab-d { font-size: 22px; letter-spacing: .05em; }
.cz-prato {
  display: flex; flex-direction: column; gap: calc(6px * var(--k)); padding: calc(12px * var(--k)) 20px;
  background: #fff; border: 2px solid var(--cz-acento); border-radius: 14px;
}
.cz-nome { font: 400 calc(30px * var(--k))/1 'Bagel Fat One', 'Cooper Black', var(--fonte-d); }
.cz-leva { font-size: calc(20px * var(--k)); line-height: 1.35; }
.cz-leva b { font-weight: 700; }
.cz-sec { margin: 2px 0 -4px; font-size: 18px; font-weight: 700; letter-spacing: .1em; }
.cz-fixos { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: calc(14px * var(--k)); }
.cz-fixos .cz-prato { border-color: var(--cz-tinta); padding: calc(12px * var(--k)) 18px; }
.cz-fixos .cz-nome { font-size: calc(27px * var(--k)); }
/* cópia para a impressora: montada fora da tela enquanto a Folha da cozinha está aberta */
#cz-impressao { position: fixed; top: 0; left: -10000px; visibility: hidden; pointer-events: none; }
@media print {
  body.imprime-cozinha > :not(#cz-impressao) { display: none !important; }
  body.imprime-cozinha #cz-impressao { position: static; visibility: visible; width: 210mm; height: 296mm; overflow: hidden; }
}
.cm-outros { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 15px;
  border-radius: 16px; border: 1px dashed var(--borda2); background: transparent; color: var(--tx2); font-weight: 700; font-size: .8rem; text-align: left; }
.cm-outros svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- Gás ---------- */
.gs-barra { height: 8px; border-radius: 4px; background: var(--s3); overflow: hidden; margin: 6px 0 2px; }
.gs-barra i { display: block; height: 100%; border-radius: 4px; background: var(--st-bom); transition: width .4s var(--ease); }
.gs-barra.perto i { background: var(--st-atencao); }
.gs-barra.passou i { background: var(--st-critico); }
.gs-solta { align-items: flex-start; }
.gs-solta svg { flex: 0 0 auto; margin-top: 2px; }
.gs-novo { display: flex; flex-direction: column; gap: 10px; }
.pn-gas { margin: 0 0 10px; font-size: .74rem; }

/* ---------- Busca na comanda (e criar item na hora) ---------- */
.cm-busca { margin: 0 0 10px; }
.cm-criar { border-style: solid; border-color: var(--marca); color: var(--marca-tx); background: var(--marca-bg); }
.cm-nada { grid-column: 1 / -1; color: var(--tx2); font-size: .8rem; padding: 6px 4px; }

/* ---------- DIA E PERÍODO (dono) ---------- */
.dp-cal { border-radius: var(--r); padding: 10px; margin-bottom: 12px; background: linear-gradient(180deg, var(--brilho), transparent 42%), var(--s1); border: 1px solid var(--borda); }
.dp-compras { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.dp-compra { display: block; border-radius: 18px; padding: 12px 14px; background: linear-gradient(180deg, var(--brilho), transparent 42%), var(--s1); border: 1px solid var(--borda); }
.dp-compra-t { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.dp-compra > small { display: block; color: var(--tx2); font-size: .72rem; margin-top: 2px; }
.dp-itens { margin-top: 8px; border-top: 1px solid var(--borda); }
.dp-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--borda); font-size: .74rem; align-items: baseline; }
.dp-item:last-child { border-bottom: 0; }
.dp-item span:nth-child(2) { color: var(--tx2); white-space: nowrap; }
.dp-item b { white-space: nowrap; }
.dp-det { margin: 4px 0 8px; }
.dp-det summary { cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--marca-tx); padding: 8px 4px; }
.dp-per { border-radius: var(--r); padding: 10px 12px 2px; margin-bottom: 10px; background: var(--s1); border: 1px solid var(--borda); }
.dp-per2 { border-color: var(--borda2); }
.dp-per-t { font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--marca-tx); margin-bottom: 8px; }
.dp-chips { margin-bottom: 10px; }
.dp-chips .chip { min-height: 36px; padding: 6px 12px; font-size: .74rem; }
.chip.on { border-color: var(--marca-tx); color: var(--marca-tx); background: var(--marca-bg); }
.dp-cmp-chk { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; margin: 4px 4px 12px; min-height: 40px; }
.dp-cmp-chk input { width: 20px; height: 20px; accent-color: var(--marca); }
.dp-cmp { border-radius: 18px; overflow: hidden; margin-bottom: 8px; background: linear-gradient(180deg, var(--brilho), transparent 42%), var(--s1); border: 1px solid var(--borda); }
.dp-cmp-l { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr 1.2fr; gap: 6px; padding: 9px 13px; border-bottom: 1px solid var(--borda); font-size: .76rem; align-items: center; }
.dp-cmp-l:last-child { border-bottom: 0; }
.dp-cmp-l span:not(.dp-cmp-n) { text-align: right; white-space: nowrap; }
.dp-cmp-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.dp-cmp-l.th { font-size: .56rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--tx3); background: var(--s2); }
.dp-cmp-l.th span { white-space: normal !important; }
@media (max-width: 520px) {
  /* celular: o nome em cima, os dois valores e a diferença embaixo */
  .dp-cmp-l { grid-template-columns: 1fr 1fr 1.25fr; row-gap: 3px; }
  .dp-cmp-n { grid-column: 1 / -1; }
  .dp-cmp-l.th .dp-cmp-n { display: none; }
  .dp-cmp-l span:not(.dp-cmp-n) { font-size: .72rem; }
}

/* ---------- RENDIMENTO POR LOTE (dono) ---------- */
.rd-lista { display: flex; flex-direction: column; gap: 10px; }
.rd-card { border-radius: var(--r); padding: 12px 13px; background: linear-gradient(180deg, var(--brilho), transparent 42%), var(--s1); border: 1px solid var(--borda); }
.rd-card.aberto { border-color: var(--borda2); }
.rd-topo { display: flex; align-items: center; gap: 10px; color: inherit; }
.rd-topo > svg { width: 16px; height: 16px; color: var(--tx3); flex: 0 0 auto; }
.rd-tit { flex: 1 1 auto; min-width: 0; }
.rd-tit b { display: block; font-size: .96rem; letter-spacing: -.01em; }
.rd-tit small { display: block; color: var(--tx2); font-size: .7rem; margin-top: 2px; line-height: 1.4; }
.rd-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
@media (min-width: 560px) { .rd-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rd-st { background: var(--s2); border-radius: 13px; padding: 8px 10px; min-width: 0; }
.rd-st small { display: block; font-size: .56rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--tx3); }
.rd-st b { display: block; font-size: .95rem; letter-spacing: -.02em; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-st em { display: block; font-style: normal; font-size: .64rem; color: var(--tx2); margin-top: 1px; }
.rd-st .st-pill { margin-top: 4px; }
.rd-st.bom b { color: var(--tx-bom); } .rd-st.atencao b { color: var(--tx-atencao); } .rd-st.critico b { color: var(--tx-critico); }
.rd-ban { margin: 10px 0 0; }
.rd-nota { font-size: .72rem; color: var(--tx2); line-height: 1.45; margin: 8px 2px 0; }
.rd-acoes { margin-top: 10px; }
.rd-novo { margin-top: 10px; }
.rd-sub { color: var(--tx2); font-size: .8rem; }
.rd-pend { display: flex; flex-direction: column; gap: 8px; }
.rd-pend-l { border-radius: 18px; padding: 11px 13px; background: var(--bg-atencao); display: flex; flex-direction: column; gap: 8px; }
.rd-pend-l .row { justify-content: flex-end; }
.rd-dias { display: flex; flex-direction: column; gap: 8px; }
.rd-dia { border-radius: 16px; padding: 9px 12px; background: var(--s1); border: 1px solid var(--borda); }
.rd-dia-t { font-size: .74rem; font-weight: 800; text-transform: capitalize; color: var(--tx2); margin-bottom: 4px; }
.rd-dia-l { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: .8rem; padding: 4px 0; }
.rd-dia-l .tag { margin-left: 6px; }
.rd-fim p { margin: 0 0 10px; }
.rd-fim .btn { margin-top: 12px; }
.rd-cmp a.dp-cmp-l { color: inherit; }

/* unidade da compra (kg · litro · unidade) na folha de quantidade e preço */
.qp-un { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.qp-un > small { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); white-space: nowrap; }
.qp-un .seg { flex: 1 1 auto; margin: 0; padding: 3px; }
.qp-un .seg.seg-p button { min-height: 34px; font-size: .74rem; }

/* ---------- Números grandes e títulos na fonte condensada da marca ---------- */
.pn-num, .res-num, .rs-total, .pg-total, .barra-tot b, .ct-num, .ct-mais-t, .fx-tot b, .semaf-c b, .fd-grande, .np-display, .pr-disp,
.qp-campo b, .ms-n, .cm-selo, .kpi-val, .sim-v.grande, .ms-tot, .mais-conta-t b, .form-tit, .pr-nome, .fd-nome, .rs-tit, .sim-nome {
  font-family: var(--fonte-d); letter-spacing: 0;
}
.pn-num, .res-num, .rs-total, .fd-grande { font-weight: 700; }
.pn-num { font-size: 2.55rem; }
.res-num, .rs-total { font-size: 2.35rem; }
.pg-total { font-size: 3.7rem; font-weight: 700; }
.barra-tot b { font-size: 1.9rem; font-weight: 700; }
.fx-tot b { font-size: 1.85rem; font-weight: 700; }
.ms-n { font-size: 1.7rem; letter-spacing: 0; }
.ms-tot { font-size: 1.12rem; font-weight: 700; }
.cm-selo { font-size: 1.55rem; }
.np-display, .pr-disp { font-size: 2.5rem; font-weight: 700; }
.qp-campo b { font-size: 1.7rem; font-weight: 700; }
.kpi-val { font-size: 1.45rem; font-weight: 700; }
.semaf-c b { font-size: 1.9rem; font-weight: 700; }
.form-tit, .pr-nome, .fd-nome, .rs-tit, .sim-nome { text-transform: uppercase; font-weight: 800; letter-spacing: .01em; }
.form-tit { font-size: 1.6rem; }
.form-tit small { font-family: var(--fonte); }
.pr-nome, .fd-nome { font-size: 1.5rem; }
.rs-tit, .sim-nome { font-size: 1.38rem; }
.ct-num { font-size: 5rem; font-weight: 700; }
.ct-mais-t { font-size: 6.4rem; font-weight: 700; }
@media (max-height: 900px) { .pn-num { font-size: 2.2rem; } }
@media (max-height: 690px) { .pn-num { font-size: 1.8rem; } }

/* ---------- Fechar caixa (Mesas → Fechar caixa) ---------- */
.fc-card { margin-bottom: 12px; }
.fc-ic { background: var(--marca-bg2); color: var(--marca-tx); border: 0; }
.fc-ic svg { width: 20px; height: 20px; }
.fc-troco { width: 100%; border: 0; background: none; padding: 5px 0; text-align: left; cursor: pointer; }
.fc-troco svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--tx3); }
.fc-esp { border-top: 1px solid var(--borda); margin-top: 3px; padding-top: 8px; color: var(--tx); font-weight: 700; }
.fc-inf { justify-content: space-between; }
.fc-inf span { font-size: .84rem; font-weight: 700; color: var(--tx2); }
.fc-inf.fc-sem b { color: var(--marca-tx); }
.fc-res { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; font-size: .9rem; }
.fc-res svg { width: 18px; height: 18px; }
.fc-res b { color: inherit; }
.fc-res.ok { background: var(--bg-bom); color: var(--tx-bom); }
.fc-res.sobra { background: var(--bg-atencao); color: var(--tx-atencao); }
.fc-res.falta { background: var(--bg-critico); color: var(--tx-critico); }
.fc-det summary { cursor: pointer; font-size: .74rem; color: var(--tx2); padding: 4px 0; }
.fc-sai { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0 4px 10px; font-size: .74rem; color: var(--tx2); }
.fc-sai b { color: var(--tx); white-space: nowrap; }
.fc-sai small { color: var(--tx3); }
.fc-nota { display: block; color: var(--tx3); font-size: .7rem; line-height: 1.4; padding: 4px 0; }
.fc-obs { min-height: 64px; margin-top: 12px; padding: 10px 15px; font-family: var(--fonte); line-height: 1.45; resize: vertical; }

/* ---------- Lixeira (Mais → Lixeira) ---------- */
.lx-card { gap: 10px; align-items: flex-start; }
.lx-card .ms-card-n small { white-space: normal; }
.lx-card .lx-quando { color: var(--tx3); }
.lx-dir { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lx-card .btn.mini { flex: 0 0 auto; gap: 5px; }
.lx-card .btn.mini svg { width: 15px; height: 15px; }
