.ms-dashboard{--ms-blue:#1769e0;--ms-navy:#0b2545;background:#f4f8fb;padding:18px;border:1px solid #dde8f0;border-radius:16px;color:var(--ms-navy);font-size:13px}.ms-dashboard svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.ms-dashboard button,.ms-dashboard select,.ms-dashboard input,.ms-side select,.ms-side input{font:inherit;border:1px solid #d3e1ec;border-radius:7px;background:white;color:#0b2545;padding:9px;box-sizing:border-box}.ms-dashboard button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}.ms-dashboard button:disabled{opacity:.45;cursor:default}.ms-dashboard .ms-primary{background:#1769e0;color:white;border-color:#1769e0}.ms-top{display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between}.ms-heading{display:flex;align-items:center;gap:12px}.ms-heading>svg{width:36px;height:36px}.ms-heading h2{font-size:24px;margin:0}.ms-heading p{color:#5b7590;margin:4px 0}.ms-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.ms-filters label{display:grid;gap:5px;font-size:11px;font-weight:700}.ms-filters input,.ms-filters select{max-width:170px;height:36px}.ms-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 12px}.ms-kpis article{display:flex;align-items:center;gap:12px;border:1px solid #e0eaf2;border-radius:10px;padding:16px;background:white}.ms-kpis strong{display:block;font-size:30px;margin-top:6px}.ms-kpis b{margin-left:auto;font-size:13px;padding:5px;border-radius:5px;background:#eaf3fc}.ms-bubble{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;background:#eaf3fc;color:#1769e0;border-radius:14px}.k1 .ms-bubble{background:#dff7e9;color:#16a765}.k2 .ms-bubble{background:#fff4cf;color:#d69910}.k3 .ms-bubble{background:#ffe4e7;color:#ef3944}.ms-charts{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:12px}.ms-charts article{min-width:0;background:white;border:1px solid #e0eaf2;border-radius:11px;padding:16px}.ms-charts h3{font-size:14px;margin:0 0 18px}.ms-donut-panel{display:flex;align-items:center;gap:16px}.ms-donut{width:140px;height:140px;flex:0 0 140px;border-radius:50%;display:grid;place-items:center}.ms-donut>div{width:100px;height:100px;background:white;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px}.ms-donut strong{font-size:30px}.ms-donut-panel ul{padding:0;list-style:none;flex:1}.ms-donut-panel li{display:flex;gap:6px;align-items:center;font-size:11px;margin:9px 0}.ms-donut-panel li i{width:8px;height:8px;border-radius:50%}.ms-donut-panel li b{margin-left:auto}.ms-donut-panel small{color:#5b7590}.ms-bars{display:flex;justify-content:space-around;align-items:end;gap:15px;margin-top:25px}.ms-bars>div{text-align:center;flex:1}.ms-bar-group{height:125px;display:flex;gap:4px;align-items:end;justify-content:center;border-bottom:1px solid #b7cbd9;margin-bottom:7px}.ms-bar-group span{position:relative;width:20%;max-width:24px;border-radius:3px 3px 0 0}.ms-bar-group b{position:absolute;bottom:100%;left:0;right:0;font-size:10px}.ms-note{font-size:11px;color:#5c748b;line-height:1.5}.ms-progress{display:inline-block;vertical-align:middle;width:65px;height:8px;background:#e5eef6;border-radius:10px;overflow:hidden;margin-right:5px}.ms-progress i{display:block;height:100%;background:#16a765;border-radius:10px}.ms-wide-progress .ms-progress{width:80%;height:14px}.ms-mini{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.ms-mini>div{padding:9px;border:1px solid #e0eaf2;border-radius:7px;font-size:10px}.ms-mini strong{display:block;font-size:22px}.ms-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0 8px}.ms-toolbar [data-ms-pdf]{margin-left:auto}.ms-toolbar label{font-size:11px}.ms-scroll{width:100%;overflow:auto;border:1px solid #d3e1ec;border-radius:9px;background:white}.ms-dashboard table{width:100%;min-width:940px;border-collapse:collapse;font-size:11px}.ms-dashboard th,.ms-dashboard td{border:1px solid #dfE8f0;padding:10px 8px;text-align:center;vertical-align:middle}.ms-dashboard th{background:#eaf3fc;color:#0b2545}.ms-dashboard tr:nth-child(even) td{background:#f6fafd}.ms-dashboard td:nth-child(4){text-align:left}.ms-dashboard td small{display:block;color:#647a90}.ms-tag,.ms-risk{display:inline-block;border-radius:6px;padding:5px 8px;white-space:nowrap;font-size:10px;font-weight:700;background:#e7eef5}.ms-tag.realized,.ms-risk.low{background:#d8f4e2;color:#157b44}.ms-tag.partial,.ms-risk.medium{background:#fff0c2;color:#946500}.ms-tag.not-done,.ms-risk.high{background:#ffe1e4;color:#b62535}.ms-actions{display:flex;gap:4px}.ms-actions button{padding:4px;background:none;border:0;color:#1769e0}.ms-actions [data-pgm-delete]{color:#ef3944}.ms-actions svg{width:15px;height:15px}.ms-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:10px}.ms-legacy-tools{display:flex;gap:8px;margin-top:14px}
#pgm-session-dialog.ms-side{position:fixed;inset:0 0 0 auto;width:min(450px,100vw);max-width:none;max-height:100vh;height:100vh;margin:0;border:0;border-radius:14px 0 0 14px;overflow:auto;padding:0;background:white}#pgm-session-dialog.ms-side .pgm-dialog{width:100%;min-width:0;padding:22px;box-sizing:border-box}#pgm-session-dialog.ms-side::backdrop{background:#0b254533}.ms-side .pgm-dialog-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ms-side .wide,.ms-form-extra{grid-column:1/-1}.ms-form-extra{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ms-side label{display:grid;gap:6px;font-size:12px}.ms-side .pgm-job-grid{display:grid;grid-template-columns:1fr;gap:8px}.ms-job{padding:10px;border:1px solid #dce7f0;border-radius:9px}.ms-job>label{display:flex;align-items:center;gap:8px}.ms-job>label .ms-risk{margin-left:auto}.ms-job-fields{display:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.ms-job.selected .ms-job-fields{display:grid}.ms-job-fields input{width:100%;min-width:0}.ms-job-fields label:nth-child(4),.ms-job-fields output{grid-column:1/-1}.ms-side .modal-actions{position:sticky;bottom:0;background:white;padding:12px 0;display:flex;justify-content:flex-end;gap:10px}.ms-side .pgm-dialog h3{font-size:20px}.ms-side input[type=checkbox]{width:16px;height:16px;flex:0 0 16px}.ms-side .pgm-file-list{max-width:100%}
@media(max-width:1000px){.ms-charts{grid-template-columns:1fr 1fr}.ms-charts article:last-child{grid-column:1/-1}.ms-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.ms-dashboard{padding:10px}.ms-heading h2{font-size:20px}.ms-charts{grid-template-columns:1fr}.ms-charts article:last-child{grid-column:auto}.ms-kpis{gap:8px}.ms-kpis article{padding:10px;gap:8px;font-size:11px}.ms-kpis b{display:none}.ms-bubble{width:34px;height:34px;flex-basis:34px}.ms-toolbar [data-ms-pdf]{margin-left:0}.ms-filters label{flex:1;min-width:100px}.ms-filters input,.ms-filters select{width:100%;max-width:none}.ms-filters button{flex:1}.ms-donut-panel{justify-content:center}.ms-side .pgm-dialog{padding:16px!important}}
#pgm-session-dialog.ms-side .ms-job>label{display:flex;flex-direction:row;align-items:center;gap:8px}#pgm-session-dialog.ms-side .ms-job>label input{width:16px;flex:0 0 16px}#pgm-session-dialog.ms-side .pgm-job-grid{max-height:none;overflow:visible}#pgm-session-dialog.ms-side .pgm-dialog{max-width:100%;min-width:0}#pgm-session-dialog.ms-side .pgm-file-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 30px}#pgm-session-dialog.ms-side [data-ms-close]{float:right;margin-top:-40px;background:white;border:1px solid #d3e1ec;border-radius:6px;padding:6px;color:#0b2545}
#pgpro .pgm-shell:not(.pfa-shell),#pgpro [data-pgpro-view=element]:has(.ms-dashboard),#pgpro .ms-dashboard{min-width:0;max-width:100%;width:100%;box-sizing:border-box}.ms-dashboard .ms-scroll{min-width:0;max-width:100%;box-sizing:border-box}.ms-top,.ms-filters,.ms-heading,.ms-charts,.ms-kpis{min-width:0}.ms-dashboard .ms-top>*{max-width:100%}.ms-heading>svg{flex:0 0 36px}.ms-dashboard .ms-filters label{min-width:0}
/* Mes y año completos, incluido el control nativo del calendario. */
.ms-dashboard .ms-filters label:has([data-ms-filter="period"]){flex:0 0 210px;min-width:210px}.ms-dashboard .ms-filters [data-ms-filter="period"]{width:210px;max-width:none;min-width:210px;padding-right:10px}
@media(max-width:700px){.ms-dashboard .ms-filters label:has([data-ms-filter="period"]){flex:1 1 210px;min-width:210px}.ms-dashboard .ms-filters [data-ms-filter="period"]{width:100%;min-width:0}}

/* Herramientas arriba de los filtros y editor de catálogo sin recortes. */
.ms-controls{display:flex;flex-direction:column;gap:10px;min-width:0;max-width:100%}.ms-top-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.ms-top-tools button{min-height:36px}.ms-top{align-items:flex-start}.ms-heading{padding-top:8px}
#pgm-position-dialog{width:min(920px,94vw);max-width:94vw;max-height:92vh;box-sizing:border-box;overflow-x:hidden;padding:0;border:0;border-radius:14px}#pgm-position-dialog #pgm-position-form{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:20px 24px;margin:0}#pgm-position-dialog .pgm-position-editor{display:grid;gap:7px;max-width:100%;min-width:0}#pgm-position-dialog .pgm-position-row{display:grid;grid-template-columns:minmax(0,1fr) 125px 64px 38px;gap:8px;min-width:0;max-width:100%;align-items:center}#pgm-position-dialog input,#pgm-position-dialog select{box-sizing:border-box;width:100%;min-width:0;height:36px;border:1px solid #cfdfec;border-radius:7px;padding:0 9px;color:#0b2545;background:#fff;font:inherit}#pgm-position-dialog [data-order]{text-align:center}#pgm-position-dialog .pgm-position-row button{width:36px;min-width:0;height:36px;padding:7px;margin:0;box-sizing:border-box}#pgm-position-dialog .pgm-position-row button svg{width:17px;height:17px}#pgm-position-dialog .modal-actions{display:flex;justify-content:flex-end;gap:9px;position:sticky;bottom:-20px;background:white;padding:14px 0 0;margin-top:12px;flex-wrap:wrap}#pgm-position-dialog .modal-actions button{height:40px;padding:0 16px}#pgm-position-dialog .mp-labels{display:grid;grid-template-columns:minmax(0,1fr) 125px 64px 38px;gap:8px;font-size:11px;color:#607892;margin:10px 0 0}
@media(max-width:700px){.ms-controls{width:100%}.ms-top-tools{justify-content:flex-start}#pgm-position-dialog #pgm-position-form{padding:16px}#pgm-position-dialog .pgm-position-row,#pgm-position-dialog .mp-labels{grid-template-columns:minmax(0,1fr) 90px 45px 32px;gap:5px}#pgm-position-dialog input,#pgm-position-dialog select{font-size:12px;padding:0 5px}#pgm-position-dialog .pgm-position-row button{width:30px}#pgm-position-dialog .modal-actions{bottom:-16px}}
#pgm-position-dialog{width:min(1120px,94vw)}#pgm-position-dialog .modal-actions{bottom:0;padding:12px 0;background:#fff}#pgm-position-dialog .pgm-position-editor{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}#pgm-position-dialog .pgm-position-row,#pgm-position-dialog .mp-header-row{grid-template-columns:minmax(0,1fr) 90px 48px 36px}#pgm-position-dialog .mp-labels{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}#pgm-position-dialog .mp-header-row{display:grid;gap:8px}.ms-controls{margin-left:auto}
@media(max-width:900px){#pgm-position-dialog .pgm-position-editor{grid-template-columns:1fr}#pgm-position-dialog .mp-labels{grid-template-columns:1fr}#pgm-position-dialog .mp-header-row:last-child{display:none}}
#pgm-position-dialog .pgm-position-row,#pgm-position-dialog .mp-header-row{grid-template-columns:minmax(0,1fr) 90px 64px 36px}#pgm-position-dialog input[data-order]{padding:0 3px;font-variant-numeric:tabular-nums}
/* Herramientas a la derecha y filtros en una única fila de escritorio. */
.ms-dashboard .ms-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 18px;align-items:center}.ms-dashboard .ms-controls{display:contents}.ms-dashboard .ms-heading{grid-column:1;grid-row:1;padding-top:0}.ms-dashboard .ms-top-tools{grid-column:2;grid-row:1;display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:nowrap}.ms-dashboard .ms-top-tools button{height:36px;min-height:36px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;margin:0}.ms-top-tools button>svg:not(.sc-unified-action-glyph){width:17px;height:17px;flex:0 0 17px}.ms-dashboard .ms-filters{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:210px minmax(110px,1fr) minmax(110px,1fr) minmax(110px,.8fr) 150px 170px;gap:10px;align-items:end;width:100%}.ms-dashboard .ms-filters label{min-width:0;width:100%;box-sizing:border-box}.ms-dashboard .ms-filters input,.ms-dashboard .ms-filters select{width:100%;min-width:0;max-width:none;height:40px;box-sizing:border-box}.ms-dashboard .ms-filters button{height:40px;box-sizing:border-box;margin:0;white-space:nowrap}.ms-toolbar [data-hl-refresh]{margin-left:auto}
@media(max-width:1100px){.ms-dashboard .ms-top{grid-template-columns:1fr}.ms-dashboard .ms-top-tools{grid-column:1;grid-row:2;justify-self:end}.ms-dashboard .ms-filters{grid-row:3;grid-template-columns:repeat(4,minmax(0,1fr))}.ms-dashboard .ms-filters label:has([data-ms-filter=period]){min-width:0}.ms-dashboard .ms-filters [data-ms-clear]{grid-column:3}.ms-dashboard .ms-filters [data-pgm-register]{grid-column:4}}
@media(max-width:700px){.ms-dashboard .ms-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-dashboard .ms-filters [data-ms-clear]{grid-column:1}.ms-dashboard .ms-filters [data-pgm-register]{grid-column:2}.ms-dashboard .ms-top-tools{max-width:100%;flex-wrap:wrap}.ms-dashboard .ms-top-tools button{height:44px;min-height:44px;font-size:11px}.ms-dashboard .ms-heading{align-items:flex-start}.ms-dashboard .ms-toolbar [data-hl-refresh]{margin-left:0}}

.ms-dashboard .ms-top-tools.sc-unified-actions{justify-content:flex-end!important}
@media(max-width:1100px){.ms-dashboard .ms-filters [data-ms-filter=period]{width:100%;min-width:0;max-width:100%}}

/* Año compacto y mes independiente dentro del ancho existente. */
.ms-dashboard .ms-filters{grid-template-columns:82px minmax(120px,1fr) minmax(110px,1fr) minmax(110px,1fr) minmax(110px,.9fr) 130px 160px}.ms-dashboard .ms-filters label:has([data-ms-filter=period]){min-width:0}.ms-dashboard .ms-filters [data-ms-filter=period]{width:100%;min-width:0}
@media(max-width:1100px){.ms-dashboard .ms-filters{grid-template-columns:82px repeat(3,minmax(0,1fr))}.ms-dashboard .ms-filters [data-ms-clear]{grid-column:3}.ms-dashboard .ms-filters [data-pgm-register]{grid-column:4}}
@media(max-width:700px){.ms-dashboard .ms-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-dashboard .ms-filters [data-ms-clear]{grid-column:1}.ms-dashboard .ms-filters [data-pgm-register]{grid-column:2}}

/* Barra de vistas y ordenamiento con alturas idénticas. */
.ms-dashboard .ms-toolbar{display:flex;align-items:center;gap:8px}.ms-dashboard .ms-toolbar>button,.ms-dashboard .ms-toolbar>label{height:40px;box-sizing:border-box;margin-block:0}.ms-dashboard .ms-toolbar>label{display:flex;align-items:center;gap:8px;margin:0}.ms-dashboard .ms-toolbar>label select{height:40px;box-sizing:border-box;margin:0}.ms-dashboard .ms-toolbar [data-hl-refresh]{margin-left:auto}

/* Registered plans: localized alignment and spacing. */
.ms-dashboard > .map-admin{margin:14px 0;padding:16px;min-width:0}
.ms-dashboard > .ms-filters{margin:14px 0}
.map-admin th:nth-child(4),.map-admin th:nth-child(5),.map-admin td:nth-child(4),.map-admin td:nth-child(5){text-align:center;vertical-align:middle}
.map-admin th:last-child,.map-admin td:last-child{text-align:center;vertical-align:middle;width:100px;min-width:100px}
.map-admin .ms-actions{justify-content:center;align-items:center}

.ms-dashboard .ms-tag.overdue{background:#FEE2E2;color:#B91C1C}.ms-dashboard .ms-tag.pending,.ms-dashboard .ms-tag.partial{background:#FFF3CD;color:#92400E}

.ms-dashboard .ms-tag.rescheduled{background:#EDE9FE;color:#6D28D9}.ms-dashboard .ms-tag.suspended{background:#FEF3C7;color:#92400E}.ms-dashboard .ms-tag.pending{background:#DBEAFE;color:#1D4ED8}.ms-dashboard .ms-actions{flex-wrap:wrap}

.ms-dashboard .ms-scroll table:has([data-med-manage]) th:last-child,.ms-dashboard .ms-scroll table:has([data-med-manage]) td:last-child{width:130px;min-width:130px;text-align:center;vertical-align:middle}.ms-dashboard .ms-scroll .ms-actions:has([data-med-manage]){display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;gap:8px}

.ms-dashboard .ms-tag.rescheduled{background:#2563EB;color:#fff}
