/* =====================================================================
   Ducko — visual do sistema
   No estilo do painel do Polar: menu lateral cinza (#f3f4f6) com busca e
   áreas, o conteúdo num painel branco de cantos arredondados, botões em
   pílula (preto para a ação principal, cinza para as outras), cartões com
   borda fina e janelas com moldura cinza. A impressão (cupom e etiquetas)
   continua preto no branco.
   ===================================================================== */
:root {
  color-scheme: light;

  /* Situação (verde = deu certo, vermelho = erro, âmbar = atenção) */
  --menta: #047857;
  --menta-claro: #10b981;
  --menta-txt: #047857;               /* texto e ícones verdes */
  --menta-escuro: #065f46;
  --menta-soft: #ecfdf5;
  --menta-soft-2: #d1fae5;
  --menta-borda: #a7f3d0;
  --no-menta: #ffffff;                /* texto sobre fundo verde */
  --bico: #f59e0b;                    /* âmbar (bico do pato) */
  --bico-txt: #b45309;
  --bico-soft: #fffbeb;
  --bico-borda: #fde68a;
  --perigo: #ef4444;
  --perigo-hover: #dc2626;
  --perigo-txt: #b91c1c;
  --perigo-soft: #fef2f2;
  --perigo-borda: #fecaca;
  --no-perigo: #ffffff;
  --info-txt: #1d4ed8;
  --info-soft: #eff6ff;
  --info-borda: #bfdbfe;
  --foco: #3b65cd;
  --link: #3b65cd;

  /* Superfícies */
  --bg: #f3f4f6;                      /* fundo e menu lateral */
  --bg-2: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f8fafc;               /* blocos cinza dentro do painel (indicadores) */
  --surface-3: #f3f4f6;
  --elevado: #ffffff;
  --campo: #ffffff;
  --borda: #e8e9ec;
  --borda-forte: #dcdde1;
  --borda-hover: #c7c9ce;
  --borda-campo: #e2e3e7;
  --linha: #f0f1f3;
  --hover: #f8fafc;
  --barra: #000000;                   /* botão principal */
  --barra-2: #18181b;
  --no-barra: #ffffff;                /* texto sobre o botão principal */
  --barra-hover: var(--barra-hover);
  --hover-2: #e9eaed;                 /* cinza do hover sobre cinza */
  --hover-3: #e1e2e6;
  --moldura: #f3f5f7;                 /* moldura cinza das janelas */
  --sel: #f2f4f6;                     /* linha escolhida numa lista */

  /* Texto */
  --texto: #0b0c0f;
  --texto-2: #36383a;
  --muted: #6b6e75;
  --placeholder: #a3a6ad;

  /* Gráficos */
  --serie: #3b65cd;
  --serie-hover: #2f52a8;
  --grade: #f0f1f3;
  --eixo: #99a2b7;
  --base-eixo: #e5e7eb;

  --fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fonte-marca: var(--fonte);
  --fonte-logo: 'Unbounded', var(--fonte);
  --fonte-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --raio: 10px;
  --raio-lg: 16px;
  --raio-xl: 24px;
  --sombra: 0 0 0 1px var(--borda), 0 1px 2px rgba(16, 18, 25, .03);
  --sombra-lg: 0 0 0 1px rgba(0, 0, 0, .04), 0 30px 60px -12px rgba(0, 0, 0, .35);
  --sombra-menu: 0 0 0 1px rgba(0, 0, 0, .06), 0 12px 32px -8px rgba(0, 0, 0, .18);
  --bisel: inset 0 0 0 1px var(--borda-campo), 0 1px 2px rgba(16, 18, 25, .04);
  --bisel-escuro: none;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-mola: cubic-bezier(.2, .9, .25, 1.15);
  --lateral: 248px;
  --topo: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { scrollbar-color: rgba(0, 0, 0, .18) transparent; }
body {
  font-family: var(--fonte);
  font-size: 14px;
  line-height: 1.45;
  color: var(--texto);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#raiz { position: relative; z-index: 1; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; }
img { display: block; }
.ic { width: 18px; height: 18px; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }
::selection { background: rgba(59, 101, 205, .18); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .14); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(0, 0, 0, .26); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.txt-perigo { color: var(--perigo-txt); }
.txt-sucesso { color: var(--menta-txt); }
.flex1 { flex: 1; }
.centro { text-align: center; }
.pad { padding: 12px 14px; }
.mono { font-family: var(--fonte-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.eyebrow { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }

/* ---------- Marca ---------- */
.marca { font-family: var(--fonte-logo); font-weight: 600; font-size: 19px; line-height: 1; letter-spacing: -.035em; color: var(--texto); white-space: nowrap; }
.marca b { color: var(--menta-claro); font-weight: 600; }
.logo-pato { display: block; flex-shrink: 0; overflow: visible; object-fit: contain; user-select: none; -webkit-user-drag: none; }
@keyframes laser { from { transform: translateY(-3px); } to { transform: translateY(3.4px); } }

.splash { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 16px; }
.splash-pato { width: 64px; height: 64px; animation: flutuar 2.6s ease-in-out infinite; }
.splash .marca { font-size: 24px; animation: entrar .5s var(--ease) both .1s; }
.splash-barra { position: relative; width: 120px; height: 3px; border-radius: 3px; background: rgba(0, 0, 0, .07); overflow: hidden; }
.splash-barra::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 3px; background: var(--texto); animation: varrer 1.1s ease-in-out infinite; }
@keyframes flutuar { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes varrer { from { left: -40%; } to { left: 100%; } }

/* ---------- Estrutura ---------- */
/* menu lateral cinza à esquerda; o conteúdo num painel branco com margem de 8px */
.app {
  display: grid;
  grid-template-columns: var(--lateral) minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
}
.app.recolhido { --lateral: 68px; }
/* barra do topo: só no celular (abre o menu) */
.topo { display: none; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--texto); text-decoration: none; min-width: 0; flex-shrink: 0; }
.logo .logo-pato { transition: transform .45s var(--ease-mola); }
.logo:hover .logo-pato { transform: rotate(-9deg) translateY(-1px); }
.logo-txt { display: flex; flex-direction: column; }
.logo-txt small { display: none; }
.logo-box { width: 32px; height: 32px; border-radius: var(--raio); background: var(--surface-2); color: var(--texto); display: grid; place-items: center; flex-shrink: 0; }
.logo-box .ic { width: 18px; height: 18px; }
.topo-btn { width: 32px; height: 32px; border-radius: var(--raio); display: grid; place-items: center; color: var(--texto-2); text-decoration: none; transition: background .12s, color .12s; }
.topo-btn:hover { background: rgba(0, 0, 0, .05); color: var(--texto); }
.topo-btn .ic { width: 18px; height: 18px; }
.so-mobile { display: none; }

.lateral {
  position: relative; z-index: 3; min-height: 0; overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; padding: 14px 12px 12px;
  background: var(--bg);
}
.lateral::-webkit-scrollbar { display: none; }
.lat-topo { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 36px; padding: 0 0 0 6px; margin-bottom: 16px; }
.lat-topo .logo-pato { width: 30px; height: 30px; }
.lat-topo-acoes { display: flex; align-items: center; gap: 2px; }
.lat-busca {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 10px; margin-bottom: 10px; border-radius: var(--raio);
  background: var(--surface); box-shadow: 0 0 0 1px var(--borda), 0 1px 2px rgba(16, 18, 25, .04);
  font-size: 14px; color: #848484; text-align: left; transition: box-shadow .12s;
}
.lat-busca:hover { box-shadow: 0 0 0 1px var(--borda-hover), 0 1px 2px rgba(16, 18, 25, .04); }
.lat-busca .ic { width: 15px; height: 15px; color: var(--muted); }
.lat-busca span { flex: 1; overflow: hidden; white-space: nowrap; }
.lat-busca kbd { margin: 0; min-width: 0; padding: 3px 6px; font: 500 11px/1 var(--fonte); color: var(--muted); background: var(--bg); box-shadow: none; border-radius: 6px; }
/* situação do caixa: uma linha discreta com ponto colorido */
.pill-caixa {
  display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; margin-bottom: 8px; border-radius: var(--raio);
  font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background .12s, color .12s;
}
.pill-caixa:hover { background: rgba(0, 0, 0, .04); color: var(--texto); }
.pill-caixa .dot { position: relative; width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; background: var(--menta-claro); flex-shrink: 0; }
.pill-caixa .dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--menta-claro); animation: pulsar 2s var(--ease) infinite; }
.pill-caixa.fechado .dot { background: var(--perigo); }
.pill-caixa.fechado .dot::after { display: none; }
@keyframes pulsar { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

/* áreas do menu: ícone e nome; a área aberta fica num cartão branco e as telas dela aparecem abaixo */
.lat-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 36px; padding: 0 10px; border-radius: var(--raio); border: 1px solid transparent;
  font-size: 14px; font-weight: 400; line-height: 1.2; color: var(--muted); text-decoration: none; text-align: left;
  transition: color .12s, background .12s;
}
.nav-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .ic { width: 16px; height: 16px; stroke-width: 2; color: #797b7d; transition: color .12s; }
.nav-item:hover { color: var(--texto); }
.nav-item:hover .ic { color: var(--texto); }
.nav-item.ativo { background: var(--surface); border-color: #ececee; color: var(--texto); font-weight: 500; box-shadow: 0 1px 2px rgba(16, 18, 25, .04); }
.nav-item.ativo .ic { color: var(--texto); }
.nav-grupo { position: relative; }
.nav-sub { display: none; flex-direction: column; margin: 4px 0 6px 18px; padding-left: 13px; border-left: 1px solid #dee0e2; }
.nav-grupo.ativo-grupo > .nav-sub { display: flex; }
.nav-sub-titulo { display: none; }
.nav-sub-item {
  display: flex; align-items: center; min-height: 32px; padding: 0 8px; border-radius: 8px;
  color: #797b7f; text-decoration: none; font-size: 14px; transition: color .12s;
}
.nav-sub-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-sub-item .ic { display: none; }
.nav-sub-item:hover, .nav-sub-item:focus-visible { color: var(--texto); }
.nav-sub-item.ativo { color: var(--texto); font-weight: 500; }
/* rodapé do menu: ajuda, loja e a conta */
.lat-rodape { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.lat-rodape .nav-item { min-height: 32px; }
.loja-nome { cursor: default; }
.loja-nome > span { flex: 1; }
.loja-nome .ic:last-child:not(:first-child) { width: 14px; height: 14px; }
.loja-nome.varias { cursor: pointer; }
.usuario {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 12px 8px 2px;
  border-top: 1px solid #e5e7eb; font-size: 14px; color: var(--texto); text-align: left; white-space: nowrap;
}
button.usuario { cursor: pointer; }
button.usuario:hover .usuario-txt b { text-decoration: underline; text-underline-offset: 3px; }
.usuario > .ic { width: 16px; height: 16px; color: var(--texto-2); }
.usuario-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.usuario-txt b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.usuario-txt small { font-size: 12px; color: var(--muted); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--borda); color: var(--muted);
  font-size: 10px; font-weight: 500; text-transform: uppercase;
}
/* menu recolhido: só os ícones */
@media (min-width: 901px) {
  .app.recolhido .lateral { padding: 14px 10px 12px; }
  .app.recolhido .lat-topo { flex-direction: column; padding: 0; gap: 10px; }
  .app.recolhido .lat-topo-acoes { flex-direction: column; }
  .app.recolhido .lat-busca, .app.recolhido .nav-item, .app.recolhido .pill-caixa { justify-content: center; padding: 0; }
  .app.recolhido .lat-busca span, .app.recolhido .lat-busca kbd, .app.recolhido .nav-item span, .app.recolhido .nav-sub,
  .app.recolhido .pill-caixa span:last-child, .app.recolhido .usuario-txt, .app.recolhido .usuario > .ic,
  .app.recolhido .loja-nome .ic:last-child:not(:first-child) { display: none; }
  .app.recolhido .usuario { justify-content: center; padding: 12px 0 2px; }
}

/* o painel branco do conteúdo */
.principal {
  display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: auto;
  margin: 8px 8px 8px 0; border-radius: var(--raio-lg);
  background: var(--surface); box-shadow: 0 0 0 1px rgba(16, 18, 25, .04), 0 1px 3px rgba(16, 18, 25, .04);
}
/* aviso no alto do painel (modo demonstração, fim do teste grátis), como o "test mode" do Polar */
.aviso-demo {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0; position: relative; z-index: 2;
  margin: 20px 32px 0; padding: 14px 14px 14px 20px; border-radius: var(--raio-lg);
  background: var(--bg); color: var(--texto); font-size: 14px;
}
.aviso-demo > .ic { width: 18px; height: 18px; color: var(--texto); }
.aviso-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aviso-txt b { font-weight: 500; }
.aviso-txt span { color: #6c6d73; }
.principal:has(> .conteudo.cheio) > .aviso-demo { display: none; }
/* o painel branco rola inteiro (o aviso do alto rola junto); as telas cheias (venda, clientes) rolam por dentro */
.principal:has(> .conteudo.cheio) { overflow: hidden; }

.conteudo { flex: 1 0 auto; min-width: 0; }
.conteudo.cheio { flex: 1 1 0; min-height: 0; overflow: hidden; }
.view { min-height: 100%; }
.conteudo.cheio > .view { height: 100%; }
.carregando { padding: 64px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.carregando::before {
  content: ''; display: block; width: 120px; height: 3px; margin: 0 auto 14px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--texto), transparent) no-repeat, rgba(0, 0, 0, .07);
  background-size: 40% 100%, 100% 100%; animation: varrer-fundo 1.1s ease-in-out infinite;
}
@keyframes varrer-fundo { from { background-position: -70% 0, 0 0; } to { background-position: 170% 0, 0 0; } }

/* Entrada da tela: os blocos aparecem em sequência, de leve */
.view.entrando > .pagina > *, .view.entrando > .pdv > *, .view.entrando > .centro-vertical > * { animation: entrar .35s var(--ease) both; }
.view.entrando > .pagina > :nth-child(2), .view.entrando > .pdv > :nth-child(2) { animation-delay: .03s; }
.view.entrando > .pagina > :nth-child(3) { animation-delay: .06s; }
.view.entrando > .pagina > :nth-child(4) { animation-delay: .09s; }
.view.entrando > .pagina > :nth-child(5) { animation-delay: .12s; }
.view.entrando > .pagina > :nth-child(n+6) { animation-delay: .15s; }
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } }

/* busca rápida (Ctrl+K): caixa branca no alto, ações e telas */
.overlay-busca { align-items: flex-start; padding-top: min(14vh, 120px); background: rgba(0, 0, 0, .45); }
.busca-caixa {
  width: 100%; max-width: 560px; border-radius: var(--raio-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--sombra-lg); animation: modal-entrar .18s var(--ease) both;
}
.busca-campo { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--linha); }
.busca-campo .ic { width: 18px; height: 18px; color: var(--muted); }
.busca-campo input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; color: var(--texto); }
.busca-campo input::placeholder { color: var(--placeholder); }
.busca-lista { max-height: min(60vh, 440px); overflow-y: auto; padding: 8px; }
.busca-sec { display: block; padding: 10px 10px 6px; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.busca-item { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 10px; border-radius: var(--raio); text-align: left; font-size: 14px; color: var(--texto); }
.busca-item .ic { width: 16px; height: 16px; color: var(--muted); }
.busca-item > span:not(.busca-enter) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.busca-item kbd { margin: 0; }
.busca-item.on { background: var(--bg); }
.busca-enter .ic { color: var(--muted); }
.busca-vazio { padding: 28px 12px; text-align: center; color: var(--muted); }

/* ---------- Páginas ---------- */
.pagina { padding: 32px 32px 64px; max-width: 1280px; margin: 0 auto; }
.pagina-estreita { max-width: 1000px; }
.pagina-topo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; min-height: 40px; }
.pagina-topo h1 {
  font-family: var(--fonte); font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -.015em;
  color: var(--texto); margin-right: auto; text-wrap: balance;
}
.pagina-topo h1::before { content: none; }
.saudacao { margin-right: auto; }
.saudacao p { margin-top: 4px; }
.saudacao p::first-letter { text-transform: uppercase; }
.secao-titulo { display: flex; align-items: center; gap: 8px; margin: 32px 0 14px; font-size: 18px; font-weight: 400; color: var(--texto); }
.dica-pagina {
  display: flex; gap: 12px; align-items: flex-start; background: var(--bg);
  color: var(--texto-2); border-radius: var(--raio-lg); padding: 14px 16px; font-size: 14px; margin-bottom: 16px;
}
.dica-pagina .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--texto); }
.dica-alerta { background: var(--bico-soft); color: var(--bico-txt); }
.dica-alerta .ic { color: var(--bico-txt); }

.fc-maq { margin: 6px 0 8px; padding-left: 18px; display: grid; gap: 3px; color: var(--texto); font-variant-numeric: tabular-nums; }
.fc-maq-fechado { margin: 14px 0 0; }
.fc-integ { display: block; font-size: 12px; color: var(--texto-2); font-weight: 400; }
.fc-dica { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; margin: 8px 0 0; }
.pg-meio { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 2px; }
.pg-meio > span { font-size: 13px; color: var(--texto-2); }
.grp-dias .rotulo { display: block; margin: 4px 0 6px; }
.grp-dias .rotulo small { font-weight: 400; }
.fp-dias-nota { align-self: center; margin: 0; font-size: 13px; }
.ct-abertas { display: grid; gap: 10px; margin: 12px 0; }
.ct-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.ct-card-info { display: grid; gap: 2px; min-width: 0; }
.ct-card-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ct-topo { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.ct-leitor { display: grid; gap: 10px; }
.ct-entrada { display: flex; gap: 8px; align-items: stretch; }
.ct-modo small { display: block; font-size: 12px; color: var(--muted); }
.ct-opcoes { display: grid; gap: 6px; }
.ct-opcao { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: var(--raio); border: 1px solid var(--borda, rgba(0, 0, 0, .072)); background: transparent; color: inherit; cursor: pointer; }
.ct-opcao:hover, .ct-opcao:focus-visible { border-color: var(--borda-hover); }
.ct-ultimo:empty { display: none; }
.ct-ok { display: flex; gap: 6px; align-items: center; color: var(--menta-txt); font-size: 15px; }
.ct-andamento { display: flex; gap: 6px; align-items: center; margin: 10px 0 0; font-size: 13px; }
.ct-qtd { width: 96px; text-align: right; }
.ct-video { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 4 / 3; object-fit: cover; }
.nf-validade { display: flex; gap: 4px; margin-top: 4px; }
.nf-validade .input { min-width: 0; padding: 4px 6px; font-size: 12px; }
.nf-validade [data-lote] { width: 72px; }
.vl-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vl-prod { flex: 1 1 240px; }
.vl-qtd { width: 90px; }
.vl-lote { width: 140px; }
.vl-opcoes { display: grid; gap: 10px; }
.vitem-combo { grid-column: 1 / -1; display: grid; gap: 4px; margin: 4px 0 2px 8px; padding-left: 8px; border-left: 2px solid var(--borda-forte); }
.vitem-comp { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--texto-2); }
.vitem-comp.trocado { color: var(--menta-txt); }
.vitem-comp .btn-mini { padding: 2px 8px; }
.vitem-ajuste { font-size: 12px; color: var(--menta-txt); }
.tc-lista { display: grid; gap: 6px; margin-top: 10px; max-height: 50vh; overflow: auto; }
.tc-opcao { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: var(--raio); border: 1px solid var(--borda); background: transparent; color: inherit; cursor: pointer; }
.tc-opcao:hover, .tc-opcao:focus-visible { border-color: var(--borda-hover); }
.tc-opcao > span:first-child { display: grid; gap: 2px; }
.tc-dif { display: grid; text-align: right; font-weight: 600; white-space: nowrap; }
.tc-dif.mais { color: var(--laranja, #f5a524); }
.tc-dif.menos { color: var(--menta-txt); }
.tc-dif small { font-weight: 400; color: var(--muted); }
.cb-add { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.cb-resumo { display: grid; gap: 4px; margin-top: 10px; font-size: 14px; }
.cm-motivos { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.vd-cancel { display: block; margin-top: 2px; }
.cm-faixa { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; margin: 8px 0 0; }
.rodape-lista { margin-top: 12px; font-size: 13px; }
.resumo-linha { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; font-size: 14px; }
.rel-periodo { margin: -4px 0 14px; font-size: 13px; }
.recarregando { opacity: .5; pointer-events: none; transition: opacity .15s; }


/* ---------- Cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--borda); border-radius: var(--raio-lg); }
.pagina > .card, .rel-corpo > .card, .pagina > .grid-2col, .rel-corpo > .grid-2col { margin-bottom: 16px; }
.card-pad { padding: 24px; }
.card-titulo { font-size: 18px; font-weight: 400; margin-bottom: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-titulo small { font-weight: 400; font-size: 13px; }
.card-pad > .muted { margin-bottom: 12px; }
.card-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.card-acoes-esq { justify-content: flex-start; }
.grid-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-2col-larga { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* ---------- Botões ---------- */
/* pílulas: cinza para as ações comuns, preta para a principal, vermelha para apagar */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--texto);
  font-weight: 500; font-size: 14px; white-space: nowrap; text-decoration: none;
  transition: background .12s, color .12s, opacity .12s;
}
.btn:hover { background: var(--hover-2); }
.btn:active { background: var(--hover-3); }
.btn .ic { width: 16px; height: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:active { background: var(--bg); }
.btn-primario { background: var(--barra); color: var(--no-barra); }
.btn-primario:hover { background: var(--barra-hover); }
.btn-primario:active { background: #3f3f46; }
.btn-sucesso { background: var(--menta); color: #fff; }
.btn-sucesso:hover { background: var(--menta-escuro); }
.btn-perigo { background: var(--perigo); color: #fff; }
.btn-perigo:hover { background: var(--perigo-hover); }
.btn-primario:disabled:active { background: var(--barra); }
.btn-texto-perigo { color: var(--perigo-txt); }
.btn-texto-perigo:hover { background: var(--perigo-soft); }
.btn-grande { height: 44px; font-size: 15px; padding: 0 22px; }
.btn-bloco { width: 100%; }
.btn-mini { height: 30px; font-size: 13px; padding: 0 12px; gap: 5px; }
.btn-mini .ic { width: 14px; height: 14px; }
.btn-icone { width: 36px; padding: 0; flex-shrink: 0; }
.btn-mini.btn-icone { width: 30px; }
.btn-grande.btn-icone { width: 44px; }
.carregando-btn { color: transparent !important; }
.carregando-btn::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .15); border-top-color: var(--texto); animation: girar .7s linear infinite;
}
.btn-primario.carregando-btn::after, .btn-sucesso.carregando-btn::after, .btn-perigo.carregando-btn::after { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
@keyframes girar { to { transform: rotate(360deg); } }

.icon-btn { width: 32px; height: 32px; border-radius: 999px; display: inline-grid; place-items: center; color: var(--muted); transition: background .12s, color .12s; }
.icon-btn:hover { background: rgba(0, 0, 0, .05); color: var(--texto); }
.icon-btn .ic { width: 16px; height: 16px; }
.icon-perigo:hover { background: var(--perigo-soft); color: var(--perigo-txt); }

kbd {
  display: inline-block; min-width: 22px; text-align: center; font: 500 11px/1 var(--fonte); color: var(--muted);
  padding: 4px 6px; border-radius: 6px; background: var(--bg); margin-right: 6px;
}
.btn kbd, .btn-cobrar kbd { min-width: 0; margin: 0 0 0 2px; padding: 3px 6px; font-size: 10.5px; background: rgba(0, 0, 0, .06); color: inherit; opacity: .8; }
.btn-primario kbd, .btn-sucesso kbd, .btn-perigo kbd, .btn-cobrar kbd { background: rgba(255, 255, 255, .18); }

/* opção que liga/desliga (filtros e valores rápidos) */
.chip {
  height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--borda);
  font-size: 13px; font-weight: 500; background: var(--surface); color: var(--texto-2);
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { background: var(--surface-2); color: var(--texto); }
.chip.on { background: var(--barra); border-color: var(--barra); color: var(--no-barra); }

/* ---------- Campos ---------- */
.input {
  width: 100%; height: 40px; border: 1px solid var(--borda-campo); border-radius: 12px; padding: 0 14px;
  background: var(--campo); color: var(--texto); font-size: 14px; outline: none; box-shadow: 0 1px 2px rgba(16, 18, 25, .04);
  transition: border-color .12s, box-shadow .12s;
}
.input:hover { border-color: var(--borda-hover); }
.input:focus { border-color: #9db5ef; box-shadow: 0 0 0 3px #e2eafb; }
.input:disabled { background: var(--surface-2); color: var(--placeholder); box-shadow: none; }
.input::placeholder { color: var(--placeholder); }
textarea.input { height: auto; padding: 10px 14px; resize: vertical; }
select.input {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6e75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select.input option, select.input optgroup { background: var(--elevado); color: var(--texto); }
input[type=date].input, input[type=datetime-local].input { font-variant-numeric: tabular-nums; }
.input-grande { height: 52px; font-size: 22px; font-weight: 500; }
.input-leitura { display: flex; align-items: center; background: var(--surface-2); color: var(--texto-2); font-size: 14px; white-space: nowrap; overflow: hidden; box-shadow: none; }
.input-icone { position: relative; display: flex; align-items: center; }
.input-icone > .ic { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.input-icone > .input { padding-left: 38px; }
.campo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.campo > label, .campo > .rotulo { font-size: 14px; font-weight: 500; color: var(--texto); }
.campo-check { justify-content: flex-end; padding-bottom: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--barra); flex-shrink: 0; cursor: pointer; }
.check small { display: block; color: var(--muted); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.span2 { grid-column: span 2; }
.span-todo { grid-column: 1 / -1; }
.linha-input { display: flex; gap: 8px; }
.form-erro { color: var(--perigo-txt); font-size: 13px; font-weight: 500; }

.filtros { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filtros > select.input { width: auto; min-width: 180px; }
.filtros-linha { margin-bottom: 16px; }
.periodo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.periodo-datas { display: flex; align-items: center; gap: 8px; }
.periodo-datas .input { width: 160px; }
/* escolha de período e de visão: pílulas num fundo cinza, a escolhida em branco */
.seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg); flex-wrap: wrap; }
.seg button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 400; color: var(--muted); transition: background .12s, color .12s, box-shadow .12s; }
.seg button:hover { color: var(--texto); }
.seg button.on { background: var(--surface); color: var(--texto); font-weight: 500; box-shadow: 0 1px 2px rgba(16, 18, 25, .08), 0 0 0 1px rgba(16, 18, 25, .03); }
.seg-icone button { width: 34px; padding: 0; display: grid; place-items: center; }
.seg-cheio { display: flex; }
.seg-cheio button { flex: 1; height: 34px; }

/* ---------- Tabelas ---------- */
.tabela-wrap { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th {
  text-align: left; font-size: 13px; font-weight: 400; color: var(--muted);
  padding: 11px 16px; border-bottom: 1px solid var(--linha); background: var(--surface-2); white-space: nowrap;
}
.card > .tabela-wrap > .tabela th:first-child { border-top-left-radius: var(--raio-lg); }
.card > .tabela-wrap > .tabela th:last-child { border-top-right-radius: var(--raio-lg); }
.tabela td { padding: 14px 16px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.tabela tbody tr:last-child td { border-bottom: none; }
.tabela tfoot td { border-top: 1px solid var(--linha); border-bottom: none; background: var(--surface-2); }
.tabela tbody tr { transition: background .1s; }
.tabela-clicavel tbody tr { cursor: pointer; }
.tabela-clicavel tbody tr:hover { background: var(--surface-2); }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela-compacta th { background: none; padding: 8px 10px; }
.tabela-compacta td { padding: 10px; }
.tabela-compacta th:first-child, .tabela-compacta td:first-child { padding-left: 0; }
.tabela-compacta th:last-child, .tabela-compacta td:last-child { padding-right: 0; }
.td-foto { width: 56px; }
.td-acoes { width: 96px; text-align: right; white-space: nowrap; }
.td-nome { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.thumb {
  width: 40px; height: 40px; border-radius: var(--raio); background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--borda); display: grid; place-items: center; font-weight: 500; font-size: 12px; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.fav-mini { display: inline-grid; }
.fav-mini .ic { width: 14px; height: 14px; color: #e11d48; fill: #e11d48; }
.linha-cancelada td { color: var(--muted); }
.linha-cancelada td b { text-decoration: line-through; }

/* selos pequenos de cantos levemente arredondados */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; border: 0;
  font-size: 12px; font-weight: 500; line-height: 18px; white-space: nowrap;
}
.badge .ic { width: 12px; height: 12px; }
.badge-verde { background: var(--menta-soft-2); color: var(--menta); }
.badge-vermelho { background: #fee2e2; color: var(--perigo-txt); }
.badge-laranja { background: #fef3c7; color: var(--bico-txt); }
.badge-cinza { background: var(--bg); color: var(--muted); }
.badge-neutro { background: var(--borda); color: var(--texto); }

/* vazio: título grande e leve no meio, como "No Customers" do Polar */
.vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 56px 20px; color: var(--muted); }
.vazio > .ic { width: 36px; height: 36px; stroke-width: 1.5; margin-bottom: 8px; color: #b9bcc3; }
.vazio p { font-weight: 400; color: var(--texto); font-size: 20px; letter-spacing: -.01em; }
.vazio-acoes { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.vazio-mini { padding: 12px 0; display: flex; align-items: center; gap: 8px; }
.vazio-mini .ic { width: 16px; height: 16px; color: var(--muted); }
.vazio-mini-bloco { padding: 24px; }

/* ---------- Indicadores e gráficos ---------- */
/* blocos cinza-claro sem borda (como os números do cliente no Polar); o principal fica em branco com borda */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat {
  position: relative; overflow: hidden; background: var(--surface-2); border: 1px solid transparent;
  border-radius: var(--raio-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0;
  transition: border-color .12s, background .12s;
}
.stat-rotulo { font-size: 14px; font-weight: 400; color: #6e7072; display: flex; align-items: center; gap: 6px; }
.stat-rotulo .ic { width: 15px; height: 15px; color: var(--muted); }
.stat-valor { font-size: 26px; font-weight: 400; line-height: 1.2; letter-spacing: -.02em; color: var(--texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.stat-sub { font-family: var(--fonte-mono); font-size: 12px; color: var(--muted); }
.stat-destaque { background: var(--surface); border-color: var(--borda); }
.stat-destaque .stat-rotulo { color: var(--texto); }
.stat-destaque .stat-valor { font-size: 32px; font-weight: 300; }

.grafico { position: relative; width: 100%; }
.grafico svg { display: block; overflow: visible; }
.g-grade { stroke: var(--grade); stroke-width: 1; stroke-dasharray: 2 3; }
.g-base { stroke: var(--base-eixo); stroke-width: 1; }
.g-eixo { fill: var(--eixo); font-size: 11px; font-variant-numeric: tabular-nums; }
.g-barra { fill: var(--serie); transition: fill .15s; pointer-events: none; }
.g-barra.on { fill: var(--serie-hover); }
.g-alvo { fill: transparent; outline: none; }
.g-alvo:focus-visible { stroke: var(--foco); stroke-width: 1.5; }
.g-dica {
  position: absolute; pointer-events: none; background: var(--surface); border-radius: var(--raio);
  box-shadow: var(--sombra-menu); padding: 8px 12px; display: flex; flex-direction: column; white-space: nowrap; z-index: 2;
}
.g-dica strong { font-size: 14px; font-weight: 500; color: var(--texto); font-variant-numeric: tabular-nums; }
.g-dica span { font-size: 12px; color: var(--muted); }
.hbarras { display: flex; flex-direction: column; gap: 12px; }
.hb-linha { display: grid; grid-template-columns: minmax(70px, 32%) minmax(0, 1fr); align-items: center; gap: 10px; }
.hb-rotulo { font-size: 14px; color: var(--texto-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-trilho { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hb-barra {
  height: 8px; min-width: 2px; border-radius: 999px; flex-shrink: 0; background: var(--serie);
  transform-origin: left; animation: crescer-barra .6s var(--ease) both;
}
@keyframes crescer-barra { from { transform: scaleX(0); } }
.hb-valor { font-size: 13px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-valor small { color: var(--muted); font-weight: 400; margin-left: 2px; }
.det-tabela { margin-top: 12px; font-size: 14px; }
.det-tabela summary { cursor: pointer; color: var(--texto-2); font-weight: 500; width: fit-content; }
.det-tabela summary:hover { color: var(--texto); }
.det-tabela table { margin-top: 8px; }

/* ---------- Modais ---------- */
/* moldura cinza com o título, e o conteúdo num painel branco dentro dela (como no Polar) */
.overlay {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  display: flex; align-items: flex-start; justify-content: center; padding: min(9vh, 72px) 16px 16px;
  background: rgba(0, 0, 0, .6);
  animation: aparecer .16s ease;
}
.overlay.saindo { animation: sumir .14s ease forwards; pointer-events: none; }
.overlay.sem-entrada, .overlay.sem-entrada .modal { animation: none; }
.modal {
  position: relative; width: 100%; display: flex; flex-direction: column;
  max-height: calc(100dvh - min(9vh, 72px) - 16px);
  background: var(--moldura); border-radius: var(--raio-xl); padding: 0 5px 5px;
  box-shadow: var(--sombra-lg);
  animation: modal-entrar .2s var(--ease) both;
}
.overlay.saindo .modal { animation: modal-sair .14s ease forwards; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px 10px 18px; flex-shrink: 0; }
.modal-head h3 { font-size: 14px; font-weight: 400; color: #61656a; }
.modal-head .icon-btn { color: #61656a; }
.modal-body { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; background: var(--surface); border-radius: 20px 20px 0 0; }
.modal-body:last-child { border-radius: 20px; }
.modal-body > * { flex-shrink: 0; }          /* o corpo rola; os blocos não encolhem */
.modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 8px 24px 24px; flex-wrap: wrap; flex-shrink: 0;
  background: var(--surface); border-radius: 0 0 20px 20px;
}
.confirm-msg { font-size: 14px; line-height: 1.6; color: var(--texto-2); }
@keyframes aparecer { from { opacity: 0; } }
@keyframes sumir { to { opacity: 0; } }
@keyframes subir { from { transform: translateY(8px); opacity: 0; } }
@keyframes modal-entrar { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes modal-sair { to { opacity: 0; transform: translateY(6px) scale(.99); } }

/* gaveta (formulários e detalhes): presa à direita, da altura da tela, como os cadastros do Polar.
   Título grande e leve no alto, campos em coluna e o botão principal embaixo, à esquerda */
.overlay-gaveta { padding: 0; justify-content: flex-end; align-items: stretch; overflow: hidden; background: rgba(0, 0, 0, .35); }
.modal.gaveta {
  width: min(var(--larg, 560px), 100vw); max-width: none; height: 100%; max-height: none;
  padding: 0; border-radius: 0; background: var(--surface); box-shadow: -24px 0 48px -16px rgba(0, 0, 0, .22);
  animation: gaveta-entrar .26s var(--ease) both;
}
.overlay.saindo .modal.gaveta { animation: gaveta-sair .2s ease forwards; }
@keyframes gaveta-entrar { from { transform: translateX(100%); } }
@keyframes gaveta-sair { to { transform: translateX(100%); } }
.gaveta .modal-head { padding: 26px 20px 4px 32px; }
.gaveta .modal-head h3 { font-size: 20px; font-weight: 400; letter-spacing: -.01em; color: var(--texto); }
.gaveta .modal-head .icon-btn { color: var(--muted); }
.gaveta .modal-body, .gaveta .modal-body:last-child { flex: 1; min-height: 0; border-radius: 0; padding: 20px 32px 28px; gap: 20px; }
.gaveta .modal-foot {
  flex-direction: row-reverse; justify-content: flex-end; gap: 8px; border-radius: 0;
  padding: 16px 32px 28px; border-top: 1px solid var(--linha);
}
.gaveta .modal-foot .btn:not(.btn-primario):not(.btn-perigo):not(.btn-sucesso):not(.btn-texto-perigo) { background: transparent; }
.gaveta .modal-foot .btn:not(.btn-primario):not(.btn-perigo):not(.btn-sucesso):not(.btn-texto-perigo):hover { background: var(--bg); }
.gaveta .form.grid2, .gaveta .form.grid3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.gaveta .form .span2 { grid-column: auto; }
.gaveta .campo > small.muted { font-size: 13px; line-height: 1.45; }

/* ---------- Clientes: a lista e o cliente em dois cartões, como no Polar ---------- */
.principal:has(.cli-split) { background: transparent; box-shadow: none; }
.cli-split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 8px; height: 100%; }
.cli-lista, .cli-detalhe {
  min-height: 0; background: var(--surface); border-radius: var(--raio-lg);
  box-shadow: 0 0 0 1px rgba(16, 18, 25, .04), 0 1px 3px rgba(16, 18, 25, .04);
}
.cli-lista { display: flex; flex-direction: column; overflow: hidden; }
.cli-lista-topo { display: flex; align-items: center; gap: 2px; height: 56px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--linha); flex-shrink: 0; }
.cli-lista-topo h1 { flex: 1; font-size: 15px; font-weight: 400; color: var(--texto); }
.cli-lista-topo .icon-btn .ic { width: 15px; height: 15px; }
.cli-novo { width: 26px; height: 26px; margin-left: 6px; border-radius: 50%; display: grid; place-items: center; background: var(--barra); color: var(--no-barra); transition: background .12s; }
.cli-novo:hover { background: var(--barra-hover); }
.cli-novo .ic { width: 15px; height: 15px; }
.cli-busca { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--linha); flex-shrink: 0; cursor: text; }
.cli-busca-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--muted); flex-shrink: 0; }
.cli-busca-ic .ic { width: 13px; height: 13px; }
.cli-busca input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 14px; color: var(--texto); }
.cli-busca input::placeholder { color: var(--placeholder); }
.cli-itens { flex: 1; min-height: 0; overflow-y: auto; }
.cli-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 18px; text-align: left; transition: background .1s; }
.cli-item:hover { background: var(--surface-2); }
.cli-item.on { background: var(--sel); }
.cli-av {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--borda); color: var(--muted); font-size: 11px; font-weight: 500; text-transform: uppercase;
}
.cli-item-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.cli-item-txt b, .cli-item-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cli-item-txt b { font-size: 14px; font-weight: 400; color: var(--texto); }
.cli-item-txt small { font-size: 12px; color: #8e9094; }
.cli-nada { padding: 28px 18px; text-align: center; color: var(--muted); }

.cli-detalhe { overflow-y: auto; padding: 22px 32px 40px; }
.cli-cab { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cli-av-g { width: 52px; height: 52px; font-size: 15px; }
.cli-cab-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cli-cab-txt h2 { font-size: 18px; font-weight: 400; color: var(--texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cli-cab-txt span { font-size: 14px; color: #8e9094; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cli-cab-acoes { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cli-excluir { width: 36px; height: 36px; background: var(--bg); }
.cli-excluir:hover { background: var(--perigo-soft); color: var(--perigo-txt); }
.cli-voltar { display: none; }
.cli-abas { margin-bottom: 20px; }
.cli-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cli-stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 18px; border-radius: var(--raio-lg); background: var(--surface-2); }
.cli-stat > span { font-size: 14px; color: #6e7072; }
.cli-stat b { font-family: var(--fonte-mono); font-size: 15px; font-weight: 500; color: var(--texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cli-stat small { font-family: var(--fonte-mono); font-size: 12px; color: var(--muted); }
.cli-carr { display: inline-block; width: 64px; height: 12px; border-radius: 4px; background: linear-gradient(90deg, #eceef1, #f7f8fa, #eceef1); background-size: 200% 100%; animation: brilho 1.2s linear infinite; vertical-align: middle; }
@keyframes brilho { to { background-position: -200% 0; } }
.cli-grafico-card { display: flex; flex-direction: column; margin-top: 16px; padding: 22px 6px 6px; border-radius: var(--raio-xl); background: var(--surface-2); }
.cli-grafico-tit { padding: 0 18px; font-size: 14px; color: var(--texto); }
.cli-grafico-num { padding: 6px 18px 2px; font-size: 40px; font-weight: 300; line-height: 1.15; letter-spacing: -.03em; color: var(--texto); font-variant-numeric: tabular-nums; }
.cli-grafico-data { display: flex; align-items: center; gap: 8px; padding: 0 18px 16px; font-size: 13px; color: var(--muted); }
.cli-grafico-data i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--serie); }
.cli-grafico { padding: 16px 16px 8px; border-radius: 18px; background: var(--surface); }
.cli-sec { margin: 32px 0 12px; font-size: 18px; font-weight: 400; color: var(--texto); }
.cli-sec-1 { margin-top: 4px; }
.cli-tabela { overflow-x: auto; border: 1px solid var(--borda); border-radius: var(--raio-lg); }
.cli-tabela .tabela th { background: var(--surface); color: #50535a; }
.cli-tabela .tabela td.cli-sem { padding: 30px 16px; text-align: center; color: var(--texto); }
.cli-dados { padding: 24px 24px 20px; border-radius: var(--raio-xl); background: var(--surface-2); }
.cli-dados h4 { margin: 0 0 12px; font-size: 18px; font-weight: 400; color: var(--texto); }
.cli-dados h4:not(:first-child) { margin-top: 28px; }
.cli-kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 5px 0; font-size: 14px; }
.cli-kv > span:first-child { color: #6e7072; }
.cli-kv > span:last-child { color: var(--texto); overflow-wrap: anywhere; }
.cli-chip { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--hover-2); font-size: 12px; }
.cli-obs { font-size: 14px; color: var(--texto-2); white-space: pre-line; }
.cli-vazio { height: 100%; }
@media (max-width: 1280px) {
  .cli-split { grid-template-columns: 300px minmax(0, 1fr); }
  .cli-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cli-split { grid-template-columns: minmax(0, 1fr); }
  .cli-split.vendo-detalhe .cli-lista, .cli-split:not(.vendo-detalhe) .cli-detalhe { display: none; }
  .cli-voltar { display: inline-grid; margin-left: -6px; }
  .cli-detalhe { padding: 16px 16px 32px; }
  .cli-cab { flex-wrap: wrap; }
  .cli-cab-acoes { width: 100%; }
  .cli-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cli-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 6px 0; }
  .gaveta .modal-head { padding: 20px 14px 4px 20px; }
  .gaveta .modal-body, .gaveta .modal-body:last-child { padding: 16px 20px 24px; }
  .gaveta .modal-foot { padding: 14px 20px 20px; }
}

.picker-lista { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; border: 1px solid var(--borda); border-radius: var(--raio-lg); background: var(--surface); }
.picker-item { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--linha); display: flex; flex-direction: column; gap: 2px; transition: background .1s; }
.picker-item:last-child { border-bottom: none; }
.picker-item:hover, .picker-item:focus-visible { background: var(--surface-2); outline: none; }
.picker-item small { color: var(--muted); font-size: 13px; }
.picker-lista .vazio-mini { justify-content: center; }

/* aviso rápido: cartão branco no canto de baixo à direita */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 100; pointer-events: none; opacity: 0;
  transform: translateY(14px);
  display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 32px));
  background: var(--surface); color: var(--texto); padding: 16px 20px; border-radius: var(--raio-lg);
  font-size: 14px; font-weight: 500; box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 12px 32px -8px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease), opacity .2s ease;
}
.toast::before { content: none; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.toast.show { transform: none; opacity: 1; }
.toast.erro::before { content: ''; background: var(--perigo); }
.toast.aviso::before { content: ''; background: var(--bico); }

/* ---------- Tela de venda ---------- */
.pdv { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: 100%; }
.pdv-catalogo { display: flex; flex-direction: column; min-height: 0; padding: 24px 24px 0 32px; gap: 14px; }
.pdv-barra { display: flex; gap: 10px; align-items: center; }
.pdv-busca { flex: 1; }
.pdv-busca .input { height: 44px; font-size: 15px; padding-left: 42px; }
.pdv-busca > .ic { left: 15px; width: 17px; height: 17px; }
.pdv-barra .seg button { height: 36px; }
.pdv-trilha { display: flex; align-items: center; gap: 6px; font-size: 14px; min-height: 30px; }
.trilha-voltar { display: inline-flex; align-items: center; gap: 4px; color: var(--texto-2); height: 30px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--bg); transition: background .12s; }
.trilha-voltar:hover { background: var(--hover-2); }
.trilha-voltar .ic { width: 15px; height: 15px; }
.trilha-sep { color: var(--borda-hover); }
.trilha-atual { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdv-area { flex: 1; overflow-y: auto; padding: 2px 4px 24px 2px; margin-left: -2px; min-height: 0; }

/* grupos: cartões brancos com borda fina, o ícone num quadrado com a cor do grupo */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile {
  --c: var(--cor, #1f6f86);
  position: relative; aspect-ratio: 1 / .82; border-radius: var(--raio-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--texto);
  background: var(--surface); border: 1px solid var(--borda);
  transition: border-color .12s, background .12s;
}
.tile:hover { border-color: var(--borda-hover); background: var(--surface-2); }
.tile:active { background: var(--bg); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-icone {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 30px;
  background: color-mix(in oklab, var(--c) 12%, #fff); color: color-mix(in oklab, var(--c) 85%, #000);
}
.tile-icone .ic { width: 24px; height: 24px; stroke-width: 1.8; }
.tile-neutro { --c: #6b6e75; }
.tile-rotulo {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 500; text-align: left;
}
.tile img ~ .tile-rotulo { padding-top: 26px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .65) 60%); }
.tile-rotulo span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.tile-rotulo small { font-family: var(--fonte-mono); font-size: 11px; font-weight: 400; background: var(--bg); color: var(--muted); border-radius: 6px; padding: 1px 6px; flex-shrink: 0; }
.tile img ~ .tile-rotulo small { background: rgba(255, 255, 255, .22); color: #fff; }

/* produtos: cartão branco com foto em cima */
.pgrade { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.pcard {
  background: var(--surface); border: 1px solid var(--borda); border-radius: var(--raio-lg); overflow: hidden;
  display: flex; flex-direction: column; text-align: left;
  transition: border-color .12s, box-shadow .12s;
}
.pcard:hover { border-color: var(--borda-hover); box-shadow: 0 4px 12px -6px rgba(16, 18, 25, .15); }
.pcard:active { border-color: var(--texto); }
.pcard-foto { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); border-bottom: 1px solid var(--linha); display: grid; place-items: center; overflow: hidden; }
.pcard-foto img { width: 100%; height: 100%; object-fit: cover; }
.pcard-ini { font-size: 24px; font-weight: 300; letter-spacing: -.02em; color: #b9bcc3; }
.pcard-fav { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: var(--sombra); display: grid; place-items: center; }
.pcard-fav .ic { width: 12px; height: 12px; color: #e11d48; fill: #e11d48; }
.pcard-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pcard-nome { font-weight: 500; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard-cod { font-family: var(--fonte-mono); font-size: 11.5px; color: var(--muted); }
.pcard-preco { font-size: 15px; font-weight: 500; color: var(--texto); margin-top: auto; padding-top: 6px; font-variant-numeric: tabular-nums; }
.pcard-preco small { font-size: 12px; font-weight: 400; color: var(--muted); }

/* lista: linhas largas num cartão de borda fina, como o catálogo do Polar */
.plista { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--borda); border-radius: var(--raio-lg); overflow: hidden; }
.plinha { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--linha); text-align: left; transition: background .1s; }
.plinha:last-child { border-bottom: none; }
.plinha:hover { background: var(--surface-2); }
.plinha-foto { width: 40px; height: 40px; border-radius: var(--raio); background: var(--surface-2); border: 1px solid var(--borda); color: var(--muted); display: grid; place-items: center; font-weight: 500; font-size: 12px; overflow: hidden; }
.plinha-foto img { width: 100%; height: 100%; object-fit: cover; }
.plinha-nome { display: flex; flex-direction: column; min-width: 0; }
.plinha-nome b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plinha-nome small { font-family: var(--fonte-mono); color: var(--muted); font-size: 11.5px; }
.plinha-est { font-size: 13px; color: var(--muted); white-space: nowrap; }
.plinha-preco { font-weight: 500; font-size: 14px; min-width: 90px; text-align: right; color: var(--texto); font-variant-numeric: tabular-nums; }

/* a venda: coluna à direita, separada por uma linha fina */
.pdv-venda {
  display: flex; flex-direction: column; min-height: 0; position: relative;
  background: var(--surface); border-left: 1px solid var(--linha);
}
.pdv-pessoas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); border-bottom: 1px solid var(--linha); }
.pessoa { display: flex; align-items: center; gap: 10px; padding: 14px 16px; text-align: left; min-width: 0; transition: background .1s; }
.pessoa + .pessoa { border-left: 1px solid var(--linha); }
.pessoa:hover { background: var(--surface-2); }
.pessoa > .ic { width: 16px; height: 16px; color: var(--muted); }
.pessoa-txt { display: flex; flex-direction: column; min-width: 0; }
.pessoa-txt small { font-size: 12px; color: var(--muted); }
.pessoa-txt b { font-size: 14px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--placeholder); }
.pessoa.definido b { color: var(--texto); font-weight: 500; }
.pessoa.definido > .ic { color: var(--texto); }
.pdv-itens { flex: 1; overflow-y: auto; min-height: 0; }
.vitem {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 6px; row-gap: 8px;
  padding: 14px 12px 14px 18px; border-bottom: 1px solid var(--linha); align-items: center;
}
.vitem.flash { animation: destacar .9s; }
@keyframes destacar { from { background: var(--surface-2); } to { background: transparent; } }
.vitem-nome { text-align: left; font-weight: 500; font-size: 14px; line-height: 1.3; }
.vitem-nome:hover { text-decoration: underline; text-underline-offset: 3px; }
.vitem-total { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vitem-rm { width: 28px; height: 28px; }
.vitem-rm .ic { width: 15px; height: 15px; }
.vitem-rm:hover { color: var(--perigo-txt); background: var(--perigo-soft); }
.vitem-ctrl { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.qbtn { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--bg); color: var(--texto); transition: background .12s; }
.qbtn:hover { background: var(--hover-2); }
.qbtn .ic { width: 14px; height: 14px; }
.vitem-qtd {
  width: 52px; height: 28px; padding: 0 4px; text-align: center; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums;
  border: 1px solid var(--borda-campo); border-radius: 8px; background: var(--campo); color: var(--texto); outline: none; cursor: text;
}
.vitem-qtd:hover { border-color: var(--borda-hover); }
.vitem-qtd:focus { border-color: #9db5ef; box-shadow: 0 0 0 3px #e2eafb; }
.vazio-venda { height: 100%; }
.vazio-venda p { font-size: 18px; }
.vazio-venda small { max-width: 220px; }
.pdv-rodape { border-top: 1px solid var(--linha); padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.pdv-totais .tl { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 1px 0; font-variant-numeric: tabular-nums; }
.pdv-totais .tl-desc { color: var(--perigo-txt); }
.pdv-acoes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.pdv-acoes .btn { padding: 0 8px; gap: 6px; font-size: 13px; }
/* cobrar: a pílula preta grande */
.btn-cobrar {
  position: relative; overflow: hidden; height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px;
  background: var(--barra); color: var(--no-barra);
  font-weight: 500; font-size: 15px;
  transition: background .12s;
}
.btn-cobrar span { display: flex; align-items: center; gap: 8px; }
.btn-cobrar strong { font-size: 20px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn-cobrar:hover { background: var(--barra-hover); }
.btn-cobrar:active { background: #3f3f46; }
.btn-cobrar:disabled { background: var(--bg); color: var(--placeholder); cursor: not-allowed; }
.btn-cobrar:disabled kbd { background: rgba(0, 0, 0, .05); }

.centro-vertical { min-height: 100%; display: grid; place-items: center; }
.caixa-fechado { max-width: 430px; width: 100%; padding: 34px 30px; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.caixa-fechado .campo { text-align: left; }
.caixa-fechado h2 { font-weight: 600; font-size: 20px; }
.caixa-fechado-esq { margin-bottom: 16px; }
.cf-icone {
  position: relative; width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 4px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--texto); box-shadow: inset 0 0 0 1px var(--borda);
}
.cf-icone .ic { width: 30px; height: 30px; }

/* Pagamento */
.pg-total { text-align: center; padding: 4px 0 2px; }
.pg-total small { color: var(--muted); font-size: 13px; font-weight: 500; display: block; margin-bottom: 2px; }
.pg-total strong { font-size: 40px; font-weight: 300; color: var(--texto); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pg-formas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pg-forma {
  border: 1px solid var(--borda); border-radius: var(--raio-lg); padding: 14px 6px; display: flex; flex-direction: column; align-items: center;
  gap: 8px; font-weight: 500; font-size: 13px; color: var(--texto-2); background: var(--surface);
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.pg-forma .ic { width: 22px; height: 22px; }
.pg-forma:hover { background: var(--surface-2); border-color: var(--borda-hover); }
.pg-forma.on { background: var(--surface); color: var(--texto); border-color: var(--texto); box-shadow: inset 0 0 0 1px var(--texto); }
.pg-entrada { display: flex; gap: 10px; align-items: flex-end; }
.pg-entrada .btn-grande { height: 56px; }
.pg-entrada.desativado { opacity: .45; }
.pg-rapidos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -4px; }
.pg-rapidos:empty, .pg-lista:empty, .pg-resumo:empty { display: none; }
.pg-lista { display: flex; flex-direction: column; border: 1px solid var(--borda); border-radius: var(--raio-lg); background: var(--surface); }
.pg-item { display: grid; grid-template-columns: 20px 1fr auto 34px; gap: 10px; align-items: center; padding: 6px 6px 6px 14px; border-bottom: 1px solid var(--linha); font-size: 14px; }
.pg-item:last-child { border-bottom: none; }
.pg-item > .ic { width: 18px; height: 18px; color: var(--muted); }
.pg-item b { font-variant-numeric: tabular-nums; }
/* maquininha integrada: escolha na janela de pagamento, linha aprovada e a espera */
.pg-maq { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--raio-lg);
  background: var(--bg); border: 1px solid transparent; }
.pg-maq .campo { margin: 0; min-width: 140px; }
.pg-item small { display: block; color: var(--texto-2); font-size: 11.5px; margin-top: 1px; }
.pg-item-maq { background: var(--bg); }
/* ficha do produto: estoque com defeito */
.ficha-defeito { margin-bottom: 12px; }
.ficha-defeito > div { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fd-linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fd-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
/* NFC-e: ficha da nota e o botão no fim da venda */
.nota-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.nota-chave { font-size: 13px; word-break: break-all; padding: 6px 0; }
.nota-eventos { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--texto-2); }
.sucesso-nota { margin-top: 10px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.nota-dest { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, rgba(0, 0, 0, .024)); margin-bottom: 10px; }
.nota-dest > .ic { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.nota-dest small { display: block; color: var(--texto-2); font-size: 12px; margin-top: 2px; }
.nota-esperando { display: flex; align-items: center; gap: 6px; }
.nota-devs { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--borda-forte); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.nota-devs > b { display: flex; align-items: center; gap: 6px; }
.nota-devs > b .ic { width: 16px; height: 16px; color: var(--muted); }
.nota-dev { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.nota-dest .btn-mini { margin-top: 6px; }
.sucesso-nota-dev { font-size: 12.5px; }
.nota-esperando .ic { width: 15px; height: 15px; animation: girar 1.2s linear infinite; }
.sucesso-nota .btn .badge { margin-left: 4px; }
/* Ajustes: nota fiscal */
.notaf-situacao { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; font-size: 13px; }
.notaf-loja { max-width: 320px; }
.notaf-mais summary { cursor: pointer; font-size: 13px; color: var(--texto-2); margin: 4px 0; }
.notaf-mais .grid2 { margin-top: 8px; }
/* vale-crédito no cadastro do cliente */
.vale-cli { margin-top: 12px; padding: 10px 14px; border: 1px solid var(--borda-forte); border-radius: 12px; background: var(--bg); }
.vale-cli summary { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.vale-cli summary .ic { width: 16px; height: 16px; color: var(--muted); }
.vale-cli table { margin-top: 8px; }
/* devolução e troca: item com defeito */
.dv-itens td .input { max-width: 110px; margin-left: auto; }
.dv-itens td small { display: block; }
.dv-defeito { font-size: 12.5px; white-space: nowrap; }
.dv-dica { font-size: 12.5px; display: flex; gap: 6px; align-items: flex-start; }
.dv-dica .ic { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.pg-sobra-nota { flex-basis: 100%; }
/* troca: a sobra do crédito volta ao cliente */
.pg-sobra { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--borda-forte); border-radius: 12px; background: var(--bg); font-size: 14px; }
.pg-sobra > .ic { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.pg-sobra > span { flex: 1 1 220px; }
.pg-sobra .campo { margin: 0; min-width: 150px; }
.troca-credito { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.troca-credito b { font-size: 20px; color: var(--texto); font-variant-numeric: tabular-nums; }
.pg-item-maq > .ic { color: var(--muted); }
.maq-espera { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 4px 2px; }
.maq-espera h3 { margin: 6px 0 0; font-size: 19px; }
.maq-icone { width: 64px; height: 64px; border-radius: var(--raio-xl); display: grid; place-items: center; background: var(--menta-soft);
  border: 1px solid var(--borda); color: var(--texto); animation: maq-pulso 1.6s ease-in-out infinite; }
.maq-icone .ic { width: 30px; height: 30px; }
@keyframes maq-pulso { 50% { transform: scale(1.05); } }
.maq-valor { margin: 2px 0 0; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.maq-valor small { display: block; font-size: 13px; font-weight: 600; color: var(--texto-2); }
.maq-status { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--texto-2); font-size: 13.5px; }
.maq-status .ic { width: 16px; height: 16px; }
.maq-demorou { width: 100%; margin-top: 10px; padding: 12px; border-radius: var(--raio-lg); background: var(--bico-soft); border: 1px solid var(--bico-borda); color: var(--bico-txt); font-size: 13px; }
.maq-demorou p { margin: 0 0 10px; }
.ic-girar { animation: girar 1s linear infinite; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.pg-falta, .pg-troco { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: var(--raio-lg); font-weight: 500; border: 1px solid transparent; }
.pg-falta { background: var(--bico-soft); border-color: var(--bico-borda); color: var(--bico-txt); }
.pg-troco { background: var(--menta-soft); border-color: var(--menta-borda); color: var(--menta-txt); }
.pg-falta strong, .pg-troco strong { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.modal-pagto .modal-foot .btn-sucesso { font-size: 14px; }

.sucesso { text-align: center; padding: 12px 0 2px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sucesso-icone {
  position: relative; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 10px; display: grid; place-items: center;
  background: var(--menta); color: var(--no-menta); box-shadow: 0 0 0 6px var(--menta-soft-2);
  animation: surgir .5s var(--ease-mola) both;
}
.sucesso-icone .ic { width: 32px; height: 32px; stroke-width: 2.6; }
@keyframes surgir { from { transform: scale(.4); opacity: 0; } }
.sucesso h3 { font-weight: 600; font-size: 20px; }
.sucesso-troco { margin-top: 12px; background: var(--menta-soft); border: 1px solid var(--menta-borda); color: var(--menta-txt); border-radius: var(--raio-lg); padding: 10px 32px; display: flex; flex-direction: column; }
.sucesso-troco strong { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ei-total { font-size: 14px; color: var(--texto-2); }

/* ---------- Produtos ---------- */
.form-produto { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; }
.fp-lado { display: flex; flex-direction: column; gap: 12px; }
.foto-box {
  aspect-ratio: 1; width: 100%; border: 1.5px dashed var(--borda-forte); border-radius: var(--raio-lg); overflow: hidden;
  display: grid; place-items: center; background: rgba(0, 0, 0, .012); color: var(--muted); transition: border-color .2s, background .2s;
}
.foto-box:hover { border-color: var(--borda-hover); background: var(--bg); }
.foto-box img { width: 100%; height: 100%; object-fit: cover; }
.foto-vazia { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; }
.foto-vazia .ic { width: 28px; height: 28px; stroke-width: 1.5; color: #b9bcc3; }
.foto-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-campos { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.imp-mapa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.imp-opcoes { display: flex; flex-direction: column; gap: 10px; }
.imp-titulo { font-size: 14px; }
.imp-previa { border: 1px solid var(--borda); border-radius: var(--raio-lg); max-height: 260px; overflow: auto; padding: 0 12px; background: var(--surface-2); }

.cores { display: flex; gap: 8px; flex-wrap: wrap; }
.cor-opcao { position: relative; cursor: pointer; }
.cor-opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cor-opcao span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--cor); border: 3px solid transparent; transition: transform .2s var(--ease-mola); }
.cor-opcao:hover span { transform: scale(1.08); }
.cor-opcao input:checked + span { border-color: #fff; box-shadow: 0 0 0 2px var(--texto); }
.cor-opcao input:focus-visible + span { outline: 2px solid var(--foco); outline-offset: 3px; }
.cor-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--cor); margin-right: 8px; vertical-align: -1px; }

/* ---------- Caixa ---------- */
.caixa-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; flex-wrap: wrap; margin-bottom: 16px; }
.caixa-cab-info { display: flex; align-items: center; gap: 14px; }
.caixa-cab-info b, .caixa-cab-info small { display: block; }
.caixa-cab-info small { font-size: 13px; }
.caixa-cab-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.conta { display: flex; flex-direction: column; }
.conta-linha { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--borda-forte); font-size: 14px; }
.conta-linha span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.conta-sub { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--texto-2); margin-top: 2px; }
.conta-sub .ic { width: 13px; height: 13px; color: var(--muted); }
.conta-total { border-bottom: none; font-size: 16px; font-weight: 600; padding-top: 12px; }
.conta-total span:last-child { color: var(--menta-txt); }
.movs { display: flex; flex-direction: column; }
.mov { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--linha); }
.mov:last-child { border-bottom: none; }
.mov small { display: block; }
.mov-icone { width: 34px; height: 34px; border-radius: var(--raio); display: grid; place-items: center; }
.mov-icone.sangria { background: var(--perigo-soft); color: var(--perigo-txt); }
.mov-icone.suprimento { background: var(--menta-soft); color: var(--menta-txt); }
.mov-valor { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.conf td { vertical-align: middle; }
.conf td .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; color: var(--muted); }
.input-conf { width: 124px; height: 38px; text-align: right; margin-left: auto; }

/* ---------- Vendas / Início / Ajustes ---------- */
.det-cab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: rgba(0, 0, 0, .018); border: 1px solid var(--borda); border-radius: var(--raio-lg); padding: 13px 16px; }
.det-cab small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.aviso-caixa { display: flex; align-items: center; gap: 11px; padding: 13px 18px; border-radius: var(--raio-lg); font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.aviso-caixa.aberto { background: var(--bg); border-color: transparent; color: var(--texto); }
.aviso-caixa.fechado { background: var(--bico-soft); border-color: rgba(255, 181, 71, .22); color: var(--bico-txt); }
.aviso-caixa a { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 13px; }
.aviso-caixa a .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.aviso-caixa a:hover .ic { transform: translateX(3px); }
.lista-simples .ls-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linha); font-size: 14px; }
.lista-simples .ls-item:last-child { border-bottom: none; }
.link { display: inline-flex; align-items: center; gap: 3px; margin-top: 12px; color: var(--link); font-weight: 500; text-decoration: none; font-size: 13.5px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link:hover .ic { transform: translateX(3px); }
.conexao { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: var(--raio-lg); margin-bottom: 10px; border: 1px solid transparent; }
.conexao small { display: block; font-size: 13px; opacity: .9; }
.conexao.ok { background: var(--bg); border-color: transparent; color: var(--texto); }
.conexao.demo { background: var(--bico-soft); border-color: rgba(255, 181, 71, .22); color: var(--bico-txt); }
.atalhos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px 16px; font-size: 14px; color: var(--texto-2); }

/* ---------- Login e erros ---------- */
.tela-central { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; }
.cartao-central { width: 100%; max-width: 420px; padding: 32px 30px; display: flex; flex-direction: column; gap: 16px; position: relative; animation: entrar .6s var(--ease) both; }
.cartao-central h1 { font-weight: 600; font-size: 20px; color: var(--texto); }
.cartao-central .eyebrow { margin-bottom: -6px; }
.login-logo { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.login-logo .logo-pato { width: 40px; height: 40px; }
.login-logo .marca { font-size: 24px; }
.tela-login {
  grid-template-columns: minmax(0, 560px) minmax(0, 420px); justify-content: center; align-items: center;
  gap: clamp(32px, 7vw, 110px); padding: 40px clamp(20px, 5vw, 80px); overflow: hidden;
  background: var(--bg);
}
.tela-login .cartao-central {
  background: var(--surface); box-shadow: var(--sombra-lg); border-radius: var(--raio-xl); animation-delay: .1s;
}
.login-hero { display: flex; flex-direction: column; gap: 22px; animation: entrar .7s var(--ease) both; }
.login-hero .login-logo .logo-pato { width: 48px; height: 48px; }
.login-hero .login-logo .marca { font-size: 26px; }
.login-titulo { font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -.025em; color: var(--texto); text-wrap: balance; }
.login-titulo span { display: block; color: var(--muted); }
.login-lista { list-style: none; display: flex; flex-direction: column; gap: 13px; border-top: 1px solid var(--borda); padding-top: 22px; }
.login-lista li { display: flex; gap: 14px; align-items: baseline; color: var(--texto-2); font-size: 14.5px; }
.login-lista b { font-family: var(--fonte-mono); font-size: 12px; font-weight: 600; color: var(--muted); }
.erro-box { display: flex; gap: 10px; align-items: flex-start; background: var(--perigo-soft); border: 1px solid var(--perigo-borda); color: var(--perigo-txt); padding: 12px 14px; border-radius: var(--raio-lg); }
.erro-box .ic { width: 20px; height: 20px; color: var(--perigo); }
.erro-box p { margin-top: 4px; font-size: 14px; }

/* ---------- Impressão (cupom 80mm) ---------- */
#print-area { display: none; }
.cupom { width: 72mm; font-family: ui-monospace, 'Courier New', monospace; font-size: 11.5px; color: #000; line-height: 1.35; }
.c-centro { text-align: center; }
.c-loja { font-size: 14px; font-weight: 600; }
.c-forte { font-weight: 600; }
.c-sep { border-top: 1px dashed #000; margin: 6px 0; }
.c-linha { display: flex; justify-content: space-between; gap: 8px; }
.c-item { margin-top: 3px; }
.c-sub { padding-left: 10px; font-size: 10.5px; }
.c-total { font-size: 14px; font-weight: 600; margin: 3px 0; }
@media print {
  html, body { height: auto; background: #fff !important; color: #000; }
  body::before { display: none; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; }
}

/* ---------- Cadastro completo do produto ---------- */
.modal-produto .modal-body { gap: 16px; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 14px; }
.c3 { grid-column: span 3; }
.c4 { grid-column: span 4; }
.c6 { grid-column: span 6; }
.c8 { grid-column: span 8; }
.fp { display: flex; flex-direction: column; gap: 16px; }
.fp-cabecalho { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; }
.fp-foto { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.fp-foto .foto-box { width: 132px; }
.foto-acoes { justify-content: center; }
.link-btn { font-size: 12.5px; font-weight: 600; color: var(--texto-2); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--menta-txt); }
.link-btn.txt-perigo { color: var(--perigo-txt); }

.abas { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 4px; }
.abas::-webkit-scrollbar { display: none; }
.aba {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; margin: 4px 0; border-radius: 999px; font-weight: 400; font-size: 14px; color: var(--muted);
  white-space: nowrap; transition: color .12s, background .12s;
}
.aba .ic { width: 15px; height: 15px; }
.aba:hover { color: var(--texto); }
.aba.on { color: var(--texto); font-weight: 500; background: var(--bg); }
.aba-painel { display: flex; flex-direction: column; gap: 14px; min-height: 280px; animation: entrar .35s var(--ease); }

.fp-colunas { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.25fr) minmax(0, .9fr); gap: 14px; align-items: start; }
.fp-bloco { background: rgba(0, 0, 0, .015); border: 1px solid var(--borda); border-radius: var(--raio-lg); padding: 15px 16px; display: flex; flex-direction: column; gap: 9px; }
.fp-bloco h4 { font-size: 14px; font-weight: 500; color: var(--texto); margin-bottom: 4px; }
.input-destaque { font-size: 17px; font-weight: 600; height: 44px; }
.pct-linha label { color: var(--texto-2); }
.fp-total, .fp-info {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px;
  border-top: 1px solid var(--borda); padding-top: 9px;
}
.fp-total strong { font-size: 20px; }
.fp-info strong { font-size: 15px; margin-left: auto; font-variant-numeric: tabular-nums; }
.fp-info .btn { margin-left: 4px; }
.fp-despesas summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--texto-2); padding: 2px 0; }
.fp-despesas summary:hover { color: var(--menta-txt); }
.fp-despesas summary small { font-weight: 600; color: var(--muted); }
.fp-despesas[open] summary { margin-bottom: 8px; }
.fp-despesas .pct-linha + .pct-linha { margin-top: 7px; }
.precos-cab { font-size: 12px; font-weight: 500; color: var(--muted); border-top: 1px solid var(--borda); padding-top: 10px; }
.precos-cab span:not(:first-child) { text-align: right; }
.preco-linha label { font-size: 13px; color: var(--texto-2); }
.preco-principal label { font-weight: 600; color: var(--texto); }
.fp-alerta { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--perigo-txt); background: var(--perigo-soft); border: 1px solid rgba(255, 92, 108, .22); padding: 8px 11px; border-radius: 12px; }
.fp-alerta .ic { width: 15px; height: 15px; margin-top: 1px; }
.estoque-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border: 1px solid var(--borda); border-radius: var(--raio-lg); padding: 10px 12px; }
.estoque-box small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.estoque-box strong { font-size: 24px; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.estoque-box span { color: var(--muted); font-weight: 600; }
.fp-datas { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); }
.fp-datas b { color: var(--texto-2); font-weight: 600; }
.fp-checks { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--borda); padding-top: 11px; }
.fp-checks .check { font-size: 13.5px; }
.fp-sub { font-size: 14px; }
.fp-sub small { font-weight: 600; }
.ficha { max-height: 420px; overflow: auto; }
.aj-prev { font-size: 14px; min-height: 20px; }
.ei-tabelas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ei-tabelas > span { font-size: 12.5px; margin-right: 2px; }

/* ---------- Formulário do produto: campos com R$ e % (todos editáveis) ---------- */
.campo-prefixo, .campo-sufixo { position: relative; display: flex; align-items: center; min-width: 0; }
.campo-prefixo > span, .campo-sufixo > span {
  position: absolute; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 600; color: var(--muted); pointer-events: none; white-space: nowrap;
}
.campo-prefixo > span { left: 9px; }
.campo-sufixo > span { right: 9px; }
.campo-prefixo > .input { padding-left: 28px; text-align: right; width: 100%; }
.campo-sufixo > .input { padding-right: 22px; text-align: right; width: 100%; }
.pct-linha { display: grid; grid-template-columns: minmax(0, 1fr) 82px 94px; gap: 7px; align-items: center; font-size: 13px; }
.pct-linha > label { color: var(--texto-2); line-height: 1.2; }
.pct-linha .input, .preco-linha .input, .fp-linha-total .input { height: 32px; font-size: 13.5px; border-radius: var(--raio); padding-top: 0; padding-bottom: 0; }
.input-rs { color: var(--texto-2); }
.fp-linha-total { display: grid; grid-template-columns: minmax(0, 1fr) 124px; gap: 7px; align-items: center; font-size: 14px; border-top: 1px solid var(--borda); padding-top: 9px; }
.fp-linha-total:has(> .btn) { grid-template-columns: minmax(0, 1fr) 124px auto; }
.fp-linha-total > label { font-weight: 600; color: var(--texto); }
.fp-total-forte .input { font-weight: 600; font-size: 15px; height: 36px; color: var(--menta-txt); }
.fp-auditoria { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px; border-top: 1px dashed var(--borda-forte); padding-top: 10px; }
.fp-auditoria .input { height: 34px; font-size: 13px; }
.precos-cab, .preco-linha { display: grid; grid-template-columns: minmax(64px, 1fr) 100px 74px 90px; gap: 7px; align-items: center; }
.preco-principal .campo-prefixo:first-of-type > .input { font-weight: 600; font-size: 15px; border-color: var(--menta-borda); color: var(--menta-txt); }
.preco-linha .input-rs.txt-perigo { color: var(--perigo-txt); }
.fp-estoque-linha { display: flex; gap: 8px; align-items: flex-end; }
.fp-mini { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.fp-nota { font-size: 12.5px; margin-top: -4px; }
.fp-stats { margin-top: 6px; }
.fp-foto .foto-box { width: 104px; }
.fp-cabecalho { grid-template-columns: 104px minmax(0, 1fr); }
.fp-foto-aba { display: flex; gap: 18px; align-items: flex-start; }
.fp-foto-grande { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.fp-foto-grande .foto-box { width: 260px; }
.modal-produto .aba { padding: 10px 9px; font-size: 12.5px; gap: 5px; }
.modal-produto .aba .ic { width: 15px; height: 15px; }
.fp-barra { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-bottom: 13px; border-bottom: 1px solid var(--borda); }
.fp-nav { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fp-nav .btn { width: 34px; height: 34px; }
.c2 { grid-column: span 2; }
.c12 { grid-column: 1 / -1; }
.barra-ferramentas { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 16px; }
.pq-total { font-size: 14px; color: var(--texto-2); }

/* Gestor de preços / balanço / etiquetas */
.modal-ferramenta .modal-body { gap: 12px; }
.gp-regra { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: rgba(0, 0, 0, .015); border: 1px solid var(--borda); border-radius: var(--raio-lg); padding: 13px 15px; }
.gp-tabela, .bl-tabela { border: 1px solid var(--borda); border-radius: var(--raio-lg); max-height: 48vh; }
.gp-tabela .tabela th, .bl-tabela .tabela th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; }
.gp-tabela .tabela th:first-child, .gp-tabela .tabela td:first-child, .bl-tabela .tabela th:first-child, .bl-tabela .tabela td:first-child { padding-left: 14px; }
.gp-tabela .tabela th:last-child, .gp-tabela .tabela td:last-child, .bl-tabela .tabela th:last-child, .bl-tabela .tabela td:last-child { padding-right: 14px; }
.gp-novo { width: 104px; height: 32px; text-align: right; font-weight: 600; margin-left: auto; color: var(--menta-txt); }
.gp-igual td { color: var(--muted); }
.gp-igual .gp-novo { font-weight: 500; color: var(--texto-2); }
.bl-leitor { display: flex; gap: 14px; align-items: center; }
.bl-qtd { width: 96px; height: 32px; text-align: right; font-weight: 600; margin-left: auto; }
.bl-contado td { background: rgba(41, 132, 90, .06); }
.bl-tabela tr.flash td { animation: destacar .9s; }
.bl-so { align-self: center; }
.etq-mostrar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.etq-qtd { width: 72px; height: 32px; text-align: right; margin-left: auto; }

/* Conferência da nota: campos editáveis */
.nf-nome { height: 32px; font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.nf-qtd-campo { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.nf-qtd-campo .input { width: 76px; height: 32px; text-align: right; }
.nf-custo .campo-prefixo, .nf-preco .campo-prefixo { width: 112px; margin-left: auto; }
.nf-custo-input, .nf-preco-input { height: 32px; font-weight: 600; }
.nf-preco small { display: block; font-size: 11.5px; }

/* Etiquetas impressas */
.etq-impressao { color: #000; font-family: Arial, Helvetica, sans-serif; }
.etq-folha { width: 210mm; height: 297mm; padding: 12.7mm 4.8mm 0; box-sizing: border-box; display: grid; grid-template-columns: repeat(3, 66.7mm);
  grid-auto-rows: 25.4mm; column-gap: 3.2mm; break-after: page; }
.etq { box-sizing: border-box; overflow: hidden; padding: 1.6mm 2.2mm; display: flex; flex-direction: column; gap: .6mm; }
.etq-nome { font-size: 7.5pt; font-weight: 600; line-height: 1.15; max-height: 2.35em; overflow: hidden; }
.etq-meio { display: flex; align-items: flex-end; justify-content: space-between; gap: 2mm; margin-top: auto; }
.etq-meio svg { height: 11mm; max-width: 40mm; }
.etq-preco { font-size: 14pt; font-weight: 600; white-space: nowrap; line-height: 1; }
.etq-cod { font-size: 6.5pt; }
.etq-det { font-size: 6.5pt; font-weight: 600; line-height: 1.15; max-height: 1.2em; overflow: hidden; }
.etq-preco small { font-size: 55%; font-weight: 600; }
.etq-termica { width: 40mm; height: 25mm; break-after: page; padding: 1.2mm 1.6mm; }
.etq-termica .etq-nome { font-size: 7pt; }
.etq-termica .etq-preco { font-size: 11pt; }
.etq-termica .etq-meio svg { height: 9mm; max-width: 24mm; }
.etq-t6040 { width: 60mm; height: 40mm; padding: 2mm 2.5mm; }
.etq-t6040 .etq-nome { font-size: 9pt; }
.etq-t6040 .etq-preco { font-size: 16pt; }
.etq-t6040 .etq-meio svg { height: 14mm; max-width: 34mm; }

/* ---------- Entrada por nota fiscal ---------- */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; cursor: pointer;
  border: 1px dashed var(--borda-hover); border-radius: var(--raio-lg); padding: 32px 20px;
  background: var(--surface);
  transition: border-color .12s, background .12s;
}
.dropzone:hover, .dropzone.arrastando, .dropzone.destaque {
  border-color: var(--foco); background: var(--info-soft);
}
.dropzone strong { font-size: 14px; font-weight: 500; }
.dropzone .muted { font-size: 13.5px; max-width: 520px; }
.dz-icone {
  position: relative; width: 58px; height: 58px; border-radius: 50%; margin-bottom: 6px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--texto-2); border: 1px solid var(--borda);
}
.dz-icone .ic { width: 26px; height: 26px; transition: transform .3s var(--ease-mola); }
.dropzone:hover .dz-icone .ic { transform: translateY(-3px); }
.passos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: passo; }
.passos li {
  counter-increment: passo; position: relative; background: var(--surface); border: 1px solid var(--borda);
  border-radius: var(--raio-lg); padding: 13px 15px 13px 58px; font-size: 13.5px; color: var(--texto-2);
}
.passos li::before {
  content: counter(passo); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--borda); font-size: 12px; font-weight: 500; color: var(--texto);
}
.passos b { color: var(--texto); }

.modal-nf .modal-body { gap: 14px; }
.nf-cab { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; background: rgba(0, 0, 0, .015); border: 1px solid var(--borda); border-radius: var(--raio-lg); padding: 13px 17px; }
.nf-cab-info { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.nf-cab-info small, .nf-chave small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 1px; }
.nf-forn { display: flex; flex-direction: column; gap: 2px; }
.nf-forn .badge { align-self: flex-start; margin-top: 4px; }
.nf-chave { text-align: right; }
.nf-chave .mono { font-size: 11.5px; color: var(--texto-2); }
.nf-opcoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 12px; align-items: end; }
.nf-check { align-self: center; }
.nf-checks { display: flex; flex-direction: column; gap: 9px; align-self: center; }
.nf-checks .check { font-size: 13.5px; }
.nf-tabela { border: 1px solid var(--borda); border-radius: var(--raio-lg); }
.nf-tabela .tabela th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; padding-top: 11px; }
.nf-tabela .tabela th:first-child, .nf-tabela .tabela td:first-child { padding-left: 14px; }
.nf-tabela .tabela th:last-child, .nf-tabela .tabela td:last-child { padding-right: 14px; }
.nf-tabela td { vertical-align: top; }
.nf-prod b { display: block; font-weight: 600; font-size: 13.5px; }
.nf-prod small, .nf-custo small, .nf-emb small, .nf-motivo { display: block; font-size: 11.5px; }
.nf-fator { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.nf-fator .input { width: 58px; height: 32px; padding: 0 6px; text-align: right; }
.nf-acao { min-width: 250px; }
.nf-acao .input { height: 34px; font-size: 13px; }
.nf-motivo { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--menta-txt); }
.nf-motivo.novo { color: var(--bico-txt); }
.nf-motivo .ic { width: 13px; height: 13px; }
/* entrada: unidade diferente, conversão e quantidade fora do padrão */
.nf-avisos:empty { display: none; }
.nf-avisos { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.nf-aviso { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--raio); font-size: 12.5px; line-height: 1.35; border: 1px solid; }
.nf-aviso > .ic { width: 15px; height: 15px; flex-shrink: 0; }
.nf-aviso > span { flex: 1; }
.nf-aviso small { display: block; margin-top: 2px; opacity: .85; }
.nf-aviso .btn { flex-shrink: 0; }
.nf-aviso.amarelo { color: var(--bico-txt); background: var(--bico-soft); border-color: var(--bico-borda); }
.nf-aviso.menta { color: var(--texto); background: var(--bg); border-color: transparent; }
.nf-aviso.vermelho { color: var(--perigo-txt); background: var(--perigo-soft); border-color: var(--perigo-borda); }
tr.nf-alerta > td { background: rgba(255, 92, 108, .04); }
.nf-renomear { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11.5px; color: var(--bico-txt); }
.nf-renomear .ic { width: 12px; height: 12px; }
.fp-nomes-forn ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fp-nomes-forn li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--borda); border-radius: var(--raio); }
.fp-nomes-forn small { font-size: 11.5px; }
.nf-vender { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.nf-vender small { color: var(--muted); white-space: nowrap; }
.nf-vender .input { height: 30px; padding: 0 8px; width: auto; }
.nf-conf { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.nf-conf-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--perigo-borda); border-radius: 12px; cursor: pointer; }
.nf-conf-item:has(input:checked) { border-color: var(--texto); background: var(--surface-2); }
.nf-conf-item input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--barra-2); }
.nf-conf-item > span { display: flex; flex-direction: column; gap: 3px; }
.nf-conf-item small { font-size: 12.5px; }
.nf-conf-ok { font-size: 12px; font-weight: 600; color: var(--muted); }
.nf-conf-item:has(input:checked) .nf-conf-ok { color: var(--texto); }
/* ajuste de estoque: conferir de novo e contar em peças ou caixas */
.aj-conf { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--perigo-soft); border: 1px solid var(--perigo-borda); color: var(--perigo-txt); font-size: 13px; }
.aj-conf .input { margin-top: 8px; }
.aj-contar { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.nf-preco-input { width: 104px; height: 34px; text-align: right; font-weight: 600; margin-left: auto; }
.nf-grupo { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.nf-grupo .input { height: 30px; font-size: 12.5px; }
.nf-ignorado td { opacity: .4; }
.nf-ignorado td.nf-acao { opacity: 1; }
.riscado { text-decoration: line-through; }
.nf-resumo { font-size: 13.5px; color: var(--texto-2); }

/* ---------- Nota fiscal: totais, impostos e painel de cada item ---------- */
.nf-totais {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  background: var(--surface); border: 1px solid var(--borda); border-radius: var(--raio-lg); overflow: hidden;
}
.nf-tot { padding: 9px 13px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; box-shadow: 1px 0 0 var(--borda), 0 1px 0 var(--borda); }
.nf-tot small { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-tot b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nf-tot-forte { background: var(--surface-2); }
.nf-tot-forte small { color: var(--menta-txt); }
.nf-tot-forte b { color: var(--texto); font-size: 16px; }
.nf-extras { display: flex; flex-direction: column; gap: 8px; }
.nf-extra { border: 1px solid var(--borda); border-radius: var(--raio-lg); background: rgba(0, 0, 0, .012); transition: border-color .2s; }
.nf-extra[open] { border-color: var(--borda-forte); }
.nf-extra > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 9px; padding: 10px 14px; font-weight: 600; font-size: 13.5px; }
.nf-extra > summary::-webkit-details-marker { display: none; }
.nf-extra > summary .ic { width: 16px; height: 16px; color: var(--muted); }
.nf-extra > summary small { color: var(--muted); font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-extra > summary::after { content: '+'; margin-left: auto; font-size: 18px; line-height: 1; color: var(--muted); }
.nf-extra[open] > summary::after { content: '−'; }
.nf-extra > :not(summary) { margin: 0 14px 12px; }
.nf-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 9px 14px; }
.nf-dl dt { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 1px; }
.nf-dl dd { font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.nf-dd-largo { grid-column: span 2; }
.nf-dd-todo { grid-column: 1 / -1; }
.nf-dados { display: flex; flex-direction: column; gap: 11px; }
.nf-grupo-dados + .nf-grupo-dados { border-top: 1px dashed var(--borda-forte); padding-top: 11px; }
.nf-grupo-dados h5 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--texto); margin-bottom: 8px; }
.nf-grupo-dados h5::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--muted); }
.nf-inf, .nf-inf-item { font-size: 12.5px; line-height: 1.5; color: var(--texto-2); }
.nf-inf-item { display: flex; gap: 7px; align-items: flex-start; background: rgba(0, 0, 0, .018); border-radius: var(--raio); padding: 8px 10px; }
.nf-inf-item .ic { width: 15px; height: 15px; color: var(--muted); margin-top: 2px; }
.nf-dups { margin-top: 6px; }
.nf-pag { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.nf-itens-topo { display: flex; align-items: center; gap: 12px; }
.nf-itens-topo .secao-titulo { flex: 1; margin: 8px 0 0; }
.nf-n { width: 58px; }
.nf-toggle {
  display: inline-flex; align-items: center; gap: 3px; padding: 5px 7px 5px 3px; border-radius: var(--raio);
  color: var(--texto-2); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; transition: background .15s, color .15s;
}
.nf-toggle .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nf-toggle:hover { background: var(--bg); color: var(--texto); }
.nf-toggle.aberto { color: var(--menta-txt); }
.nf-toggle.aberto .ic { transform: rotate(90deg); color: var(--muted); }
.nf-imp-resumo {
  display: flex; align-items: center; gap: 5px; margin-top: 4px; padding: 0; text-align: left;
  font-size: 11.5px; font-weight: 600; color: var(--menta-txt); opacity: .9;
}
.nf-imp-resumo .ic { width: 13px; height: 13px; flex-shrink: 0; }
.nf-imp-resumo:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.nf-item.nf-aberto > td { border-bottom-color: transparent; background: rgba(41, 132, 90, .03); }
.nf-tabela .tabela tr.nf-detalhe > td { padding: 2px 12px 16px; background: rgba(41, 132, 90, .03); border-bottom: 1px solid var(--borda-forte); vertical-align: top; }
.nf-det { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; align-items: start; animation: entrar .35s var(--ease); }
.nf-det-form { display: contents; }
.nf-det-fora, .nf-det-hist { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.nf-det-fora { grid-template-columns: minmax(0, 1fr); }
.nf-det .fp-bloco { background: var(--surface-2); }
.nf-icms-info { display: flex; gap: 7px; align-items: flex-start; margin: -2px 0 2px; font-size: 12px; color: var(--bico-txt); }
.nf-icms-info .ic { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.nf-atual { display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--borda); padding-top: 10px; }
.nf-atual small, .un-cab small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.nf-atual b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.nf-fiscal-novo { display: flex; gap: 7px; align-items: flex-start; margin: 0; border-top: 1px solid var(--borda); padding-top: 10px; color: var(--texto-2); }
.nf-fiscal-novo .ic { width: 15px; height: 15px; color: var(--muted); margin-top: 1px; flex-shrink: 0; }

/* Formação de preço (cadastro e nota): todas as partes sempre à vista */
.fp-linhas { display: flex; flex-direction: column; gap: 6px; }
.fp-sub-bloco {
  display: flex; align-items: baseline; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--borda-forte);
  font-size: 12px; font-weight: 500; color: var(--menta-txt);
}
.fp-sub-bloco small { font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.fp-calculos { border-top: 1px solid var(--borda); padding-top: 11px; gap: 10px; }
.fp-calculos .campo > label { font-size: 12px; }
.fp-origem { display: flex; align-items: center; gap: 7px; margin: -2px 0 2px; font-size: 12px; color: var(--muted); }
.fp-origem .ic { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.fp-origem .link-btn { margin-left: auto; white-space: nowrap; }
.un-bloco { margin-top: 4px; }
.un-cab { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-bottom: 12px; border-bottom: 1px solid var(--borda); }
.un-cab b { font-size: 13.5px; }
.un-cab small.muted { font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.cf-ajuda { font-size: 12.5px; align-self: end; padding-bottom: 4px; }
.cf-pcts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 10px; }
.cf-pcts .campo-sufixo > .input { text-align: left; padding-left: 14px; }

/* ---------- Várias lojas ---------- */
.lojas-lista { display: flex; flex-direction: column; gap: 8px; }
.loja-opcao {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--raio-lg); text-align: left;
  border: 1px solid var(--borda-forte); background: rgba(0, 0, 0, .018); transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.loja-opcao > .ic:first-child { width: 22px; height: 22px; color: var(--muted); }
.loja-opcao > .ic:last-child { margin-left: auto; color: var(--muted); transition: transform .25s var(--ease); }
.loja-opcao span { display: flex; flex-direction: column; min-width: 0; }
.loja-opcao b { font-size: 15px; }
.loja-opcao small { color: var(--muted); font-size: 12.5px; }
.loja-opcao:hover { border-color: var(--borda-hover); background: var(--bg); transform: translateY(-1px); }
.loja-opcao:hover > .ic:last-child { transform: translateX(3px); color: var(--muted); }
.loja-opcao.on { border-color: var(--texto); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--texto); }
.cartao-lojas { max-width: 480px; }
.cartao-lojas h1 { font-size: 22px; line-height: 1.2; }
.sel-loja { width: auto; min-width: 200px; }
.selo-loja .ic { width: 13px; height: 13px; }
.rel-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rel-filtros .sel-loja { margin-left: auto; }
.est-total { display: block; margin-top: 3px; font-size: 11px; }
.est-lojas .tabela td, .est-lojas .tabela th { padding-top: 7px; padding-bottom: 7px; }
.est-lojas .est-atual td { background: rgba(41, 132, 90, .05); }
.est-lojas .est-total-linha td { border-top: 1px solid var(--borda-forte); color: var(--texto-2); font-weight: 600; }
.nf-loja { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--raio-lg); background: var(--bg); border: 1px solid transparent; }
.nf-loja .campo { min-width: 280px; }
.nf-loja p { font-size: 13px; margin-bottom: 10px; }

/* Transferências */
.tr-rota { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.tr-loja { display: flex; flex-direction: column; gap: 4px; padding: 9px 16px; min-height: 42px; border-radius: 12px; background: rgba(0, 0, 0, .024); border: 1px solid var(--borda); }
.tr-loja small { font-size: 12px; font-weight: 500; color: var(--muted); }
.tr-loja b { font-size: 15px; }
.tr-seta { color: var(--muted); padding-bottom: 10px; }
.tr-destino { min-width: 260px; }
.bl-tabela tr.tr-falta td { background: var(--perigo-soft); }

/* Página "Cadastros" */
.atalhos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.atalho-card {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 18px 18px 16px; border-radius: var(--raio-lg);
  background: var(--surface); border: 1px solid var(--borda); text-decoration: none; color: var(--texto);
  transition: border-color .2s, transform .25s var(--ease), box-shadow .3s;
}
.atalho-card:hover { background: var(--hover); }
.atalho-icone { width: 46px; height: 46px; border-radius: var(--raio-lg); display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); color: var(--texto); border: 1px solid rgba(41, 132, 90, .2); }
.atalho-icone .ic { width: 22px; height: 22px; }
.atalho-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.atalho-txt b { font-size: 15.5px; }
.atalho-txt small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.atalho-n { font-size: 22px; font-weight: 300; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.atalho-card > .ic:last-child { position: absolute; top: 12px; right: 12px; width: 15px; height: 15px; color: var(--muted); transition: transform .3s var(--ease-mola), color .2s; }
.atalho-card:hover > .ic:last-child { transform: rotate(45deg); color: var(--muted); }

/* ---------- Telas menores ---------- */
@media (max-width: 1180px) {
  .pdv { grid-template-columns: minmax(0, 1fr) 360px; }
  .grid-2col-larga { grid-template-columns: minmax(0, 1fr); }
  .fp-colunas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-colunas > .fp-bloco:last-child { grid-column: 1 / -1; }
  .nf-opcoes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nf-check, .nf-checks { grid-column: 1 / -1; }
  .nf-det { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf-det > .nf-det-nota { grid-column: 1 / -1; }
  .relogio i { display: none; }
}
@media (max-width: 900px) {
  .app, .app.recolhido { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--topo) minmax(0, 1fr); }
  /* barra do topo: ☰, a marca e o caixa */
  .topo { display: flex; align-items: center; gap: 8px; height: var(--topo); padding: 0 12px; position: relative; z-index: 45; background: var(--bg); }
  .topo .logo { gap: 8px; }
  .topo .logo-pato { width: 28px; height: 28px; }
  .topo .marca { font-size: 17px; }
  .topo .pill-caixa { margin: 0 0 0 auto; height: 32px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--borda); color: var(--texto); font-size: 12.5px; }
  /* o menu desliza da esquerda */
  .lateral {
    position: fixed; top: 0; left: 0; bottom: 0; width: 284px; z-index: 50; padding: 14px 12px 12px;
    transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--sombra-lg);
  }
  .menu-aberto .lateral { transform: none; }
  /* escurece a tela atrás do menu; tocar fora fecha (app.js) */
  .app.menu-aberto::after { content: ''; position: fixed; inset: 0; z-index: 49; background: rgba(0, 0, 0, .45); animation: aparecer .2s ease; }
  .lat-recolher { display: none; }
  .nav-item { min-height: 40px; }
  .nav-sub-item { min-height: 38px; }
  .principal { margin: 0 8px 8px; }
  .aviso-demo { margin: 12px 12px 0; padding: 12px 12px 12px 14px; flex-wrap: wrap; }
  .aviso-txt { flex-basis: calc(100% - 32px); }
  .aviso-demo .btn { margin-left: 32px; }
  .pdv { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .pdv-catalogo { padding: 14px 14px 0; }
  .pdv-venda { border-left: none; border-top: 1px solid var(--linha); max-height: 52vh; box-shadow: 0 -6px 16px rgba(16, 18, 25, .06); }
  .pdv-pessoas .pessoa { padding: 10px 12px; }
  .pdv-itens { max-height: 22vh; }
  .pdv-itens:has(.vazio-venda) { display: none; }
  .pdv-rodape { padding: 10px 12px 12px; gap: 8px; }
  .pdv-acoes .btn { height: 36px; }
  .btn-cobrar { height: 54px; }
  .grid-2col { grid-template-columns: minmax(0, 1fr); }
  .pagina { padding: 20px 16px 44px; }
  .pagina-topo h1 { font-size: 20px; }
  .tela-login { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; padding: 32px 18px; }
  .login-hero { max-width: 420px; width: 100%; gap: 16px; }
  .login-lista { display: none; }
  .login-titulo { font-size: 28px; }
}
@media (max-width: 760px) {
  .fp-colunas, .passos, .nf-opcoes, .nf-cab, .nf-det, .nf-det-hist { grid-template-columns: minmax(0, 1fr); }
  .fp-colunas > .fp-bloco:last-child { grid-column: auto; }
  .fp-cabecalho { grid-template-columns: minmax(0, 1fr); }
  .c2, .c3, .c4, .c6, .c8 { grid-column: span 12; }
  .gp-regra { grid-template-columns: minmax(0, 1fr); }
  .fp-foto-aba, .bl-leitor { flex-direction: column; align-items: stretch; }
  .fp-foto-grande, .fp-foto-grande .foto-box { width: 100%; max-width: 260px; }
  .nf-chave { text-align: left; }
}
@media (max-width: 640px) {
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .grid2, .grid3, .imp-mapa, .form-produto, .det-cab { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .pg-formas { grid-template-columns: repeat(2, 1fr); }
  .logo-txt small { display: none; }
  .marca { font-size: 17px; }
  .btn-cobrar { height: 52px; font-size: 14px; }
  .modal-body { padding: 18px; }
  .modal-foot { padding: 6px 18px 18px; }
}
@media (max-width: 420px) {
  .logo-txt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Acesso: aguardando liberação, conta, PIN e autorização ---------- */
.passos-acesso { display: flex; flex-direction: column; gap: 10px; }
.passos-acesso > div { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--raio-lg); background: rgba(0, 0, 0, .018); border: 1px solid var(--borda); font-size: 13.5px; color: var(--texto-2); }
.passos-acesso .ic { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; margin-top: 1px; }
.passos-acesso b { color: var(--texto); }
.conta-usuario { display: flex; align-items: center; gap: 14px; }
.conta-usuario > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.conta-usuario b { font-size: 16px; }
.avatar-grande { width: 48px; height: 48px; font-size: 15px; }
.conta-resumo { margin: 14px 0 0; font-size: 13.5px; }
.conta-acoes { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.conta-acoes .btn { justify-content: flex-start; }
.autoriza { display: flex; flex-direction: column; gap: 14px; }
.autoriza-icone { width: 48px; height: 48px; border-radius: var(--raio-lg); display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--borda); color: var(--texto); }
.autoriza-icone .ic { width: 24px; height: 24px; }
.autoriza p { font-size: 14px; color: var(--texto-2); }
.autoriza-dica { font-size: 12.5px !important; }
.input-pin { font-family: var(--fonte-mono); font-size: 20px; letter-spacing: .4em; text-align: center; }
.papeis-info { margin-top: 14px; padding: 11px 14px; border-radius: var(--raio-lg); background: rgba(0, 0, 0, .018); border: 1px solid var(--borda); font-size: 13px; color: var(--texto-2); }
.papeis-info b { color: var(--menta-txt); }
.pin-status { margin-top: 10px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--raio-lg); border: 1px dashed var(--borda-forte); font-size: 13px; color: var(--texto-2); }
.pin-status > .ic { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.pin-status > span { flex: 1; }
.pin-status b { color: var(--texto); }
.dv-valor { font-size: 22px; font-weight: 600; color: var(--texto); }
.sg-destino { margin-bottom: 8px; }
.sg-destino button { gap: 6px; }
.pin-mini { display: inline-flex; vertical-align: middle; color: var(--muted); }
.pin-mini .ic { width: 14px; height: 14px; }
/* senhas e acesso: tela de entrar, conta, ficha do funcionário e senha provisória */
.login-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -4px; }
.login-links .link { margin-top: 0; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--menta-txt); }
.login-links .link:hover { text-decoration: underline; text-underline-offset: 3px; }
.es-dica { font-size: 12.5px; }
.conta-assinatura { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-items: start; padding: 12px 14px;
  border-radius: var(--raio-lg); background: rgba(0, 0, 0, .018); border: 1px solid var(--borda); }
.conta-assinatura > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.conta-assinatura small { font-size: 12px; font-weight: 500; }
.conta-assinatura b { font-size: 14px; }
.conta-assinatura .btn { grid-column: 1 / -1; justify-self: start; }
.conta-assinatura small.conta-assinatura-nota { grid-column: 1 / -1; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
/* "Assinar agora": aviso no topo e a escolha do plano */
.aviso-assinar .btn { margin-left: auto; flex-shrink: 0; }
.assinar-ciclo { margin-bottom: 14px; }
.assinar-planos { display: flex; flex-direction: column; gap: 8px; }
.assinar-plano { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--borda); border-radius: var(--raio-lg);
  background: rgba(0, 0, 0, .012); cursor: pointer; transition: border-color .2s, background .2s; }
.assinar-plano:hover { border-color: var(--borda-hover); }
.assinar-plano.on { border-color: var(--texto); background: var(--surface-2); }
.assinar-plano input { accent-color: var(--barra-2); flex-shrink: 0; }
.assinar-plano > span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.assinar-plano > .num { white-space: nowrap; }
.assinar-plano > .num small { margin-left: 2px; font-weight: 500; }
.assinar-nota { margin-top: 14px; }
.acesso-func { margin-top: 10px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--raio-lg); border: 1px solid transparent; background: var(--bg); font-size: 13px; color: var(--texto-2); }
.acesso-func > .ic { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.acesso-func > span { flex: 1; }
.acesso-func b { color: var(--texto); }
.acesso-func .btn { flex-shrink: 0; }
.senha-prov { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 6px; padding: 14px 16px; border-radius: var(--raio-lg); background: rgba(0, 0, 0, .018); border: 1px solid var(--borda); }
.senha-prov > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.senha-prov small { font-size: 12px; font-weight: 500; color: var(--muted); }
.senha-prov b { font-size: 15px; overflow-wrap: anywhere; }
.senha-prov-valor { font-family: var(--fonte-mono); font-size: 22px !important; letter-spacing: .06em; color: var(--menta-txt); }
@media (max-width: 640px) {
  .acesso-func { flex-wrap: wrap; }
  .conta-assinatura { grid-template-columns: 1fr; }
}

/* ---------- Painel do Ducko ---------- */
.adm-abas { margin-bottom: 18px; }
.adm-lojas { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.txt-aviso { color: var(--bico-txt); }
.adm-ficha { display: flex; flex-direction: column; gap: 14px; }
.adm-acesso { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--raio-lg); border: 1px solid transparent; background: var(--bg); }
.adm-acesso.off { border-color: var(--perigo-borda); background: var(--perigo-soft); }
.adm-acesso > .ic { width: 22px; height: 22px; color: var(--muted); flex-shrink: 0; }
.adm-acesso.off > .ic { color: var(--perigo); }
.adm-acesso > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 200px; }
.adm-sub { margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.adm-sub small { font-weight: 600; font-size: 12px; }
.form .adm-sub:first-child { margin-top: 0; }
.adm-nota { font-size: 12.5px; }
.adm-loja-acoes { display: inline-flex; align-items: center; gap: 4px; }
.adm-ficha > .btn-mini { align-self: flex-start; }
.adm-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-grid3 .span-todo { grid-column: 1 / -1; }
.adm-check { margin-top: 16px; }
.adm-mes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-mes .input { width: auto; min-width: 190px; }
.adm-acoes-cob { white-space: nowrap; }
.adm-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--bico); color: #2a1600; font-size: 11px; font-weight: 600; }
.adm-planos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.adm-plano { display: flex; flex-direction: column; gap: 14px; }
.adm-plano.inativo { opacity: .7; }
.adm-plano-cab { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.adm-plano-cab h3 { font-weight: 600; font-size: 16px; color: var(--texto); }
.adm-plano-selos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.adm-plano .card-acoes { margin-top: 0; }
.adm-recursos { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-recursos .badge .ic { width: 13px; height: 13px; }
.adm-recursos .adm-sem { opacity: .55; }
.adm-form-plano { display: flex; flex-direction: column; gap: 14px; }
.adm-form-plano .adm-sub { margin: 6px 0 -4px; }
.adm-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.adm-regras .form { display: flex; flex-direction: column; gap: 16px; }
.adm-regras .campo small { font-size: 12px; }
.adm-status { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--raio-lg); margin-bottom: 10px; border: 1px solid transparent; background: var(--bg); }
.adm-status > .ic { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.adm-status > span { display: flex; flex-direction: column; gap: 3px; }
.adm-status small { color: var(--texto-2); font-size: 12.5px; }
.adm-status.falta { border-color: var(--bico-borda); background: var(--bico-soft); }
.adm-status.falta > .ic { color: var(--bico); }
@media (max-width: 760px) {
  .adm-grid3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Tela de venda: tabela de preço, limite de desconto e ficha rápida (F3) ---------- */
.pessoa-tabela.definido > .ic { color: var(--bico); }
.pessoa-tabela.definido b { color: var(--bico-txt); }
.vitem-tab {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px;
  background: var(--bico-soft); border: 1px solid rgba(255, 181, 71, .3); color: var(--bico-txt); font-size: 11px; font-weight: 600;
}
.vitem-base { font-size: 12px; color: var(--muted); }
.vitem-info { width: 26px; height: 26px; margin-left: auto; color: var(--muted); }
.vitem-info .ic { width: 15px; height: 15px; }
.vitem-info:hover { color: var(--texto); background: var(--bg); }
.pdv-totais .tl-limite { color: var(--muted); font-size: 12.5px; }
.pdv-totais .tl-alerta { color: var(--bico-txt); font-size: 12.5px; font-weight: 600; align-items: center; }
.pdv-totais .tl-alerta .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.pdv-totais .tl small { font-weight: 600; color: var(--muted); }
.pcard-ficha {
  position: absolute; bottom: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); box-shadow: var(--sombra); color: var(--texto-2);
  border: 0; opacity: 0; transition: opacity .15s, color .15s, border-color .15s;
}
.pcard:hover .pcard-ficha, .pcard:focus-visible .pcard-ficha { opacity: 1; }
.pcard-ficha:hover { color: var(--texto); background: #fff; }
.pcard-ficha .ic, .plinha-ficha .ic { width: 15px; height: 15px; }
.plinha-ficha { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.plinha-ficha:hover { color: var(--texto); background: var(--bg); }
@media (hover: none) { .pcard-ficha { opacity: 1; } }
.ei-desc { color: var(--bico-txt); font-size: 13px; }
.sucesso-aut { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--bico-txt); }
.sucesso-aut .ic { width: 15px; height: 15px; }
.fr-cab { display: flex; align-items: center; gap: 14px; }
.fr-cab h3 { font-size: 18px; font-weight: 600; line-height: 1.25; }
.fr-nicho { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--menta-txt); }
.fr-foto {
  width: 72px; height: 72px; border-radius: var(--raio-lg); flex-shrink: 0; overflow: hidden; display: grid; place-items: center;
  background: var(--surface-2); font-weight: 500; color: var(--muted); border: 1px solid var(--borda);
}
.fr-foto img { width: 100%; height: 100%; object-fit: cover; }
.fr-estoques { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 16px; }
.fr-est { padding: 10px 12px; border-radius: var(--raio-lg); background: rgba(0, 0, 0, .018); border: 1px solid var(--borda); display: flex; flex-direction: column; gap: 2px; }
.fr-est.aqui { border-color: var(--texto); background: var(--surface-2); }
.fr-est small { font-size: 12px; font-weight: 500; color: var(--muted); }
.fr-est b { font-size: 18px; font-variant-numeric: tabular-nums; }
.fr-est em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.fr-precos { margin-top: 16px; }
.fr-precos .fr-c { display: none; }
.fr-precos.com-custo .fr-c { display: table-cell; }
.fr-precos th.fr-c { line-height: 1.2; }
.fr-precos .fr-sem td { color: var(--muted); }
.fr-custo { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fr-custo:empty { display: none; }
.fr-custo-linha { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fr-custo-linha > div { padding: 10px 12px; border-radius: var(--raio-lg); background: rgba(0, 0, 0, .018); border: 1px solid var(--borda); display: flex; flex-direction: column; gap: 3px; }
.fr-custo-linha small { font-size: 12px; font-weight: 500; color: var(--muted); }
.fr-custo-linha b { font-size: 15px; font-variant-numeric: tabular-nums; }
.fr-custo-linha .fr-pe { border-color: rgba(255, 181, 71, .3); background: var(--bico-soft); }
.fr-custo-linha .fr-pe b { color: var(--bico-txt); }
@media (max-width: 760px) {
  .fr-custo-linha { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdv-pessoas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cf-check { margin-top: 14px; }
/* Ajustes: maquininhas de cartão e o QR para vincular */
.cf-maq { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.maq-linha { flex-wrap: wrap; }
.maq-nome { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.maq-nome > .ic { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.maq-nome small { display: block; color: var(--texto-2); font-size: 12px; margin-top: 1px; }
.maq-acoes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.maq-inativa .maq-nome { opacity: .55; }
.maq-inativa .maq-nome > .ic { color: var(--muted); }
.vq-qr { width: 236px; max-width: 100%; aspect-ratio: 1; margin: 2px auto 14px; padding: 12px; border-radius: var(--raio-lg); background: #fff;
  display: grid; place-items: center; box-shadow: var(--sombra); }
.vq-qr svg { display: block; width: 100%; height: auto; }
.vq-qr.vq-vencido { opacity: .25; filter: grayscale(1); }
.vq-ok { width: 96px; height: 96px; border-radius: var(--raio-xl); display: grid; place-items: center; background: var(--menta-soft); color: #0b3d2a; }
.vq-ok .ic { width: 52px; height: 52px; color: #0a8f5a; }
.vq-passos { margin: 0 0 6px; padding-left: 20px; display: grid; gap: 5px; font-size: 14px; color: var(--texto-2); }
.vq-passos b { color: var(--texto); }
[data-vq-status] { justify-content: center; text-align: center; }
.det-cab .det-sub { display: block; font-size: 12px; margin-top: 2px; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* ---------- Comissões ---------- */
.rel-filtros .sel-vendedor { width: auto; min-width: 190px; }
.rel-filtros > select:first-of-type { margin-left: auto; }
.conta .conta-total .txt-perigo { color: var(--perigo-txt); }
@media (max-width: 760px) {
  .rel-filtros > select, .rel-filtros > select:first-of-type { flex: 1 1 160px; min-width: 0; margin-left: 0; }
}
/* saldo negativo do vendedor (estornos maiores que a comissão do período) */
.stat-negativo { background: var(--perigo-soft); box-shadow: inset 0 0 0 1px var(--perigo-borda); }
.stat-negativo .stat-rotulo, .stat-negativo .stat-valor { color: var(--perigo-txt); }
.stat-negativo .stat-valor { font-size: 34px; }
.barra-cel { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.barra-mini { flex: 1; max-width: 120px; min-width: 40px; height: 6px; border-radius: 3px; background: var(--linha); overflow: hidden; }
.barra-mini span { display: block; height: 100%; border-radius: 3px; background: var(--serie); }
.tabela-vendedores td { vertical-align: middle; }

/* Extrato de comissões (folha A4, preto no branco; uma folha por vendedor) */
.extrato { color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 10.5pt; line-height: 1.4; break-after: page; }
.extrato:last-child { break-after: auto; }
.ex-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 8px; border-bottom: 2px solid #000; }
.ex-cab b { display: block; font-size: 14pt; }
.ex-cab small { font-size: 9pt; color: #333; }
.ex-tit { font-size: 11pt; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ex-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.ex-info small { display: block; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .08em; color: #555; }
.ex-info b { font-size: 10.5pt; }
.ex-tab { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.ex-tab th { text-align: left; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #000; padding: 5px 6px; }
.ex-tab td { padding: 4px 6px; border-bottom: 1px solid #ccc; }
.ex-tab .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ex-tab tr { break-inside: avoid; }
.ex-estorno td { font-style: italic; }
.ex-tot { width: 55%; margin: 12px 0 0 auto; }
.ex-tot > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed #999; }
.ex-tot b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-tot .ex-liq { border-bottom: 2px solid #000; font-size: 12.5pt; font-weight: 600; }
.ex-ass { margin-top: 40px; break-inside: avoid; }
.ex-ass p { margin-bottom: 52px; }
.ex-linha { width: 60%; border-top: 1px solid #000; margin-bottom: 4px; }
.ex-ass span { font-size: 10pt; }
.ex-rod { margin-top: 28px; font-size: 7.5pt; color: #555; }

/* ---------- Contas a pagar ---------- */
/* sininho no topo: número de contas vencidas e que vencem hoje */
.sino { position: relative; }
.sino .ic { width: 18px; height: 18px; }
.sino-n {
  position: absolute; top: 0; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  display: grid; place-items: center; font-size: 10px; font-weight: 500; line-height: 1;
  background: var(--bico); color: #fff; box-shadow: 0 0 0 2px var(--bg);
}
.sino.alerta { color: var(--texto); }
.sino.alerta .sino-n { background: var(--perigo); color: var(--no-perigo); }
.sino.aviso::after { content: ''; position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--bico); box-shadow: 0 0 0 2px var(--bg); }

/* número de destaque em âmbar (vence hoje) */
.stat-alerta { background: var(--bico-soft); box-shadow: inset 0 0 0 1px var(--bico-borda); }
.stat-alerta .stat-rotulo, .stat-alerta .stat-valor { color: var(--bico-txt); }

.input-mini { height: 34px; padding: 0 10px; font-size: 13.5px; border-radius: var(--raio); }
.input-mini.num { text-align: right; }
.tabela td .input-mini { min-width: 0; }

.ct-abas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
/* números do topo que filtram a lista (Vencidas, Vencem hoje, Próximos 7 dias) */
button.stat-filtro { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.stat-filtro:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }
.stat-filtro.on { border-color: var(--texto); box-shadow: inset 0 0 0 2px var(--texto); }
.stat-filtro.on.stat-negativo { border-color: var(--perigo); box-shadow: 0 0 0 1px var(--perigo); }
.stat-filtro.on.stat-alerta { border-color: var(--bico); box-shadow: 0 0 0 1px var(--bico); }
.ct-tabela .ct-vencida td:first-child { color: var(--perigo-txt); font-weight: 600; }
.ct-tabela .ct-hoje td:first-child { color: var(--bico-txt); font-weight: 600; }
.ct-topo { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ct-lanc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ct-vezes { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--texto-2); }
.ct-vezes .input { width: 76px; text-align: center; }
.ct-previa { max-height: 280px; overflow-y: auto; border: 1px solid var(--borda); border-radius: var(--raio-lg); }
.ct-previa .tabela th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; }
.ct-previa .tabela td { padding-top: 6px; padding-bottom: 6px; }
.ct-previa .tabela th:first-child, .ct-previa .tabela td:first-child { padding-left: 14px; }
.ct-previa .tabela th:last-child, .ct-previa .tabela td:last-child { padding-right: 14px; }
.ct-previa-nota { font-size: 12.5px; margin-top: 8px; }
.ct-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.ct-dl div { min-width: 0; }
.ct-dl dt { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 3px; }
.ct-dl dd { font-size: 14px; overflow-wrap: anywhere; }
.ct-nota { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 13px; }
.ct-nota .ic { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--muted); }

/* pagar */
.pg-conta { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 16px; margin-bottom: 16px;
  border: 1px solid var(--borda); border-radius: var(--raio-lg); background: rgba(0, 0, 0, .018); }
.pg-conta small { display: block; margin-top: 3px; }
.pg-valor { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pg-valor b { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-dica { font-size: 13px; color: var(--texto-2); background: var(--bg); border: 1px solid transparent; border-radius: 12px; padding: 9px 12px; }
.pg-dica .ic { width: 15px; height: 15px; vertical-align: -3px; color: var(--muted); }

/* avisos de vencimento (sininho e Início) */
.av-lista { display: flex; flex-direction: column; gap: 14px; }
.av-grupo h4 { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.av-grupo h4 span { letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 12.5px; color: var(--texto-2); }
.av-vencidas h4 { color: var(--perigo-txt); }
.av-hoje h4 { color: var(--bico-txt); }
.av-semana h4 { color: var(--muted); }
.av-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--linha); }
.av-item:last-child { border-bottom: none; }
.av-item small { display: block; margin-top: 2px; }
.av-valor { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-inicio .card-titulo .link { margin: 0 0 0 auto; font-size: 12.5px; }
.ct-resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ct-res { padding: 11px 14px; border-radius: var(--raio-lg); border: 1px solid var(--borda); background: rgba(0, 0, 0, .018); display: flex; flex-direction: column; gap: 2px; }
.ct-res small { font-size: 12px; font-weight: 500; color: var(--muted); }
.ct-res b { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-res span { font-size: 12px; color: var(--muted); }
.ct-res.vencidas { border-color: var(--perigo-borda); background: var(--perigo-soft); }
.ct-res.vencidas small, .ct-res.vencidas b { color: var(--perigo-txt); }
.ct-res.hoje { border-color: var(--bico-borda); background: var(--bico-soft); }
.ct-res.hoje small, .ct-res.hoje b { color: var(--bico-txt); }

/* sangria que paga uma conta */
.sg-modo { display: flex; margin-bottom: 16px; }
.sg-modo button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.sg-modo .ic { width: 15px; height: 15px; }
.sg-nota { font-size: 13px; margin-bottom: 10px; }
.sg-contas { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; margin-bottom: 14px; padding-right: 2px; }
.sg-conta { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--raio-lg);
  border: 1px solid var(--borda); background: rgba(0, 0, 0, .015); cursor: pointer; transition: border-color .2s, background .2s; }
.sg-conta:hover { border-color: var(--borda-hover); }
.sg-conta:has(input:checked) { border-color: var(--texto); background: var(--surface-2); }
.sg-conta input { width: 17px; height: 17px; accent-color: var(--barra-2); }
.sg-txt small { display: block; margin-top: 2px; }
.sg-txt .ic { width: 15px; height: 15px; vertical-align: -2px; }
.sg-fim { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sg-fim b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sg-nova { grid-template-columns: 20px minmax(0, 1fr); }
.sg-nova-campos { margin-bottom: 14px; }

/* parcelas da nota fiscal */
.nf-contas { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--borda); border-radius: var(--raio-lg); background: rgba(0, 0, 0, .012); }
.nf-contas [data-parcelas] { margin-top: 12px; }
.nf-pago { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.nf-pago .seg button { gap: 6px; }
.nf-parcelas td { padding-top: 6px; padding-bottom: 6px; }
.nf-parcelas td:nth-child(2) .input { max-width: 150px; }
.nf-parcelas td:nth-child(3) .input { max-width: 170px; }
.nf-parcelas td:nth-child(4) .input { max-width: 130px; margin-left: auto; }
.nf-parc-nota { font-size: 12.5px; margin-top: 8px; }

/* resultado do período (Relatórios) */
.rs-tabela td:first-child { white-space: nowrap; }
.rs-tabela .rs-desp td:first-child { padding-left: 26px; color: var(--texto-2); }
.rs-tabela .rs-sub td { border-top: 1px solid var(--borda-forte); font-weight: 600; }
.rs-tabela .rs-total td { border-top: 1px solid var(--borda-forte); border-bottom: none; font-weight: 600; font-size: 15px; }
.rs-tabela .rs-total td.num:not(.txt-perigo) { color: var(--menta-txt); }
.rs-nota { font-size: 12.5px; margin-top: 10px; }

/* comissões → contas a pagar */
.lc-tabela { margin-top: 6px; }
.lc-tabela .lc-check { width: 36px; }
.lc-tabela input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--barra-2); }
.lc-tabela .input-mini { max-width: 130px; margin-left: auto; }

@media (max-width: 760px) {
  .ct-resumo { grid-template-columns: minmax(0, 1fr); }
  .ct-dl { grid-template-columns: minmax(0, 1fr); }
  .av-item { grid-template-columns: minmax(0, 1fr) auto; }
  .av-item .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Orçamentos ---------- */
/* faixa do orçamento aberto na venda e aviso do modo orçamento (caixa fechado) */
.pdv-orc, .pdv-aviso { display: flex; align-items: center; gap: 10px; margin: 0 14px 4px; padding: 9px 12px; border-radius: var(--raio-lg); font-size: 13px; }
.pdv-orc { background: var(--bg); border: 1px solid transparent; color: var(--texto); }
.pdv-orc > .ic { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.pdv-orc > span { flex: 1; min-width: 0; }
.pdv-orc small { display: block; color: var(--texto-2); font-size: 11.5px; margin-top: 1px; }
.pdv-orc .icon-btn { width: 28px; height: 28px; flex-shrink: 0; }
.pdv-aviso { background: var(--bico-soft); border: 1px solid var(--bico-borda); color: var(--bico-txt); }
.pdv-aviso > .ic { width: 17px; height: 17px; flex-shrink: 0; }
/* pagamentos da maquininha sem venda e cobranças em andamento */
.pdv-maq { display: flex; flex-direction: column; gap: 6px; margin: 0 14px 4px; }
.pdv-maq-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--raio-lg); font-size: 13px;
  background: var(--bg); border: 1px solid transparent; color: var(--texto); }
.pdv-maq-item > .ic { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.pdv-maq-item > span { flex: 1; min-width: 0; }
.pdv-maq-item small { display: block; color: var(--texto-2); font-size: 11.5px; margin-top: 1px; }
.pdv-maq-item .btn { flex-shrink: 0; }
.pdv-maq-alerta { background: var(--bico-soft); border-color: var(--bico-borda); }
.pdv-maq-alerta > .ic { color: var(--bico); }
.pdv-aviso > span { flex: 1; }
.pdv-aviso .link-btn { color: var(--bico-txt); white-space: nowrap; }
.btn-cobrar.btn-orcamento { background: var(--bico); color: #1f1300; }
.btn-cobrar.btn-orcamento:hover { background: #d97706; }
.btn-cobrar.btn-orcamento kbd { background: rgba(0, 0, 0, .1); }
.pdv-abrir-orc { height: 38px; }

/* janela do orçamento */
.orc-topo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; font-size: 13px; }
.orc-itens td { vertical-align: middle; }
.orc-itens .orc-foto-th { width: 56px; }
.orc-foto { width: 46px; height: 46px; border-radius: var(--raio); overflow: hidden; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface-2); color: var(--muted); font-weight: 500; font-size: 12px; border: 1px solid var(--borda); }
.orc-foto img { width: 100%; height: 100%; object-fit: cover; }
.orc-obs-txt { margin-top: 12px; font-size: 13.5px; white-space: pre-line; }
.modal-orc .modal-foot { flex-wrap: wrap; }

/* folha A4 do orçamento (preto no branco, com as fotos) */
.orc-a4 { color: #111; font-family: Arial, Helvetica, sans-serif; font-size: 10.5pt; line-height: 1.4; }
.oa-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 10px; border-bottom: 2px solid #111; }
.oa-loja b { display: block; font-size: 15pt; margin-bottom: 2px; }
.oa-loja span, .oa-num span { display: block; font-size: 9pt; color: #444; }
.oa-num { text-align: right; }
.oa-num small { display: block; font-size: 8pt; letter-spacing: .14em; text-transform: uppercase; color: #555; }
.oa-num > b { display: block; font-size: 16pt; }
.oa-partes { display: flex; gap: 28px; flex-wrap: wrap; margin: 12px 0 14px; }
.oa-partes small { display: block; font-size: 7.5pt; letter-spacing: .1em; text-transform: uppercase; color: #666; }
.oa-partes b { display: block; font-size: 11pt; }
.oa-partes span { font-size: 9pt; color: #444; }
.oa-itens { width: 100%; border-collapse: collapse; }
.oa-itens th { text-align: left; font-size: 7.5pt; letter-spacing: .08em; text-transform: uppercase; color: #444; border-bottom: 1px solid #111; padding: 5px 6px; }
.oa-itens td { padding: 6px; border-bottom: 1px solid #d5d5d5; vertical-align: middle; }
.oa-itens td small { display: block; font-size: 8pt; color: #666; }
.oa-itens .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.oa-itens tr { break-inside: avoid; }
.oa-itens th.oa-foto { width: 20mm; }
.oa-itens td.oa-foto { width: 20mm; }
.oa-foto img, .oa-foto span { display: grid; place-items: center; width: 17mm; height: 17mm; border-radius: 2mm; object-fit: cover; border: 1px solid #ddd; }
.oa-foto span { background: #f1f1f1; color: #777; font-weight: 600; font-size: 10pt; }
.oa-fim { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 12px; break-inside: avoid; }
.oa-obs { flex: 1; }
.oa-obs small { display: block; font-size: 7.5pt; letter-spacing: .1em; text-transform: uppercase; color: #666; }
.oa-obs p { font-size: 10pt; white-space: pre-line; }
.oa-totais { width: 44%; }
.oa-totais > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed #999; }
.oa-totais b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.oa-totais .oa-total { border-bottom: 2px solid #111; font-size: 14pt; font-weight: 600; }
.oa-rod { margin-top: 22px; font-size: 8pt; color: #555; }

/* ---------- Cliente pelo CNPJ ---------- */
.campo-cnpj { position: relative; }
.campo-cnpj .input { padding-right: 118px; }
.cnpj-btn { position: absolute; right: 5px; bottom: 5px; }
.cnpj-res { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid transparent; font-size: 13px; }
.cnpj-res .cnpj-cab { display: flex; align-items: center; gap: 8px; color: var(--texto); }
.cnpj-res .cnpj-cab .ic { width: 16px; height: 16px; }
.cnpj-res ul { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cnpj-res li small { display: inline-block; min-width: 118px; color: var(--muted); }
.cnpj-res p { margin: 6px 0; }

/* ---------- Gráfico de estoque do produto (aba Ficha) ---------- */
.ge { margin-bottom: 16px; }
.ge-topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ge-topo h4 { margin: 0 0 2px; font-size: 14px; }
.ge-filtros { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ge-filtros .input { width: auto; height: 32px; }
.ge-area-graf { position: relative; }
.ge-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ge-grade { stroke: var(--grade); stroke-width: 1; }
.ge-base { stroke: var(--base-eixo); stroke-width: 1; }
.ge-eixo { fill: var(--eixo); font-size: 11px; font-variant-numeric: tabular-nums; }
.ge-linha { fill: none; stroke: var(--serie); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ge-area { fill: var(--serie); opacity: .1; }
.ge-ponto { fill: var(--serie); stroke: var(--elevado); stroke-width: 2; pointer-events: none; }
.ge-ponto.hover, .ge-ponto.on { fill: var(--serie-hover); }
.ge-maior .ge-halo { fill: none; stroke: var(--texto-2); stroke-width: 1.5; }
.ge-maior text { fill: var(--texto); font-size: 12px; font-weight: 600; }
.ge-mira { stroke: var(--borda-hover); stroke-width: 1; pointer-events: none; }
.ge-alvo { fill: transparent; cursor: crosshair; }
.ge-dica { position: relative; transform: translateX(-50%); width: max-content; max-width: 320px; margin-top: 6px; padding: 8px 10px;
  background: var(--surface-3); border: 1px solid var(--borda-forte); border-radius: var(--raio); font-size: 12.5px;
  display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.ge-dica b { font-size: 14px; }
tr.ge-sel > td { background: var(--surface-2); }
tr[data-mov] { cursor: pointer; }

/* ---------- Documento A4 no estilo do Ducko (orçamento e comprovante de venda; não é nota fiscal) ---------- */
.doc-a4 { --da-fundo: #fff; --da-menta: #000; --da-tinta: #fff; --da-txt: #0b0c0f; --da-suave: #6b6e75;
  background: var(--da-fundo); color: var(--da-txt); font-family: 'Inter', system-ui, sans-serif; font-size: 11pt; line-height: 1.4;
  width: 210mm; min-height: 297mm; box-sizing: border-box; padding: 18mm 16mm 14mm; display: flex; flex-direction: column; }
.da-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10mm; }
.da-titulo { display: flex; align-items: center; gap: 5mm; flex-wrap: nowrap; }
.da-titulo h1 { margin: 0; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 34pt; white-space: nowrap; letter-spacing: -.04em; line-height: 1; color: var(--da-txt); }
.da-num { background: var(--da-menta); color: var(--da-tinta); font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 17pt; letter-spacing: -.03em; padding: 2mm 3mm; line-height: 1.1; white-space: nowrap; }
.da-datas { text-align: right; font-size: 11pt; line-height: 1.25; color: var(--da-txt); white-space: nowrap; margin-top: 2mm; }
.da-meio { display: flex; justify-content: space-between; align-items: center; gap: 12mm; margin: 22mm 0 16mm; }
.da-para { font-size: 12pt; line-height: 1.55; }
.da-para > b { display: block; font-size: 11.5pt; margin-bottom: 1mm; }
.da-para-nome { font-weight: 600; }
.da-info { color: var(--da-suave); font-size: 10.5pt; }
.da-info small { font-size: 9pt; text-transform: uppercase; letter-spacing: .08em; }
.da-loja { display: flex; align-items: center; gap: 6mm; max-width: 55%; }
.da-marca { flex-shrink: 0; width: 26mm; height: 26mm; border-radius: 7mm 2mm 7mm 2mm; background: var(--da-menta); color: var(--da-tinta);
  display: grid; place-items: center; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 22pt; letter-spacing: -.04em; }
.da-loja-nome { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 24pt; letter-spacing: -.04em; line-height: 1.05; color: var(--da-txt); margin-bottom: 2mm; }
.da-loja small { display: block; font-size: 9pt; color: var(--da-suave); }
.da-itens { width: 100%; border-collapse: collapse; border-spacing: 0; }
.da-itens th, .da-itens td { border: 0 !important; box-shadow: none; }
.da-itens thead { display: table-header-group; }
.da-itens thead tr { background: #f3f4f6; border-bottom: 1px solid #e8e9ec; }
.da-itens th { background: transparent; color: var(--da-txt); text-align: left; font-weight: 600; font-size: 11pt; padding: 3.5mm 4mm; }
.da-itens td { padding: 3.2mm 4mm; font-size: 11.5pt; vertical-align: middle; }
.da-itens tr { break-inside: avoid; }
.da-itens .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.da-desc small { display: block; font-size: 8.5pt; color: var(--da-suave); }
.da-itens .da-foto { width: 15mm; padding-right: 0; }
.da-foto img, .da-foto span { display: grid; place-items: center; width: 12mm; height: 12mm; border-radius: 2mm; object-fit: cover; }
.da-foto span { background: rgba(0, 0, 0, .048); color: var(--da-suave); font-weight: 600; font-size: 9pt; }
.da-totais { margin-top: auto; padding-top: 14mm; break-inside: avoid; }
.da-totais > div { display: flex; justify-content: space-between; gap: 10mm; padding: 2mm 4mm; font-size: 12pt; font-weight: 600; }
.da-totais b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.da-totais .da-pag { font-weight: 500; font-size: 10.5pt; color: var(--da-suave); padding-top: 1mm; padding-bottom: 1mm; }
.da-totais .da-total { background: var(--da-menta); color: var(--da-tinta); font-size: 14pt; font-weight: 600; padding: 3.5mm 4mm; margin-top: 3mm; }
.da-sec { margin: 0 0 3mm; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13pt; letter-spacing: -.02em; color: var(--da-txt); }
.da-devolvidos { margin-bottom: 10mm; }
.da-devolvidos thead tr { background: rgba(0, 0, 0, .072); }
.da-devolvidos th { color: var(--da-txt); }
.da-itens .da-soma td { font-weight: 600; border-top: 1px solid rgba(0, 0, 0, .108) !important; }
.da-obs { margin-top: 8mm; font-size: 10pt; break-inside: avoid; }
.da-obs p { margin: 1mm 0 0; white-space: pre-line; color: var(--da-suave); }
.da-rod { display: flex; justify-content: space-between; align-items: center; gap: 8mm; margin-top: 8mm; font-size: 8.5pt; color: var(--da-suave); }
.da-ducko { display: inline-flex; align-items: center; gap: 2mm; white-space: nowrap; }
.da-ducko img { width: 5mm; height: 5mm; }

/* ---------- Cadastros e produtos (fase 7) ---------- */
.card-titulo .card-acao { margin-left: auto; align-self: center; }
.filtros-2 { margin-top: -6px; }
.filtros-2 > select.input { flex: 1 1 180px; width: auto; }

/* ---------- Painel do Ducko (página separada: painel/index.html) ---------- */
.app-painel .lateral .adm-n { margin-left: auto; }
@media (min-width: 901px) { .app-painel .adm-abas { display: none; } }
@media (max-width: 900px) { .app-painel .lateral { display: none; } }
.usuario-painel { cursor: default; }
.tela-codigo { background: var(--bg); }
.cartao-codigo { max-width: 460px; }
.mfa-passos { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; font-size: 13.5px; color: var(--texto-2); }
.mfa-passos li::marker { color: var(--muted); font-weight: 600; }
.mfa-passos b { color: var(--texto); }
.mfa-qr {
  width: 200px; height: 200px; margin: 2px auto; padding: 10px; border-radius: var(--raio-lg); background: #fff;
  box-shadow: var(--sombra-lg);
}
.mfa-qr img { display: block; width: 100%; height: 100%; }
.mfa-chave summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--link); }
.mfa-chave p { margin-top: 8px; font-size: 13px; }
.mfa-chave code { display: block; margin-top: 6px; padding: 8px 10px; border-radius: var(--raio); background: rgba(0, 0, 0, .03); border: 1px solid var(--borda); color: var(--texto); word-break: break-all; }
.input-codigo { height: 58px; text-align: center; font: 700 26px/1 var(--fonte-mono); letter-spacing: .5em; padding-left: .5em; }
.input-codigo::placeholder { color: #d4d6db; }
.mfa-ajuda { font-size: 12.5px; }
.mfa-ajuda code { font-size: 11.5px; color: var(--texto-2); }
/* Painel no celular: indicadores em duas colunas e as tabelas viram cartões */
@media (max-width: 640px) {
  .pg-painel .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pg-painel .stats > .stat-destaque { grid-column: 1 / -1; }
  .pg-painel .stat { padding: 14px 15px 13px; }
  .pg-painel .stat-rotulo { font-size: 9.5px; letter-spacing: .12em; }
  .pg-painel .stat-valor { font-size: 23px; }
  .pg-painel .stat-destaque .stat-valor { font-size: 30px; }
  .pg-painel .adm-cartoes, .pg-painel .adm-cartoes tbody { display: block; }
  .pg-painel .adm-cartoes thead { display: none; }
  .pg-painel .adm-cartoes tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--linha); }
  .pg-painel .adm-cartoes tbody tr:last-child { border-bottom: none; }
  .pg-painel .adm-cartoes td { display: block; padding: 0; border: 0; min-width: 0; }
  .pg-painel .adm-cartoes td:empty { display: none; }
  /* clientes: cliente | mensalidade · situação | uso · dono (a quantidade de lojas fica na ficha) */
  .pg-painel .adm-clientes td:nth-child(1) { grid-area: 1 / 1; }
  .pg-painel .adm-clientes td:nth-child(4) { grid-area: 1 / 2; text-align: right; }
  .pg-painel .adm-clientes td:nth-child(5) { grid-area: 2 / 1; }
  .pg-painel .adm-clientes td:nth-child(6) { grid-area: 2 / 2; text-align: right; }
  .pg-painel .adm-clientes td:nth-child(3) { grid-area: 3 / 1 / 4 / 3; font-size: 12.5px; color: var(--texto-2); }
  .pg-painel .adm-clientes td:nth-child(2) { display: none; }
  /* cobranças: cliente | valor · referência | vencimento · situação · ações */
  .pg-painel .adm-cobrancas td:nth-child(1) { grid-area: 1 / 1; }
  .pg-painel .adm-cobrancas td:nth-child(4) { grid-area: 1 / 2; text-align: right; }
  .pg-painel .adm-cobrancas td:nth-child(2) { grid-area: 2 / 1; font-size: 13px; }
  .pg-painel .adm-cobrancas td:nth-child(3) { grid-area: 2 / 2; text-align: right; font-size: 13px; color: var(--texto-2); }
  .pg-painel .adm-cobrancas td:nth-child(5) { grid-area: 3 / 1 / 4 / 3; }
  .pg-painel .adm-cobrancas td:nth-child(6) { grid-area: 4 / 1 / 5 / 3; width: auto; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
  .pg-painel .adm-cartoes .td-acoes { width: auto; }
  .pg-painel .adm-cartoes .td-acoes .btn { flex-shrink: 0; }
  /* ficha do cliente: referência | valor · vencimento | situação · receber */
  .pg-painel .adm-site td:nth-child(1) { grid-area: 1 / 1; }
  .pg-painel .adm-site td:nth-child(4) { grid-area: 1 / 2; text-align: right; }
  .pg-painel .adm-site td:nth-child(2) { grid-area: 2 / 1 / 3 / 3; font-size: 13px; }
  .pg-painel .adm-site td:nth-child(3) { grid-area: 3 / 1 / 4 / 3; font-size: 13px; color: var(--texto-2); }
  .pg-painel .adm-site td:nth-child(5) { grid-area: 4 / 1 / 5 / 3; display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
  .pg-painel .adm-checks { grid-template-columns: minmax(0, 1fr); }
  .pg-painel .adm-planos { grid-template-columns: minmax(0, 1fr); }
  .pg-painel .adm-hist tbody tr { padding: 11px 0; }
  .pg-painel .adm-hist td:nth-child(1) { grid-area: 1 / 1; }
  .pg-painel .adm-hist td:nth-child(3) { grid-area: 1 / 2; text-align: right; }
  .pg-painel .adm-hist td:nth-child(2) { grid-area: 2 / 1; font-size: 13px; color: var(--texto-2); }
  .pg-painel .adm-hist td:nth-child(4) { grid-area: 2 / 2; text-align: right; }
  .pg-painel .adm-hist td:nth-child(5) { grid-area: 3 / 1 / 4 / 3; }
  .pg-painel .det-cab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-painel .det-cab b { overflow-wrap: anywhere; }
  .pg-painel .lista-simples .ls-item { flex-wrap: wrap; }
  .pg-painel .adm-mes .input { min-width: 0; flex: 1 1 100%; }
  .pg-painel .filtros { flex-wrap: wrap; }
  .pg-painel .filtros .input-icone { flex: 1 1 100%; }
  .pg-painel .filtros select.input { flex: 1 1 100%; width: 100%; }
}

.banco-intro { max-width: 760px; margin: 0 0 14px; }
.banco-tit { margin: 0 0 10px; font-size: 15px; }
.banco-lista { display: flex; flex-direction: column; }
.banco-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borda); }
.banco-item:last-child { border-bottom: 0; }
.banco-item small { display: block; color: var(--texto-2); margin-top: 3px; }
.banco-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.banco-sai { color: var(--bico-txt); }
.banco-acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.banco-sug { color: var(--menta-txt) !important; }
.banco-marca { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow: auto; margin: 8px 0; }
.banco-check { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.banco-check small { display: block; color: var(--texto-2); }

/* ---------- Foto pelo código de barras ---------- */
.fg-fotos { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.fg-foto { width: 140px; height: 140px; border-radius: 12px; border: 2px solid var(--borda-forte); background: #fff; padding: 4px; cursor: pointer; }
.fg-foto img { width: 100%; height: 100%; object-fit: contain; }
.fg-foto.on { border-color: var(--texto); box-shadow: 0 0 0 1px var(--texto); }
.fg-lote { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow: auto; }
.fg-linha { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--linha); }
.fg-linha small { display: block; }
.fg-mini { width: 56px; height: 56px; display: grid; place-items: center; flex-shrink: 0; font-size: 11px; text-align: center; }
.fg-mini img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; }

/* ---------- Vender sem internet ---------- */
.faixa-off { position: fixed; left: 96px; bottom: 14px; z-index: 60; display: flex; align-items: center; gap: 10px;
  max-width: min(560px, calc(100vw - 112px)); padding: 9px 16px; border-radius: 999px; background: #3a2a07; border: 1px solid #f5a524; color: #ffe3a8;
  font-size: 13px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.faixa-off .ic { width: 16px; height: 16px; color: #f5a524; flex-shrink: 0; }
.faixa-off.alerta { background: #3a0f0f; border-color: #ff6b6b; color: #ffd0d0; }
.faixa-off .link-btn { color: inherit; text-decoration: underline; font-weight: 600; white-space: nowrap; }
.pg-offline { margin: 0; }
.off-lista { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.off-erro { display: block; font-size: 11.5px; color: var(--texto-2); margin-top: 2px; max-width: 240px; }
@media (max-width: 760px) { .faixa-off { left: 16px; max-width: calc(100vw - 32px); bottom: 84px; } }
.off-acoes { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.off-acoes .btn-mini { white-space: nowrap; }

/* ----- Boleto em Contas a pagar: linha para copiar e "Ler boletos" ----- */
.ct-boleto { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.ct-boleto .mono { font-size: 12.5px; overflow-wrap: anywhere; min-width: 0; flex: 1 1 260px; }
.ct-dl .ct-boleto { margin: 0; }
.ct-boleto-campo { display: flex; gap: 8px; }
.ct-boleto-campo .input { flex: 1; min-width: 0; }
[data-boleto-info] { display: block; margin-top: 4px; font-size: 12.5px; }
.lb-lista { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; max-height: 52vh; overflow-y: auto; }
.lb-item { border: 1px solid var(--borda); border-radius: var(--raio-lg); padding: 12px 14px; background: var(--surface-2); }
.lb-item.lb-ok { border-color: var(--menta-borda); background: var(--menta-soft); }
.lb-ok p { color: var(--menta-txt); margin: 6px 0 0; }
.lb-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lb-topo .mono { display: block; font-size: 11.5px; overflow-wrap: anywhere; }
.lb-escolha { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.lb-escolha p { margin: 0 0 2px; }
.lb-campos { margin-top: 10px; }
.lb-item .txt-perigo { margin: 8px 0 0; }

/* ----- Conciliação: conferir o arquivo antes de trazer, arquivos trazidos, contas desativadas ----- */
.banco-previa { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 12px 0; }
.banco-previa > div { border: 1px solid var(--borda); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); }
.banco-previa small { display: block; color: var(--texto-2); font-size: 11.5px; }
.banco-previa b { font-size: 17px; }
.banco-avisos { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.banco-avisos li { display: flex; gap: 8px; align-items: flex-start; }
.banco-prov { border: 1px solid var(--bico-borda); background: var(--bico-soft); border-radius: 12px; padding: 10px 12px; margin: 10px 0; max-height: 260px; overflow: auto; }
.banco-prov p { margin: 0 0 6px; }
.banco-ign { margin: 8px 0; font-size: 13px; }
.banco-ign summary { cursor: pointer; color: var(--texto-2); }
.banco-ign ul { margin: 6px 0 0; padding-left: 18px; max-height: 180px; overflow: auto; }
.banco-desativadas { margin-top: 12px; }
small.bloco { display: block; }

/* ----- Conciliação, parte 2: abas, busca, marcar várias, barra de ações, certeiras ----- */
.banco-abas { margin: 6px 0 12px; }
.banco-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); color: var(--texto); font-size: 11.5px; line-height: 18px; text-align: center; }
.aba.on .banco-n { background: var(--surface); color: var(--texto); }
.banco-ferramentas { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.banco-ferramentas p { margin: 0; }
.banco-card { padding: 4px 16px; }
.banco-item > input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--barra-2); }
.banco-item.marcada { background: var(--surface-2); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.banco-item-sis { cursor: pointer; align-items: flex-start; }
.banco-sug.media { color: var(--bico-txt) !important; }
.banco-sug-item .badge { margin-right: 6px; }
.banco-barra { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 10px 14px;
  border: 1px solid var(--menta-borda); border-radius: var(--raio-lg); background: var(--elevado); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7); }
.banco-conf-cab { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; max-height: 140px; overflow: auto; }
.banco-conf-cab small { display: block; }
.banco-soma { display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 12px; border-radius: var(--raio); background: var(--surface-2); border: 1px solid var(--borda); font-size: 13px; margin-bottom: 10px; }
.banco-soma.ok { border-color: var(--menta-borda); }
.banco-transf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.banco-conf-busca { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.banco-grupo { font-size: 13.5px; margin: 14px 0 4px; }
@media (max-width: 760px) { .banco-barra { bottom: 76px; } .banco-item.marcada { margin: 0 -12px; } }

/* ----- Conciliação, parte 3: saldo dia a dia ----- */
.banco-bate { color: var(--menta-txt); }
.banco-difere { color: var(--bico-txt); }
.banco-ok { border-color: var(--menta-borda); background: var(--menta-soft); }
.banco-difere-box { align-items: flex-start; }
.banco-difere-box p { margin: 0 0 6px; }
.banco-difere-box .banco-item { padding: 6px 0; }
.banco-saldos td, .banco-saldos th { white-space: nowrap; }
.banco-difere-linha td { background: var(--bico-soft); }
.inicio-banco { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--texto); text-decoration: none; }
.inicio-banco span { flex: 1; }
.inicio-banco:hover { border-color: var(--menta-borda); }

/* ----- Conciliação, parte 4: cartão ----- */
.banco-faixas { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.banco-faixa { display: flex; align-items: center; gap: 6px; }
.banco-faixa .input-mini { width: 80px; }
.banco-previa > div.banco-alerta { border-color: var(--bico-borda); background: var(--bico-soft); }
.banco-sem-taxas { margin-top: 8px; }

/* ---------- Estrutura de grupos, marcadores e editar em lote (versão 34) ---------- */
.pagina-dica { margin: -6px 0 12px; font-size: 13.5px; }
.aviso-info { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--raio-lg); margin: 14px 0 0;
  border: 1px solid transparent; background: var(--bg); font-size: 13.5px; }
.aviso-info > .ic { width: 20px; height: 20px; color: var(--menta-txt); flex-shrink: 0; }
.aviso-info > div { flex: 1; min-width: 0; }
.aviso-info small { display: block; color: var(--muted); }
.grp-layout { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 14px; }
.grp-arvore { padding: 12px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 12px; max-height: calc(100vh - 140px); }
.grp-lista { overflow-y: auto; display: flex; flex-direction: column; gap: 1px; min-height: 0; }
.grp-linha { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px calc(6px + var(--nivel, 0) * 18px); border-radius: var(--raio); cursor: pointer; min-height: 38px; }
.grp-linha:hover { background: rgba(0, 0, 0, .024); }
.grp-no.on > .grp-linha { background: var(--surface-2); color: var(--texto); }
.grp-seta { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 6px; color: var(--muted); flex-shrink: 0; }
button.grp-seta:hover { background: rgba(0, 0, 0, .048); color: var(--texto); }
.grp-seta .ic, .grp-ic .ic { width: 15px; height: 15px; }
.grp-ic { width: 20px; display: inline-grid; place-items: center; color: var(--muted); margin-right: 4px; }
.grp-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.grp-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding: 0 4px; }
.grp-acoes { display: none; gap: 0; }
.grp-linha:hover .grp-acoes, .grp-linha:focus-within .grp-acoes { display: inline-flex; }
.grp-acoes .icon-btn { width: 28px; height: 28px; }
.grp-produtos { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.grp-topo { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.grp-topo h2 { font-size: 18px; margin: 0; flex: 1; min-width: 0; }
.grp-barra .muted .ic { width: 15px; height: 15px; vertical-align: -3px; }
.grp-marcadores { padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.td-check { width: 36px; text-align: center; }
.td-check input { width: 18px; height: 18px; accent-color: var(--barra-2); cursor: pointer; vertical-align: middle; }
.tabela tr.marcada td { background: var(--surface-2); }
.marc-lista { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.marc { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  color: var(--texto); background: color-mix(in srgb, var(--cor) 22%, transparent); border: 1px solid color-mix(in srgb, var(--cor) 55%, transparent); }
.marc::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cor); }
.lt-marcs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--borda-forte); color: var(--muted); transition: background .15s, border-color .15s, color .15s; }
.chip-check span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cor); opacity: .5; }
.chip-check input:checked + span { color: var(--texto); border-color: var(--cor); background: color-mix(in srgb, var(--cor) 24%, transparent); }
.chip-check input:checked + span::before { opacity: 1; }
.chip-check input:focus-visible + span { outline: 2px solid var(--foco); outline-offset: 2px; }
.lt-linha { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--borda); }
.lt-campo { min-width: 0; }
.lt-par { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lt-fiscal { margin: 8px 0 12px; }
.lt-fiscal summary { cursor: pointer; font-weight: 600; padding: 8px 0; color: var(--menta-txt); }
.bl-passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; counter-reset: passo; }
.bl-passos li { counter-increment: passo; font-size: 12.5px; color: var(--muted); padding: 8px 10px 8px 36px; position: relative;
  border: 1px solid var(--borda); border-radius: var(--raio); }
.bl-passos li::before { content: counter(passo); position: absolute; left: 10px; top: 8px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--bg); color: var(--texto); }
.bl-passos b { color: var(--texto); }
.trilha-link { color: var(--muted); font-weight: 600; padding: 4px 6px; border-radius: 8px; }
.trilha-link:hover { color: var(--texto); background: var(--bg); }
.tiles-sub { margin-bottom: 16px; }
.rel-mov tfoot td { border-top: 1px solid var(--borda-forte); font-weight: 600; }
.rel-mov-sub td { font-size: 13px; }
@media (max-width: 900px) {
  .grp-layout { grid-template-columns: 1fr; }
  .grp-arvore { position: static; max-height: 46vh; }
  .grp-acoes { display: inline-flex; }
  .lt-linha { grid-template-columns: 1fr; gap: 6px; }
  .bl-passos { grid-template-columns: 1fr 1fr; }
}

/* folha de contagem (impressa em papel branco, para escrever à caneta) */
.folha-contagem { color: #111; background: #fff; font: 11px/1.35 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.folha-contagem header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 2px solid #111; padding-bottom: 6px; }
.folha-contagem h1 { font-size: 18px; margin: 0; }
.folha-contagem header p { margin: 2px 0 0; color: #444; }
.folha-contagem .fc-datas { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.folha-contagem .fc-dica { margin: 6px 0 8px; color: #444; }
.folha-contagem table { width: 100%; border-collapse: collapse; }
.folha-contagem th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #111; padding: 4px 6px; }
.folha-contagem td { border-bottom: 1px solid #bbb; padding: 6px; vertical-align: top; }
.folha-contagem td small { display: block; color: #666; font-size: 9.5px; }
.folha-contagem .fc-grupo td { background: #eee; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid #999; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.folha-contagem .fc-cod { width: 70px; font-family: ui-monospace, Menlo, monospace; }
.folha-contagem .fc-un { width: 40px; }
.folha-contagem .fc-campo { width: 90px; border-left: 1px solid #ddd; }
.folha-contagem .fc-obs { width: 120px; }
.folha-contagem tr { page-break-inside: avoid; }
.folha-contagem footer { margin-top: 8px; color: #666; font-size: 9.5px; }
.grp-produtos .filtros { flex-wrap: wrap; margin: 0; }
.grp-produtos .filtros .input-icone { min-width: 200px; }
.grp-produtos .grp-barra { margin: 0; }

/* ---------- Sugestão de grupo e compra no CPF (versão 35) ---------- */
.nf-cpf { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--texto-2); background: var(--bg);
  border: 1px solid transparent; padding: 9px 12px; border-radius: 12px; margin: 0; }
.nf-cpf .ic { width: 16px; height: 16px; margin-top: 1px; color: var(--texto); flex-shrink: 0; }
.nf-sugerido { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: #ffcf70; }
.nf-sugerido.alta { color: var(--menta-txt); }
.nf-sugerido .ic { width: 13px; height: 13px; }
.nf-ia { display: block; margin-top: 4px; font-size: 12px; }
.sug-grupo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--texto-2); }
.sug-grupo .ic { width: 14px; height: 14px; color: var(--menta-txt); }
.sug-grupo b { color: var(--texto); }
.nf-sugerir { margin-top: 6px; }
.nf-novo { color: #ffcf70; flex-wrap: wrap; }
.nf-novo b { color: var(--texto); }
.nf-novo .link-btn { font-size: 11.5px; padding: 0 4px; }
.rv-resumo { font-size: 13px; }

/* ---------- DRE (versão 36) ---------- */
.dre-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.dre-topo .card-titulo { margin: 0; }
.dre-tabela .rs-grupo td { font-weight: 600; }
.dre-tabela .rs-grupo td:first-child .ic, .dre-tabela .rs-filho td:first-child .ic { width: 14px; height: 14px; vertical-align: -2px; color: var(--muted); }
.dre-tabela .rs-filho td:first-child { padding-left: 34px; color: var(--texto-2); font-size: 13px; }
.dre-tabela .rs-filho td { font-size: 13px; }
.dre-tabela tr.dre-clicavel { cursor: pointer; }
.dre-tabela tr.dre-clicavel:hover td { background: rgba(0, 0, 0, .018); }
.dre-tabela .dre-pct { width: 90px; }
/* folha do DRE (A4 branco) */
.dre-impressao { color: #111; background: #fff; font: 11px/1.35 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.dre-impressao h1 { font-size: 18px; margin: 0; }
.dre-impressao p { margin: 2px 0 10px; color: #444; }
.dre-impressao table { width: 100%; border-collapse: collapse; }
.dre-impressao th { text-align: right; border-bottom: 1px solid #111; padding: 4px 6px; font-size: 10px; text-transform: uppercase; }
.dre-impressao th:first-child, .dre-impressao td:first-child { text-align: left; }
.dre-impressao td { text-align: right; padding: 3px 6px; border-bottom: 1px solid #e3e3e3; }
.dre-impressao .rs-sub td, .dre-impressao .rs-total td { font-weight: 600; border-top: 1px solid #111; }
.dre-impressao .rs-total td { font-size: 12.5px; }
.dre-impressao .rs-filho td:first-child { padding-left: 22px; color: #444; }
.dre-impressao .rs-desp td:first-child { padding-left: 12px; }
.dre-impressao footer { margin-top: 8px; color: #666; font-size: 9.5px; }
.badge-azul { background: #dbeafe; color: var(--info-txt); }

/* ---------- Catálogo online (versão 38) ---------- */
.cat-link { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 14px; }
.cat-link.cat-off { opacity: .8; }
.cat-link-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cat-url { font-weight: 600; word-break: break-all; }
.cat-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-prof { font-size: 12.5px; word-break: break-all; margin: 0; }
.cat-qr { width: 150px; flex-shrink: 0; background: #fff; border-radius: 12px; padding: 8px; }
.cat-qr svg { width: 100%; height: auto; display: block; }
.cat-n { font-size: 15px; margin: 0 0 6px; }
.cat-ped-tit { margin-top: 18px; }
@media (max-width: 700px) { .cat-link { flex-direction: column; } .cat-qr { width: 140px; } }
.cat-link-txt > .badge { align-self: flex-start; }
.cat-form .campo-prefixo input { text-align: left; }

/* ---------- Entregas (versão 39) ---------- */
.ent-posicoes { display: flex; flex-wrap: wrap; gap: 6px; }
.ent-posicoes .ic { width: 13px; height: 13px; vertical-align: -2px; }
.ent-quadro { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.ent-col { background: rgba(0, 0, 0, .012); border: 1px solid var(--borda); border-radius: var(--raio-lg); padding: 10px; min-height: 200px; }
.ent-col h2 { display: flex; align-items: center; gap: 7px; font-size: 14px; margin: 2px 4px 10px; }
.ent-col h2 .ic { width: 16px; height: 16px; color: var(--menta-txt); }
.ent-col h2 span { margin-left: auto; font-size: 12px; color: var(--muted); }
.ent-saiu h2 .ic { color: #ffcf70; }
.ent-lista { display: flex; flex-direction: column; gap: 10px; }
.ent-card { background: var(--surface); border: 1px solid var(--borda); border-radius: var(--raio-lg); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ent-card.ent-atrasada { border-color: rgba(255, 92, 108, .45); }
.ent-card header { display: flex; align-items: center; gap: 6px; }
.ent-tempo { margin-left: auto; font-size: 11.5px; }
.ent-atrasada .ent-tempo { color: var(--perigo-txt); }
.ent-end { display: flex; gap: 5px; color: var(--texto); text-decoration: none; line-height: 1.35; }
.ent-end .ic { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--menta-txt); }
.ent-end:hover { color: var(--menta-txt); }
.ent-obs { margin: 0; color: var(--muted); font-size: 12.5px; white-space: pre-line; }
.ent-valores { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; }
.ent-quem { color: var(--muted); font-size: 12.5px; }
.ent-quem .ic { width: 13px; height: 13px; vertical-align: -2px; }
.ent-card footer { display: flex; align-items: center; gap: 4px; }
.ent-card footer .icon-btn { width: 30px; height: 30px; }
@media (max-width: 900px) { .ent-quadro { grid-template-columns: repeat(4, minmax(240px, 82vw)); } }

/* ---------- Lista de compra (versão 40) ---------- */
.aba-n:not(:empty) { margin-left: 4px; min-width: 18px; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, .08); color: var(--texto); font-size: 11.5px; font-weight: 600; line-height: 18px; }
.cp-filtros { flex-wrap: wrap; align-items: center; }
.cp-campo { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cp-campo .input { width: auto; }
.cp-busca { min-width: 220px; flex: 1 1 220px; }
.cp-filtros > select.input { width: auto; max-width: 240px; }
.cp-todos { margin-left: auto; }
.cp-tabela .cp-qtd { width: 82px; text-align: right; }
.cp-tabela tr.cp-zero td { color: var(--muted); }
.cp-tabela tr.cp-zero td b { font-weight: 600; }
.cp-barra { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between;
  margin-top: 10px; padding: 10px 14px; border: 1px solid var(--borda-forte); border-radius: var(--raio-lg); background: var(--elevado); box-shadow: 0 -6px 18px rgba(0,0,0,.18); }
.cp-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.modal .cp-qtd { width: 90px; text-align: right; }
@media (max-width: 700px) {
  .cp-todos { margin-left: 0; }
  .cp-barra .cp-acoes { width: 100%; }
  .cp-barra { position: static; box-shadow: none; }
  .cp-barra .cp-acoes .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .cp-barra .cp-acoes .btn-primario { flex-basis: 100%; order: -1; }
}
.cp-prods { min-width: 240px; }
.cp-tabela td:first-child { min-width: 190px; }

/* ---------- Campanhas (versão 41) ---------- */
.cm-salva { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid transparent; }
.cm-salva .btn { margin-left: auto; }
.cm-passo { margin-bottom: 14px; padding: 16px 18px; }
.cm-passo h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; }
.cm-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--texto); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.cm-atalhos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 12px; }
.cm-atalho { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--borda-forte);
  background: var(--surface-2); color: var(--texto); text-align: left; cursor: pointer; font: inherit; }
.cm-atalho .ic { width: 18px; height: 18px; color: var(--menta-txt); margin-bottom: 2px; }
.cm-atalho small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.cm-atalho:hover { border-color: var(--borda-hover); }
.cm-atalho.on { border-color: var(--texto); background: var(--surface-2); }
.cm-filtros .cp-campo { flex-wrap: wrap; }
.cm-gastou { width: 120px; }
.cm-msg { min-height: 150px; resize: vertical; }
.cm-previa { display: flex; flex-direction: column; gap: 6px; }
.cm-balao { align-self: flex-start; max-width: 100%; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: #005c4b; color: #e9fdf6; font-size: 14px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.cm-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cm-progresso { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-bottom: 10px; }
.cm-progresso span { display: block; height: 100%; background: var(--menta); border-radius: inherit; }
.cm-feito td { color: var(--muted); }
.cm-foi { color: var(--menta-txt); }
.tabela small .ic { width: 12px; height: 12px; vertical-align: -1px; }
@media (max-width: 700px) {
  .cm-topo .cp-acoes { width: 100%; }
  .cm-topo .cp-acoes .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .cm-topo .cp-acoes .btn-primario { flex-basis: 100%; order: -1; }
  .cm-salva .btn { margin-left: 0; }
  .cm-atalhos { grid-template-columns: 1fr 1fr; }
  .cm-atalho { padding: 8px 10px; }
}

/* ---------- Ajuda: passo a passo e "o que mudou" ---------- */
.aj-camada { position: fixed; inset: 0; z-index: 9000; }
.aj-camada.aj-meio { background: rgba(0, 0, 0, .6); }
.aj-foco { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .6); outline: 2px solid var(--foco); outline-offset: 2px;
  pointer-events: none; transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease; }
.aj-meio .aj-foco { display: none; }
.aj-balao { position: fixed; width: min(360px, calc(100vw - 32px)); padding: 16px 18px 14px; border-radius: var(--raio-lg); background: var(--elevado);
  border: 0; box-shadow: var(--sombra-lg); color: var(--texto); transition: top .25s ease, left .25s ease; }
.aj-balao h4 { margin: 2px 0 6px; font-size: 16px; padding-right: 28px; }
.aj-balao p { margin: 0 0 14px; color: var(--texto-2); line-height: 1.5; }
.aj-n { color: var(--menta-txt); font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.aj-x { position: absolute; top: 8px; right: 8px; }
.aj-botoes { display: flex; justify-content: space-between; gap: 8px; }
.aj-desligar { display: block; margin: 10px auto 0; font-size: 12.5px; color: var(--muted); }
.aj-opcao { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .aj-foco, .aj-balao { transition: none; } }
.nv-lista { display: flex; flex-direction: column; gap: 16px; }
.nv-bloco h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 6px; font-size: 15px; }
.nv-bloco h4 small { color: var(--muted); font-weight: 500; font-size: 12px; }
.nv-bloco ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.nv-bloco li { color: var(--texto-2); line-height: 1.45; }
.nv-bloco li .link { display: inline; margin-left: 6px; padding: 0; min-height: 0; line-height: inherit; font-weight: 600; white-space: nowrap; }

/* ---------- Totem de autoatendimento (versão 42) ---------- */
.tt-passos { margin-bottom: 14px; }
.tt-ajuste { padding: 18px; }
.tt-ajuste-acoes { display: flex; justify-content: flex-end; margin-top: 14px; }
body.modo-totem .topo, body.modo-totem .lateral, body.modo-totem .aviso-demo, body.modo-totem .aviso-assinar, body.modo-totem .faixa-off { display: none !important; }
body.modo-totem .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "conteudo"; }
body.modo-totem .conteudo { overflow: hidden; }
body.modo-totem .view { height: 100%; }
body.modo-totem .view::before { display: none; }
.tt { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--bg); color: var(--texto); font-size: 18px;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.tt input { -webkit-user-select: text; user-select: text; }
.tt .ic { width: 1.1em; height: 1.1em; }
.tt-carregando { display: grid; place-items: center; }
.tt-sair { position: absolute; top: 10px; right: 10px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  color: var(--placeholder); opacity: .45; cursor: pointer; display: grid; place-items: center; }
.tt-sair:hover, .tt-sair:focus-visible { opacity: 1; color: var(--texto); }
.tt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: var(--raio-lg);
  border: 1px solid var(--borda-forte); background: var(--surface-2); color: var(--texto); font: inherit; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.tt-btn:disabled, .tt-btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.tt-btn:active:not(:disabled) { transform: scale(.97); }
.tt-btn-primario { background: var(--barra-2); border-color: var(--barra-2); color: #fff; }
.tt-btn-leve { background: transparent; }
.tt-btn-grande { min-height: 64px; font-size: 20px; width: 100%; }
.tt-btn-gigante { min-height: 76px; padding: 0 36px; font-size: 24px; border-radius: var(--raio-xl); }
/* início */
.tt-inicio { display: grid; place-items: center; cursor: pointer; text-align: center; padding: 24px;
  background: var(--bg); }
.tt-boas { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 640px; }
.tt-boas h1 { font-family: var(--fonte-marca); font-size: clamp(28px, 5vw, 46px); line-height: 1.15; margin: 8px 0 0; }
.tt-boas p { color: var(--texto-2); font-size: 20px; margin: 0 0 18px; }
/* compra */
.tt-topo { display: flex; align-items: center; gap: 12px; padding: 14px 64px 10px 16px; }
.tt-busca { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border-radius: var(--raio-lg); background: var(--campo); border: 1px solid var(--borda-forte); }
.tt-busca input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--texto); font: inherit; outline: none; }
.tt-grupos { display: flex; gap: 8px; padding: 2px 16px 12px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.tt-chip { flex-shrink: 0; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--borda-forte); background: var(--surface-2);
  color: var(--texto); font: inherit; font-weight: 600; cursor: pointer; }
.tt-chip.on { background: var(--surface-2); border-color: var(--texto); color: var(--texto); }
.tt-corpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; padding: 0 16px 16px; }
.tt-grade { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; align-content: start; padding-bottom: 8px; }
.tt-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--raio-lg); background: var(--surface); border: 1px solid var(--borda); }
.tt-card.tt-no-carrinho { border-color: var(--menta-borda); }
.tt-card.tt-esgotado { opacity: .55; }
.tt-foto { aspect-ratio: 1; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; color: #9aa; }
.tt-foto img { width: 100%; height: 100%; object-fit: contain; }
.tt-foto .ic { width: 42px; height: 42px; }
.tt-card h3 { font-size: 16px; line-height: 1.3; margin: 0; flex: 1; }
.tt-card h3 small { color: var(--muted); font-weight: 600; }
.tt-preco { font-size: 22px; font-weight: 600; color: var(--menta-txt); }
.tt-preco small { font-size: 14px; color: var(--muted); }
.tt-qtd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tt-qtd .tt-btn { width: 52px; padding: 0; }
.tt-qtd b { font-size: 22px; min-width: 32px; text-align: center; }
.tt-cesta { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--raio-lg); background: var(--surface); border: 1px solid var(--borda-forte); min-height: 0; }
.tt-cesta h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; }
.tt-cesta h2 small { color: var(--muted); font-size: 14px; font-weight: 600; margin-left: auto; }
.tt-cesta-lista { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.tt-cesta-lista li { display: flex; justify-content: space-between; gap: 10px; }
.tt-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; padding-top: 10px; border-top: 1px solid var(--borda); }
.tt-total b { font-size: 28px; }
.tt-vazio { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
/* pagar */
.tt-pagar, .tt-fim { overflow-y: auto; }
.tt-pagar-box, .tt-fim-box { width: min(720px, 100%); margin: 0 auto; padding: 32px 20px; display: flex; flex-direction: column; gap: 16px; }
.tt-pagar-box h1 { font-size: 30px; margin: 0; }
.tt-pagar-box h2 { font-size: 22px; margin: 8px 0 0; }
.tt-revisao { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tt-revisao li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--raio-lg); background: var(--surface); }
.tt-revisao .tt-qtd { gap: 6px; }
.tt-revisao .tt-qtd .tt-btn { width: 46px; min-height: 46px; }
.tt-total-grande b { font-size: 34px; color: var(--menta-txt); }
.tt-nome { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.tt-nome small { color: var(--muted); font-weight: 500; }
.tt-nome input { min-height: 56px; padding: 0 16px; border-radius: var(--raio-lg); border: 1px solid var(--borda-forte); background: var(--campo); color: var(--texto); font: inherit; }
.tt-formas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tt-forma { flex-direction: column; min-height: 110px; font-size: 18px; }
.tt-forma .ic { width: 34px; height: 34px; color: var(--menta-txt); }
.tt-forma-caixa .ic { color: var(--bico-txt); }
.tt-aviso { display: flex; gap: 8px; align-items: center; color: var(--bico-txt); margin: 0; }
/* fim */
.tt-fim { display: grid; place-items: center; text-align: center; }
.tt-fim-box { align-items: center; }
.tt-fim-icone .ic { width: 84px; height: 84px; color: var(--menta); }
.tt-fim-box h1 { font-size: 32px; margin: 0; }
.tt-fim-box p { color: var(--texto-2); font-size: 20px; margin: 0; }
.tt-num { margin-top: 8px !important; }
.tt-num b { display: block; font-family: var(--fonte-marca); font-size: 64px; color: var(--menta-txt); line-height: 1.1; }
/* ainda está aí? */
.tt-ainda { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(0, 0, 0, .65); }
.tt-ainda-box { width: min(420px, calc(100% - 32px)); padding: 28px; border-radius: var(--raio-xl); background: var(--elevado); border: 1px solid var(--menta-borda); text-align: center; }
.tt-ainda-box h2 { margin: 0 0 6px; font-size: 26px; }
.tt-ainda-box p { color: var(--texto-2); margin: 0 0 18px; }
/* tablet em pé e celular: a cesta vira uma barra embaixo */
@media (max-width: 900px) {
  .tt-corpo { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .tt-cesta { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .tt-cesta h2, .tt-cesta-lista { display: none; }
  .tt-cesta .tt-total { flex: 1; border: 0; padding: 0; }
  .tt-cesta .tt-btn-grande { width: auto; flex: 1 1 200px; }
  .tt-grade { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 520px) {
  .tt-topo { padding-right: 56px; }
  .tt-topo .tt-btn-leve { padding: 0 12px; }
  .tt-revisao li { grid-template-columns: 1fr auto; }
  .tt-revisao .tt-qtd { grid-column: 1 / -1; justify-content: flex-start; }
}
.cm-passo h3 .cm-ia { margin-left: auto; }
.cm-ia-rot { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 13px; color: var(--texto-2); }
.cat-desc { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--borda); }
.cat-desc p { margin: 0 0 8px; }
.cat-desc-lista { display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow-y: auto; }
.cat-desc-item { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.cat-desc-nome { display: flex; align-items: center; gap: 8px; }
.fp-ia-desc { align-self: flex-start; margin-top: 8px; }

/* ---------- Entrada NF: buscar a nota pela chave ---------- */
.nf-pela-chave { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding: 12px 14px;
  border: 1px dashed var(--borda-forte); border-radius: var(--raio-lg); }
.nf-pela-chave .ic { width: 16px; height: 16px; vertical-align: -3px; }
.nf-pendentes { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px 14px; border-radius: var(--raio-lg); background: var(--bico-soft); border: 1px solid var(--bico-borda); }
.nf-pendentes > b { display: flex; align-items: center; gap: 8px; color: var(--bico-txt); }
.nf-pend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nf-pend > span { flex: 1; min-width: 200px; }
.nf-chave-campo { font-size: 16px; letter-spacing: .04em; }
.nf-chave-info { min-height: 20px; margin: 8px 0 0; }
.nf-chave-info .ic { width: 15px; height: 15px; vertical-align: -3px; }

/* ---------- Entrada NF: digitar a nota ---------- */
.nf-sem-xml { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-itens { margin: 14px 0 8px; }
.nd-itens td { vertical-align: top; }
.nd-itens .input { min-width: 0; }
.nd-itens td:first-child { min-width: 260px; }
.nd-itens td:first-child small { display: block; margin-top: 3px; }
.nd-itens .num.input, .nd-itens input.num { text-align: right; width: 92px; }
.nd-itens select.input { width: 84px; }
.nd-rodape { margin-top: 12px; }
.nd-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; margin: 6px 0 4px; font-size: 15px; }
.nd-total b { font-size: 22px; color: var(--menta-txt); }
.nf-escolher { display: flex; flex-direction: column; gap: 8px; }
.nf-opcao { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--borda-forte);
  background: var(--surface-2); color: var(--texto); font: inherit; text-align: left; cursor: pointer; }
.nf-opcao:hover { border-color: var(--menta-borda); }

/* ---------- Produtos: como o catálogo do Polar ---------- */
/* busca, situação e ordem; os outros filtros em "Filtros"; as ferramentas no menu; a lista em linhas largas */
.pr-barra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pr-busca { width: 260px; }
.pr-sel { width: auto; min-width: 150px; }
.pr-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 2px; padding: 0 5px; border-radius: 999px; background: var(--barra); color: var(--no-barra); font-size: 11px; font-weight: 500; }
.pr-filtros { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -8px 0 20px; }
.pr-filtros > select.input { flex: 0 1 220px; width: auto; min-width: 170px; }
#prBarra:not(.on) { display: none; }
.pr-lista { overflow: hidden; border: 1px solid var(--borda); border-radius: var(--raio-lg); background: var(--surface); }
.pr-linha { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--linha); transition: background .1s; }
.pr-linha:last-child { border-bottom: 0; }
.pr-lista.clicavel .pr-linha { cursor: pointer; }
.pr-linha:hover { background: var(--surface-2); }
.pr-linha.marcada { background: #f4f6fa; }
.pr-linha.inativo .pr-nome-l b, .pr-linha.inativo .pr-preco b { color: var(--muted); }
.pr-check { display: grid; place-items: center; width: 20px; height: 40px; margin-right: -4px; cursor: pointer; }
.pr-check input { width: 16px; height: 16px; accent-color: var(--barra); cursor: pointer; }
.pr-foto { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; border-radius: var(--raio); background: var(--surface-2); border: 1px solid var(--borda); color: var(--muted); font-size: 12px; font-weight: 500; }
.pr-foto img { width: 100%; height: 100%; object-fit: cover; }
.pr-nome { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pr-nome-l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pr-nome-l b { font-size: 15px; font-weight: 400; color: var(--texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-nome > small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-chip { flex-shrink: 0; padding: 1px 7px; border-radius: 6px; background: #edf2f5; color: #737c82; font-size: 11.5px; line-height: 18px; white-space: nowrap; }
.pr-est { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 84px; text-align: right; }
.pr-est small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pr-preco { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 100px; text-align: right; }
.pr-preco b { font-size: 15px; font-weight: 400; color: var(--texto); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-preco small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pr-acao { background: #f5f5f5; }
.pr-mais { margin-left: -4px; }
.pr-todos { font-size: 13px; }
/* barra dos escolhidos: cinza e arredondada, só com produtos escolhidos */
.grp-barra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px 8px 16px; border-radius: var(--raio-lg); background: var(--bg); font-size: 14px; margin-bottom: 12px; }
.grp-barra b { font-weight: 500; }

/* menu suspenso (⋮ e Ferramentas) */
.menu-pop { position: fixed; z-index: 120; min-width: 220px; padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: var(--sombra-menu); animation: aparecer .12s ease; }
.menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 14px; color: var(--texto); text-align: left; }
.menu-pop button:hover, .menu-pop button:focus-visible { background: var(--bg); outline: none; }
.menu-pop button .ic { width: 16px; height: 16px; color: var(--muted); }
.menu-pop button.perigo { color: var(--perigo-txt); }
.menu-pop button.perigo .ic { color: inherit; }
.menu-pop hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--linha); }

/* abas da área ao lado do título: só com o menu recolhido (Catalogue · Checkout Links · Discounts no Polar) */
.area-abas { display: none; align-items: center; gap: 4px; flex-wrap: wrap; }
.app.recolhido .area-abas { display: flex; }
.area-abas .aba { text-decoration: none; }

@media (max-width: 760px) {
  .pr-busca { width: 100%; }
  .pr-sel { flex: 1 1 140px; }
  .pr-linha { gap: 10px; padding: 10px 10px 10px 12px; flex-wrap: wrap; }
  .pr-nome { flex-basis: calc(100% - 80px); }
  .pr-est { min-width: 0; align-items: flex-start; margin-left: 54px; }
  .pr-preco { margin-left: auto; min-width: 0; }
  .pr-acao { display: none; }
}

/* ---------- Visão geral (Início), como o Overview do Polar ---------- */
.vg-aviso { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 14px 14px 14px 20px; border-radius: var(--raio-lg); background: var(--bg); color: var(--texto); text-decoration: none; font-size: 14px; }
.vg-aviso > .ic { width: 18px; height: 18px; flex-shrink: 0; }
.vg-aviso > .ic:last-child:not(:first-child) { color: var(--muted); }
a.vg-aviso:hover { background: var(--hover-2); }
.vg-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0 24px; overflow: hidden; border: 1px solid var(--borda); border-radius: var(--raio-xl); background: var(--surface); }
.vg-cel { display: flex; flex-direction: column; min-width: 0; padding: 22px 24px 12px; border-top: 1px solid var(--linha); }
.vg-cel-larga { grid-column: 1 / -1; border-top: 0; }
.vg-cel:not(.vg-cel-larga):nth-child(even) { border-right: 1px solid var(--linha); }
.vg-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.vg-tit { font-size: 18px; font-weight: 400; color: var(--texto); }
.vg-num { margin-top: 4px; font-size: 44px; font-weight: 300; line-height: 1.1; letter-spacing: -.03em; color: var(--texto); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-cel:not(.vg-cel-larga) .vg-num { font-size: 38px; }
.vg-data { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; font-size: 13px; color: var(--texto-2); }
.vg-data i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--serie); }
.vg-graf { margin: 0 -6px; }
.vg-baixo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; overflow: hidden; border: 1px solid var(--borda); border-radius: var(--raio-xl); background: var(--surface); }
.vg-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px; }
.vg-col + .vg-col { border-left: 1px solid var(--linha); }
.vg-col-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; font-size: 18px; font-weight: 400; color: var(--texto); }
.vg-col-num { font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vg-meses { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.vg-mes { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vg-mes-barra { position: relative; height: 140px; margin-bottom: 8px; overflow: hidden; border-radius: 6px; background: repeating-linear-gradient(135deg, #eef0f3 0 1px, #fafbfc 1px 7px); }
.vg-mes-barra span { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 6px 6px 0 0; background: var(--serie); opacity: .85; }
.vg-mes b { font-size: 13px; font-weight: 400; color: var(--texto); }
.vg-mes small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-lista { display: flex; flex-direction: column; }
.vg-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--linha); color: var(--texto); text-decoration: none; }
.vg-item:last-child { border-bottom: 0; }
.vg-item > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.vg-item b { font-size: 14px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-item small { font-size: 12px; color: var(--muted); }
.vg-item-v { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vg-item.cancelada .vg-item-v { color: var(--muted); }
.vg-vazio { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; padding: 20px; border-radius: var(--raio-lg); background: var(--surface-2); text-align: center; }
.vg-vazio b { font-size: 16px; font-weight: 400; color: var(--texto); }
.vg-vazio span { font-size: 14px; color: var(--muted); }
@media (max-width: 1100px) {
  .vg-baixo { grid-template-columns: minmax(0, 1fr); }
  .vg-col + .vg-col { border-left: 0; border-top: 1px solid var(--linha); }
}
@media (max-width: 760px) {
  .vg-grade { grid-template-columns: minmax(0, 1fr); }
  .vg-cel:not(.vg-cel-larga):nth-child(even) { border-right: 0; }
  .vg-num, .vg-cel:not(.vg-cel-larga) .vg-num { font-size: 34px; }
  .vg-aviso { flex-wrap: wrap; padding: 14px 14px 14px 16px; }
  .vg-aviso .aviso-txt { flex-basis: calc(100% - 34px); }
  .vg-aviso > .btn { margin-left: 32px; }
  .vg-aviso > .ic:last-child:not(:first-child) { display: none; }
}

/* gráfico de linha (Polar) */
.g-linha { stroke: var(--serie); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.g-ponto { fill: var(--surface); stroke: var(--serie); stroke-width: 2; }
.grafico-linha .g-grade { stroke: #e9ebef; stroke-dasharray: 2 3; }
.g-dica.g-dica-linha { min-width: 160px; padding: 8px 10px; gap: 4px; }
.g-dica .g-dica-tit { font-size: 12px; font-weight: 500; color: var(--texto); }
.g-dica .g-dica-lin { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.g-dica-lin i { width: 8px; height: 8px; border-radius: 50%; background: var(--serie); }
.g-dica .g-dica-lin strong { margin-left: auto; padding-left: 14px; font-size: 12px; font-weight: 500; color: var(--texto); }

/* ---------- Cadastros em linhas largas, como o catálogo do Polar ---------- */
.crud-lista { overflow: hidden; border: 1px solid var(--borda); border-radius: var(--raio-lg); background: var(--surface); }
.crud-linha { display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--linha); cursor: pointer; transition: background .1s; }
.crud-linha:last-child { border-bottom: 0; }
.crud-linha:hover { background: var(--surface-2); }
.crud-nome { flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; }
.crud-nome b { font-weight: 400; }
.crud-nome small { font-size: 12.5px; }
.crud-cel { display: flex; flex-direction: column; gap: 1px; min-width: 120px; max-width: 240px; font-size: 13.5px; color: var(--texto-2); }
.crud-cel > small { font-size: 11.5px; color: var(--placeholder); }
.crud-cel.num { align-items: flex-end; min-width: 76px; text-align: right; }
@media (max-width: 900px) {
  .crud-linha { flex-wrap: wrap; row-gap: 6px; }
  .crud-nome { flex-basis: calc(100% - 100px); }
  .crud-cel { min-width: 0; margin-left: 0; }
  .crud-linha .cli-av ~ .crud-cel:first-of-type { margin-left: 48px; }
}

/* ---------- Primeiros passos: assistente em tela cheia, como o cadastro inicial do Polar ---------- */
.pp { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: auto; background: var(--surface); animation: aparecer .2s ease; }
.pp-esq { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; padding: 48px 24px 76px; }
.pp-forma { display: flex; flex-direction: column; width: 100%; max-width: 440px; }
.pp-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pp-topo .logo-pato { width: 32px; height: 32px; }
.pp-barras { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 30px; }
.pp-barras span { height: 2px; border-radius: 2px; background: var(--borda); transition: background .2s; }
.pp-barras span.on { background: var(--texto); }
.pp h1 { font-size: 34px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; color: var(--texto); }
.pp-sub { margin: 8px 0 26px; font-size: 15px; color: var(--muted); }
.pp-corpo { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.pp-dois { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.pp-pilulas { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-pilula { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--borda); background: var(--surface); font-size: 13.5px; color: var(--texto); transition: background .12s, border-color .12s, color .12s; }
.pp-pilula:hover { background: var(--surface-2); }
.pp-pilula.on { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.pp-opcoes { display: flex; flex-direction: column; gap: 10px; }
.pp-opcao { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--raio-lg); border: 1px solid var(--borda); background: var(--surface); text-align: left; transition: background .12s, border-color .12s; }
.pp-opcao:hover { background: var(--surface-2); }
.pp-opcao.on { border-color: var(--texto); box-shadow: inset 0 0 0 1px var(--texto); }
.pp-opcao-ic { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--bg); }
.pp-opcao-ic .ic { width: 18px; height: 18px; }
.pp-opcao b { display: block; font-size: 14.5px; font-weight: 500; color: var(--texto); }
.pp-opcao small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.pp-radio { flex-shrink: 0; width: 18px; height: 18px; margin-left: auto; border-radius: 50%; border: 1.5px solid #c7c9ce; }
.pp-opcao.on .pp-radio { border: 5px solid var(--texto); }
.pp-revisao { padding: 16px 20px; border-radius: var(--raio-lg); background: var(--surface-2); }
.pp-continuar { width: 100%; }
.pp-rodape { position: absolute; left: 24px; bottom: 22px; display: flex; gap: 16px; }
.pp-rodape .link-btn { font-size: 13.5px; font-weight: 400; color: var(--muted); text-decoration: none; }
.pp-rodape .link-btn:hover { color: var(--texto); }
.pp-dir { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 48px; background: #f6f7f8; border-left: 1px solid var(--linha); }
.pp-cupom { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 300px; padding: 22px 20px; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 24px 48px -24px rgba(0, 0, 0, .3); font-family: var(--fonte-mono); font-size: 12px; color: #111; text-align: center; }
.pp-cupom b { margin-bottom: 2px; font-size: 14px; font-weight: 600; }
.pp-cupom i { align-self: stretch; margin: 8px 0; border-top: 1px dashed #bbb; }
.pp-vazio { color: #c4c6cb; }
.pp-linha { display: flex; justify-content: space-between; gap: 10px; align-self: stretch; }
.pp-total { font-size: 13px; font-weight: 600; }
.pp-previa-leg { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .pp { grid-template-columns: minmax(0, 1fr); }
  .pp-dir { display: none; }
  .pp h1 { font-size: 28px; }
  .pp-dois { grid-template-columns: minmax(0, 1fr); }
}

/* o guia dos primeiros passos na Visão geral */
.pp-guia { margin: 0 0 16px; padding: 20px 22px; border: 1px solid var(--borda); border-radius: var(--raio-xl); background: var(--surface); }
.pp-guia-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pp-anel { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--texto) calc(var(--p) * 1%), var(--borda) 0);
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); }
.pp-guia-conta { font-size: 13px; color: var(--muted); }
.pp-guia h3 { font-size: 18px; font-weight: 400; color: var(--texto); }
.pp-guia > .muted { margin: 2px 0 14px; }
.pp-tarefas { display: flex; flex-direction: column; gap: 2px; }
.pp-tarefa { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.pp-tarefa.aberta { background: var(--surface-2); }
.pp-check { display: grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.5px dashed #b9bcc3; }
.pp-tarefa.ok .pp-check { border: 0; background: var(--texto); color: var(--no-barra); }
.pp-check .ic { width: 12px; height: 12px; stroke-width: 3; }
.pp-tarefa-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; }
.pp-tarefa-txt b { font-weight: 500; color: var(--texto); }
.pp-tarefa.ok .pp-tarefa-txt b { font-weight: 400; color: var(--muted); }
.pp-tarefa-txt span { font-size: 13.5px; color: var(--muted); }
.pp-tarefa-txt .btn { margin-top: 6px; }

/* lista e detalhe genérico: os números do cadastro em blocos cinza (com selos e textos) */
.cli-stats-livre { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cli-stat > div { font-size: 14px; color: var(--texto); }
.cli-stat > div small { font-size: 12px; }

/* filtros e resumo no alto da lista (Orçamentos, Entregadores) */
.cli-filtros { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--linha); flex-shrink: 0; }
.cli-filtros .input { flex: 1 1 130px; min-width: 0; width: auto; height: 32px; padding: 0 28px 0 12px; border-radius: 999px; font-size: 13px; background-color: var(--surface-2); }
.cli-filtros .input[hidden] { display: none; }
.cli-resumo { padding: 9px 18px; border-bottom: 1px solid var(--linha); font-size: 12.5px; color: var(--muted); flex-shrink: 0; }
.cli-resumo:empty { display: none; }
.cli-resumo b { font-family: var(--fonte-mono); font-weight: 500; color: var(--texto); }

/* Orçamentos em lista + detalhe */
.orc-item .cli-item-txt { flex: 1; }
.orc-item-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; margin-left: auto; }
.orc-item-dir b { font-family: var(--fonte-mono); font-size: 13px; font-weight: 500; color: var(--texto); }
.orc-item-dir .badge { font-size: 11px; }
.orc-item.cancelado .cli-item-txt b, .orc-item.cancelado .orc-item-dir b { color: var(--muted); }
.orc-selos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -8px 0 18px; }
.orc-selos .badge { margin: 0; }
.cli-detalhe .fp-alerta { margin-bottom: 16px; }
.orc-tabela .tabela td { vertical-align: middle; }
.cli-tabela .tabela-compacta th:first-child, .cli-tabela .tabela-compacta td:first-child { padding-left: 14px; }
.cli-tabela .tabela-compacta th:last-child, .cli-tabela .tabela-compacta td:last-child { padding-right: 16px; }
.orc-conta { display: flex; justify-content: flex-end; margin-top: 14px; }
.orc-conta .conta { width: min(340px, 100%); padding: 6px 18px 4px; border-radius: var(--raio-lg); background: var(--surface-2); }
.orc-conta .conta-linha:nth-last-child(1) { border-bottom: 0; }
.cli-mais { width: 36px; height: 36px; background: var(--bg); }
.cli-mais:hover { background: var(--hover-2); }
@media (max-width: 900px) {
  .orc-tabela .orc-foto-th, .orc-tabela .orc-itens td:first-child { display: none; }
  .orc-tabela .orc-itens th:nth-child(2), .orc-tabela .orc-itens td:nth-child(2) { padding-left: 14px; }
  .orc-tabela .orc-itens th:nth-child(4), .orc-tabela .orc-itens td:nth-child(4) { display: none; }
  .orc-tabela .orc-itens td { font-size: 13.5px; }
  .orc-conta .conta { width: 100%; }
}
.cli-stat b.txt-perigo { color: var(--perigo-txt); }
.cli-stat b.txt-sucesso { color: var(--menta-txt); }

/* Compartilhar um número como imagem (o "Share metric" do Polar) */
.vg-cab .vg-compartilhar { margin-left: auto; opacity: 0; transition: opacity .12s; }
.vg-cab .vg-compartilhar + .icon-btn { margin-left: 0; }
.vg-cel:hover .vg-compartilhar, .vg-compartilhar:focus-visible { opacity: 1; }
@media (hover: none) { .vg-cab .vg-compartilhar { opacity: 1; } }
.sh-previa img { display: block; width: 100%; aspect-ratio: 1200 / 1020; border-radius: 20px; background: var(--bg); }
.modal-compartilhar .modal-foot { align-items: center; }
.sh-temas { display: flex; gap: 10px; }
.sh-tema { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: box-shadow .12s; }
.sh-tema.on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 0 0 2px var(--surface), 0 0 0 4px var(--texto); }
.sh-copiar { background: none; }
.sh-copiar:hover { background: var(--bg); }

/* Promoções e cupons (versão 54), como os Descontos do Polar */
.pm-av { color: var(--texto-2); }
.pm-av .ic { width: 15px; height: 15px; }
.pm-cod-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: var(--bg); font-family: var(--fonte-mono); font-size: 12.5px; color: var(--texto); transition: background .12s; }
.pm-cod-chip:hover { background: var(--hover-2); }
.pm-cod-chip .ic { width: 12px; height: 12px; color: var(--muted); }
.pm-sit { flex-shrink: 0; min-width: 84px; text-align: right; }
.pm-form { display: flex; flex-direction: column; gap: 18px; }
.pm-form .seg-cheio { margin: 0; }
.pm-cod { display: flex; gap: 8px; }
.pm-cod .input { flex: 1; text-transform: uppercase; letter-spacing: .02em; }
.pm-valor > .input { text-align: left; }
.pm-valor.campo-prefixo > .input { padding-left: 34px; }
.pm-bloco { border: 1px solid var(--borda); border-radius: var(--raio-lg); background: var(--surface); }
.pm-bloco > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: 14px; color: var(--texto); cursor: pointer; list-style: none; }
.pm-bloco > summary::-webkit-details-marker { display: none; }
.pm-bloco > summary .ic { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.pm-bloco[open] > summary .ic { transform: rotate(180deg); }
.pm-bloco-corpo { display: flex; flex-direction: column; gap: 16px; padding: 0 16px 16px; }
.pm-dois { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pm-grupos { display: flex; flex-direction: column; max-height: 220px; margin-top: 8px; padding: 6px; overflow-y: auto; border: 1px solid var(--borda); border-radius: 12px; }
.pm-grupos[hidden] { display: none; }
.pm-grupo { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px calc(8px + var(--n, 0) * 18px); border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.pm-grupo:hover { background: var(--surface-2); }
@media (max-width: 900px) {
  .crud-linha .pm-sit { min-width: 0; }
  .pm-dois { grid-template-columns: minmax(0, 1fr); }
}

/* o cupom na janela de desconto da venda */
.ds-cupom { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--linha); }
.ds-cupom label { font-size: 13px; font-weight: 500; color: var(--texto); }
.ds-cupom-linha { display: flex; gap: 8px; }
.ds-cupom-linha .input { flex: 1; text-transform: uppercase; font-family: var(--fonte-mono); letter-spacing: .02em; }
.ds-cupom small { line-height: 1.5; }
.ds-cupom small .ic { width: 14px; height: 14px; vertical-align: -2px; }
.ds-cupom .link-btn { margin-left: 6px; font-size: 12.5px; }

/* Fidelidade (cashback) */
.fd-config { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; margin-bottom: 20px; padding: 24px; border: 1px solid var(--borda); border-radius: var(--raio-xl); background: var(--surface); }
.fd-config-txt { display: flex; gap: 16px; align-items: flex-start; }
.fd-ic { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: var(--bg); }
.fd-ic .ic { width: 20px; height: 20px; }
.fd-config h2 { margin-bottom: 4px; font-size: 18px; font-weight: 400; color: var(--texto); }
.fd-config-txt p { font-size: 14px; line-height: 1.55; }
.fd-config-campos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.fd-config-campos .campo { margin: 0; }
.fd-exemplo, .fd-so-dono { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--muted); }
.fd-exemplo b { font-weight: 500; color: var(--texto); }
.fd-barra { margin-top: 28px; }
.fd-tit { font-size: 18px; font-weight: 400; color: var(--texto); }
.fd-saldo { font-family: var(--fonte-mono); color: var(--menta-txt); }
@media (max-width: 900px) {
  .fd-config { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .fd-config-campos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fd-config-campos .btn { grid-column: 1 / -1; }
}
.crud-linha .pm-c-cod { flex: 0 0 150px; }
.crud-linha .pm-c-desc { flex: 0 0 90px; min-width: 0; }
.crud-linha .pm-c-usos { flex: 0 0 70px; min-width: 0; }
.crud-linha .pm-c-val { flex: 0 0 170px; }
@media (max-width: 1100px) { .crud-linha .pm-c-val, .crud-linha .pm-c-usos { display: none; } }
@media (max-width: 700px) { .crud-linha .pm-c-cod { display: none; } }

/* ---------- Visão geral, segunda passada (Overview do Polar) ---------- */
.vg-topo { margin-bottom: 20px; }
.vg-topo .saudacao p { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.vg-caixa { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--bg); color: var(--texto-2); font-size: 12.5px; text-decoration: none; }
.vg-caixa:hover { background: var(--hover-2); color: var(--texto); }
.vg-caixa i { width: 7px; height: 7px; border-radius: 50%; background: var(--menta-claro); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.vg-personalizar .ic { width: 15px; height: 15px; }
/* os avisos que pedem ação, num bloco cinza só */
.vg-avisos { display: flex; flex-direction: column; margin-bottom: 20px; padding: 4px 0; border-radius: var(--raio-lg); background: var(--bg); }
.vg-aviso-l { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 20px; color: var(--texto); text-decoration: none; font-size: 14px; }
.vg-aviso-l + .vg-aviso-l { border-top: 1px solid rgba(16, 18, 25, .06); }
.vg-aviso-l > .ic { width: 18px; height: 18px; flex-shrink: 0; }
.vg-aviso-l > .ic:last-child:not(:first-child) { color: var(--muted); }
a.vg-aviso-l:hover { background: rgba(16, 18, 25, .025); }
.vg-aviso-l .aviso-txt { flex: 1; }
/* a variação contra o período anterior e a legenda da linha tracejada */
.vg-var { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; padding: 1px 7px 1px 5px; border-radius: 999px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.vg-var .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.vg-var.sobe { background: var(--menta-soft); color: var(--menta-txt); }
.vg-var.desce { background: var(--perigo-soft); color: var(--perigo-txt); }
.vg-var.neutro, .vg-var.igual { background: var(--bg); color: var(--muted); }
.vg-leg-ant { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--muted); }
.vg-leg-ant i { width: 14px; height: 0; border: 0; border-top: 2px dashed #c4c7cd; border-radius: 0; }
.g-linha-ant { stroke: #c9ccd2; stroke-width: 1.5; stroke-dasharray: 4 4; stroke-linejoin: round; stroke-linecap: round; }
.g-ponto-ant { fill: var(--surface); stroke: #b3b7bf; stroke-width: 2; }
.g-dica .g-dica-ant i { background: transparent; border: 1.5px dashed #b3b7bf; }
.vg-cel { padding: 22px 24px 14px; }
/* listas da faixa de baixo com o avatar, como as do Polar */
.vg-item { gap: 12px; justify-content: flex-start; }
.vg-item .cli-av { width: 30px; height: 30px; font-size: 10.5px; }
.vg-item-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vg-item > .vg-item-v, .vg-item > .badge { margin-left: auto; }
.vg-item-v small { font-size: 11.5px; color: var(--muted); }
a.vg-item:hover b { text-decoration: underline; text-underline-offset: 2px; }
.vg-mes.atual b { font-weight: 500; }
.vg-mes.atual .vg-mes-barra span { opacity: 1; }
.vg-mes:not(.atual) .vg-mes-barra span { opacity: .55; }
/* a segunda faixa: o que sobrou, vendedores e contas */
.vg-resumo.vg-n1 { grid-template-columns: minmax(0, 1fr); }
.vg-resumo.vg-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vg-resumo.vg-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vg-num-m { margin-top: -4px; font-size: 34px; }
.vg-num.neg { color: var(--perigo-txt); }
.vg-conta { display: flex; flex-direction: column; }
.vg-conta-l { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linha); font-size: 14px; color: var(--texto-2); }
.vg-conta-l:last-child { border-bottom: 0; }
.vg-conta-l b { font-weight: 400; color: var(--texto); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vg-nota { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.vg-vend .vg-item-txt small { margin-bottom: 6px; }
.vg-vend-barra { display: block; height: 4px; overflow: hidden; border-radius: 2px; background: var(--bg); }
.vg-vend-barra span { display: block; height: 100%; border-radius: 2px; background: var(--serie); }
.vg-col > .ct-inicio { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.vg-col .ct-inicio .card-titulo { display: flex; align-items: center; justify-content: space-between; min-height: 30px; margin: 0 0 14px; font-size: 18px; font-weight: 400; color: var(--texto); }
.vg-col .ct-inicio .card-titulo .link { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--bg); color: var(--texto); font-size: 12.5px; text-decoration: none; }
.vg-col .ct-inicio .card-titulo .link .ic { display: none; }
.vg-col .ct-resumo { display: none; }
@media (max-width: 1100px) {
  .vg-resumo.vg-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vg-resumo.vg-n3 .vg-col:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--linha); }
}
@media (max-width: 900px) {
  .vg-resumo.vg-n2, .vg-resumo.vg-n3 { grid-template-columns: minmax(0, 1fr); }
  .vg-resumo .vg-col + .vg-col { border-left: 0; border-top: 1px solid var(--linha); }
  .vg-topo .seg { order: 3; width: 100%; justify-content: space-between; }
  .vg-topo .seg button { flex: 1; }
  .vg-leg-ant { display: none; }
  .vg-aviso-l { flex-wrap: wrap; padding: 12px 14px; }
  .vg-aviso-l .aviso-txt { flex-basis: calc(100% - 34px); }
  .vg-aviso-l > .btn { margin-left: 32px; }
  .vg-aviso-l > .ic:last-child:not(:first-child) { display: none; }
}

/* Personalizar a Visão geral (o "Customize" do Polar) */
.vg-opcoes-dica { margin-bottom: 14px; font-size: 13.5px; }
.vg-opcoes { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--borda); border-radius: var(--raio-lg); }
.vg-opcao { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--linha); cursor: pointer; }
.vg-opcao:last-child { border-bottom: 0; }
.vg-opcao:hover { background: var(--surface-2); }
.vg-opcao b { display: block; font-size: 14px; font-weight: 500; color: var(--texto); }
.vg-opcao small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.vg-chave { appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0; width: 34px; height: 20px; margin: 0; border-radius: 999px; background: #d4d6db; cursor: pointer; transition: background .15s; }
.vg-chave::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.vg-chave:checked { background: var(--texto); }
.vg-chave:checked::after { transform: translateX(14px); }
.vg-chave:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }

/* Primeiros passos compacto: os passos lado a lado */
.pp-guia { padding: 18px 20px 20px; }
.pp-guia-cab { gap: 12px; margin-bottom: 14px; }
.pp-guia .pp-anel { width: 30px; height: 30px; -webkit-mask: radial-gradient(circle, transparent 10px, #000 10.5px); mask: radial-gradient(circle, transparent 10px, #000 10.5px); }
.pp-guia-tit { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pp-guia-tit h3 { font-size: 16px; font-weight: 500; color: var(--texto); }
.pp-guia .pp-tarefas { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.pp-guia .pp-tarefa { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 1px solid var(--linha); border-radius: 14px; }
.pp-guia .pp-tarefa b { font-size: 14px; font-weight: 500; color: var(--texto); line-height: 1.3; }
.pp-guia .pp-tarefa.ok b { font-weight: 400; color: var(--muted); }
.pp-guia .pp-tarefa-txt { display: block; flex: 1; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.pp-guia .pp-tarefa .btn { margin-top: 2px; }
.pp-guia .pp-tarefa.aberta { border-color: var(--borda); background: var(--surface-2); }
.pp-guia .pp-check { margin: 0 0 2px; font-size: 11px; font-weight: 500; color: var(--muted); }
.pp-guia .pp-tarefa.aberta .pp-check { border: 1.5px solid var(--texto); color: var(--texto); }
.vg-resumo .vg-vazio { flex: 0 0 auto; }
.vg-cel-larga:not(:first-child) { border-top: 1px solid var(--linha); }
.pp-guia .pp-anel { flex-shrink: 0; }
@media (max-width: 600px) { .pp-guia .pp-tarefa.ok { display: none; } }

/* ---------- Tela de venda, como o checkout do Polar: o catálogo num fundo cinza, a venda numa coluna branca ---------- */
.pdv-catalogo { background: var(--surface-2); }
.pdv-catalogo .seg { background: var(--surface); box-shadow: inset 0 0 0 1px var(--borda); }
.pdv-catalogo .seg button.on { background: var(--bg); box-shadow: none; }
.pdv-busca .input { background: var(--surface); }
.pdv-trilha .trilha-voltar { background: var(--surface); box-shadow: inset 0 0 0 1px var(--borda); }
.pdv-trilha .trilha-atual { font-size: 15px; }
/* grupos e produtos: cartão branco, a foto num quadro cinza arredondado e o texto embaixo */
.tiles { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); }
.tile { aspect-ratio: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 6px; border-radius: var(--raio-lg); transition: border-color .12s, box-shadow .12s; }
.tile:hover { border-color: var(--borda-hover); background: var(--surface); box-shadow: 0 8px 18px -12px rgba(16, 18, 25, .28); }
.tile:active { background: var(--surface); border-color: var(--texto); }
.tile-midia { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--bg); }
.tile .tile-midia img { position: static; width: 100%; height: 100%; object-fit: cover; }
.tile-icone { margin: 0; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 18, 25, .06), 0 0 0 1px rgba(16, 18, 25, .04); }
.tile-neutro .tile-icone { color: var(--texto); }
.tile-rotulo { position: static; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1px; padding: 10px 8px 6px; }
.tile-rotulo span { font-size: 14px; font-weight: 500; color: var(--texto); }
.tile-rotulo small { padding: 0; border-radius: 0; background: none; font-family: var(--fonte); font-size: 12.5px; color: var(--muted); }
.pcard { padding: 6px; border-radius: var(--raio-lg); }
.pcard:hover { box-shadow: 0 8px 18px -12px rgba(16, 18, 25, .28); }
.pcard-foto { border-bottom: 0; border-radius: 12px; background: var(--bg); }
.pcard-info { padding: 10px 8px 6px; }
.pcard-preco { font-size: 15px; }
.plista { box-shadow: 0 1px 2px rgba(16, 18, 25, .03); }
/* a venda */
.pdv-venda-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 12px; }
.pdv-venda-cab h2 { font-size: 18px; font-weight: 400; color: var(--texto); }
.pdv-n { padding: 2px 10px; border-radius: 999px; background: var(--bg); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pdv-pessoas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 20px 16px; }
.pessoa { gap: 10px; padding: 8px 12px; border: 1px solid var(--borda); border-radius: 12px; background: var(--surface); transition: border-color .12s, background .12s; }
.pessoa + .pessoa { border-left: 1px solid var(--borda); }
.pessoa:hover { border-color: var(--borda-hover); background: var(--surface); }
.pessoa.definido { background: var(--surface-2); }
.pessoa-txt small { font-size: 11.5px; }
.pessoa-txt b { font-size: 13.5px; }
.vitem { grid-template-columns: 40px minmax(0, 1fr) auto auto; column-gap: 12px; padding: 14px 14px 14px 20px; }
.vitem-foto { grid-row: span 2; align-self: start; display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 10px; background: var(--bg); font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; }
.vitem-foto img { width: 100%; height: 100%; object-fit: cover; }
.vitem-ctrl, .vitem-combo { grid-column: 2 / -1; }
.pdv-rodape { gap: 12px; padding: 14px 20px 20px; }
.pdv-totais .tl { color: var(--texto-2); }
.pdv-totais .tl-total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--linha); font-size: 16px; font-weight: 500; color: var(--texto); }
.pdv-acoes .btn { height: 34px; }
.btn-cobrar { height: 52px; padding: 0 22px; }
.btn-cobrar span { font-size: 15px; }
.btn-cobrar kbd { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); box-shadow: none; }
@media (max-width: 900px) {
  .pdv-venda-cab { padding: 14px 16px 10px; }
  .pdv-pessoas { padding: 0 16px 12px; }
}

/* pagamento, como o checkout do Polar: as formas em cartões (ícone em cima, nome embaixo) e o botão preto */
.pg-formas { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }
.pg-forma { align-items: flex-start; gap: 10px; padding: 12px 12px 11px; text-align: left; }
.pg-forma .ic { width: 18px; height: 18px; }
.modal-pagto [data-finalizar] { background: var(--barra); border-color: var(--barra); color: var(--no-barra); }
.modal-pagto [data-finalizar]:hover { background: var(--barra-hover); border-color: var(--barra-hover); }
.modal-pagto [data-finalizar] kbd { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); box-shadow: none; }
@media (max-width: 600px) { .pg-formas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Vendas como os pedidos do Polar: quadros do período e o cliente com as iniciais */
.vd-quadros { margin-bottom: 14px; }
.vd-cli { display: inline-flex; align-items: center; gap: 10px; }
.vd-cli .cli-av { width: 28px; height: 28px; font-size: 10px; }
@media (max-width: 900px) {
  .pdv-pessoas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .pessoa { padding: 6px 8px; gap: 0; }
  .pessoa > .ic { display: none; }
  .pessoa-txt small { font-size: 10.5px; }
  .pessoa-txt b { font-size: 12.5px; }
  .pdv-venda-cab h2 { font-size: 16px; }
}

/* ---------- Tela de venda, repaginada (Polar): título, pílulas de grupo, cliente em destaque, desconto como link ---------- */
.pdv-catalogo { gap: 14px; padding-top: 22px; }
.pdv-titulo { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.pdv-titulo h1 { font-size: 24px; font-weight: 400; letter-spacing: -.01em; color: var(--texto); }
.pdv-loja { font-size: 13px; color: var(--muted); }
.pdv-trilha { flex-direction: column; align-items: stretch; gap: 8px; min-height: 0; }
.pdv-pilulas { display: flex; gap: 6px; padding: 1px; overflow-x: auto; scrollbar-width: none; }
.pdv-pilulas::-webkit-scrollbar { display: none; }
.pdv-pil { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--borda); font-size: 13.5px; color: var(--texto-2); white-space: nowrap; transition: background .12s, color .12s, box-shadow .12s; }
.pdv-pil .ic { width: 14px; height: 14px; color: var(--muted); }
.pdv-pil small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pdv-pil:hover { box-shadow: inset 0 0 0 1px var(--borda-hover); color: var(--texto); }
.pdv-pil.on { background: var(--texto); box-shadow: none; color: var(--no-barra); }
.pdv-pil.on small, .pdv-pil.on .ic { color: rgba(255, 255, 255, .7); }
.pdv-pilulas-sub .pdv-pil { height: 30px; background: transparent; box-shadow: none; font-size: 13px; }
.pdv-pilulas-sub .pdv-pil:hover { background: rgba(16, 18, 25, .04); }
.pdv-pilulas-sub .pdv-pil.on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--borda-hover); color: var(--texto); }
.pdv-pilulas-sub .pdv-pil.on small { color: var(--muted); }
.pdv-resbusca { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 15px; color: var(--texto); }
.pdv-limpar { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--borda); font-size: 12.5px; color: var(--texto-2); }
.pdv-limpar:hover { color: var(--texto); box-shadow: inset 0 0 0 1px var(--borda-hover); }
.pdv-limpar .ic { width: 13px; height: 13px; }
/* a venda: o cliente num cartão, os outros campos numa linha */
.pessoa-cli { display: flex; align-items: center; gap: 12px; margin: 0 20px 8px; padding: 11px 14px; border: 1px solid var(--borda); border-radius: 14px; background: var(--surface); text-align: left; transition: border-color .12s, background .12s; }
.pessoa-cli:hover { border-color: var(--borda-hover); background: var(--surface); }
.pessoa-cli.definido { background: var(--surface); }
.pessoa-av { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; }
.pessoa-av .ic { width: 16px; height: 16px; }
.pessoa-cli.definido .pessoa-av { background: var(--texto); color: var(--no-barra); }
.pessoa-cli .pessoa-txt { flex: 1; }
.pessoa-cli .pessoa-txt b { font-size: 15px; }
.pessoa-acao { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 12.5px; color: var(--muted); }
.pdv-pessoas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 20px 16px; }
.pdv-pessoas:has(> [hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pdv-pessoas .pessoa { gap: 8px; padding: 7px 10px; }
.pdv-pessoas .pessoa > .ic { width: 14px; height: 14px; }
/* o rodapé: desconto como link, Cobrar e as ações discretas embaixo */
.pdv-desc-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 30px; font-size: 13.5px; color: var(--texto-2); }
.pdv-desc-link:hover { color: var(--texto); }
.pdv-desc-link:hover > span, .pdv-desc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pdv-desc-link .ic { width: 16px; height: 16px; }
.pdv-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; }
.pdv-acao { display: inline-flex; align-items: center; gap: 6px; height: 28px; font-size: 12.5px; color: var(--muted); }
.pdv-acao:hover { color: var(--texto); }
.pdv-acao .ic { width: 14px; height: 14px; }
.pdv-acao-perigo:hover { color: var(--perigo-txt); }
.pdv-acao kbd, .pdv-desc-link kbd { font-size: 10.5px; }
/* carrinho vazio */
.pdv-vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; padding: 24px; text-align: center; }
.pdv-vazio-ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--borda); color: var(--texto); }
.pdv-vazio-ic .ic { width: 24px; height: 24px; }
.pdv-vazio b { font-size: 16px; font-weight: 500; color: var(--texto); }
.pdv-vazio > span { font-size: 13.5px; color: var(--muted); }
.pdv-atalhos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.pdv-atalhos span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .pdv-titulo { display: none; }
  .pdv-pessoas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pessoa-cli { margin: 0 16px 8px; padding: 9px 12px; }
  .pessoa-acao kbd, .pdv-acao kbd, .pdv-desc-link kbd { display: none; }
  .pdv-atalhos { display: none; }
}
.pdv-pilulas { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); padding-right: 40px; }
@media (max-width: 900px) {
  .pessoa-cli { gap: 8px; margin-bottom: 6px; padding: 6px 10px; border-radius: 12px; }
  .pessoa-cli .pessoa-av { width: 26px; height: 26px; font-size: 10px; }
  .pessoa-cli .pessoa-acao { display: none; }
  .pessoa-cli .pessoa-txt b { font-size: 13px; }
  .pdv-pessoas { padding-bottom: 10px; }
  .pdv-venda-cab { padding-bottom: 8px; }
  .pdv-rodape { gap: 8px; padding-top: 10px; }
  .pdv-totais .tl-total { margin-top: 4px; padding-top: 6px; }
}
@media (max-width: 900px) { .pdv-venda { max-height: 62vh; } .pdv-venda .pdv-itens { min-height: 96px; } }

/* =====================================================================
   Modo noturno, como o modo escuro do Polar: preto no fundo e no menu, o
   painel grafite, os blocos um tom acima, texto claro e o botão principal
   branco. Cupons, folhas A4 e QR continuam em papel branco.
   ===================================================================== */
:root[data-tema="escuro"] {
  color-scheme: dark;
  --menta-txt: #34d399;
  --menta-claro: #10b981;
  --menta-escuro: #6ee7b7;
  --menta-soft: rgba(16, 185, 129, .13);
  --menta-soft-2: rgba(16, 185, 129, .22);
  --menta-borda: rgba(16, 185, 129, .32);
  --bico-txt: #fbbf24;
  --bico-soft: rgba(245, 158, 11, .13);
  --bico-borda: rgba(245, 158, 11, .32);
  --perigo-txt: #f87171;
  --perigo-soft: rgba(239, 68, 68, .13);
  --perigo-borda: rgba(239, 68, 68, .32);
  --info-txt: #93b4ff;
  --info-soft: rgba(59, 101, 205, .16);
  --info-borda: rgba(59, 101, 205, .36);
  --foco: #6a8ef0;
  --link: #8aa6f2;

  --bg: #0a0a0b;
  --bg-2: #0a0a0b;
  --surface: #121214;
  --surface-2: #19191c;
  --surface-3: #1e1e22;
  --elevado: #18181b;
  --campo: #151517;
  --borda: #26262b;
  --borda-forte: #2e2e34;
  --borda-hover: #3b3b42;
  --borda-campo: #2b2b31;
  --linha: #1f1f23;
  --hover: #19191c;
  --hover-2: #26262b;
  --hover-3: #2e2e34;
  --moldura: #1b1b1e;
  --sel: #1f1f23;
  --barra: #f4f4f5;
  --barra-2: #e4e4e7;
  --no-barra: #0b0c0f;
  --barra-hover: #d4d4d8;

  --texto: #f4f4f5;
  --texto-2: #c8c8ce;
  --muted: #8b8b94;
  --placeholder: #5f5f68;

  --serie: #6a8ef0;
  --serie-hover: #8aa6f2;
  --grade: #222226;
  --eixo: #6b6b74;
  --base-eixo: #2a2a2e;

  --sombra: 0 0 0 1px var(--borda), 0 1px 2px rgba(0, 0, 0, .3);
  --sombra-lg: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -12px rgba(0, 0, 0, .7);
  --sombra-menu: 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 32px -8px rgba(0, 0, 0, .6);
  --bisel: inset 0 0 0 1px var(--borda-campo);
}
:root[data-tema="escuro"] body { background: var(--bg); }
:root[data-tema="escuro"] .principal { box-shadow: 0 0 0 1px rgba(255, 255, 255, .05); }
:root[data-tema="escuro"] .overlay { background: rgba(0, 0, 0, .7); }
:root[data-tema="escuro"] .modal-head h3, :root[data-tema="escuro"] .modal-head .icon-btn { color: var(--muted); }
:root[data-tema="escuro"] .toast { background: var(--elevado); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 32px -8px rgba(0, 0, 0, .6); }
/* selos e etiquetas */
:root[data-tema="escuro"] .badge-vermelho { background: var(--perigo-soft); }
:root[data-tema="escuro"] .badge-laranja { background: var(--bico-soft); }
:root[data-tema="escuro"] .badge-verde { background: var(--menta-soft); color: var(--menta-txt); }
:root[data-tema="escuro"] .badge-azul { background: var(--info-soft); color: var(--info-txt); }
:root[data-tema="escuro"] .badge-cinza, :root[data-tema="escuro"] .badge-neutro { background: var(--hover-2); color: var(--texto-2); }
:root[data-tema="escuro"] .cli-chip, :root[data-tema="escuro"] .pr-chip { background: var(--hover-2); color: var(--texto-2); }
:root[data-tema="escuro"] .pr-linha.marcada { background: var(--sel); }
:root[data-tema="escuro"] .pr-acao { background: var(--hover-2); }
/* no botão branco, as teclas e a contagem ficam escuras */
:root[data-tema="escuro"] .btn-primario kbd, :root[data-tema="escuro"] .btn-cobrar kbd,
:root[data-tema="escuro"] .modal-pagto [data-finalizar] kbd { background: rgba(0, 0, 0, .1); color: rgba(0, 0, 0, .6); }
:root[data-tema="escuro"] .pdv-pil.on small, :root[data-tema="escuro"] .pdv-pil.on .ic { color: rgba(0, 0, 0, .55); }
:root[data-tema="escuro"] .btn-cobrar:disabled { background: var(--surface-2); color: var(--placeholder); }
:root[data-tema="escuro"] .vg-chave { background: #3a3a40; }
:root[data-tema="escuro"] .vg-chave::after { background: #f4f4f5; }
:root[data-tema="escuro"] .vg-chave:checked::after { background: #0b0c0f; }
/* gráficos e listras */
:root[data-tema="escuro"] .grafico-linha .g-grade { stroke: #232327; }
:root[data-tema="escuro"] .g-linha-ant { stroke: #4a4a52; }
:root[data-tema="escuro"] .vg-leg-ant i { border-top-color: #4a4a52; }
:root[data-tema="escuro"] .vg-mes-barra { background: repeating-linear-gradient(135deg, #222226 0 1px, #161618 1px 7px); }
:root[data-tema="escuro"] .vg-caixa i { box-shadow: 0 0 0 3px rgba(16, 185, 129, .25); }
/* cartões de produto e fotos: o quadro da foto um tom acima */
:root[data-tema="escuro"] .tile-midia, :root[data-tema="escuro"] .pcard-foto, :root[data-tema="escuro"] .vitem-foto,
:root[data-tema="escuro"] .plinha-foto, :root[data-tema="escuro"] .orc-foto, :root[data-tema="escuro"] .pr-foto { background: #1f1f23; }
:root[data-tema="escuro"] .pcard-fav, :root[data-tema="escuro"] .pcard-ficha { background: rgba(24, 24, 27, .9); }
:root[data-tema="escuro"] .pcard-ficha:hover { background: #26262b; }
:root[data-tema="escuro"] .tile-icone { background: var(--surface-3); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
:root[data-tema="escuro"] .pdv-catalogo { background: #0f0f11; }
/* primeiros passos */
:root[data-tema="escuro"] .pp { background: var(--surface); }
:root[data-tema="escuro"] .pp-dir { background: #0f0f11; }
:root[data-tema="escuro"] .pp-pilula.on { background: #3b82f6; border-color: #3b82f6; color: #fff; }
/* barra de rolagem discreta */
:root[data-tema="escuro"] ::-webkit-scrollbar-thumb { background: #2e2e34; }
/* o tema na janela da conta */
.conta-tema { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linha); }
.conta-tema > span { font-size: 14px; color: var(--texto); }
.conta-tema .seg button { display: inline-flex; align-items: center; gap: 6px; }
.conta-tema .seg .ic { width: 14px; height: 14px; }
:root[data-tema="escuro"] .nav-item.ativo { background: var(--surface-2); border-color: transparent; box-shadow: none; }
:root[data-tema="escuro"] .input:focus, :root[data-tema="escuro"] .vitem-qtd:focus { border-color: #4a64a8; box-shadow: 0 0 0 3px rgba(106, 142, 240, .22); }
:root[data-tema="escuro"] .cor-opcao input:checked + span { border-color: var(--surface); }

/* ---------- Totem repaginado (Polar): pílulas, cartões com foto em quadro cinza, cesta como o checkout ---------- */
.tt { background: var(--surface); font-size: 17px; }
.tt-sair { top: 16px; right: 16px; color: var(--placeholder); }
.tt-btn { min-height: 56px; border: 0; border-radius: 999px; background: var(--bg); color: var(--texto); font-weight: 500; transition: background .12s, transform .08s; }
.tt-btn:hover:not(:disabled) { background: var(--hover-2); }
.tt-btn-primario, .tt-btn-primario:hover:not(:disabled) { background: var(--barra); color: var(--no-barra); }
.tt-btn-primario:hover:not(:disabled) { background: var(--barra-hover); }
.tt-btn-leve { background: transparent; }
.tt-btn-gigante { min-height: 80px; padding: 0 40px; border-radius: 999px; font-size: 24px; }
.tt-av { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--barra); color: var(--no-barra); font-size: 15px; font-weight: 500; }
.tt-ini { color: var(--placeholder); font-size: 28px; font-weight: 300; }

/* início: o texto à esquerda e o mosaico de fotos à direita */
.tt-inicio { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; padding: 0; text-align: left; place-items: stretch; }
.tt-ini-esq { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: 48px clamp(32px, 6vw, 88px); }
.tt-ini-loja { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--texto-2); }
.tt-ini-esq h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); font-weight: 400; line-height: 1.05; letter-spacing: -.03em; }
.tt-ini-esq > p { margin: -6px 0 0; max-width: 520px; color: var(--muted); font-size: 20px; }
.tt-ini-passos { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 8px; padding: 0; list-style: none; }
.tt-ini-passos li { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--bg); font-size: 17px; }
.tt-ini-passos span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--borda); font-size: 15px; font-weight: 500; }
.tt-ini-formas { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 15px; }
.tt-ini-formas span { display: inline-flex; align-items: center; gap: 8px; }
.tt-ini-mosaico { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; padding: 24px; background: var(--surface-2); }
.tt-ini-mosaico span { display: grid; place-items: center; overflow: hidden; border-radius: 22px; background: var(--bg); }
.tt-ini-mosaico span:nth-child(1) { grid-row: span 2; }
.tt-ini-mosaico img { width: 100%; height: 100%; object-fit: cover; }
.tt-ini-mosaico.sem-fotos { grid-template-columns: minmax(0, 1fr); }
.tt-ini-mosaico.sem-fotos span { grid-row: auto; }

/* compra */
.tt-topo { gap: 14px; padding: 18px 72px 12px 20px; }
.tt-voltar { width: 56px; padding: 0; background: var(--bg); }
.tt-topo-loja { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: 18px; }
.tt-topo-loja b { font-weight: 500; }
.tt-busca { min-height: 58px; border-radius: 999px; border-color: var(--borda); background: var(--surface); }
.tt-busca .ic { color: var(--muted); }
.tt-grupos { gap: 8px; padding: 2px 20px 14px; }
.tt-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--borda); color: var(--texto-2); font-size: 16px; font-weight: 400; }
.tt-chip small { font-size: 13px; color: var(--muted); }
.tt-chip.on { background: var(--barra); box-shadow: none; color: var(--no-barra); }
.tt-chip.on small { color: color-mix(in srgb, var(--no-barra) 60%, transparent); }
.tt-corpo { grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; padding: 0 20px 20px; }
.tt-grade { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding: 2px 2px 8px; }
.tt-card { gap: 0; padding: 6px; border: 1px solid var(--borda); border-radius: 20px; background: var(--surface); }
.tt-card.tt-no-carrinho { border-color: var(--texto); box-shadow: inset 0 0 0 1px var(--texto); }
.tt-foto { position: relative; border-radius: 15px; background: var(--bg); }
.tt-foto img { object-fit: cover; }
.tt-selo { position: absolute; left: 10px; top: 10px; padding: 4px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; font-style: normal; font-weight: 500; }
.tt-card-info { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 12px 8px 6px; }
.tt-card h3 { font-size: 16px; font-weight: 500; }
.tt-preco { color: var(--texto); font-size: 22px; font-weight: 400; letter-spacing: -.01em; }
.tt-btn-add { background: var(--bg); }
.tt-qtd { padding: 4px; border-radius: 999px; background: var(--barra); color: var(--no-barra); }
.tt-qtd .tt-btn { width: 48px; min-height: 48px; background: transparent; color: inherit; }
.tt-qtd .tt-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--no-barra) 14%, transparent); }
.tt-qtd b { font-size: 20px; font-weight: 500; }
.tt-qtd-p { align-self: flex-start; padding: 2px; background: var(--bg); color: var(--texto); }
.tt-qtd-p .tt-btn { width: 38px; min-height: 38px; }
.tt-qtd-p .tt-btn:hover:not(:disabled) { background: var(--hover-2); }
.tt-qtd-p b { min-width: 28px; font-size: 16px; }
/* a cesta, como o resumo do checkout */
.tt-cesta { gap: 0; padding: 20px; border: 1px solid var(--borda); border-radius: 24px; background: var(--surface); }
.tt-cesta header { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.tt-cesta h2 { font-size: 22px; font-weight: 400; }
.tt-n { margin-left: auto; padding: 3px 12px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 14px; }
.tt-cesta-lista { gap: 0; }
.tt-cesta-lista li, .tt-revisao li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--linha); background: none; border-radius: 0; }
.tt-mini { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 14px; background: var(--bg); }
.tt-mini img { width: 100%; height: 100%; object-fit: cover; }
.tt-mini .tt-ini { font-size: 15px; font-weight: 500; }
.tt-cesta-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tt-cesta-txt b { font-size: 15px; font-weight: 500; line-height: 1.3; }
.tt-cesta-txt small { color: var(--muted); font-size: 14px; }
.tt-cesta-v { font-size: 16px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tt-cesta-vazia { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; border-radius: 18px; background: var(--surface-2); text-align: center; }
.tt-cesta-vazia span { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--borda); }
.tt-cesta-vazia b { font-weight: 500; }
.tt-cesta-vazia small { color: var(--muted); font-size: 15px; }
.tt-total { padding: 16px 0 14px; border-top: 0; font-size: 18px; }
.tt-total b { font-size: 30px; font-weight: 400; letter-spacing: -.02em; }
.tt-finalizar { justify-content: space-between; padding: 0 26px; }
.tt-finalizar b { margin-left: auto; font-weight: 500; }
/* pagamento: o pedido num painel cinza à esquerda e as formas de pagar à direita, como o checkout do Polar */
.tt-pagar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.tt-pagar-pedido { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 32px clamp(24px, 4vw, 56px); background: var(--surface-2); }
.tt-pagar-pedido h1 { margin: 8px 0 6px; font-size: 32px; font-weight: 400; letter-spacing: -.02em; }
.tt-link { align-self: flex-start; min-height: 46px; padding: 0 16px 0 10px; color: var(--texto-2); }
.tt-revisao li { grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; }
.tt-total-grande { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--borda); font-size: 20px; }
.tt-total-grande b { font-size: 40px; }
.tt-pagar-forma { display: flex; flex-direction: column; gap: 18px; min-height: 0; overflow-y: auto; padding: 72px clamp(24px, 4vw, 56px) 32px; }
.tt-pagar-forma h2 { margin: 0; font-size: 28px; font-weight: 400; letter-spacing: -.01em; }
.tt-formas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tt-forma { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; min-height: 132px; padding: 20px; border: 1px solid var(--borda); border-radius: 20px; background: var(--surface); text-align: left; }
.tt-forma:hover:not(:disabled) { border-color: var(--texto); background: var(--surface); }
.tt-forma .ic { width: 28px; height: 28px; margin-bottom: auto; }
.tt-forma span { font-size: 19px; font-weight: 500; }
.tt-forma small { color: var(--muted); font-size: 14px; font-weight: 400; }
.tt-forma-caixa .ic { color: var(--texto); }
.tt-nome { display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 500; }
.tt-nome small { color: var(--muted); font-weight: 400; }
.tt-nome input { min-height: 58px; padding: 0 18px; border: 1px solid var(--borda); border-radius: 16px; background: var(--surface); color: var(--texto); font: inherit; font-size: 18px; outline: none; }
.tt-nome input:focus { border-color: #9db5ef; box-shadow: 0 0 0 3px rgba(59, 101, 205, .15); }
.tt-aguarde { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); }
/* fim */
.tt-fim { display: grid; place-items: center; }
.tt-fim-box { align-items: center; gap: 14px; text-align: center; }
.tt-fim-icone { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--bg); color: var(--texto); }
.tt-fim-icone.ok { background: var(--menta-soft); color: var(--menta-txt); }
.tt-fim-icone .ic { width: 46px; height: 46px; stroke-width: 2.2; }
.tt-fim-box h1 { margin: 6px 0 0; font-size: clamp(30px, 4vw, 44px); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.tt-fim-box > p { margin: 0; color: var(--muted); font-size: 20px; }
.tt-num { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 10px 0 8px; padding: 18px 44px; border-radius: 24px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--borda); }
.tt-num small { color: var(--muted); font-size: 15px; }
.tt-num b { font-family: var(--fonte-mono); font-size: 64px; font-weight: 500; letter-spacing: .02em; line-height: 1.1; }
.tt-fim-box .tt-btn-grande { width: min(420px, 100%); }
.tt-volta { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .tt-inicio, .tt-pagar { grid-template-columns: minmax(0, 1fr); }
  .tt-ini-mosaico { display: none; }
  .tt-corpo { grid-template-columns: minmax(0, 1fr); }
  .tt-cesta { max-height: 40vh; }
  .tt-topo-loja b { display: none; }
  .tt-pagar { overflow-y: auto; }
  .tt-pagar-forma { padding-top: 24px; }
}
.tt-inicio { grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.tt-ini-esq { min-height: 0; overflow-y: auto; }
.tt-ini-mosaico { grid-template-rows: repeat(3, minmax(0, 1fr)); grid-auto-rows: 0; min-height: 0; overflow: hidden; }
.tt-ini-mosaico.sem-fotos { grid-template-rows: minmax(0, 1fr); }
.tt-total b, .tt-total-grande b, .tt-num b { color: var(--texto); }
body.modo-totem .principal { margin: 0; border-radius: 0; box-shadow: none; overflow: hidden; }
body.modo-totem .conteudo { flex: 1 1 0; min-height: 0; }
