/* =================================================================
   WF Portal — Entity Report (print-friendly)
   ================================================================= */

.wf-report {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
    color: var(--theme-text);
}

.wf-report h1 {
    color: var(--theme-primary);
    border-bottom: 2px solid var(--theme-primary);
    padding-bottom: 0.5rem;
    font-size: var(--theme-font-size-2xl);
}

.wf-report h2 {
    color: var(--theme-primary);
    margin-top: 2rem;
    font-size: var(--theme-font-size-lg);
}

.wf-report h3 {
    color: var(--theme-text-emphasis);
    font-size: var(--theme-font-size-base);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.wf-report .meta {
    color: var(--theme-text-muted);
    font-size: var(--theme-font-size-sm);
    margin-bottom: 1.5rem;
}

.wf-report table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: var(--theme-font-size-sm);
}
.wf-report th {
    background: var(--theme-background-active);
    color: var(--theme-text-emphasis);
    padding: 0.45rem 0.6rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--theme-border);
}
.wf-report td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid var(--theme-border);
}

.wf-report .child-section {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--theme-border);
    margin-bottom: 1rem;
}

.wf-report .badge-list {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    background-color: var(--theme-info-muted);
    color: var(--theme-info);
}
.wf-report .badge-sub {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    background-color: var(--theme-accent-muted);
    color: var(--theme-accent);
}

/* ── Print ────────────────────────────────────────────────────────── */

@media print {
    @page { size: portrait; margin: 0.75in; }

    .wf-navbar { display: none !important; }
    .no-print { display: none !important; }

    .wf-report {
        color: #212529;
        padding: 0;
    }
    .wf-report h1 { color: #2c3e50; border-color: #2c3e50; font-size: 16pt; }
    .wf-report h2 { color: #2c3e50; font-size: 13pt; page-break-after: avoid; }
    .wf-report h3 { page-break-after: avoid; }
    .wf-report th { background: #2c3e50; color: #fff; }
    .wf-report td { border-color: #dee2e6; }
    .wf-report table { page-break-inside: auto; }
    .wf-report tr { page-break-inside: avoid; }
    .wf-report .child-section { border-color: #dee2e6; }
    .wf-report .badge-list { background: #e7f1ff; color: #0d6efd; }
    .wf-report .badge-sub  { background: #fff3e0; color: #e65100; }
}
