/* --- COMPONENTE: MENÚ DESPLEGABLE DE USUARIO (HEADER) --- */
.user-dropdown {
    position: relative;
    display: inline-block;
}

/* Botón clicable */
.btn-client-top {
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

/* Caja del menú oculto por defecto */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 130%;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 24px rgba(5, 38, 24, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    z-index: 1000;
    padding: 10px 0;
    text-align: left;
}

.dropdown-content.show {
    display: block;
}

/* Cabecera del menú cuando hay usuario logueado */
.dropdown-user-name {
    padding: 10px 20px;
    font-size: 13px;
    color: #4a544f;
    line-height: 1.4;
}

.dropdown-content hr {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 5px 0;
}

/* Enlaces del menú desplegable */
.dropdown-item {
    color: #4a544f !important;
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background-color: #eaf5ef;
    color: #0e633e !important;
}

/* Estilo de hover específico para cerrar sesión */
.logout-item:hover {
    background-color: #fce8e6;
    color: #a80000 !important;
}

.disabled-item {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #fafafa;
}

.disabled-item:hover {
    background-color: #fafafa;
    color: #4a544f !important;
}