/* Ventyum 12.8.938 — corrección de posición vertical del menú en portátiles.
   La columna sidebar sigue en el layout normal; no cambia el dashboard,
   el ancho de las páginas, las rutas, los módulos ni sus permisos.
   La cápsula, la navegación y Cerrar sesión comparten una única referencia.
*/
@media (min-width:901px) {
  body #root .app-shell > aside.sidebar.sidebar-minimal {
    /* El dock pertenece a la columna y se centra en el viewport, no en cada módulo. */
    position:sticky!important;
    top:0!important;
    align-self:start!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    margin-inline:auto!important;
    --ventyum-rail-top:calc(50dvh - 108px);
  }
  body #root .app-shell > aside.sidebar.sidebar-minimal::before {
    top:var(--ventyum-rail-top)!important;
  }
  body #root .app-shell > aside.sidebar.sidebar-minimal nav.sidebar-actions {
    top:calc(var(--ventyum-rail-top) + 10px)!important;
  }
  body #root .app-shell > aside.sidebar.sidebar-minimal > button.logout {
    top:calc(var(--ventyum-rail-top) + 263px)!important;
  }
}
@media (min-width:901px) and (max-height:700px) {
  body #root .app-shell > aside.sidebar.sidebar-minimal {
    --ventyum-rail-top:clamp(8px,calc(50dvh - 46px),calc(100dvh - 212px));
  }
  body #root .app-shell > aside.sidebar.sidebar-minimal::before {
    top:var(--ventyum-rail-top)!important;
  }
  body #root .app-shell > aside.sidebar.sidebar-minimal nav.sidebar-actions {
    top:calc(var(--ventyum-rail-top) + 6px)!important;
  }
  body #root .app-shell > aside.sidebar.sidebar-minimal > button.logout {
    top:calc(var(--ventyum-rail-top) + 166px)!important;
  }
  /* El borde queda dentro de la reserva de 68px y no tapa los importes. */
  body #root .app-shell > aside.sidebar.sidebar-minimal::before {
    left:0!important;right:14px!important;
  }
  body #root .app-shell > aside.sidebar.sidebar-minimal nav.sidebar-actions,
  body #root .app-shell > aside.sidebar.sidebar-minimal > button.logout {
    left:1px!important;right:15px!important;
  }
}