.users-content {
    display: grid;
    gap: 24px;
    padding-bottom: 48px;
}

.users-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.users-heading h1 {
    color: #14213d;
    font-size: clamp(30px, 3vw, 42px);
    letter-spacing: -0.04em;
    margin: 5px 0 7px;
}

.users-heading p,
.profile-panel-heading p {
    color: #68738a;
    line-height: 1.6;
    margin: 0;
}

.users-topbar-profile {
    color: inherit;
    text-decoration: none;
}

.users-primary-button,
.users-secondary-button {
    align-items: center;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    text-decoration: none;
}

.users-primary-button {
    background: var(--blue, #1767aa);
    box-shadow: 0 10px 22px rgba(23, 103, 170, 0.2);
    color: #fff;
}

.users-primary-button:hover {
    filter: brightness(0.94);
}

.users-secondary-button {
    background: #edf1f7;
    color: #34405a;
}

.users-alert {
    align-items: center;
    background: #eaf9f1;
    border: 1px solid #bfe8d1;
    border-radius: 14px;
    color: #17633b;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
}

.users-alert > span {
    align-items: center;
    background: #1f9d61;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 28px;
    font-weight: 900;
    height: 28px;
    justify-content: center;
}

.users-alert p,
.users-alert strong {
    margin: 0;
}

.users-alert-error {
    background: #fff0f1;
    border-color: #f6c8cd;
    color: #9d2935;
}

.users-alert-error > span {
    background: #c83f4f;
}

.users-stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.users-stats article {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(26, 42, 70, 0.06);
    min-width: 0;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.users-stats article::before {
    background: var(--blue, #1767aa);
    content: '';
    height: 4px;
    inset: 0 0 auto;
    position: absolute;
}

.users-stats .users-stat-active::before { background: #20a56a; }
.users-stats .users-stat-inactive::before { background: #d85b67; }
.users-stats .users-stat-admin::before { background: #7857d8; }
.users-stats .users-stat-collaborator::before { background: var(--cyan, #f2c94c); }

.users-stats span,
.users-stats small {
    color: #6c778d;
    display: block;
}

.users-stats span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.users-stats strong {
    color: #14213d;
    display: block;
    font-size: 30px;
    margin: 8px 0 3px;
}

.users-stats small {
    font-size: 12px;
}

.users-panel {
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(22, 38, 66, 0.06);
}

.users-filter-panel {
    padding: 18px;
}

.users-filter-form {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(240px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
}

.users-filter-form label,
.users-field {
    display: grid;
    gap: 7px;
}

.users-filter-form label > span,
.users-field > span {
    color: #34405a;
    font-size: 13px;
    font-weight: 800;
}

.users-filter-form input,
.users-filter-form select,
.users-field input,
.users-field select {
    background: #fff;
    border: 1px solid #d8e0eb;
    border-radius: 11px;
    color: #1f2a44;
    font: inherit;
    min-height: 45px;
    outline: none;
    padding: 10px 12px;
    width: 100%;
}

.users-filter-form input:focus,
.users-filter-form select:focus,
.users-field input:focus,
.users-field select:focus {
    border-color: var(--blue, #1767aa);
    box-shadow: 0 0 0 3px rgba(23, 103, 170, 0.12);
}

.users-field input:disabled {
    background: #f2f5f9;
    color: #667085;
}

.users-field small {
    color: #7b8699;
    font-size: 12px;
}

.users-filter-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.users-filter-actions button,
.users-filter-actions a {
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    min-height: 45px;
    padding: 11px 16px;
}

.users-filter-actions button {
    background: #1d2b49;
    color: #fff;
}

.users-filter-actions a {
    align-items: center;
    background: #eef2f7;
    color: #4b5872;
    display: inline-flex;
    text-decoration: none;
}

.users-list-panel {
    overflow: hidden;
}

.users-list-heading {
    align-items: center;
    border-bottom: 1px solid #e9edf3;
    display: flex;
    justify-content: space-between;
    padding: 20px 22px;
}

.users-list-heading h2,
.profile-panel-heading h2,
.profile-access-panel h2 {
    color: #17233d;
    font-size: 21px;
    margin: 4px 0 0;
}

.users-list-heading > span {
    background: #f1f4f8;
    border-radius: 999px;
    color: #5f6a7f;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 11px;
}

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

.users-table {
    border-collapse: collapse;
    min-width: 980px;
    width: 100%;
}

.users-table th {
    background: #f7f9fc;
    color: #677287;
    font-size: 11px;
    letter-spacing: 0.07em;
    padding: 12px 16px;
    text-align: left;
    text-transform: uppercase;
}

.users-table td {
    border-top: 1px solid #edf0f5;
    color: #35415a;
    padding: 14px 16px;
    vertical-align: middle;
}

.users-person,
.users-contact,
.users-last-login {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.users-person {
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

.users-person > span {
    align-items: center;
    background: #e8f1fa;
    border-radius: 12px;
    color: var(--blue, #1767aa);
    display: inline-flex;
    flex: 0 0 38px;
    font-weight: 900;
    height: 38px;
    justify-content: center;
}

.users-person strong,
.users-contact span,
.users-last-login strong {
    color: #1d2941;
    display: block;
    font-size: 13px;
}

.users-person small,
.users-contact small,
.users-last-login small,
.users-last-login span {
    color: #7b8598;
    font-size: 12px;
}

.users-role,
.users-status,
.users-protected {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 9px;
    white-space: nowrap;
}

.users-role-super-admin { background: #efe9ff; color: #6142ba; }
.users-role-admin { background: #e8f1ff; color: #2862ac; }
.users-role-colaborador { background: #fff5cf; color: #8a6700; }

.users-status {
    align-items: center;
    gap: 6px;
}

.users-status i {
    border-radius: 50%;
    height: 7px;
    width: 7px;
}

.users-status-active { background: #e8f8f0; color: #197346; }
.users-status-active i { background: #20a56a; }
.users-status-inactive { background: #fff0f1; color: #9a3340; }
.users-status-inactive i { background: #d34c5b; }
.users-protected { background: #f0f2f6; color: #6d778a; }

.users-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.users-actions button,
.users-action-profile {
    background: #edf3fa;
    border: 0;
    border-radius: 8px;
    color: #295e9e;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    padding: 7px 9px;
    text-decoration: none;
}

.users-actions form { margin: 0; }
.users-actions .users-action-warning { background: #fff4d9; color: #8c6200; }
.users-actions .users-action-success { background: #e7f7ef; color: #197346; }
.users-actions .users-action-danger { background: #fff0f1; color: #aa3542; }

.users-empty {
    align-items: center;
    color: #6c778c;
    display: flex;
    flex-direction: column;
    padding: 58px 20px;
    text-align: center;
}

.users-empty > span {
    align-items: center;
    background: #edf2f7;
    border-radius: 50%;
    color: #607087;
    display: inline-flex;
    font-size: 26px;
    height: 58px;
    justify-content: center;
    margin-bottom: 13px;
    width: 58px;
}

.users-empty strong { color: #26344f; }
.users-empty p { margin: 6px 0 0; }

.users-pagination {
    align-items: center;
    border-top: 1px solid #e9edf3;
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
}

.users-pagination a,
.users-pagination span {
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 10px;
}

.users-pagination a {
    background: #edf3fa;
    color: #285f9f;
    text-decoration: none;
}

.users-pagination span { color: #9aa3b1; }
.users-pagination strong { color: #536078; font-size: 12px; }

.users-dialog {
    background: transparent;
    border: 0;
    max-height: 92vh;
    max-width: 760px;
    padding: 0;
    width: calc(100% - 28px);
}

.users-dialog::backdrop {
    background: rgba(9, 18, 36, 0.7);
    backdrop-filter: blur(3px);
}

.users-dialog-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(4, 14, 34, 0.3);
    max-height: 92vh;
    overflow-y: auto;
}

.users-dialog-card > header {
    align-items: flex-start;
    border-bottom: 1px solid #e9edf3;
    display: flex;
    justify-content: space-between;
    padding: 22px 24px;
}

.users-dialog-card h2 {
    color: #17233d;
    font-size: 24px;
    margin: 5px 0;
}

.users-dialog-card header p {
    color: #6d778b;
    margin: 0;
}

.users-dialog-card header > button {
    align-items: center;
    background: #eef2f7;
    border: 0;
    border-radius: 10px;
    color: #536078;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 38px;
    font-size: 24px;
    height: 38px;
    justify-content: center;
}

.users-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px 24px 12px;
}

.users-field-wide { grid-column: 1 / -1; }

.users-password-field {
    align-items: stretch;
    display: flex;
}

.users-password-field input {
    border-radius: 11px 0 0 11px;
    min-width: 0;
}

.users-password-field button {
    background: #edf2f7;
    border: 1px solid #d8e0eb;
    border-left: 0;
    border-radius: 0 11px 11px 0;
    color: #526079;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 0 12px;
}

.users-password-note {
    color: #778297;
    font-size: 12px;
    margin: 0;
    padding: 0 24px 18px;
}

.users-dialog-card > footer {
    align-items: center;
    background: #f8fafc;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid #e9edf3;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px;
}

.sidebar-profile-link {
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sidebar-profile-link:hover,
.sidebar-profile-link.active {
    background: rgba(255, 255, 255, 0.08);
}

.profile-heading { align-items: center; }

.profile-identity {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    gap: 12px;
    min-width: 270px;
    padding: 12px 16px;
}

.profile-identity > span {
    align-items: center;
    background: var(--blue, #1767aa);
    border-radius: 13px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 46px;
    font-size: 18px;
    font-weight: 900;
    height: 46px;
    justify-content: center;
}

.profile-identity strong,
.profile-identity small { display: block; }
.profile-identity strong { color: #1c2942; }
.profile-identity small { color: #748096; margin-top: 3px; }

.profile-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
}

.profile-panel { padding: 22px; }

.profile-panel-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-form-grid { padding: 0; }
.profile-password-fields { display: grid; gap: 16px; }

.profile-actions {
    border-top: 1px solid #e9edf3;
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 18px;
}

.profile-security-note {
    align-items: flex-start;
    background: #eef6fd;
    border-radius: 12px;
    color: #315e8b;
    display: flex;
    font-size: 12px;
    gap: 9px;
    margin-top: 18px;
    padding: 12px;
}

.profile-security-note span { font-weight: 900; }
.profile-security-note p { line-height: 1.5; margin: 0; }

.profile-access-panel {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 20px 22px;
}

.profile-access-data {
    display: flex;
    gap: 40px;
}

.profile-access-data span,
.profile-access-data strong { display: block; }
.profile-access-data span { color: #778297; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.profile-access-data strong { color: #26344d; font-size: 13px; margin-top: 5px; }

@media (max-width: 1180px) {
    .users-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .users-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .users-content { gap: 18px; }
    .users-heading,
    .profile-heading,
    .profile-access-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .users-heading .users-primary-button,
    .profile-identity { width: 100%; }
    .users-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .users-stats article:first-child { grid-column: 1 / -1; }
    .users-filter-form { grid-template-columns: 1fr; }
    .users-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .users-filter-actions button,
    .users-filter-actions a { justify-content: center; text-align: center; }
    .users-list-heading { align-items: flex-start; gap: 12px; }

    .users-table,
    .users-table tbody,
    .users-table tr,
    .users-table td { display: block; min-width: 0; width: 100%; }
    .users-table thead { display: none; }
    .users-table tr { border-top: 1px solid #e6ebf2; padding: 12px 16px; }
    .users-table tbody tr:first-child { border-top: 0; }
    .users-table td {
        align-items: flex-start;
        border: 0;
        display: grid;
        gap: 10px;
        grid-template-columns: 94px minmax(0, 1fr);
        padding: 8px 0;
    }
    .users-table td::before {
        color: #7c879a;
        content: attr(data-label);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.05em;
        padding-top: 5px;
        text-transform: uppercase;
    }
    .users-pagination { gap: 7px; padding: 14px; }
    .users-pagination strong { text-align: center; }
    .users-form-grid { grid-template-columns: 1fr; padding: 18px; }
    .users-field-wide { grid-column: auto; }
    .users-dialog-card > header,
    .users-dialog-card > footer { padding: 16px 18px; }
    .users-dialog-card > footer { align-items: stretch; flex-direction: column-reverse; }
    .users-password-note { padding: 0 18px 16px; }
    .profile-panel { padding: 18px; }
    .profile-panel-heading { flex-direction: column; }
    .profile-access-data { display: grid; gap: 16px; }
}

@media (max-width: 430px) {
    .users-stats { grid-template-columns: 1fr; }
    .users-stats article:first-child { grid-column: auto; }
    .users-table td { grid-template-columns: 82px minmax(0, 1fr); }
    .users-actions { align-items: stretch; flex-direction: column; }
    .users-actions button,
    .users-action-profile,
    .users-actions form { text-align: center; width: 100%; }
    .users-actions form button { width: 100%; }
    .users-pagination strong { display: none; }
}


/* DM_APPROVAL_PROFILE_STYLES_START */
.users-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.users-stats .users-stat-pending::before {
    background: #e5a11a;
}

.users-status-pending {
    background: #fff5d9;
    color: #8a6200;
}

.users-status-pending i {
    background: #e5a11a;
}

.profile-heading-actions {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-back-button {
    align-items: center;
    align-self: flex-start;
    background: #edf3fa;
    border: 1px solid #d7e3ef;
    border-radius: 10px;
    color: var(--blue, #1767aa);
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    min-height: 39px;
    padding: 8px 13px;
    text-decoration: none;
}

.profile-back-button:hover {
    background: #e3eef9;
}

@media (max-width: 1180px) {
    .users-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .profile-heading-actions,
    .profile-back-button {
        width: 100%;
    }

    .profile-back-button {
        justify-content: center;
    }

    .users-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 430px) {
    .users-stats {
        grid-template-columns: 1fr;
    }
}
/* DM_APPROVAL_PROFILE_STYLES_END */