.user-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.user-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.user-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: #b42318;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.user-toolbar-copy h2 {
    margin: 0;
    color: #172033;
    font-size: 1.25rem;
    font-weight: 700;
}

.user-toolbar-copy p,
.user-modal-subtitle {
    margin: 0.3rem 0 0;
    color: #667085;
    font-size: 0.8rem;
}

.user-toolbar-actions {
    display: flex;
    align-items: end;
    gap: 0.6rem;
}

.user-filter-field label {
    display: block;
    margin-bottom: 0.3rem;
    color: #475467;
    font-size: 0.7rem;
    font-weight: 650;
}

.user-filter-field select {
    min-width: 11rem;
}

.user-search-field {
    width: 15rem;
}

.user-table-wrap {
    border: 1px solid #eaecf0;
    border-radius: 0.75rem;
}

#userTable thead th {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #e5e7eb;
    color: #667085;
    background: #f8fafc;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#userTable tbody td {
    padding: 0.72rem 0.9rem;
    border-bottom-color: #f1f3f5;
    font-size: 0.8rem;
}

.user-primary,
.user-secondary {
    display: block;
}

.user-primary {
    color: #1d2939;
    font-size: 0.84rem;
}

.user-secondary {
    max-width: 22rem;
    margin-top: 0.16rem;
    overflow: hidden;
    color: #98a2b3;
    font-size: 0.72rem;
    text-overflow: ellipsis;
}

.user-role-pill,
.user-station-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.user-role-pill {
    color: #175cd3;
    background: #eff6ff;
}

.user-station-pill {
    color: #475467;
    background: #f2f4f7;
}

.user-action-btn {
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid #fde68a;
    border-radius: 0.45rem;
    color: #a15c07;
    background: #fffbeb;
}

.user-datatable-top,
.user-datatable-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
}

.user-modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
}

.user-form-section {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    background: #fff;
}

.user-section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.user-section-heading h6 {
    margin: 0;
    color: #1d2939;
    font-size: 0.9rem;
    font-weight: 700;
}

.user-section-heading p,
.user-form-section .form-text {
    margin: 0.15rem 0 0;
    color: #667085;
    font-size: 0.72rem;
}

.user-section-icon {
    display: grid;
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 0.65rem;
    color: #b42318;
    background: #fef3f2;
    font-size: 1.2rem;
}

.user-section-icon-blue {
    color: #175cd3;
    background: #eff6ff;
}

.user-readonly-field:disabled {
    color: #667085;
    background: #f8fafc;
    opacity: 1;
}

.user-required {
    margin-left: 0.2rem;
    color: #d92d20;
}

@media (max-width: 767.98px) {
    .user-toolbar,
    .user-toolbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .user-toolbar-actions,
    .user-search-field {
        width: 100%;
    }

    .user-filter-field select {
        width: 100%;
    }
}
