/* ==========================================================
   SPOTIA — MENU DA CONTA NO PERFIL DO CABEÇALHO
   Desktop: foto + usuário + empresa funcionam como dropdown.
   Mobile: preserva o menu móvel já existente do sistema.
   ========================================================== */

.user-profile-wrapper {
    position: relative;
    border-right: 0 !important;
    padding-right: 0 !important;
}

.user-profile {
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    padding: 0 4px 0 0;
    margin: 0;
    border-radius: 10px;
    box-sizing: border-box;
    transition: none;
    transform: none !important;
}

.user-profile:hover {
    opacity: 1 !important;
    background: transparent !important;
    transform: none !important;
}

.user-profile:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .18);
}

.spot-user-dropdown-chevron {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 1px;
    color: var(--text-muted, #72777f);
    transition: transform .2s ease;
    flex: 0 0 18px;
}

.spot-user-dropdown-chevron svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-profile-wrapper.is-user-menu-open .spot-user-dropdown-chevron {
    transform: rotate(180deg);
}

.spot-user-dropdown {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 205px;
    padding: 6px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 14px;
    box-shadow: 0 18px 46px rgba(17, 24, 39, .13);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-5px) scale(.985);
    transform-origin: top right;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 1000000;
}

.spot-user-dropdown.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.spot-user-dropdown-item {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}

.spot-user-dropdown-item:hover,
.spot-user-dropdown-item:focus-visible {
    background: #f1f2f3;
    outline: none;
}

.spot-user-dropdown-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
}

.spot-user-dropdown-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.spot-user-dropdown-divider {
    height: 1px;
    margin: 5px 7px;
    background: rgba(17, 24, 39, .09);
}

.spot-user-dropdown-exit {
    color: #2e3338;
}

/* O botão Exit separado deixa de existir; a saída fica dentro do dropdown. */
.exit-demo-btn {
    display: none !important;
}

@media (max-width: 768px) {
    /* O mobile já usa o perfil para abrir o seletor de módulos. */
    .spot-user-dropdown,
    .spot-user-dropdown-chevron {
        display: none !important;
    }

    .user-profile {
        padding: 4px;
        min-height: 40px;
        background: transparent !important;
    }
}
