@media screen {
html{overflow-x:hidden}
.mf-theme-technical{--mt-footer-height:48px;overflow-x:hidden}
.mf-theme-technical .mf-app{min-height:calc(100vh - var(--mt-footer-height))}
.mf-theme-technical .mf-footer{position:sticky;z-index:55;left:0;right:0;width:100vw;height:auto;min-height:48px;flex-wrap:wrap;gap:8px 16px;padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));box-sizing:border-box;max-width:100vw;overflow:hidden}
.mf-theme-technical .mf-footer-brand{min-width:0;max-width:100%;flex-shrink:0}
.mf-theme-technical .mf-footer-brand>.mt-footer-icon{flex:0 0 auto}
.mf-theme-technical .mf-footer-brand>div{min-width:0;overflow-wrap:anywhere}
.mf-theme-technical .mf-footer-meta{min-width:0;flex-wrap:wrap;gap:6px 12px;line-height:1.5}
.mf-theme-technical .mf-footer-meta>span{overflow-wrap:anywhere}
.mf-theme-technical .mf-rail,.mf-theme-technical .mf-sub{bottom:var(--mt-footer-height)}
.mf-theme-technical .dash2 .chart-card{border-radius:3px;padding:12px;min-width:0}
.mf-theme-technical .dash2 .canvas-wrap{height:230px!important;min-height:230px!important}
@media(max-width:760px){.mf-theme-technical .mf-footer-sep{display:none}.mf-theme-technical .mf-footer-meta{flex-basis:100%}.mf-theme-technical .dash2 .charts-row{grid-template-columns:minmax(0,1fr)!important}.mf-theme-technical .dash2 .canvas-wrap{height:250px!important;min-height:250px!important}}
}

/* Shared screen corrections: semantic tones, readable labels and compact actions. */
@media screen {
.mf-theme-technical .mf-sub-title {display:block;overflow-wrap:normal;word-break:normal;hyphens:none;line-height:1.5}
.mf-theme-technical .mf-sub-title>svg {display:inline-block;vertical-align:middle;flex-shrink:0;margin-right:4px}
.mf-theme-technical .mf-sub-title .mf-badge-piloto {display:table;margin-top:4px;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.mf-theme-technical .mf-sub-subtitle {grid-column:1 / -1;overflow-wrap:normal;word-break:normal;line-height:1.5}
.mf-theme-technical :is(h1,h2,h3,.card-title,.card-header,.mf-sub-item,.mf-sub-section) {word-break:normal;overflow-wrap:normal;hyphens:none;height:auto}
.mf-theme-technical :is(.mf-tag,.badge,.mf-badge-piloto) {max-width:100%;box-sizing:border-box;height:auto;line-height:1.4;white-space:normal;word-break:normal;overflow-wrap:normal;border-radius:3px;padding:3px 7px;font-size:11px;font-weight:500;letter-spacing:0}
.mf-theme-technical :is(.mf-tag-blue,.mf-tag-purple,.mf-tag-cyan,.mf-tag-teal,.badge-primary,.badge-info,.badge-secondary) {background:#edf2f6!important;color:#34536d!important;border:1px solid #dce4eb}
.mf-theme-technical :is(.mf-tag-green,.badge-success) {background:#edf3ef!important;color:#426650!important;border:1px solid #dae6de}
.mf-theme-technical :is(.mf-tag-amber,.mf-tag-yellow,.badge-warning,.mf-badge-piloto) {background:#f5f1e9!important;color:#775d31!important;border:1px solid #e8dfcf}
.mf-theme-technical :is(.mf-tag-red,.badge-danger) {background:#f7eeee!important;color:#8a4147!important;border:1px solid #ead6d8}
.mf-theme-technical :is(.btn,.mf-btn,.mt-button) {box-sizing:border-box;max-width:100%;min-width:0;min-height:32px;height:auto;padding:6px 10px!important;border-radius:3px!important;font-size:12px!important;font-weight:500!important;line-height:1.4!important;letter-spacing:0!important;white-space:normal!important;word-break:normal;overflow-wrap:normal;box-shadow:none!important;text-align:center}
.mf-theme-technical :is(.btn-primary,.mf-btn-primary) {background:#284b70!important;border:1px solid #284b70!important;color:#fff!important}
.mf-theme-technical :is(.btn-success,.btn-info,.btn-secondary,.mf-btn-success,.mf-btn-secondary) {background:#f6f8fa!important;border:1px solid #cfdbe5!important;color:#284b70!important}
.mf-theme-technical :is(.btn-warning,.mf-btn-warning) {background:#f5f1e9!important;border:1px solid #e8dfcf!important;color:#775d31!important}
.mf-theme-technical :is(.btn-danger,.mf-btn-danger) {background:#f7eeee!important;border:1px solid #ead6d8!important;color:#8a4147!important}
.mf-theme-technical :is(.btn,.mf-btn):disabled {opacity:.5;cursor:not-allowed}
.mf-theme-technical :is(.btn,.mf-btn):focus-visible {outline:2px solid #355879;outline-offset:2px}
.mf-theme-technical :is(.card-footer,.mf-result-actions,.form-actions,.mf-content-actions) {display:flex;flex-wrap:wrap;align-items:center;gap:8px!important}
.mf-theme-technical .card-footer>div:has(>.btn) {display:flex;flex-wrap:wrap;align-items:center;gap:8px!important;min-width:0;max-width:100%}
.mf-theme-technical [data-role="panel-finalizar-sin-veredicto"] {flex-basis:100%;min-width:0}
@media(pointer:coarse){.mf-theme-technical :is(.btn,.mf-btn,.mt-button){min-height:44px}}
}
@media screen {
.mf-theme-technical #autoLogoutModal {background:rgba(28,43,57,.35)!important}
.mf-theme-technical #autoLogoutModal>div {max-width:400px!important;border:1px solid #dce3e9;border-radius:4px!important;box-shadow:0 8px 28px #26364422!important}
.mf-theme-technical #autoLogoutModal>div>div:first-child {background:#f4f7f9!important;color:#284b70!important;border-bottom:1px solid #dce3e9;border-radius:3px 3px 0 0!important;padding:12px 16px!important;font-size:14px}
.mf-theme-technical #autoLogoutModal>div>div:nth-child(2) {padding:18px!important;text-align:left!important;font-size:13px;color:#344b5e}
.mf-theme-technical #autoLogoutCountdown {font-size:28px!important;font-weight:500!important;font-variant-numeric:tabular-nums;color:#284b70!important;margin:10px 0!important}
.mf-theme-technical #autoLogoutModal>div>div:last-child {padding:0 18px 16px!important;justify-content:flex-end!important}
.mf-theme-technical #autoLogoutModal button {background:#284b70!important;border:1px solid #284b70!important;border-radius:3px!important;padding:7px 12px!important;font-size:12px!important;font-weight:500!important;min-height:34px;color:#fff!important}
.mf-theme-technical #autoLogoutModal button:focus-visible {outline:2px solid #355879;outline-offset:3px}
}

@media screen {
.mf-theme-technical .mf-footer-company {display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.mf-theme-technical .mt-footer-monogram {display:inline-flex;flex:0 0 28px;width:28px;height:20px}
.mf-theme-technical .mt-footer-monogram img {width:28px;height:20px;object-fit:contain}
}

@media screen {
.mf-theme-technical :is(.btn,.mf-btn,.mt-button) {flex-shrink:0}
.mf-theme-technical :is(.msg,.alert,.mf-alert) {word-break:normal;overflow-wrap:normal;line-height:1.5}
.mf-theme-technical .msg:has(>.btn) {flex-wrap:wrap}
.mf-theme-technical :is(.msg-warn,.alert-warning) {background:#f5f1e9!important;color:#775d31!important;border-color:#e8dfcf!important}
.mf-theme-technical :is(.msg-success,.alert-success) {background:#edf3ef!important;color:#426650!important;border-color:#dae6de!important}
.mf-theme-technical :is(.msg-error,.alert-danger) {background:#f7eeee!important;color:#8a4147!important;border-color:#ead6d8!important}
.mf-theme-technical :is(.msg-info,.alert-info) {background:#edf2f6!important;color:#34536d!important;border-color:#dce4eb!important}
}
@media screen {
.mf-theme-technical :is(a[href],button,summary,select,[role="button"],[role="tab"],[onclick],.btn,.mf-btn,.mt-button,input[type="button"],input[type="submit"],input[type="reset"],input[type="checkbox"],input[type="radio"],label[for]) {cursor:pointer}
.mf-theme-technical :is(button,input,select,textarea):disabled,.mf-theme-technical [aria-disabled="true"] {cursor:not-allowed}
.mf-theme-technical :is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),textarea):not(:disabled) {cursor:text}
}

/* Small native browser cursors; keep text selection and disabled feedback. */
@media screen and (hover:hover) and (pointer:fine) {
.mf-theme-technical {cursor:url("../img/cursors/mafel-arrow.82ead40f67f2.svg") 2 2,default}
.mf-theme-technical :is(a[href],button,summary,select,[role="button"],[role="tab"],[onclick],.btn,.mf-btn,.mt-button,input[type="button"],input[type="submit"],input[type="reset"],input[type="checkbox"],input[type="radio"],label[for]) {cursor:url("../img/cursors/mafel-hand.8bfc655be8c0.svg") 10 3,pointer}
.mf-theme-technical :is(button,input,select,textarea):disabled,.mf-theme-technical [aria-disabled="true"] {cursor:not-allowed}
.mf-theme-technical :is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),textarea):not(:disabled) {cursor:text}
}

@media screen {
.mf-theme-technical {--mf-amber-50:#f5f1e9;--mf-amber-100:#e8dfcf;--mf-amber-700:#775d31;--mf-purple-50:#edf2f6;--mf-purple-100:#dce4eb;--mf-purple-700:#34536d;--mf-green-50:#edf3ef;--mf-green-100:#dae6de;--mf-green-700:#426650;--mf-red-50:#f7eeee;--mf-red-100:#ead6d8;--mf-red-700:#8a4147}
.mf-theme-technical :is(.formula-expr,.mt-area-label) {color:#34536d!important}
.mf-theme-technical .mt-area-state {border-radius:3px!important;background:#edf2f6!important;color:#34536d!important;white-space:normal;word-break:normal}
.mf-theme-technical .mt-area-state[data-state="pendiente"] {background:#f5f1e9!important;color:#775d31!important}
.mf-theme-technical .mt-area-state[data-state="concluida"] {background:#edf3ef!important;color:#426650!important}
}

@media screen {
.mf-theme-technical .mt-selector-actions {white-space:normal!important}
.mf-theme-technical .mt-selector-actions .btn {margin:3px 0 3px 4px!important;vertical-align:middle}
.mf-theme-technical #modalQR>div {max-width:calc(100vw - 32px);border:1px solid #dce3e9;border-radius:4px!important;box-shadow:0 8px 28px #26364422!important}
}
@media screen {
/* Approved option A: soft blue-grey actions, white secondary buttons. */
.mf-theme-technical :is(.btn-primary,.mf-btn-primary,.mt-button.mt-primary) {background:#edf2f6!important;color:#34536d!important;border:1px solid #cbd8e3!important}
.mf-theme-technical :is(.btn-primary,.mf-btn-primary,.mt-button.mt-primary):hover:not(:disabled) {background:#e1eaf1!important;border-color:#9fb4c5!important}
.mf-theme-technical :is(.btn-secondary,.mf-btn-secondary) {background:#fff!important;color:#344b5e!important;border-color:#d7dfe6!important}
.mf-theme-technical #autoLogoutModal button {background:#edf2f6!important;color:#34536d!important;border-color:#cbd8e3!important}
.mf-theme-technical :is(.btn,.mf-btn,.mt-button)>svg {width:15px;height:15px;flex-shrink:0}
}

@media screen {
.mf-theme-technical .sc-btn {box-sizing:border-box;min-height:32px;padding:6px 10px!important;border:1px solid #d7dfe6!important;border-radius:3px!important;background:#fff!important;color:#344b5e!important;font-size:12px!important;font-weight:500!important;line-height:1.4;white-space:normal;word-break:normal;box-shadow:none!important}
.mf-theme-technical .sc-btn.primary {background:#edf2f6!important;color:#34536d!important;border-color:#cbd8e3!important}
.mf-theme-technical .sc-btn.primary:hover {background:#e1eaf1!important;border-color:#9fb4c5!important}
.mf-theme-technical .sc-btn:focus-visible {outline:2px solid #355879;outline-offset:2px}
@media(pointer:coarse){.mf-theme-technical .sc-btn{min-height:44px}}
}
@media screen and (hover:hover) and (pointer:fine) {
.mf-theme-technical .sc-btn {cursor:url("../img/cursors/mafel-hand.8bfc655be8c0.svg") 10 3,pointer}
}

/* Status labels are indivisible: tables reserve their natural text width. */
@media screen {
.mf-theme-technical :is(.mf-tag:not(.ensayo-tag),.badge,.mt-status,.mt-area-state,.mf-badge-piloto) {white-space:nowrap;word-break:normal;overflow-wrap:normal;max-width:none;flex-shrink:0}
}
/* Keep sort arrows attached to column labels, including inactive directions. */
@media screen {
.mf-theme-technical th:is(.th-sort,.sortable,[aria-sort]) {white-space:nowrap;word-break:normal;overflow-wrap:normal;vertical-align:middle}
.mf-theme-technical th:is(.th-sort,.sortable,[aria-sort])>span {display:inline;white-space:inherit}
}
/* Urgent work stays visible independently of the optional analytics panel. */
@media screen {
.mf-theme-technical .mt-urgent-panel {margin:0 0 18px;color:#344b5e}
.mt-urgent-panel .sec-head,.mt-urgent-panel .u-head {display:flex;align-items:center;gap:8px;padding:10px 12px}
.mt-urgent-panel .sec-head .t {font-size:14px;font-weight:600}
.mt-urgent-panel .dot-ic {display:none}
.mt-urgent-panel .spacer {flex:1}
.mt-urgent-panel .pill {background:#f5f1e9;color:#775d31;border:1px solid #e8dfcf;padding:3px 8px;border-radius:3px;font-size:12px;white-space:nowrap}
.mt-urgent-panel .urgentes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mt-urgent-panel .u-card {background:white;border:1px solid #dce4eb;border-radius:3px;min-width:0}
.mt-urgent-panel .u-head {border-bottom:1px solid #dce4eb;background:#f6f8fa;font-size:13px;font-weight:600}
.mt-urgent-panel .u-head .n {margin-left:auto;font-weight:400}
.mt-urgent-panel .u-posits {padding:0 12px}
.mt-urgent-order {font-size:11px;color:#64748b;margin:8px 0}
.mt-urgent-row {display:grid;grid-template-columns:1fr auto;gap:3px 10px;padding:9px 0;border-top:1px solid #edf2f6;color:inherit;text-decoration:none;font-size:12px;overflow-wrap:anywhere}
.mt-urgent-row:hover {background:#f6f8fa}
.mt-urgent-row:focus-visible {outline:2px solid #7695b0;outline-offset:2px}
.mt-urgent-code {color:#34536d;font-weight:600}
.mt-urgent-age {color:#64748b;font-size:11px}
.mt-urgent-row strong,.mt-urgent-meta {grid-column:1/-1}
.mt-urgent-row strong {font-weight:500;font-size:13px}
.mt-urgent-meta {color:#64748b;font-size:11px}
.mt-urgent-more summary {cursor:pointer;padding:10px 0;color:#34536d;font-size:12px}
.mt-urgent-panel .u-empty {padding:12px;font-size:12px;color:#64748b}
@media(max-width:760px){.mt-urgent-panel .urgentes{grid-template-columns:1fr}.mt-urgent-row{grid-template-columns:1fr}.mt-urgent-panel .sec-head{flex-wrap:wrap}}
}
@media screen {
.mf-theme-technical .dash2 .avisos .msg-filters {display:flex;align-items:center;gap:10px;padding:10px 12px;flex-wrap:nowrap}
.mf-theme-technical .avisos .msg-filters label {font-size:12px;color:#64748b;margin:0;flex-shrink:0}
.mf-theme-technical #avisos-categoria {min-width:0;width:100%;min-height:34px;padding:6px 28px 6px 9px;border:1px solid #cbd8e3;border-radius:3px;background:#fff;color:#34536d;font:inherit;font-size:12px}
.mf-theme-technical #avisos-categoria:focus-visible {outline:2px solid #7695b0;outline-offset:2px}
.mf-theme-technical .dash2 .avisos .msg-head .live {background:#edf3ef;color:#426650;border-radius:3px;font-size:10px}
.mf-theme-technical .dash2 .avisos .msg-head .live::before {background:#668577;box-shadow:none;animation:none}
}
@media screen {
.mf-theme-technical #mt-access>summary {position:relative}
.mf-theme-technical .mt-alert-dot {position:absolute;top:-3px;right:-8px;width:7px;height:7px;border-radius:50%;background:#a56c42;box-shadow:0 0 0 2px #fff;pointer-events:none}
.mf-theme-technical .mt-alert-dot[hidden] {display:none}
.mf-theme-technical .mt-header-messages {position:relative;flex-shrink:0}
.mf-theme-technical .mt-header-messages>a {display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #dce4eb;border-radius:3px;color:#526e85;background:#fff}
.mf-theme-technical .mt-header-messages>a>svg {width:18px;height:18px}
.mf-theme-technical .mt-header-messages .mf-topbar-badge {position:absolute;top:-5px;right:-5px;background:#edf2f6;color:#34536d;border:1px solid #cbd8e3;box-shadow:none;animation:none}
}

@media screen {
.mf-theme-technical .mt-assay-summary {min-width:480px;table-layout:auto}
.mf-theme-technical .mt-assay-summary :is(th,td) {word-break:normal;overflow-wrap:normal}
.mf-theme-technical .mt-assay-summary td:nth-child(3) {white-space:nowrap}
}

/* Approved 24/09: white conclusions, black text, muted outline. */
.mf-theme-technical .badge-cumple,
.mf-theme-technical .b-cumple,
.mf-theme-technical .cumple-cell,
.mf-theme-technical .resultado-box.cumple,
.mf-theme-technical .imp-ver-cumple,
.mf-theme-technical .cu-verdict[data-cumple="true"],
.mf-theme-technical .sst-veredicto-global[data-val="cumple"],
.mf-theme-technical .sst-eval-card[data-estado="cumple"],
.mf-theme-technical .conclusion-cumple,
.mf-theme-technical .res-pasa {background:#ffffff !important;color:#202020 !important;border:1px solid #64816e !important;box-shadow:none !important;}
.mf-theme-technical .badge-no-cumple,
.mf-theme-technical .b-nocumple,
.mf-theme-technical .nocumple-cell,
.mf-theme-technical .resultado-box.no-cumple,
.mf-theme-technical .imp-ver-nocumple,
.mf-theme-technical .cu-verdict[data-cumple="false"],
.mf-theme-technical .sst-veredicto-global[data-val="no_cumple"],
.mf-theme-technical .sst-eval-card[data-estado="no_cumple"],
.mf-theme-technical .conclusion-no_cumple,
.mf-theme-technical .res-falla {background:#ffffff !important;color:#202020 !important;border:1px solid #a3656c !important;box-shadow:none !important;}
.mf-theme-technical .cumple-val,.mf-theme-technical .no-cumple-val {color:#202020 !important;}

.mf-theme-technical .badge-green, .mf-theme-technical .mf-tag-green {background:#fff !important;color:#202020 !important;border:1px solid #64816e !important;box-shadow:none !important;}

.mf-theme-technical .badge-red, .mf-theme-technical .mf-tag-red {background:#fff !important;color:#202020 !important;border:1px solid #a3656c !important;box-shadow:none !important;}
