/* =========================================================================
 * L01 · Centro de control — barra lateral fija + área principal en filas flex
 * ========================================================================= */
.l01 { display: flex; min-height: 100vh; }

.l01 .side {
    flex: 0 0 248px;
    display: flex; flex-direction: column; gap: 32px;
    position: sticky; top: 0; height: 100vh;
    padding: 24px 16px;
    background: linear-gradient(180deg, rgba(0, 64, 92, .45), rgba(4, 21, 33, .7));
    border-right: 1px solid var(--panel-border);
}
.l01 .nav { display: flex; flex-direction: column; gap: 4px; }
.l01 .nav__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding: 0 12px 8px; }
.l01 .nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    color: var(--ink-2); font-size: 14px;
    transition: background .3s, color .3s;
}
.l01 .nav a:hover { background: var(--fx-glow-faint); color: var(--ink); }
.l01 .nav a.on {
    color: var(--ink);
    background: linear-gradient(90deg, rgba(0, 164, 220, .25), transparent);
    box-shadow: inset 2px 0 0 var(--fx-glow);
}
.l01 .nav a .count { margin-left: auto; font-size: 11px; padding: 1px 8px; border-radius: 99px; background: var(--ba-blue); color: #fff; }

.l01 .side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.l01 .side__foot .panel { padding: 14px; gap: 8px; animation: none; }

.l01 .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); padding: 24px 28px 40px; }
.l01 .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.l01 .top__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.l01 .kpi-card { gap: 10px; }
.l01 .donut-wrap { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; flex: 1; }
.l01 .gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; flex: 1; justify-content: center; }

@media (max-width: 1000px) {
    .l01 { flex-direction: column; }
    .l01 .side { position: static; height: auto; flex: none; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--panel-border); }
    .l01 .nav { flex-direction: row; overflow-x: auto; flex: 1 1 100%; }
    .l01 .nav__label, .l01 .side__foot { display: none; }
    .l01 .nav a { white-space: nowrap; }
    .l01 .main { padding: 20px 16px 32px; }
}
