/* Contraste compartilhado dos painéis. Mantém layout, dados e navegação. */
html body .content{--pc-surface:#ffffff;--pc-soft:#f1f5fa;--pc-hover:#e4edfa;--pc-ink:#24334e;--pc-muted:#4b5d75;--pc-line:#bdcadb;--pc-head:#203452;--pc-head-text:#ffffff;--pc-field:#ffffff;--pc-focus:#3449bb}
html[data-pulso-theme=dark] body.internados-theme .content{--pc-surface:#101e33;--pc-soft:#172942;--pc-hover:#233e60;--pc-ink:#eef5ff;--pc-muted:#b8c9df;--pc-line:#607996;--pc-head:#253f60;--pc-head-text:#ffffff;--pc-field:#172942;--pc-focus:#a9b8ff}
html body .content :is(.card,.chart-card,.censo-graphic-card,.censo-viz,.censo-stat,.kpis article,.export-toolbar,.panel-idle){background:var(--pc-surface);color:var(--pc-ink);border-color:var(--pc-line)}
html body .content :is(.card-head,.chart-card>header,.censo-viz-head){background:var(--pc-surface);color:var(--pc-ink);border-color:var(--pc-line)}
html body .content :is(.card-head h2,.card-head h3,.chart-card h3,.censo-viz-head h3,.panel-idle h2){color:var(--pc-ink);opacity:1}
html body .content :is(.card-head p,.card-head small,.chart-card header p,.censo-viz-head p,.export-toolbar small,.panel-idle p,.censo-scroll-help,.censo-category-count,.censo-stat>small,.censo-stat-top,.kpis article small){color:var(--pc-muted);opacity:1;font-size:13px;line-height:1.55}
html body .content :is(.kpis article>strong,.censo-stat>strong){color:var(--pc-ink);opacity:1}
html body .content .kpis article>span{color:var(--pc-muted);opacity:1;font-size:13px}
html body .content .table-tools{background:var(--pc-surface);border-color:var(--pc-line)}
html body .content .table-wrap{overflow:auto;scrollbar-color:#6d809b var(--pc-soft)}
html body .content table{color:var(--pc-ink);font-size:13px}
html body .content table thead th{background:var(--pc-head)!important;color:var(--pc-head-text)!important;border-color:var(--pc-line);font-size:13px!important;font-weight:700;line-height:1.5;padding:13px 15px;opacity:1;white-space:normal;vertical-align:middle}
html body .content table thead th :is(button,span,a,svg){color:var(--pc-head-text)!important;opacity:1;font-size:inherit!important}
html body .content table thead th :is(.table-sort,.nir-sort-button){background:transparent!important;border:0;box-shadow:none;padding:0;text-transform:none;letter-spacing:normal;font:inherit!important;color:var(--pc-head-text)!important;line-height:1.5!important;text-align:left}
html body .content table:not(.nir-grid){min-width:100%;width:max-content;max-width:none}
html body .content table:not(.nir-grid) :is(th,td){min-width:120px;max-width:420px;overflow-wrap:anywhere}
html body .content table tbody td{background:var(--pc-surface);color:var(--pc-ink);border-color:var(--pc-line);font-size:13px;line-height:1.6;padding:12px 15px}
html body .content table tbody tr:nth-child(even)>td{background:var(--pc-soft)}
html body .content table tbody tr:hover>td{background:var(--pc-hover)}
html body .content .nir-grid tbody tr:has([data-row-select]:checked)>td{background:var(--pc-hover);box-shadow:inset 0 1px var(--pc-line)}
html body .content :is(.table-tools input,.nir-search input){background:var(--pc-field);color:var(--pc-ink);border:1px solid var(--pc-line);font-size:14px;min-height:42px;opacity:1}
html body .content :is(.table-tools input,.nir-search input)::placeholder{color:var(--pc-muted);opacity:1}
html body .content :is(.censo-ring-legend,.censo-values){color:var(--pc-ink)}
html body .content :is(.censo-legend-numbers small,.censo-values small){color:var(--pc-muted);opacity:1}
html body .content :is(.table-tools input,.nir-search input,.table-sort,.nir-sort-button,.censo-values summary):focus-visible{outline:3px solid var(--pc-focus);outline-offset:3px}
@media print{html body .content{--pc-surface:#fff;--pc-soft:#f1f5fa;--pc-ink:#24334e;--pc-muted:#4b5d75;--pc-head:#203452;--pc-head-text:#fff}html body .content table thead th{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
