/* =====================================================================
   Loureiro Poceiro — Validação de Apurações de ICMS
   Estilo: minimalista inspirado na Apple · cinza + verde claro
   ===================================================================== */

/* ---------- Variáveis de tema ---------- */
:root {
  /* Tons de cinza */
  --gray-0:  #ffffff;
  --gray-50: #fafafa;
  --gray-100:#f4f4f5;
  --gray-200:#e7e7ea;
  --gray-300:#d2d2d7;
  --gray-500:#86868b;   /* texto de apoio */
  --gray-700:#48484a;
  --gray-900:#2c2c2e;   /* texto principal / footer */

  /* Verde claro de destaque */
  --green-100:#eaf6ef;
  --green-200:#cfe9da;
  --green-300:#a8d5ba;  /* destaque principal */
  --green-500:#5fae82;  /* hover / contraste */
  --green-700:#3c8b62;

  /* Atenção / divergência */
  --amber-100:#fdf3e3;
  --amber-500:#c9943b;

  /* Tokens semânticos */
  --bg:        var(--gray-0);
  --bg-alt:    var(--gray-50);
  --text:      var(--gray-900);
  --text-soft: var(--gray-500);
  --accent:    var(--green-300);
  --accent-ink:var(--green-700);
  --border:    var(--gray-200);

  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --shadow-lg:0 10px 40px rgba(0,0,0,.08);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset básico ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
               "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: min(1120px, 90%); margin-inline: auto; }

/* ---------- Tipografia auxiliar ---------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
h3 { font-size: 1.18rem; font-weight: 600; }
.lead { font-size: 1.12rem; color: var(--text-soft); max-width: 46ch; }
.accent-text { color: var(--green-500); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-lg { padding: 16px 36px; font-size: 1.06rem; }

.btn-primary {
  background: var(--accent);
  color: #103a26;
  box-shadow: 0 4px 16px rgba(95,174,130,.28);
}
.btn-primary:hover { background: var(--green-500); color:#fff; transform: translateY(-2px); }

.btn-ghost { color: var(--accent-ink); }
.btn-ghost:hover { color: var(--green-500); transform: translateX(3px); }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.logo-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--accent); color: #103a26;
  border-radius: 9px; font-size: .85rem; font-weight: 700; letter-spacing: -.02em;
}
.logo-text { font-size: .98rem; }

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  font-size: .94rem; color: var(--gray-700);
  position: relative; transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* Botão hambúrguer (só aparece no mobile) */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--gray-700); padding: 6px; border-radius: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-cta-mobile { display: none; }

/* ===================== HERO ===================== */
.hero { padding: 150px 0 90px; background:
        radial-gradient(1100px 500px at 80% -10%, var(--green-100), transparent 60%); }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 64px; align-items: center;
}
.hero-text h1 { margin-bottom: 22px; }
.hero-actions { display: flex; gap: 16px; align-items: center; margin-top: 34px; flex-wrap: wrap; }

/* Mockup */
.mockup {
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}
.mockup-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gray-300); }
.mockup-title { margin-left: 12px; font-size: .82rem; color: var(--text-soft); }
.mockup-body { padding: 8px 4px; }
.mockup-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px; align-items: center;
  padding: 13px 18px; font-size: .9rem;
  border-radius: 10px;
}
.mockup-row:not(.mockup-head):hover { background: var(--gray-50); }
.mockup-head { color: var(--text-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

/* ===================== SEÇÕES GENÉRICAS ===================== */
.section-alt { background: var(--bg-alt); }
.features, .demo, .stats, .cta { padding: 100px 0; }
.section-head { text-align: center; max-width: 36ch; margin: 0 auto 56px; }

/* ---------- Cards de features ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--green-100); color: var(--accent-ink);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: .96rem; }

/* ===================== DEMONSTRAÇÃO ===================== */
.demo-inner {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 64px; align-items: center;
}
.check-list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.check-list li {
  position: relative; padding-left: 30px; color: var(--gray-700); font-size: 1rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #103a26;
  font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
}

/* Painel com tabela */
.panel {
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.panel-head h4 { font-size: 1rem; font-weight: 600; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  text-align: left; padding: 15px 24px; font-size: .92rem;
}
.data-table th {
  color: var(--text-soft); font-weight: 500; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
}
.data-table tbody tr { border-bottom: 1px solid var(--gray-100); }
.data-table tbody tr:last-child { border-bottom: none; }
.row-warn { background: var(--amber-100); }
.diff { color: var(--amber-500); font-weight: 600; }

/* ---------- Tags de status ---------- */
.tag {
  display: inline-block; font-size: .76rem; font-weight: 600;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.tag-ok   { background: var(--green-200); color: var(--accent-ink); }
.tag-warn { background: #f6e2c0; color: var(--amber-500); }

/* ===================== INDICADORES ===================== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  background: var(--gray-0); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 26px; text-align: center;
  box-shadow: var(--shadow);
}
.stat-value { display: block; font-size: 2.6rem; font-weight: 600; letter-spacing: -.02em; }
.stat-label { color: var(--text-soft); font-size: .92rem; }

/* ===================== CTA FINAL ===================== */
.cta { text-align: center; }
.cta-inner {
  background: linear-gradient(135deg, var(--green-100), var(--green-200));
  border-radius: 28px;
  padding: 70px 40px;
}
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--gray-700); margin-bottom: 30px; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding: 60px 0 30px; }
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 50px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand p { font-weight: 600; color: var(--gray-0); line-height: 1.4; }
.footer-brand small { color: var(--gray-500); font-weight: 400; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h5 { color: var(--gray-0); font-size: .9rem; margin-bottom: 14px; }
.footer-cols a {
  display: block; color: var(--gray-500); font-size: .92rem;
  padding: 5px 0; transition: color .2s var(--ease);
}
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { padding-top: 24px; color: var(--gray-500); }

/* ===================== FADE-IN AO ROLAR ===================== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* atraso escalonado para cards/stats irmãos */
.feature-grid .reveal:nth-child(2),
.stats-grid .reveal:nth-child(2) { transition-delay: .08s; }
.feature-grid .reveal:nth-child(3),
.stats-grid .reveal:nth-child(3) { transition-delay: .16s; }
.feature-grid .reveal:nth-child(4),
.stats-grid .reveal:nth-child(4) { transition-delay: .24s; }
.feature-grid .reveal:nth-child(5) { transition-delay: .32s; }
.feature-grid .reveal:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 900px) {
  .hero-inner, .demo-inner { grid-template-columns: 1fr; gap: 44px; }
  .demo-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* Header colapsável (menu hambúrguer) em telas estreitas */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }            /* o CTA vira item do menu */
  .nav-cta-mobile { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 6px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 24px; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-links a.is-active { color: var(--accent-ink); background: var(--green-100); }
  .nav-cta-mobile a { color: var(--accent-ink); font-weight: 600; }
}

@media (max-width: 620px) {
  .hero { padding-top: 120px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { padding: 50px 24px; }
}

/* ===================================================================
   ADIÇÕES — Página inicial (dashboard) com widgets quadrados
   =================================================================== */

/* Grid de widgets quadrados */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

/* Widget quadrado clicável */
.widget {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
  overflow: hidden;
}
.widget:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}
.widget .icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--green-100); color: var(--accent-ink);
  display: grid; place-items: center; margin-bottom: 20px;
}
.widget .icon svg { width: 28px; height: 28px; }
.widget h3 { margin-bottom: 8px; font-size: 1.22rem; }
.widget p { color: var(--text-soft); font-size: .96rem; flex: 1; }

/* Rótulo do passo (número) */
.widget .step-label {
  position: absolute; top: 22px; right: 24px;
  font-size: .8rem; font-weight: 600; color: var(--gray-300);
  letter-spacing: .04em;
}

/* Seta call-to-action no rodapé do widget */
.widget .widget-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: .92rem; font-weight: 600; color: var(--accent-ink);
  transition: gap .25s var(--ease);
}
.widget:hover .widget-cta { gap: 12px; }

/* Widget desabilitado / em breve */
.widget.is-soon {
  background: var(--gray-50);
  cursor: default;
  box-shadow: none;
}
.widget.is-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }
.widget.is-soon .icon { background: var(--gray-100); color: var(--gray-500); }
.widget .badge-soon {
  align-self: flex-start;
  margin-top: 16px;
  font-size: .72rem; font-weight: 600;
  padding: 4px 11px; border-radius: 999px;
  background: var(--gray-200); color: var(--gray-500);
}

/* Hero compacto da home */
.home-hero { padding: 132px 0 40px; background:
  radial-gradient(1100px 460px at 80% -10%, var(--green-100), transparent 60%); }
.home-section { padding: 16px 0 90px; }

@media (max-width: 900px) {
  .widget-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .widget-grid { grid-template-columns: 1fr; }
  .widget { aspect-ratio: auto; }
}

/* ===================================================================
   ADIÇÕES — Páginas internas (homologação, apuração, configurações)
   =================================================================== */

/* Link de nav ativo */
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after { width: 100%; }

/* Wrapper de página interna (abaixo do header fixo) */
.page { padding: 108px 0 80px; }
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.page-head .lead { max-width: 60ch; }

/* Cartão de conteúdo genérico */
.panel-card {
  background: var(--gray-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}
.panel-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.panel-card h3 { font-size: 1.1rem; }
.panel-card .muted { color: var(--text-soft); font-size: .95rem; }

/* Formulário */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.field input[type="text"], .field select {
  width: 100%; padding: 10px 13px; font-size: .95rem;
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  background: var(--gray-0); color: var(--text);
  font-family: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input[type="text"]:focus, .field select:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(95,174,130,.18);
}
.field-check { display: flex; align-items: center; gap: 9px; align-self: end; padding-bottom: 10px; }
.field-check input { width: 17px; height: 17px; accent-color: var(--green-500); }
.field-check label { font-size: .92rem; color: var(--gray-700); margin: 0; font-weight: 500; }

/* Dropzone de upload */
.dropzone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius);
  padding: 38px 24px; text-align: center; cursor: pointer;
  background: var(--gray-50);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--green-500); background: var(--green-100); }
.dropzone p { color: var(--gray-700); }
.dropzone .hint { color: var(--text-soft); font-size: .85rem; margin-top: 8px; }
.file-list { font-size: .9rem; color: var(--text-soft); margin-top: 12px; }

/* Botão secundário/neutro */
.btn-neutral { background: var(--gray-900); color: #fff; }
.btn-neutral:hover { background: var(--gray-700); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--green-500); color: var(--accent-ink); }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Tabela genérica de dados (resultado/config) */
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); max-height: 520px; }
table.grid { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.grid thead { position: sticky; top: 0; z-index: 1; }
table.grid th {
  background: var(--gray-100); color: var(--gray-700); font-weight: 600;
  text-align: left; padding: 10px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--border); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .03em;
}
table.grid td { padding: 9px 12px; border-bottom: 1px solid var(--gray-100); white-space: nowrap; }
table.grid tbody tr:hover { background: var(--gray-50); }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Badges de status dos tópicos */
.status-badge {
  display: inline-block; font-size: .76rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.status-ok    { background: var(--green-200); color: var(--accent-ink); }
.status-erro  { background: #f8d4da; color: #9f1239; }
.status-na    { background: #f6e2c0; color: var(--amber-500); }
.status-info  { background: #d4ecfb; color: #075985; }

/* Linha de tópico no resultado */
.topico { margin-bottom: 18px; }
.topico-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.topico-head h3 { font-size: 1.12rem; }
.topico .resumo { color: var(--text-soft); font-size: .95rem; margin-bottom: 12px; }
.topico .count { font-size: .8rem; color: var(--text-soft); margin-bottom: 8px; }

/* Resumo executivo (lista de status) */
.resumo-grid { display: grid; gap: 10px; }
.resumo-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--gray-0);
}
.resumo-item .t-nome { font-weight: 600; font-size: .95rem; }
.resumo-item .t-obs { color: var(--text-soft); font-size: .85rem; }

/* Contexto detectado (chips) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; padding: 5px 11px; border-radius: 999px;
  background: var(--gray-100); color: var(--gray-700);
}
.chip.ok { background: var(--green-100); color: var(--accent-ink); }
.chip.miss { background: var(--gray-100); color: var(--gray-500); }

/* Mensagens / alertas */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 18px; }
.alert-info  { background: #d4ecfb; color: #075985; }
.alert-ok    { background: var(--green-100); color: var(--accent-ink); }
.alert-warn  { background: var(--amber-100); color: var(--amber-500); }

/* Inputs em célula de tabela editável */
table.grid td input {
  width: 100%; border: 1px solid transparent; background: transparent;
  padding: 6px 8px; font-size: .86rem; border-radius: 6px; font-family: inherit;
}
table.grid td input:focus { outline: none; border-color: var(--green-500); background: var(--gray-0); }
.row-del {
  cursor: pointer; color: var(--gray-500); border: none; background: none;
  font-size: 1.1rem; line-height: 1; padding: 4px 8px; border-radius: 6px;
}
.row-del:hover { color: #9f1239; background: #f8d4da; }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   ADIÇÕES — Ajustes de usabilidade mobile (tabelas e páginas)
   =================================================================== */
.table-wrap { -webkit-overflow-scrolling: touch; }

@media (max-width: 760px) {
  .page { padding: 92px 0 56px; }
  .panel-card { padding: 20px 16px; }
  /* Tabelas: células mais compactas e rolagem horizontal suave */
  table.grid th, table.grid td { padding: 7px 9px; font-size: .8rem; }
  table.grid td input { font-size: .82rem; padding: 7px 6px; }
  .table-wrap { max-height: 60vh; }
  /* Toolbars quebram em várias linhas no celular */
  .toolbar { gap: 8px; }
  .toolbar .btn { flex: 1 1 auto; }
  /* "Contexto detectado" e blocos 2-colunas viram 1 coluna */
  .ctx-grid, .resumo-item { grid-template-columns: 1fr !important; }
  /* Botões de download da apuração ocupam a largura */
  .topico-head { flex-wrap: wrap; }
}

/* ===================================================================
   ADIÇÕES — Lista de arquivos selecionados (upload acumulativo)
   =================================================================== */
.file-count { font-size: .85rem; color: var(--text-soft); margin-bottom: 8px; }
.file-clear {
  background: none; border: none; color: var(--accent-ink); cursor: pointer;
  font-size: .82rem; text-decoration: underline; padding: 0 4px;
}
.file-clear:hover { color: var(--green-500); }
.file-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-100); color: var(--accent-ink);
  font-size: .82rem; padding: 5px 6px 5px 12px; border-radius: 999px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-rm {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(60,139,98,.18); color: var(--accent-ink);
  border: none; cursor: pointer; font-size: 1rem; line-height: 1;
}
.file-rm:hover { background: #f8d4da; color: #9f1239; }
