/* =========================================================================
   Impressão: sempre no tema claro, sem navegação, sem botões.
   Carregado com media="print".
   ========================================================================= */

:root,
:root[data-theme="dark"],
:root:not([data-theme="light"]) {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f5f6f8;
    --surface-3: #e8ebf0;
    --border: #d9dde3;
    --border-strong: #c3c9d2;
    --text: #101828;
    --text-2: #344054;
    --text-3: #475467;
    --accent-text: #5b21b6;
    --accent-soft: #f4f0ff;
    --accent-border: #dcd0fe;
    --success-text: #067647;
    --success-soft: #ecfdf3;
    --success-border: #abefc6;
    --danger-text: #b42318;
    --danger-soft: #fef3f2;
    --danger-border: #fecdca;
    --warning-text: #b54708;
    --warning-soft: #fffaeb;
    --warning-border: #fedf89;
    --info-text: #026aa2;
    --info-soft: #f0f9ff;
    --info-border: #b9e6fe;
    --neutral-text: #475467;
    --neutral-soft: #f2f4f7;
    --neutral-border: #e4e7ec;
    --opt-roxo: #7c3aed;
    --opt-azul: #0284c7;
    --opt-verde: #16a34a;
    --opt-dourado: #d97706;
    --opt-vermelho: #dc2626;
    --opt-cinza: #64748b;
    --shadow-sm: 0 0 #0000;
    --shadow-md: 0 0 #0000;
    --shadow-lg: 0 0 #0000;
}

@page {
    size: A4;
    margin: 14mm 12mm;
}

html,
body {
    background: #ffffff !important;
    color: #101828;
    font-size: 11pt;
}

* {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.sidebar,
.mobile-bar,
.sidebar-backdrop,
.public-bar,
.public-footer,
.skip-link,
.avisos-votacao,
.page-actions,
.back-link,
.anchor-nav,
.toolbar,
.filters-toggle,
.no-print,
.btn,
.popover,
form .form-actions,
.theme-toggle,
.video-embed-wrap {
    display: none !important;
}

.app-shell { display: block; }

.main,
.public-main {
    padding: 0 !important;
    max-width: none !important;
}

.page { max-width: none; }

.card,
.stat-card,
.panel {
    box-shadow: none !important;
    break-inside: avoid;
}

.card { padding: 12pt; }

.table-wrapper {
    overflow: visible;
    border-color: #d9dde3;
}

.data-table {
    min-width: 0;
    font-size: 9pt;
}

.data-table th,
.data-table td { padding: 5pt 7pt; }

.data-table thead { display: table-header-group; }

.data-table tr { break-inside: avoid; }

/* Tabelas viram tabela de novo mesmo em telas estreitas */
.table-cards thead {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
}

.table-cards tbody { display: table-row-group; }
.table-cards tr { display: table-row; }
.table-cards td { display: table-cell; text-align: left; }
.table-cards td::before { content: none !important; }
.table-cards--expandable tr td { display: table-cell !important; }
.table-cards--expandable tbody tr::after { content: none !important; }

h1 { font-size: 18pt; }
h2 { font-size: 13pt; }

a { color: inherit; text-decoration: none; }

canvas.has-print-img { display: none !important; }

.print-chart-img {
    display: block !important;
    max-width: 100%;
    height: auto;
}

.print-only { display: block !important; }

.status-pill.is-aberta::before { animation: none; }

details:not([open]) > :not(summary) { display: none; }

details > summary { list-style: none; }

.disclosure > summary .disclosure-chevron { display: none; }
