.edu-v15 .edu-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.edu-v15 .edu-results-table{min-width:1050px}.edu-v15 .edu-group-row th{background:#d9ecef;color:#123b50;text-align:left;padding:8px}.edu-group-label{display:flex;align-items:center;gap:5px;font-size:12px}.edu-group-label select{max-width:130px}.edu-pdf-button{background:#087f8b!important;color:white!important}.edu-pdf-button:disabled{opacity:.5}#eduOfferDialog{border:1px solid #bfd3df;border-radius:12px;max-width:min(680px,92vw);width:650px;max-height:85vh;padding:22px;color:#12354a}#eduOfferDialog::backdrop{background:#132e4980}.edu-dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:center}#eduOfferDialogBody dl{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:8px 12px;font-size:13px}#eduOfferDialogBody dt{font-weight:700}#eduOfferDialogBody dd{margin:0;overflow-wrap:anywhere}#eduV15Report{display:none}.edu-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:5mm}.edu-report-chart{break-inside:avoid}.edu-report-bar{display:grid;grid-template-columns:1.8fr 1fr 32px;gap:6px;align-items:center;margin:3px 0;font-size:8pt}.edu-report-bar svg{width:100%;height:9px}.edu-report-map{margin:2mm 0;break-inside:avoid}.edu-report-map svg{width:110mm;max-width:100%;height:auto}.edu-report-map figcaption{font-size:8pt}.edu-report-kpis{display:flex;gap:4mm;flex-wrap:wrap}.edu-report-kpis div{border:1px solid #c2d3df;padding:3mm;min-width:30mm}.edu-report-kpis b,.edu-report-kpis span{display:block}.edu-report-kpis b{font-size:16pt}.edu-report-kpis span{font-size:8pt}@media(max-width:850px){.edu-v15 .edu-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.edu-group-label{flex-wrap:wrap}}@media print{.edu-v15[data-edu-print-view="report"] #eduV15Report{display:block!important;color:#171d42;font:10pt Arial,sans-serif}.edu-v15[data-edu-print-view="report"] #resultsSection,.edu-v15[data-edu-print-view="report"] #panel-map,.edu-v15 #eduOfferDialog{display:none!important}.edu-v15 #eduV15Report h2{font-size:13pt;margin:4mm 0 2mm;break-after:avoid}.edu-v15 #eduV15Report h3{font-size:10pt;margin:2mm 0;break-after:avoid}.edu-v15 #eduV15Report p{font-size:10pt;line-height:1.4}.edu-v15 #eduV15Report table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:8pt}.edu-v15 #eduV15Report thead{display:table-header-group}.edu-v15 #eduV15Report td,.edu-v15 #eduV15Report th{padding:2mm;border:0.2mm solid #c6d5de;overflow-wrap:anywhere}.edu-v15 #eduV15Report tr{break-inside:avoid}.edu-v15 #eduV15Report th{background:#e1eef2}.edu-v15 .edu-results-table{min-width:0!important}.edu-v15 .edu-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
/* V15.1: replace the old six-KPI fixed viewport layout with intrinsic rows.
   Specificity matches legacy V06/V14 rules; screen only, no print regressions. */
@media screen{
 body.edu-v15:has(#panel-exec:not([hidden])){height:auto!important;min-height:100dvh;overflow:auto!important}
 body.edu-v15:has(#panel-exec:not([hidden])) .edu-page{height:auto!important;min-height:100dvh!important;overflow:visible!important}
 body.edu-v15:has(#panel-exec:not([hidden])) .edu-wrap{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;overflow:visible!important;grid-template-rows:none!important;gap:14px!important}
 body.edu-v15:has(#panel-exec:not([hidden])) .edu-title-zone{height:auto!important;min-height:60px}
 body.edu-v15 #panel-exec:not([hidden]){display:flex!important;flex-direction:column!important;grid-template-rows:none!important;height:auto!important;min-height:0!important;gap:14px!important;overflow:visible!important}
 body.edu-v15 #panel-exec .edu-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:minmax(110px,auto)!important;gap:13px!important;height:auto!important;min-height:0!important;max-height:none!important;align-items:stretch;margin:0!important}
 body.edu-v15 #panel-exec .edu-kpi{box-sizing:border-box;display:grid!important;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto auto;gap:4px 10px;align-content:center;align-items:center;min-width:0;min-height:110px!important;height:auto!important;max-height:none!important;padding:12px 14px!important;overflow:visible;transform:none!important}
 body.edu-v15 #panel-exec .edu-kpi-icon{grid-column:1;grid-row:1 / 4;width:34px;height:34px;margin:0;align-self:center}
 body.edu-v15 #panel-exec .edu-kpi strong{grid-column:2;grid-row:1;display:block;position:static;font-size:clamp(25px,2vw,30px);line-height:1.08;margin:0}
 body.edu-v15 #panel-exec .edu-kpi .edu-kpi-label{grid-column:2;grid-row:2;display:block;position:static;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.25;margin:0}
 body.edu-v15 #panel-exec .edu-kpi small{grid-column:2;grid-row:3;display:block;position:static;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.3;margin:0}
 body.edu-v15 #panel-exec .edu-analytics-grid,body.edu-v15 #panel-exec .edu-bottom-grid{height:auto!important;min-height:0!important;margin:0!important}
 body.edu-v15 #panel-exec .edu-chart-card{height:auto!important;min-height:235px!important;overflow:visible!important}
 body.edu-v15 #panel-exec .edu-vertical-chart,body.edu-v15 #panel-exec .edu-chart-scale,body.edu-v15 #panel-exec .edu-chart-columns{height:205px!important;min-height:205px!important}
 body.edu-v15 #panel-exec .edu-donut-content{height:auto!important;min-height:205px!important}
 body.edu-v15 #panel-exec .edu-table-scroll{overflow:visible!important}
}
@media screen and (max-width:1050px){body.edu-v15 #panel-exec .edu-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media screen and (max-width:380px){body.edu-v15 #panel-exec .edu-kpis{grid-template-columns:1fr!important}}
/* Named pages keep the executive dashboard landscape, but map/report portrait. */
@page eduPortrait{size:A4 portrait;margin:11mm 12mm 16mm 12mm}
@media print{
 body.edu-v15[data-edu-print-view="report"],body.edu-v15[data-edu-print-view="map"]{page:eduPortrait}
 body.edu-v15[data-edu-print-view="report"] #eduV15Report,body.edu-v15[data-edu-print-view="map"] .edu-wrap{width:100%!important;max-width:none!important}
 body.edu-v15[data-edu-print-view="report"] .edu-report-grid{grid-template-columns:minmax(0,1fr)!important;gap:3mm}
 body.edu-v15[data-edu-print-view="report"] .edu-report-chart{break-inside:avoid}
 body.edu-v15[data-edu-print-view="report"] .edu-report-kpis div{min-width:25mm}
 body.edu-v15[data-edu-print-view="report"] #eduV15Report{break-inside:auto!important}
 body.edu-v15[data-edu-print-view="map"] #resultsSection,body.edu-v15[data-edu-print-view="map"] #eduInstitutionPanel,body.edu-v15[data-edu-print-view="map"] #territorialResults,body.edu-v15[data-edu-print-view="map"] #panel-map>h3,body.edu-v15[data-edu-print-view="map"] #panel-map>.table-wrap{display:none!important}
 body.edu-v15[data-edu-print-view="map"] #panel-map .edu-map-workspace,body.edu-v15[data-edu-print-view="map"] #panel-map .edu-map-canvas{display:block!important;min-height:0!important;height:auto!important;width:100%!important;max-width:none!important;overflow:visible!important;break-inside:avoid}
 body.edu-v15[data-edu-print-view="map"] #panel-map #eduMap{width:100%!important;height:180mm!important;min-height:180mm!important;max-height:180mm!important;overflow:hidden!important;break-inside:avoid}
 body.edu-v15[data-edu-print-view="map"] #panel-map #eduMap .leaflet-control-attribution{display:block!important}
 body.edu-v15[data-edu-print-view="map"] #panel-map #eduMap .leaflet-control-container{display:block!important}
 body.edu-v15[data-edu-print-view="map"] #panel-map #eduMap .leaflet-control-zoom{display:none!important}
 body.edu-v15[data-edu-print-view="map"] #panel-map .edu-data-warning{break-inside:avoid}
}

@media print{body.edu-v15[data-edu-print-view="map"] #panel-map #eduInstitutionPanel,body.edu-v15[data-edu-print-view="map"] #panel-map #territorialResults{display:none!important}}

/* Compact map-only print: fit institutional header, map and footer on one portrait A4. */
@media print{
 body.edu-v15[data-edu-print-view="map"] #panel-map #eduMap{height:145mm!important;min-height:145mm!important;max-height:145mm!important}
 body.edu-v15[data-edu-print-view="map"] #panel-map .edu-map-filter-summary,body.edu-v15[data-edu-print-view="map"] #panel-map .edu-map-toolbar,body.edu-v15[data-edu-print-view="map"] #panel-map .edu-v13-toolbar,body.edu-v15[data-edu-print-view="map"] #panel-map .edu-v13-advanced,body.edu-v15[data-edu-print-view="map"] #panel-map .edu-territorial-drawer{display:none!important}
 body.edu-v15[data-edu-print-view="map"] #panel-map{break-inside:auto!important;display:block!important}
 body.edu-v15[data-edu-print-view="map"] #eduOfficialPrintHead{margin-bottom:2mm!important}
 body.edu-v15[data-edu-print-view="map"] #eduOfficialPrintTail{margin-top:2mm!important;padding-top:2mm!important}
}
