/* V12: correcciones visuales acotadas al panel autenticado. No altera login ni lógica. */
/* Los pictogramas heredados de styles.css se dibujaban encima de los SVG nuevos. */
html body:not(.sa-global-context) #app #panelPage .gst2026-kpis .panel-kpi::before,
html body:not(.sa-global-context) #app #panelPage .gst2026-kpis .panel-kpi::after{content:none!important;display:none!important}
html body #app #panelPage .gst2026-kpis .panel-kpi{position:relative!important;display:flex!important;align-items:center!important;gap:14px!important;min-width:0!important;padding:16px 18px!important;overflow:hidden!important}
html body #app #panelPage .gst2026-kpis .panel-kpi .gst2026-kicon{position:static!important;inset:auto!important;flex:0 0 48px!important;width:48px!important;height:48px!important;min-width:48px!important;padding:0!important;display:grid!important;place-items:center!important;box-shadow:none!important}
html body #app #panelPage .gst2026-kpis .panel-kpi .gst2026-kicon svg{display:block!important;width:24px!important;height:24px!important;overflow:visible!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important}
html body #app #panelPage .gst2026-kpis .panel-kpi>div{min-width:0!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important}
html body #app #panelPage .gst2026-kpis .panel-kpi>div>span{line-height:1.25!important}
html body #app #panelPage .gst2026-kpis .panel-kpi>div>b{line-height:1.05!important}
html body #app #panelPage .gst2026-kpis .panel-kpi>div>small{line-height:1.3!important}
/* Mantener el botón activo inequívoco; hover y foco con tratamiento discreto. */
html body #app .gst2026-nav button:not(.active){background:transparent!important;box-shadow:none!important}
html body #app .gst2026-nav button:not(.active):hover,
html body #app .gst2026-nav button:not(.active):focus-visible{background:#eef4f4!important;color:#176b70!important}
html body #app .gst2026-nav button.active{background:#176b70!important;color:#fff!important}
/* Alineación y respiración entre bloques, tablas y gráficos. */
html body #app #panelPage .gst2026-details,html body #app #panelPage .gst2026-charts{min-width:0!important;align-items:stretch!important}
html body #app #panelPage .gst2026-details>.gst2026-card,html body #app #panelPage .gst2026-charts>.gst2026-card{min-width:0!important;overflow:hidden!important}
html body #app #panelPage .gst2026-details .gst2026-card{padding:20px!important}
html body #app #panelPage .gst2026-charts .gst2026-card{min-height:310px!important;padding:20px 22px!important}
html body #app #panelPage .gst2026-charts .gst-chart-svg{max-height:220px!important;width:100%!important;height:auto!important}
html body #app #panelPage .gst-v11-brand-layout{justify-content:center!important;gap:clamp(16px,3vw,38px)!important}
html body #app #panelPage .gst-v11-brand-legend{max-width:410px!important;width:100%!important}
html body #app #panelPage .gst-v11-legend-row{grid-template-columns:11px minmax(0,1fr) 40px 42px!important;column-gap:10px!important}
html body #app #panelPage .gst2026-titleline{align-items:center!important;gap:12px!important}
html body #app #panelPage .gst2026-titleline h3{min-width:0!important}
@media(max-width:1200px){html body #app #panelPage .gst2026-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body #app #panelPage .gst2026-details{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:760px){html body #app #panelPage .gst2026-charts{grid-template-columns:minmax(0,1fr)!important}html body #app #panelPage .gst-v11-brand-layout{flex-wrap:wrap!important}html body #app #panelPage .gst2026-kpis .panel-kpi{padding:12px!important;gap:10px!important}}
@media(max-width:520px){html body #app #panelPage .gst2026-kpis{grid-template-columns:minmax(0,1fr)!important}html body #app #panelPage .gst-v11-brand-legend{max-width:none!important}}
