/* Dossiê financeiro e catálogo do plano, sem dependências de execução. */
.dossier { color: #201315; background: #faf6ef; padding: 64px 0; border-top: 6px solid #ffc300; }
.dossier .rotulo { color: #9b0713; }
.dossier h2 { color: #180709; max-width: 850px; }
.dossier h3 { font: 800 clamp(26px, 4vw, 38px)/1.08 'Barlow Condensed', sans-serif; margin: 0 0 16px; }
.dossier h4 { font-size: 20px; margin: 24px 0 10px; }
.dossier a { color: #9b0713; text-underline-offset: 4px; }
.dossier .lead { color: #514249; }
.dossier a:focus-visible, .dossier button:focus-visible, .dossier input:focus-visible, .dossier select:focus-visible, .dossier summary:focus-visible { outline: 3px solid #8d101d; outline-offset: 4px; }
.dossier-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; padding: 16px; border: 1px solid #d8c7c3; background: white; }
.dossier-index a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 14px; text-decoration: none; font-weight: 700; border: 1px solid #e5d8d2; }
.dossier-index a:hover { background: #fff0cb; }
.dossier-chapter { margin-top: 40px; border-top: 1px solid #d4bdb8; padding-top: 32px; scroll-margin-top: 100px; }
.dossier .status-note { background: #fff; border-left: 4px solid #ad1020; padding: 18px 22px; margin: 22px 0; }
.dossier .status-note p { margin: 6px 0; }
.dossier-kpis { display: flex; flex-wrap: wrap; border: 1px solid #cdbab5; background: #fff; }
.dossier-kpis > div { padding: 22px; flex: 1 1 230px; border: 1px solid #e5d8d2; }
.dossier-kpis strong { display: block; color: #aa0714; font: 800 38px/1.1 'Barlow Condensed', sans-serif; }
.dossier-kpis span { display: block; margin-top: 6px; }
.dossier .table-scroll { border: 1px solid #cebbb6; margin: 18px 0; overflow-x: auto; background: white; }
.dossier table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.dossier caption { text-align: left; padding: 16px; color: #583b40; font-weight: 600; }
.dossier th, .dossier td { border-bottom: 1px solid #e7dad4; padding: 11px 15px; vertical-align: top; text-align: left; }
.dossier thead th { background: #210c11; color: #fff; font-weight: 700; }
.dossier tbody th { font-weight: 500; min-width: 220px; }
.dossier td.number { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.dossier tbody tr:nth-child(even) { background: #faf6f0; }
.dossier tr.total { background: #fff1cb !important; font-weight: 700; }
.dossier tr.total th { font-weight: 700; }
.dossier tr.subtotal th { font-weight: 700; }
.dossier .table-note { color: #634c53; font-size: 14px; }
.dossier .ledger-year, .dossier .source-year { margin: 18px 0; background: #fff; border: 1px solid #cdb7b1; }
.dossier summary { min-height: 56px; padding: 16px 22px; font-weight: 700; cursor: pointer; }
.dossier .ledger-year > summary { background: #261017; color: #fff; font: 700 24px 'Barlow Condensed', sans-serif; }
.dossier .ledger-content { padding: 26px; }
.dossier .ledger-note { padding: 16px; background: #fff6dc; margin: 18px 0; }
.dossier .source-year > summary { color: #aa0714; font: 700 23px 'Barlow Condensed', sans-serif; }
.dossier .source-content { padding: 18px 24px; }
.dossier .source-page { border-top: 1px solid #e6d9d4; }
.dossier .source-page summary { padding-left: 10px; font-weight: 600; font-size: 15px; }
.dossier .source-page pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.65 'Barlow', sans-serif; padding: 22px; background: #f8f4ec; border-left: 3px solid #ffc300; margin: 0 0 18px; }
.dossier-search { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; padding: 20px; background: #261017; color: #fff; margin: 25px 0; }
.dossier-search label { font-weight: 600; display: block; }
.dossier-search .search-field { flex: 1 1 280px; }
.dossier-search input, .dossier-search select { width: 100%; min-height: 48px; margin-top: 8px; padding: 12px; font-size: 16px; color: #201315; border: 2px solid #fff; border-radius: 0; }
.dossier-search button { min-height: 48px; border: 2px solid #ffc300; background: #ffc300; color: #210c11; padding: 10px 18px; font-size: 16px; font-weight: 700; cursor: pointer; }
.dossier-search-results { margin: 18px 0; }
.dossier-search-results ol { list-style: none; padding: 0; }
.dossier-search-results li { padding: 18px 0; border-bottom: 1px solid #dcc9c2; }
.dossier-search-results a { font-weight: 700; display: inline-flex; min-height: 48px; align-items: center; }
.dossier-search-results p { margin-top: 4px; color: #614f55; }
.source-guide { color: #614f55; font-size: 15px; max-width: 900px; }
.dossier-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.dossier-actions a { padding: 12px 18px; border: 1px solid #b49088; min-height: 48px; display: inline-flex; align-items: center; font-weight: 600; }
.proposal-index { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; margin-bottom: 22px; }
.proposal-index a { display: flex; align-items: center; min-height: 48px; padding: 12px 16px; color: #fff; background: #2a1014; border: 1px solid #6f3940; text-decoration: none; gap: 12px; }
.proposal-index a b { color: #ffc300; font-variant-numeric: tabular-nums; }
.proposal-index a:hover { border-color: #ffc300; }
.proposal-overview { margin: 24px 0 36px; background: #fff; color: #241218; padding: 24px; border-top: 4px solid #ffc300; }
.proposal-overview h3 { color: #241218; font: 800 30px 'Barlow Condensed', sans-serif; margin-bottom: 12px; }
.proposal-overview table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 15px; }
.proposal-overview th, .proposal-overview td { padding: 12px; border-bottom: 1px solid #d7c4c0; text-align: left; vertical-align: top; }
.proposal-overview thead th { background: #261017; color: #fff; }
.proposal-overview a { color: #9b0713; display: inline-flex; align-items: center; min-height: 48px; }
.proposal-overview caption { text-align: left; padding: 10px 0; color: #63474f; }
.proposal-overview p { color: #61494f; }
.card .corpo h4 { color: #241218; margin: 22px 0 8px; font: 800 23px 'Barlow Condensed',sans-serif; }
.card .corpo ul { padding-left: 22px; margin: 10px 0 20px; }
.card .corpo li { margin: 9px 0; }
.card .proposal-spec { margin: 22px 0; padding: 18px; background: #f8f2e8; border-left: 3px solid #b60918; }
.card .proposal-spec dt { color: #9c0816; font-weight: 700; margin-top: 14px; }
.card .proposal-spec dt:first-child { margin-top: 0; }
.card .proposal-spec dd { margin: 4px 0 0; line-height: 1.6; }
.card .corpo .source-label { font-size: 14px; color: #645259; margin-top: 20px; }
.card .corpo .proposal-links { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid #e4d4d0; padding-top: 18px; }
.card .corpo .proposal-links a, .card .corpo .proposal-links button { min-height: 48px; padding: 10px 0; font-size: 16px; color: #9b0713; text-decoration: underline; border: 0; background: none; font-weight: 700; cursor: pointer; }
@media(max-width:599px) {
 .dossier { padding: 40px 0; }
 .dossier .ledger-content, .dossier .source-content, .proposal-overview { padding: 16px; }
 .dossier .source-page pre { padding: 14px; font-size: 15px; }
 .dossier-index { padding: 8px; }
 .dossier-index a { flex: 1 1 120px; font-size: 14px; }
 .proposal-index a { flex: 1 1 100%; }
 .dossier-search { padding: 16px; }
 .dossier-search > div { width: 100%; }
 .dossier-kpis strong { font-size: 32px; }
}
@media print {
 .topo,.hero,.mobile-cta,.dossier-search,.proposal-actions,#proposal-tools,.proposta-ferramentas,#ideia,.proposal-links { display:none !important; }
 .dossier,.propostas,.placar-sec { background:#fff !important; color:#111 !important; }
 .dossier .ledger-content, .dossier .source-content { padding:0; }
 .dossier table { min-width:0; font-size:10px; }
 .dossier .table-scroll { overflow:visible; }
 .dossier th,.dossier td,.dossier thead th { background:#fff !important;color:#111 !important;padding:5px; }
 .card { break-inside:avoid; box-shadow:none; }
}

#dossier-more { min-height: 48px; padding: 12px 18px; border: 1px solid #9b0713; background: #fff; color: #9b0713; font-weight: 700; font-size: 16px; cursor: pointer; }
.dossier .table-scroll:focus-visible, .proposal-overview .table-scroll:focus-visible { outline: 3px solid #9b0713; outline-offset: 4px; }
.dossier .ledger-year > summary:focus-visible { outline-color: #ffc300; outline-offset: -4px; }
.dossier .table-scroll tbody th { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 #dbc7c0; }
.dossier .table-scroll tbody tr:nth-child(even) th { background: #faf6f0; }
.dossier .table-scroll tbody tr.total th { background: #fff1cb; }
@media (max-width:599px) { .dossier .table-scroll tbody th { min-width: 155px; max-width: 180px; overflow-wrap: anywhere; } }

.dossier .chapter-back { margin: 30px 0 0; }
.dossier .chapter-back a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; text-underline-offset: 4px; }
.dossier-chapter, .dossier [id^="tabela-"], .source-page, .ledger-year, #indice-propostas { scroll-margin-top: 100px; }

@media print {
 .dossier details::details-content { display: block !important; content-visibility: visible !important; height: auto !important; }
 .dossier details > :not(summary) { display: block !important; }
 .propostas .card[hidden], .propostas .pilar[hidden], .card .corpo[hidden] { display: block !important; }
 .dossier-index, .chapter-back, .proposal-index { display: none !important; }
}
