/* Impressão / "Salvar como PDF": tema claro, sem navegação nem controles, tabelas
   inteiras (sem rolagem nem truncamento). Carregada com media="print". */
@layer print {
    :root {
        --bg: #fff;
        --bg-deep: #f4f6f5;
        --panel: #fff;
        --panel-solid: #fff;
        --panel-soft: #f4f6f5;
        --panel-raised: #fff;
        --panel-hover: #fff;
        --line: #d5ddd9;
        --border: #c4cec9;
        --border-strong: #a9b5b0;
        --text: #111;
        --text-body: #222;
        --text-dim: #3d4a45;
        --text-faint: #56645e;
        --neutral-1: #6b7a74;
        --neutral-2: #a4b0ab;
        --neutral-3: #cfd8d4;
        --neutral-bg: #eef2f0;
        --chart-rest: #b7c3be;
        --chart-gap: #fff;
        --accent: #2f7d00;
        --brand: #2f7d00;
        --accent-soft: #eef7e4;
        --accent-line: #8fbf6a;
        --warning: #8a6500;
        --warning-bg: #fdf5d9;
        --warning-line: #e0c56a;
        --sev-high: #9a4a00;
        --sev-high-bg: #fde9d8;
        --sev-high-line: #e4a36d;
        --danger: #b3002d;
        --danger-text: #b3002d;
        --danger-bg: #fbe3e9;
        --danger-line: #e493a6;
        --link-underline: #888;
        --space-section: 16px;
    }

    @page { margin: 14mm 12mm; }

    html { color-scheme: light; }
    body { background: #fff; color: var(--text); font-size: 10.5pt; }
    * { box-shadow: none; text-shadow: none; }
    .badge, .bar-col > *, .quality-dot, .dot-inline, .chart-legend .dot, .rule-bar-fill, .stack-bar > *, .donut-chart {
        -webkit-print-color-adjust: exact; print-color-adjust: exact;
    }

    /* Só o conteúdo: navegação, busca, filtros e ações não servem no papel. */
    .sidebar, .sidebar-backdrop, .topbar, .page-toolbar, .live-indicator, .no-print,
    .card.is-filters, .row-actions, th.col-sticky, td.col-sticky, .pagination, .feedback-row,
    .queue-nav, .alert-header .actions, .info-btn, .tip, button, .button { display: none; }

    .app-shell, .app-main { display: block; }
    .content { max-width: none; padding: 0; }
    .card, .indicator-card, .verdict-panel { background: #fff; border-color: var(--border); break-inside: avoid; }
    .card.is-action::before, .card.is-action::after, .verdict-panel::before, .verdict-panel::after { display: none; }
    h1, h2, h3 { break-after: avoid; }

    /* Tabelas completas: sem rolagem horizontal, sem corte de texto. */
    .table-scroll { overflow: visible; }
    .table-scroll::after { display: none; }
    .table-scroll table { min-width: 0; }
    td.truncate, td.col-fill, .cell-sub { white-space: normal; overflow: visible; max-width: none; }
    th.col-fill, td.col-fill { width: auto; }
    thead { display: table-header-group; }
    tr { break-inside: avoid; }
    tbody tr:hover td { background: none; }

    /* Abas: imprime todos os painéis, não só o visível. */
    .tabbar { display: none; }
    .tab-panel[hidden] { display: block; }

    a { color: var(--text); text-decoration: none; }
    .grid-3, .grid-4, .grid-5 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .span-2 { grid-column: span 2; }
    .detail-layout { display: block; }
    .detail-layout > aside, .detail-layout > .detail-aside { width: auto; }
    .hero-value { color: var(--text); }
}
