/* Saldão Outlet - estilos (padrão RomaVision) */
:root {
  --eb-accent: #b42318;
  --eb-accent-strong: #941d14;
  --eb-accent-rgb: 180, 35, 24;
  --eb-soft: #fbeeed;
  --eb-soft-2: #f7dcd9;
  --eb-field: #f8fafc;
  --eb-line: #e2e8f0;
  --eb-line-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #172033;
  --muted: #64748b;
  --danger: #ff4d6d;
  --danger-hover: #ef476f;
  --ok: #067647;
  --ok-btn: #15803d;
  --side-w: 76px;
  --side-w-open: 250px;
  --topbar-h: 72px;
  --shadow: 0 10px 24px rgba(15, 23, 42, .08);
  --shadow-soft: 0 4px 12px rgba(15, 23, 42, .04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; font: 14px/1.45 Arial, Helvetica, sans-serif; color: var(--text); background: #f4f6f8; }
a { color: var(--eb-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a, button, input, textarea, select { font-family: inherit; }
h1 { font-size: 20px; margin: 0; color: var(--text); line-height: 1.2; }
h2 { font-size: 16px; margin: 0 0 10px; color: var(--text-2); letter-spacing: -.1px; }
h3 { font-size: 12px; margin: 14px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.ic { display: block; flex: 0 0 auto; }
.mudo { color: var(--muted); }
.peq { font-size: 12px; }
.dir { text-align: right; }
.centro { text-align: center; }
.nowrap { white-space: nowrap; }
.neg, .numero > strong.neg { color: #dc2626; }
.pos { color: var(--ok); }
.oculto { display: none !important; }
.so-impressao { display: none; }
html:has(dialog[open]) { overflow: hidden; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; font: 800 10.5px/1 Arial, sans-serif; color: var(--muted); background: var(--eb-field); border: 1px solid var(--eb-line); }

/* ===== Barra de carregamento ===== */
#progresso { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200000; background: var(--eb-accent); opacity: 0; pointer-events: none; transition: width 8s cubic-bezier(.1, .7, .1, 1), opacity .2s ease; }
#progresso.on { width: 85%; opacity: 1; }

/* ===== Topo ===== */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: #fff; border-bottom: 1px solid var(--eb-line); box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; color: var(--text); border-radius: 14px; padding: 6px 8px; margin-left: -8px; transition: .18s ease; }
.brand:hover { background: var(--eb-soft); text-decoration: none; }
.brand img { height: 42px; width: auto; max-width: 140px; object-fit: contain; border-radius: 10px; border: 1px solid var(--eb-line); background: #fff; padding: 3px; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); flex: 0 0 auto; }
.brand .title { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand .title b { font-size: 18px; color: var(--eb-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .title .tb-sufixo { color: var(--muted); font-weight: 700; font-size: 14px; }
.brand .title small { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-dir { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.loja-topo { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 12px; border-radius: 12px; border: 1px solid var(--eb-line); background: var(--eb-soft); color: var(--eb-accent); font-weight: 800; font-size: 13px; margin: 0; }
.loja-topo.loja-fixa { padding-right: 12px; }
.loja-topo select { border: 0; background: transparent; color: var(--eb-accent); font-weight: 800; font-size: 13px; padding: 6px 4px; max-width: 230px; cursor: pointer; width: auto; min-height: 0; box-shadow: none; }
.loja-topo select:focus { outline: none; box-shadow: none; }
.side-toggle { display: none; }
.conta { position: relative; }
.conta-btn { width: 46px; height: 46px; padding: 0; border: 2px solid var(--eb-line); border-radius: 16px; background: var(--eb-accent); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(var(--eb-accent-rgb), .18); transition: .18s ease; }
.conta-btn:hover { background: var(--eb-accent-strong); transform: translateY(-1px); }
.avatar { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 13px; font-weight: 900; font-size: 15px; line-height: 1; color: #fff; letter-spacing: .3px; }
.avatar.com-foto { background: #fff; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.avatar-g { width: 92px; height: 92px; flex: 0 0 92px; border-radius: 26px; background: var(--eb-accent); font-size: 30px; box-shadow: 0 8px 20px rgba(var(--eb-accent-rgb), .18); }
.avatar-p { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; background: var(--eb-soft-2); color: var(--eb-accent); font-size: 12px; }
.pessoa { display: flex; align-items: center; gap: 10px; min-width: 0; }
.perfil-topo { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; min-width: 0; }
.perfil-info { min-width: 0; }
.perfil-info b { display: block; font-size: 17px; color: var(--text); }
.perfil-info small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.perfil-botoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.coluna { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.coluna > .painel { margin: 0; }
.cracha-tela { max-width: 290px; padding: 12px 14px 8px; border: 1px dashed var(--eb-line); border-radius: 14px; background: #fff; }
.campo-check { display: flex; align-items: flex-end; padding-bottom: 10px; }
.foto-dlg { width: min(400px, calc(100vw - 24px)); }
.foto-dlg h2 { margin: 0; font-size: 18px; }
.foto-area canvas { display: block; width: 100%; max-width: 300px; aspect-ratio: 1; margin: 12px auto 10px; border-radius: 18px; touch-action: none; cursor: grab; background: #f1f5f9; }
.foto-area canvas:active { cursor: grabbing; }
.foto-zoom { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; color: var(--muted); margin: 0; }
.foto-zoom input { flex: 1; min-height: 0; padding: 0; border: 0; box-shadow: none; background: transparent; accent-color: var(--eb-accent); }
.conta-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 290px; background: #fff; border: 1px solid var(--eb-line); border-radius: 18px; box-shadow: var(--shadow); padding: 10px; display: none; z-index: 300; }
.conta-menu.open { display: block; }
.conta-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; border-bottom: 1px solid var(--eb-line); margin-bottom: 8px; min-width: 0; }
.conta-head .avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px; background: var(--eb-accent); font-size: 15px; }
.conta-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.conta-info b { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conta-info small { margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conta-loja { display: none; padding: 4px 8px 10px; border-bottom: 1px solid var(--eb-line); margin-bottom: 8px; }
.conta-loja > span { display: block; font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.conta-loja .loja-topo { width: 100%; }
.conta-loja .loja-topo select { flex: 1; max-width: none; }
.conta-link { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--text); font-weight: 800; font-size: 14px; }
.conta-link:hover { background: var(--eb-soft); color: var(--eb-accent); text-decoration: none; }
.conta-link .ico { width: 30px; height: 30px; border-radius: 10px; background: var(--eb-soft); border: 1px solid var(--eb-line); display: grid; place-items: center; color: var(--eb-accent); }
.conta-sep { height: 1px; background: var(--eb-line); margin: 8px 4px; }
.conta-link.conta-sair { justify-content: center; color: #fff; background: var(--danger); font-weight: 900; }
.conta-link.conta-sair:hover { background: var(--danger-hover); color: #fff; }

/* ===== Menu lateral ===== */
.sidebar {
  position: fixed; top: calc(var(--topbar-h) + 14px); left: 14px; bottom: 14px; width: var(--side-w); z-index: 60;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--eb-line); border-radius: 18px; box-shadow: var(--shadow);
  transition: width .24s cubic-bezier(.2, .8, .2, 1);
}
.side-menu { padding: 10px 8px; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; }
.side-menu::-webkit-scrollbar { width: 3px; }
.side-menu::-webkit-scrollbar-thumb { background: transparent; border-radius: 99px; }
.side-menu:hover::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, .18); }
.side-item { flex: 0 0 auto; height: 50px; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 15px; border: 1px solid transparent; color: var(--text); transition: background .15s ease, border-color .15s ease; }
.side-item:hover { background: var(--eb-soft); border-color: var(--eb-line); text-decoration: none; }
.side-ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; display: grid; place-items: center; background: var(--eb-soft); color: var(--eb-accent); border: 1px solid var(--eb-line); }
.side-label { display: none; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.side-item.active { background: #fff; border-color: var(--eb-line); box-shadow: 0 6px 14px rgba(2, 6, 23, .06); }
.side-item.active .side-ico { background: var(--eb-accent); color: #fff; border-color: var(--eb-accent); }
.side-item.active .side-label { color: var(--eb-accent); }
.side-bottom { padding: 10px; border-top: 1px solid var(--eb-line); background: var(--eb-field); }
.side-logout { height: 46px; border-radius: 14px; background: var(--danger); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 6px 14px rgba(255, 77, 109, .18); }
.side-logout span { display: none; }
.side-logout:hover { background: var(--danger-hover); text-decoration: none; }
.side-fundo { display: none; }
@media (hover: hover) and (min-width: 821px) {
  .sidebar:hover { width: var(--side-w-open); transition-delay: .18s; box-shadow: 0 24px 60px rgba(15, 23, 42, .18); }
  .sidebar:hover .side-item { justify-content: flex-start; padding-left: 4px; }
  .sidebar:hover .side-label, .sidebar:hover .side-logout span { display: block; }
}

/* ===== Conteúdo ===== */
main.container { padding: 22px 22px 18px calc(22px + var(--side-w) + 18px); min-width: 0; max-width: 1680px; }
.pg { background: #fff; border: 1px solid var(--eb-line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; min-width: 0; animation: surgir .18s ease-out; }
@keyframes surgir { from { opacity: 0; } to { opacity: 1; } }
.pg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pg-tit { min-width: 0; }
.pg-tit p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.pg-dir { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.pg-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--eb-accent); background: var(--eb-soft); border: 1px solid var(--eb-line); white-space: nowrap; }
.chip-ok { color: #166534; background: #ecfdf3; border-color: #bbf7d0; }
.chip-erro { color: #b91c1c; background: #fff1f2; border-color: #fecdd3; }
.chip-alerta { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.chip .ponto { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Números (cartões de resumo) */
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 10px; margin-bottom: 12px; }
.numero { background: #fff; border: 1px solid var(--eb-line); border-radius: 18px; padding: 11px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.numero > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.numero > strong { color: var(--eb-accent); font-size: 18px; font-weight: 900; letter-spacing: -.2px; line-height: 1.15; word-break: break-word; }
.numero > small { color: var(--muted); font-size: 11.5px; }
/* Início: caixa da loja escolhida (no estilo dos números) */
.caixa-card { background: #fff; border: 1px solid var(--eb-line); border-radius: 18px; padding: 11px 16px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 32px; margin-bottom: 12px; }
.cc-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cc-item > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.cc-item > strong { color: var(--text); font-size: 15px; font-weight: 800; line-height: 1.25; word-break: break-word; }
.cc-item > strong.cc-valor { color: var(--eb-accent); font-size: 18px; font-weight: 900; letter-spacing: -.2px; line-height: 1.15; }
.selo { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 2px 10px; border-radius: 999px; border: 1px solid; font-size: 13px !important; }
.selo i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.selo-ok { color: #166534 !important; background: #ecfdf3; border-color: #bbf7d0; }
.selo-off { color: #475569 !important; background: #f1f5f9; border-color: var(--eb-line); }
.cc-acoes { margin-left: auto; align-self: center; display: flex; gap: 8px; }
.cc-alerta { flex-basis: 100%; padding: 8px 12px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 12.5px; font-weight: 700; }
.numero.destaque { background: var(--eb-accent); border-color: var(--eb-accent); }
.numero.destaque > span, .numero.destaque > small { color: rgba(255, 255, 255, .85); }
.numero.destaque > strong { color: #fff; }

/* Cartões */
.painel { background: #fff; border: 1px solid var(--eb-line); border-radius: 20px; padding: 16px; margin-bottom: 12px; min-width: 0; }
.painel > h2:first-child { margin-top: 0; }
.painel-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.painel-cab h2 { margin: 0; }
.painel-sub { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.grade { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; margin-bottom: 12px; }
.grade > .painel { margin-bottom: 0; }
.grade-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.caixa-cinza { background: var(--eb-field); border: 1px solid var(--eb-line); border-radius: 16px; padding: 12px; }

/* Avisos */
.aviso { padding: 12px 14px; border-radius: 14px; margin-bottom: 12px; font-size: 13px; font-weight: 700; border: 1px solid; animation: surgir .25s ease-out; }
.aviso-ok { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
.aviso-erro { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.aviso-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.aviso-alerta { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.aviso a { font-weight: 900; color: inherit; text-decoration: underline; }
.vazio { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 18px; border: 1px dashed var(--eb-line-strong); border-radius: 14px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 12px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 14px;
  border-radius: 12px; border: 1px solid var(--eb-line); background: #f7fafc; color: var(--text-2);
  font-size: 13px; font-weight: 800; line-height: 1.2; cursor: pointer; white-space: nowrap; text-decoration: none; transition: .15s ease;
}
.btn:hover { background: var(--eb-soft); text-decoration: none; }
.btn.btn-pri { background: var(--eb-accent); border-color: var(--eb-accent); color: #fff; box-shadow: 0 6px 14px rgba(var(--eb-accent-rgb), .16); }
.btn.btn-pri:hover { background: var(--eb-accent-strong); border-color: var(--eb-accent-strong); }
.btn.btn-ok { background: var(--ok-btn); border-color: var(--ok-btn); color: #fff; box-shadow: 0 6px 14px rgba(21, 128, 61, .18); }
.btn.btn-ok:hover { background: #166534; }
.btn.btn-perigo { color: #be123c; background: #fff1f2; border-color: #fecdd3; }
.btn.btn-perigo:hover { background: #ffe4e6; }
.btn.btn-peq { min-height: 30px; padding: 5px 10px; font-size: 12px; border-radius: 10px; }
.btn.btn-grande { min-height: 46px; padding: 11px 18px; font-size: 14px; border-radius: 14px; }
.btn.btn-bloco { width: 100%; }
.btn[disabled], .btn.desligado { opacity: .5; pointer-events: none; }
.btn kbd { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35); color: inherit; }
.btn:not(.btn-pri):not(.btn-ok) kbd { background: #fff; color: var(--muted); border-color: var(--eb-line); }
.link-btn { background: none; border: 0; color: var(--eb-accent); padding: 0; font: inherit; font-weight: 800; cursor: pointer; }
.link-btn.peq { font-size: 12px; }

/* Formulários */
label { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 5px; }
input, select, textarea {
  width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--eb-line); border-radius: 12px;
  font-size: 14px; color: var(--text); background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--eb-accent); box-shadow: 0 0 0 3px rgba(var(--eb-accent-rgb), .12); }
input[disabled], select[disabled], textarea[disabled] { background: var(--eb-field); color: #475569; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--eb-accent); flex: 0 0 auto; }
input[type=color] { padding: 3px; }
input[type=file] { padding: 7px; background: var(--eb-field); }
textarea { min-height: 76px; resize: vertical; }
.campos { display: grid; gap: 12px 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.campos > div { grid-column: span 12; min-width: 0; }
.campos .c2 { grid-column: span 2; } .campos .c3 { grid-column: span 3; } .campos .c4 { grid-column: span 4; }
.campos .c5 { grid-column: span 5; } .campos .c6 { grid-column: span 6; } .campos .c7 { grid-column: span 7; }
.campos .c8 { grid-column: span 8; } .campos .c9 { grid-column: span 9; } .campos .c12 { grid-column: span 12; }
.valor-campo { min-height: 40px; display: flex; align-items: center; font-weight: 700; color: var(--text-2); }
.form-acoes { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.check { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 13.5px; font-weight: 700; margin: 0; cursor: pointer; }
.dica { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.linha-busca { display: flex; gap: 8px; position: relative; }
.linha-busca input { flex: 1; }
.pdv-leitura { display: flex; gap: 8px; position: relative; margin-bottom: 12px; }
.pdv-leitura input, .leitura-campo { font-size: 15px; font-weight: 800; border-width: 2px; background: #fffef8; min-height: 48px; border-radius: 14px; }
.pdv-leitura .btn { flex: 0 0 auto; min-height: 48px; border-radius: 14px; }

/* Filtros */
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; padding: 12px; background: var(--eb-field); border: 1px solid var(--eb-line); border-radius: 16px; }
.filtros > div { min-width: 140px; flex: 1 1 150px; max-width: 260px; }
.filtros .busca { flex: 3 1 240px; max-width: none; }
.filtros .btn { min-height: 40px; }
.filtros .checks { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; min-height: 40px; max-width: none; flex: 0 0 auto; }

/* Tabelas */
.tabela { background: #fff; border: 1px solid var(--eb-line); border-radius: 14px; overflow-x: auto; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
th { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: var(--eb-field); white-space: nowrap; }
.tabela tbody tr:hover { background: #fbfcfe; }
tr:last-child td { border-bottom: 0; }
th.dir, td.dir { text-align: right; }
th.centro, td.centro { text-align: center; }
.tabela td > a:first-child:not(.btn), .tabela td > .cel > a:first-child:not(.btn) { color: var(--text-2); font-weight: 700; }
.tabela td > a:first-child:not(.btn):hover, .tabela td > .cel > a:first-child:not(.btn):hover { color: var(--eb-accent); }
tfoot td { font-weight: 800; background: var(--eb-field); border-top: 1px solid var(--eb-line); }
td.acoes { white-space: nowrap; text-align: right; }
td.acoes form { display: inline; }
td.acoes .btn + .btn, td.acoes form + .btn, td.acoes .btn + form { margin-left: 4px; }
.painel table th { background: transparent; padding-left: 4px; padding-right: 4px; }
.painel table td { padding: 9px 4px; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #f1f5f9; color: #475569; border: 1px solid var(--eb-line); white-space: nowrap; }
.tag-ok { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.tag-alerta { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.tag-erro { background: #fff1f2; color: #b91c1c; border-color: #fecdd3; }
.tag-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.qtd-loja { font-weight: 800; }
.qtd-loja.zero { color: #94a3b8; font-weight: 400; }
.paginacao { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 4px 0 6px; font-size: 13px; color: var(--muted); }
.paginacao a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--eb-line); background: #f7fafc; font-weight: 800; color: var(--text-2); }
.paginacao a:hover { background: var(--eb-soft); text-decoration: none; }
.rodape-lista { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* Busca de produtos (sugestões) */
.sugestoes { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40; background: #fff; border: 1px solid var(--eb-line); border-radius: 14px; box-shadow: var(--shadow); max-height: 340px; overflow-y: auto; padding: 4px; }
.sugestoes button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 9px 10px; background: none; border: 0; border-radius: 10px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.sugestoes button + button { margin-top: 2px; }
.sugestoes button:hover, .sugestoes button.sel { background: var(--eb-soft); }
.sugestoes small { color: var(--muted); }
.sugestoes strong { color: var(--eb-accent); white-space: nowrap; }
.sugestoes .nada { padding: 10px 12px; color: var(--muted); font-size: 13px; }

/* Janelas */
dialog.dlg, dialog { border: 1px solid var(--eb-line); border-radius: 20px; padding: 18px; width: min(520px, calc(100vw - 24px)); max-height: min(92vh, 900px); overflow: auto; color: var(--text); box-shadow: 0 24px 80px rgba(15, 23, 42, .22); }
dialog.dlg-largo { width: min(780px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog[open] { animation: surgir .18s ease-out; }
.dlg-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dlg-cab h2 { margin: 0; font-size: 18px; }
.dlg-cab p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.dlg-x { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; border: 1px solid var(--eb-line); background: var(--eb-field); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.dlg-x:hover { background: var(--eb-soft); color: var(--eb-accent); }
.dlg-acoes { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
html.dlg-aberto, html.dlg-aberto body { overflow: hidden; }

/* Câmera */
.camera { position: fixed; inset: 0; background: #000; z-index: 100001; display: flex; flex-direction: column; }
.camera video { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.camera .mira { position: absolute; left: 50%; top: 45%; width: min(70vw, 300px); height: min(40vw, 170px); transform: translate(-50%, -50%); border: 3px solid rgba(255, 255, 255, .9); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .25); pointer-events: none; }
.camera-info { position: absolute; left: 0; right: 0; top: calc(45% + min(20vw, 85px) + 18px); display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.camera-status { max-width: 92vw; padding: 9px 14px; border-radius: 12px; background: rgba(15, 23, 42, .75); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.35; text-align: center; overflow-wrap: anywhere; }
.camera-status.ok { background: rgba(4, 120, 87, .92); }
.camera-status.erro { background: rgba(180, 35, 24, .94); }
.camera-acoes { display: flex; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #000; }
.camera-acoes .btn { min-width: 200px; }

/* Código de barras na tela */
.cb { display: block; width: 100%; height: 44px; }
.cb-texto { font-size: 11px; text-align: center; letter-spacing: .05em; }

/* Rodapé */
.rodape { margin: 14px 0 0; background: rgba(255, 255, 255, .96); border: 1px solid var(--eb-line); border-radius: 14px; padding: 14px 12px 16px; text-align: center; box-shadow: var(--shadow); }
.rodape p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.3; }
.rodape strong, .rodape a { color: var(--eb-accent); font-weight: 900; }

/* Novidades */
dialog.novidades { width: min(540px, calc(100vw - 24px)); padding: 26px; border-radius: 22px; background: radial-gradient(circle at 100% 0%, rgba(var(--eb-accent-rgb), .10), transparent 36%), #fff; }
.nov-icone { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--eb-accent), var(--eb-accent-strong)); box-shadow: 0 12px 28px rgba(var(--eb-accent-rgb), .25); margin-bottom: 14px; }
.nov-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--eb-accent); background: var(--eb-soft); border: 1px solid var(--eb-line); font-size: 10px; font-weight: 900; letter-spacing: .65px; text-transform: uppercase; margin-bottom: 8px; }
.novidades h2 { margin: 0; font-size: 22px; color: var(--text); line-height: 1.15; }
.nov-sub { margin: 6px 0 14px; color: var(--muted); font-size: 12.5px; }
.novidades ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.novidades li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 11px 12px; border: 1px solid var(--eb-line); border-radius: 14px; background: var(--eb-field); }
.nov-check { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; color: var(--ok); background: #ecfdf3; border: 1px solid #bbf7d0; }
.novidades strong { display: block; font-size: 13px; color: var(--text); }
.novidades small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }

/* Acesso negado */
.negado-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.negado-topo h2 { margin: 10px 0 6px; font-size: 20px; color: var(--text); }
.negado-topo p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 760px; }
.negado-topo strong { color: var(--text); }
.negado-box { display: flex; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--eb-line); border-radius: 16px; background: var(--eb-field); }
.negado-box h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); text-transform: none; letter-spacing: 0; }
.negado-box p { margin: 0; font-size: 13px; }
.negado-ico { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 18px; display: grid; place-items: center; color: #b91c1c; background: #fff1f2; border: 1px solid #fecdd3; }

/* Login */
body.tela-login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; background: #f4f6f8; }
.login-card { background: #fff; padding: 36px 30px 30px; border-radius: 18px; width: min(380px, 92vw); box-shadow: 0 4px 24px rgba(15, 23, 42, .12); text-align: center; border: 1px solid var(--eb-line); }
.login-card .logo-box { display: flex; justify-content: center; margin-bottom: 16px; }
.login-card .logo-box img { max-width: 170px; max-height: 110px; object-fit: contain; border-radius: 10px; }
.login-card h2 { color: var(--eb-accent); font-size: 1.3rem; margin: 0 0 20px; }
.login-card form { display: flex; flex-direction: column; gap: 10px; }
.login-card input { background: #f2f2f2; border: 1px solid #ccc; border-radius: 10px; padding: 12px; font-size: 15px; text-align: center; min-height: 46px; }
.login-card input:focus { background: #fff; }
.login-card .btn { margin-top: 8px; min-height: 46px; font-size: 15px; border-radius: 10px; }
.login-card .aviso { text-align: center; }
.login-by { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.login-modos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: -4px 0 16px; border-radius: 13px; background: #f1f5f9; border: 1px solid var(--eb-line); }
.login-modos button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; border-radius: 10px; padding: 9px 6px; font: inherit; font-weight: 800; font-size: 13px; color: var(--muted); cursor: pointer; }
.login-modos button.on { background: #fff; color: var(--eb-accent); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.login-cracha { display: flex; gap: 8px; }
.login-cracha input { flex: 1; min-width: 0; }
.login-card .login-cracha .btn { margin-top: 0; min-width: 46px; padding: 0 12px; }
.login-link { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--eb-accent); text-decoration: none; }
.login-link:hover { text-decoration: underline; }
.login-dica { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.login-caixa { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 9px 12px; border-radius: 12px; background: var(--eb-soft); color: var(--eb-accent-strong); font-size: 13px; font-weight: 700; text-align: left; }
.login-caixa .ic { flex: none; }
.login-texto { margin: -8px 0 16px; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.login-avatar { display: flex; justify-content: center; margin-bottom: 12px; }
.login-avatar .avatar { width: 76px; height: 76px; border-radius: 24px; background: var(--eb-accent); font-size: 26px; }
.login-by strong { color: var(--eb-accent); }
.instalar { width: min(560px, 94vw); text-align: left; }
.instalar h2 { text-align: center; }
.instalar form { display: block; }
.instalar input { text-align: left; }
.instalar .btn-bloco { margin-top: 16px; }

/* Início */
.boas-vindas { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.atalhos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 14px; }
.atalho { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--eb-line); border-radius: 16px; background: #fff; color: var(--text); transition: .15s ease; min-width: 0; }
.atalho:hover { border-color: var(--eb-soft-2); background: var(--eb-soft); text-decoration: none; transform: translateY(-1px); }
.atalho .side-ico { width: 44px; height: 44px; flex-basis: 44px; }
.atalho strong { display: block; font-size: 14px; color: var(--text-2); }
.atalho small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atalho > span:last-child { min-width: 0; }

/* Estoques por loja */
.lojas-estoque { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-bottom: 12px; }
.loja-card { margin: 0; display: flex; flex-direction: column; }
.loja-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.loja-cab h2 { margin: 0; }
.loja-cab p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.mini-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.mini-num { background: var(--eb-field); border: 1px solid var(--eb-line); border-radius: 14px; padding: 9px 11px; min-width: 0; }
.mini-num span { display: block; font-size: 10.5px; font-weight: 800; color: var(--muted); }
.mini-num strong { display: block; font-size: 16px; font-weight: 900; color: var(--eb-accent); margin-top: 2px; word-break: break-word; }
.mini-num a { color: inherit; }
.mini-num.alerta strong { color: #b45309; }
.mini-num.erro strong { color: #dc2626; }
.loja-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* Acessos */
.acc-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 12px; align-items: start; }
.acc-grid > .painel { margin: 0; }
.sel-box { margin-top: 12px; padding: 12px; border: 1px solid var(--eb-line); background: var(--eb-field); border-radius: 14px; }
.sel-box span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.sel-box strong { display: block; font-size: 14px; color: var(--text); margin-top: 3px; word-break: break-word; }
.sel-box small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.modelos { display: flex; gap: 8px; flex-wrap: wrap; }
.perm-grupo + .perm-grupo { margin-top: 6px; }
.perm-grupo h3 { margin: 4px 0 8px; }
.perms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.perm { display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px; border: 1px solid var(--eb-line); border-radius: 14px; background: #fff; cursor: pointer; margin: 0; color: var(--text); font-weight: 400; transition: .12s ease; }
.perm:hover { background: var(--eb-field); }
.perm input { margin-top: 1px; }
.perm strong { display: block; font-size: 13px; color: var(--text-2); }
.perm small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.perm:has(input:checked) { background: var(--eb-soft); border-color: var(--eb-soft-2); }
.acc-rodape { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--eb-line); }
.acc-rodape .dica { margin: 0; }

/* ===== PDV ===== */
.pdv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 12px; align-items: start; }
.pdv-grid > .painel { margin: 0; }
.vendedora { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 16px; border: 1px dashed #fcd34d; background: #fffbeb; margin-bottom: 12px; }
.vendedora .avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; background: #f59e0b; font-size: 15px; }
.vendedora small { display: block; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.vendedora strong { display: block; font-size: 16px; color: var(--text); }
.vendedora .btn { margin-left: auto; }
.vendedora.ok { border-style: solid; border-color: #bbf7d0; background: #ecfdf3; }
.vendedora.ok .avatar { background: var(--ok); }
.vendedora .avatar.com-foto { background: #fff; overflow: hidden; }
.leitura-linha { display: flex; gap: 8px; position: relative; }
.leitura-linha input { flex: 1; font-size: 16px; font-weight: 800; border-width: 2px; background: #fffef8; min-height: 52px; border-radius: 14px; }
.leitura-linha .btn { min-height: 52px; min-width: 52px; border-radius: 14px; }
.leitura-dica { margin: 6px 2px 0; font-size: 11.5px; color: var(--muted); }
.itens-lista { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto 112px 34px; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #e4edf7; border-radius: 14px; background: var(--eb-field); }
.item.novo { animation: piscar 1.2s ease-out; }
@keyframes piscar { 0% { background: var(--eb-soft-2); border-color: var(--eb-accent); } 100% { background: var(--eb-field); } }
.item-info { min-width: 0; }
.item-info strong { display: block; font-size: 13px; color: var(--text-2); line-height: 1.25; }
.item-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.mini-chip { font-size: 10px; font-weight: 700; color: #55657f; background: #fff; border: 1px solid var(--eb-line); padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.mini-chip.erro { color: #b91c1c; background: #fff1f2; border-color: #fecdd3; }
.qtd { display: inline-flex; align-items: center; border: 1px solid var(--eb-line); border-radius: 12px; background: #fff; overflow: hidden; }
.qtd button { width: 34px; height: 36px; border: 0; background: #fff; color: var(--eb-accent); font-size: 19px; font-weight: 900; cursor: pointer; line-height: 1; }
.qtd button:hover { background: var(--eb-soft); }
.qtd input { width: 46px; min-height: 36px; height: 36px; border: 0; border-left: 1px solid var(--eb-line); border-right: 1px solid var(--eb-line); border-radius: 0; text-align: center; font-weight: 800; padding: 0 4px; box-shadow: none; }
.item-valor { text-align: right; }
.item-valor small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; }
.item-valor strong { display: block; font-size: 14px; font-weight: 900; color: var(--eb-accent); white-space: nowrap; }
.item-x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--eb-line); background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.item-x:hover { color: #be123c; background: #fff1f2; border-color: #fecdd3; }
.pdv-resumo { position: sticky; top: calc(var(--topbar-h) + 16px); }
.resumo-box { background: var(--eb-field); border: 1px solid var(--eb-line); border-radius: 16px; padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.resumo-box > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.resumo-box > strong { color: var(--eb-accent); font-size: 17px; font-weight: 900; line-height: 1.15; word-break: break-word; }
.cliente-box { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.cliente-box strong { display: block; font-size: 14px; color: var(--text-2); }
.cliente-box small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }
.cli-campo { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cli-campo label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 11px; font-weight: 800; }
.cli-campo input { min-height: 34px; padding: 6px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; background: #fff; }
.cli-tag { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; border-radius: 999px; padding: 0 7px; font-size: 10px; font-weight: 800; }
.linhas-resumo { margin: 10px 0; }
.linha-resumo { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 2px; font-size: 13.5px; border-bottom: 1px dashed var(--eb-line); }
.linha-resumo:last-child { border-bottom: 0; }
.linha-resumo label { margin: 0; font-size: 13.5px; color: var(--text-2); font-weight: 400; }
.linha-resumo input { width: 130px; text-align: right; min-height: 36px; padding: 6px 10px; }
.desc-aviso { margin: 2px 2px 6px; font-size: 11.5px; color: #b45309; font-weight: 700; }
.desc-aviso.info { color: var(--muted); }
.total-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--eb-accent); color: #fff; margin: 4px 0 12px; box-shadow: 0 10px 22px rgba(var(--eb-accent-rgb), .22); }
.total-box span { font-size: 13px; font-weight: 800; opacity: .9; }
.total-box strong { font-size: 30px; font-weight: 900; letter-spacing: -.5px; line-height: 1; }
.pag-lista { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.pag-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--eb-line); border-radius: 12px; background: #fff; font-size: 13px; }
.pag-item b { color: var(--text-2); }
.pag-item small { color: var(--muted); }
.pag-item .item-x { width: 28px; height: 28px; }
.pag-item > span:last-child { display: inline-flex; align-items: center; gap: 8px; }
.pdv-acoes-baixo { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.pag-resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pag-resumo .resumo-box.falta { background: var(--eb-soft); border-color: var(--eb-soft-2); }
.pag-resumo .resumo-box.troco { background: #ecfdf3; border-color: #bbf7d0; }
.pag-resumo .resumo-box.troco > strong { color: var(--ok); }
.pag-resumo .resumo-box.ok > strong { color: var(--ok); }
.formas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.formas button { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 8px 10px; border: 1px solid var(--eb-line); border-radius: 14px; background: #fff; color: var(--text-2); font-size: 13px; font-weight: 800; text-align: left; cursor: pointer; line-height: 1.2; }
.formas button:hover { background: var(--eb-soft); }
.formas button.sel { background: var(--eb-accent); border-color: var(--eb-accent); color: #fff; }
.formas button.sel kbd { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .4); color: #fff; }
.pag-form { padding: 12px; border: 1px solid var(--eb-line); border-radius: 16px; background: var(--eb-field); margin-bottom: 12px; }
.pag-form .campos { align-items: end; }
.pag-form input#pag-valor { font-size: 18px; font-weight: 900; }
.ok-total { text-align: center; padding: 10px 0 4px; }
.ok-total .ok-ico { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: var(--ok-btn); box-shadow: 0 12px 28px rgba(21, 128, 61, .25); }
.ok-total h2 { margin: 0 0 4px; font-size: 20px; }
.ok-total p { margin: 0; color: var(--muted); }
.ok-troco { margin: 14px 0 4px; padding: 14px; border-radius: 16px; background: #ecfdf3; border: 1px solid #bbf7d0; text-align: center; }
.ok-troco span { display: block; font-size: 12px; font-weight: 800; color: #166534; }
.ok-troco strong { display: block; font-size: 32px; font-weight: 900; color: var(--ok); }
.abrir-caixa { max-width: 480px; margin: 8px auto; text-align: center; padding: 26px 22px; }
.abrir-ico { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--eb-accent), var(--eb-accent-strong)); box-shadow: 0 12px 28px rgba(var(--eb-accent-rgb), .22); }
.abrir-caixa h2 { font-size: 20px; margin: 0 0 6px; }
.abrir-caixa p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.abrir-caixa input { text-align: center; font-size: 22px; font-weight: 900; min-height: 54px; }
.abrir-caixa label { text-align: left; }
.cli-lista { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; max-height: 260px; overflow-y: auto; }
.cli-lista button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--eb-line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--text-2); }
.cli-lista button:hover { background: var(--eb-soft); }
.cli-lista button small { color: var(--muted); font-weight: 400; }

/* PDV sem internet: aviso, etiqueta no topo e vendas guardadas no aparelho */
.chip-rede { font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.aviso-rede { line-height: 1.45; }
.fila-lista { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; max-height: 50vh; overflow-y: auto; }
.fila-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--eb-line); border-radius: 12px; background: #fff; font-size: 13px; color: var(--text-2); }
.fila-item small { display: block; margin-top: 2px; color: var(--muted); font-weight: 600; }
.fila-item.erro { border-color: #fecaca; background: #fef2f2; }
.fila-item .fila-erro { color: #991b1b; font-weight: 700; }
.fila-acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

.cx-formas { margin: 0 0 6px; }
.cx-formas div { display: flex; justify-content: space-between; padding: 6px 2px; font-size: 13px; border-bottom: 1px dashed var(--eb-line); }
.cx-formas div:last-child { border-bottom: 0; }
.pdv-barra { display: none; }

/* PDV do caixa no computador: tudo numa tela só, sem rolar a página. Só a lista de produtos rola. */
.pdv-teclas { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 10px; padding: 6px 8px; border: 1px solid var(--eb-line); border-radius: 14px; background: var(--eb-field); }
.pdv-teclas button, .pdv-teclas span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 0; border-radius: 10px; background: transparent; font: 700 12.5px/1 Arial, sans-serif; color: var(--text-2); white-space: nowrap; }
.pdv-teclas button { cursor: pointer; }
.pdv-teclas button:hover { background: #fff; color: var(--eb-accent); box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
.pdv-teclas span { color: var(--muted); font-weight: 600; }
.pdv-teclas span:first-of-type { margin-left: auto; }
.pdv-teclas kbd { min-width: 26px; height: 22px; font-size: 11px; color: var(--eb-accent); background: #fff; border-color: var(--eb-line-strong); }
.linha-resumo label kbd { margin-left: 4px; vertical-align: 1px; }
@media (hover: none) { .pdv-teclas { display: none; } }
@media (min-width: 901px) and (min-height: 520px) {
  body.pdv-cheio main.container { height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h)); display: flex; flex-direction: column; padding-top: 12px; padding-bottom: 12px; }
  body.pdv-cheio .rodape, body.pdv-cheio .numeros, body.pdv-cheio .pg-tit p, body.pdv-cheio .leitura-dica { display: none; }
  body.pdv-cheio .pg { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 12px 14px; }
  body.pdv-cheio .pg-top { align-items: center; margin-bottom: 10px; }
  body.pdv-cheio .pg-top .btn { min-height: 36px; padding: 7px 12px; }
  body.pdv-cheio .pdv-grid { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  body.pdv-cheio .pdv-grid > .painel { display: flex; flex-direction: column; min-height: 0; padding: 12px 14px; }
  body.pdv-cheio .pdv-grid > section.painel > .painel-cab { display: none; }
  body.pdv-cheio .vendedora { padding: 7px 10px; margin-bottom: 10px; }
  body.pdv-cheio .vendedora .avatar { width: 38px; height: 38px; flex-basis: 38px; }
  body.pdv-cheio .itens-lista { flex: 1 1 auto; min-height: 0; overflow-y: auto; gap: 6px; margin-top: 10px; padding-right: 2px; }
  body.pdv-cheio .itens-lista:empty { display: none; }
  body.pdv-cheio #vazio { flex: 1 1 auto; }
  body.pdv-cheio .item { padding: 6px 10px; }
  body.pdv-cheio .item-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  body.pdv-cheio .item-meta { margin-top: 0; }
  body.pdv-cheio .cliente-box { padding: 6px 8px 6px 12px; }
  body.pdv-cheio .cliente-box > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  body.pdv-cheio .cliente-box > .cli-campo { flex-direction: row; align-items: center; }
  body.pdv-cheio .cli-campo label { flex: 0 0 auto; white-space: nowrap; }
  body.pdv-cheio .cli-campo input { min-height: 30px; padding: 4px 9px; }
  body.pdv-cheio .cliente-box strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.pdv-cheio .pdv-resumo .pag-lista { gap: 4px; margin-bottom: 8px; }
  body.pdv-cheio .pdv-resumo .pag-item { padding: 3px 4px 3px 10px; border-radius: 10px; }
  body.pdv-cheio .pdv-resumo .pag-item .item-x { width: 26px; height: 26px; border-radius: 8px; }
  body.pdv-cheio .pdv-resumo .pag-lista .linha-resumo { padding: 3px 2px; }
  body.pdv-cheio .pdv-resumo { position: static; overflow-y: auto; }
  body.pdv-cheio .pdv-resumo .painel-cab { align-items: center; margin-bottom: 8px; }
  body.pdv-cheio .pdv-resumo .painel-sub { display: none; }
  body.pdv-cheio .linhas-resumo { margin: 6px 0; }
  body.pdv-cheio .linha-resumo { padding: 5px 2px; }
  body.pdv-cheio .total-box { padding: 12px 14px; margin: 2px 0 10px; }
  body.pdv-cheio .desc-aviso { margin-top: -2px; }
  /* Se faltar altura, só a lista de pagamentos encolhe e rola; o botão de receber fica sempre à vista */
  body.pdv-cheio .pdv-resumo > * { flex-shrink: 0; }
  body.pdv-cheio .pdv-resumo > #r-pagamentos { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
  body.pdv-cheio #receber { margin-top: auto; }
}
@media (min-width: 901px) and (min-height: 520px) and (max-height: 700px) {
  /* Notebook (1366x768 e menores): resumo mais baixo para caber pagamento dividido */
  body.pdv-cheio .total-box { padding: 9px 14px; }
  body.pdv-cheio .total-box strong { font-size: 26px; }
  body.pdv-cheio .linha-resumo { padding: 3px 2px; }
  body.pdv-cheio .linha-resumo input { min-height: 32px; padding: 4px 10px; }
  body.pdv-cheio .pdv-resumo .painel-cab { margin-bottom: 6px; }
  body.pdv-cheio .pdv-resumo .painel-cab h2 { font-size: 15px; }
}
@media (min-width: 1100px) and (min-height: 520px) {
  /* Crachá da vendedora e campo de leitura lado a lado */
  body.pdv-cheio .pdv-entrada { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 12px; align-items: end; }
  body.pdv-cheio .pdv-entrada .vendedora { margin: 0; min-height: 52px; }
}

/* ===== Telas menores ===== */
@media (max-width: 1180px) {
  .pdv-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1000px) {
  .grade, .grade-3 { grid-template-columns: minmax(0, 1fr); }
  .acc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .pdv-grid { grid-template-columns: minmax(0, 1fr); }
  .pdv-resumo { position: static; }
  .tela-pdv .numeros { display: none; }
  body.com-barra main.container { padding-bottom: 96px; }
  .pdv-barra { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: #fff; border: 1px solid var(--eb-line); border-radius: 18px; box-shadow: 0 16px 40px rgba(15, 23, 42, .18); }
  .pdv-barra span { display: block; font-size: 11px; font-weight: 800; color: var(--muted); }
  .pdv-barra strong { display: block; font-size: 22px; font-weight: 900; color: var(--eb-accent); line-height: 1.1; }
  .pdv-barra small { color: var(--muted); font-size: 11px; }
  .pdv-barra .btn { min-height: 48px; padding: 10px 22px; font-size: 15px; border-radius: 14px; }
  .perms { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .topbar { padding: 0 10px; gap: 8px; justify-content: space-between; }
  .side-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; border: 1px solid var(--eb-line); background: #fff; color: var(--eb-accent); cursor: pointer; box-shadow: 0 4px 12px rgba(15, 23, 42, .05); position: relative; z-index: 2; }
  .brand { position: absolute; left: 60px; right: 60px; top: 50%; transform: translateY(-50%); margin: 0; padding: 0; justify-content: center; text-align: center; }
  .brand:hover { background: transparent; }
  .brand img, .brand .title small, .brand .title .tb-sufixo { display: none; }
  .brand .title { align-items: center; width: 100%; }
  .brand .title b { font-size: 15px; max-width: 100%; }
  .top-dir { position: relative; z-index: 2; }
  .top-dir > .loja-topo { display: none; }
  .conta-loja { display: block; }
  .conta-btn { width: 42px; height: 42px; border-radius: 13px; }
  .avatar { border-radius: 10px; }
  .conta-menu { position: fixed; top: calc(var(--topbar-h) + 8px); right: 10px; width: min(300px, calc(100vw - 20px)); max-height: calc(100dvh - var(--topbar-h) - 20px); overflow: auto; z-index: 100000; }
  main.container { padding: 12px 10px 16px; }
  .sidebar { top: calc(var(--topbar-h) + 10px); left: 10px; bottom: 10px; width: min(86vw, 320px); z-index: 99999; transform: translateX(-110%); opacity: 0; pointer-events: none; transition: transform .18s ease, opacity .18s ease; box-shadow: 0 30px 90px rgba(0, 0, 0, .35); }
  body.side-open .sidebar { transform: none; opacity: 1; pointer-events: auto; }
  body.side-open .side-fundo { display: block; position: fixed; inset: 0; z-index: 99998; background: rgba(15, 23, 42, .35); }
  .sidebar .side-item { justify-content: flex-start; padding: 4px 8px; min-height: 52px; height: auto; }
  .sidebar .side-label, .sidebar .side-logout span { display: block; }
  .sidebar .side-label { font-size: 14px; font-weight: 800; }
  .pg { padding: 14px 12px; border-radius: 14px; }
  .pg-top { gap: 10px; }
  .pg-dir { margin-left: 0; justify-content: flex-start; }
  h1 { font-size: 18px; }
  input, select, textarea { font-size: 16px; }
  .campos .c2, .campos .c3, .campos .c4, .campos .c5, .campos .c6, .campos .c7, .campos .c8, .campos .c9 { grid-column: span 12; }
  .campos .m6 { grid-column: span 6; }
  .negado-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .numeros > .numero:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .numero { padding: 10px 12px; border-radius: 16px; }
  .numero > strong { font-size: 16px; }
  .caixa-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 10px 12px; border-radius: 16px; }
  .cc-acoes, .cc-alerta { grid-column: 1 / -1; margin-left: 0; }
  .cc-acoes .btn { flex: 1; justify-content: center; }
  .filtros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .filtros > div { max-width: none; min-width: 0; }
  .filtros > .busca, .filtros > .checks, .filtros > div.inteiro { grid-column: 1 / -1; }
  .filtros > .btn { width: 100%; }
  .filtros > .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .esconde-cel { display: none !important; }
  .pg-dir { flex: 1 1 100%; }
  .pg-acoes { width: 100%; }
  .pg-acoes .btn { flex: 1 1 auto; }
  .mini-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* tabelas viram cartões */
  table.cards { border-collapse: separate; }
  table.cards thead { display: none; }
  table.cards, table.cards tbody, table.cards tfoot { display: block; }
  /* cartão em duas colunas: o nome em cima, os outros campos em pares e os botões embaixo */
  table.cards tr { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; border: 1px solid var(--eb-line); border-radius: 12px; padding: 8px 12px; margin: 0 0 8px; background: #fff; }
  table.cards td { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; min-width: 0; padding: 5px 0; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  table.cards td::before { content: attr(data-label); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  table.cards td[data-label=""]::before { content: none; }
  table.cards td.cel-principal { grid-column: 1 / -1; order: -1; padding: 2px 0 8px; margin-bottom: 3px; border-bottom: 1px dashed var(--eb-line); }
  table.cards tr.c1 { grid-template-columns: minmax(0, 1fr); }
  table.cards tr.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; }
  table.cards tbody tr.tem-canto td.cel-principal { padding-right: 34px; }
  table.cards tbody tr.tem-acao td.cel-principal { padding-right: 76px; }
  table.cards td.cel-principal::before { content: none; }
  table.cards td > .cel { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-width: 0; }
  table.cards tbody td.canto { position: absolute; top: 8px; right: 10px; padding: 0; }
  table.cards td.acoes { grid-column: 1 / -1; order: 99; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--eb-line); }
  table.cards td.acoes:empty, table.cards td.acoes:not(:has(*)) { display: none; }
  table.cards td.acoes::before { content: none; }
  table.cards tbody td.acoes.acao-unica { position: absolute; top: 7px; right: 8px; margin: 0; padding: 0; border: 0; }
  table.cards td.acoes .btn + .btn, table.cards td.acoes form + .btn { margin-left: 0; }
  table.cards tfoot tr { background: var(--eb-field); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  table.cards tfoot td, table.cards tfoot td[colspan] { display: block; border: 0; padding: 4px 0; text-align: left; }
  table.cards tfoot td::before { content: none !important; }
  table.cards tfoot td.dir { text-align: right; }
  table.cards td[colspan] { display: block; grid-column: 1 / -1; text-align: center; }
  table.cards td[colspan]::before { content: none; }
  .tabela:has(table.cards) { border: 0; background: transparent; overflow: visible; }
  /* relatórios continuam em tabela, com a primeira coluna presa ao rolar para o lado */
  .tabela.rel table { font-size: 12px; }
  .tabela.rel th, .tabela.rel td { padding: 8px 9px; }
  .tabela.rel .pri { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 150px; max-width: 200px; white-space: normal; box-shadow: 1px 0 0 var(--eb-line); }
  .tabela.rel th.pri, .tabela.rel tfoot .pri { background: var(--eb-field); }
  .tag { white-space: normal; max-width: 100%; }
  .atalhos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .atalho { padding: 10px; gap: 10px; border-radius: 14px; }
  .atalho .side-ico { width: 36px; height: 36px; flex-basis: 36px; }
  .atalho strong { font-size: 13px; }
  .atalho small { display: none; }
  .item { grid-template-columns: auto minmax(0, 1fr) 34px; grid-template-areas: "info info x" "qtd valor valor"; row-gap: 8px; }
  .item-info { grid-area: info; }
  .item .qtd { grid-area: qtd; justify-self: start; }
  .item-valor { grid-area: valor; }
  .item-x { grid-area: x; align-self: start; }
  .pag-resumo { gap: 6px; }
  .pag-resumo .resumo-box { padding: 9px 10px; }
  .pag-resumo .resumo-box > strong { font-size: 15px; }
  .formas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formas kbd, .btn kbd, .so-pc { display: none !important; }
  .rodape p { font-size: 12px; }
}
@media (max-width: 560px) {
  dialog.dlg, dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 94dvh; padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); }
  dialog.novidades { padding: 20px 17px; }
  .dlg-acoes .btn { flex: 1 1 auto; }
  .total-box strong { font-size: 26px; }
}
/* Folha de inventário: digitar o saldo real anotado */
.inv-modos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inv-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.inv-topo-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inv-imprimir { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inv-imprimir select { width: auto; }
.inv-nav { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.inv-nav select { flex: 1; min-width: 0; font-weight: 800; }
.inv-nav-fim { justify-content: space-between; margin: 10px 0 14px; }
.inv-dig th.inv-n, .inv-dig td.inv-n { width: 52px; text-align: center; color: var(--muted); font-weight: 800; }
.inv-dig td.inv-prod b { display: block; color: var(--text-2); }
.inv-dig td.inv-prod small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.inv-dig td.inv-sis { font-size: 15px; font-weight: 800; }
.inv-dig td.inv-real { width: 120px; }
.inv-dig td.inv-real input { width: 96px; text-align: center; font-size: 17px; font-weight: 800; }
.inv-dig td.inv-dif { width: 96px; font-size: 15px; }
.inv-dig .inv-ok { color: var(--muted); font-size: 12px; font-weight: 700; }
.inv-dig tr.mudou input { border-color: #f59e0b; background: #fffbeb; }
.inv-dig tr.enviando input { opacity: .6; }
.inv-dig tr.salvo input { border-color: #86efac; background: #f0fdf4; }
.inv-dig tr.erro input { border-color: #dc2626; background: #fef2f2; }
.inv-dig tr.achado td { background: #fff4c2; }
.inv-depois { margin-top: 2px; color: #92400e; font-weight: 700; }
.passos { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 760px) {
  .inv-dig thead { display: none; }
  .inv-dig, .inv-dig tbody { display: block; }
  .inv-dig tr { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) 84px; grid-template-areas: "n prod prod real" "n sis dif real"; align-items: center; gap: 2px 8px; padding: 9px 10px; border-bottom: 1px solid var(--eb-line); }
  .inv-dig tbody tr:last-child { border-bottom: 0; }
  .inv-dig td { padding: 0; border: 0; }
  .inv-dig td.inv-n { grid-area: n; align-self: start; width: auto; padding-top: 1px; }
  .inv-dig td.inv-prod { grid-area: prod; min-width: 0; overflow-wrap: anywhere; }
  .inv-dig td.inv-sis { grid-area: sis; color: var(--muted); font-size: 12.5px; font-weight: 700; text-align: left; white-space: nowrap; }
  .inv-dig td.inv-sis::before { content: 'Sistema '; font-weight: 600; }
  .inv-dig td.inv-dif { grid-area: dif; width: auto; font-size: 13px; text-align: left; }
  .inv-dig td.inv-real { grid-area: real; width: auto; }
  .inv-dig td.inv-real input { width: 100%; height: 48px; font-size: 19px; }
  .inv-imprimir { width: 100%; }
  .inv-imprimir select, .inv-imprimir .btn, .inv-modos .btn { flex: 1 1 auto; }
}
@media print {
  .topbar, .sidebar, .side-fundo, .rodape, .pg-acoes, .filtros, .nao-imprime, .paginacao, .btn, .pdv-barra, #progresso { display: none !important; }
  main.container { padding: 0; max-width: none; }
  .pg { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; font-size: 12px; }
  .painel, .tabela, .numero { border-color: #ccc; break-inside: avoid; }
  .so-impressao { display: block; }
  .pg-dir .chips { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .pg, .aviso, dialog[open], .item.novo { animation: none !important; }
}
@media (min-width: 761px) { .so-cel { display: none !important; } }

/* ---------- Pré-venda e computadores do caixa (v2.5) ---------- */
.pv-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--eb-accent); color: #fff; font-size: 11px; font-weight: 900; line-height: 1; }
.btn-pri .pv-badge { background: #fff; color: var(--eb-accent); }
@keyframes pv-chegou { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--eb-accent-rgb), 0); } 30% { box-shadow: 0 0 0 6px rgba(var(--eb-accent-rgb), .35); } 60% { box-shadow: 0 0 0 0 rgba(var(--eb-accent-rgb), 0); } }
.pv-chegou { animation: pv-chegou 1.2s ease 3; border-color: var(--eb-accent); }
.pv-tag { display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.pv-numero { margin: 12px auto 8px; padding: 10px 18px; display: inline-flex; flex-direction: column; align-items: center; border-radius: 16px; background: var(--eb-soft); border: 1px solid var(--eb-soft-2); }
.pv-numero span { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pv-numero strong { font-size: 44px; font-weight: 900; line-height: 1.05; color: var(--eb-accent); }
.pv-item.no-caixa { background: #fffbeb; border-color: #fde68a; }
.pv-item small b { color: var(--text-2); }
#pv-busca { margin-bottom: 4px; }
.pv-obs { flex-wrap: wrap; }
.pv-obs input { width: 100%; text-align: left; }
.lista-dicas { margin: 0; padding-left: 18px; display: grid; gap: 7px; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.pc-atual strong { display: flex; align-items: center; gap: 6px; }
.pc-nome { display: inline-block; margin: 0; }
.atalho-loja { padding: 12px 0; border-top: 1px solid var(--eb-line); }
.atalho-loja:first-of-type { border-top: 0; padding-top: 2px; }
.atalho-loja label { display: flex; align-items: center; gap: 6px; font-weight: 800; margin-bottom: 6px; }
.atalho-linha { display: flex; gap: 8px; }
.atalho-linha input { flex: 1; min-width: 0; font-family: Consolas, "Courier New", monospace; font-size: 13px; }
.atalho-linha .btn { flex: none; }
.atalho-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pc-nome input { min-height: 34px; padding: 5px 9px; font-weight: 700; max-width: 220px; }

/* ===== Ajuda (botão "?" no topo e página de perguntas) ===== */
.ajuda-btn { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 16px; border: 1px solid var(--eb-line); background: #fff; color: var(--eb-accent); box-shadow: 0 4px 12px rgba(15, 23, 42, .05); transition: .18s ease; }
.ajuda-btn:hover { background: var(--eb-soft); text-decoration: none; transform: translateY(-1px); }
.aj-busca { position: relative; margin: 0 0 12px; }
.aj-busca input { width: 100%; min-height: 54px; padding: 12px 14px 12px 46px; font-size: 16px; border-radius: 14px; }
.aj-lupa { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; pointer-events: none; }
.aj-temas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.aj-temas[hidden] { display: none; }
.aj-tema { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--eb-line); background: var(--eb-soft); color: var(--eb-accent); font-size: 13px; font-weight: 700; }
.aj-tema:hover { text-decoration: none; background: var(--eb-soft-2); }
.aj-res { margin: 0 0 10px; font-size: 13px; }
#aj-nada { margin: 0 0 14px; }
.aj-grupo { margin: 0 0 18px; scroll-margin-top: calc(var(--topbar-h) + 12px); }
.aj-grupo[hidden], .aj-item[hidden] { display: none !important; }
.aj-grupo-cab { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.aj-grupo-cab h2 { margin: 0; font-size: 16px; flex: 1 1 auto; min-width: 0; }
.aj-grupo-cab h2 small { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--eb-soft); color: var(--eb-accent); font-size: 11px; font-weight: 700; vertical-align: middle; }
.aj-grupo-ico { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px; background: var(--eb-soft); color: var(--eb-accent); }
.aj-item { border: 1px solid var(--eb-line); border-radius: 14px; background: #fff; margin: 0 0 8px; overflow: hidden; }
.aj-item summary { cursor: pointer; list-style: none; padding: 13px 44px 13px 14px; font-weight: 700; font-size: 14.5px; position: relative; }
.aj-item summary::-webkit-details-marker { display: none; }
.aj-item summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: .15s ease; }
.aj-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.aj-item[open] summary { color: var(--eb-accent); border-bottom: 1px solid var(--eb-line); background: var(--eb-soft); }
.aj-corpo { padding: 10px 14px 14px; }
.aj-corpo ol { margin: 0; padding-left: 22px; }
.aj-corpo li { margin: 6px 0; line-height: 1.45; font-size: 14px; }
.aj-dica { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 13px; line-height: 1.45; }
.aj-daqui .aj-grupo-ico { background: var(--eb-accent); color: #fff; }
.aj-rodape { margin-top: 4px; }
@media (max-width: 820px) {
  .ajuda-btn { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
  .brand { right: 108px; }
  .aj-grupo-cab .btn { display: none; }
  .aj-temas { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 14px; padding: 0 12px 4px; scrollbar-width: none; }
  .aj-temas::-webkit-scrollbar { display: none; }
  .aj-tema { flex: 0 0 auto; }
}
@media print { .aj-busca, .aj-temas, .ajuda-btn { display: none !important; } }

/* ===== PDV: produto sem código ===== */
.leitura-linha .btn-semcod { flex: 0 0 auto; gap: 6px; padding: 0 12px; font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--eb-accent); }
.aviso-btn { margin-left: 8px; vertical-align: middle; }
.novo-par-tit { margin: 0 0 10px; font-weight: 700; font-size: 14px; }
.novo-lista { display: grid; gap: 8px; max-height: 300px; overflow: auto; margin: 0 0 6px; }
.novo-par { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--eb-line); border-radius: 12px; background: #fff; color: var(--text); font: inherit; cursor: pointer; transition: .15s ease; }
.novo-par:hover, .novo-par:focus-visible { border-color: var(--eb-accent); background: var(--eb-soft); outline: none; }
.novo-par b { font-size: 14px; }
.novo-par span { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .leitura-linha .btn-semcod { flex-direction: column; justify-content: center; gap: 2px; padding: 4px 8px; font-size: 10.5px; line-height: 1.1; min-width: 64px; }
}
