/* Navegación lateral permanente en escritorio; drawer táctil en móvil. */
@media (min-width:821px) {
  #drawer .dx-drawer-panel-content { display:block; }
  #drawer .dx-drawer-content { width:100%; min-width:0; }
  #navbar { display:none; }
  #btnMenu { display:none; }
  .mfn-topbar__heading { display:none; }
  .mfn-sidebar { min-height:100vh; }
  .mfn-sidebar__brand { margin-bottom:22px; }
  .mfn-sidebar__label { margin-bottom:8px; }
}
@media (max-width:820px) {
  .mfn-sidebar__brand { margin-bottom:12px; }
  #drawer .dx-drawer-panel-content { display:block; }
}

/* Menú lateral por secciones desplegables. */
#nav { overflow-y:auto; padding:0 2px 8px; }
#nav .mfn-menu-root-link { margin-bottom:10px; }
#nav .mfn-menu-section { margin:0 0 12px; overflow:hidden; border:1px solid var(--mfn-line); border-radius:10px; background:#fff; }
#nav .mfn-menu-section__header { display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px; padding:14px; border:0; background:#d4e5fb; color:var(--mfn-primary-strong); font:700 15px/1.2 var(--font); text-align:left; cursor:pointer; }
#nav .mfn-menu-section__header:hover, #nav .mfn-menu-section__header:focus-visible { background:#c6dcf8; outline:0; }
#nav .mfn-menu-section__chevron { color:var(--mfn-primary); font-size:16px; transition:transform .18s ease; }
#nav .mfn-menu-section:not(.is-open) .mfn-menu-section__chevron { transform:rotate(180deg); }
#nav .mfn-menu-section__body { display:grid; gap:2px; padding:8px; background:#fff; }
#nav .mfn-menu-section:not(.is-open) .mfn-menu-section__body { display:none; }
#nav .mfn-menu-link { display:grid; width:100%; min-height:42px; grid-template-columns:24px minmax(0,1fr); align-items:center; gap:8px; padding:9px 12px; border:0; border-radius:8px; background:transparent; color:var(--mfn-primary); font:500 14px/1.2 var(--font); text-align:left; cursor:pointer; }
#nav .mfn-menu-link:hover, #nav .mfn-menu-link:focus-visible { background:var(--mfn-primary-soft); outline:0; }
#nav .mfn-menu-link.is-active { background:var(--mfn-primary); color:#fff; box-shadow:0 5px 12px rgba(45,63,145,.18); }
#nav .mfn-menu-link .dx-icon { color:#1769ed; font-size:18px; }
#nav .mfn-menu-link.is-active .dx-icon { color:#fff; }
#nav .mfn-menu-root-link .mfn-menu-link { background:transparent; color:var(--mfn-ink); font-weight:600; }
#nav .mfn-menu-root-link .mfn-menu-link:hover, #nav .mfn-menu-root-link .mfn-menu-link:focus-visible { background:var(--mfn-primary-soft); color:var(--mfn-primary); }
#nav .mfn-menu-root-link .mfn-menu-link.is-active { background:var(--mfn-primary); color:#fff; }