:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --text: #16161a;
  --muted: #62625f;
  --border: #e2e0da;
  /* Paleta da Amorim Junior Advocacia: preto + dourado da logo */
  --preto: #0d0d0d;
  --preto-2: #1f1f1f;
  --gold: #c9a24d;
  --gold-light: #e5c97a;
  --gold-bg: #faf4e3;
  --brand: #b08a2e;          /* dourado para bordas, foco e destaques */
  --brand-bg: var(--gold-bg);
  --link: #16161a;
  --btn-bg: var(--preto);    /* botão principal: preto com texto dourado */
  --btn-fg: var(--gold-light);
  --side: var(--preto);
  --side-2: var(--preto-2);
  --side-text: #e8e3d6;
  --pos: #10813f;
  --neg: #cc2b2b;
  --warn: #946100;
  --pos-bg: #e6f5ec;
  --neg-bg: #fdecec;
  --warn-bg: #fff4d9;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f10; --surface: #19191b; --surface-2: #202023; --text: #ecebe7; --muted: #a3a29c; --border: #2f2e2b;
    --gold-bg: #2a2416; --link: #e5c97a; --btn-bg: var(--gold); --btn-fg: #0d0d0d; --side: #050505; --side-2: #1a1a1a;
    --pos: #4cc38a; --neg: #f07b6f; --warn: #e3b341; --pos-bg: #16301f; --neg-bg: #3a1c1a; --warn-bg: #352b10;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--link); text-decoration-color: var(--gold); text-underline-offset: 2px; }
h1 { font-size: 20px; margin: 0; font-weight: 600; }
h2 { font-size: 15px; margin: 0 0 10px; font-weight: 600; }
h3 { font-size: 12px; margin: 16px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- estrutura: barra fixa no topo + menu lateral + conteúdo */
.layout { display: grid; grid-template-columns: 232px 1fr; grid-template-rows: 60px 1fr; min-height: 100vh; }
.barra-topo { grid-column: 1 / -1; position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 16px;
  background: var(--surface); border-bottom: 2px solid var(--gold); padding: 0 20px 0 0; }
.barra-topo .marca { display: flex; align-items: center; width: 232px; height: 100%; padding: 0 12px; background: #fff; text-decoration: none; flex: none; }
.barra-topo h1 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* logo.jpg é quadrada com muita margem branca: o tamanho do fundo recorta só a assinatura. */
.logo { flex: none; width: 164px; height: 50px; background: url(/logo.jpg) center / 170px auto no-repeat; }
/* "Pro" com o mesmo dourado em degradê da logo */
.pro { font: italic 700 16px Georgia, "Times New Roman", serif; letter-spacing: .02em; align-self: flex-end; margin: 0 0 13px 10px;
  color: #b8923f; background: linear-gradient(180deg, #ecd48f 0%, #c9a24d 45%, #9c7a32 75%, #d8b867 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.barra-topo .acoes { flex-wrap: nowrap; }
button.link { border: 0; background: transparent; color: var(--text); }
button.link:hover { color: var(--brand); }
.barra-topo .usuario { border: 0; background: transparent; gap: 8px; padding: 4px 6px; }
.miniatura { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); background: #fff url(/logo.jpg) center / 64px auto no-repeat; flex: none; }
.empresa { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.empresa b { font-size: 13px; }
.empresa small { font-size: 12px; color: var(--brand); }

.sidebar { background: var(--side); color: var(--side-text); position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.sidebar nav { padding: 8px 0 20px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 8px 18px; color: var(--side-text); text-decoration: none; border-left: 3px solid transparent; }
.sidebar nav a svg { flex: none; opacity: .85; }
.sidebar nav a:hover { background: var(--side-2); color: var(--gold-light); }
.sidebar nav a.ativo { background: var(--side-2); color: var(--gold-light); border-left-color: var(--gold); font-weight: 600; }
.sidebar nav .sec { padding: 14px 18px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }

/* menu recolhível, como no Conta Azul: só os ícones, com o nome no title */
.sidebar { display: flex; flex-direction: column; }
.sidebar nav { flex: 1; }
.recolher { position: sticky; bottom: 12px; align-self: flex-end; margin: 8px 12px 12px; width: 32px; height: 32px; padding: 0;
  justify-content: center; border-radius: 50%; background: var(--preto-2); border: 1px solid var(--gold); color: var(--gold-light); font-size: 18px; }
.recolher:hover { background: var(--gold); color: var(--preto); }
.layout { transition: grid-template-columns .15s; }
.layout.recolhido { grid-template-columns: 60px 1fr; }
.layout.recolhido .sidebar nav a { justify-content: center; padding: 10px 0; }
.layout.recolhido .sidebar nav a span { display: none; }
.layout.recolhido .sidebar nav .sec { font-size: 0; padding: 8px 14px 4px; border-top: 1px solid var(--side-2); }
.layout.recolhido .recolher { align-self: center; margin: 8px 0 12px; transform: rotate(180deg); }

.badge { font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--preto); margin-left: auto; }
.badge.cinza { background: var(--border); color: var(--muted); }
.layout.recolhido .sidebar nav a .badge { position: absolute; margin: -18px 0 0 18px; }
.layout.recolhido .sidebar nav a { position: relative; }

/* conciliação no formato do Conta Azul */
.conc-cab { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.conc-cab select { width: auto; min-width: 240px; }
.conc-saldos { display: flex; gap: 28px; align-items: flex-end; }
.conc-saldos div { display: flex; flex-direction: column; align-items: flex-end; }
.conc-saldos span { font-size: 12px; color: var(--muted); }
.conc-saldos b { font-size: 18px; font-variant-numeric: tabular-nums; }
.conc-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.conc-busca { justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contador b.alerta { color: var(--warn); }
.selo { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.selo.alerta { background: var(--warn-bg); color: var(--warn); }
.selo.ok { background: var(--pos-bg); color: var(--pos); }
.selo.cinza { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); font-weight: 400; }
details.dia { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface); }
details.dia.com { border-color: var(--gold); }
details.dia summary { display: grid; grid-template-columns: 200px 1fr auto 24px; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
details.dia summary::-webkit-details-marker { display: none; }
details.dia[open] .dia-seta { transform: rotate(180deg); }
.dia-valores { display: flex; gap: 22px; }
.dia-valores div { display: flex; flex-direction: column; align-items: flex-end; }
.dia-valores span { font-size: 12px; color: var(--muted); }
.dia-valores b { font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dia-valores small { font-size: 11px; font-weight: 400; }
.dia-corpo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 14px 14px; border-top: 1px solid var(--border); }
.dia-corpo h3 { margin-top: 12px; }
.dia-linha { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.dia-linha:last-child { border-bottom: 0; }
.dia-linha small { display: block; color: var(--muted); font-size: 12px; }
.dia-linha b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.aba { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; padding: 10px 18px; color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.aba.sel { color: var(--text); border-bottom-color: var(--gold); font-weight: 600; }
.aba .badge { margin-left: 4px; }
.conc-busca { display: flex; margin-bottom: 12px; }
.conc-busca .q { flex: 1; max-width: 560px; }
.contadores { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.contador { border: 0; border-right: 1px solid var(--border); border-radius: 0; background: var(--surface); flex-direction: column; gap: 2px; padding: 10px; }
.contador:last-child { border-right: 0; }
.contador span { font-size: 13px; color: var(--muted); }
.contador b { font-size: 18px; }
.contador b.azul { color: var(--text); }
.contador.sel { background: var(--gold-bg); box-shadow: inset 0 -3px 0 var(--gold); }
.par-titulos, .par { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1.25fr); gap: 12px; align-items: stretch; }
.par-titulos h2 { margin: 0 0 8px; font-size: 15px; }
.par { margin-bottom: 14px; }
.banco-card, .sis-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); min-width: 0; }
.banco-card { border-left: 4px solid var(--gold); }
.bc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.bc-valor { font-size: 18px; white-space: nowrap; }
.bc-valor small { font-size: 12px; font-weight: 400; }
.bc-desc { font-weight: 600; margin-bottom: 6px; word-break: break-word; }
.bc-rod { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.par-meio { display: flex; align-items: center; justify-content: center; }
.par-meio button.pri { width: 100%; justify-content: center; }
.sis-abas { display: flex; gap: 0; margin-bottom: 10px; flex-wrap: wrap; }
.sis-abas button { border-radius: 0; padding: 5px 10px; font-size: 12px; margin-left: -1px; }
.sis-abas button:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.sis-abas button:last-child { border-radius: 0 6px 6px 0; }
.sis-abas button.sel { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.painel[hidden] { display: none; }
.sug { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 8px; border: 1px solid var(--border); border-radius: 6px;
  margin-bottom: 6px; color: var(--text); font-size: 13px; cursor: pointer; }
.sug:has(input:checked) { border-color: var(--gold); background: var(--gold-bg); }
.sug input { width: auto; margin-top: 2px; }
.sug small { display: block; color: var(--muted); margin-top: 2px; }

main { padding: 18px 24px 48px; min-width: 0; }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.topo:empty { display: none; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.menu-novo { position: relative; }
.pop { position: absolute; top: calc(100% + 6px); left: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14); padding: 6px; min-width: 210px; z-index: 30; display: grid; gap: 2px; }
.pop.dir { left: auto; right: 0; }
.pop[hidden] { display: none; }
.pop > button { border: 0; justify-content: flex-start; width: 100%; background: transparent; }
.pop > button:hover { background: var(--brand-bg); }
.pop-info { padding: 6px 10px 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 4px; }

/* ---------- componentes */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.card-cab h2 { margin: 0; }
.card-cab a.min { font-size: 12px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi .rot { color: var(--muted); font-size: 12px; }
.kpi .val { font-size: 22px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .sub, .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.kpi-linha, .conta-linha { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0;
  border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.kpi-linha b, .conta-linha b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-linha.neg b { color: var(--neg); }
.conta-linha small { display: block; color: var(--warn); font-size: 11px; }
.kpi-linha:hover, .conta-linha:hover { color: var(--brand); }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.kpi-caixa { border: 0; border-right: 1px solid var(--border); border-radius: 0; background: transparent; padding: 12px 14px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.kpi-caixa:last-child { border-right: 0; }
.kpi-caixa span { font-size: 12px; color: var(--muted); }
.kpi-caixa b { font-size: 18px; font-variant-numeric: tabular-nums; }
.kpi-caixa.neg b { color: var(--neg); }
.kpi-caixa.pos b { color: var(--pos); }
button.kpi-caixa:hover { background: var(--surface-2); border-color: var(--border); }
.kpi-caixa.sel { background: var(--brand-bg); box-shadow: inset 0 -3px 0 var(--brand); }

button, .btn {
  font: inherit; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 7px 14px; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
button:hover, .btn:hover { border-color: var(--brand); }
button.pri, .btn.pri { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); font-weight: 600; }
button.pri:hover, .btn.pri:hover { background: var(--gold); border-color: var(--gold); color: var(--preto); }
button.perigo { color: var(--neg); }
button.min, .btn.min { padding: 3px 9px; font-size: 12px; }
button:disabled { opacity: .5; cursor: not-allowed; }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 9px; width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.campo { margin-bottom: 10px; }
.linha { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.check { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 14px; }
.check input { width: auto; }

.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.filtros > div { min-width: 150px; }
.filtros .q { flex: 1; min-width: 220px; }
.filtros .mais { flex-basis: 100%; display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding-top: 10px; border-top: 1px dashed var(--border); }
.filtros .mais[hidden] { display: none; }
.filtros .mais > div { min-width: 180px; }

.periodo { position: relative; min-width: 230px; }
.periodo .rot { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.nav-mes { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.nav-mes button { border: 0; border-radius: 0; padding: 7px 10px; }
.nav-mes .mes { flex: 1; justify-content: center; font-weight: 600; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.periodo .pop { width: 300px; padding: 12px; }

.tabela-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--surface-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lista td.resumo b { font-weight: 600; }
.lista td.resumo .sub:empty { display: none; }
td.acoes-linha { white-space: nowrap; text-align: right; }
td.acoes-linha button + button { margin-left: 4px; }
tr.saldo-linha td { background: var(--surface-2); color: var(--muted); }
tfoot td { font-weight: 600; background: var(--surface-2); }
.vazio { padding: 28px; text-align: center; color: var(--muted); }
.conc { color: var(--pos); font-weight: 700; }

.totais-periodo { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; margin-top: 10px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--muted); }
.totais-periodo b { color: var(--text); font-variant-numeric: tabular-nums; }
.totais-periodo > b:first-child { margin-right: 6px; }
.paginacao { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.paginacao label { display: flex; align-items: center; gap: 6px; margin: 0; }
.paginacao select { width: auto; padding: 4px 6px; }

.pos { color: var(--pos); }
.neg { color: var(--neg); }
.tag { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 12px; white-space: nowrap; font-weight: 600; }
.tag.pago, .tag.conciliado { background: var(--pos-bg); color: var(--pos); }
.tag.vencido { background: var(--neg-bg); color: var(--neg); }
.tag.aberto, .tag.pendente { background: var(--warn-bg); color: var(--warn); }
.tag.ignorado { background: var(--surface-2); color: var(--muted); }
.tag.grupo { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); font-weight: 400; }

.ia-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px;
  margin-bottom: 14px; border: 1px dashed var(--brand); border-radius: 8px; background: var(--brand-bg); }
.ia-box ul { margin: 6px 0 0; padding-left: 18px; }
.aviso { background: var(--warn-bg); color: var(--warn); padding: 10px 12px; border-radius: 6px; margin-bottom: 12px; }
.erro { background: var(--neg-bg); color: var(--neg); padding: 10px 12px; border-radius: 6px; margin-bottom: 12px; }

dialog { border: 1px solid var(--border); border-radius: 10px; padding: 0; width: min(760px, 94vw); background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(10, 18, 30, .45); }
dialog .cab { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
dialog .corpo { padding: 16px 18px; max-height: 70vh; overflow-y: auto; }
dialog .pe { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

#toast { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 50; }
#toast div { background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 6px; box-shadow: var(--shadow); max-width: 380px; }
#toast div.erro { background: var(--neg); color: #fff; }

.login { max-width: 400px; margin: 10vh auto; border-top: 4px solid var(--gold); }
.login .marca-login { display: flex; align-items: center; justify-content: center; gap: 2px; background: #fff; border-radius: 6px; margin-bottom: 12px; }
.login .marca-login .logo { flex: none; width: 260px; height: 80px; background-size: 270px auto; }
.login .marca-login .pro { font-size: 20px; margin: 0 0 22px 12px; }
.login p { color: var(--muted); margin-top: 0; text-align: center; }

.barra { display: flex; gap: 2px; align-items: end; height: 140px; padding-top: 8px; }
.barra .m { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.barra .cols { display: flex; gap: 3px; align-items: end; height: 118px; }
.barra .c { width: 16px; border-radius: 3px 3px 0 0; }
.barra .c.r { background: var(--pos); }
.barra .c.d { background: var(--neg); opacity: .8; }
.barra .rot { font-size: 11px; color: var(--muted); }
.legenda { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

.repasse { display: grid; grid-template-columns: 180px 1fr 120px 150px 70px 32px; gap: 8px; align-items: end; margin-bottom: 8px; }
.resumo-lev { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.resumo-lev div { background: var(--surface-2); border-radius: 6px; padding: 8px 10px; }
.resumo-lev b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.resumo-lev span { font-size: 12px; color: var(--muted); }

.dre td:first-child { padding-left: 10px; }
.dre tr.nivel2 td:first-child { padding-left: 28px; color: var(--muted); }
.dre tr.total td { font-weight: 700; border-top: 2px solid var(--border); }

@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-caixa { border-bottom: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main { padding: 16px; }
  .cabecalho { padding: 0 16px; }
  .repasse { grid-template-columns: 1fr 1fr; }
  .par, .par-titulos { grid-template-columns: 1fr; }
  details.dia summary { grid-template-columns: 1fr auto; }
  .dia-corpo { grid-template-columns: 1fr; }
  .par-titulos span, .par-titulos h2:last-child { display: none; }
  .resumo-lev { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .g2, .g3, .g4, .kpis { grid-template-columns: 1fr; }
}

/* =====================================================================
   Tema moderno (camada final): mesma estrutura e paleta preto + dourado,
   com tipografia do Windows 11, cantos maiores, sombras suaves e movimento.
   ===================================================================== */
:root {
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 2px 8px rgba(17, 17, 17, .04);
  --shadow-lg: 0 12px 32px rgba(17, 17, 17, .12), 0 2px 6px rgba(17, 17, 17, .06);
  --anel: 0 0 0 3px rgba(201, 162, 77, .28);
  --bg: #f5f4f0;
  --border: #e7e4dc;
  --gold-grad: linear-gradient(135deg, #ecd48f 0%, #c9a24d 50%, #a8842f 100%);
  font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body { background: radial-gradient(1200px 600px at 100% -10%, rgba(201, 162, 77, .07), transparent 60%), var(--bg); }
h1 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-size: 21px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-weight: 650; letter-spacing: -.005em; }
::selection { background: rgba(201, 162, 77, .35); }

/* barra do topo: branca translúcida com fio dourado em degradê */
.barra-topo { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(0, 0, 0, .02); }
.barra-topo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-grad); opacity: .9; }
.barra-topo .marca { background: transparent; }
.barra-topo .usuario { border-radius: 999px; padding: 4px 10px 4px 4px; transition: background .15s; }
.barra-topo .usuario:hover { background: var(--surface-2); }
button.link { border-radius: 999px; padding: 7px 12px; }
button.link:hover { background: var(--surface-2); color: var(--text); }

/* menu lateral: preto com item ativo em "pílula" dourada */
.sidebar { background: linear-gradient(180deg, #0d0d0d 0%, #141414 100%); border-right: 1px solid #000; }
.sidebar nav { padding: 10px 10px 20px; }
.sidebar nav a { border-left: 0; border-radius: 10px; margin: 1px 0; padding: 9px 12px; transition: background .15s, color .15s; position: relative; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar nav a.ativo { background: linear-gradient(90deg, rgba(201, 162, 77, .22), rgba(201, 162, 77, .06)); color: var(--gold-light); }
.sidebar nav a.ativo::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-grad); }
.sidebar nav .sec { padding: 16px 12px 6px; font-size: 10.5px; letter-spacing: .1em; color: #b8964a; opacity: .9; }
.layout.recolhido .sidebar nav { padding: 10px 6px; }
.layout.recolhido .sidebar nav a { padding: 10px 0; }
.layout.recolhido .sidebar nav a.ativo::before { left: -6px; }
.recolher { box-shadow: 0 2px 8px rgba(0, 0, 0, .4); transition: transform .2s, background .15s; }

/* conteúdo entra com leve fade */
main > * { animation: surgir .22s ease-out both; }
@keyframes surgir { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main > *, dialog[open], #toast div { animation: none !important; } }

/* cartões */
.card, .filtros, .kpis, .tabela-wrap, .totais-periodo, .contadores, details.dia, .banco-card, .sis-card {
  border-radius: var(--radius); border-color: var(--border); box-shadow: var(--shadow); }
.card { padding: 18px 20px; }
.card-cab h2 { font-size: 15px; }
.kpi .val { font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.kpi-linha, .conta-linha { border-radius: 8px; padding: 10px 8px; margin: 0 -8px; border-bottom-color: transparent; transition: background .15s; }
.kpi-linha + .kpi-linha, .conta-linha + .conta-linha { border-top: 1px solid var(--border); }
.kpi-linha:hover, .conta-linha:hover { background: var(--gold-bg); color: var(--text); }

/* caixas de totais (Vencidos, A vencer, Recebidos...) */
.kpis { gap: 0; background: var(--surface); }
.kpi-caixa { padding: 14px 18px; gap: 6px; transition: background .15s; }
.kpi-caixa span { font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.kpi-caixa b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.kpi-caixa.sel { background: var(--gold-bg); box-shadow: inset 0 -3px 0 var(--gold); }

/* botões */
button, .btn { border-radius: var(--radius-sm); padding: 8px 14px; font-weight: 500; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; }
button:hover, .btn:hover { border-color: #cfc8b6; background: var(--surface-2); }
button:active, .btn:active { transform: translateY(1px); }
button.pri, .btn.pri { background: linear-gradient(180deg, #1c1c1c 0%, #0b0b0b 100%); border-color: #0b0b0b; color: var(--gold-light);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .06); }
button.pri:hover, .btn.pri:hover { background: var(--gold-grad); border-color: #b8923f; color: #0d0d0d; }
button.min, .btn.min { padding: 4px 10px; border-radius: 6px; }
button:focus-visible, .btn:focus-visible { outline: none; box-shadow: var(--anel); }

/* campos */
input, select, textarea { border-radius: var(--radius-sm); padding: 9px 11px; border-color: #dcd8cd; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #c9c2b0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--anel); }
label { font-weight: 500; }
.filtros { padding: 14px 16px; gap: 12px; }
.nav-mes { border-radius: var(--radius-sm); }
.nav-mes button:hover { background: var(--gold-bg); }

/* tabelas mais leves */
.tabela-wrap { overflow: hidden; }
th { background: var(--surface); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8a8778; border-bottom: 1px solid var(--border); padding: 12px; }
td { padding: 12px; border-bottom-color: #f0ede6; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fbf8f0; }
td.acoes-linha button { opacity: .85; }
tbody tr:hover td.acoes-linha button { opacity: 1; }
.totais-periodo { padding: 12px 16px; }

/* etiquetas em pílula */
.tag { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; letter-spacing: .01em; }
.tag.pago, .tag.conciliado { background: #e5f4ea; color: #0f7a3c; }
.badge { box-shadow: 0 0 0 2px rgba(0, 0, 0, .15); }

/* janelas (modais) com entrada suave e fundo desfocado */
dialog { border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
dialog[open] { animation: abrir .18s ease-out; }
@keyframes abrir { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
dialog::backdrop { background: rgba(12, 12, 12, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog .cab { padding: 16px 20px; }
dialog .cab h2 { font-size: 17px; }
dialog .corpo { padding: 18px 20px; }
dialog .pe { padding: 14px 20px; background: var(--surface-2); border-radius: 0 0 16px 16px; }
.pop { border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.pop > button { border-radius: 8px; padding: 8px 10px; }

/* avisos (toast) */
#toast div { border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-lg); background: #111; color: #f3ead2; border-left: 3px solid var(--gold); animation: toastEntra .2s ease-out; }
#toast div.erro { background: #3a1212; color: #fff; border-left-color: #f07b6f; }
@keyframes toastEntra { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* abas e contadores */
.aba { font-weight: 500; transition: color .15s, border-color .15s; }
.aba:hover { color: var(--text); }
.contador { transition: background .15s; }
.contador:hover { background: var(--surface-2); }
.contador b { font-size: 20px; font-weight: 650; }
.sis-abas button { padding: 6px 12px; }
.ia-box { border-radius: var(--radius); background: linear-gradient(135deg, #fbf5e4, #fffdf7); border: 1px solid #ead9aa; }

/* conciliação e dias */
.banco-card { border-left-width: 1px; position: relative; overflow: hidden; }
.banco-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-grad); }
details.dia { transition: box-shadow .15s; }
details.dia:hover { box-shadow: var(--shadow-lg); }
details.dia.com { border-color: #e0c77f; }

/* login com fundo preto e dourado */
body:has(.login) { background: radial-gradient(900px 500px at 15% 10%, rgba(201, 162, 77, .28), transparent 60%),
  radial-gradient(700px 400px at 90% 90%, rgba(201, 162, 77, .16), transparent 60%), #0b0b0b; min-height: 100vh; }
.login { border: 0; border-top: 0; border-radius: 18px; padding: 28px 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); margin-top: 12vh; position: relative; overflow: hidden; }
.login::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold-grad); }
.login .marca-login { margin-bottom: 6px; }
.login button.pri { padding: 11px 14px; font-size: 15px; }

@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0e0f; --border: #2b2a27; }
  .barra-topo { background: rgba(22, 22, 24, .86); }
  tbody tr:hover { background: #1d1c19; }
  th { background: var(--surface); color: #9b977f; }
  td { border-bottom-color: #26251f; }
  input, select, textarea { border-color: #34332e; }
  .ia-box { background: linear-gradient(135deg, #2a2416, #1c1a15); border-color: #4a3f22; }
  .tag.pago, .tag.conciliado { background: #16301f; color: #4cc38a; }
}

/* gráfico da visão geral: barras mais largas e arredondadas */
.barra { height: 170px; gap: 8px; }
.barra .cols { height: 140px; gap: 4px; }
.barra .c { width: 26px; border-radius: 6px 6px 2px 2px; transition: opacity .15s; }
.barra .c.r { background: linear-gradient(180deg, #2bb56b, #16874a); }
.barra .c.d { background: linear-gradient(180deg, #ea6a62, #c63d36); opacity: 1; }
.barra .m:hover .c { opacity: .85; }
.legenda i { border-radius: 3px; }

/* menu lateral sem barra de rolagem: mais compacto e, se faltar altura, rola sem mostrar a barra */
.sidebar { scrollbar-width: none; -ms-overflow-style: none; }
.sidebar::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sidebar nav { padding: 8px 10px 12px; }
.sidebar nav a { padding: 7px 12px; margin: 0; white-space: nowrap; }
.sidebar nav a span { overflow: hidden; text-overflow: ellipsis; }
.sidebar nav .sec { padding: 12px 12px 4px; }
.recolher { margin: 6px 12px 10px; }
@media (max-height: 760px) {
  .sidebar nav a { padding: 5px 12px; font-size: 13.5px; }
  .sidebar nav .sec { padding: 8px 12px 2px; }
}

/* =====================================================================
   Acabamento final (v3): hierarquia, cores por tipo de valor e detalhes.
   ===================================================================== */
:root { --menu-w: 250px; --altura-ctl: 38px; }
.layout { grid-template-columns: var(--menu-w) 1fr; }
.barra-topo .marca { width: var(--menu-w); }
.layout.recolhido { grid-template-columns: 64px 1fr; }

/* título da página com a seção acima */
.titulo-pagina { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.titulo-pagina #secao { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #a8842f; }
.titulo-pagina #secao:empty { display: none; }
.titulo-pagina h1 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* menu: nomes inteiros */
.sidebar nav a { font-size: 13.5px; gap: 11px; }
.sidebar nav a svg { width: 17px; height: 17px; }

/* controles com a mesma altura */
.filtros input, .filtros select, .filtros button, .conc-busca input, .conc-busca button, .conc-cab select, .conc-cab button,
.topo .acoes .btn, .topo .acoes button { min-height: var(--altura-ctl); }
.nav-mes button { min-height: calc(var(--altura-ctl) - 2px); }

/* caixas de totais com faixa de cor por tipo */
.kpi-caixa { position: relative; padding-top: 16px; }
.kpi-caixa::before { content: ""; position: absolute; left: 18px; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: #cfc8b6; }
.kpi-caixa[data-tipo="vencido"]::before, .kpi-caixa.neg::before { background: #d64541; }
.kpi-caixa[data-tipo="hoje"]::before { background: #e3a008; }
.kpi-caixa[data-tipo="aberto"]::before { background: #6b7a90; }
.kpi-caixa[data-tipo="pago"]::before, .kpi-caixa.pos::before { background: #16874a; }
.kpi-caixa[data-tipo="total"]::before { background: var(--gold-grad); width: 40px; }
.kpi-caixa.sel { box-shadow: inset 0 0 0 1px var(--gold); }

/* situação com bolinha */
.tag { display: inline-flex; align-items: center; gap: 6px; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.tag.grupo::before { display: none; }

/* cartões da visão geral com ícone */
.card-receita .card-cab h2, .card-despesa .card-cab h2, .card-contas .card-cab h2 { display: flex; align-items: center; gap: 10px; }
.card-receita .card-cab h2::before, .card-despesa .card-cab h2::before, .card-contas .card-cab h2::before {
  content: ""; width: 32px; height: 32px; border-radius: 10px; flex: none; background-repeat: no-repeat; background-position: center; background-size: 18px; }
.card-receita .card-cab h2::before { background-color: #e5f4ea; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316874a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12m0 0l-5-5m5 5l5-5M5 20h14'/%3E%3C/svg%3E"); }
.card-despesa .card-cab h2::before { background-color: #fdecec; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c63d36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V8m0 0l-5 5m5-5l5 5M5 4h14'/%3E%3C/svg%3E"); }
.card-contas .card-cab h2::before { background-color: #111; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c97a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6M5 10v8m4-8v8m6-8v8m4-8v8M3 21h18'/%3E%3C/svg%3E"); }
.card-contas .kpi .val { background: linear-gradient(135deg, #111 30%, #6b5520); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* cartões clicáveis sobem levemente */
.conta-linha, .kpi-linha { transition: background .15s, transform .15s; }
details.dia summary:hover .dia-seta { color: var(--brand); }

/* DRE: linhas de grupo destacadas */
.dre tr:not(.nivel2):not(.total) td { background: #faf7ef; font-weight: 600; }
.dre tr.total td { background: #111; color: var(--gold-light); border-top: 0; font-size: 15px; }
.dre tr.total td .pos, .dre tr.total td .neg { color: var(--gold-light); }

/* estados vazios */
.vazio { padding: 40px 20px; font-size: 14px; }
.vazio::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; background: #f3efe4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08a2e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h10M4 17h7'/%3E%3C/svg%3E") center / 22px no-repeat; }
td.vazio::before, .sub.vazio::before { display: none; }

/* rolagem fina e dourada no conteúdo */
main { scrollbar-width: thin; scrollbar-color: #d6c28e transparent; }
html { scrollbar-width: thin; scrollbar-color: #cdb674 #f1efe9; }

/* seleção de linhas e foco de teclado mais claros */
tbody tr:focus-within { background: #fbf6e8; }

@media (prefers-color-scheme: dark) {
  .dre tr:not(.nivel2):not(.total) td { background: #1d1b16; }
  .card-contas .kpi .val { background: none; -webkit-text-fill-color: currentColor; }
  .vazio::before { background-color: #24211a; }
}
@media (max-width: 900px) { :root { --menu-w: 100%; } .barra-topo .marca { width: auto; } }
.kpi-caixa { padding-top: 22px; }
.kpi-caixa::before { top: 12px; height: 4px; border-radius: 4px; }

/* Movimentações: saldos iguais aparecem unificados ("Sistema = Banco") */
.dia-valores .unificado span { color: var(--pos); font-weight: 600; }

/* anexos e cobrança */
.anexos { display: grid; gap: 6px; }
.anexo { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.anexo a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.anexo-ic { font: 700 10px/1 "Segoe UI", sans-serif; letter-spacing: .04em; color: var(--gold-light); background: #111; border-radius: 6px; padding: 6px 6px; }
.aviso.cobranca { background: #eef6ff; color: #1d4f91; }

/* celular: menu vira gaveta */
.menu-celular { display: none; border: 0; background: transparent; font-size: 22px; padding: 6px 10px; }
.fundo-menu { display: none; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: 60px 1fr; }
  .menu-celular { display: inline-flex; margin-left: 6px; }
  .barra-topo { padding-right: 10px; gap: 8px; }
  .barra-topo .marca { width: auto; padding: 0 4px; }
  .barra-topo .logo { width: 130px; background-size: 134px auto; }
  .barra-topo .empresa, .barra-topo #btn-pesquisar span, .titulo-pagina #secao { display: none; }
  .titulo-pagina h1 { font-size: 16px; }
  .sidebar { position: fixed; top: 60px; left: 0; bottom: 0; width: 270px; height: auto; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .layout.menu-aberto .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  .layout.menu-aberto .fundo-menu { display: block; position: fixed; inset: 60px 0 0 0; background: rgba(0, 0, 0, .35); z-index: 35; }
  .recolher { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conc-cab, .conc-dir { align-items: stretch; }
  .conc-saldos { justify-content: space-between; }
}

/* impressão: só o conteúdo, sem menu, barra, filtros e botões */
@media print {
  .barra-topo, .sidebar, .fundo-menu, .filtros, #periodo, .topo .acoes, button, .btn, .recolher, #toast { display: none !important; }
  .layout { display: block; }
  body { background: #fff !important; }
  main { padding: 0; }
  main > * { animation: none !important; }
  .card, .tabela-wrap, .kpis { box-shadow: none !important; border-color: #ccc; break-inside: avoid; }
  main::before { content: "Amorim Junior Advocacia · " attr(data-titulo); display: block; font: 700 16px Georgia, serif; margin-bottom: 10px; }
  a { color: inherit; text-decoration: none; }
}

/* abas e contadores da conciliação no formato do Conta Azul */
.abas { gap: 0; border-bottom: 1px solid #d9d6cc; margin-bottom: 16px; }
.aba { padding: 10px 44px; font-size: 13.5px; color: #3d3d3d; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.aba.sel { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.aba .badge { background: #eceae4; color: #3d3d3d; box-shadow: none; border-radius: 4px; min-width: 18px; height: 17px; font-size: 11px; font-weight: 600; padding: 0 5px; }
.contadores { border: 1px solid #cfccc2; border-radius: 4px; box-shadow: none; }
.contador { background: #fff; border-right: 1px solid #cfccc2; padding: 8px 10px 9px; gap: 1px; }
.contador:hover { background: #fcfbf8; }
.contador span { font-size: 12px; color: #4a4a4a; }
.contador b { font-size: 15px; font-weight: 700; }
.contador b.azul { color: #2b2b2b; }
.contador b.alerta { color: #f0a020; }
.contador.sel { background: #fff; box-shadow: inset 0 2px 0 #1f1f1f; }
@media (prefers-color-scheme: dark) {
  .contador, .contador.sel { background: var(--surface); }
  .contador b.azul { color: var(--text); }
  .aba .badge { background: #2f2e2b; color: var(--text); }
}
/* como no Conta Azul: dia que bate não leva selo, e o rótulo unificado é discreto */
.dia-valores .unificado span { color: var(--muted); font-weight: 400; }
details.dia.sem .selo.ok { display: none; }
details.dia.com { border-color: #f0c35a; box-shadow: 0 0 0 1px rgba(240, 195, 90, .35); }

/* =====================================================================
   Layout "Aurum" (v4): menu flutuante, visão geral em blocos (bento),
   pesquisa central com paleta de comandos (Ctrl+K).
   ===================================================================== */
:root { --bg: #f3f1ec; --radius: 16px; }
body { background:
  radial-gradient(900px 480px at 110% -10%, rgba(201, 162, 77, .12), transparent 60%),
  radial-gradient(700px 420px at -10% 110%, rgba(17, 17, 17, .05), transparent 60%), var(--bg); }

/* menu flutuante */
.sidebar { margin: 14px 0 14px 14px; height: calc(100vh - 60px - 28px); top: 74px; border-radius: 20px; border: 0;
  background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%); box-shadow: 0 18px 40px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .04); }
.sidebar nav { padding: 12px 10px 8px; }
.layout.recolhido .sidebar { margin-left: 10px; }
main { padding: 18px 26px 48px 22px; }

/* barra do topo: pesquisa em pílula no centro */
.barra-topo { gap: 18px; }
.busca-pill { flex: 0 1 460px; margin: 0 auto; justify-content: flex-start; gap: 10px; border-radius: 999px; padding: 8px 10px 8px 16px;
  background: #f6f4ef; border: 1px solid #e6e2d7; color: #7a766a; font-weight: 400; min-height: 40px; }
.busca-pill span { flex: 1; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.busca-pill:hover { background: #fff; border-color: var(--gold); color: #3a372f; }
kbd { font: 600 11px/1 "Segoe UI", sans-serif; background: #fff; border: 1px solid #ddd8cb; border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px; color: #5b584f; }
.busca-pill kbd { margin-left: auto; }

/* saudação */
.saudacao { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 2px 2px 16px; flex-wrap: wrap; }
.saudacao h2 { font-size: 24px; margin: 0; font-weight: 650; letter-spacing: -.02em; }
.saudacao .sub { text-transform: capitalize; font-size: 13px; }
.dica-atalho { font-size: 12px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }

/* grade em blocos */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bloco { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow);
  min-width: 0; animation: surgir .3s ease-out both; }
.bloco-saldo { grid-column: span 5; grid-row: span 2; }
.bloco-receita, .bloco-despesa { grid-column: span 7; }
.bloco-atalhos { grid-column: span 5; }
.bloco-pend { grid-column: span 7; }
.bloco-grafico { grid-column: span 8; }
.bloco-lista { grid-column: span 4; }
.bento > :nth-child(2) { animation-delay: .04s; } .bento > :nth-child(3) { animation-delay: .08s; }
.bento > :nth-child(4) { animation-delay: .12s; } .bento > :nth-child(5) { animation-delay: .16s; }
.bento > :nth-child(6) { animation-delay: .2s; } .bento > :nth-child(7) { animation-delay: .24s; }
.bloco-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bloco-cab > div { flex: 1; min-width: 0; }
.bloco-cab h2 { margin: 0; font-size: 15px; }
.bloco-cab .sub { font-size: 12px; }
.bloco-cab a.min { font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--brand); }

/* bloco principal: saldo (preto e dourado) */
.bloco-saldo { background: radial-gradient(420px 260px at 100% 0%, rgba(201, 162, 77, .28), transparent 65%), linear-gradient(160deg, #161616 0%, #0b0b0b 100%);
  color: #f1e9d4; border: 0; box-shadow: 0 20px 44px rgba(0, 0, 0, .22); position: relative; overflow: hidden; }
.bloco-saldo::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(229, 201, 122, .18); }
.bloco-saldo .sub { color: #b9ad8f; }
.bloco-saldo h2 { color: #e5c97a; font-weight: 600; letter-spacing: .02em; }
.saldo-total { font: 700 40px/1.1 "Segoe UI Variable Display", "Segoe UI", sans-serif; letter-spacing: -.03em; margin: 6px 0 18px;
  background: linear-gradient(135deg, #fff5d6 0%, #e5c97a 45%, #b8923f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.contas-chips { display: grid; gap: 8px; }
.chip-conta { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: #f1e9d4;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); transition: background .15s, transform .15s; }
.chip-conta:hover { background: rgba(229, 201, 122, .12); transform: translateX(2px); }
.chip-conta .avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 12px "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #e5c97a, #a8842f); color: #111; flex: none; }
.chip-conta .chip-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.chip-conta b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip-conta b.neg { color: #ff9a92; }

/* blocos a receber / a pagar com progresso do mês */
.bloco-ic { width: 38px; height: 38px; border-radius: 12px; flex: none; background-repeat: no-repeat; background-position: center; background-size: 20px; }
.bloco-receita .bloco-ic { background-color: #e5f4ea; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316874a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12m0 0l-5-5m5 5l5-5M5 20h14'/%3E%3C/svg%3E"); }
.bloco-despesa .bloco-ic { background-color: #fdecec; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c63d36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V8m0 0l-5 5m5-5l5 5M5 4h14'/%3E%3C/svg%3E"); }
.bloco-valor { font: 700 26px/1.1 "Segoe UI Variable Display", "Segoe UI", sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bloco-valor small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.progresso { height: 8px; border-radius: 999px; background: #efece4; overflow: hidden; margin: 12px 0 6px; }
.progresso span { display: block; height: 100%; border-radius: inherit; transition: width .6s ease; }
.bloco-receita .progresso span { background: linear-gradient(90deg, #1f9d57, #3cc47a); }
.bloco-despesa .progresso span { background: linear-gradient(90deg, #c63d36, #ea6a62); }
.bloco-rodape { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-kpis a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: border-color .15s, background .15s; }
.mini-kpis a:hover { border-color: var(--gold); background: var(--gold-bg); }
.mini-kpis span { font-size: 11.5px; color: var(--muted); }
.mini-kpis b { font-size: 15px; font-variant-numeric: tabular-nums; }
.mini-kpis a.alerta { border-color: #f3c2bf; background: #fdf1f0; }
.mini-kpis a.alerta b { color: var(--neg); }

/* atalhos */
.atalhos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.atalho { flex-direction: column; gap: 8px; padding: 14px 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; }
.atalho svg { width: 22px; height: 22px; color: var(--brand); }
.atalho:hover { background: #111; color: var(--gold-light); border-color: #111; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, .15); }
.atalho:hover svg { color: var(--gold-light); }

/* pendências */
.pends { display: grid; gap: 8px; }
.pend { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff8ea; border: 1px solid #f1dfb2; text-decoration: none; color: var(--text); }
.pend:hover { border-color: var(--gold); }
.pend b { min-width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #111; color: var(--gold-light); font-size: 14px; }
.tudo-certo { display: flex; align-items: center; gap: 10px; color: var(--pos); font-weight: 500; padding: 8px 0; }
.tudo-certo span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e5f4ea; font-weight: 700; }

/* gráfico e lista */
.bloco-grafico .barra { height: 190px; }
.bloco-grafico .barra .cols { height: 160px; }
.bloco-lista .tabela-wrap { border: 0; box-shadow: none; border-radius: 0; }
.bloco-lista .vazio { padding: 24px 10px; }
.bloco-lista table th:nth-child(2), .bloco-lista table td:nth-child(2), .bloco-lista table th:nth-child(5), .bloco-lista table td:nth-child(5) { display: none; }

/* paleta de comandos */
.paleta-fundo { position: fixed; inset: 0; z-index: 100; background: rgba(12, 12, 12, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; animation: surgir .15s ease-out; }
.paleta { width: min(680px, 94vw); background: var(--surface); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; border: 1px solid var(--border); }
.paleta-busca { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.paleta-busca svg { color: var(--brand); width: 20px; height: 20px; flex: none; }
.paleta-busca input { border: 0; box-shadow: none; padding: 6px 0; font-size: 16px; background: transparent; }
.paleta-busca input:focus { box-shadow: none; }
.paleta-lista { max-height: 52vh; overflow-y: auto; padding: 6px; }
.paleta-item { width: 100%; border: 0; background: transparent; border-radius: 10px; padding: 10px 12px; gap: 12px; justify-content: flex-start; text-align: left; font-weight: 400; }
.paleta-item.sel { background: var(--gold-bg); }
.paleta-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #111; color: var(--gold-light); flex: none; }
.paleta-ic svg { width: 16px; height: 16px; }
.paleta-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.paleta-txt b { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.paleta-txt small { color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.paleta-valor { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.paleta-item em { font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; flex: none; }
.paleta-vazio { padding: 24px; text-align: center; color: var(--muted); }
.paleta-rodape { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); background: var(--surface-2); }
.paleta-rodape span { display: inline-flex; gap: 4px; align-items: center; }

@media (max-width: 1200px) {
  .bloco-saldo { grid-column: span 12; grid-row: auto; }
  .bloco-receita, .bloco-despesa, .bloco-atalhos, .bloco-pend { grid-column: span 6; }
  .bloco-grafico, .bloco-lista { grid-column: span 12; }
}
@media (max-width: 900px) {
  .sidebar { margin: 0; border-radius: 0 18px 18px 0; top: 60px; height: auto; }
  .busca-pill span, .busca-pill kbd, .dica-atalho { display: none; }
  .busca-pill { flex: none; margin: 0 0 0 auto; padding: 8px 12px; }
  .bento > .bloco { grid-column: span 12; }
  .mini-kpis, .atalhos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-color-scheme: dark) {
  .busca-pill { background: #1c1b19; border-color: #34322c; color: #a09a88; }
  kbd { background: #26241f; border-color: #3a372f; color: #d8d1bc; }
  .progresso { background: #2a2823; }
  .pend { background: #2a2416; border-color: #4a3f22; }
  .mini-kpis a.alerta { background: #3a1c1a; border-color: #5c2a26; }
}
.barra-topo .acoes > *, #btn-novo, .empresa b, .empresa small { white-space: nowrap; }
.busca-pill { flex: 0 1 400px; }
.saudacao .sub { text-transform: none; }
.saudacao .sub::first-letter { text-transform: uppercase; }
@media (max-width: 1280px) { .barra-topo .empresa { display: none; } .busca-pill { flex-basis: 320px; } }

/* =====================================================================
   v5: barra do topo mais moderna e listas menos poluídas
   ===================================================================== */
/* barra do topo */
.layout { grid-template-rows: 64px 1fr; }
.barra-topo { height: 64px; padding: 0 18px 0 0; gap: 14px; background: rgba(255, 255, 255, .9); border-bottom: 1px solid #ebe7dd; box-shadow: 0 6px 24px rgba(17, 17, 17, .04); }
.barra-topo::after { height: 1px; opacity: .55; }
.barra-topo .marca { padding: 0 6px 0 18px; }
.barra-topo .logo { width: 150px; height: 44px; background-size: 156px auto; }
.barra-topo .pro { margin: 0 0 9px 6px; font-size: 14px; }
.divisor { width: 1px; height: 28px; background: #e4dfd2; flex: none; }
.titulo-pagina #secao { font-size: 10.5px; letter-spacing: .14em; color: #b08a2e; }
.titulo-pagina h1 { font-size: 18px; font-weight: 650; }
.sidebar { top: 78px; height: calc(100vh - 64px - 28px); }
.busca-pill { min-height: 38px; background: #f5f3ee; border-color: transparent; }
.busca-pill:hover, .busca-pill:focus-visible { background: #fff; border-color: #e1d3a8; box-shadow: 0 4px 14px rgba(0, 0, 0, .05); }
#btn-novo { border-radius: 999px; padding: 8px 16px; gap: 6px; min-height: 38px; }
#btn-novo .mais-ic { font-size: 17px; line-height: 0; }
#btn-novo .seta { font-size: 10px; opacity: .7; }
.barra-topo .usuario { padding: 3px 8px 3px 3px; gap: 6px; border: 1px solid transparent; }
.barra-topo .usuario:hover { border-color: #e7e2d6; background: #fff; }
.avatar-usuario { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 13px "Segoe UI", sans-serif; letter-spacing: .02em;
  color: #111; background: linear-gradient(135deg, #f1dc9c, #c9a24d); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), 0 2px 6px rgba(0, 0, 0, .12); }
.seta-usuario { font-size: 10px; color: var(--muted); }
.pop-empresa { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #b08a2e; margin-bottom: 4px; }
.pop-info b { color: var(--text); font-size: 13.5px; }

/* filtros numa faixa limpa */
.filtros-limpos { align-items: flex-end; gap: 10px; padding: 12px 14px; }
.filtros-limpos label { font-size: 11px; font-weight: 500; color: #8a867a; }
.filtros-limpos .q { min-width: 260px; }
.filtro-botoes { display: flex; gap: 8px; margin-left: auto; min-width: 0 !important; }
.filtro-botoes .btn, .filtro-botoes button { min-height: 38px; white-space: nowrap; }
.icone-filtro { background: transparent; }

/* totais: bolinha ao lado do nome em vez de faixa */
.kpi-caixa { padding: 14px 18px; }
.kpi-caixa::before { display: none; }
.kpi-caixa span { display: inline-flex; align-items: center; gap: 7px; }
.kpi-caixa span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #cfc8b6; flex: none; }
.kpi-caixa[data-tipo="vencido"] span::before { background: #d64541; }
.kpi-caixa[data-tipo="hoje"] span::before { background: #e3a008; }
.kpi-caixa[data-tipo="aberto"] span::before { background: #6b7a90; }
.kpi-caixa[data-tipo="pago"] span::before { background: #16874a; }
.kpi-caixa[data-tipo="total"] span::before { background: var(--gold); }
.kpi-caixa b { font-size: 21px; }

/* lista: linhas mais baixas, texto em 2 linhas, ações discretas */
table.lista th { padding: 10px 14px; }
table.lista td { padding: 11px 14px; vertical-align: middle; }
table.lista td.resumo { max-width: 0; width: 55%; }
table.lista td.resumo b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.lista td.resumo .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
table.lista td:first-child, table.lista td:nth-child(2) { white-space: nowrap; color: #4a4740; font-variant-numeric: tabular-nums; }
table.lista td.num { font-weight: 500; }
tr.linha-lanc { cursor: pointer; }
.icone-acao { border: 0; background: transparent; width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 8px; font-size: 18px; color: #8a867a; }
.icone-acao:hover { background: #111; color: var(--gold-light); }
td.acoes-linha { width: 1%; }
td.acoes-linha .baixar { opacity: 0; transition: opacity .12s; background: #111; color: var(--gold-light); border-color: #111; }
tr:hover td.acoes-linha .baixar, td.acoes-linha .baixar:focus-visible { opacity: 1; }
.totais-periodo { font-size: 12.5px; }
.paginacao { font-size: 12.5px; }

@media (max-width: 1100px) { .filtro-botoes { margin-left: 0; } }
@media (max-width: 900px) {
  .layout { grid-template-rows: 60px 1fr; }
  .barra-topo { height: 60px; }
  .divisor { display: none; }
  .sidebar { top: 60px; }
  td.acoes-linha .baixar { opacity: 1; }
  table.lista td:nth-child(2), table.lista th:nth-child(2) { display: none; }
}
@media (prefers-color-scheme: dark) {
  .barra-topo { background: rgba(22, 22, 24, .9); border-bottom-color: #2b2a27; }
  .divisor { background: #3a372f; }
  .busca-pill { background: #1f1e1b; }
  table.lista td:first-child, table.lista td:nth-child(2) { color: #bdb7a5; }
}

/* =====================================================================
   v6: barra do topo preta, contínua com o menu (logo com fundo transparente)
   ===================================================================== */
.barra-topo { background: linear-gradient(180deg, #121212 0%, #0b0b0b 100%); border-bottom: 0; box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  backdrop-filter: none; -webkit-backdrop-filter: none; color: #f1e9d4; }
.barra-topo::after { height: 1px; opacity: .7; }
.barra-topo .marca { background: transparent; }
.barra-topo .logo { width: 150px; height: 46px; background: url(/logo-transparente.png) center / contain no-repeat; }
.barra-topo .pro { color: var(--gold-light); }
.divisor { background: rgba(255, 255, 255, .12); }
.titulo-pagina h1 { color: #fff; }
.titulo-pagina #secao { color: var(--gold); }
.menu-celular { color: #f1e9d4; }

/* pesquisa escura */
.busca-pill { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .08); color: #a9a293; }
.busca-pill:hover, .busca-pill:focus-visible { background: rgba(255, 255, 255, .1); border-color: rgba(229, 201, 122, .45); color: #f1e9d4; box-shadow: none; }
.busca-pill svg { color: var(--gold); }
.busca-pill kbd { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #d9d1bb; }

/* botão Novo dourado sobre o preto */
#btn-novo { background: linear-gradient(180deg, #ecd48f 0%, #c9a24d 100%); border-color: #c9a24d; color: #111; box-shadow: 0 4px 14px rgba(201, 162, 77, .25); }
#btn-novo:hover { background: linear-gradient(180deg, #f3df9f 0%, #d4ae58 100%); color: #000; }

/* usuário */
.barra-topo .usuario:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.seta-usuario { color: #a9a293; }
.avatar-usuario { box-shadow: 0 0 0 2px rgba(0, 0, 0, .6), 0 0 0 3px rgba(229, 201, 122, .55); }

/* menu flutuante logo abaixo da barra preta: mesmo tom, leve contorno para separar */
.sidebar { box-shadow: 0 18px 40px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .04); }
@media (prefers-color-scheme: dark) { .barra-topo { background: linear-gradient(180deg, #0c0c0c, #060606); } }
.barra-topo .logo { width: 160px; height: 48px; filter: brightness(1.75) saturate(1.15) drop-shadow(0 0 6px rgba(229, 201, 122, .18)); }

/* visão geral: cartão de contas no mesmo branco dos demais blocos */
.bloco-saldo { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); }
.bloco-saldo::after { display: none; }
.bloco-saldo h2 { color: var(--text); font-weight: 650; letter-spacing: 0; }
.bloco-saldo .sub { color: var(--muted); }
.bloco-saldo .bloco-cab { gap: 12px; }
.bloco-saldo .bloco-cab::before { content: ""; width: 38px; height: 38px; border-radius: 12px; flex: none; background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c97a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6M5 10v8m4-8v8m6-8v8m4-8v8M3 21h18'/%3E%3C/svg%3E") center / 20px no-repeat; }
.saldo-total { background: linear-gradient(135deg, #111 0%, #3a2f14 55%, #a8842f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.chip-conta { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }
.chip-conta:hover { background: var(--gold-bg); border-color: #e1d3a8; }
.chip-conta b.neg { color: var(--neg); }
@media (prefers-color-scheme: dark) {
  .saldo-total { background: linear-gradient(135deg, #fff5d6, #e5c97a 50%, #b8923f); -webkit-background-clip: text; background-clip: text; }
}
/* logo na barra preta: versão pintada de dourado vivo, sem filtro de brilho */
.barra-topo .logo { background-image: url(/logo-dourada.png); filter: drop-shadow(0 0 8px rgba(229, 201, 122, .22)); width: 164px; height: 48px; }
.barra-topo .logo { filter: drop-shadow(0 0 10px rgba(240, 212, 138, .28)); }
/* "Pro" com o mesmo dourado vivo da logo na barra preta */
.barra-topo .pro { background: linear-gradient(180deg, #fff4c8 0%, #f7e09e 45%, #eed28a 75%, #fcecb4 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #f0d48a; filter: drop-shadow(0 0 8px rgba(240, 212, 138, .28)); }

/* logos dos bancos */
.avatar { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; font: 700 12px "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #e5c97a, #a8842f); color: #111; }
.avatar-banco { background: #fff; border: 1px solid #ebe7dd; overflow: hidden; padding: 4px; }
.avatar-banco img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; display: block; }
.chip-conta .avatar-banco { background: #fff; }
.conta-com-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.conc-cab .acoes > .avatar { width: 38px; height: 38px; }

/* menu lateral fixo (não flutuante): colado na lateral, de cima a baixo, contínuo com a barra preta */
.sidebar { margin: 0; border-radius: 0; top: 64px; height: calc(100vh - 64px); box-shadow: 1px 0 0 rgba(0, 0, 0, .6); background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%); }
.layout.recolhido .sidebar { margin-left: 0; }
main { padding: 20px 26px 48px; }
@media (max-width: 900px) { .sidebar { top: 60px; height: auto; border-radius: 0; } }
/* ícone do "Saldo em contas" no mesmo padrão dos outros blocos: fundo dourado claro e traço dourado */
.bloco-saldo .bloco-cab::before { background: #f8efd6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8842f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6M5 10v8m4-8v8m6-8v8m4-8v8M3 21h18'/%3E%3C/svg%3E") center / 20px no-repeat; }
.card-contas .card-cab h2::before { background-color: #f8efd6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8842f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6M5 10v8m4-8v8m6-8v8m4-8v8M3 21h18'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { .bloco-saldo .bloco-cab::before { background-color: #2a2416; } }

/* menu em grupos com setinha para abrir/fechar */
.sidebar .grupo > .sec { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 8px; background: transparent;
  padding: 12px 12px 6px; margin-top: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #b8964a; cursor: pointer; }
.sidebar .grupo > .sec:hover { color: var(--gold-light); background: rgba(255, 255, 255, .03); }
.seta-grupo { transition: transform .2s ease; opacity: .8; }
.grupo.aberto .seta-grupo { transform: rotate(90deg); }
.grupo-itens { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.grupo.aberto .grupo-itens { grid-template-rows: 1fr; }
.grupo-itens > div { overflow: hidden; }
/* menu recolhido (só ícones): grupos sempre abertos, sem títulos */
.layout.recolhido .grupo > .sec { font-size: 0; padding: 6px 0; margin: 4px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0; pointer-events: none; }
.layout.recolhido .seta-grupo { display: none; }
.layout.recolhido .grupo-itens { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: reduce) { .grupo-itens, .seta-grupo { transition: none; } }

/* dourado das letras no mesmo tom da logo (logo-dourada.png: #F7E09E → #EED28A) */
:root { --ouro-logo: #f0d68c; --ouro-logo-claro: #f7e09e; --ouro-logo-grad: linear-gradient(180deg, #fff4c8 0%, #f7e09e 45%, #eed28a 75%, #fcecb4 100%); }
.sidebar .grupo > .sec, .sidebar nav .sec { color: var(--ouro-logo); opacity: .85; }
.sidebar .grupo > .sec:hover { color: var(--ouro-logo-claro); opacity: 1; }
.sidebar nav a.ativo { color: var(--ouro-logo-claro); background: linear-gradient(90deg, rgba(240, 214, 140, .18), rgba(240, 214, 140, .04)); }
.sidebar nav a.ativo::before { background: var(--ouro-logo-grad); }
.sidebar nav a:hover { color: var(--ouro-logo-claro); }
.titulo-pagina #secao { color: var(--ouro-logo); }
.busca-pill svg { color: var(--ouro-logo); }
.recolher { border-color: var(--ouro-logo); color: var(--ouro-logo-claro); }
.recolher:hover { background: var(--ouro-logo-grad); color: #111; }
.sidebar .badge { background: var(--ouro-logo-grad); color: #111; }

/* foto do usuário */
.avatar-usuario.com-foto, .avatar-lista.com-foto { padding: 0; overflow: hidden; background: #222; }
.avatar-usuario.com-foto img, .avatar-lista img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar-lista { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; overflow: hidden;
  font: 700 12px "Segoe UI", sans-serif; color: #111; background: linear-gradient(135deg, #f1dc9c, #c9a24d); }
.pop-botao { display: flex; align-items: center; width: 100%; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text); margin: 0; font-weight: 400; }
.pop-botao:hover { background: var(--brand-bg); }
.pop-botao { font-weight: 500; }

/* =====================================================================
   v7 — Tema "claro clean" (proposta B aprovada): barra do topo e menu
   brancos, bordas finas, dourado só nos detalhes.
   ===================================================================== */

.layout { grid-template-rows: 56px 1fr; }
body { background: #fafaf8; }
.barra-topo { height: 56px; background: #fff; box-shadow: none; border-bottom: 1px solid #ecebe6; color: #111; }
.barra-topo::after { display: none; }
.barra-topo .logo { width: 132px; height: 40px; background: url(/logo.jpg) center / 138px auto no-repeat; filter: none; }
.barra-topo .pro { font-size: 12px; filter: none; margin-bottom: 8px; background: none; -webkit-text-fill-color: #a8842f; color: #a8842f; }
.divisor { height: 20px; background: #e7e5de; }
.titulo-pagina #secao { display: none; }
.titulo-pagina h1 { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.busca-pill { background: #f4f3ef; border: 1px solid transparent; min-height: 34px; font-size: 13px; color: #8a867a; }
.busca-pill svg { color: #8a867a; }
.busca-pill kbd { background: #fff; border-color: #e3e0d6; color: #6b675c; }
#btn-novo { background: #111; color: #fff; border: 0; box-shadow: none; min-height: 34px; padding: 6px 14px; }
.avatar-usuario { width: 32px; height: 32px; box-shadow: none; }
.seta-usuario { display: none; }
.barra-topo .usuario:hover { background: #f4f3ef; }
.sidebar { background: #fff; top: 56px; height: calc(100vh - 56px); box-shadow: none; border-right: 1px solid #ecebe6; }
.sidebar nav { padding: 14px 12px; }
.sidebar .grupo > .sec { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: #9b978c; opacity: 1; padding: 16px 10px 6px; }
.sidebar .grupo > .sec:hover { color: #555; background: transparent; }
.sidebar nav a { font-size: 13.5px; color: #4a4740; padding: 8px 10px; border-radius: 6px; gap: 12px; }
.sidebar nav a svg { width: 16px; height: 16px; opacity: .75; }
.sidebar nav a:hover { background: #f5f4f0; color: #111; }
.sidebar nav a.ativo { background: #f7f0dc; color: #111; font-weight: 600; }
.sidebar nav a.ativo svg { color: #a8842f; opacity: 1; }
.sidebar nav a.ativo::before { display: none; }
.sidebar .badge { background: #f0e4c2; color: #7a5f1f; box-shadow: none; font-size: 10.5px; min-width: 18px; height: 18px; }
.recolher { border-color: #e3e0d6; background: #fff; color: #8a867a; box-shadow: none; }
main { background: transparent; }


.menu-celular { color: #1a1a1a; }
.barra-topo .usuario:hover { border-color: #ecebe6; }
.layout.recolhido .grupo > .sec { border-top-color: #ecebe6; }
.sidebar nav a.ativo .badge, .sidebar .badge { margin-left: auto; }
/* logo centralizada no espaço acima do menu e maior */
.layout { grid-template-rows: 64px 1fr; }
.barra-topo { height: 64px; }
.sidebar { top: 64px; height: calc(100vh - 64px); }
.barra-topo .marca { justify-content: center; gap: 4px; padding: 0; }
.barra-topo .logo { width: 184px; height: 56px; background-size: 190px auto; }
.barra-topo .pro { font-size: 13px; margin-bottom: 11px; color: #ab8d59;
  background: linear-gradient(165deg, #6f5424 0%, #b8913f 22%, #f6e7ad 45%, #d9b865 58%, #9a7535 80%, #e8cf87 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.layout.recolhido .barra-topo .marca { width: var(--menu-w); }
/* logo de outra empresa (arquivo em public/logos) */
/* sem o "Pro": só a logotipo, centralizada no espaço acima do menu */
.barra-topo .marca { justify-content: center; }
.barra-topo .marca .logo { width: 200px; height: 60px; background-size: 206px auto; }
@media (max-width: 900px) { .barra-topo .marca .logo { width: 140px; height: 44px; background-size: 146px auto; } }
.barra-topo .logo-empresa { display: block; width: auto; height: 52px; max-width: 226px; object-fit: contain; }
@media (max-width: 900px) { .barra-topo .logo-empresa { height: 34px; max-width: 150px; } }
@media (prefers-color-scheme: dark) { .barra-topo .logo-empresa { filter: invert(1) hue-rotate(180deg) brightness(1.1); } }
/* empresa sem logotipo: nome em dourado no lugar da logo */
.barra-topo .marca-texto { display: flex; flex-direction: column; align-items: center; line-height: 1.05;
  font: 600 21px Georgia, "Times New Roman", serif; letter-spacing: .03em; white-space: nowrap;
  background: linear-gradient(165deg, #6f5424 0%, #b8913f 22%, #f6e7ad 45%, #d9b865 58%, #9a7535 80%, #e8cf87 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #a8842f; }
.barra-topo .marca-texto small { font: 600 8.5px "Segoe UI", Arial, sans-serif; letter-spacing: .42em; text-transform: uppercase; margin-top: 3px; }
@media (max-width: 900px) { .barra-topo .marca-texto { font-size: 17px; } }
/* seletor de empresa no menu do usuário */
.pop-empresas { border-top: 1px solid var(--border, #ecebe6); border-bottom: 1px solid var(--border, #ecebe6); margin: 6px 0; padding: 6px 0; }
.pop-rotulo { display: block; font-size: 11px; color: #9b978c; padding: 2px 10px 6px; }
.pop-empresas button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; box-shadow: none; padding: 7px 10px; border-radius: 8px; }
.pop-empresas button:hover { background: #f5f4f0; }
.pop-empresas .emp-ini { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 700 11px "Segoe UI", Arial, sans-serif; background: #f7f0dc; color: #7a5f1f; }
.pop-empresas .emp-nome { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.pop-empresas .emp-nome small { font-size: 11px; color: #9b978c; }
.pop-empresas .emp-ok { color: #a8842f; font-weight: 700; }
.pop-empresas button.atual { background: #faf6ea; }
@media (prefers-color-scheme: dark) { .pop-empresas .emp-ini { background: #2a2416; color: #f7e09e; } .pop-empresas button.atual { background: #22201a; } }
/* nome e perfil ao lado da foto */
.barra-topo .usuario { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid transparent; background: transparent; }
.usuario-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.usuario-info b { font-size: 13px; font-weight: 600; color: #1a1a1a; white-space: nowrap; }
.usuario-info small { font-size: 11.5px; color: #a8842f; white-space: nowrap; }
@media (max-width: 900px) { .usuario-info { display: none; } }
@media (prefers-color-scheme: dark) { .usuario-info b { color: #ecebe7; } .usuario-info small { color: #e5c97a; } }
/* abas do lado do sistema na conciliação: sempre numa linha só */
.sis-abas { flex-wrap: nowrap; }
.sis-abas button { flex: 1 1 auto; white-space: nowrap; padding: 6px 8px; font-size: 12px; justify-content: center; }
.sis-abas button svg { width: 13px; height: 13px; }
/* botões principais em preto, sem tom marrom */
button.pri, .botao.pri, a.botao.pri { background: #111; border-color: #111; color: #fff; box-shadow: none; }
button.pri:hover, .botao.pri:hover, a.botao.pri:hover { background: #2a2a2a; border-color: #2a2a2a; }
/* menu recolhido: selo pequeno no canto do ícone, sem cobrir */
.layout.recolhido .sidebar nav a { position: relative; }
.layout.recolhido .sidebar .badge { position: absolute; top: 5px; left: calc(50% + 4px); right: auto; min-width: 15px; height: 15px; font-size: 9px; padding: 0 4px; margin: 0; }
@media (max-width: 900px) {
  .layout { grid-template-rows: 56px 1fr; }
  .barra-topo { height: 56px; }
  .barra-topo .marca { justify-content: flex-start; }
  .barra-topo .logo { width: 140px; height: 44px; background-size: 146px auto; }
  .sidebar { top: 56px; height: auto; border-right: 1px solid #ecebe6; }
  .layout.menu-aberto .fundo-menu { inset: 56px 0 0 0; }
}
/* modo escuro do Windows: mesma estrutura clean em tons escuros */
@media (prefers-color-scheme: dark) {
  body { background: #111110; }
  .barra-topo, .sidebar { background: #171716; border-color: #2a2926; }
  .barra-topo .logo { background-image: url(/logo-dourada.png); background-size: contain; }
  .titulo-pagina h1, .menu-celular { color: #ecebe7; }
  .divisor { background: #2f2e2a; }
  .busca-pill { background: #1f1e1c; color: #a09a88; }
  .busca-pill kbd { background: #262521; border-color: #34322c; color: #cfc8b4; }
  #btn-novo, button.pri, .botao.pri, a.botao.pri { background: #f0d68c; border-color: #f0d68c; color: #111; }
  .sidebar nav a { color: #c9c4b8; }
  .sidebar nav a:hover { background: #22211e; color: #fff; }
  .sidebar nav a.ativo { background: #2a2416; color: #f7e09e; }
  .sidebar .grupo > .sec { color: #807b70; }
  .recolher { background: #1f1e1c; border-color: #34322c; }
}

/* =====================================================================
   v8 — Tela de login: as duas logos unidas numa assinatura, visual moderno.
   Tudo escopado em .entrada (cores próprias, também no modo escuro).
   ===================================================================== */
body:has(.entrada) { background: #f7f4ec; }
.entrada { --e-ouro: #b08a3e; --e-ouro-2: #d9bd78; --e-tinta: #16140f; --e-cinza: #6f6a5e; --e-linha: #e7e1d3;
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); color: var(--e-tinta);
  font-family: inherit; }
.entrada *, .entrada *::before, .entrada *::after { box-sizing: border-box; }

/* vitrine (lado esquerdo) */
.entrada-vitrine { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: 56px clamp(32px, 6vw, 96px); isolation: isolate;
  background: radial-gradient(60% 55% at 18% 22%, rgba(217, 189, 120, .38), transparent 70%),
              radial-gradient(50% 50% at 85% 80%, rgba(176, 138, 62, .22), transparent 70%),
              linear-gradient(160deg, #fbf8f1 0%, #f3ede0 100%); }
.entrada-vitrine::before, .entrada-vitrine::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: e-flutuar 18s ease-in-out infinite alternate; }
.entrada-vitrine::before { width: 420px; height: 420px; left: -120px; bottom: -140px; background: #ecd9a4; }
.entrada-vitrine::after { width: 360px; height: 360px; right: -80px; top: -120px; background: #f1e5c4; animation-duration: 24s; }
@keyframes e-flutuar { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, -30px, 0) scale(1.08); } }
.vitrine-linhas { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(176, 138, 62, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(176, 138, 62, .10) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 70% at 40% 50%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 40% 50%, #000, transparent); }

/* assinatura: as logos unidas */
.assinatura { align-self: flex-start; display: flex; align-items: center; gap: 26px; padding: 22px 30px; margin-bottom: 44px;
  background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(176, 138, 62, .18) inset, 0 24px 60px -24px rgba(90, 70, 20, .35), 0 2px 6px rgba(90, 70, 20, .06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: e-surgir .7s cubic-bezier(.2, .7, .2, 1) both; }
.assinatura-logo { display: block; height: 64px; width: auto; object-fit: contain; }
.assinatura-logo.principal { height: 68px; }
.assinatura-texto { font: 600 26px Georgia, serif; color: var(--e-ouro); }
.assinatura-elo { position: relative; flex: none; width: 1px; height: 70px; background: linear-gradient(180deg, transparent, var(--e-ouro) 20%, var(--e-ouro) 80%, transparent); }
.assinatura-elo i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, var(--e-ouro-2), var(--e-ouro)); box-shadow: 0 0 0 4px rgba(255, 255, 255, .95); }

.vitrine-selo { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--e-ouro); margin-bottom: 18px; animation: e-surgir .7s .08s cubic-bezier(.2, .7, .2, 1) both; }
.vitrine-selo::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.entrada-vitrine h1 { margin: 0 0 18px; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; color: var(--e-tinta);
  animation: e-surgir .7s .14s cubic-bezier(.2, .7, .2, 1) both; }
.entrada-vitrine h1 em { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: linear-gradient(100deg, #8a6a2a 0%, #c9a24d 45%, #e6cf8f 60%, #a8842f 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.entrada-vitrine > p { max-width: 460px; margin: 0 0 34px; font-size: 16px; line-height: 1.6; color: var(--e-cinza);
  animation: e-surgir .7s .2s cubic-bezier(.2, .7, .2, 1) both; }
.vitrine-selos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; animation: e-surgir .7s .26s cubic-bezier(.2, .7, .2, 1) both; }
.vitrine-selos li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; color: #4a453b;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--e-linha); border-radius: 999px; }
.vitrine-selos svg { width: 15px; height: 15px; fill: none; stroke: var(--e-ouro); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* painel do formulário (lado direito) */
.entrada-painel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 32px 28px;
  background: #fff; border-left: 1px solid var(--e-linha); }
.entrada-cartao { width: 100%; max-width: 380px; margin: auto 0; animation: e-surgir .7s .1s cubic-bezier(.2, .7, .2, 1) both; }
.entrada-cartao h2 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.025em; font-weight: 700; color: var(--e-tinta); }
.entrada-sub { margin: 0 0 28px; color: var(--e-cinza); font-size: 14.5px; }
.entrada-campo { display: block; margin-bottom: 16px; }
.entrada-campo > span:first-child { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: #3a362e; }
.entrada .entrada-campo input { width: 100%; height: 50px; padding: 0 16px; font-size: 15px; color: var(--e-tinta); background: #faf9f6;
  border: 1px solid var(--e-linha); border-radius: 12px; outline: none; box-shadow: none;
  transition: border-color .18s, box-shadow .18s, background .18s; }
.entrada .entrada-campo input::placeholder { color: #b3ad9f; }
.entrada .entrada-campo input:hover { border-color: #d8cfb9; }
.entrada .entrada-campo input:focus { background: #fff; border-color: var(--e-ouro); box-shadow: 0 0 0 4px rgba(201, 162, 77, .18); }
.senha-caixa { position: relative; display: block; }
.entrada .senha-caixa input { padding-right: 52px; }
.entrada .ver-senha { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 10px; background: transparent; color: #9a9384; cursor: pointer; box-shadow: none; }
.entrada .ver-senha:hover { background: #f3efe5; color: var(--e-tinta); }
.entrada .ver-senha svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.entrada .ver-senha.ativo { color: var(--e-ouro); }
.caps-aviso { margin: -6px 0 14px; font-size: 12.5px; color: #a0661a; }
.entrada .erro { margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; background: #fdf0ee; color: #a3342b; border: 1px solid #f5d2cd; }
.entrada .entrar { position: relative; overflow: hidden; width: 100%; height: 52px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15.5px; font-weight: 600; letter-spacing: .01em; color: #fff; background: #121110; border: 0; border-radius: 12px; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(18, 17, 16, .55); transition: transform .15s, box-shadow .2s, background .2s; }
.entrada .entrar svg { width: 18px; height: 18px; fill: none; stroke: var(--e-ouro-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.entrada .entrar::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(230, 207, 143, .28) 50%, transparent 70%); transition: transform .7s; }
.entrada .entrar:hover { background: #000; box-shadow: 0 14px 30px -12px rgba(18, 17, 16, .6); }
.entrada .entrar:hover svg { transform: translateX(3px); }
.entrada .entrar:hover::after { transform: translateX(120%); }
.entrada .entrar:active { transform: translateY(1px); }
.entrada .entrar:focus-visible { outline: 3px solid rgba(201, 162, 77, .45); outline-offset: 2px; }
.entrada .entrar.carregando { pointer-events: none; }
.entrada .entrar.carregando svg { animation: e-girar .8s linear infinite; }
@keyframes e-girar { to { transform: rotate(360deg); } }
.entrada-rodape { margin-top: 28px; font-size: 12px; color: #aaa394; }
.entrada-cartao.tremer { animation: e-tremer .38s; }
@keyframes e-tremer { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes e-surgir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* tablet e celular: tudo empilhado, assinatura no topo */
@media (max-width: 960px) {
  .entrada { grid-template-columns: 1fr; }
  .entrada-vitrine { padding: 36px 20px 28px; align-items: center; text-align: center; }
  .assinatura { align-self: center; gap: 16px; padding: 14px 18px; margin-bottom: 26px; border-radius: 18px; }
  .assinatura-logo { height: 40px; }
  .assinatura-logo.principal { height: 42px; }
  .assinatura-elo { height: 44px; }
  .vitrine-selo { align-self: center; }
  .entrada-vitrine h1 { font-size: 34px; }
  .entrada-vitrine > p, .vitrine-selos { display: none; }
  .entrada-painel { border-left: 0; border-top: 1px solid var(--e-linha); padding: 32px 20px 24px; }
}
@media (max-width: 420px) { .assinatura-logo { height: 32px; } .assinatura-logo.principal { height: 29px; } }
@media (prefers-reduced-motion: reduce) { .entrada *, .entrada-vitrine::before, .entrada-vitrine::after { animation: none !important; transition: none !important; } }
