/*
 * Sidebar deliberadamente igual à do Marpe Business OS (mesmas variáveis de
 * cor, tipografia, espaçamento e o mesmo tratamento de item ativo com barra
 * lateral) — pedido explícito do Joel: o Emissor NF é outro sistema, mas a
 * casca de navegação segue o padrão visual Marpe. O conteúdo (cards de
 * KPI, tabela) mantém identidade própria, inspirada nas referências de
 * invoice em segundo cérebro/Marpe/emissor nf/ref.
 */
:root {
  --font-ui: 'Inter', -apple-system, system-ui, sans-serif;
  --font-display: 'DM Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Conteúdo (claro) — paleta própria do painel */
  --bg: #f1f2f5;
  --card: #ffffff;
  --border: #e6e7eb;
  --text-1: #1a1b1e;
  --text-2: #6b6f76;
  /* #767676 é o cinza mais claro que ainda passa 4.5:1 (AA) sobre branco —
     o valor anterior (#9a9da3) ficava perto de 2.2:1, ilegível de propósito
     em qualquer leitura rápida (KPIs, rótulos, estados vazios). */
  --text-3: #74777d;
  --accent: #0f766e;
  --accent-soft: #e6f3f1;
  --positive: #15803d;
  --negative: #b91c1c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,17,20,.04), 0 8px 24px rgba(16,17,20,.05);

  /* Sidebar — valores idênticos ao Business OS (--sidebar-bg:#003C32 etc.) */
  --sidebar-bg: #003C32;
  --sidebar-hair: rgba(255,255,255,.10);
  --sidebar-text-1: #FFFFFF;
  --sidebar-text-2: #D6EAE4;
  --sidebar-text-3: #A9C7BF;
  --sidebar-ic: #9DBDB4;
  --brand: #007663;

  font-family: var(--font-ui);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text-1); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
/* Reset de base pra qualquer <button> — sem isto o navegador aplica a
   própria face cinza/borda "outset" por cima de qualquer classe que não
   declare background/border explicitamente (foi exatamente o bug real
   encontrado nos itens de empresa da sidebar: texto verde-claro ilegível
   sobre um botão cinza nativo). Cada classe de botão ainda define seu
   próprio visual — isto é só a rede de segurança. */
button { font: inherit; appearance: none; -webkit-appearance: none; border: none; background: none; padding: 0; margin: 0; color: inherit; cursor: pointer; }

/* ── Login ── */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--sidebar-bg); }
.login-card { width: 100%; max-width: 360px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; text-align: center; }
.login-card .brand { justify-content: center; padding-bottom: 4px; }
.login-card .brand-name, .login-card .brand-sub { color: var(--text-1); }
.login-sub { color: var(--text-2); font-size: 13px; line-height: 1.5; margin: 10px 0 22px; }
.login-card input { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border); font-size: 14px; margin-bottom: 12px; }
.login-card button { width: 100%; padding: 12px; border-radius: 10px; border: none; background: var(--sidebar-bg); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; font-family: var(--font-display); }
.login-erro { color: var(--negative); font-size: 12px; margin-top: 10px; min-height: 14px; }

/* ── Marca (badge + nome) — receita idêntica ao .brand-mark do Business OS ── */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(145deg, #2DB68F, #005A4B);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,41,32,.3), inset 0 1px 0 rgba(255,255,255,.28);
}
.brand-mark img { width: 78%; height: auto; display: block; filter: drop-shadow(0 1px 1px rgba(0,30,22,.22)); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.05; letter-spacing: -.01em; color: var(--sidebar-text-1); }
.brand-sub { font-size: 11.5px; color: var(--sidebar-text-3); margin-top: 2px; }

/* ── Layout ── */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 230px; flex: 0 0 230px; background: var(--sidebar-bg);
  display: flex; flex-direction: column; padding: 0;
  position: sticky; top: 0; height: 100vh;
}
.brand-lock { display: flex; align-items: center; gap: 12px; padding: 20px 18px 18px; border-bottom: 1px solid var(--sidebar-hair); }

.sidebar-secao { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-secao::-webkit-scrollbar { width: 6px; }
.sidebar-secao::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
.sidebar-titulo { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--sidebar-text-3); padding: 6px 12px 10px; font-weight: 600; opacity: .85; }

.lista-empresas { display: flex; flex-direction: column; gap: 2px; }
.lista-empresas .separador { height: 1px; background: var(--sidebar-hair); margin: 8px 4px; }
.empresa-item {
  position: relative; display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; width: 100%;
  font-size: 13px; font-weight: 500; color: var(--sidebar-text-2);
  background: transparent; border: none;
  transition: background .15s ease, color .15s ease; text-align: left;
}
.empresa-item:hover { background: rgba(255,255,255,.05); color: var(--sidebar-text-1); }
.empresa-item.active {
  background: color-mix(in srgb, var(--brand) 26%, transparent);
  color: #fff; font-weight: 600;
}
.empresa-item.active::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--brand);
}
.empresa-item .empresa-txt { overflow: hidden; flex: 1; min-width: 0; }
.empresa-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.empresa-cnpj { font-size: 10px; color: var(--sidebar-text-3); display: block; }
.cert-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.cert-dot.ok { background: #34d399; }
.cert-dot.atencao { background: #f59e0b; }
.cert-dot.vencido, .cert-dot.falta { background: #ef4444; }

.sidebar-link-vazio {
  display: block; margin: 0 0 8px 12px; color: var(--sidebar-text-1);
  font-size: 12px; font-weight: 600; text-decoration: underline;
}
.sidebar-link-vazio:hover { color: var(--sidebar-text-2); }

.sidebar-secao-sistema { flex: 0 0 auto; padding-top: 4px; }
.nav-item {
  display: flex; align-items: center; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 8px; border: none; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--sidebar-text-2); font-family: var(--font-ui);
  transition: background .15s ease, color .15s ease; min-height: 24px;
}
.nav-item:hover { background: rgba(255,255,255,.05); color: var(--sidebar-text-1); }
.nav-item.active { background: color-mix(in srgb, var(--brand) 26%, transparent); color: #fff; font-weight: 600; }

.nav-foot { padding: 12px; border-top: 1px solid var(--sidebar-hair); }
.usuario-logado { padding: 4px 12px 8px; font-size: 12px; color: var(--sidebar-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuario-logado .papel { color: var(--sidebar-text-3); text-transform: capitalize; }
.logout-btn {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: none; background: transparent;
  color: var(--sidebar-text-2); font-size: 13px; font-weight: 500; cursor: pointer; text-align: left;
}
.logout-btn:hover { background: rgba(255,255,255,.05); color: #fff; }

.conteudo { flex: 1; min-width: 0; padding: 28px 32px; }
.crumb { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.topo { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.topo h1 { font-family: var(--font-display); font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; font-weight: 600; }
.topo .sub { color: var(--text-2); font-size: 13px; margin: 0; max-width: 560px; }
.topo-acoes { display: flex; gap: 10px; flex-shrink: 0; }
.btn-secundario { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-1); }
.btn-secundario:hover { background: #f6f7f8; }
.btn-primario { padding: 9px 16px; border-radius: 10px; border: none; background: var(--sidebar-bg); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font-display); }
.btn-primario:hover { background: #002a23; }
/* :not([disabled]) porque o mesmo botão também fica opaco+"wait" durante o
   envio (JS troca o texto pra "Emitindo…") — dois motivos de opacidade
   precisam de dois cursores diferentes: "não dá" vs. "espera". */
.btn-primario.btn-perigo { background: var(--negative); }
.btn-primario.btn-perigo:hover { background: #991b1b; }
.btn-primario:disabled { opacity: .55; cursor: wait; }
.btn-primario:disabled:not(.btn-full) { cursor: not-allowed; }
/* Vive na sidebar escura, não no conteúdo claro — var(--negative) é vermelho
   escuro pensado pra cima de branco; aqui usa o mesmo âmbar do cert-dot
   ".falta", que já tem contraste calculado pra cima do verde da sidebar. */
.aviso-cert { color: #f59e0b; font-weight: 600; }
.btn-full { width: 100%; margin-top: 6px; padding: 12px; }
.btn-link-negativo { border: none; background: none; color: var(--negative); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 8px; }
.btn-link-negativo:hover { text-decoration: underline; }
.btn-link { color: var(--accent); font-size: 12px; font-weight: 600; text-decoration: none; padding: 4px 8px; }
.btn-link:hover { text-decoration: underline; }
.acoes-nota { display: flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ── Modal ── */
.modal-fundo { position: fixed; inset: 0; background: rgba(0,20,16,.45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal-caixa { width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; }

@media (prefers-reduced-motion: no-preference) {
  .modal-fundo:not(.hidden) { animation: fundoIn .15s ease; }
  .modal-fundo:not(.hidden) .modal-caixa { animation: modalIn .18s cubic-bezier(.16,1,.3,1); }
  .toast:not(.hidden) { animation: toastIn .22s cubic-bezier(.16,1,.3,1); }
  .btn-primario:active:not(:disabled), .btn-secundario:active, .pill-toggle:active { transform: scale(.97); }
  .btn-primario, .btn-secundario, .pill-toggle { transition: transform .1s ease, background .15s ease; }
}
@keyframes fundoIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.modal-pequena { max-width: 380px; }
.modal-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-topo h2 { font-family: var(--font-display); font-size: 18px; margin: 0; font-weight: 600; }
.modal-fechar { border: none; background: none; font-size: 22px; line-height: 1; color: var(--text-3); cursor: pointer; padding: 2px 6px; }
.modal-fechar:hover { color: var(--text-1); }
.modal-sep { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border);
  font-size: 13.5px; font-family: var(--font-ui); color: var(--text-1); background: #fff;
}
.campo textarea { resize: vertical; }
.campo-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.banner-empresa {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: var(--text-1); margin-bottom: 16px;
}
.banner-empresa b { color: var(--accent); }

.aviso { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; text-align: center; color: var(--text-2); font-size: 14px; }

/* ── Cartão de primeiro acesso — "Guided Task", não tour: fica ancorado na
   própria tela, nunca bloqueia, some sozinho quando a pessoa emite a
   primeira nota de verdade (ou quando ela dispensa). ── */
.cartao-onboarding {
  position: relative; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 18px 44px 18px 20px;
}
.onboarding-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.onboarding-titulo { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.onboarding-corpo { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.onboarding-fechar { position: absolute; top: 12px; right: 12px; }

/* ── Estado vazio de "nenhuma empresa cadastrada" — o primeiro obstáculo real
   de quem nunca usou o painel. Mesma linguagem visual do cartão de onboarding
   (eyebrow/título/corpo), mas centralizado e com um CTA que resolve ali mesmo
   (abre o import de certificado sem sair da tela) em vez de só descrever o
   caminho em texto. ── */
.cartao-vazio-empresas {
  text-align: center; max-width: 480px; margin: 24px auto; padding: 40px 32px;
}
.cartao-vazio-empresas .onboarding-titulo { font-size: 17px; }
.cartao-vazio-empresas .onboarding-corpo { margin-bottom: 20px; }

.cartao-alerta {
  background: #fef2f2; border: 1px solid color-mix(in srgb, var(--negative) 30%, transparent);
  padding: 14px 18px; font-size: 13px; color: #7f1d1d;
}
.cartao-alerta b { color: var(--negative); }

@media (prefers-reduced-motion: no-preference) {
  /* Pulso curto no botão real que o cartão está apontando — conecta o texto
     ao controle sem precisar de seta/spotlight. Some junto com o cartão. */
  .destaque-pulso { animation: pulsoSuave 2s ease-in-out infinite; }
}
@keyframes pulsoSuave {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sidebar-bg) 40%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--sidebar-bg) 0%, transparent); }
}

/* ── KPIs ── */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.kpi-label { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.kpi-valor { font-family: var(--font-mono); font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.kpi-valor.kpi-negativo { color: var(--negative); }
.kpi-sub { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

/* ── Cartões ── */
.cartao { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 16px; }
.cartao-titulo { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.cartao-eyebrow { font-weight: 400; color: var(--text-3); font-size: 12px; margin-left: 6px; }
.cartao-titulo.sem-margem { margin-bottom: 0; }
.cartao-titulo-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.barras { display: flex; flex-direction: column; gap: 10px; }
.barra-linha { display: grid; grid-template-columns: 160px 1fr 90px; align-items: center; gap: 10px; font-size: 12.5px; }
.barra-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.barra-trilha { height: 8px; background: var(--accent-soft); border-radius: 6px; overflow: hidden; }
.barra-preenchimento { height: 100%; background: var(--accent); border-radius: 6px; }
.barra-valor { text-align: right; font-weight: 600; font-family: var(--font-mono); }
.barra-preenchimento.status-cor-autorizada { background: var(--positive); }
.barra-preenchimento.status-cor-rejeitada, .barra-preenchimento.status-cor-cancelamento_falhou { background: var(--negative); }
.barra-preenchimento.status-cor-processando, .barra-preenchimento.status-cor-cancelada { background: var(--text-3); }

/* ── Insights ── */
.kpi-valor.kpi-valor-texto { font-family: var(--font-display); font-size: 19px; }
.sparkline { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.spark-bar { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 3px; transition: background .15s ease; }
.spark-bar:hover { background: var(--sidebar-bg); }
.vazio-inline { color: var(--text-3); font-size: 13px; }

/* ── Tabela ── */
.tabela-scroll { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabela th { text-align: left; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); font-weight: 600; padding: 0 10px 10px; border-bottom: 1px solid var(--border); }
.tabela td { padding: 11px 10px; border-bottom: 1px solid var(--border); }
.tabela tbody tr:last-child td { border-bottom: none; }
.chave { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.status-pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; display: inline-block; }
.status-autorizada { background: #ecfdf3; color: var(--positive); }
.status-rejeitada, .status-cancelamento_falhou { background: #fef2f2; color: var(--negative); }
.status-processando { background: #f3f4f6; color: var(--text-2); }
.status-cancelada { background: #f3f4f6; color: var(--text-3); }
.status-cert-ok { background: #ecfdf3; color: var(--positive); }
.status-cert-atencao { background: #fffbeb; color: #b45309; }
.status-cert-vencido, .status-cert-falta { background: #fef2f2; color: var(--negative); }
.tabela-vazia { text-align: center; color: var(--text-3); padding: 30px 0 !important; }

/* ── Configurações / Logs / Dados pessoais ── */
.cartao-estreito { max-width: 560px; }
.cartao-filtros { padding: 16px 22px; margin-bottom: 16px; }
.campo-linha-3 { grid-template-columns: 1fr 1fr 1fr; }
.campo-linha-4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
.filtros-rodape { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--text-2); }
.form-ok { color: var(--positive); font-size: 12px; margin-top: 10px; }
.perfil-info { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.perfil-info .linha { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.perfil-info .linha:last-child { border-bottom: none; padding-bottom: 0; }
.perfil-info .rotulo { color: var(--text-2); }
.perfil-info .valor { font-weight: 600; text-align: right; }
.badge-papel { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: capitalize; background: var(--accent-soft); color: var(--accent); }
.aviso-lgpd { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.fc-nota { font-size: 12px; color: var(--text-2); line-height: 1.5; margin: -4px 0 14px; }
.fc-senha-auto-aviso { display: block; color: var(--positive); font-weight: 600; margin-top: 6px; }
.ee-buscar-oficial { margin-bottom: 16px; }

/* ── Combobox — substitui <select>/<datalist> nativos (sem controle de
   posição ou de cor nenhum) por um painel próprio, com a mesma marca do
   resto do painel. position:fixed + recálculo em scroll/resize garante que
   o painel acompanha o campo mesmo dentro de um modal. ── */
.campo-combobox { position: relative; }
.combobox-painel {
  position: fixed; z-index: 60; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); max-height: 240px; overflow-y: auto;
  padding: 4px;
}
.combobox-item { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.combobox-item:hover, .combobox-item.ativo { background: var(--accent-soft); }
.combobox-label { color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combobox-sub { color: var(--text-3); font-size: 11.5px; flex-shrink: 0; font-family: var(--font-mono); }
.combobox-vazio { padding: 10px; font-size: 12.5px; color: var(--text-3); }
.combobox-selecionado { margin-top: 6px; font-size: 12px; color: var(--accent); }
.pill-toggle { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; min-height: 24px; }
/* Cor segue a AÇÃO do botão, não o estado atual do usuário — "Desativar"
   pintado de verde (por ser o estado atual) lia como um clique seguro/
   positivo, quando na verdade tira o acesso de alguém. */
.pill-toggle.acao-desativar { color: var(--text-2); }
.pill-toggle.acao-desativar:hover { border-color: var(--negative); color: var(--negative); }
.pill-toggle.acao-ativar { color: var(--positive); border-color: color-mix(in srgb, var(--positive) 35%, transparent); }
.detalhe-log { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* ── Toast (feedback de ações reversíveis — sem modal de confirmação para
   ações de baixo custo e reversíveis, ex.: desativar usuário) ── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: #1a1b1e; color: #fff; padding: 12px 16px; border-radius: 10px;
  font-size: 13px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); z-index: 100;
  max-width: min(420px, calc(100vw - 40px));
}
.toast button { background: none; border: none; color: #6ee7c8; font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px; white-space: nowrap; }

@media (max-width: 860px) {
  .app { flex-direction: column; }
  .sidebar { width: auto; height: auto; position: static; }
  .conteudo { padding: 20px; }
  .kpis { grid-template-columns: 1fr; }
  .barra-linha { grid-template-columns: 100px 1fr 70px; }
  .campo-linha-3 { grid-template-columns: 1fr; }
  .campo-linha-4 { grid-template-columns: 1fr 1fr; }
}
