/* ===== USER MANAGEMENT STYLES - Prefix: fxuser- ===== */
/* Extends fxcz- (city-zones.css) — include both files */

/* ===== Filters row ===== */
.fxuser-filters {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.fxuser-filter-select {
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid rgba(75, 62, 123, 0.22);
    border-radius: 12px;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #2D2350;
    outline: none;
    cursor: pointer;
    min-width: 160px;
    transition: border-color .2s;
}

.fxuser-filter-select:focus {
    border-color: #4B3E7B;
    box-shadow: 0 0 0 3px rgba(75, 62, 123, 0.10);
}

/* ===== User avatar ===== */
.fxuser-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fxuser-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.fxuser-avatar-manager {
    background: linear-gradient(135deg, #4B3E7B 0%, #7C6BB5 100%);
}

.fxuser-avatar-staff {
    background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 100%);
}

.fxuser-avatar-superadmin {
    background: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
}

.fxuser-name {
    font-size: 13px;
    font-weight: 700;
    color: #2D2350;
    white-space: nowrap;
}

.fxuser-type-label {
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
}

.fxuser-email {
    font-size: 12px !important;
    color: #6B7280 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

/* ===== User status badges ===== */
.fxuser-pending {
    color: #D97706 !important;
    background: rgba(217, 119, 6, 0.10) !important;
    border-color: rgba(217, 119, 6, 0.22) !important;
}

.fxuser-pending .fx-dot {
    background: #D97706 !important;
}

.fxuser-suspended {
    color: #EF4444 !important;
    background: rgba(239, 68, 68, 0.10) !important;
    border-color: rgba(239, 68, 68, 0.22) !important;
}

.fxuser-suspended .fx-dot {
    background: #EF4444 !important;
}

/* ===== Action buttons ===== */
.fxuser-btn-email {
    background: linear-gradient(135deg, #0EA5E9, #38BDF8) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 0 10px !important;
    height: 30px !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
}

.fxuser-btn-email:hover { filter: brightness(1.08) !important; }

.fxuser-btn-reset {
    background: linear-gradient(135deg, #F97316, #FB923C) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 0 10px !important;
    height: 30px !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
}

.fxuser-btn-reset:hover { filter: brightness(1.08) !important; }

/* ===== User type pill in dialog ===== */
.fxuser-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.fxuser-type-superadmin {
    color: #F97316;
    background: rgba(249, 115, 22, 0.10);
    border-color: rgba(249, 115, 22, 0.22);
}

.fxuser-type-manager {
    color: #4B3E7B;
    background: rgba(75, 62, 123, 0.10);
    border-color: rgba(75, 62, 123, 0.22);
}

.fxuser-type-staff {
    color: #0EA5E9;
    background: rgba(14, 165, 233, 0.10);
    border-color: rgba(14, 165, 233, 0.22);
}

/* ===== Dialog body ===== */
.fxuser-body {
    padding: 24px 28px 28px;
}

/* ===== No roles warning ===== */
.fxuser-no-roles {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(217, 119, 6, 0.08);
    border: 1.5px solid rgba(217, 119, 6, 0.20);
    font-size: 13px;
    font-weight: 600;
    color: #D97706;
}

/* ===== RESPONSIVE TABLE ===== */

/* Wrap table in horizontal scrollable div */
.fxuser-scroll-x {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fxuser-scroll-x::-webkit-scrollbar { height: 4px; }
.fxuser-scroll-x::-webkit-scrollbar-track { background: transparent; }
.fxuser-scroll-x::-webkit-scrollbar-thumb { background: rgba(75,62,123,.25); border-radius: 2px; }

/* Table min-width so it scrolls instead of squishing */
.fxuser-table {
    min-width: 800px !important;
}

/* Hide columns on medium screens (< 1100px) */
@media (max-width: 1100px) {
    .fxuser-hide-md { display: none !important; }
}

/* Hide email column on small screens (< 768px), show it inside name cell instead */
@media (max-width: 768px) {
    .fxuser-hide-sm  { display: none !important; }
    .fxuser-table    { min-width: 560px !important; }

    /* action buttons stack tighter */
    .fxcz-td-actions { gap: 4px !important; }
}

/* Email shown inside name cell on small screens */
.fxuser-email-mobile {
    font-size: 11px;
    color: #6B7280;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    margin-top: 1px;
}

/* Hide email sub-line on larger screens (email col is visible) */
@media (min-width: 769px) {
    .fxuser-hide-sm-flex { display: none !important; }
}

/* Department loading placeholder */
.fxuser-dept-loading {
    font-size: 11px;
    color: #9CA3AF;
    font-style: italic;
}
