/* =====================================================================
   Painel de Certidões: tema escuro de monitoramento (estilo Grafana/Zabbix)
   Fonte: Work Sans (SIL Open Font License), embutida em /static/fontes
   ===================================================================== */

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fontes/work-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fontes/work-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --fundo: #0e0f13;
  --fundo-2: #121418;
  --painel: #181b1f;
  --painel-cab: #1d2025;
  --painel-alto: #22252b;
  --borda: #2b2f36;
  --borda-forte: #3a3f47;
  --texto: #dcdde0;
  --texto-forte: #f4f5f6;
  --texto-suave: #8e929b;
  --texto-fraco: #646872;
  --destaque: #5794f2;
  --destaque-fundo: rgba(87, 148, 242, .14);

  --vencida: #f2495c;
  --alerta: #ff9830;
  --valida: #73bf69;
  --pendente: #5b616b;

  --vencida-fundo: #4a1a22;
  --alerta-fundo: #4a3014;
  --valida-fundo: #1c3a1f;
  --pendente-fundo: #23262c;

  --raio: 4px;
  --fonte: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --lateral: 216px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--fundo);
  color: var(--texto);
  font: 14px/1.5 var(--fonte);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--destaque); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; color: var(--texto-forte); margin: 0; }
h1 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: .95rem; font-weight: 600; }
h3 { font-size: .9rem; font-weight: 600; }
code { font-family: var(--mono); font-size: .85em; background: var(--painel-alto); padding: .05rem .3rem; border-radius: 3px; }

/* ----------------------------------------------------------------- estrutura */
.app {
  display: grid; grid-template-columns: var(--lateral) 1fr; min-height: 100vh;
  /* a coluna do menu mantém a cor até o fim de páginas longas */
  background: linear-gradient(90deg, var(--fundo-2) calc(var(--lateral) - 1px), var(--borda) calc(var(--lateral) - 1px) var(--lateral), var(--fundo) var(--lateral));
}

.lateral {
  background: var(--fundo-2);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.marca { display: flex; align-items: center; gap: .6rem; padding: 1rem 1rem .9rem; border-bottom: 1px solid var(--borda); color: var(--texto-forte); }
.marca:hover { text-decoration: none; }
.marca-icone { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; background: linear-gradient(135deg, #5794f2, #73bf69); color: #0e0f13; flex: none; }
.marca-texto { display: flex; flex-direction: column; line-height: 1.15; }
.marca-texto strong { font-weight: 650; font-size: .95rem; }
.marca-texto span { font-size: .72rem; color: var(--texto-suave); }

.nav-lateral { display: flex; flex-direction: column; padding: .6rem .5rem; gap: 1px; flex: 1; overflow-y: auto; }
.nav-titulo { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texto-fraco); padding: .9rem .6rem .3rem; }
.nav-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .45rem .6rem; border-radius: var(--raio);
  color: var(--texto-suave); font: inherit; font-weight: 500;
  background: none; border: 0; cursor: pointer; text-align: left; width: 100%;
}
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.nav-item:hover { background: var(--painel); color: var(--texto); text-decoration: none; }
.nav-item.ativo { background: var(--destaque-fundo); color: var(--texto-forte); box-shadow: inset 2px 0 0 var(--destaque); }
.nav-rodape { border-top: 1px solid var(--borda); padding: .6rem .5rem .8rem; }
.usuario-lateral { padding: .3rem .6rem .5rem; font-size: .8rem; color: var(--texto-suave); line-height: 1.3; }
.usuario-lateral strong { display: block; color: var(--texto); font-weight: 600; }

.principal { min-width: 0; display: flex; flex-direction: column; }
.barra-topo {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .75rem 1.25rem; border-bottom: 1px solid var(--borda);
  background: var(--fundo); position: sticky; top: 0; z-index: 5;
}
.barra-topo .titulo { margin-right: auto; display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.barra-topo .titulo .migalha { color: var(--texto-suave); font-size: .82rem; }
.barra-info { display: flex; align-items: center; gap: .9rem; color: var(--texto-suave); font-size: .8rem; }
.relogio { font-family: var(--mono); color: var(--texto); font-size: .85rem; }
.pulso { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--valida); margin-right: .35rem; box-shadow: 0 0 0 0 rgba(115, 191, 105, .6); animation: pulso 2.4s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(115, 191, 105, .55); } 70% { box-shadow: 0 0 0 7px rgba(115, 191, 105, 0); } 100% { box-shadow: 0 0 0 0 rgba(115, 191, 105, 0); } }
@media (prefers-reduced-motion: reduce) { .pulso { animation: none; } }

main { padding: 1.1rem 1.25rem 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.rodape { color: var(--texto-fraco); font-size: .75rem; padding: 0 1.25rem 1.2rem; }

/* ----------------------------------------------------------------- painéis (cards) */
.painel, .cartao { background: var(--painel); border: 1px solid var(--borda); border-radius: var(--raio); }
.cartao { padding: 1rem 1.1rem; }
.cartao + .cartao { margin-top: .75rem; }
.painel-cab {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap;
  padding: .55rem .9rem; border-bottom: 1px solid var(--borda); background: var(--painel-cab);
  border-radius: var(--raio) var(--raio) 0 0;
}
.painel-cab h2 { font-size: .85rem; font-weight: 600; color: var(--texto); }
.painel-cab .nota { font-size: .75rem; color: var(--texto-suave); }
.painel-corpo { padding: .9rem; }
.painel-corpo.sem-pad { padding: 0; }
.cartao-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; margin-bottom: .75rem; }
.grade-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }

.sub { color: var(--texto-suave); margin: 0; }
.suave { color: var(--texto-suave); }
.pequeno { font-size: .8rem; }
.cnpj { color: var(--texto-suave); font-size: .8rem; font-family: var(--mono); }

/* ----------------------------------------------------------------- stat panels */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: .75rem; }
.stat {
  background: var(--painel); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: .7rem .9rem .8rem; display: flex; flex-direction: column; min-height: 112px; position: relative; overflow: hidden;
}
.stat .rotulo { font-size: .78rem; color: var(--texto-suave); font-weight: 500; }
.stat .valor { font-size: 2.6rem; font-weight: 600; line-height: 1.05; margin-top: auto; letter-spacing: -.02em; color: var(--texto-forte); }
.stat .valor small { font-size: .9rem; font-weight: 500; color: inherit; opacity: .8; margin-left: .2rem; letter-spacing: 0; }
.stat .detalhe { font-size: .75rem; color: var(--texto-suave); margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.c-vencida .valor { color: var(--vencida); }
.stat.c-alerta .valor { color: var(--alerta); }
.stat.c-valida .valor { color: var(--valida); }
.stat.c-pendente .valor { color: var(--texto-suave); }
/* modo "fundo colorido" do Grafana: quando há algo a fazer */
.stat.bg-vencida { background: linear-gradient(160deg, #c4162a, #8a1020); border-color: #c4162a; }
.stat.bg-alerta { background: linear-gradient(160deg, #c46a12, #8a4a0c); border-color: #c46a12; }
.stat.bg-vencida .valor, .stat.bg-alerta .valor, .stat.bg-vencida .rotulo, .stat.bg-alerta .rotulo, .stat.bg-vencida .detalhe, .stat.bg-alerta .detalhe { color: #fff; }
.stat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.stat.c-vencida::after { background: var(--vencida); }
.stat.c-alerta::after { background: var(--alerta); }
.stat.c-valida::after { background: var(--valida); }

/* ----------------------------------------------------------------- matriz de status */
.matriz-rolagem { overflow-x: auto; }
.matriz { width: 100%; border-collapse: separate; border-spacing: 4px; min-width: 640px; }
.matriz th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-suave); font-weight: 600; padding: .2rem .3rem; text-align: center; border: 0; }
.matriz th.empresa-col { text-align: left; width: 22%; }
.matriz td { padding: 0; border: 0; height: 1px; }
.matriz td > * { height: 100%; }
.matriz .empresa-nome { padding: .4rem .5rem; background: var(--painel-alto); border-radius: var(--raio); height: 100%; }
.matriz .empresa-nome a { color: var(--texto-forte); font-weight: 600; display: block; }
.matriz .empresa-nome span { display: block; font-size: .72rem; color: var(--texto-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16rem; }
.celula {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 62px; border-radius: var(--raio); padding: .35rem .25rem; color: #fff; text-align: center;
  border: 1px solid transparent; transition: filter .15s, transform .15s;
}
a.celula:hover { text-decoration: none; filter: brightness(1.15); transform: translateY(-1px); }
.celula .dias { font-size: 1.25rem; font-weight: 650; line-height: 1.1; }
.celula .dias small { font-size: .7rem; font-weight: 500; opacity: .85; margin-left: .1rem; }
.celula .data { font-size: .7rem; opacity: .85; font-family: var(--mono); }
.celula.s-vencida { background: var(--vencida-fundo); border-color: var(--vencida); color: #ffc7cf; }
.celula.s-vencida .dias { color: #ff8a98; }
.celula.s-alerta { background: var(--alerta-fundo); border-color: var(--alerta); color: #ffd9b0; }
.celula.s-alerta .dias { color: #ffb15e; }
.celula.s-valida { background: var(--valida-fundo); border-color: #2f5a32; color: #c9ecc4; }
.celula.s-valida .dias { color: #96d98d; }
.celula.s-pendente { background: var(--pendente-fundo); border: 1px dashed var(--borda-forte); color: var(--texto-fraco); }
.celula .marca-pen { font-size: .62rem; opacity: .75; }

/* ----------------------------------------------------------------- linha do tempo */
.tempo { display: flex; flex-direction: column; gap: 3px; }
.tempo-escala, .tempo-linha { display: grid; grid-template-columns: minmax(150px, 30%) 1fr 104px; align-items: center; gap: .7rem; }
.tempo-escala { padding-bottom: .25rem; }
.tempo-escala .trilho { position: relative; height: 16px; }
.tempo-escala .tick { position: absolute; top: 0; transform: translateX(-50%); font-size: .68rem; color: var(--texto-fraco); font-family: var(--mono); }
.tempo-escala .tick:first-child { transform: none; }
.tempo-linha { padding: .22rem 0; border-radius: var(--raio); }
.tempo-linha:hover { background: var(--painel-alto); }
.tempo-rotulo { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: .3rem; }
.tempo-rotulo strong { color: var(--texto-forte); font-weight: 600; margin-right: .35rem; }
.tempo-trilho { position: relative; height: 14px; background: var(--painel-alto); border-radius: 2px; overflow: hidden; }
.tempo-trilho .grade { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .05); }
.tempo-trilho .limite { position: absolute; top: -2px; bottom: -2px; width: 0; border-left: 1px dashed var(--alerta); opacity: .8; }
.tempo-barra { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; min-width: 3px; }
.tempo-barra.s-vencida { background: var(--vencida); }
.tempo-barra.s-alerta { background: var(--alerta); }
.tempo-barra.s-valida { background: var(--valida); opacity: .85; }
.tempo-barra.alem { background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .18) 0 6px, transparent 6px 12px); }
.tempo-valor { font-size: .78rem; text-align: right; font-family: var(--mono); white-space: nowrap; padding-right: .3rem; }
.tempo-valor.s-vencida { color: var(--vencida); font-weight: 600; }
.tempo-valor.s-alerta { color: var(--alerta); font-weight: 600; }
.tempo-valor.s-valida { color: var(--texto-suave); }

/* ----------------------------------------------------------------- lista de eventos */
.eventos { list-style: none; margin: 0; padding: 0; }
.eventos li { display: grid; grid-template-columns: 8px 1fr auto; gap: .6rem; align-items: start; padding: .5rem .9rem; border-bottom: 1px solid var(--borda); font-size: .8rem; }
.eventos li:last-child { border-bottom: 0; }
.eventos .ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--destaque); margin-top: .4rem; }
.eventos .quando { color: var(--texto-fraco); font-size: .72rem; white-space: nowrap; font-family: var(--mono); }
.eventos .quem { color: var(--texto-suave); font-size: .74rem; }

/* ----------------------------------------------------------------- tabelas */
.tabela-rolagem { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--texto-suave); padding: .5rem .7rem; border-bottom: 1px solid var(--borda); white-space: nowrap; background: var(--painel-cab); }
td { padding: .55rem .7rem; border-bottom: 1px solid var(--borda); vertical-align: middle; }
tbody tr:hover td { background: rgba(255, 255, 255, .02); }
tr:last-child td { border-bottom: 0; }
tr.l-vencida td:first-child { box-shadow: inset 3px 0 0 var(--vencida); }
tr.l-alerta td:first-child { box-shadow: inset 3px 0 0 var(--alerta); }
tr.l-valida td:first-child { box-shadow: inset 3px 0 0 var(--valida); }
tr.l-pendente td:first-child { box-shadow: inset 3px 0 0 var(--pendente); }
.obs { font-size: .78rem; color: var(--texto-suave); max-width: 24rem; }
.prazo { white-space: nowrap; font-family: var(--mono); font-size: .85rem; }
.l-vencida .prazo { color: var(--vencida); font-weight: 600; }
.l-alerta .prazo { color: var(--alerta); font-weight: 600; }

/* ----------------------------------------------------------------- selos */
.selo { display: inline-flex; align-items: center; gap: .35rem; padding: .08rem .5rem; border-radius: 3px; font-size: .74rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.selo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-vencida.selo { color: var(--vencida); background: rgba(242, 73, 92, .12); border-color: rgba(242, 73, 92, .35); }
.s-alerta.selo { color: var(--alerta); background: rgba(255, 152, 48, .12); border-color: rgba(255, 152, 48, .35); }
.s-valida.selo { color: var(--valida); background: rgba(115, 191, 105, .12); border-color: rgba(115, 191, 105, .3); }
.s-pendente.selo { color: var(--texto-suave); background: rgba(142, 146, 155, .1); border-color: var(--borda-forte); }
.s-neutro.selo { color: var(--texto-suave); background: rgba(142, 146, 155, .1); border-color: var(--borda-forte); }
.s-neutro.selo::before { display: none; }

.legenda { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .75rem; color: var(--texto-suave); }
.legenda span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.lg-vencida::before { background: var(--vencida); }
.lg-alerta::before { background: var(--alerta); }
.lg-valida::before { background: var(--valida); }
.lg-pendente::before { background: var(--pendente-fundo); border: 1px dashed var(--borda-forte); }

/* ----------------------------------------------------------------- botões e formulários */
.botao, button.botao {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--destaque); color: #0b1220; border: 1px solid var(--destaque);
  border-radius: var(--raio); padding: .42rem .85rem; font: inherit; font-weight: 600; font-size: .85rem;
  cursor: pointer; text-decoration: none; line-height: 1.3;
}
.botao:hover { filter: brightness(1.1); text-decoration: none; }
.botao svg { width: 15px; height: 15px; }
.botao.secundario { background: var(--painel-alto); color: var(--texto); border-color: var(--borda-forte); }
.botao.perigo { background: transparent; color: var(--vencida); border-color: rgba(242, 73, 92, .5); }
.botao.pequeno { padding: .2rem .55rem; font-size: .78rem; }
.acoes { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

form.formulario { display: grid; gap: .9rem; max-width: 36rem; }
label { display: grid; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--texto); }
label.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=file], select, textarea {
  font: inherit; font-size: .88rem; color: var(--texto); background: var(--fundo-2);
  border: 1px solid var(--borda-forte); border-radius: var(--raio); padding: .45rem .6rem; width: 100%;
}
input[type=file] { padding: .35rem; }
input[type=checkbox] { accent-color: var(--destaque); width: 15px; height: 15px; }
textarea { min-height: 4.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--destaque); box-shadow: 0 0 0 2px var(--destaque-fundo); }
.dica { font-size: .75rem; color: var(--texto-suave); font-weight: 400; }
.grade-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .8rem; }
.item-confirmar.com-aviso { border-color: var(--alerta); }
.avisos { margin: 0 0 .8rem; padding: .55rem .8rem .55rem 1.6rem; border-radius: var(--raio); background: rgba(255, 152, 48, .1); border: 1px solid rgba(255, 152, 48, .3); font-size: .82rem; }

.mensagens { display: grid; gap: .5rem; }
.msg { padding: .55rem .85rem; border-radius: var(--raio); border: 1px solid var(--borda-forte); background: var(--painel); font-size: .88rem; }
.msg.erro { border-color: rgba(242, 73, 92, .55); background: rgba(242, 73, 92, .1); color: #ffb3bd; }
.msg.ok { border-color: rgba(115, 191, 105, .5); background: rgba(115, 191, 105, .1); color: #bfe8b8; }
.msg.info { border-color: rgba(87, 148, 242, .45); background: var(--destaque-fundo); color: #c3d8fb; }

.filtros { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.filtros label { min-width: 10rem; }
.paginacao { display: flex; gap: .8rem; align-items: center; justify-content: flex-end; padding: .7rem .9rem; font-size: .82rem; border-top: 1px solid var(--borda); }
.senha-gerada { font: 600 1.25rem/1.2 var(--mono); background: var(--fundo-2); border: 1px dashed var(--borda-forte); padding: .7rem 1rem; border-radius: var(--raio); display: inline-block; user-select: all; color: var(--texto-forte); }

/* ----------------------------------------------------------------- login */
.entrar { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(87, 148, 242, .12), transparent 60%), var(--fundo); }
.entrar .caixa { width: min(100%, 23rem); }
.entrar .marca { border: 0; padding: 0 0 1.2rem; justify-content: center; }
.entrar .cartao { padding: 1.5rem; }

/* ----------------------------------------------------------------- responsivo */
@media (max-width: 1100px) {
  .grade-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); background: var(--fundo); }
  .lateral { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--borda); min-width: 0; }
  .marca { border-bottom: 0; padding: .6rem .8rem; }
  .marca-texto span { display: none; }
  .nav-lateral { flex-direction: row; flex: 1 1 100%; overflow-x: auto; padding: 0 .5rem .5rem; order: 3; min-width: 0; }
  .nav-titulo { display: none; }
  .nav-item { width: auto; white-space: nowrap; }
  .nav-rodape { border: 0; padding: .4rem .8rem; margin-left: auto; display: flex; align-items: center; gap: .5rem; }
  .usuario-lateral { display: none; }
  .barra-topo { position: static; padding: .7rem .9rem; }
  main { padding: .9rem .9rem 2rem; }
  .rodape { padding: 0 .9rem 1rem; }
  .col-orgao, .col-obs { display: none; }
  .tempo-escala, .tempo-linha { grid-template-columns: minmax(110px, 38%) 1fr 74px; gap: .45rem; }
  .stat .valor { font-size: 2.1rem; }
}
.botao[disabled], button.botao:disabled { opacity: .45; cursor: not-allowed; filter: none; }

/* botão de baixar o ZIP da empresa, na matriz */
/* botão "Baixar certidões EMPRESA" dentro da matriz */
.matriz .empresa-nome a.baixar-empresa { display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem;
  padding: .18rem .5rem; font-size: .72rem; font-weight: 600; color: var(--destaque);
  border: 1px solid rgba(87, 148, 242, .45); border-radius: var(--raio); background: var(--destaque-fundo); }
.matriz .empresa-nome a.baixar-empresa:hover { background: var(--destaque); color: #0b1220; text-decoration: none; }
.matriz .empresa-nome a.baixar-empresa svg { width: 13px; height: 13px; }

/* tela Baixar certidões */
.botao.grande { padding: .6rem 1.2rem; font-size: .95rem; }
.botao.grande svg { width: 18px; height: 18px; }
.botao[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: none; }
.baixar-todas .painel-corpo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.baixar-todas h2 { font-size: 1rem; font-weight: 600; color: var(--texto-forte); margin-bottom: .2rem; }
.grade-baixar { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; align-items: start; }
.grade-baixar .painel { margin-bottom: 0; }
.grade-baixar .painel-cab h2 a { color: var(--texto-forte); }
.lista-baixar { width: 100%; }
.lista-baixar td { padding: .45rem .9rem; border-bottom: 1px solid var(--borda); font-size: .84rem; }
.lista-baixar td.direita { text-align: right; }
.lista-baixar td.prazo { white-space: nowrap; }
.lista-baixar .sem-pdf { white-space: nowrap; font-size: .74rem; color: var(--texto-suave); font-style: italic; }
.lista-baixar .aviso-linha td { font-size: .74rem; color: var(--alerta); padding-top: 0; }
.painel-rodape { padding: .7rem .9rem; display: flex; justify-content: flex-end; }
.nota-rodape { margin-top: 1rem; font-size: .8rem; }
