/*
 * BRITIXO_MYACCOUNT_STAFF_USERS_FRONTEND_V1
 * Strictly scoped to #staff-users.
 */

#staff-users .staff-users-shell {
    display: grid;
    gap: 18px;
}

#staff-users .staff-users-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

#staff-users .staff-users-selector {
    display: grid;
    gap: 7px;
    min-width: min(360px, 100%);
}

#staff-users .staff-users-selector label {
    font-size: 12px;
    font-weight: 700;
    color: #526079;
}

#staff-users .staff-users-selector select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9e2ed;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    padding: 8px 36px 8px 12px;
    font: inherit;
}

#staff-users .staff-users-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

#staff-users .staff-users-actions .is-disabled {
    opacity: .5;
    pointer-events: none;
}

#staff-users .staff-users-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 22px;
    border: 1px solid #dfe7f0;
    border-radius: 16px;
    background: #fff;
}

#staff-users .staff-users-hero h2 {
    margin: 4px 0 7px;
    font-size: 22px;
    line-height: 1.25;
}

#staff-users .staff-users-hero p {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

#staff-users .staff-users-eyebrow {
    color: #0b5cff !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

#staff-users .staff-users-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px;
    min-width: 260px;
}

#staff-users .staff-users-summary > div {
    display: grid;
    gap: 4px;
    align-content: center;
    padding: 14px 16px;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    background: #f8faff;
}

#staff-users .staff-users-summary span {
    font-size: 12px;
    color: #667085;
}

#staff-users .staff-users-summary strong {
    font-size: 22px;
    color: #172033;
}

#staff-users .staff-users-table-card {
    overflow: hidden;
    border: 1px solid #dfe7f0;
    border-radius: 16px;
    background: #fff;
}

#staff-users .staff-users-table-heading {
    padding: 18px 20px;
    border-bottom: 1px solid #e9eef5;
}

#staff-users .staff-users-table-heading h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

#staff-users .staff-users-table-heading p {
    margin: 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.6;
}

#staff-users .staff-users-table-wrap {
    overflow-x: auto;
}

#staff-users .staff-users-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

#staff-users .staff-users-table th,
#staff-users .staff-users-table td {
    padding: 13px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #edf1f6;
}

#staff-users .staff-users-table th {
    background: #f8faff;
    color: #526079;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

#staff-users .staff-users-table td {
    color: #344054;
    font-size: 13px;
}

#staff-users .staff-users-table tbody tr:last-child td {
    border-bottom: 0;
}

#staff-users .staff-users-table a {
    color: #0b5cff;
    text-decoration: none;
}

#staff-users .staff-users-role,
#staff-users .staff-users-active {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

#staff-users .staff-users-role {
    background: #eef4ff;
    color: #2149a6;
}

#staff-users .staff-users-active {
    background: #ecfdf3;
    color: #067647;
}

#staff-users .staff-users-email-cell {
    width: 60px;
    text-align: right;
}

#staff-users .staff-users-email-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #dce5f0;
    border-radius: 9px;
    background: #fff;
    color: #0b5cff;
    cursor: pointer;
}

#staff-users .staff-users-email-button:hover:not(:disabled) {
    background: #f2f6ff;
    border-color: #bfcff1;
}

#staff-users .staff-users-email-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

#staff-users .staff-users-email-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#staff-users .staff-users-status,
#staff-users .staff-users-warning,
#staff-users .staff-users-loading,
#staff-users .staff-users-error,
#staff-users .staff-users-empty {
    padding: 15px 17px;
    border-radius: 12px;
    line-height: 1.55;
}

#staff-users .staff-users-status {
    border: 1px solid #dce5f0;
    background: #f8faff;
    color: #344054;
}

#staff-users .staff-users-status.is-success {
    border-color: #b7ebca;
    background: #ecfdf3;
    color: #067647;
}

#staff-users .staff-users-status.is-error,
#staff-users .staff-users-error {
    border: 1px solid #f6c7c7;
    background: #fff4f4;
    color: #b42318;
}

#staff-users .staff-users-warning {
    border: 1px solid #f4d48a;
    background: #fff8e8;
    color: #805b00;
}

#staff-users .staff-users-loading,
#staff-users .staff-users-empty {
    border: 1px solid #dfe7f0;
    background: #fff;
    color: #667085;
}

#staff-users .staff-users-empty h2,
#staff-users .staff-users-error h2 {
    margin: 0 0 7px;
    color: #172033;
}

#staff-users .staff-users-table-empty,
#staff-users .staff-users-muted {
    color: #8a94a6;
}

@media (max-width: 760px) {
    #staff-users .staff-users-toolbar,
    #staff-users .staff-users-actions {
        width: 100%;
    }

    #staff-users .staff-users-actions .button,
    #staff-users .staff-users-actions .is-disabled {
        flex: 1 1 180px;
        justify-content: center;
        text-align: center;
    }

    #staff-users .staff-users-summary {
        width: 100%;
        min-width: 0;
    }
}
