.reports-management{display:grid;gap:20px}.reports-management .admin-hero{margin-bottom:0}.report-filter-card,.report-preview-card{border:1px solid #e1e9f2;border-radius:20px;padding:24px;box-shadow:0 5px 22px #163b6708;margin:0;min-width:0}.report-filter-card form{display:grid;grid-template-columns:1.4fr 1fr 1fr auto auto;gap:12px;align-items:end}.report-filter-card label{font-size:12px;color:#6a7f97}.report-filter-card select{display:block;width:100%;height:44px;border:1px solid #dae4ef;border-radius:10px;padding:8px;margin-top:8px;font:inherit;background:white}.report-filter-card select:disabled{opacity:.5}.report-title-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:2px solid #d6b461;padding-bottom:20px;margin-bottom:20px}.report-title-row h2{margin:0;color:#25476f;font-size:22px}.report-title-row p{font-size:12px;color:#8191a4}.report-export-actions{display:flex;gap:8px;flex-wrap:wrap}.report-export-actions a{text-decoration:none;font-size:12px}.report-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:20px 0}.report-summary-grid article{padding:15px;border:1px solid #e6ecf4;border-radius:12px;background:#f6f9fd}.report-summary-grid span{display:block;font-size:11px;color:#7b8da3}.report-summary-grid b{display:block;font-size:25px;color:#315782;margin-top:8px}.report-scope-note{font-size:12px;line-height:1.9;color:#6d839c;background:#f6f9fd;padding:14px;border-radius:12px}.report-data-section{margin-top:28px}.report-data-section h3{font-size:16px;line-height:1.9;color:#315476}.report-section-note{font-size:11px;color:#7d8fa3;line-height:1.8}.report-table-scroll{overflow:auto;border:1px solid #e3eaf2;border-radius:12px}.report-data-table{width:100%;border-collapse:collapse;font-size:12px}.report-data-table th{background:#edf3fa;color:#486582;font-size:11px;text-align:left;padding:12px}.report-data-table td{padding:12px;border-bottom:1px solid #edf1f6;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere;min-width:50px;max-width:440px}.report-data-table tbody tr:nth-child(even){background:#fafbfd}.report-print{font-family:var(--ptna-font);color:#294a70;padding:30px;max-width:1400px;margin:auto}.print-toolbar{display:flex;align-items:center;gap:20px;padding:15px;background:#f1f5fa;margin-bottom:25px}.print-toolbar button{background:#244b76;color:white;border:0;border-radius:8px;padding:12px;font:inherit;cursor:pointer}.print-toolbar span{font-size:12px}
@media(max-width:800px){.report-filter-card form{grid-template-columns:1fr 1fr}.report-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-title-row{align-items:flex-start;flex-direction:column}.report-filter-card,.report-preview-card{padding:16px}.report-data-table{min-width:560px}}
@media print{@page{size:A4 landscape;margin:12mm}.print-toolbar{display:none!important}.report-print{padding:0;max-width:none;font-size:10pt}.report-summary-grid{grid-template-columns:repeat(6,1fr)}.report-title-row{display:block}.report-table-scroll{overflow:visible;border-radius:0}.report-data-table{min-width:0!important;font-size:9pt;table-layout:fixed}.report-data-table td,.report-data-table th{padding:6px;max-width:none;min-width:0}.report-data-table thead{display:table-header-group}.report-data-table tr{break-inside:avoid}.report-data-section h3{break-after:avoid}.report-summary-grid article{break-inside:avoid}body{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Scope away from the legacy global header/form rules. */
.reports-management .report-title-row{background:none;box-shadow:none;border-radius:0;padding:0 0 20px;color:#25476f;min-height:0}
.reports-management .report-filter-card #reportFilters{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);align-items:end}
.reports-management .report-filter-card .generate-btn{width:auto;justify-self:start}
.reports-management .report-filter-card .access-secondary{justify-self:start;width:auto}
.report-export-actions .generate-btn{display:inline-flex;align-items:center;background:#244b76;color:white;padding:11px 15px;border-radius:10px;border:1px solid #244b76;white-space:nowrap}
@media(max-width:800px){.reports-management .report-filter-card #reportFilters{grid-template-columns:1fr}.reports-management .report-title-row{flex-direction:column;align-items:flex-start}.reports-management .admin-hero{gap:10px;flex-wrap:wrap}}

.report-province-field{min-width:0;color:#6a7f97;font-size:12px}.report-province-picker{position:relative;margin-top:8px}.report-province-picker summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #dae4ef;border-radius:10px;background:white;color:#476582;cursor:pointer}.report-province-picker summary::-webkit-details-marker{display:none}.report-province-picker summary span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-province-options{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 8px);min-width:240px;padding:14px;background:white;border:1px solid #dfe8f3;border-radius:15px;box-shadow:0 15px 45px #23496d20}.report-province-options #reportProvinceSearch{box-sizing:border-box;width:100%;padding:10px;border:1px solid #e1e8f2;border-radius:8px;font:inherit;margin:0}.report-province-tools,.report-province-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:10px 0}.report-province-options button{background:#f1f5fb;border:1px solid #e0e8f3;border-radius:7px;padding:7px 9px;font:inherit;color:#527298;cursor:pointer}.report-province-list{max-height:240px;overflow:auto;display:grid;gap:3px}.report-province-list label{display:flex!important;align-items:center;gap:9px;padding:8px;border-radius:8px;font-size:12px!important;color:#4b6583;cursor:pointer}.report-province-list label:hover{background:#f5f8fc}.report-province-list input{width:16px!important;height:16px!important;margin:0!important;accent-color:#6b8ebc}.report-province-list label[hidden],#reportProvinceEmpty[hidden]{display:none!important}.report-province-footer{border-top:1px solid #edf1f6;margin:10px 0 0;padding-top:10px}.report-province-footer small{font-size:10px;color:#92a1b3}#reportProvinceDone{background:#416791;color:white}.report-filter-card{overflow:visible!important}
@media(max-width:600px){.report-province-options{min-width:0}.report-province-list{max-height:210px}}

/* V3.42.30: align filters and keep related actions together. */
.reports-management #reportFilters>label,.reports-management #reportFilters>.report-province-field{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;line-height:1.8}
.reports-management #reportFilters>label>select{box-sizing:border-box;height:46px;min-width:0;margin:0;padding:8px 12px}
.reports-management #reportFilters .report-province-picker{margin:0}
.reports-management #reportFilters .report-province-picker>summary{height:46px;min-height:46px}
.reports-management #reportFilters .report-filter-actions{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:4px}
.reports-management #reportFilters .report-filter-actions>*{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;grid-column:auto;width:auto}
.reports-management .report-title-row>div:first-child{flex:1;min-width:0}
.reports-management .report-title-row p{line-height:1.8;overflow-wrap:anywhere;margin-bottom:0}
.reports-management .report-export-actions{flex:0 0 auto;align-items:center;justify-content:flex-end;gap:10px}
.reports-management .report-export-actions>a{box-sizing:border-box;min-height:42px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;margin:0}
@media(max-width:800px){.reports-management .report-export-actions{justify-content:flex-start;width:100%}}
@media(max-width:420px){.reports-management .report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-management .report-export-actions>a{white-space:normal}}

/* Detailed analysis keeps profile groups explicit and remains scoped to reports. */
.report-profile-filter[hidden]{display:none!important}.analysis-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.report-analysis-intro{border:1px solid #dae5ef;border-radius:16px;padding:20px;background:#fbfdff}.report-analysis-intro h3{line-height:1.8;margin-top:0}.report-group-label{color:#71869a;font-size:12px;border-top:2px solid #d5b66e;padding-top:18px}.report-analysis-toc{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.report-analysis-toc a{padding:8px 12px;border:1px solid #dbe6f3;background:white;border-radius:8px;font-size:12px;color:#254b76;text-decoration:none}.report-analysis-empty{padding:14px;background:#fff8e7;color:#775817;border-radius:10px}.report-data-section{scroll-margin-top:20px}.report-analysis-intro p{line-height:1.9;font-size:13px}@media(max-width:650px){.analysis-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-management .report-filter-card #reportFilters{grid-template-columns:minmax(0,1fr)}.report-analysis-intro{padding:12px}.report-summary-grid b{font-size:21px}}@media print{.report-analysis-toc{display:none}.report-analysis-intro{break-inside:avoid}.analysis-summary{grid-template-columns:repeat(4,1fr)}}

@media print{.report-analysis-table{table-layout:auto}.report-analysis-table th{white-space:normal;min-width:38px}.report-analysis-table td{font-size:8pt;padding:5px;line-height:1.55}.report-group-label{margin-top:12px;padding-top:10px}.report-analysis-table td:first-child{max-width:250px}.report-analysis-table td:nth-child(2){max-width:300px}}
.comparison-print h2{font-size:17px;margin:12px 0}.comparison-method,.comparison-coverage{font-size:12px;line-height:1.7;margin:6px 0}.comparison-question{margin-top:16px}.comparison-table{table-layout:fixed}.comparison-table th,.comparison-table td{padding:6px 8px;line-height:1.65;white-space:normal}.comparison-table th:first-child,.comparison-table td:first-child{width:40%}.comparison-table td:not(:first-child){text-align:center}.comparison-table .comparison-question-title{font-size:13px;color:#244b76;background:#e7eef8;text-align:left;padding:8px}.comparison-denominator{font-weight:normal;font-size:11px}.comparison-quality{font-size:10px;line-height:1.6;margin:4px 0 0;color:#52677f}.comparison-navigation a{color:#244b76}.comparison-text-table th:first-child,.comparison-text-table td:first-child{width:65%}.comparison-text-table td:first-child{white-space:pre-wrap;overflow-wrap:anywhere}
@media print{.report-print:has(.comparison-print) .report-title-row{padding-bottom:8px;margin-bottom:8px}.report-print:has(.comparison-print) .report-title-row h1{font-size:16pt;margin:0 0 5px}.report-print:has(.comparison-print) .report-title-row h2{font-size:12pt}.comparison-print h2{font-size:12pt}.comparison-method,.comparison-coverage{font-size:9pt}.comparison-question{margin-top:10px}.comparison-table{font-size:9pt}.comparison-table th,.comparison-table td{padding:4px 6px;line-height:1.6}.comparison-table .comparison-question-title{font-size:10pt;padding:5px 6px}.comparison-table thead{display:table-header-group}.comparison-denominator{font-size:8pt}.comparison-quality{font-size:8pt;break-before:avoid}.comparison-text-table tr{break-inside:auto}}

.report-brief{margin:18px 0;padding:16px;border:1px solid #dce5ef;border-radius:12px}.report-brief p{font-size:12px;line-height:1.7}.brief-profiles{display:grid;grid-template-columns:1fr 1fr;gap:18px}.brief-profiles p{margin:3px 0}@media print{.report-brief{padding:0;border:0;break-after:page}.report-brief .report-data-table td,.report-brief .report-data-table th{padding:3px 6px;font-size:9pt}.report-brief h2{font-size:13pt}.report-brief h3{font-size:10pt}.report-brief p{font-size:9pt}}

@media screen and (max-width:600px){.report-brief .report-data-table{min-width:0;table-layout:fixed}.report-brief .report-data-table th,.report-brief .report-data-table td{min-width:0;padding:8px 5px;overflow-wrap:anywhere;white-space:normal;line-height:1.8}.report-brief .brief-profiles{grid-template-columns:1fr;gap:10px}.report-brief h2{font-size:18px;line-height:1.7}}

.report-absence tbody tr:last-child{font-weight:700;background:#edf3fa}@media screen and (max-width:600px){.report-absence .report-data-table{min-width:0;table-layout:fixed}.report-absence th,.report-absence td{padding:8px 4px;min-width:0;overflow-wrap:anywhere;line-height:1.8}}@media print{.report-absence td,.report-absence th{padding:1px 6px;font-size:9pt;line-height:1.5}}

@media print{.report-absence{break-inside:avoid;margin-top:12px}.report-absence h3{margin:0 0 6px}.report-absence .report-section-note{margin:6px 0;line-height:1.5}}
