/* FlowPDV — Painel da loja (cliente.flowpdv.com.br) — folha única (14/10/2026).
   Substitui style.css, reconstruction.css, login.css, visual-approved.css, login-access.css e self-password.css.
   Mesma linguagem do PDV, da Gestão e do Master: moldura azul-marinho, superfícies brancas, laranja só como sinal. */

:root {
  --navy: #192a40;
  --navy-2: #24395a;
  --navy-3: #30475e;
  --navy-deep: #13223a;
  --ink: #192a40;
  --ink-2: #3a4b61;
  --muted: #5a6b80;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f6;
  --line: #d8dfe7;
  --line-strong: #c3ceda;
  --brand: #f37021;
  --brand-soft: #ffb57f;
  --focus: #2466bd;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --ok-line: #abefc6;
  --warn: #b54708;
  --warn-bg: #fffaeb;
  --warn-line: #fedf89;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-line: #fecdca;
  --info: #1f5aa6;
  --info-bg: #eef4fb;
  --info-line: #c7d9f0;
  /* séries de pagamento */
  --pag-pix: #1d7c8a;
  --pag-dinheiro: #2f7d4f;
  --pag-cartao: #4c5fa8;
  --pag-fiado: #b54708;
  --pag-outros: #9aa8b8;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-pop: 0 18px 48px rgba(25, 42, 64, 0.24);
  --topo-h: 64px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topo-h) + 12px); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 500 14px/1.5 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--info); text-underline-offset: 3px; }
img { max-width: 100%; }
::selection { background: #d8e3ef; color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
* { scrollbar-color: #9aa8b8 transparent; scrollbar-width: thin; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.flow-glyph { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* ---------- Botões ---------- */
.btn-pri, .btn-sec, .btn-ghost, .flow-password-save, .flow-password-open {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.btn-pri, .flow-password-save { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-pri:hover, .flow-password-save:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-pri:active { background: var(--navy-deep); }
.btn-sec, .flow-password-open { background: var(--surface); border-color: var(--line-strong); color: var(--navy); }
.btn-sec:hover, .flow-password-open:hover { background: var(--surface-3); border-color: #9aa8b8; }
.btn-ghost { background: transparent; color: var(--navy-3); }
.btn-ghost:hover { background: var(--surface-3); color: var(--navy); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn-bloco { width: 100%; }
.btn-whats { color: var(--ok); border-color: var(--ok-line); }
.btn-whats:hover { background: var(--ok-bg); border-color: #6ce9a6; }
:is(.btn-pri, .btn-sec, .btn-ghost)[aria-disabled="true"], :is(.btn-pri, .btn-sec, .btn-ghost):disabled { opacity: .55; cursor: not-allowed; }
.btn-sec.is-loading::before, .btn-topo.is-loading .flow-glyph { animation: girar .9s linear infinite; }
.btn-sec.is-loading::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--line-strong); border-top-color: var(--navy); border-radius: 50%; }
@keyframes girar { to { transform: rotate(360deg); } }
.btn-fechar {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 7px; background: var(--navy-3); color: #fff;
}
.btn-fechar svg { width: 18px; height: 18px; }
.btn-fechar:hover { background: #3d5873; }
.btn-fechar:focus-visible { outline-color: var(--brand-soft); }

/* ---------- Campos ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
:is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  width: 100%; min-height: 44px; padding: 10px 12px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 16px; font-weight: 500; caret-color: var(--navy);
  transition: border-color .12s ease, box-shadow .12s ease;
}
select:not([multiple]) {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b80' 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; background-size: 16px;
}
input[type=date] { min-width: 0; }
::placeholder { color: #627388; opacity: 1; }
:is(input, select, textarea):hover:not(:disabled) { border-color: #9aa8b8; }
:is(input, select, textarea):focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(36, 102, 189, .22); }
:is(input, select, textarea):disabled { background: var(--surface-3); color: var(--muted); }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); flex-shrink: 0; }
.campo-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); min-height: 44px; cursor: pointer; }
.busca { position: relative; margin: 12px 0 10px; }
.busca .flow-glyph { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.busca > input:not([type=checkbox]) { padding-left: 42px; }

/* ---------- Avisos e estados ---------- */
.aviso { padding: 10px 12px; border-radius: var(--radius); background: var(--info-bg); border: 1px solid var(--info-line); color: var(--info); font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.aviso-erro, .aviso.is-erro { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.status-linha { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.status-linha:empty { display: none; }
.status-linha.is-erro { color: var(--danger); background: var(--danger-bg); border: 1px solid var(--danger-line); border-radius: var(--radius); padding: 8px 10px; font-weight: 600; margin: 8px 0; }
.texto-apoio { font-size: 13px; color: var(--muted); line-height: 1.5; }
.texto-rodape { margin-top: 20px; text-align: center; }
.estado-vazio { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; text-align: center; color: var(--muted); }
.estado-vazio .flow-glyph { width: 28px; height: 28px; color: #9aa8b8; margin-bottom: 2px; }
.estado-vazio strong { font-size: 15px; color: var(--ink); font-weight: 700; }
.estado-vazio p { font-size: 13px; max-width: 34ch; }
.estado-erro .flow-glyph { color: var(--danger); }
/* carregando: linhas de esqueleto enquanto a lista está vazia */
[aria-busy="true"]:empty { min-height: 132px; border-radius: var(--radius);
  background: repeating-linear-gradient(180deg, var(--surface-3) 0 14px, transparent 14px 28px, var(--surface-3) 28px 40px, transparent 40px 66px);
  background-size: 100% 66px; animation: pulsar 1.4s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: .45; } }
.tom-ok { color: var(--ok) !important; } .tom-warn { color: var(--warn) !important; } .tom-danger { color: var(--danger) !important; } .tom-info { color: var(--info) !important; } .tom-neutro { color: var(--ink) !important; }
.pilula { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; }
.pilula-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.pilula-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.pilula-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.pilula-info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.pilula-neutro { background: var(--surface-3); color: var(--ink-2); border-color: var(--line); }
.contador { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; margin-left: 6px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 700; vertical-align: 2px; }

/* ---------- Entrada (login) ---------- */
.flow-access { display: grid; grid-template-columns: minmax(320px, 40%) minmax(0, 1fr); min-height: 100dvh; background: var(--surface); }
.flow-access-brand {
  display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 48px 44px; color: #dce5ef;
  background: radial-gradient(120% 80% at 0% 0%, #22395a 0%, transparent 60%), radial-gradient(90% 70% at 100% 100%, #0f2b45 0%, transparent 65%), var(--navy-deep);
}
.flow-access-logo { width: 150px; height: auto; }
.flow-access-lead { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.flow-access-points { display: grid; gap: 12px; }
.flow-access-points li { position: relative; padding-left: 20px; font-size: 15px; color: #c3cfdc; }
.flow-access-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.flow-access-panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px calc(48px + var(--safe-b)); }
.flow-access-box { width: 100%; max-width: 400px; }
.flow-access-title { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.flow-access-sub { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.flow-access-form { display: grid; gap: 16px; margin-top: 28px; }
.campo-senha { position: relative; }
.campo-senha > input:not([type=checkbox]) { padding-right: 52px; }
.btn-toggle-pass { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 40px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.btn-toggle-pass:hover { color: var(--navy); background: var(--surface-3); }
.btn-toggle-pass svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.btn-toggle-pass .eye-slash { display: none; }
.btn-toggle-pass[aria-pressed="true"] .eye-slash { display: inline; }
.flow-access-form .btn-pri { min-height: 48px; font-size: 15px; }
.flow-access-footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.flow-access-form[aria-busy="true"] .btn-pri { opacity: .8; }

/* ---------- Moldura do painel ---------- */
.app { min-height: 100dvh; padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); }
.topo { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top, 0px); box-shadow: 0 6px 18px rgba(19, 34, 58, .16); }
.topo-faixa { display: flex; align-items: center; gap: 12px; max-width: 1180px; margin: 0 auto; min-height: var(--topo-h); padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); }
.topo-loja { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.topo-icone { width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0; }
.topo-logo { display: none; height: 26px; width: auto; }
.topo-loja-texto { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.topo-nome { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-endereco { font-size: 12px; color: #b9c7d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #c3cfdc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-status-ponto { width: 7px; height: 7px; border-radius: 50%; background: #9aa8b8; flex-shrink: 0; }
.topo-status[data-estado="ok"] .topo-status-ponto { background: #47cd89; }
.topo-status[data-estado="carregando"] .topo-status-ponto { background: var(--brand-soft); animation: pulsar 1.2s ease-in-out infinite; }
.topo-status[data-estado="erro"] .topo-status-ponto { background: #f97066; }
.topo-status[data-estado="erro"] { color: #fecdca; }
.topo-nav { display: none; }
.topo-acoes { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.btn-topo, .topo-conta .flow-password-open {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; min-height: 40px; padding: 0 10px;
  border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: #dce5ef; font-size: 13px; font-weight: 700;
}
.btn-topo:hover, .topo-conta .flow-password-open:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: transparent; }
.btn-topo:focus-visible, .topo-conta .flow-password-open:focus-visible, .desktop-nav-btn:focus-visible { outline-color: var(--brand-soft); outline-offset: -2px; }
.btn-topo span { display: none; }
#btn-trocar-unidade span { display: inline; }
.btn-topo[aria-disabled="true"] { opacity: .7; }
/* "Configurações" vira ícone de engrenagem no celular; o nome continua para leitores de tela */
.topo-conta { display: contents; }
.topo-conta .flow-password-open { font-size: 0; width: 40px; padding: 0; }
.topo-conta .flow-password-open::before {
  content: ""; width: 19px; height: 19px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* barra inferior (celular) */
.bottom-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding: 0 max(4px, env(safe-area-inset-right)) var(--safe-b) max(4px, env(safe-area-inset-left));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(19, 34, 58, .06);
}
.tabbar-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.tabbar-item .flow-glyph { width: 22px; height: 22px; }
.tabbar-item.active { color: var(--navy); }
.tabbar-item.active::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tabbar-item:focus-visible { outline-offset: -4px; }

/* ---------- Palco e páginas ---------- */
.palco { max-width: 1180px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left)); }
.mobile-tab-view { display: flex; flex-direction: column; gap: 12px; }
.pagina-cabeca { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.pagina-titulo { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.pagina-sub { margin-top: 2px; color: var(--muted); font-size: 13.5px; }
#resumo-data-hoje::first-letter { text-transform: uppercase; }
.pagina-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.painel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; min-width: 0; }
.painel-cabeca { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.painel-titulo { font-size: 15px; font-weight: 700; line-height: 1.35; }
.painel > .painel-titulo { margin-bottom: 10px; }
.painel-ferramentas { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rotulo { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* ---------- Hoje ---------- */
.resumo-grade { display: grid; gap: 12px; }
.resumo-col { display: contents; }
.painel-dia { order: 1; } #painel-pagamentos { order: 2; } #painel-top { order: 3; } .painel-vendas { order: 4; }
.painel-dia { padding: 18px 16px 14px; }
.dia-valor { display: block; margin-top: 2px; font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.dia-numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid var(--line); }
.dia-numeros > div { padding: 10px 0 0; min-width: 0; }
.dia-numeros > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.dia-numeros dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.dia-numeros dd { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* régua de horas: assinatura do painel */
.horas { margin-top: 16px; }
.horas[aria-busy="true"]:empty { min-height: 84px; }
.horas-barras { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: 2px; height: 64px; border-bottom: 1px solid var(--line-strong); }
.horas-barras li { position: relative; height: var(--altura, 0%); min-height: 2px; border-radius: 2px 2px 0 0; background: var(--navy-3); }
.horas-barras li[data-valor="0"] { background: var(--surface-3); }
.horas-barras li[aria-current="time"]::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--surface); }
.horas-barras li[aria-current="time"]::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 64px; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--brand) 0 3px, transparent 3px 6px); opacity: .55; z-index: -1; }
.horas-barras { position: relative; z-index: 0; }
.horas-eixo { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.horas-nota { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.horas-nota strong { color: var(--ink); }
.pag-barra { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--surface-3); }
.pag-barra span { min-width: 4px; }
.pag-pix { background: var(--pag-pix); } .pag-dinheiro { background: var(--pag-dinheiro); } .pag-cartao { background: var(--pag-cartao); } .pag-fiado { background: var(--pag-fiado); } .pag-outros { background: var(--pag-outros); }
.pag-lista { margin-top: 10px; }
.pag-lista li { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.pag-lista li:first-child { border-top: 0; }
.pag-ponto { width: 10px; height: 10px; border-radius: 3px; }
.pag-nome { font-weight: 600; }
.pag-pct { font-size: 12.5px; color: var(--muted); }
.rank-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.rank-item:first-child { border-top: 0; padding-top: 2px; }
.rank-pos { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-3); color: var(--ink-2); font-size: 12.5px; font-weight: 800; }
.rank-item:first-child .rank-pos { background: var(--navy); color: #fff; }
.rank-corpo { min-width: 0; }
.barra { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.barra > span { display: block; height: 100%; background: var(--navy-3); border-radius: 2px; }

/* ---------- Listas ---------- */
.lista { display: flex; flex-direction: column; }
.linha { display: block; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.lista > .linha:first-child, .lista > .lista-barra + .linha { border-top: 0; }
.linha-principal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.linha-titulo { font-size: 14.5px; font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.linha-valor, .linha-principal > strong { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.linha-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.linha-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.linha-acoes > * { flex: 1 1 auto; }
.linha-acoes > .btn-pri { order: -1; }
.linha > .btn-sec { margin-top: 10px; }
.linha-corpo { min-width: 0; flex: 1; }
.linha-venda, .linha-abc, .linha-terminal { display: flex; gap: 12px; align-items: flex-start; }
.venda-hora { flex-shrink: 0; width: 44px; padding-top: 1px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.linha-venda.is-estorno .linha-titulo { color: var(--danger); }
.linha-icone { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--surface-3); color: var(--navy-3); flex-shrink: 0; }
.linha-terminal.is-inativa { opacity: .7; }
.linha-categoria .barra { margin-top: 8px; }
.abc-classe { display: inline-grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; font-size: 13px; font-weight: 800; }
.texto-apoio .abc-classe { width: 22px; height: 22px; font-size: 12px; vertical-align: -5px; margin-right: 2px; }
.abc-A { background: var(--navy); color: #fff; } .abc-B { background: #d8e3ef; color: var(--navy); } .abc-C { background: var(--surface-3); color: var(--muted); border: 1px solid var(--line); }
.lista-barra { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; }
.lista-barra .financeiro-status { font-size: 12.5px; color: var(--muted); }
.lista-barra .financeiro-status:empty { visibility: hidden; }
.lista-barra .financeiro-status.is-erro { color: var(--danger); font-weight: 600; }

/* segmentos e abas */
.segmentos { display: flex; gap: 6px; overflow-x: auto; margin: 2px -16px 8px; padding: 2px 16px; scrollbar-width: none; }
.segmentos::-webkit-scrollbar { display: none; }
.seg-btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 700; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.seg-btn:hover { background: var(--surface-3); }
.seg-btn[aria-pressed="true"], .seg-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg-n { font-size: 12px; font-weight: 700; color: var(--muted); }
.seg-btn[aria-pressed="true"] .seg-n { color: #c3cfdc; }
.segmentos-largos { margin: 0; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: visible; }
.segmentos-largos .seg-btn { flex: 1; justify-content: center; border-color: transparent; min-height: 40px; }

/* filtros */
.filtros { margin: 12px 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.filtros > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; list-style: none; }
.filtros > summary::-webkit-details-marker { display: none; }
.filtros > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .15s ease; }
.filtros[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.filtros .filtros-grade { padding: 0 14px 14px; }
.filtros-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; margin: 12px 0 4px; }
.filtros .filtros-grade { margin: 0; }
.campo-largo { grid-column: 1 / -1; }
.filtros-botoes { grid-column: 1 / -1; display: flex; gap: 8px; }
.filtros-grade > .btn-ghost { justify-self: start; }

/* financeiro */
.fin-secao { display: flex; flex-direction: column; gap: 12px; }
.painel-total { display: flex; flex-direction: column; gap: 2px; }
.total-valor { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.total-nota { font-size: 13px; color: var(--muted); font-weight: 600; }
.total-nota strong { color: var(--ink); }

/* ---------- Diálogos (padrão do PDV) ---------- */
.dialogo, .financeiro-dialog, .flow-password-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); overflow: hidden;
}
.dialogo-estreito { width: min(460px, calc(100vw - 32px)); }
:is(.dialogo, .financeiro-dialog, .flow-password-dialog)[open] { display: flex; flex-direction: column; animation: surgir .2s var(--ease); }
:is(.dialogo, .financeiro-dialog, .flow-password-dialog)::backdrop { background: rgba(19, 34, 58, .55); }
@keyframes surgir { from { opacity: 0; transform: translateY(8px); } }
.dialogo-cabeca, .financeiro-dialog-head, .flow-password-dialog > header {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0;
  padding: 14px 14px 14px 20px; background: var(--navy); color: #fff; border: 0;
}
:is(.dialogo-cabeca, .financeiro-dialog-head, .flow-password-dialog > header) h2 { font-size: 17px; font-weight: 700; line-height: 1.35; text-align: left; margin: 0; }
.dialogo-corpo, .financeiro-dialog-corpo, .flow-password-body { padding: 18px 20px 20px; overflow-y: auto; min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.dialogo-rodape, .flow-password-dialog > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; background: var(--surface-2); border-top: 1px solid var(--line); flex-shrink: 0; }
.detalhe-cabeca { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.detalhe-total { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.detalhe-sub { font-size: 14px; font-weight: 700; margin-top: 6px; }
.dados-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.dados-grade dt, .financeiro-fields dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.dados-grade dd, .financeiro-fields dd { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.valores { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.valores > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.valores > div:first-child { border-top: 0; }
.valores dt { color: var(--ink-2); }
.valores dd { font-weight: 700; }
.valores-total { background: var(--surface-2); }
.valores-total dt { font-weight: 700; color: var(--ink); }
.lista-simples li { padding: 10px 0; border-top: 1px solid var(--line); }
.lista-simples li:first-child { border-top: 0; }
.financeiro-fields { display: grid; grid-template-columns: minmax(110px, 36%) 1fr; gap: 8px 14px; }
.historico-item { padding: 10px 0; border-top: 1px solid var(--line); }
.financeiro-status { font-size: 13.5px; color: var(--ink-2); }
.financeiro-status.is-erro { color: var(--danger); font-weight: 600; }
.form-financeiro { display: grid; gap: 12px; }
.form-financeiro > label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.form-financeiro > label.campo-check { flex-direction: row; }
.form-financeiro > .btn-pri, .form-financeiro > .btn-sec { width: 100%; }
.financeiro-dialog-corpo > .btn-sec { align-self: flex-start; }
.unidade-lista { display: grid; gap: 8px; }
.unidade-opcao { display: grid; gap: 2px; width: 100%; padding: 12px 14px; text-align: left; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.unidade-opcao:hover { border-color: var(--navy-3); background: var(--surface-2); }
.unidade-opcao strong { font-size: 15px; }
.unidade-opcao span { font-size: 13px; color: var(--muted); }
.unidade-opcao small { font-size: 12px; font-weight: 700; color: var(--info); }
.unidade-opcao:disabled { opacity: .6; }
/* troca de senha (self-password.js) */
.flow-password-dialog > header [data-close] { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 7px; background: var(--navy-3); color: #fff; font-size: 22px; line-height: 1; }
.flow-password-dialog form { display: flex; flex-direction: column; gap: 14px; }
.flow-password-dialog form[hidden] { display: none; }
.flow-password-dialog label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.flow-password-dialog #flow-password-help { font-size: 13px; color: var(--muted); padding: 10px 12px; background: var(--info-bg); border: 1px solid var(--info-line); border-radius: var(--radius); }
.flow-password-dialog [data-message]:not(:empty) { color: var(--danger); font-weight: 600; font-size: 13.5px; }
.flow-password-dialog [data-cancel] { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-weight: 700; color: var(--navy); }
.flow-password-body > .flow-password-open { align-self: flex-start; }
.flow-password-dialog button:disabled { opacity: .6; cursor: wait; }

/* ---------- Celular pequeno ---------- */
@media (max-width: 380px) {
  .dia-valor { font-size: 32px; }
  .dia-numeros dd { font-size: 14px; }
  .pagina-titulo { font-size: 22px; }
  .topo-endereco { display: none; }
}
@media (max-width: 600px) {
  .dialogo, .financeiro-dialog, .flow-password-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .dialogo-corpo, .financeiro-dialog-corpo, .flow-password-body { padding-bottom: calc(20px + var(--safe-b)); }
  .flow-password-dialog > footer, .dialogo-rodape { padding-bottom: calc(12px + var(--safe-b)); }
}
@media (max-width: 820px) {
  .flow-access { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .flow-access-brand { flex-direction: row; align-items: center; gap: 14px; padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px; }
  .flow-access-logo { width: auto; height: 28px; content: url("logos/FlowPDV-horizontal-escuro.png"); }
  .flow-access-lead { font-size: 15px; font-weight: 700; color: #dce5ef; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .2); }
  .flow-access-points { display: none; }
  .flow-access-panel { align-items: flex-start; padding: 32px 20px calc(32px + var(--safe-b)); }
  .flow-access-title { font-size: 26px; }
}

/* ---------- Computador ---------- */
@media (min-width: 900px) {
  :root { --topo-h: 64px; }
  .app { padding-bottom: 40px; }
  .bottom-tabbar { display: none; }
  .topo-faixa { padding: 0 32px; gap: 24px; }
  .topo-loja { flex: 0 1 auto; gap: 16px; }
  .topo-icone { display: none; }
  .topo-logo { display: block; }
  .topo-loja-texto { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .18); max-width: 320px; }
  .topo-nav { display: flex; align-self: stretch; gap: 2px; margin: 0 auto; }
  .desktop-nav-btn { position: relative; padding: 0 16px; border: 0; background: transparent; color: #c3cfdc; font-size: 14px; font-weight: 700; }
  .desktop-nav-btn:hover { color: #fff; background: rgba(255, 255, 255, .06); }
  .desktop-nav-btn.active { color: #fff; }
  .desktop-nav-btn.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
  .btn-topo span { display: inline; }
  .topo-conta .flow-password-open { font-size: 13px; width: auto; padding: 0 10px; gap: 8px; }
  .palco { padding: 28px 32px 48px; }
  .pagina-titulo { font-size: 26px; }
  .painel { padding: 20px; }
  .mobile-tab-view { gap: 16px; }
  .resumo-grade { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 16px; align-items: start; }
  .resumo-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .painel-dia { padding: 22px 24px 18px; }
  #historico-filtros .campo { justify-content: flex-end; }
  .dia-valor { font-size: 44px; }
  .horas-barras { height: 88px; }
  .segmentos { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .filtros-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filtros .filtros-grade { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .filtros .campo-largo { grid-column: span 4; }
  #historico-filtros { grid-template-columns: 1fr 1fr 2fr auto; }
  #historico-filtros .campo-largo { grid-column: auto; }
  #historico-filtros .filtros-botoes { grid-column: auto; }
  .fin-secao { display: grid !important; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 16px; }
  .fin-secao[style*="none"] { display: none !important; }
  .segmentos-largos { max-width: 480px; }
  .form-financeiro:has(> label:nth-of-type(5)) { grid-template-columns: 1fr 1fr; }
  .form-financeiro > label:first-of-type, .form-financeiro > .btn-pri, .form-financeiro > .btn-sec, .form-financeiro > .campo-check { grid-column: 1 / -1; }
  #lista-clientes-fiado .linha-acoes > * { flex: 0 0 auto; }
  #lista-clientes-fiado .linha-acoes > .btn-pri { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ajustes finos (rodada 2) */
.painel > .texto-apoio { margin-top: 10px; }

/* rodada 3: correções da revisão final */
.aviso-linha { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.aviso-linha:has(> :not([hidden])) { margin-bottom: 4px; }
.aviso-linha > .aviso { align-self: stretch; }
.pagina-acoes .btn-ghost { color: var(--ok); }
.abas-seg { overflow-x: auto; scrollbar-width: none; }
.abas-seg::-webkit-scrollbar { display: none; }
.abas-seg .seg-btn { flex: 1 0 auto; }
.linha-botao { position: relative; display: block; width: 100%; padding: 12px 26px 12px 0; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; color: inherit; font: inherit; cursor: pointer; }
.linha-botao > .linha-principal, .linha-botao > .linha-meta { display: flex; }
.linha-botao::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #9aa8b8; border-top: 2px solid #9aa8b8; transform: translateY(-50%) rotate(45deg); }
.linha-botao:hover { background: var(--surface-2); }
.linha-botao:hover::after { border-color: var(--navy-3); }
.linha-botao:focus-visible { outline-offset: -3px; border-radius: 6px; }
.lista > :first-child > .linha-botao, .lista > .lista-barra + * > .linha-botao { border-top: 0; }
.historico-item.linha:first-of-type { border-top: 0; }
@media (min-width: 900px) {
  /* listas viram colunas de tabela no computador */
  .lista-tabela .linha, .lista-tabela .linha-botao { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 130px 160px; align-items: center; column-gap: 20px; }
  .lista-tabela .linha > .linha-principal, .lista-tabela .linha > .linha-meta, .lista-tabela .linha-botao > .linha-principal, .lista-tabela .linha-botao > .linha-meta { display: contents; }
  .lista-tabela .linha-titulo { grid-column: 1; grid-row: 1; }
  .lista-tabela .linha-meta > :first-child { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--muted); }
  .lista-tabela .linha-valor { grid-column: 3; grid-row: 1; text-align: right; }
  .lista-tabela .linha-meta > :nth-child(2) { grid-column: 4; grid-row: 1; justify-self: end; font-size: 13px; color: var(--muted); }
  .lista-tabela .linha-acoes { grid-column: 1 / -1; grid-row: 2; }
  .lista-tabela .linha-abc { grid-template-columns: 26px minmax(0, 2fr) minmax(0, 1.4fr) 130px 110px; }
  .lista-tabela .linha-abc > .linha-corpo { display: contents; }
  .lista-tabela .linha-abc > .linha-corpo > .linha-principal, .lista-tabela .linha-abc > .linha-corpo > .linha-meta { display: contents; }
  .lista-tabela .linha-abc .abc-classe { grid-column: 1; grid-row: 1; }
  .lista-tabela .linha-abc .linha-titulo { grid-column: 2; }
  .lista-tabela .linha-abc .linha-meta > :first-child { grid-column: 3; }
  .lista-tabela .linha-abc .linha-valor { grid-column: 4; }
  .lista-tabela .linha-abc .linha-meta > :nth-child(2) { grid-column: 5; }
  .tabela-cabeca { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 130px 160px; column-gap: 20px; padding: 8px 26px 8px 0; border-bottom: 1px solid var(--line-strong); font-size: 12px; font-weight: 700; color: var(--muted); }
  .tabela-cabeca > :nth-child(3), .tabela-cabeca > :nth-child(4) { text-align: right; }
  .tabela-cabeca + .lista > :first-child { border-top: 0; }
  #lista-clientes-fiado .linha-acoes { justify-content: flex-start; }
  .linha-turno .linha-botao { padding-right: 30px; }
}
@media (max-width: 899px) { .tabela-cabeca { display: none; } }

/* Equipe e Auditoria (14/10/2026) */
.dialogo-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.texto-corpo { font-size: 14px; line-height: 1.5; color: var(--ink); }
.campo-ajuda { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.equipe-resumo { margin: 4px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.equipe-resumo:empty { display: none; }
.linha-pessoa .linha-titulo .pilula { margin-left: 6px; vertical-align: 1px; }
.linha-pessoa.is-inativa .linha-titulo, .linha-pessoa.is-inativa .linha-valor { color: var(--muted); }
.linha-pessoa .linha-acoes > * { flex: 0 0 auto; }
.auditoria-lista[aria-busy="true"]:empty { min-height: 132px; }
.auditoria-grupo + .auditoria-grupo { margin-top: 14px; }
.auditoria-dia { display: flex; align-items: center; padding: 10px 0 8px; border-bottom: 1px solid var(--line-strong); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.auditoria-dia .contador { margin-left: 8px; vertical-align: 0; }
.auditoria-descricao { font-size: 14px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
#auditoria-filtros { margin-top: 12px; }
@media (min-width: 900px) {
  #auditoria-filtros { grid-template-columns: 1fr 1fr 2fr auto; }
  #auditoria-filtros .campo-largo, #auditoria-filtros .filtros-botoes { grid-column: auto; }
  #auditoria-filtros .campo { justify-content: flex-end; }
  .lista-tabela .linha-pessoa .linha-titulo { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
  .lista-tabela .linha-pessoa .linha-valor { font-weight: 600; }
  .lista-tabela .linha-pessoa .linha-acoes { justify-content: flex-start; margin-top: 8px; }
  #subsecao-gerencia-equipe .tabela-cabeca { padding-right: 0; }
}
#auditoria-detalhe-corpo { display: flex; flex-direction: column; gap: 12px; }
#auditoria-detalhe-corpo .detalhe-cabeca { padding-bottom: 12px; }
@media (min-width: 900px) {
  #chips-subnav-gerencia { max-width: none; width: fit-content; }
  .lista-tabela .rotulo-movel { display: none; }
}
/* Confirmação curta: no celular sobe como folha inferior em vez de ocupar a tela inteira. */
@media (max-width: 600px) {
  #equipe-confirmar { inset: auto 0 0 0; height: auto; max-height: 100dvh; margin: 0; border-radius: 12px 12px 0 0; }
}
