
/* Identidad de Malfatti conservada sobre la estructura de Silsalud. */
:root,:root[data-theme="light"] {--bg:#f2f7fa;--surface:#fff;--surface-2:#edf5f8;--border:#dce5ea;--text:#14333f;--muted:#58717b;--primary:#0e6071;--primary-2:#094c5c;--primary-soft:#e3f1f4;--on-primary:#fff;--accent:#087b80;--accent-2:#09666b;--accent-soft:#e1f4f1;--info:#0e6071;--info-soft:#edf5f8;--logo-filter:none;color-scheme:light;}
:root[data-theme="dark"] {--bg:#101d24;--surface:#162a33;--surface-2:#1b333e;--border:#2c4a57;--text:#edf5f8;--muted:#a6bec8;--primary:#72c7d8;--primary-2:#9ddde7;--primary-soft:#173e4a;--on-primary:#10242d;--accent:#74d6ca;--accent-2:#9ce6dc;--accent-soft:#173b3c;--info:#9ddde7;--info-soft:#173e4a;color-scheme:dark;}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#101d24;--surface:#162a33;--surface-2:#1b333e;--border:#2c4a57;--text:#edf5f8;--muted:#a6bec8;--primary:#72c7d8;--primary-2:#9ddde7;--primary-soft:#173e4a;--on-primary:#10242d;--accent:#74d6ca;--accent-2:#9ce6dc;--accent-soft:#173b3c;--info:#9ddde7;--info-soft:#173e4a;color-scheme:dark;}}

/* Logo vertical: contraste con la identidad azul de Malfatti. */
.sidebar .brand{background:#dceef3;border:1px solid #bfdbe3;overflow:hidden}
.sidebar .brand .logo{height:116px;width:100%;object-fit:contain;filter:none}

/* Aprovechar el recuadro conservando el logo íntegro. */
.sidebar .brand{height:144px;min-height:144px;padding:4px;align-items:center;justify-content:center}
.sidebar .brand .logo{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-view-box:inset(17% 3% 10.5% 3.4%)}

/* Gráficos dentro de la identidad de Malfatti, en ambos temas. */
:root{--serie-1:var(--primary);--serie-2:var(--accent);--pista:var(--surface-2)}

/* Gráficos dentro de la identidad de Malfatti, en ambos temas. */
:root,:root[data-theme="light"],:root[data-theme="dark"]{--serie-1:var(--primary)!important;--serie-2:var(--accent)!important;--pista:var(--surface-2)!important} .bh-barra,.leyenda i.s1,.seg.s1{background:var(--primary)!important}.leyenda i.s2,.seg.s2{background:var(--accent)!important}.bh-pista{background:var(--surface-2)!important}
