/* Opmaak van het calculatierapport: rustig, zakelijk en vooral goed printbaar.
   Zelfde huisstijl als de rest, maar met wit papier als uitgangspunt. */

.rapportpagina { background: #eef0f3; }

.rapport-balk {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid var(--lijn);
    position: sticky;
    top: 0;
    z-index: 5;
}
.rapport-balk a { color: var(--blauw); font-size: 14px; }
.rapport-balk > div { display: flex; gap: 10px; align-items: center; }

.rapport {
    background: #fff;
    max-width: 210mm;
    margin: 20px auto 60px;
    padding: 18mm 16mm;
    box-shadow: 0 2px 14px rgba(0,0,0,.08);
    color: #1a2230;
    font-size: 13px;
    line-height: 1.55;
}

.rapport-kop {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blauw);
    margin-bottom: 18px;
}
.rapport-kop img { height: 46px; }
.rapport-kop .bedrijf { text-align: right; font-size: 12px; color: var(--grijs); line-height: 1.5; }

.rapport h1 { font-size: 21px; font-weight: 600; margin-bottom: 2px; }
.rapport .ondertitel { color: var(--grijs); font-size: 12.5px; margin-bottom: 20px; }
.rapport h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 22px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--lijn);
}
.rapport h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 8px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: var(--blauw-licht);
    padding: 6px 10px;
    border-radius: 5px;
}

.blok { margin-bottom: 6px; }

.gegevens { width: 100%; border-collapse: collapse; }
.gegevens th {
    text-align: left;
    font-weight: 500;
    color: var(--grijs);
    font-size: 11.5px;
    padding: 4px 10px 4px 0;
    white-space: nowrap;
    width: 1%;
}
.gegevens td { padding: 4px 22px 4px 0; font-weight: 500; }

.samenvatting-tabel { width: 100%; border-collapse: collapse; }
.samenvatting-tabel td { padding: 6px 0; border-bottom: 1px solid #f0f0f2; }
.samenvatting-tabel tr:last-child td { border-bottom: none; font-weight: 600; }

.rapport-ruimte { margin-bottom: 20px; break-inside: avoid; }

.invoer-tabel { width: 100%; border-collapse: collapse; margin-bottom: 8px; font-size: 11.5px; }
.invoer-tabel th {
    text-align: left; font-weight: 500; color: var(--grijs);
    padding: 3px 8px 3px 0; white-space: nowrap;
}
.invoer-tabel td { padding: 3px 18px 3px 0; }

.rapport .specificatie { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.rapport .specificatie td { padding: 5px 8px; border-top: 1px solid #f0f0f2; font-size: 12.5px; }
.rapport .specificatie .correctie td { color: var(--grijs); }
.rapport .specificatie .uitleg { display: block; font-size: 10.5px; color: #9aa0a8; }
.rapport .specificatie .tussen td { font-weight: 600; border-top: 1px solid var(--lijn); }
.rapport .specificatie .eind td {
    font-weight: 700; border-top: 1.5px solid #1a2230; background: var(--vlak);
}

.unit-tabel { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 12.5px; }
.unit-tabel th {
    text-align: left; font-weight: 500; color: var(--grijs);
    padding: 4px 12px 4px 0; width: 38%; vertical-align: top;
}
.unit-tabel td { padding: 4px 0; }

.rapport-meldingen { list-style: none; margin: 8px 0 0; }
.rapport-meldingen li {
    font-size: 11.5px;
    padding: 4px 0 4px 12px;
    border-left: 2px solid var(--lijn);
    margin-bottom: 3px;
    color: var(--grijs);
}
.rapport-meldingen .fout { border-left-color: var(--rood); color: #8c1b26; }
.rapport-meldingen .waarschuwing { border-left-color: #e8a33d; }
.rapport-meldingen .info { border-left-color: var(--blauw); }

.rapport-waarschuwing {
    background: #fff7e6;
    border: 1px solid #f0d9a8;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 12px;
    color: #7a5a12;
    margin-bottom: 14px;
}

.aannames { margin-left: 18px; font-size: 12.5px; }
.aannames li { margin-bottom: 4px; }

.verdeelwijze { font-size: 12.5px; color: var(--grijs); margin-bottom: 10px; }

.rapport-voet { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--lijn); }
.rapport-voet .disclaimer {
    background: var(--vlak); border: 1px solid var(--lijn); border-radius: 5px;
    padding: 10px 12px; font-size: 11px; color: var(--grijs); line-height: 1.55;
}
.rapport-voet .klein { margin-top: 8px; font-size: 10.5px; color: #9aa0a8; }

/* ── afdrukken ── */
@media print {
    .niet-printen { display: none !important; }
    .rapportpagina { background: #fff; }
    .rapport {
        max-width: none; margin: 0; padding: 0;
        box-shadow: none; font-size: 10.5pt;
    }
    .rapport-ruimte, .unit-tabel, table { break-inside: avoid; }
    .rapport h2 { break-after: avoid; }
    @page { size: A4; margin: 16mm 14mm; }
}
