/* Users page: status colours, avatars, alerts, dialogs, mobile cards, preview banner */
.ua-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    flex: none;
    letter-spacing: 0.5px;
}
.ua-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ua-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}
.ua-tag {
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    white-space: nowrap;
}
.ua-tag-warn {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}
.ua-sub {
    font-size: 0.75rem;
    color: #6b7280;
}
.ua-never {
    color: #b45309;
    font-weight: 600;
}
.ua-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.ua-st-active {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}
.ua-st-pending {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}
.ua-st-locked {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}
.ua-st-disabled {
    background: rgba(107, 114, 128, 0.16);
    color: #4b5563;
}
.ua-st-expired {
    background: rgba(234, 88, 12, 0.14);
    color: #c2410c;
}
.ua-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}
.ua-alert {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
}
.ua-alert-red {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}
.ua-alert-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}
.ua-alert-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
}
.ua-alert a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}
.ua-modal {
    max-width: 560px;
    width: 94vw;
}
.ua-modal h4 {
    margin: 0 0 8px;
}
.ua-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    max-height: 280px;
    overflow: auto;
}
.ua-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}
.ua-box {
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
}
.ua-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
}
.ua-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.35);
}
.ua-dots span.on {
    background: #2563eb;
}
.ua-tour {
    z-index: 10050;
}
.ua-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10060;
    background: #b45309;
    color: #fff;
    padding: 8px 14px;
    text-align: center;
    font-size: 0.9rem;
}
.ua-banner button {
    margin-left: 10px;
    border: 0;
    border-radius: 8px;
    padding: 4px 12px;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
    color: #b45309;
}
body.ua-previewing {
    padding-top: 40px;
}

#page-users .page-header,
#page-users .page-header-actions {
    flex-wrap: wrap;
    gap: 8px;
}

/* phones: each user becomes a card with the main actions */
@media (max-width: 760px) {
    #users-table.ua-table thead {
        display: none;
    }
    #users-table.ua-table,
    #users-table.ua-table tbody,
    #users-table.ua-table tr,
    #users-table.ua-table td {
        display: block;
        width: 100%;
    }
    #users-table.ua-table tr {
        border: 1px solid rgba(128, 128, 128, 0.25);
        border-radius: 12px;
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    #users-table.ua-table td {
        border: 0;
        padding: 4px 0;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        text-align: right;
    }
    #users-table.ua-table td::before {
        content: attr(data-label);
        color: #6b7280;
        font-size: 0.78rem;
        text-align: left;
        flex: none;
    }
    #users-table.ua-table td[data-label='User'] {
        justify-content: flex-start;
    }
    #users-table.ua-table td[data-label='User']::before {
        display: none;
    }
    #users-table.ua-table .ua-actions .btn-icon {
        width: 44px;
        height: 44px;
    }
}
