/*
 * Admin redesign (2026-11-22): People (Accounts, Account requests, Providers,
 * Interpreters, Credentials, Onboarding, Add account). Tokens only.
 * Loaded after css/admin-redesign.css.
 */

/* A segmented filter and the hidden select that holds its state. */
.rd-people-seg { display: inline-flex; min-width: 0; max-width: 100%; }
.rd-people-filters { align-items: center; gap: 12px; }
.rd-people-filters .search-input { flex: 1 1 240px; min-width: 0; }

/* A list row: the name, and one line below it. Names stay on one line. */
.rd-people-name { font-weight: 600; white-space: nowrap; }
.rd-people-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.rd-people-role {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-2);
    color: var(--color-text-1);
    font-size: 12px;
    white-space: nowrap;
}
.rd-people-presence { margin-left: 8px; white-space: nowrap; }
.rd-people-actions { text-align: right; }
.rd-people-row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.rd-people-num { text-align: right; font-variant-numeric: tabular-nums; }
.rd-people-muted { color: var(--color-text-2); }

/* Onboarding: the step of a person, as a bar and its words. */
.rd-people-step { display: grid; gap: 4px; min-width: 120px; }
.rd-people-bar { width: 120px; height: 4px; border-radius: 4px; background: var(--color-surface-2); overflow: hidden; }
.rd-people-bar > i { display: block; height: 100%; background: var(--color-action-primary); }

/* Add account: the segmented choices of the form. */
.account-editor .rd-seg { align-self: flex-start; }
.rd-people-rate { max-width: 160px; }

/*
 * The Accounts table has five columns now. The rules in the page head hide
 * columns of the old seven-column table by position; these bring the five
 * back. A wide table scrolls inside its card.
 */
@media (min-width: 768px) {
    #accounts-tab .accounts-table th:nth-child(n),
    #accounts-tab .accounts-table td:nth-child(n):not([colspan]) { display: table-cell; }
}
@media (max-width: 767.98px) {
    #accounts-tab .accounts-table td:nth-child(n):not([colspan]) { display: block; }
    #accounts-tab .accounts-table td:nth-child(2)::before { content: 'Roles'; }
    #accounts-tab .accounts-table td:nth-child(3)::before { content: 'Platform'; }
    #accounts-tab .accounts-table td:nth-child(4)::before { content: 'Status'; }
    #accounts-tab .accounts-table td:nth-child(5)::before { content: none; }
    #accounts-tab .accounts-table td:last-child:not([colspan]) { display: flex; justify-content: flex-start; }
    .rd-people-name { white-space: normal; }
    .rd-people-actions { text-align: left; }
    .rd-people-row-actions { justify-content: flex-start; }
}
