/* Estilos exclusivos del Panel Ejecutivo. No afectan otros módulos. */
.exd-root{--exd-ink:#113451;--exd-muted:#70879a;--exd-border:#deebf6;--exd-bg:#fff;color:var(--exd-ink);font-family:Arial,Helvetica,sans-serif}
.exd-root *{box-sizing:border-box}.exd-root button,.exd-root select{font-family:inherit}.exd-root button{cursor:pointer}.exd-root button:focus-visible,.exd-root select:focus-visible{outline:2px solid #2686ec;outline-offset:3px}
.exd-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:15px 17px;background:#fff;border:1px solid var(--exd-border);border-radius:12px;box-shadow:0 3px 12px #173d5d06}
.exd-toolbar-label,.exd-group-label{display:block;color:#59738b;font-size:11px;font-weight:600;line-height:1.6;letter-spacing:.15px}.exd-toolbar-label{margin-bottom:6px}
.exd-view-buttons{display:flex;gap:6px;flex-wrap:wrap}.exd-view-buttons button{border:1px solid #dfe8f1;background:#f5f8fc;color:#3c5871;border-radius:7px;font-size:12px;font-weight:600;line-height:1.2;padding:9px 13px;min-height:34px;transition:background .15s,box-shadow .15s}
.exd-view-buttons button:hover{background:#eaf3ff}.exd-view-buttons button.active{background:#1477e5;color:#fff;border-color:#1477e5;box-shadow:0 3px 9px #1477e527}
.exd-group-label{margin:0;min-width:155px}.exd-group-label select{display:block;min-width:155px;margin-top:4px;border:1px solid #d7e4f0;border-radius:7px;background:white;color:#244b6a;font-size:12px;padding:7px 11px;min-height:34px}
.exd-context{display:flex;justify-content:space-between;align-items:center;gap:15px;color:var(--exd-muted);font-size:11px;padding:10px 2px 12px}.exd-context strong{font-size:11px;font-weight:600;color:#54718b;white-space:nowrap}
.exd-kpis{display:grid;grid-template-columns:1fr 1fr 1.4fr 1fr;gap:13px;margin-bottom:14px}.exd-kpi{min-width:0;padding:17px 18px 14px;border:1px solid var(--exd-border);border-radius:11px;background:linear-gradient(120deg,#fff 60%,#f9fcff);box-shadow:0 3px 10px #173d5d06}
.exd-kpi h3{font-size:13px;font-weight:700;line-height:1.25;margin:0 0 12px;color:#123c60}.exd-kpi>div{display:flex;align-items:center;gap:14px}.exd-kpi>div>strong{font-size:31px;font-weight:700;letter-spacing:-.65px;line-height:1.2;font-variant-numeric:tabular-nums}.exd-kpi>small{display:block;margin-top:9px;font-size:10px;line-height:1.4;color:var(--exd-muted)}
.exd-icon{height:41px;width:41px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 41px;border-radius:10px;font-style:normal}.exd-icon svg{width:23px;height:23px}.exd-icon.blue{background:#e7f3ff;color:#1779e4}.exd-icon.purple{background:#f0eaff;color:#8562d9}.exd-icon.green{background:#e6f7ed;color:#149456}.exd-icon.amber{background:#fff4df;color:#e59a14}.exd-success{color:#169158}
.exd-kpi .exd-network-split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.exd-network-split section{display:flex;align-items:center;gap:9px;min-width:0}.exd-network-split section+section{border-left:1px solid #e5edf5;padding-left:13px}.exd-network-split .exd-icon{width:31px;height:31px;flex-basis:31px;border-radius:50%}.exd-network-split .exd-icon svg{width:18px;height:18px}.exd-network-split span{display:flex;flex-direction:column;gap:3px}.exd-network-split b{font-size:10px;letter-spacing:.4px}.exd-network-split strong{font-size:24px;line-height:1;letter-spacing:-.5px}.exd-network-split small{font-size:9px;white-space:nowrap;color:#6d849a}
.exd-main-grid{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1.97fr);gap:14px;margin-bottom:14px}.exd-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}
.exd-card{border:1px solid var(--exd-border);border-radius:11px;background:var(--exd-bg);min-width:0;box-shadow:0 3px 12px #173d5d05;overflow:hidden}.exd-card-head{display:flex;justify-content:space-between;align-items:start;gap:10px;padding:15px 16px 8px}.exd-card-head h3{color:#12436b;font-size:13px;font-weight:700;line-height:1.3;margin:0}.exd-card-head p{margin:5px 0 0;font-size:10px;color:var(--exd-muted);line-height:1.4}.exd-card-body{padding:3px 15px 13px;min-width:0}.exd-pill{display:inline-flex;border:1px solid #ddede4;background:#f0faf5;border-radius:6px;color:#168d58;font-size:12px;font-weight:700;padding:5px 7px;white-space:nowrap;line-height:1.1}
.exd-status-boxes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 12px}.exd-root .exd-status{padding:13px 10px;text-align:left;border:1px solid transparent;border-radius:9px;min-width:0;line-height:1.3;box-shadow:none;transition:filter .15s}.exd-status:hover{filter:brightness(.97)}.exd-status>span{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:600;min-height:30px}.exd-status>span i{display:flex;align-items:center;justify-content:center;font-style:normal;width:20px;height:20px;border-radius:50%;background:currentColor;flex:0 0 20px;font-size:0}.exd-status>span i:after{content:'✓';color:white;font-size:12px}.exd-status-1>span i:after{content:'−'}.exd-status-2>span i:after{content:'×'}.exd-status>strong{display:block;font-size:27px;margin:8px 0 3px;letter-spacing:-.4px;font-variant-numeric:tabular-nums}.exd-status>small{font-size:12px;font-weight:600}.exd-root .exd-status-0{background:#ebfaf1;border-color:#cff0de;color:#128450}.exd-root .exd-status-1{background:#fff7e9;border-color:#f9e7c8;color:#bb770b}.exd-root .exd-status-2{background:#fff0f2;border-color:#f9dce2;color:#d5485a}.exd-other-states{display:flex;justify-content:space-between;gap:12px;margin:8px 1px 0;color:#76899c;font-size:10px;padding-top:10px;border-top:1px solid #edf1f6}.exd-other-states strong{white-space:nowrap;font-weight:600}
.exd-time-chart{width:100%;min-width:0}.exd-time-chart svg{display:block;width:100%;height:auto;overflow:visible}.exd-time-chart svg text{font-family:Arial,Helvetica,sans-serif;font-size:12px;fill:#6e849a}.exd-time-chart .exd-data-label{font-weight:700;fill:#315a7d;font-size:12px}.exd-time-chart .exd-axis-caption{font-size:11px;fill:#8a9bad}.exd-gridline{stroke:#e9f0f6;stroke-width:1}.exd-chart-hit{cursor:crosshair;outline:none}.exd-chart-hit:hover,.exd-chart-hit:focus-visible{fill:#3189ef0c;stroke:#a2c9f4;stroke-width:.6}
.exd-legend{display:flex;gap:8px 13px;flex-wrap:wrap;padding:4px 4px 1px;min-height:23px;align-items:center}.exd-legend>span{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#536e87;line-height:1.3}.exd-legend i,.exd-donut-legend i{width:8px;height:8px;display:inline-block;background:var(--exd-series);border-radius:50%;flex:0 0 8px}.exd-legend i.line{height:3px;width:14px;border-radius:2px;flex-basis:14px}
.exd-donut-layout{display:flex;align-items:center;justify-content:center;gap:9px;min-height:160px}.exd-donut{width:47%;max-width:180px;min-width:115px;height:auto;flex-shrink:0}.exd-donut-value{font:700 25px Arial,Helvetica,sans-serif;fill:#193f5d}.exd-donut-caption{font:11px Arial,Helvetica,sans-serif;fill:#7e92a5}.exd-donut-legend{min-width:0;display:grid;gap:11px}.exd-donut-legend>div{display:flex;flex-direction:column;gap:5px}.exd-donut-legend span{display:flex;align-items:center;gap:6px;font-size:11px;line-height:1.25;color:#355a76}.exd-donut-legend strong{font-size:15px;font-weight:700;margin-left:14px;white-space:nowrap}.exd-donut-legend small{font-weight:400;font-size:10px;color:#8a9baa;margin-left:5px}
.exd-state-bars{display:grid;gap:18px;padding:19px 2px 16px;min-height:160px}.exd-state-bars>div{display:grid;grid-template-columns:minmax(88px,1fr) 1.25fr 32px 45px;gap:7px;align-items:center}.exd-state-bars>div>span{font-size:11px;color:#517087}.exd-state-track{background:#f0f4f8;height:14px;border-radius:4px;overflow:hidden}.exd-state-track b{display:block;height:100%;border-radius:4px}.exd-state-bars strong{font-size:12px;font-weight:700;text-align:right}.exd-state-bars small{font-size:10px;color:#6f879b;text-align:right}
.exd-table-scroll{overflow-x:auto}.exd-root .exd-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:11px;color:#345670}.exd-root .exd-table th{font-size:10px;letter-spacing:0;text-transform:none;font-weight:600;color:#345e80;background:#eef6fe;border:0;padding:7px 6px;line-height:1.3;white-space:normal}.exd-root .exd-table td{border:0;border-bottom:1px solid #f0f4f9;padding:6px;line-height:1.3;vertical-align:middle;font-variant-numeric:tabular-nums}.exd-table tr:last-child td{border-bottom:0}.exd-root .exd-table tr:hover td{background:#f6faff}.exd-table th:first-child,.exd-table td:first-child{width:23px;color:#8096a8}.exd-root .exd-table button{padding:0;background:none;border:0;text-align:left;font-weight:400;font-size:11px;color:#264c6d;line-height:1.35;overflow-wrap:anywhere}.exd-table button:hover{text-decoration:underline;color:#1875d9}.exd-ranking th:nth-child(2){width:54%}.exd-ranking th:nth-child(3){width:35%;text-align:right}.exd-ranking td:nth-child(2) button{display:block}.exd-rank-value{display:flex;align-items:center;gap:5px}.exd-rank-value>span{display:block;flex:1;min-width:12px;height:10px;border-radius:2px;background:#f1f6fa;overflow:hidden}.exd-rank-value i{display:block;height:100%;background:linear-gradient(90deg,#1ca668,#55c787);border-radius:2px}.exd-rank-value>strong{font-size:11px;min-width:24px;text-align:right;font-weight:600}.exd-low .exd-rank-value i{background:linear-gradient(90deg,#ed6070,#ffa0ab)}.exd-communes th:nth-child(2){width:32%}.exd-communes th:nth-child(3){width:37%}.exd-communes th:nth-child(4){width:22%;text-align:right}.exd-communes td:nth-child(4){text-align:right;color:#6c8499;font-size:10px}.exd-communes .exd-rank-value i{background:linear-gradient(90deg,#2081ed,#67b2ff)}
.exd-weekly{background:var(--exd-bg);border:1px solid var(--exd-border);border-radius:9px;margin:14px 0 0;padding:0 16px;overflow:hidden}.exd-weekly>summary{cursor:pointer;padding:13px 0;font-size:12px;color:#2f5878;font-weight:600}.exd-weekly>summary span{font-size:10px;font-weight:400;color:#8799aa;margin-left:10px}.exd-weekly .exd-table{min-width:680px;margin-bottom:12px}.exd-weekly .exd-table th:first-child,.exd-weekly .exd-table td:first-child{width:130px;color:#345e80}
.exd-footnote{display:flex;justify-content:space-between;gap:12px;padding:12px 1px 0;color:#8599ac;font-size:10px;line-height:1.5}.exd-empty{padding:30px 14px;min-height:150px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;color:#8b9cad;background:#fbfdff;border-radius:6px}.exd-tooltip{position:fixed;z-index:999;max-width:300px;padding:11px 14px;border-radius:8px;background:#133855;color:white;box-shadow:0 8px 28px #102f4d40;font-size:11px;line-height:1.65;pointer-events:none;white-space:pre-line;font-variant-numeric:tabular-nums}.exd-tooltip[hidden]{display:none!important}
/* Mantener los controles de fecha y las funciones de carga existentes. */
#content:has(.exd-root)>.page-heading{margin-bottom:17px}#content:has(.exd-root)>.executive-status{font-size:10px;margin-bottom:9px}#content:has(.exd-root)>.executive-filters{padding:14px 17px;margin-bottom:10px;box-shadow:0 3px 12px #173d5d06;border-radius:11px}
@media(min-width:1750px){.exd-card-head h3{font-size:14px}.exd-root .exd-table td,.exd-root .exd-table button{font-size:12px}.exd-kpi>div>strong{font-size:34px}}
@media(max-width:1250px){.exd-kpis{grid-template-columns:1fr 1fr}.exd-three{grid-template-columns:1fr 1fr}.exd-three>.exd-card:last-child{grid-column:1/-1}.exd-rankings>.exd-card:last-child{grid-column:auto}.exd-rankings{grid-template-columns:1fr}.exd-main-grid{grid-template-columns:1fr 1.6fr}.exd-status-boxes{gap:6px}.exd-root .exd-status{padding:10px 7px}.exd-status>span{font-size:10px}.exd-status>span i{display:none}}
@media(max-width:900px){.exd-main-grid,.exd-three{grid-template-columns:1fr}.exd-three>.exd-card:last-child{grid-column:auto}.exd-status>span{font-size:12px}.exd-status>span i{display:flex}.exd-root .exd-status{padding:13px}.exd-time-chart svg{max-height:250px}.exd-donut-layout{min-height:190px}.exd-toolbar{align-items:start}.exd-view-buttons{gap:5px}.exd-view-buttons button{padding:8px 10px;font-size:11px}}
@media(max-width:580px){.exd-kpis{gap:8px}.exd-kpi{padding:13px 12px}.exd-kpi h3{font-size:11px}.exd-kpi>div{gap:8px}.exd-kpi>div>strong{font-size:25px}.exd-icon{width:32px;height:32px;flex-basis:32px}.exd-icon svg{width:20px;height:20px}.exd-network-kpi{grid-column:1/-1;order:4}.exd-network-split strong{font-size:22px}.exd-toolbar{flex-direction:column;gap:10px;padding:12px}.exd-view-buttons{display:grid;grid-template-columns:1fr 1fr;width:100%}.exd-toolbar>div{width:100%}.exd-group-label{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px}.exd-group-label select{margin:0;min-width:120px}.exd-context{align-items:start;font-size:10px;flex-direction:column;gap:3px}.exd-card-head{padding:12px}.exd-card-body{padding:0 11px 12px}.exd-footnote{flex-direction:column;gap:3px}.exd-root .exd-status{padding:10px 7px}.exd-status>span{font-size:10px;gap:3px}.exd-status>span i{display:none}.exd-status>strong{font-size:25px}.exd-status>small{font-size:11px}}
body[data-theme="night"] .exd-root{--exd-ink:#d9e7f4;--exd-muted:#9eb3c6;--exd-border:#355167;--exd-bg:#1c3344}body[data-theme="night"] .exd-toolbar,body[data-theme="night"] .exd-kpi{background:#1c3344}body[data-theme="night"] .exd-card h3,body[data-theme="night"] .exd-kpi h3,body[data-theme="night"] .exd-kpi strong{color:#d7e8f7}body[data-theme="night"] .exd-card-head p,body[data-theme="night"] .exd-kpi>small{color:#a3b7c9}body[data-theme="night"] .exd-root .exd-table th{background:#29475e;color:#d8e8f5}body[data-theme="night"] .exd-root .exd-table td,body[data-theme="night"] .exd-root .exd-table button{color:#d1e3f0}body[data-theme="night"] .exd-donut-value{fill:#d7e8f7}body[data-theme="night"] .exd-gridline{stroke:#385366}body[data-theme="night"] .exd-empty{background:#1c3344}
/* RT/FT: estados en curso, separados de los finalizados. */
.exd-status-3>span i:after{content:'○'}
.exd-status-4>span i:after{content:'▶'}
.exd-status-5>span i:after{content:'Ⅱ'}
.exd-root .exd-status-3{background:#edf5ff;border-color:#d6e6fa;color:#266da6}
.exd-root .exd-status-4{background:#f2effb;border-color:#e5def7;color:#6751ac}
.exd-root .exd-status-5{background:#f7f4ef;border-color:#e7ded2;color:#896c4b}
