/* Análise Tributária SaaS — por cima do Tabler 1.4 e do finpulse.css.

   ⚠️ (06/11/2026) O VISUAL É O DO GESTORIZE: as cores, as fontes, o menu
   lateral e os componentes estão no `finpulse.css` (copiado de
   gestorize/core/static/core/finpulse.css). Este arquivo NÃO redefine cor
   de marca — até 06/11 ele trazia o azul #1f5eff e a Inter, e por vir depois
   venceria o Gestorize. Aqui ficam só o que é deste sistema (a largura toda,
   a marca, o KPI, o selo, a tela de entrar) e o ajuste de rolagem. */
:root {
  /* o nome antigo, usado pelas telas, aponta para o do Gestorize */
  --fp-ink: var(--fp-heading);
}

/* A LARGURA ACOMPANHA A TELA (04/11/2026): "o quadro que mostra todas as
   telas tem que expandir conforme o tamanho da tela (...) tem que ser
   responsiva" (Fernando). Sem o teto de 1.320 px do container-xl.
   ⚠️ (06/11/2026) "não mexa na tela expandida como existe hoje": continua
   assim dentro da moldura nova — o recuo é o do `.fp-content`. */
.at-largo { max-width: none; }
.fp-content > .at-largo { padding-left: 0; padding-right: 0; }
.at-corpo-fora > .at-largo { padding-left: clamp(.75rem, 2vw, 2.5rem); padding-right: clamp(.75rem, 2vw, 2.5rem); }

/* ═══════════════════════════════════════════════════════════════════════
   A PÁGINA ROLA PELA JANELA (06/11/2026)
   ═══════════════════════════════════════════════════════════════════════
   No Gestorize só o conteúdo rola (html/body com overflow hidden). Aqui
   não: o simulador usa `window.scrollTo`, as âncoras das abas e a barra de
   seções do diagnóstico, que contam com a rolagem da janela. Menu e barra
   do topo ficam parados com sticky — o mesmo efeito na tela. */
html, body.at-logado { height: auto; overflow: visible; }
body.at-logado { display: block; min-height: 100vh; }
.at-logado .fp-shell { overflow: visible; min-height: 100vh; }
.at-logado .fp-main { overflow: visible; }
.at-logado .fp-content { overflow: visible; }
.at-logado .fp-topbar { position: sticky; top: 0; }
@media (min-width: 992px) {
  .at-logado .fp-sidebar { position: sticky; top: 0; height: 100vh; align-self: flex-start; }
  .at-logado .fp-sidebar .fp-nav { max-height: calc(100vh - var(--fp-topo-h)); }
}
.at-corpo { flex: 1 1 auto; }

/* a marca no menu: o "%" e ANÁLISE em cima, TRIBUTÁRIA embaixo (06/11/2026,
   "coloque análise em cima e embaixo tributária", Fernando) — as duas cores
   do GESTOR/IZE do Gestorize: branco e verde-água. */
.at-marca-icone { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
                  flex: 0 0 auto; color: #fff; font-weight: 700; font-size: 16px;
                  background: linear-gradient(135deg, var(--fp-marca-3), var(--fp-agua)); }
.fp-cabeca .fp-marca { justify-content: flex-start !important; gap: .65rem !important; padding: 0 1rem !important; }
.at-marca-nome { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
                 font-weight: 700; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.at-marca-nome .nome-gestor { color: #fff; font-size: 15px; letter-spacing: .14em; }
.at-marca-nome .nome-ize { color: var(--fp-agua); font-size: 12.5px; letter-spacing: .09em; }
html.fp-menu-recolhido .fp-marca .at-marca-nome { display: none; }
html.fp-menu-recolhido .fp-cabeca .fp-marca { justify-content: center !important; padding: 0 !important; }

/* O ESPAÇO ENTRE O MENU E O CONTEÚDO (06/11/2026): "melhor o espaçamento
   entre o menu e a tela com os dados" (Fernando). O Gestorize usa 1rem; aqui
   mais folga à esquerda, que a aba de recolher o menu invade a área. */
@media (min-width: 992px) {
  .fp-content { padding: 1.5rem 1.75rem 1.75rem 2.25rem; }
  .fp-topbar { padding-left: 3rem; padding-right: 1.25rem; }
  .fp-rodape { padding-left: 2.25rem; }
}

/* a contabilidade, na barra do topo */
.at-troca select { min-width: 14rem; max-width: 22rem; }
.at-conta-nome { font-size: 12.5px; color: var(--fp-muted); padding: .3rem .7rem; max-width: 22rem;
                 border: 1px solid var(--fp-border); border-radius: 999px; background: var(--fp-ground); }
@media (max-width: 767.98px) { .at-troca select, .at-conta-nome { min-width: 0; max-width: 9rem; } .fp-eu-nome { display: none; } }

/* entrar — nas cores do Gestorize (marinho da marca, detalhe verde-água) */
.at-marca { display: flex; align-items: center; gap: .6rem; color: #fff; }
.at-marca b { display: block; font-size: 14.5px; letter-spacing: .01em; line-height: 1.15; }
.at-marca small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
                  color: var(--fp-agua); line-height: 1.2; }
.at-marca .at-marca-icone { width: 32px; height: 32px; }
.at-entrar { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.at-entrar-lado { background: radial-gradient(1200px 600px at 0% 0%, var(--fp-marca-3) 0%, var(--fp-menu-bg) 60%);
                  color: #fff; padding: 3.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.at-entrar-lado h1 { font-size: 2.1rem; font-weight: 700; line-height: 1.15; max-width: 26rem; }
.at-entrar-lado p { color: var(--fp-menu-texto); max-width: 28rem; }
.at-entrar-lista { list-style: none; padding: 0; margin: 1.5rem 0 0; color: #DCE3F0; font-size: 14px; }
.at-entrar-lista li { padding: .35rem 0 .35rem 1.4rem; position: relative; }
.at-entrar-lista li::before { content: ""; position: absolute; left: 0; top: .8rem; width: .55rem; height: .55rem;
                              border-radius: 2px; background: var(--fp-agua); }
.at-entrar-form { display: grid; place-items: center; padding: 2rem 1rem; background: #fff; }
.at-entrar-form .card { width: 100%; max-width: 24rem; border: 0; box-shadow: none; }
@media (max-width: 860px) {
  .at-entrar { grid-template-columns: 1fr; }
  .at-entrar-lado { padding: 2rem 1.25rem; }
  .at-entrar-lado h1 { font-size: 1.6rem; }
}

/* painéis */
.at-kpi { background: #fff; border: 1px solid var(--fp-border); border-radius: 12px; padding: 1rem 1.1rem; height: 100%; }
.at-kpi .rot { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--fp-muted); }
.at-kpi .num { font-size: 1.6rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.at-selo { display: inline-block; font-size: 11.5px; padding: .1rem .5rem; border-radius: 999px; font-weight: 600; }
.at-selo.ok { background: #e7f6ec; color: #18794e; }
.at-selo.ruim { background: #fdecec; color: #b42318; }
.at-selo.neutro { background: #eef1f6; color: #475467; }
.at-segredo { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.table td, .table th { vertical-align: middle; }
