/* ---------- «Escenarios» y «Presupuesto» dentro de Rentabilidad (escenarios.js). Colores: rentabilidad.css (--rt-pos, --rt-neg, con su versión oscura). */

.esc{display:grid;gap:14px;}
.esc-cargando{opacity:.6;transition:opacity .15s;}
.esc-palancas{display:grid;gap:12px;align-content:start;background:var(--card-bg);border:1px solid var(--border);border-radius:10px;padding:14px;}
.esc-control{display:grid;gap:4px;}
.esc-control label,.esc-ambito label{font-size:13px;font-weight:600;}
.esc-control input[type="range"]{width:100%;accent-color:var(--rt-ing);margin:4px 0 0;}
.esc-control output{font-size:12px;color:var(--text-muted);font-variant-numeric:tabular-nums;}
.esc-ayuda{margin:0;font-size:12px;color:var(--text-muted);line-height:1.4;}
.esc-ambito{display:grid;gap:4px;}
.esc select,.esc input[type="number"],.pres-controles select,.pres-importe{background:var(--card-bg);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:7px 9px;font:inherit;font-size:13px;}
.esc select{width:100%;}
.esc-caja{display:flex;align-items:center;gap:6px;}
.esc-caja input{width:9em;}
.esc-acciones{display:grid;gap:8px;border-top:1px solid var(--rt-rejilla);padding-top:12px;}
.esc-acciones .link-btn{justify-self:start;}
.esc-resultado{display:grid;gap:12px;min-width:0;}
.esc-nota,.esc-aviso{margin:0;font-size:13px;color:var(--text-muted);}
.esc-aviso{background:var(--card-bg);border:1px dashed var(--border);border-radius:10px;padding:14px;}
.esc-wrap,.pres-wrap{overflow-x:auto;background:var(--card-bg);border:1px solid var(--border);border-radius:10px;}
.esc-tabla,.pres-tabla{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums;}
.esc-tabla th,.esc-tabla td,.pres-tabla th,.pres-tabla td{padding:9px 10px;border-bottom:1px solid var(--rt-rejilla);text-align:left;white-space:nowrap;vertical-align:middle;}
.esc-tabla thead th,.pres-tabla thead th{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);}
.esc-tabla tbody th,.pres-tabla tbody th,.pres-tabla tfoot th{font-weight:500;}
.esc-tabla .num,.pres-tabla .num{text-align:right;}
.esc-fuerte th,.esc-fuerte td{font-weight:700;}
.esc-dif.bien{color:var(--rt-pos);} .esc-dif.mal{color:var(--rt-neg);}
.esc-faltan{background:var(--card-bg);border:1px solid var(--border);border-radius:10px;padding:12px 14px;}
.esc-faltan h4{margin:0 0 6px;font-size:13px;}
.esc-faltan ul{margin:0;padding-left:18px;font-size:13px;line-height:1.5;}
.esc-faltan p{margin:6px 0 0;}
.esc-detalle summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--accent);padding:4px 0;}
.esc-detalle .esc-wrap{margin-top:8px;}
.pres-controles{display:grid;gap:8px;margin-bottom:12px;}
.pres-importe{width:9.5em;text-align:right;}
.pres-bien{color:var(--rt-pos);font-weight:600;} .pres-mal{color:var(--rt-neg);font-weight:600;} .pres-neutro{color:var(--text-muted);}
.pres-nota{font-size:11px;font-weight:400;color:var(--text-muted);}
.pres-no-op th{color:var(--text-muted);}
.pres-total th,.pres-total td{font-weight:700;border-top:2px solid var(--rt-rejilla);}
.esc [hidden]{display:none !important;}
.esc :is(button,select,input,summary):focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

@container rt (min-width: 760px){
  .esc{grid-template-columns:minmax(250px,300px) minmax(0,1fr);align-items:start;}
}
