#pgm-session-dialog.mf-modal{position:fixed;inset:0;margin:auto;width:min(1200px,90vw);max-width:none;height:auto;max-height:90vh;padding:0;border:0;border-radius:14px;background:white;box-shadow:0 20px 80px #0b254544;overflow:hidden;color:#0b2545}#pgm-session-dialog.mf-modal::backdrop{background:#0b254566}#pgm-session-dialog.mf-modal .pgm-dialog{width:100%;max-width:none;margin:0;padding:0;max-height:90vh;display:flex;flex-direction:column;box-sizing:border-box}.mf-modal svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.mf-header{display:flex;align-items:center;gap:14px;padding:20px 26px;border-bottom:1px solid #d8e4ef;background:white;flex-shrink:0}.mf-header>svg{width:38px;height:38px;color:#1769e0}.mf-header h3{margin:0!important;font-size:23px}.mf-header p{margin:5px 0 0;color:#607892;font-size:13px}.mf-header button{margin-left:auto;border:0;background:white;font-size:25px;color:#0b2545;cursor:pointer}.mf-modal .mf-content{display:block!important;overflow-y:auto;padding:18px 26px;min-height:0}.mf-general{display:grid;grid-template-columns:1.2fr .6fr 1.4fr 1.4fr;gap:20px;margin-bottom:16px}.mf-general .ms-form-extra{display:contents}.mf-modal label{font-size:12px!important;line-height:1.4}.mf-modal input,.mf-modal select,.mf-modal textarea{border:1px solid #cfdfec;border-radius:7px;padding:9px;color:#0b2545;background:white;box-sizing:border-box;font:inherit}.mf-general input,.mf-general select{height:42px}.mf-section{padding:16px;margin:14px 0;border:1px solid #d8e4ef;border-radius:11px;background:#fbfdff}.mf-section>header{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:#1769e0}.mf-section h4{margin:0;color:#0b2545;font-size:15px}.mf-filter{display:flex;align-items:center;gap:5px;margin-left:auto}.mf-filter button{border:0;border-radius:7px;background:#edf4fa;padding:8px 12px;cursor:pointer;font-size:11px}.mf-filter button.active{background:#0b2545;color:white}.mf-filter [data-mf-risk=high]{color:#b32d3a;background:#ffe6e9}.mf-filter [data-mf-risk=medium]{color:#8d6209;background:#fff2d0}.mf-filter [data-mf-risk=low]{color:#16864d;background:#e0f7ea}.mf-filter button.active{outline:2px solid #1769e0}.mf-filter input{height:36px;max-width:260px;margin-left:10px}.mf-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.mf-modal .mf-choice{display:flex;align-items:center;gap:9px;min-width:0;padding:12px 9px;border:1px solid #d8e4ef;border-radius:8px;background:white;cursor:pointer}.mf-choice strong{font-size:11px;min-width:0}.mf-choice .ms-risk{margin-left:auto}.mf-modal .mf-choice input{width:16px;height:16px;flex:0 0 16px;accent-color:#1769e0}.mf-choice.selected{border-color:#1769e0;background:#eaf3fc}.mf-choice[hidden],.mf-row[hidden]{display:none!important}.mf-table-scroll{overflow-x:auto}.mf-table{width:100%;min-width:950px;border-collapse:collapse;font-size:11px;background:white}.mf-table th,.mf-table td{border:1px solid #d8e4ef;padding:10px 8px;text-align:center;vertical-align:middle}.mf-table th{background:#eaf3fc;font-size:11px}.mf-table tbody tr:nth-child(even){background:#f4f9fd}.mf-table td:first-child{text-align:left;font-weight:700;width:14%}.mf-table td:nth-child(8){width:24%}.mf-table input[type=number]{max-width:75px;min-width:55px;height:36px;text-align:center}.mf-table [data-mf-pending]{display:block;background:#edf3f8;border-radius:6px;padding:9px}.mf-table [data-mf-progress]{white-space:nowrap}.mf-table .ms-progress{width:58px;margin-left:6px}.mf-table [data-ms-notes]{min-width:150px}.mf-remove{background:none;border:0;color:#ef3944;cursor:pointer}.mf-remove svg{width:17px;height:17px}.mf-modal #pgm-job-grid{display:block;max-height:none;overflow:visible;padding:0}.mf-modal #pgm-job-grid .mf-table{display:table}.mf-states{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.mf-state{display:flex;gap:10px;padding:12px;border:1px solid #d8e4ef;border-radius:8px;background:#f1f6fb;color:#607892;opacity:.65}.mf-state.active{opacity:1;box-shadow:0 0 0 2px currentColor}.mf-state.realized{background:#effbf5;color:#16864d}.mf-state.partial{background:#fff9eb;color:#b0780a}.mf-state.not-done{background:#fff1f3;color:#d33746}.mf-state b{color:#0b2545;font-size:12px}.mf-state p{margin:5px 0 0;font-size:11px;line-height:1.5}.mf-state svg{width:30px;height:30px}.mf-modal #ms-form-state{font-size:11px;color:#607892}.mf-photos header small{margin-left:auto;color:#607892}.mf-drop{position:relative;display:flex!important;align-items:center;justify-content:center;gap:16px;padding:24px;border:1px dashed #9abbda;border-radius:8px;color:#496783;font-weight:400!important;min-height:60px}.mf-drop>input{position:absolute;inset:0;opacity:0;cursor:pointer}.mf-drop>svg{width:30px;height:30px}.mf-modal .pgm-file-row{grid-template-columns:55px minmax(0,1fr) minmax(0,1.5fr) 36px;align-items:center}.mf-modal .pgm-file-row img{width:50px;height:45px;object-fit:cover;border-radius:6px}.mf-photos>label:last-child{margin-top:15px}.mf-modal .modal-actions{display:flex;justify-content:flex-end;gap:12px;flex-shrink:0;border-top:1px solid #d8e4ef;background:white;padding:16px 26px;margin:0}.mf-modal .modal-actions button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:150px;height:44px;border:1px solid #cfdfec;border-radius:8px;background:white;color:#0b2545;font-weight:700}.mf-modal .modal-actions button:last-child{background:#1769e0;color:white;border-color:#1769e0}.mf-modal .modal-actions button:disabled{opacity:.6;cursor:wait}.mf-no-match,.mf-empty{color:#607892;font-size:12px}
@media(max-width:1000px){.mf-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.mf-section>header{flex-wrap:wrap}.mf-filter{margin-left:0;flex-wrap:wrap}.mf-general,.mf-states{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#pgm-session-dialog.mf-modal{width:96vw;max-height:94vh}.mf-modal .pgm-dialog{max-height:94vh!important}.mf-header{padding:15px}.mf-header h3{font-size:18px}.mf-header p{font-size:11px}.mf-modal .mf-content{padding:10px}.mf-general{grid-template-columns:1fr}.mf-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.mf-states{grid-template-columns:1fr}.mf-filter input{max-width:100%;margin:0}.mf-section{padding:10px}.mf-modal .modal-actions{padding:12px;gap:8px}.mf-modal .modal-actions button{min-width:0;flex:1}.mf-modal .pgm-file-row{display:flex;flex-wrap:wrap}}

.mf-filter input{width:200px;flex:0 1 200px}
/* Ajustar el contenedor al formulario: sin espacio vacío bajo las acciones. */
#pgm-session-dialog.mf-modal{top:50%;bottom:auto;height:fit-content;min-height:0;transform:translateY(-50%);box-sizing:border-box}
#pgm-session-dialog.mf-modal #pgm-session-form{height:auto;min-height:0;flex:0 1 auto;padding-bottom:0;margin-bottom:0}
#pgm-session-dialog.mf-modal .modal-actions{flex:0 0 auto;min-height:0;margin-bottom:0;padding-bottom:16px}
#pgm-session-dialog.mf-modal .mf-content{flex:1 1 auto}

.mf-range{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;padding-bottom:14px;border-bottom:1px solid #d8e4ef}.mf-range small{grid-column:1/-1;color:#607892;font-size:11px}@media(max-width:600px){.mf-range{grid-template-columns:1fr}}

#pgm-session-dialog #mf-date-error{color:#b42318;font-weight:600}#pgm-session-dialog #mf-date-error[hidden]{display:none}

.mf-modal .mf-state.overdue{background:#FFF1F2;border-color:#FECACA;color:#DC2626}.mf-modal .mf-state.overdue.active{border-color:#DC2626}.mf-modal .mf-state.partial{color:#B45309}

.mf-modal .mf-state.rescheduled{background:#F5F3FF;color:#7C3AED}.mf-modal .mf-state.suspended{background:#FFFBEB;color:#B45309}.mf-modal .mf-state.pending{background:#EFF6FF;color:#2563EB}.mf-modal .mf-state.rescheduled.active{border-color:#7C3AED}.mf-modal .mf-state.suspended.active{border-color:#D97706}
