.sp-picker__trigger.has-value {
    color: var(--color-text-dark) !important;
}

.sp-picker__trigger.is-open svg {
    transform: rotate(180deg);
}

.sp-picker__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    padding: 8px;
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 200;
    overflow: hidden;
    width: 300px;
}

.sp-picker__panel {
    overflow-y: auto;
    overflow-x: none;
    max-height: 400px;
    padding: 4px 0;
}

.sp-picker__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-picker__item {
    display: block;
}

.sp-picker__item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 24px;
    word-wrap: break-word;
    gap: 8px;
    color: var(--color-text-dark);
    text-align: left;
}

    .sp-picker__item-btn:hover,
    .sp-picker__item.is-selected > .sp-picker__item-btn {
        background: var(--color-bg-subtle, #f5f5f3);
        color: var(--color-text-dark, #1a1a18);
    }

.sp-picker.picker-white-background > button.sp-picker__trigger {
    background-color: white !important;
    justify-content: space-between;
    color: var(--color-text-muted);
    margin-top: 1px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px;
    border-radius: var(--radius-btn);
    cursor: pointer;
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--color-green-700);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-bg);
    font-size: 12px;
    font-family: var(--font-sans);
    font-weight: 500;
    line-height: 20px;
    flex-shrink: 0;
    object-fit: cover;
}

.header-user-name {
    color: var(--color-text-dark);
    font-size: 12px;
    font-family: var(--font-sans);
    font-weight: 500;
    line-height: 20px;
}

.header-user-role {
    color: var(--color-green-700);
    font-size: 11px;
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 18px;
}

.header-user-menu-wrapper {
    position: relative;
}

.header-user-menu-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px var(--color-shadow-sm);
    z-index: 1000;
    min-width: 160px;
    overflow: hidden;
}

#userMenuDropdownMobile {
    top: auto;
    left: 0;
    bottom: 62px;
    margin-top: 12px;
}

    #userMenuDropdownMobile .header-logout-btn:hover {
        background-color: var(--color-green-700-hover);
    }

.header-user-dropdown--open {
    display: block;
}

.header-logout-btn {
    display: block;
    padding: 10px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--color-text-dark);
    border-radius: var(--radius-btn);
    line-height: 24px;
    align-items: center;
}

a.header-logout-btn {
    padding: 12px 16px;
}

.header-logout-btn:hover {
    background: var(--color-bg-hover);
    color: var(--color-green-900);
}

.header-user-dropdown form + form {
    border-top: 1px solid var(--color-border-light);
}

.sidebar-mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 14px 8px 0;
    border-top: 1px solid var(--color-border);
}

.sidebar-mobile-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--color-green-700);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    flex-shrink: 0;
    object-fit: cover;
}

.sidebar-mobile-user-name {
    color: var(--color-text-dark);
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    font-family: var(--font-sans);
}

.sidebar-mobile-user-role {
    color: var(--color-green-700);
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
}

