/* Revisión documental · layout v2 (solo wide y mid; el móvil «compact» no cambia)
   - Cabecera alineada al centro, sin estirar elementos.
   - Dos columnas: izquierda = visor alto con miniaturas en riel vertical; derecha = todos los datos
     (trazabilidad, ficha de evaluación y decisión). */

/* ---------- cabecera ---------- */
/* grilla: fila 1 = rótulo; fila 2 = identidad y acciones, centradas entre sí sobre el mismo eje */
html[data-lay="mid"] .an-dlg.doc .an-dh{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:6px;align-items:center;padding-bottom:12px}
html[data-lay="mid"] .an-dlg.doc .an-dt{display:contents}
html[data-lay="mid"] .an-dlg.doc .an-kick{grid-column:1;grid-row:1;margin:0}
html[data-lay="mid"] .an-dlg.doc .an-id{grid-column:1;grid-row:2;align-items:center;gap:14px}
html[data-lay="mid"] .an-dlg.doc .an-dh>.an-hb{grid-column:2;grid-row:2;align-self:center}
html:not([data-lay="compact"]) .an-dlg.doc .an-cno{align-self:center;height:auto;padding:5px 12px}
html:not([data-lay="compact"]) .an-dlg.doc .an-idn{align-self:center;display:flex;flex-direction:column;justify-content:center;gap:2px}
html:not([data-lay="compact"]) .an-dlg.doc .an-hn,html:not([data-lay="compact"]) .an-dlg.doc .an-rut{margin:0}
.an-dlg.doc .an-dh>.an-hb .an-nt{margin:0}
html:not([data-lay="compact"]) .an-dlg.doc .an-cnav .an-cnl{align-self:center}

/* ---------- cuerpo: dos columnas ---------- */
html:not([data-lay="compact"]) .an-dlg.doc .an-db{padding-top:0}
html:not([data-lay="compact"]) .an-dlg.doc .an-split{gap:20px}
html[data-lay="wide"] .an-dlg.doc .an-split{grid-template-columns:var(--lw,minmax(0,1fr)) minmax(0,1fr)}

/* izquierda: riel de miniaturas + barra + visor */
html:not([data-lay="compact"]) .an-dlg.doc .an-split>section{
  display:grid;grid-template-columns:128px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);
  grid-template-areas:"bar bar" "rail stage";column-gap:14px;row-gap:8px;min-height:0}
html:not([data-lay="compact"]) .an-dlg.doc .an-vt{grid-area:bar;margin:0;min-height:32px}
html:not([data-lay="compact"]) .an-dlg.doc .an-vr{margin-left:auto}
html:not([data-lay="compact"]) .an-dlg.doc .an-stage{grid-area:stage;height:auto;min-height:0}
html:not([data-lay="compact"]) .an-dlg.doc .an-thw{grid-area:rail;margin:0;display:flex;flex-direction:column;gap:6px;min-height:0;min-width:0}
html:not([data-lay="compact"]) .an-dlg.doc .an-th{flex:1;min-height:0;flex-direction:column;overflow-x:hidden;overflow-y:auto;scroll-snap-type:y proximity;padding:4px 6px 4px 2px;gap:8px}
html:not([data-lay="compact"]) .an-dlg.doc .an-th li{scroll-snap-align:start}
html:not([data-lay="compact"]) .an-dlg.doc .an-thn{flex:none;width:100%;height:28px;min-height:28px;display:grid;place-items:center}
html:not([data-lay="compact"]) .an-dlg.doc .an-thn svg{transform:rotate(90deg)}
html:not([data-lay="compact"]) .an-dlg.doc .an-thn[data-nav="-1"] svg{transform:rotate(90deg)}
html:not([data-lay="compact"]) .an-dlg.doc .an-thn[data-nav="1"] svg{transform:rotate(90deg)}
html:not([data-lay="compact"]) .an-dlg.doc .an-tb{width:100%;padding:5px;gap:3px}
html:not([data-lay="compact"]) .an-dlg.doc .an-tf{height:70px}
html:not([data-lay="compact"]) .an-dlg.doc .an-tf.real{height:84px}
html:not([data-lay="compact"]) .an-dlg.doc .an-tn{min-height:0;-webkit-line-clamp:2}

/* derecha: trazabilidad + ficha + decisión */
.an-trz{display:none}
html:not([data-lay="compact"]) .an-dlg.doc .an-trz{display:block;flex:none;margin:0 0 10px}
.an-trz h4{margin:0 0 6px;font-size:.75rem;font-weight:600;color:var(--ink-2)}
html:not([data-lay="compact"]) .an-dlg.doc .an-trz .an-tzw{padding:0}
html:not([data-lay="compact"]) .an-dlg.doc .an-trz .an-tz.slim{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}
html:not([data-lay="compact"]) .an-dlg.doc .an-trz .an-tz.slim>div{padding:6px 12px;border-left:0}
html:not([data-lay="compact"]) .an-dlg.doc .an-trz .an-tz.slim>div:nth-child(even){border-left:1px solid var(--line-strong)}
html:not([data-lay="compact"]) .an-dlg.doc .an-trz .an-tz.slim>div:nth-child(n+3){border-top:1px solid var(--line-strong)}
html:not([data-lay="compact"]) .an-dlg.doc .an-trz .an-tz.slim dd{font-size:.8125rem}
html:not([data-lay="compact"]) .an-dlg.doc .an-evt{padding:0 2px 6px}
html:not([data-lay="compact"]) .an-dlg.doc .an-evs{margin:2px 0 8px}

/* pie: una sola línea de contadores */
html:not([data-lay="compact"]) .an-dlg.doc>.an-df .hint{max-width:none}

/* mid (tablet): una columna; la trazabilidad queda arriba de la ficha y el riel vuelve a ser horizontal */
html[data-lay="mid"] .an-dlg.doc .an-split>section{display:block}
html[data-lay="mid"] .an-dlg.doc .an-th{flex-direction:row;overflow-x:auto;overflow-y:hidden}
html[data-lay="mid"] .an-dlg.doc .an-thw{display:grid;grid-template-columns:auto minmax(0,1fr) auto;margin-top:10px}
html[data-lay="mid"] .an-dlg.doc .an-thn svg{transform:none}
html[data-lay="mid"] .an-dlg.doc .an-tb{width:108px}
html[data-lay="compact"] .an-trz{display:none}

/* ---------- wide: identidad arriba y acciones abajo de la columna derecha ---------- */
.an-ahead,.an-afoot{display:none}
html[data-lay="wide"] .an-dlg.doc{position:relative}
html[data-lay="wide"] .an-dlg.doc .an-dh{position:absolute;top:14px;right:16px;z-index:4;display:block;padding:0}
html[data-lay="wide"] .an-dlg.doc .an-dh>.an-hb{min-height:0}
html[data-lay="wide"] .an-dlg.doc .an-db{padding-top:18px}
html[data-lay="wide"] .an-dlg.doc .an-ahead{display:block;flex:none;padding:0 48px 12px 2px;margin-bottom:10px;border-bottom:1px solid var(--line)}
html[data-lay="wide"] .an-dlg.doc .an-ahead .an-dt{display:flex;flex-direction:column;gap:6px}
html[data-lay="wide"] .an-dlg.doc .an-ahead .an-kick{margin:0}
html[data-lay="wide"] .an-dlg.doc .an-ahead .an-id{display:flex;align-items:center;gap:14px}
html[data-lay="wide"] .an-dlg.doc .an-afoot{display:flex;flex:none;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:12px;border-top:1px solid var(--line)}
html[data-lay="wide"] .an-dlg.doc .an-afoot .an-cnav{margin-right:auto;height:36px}
html[data-lay="wide"] .an-dlg.doc .an-afoot .an-nt{margin:0;height:36px}
html[data-lay="wide"] .an-dlg.doc .an-afoot .btn,html[data-lay="wide"] .an-dlg.doc .an-afoot [data-ntw]{height:36px;min-height:36px;box-sizing:border-box}
html[data-lay="wide"] .an-dlg.doc .an-afoot [data-ntw]{display:inline-flex;align-items:center}
html[data-lay="wide"] .an-dlg.doc .an-afoot .an-pm{display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1}

/* ---------- N.º de caso como metadata del contador + alineación de las flechas ---------- */
html:not([data-lay="compact"]) .an-dlg.doc .an-cno{display:none}
.an-dlg.doc .an-cnav{align-items:center}
.an-dlg.doc .an-cnav .an-cnl{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0;height:36px;line-height:1;white-space:nowrap}
.an-dlg.doc .an-cnav .an-cnl b,.an-dlg.doc .an-cnav .an-cnl span{line-height:1}
.an-dlg.doc .an-cnn{font-size:.8125rem;font-weight:500;color:var(--ink-2);font-variant-numeric:tabular-nums;letter-spacing:.01em}
.an-dlg.doc .an-cnn::before{content:"";display:inline-block;width:3px;height:3px;margin-right:8px;border-radius:50%;background:var(--ink-4);vertical-align:middle}
.an-dlg.doc .an-cnb{align-items:center}
.an-dlg.doc .an-cnb .btn,.an-dlg.doc .an-thn{display:grid;place-items:center;line-height:0;padding-top:0;padding-bottom:0}
.an-dlg.doc .an-cnb .btn svg,.an-dlg.doc .an-thn svg{display:block;margin:0;flex:none}
/* N.º de caso: compensa el ascender de la fuente monoespaciada */
.an-cnl .an-cnn{position:relative;top:1px}
/* ID Caso junto al RUT (doc modal) */
.an-dlg.doc .an-rut .an-rid{margin-left:14px;padding-left:14px;border-left:1px solid var(--line,rgba(0,0,0,.14));white-space:nowrap}
.an-dlg.doc .an-rut .an-rid b{font-weight:600}

/* Header unificado (ID tras el RUT + alineación) para los modales de Panel de análisis: Rentas y Juicios */
html:not([data-lay="compact"]) .an-dlg.hv2 .an-dh{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:6px;align-items:center;padding-bottom:12px}
html:not([data-lay="compact"]) .an-dlg.hv2 .an-dt{display:contents}
html:not([data-lay="compact"]) .an-dlg.hv2 .an-kick{grid-column:1;grid-row:1;margin:0}
html:not([data-lay="compact"]) .an-dlg.hv2 .an-id{grid-column:1;grid-row:2;align-items:center;gap:14px}
html:not([data-lay="compact"]) .an-dlg.hv2 .an-dh>.an-hb{grid-column:2;grid-row:2;align-self:center}
html:not([data-lay="compact"]) .an-dlg.hv2 .an-idn{align-self:center;display:flex;flex-direction:column;justify-content:center;gap:2px}
html:not([data-lay="compact"]) .an-dlg.hv2 .an-hn,html:not([data-lay="compact"]) .an-dlg.hv2 .an-rut{margin:0}
.an-dlg.hv2 .an-dh>.an-hb .an-nt{margin:0}
html:not([data-lay="compact"]) .an-dlg.hv2 .an-cnav .an-cnl{align-self:center}
.an-dlg.hv2 .an-rut .an-rid{margin-left:14px;padding-left:14px;border-left:1px solid var(--line,rgba(0,0,0,.14));white-space:nowrap}
.an-dlg.hv2 .an-rut .an-rid b{font-weight:600}

/* ===== Análisis de renta · barra de contexto + tarjeta de resultado ===== */
.an-dlg.hv2 .rn-ctx{display:flex;flex-wrap:wrap;align-items:center;gap:6px 0;border:1px solid var(--line);border-radius:14px;background:var(--soft);padding:8px 14px;color:var(--ink-2);font-size:.75rem;margin:0 0 12px}
.an-dlg.hv2 .rn-ci{display:inline-flex;gap:6px;align-items:center;padding:0 12px;border-left:1px solid var(--line-strong)}
.an-dlg.hv2 .rn-ci:first-child{padding-left:0;border-left:0}
.an-dlg.hv2 .rn-ci b{color:var(--ink);font-weight:600;font-size:.8125rem;display:inline-flex;align-items:center;gap:6px}
.an-dlg.hv2 .rn-csp{flex:1;min-width:8px}
.an-dlg.hv2 .rn-ctx>.btn{margin-left:6px}
.an-dlg.hv2 .rn-kcard{padding:0;overflow:hidden;margin-bottom:12px}
.an-dlg.hv2 .rn-kh{margin:0;padding:10px 18px;background:var(--soft);border-bottom:1px solid var(--line)}
.an-dlg.hv2 .rn-kc2{align-items:center;gap:10px 18px}
.an-dlg.hv2 .rn-kc2 .rn-f{flex-direction:row;align-items:center;gap:8px;white-space:nowrap}
.an-dlg.hv2 .rn-sp{flex:1}
.an-dlg.hv2 .rn-kpis{grid-template-columns:minmax(440px,1.8fr) repeat(4,minmax(0,1fr));gap:0;margin:0}
.an-dlg.hv2 .rn-k,.an-dlg.hv2 .rn-k.main{border:0;border-left:1px solid var(--line);border-radius:0;background:var(--surface);padding:18px 20px}
.an-dlg.hv2 .rn-k:first-child{border-left:0}
.an-dlg.hv2 .rn-kl{font-size:.875rem;font-weight:600;color:var(--ink)}
.an-dlg.hv2 .rn-kp{font-weight:500;font-size:.8125rem;color:var(--ink-2);margin-left:12px}
.an-dlg.hv2 .rn-kvr{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.an-dlg.hv2 .rn-k.main .rn-kv{font-size:2.5rem}
.an-dlg.hv2 .rn-k:not(.main){padding:18px 16px}
.an-dlg.hv2 .rn-ks2{color:var(--primary-ink)}
@media (max-width:1100px){.an-dlg.hv2 .rn-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.an-dlg.hv2 .rn-k{border-left:1px solid var(--line);border-top:1px solid var(--line);padding:14px 16px}.an-dlg.hv2 .rn-k.main{grid-column:1/-1;border-top:0;border-left:0}.an-dlg.hv2 .rn-k:nth-child(2){border-left:0}}
html[data-lay="compact"] .an-dlg.hv2 .rn-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-lay="compact"] .an-dlg.hv2 .rn-k:nth-child(odd){border-left:0}

/* Tabla del certificado: celdas con campo numérico alineadas a la derecha, igual que su encabezado.
   El texto del encabezado queda sobre el valor (mismo borde derecho = borde del campo − relleno interno del campo). */
.rn-t td:has(>.rn-in){text-align:right}
.rn-t thead th.num:nth-child(n+4):nth-child(-n+7){padding-right:19px}
.rn-t th,.rn-t td{padding-left:8px;padding-right:8px}
.rn-t thead th.num:nth-child(n+4):nth-child(-n+7){padding-right:19px}

/* ===== v173 · Análisis de juicios: tablero por fuentes, pestañas, proveedor y Poder Judicial ===== */
.an-dlg.jx{width:min(1120px,100%)}
html:not([data-lay="compact"]) .an-dlg.jx .an-tz.slim{grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
.an-dlg.jx .an-tz.slim>div{padding:8px 22px}
.an-dlg.jx .an-db{padding-top:0;overscroll-behavior:contain}
.an-dlg.jx .jx-board{margin-top:2px}
.jx-board{border:1px solid var(--line-strong);border-radius:var(--r-card);background:var(--surface);padding:14px 16px;margin:0 0 14px;display:flex;flex-direction:column;gap:12px}
.jx-bh{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.jx-bh h3{margin:0;font-size:.9375rem;font-weight:600}
.jx-cbar{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:var(--soft);border-radius:var(--r-row);padding:8px 12px}
.jx-cbt{display:flex;flex-direction:column;min-width:0}
.jx-cbt b{font-weight:600;font-size:.8125rem}
.jx-cbtn{margin-left:auto}
.jx-tw{overflow-x:auto;overscroll-behavior:contain}
.jx-bt th,.jx-bt td{white-space:nowrap}
.jx-bt th.num,.jx-bt td.num{text-align:right}
.jx-bt td.jx-src{font-weight:600}
.jx-z{color:var(--ink-2)}
.jx-h{color:var(--warning-ink);font-weight:700}
.jx-cx{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.jx-sp{flex:1}
/* pestañas con estado: hecho = verde con check, actual = azul, pendiente = neutro */
.jx-tabs{display:flex;gap:8px;position:sticky;top:0;z-index:3;background:var(--raised);padding:8px 0 10px;margin:0;border-bottom:1px solid var(--line)}
.jx-tab{flex:1;min-width:0;display:flex;align-items:center;gap:8px;border:0;border-radius:var(--r-ctl);background:var(--soft);color:var(--ink-2);font:inherit;font-size:.8125rem;font-weight:500;padding:8px 12px;text-align:left;cursor:pointer;white-space:nowrap}
.jx-tab:hover{background:var(--track)}
.jx-n{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;flex:none;font-size:.75rem;font-weight:600;border:1.5px solid var(--ink-3);color:var(--ink)}
.jx-n .i{width:12px;height:12px}
.jx-tab.ok{background:var(--success-bg);color:var(--success-ink)}
.jx-tab.ok .jx-n{background:var(--ok-fill);border-color:var(--ok-fill);color:var(--ok-on)}
.jx-tab[aria-selected="true"]{background:var(--primary-tint);color:var(--primary-ink);font-weight:600;box-shadow:inset 0 0 0 1.5px var(--primary)}
.jx-tab[aria-selected="true"]:not(.ok) .jx-n{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.jx-tab:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
.jx-panel{display:flex;flex-direction:column;gap:14px;padding:14px 0 6px}
/* ficha etiqueta + dato: sin saltos de línea */
.jx-kv{display:flex;flex-direction:column;margin:0}
.jx-kr{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:12px;align-items:center;min-height:36px;padding:6px 0;border-bottom:1px solid var(--line)}
.jx-kr:last-child{border-bottom:0}
.jx-kr dt{font-size:.75rem;font-weight:500;color:var(--ink-2);white-space:nowrap}
.jx-kr dd{margin:0;font-weight:600;font-size:.8125rem;white-space:nowrap;display:flex;align-items:center;gap:8px;min-width:0}
.jx-kr dd.wrap{white-space:normal;font-weight:500;align-items:flex-start;line-height:1.45}
.jx-kr.w dd>.num{color:var(--warning-ink)}
.jx-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.jx-score{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.jx-big{font-size:1.625rem;font-weight:700;letter-spacing:-.02em}
.jx-f{display:flex;flex-direction:column;gap:6px}
.jx-fl,.jx-f{font-size:.75rem;font-weight:500;color:var(--ink-2)}
.jx-pills{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.jx-pills .filter-pill{display:inline-flex;align-items:center;gap:5px}
.jx-pills .filter-pill .i{width:12px;height:12px}
.jx-seg2{grid-template-columns:repeat(2,1fr);max-width:360px}
.jx-cs{display:flex;flex-direction:column;gap:10px}
.jx-cc{border:1px solid var(--line);border-radius:var(--r-row);padding:4px 14px 8px;background:var(--surface)}
.jx-cch{display:flex;align-items:center;gap:8px;padding:8px 0 4px}
.jx-cch b{font-weight:600}
.jx-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid var(--primary);border-radius:var(--r-row);padding:14px;background:var(--primary-tint)}
.jx-w,.jx-fa{grid-column:1/-1}
.jx-fa{display:flex;justify-content:flex-end;gap:8px}
.jx-chk{display:inline-flex;gap:8px;align-items:center;color:var(--ink-2);font-size:.8125rem}
.jx-chk input{accent-color:var(--primary)}
.jx-log summary{cursor:pointer;font-size:.8125rem;font-weight:500;color:var(--ink-2);padding:12px 0 4px}
/* modal del reporte */
.jx-rb{display:flex;flex-direction:column;gap:14px;padding-top:4px}
.jx-ta{min-height:180px}
.jx-rm{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.jx-ph2{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
/* modal del certificado */
.an-dlg.jxv{height:min(88vh,860px)}
.jx-vs{display:grid;grid-template-columns:78px minmax(0,1fr);gap:14px;height:100%;min-height:0;padding:4px 0 12px}
.jx-rail{display:flex;flex-direction:column;gap:10px;align-items:center;overflow:auto;padding:2px}
.jx-th{width:62px;aspect-ratio:.74;border:2px solid transparent;border-radius:8px;background:var(--surface);box-shadow:var(--sh-1);display:grid;place-items:center;font-size:.6875rem;color:var(--ink-3);cursor:pointer;flex:none}
.jx-th[aria-selected="true"]{border-color:var(--primary);color:var(--primary-ink);font-weight:600}
.jx-stage{position:relative;min-height:0;background:var(--soft);border-radius:var(--r-row)}
.jx-paper{position:absolute;top:12px;bottom:12px;left:50%;transform:translateX(-50%);aspect-ratio:.74;container-type:inline-size;background:#fff;color:#222;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.12),0 12px 30px -12px rgba(0,0,0,.25);padding:6cqw 7cqw;overflow:hidden}
.jx-paper h4{margin:0;text-align:center;font-size:4.2cqw;letter-spacing:.02em;font-weight:700;line-height:1.2;color:#222}
.jx-ph{position:absolute;top:2.4cqw;right:3cqw;font-size:1.9cqw;color:#a33;border:1px solid #a33;padding:.5cqw 1.4cqw;border-radius:4px;transform:rotate(3deg)}
.jx-psub{text-align:center;font-size:2.6cqw;color:#666;margin:1cqw 0 4cqw}
.jx-pr{display:flex;justify-content:space-between;font-size:2.7cqw;padding:1.1cqw 0;border-bottom:1px dotted #ccc}
.jx-pr span{color:#666}
.jx-pres{margin:4cqw 0 3cqw;padding:2.6cqw;border:1.5px solid #222;text-align:center;font-weight:700;font-size:3.2cqw}
.jx-pn{font-size:2.5cqw;color:#444;line-height:1.5;margin:3cqw 0}
.jx-pf{position:absolute;left:7cqw;right:7cqw;bottom:5cqw;font-size:2.1cqw;color:#777;display:flex;justify-content:space-between;border-top:1px solid #ccc;padding-top:1.6cqw}
html[data-lay="compact"] .jx-kr{grid-template-columns:minmax(110px,150px) minmax(0,1fr)}
html[data-lay="compact"] .jx-form{grid-template-columns:1fr}
html[data-lay="compact"] .jx-tab{padding:8px}
html[data-lay="mid"] .an-dlg.jx .an-tz.slim{grid-template-columns:repeat(2,minmax(0,1fr))}

/* ===== v174 · selector de fecha, mes y hora propio ===== */
.vdp{position:relative;display:block;min-width:0;width:100%}
.vdp .input.vdp-in{width:100%;padding-right:42px;font-variant-numeric:tabular-nums}
.vdp .input.vdp-in::placeholder{color:var(--ink-3)}
.vdp-b{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:var(--ink-2);cursor:pointer;padding:0;transition:background .15s var(--ease),color .15s var(--ease)}
.vdp-b:hover:not(:disabled){background:var(--soft);color:var(--ink)}
.vdp-b[aria-expanded="true"]{background:var(--primary-tint);color:var(--primary-ink)}
.vdp-b:disabled{opacity:.45;cursor:default}
.vdp-b:focus-visible,.vdp-pop button:focus-visible{outline:2px solid var(--primary);outline-offset:1px}
.vdp:has(.vdp-b[aria-expanded="true"]) .vdp-in{border-color:color-mix(in srgb,var(--primary) 55%,var(--line-strong));box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 16%,transparent)}
.vdp-in.invalid,.vdp-in[aria-invalid="true"]{border-color:var(--danger)}

html .menu.vdp-pop,html.escala-prop .menu.vdp-pop,html.escala-prop[data-lay="compact"] .menu.vdp-pop{width:304px;min-width:0;max-width:none;padding:12px;max-height:calc(100dvh - 20px);overflow:auto;z-index:120}
.vdp-h{display:grid;grid-template-columns:32px 1fr 32px;align-items:center;gap:4px;margin-bottom:8px}
.vdp-nav{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:var(--ink-2);cursor:pointer;padding:0}
.vdp-nav:hover{background:var(--soft);color:var(--ink)}
.vdp-t{height:32px;display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:10px;background:transparent;color:var(--ink);font:inherit;font-size:.9375rem;font-weight:600;letter-spacing:-.005em;cursor:pointer;padding:0 8px}
.vdp-t:hover{background:var(--soft)}
.vdp-t svg{color:var(--ink-3)}
.vdp-w,.vdp-r{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.vdp-w{margin-bottom:2px}
.vdp-w span{height:26px;display:grid;place-items:center;font-size:.75rem;font-weight:500;color:var(--ink-2)}
.vdp-g{display:grid;gap:2px}
.vdp-g button,.vdp-m button{border:0;background:transparent;color:var(--ink);font:inherit;font-size:.8125rem;font-weight:500;font-variant-numeric:tabular-nums;cursor:pointer;padding:0;border-radius:10px;display:grid;place-items:center}
.vdp-g button{height:38px}
.vdp-g button:hover:not(.sel):not(:disabled),.vdp-m button:hover:not(.sel):not(:disabled){background:var(--soft)}
.vdp-g button.out{color:var(--ink-3)}
.vdp-g button.today:not(.sel),.vdp-m button.today:not(.sel){color:var(--primary-ink);font-weight:700;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--primary) 55%,transparent)}
.vdp-g button.sel,.vdp-m button.sel,.vdp-col button.sel{background:var(--primary);color:var(--on-primary);font-weight:700}
.vdp-g button.dis,.vdp-m button.dis{opacity:.32;cursor:default}
.vdp-m{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:4px 0}
.vdp-m button{height:44px;font-size:.875rem}
.vdp-f{display:flex;justify-content:space-between;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.vdp-time{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.vdp-col{height:224px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;display:grid;align-content:start;gap:2px;padding:2px}
.vdp-col button{height:34px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:.875rem;font-weight:500;font-variant-numeric:tabular-nums;border-radius:10px;cursor:pointer;padding:0}
.vdp-col button:hover:not(.sel){background:var(--soft)}
html[data-lay="compact"] .menu.vdp-pop,html.escala-prop[data-lay="compact"] .menu.vdp-pop{width:auto;padding:12px 12px calc(12px + env(safe-area-inset-bottom))}
html[data-lay="compact"] .vdp-g button{height:42px}
@media (prefers-reduced-motion:reduce){.menu.vdp-pop,.vdp-b{transition:none}}
.an-okd{display:flex;align-items:center;gap:8px;margin:2px 0 4px;color:var(--success-ink)}
.an-okd .i{background:var(--ok-fill);color:var(--ok-on);border-radius:50%;padding:3px;width:20px;height:20px}
