/* OLIMPO · pasada de diseño 08/11/2026 (Daniela). Va la última: corrige texto cortado, iconos descentrados y tablas. Solo CSS, no toca datos ni lógica. */
/* ---- Tributación: pestañas con el mismo alto, texto dentro y el icono centrado; si no caben, se desplazan hacia el lado ---- */
html body .tr-tabs{display:flex;flex-wrap:nowrap;align-items:stretch;gap:8px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 8px;margin:0 0 12px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#8A3FD1 transparent;grid-template-columns:none}
html body .tr-tab{flex:0 0 auto;box-sizing:border-box;height:56px;min-height:56px;display:inline-flex;align-items:center;gap:10px;padding:0 16px 0 8px;white-space:nowrap;scroll-snap-align:start;line-height:1.2}
html body .tr-tab-ic{flex:none;width:36px;height:36px;display:grid;place-items:center}
html body .tr-tab-ic svg{width:20px;height:20px;display:block}
html body .tr-tab>span:last-child{display:flex;flex-direction:column;justify-content:center;min-width:0}
html body .tr-tab b{display:block;white-space:nowrap;font-size:.84rem;line-height:1.2}
html body .tr-tab small{display:block;white-space:nowrap;max-width:22ch;overflow:hidden;text-overflow:ellipsis;font-size:.68rem;line-height:1.2}
@media (max-height:760px),(max-width:700px){html body .tr-tab{height:44px;min-height:44px}html body .tr-tab small{display:none}html body .tr-tab-ic{width:30px;height:30px}html body .tr-tab-ic svg{width:18px;height:18px}}
/* ---- Bancos: la tarjeta de saldo ya no se queda fija encima del gráfico ---- */
html body .tr-bks{position:static!important;top:auto!important;box-shadow:none}
/* ---- Títulos de tarjetas: enteros, como mucho en 2 líneas ---- */
html body #mv-trib .fz-k small,html body #mv-trib .fz-sal small,html body #mv-trib .fz-mini-k small,html body #mv-trib .tr-kpi small,html body #mv-trib .tr-bks small,html body #mv-trib .fzp-c small,html body #mv-trib .fzp-kp small,html body #mv-trib .fzp-dif h5,html body #mv-trib .fz-vc h4,html body #mv-trib .fz-cab small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:break-word;line-height:1.3;max-width:none}
html body #mv-trib .tr-cli-t>b,html body #mv-trib .tr-car b,html body #mv-trib .tr-mes b{overflow:visible;max-height:none}
html body .tr-cli-t>b{display:block;line-height:1.25;overflow:visible!important;max-height:none!important;-webkit-line-clamp:unset!important}
/* ---- Tablas: encabezado claro, cifras a la derecha y tabulares, fila de total ---- */
html body .tr-tbl{border-radius:14px}
html body .tr-tbl>div{align-items:center;line-height:1.3}
html body .tr-tbl>div.tr-th{background:var(--tarj2);color:var(--texto);font-size:.66rem;font-weight:800;letter-spacing:.08em;border-bottom:1px solid var(--borde)}
html body .tr-tbl>div>*{min-width:0;overflow-wrap:anywhere}
html body .tr-tbl>div>*:not(:first-child){text-align:right;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
html body .tr-tbl>div:not(.tr-th):hover{background:rgba(138,63,209,.08)}
html body .tr-tbl>div.tr-tot{background:var(--tarj2);border-top:2px solid var(--borde);font-weight:800;color:var(--texto)}
html body .tr-tbl>div.tr-tot>*{font-weight:800}
html body .fzp-tb>div>*:not(:first-child),html body .fzp-tb .th{text-align:right;font-variant-numeric:tabular-nums}
html body .fzp-tb .th{background:var(--tarj2)}
/* ---- Cifras: siempre tabulares ---- */
html body .tr-kpi b,html body .fz-k b,html body .fz-sal b,html body .tr-sal,html body .tr-mes strong,html body .tr-mes dd,html body .fz-imp b,html body .fzp-c>b,html body .fzp-kp b{font-variant-numeric:tabular-nums}
/* ---- Portátil (poca altura): primero las pestañas y el resultado; los saldos y cifras de cabecera, debajo ---- */
@media (max-height:700px) and (min-width:701px){
  html body #mv-trib{display:flex;flex-direction:column}
  html body #mv-trib>.ar-cab{order:0}html body #mv-trib>.tr-tabs{order:1}html body #mv-trib>#tr-body{order:2}
  html body #mv-trib>.tr-aviso{order:3}html body #mv-trib>.fz-franja{order:4}html body #mv-trib>.tr-kpis{order:5}html body #mv-trib>.tr-ors{order:6}
  html body #mv-trib>.tr-tabs{position:sticky;top:-10px;z-index:6;background:var(--fondo,#0B0A14);margin-top:0;padding-top:12px;box-shadow:0 6px 10px -8px rgba(0,0,0,.6)}
}
/* ---- Textos descriptivos y roles: enteros (nada de puntos suspensivos ni recortes) ---- */
html body .mod-ct small{display:block;-webkit-line-clamp:unset;overflow:visible}
html body .ar-eq small,html body .ar-int small{white-space:normal;max-width:none;overflow:visible;text-overflow:clip;line-height:1.2}
html body .bb-t>b{white-space:normal;overflow-wrap:anywhere;word-break:break-word}
/* ---- Letra: Montserrat en todo y menos separación en las etiquetas en mayúsculas ---- */
html body .cl-n,html body i,html body button,html body input,html body select,html body textarea{font-family:Montserrat,system-ui,sans-serif}
html body .ar-cab-t>small,html body .mod-top small,html body .mod-det-cab small,html body .tr-det-cab small,html body .fz-cab small,html body .tr-kpi small,html body .fz-k small{letter-spacing:.09em}
html body .halo-et{letter-spacing:.08em}
/* ---- Migas y «Volver»: siempre a la vista, también al bajar en el móvil ---- */
html body #mod>.nv-barra{position:sticky;top:0;z-index:30;background:var(--fondo,#0B0A14)}
@media (max-width:900px){html body #mod,html body .escena{overflow:clip}html body #mod>.nv-barra{top:0}}
/* ---- Escena y rutinas: roles y títulos sin recortar ---- */
html body .rt-nom b{-webkit-line-clamp:unset;overflow:visible;display:block}
html body .titular p{-webkit-line-clamp:3;max-height:none}
html body .lienzo .nodo .est{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;white-space:normal!important;overflow:hidden;overflow-wrap:anywhere;text-overflow:clip;font-size:.62rem!important;line-height:1.15;text-align:center;max-width:100%;min-height:0}
html body .eqm .fn-ley,html body .fn-ley{white-space:normal;overflow:visible;text-overflow:clip;max-width:100%;font-size:.66rem}

/* móvil: la miga «Hoy» solo con icono, para que no se corte */
@media (max-width:640px){html body .nv-mig li:first-child button span{display:none}}
