/* =============================================
   NAV OVERFLOW — Menú adaptativo con overflow
   ============================================= */

/* Contenedor de items visibles */
#nav-visible-items {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    flex: 0 1 auto;
    min-width: 0;
}

/* Dropdown "Más" */
#nav-overflow-dropdown {
    flex-shrink: 0;
}

#nav-overflow-dropdown .dropdown-toggle {
    white-space: nowrap;
}

#nav-overflow-dropdown .dropdown-menu {
    min-width: 200px;
    right: 0;
    left: auto;
}

#nav-overflow-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    color: var(--text-primary, #212529);
    transition: background-color 0.15s ease;
}

#nav-overflow-dropdown .dropdown-item:hover {
    background-color: rgba(46, 125, 50, 0.08);
    color: var(--primary-color, #2e7d32);
}

#nav-overflow-dropdown .dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--primary-color, #2e7d32);
}

/* Zona derecha fija (overflow toggle + usuario) */
#nav-right-fixed {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

/* Ocultar items medibles (usados solo para medir ancho) */
.nav-measure-item {
    visibility: hidden;
    position: absolute;
    pointer-events: none;
    white-space: nowrap;
}
