.preventivo{color:#16342f}.prev-hero{display:flex;justify-content:space-between;gap:24px;padding:24px;background:#eaf5ef;border:1px solid #cde3d6;border-radius:16px;margin-bottom:20px}.prev-hero h3{font-size:26px;margin:8px 0}.prev-hero small{font-size:11px;letter-spacing:.1em}.prev-hero strong{font-size:36px;min-width:120px}.prev-hero strong span{display:block;font-size:12px;font-weight:500}.prev-tabs,.prev-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:14px 0}.preventivo button{min-height:44px;border:1px solid #c6d7cf;border-radius:8px;padding:8px 12px;background:#fff;color:#16342f;cursor:pointer}.preventivo button[aria-pressed=true],.preventivo .primary-action{background:#175b46;color:#fff;border-color:#175b46}.preventivo button:disabled{opacity:.45;cursor:default}.prev-tools{display:flex;flex-wrap:wrap;gap:12px;background:#f5f8f6;padding:16px;border-radius:10px}.prev-tools label,.prev-form .field{display:flex;flex-direction:column;gap:6px;font-size:13px}.prev-tools input,.prev-tools select,.prev-form input,.prev-form select,.prev-form textarea{padding:10px;border:1px solid #b7cdc1;border-radius:7px;min-height:44px;max-width:100%;font:inherit}.prev-tools select{max-width:280px}.prev-table{overflow:auto;border:1px solid #dbe5df;border-radius:10px}.prev-table table{width:100%;border-collapse:collapse;font-size:13px}.prev-table th{background:#eff5f1;text-align:left;white-space:nowrap}.prev-table th,.prev-table td{padding:12px;border-bottom:1px solid #e1e9e4;vertical-align:top}.prev-table td:first-child{min-width:220px}.prev-table td button{margin:2px}.prev-warning{display:block;color:#89520c;background:#fff3d6;padding:6px;border-radius:6px;font-size:12px}.prev-form fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:0;padding:0;min-width:0}.prev-context{background:#eef5f0;padding:16px;border-radius:10px;margin-bottom:16px;white-space:pre-wrap}.prev-periods{max-height:300px;overflow:auto;display:grid;gap:8px}.prev-periods label{display:flex;align-items:center;gap:8px}.prev-periods input{min-height:24px}.prev-form fieldset:disabled{opacity:.85}#prevFormStatus{color:#a12b25}.preventivo button:focus-visible,.prev-form input:focus-visible{outline:3px solid #60a98c;outline-offset:2px}@media(max-width:650px){.prev-hero{padding:16px}.prev-hero h3{font-size:21px}.prev-hero strong{min-width:70px;font-size:28px}.prev-tools label{width:100%}.prev-tools select{max-width:100%;width:100%}.prev-form fieldset{grid-template-columns:1fr}.prev-tabs button{flex:1 0 40%}}
.prev-form>fieldset,.prev-form>.form-actions,.prev-form>p{grid-column:1/-1}.prev-form>fieldset{width:100%;box-sizing:border-box}.prev-form input,.prev-form select,.prev-form textarea{box-sizing:border-box;width:100%}.prev-periods input[type=checkbox]{width:24px;flex:none}.prev-table td{max-width:420px;overflow-wrap:anywhere}
.preventivo .prev-work-link{display:flex;align-items:center;gap:12px;border:0;background:transparent;padding:0;text-align:left;font:inherit;color:#174f3f;font-weight:600;min-width:220px}.prev-work-link img{flex:none;border-radius:8px;object-fit:contain}.prev-work-link:hover span{text-decoration:underline}.prev-work-detail{color:#173c32;line-height:1.5}.prev-work-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.prev-work-toolbar>span{font-size:12px;color:#60746c}.prev-work-toolbar>div{display:flex;gap:6px;flex-wrap:wrap}.prev-work-detail button{border:1px solid #c8d9d0;border-radius:8px;min-height:42px;min-width:42px;padding:8px 14px;background:white;color:#17553f;font:inherit;cursor:pointer}.prev-work-detail button:disabled{opacity:.4;cursor:default}.prev-work-detail button.primary-action{background:#175b46;color:white;border-color:#175b46}.prev-work-image{margin:0;padding:12px 0 20px;text-align:center}.prev-work-image img{display:block;width:280px;max-width:100%;height:auto;margin:auto;border-radius:14px}.prev-work-image figcaption{font-size:11px;color:#72867b;margin-top:6px}.prev-work-summary{padding:0 0 18px;border-bottom:1px solid #dce7e0}.prev-work-summary h3{font-size:23px;font-weight:600;margin:0 0 12px}.prev-work-summary p{margin:0;white-space:pre-wrap;font-size:14px}.prev-work-fields{margin:0;padding:10px 0}.prev-work-fields>div{display:grid;grid-template-columns:160px minmax(0,1fr);gap:16px;align-items:center;padding:12px 0}.prev-work-fields dt{font-size:13px;color:#66786e}.prev-work-fields dd{margin:0;overflow-wrap:anywhere;display:flex;gap:0;font-size:14px}.prev-work-fields>div:first-child dd{border:1px solid #cddbd4;border-radius:7px;padding:12px}.prev-reading-kind{padding:12px 18px;background:#f4f7f5;border:1px solid #d6e2db;color:#728279;flex:1;text-align:center;font-size:12px;font-weight:700}.prev-reading-kind:first-child{border-radius:7px 0 0 7px}.prev-reading-kind:last-child{border-radius:0 7px 7px 0}.prev-reading-kind.selected{color:white;background:#276e55;border-color:#276e55}.prev-work-readings{border-top:5px solid #eff4f1;margin-top:16px;padding-top:18px}.prev-work-readings h4{font-size:20px;font-weight:500;margin:0 0 16px}.prev-work-readings h4>span{font-size:12px;border-radius:5px;background:#e6eee9;padding:3px 7px;vertical-align:middle}.prev-work-readings-table{overflow:auto}.prev-work-readings table{width:100%;border-collapse:collapse;font-size:13px}.prev-work-readings th,.prev-work-readings td{text-align:left;padding:12px;border:1px solid #dce6df;vertical-align:top}.prev-work-readings th{background:#f6f9f7}.prev-reading-option{display:inline-block;background:#edf4ef;color:#28533f;border-radius:5px;padding:3px 8px;margin:2px}.prev-work-readings>p{font-size:12px;color:#6b7c73;margin-bottom:0}.prev-reading-switch{display:flex;gap:0;min-height:44px}.prev-reading-switch label{position:relative;flex:1;cursor:pointer}.prev-form .prev-reading-switch input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.prev-reading-switch span{display:block;text-align:center;padding:12px;border:1px solid #c9dace;background:#f4f8f5;color:#335d47}.prev-reading-switch input:checked+span{background:#276e55;color:white;border-color:#276e55}.prev-reading-switch input:focus-visible+span{outline:3px solid #65b292;outline-offset:2px}.prev-work-detail button:focus-visible{outline:3px solid #65b292;outline-offset:2px}@media(max-width:650px){.prev-work-fields>div{grid-template-columns:1fr;gap:6px}.prev-work-toolbar{align-items:flex-start}.prev-work-image img{width:220px}.prev-work-toolbar>div{justify-content:flex-end}.prev-work-detail button{font-size:13px;padding:8px 10px}}
.prev-work-edit{display:block!important;max-width:680px;margin:auto}.prev-work-edit>fieldset{display:flex!important;flex-direction:column;gap:25px!important}.prev-work-edit .field>span,.prev-photo-field>span{font-size:13px;color:#4e6876}.prev-work-edit .field{gap:10px}.prev-photo-box{margin-top:10px;border:1px solid #bbcbd1;border-radius:5px;min-height:270px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:20px;gap:12px}.prev-photo-box>img{width:270px;max-width:100%;height:170px;object-fit:contain}.prev-photo-box>small{font-size:11px;color:#77878c}.prev-photo-choice{display:flex;align-items:center;gap:12px;font-size:13px;color:#2574a8}.prev-photo-choice select{max-width:240px}.prev-group-choices{display:flex;flex-wrap:wrap;gap:6px}.prev-group-choices label{position:relative;cursor:pointer}.prev-work-edit .prev-group-choices input{position:absolute;width:1px;height:1px;min-height:0;opacity:0}.prev-group-choices span{display:block;padding:12px 16px;border:1px solid #d0d8df;background:#f7f9fb;color:#4c6376;font-size:14px;min-height:44px;box-sizing:border-box}.prev-group-choices input:checked+span{background:#488ed3;color:white;border-color:#488ed3;font-weight:600}.prev-group-choices input:focus-visible+span{outline:3px solid #9bc6ee;outline-offset:2px}.prev-work-edit textarea[name=procedimiento]{min-height:90px;resize:vertical}.prev-edit-extra{border-top:1px solid #e1e8e4;padding-top:18px}.prev-edit-extra summary{cursor:pointer;color:#38665a;font-weight:600;padding:8px 0}.prev-edit-extra>div{display:grid;gap:18px;padding:14px 0}.prev-work-edit input[hidden]{display:none!important}@media(max-width:600px){.prev-photo-choice{flex-direction:column}.prev-group-choices span{padding:10px 12px}.prev-photo-box{padding:12px;min-height:230px}}
.prev-work-edit>fieldset>.field,.prev-work-edit>fieldset>.prev-photo-field,.prev-work-edit>fieldset>.prev-edit-extra{width:100%!important;max-width:none!important;align-self:stretch;box-sizing:border-box}.prev-work-edit .field input:not([type=radio]),.prev-work-edit .field textarea{width:100%!important}.prev-work-edit .prev-group-field{display:block}.prev-group-field>.prev-group-choices{margin-top:10px}.prev-work-edit .prev-edit-extra .field{width:100%!important}
.prev-reading-buttons{display:flex;flex-wrap:wrap;gap:7px}.prev-reading-buttons label{position:relative;cursor:pointer}.prev-form .prev-reading-buttons input{position:absolute;width:1px;height:1px;min-height:0;opacity:0}.prev-reading-buttons span{display:block;min-height:44px;box-sizing:border-box;padding:12px 18px;background:#f4f8f5;color:#335d47;border:1px solid #c9dace;border-radius:7px;font-weight:500}.prev-reading-buttons input:checked+span{background:#276e55;color:white;border-color:#276e55}.prev-reading-buttons input:focus-visible+span{outline:3px solid #65b292;outline-offset:2px}.prev-reading-buttons input:disabled+span{cursor:default}.prev-form .field>small{font-size:12px;color:#66786e;line-height:1.5}

.prev-period-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.prev-period-grid article{display:flex;background:white;border:1px solid #cbded5;border-radius:8px;overflow:hidden}.prev-period-grid article>button:first-child{flex:1;text-align:left;border:0;padding:16px;background:transparent}.prev-period-grid strong,.prev-period-grid small{display:block}.prev-period-grid small{margin-top:8px;color:#647d70}.prev-period-grid article>button:last-child{border:0}@media(max-width:1000px){.prev-period-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.prev-period-grid{grid-template-columns:1fr}}

/* Keep maintenance dialogs within the viewport and all assignment actions visible. */
#editModalBackdrop:has(.prev-work-detail),#editModalBackdrop:has(.prev-form){box-sizing:border-box;padding:16px;overflow:hidden}
#editModalBackdrop .edit-modal:has(.prev-work-detail){width:min(1100px,100%);max-width:100%;max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden;min-width:0}
#editModalBackdrop .edit-modal:has(.prev-work-detail)>.edit-modal-head{flex:none}
#editModalBackdrop .edit-modal:has(.prev-work-detail)>#editModalBody{overflow:auto;min-height:0;min-width:0;box-sizing:border-box}
.prev-period-detail .prev-table table{table-layout:fixed;min-width:0;width:100%}
.prev-period-detail .prev-table th,.prev-period-detail .prev-table td{min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere}
.prev-period-detail .prev-table th:first-child{width:43%}.prev-period-detail .prev-table th:nth-child(2){width:15%}.prev-period-detail .prev-table th:nth-child(3){width:20%}.prev-period-detail .prev-table th:last-child{width:22%}
.prev-period-detail .prev-table td button{display:inline-block;white-space:normal;margin:3px;max-width:100%}
@media(max-width:600px){#editModalBackdrop:has(.prev-work-detail){padding:8px}#editModalBackdrop .edit-modal:has(.prev-work-detail){max-height:calc(100dvh - 16px)}.prev-period-detail .prev-table thead{display:none}.prev-period-detail .prev-table tr{display:block;padding:10px;border-bottom:1px solid #dbe5df}.prev-period-detail .prev-table td{display:block;border:0;padding:4px}.prev-period-detail .prev-table td:first-child{font-weight:700}}

.prev-hypo{max-width:720px;margin:24px auto;padding:26px;border:1px solid #cbded5;border-radius:16px;background:white}.prev-hypo h3{font-size:24px;margin-top:0}.prev-hypo-volume{display:flex;flex-direction:column;gap:8px;max-width:320px}.prev-hypo-volume input{padding:12px;font:inherit;border:1px solid #b7cdc1;border-radius:8px}.prev-hypo fieldset{border:0;padding:22px 0}.prev-hypo legend{padding-top:20px}.prev-hypo .prev-reading-buttons input{position:absolute;opacity:0;width:1px;height:1px}.prev-hypo-result{display:flex;flex-direction:column;gap:10px;background:#edf7f1;padding:24px;border-radius:12px}.prev-hypo-result strong{font-size:40px;color:#175b46}.prev-hypo table{width:100%;text-align:left;margin-top:14px}.prev-hypo td,.prev-hypo th{padding:8px;border-bottom:1px solid #dbe5df}.prev-hypo-note{font-size:13px;color:#526b60;line-height:1.5}#hypoError{color:#a12b25}
