/* Visual Pacco (v4.39): identidade azul da Pacco Sistemas, tema escuro, painel e celular.
   Vem depois do comando.css. A cor/menu/fundo definidos pelo restaurante (marca) continuam valendo: são aplicados em linha. */
:root {
  --bg: #f5f7fb; --surface: #fff; --surface-2: #f1f4fa; --ink: #0f172a; --muted: #5b6784; --line: #e1e7f1;
  --accent: #1d4ed8; --accent-2: #e8efff; --accent-ink: #1e3a8a;
  --ok: #15803d; --ok-2: #e7f7ec; --warn: #b45309; --warn-2: #fff4e0; --danger: #c62828; --danger-2: #fdecec; --info: #1d5fa8; --info-2: #e6f0fa;
  --side: #0f1f45; --side-ink: #aebbd9; --ring: 0 0 0 3px rgba(29,78,216,.22);
  --shadow-m: 0 10px 34px rgba(15,31,69,.18); --cianoo: #22d3ee;
  --card: var(--surface); --pri: var(--accent); --bg2: var(--surface-2); --border: var(--line); --accent-soft: var(--accent-2);
}
::selection { background: rgba(29,78,216,.2); }
.rail-a:hover { background: rgba(255,255,255,.08); }
.rail-a.on { background: rgba(255,255,255,.12); }
.login { background: radial-gradient(1100px 560px at 8% 0%, #dbe6ff 0, transparent 60%), radial-gradient(800px 500px at 100% 100%, #d6f6fd 0, transparent 60%), var(--bg); }
.login form { border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(15,31,69,.12); }

/* ---- painel: cartões com mais presença ---- */
.kpi { position: relative; overflow: hidden; transition: transform .15s, border-color .15s; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--cianoo)); opacity: .9; }
.kpi:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.kpi .val { font-size: 26px; }
.kpi .rot { font-size: 11.5px; letter-spacing: .06em; }
.card { transition: border-color .15s; }
.card > h3 { display: flex; align-items: center; gap: 8px; }
.card > h3::before { content: ""; width: 4px; height: 12px; border-radius: 2px; background: var(--accent); }
.card .muted.center, .vazio, td.vazio { color: var(--muted); }
.view > .cab h1 { font-size: 22px; }
.tabs, .subabas { scrollbar-width: thin; }
.btn.pri { box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent); }
.t tr.click:hover td { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }

/* ---- botão de tema ---- */
#tema-btn { font-size: 16px; padding: 4px 8px; min-width: 34px; }

/* ---- tema escuro ---- */
:root[data-tema="dark"] {
  color-scheme: dark;
  --bg: #0a111f; --surface: #111a2d; --surface-2: #162238; --ink: #e7ecf6; --muted: #93a2c2; --line: #24324f;
  --accent: #4d86ff; --accent-2: #172a55; --accent-ink: #9db9ff;
  --ok: #3fbf84; --ok-2: #0f2a20; --warn: #e3a550; --warn-2: #2d2210; --danger: #f1757e; --danger-2: #2f171b; --info: #6eaaff; --info-2: #12263f;
  --side: #060b17; --side-ink: #93a2c2; --shadow-m: 0 10px 34px rgba(0,0,0,.55); --ring: 0 0 0 3px rgba(77,134,255,.35);
}
:root[data-tema="dark"] body { background: var(--bg); color: var(--ink); }
:root[data-tema="dark"] input, :root[data-tema="dark"] select, :root[data-tema="dark"] textarea { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
:root[data-tema="dark"] input::placeholder, :root[data-tema="dark"] textarea::placeholder { color: #61708f; }
:root[data-tema="dark"] .btn { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
:root[data-tema="dark"] .btn:hover { background: #1c2b47; border-color: #34466b; }
:root[data-tema="dark"] .btn.pri { background: var(--accent); border-color: var(--accent); color: #06122e; }
:root[data-tema="dark"] .btn.ok { background: #2f9f6c; border-color: #2f9f6c; color: #04140d; }
:root[data-tema="dark"] .btn.ghost { background: transparent; border-color: transparent; }
:root[data-tema="dark"] .btn.danger { color: var(--danger); }
:root[data-tema="dark"] .btn.danger.solid { background: #c93a45; border-color: #c93a45; color: #fff; }
:root[data-tema="dark"] .login { background: radial-gradient(1100px 560px at 8% 0%, #12306b 0, transparent 60%), radial-gradient(800px 500px at 100% 100%, #0b3a4a 0, transparent 60%), var(--bg); }
:root[data-tema="dark"] .modal-bg { background: rgba(2,6,14,.7); }
:root[data-tema="dark"] .top, :root[data-tema="dark"] .janelas { background: var(--surface); border-color: var(--line); }
:root[data-tema="dark"] .tag { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
:root[data-tema="dark"] .kpi.kpi-warn { background: var(--warn-2); border-color: #6b4d1c; }
:root[data-tema="dark"] .kpi.kpi-ok { background: var(--ok-2); border-color: #1d5c42; }
:root[data-tema="dark"] .wa-msg, :root[data-tema="dark"] .cli-top .chips button.on { background: var(--surface-2); color: var(--ink); }
:root[data-tema="dark"] .sug-venda { background: var(--warn-2); border-color: #6b4d1c; color: var(--ink); }
:root[data-tema="dark"] .qr-card { border-color: #34466b; }
:root[data-tema="dark"] .rail-a:hover { background: rgba(255,255,255,.07); }
:root[data-tema="dark"] .tabs a.on, :root[data-tema="dark"] .tabs button.on { color: var(--accent); border-color: var(--accent); }
:root[data-tema="dark"] ::selection { background: rgba(77,134,255,.35); }
:root[data-tema="dark"] .ji-folha, :root[data-tema="dark"] .folha-impressao { background: #fff; color: #000; }
:root[data-tema="dark"] img.logo-cli { background: #fff; border-radius: 8px; padding: 2px; }
:root[data-tema="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; } :root[data-tema="dark"] ::-webkit-scrollbar-thumb { background: #2a3b5e; border-radius: 6px; }

/* ---- celular e tablet ---- */
@media (max-width: 860px) {
  input, select, textarea { font-size: 16px; }              /* evita o zoom automático do iPhone */
  .btn { min-height: 40px; } .btn.sm { min-height: 36px; }
  .row > .btn { flex: 1 1 auto; }
  .card { padding: 14px; }
  .view { padding: 12px; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .cab h1 { font-size: 19px; } .cab { gap: 8px; }
  .kpi .val { font-size: 21px; }
  .top .paleta-btn { display: none; }
  .top { gap: 8px; }
  .top .user { display: none; }
  .tabs, .subabas { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .tabs > *, .subabas > * { flex: 0 0 auto; white-space: nowrap; }
  .card.p0, .tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .modal-bg { padding: 0; align-items: end; }
  .modal, .modal.lg { max-width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; }
  .modal .corpo { padding: 16px; }
  .modal footer { position: sticky; bottom: 0; background: var(--surface); padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .modal footer .btn { flex: 1 1 auto; }
  .toasts { left: 12px; right: 12px; }
}
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr 1fr; } .kpi { padding: 12px; } .kpi .val { font-size: 19px; } .t th, .t td { padding: 8px 9px; } }
@media (hover: none) { .kpi:hover { transform: none; } .t tr.click:hover td { background: inherit; } }

/* ---- ajustes finos (gráficos, atalhos, colunas) ---- */
.chart .bar:hover { fill: var(--accent-ink); }
.lg-b { background: #cbd5e6 !important; } .chart .bar.b, .chart .bar-b, .chart .bar.ant { fill: #cbd5e6; }
:root[data-tema="dark"] .lg-b { background: #3a4a6d !important; }
:root[data-tema="dark"] .chart .bar.b, :root[data-tema="dark"] .chart .bar-b, :root[data-tema="dark"] .chart .bar.ant { fill: #3a4a6d; }
:root[data-tema="dark"] .chart text { fill: var(--muted); }
:root[data-tema="dark"] .paleta-btn kbd, :root[data-tema="dark"] .paleta-rod kbd { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
:root[data-tema="dark"] .col { background: var(--surface-2); }
:root[data-tema="dark"] .wa-msgs { background: #0d1626; } :root[data-tema="dark"] .wa-msg.out { background: #12402e; color: var(--ink); } :root[data-tema="dark"] .wa-conv.on { background: var(--accent-2); }
:root[data-tema="dark"] .paleta-btn { background: var(--surface-2); border-color: var(--line); }
.horas .bs i.b { background: #cbd5e6; } :root[data-tema="dark"] .horas .bs i.b { background: #3a4a6d; }

.chip-btn.on, .chip-btn.sel { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
:root[data-tema="dark"] .chip-btn.on, :root[data-tema="dark"] .chip-btn.sel { color: #06122e; }

/* seleção: azul da marca nos dois temas (antes usava a cor do texto, que no escuro fica clara) */
.chips button.on, .subabas button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
:root[data-tema="dark"] .chips button.on, :root[data-tema="dark"] .subabas button.on { color: #06122e; }
:root[data-tema="dark"] .toast, :root[data-tema="dark"] .barra-sel { background: #223455; color: #fff; }
:root[data-tema="dark"] .kds-card .hd { background: #223455; }

/* linha de tabela ao passar o mouse e janela de busca (Ctrl K): usam as cores do tema */
table.t tbody tr:hover { background: transparent; }
@media (hover: hover) { table.t tbody tr:hover td { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); } }
.paleta { background: var(--surface); }
.paleta-btn { border-color: var(--line); } .paleta-btn:hover { background: var(--surface); border-color: var(--accent); }
.paleta-btn kbd, .paleta-rod kbd { background: var(--surface-2); border-color: var(--line); }
:root[data-tema="dark"] .paleta-bg { background: rgba(2,6,14,.7); }

/* ===== v4.55.1: PDV em tela larga igual ao desenho aprovado — trilho escuro de categorias, cartões com foto, comanda fixa à direita ===== */
.cat-tit, .esg-aviso, .prod .pq-p, .prod .pq-q, .prod .pfoto.ph, .prod .pq.pq-0 { display: none; }
.prods:not(.lista) .prod b small { display: none; }
@media (min-width: 1180px) {
  .pdv.com-pedido .pdv-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100%; }
  .pdv.com-pedido .catalogo { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto; column-gap: 18px; row-gap: 12px; max-width: none; margin: 0; padding: 16px 20px; height: 100%; overflow: hidden; }
  .catalogo > .row { grid-column: 2; grid-row: 1; flex-wrap: nowrap; }
  .catalogo > .lanca-barra { grid-column: 2; grid-row: 2; }
  .catalogo > .cat-tit { grid-column: 2; grid-row: 3; display: flex; align-items: baseline; gap: 10px; }
  .cat-tit b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
  .cat-tit span { color: var(--muted); font-size: 13px; }
  .catalogo > .prods { grid-column: 2; grid-row: 4; }
  .catalogo > .esg-aviso { grid-column: 2; grid-row: 5; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #FFF4DB; color: #7A5200; font-weight: 600; font-size: 13px; }
  .catalogo > .esg-aviso[hidden] { display: none; }
  .catalogo .voltar { background: var(--ink, #14171C); color: #fff; border-color: transparent; font-weight: 700; height: 46px; border-radius: 12px; padding: 0 16px; }
  /* trilho de categorias */
  .catalogo > #cats { grid-column: 1; grid-row: 1 / -1; flex-direction: column; gap: 8px; margin: 0; padding: 10px 8px; background: #14171C; border-radius: 18px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; align-self: stretch; }
  #cats button.cc { flex-direction: column; justify-content: center; gap: 7px; width: 100%; min-height: 72px; padding: 8px 4px; border: 0; border-radius: 14px; background: transparent; color: #AEB6C4; font-size: 11.5px; font-weight: 700; text-align: center; white-space: normal; line-height: 1.15; flex: 0 0 auto; }
  #cats button.cc i { width: 18px; height: 18px; border-radius: 6px; }
  #cats button.cc.on { background: #2A2F38; color: #fff; border: 0; }
  #cats button.cc.on i { background: var(--cc); }
  /* cartões */
  .prods:not(.lista) { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
  .prods:not(.lista) .prod { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; column-gap: 12px; row-gap: 6px; padding: 10px; min-height: 104px; border-radius: 18px; border-left-width: 1px; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
  .prods:not(.lista) .prod::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--cc, transparent); }
  .prods:not(.lista) .prod.com-foto, .prods:not(.lista) .prod.com-ph { grid-template-columns: 76px minmax(0, 1fr); }
  .prods:not(.lista) .prod .pfoto, .prods:not(.lista) .prod .pfoto.ph { grid-row: 1 / span 2; width: 76px; height: 76px; border-radius: 14px; align-self: center; }
  .prods:not(.lista) .prod .pfoto.ph { display: flex; align-items: center; justify-content: center; background: var(--cc, #868E96); color: #fff; font-size: 30px; font-weight: 800; opacity: .92; }
  .prods:not(.lista) .prod b { font-size: 15px; line-height: 1.15; align-self: start; }
  .prods:not(.lista) .prod b small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.25; }
  .prods:not(.lista) .prod > span:not(.pq):not(.pfoto) { align-self: end; font-size: 15px; font-weight: 800; color: var(--ink, #14171C); }
  .prods:not(.lista) .prod[data-n]:not([data-n=""])::after { display: none; }
  .prods:not(.lista) .prod .pq { position: absolute; right: 10px; bottom: 10px; left: auto; margin: 0; display: inline-flex; align-items: center; gap: 0; padding: 3px; border-radius: 12px; background: #14171C; }
  .prods:not(.lista) .prod .pq > span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0; margin: 0; border: 0; border-radius: 9px; background: transparent; color: #fff; font-size: 20px; font-weight: 700; line-height: 1; }
  .prods:not(.lista) .prod .pq .pq-q { min-width: 24px; font-size: 15px; font-weight: 800; }
  .prods:not(.lista) .prod .pq .pq-o { display: none; }
  .prods:not(.lista) .prod .pq .pq-p, .prods:not(.lista) .prod .pq .pq-q { display: inline-flex; }
  .prods:not(.lista) .prod[data-n]:not([data-n=""]) .pq { background: var(--cc, var(--accent)); }
  .prods:not(.lista) .prod[data-n]:not([data-n=""])::after { display: none; }
  /* comanda fixa à direita */
  .pdv.com-pedido .comanda { position: static; transform: none; width: auto; max-height: none; height: 100%; overflow: hidden; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .pdv.com-pedido .comanda .alca { display: none; }
  .pdv.comanda-aberta .pdv-main::before { display: none; }
  .pdv.com-pedido .comanda .hd h2 { font-size: 20px; font-weight: 800; }
  .pdv.com-pedido .comanda .itens { flex: 1 1 auto; overflow-y: auto; min-height: 0; padding: 10px 18px; }
  .pdv.com-pedido .comanda .totais, .pdv.com-pedido .comanda .bts { flex: 0 0 auto; }
  .pdv.com-pedido .comanda .bts { max-height: 40vh; overflow-y: auto; }
  .sec-t, .comanda .novos h3 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
  .comanda .novos h3 { color: var(--accent); }
  .comanda .novos { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-radius: 14px; padding: 6px 12px 12px; margin-top: 10px; }
}
@media (min-width: 1180px) {
  .pdv.com-pedido .comanda .bts { gap: 6px; padding: 10px 16px; max-height: none; overflow: visible; }
  .pdv.com-pedido .comanda .bts .btn { min-height: 36px; font-size: 13px; }
  .pdv.com-pedido .comanda .bts #b-receber { min-height: 48px; font-size: 16px; }
  .pdv.com-pedido .comanda .hd { padding: 12px 16px; }
  .prods:not(.lista) .prod > span:not(.pq):not(.pfoto) { max-width: calc(100% - 96px); white-space: nowrap; }
}

/* v4.55.2: barra Qtd / Para / Tempo recolhida atrás do botão Opções */
.lanca-barra.recolhida .grp:not(.visao) { display: none; }
.lanca-barra.recolhida { justify-content: flex-end; }
.lanca-barra .opc { min-width: 0; padding: 0 12px; font-weight: 700; }
.lanca-barra .opc .opc-r { font-style: normal; background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 8px; margin-left: 6px; font-size: 11px; }
.lanca-barra .opc.on .opc-r { background: #fff; color: var(--ink, #14171C); }
.lanca-barra.recolhida { background: transparent; border: 0; padding: 0; box-shadow: none; }

/* v4.55.3: comanda mais simples — Receber em destaque e as demais ações dentro de "Mais ações" */
.comanda .bts { display: flex; flex-direction: column; gap: 8px; }
.comanda .bts .btn.span3 { width: 100%; }
.mais-acoes { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mais-acoes > summary { cursor: pointer; list-style: none; padding: 11px 14px; font-weight: 700; font-size: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mais-acoes > summary::-webkit-details-marker { display: none; }
.mais-acoes > summary::after { content: "▾"; color: var(--muted); font-size: 13px; margin-left: auto; transition: transform .15s; }
.mais-acoes[open] > summary::after { transform: rotate(180deg); }
.mais-acoes > summary small { color: var(--muted); font-weight: 400; font-size: 12px; }
.mais-acoes .mais-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 10px 10px; }
.totais .pend { color: var(--accent); font-weight: 700; font-size: 13px; }
.totais .pend[hidden] { display: none; }
@media (max-width: 420px) { .mais-acoes > summary small { display: none; } }

/* v4.55.4: lista da comanda mais visível e botão Enviar fixo (fora da área que rola) */
.envio-fixo { display: flex; gap: 8px; align-items: stretch; padding: 10px 16px; background: var(--surface); border-top: 2px solid var(--accent); box-shadow: 0 -6px 16px rgba(0,0,0,.08); flex: 0 0 auto; position: sticky; bottom: 0; z-index: 3; }
.envio-fixo[hidden] { display: none; }
.envio-fixo #enviar { flex: 1; min-height: 52px; font-size: 16px; font-weight: 800; border-radius: 14px; }
.envio-fixo #descartar { min-height: 52px; border-radius: 14px; }
.comanda .itens .it { padding: 12px 0; font-size: 15px; }
.comanda .itens .it .n { font-size: 15px; font-weight: 600; }
.comanda .itens .it .q { font-size: 15px; font-weight: 800; min-width: 34px; }
.comanda .itens .it .v { font-size: 15px; font-weight: 700; }
.comanda .novos { border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.sec-t, .comanda .novos h3 { font-size: 13px; }
@media (min-width: 1180px) {
  .pdv.com-pedido .comanda .itens { flex: 1 1 0; min-height: 200px; padding: 8px 18px 14px; }
  .pdv.com-pedido .comanda .totais { padding-top: 8px; padding-bottom: 8px; }
  .pdv.com-pedido .comanda #sugv { max-height: 96px; overflow: hidden; }
}

/* v4.55.5: janela de opções em botões grandes + etiquetas coloridas (SEM vermelho, + verde) */
.op-grade { display: flex; flex-wrap: wrap; gap: 8px; }
.op-item { width: auto; flex: 1 1 140px; min-height: 54px; justify-content: center; text-align: center; flex-direction: column; gap: 2px; padding: 8px 12px; border: 2px solid var(--line); background: var(--surface-2); border-radius: 14px; font-weight: 600; }
.op-item .op-nome { flex: 0 0 auto; }
.op-item .op-preco { font-size: 12px; font-weight: 700; }
.op-item.on { border-color: var(--ink); background: var(--accent-2); }
.op-item.on .op-nome { font-weight: 800; }
.op-item.mais.on { border-color: #16A34A; background: #E6F6EC; color: #0E7C3A; }
.op-item.mais.on .op-nome::before { content: "+ "; }
.op-item.sem.on { border-color: #DC2626; background: #FDECEC; color: #DC2626; }
.op-item.sem.on .op-nome { text-decoration: line-through; text-transform: uppercase; font-size: 13px; }
.op-item.sem:not(.semp).on .op-nome::before { content: "SEM "; text-decoration: none; display: inline-block; }
.op-grupo { border-radius: 14px; }
.op-cab { margin-bottom: 8px; }
.btn.pri.op-falta { opacity: .55; }
.ops .tg-sem, .ops .tg-mais, .ops .tg-esc { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 1px 7px; margin: 3px 4px 0 0; }
.ops .tg-sem { background: #FDECEC; color: #DC2626; text-transform: uppercase; }
.ops .tg-mais { background: #E6F6EC; color: #0E7C3A; }
.ops .tg-esc { background: var(--surface-2); color: var(--ink, #14171C); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .op-item.mais.on { background: #12301E; color: #4ADE80; } :root:not([data-theme="light"]) .op-item.sem.on, :root:not([data-theme="light"]) .ops .tg-sem { background: #3A1C1F; color: #FF6B6B; } :root:not([data-theme="light"]) .ops .tg-mais { background: #12301E; color: #4ADE80; } }
:root[data-theme="dark"] .op-item.mais.on, :root[data-theme="dark"] .ops .tg-mais { background: #12301E; color: #4ADE80; }
:root[data-theme="dark"] .op-item.sem.on, :root[data-theme="dark"] .ops .tg-sem { background: #3A1C1F; color: #FF6B6B; }

/* v4.55.7: botão Imprimir conta sempre à vista na mesa */
.comanda .bts .imp-conta { min-height: 48px; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ink); background: var(--surface); }
.comanda .bts .imp-conta small { font-weight: 600; color: var(--muted); font-size: 12px; }

/* v4.56.0: delivery com aviso de pedido novo e tempo de espera */
.ban-novos { margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; background: #FFF4DB; color: #7A5200; font-weight: 600; border: 2px solid #F59E0B; animation: pisca-ban 1.6s ease-in-out infinite; }
@keyframes pisca-ban { 50% { background: #FFE2A1; } }
.dcard.dc-novo { border-left: 5px solid #F59E0B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ban-novos { background: #3A2B0A; color: #FFD27A; } }
:root[data-theme="dark"] .ban-novos { background: #3A2B0A; color: #FFD27A; }
@media (prefers-reduced-motion: reduce) { .ban-novos { animation: none; } }

/* v4.56.1: cores do site organizadas */
.cl-tit { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin: 16px 0 8px; }
.cl-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.cl-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); min-width: 0; }
.cl-card i { display: block; height: 44px; border-radius: 8px; border: 1px solid rgba(0,0,0,.15); }
.cl-card b { font: 700 12px ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.cl-bts { display: flex; flex-direction: column; gap: 6px; }
.cl-bts .btn { flex: 1; padding: 6px 4px; justify-content: center; }
.cores-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cor-campo { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); min-width: 0; }
.cor-campo > label:first-child { font-weight: 700; }
.cor-campo input[type=color] { width: 100%; height: 48px; padding: 3px; border-radius: 10px; cursor: pointer; }
.cor-auto { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }

/* v4.57.0: Pix online (tela do cliente e avisos no delivery) */
.pixc-bg { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 14px; overflow-y: auto; }
.pixc { background: var(--surface, #fff); color: var(--ink, #14171C); border-radius: 20px; width: min(380px, 100%); padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; max-height: 100%; overflow-y: auto; }
.pixc h2 { margin: 0; font-size: 20px; }
.pixc-v { font-size: 30px; font-weight: 800; }
.pixc-qr { display: flex; justify-content: center; background: #fff; border-radius: 14px; padding: 10px; margin: 0 auto; border: 1px solid rgba(0,0,0,.12); }
.pixc-qr svg, .pixc-qr img { width: 220px; height: 220px; max-width: 100%; }
.pixc-d { margin: 0; font-size: 13px; color: var(--muted, #667085); }
.pixc-st { font-weight: 700; padding: 10px; border-radius: 12px; background: #FFF4DB; color: #7A5200; }
.pixc-b { min-height: 50px; border-radius: 14px; border: 2px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 800; cursor: pointer; }
.pixc-b.pri { background: #16A34A; border-color: #16A34A; color: #fff; }
.pixc-b.ghost { border-color: transparent; color: var(--muted, #667085); font-weight: 600; min-height: 40px; }
.ban-pix { margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; background: #FDECEC; color: #9B1C1C; border: 2px solid #DC2626; }

/* v4.59.0 — oficina: checklist, fotos e notas */
.ck-lista{display:grid;gap:8px}.ck-it{display:grid;grid-template-columns:minmax(120px,1.1fr) auto minmax(100px,1fr);gap:8px;align-items:center}
.ck-op{display:flex;gap:4px}.ck-op button{border:1px solid var(--li,#ddd);background:var(--sf,#fff);color:inherit;border-radius:8px;padding:6px 9px;font-size:12px;cursor:pointer;white-space:nowrap}
.ck-op button.on.ok{background:#16a34a;color:#fff;border-color:#16a34a}.ck-op button.on.atencao{background:#f59e0b;color:#1b1307;border-color:#f59e0b}.ck-op button.on.defeito{background:#dc2626;color:#fff;border-color:#dc2626}
.ck-fotos{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}.ck-fotos figure{margin:0;position:relative;border-radius:10px;overflow:hidden;border:1px solid var(--li,#ddd)}
.ck-fotos img{width:100%;height:96px;object-fit:cover;display:block}.ck-fotos figcaption{font-size:11px;padding:4px 6px}.ck-fotos .btn{position:absolute;top:4px;right:4px;padding:2px 7px}
@media (max-width:640px){.ck-it{grid-template-columns:1fr}.ck-op{flex-wrap:wrap}}
