/* Lista de presença para impressão (reuniões de comissão e sessões plenárias) — 24/11/2026 */
:root { --navy: #0b2545; --gold: #b08d57; --line: #cbd5e1; --muted: #475569; --ok: #15803d; --falta: #b91c1c; --aguarda: #a16207; }
* { box-sizing: border-box; }
body { margin: 0; background: #e9edf2; font-family: 'Inter', system-ui, sans-serif; color: #1e293b; font-size: 14px; }
.barra { position: sticky; top: 0; z-index: 2; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 12px; background: var(--navy); }
.barra a, .barra button { font: 600 14px 'Inter', sans-serif; padding: 9px 16px; border-radius: 9px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; text-decoration: none; min-height: 42px; display: inline-flex; align-items: center; }
.barra button { background: #fff; color: var(--navy); border-color: #fff; }
.folha { width: 210mm; min-height: 297mm; margin: 18px auto; background: #fff; padding: 16mm 15mm 14mm; box-shadow: 0 2px 14px rgba(15,23,42,.15); }
.cab { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.cab img { width: 64px; height: auto; }
.cab .inst strong { display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: 19px; color: var(--navy); letter-spacing: .02em; }
.cab .inst span { display: block; font-size: 12px; color: var(--muted); }
.cab .doc { margin-left: auto; text-align: right; font-size: 11px; color: var(--muted); }
.cab .doc b { display: block; font-size: 13px; color: var(--navy); letter-spacing: .08em; }
h1 { font-family: 'Source Serif 4', Georgia, serif; font-size: 20px; color: var(--navy); text-align: center; margin: 16px 0 2px; }
.coms { text-align: center; font-size: 13px; color: #334155; margin: 0 0 12px; }
.dados { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 14px; }
.dados div { padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dados div:nth-child(odd) { border-right: 1px solid var(--line); }
.dados div:nth-last-child(-n+2) { border-bottom: 0; }
.dados small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dados .largo { grid-column: 1 / -1; border-right: 0 !important; }
h2 { font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin: 16px 0 6px; padding-left: 8px; border-left: 4px solid var(--gold); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid #64748b; padding: 5px 6px; }
td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.n { width: 28px; color: var(--muted); }
td.cargo { width: 92px; }
td.sit { width: 140px; font-weight: 700; }
td small { color: var(--muted); }
.presente { color: var(--ok); } .falta { color: var(--falta); } .ausente { color: var(--falta); } .aguardando { color: var(--aguarda); } .nao { color: #94a3b8; font-weight: 400; }
.total { text-align: right; font-size: 12px; color: #334155; margin-top: 4px; }
.resumo { margin-top: 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; font-size: 13px; }
.legenda, .rodape { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.rodape { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 18px; }
.vazio { padding: 14px; text-align: center; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); }
@page { size: A4; margin: 12mm 12mm 14mm; @bottom-right { content: "Página " counter(page) " de " counter(pages); font: 9pt sans-serif; color: #64748b; } }
@media print {
  body { background: #fff; font-size: 11pt; }
  .barra { display: none; }
  .folha { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
  tr, .resumo { break-inside: avoid; }
  h2 { break-after: avoid; }
  td { padding: 4px 6px; }
  h1 { margin-top: 12px; }
  .dados { margin-bottom: 10px; }
  .rodape { margin-top: 12px; break-inside: avoid; }
  .presente, .falta, .ausente, .aguardando { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media screen and (max-width: 820px) {
  .folha { width: auto; min-height: 0; margin: 0; padding: 16px 12px; box-shadow: none; }
  .cab .doc { display: none; }
  .dados { grid-template-columns: 1fr; }
  .dados div:nth-child(odd) { border-right: 0; }
  .dados div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  td.cargo { width: auto; } td.sit { width: auto; }
}
.h1-solo { margin-bottom: 14px; }
/* Relatório por vereador */
th.num, td.num { text-align: right; }
td.num.presente, td.num.falta { font-weight: 700; }
.resumo-tab { margin-bottom: 10px; }
.resumo-tab td { background: #f8fafc; }
.meses-tab { margin-top: 4px; table-layout: fixed; }
.meses-tab th, .meses-tab td { text-align: center; padding: 4px 2px; font-size: 12px; }
.meses-tab td { border: 1px solid var(--line); }
td.sit .presente, td.sit .falta, td.sit .ausente, td.sit .aguardando { font-weight: 700; }
td.num.zero { color: #94a3b8; }
td.sit small { font-weight: 400; }
