/* =========================================================
   WMS MENÚ LATERAL — OVERLAY SUPERPUESTO
   Se despliega sobre el contenido, no lo empuja
========================================================= */

:root {
  --wms-header-height: 50px;

  /* Colores institucionales actuales */
  --wms-color-institucional: #00264d;
  --wms-color-menu-texto: #ffffff;

  /* Hover y activo */
  --wms-color-menu-hover-bg: rgba(255,255,255,0.12);
  --wms-color-menu-active-bg: rgba(255,255,255,0.18);
}

/* =========================================================
   CONTENEDOR DEL MENÚ LATERAL (OVERLAY)
========================================================= */

.wms-sidebar {
  position: fixed; /* se superpone al contenido */
  top: var(--wms-header-height);
  left: -260px; /* oculto fuera de pantalla */
  width: 260px;
  height: calc(100vh - var(--wms-header-height));
  background-color: var(--wms-color-institucional);
  color: var(--wms-color-menu-texto);
  z-index: 9999; /* encima de todo */
  transition: left 0.3s ease;
  overflow-y: auto;
  padding-bottom: 1rem;
}

/* Cuando el menú está visible */
.wms-sidebar.visible {
  left: 0;
}


/* =========================================================
   LISTA PRINCIPAL DEL MENÚ
========================================================= */

.wms-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wms-sidebar li {
  margin: 0;
  padding: 0;
}

/* =========================================================
   CABECERA DE CADA OPCIÓN DEL MENÚ
========================================================= */

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  user-select: none;
}

.menu-header:hover {
  background-color: var(--wms-color-menu-hover-bg);
}

/* =========================================================
   ENLACES PRINCIPALES DEL MENÚ
========================================================= */

.menu-link {
  color: var(--wms-color-menu-texto);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  border-radius: 4px;
}

.menu-link:hover {
  background-color: var(--wms-color-menu-hover-bg);
}

.menu-link.activo {
  background-color: var(--wms-color-menu-active-bg);
  font-weight: 600;
}

/* =========================================================
   ICONOS DEL MENÚ PRINCIPAL
========================================================= */

.menu-icono {
  width: 1.2rem;
  text-align: center;
  color: inherit; /* hereda el color del texto */
}

/* Flecha del submenú */
.submenu-toggle {
  background: none;
  border: none;
  color: var(--wms-color-menu-texto);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
}
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;
  color: white;
  font-size: 20px;
  margin-right: 8px;
  vertical-align: middle;
}
.wms-sidebar .material-symbols-outlined {
  color: white !important;
}