/* iManage — user_account */

/* ── Trigger row (username + role stacked) ── */
.ua-trigger-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

/* ── Panel Mon compte ── */
.user-account-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 230px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1060;
    padding: 12px 10px 8px;
    /* Clip the shadow so it doesn't bleed through the trigger */
    overflow: visible;
}
/* Small arrow pointing up at the trigger */
.user-account-panel::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 10px;
    height: 10px;
    background: var(--paper);
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
    z-index: 1;
}

/* ── Header (avatar + name/job) ── */
.ua-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 0 2px;
}
.ua-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}
.ua-job {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.3;
}

/* ── Separator line ── */
.ua-menu-sep {
    height: 1px;
    background: var(--line);
    margin: 4px 0 6px;
}

/* ─── User account panel — avatar (v3.4.2 : couleur unie, icône blanche) ───  */
.ua-avatar-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent, #00B4D8);     /* couleur unie, plus de dégradé */
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.ua-avatar-icon {
    font-size: 1.1rem;
    color: #ffffff !important;               /* blanc plein, prioritaire sur règles génériques #user .fa-* */
    position: absolute;
    pointer-events: none;
}
.ua-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    position: absolute;
    top: 0; left: 0;
}

/* ── Dropdown menu ── */
.ua-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ua-menu li { display: block; }

.ua-menu-divider {
    height: 1px;
    background: var(--line);
    margin: 4px 0;
}

.ua-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    background: none;
    border: none;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    line-height: 1.3;
    transition: background 0.12s ease, color 0.12s ease;
    white-space: nowrap;
}
.ua-menu-item:hover,
.ua-menu-item:focus-visible {
    background: var(--line-soft);
    outline: none;
}

/* Icon column — fixed width for alignment */
.ua-menu-icon {
    width: 15px;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    flex-shrink: 0;
    transition: color 0.12s ease;
}

/* Danger variant — déconnexion */
.ua-menu-item--danger {
    color: inherit;
}
