/* Isolated A4 report layout. Workspace appearance is unchanged. */
.report-output-dialog {
    width: min(560px, calc(100% - 32px));
    border: 0;
    border-radius: 12px;
    padding: 24px;
    color: #122d43;
    font-family: Sansita, sans-serif;
}
.report-output-dialog::backdrop { background: #122d43a6; }
.report-output-dialog h2 { margin: 0 0 8px; }
.report-output-dialog p { margin: 0 0 20px; }
.report-output-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.report-output-choices button { display: grid; gap: 10px; padding: 20px; background: #f0f4f6; border: 2px solid #122d43; text-align: left; }
.report-output-choices strong { font-size: 20px; }
.report-output-choices span { font-size: 14px; }
.report-output-choices button:hover { border-color: #ee921e; }
.report-output-dialog button:focus-visible { outline: 3px solid #a535ff; outline-offset: 2px; }
.report-preview-toolbar { position: sticky; top: 0; z-index: 1000; display: flex; gap: 16px; align-items: center; padding: 12px 20px; color: white; background: #122d43; font-family: Sansita, sans-serif; }
.report-preview-toolbar span { flex: 1; font-size: 13px; }
.report-preview-toolbar button { background: white; color: #122d43; }
body.report-preview { background: #dbe2e7; }
body.report-preview > *:not(#printReport):not(.report-preview-toolbar) { display: none !important; }
#printReport.report-sheets {
    width: 190mm;
    padding: 0;
    color: #122d43;
    font-family: Sansita, sans-serif;
}
body.report-preview #printReport.report-sheets { position: static; z-index: auto; margin: 20px auto; background: transparent; }
#printReport.report-sheets * { box-sizing: border-box; }
.report-sheets .report-page {
    width: 190mm;
    height: 277mm;
    display: grid;
    grid-template-rows: 64px 128px minmax(0, 1fr) 230px 22px;
    gap: 10px;
    padding: 0;
    margin: 0 0 24px;
    background: white;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
}
.report-sheets .report-page:last-child { break-after: auto; page-break-after: auto; }
.report-page-heading { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: #122d43; color: #fff; border-bottom: 3px solid #ee921e; }
.report-page-heading img { width: 42px; height: 42px; object-fit: contain; }
.report-page-heading small { font-size: 11px; }
.report-page-heading h2 { margin: 0; font-size: 24px; line-height: 1.1; text-transform: uppercase; }
.report-page-heading > span { margin-left: auto; font-size: 11px; }
.report-page-information { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 16px; }
.report-page-information dl { margin: 0; padding: 8px 12px; display: grid; grid-template-rows: repeat(6, minmax(0, 1fr)); background: #f0f4f6; border: 1px solid #d7dfe3; border-radius: 6px; }
.report-page-information dl > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 6px; }
.report-page-information dt { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #576571; }
.report-page-information dd { margin: 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.report-navigator { padding: 7px 10px; background: #f0f4f6; border: 1px solid #d7dfe3; border-radius: 6px; min-height: 0; }
.report-sheets h3 { margin: 0 0 8px; font-size: 12px; color: inherit; }
.report-navigator h3 { font-size: 10px; margin: 0; }
.report-navigator svg { display: block; width: 100%; height: calc(100% - 12px); }
.report-drawing { min-height: 0; border: 1px solid #d7dfe3; border-radius: 6px; overflow: hidden; }
.report-surface-svg { width: 100%; height: 100%; display: block; }
.report-page-results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; min-height: 0; }
.report-sheets .print-measurement-card,
.report-sheets .report-surface-details { margin: 0; padding: 12px; border: 1px solid #d7dfe3; border-radius: 6px; background: #f0f4f6; min-height: 0; }
.report-sheets .print-measurement-table { font-size: 12px; line-height: 1.15; }
.report-sheets .print-measurement-table th,
.report-sheets .print-measurement-table td { padding: 3px 4px; color: inherit; }
.report-sheets .print-measurement-table td { text-align: right; }
.report-surface-details p { margin: 0 0 8px; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.report-sheets .print-opening-card { padding: 0; border: 0; background: transparent; }
.report-sheets .print-opening-card h3 { display: none; }
.report-sheets .print-opening-table { font-size: 11px; }
.report-sheets .print-opening-table th,
.report-sheets .print-opening-table td { padding: 4px 3px; }
.report-sheets footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 5px; border-top: 1px solid #d7dfe3; color: #576571; font-size: 10px; }
.report-print { color: #111 !important; }
.report-print .report-page-heading { background: white; color: #111; border-bottom: 2px solid #111; }
.report-print .report-page-heading img { display: none; }
.report-print .report-page-information dl,
.report-print .report-navigator,
.report-print .print-measurement-card,
.report-print .report-surface-details { background: white; border-color: #aaa; border-radius: 0; }
.report-print .report-drawing { border-color: #bbb; border-radius: 0; }
.report-print dt,
.report-print footer { color: #333; }
@media (max-width: 700px) {
    .report-output-choices { grid-template-columns: 1fr; }
    .report-preview-toolbar { flex-wrap: wrap; gap: 8px; }
    .report-preview-toolbar span { display: none; }
    body.report-preview #printReport.report-sheets { margin: 12px; }
}
@media print {
    @page { size: A4 portrait; margin: 10mm; }
    .report-preview-toolbar { display: none !important; }
    #printReport.report-sheets { width: 190mm !important; padding: 0 !important; margin: 0 !important; }
    .report-sheets .report-page { margin: 0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
