/* Approved technical layout: context, parameters, parallel input panels, dense results. */
@media screen {
.mf-theme-technical .wizard-grid{display:block}
.mf-theme-technical .wizard-pasos{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;max-height:none;padding:10px 14px;margin-bottom:18px;border:1px solid #dce3e9;border-radius:2px;box-shadow:none}
.mf-theme-technical .wizard-pasos-muestra{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;padding:0;border:0;background:none;flex:1}
.mf-theme-technical .wizard-pasos-muestra-prod{font-size:12px}
.mf-theme-technical .wizard-pasos-muestra-meta{margin:0;font-size:11px}
.mf-theme-technical .wizard-pasos-estado{margin:0}
.mf-theme-technical .wizard-pasos-bottom{padding:0}
.mt-calculation-meta{font-size:11px;color:#5c6e7e}
.mt-calculation-meta summary{cursor:pointer}
.mt-calculation-nav{display:flex;flex-wrap:wrap;gap:4px;width:100%;border-top:1px solid #e7ecf0;padding-top:8px}
.mf-theme-technical .mt-calculation-nav .paso-item{padding:5px 10px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;opacity:1}
.mf-theme-technical .mt-calculation-nav .paso-item.actual{border-bottom-color:#284b70;background:#eef3f7}
.mf-theme-technical .mt-calculation-nav .paso-texto{font-size:12px;color:#5c6e7e}
.mf-theme-technical .mt-calculation-nav .actual .paso-texto{color:#284b70}
.mf-theme-technical .wizard-main .pa-panel,.mf-theme-technical .wizard-main .card{border-radius:2px;box-shadow:none;border:1px solid #dce3e9;margin-bottom:12px}
.mf-theme-technical .wizard-main .pa-panel-body,.mf-theme-technical .wizard-main .card-body{padding:12px}
.mf-theme-technical .wizard-main .pa-panel-header,.mf-theme-technical .wizard-main .card-header{padding:8px 12px;background:#f7f9fb;color:#263644;border-bottom:1px solid #dce3e9}
.mf-theme-technical .wizard-main .form-grid{gap:9px 12px}
.mf-theme-technical .wizard-main .form-group{min-width:0;gap:3px}
.mf-theme-technical .wizard-main .form-group label{font:11px/1.4 'Segoe UI',sans-serif;text-transform:none;letter-spacing:0;color:#5c6e7e}
.mf-theme-technical .wizard-main .form-group input,.mf-theme-technical .wizard-main .form-group select{padding:5px 7px;min-height:30px;font-size:12px;max-width:100%;box-sizing:border-box}
.mt-input-columns,.mt-result-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:14px;align-items:start}
.mt-input-columns.mt-single-input{grid-template-columns:minmax(0,1fr)}
.mt-input-panel{min-width:0;border:1px solid #dce3e9;padding:10px;background:#fff}
.mt-input-panel[hidden]{display:none}
.mf-theme-technical .mt-input-title{font:600 13px/1.4 'Segoe UI',sans-serif;margin:0 0 8px;padding-bottom:7px;border-bottom:2px solid #dce3e9;color:#284b70}
.mf-theme-technical .mt-input-panel .seccion-titulo{font-size:11px;margin:10px 0 6px!important;text-transform:none;letter-spacing:0}
.mf-theme-technical .mt-input-panel .rep-row{margin:6px 0;border-radius:2px}
.mf-theme-technical .mt-input-panel .rep-row-header{padding:5px 8px;background:#f4f6f8}
.mf-theme-technical .mt-input-panel .rep-row-body{padding:8px;gap:8px;flex-wrap:wrap}
.mf-theme-technical .mt-input-panel .rep-row-body>.form-group{flex:1 1 110px!important;width:auto!important}
.mf-theme-technical .mt-input-panel .areas-grid{display:flex;gap:4px;flex-wrap:wrap}
.mf-theme-technical .mt-input-panel .areas-grid input{width:90px!important;min-width:0;max-width:100%;padding:5px 6px;font-size:12px;flex:1 1 70px}
.mf-theme-technical .mt-input-panel [id^='vasos-container-']{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.mf-theme-technical .mt-input-panel .btn-add-row{padding:4px 8px;margin-top:5px;font-size:11px}
.mf-theme-technical .mt-input-panel .mfd-sequence{gap:4px;margin:5px 0;min-height:0}
.mf-theme-technical .mt-input-panel .mfd-source{font-size:10px}
.mf-theme-technical .wizard-main .resultado-box{padding:12px;background:#fff;border:1px solid #dce3e9;border-left:3px solid #9babb9;border-radius:2px;margin:12px 0}
.mf-theme-technical .wizard-main .resultado-box.cumple{border-left-color:#4b7c61}
.mf-theme-technical .wizard-main .resultado-box.no-cumple{border-left-color:#b85656}
.mf-theme-technical .wizard-main .resultado-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:0;margin:8px 0!important;border:1px solid #e2e8ee;background:#f8fafb}
.mf-theme-technical .wizard-main .resultado-item{padding:8px 10px;border:0;border-right:1px solid #e2e8ee;border-radius:0;background:transparent}
.mf-theme-technical .wizard-main .resultado-item .valor{font-size:17px;font-weight:500}
.mf-theme-technical .wizard-main .stats-block{padding-top:8px;margin-top:8px}
.mf-theme-technical .wizard-main .stats-grid{gap:12px;margin-bottom:8px}
.mf-theme-technical .wizard-main .stats-titulo{font-size:12px;margin-bottom:7px}
.mf-theme-technical .wizard-main .mf-estadistica{padding:10px;margin:10px 0;border-radius:2px;background:#fff}
.mf-theme-technical .wizard-main .mf-estadistica-grupo{margin:8px 0;padding:0;border:1px solid #e2e8ee;border-radius:2px;min-width:0}
.mf-theme-technical .wizard-main .mf-estadistica-grupo-hdr{padding:6px 8px;background:#f4f6f8;border:0;font-size:11px;color:#263644}
.mf-theme-technical .wizard-main .mf-estadistica-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:0;padding:0}
.mf-theme-technical .wizard-main .mf-stat{padding:7px 9px;min-width:0;border-radius:0;background:none;box-shadow:none;border:0;border-right:1px solid #e2e8ee}
.mf-theme-technical .wizard-main .mf-stat-value{font-size:15px}
.mf-theme-technical .wizard-main .mf-estadistica-resultado{font-size:20px;margin:6px 0}
.mf-theme-technical .wizard-main .mf-estadistica-ic{font-size:12px}
.mf-theme-technical .wizard-main th,.mf-theme-technical .wizard-main td{padding:5px 8px;font-size:11px}
.mf-theme-technical .wizard-main .mf-disp-wrap{margin:8px 0;min-width:0;padding:8px;border:1px solid #e2e8ee}
.mf-theme-technical .wizard-main .mf-disp{width:100%;height:auto;max-height:200px;min-width:0}
.mf-theme-technical .wizard-main .formula-box{padding:8px 10px;margin-top:10px;background:#f7f9fb;border:1px solid #e2e8ee;border-radius:2px}
.mf-theme-technical .wizard-main .formula-expr{font-size:12px}
.mf-theme-technical .wizard-main .formula-vars{gap:4px 12px;font-size:10px}
.mt-table-scroll{max-width:100%;overflow-x:auto}
.mt-chart-expand{display:block;margin:0 0 5px auto;background:#fff;border:1px solid #dce3e9;padding:3px 7px;font-size:11px;color:#284b70;cursor:pointer}
.mt-chart-dialog{width:min(1000px,90vw);max-height:90vh;border:1px solid #dce3e9;padding:18px;border-radius:3px}
.mt-chart-dialog::backdrop{background:#26364488}
.mt-chart-dialog svg{display:block;width:100%;height:auto}
.mt-dirty-result,.mt-stale-label{padding:7px 10px;background:#fff6e3;border-left:3px solid #a87925;color:#785414;font-size:12px}
.mt-dirty-result[hidden]{display:none}
@media(min-width:1200px){.mf-theme-technical [data-role='bloque-estadistico']:not(.mf-estadistica-na){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px}.mf-theme-technical [data-role='bloque-estadistico']>div:not([data-role='grupo-estandares']):not([data-role='grupo-muestras']):not([data-role='grupo-dispersion-grafico']),.mf-theme-technical [data-role='bloque-estadistico']>p{grid-column:1/-1}.mf-theme-technical [data-role='grupo-estandares']{grid-column:1}.mf-theme-technical [data-role='grupo-muestras']{grid-column:2}.mf-theme-technical [data-role='grupo-dispersion-grafico']{grid-column:1/-1}}
@media(max-width:1000px){.mt-input-columns,.mt-result-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.mf-theme-technical .wizard-main .form-grid,.mf-theme-technical .wizard-main .stats-grid{grid-template-columns:minmax(0,1fr)}.mf-theme-technical .wizard-pasos{padding:9px}.mf-theme-technical .wizard-main .pa-panel-body{padding:8px}.mf-theme-technical .mt-input-panel [id^='vasos-container-']{grid-template-columns:minmax(0,1fr)!important}.mf-theme-technical .wizard-main .resultado-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mf-theme-technical .wizard-main .resultado-item{min-width:0;overflow-wrap:anywhere}}
}

@media screen {
.mf-theme-technical .wizard-main{color:#263644}
.mf-theme-technical .wizard-main .resultado-item[hidden]{display:none!important}
.mf-theme-technical .wizard-main .rep-row-body{display:flex}
.mf-theme-technical .wizard-main .stats-grid>*,.mf-theme-technical .mt-result-columns>*{min-width:0}
.mf-theme-technical .wizard-main .pa-panel-body{background:#fff}
.mf-theme-technical .wizard-main .seccion-titulo,.mf-theme-technical .wizard-main .stats-titulo,.mf-theme-technical .wizard-main .stats-subtitulo{font-family:'Segoe UI',sans-serif;letter-spacing:0;text-transform:none;color:#263644}
.mf-theme-technical .wizard-main .dil-table th{background:#f4f6f8;text-transform:none;letter-spacing:0;color:#5c6e7e;font-family:'Segoe UI',sans-serif}
.mf-theme-technical .wizard-main .mf-estadistica-grupo-hdr{font-family:'Segoe UI',sans-serif;letter-spacing:0;text-transform:none}
.mf-theme-technical .wizard-main .resultado-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.mf-theme-technical .mt-input-panel .dil-table .paso-label{width:auto;font-size:10px;text-transform:none;letter-spacing:0;max-width:125px;min-width:68px;line-height:1.35}
.mf-theme-technical .mt-result-columns .stats-subtitulo{margin:8px 0;font-weight:600}
.mf-theme-technical .wizard-main .mf-estadistica-crudo,.mf-theme-technical .wizard-main .mf-estadistica-sep{padding:5px 8px;margin:0}
.mf-theme-technical .wizard-main .rep-count-select{min-height:26px!important;padding:3px 6px!important}
.mf-theme-technical .wizard-main .remove-row{padding:3px 6px;font-size:11px;min-height:26px}
@media(max-width:600px){.mf-theme-technical .wizard-main .resultado-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
}
@media print {.mt-chart-expand,.mt-chart-dialog{display:none!important}}

@media screen {
.mf-theme-technical .wizard-main fieldset{min-width:0;max-width:100%;padding:0;border:0}
.mf-theme-technical .mt-result-columns>[data-role='grupo-dispersion-grafico']{grid-column:auto;margin:0}
.mf-theme-technical .mt-result-columns>.mf-estadistica-grupo .mf-disp-wrap{margin:0;border:0}
.mf-theme-technical .wizard-main .mf-estadistica-grupo{align-self:start}
}
@media screen {
.mf-theme-technical .wizard-main .mf-help[data-tooltip]::after{display:none;left:var(--mt-help-x,0px);transform:none;width:240px;max-width:calc(100vw - 100px);box-sizing:border-box}
.mf-theme-technical .wizard-main .mf-help:hover[data-tooltip]::after,.mf-theme-technical .wizard-main .mf-help:focus[data-tooltip]::after{display:block}
.mf-theme-technical .wizard-main .mf-estadistica-corregida{padding:8px;margin:0;background:#f8fafb}
.mf-theme-technical .wizard-main .mf-estadistica-formula{padding:6px;margin:6px 0;font-size:10px;line-height:1.4}
}
@media screen {
.mf-theme-technical .recursos-pane .btn{white-space:normal;max-width:100%;overflow-wrap:anywhere}
.mf-theme-technical .wizard-main .pa-panel-header h3{color:#263644}
.mf-theme-technical .wizard-main .mt-input-panel,.mf-theme-technical .wizard-main .resultado-box{scroll-margin-top:72px}
}
@media screen {
.mf-theme-technical .mt-input-panel [id^='unidades-container-'],.mf-theme-technical .mt-input-panel [id^='pesos-liq-uni-container-']{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.mf-theme-technical .wizard-main [id^='pesos-unidades-']{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))!important;gap:8px!important}
.mf-theme-technical #form-perf .mt-input-columns>.card{padding:0}
.mf-theme-technical #form-perf #vasos-container input{max-width:100%;min-width:65px}
@media(max-width:600px){.mf-theme-technical .mt-input-panel [id^='unidades-container-'],.mf-theme-technical .mt-input-panel [id^='pesos-liq-uni-container-']{grid-template-columns:minmax(0,1fr)!important}}
}
@media screen {
.mf-theme-technical .wizard-main{--primary:#284b70;--primary-dark:#263644;--primary-pale:#eef3f7}
.mf-theme-technical .wizard-main .btn-primary{background:#284b70;border-color:#284b70;box-shadow:none}
.mf-theme-technical .mt-result-columns>[data-role='uniformidad-estadistica']{margin:0!important}
.mt-profile-chart{min-width:0}.mf-theme-technical .mt-canvas-holder{height:250px!important;margin-bottom:0!important}
.mt-profile-chart.mt-chart-large{grid-column:1/-1}.mf-theme-technical .mt-chart-large .mt-canvas-holder{height:420px!important}
}

/* Final summary: session context stays compact, with all original metadata visible. */
@media screen {
 .mf-theme-technical .wizard-main .mt-final-context { display:grid; grid-template-columns:minmax(240px,.9fr) minmax(0,1.4fr); }
 .mf-theme-technical .mt-final-context>.card-header { align-items:flex-start; gap:10px; border-bottom:0; border-right:1px solid #dce3e9; }
 .mf-theme-technical .mt-final-context>.card-header>div { min-width:0; overflow-wrap:anywhere; }
 .mf-theme-technical .mt-final-context>.card-header h2 { margin:0 0 4px; font-size:13px; }
 .mf-theme-technical .mt-final-context>.card-header p { margin:0; font-size:12px; }
 .mf-theme-technical .mt-final-context>.card-header .topbar-estado { flex-shrink:0; }
 .mf-theme-technical .mt-final-context>.card-body { min-width:0; display:flex; align-items:center; }
 .mf-theme-technical .mt-final-meta { width:100%; gap:8px 12px!important; }
 .mf-theme-technical .mt-final-meta>div { min-width:0; overflow-wrap:anywhere; }
 .mf-theme-technical .mt-final-meta>div>div:first-child { font-size:10px!important; line-height:1.4; font-weight:500!important; letter-spacing:.2px!important; }
 .mf-theme-technical .mt-final-meta>div>div:last-child { font-size:12px!important; line-height:1.5; }
 .mf-theme-technical .mt-final-results .card-header h2,.mf-theme-technical .mt-final-standards .card-header h2 { margin:0; }
 .mf-theme-technical .mt-final-actions>.card-footer { flex-wrap:wrap; gap:8px; }
 .mf-theme-technical .mt-final-actions>.card-footer>div { min-width:0; }
 @media(max-width:1100px) {
  .mf-theme-technical .wizard-main .mt-final-context { grid-template-columns:minmax(0,1fr); }
  .mf-theme-technical .mt-final-context>.card-header { border-right:0; border-bottom:1px solid #dce3e9; }
 }
 @media(max-width:600px) {
  .mf-theme-technical .mt-final-meta { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  .mf-theme-technical .mt-final-context>.card-header { flex-wrap:wrap; }
 }
}

.mf-theme-technical .mt-final-results .mt-final-value,
.mf-theme-technical .mt-final-results .mt-final-spec { white-space:pre-line; overflow-wrap:anywhere; line-height:1.5; }
.mf-theme-technical .mt-final-results .mt-final-value>div,
.mf-theme-technical .mt-final-results .mt-final-spec>div { margin-bottom:6px; }
.mf-theme-technical .mt-final-results .mt-final-value>div:last-child,
.mf-theme-technical .mt-final-results .mt-final-spec>div:last-child { margin-bottom:0; }

/* Selector: completed/closed status actions must fit narrow screens too. */
.mf-theme-technical[data-mt-view="core:calculos_selector"] .wizard-main .msg {
  flex-wrap: wrap;
}
.mf-theme-technical[data-mt-view="core:calculos_selector"] .wizard-main .msg > div {
  min-width: 0;
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  .mf-theme-technical[data-mt-view="core:calculos_selector"] .wizard-main .card-body table {
    table-layout: fixed;
    min-width: 0;
  }
  .mf-theme-technical[data-mt-view="core:calculos_selector"] .wizard-main .card-body td {
    padding: 8px 5px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .mf-theme-technical[data-mt-view="core:calculos_selector"] .wizard-main .card-body td:first-child { width: 22px !important; }
  .mf-theme-technical[data-mt-view="core:calculos_selector"] .wizard-main .card-body td:last-child { width: 46%; }
  .mf-theme-technical[data-mt-view="core:calculos_selector"] .wizard-main .card-body .btn {
    max-width: 100%; white-space: normal; margin: 2px 0 !important; min-height: 36px;
  }
}
@media screen {
.mt-f2-chart-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin:12px 0 20px}
.mf-theme-technical .mt-scientific-chart-holder {height:245px!important;min-width:0;margin:0!important;background:#fff}
.mf-theme-technical .mf-disp-wrap {background:#fff;box-shadow:none;border-radius:3px}
}
@media screen {
.mf-theme-technical .mf-disp-band {fill:#edf2f6;opacity:.8}
.mf-theme-technical .mf-disp-range {fill:#f3f6f4}
.mf-theme-technical .mf-disp-axis {stroke:#8795a0;stroke-width:.8}
.mf-theme-technical .mf-disp-grid {stroke:#e8edf1;stroke-width:.6}
.mf-theme-technical .mf-disp-spec {stroke:#737e86;stroke-width:1.2;stroke-dasharray:4 4}
.mf-theme-technical .mf-disp-spec-lbl {fill:#59656e;font-weight:500}
.mf-theme-technical .mf-disp-mean {stroke:#294c65;stroke-width:1.6;stroke-dasharray:5 3}
.mf-theme-technical .mf-disp-mean-lbl {fill:#294c65;font-weight:500}
.mf-theme-technical .mf-disp-pt {fill:#355d78}
.mf-theme-technical .mf-disp-pt-total {fill:#688777}
.mf-theme-technical .mf-disp-pt-crit,.mf-theme-technical .mf-disp-value-lbl-crit {fill:#97535a}
.mf-theme-technical .mf-disp-stem-crit {stroke:#97535a}
}

@media screen {
.mt-f2-data-only {display:block}
.mf-theme-technical .mt-chart-large .mt-scientific-chart-holder {height:420px!important}
}

@media screen {
 .mf-theme-technical .mt-calibration-charts {grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))!important}
 .mf-theme-technical .mt-calibration-charts > div {position:relative;height:270px;min-width:0;background:#fff}
}

/* Keep the vessel area heading and values on the same visual axis. */
.tabla-resultados th.mf-disolucion-areas,
.tabla-resultados td.mf-disolucion-areas {
  text-align: center;
}
