.admin-users-page { --text: #0d245a; --muted: #6b7faa; --border: #e6ecf8; --blue: #0453ff; --blue-2: #0453ff; --blue-soft: #edf3ff; background: #f7f9ff; font-family: Arial, sans-serif; font-size: 16px; }
.admin-users-page .admin-layout { grid-template-columns: 243px minmax(0, 1fr); }
.admin-users-page .admin-sidebar { padding: 29px 13px 18px; height: 100dvh; position: sticky; top: 0; }
.admin-users-page .admin-brand { gap: 13px; padding: 0 3px 24px; }
.admin-users-page .admin-brand strong { font-size: 16px; }
.admin-users-page .admin-brand small { font-size: 14px; }
.admin-users-page .brand-mark { background: linear-gradient(135deg, #0048ff, #507bff); }
.admin-users-page .admin-nav { gap: 4px; }
.admin-users-nav-link { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 16px; border-radius: 9px; font-weight: 560; color: var(--text); text-decoration: none; font-size: 16px; }
.admin-users-nav-link.active { color: #0453ff; background: #edf3ff; font-weight: 700; box-shadow: inset 3px 0 0 #0453ff; }
.admin-users-nav-link[hidden] { display: none; }
.admin-users-page .admin-identity strong { max-width: 124px; }
.admin-users-page .admin-identity { min-height: 64px; }
.admin-users-page .admin-main { padding: 28px 16px 26px 27px; height: auto; min-height: 100dvh; overflow: visible; }
.admin-users-page .admin-header { margin-bottom: 16px; align-items: center; }
.admin-users-page .admin-header h1 { font-size: 32px; line-height: 38px; margin: 0 0 3px; letter-spacing: -.6px; }
.admin-users-page .admin-header p { font-size: 17px; line-height: 22px; margin: 0; }
.users-primary, .users-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 46px; padding: 0 24px; border-radius: 8px; border: 1px solid var(--border); font-weight: 600; white-space: nowrap; }
.users-primary { background: #0453ff; border-color: #0453ff; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.04); }
.users-primary:hover { background: #0044df; }
.users-primary:disabled, .users-delete:disabled { opacity: .65; cursor: wait; }
.users-secondary { background: #fff; color: var(--text); }
.users-plus { font-size: 25px; font-weight: 400; line-height: 1; }
.users-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.users-stat { display: flex; align-items: center; gap: 15px; min-height: 118px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 5px 20px rgba(40,65,120,.025); }
.users-stat > div > span { display: block; color: var(--muted); font-size: 16px; }
.users-stat strong { display: block; margin-top: 7px; font-size: 23px; line-height: 26px; }
.users-stat-icon { display: grid; place-items: center; width: 61px; height: 61px; flex: 0 0 61px; border-radius: 50%; }
.users-stat-icon.blue { background: #eaf1ff; color: #0054ff; }
.users-stat-icon.green { background: #e3f8f0; color: #009566; }
.users-stat-icon.red { background: #ffebed; color: #ee001b; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
[data-icon] svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.users-stat-icon svg { width: 28px; height: 28px; }
.users-filters { display: grid; grid-template-columns: 1.14fr 1fr 1.37fr auto; gap: 20px; padding: 23px 18px 19px; background: #fff; border: 1px solid var(--border); border-radius: 15px; margin-bottom: 21px; align-items: end; }
.users-filters label > span:first-child { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.users-filters input, .users-filters select { height: 46px; min-height: 46px; font-size: 16px; }
.users-input-icon { position: relative; display: block; }
.users-input-icon > [data-icon] { position: absolute; left: 14px; top: 13px; color: #7488b3; pointer-events: none; }
.users-input-icon svg { width: 19px; height: 19px; }
.users-input-icon input { padding-left: 49px; }
.admin-users-page input::placeholder { color: #8290af; opacity: 1; }
.users-filters .users-secondary { background: #f9faff; color: #0453ff; font-size: 14px; padding: 0 25px; }
.users-table-card { background: #fff; border: 1px solid var(--border); border-radius: 15px; overflow: hidden; }
.users-table-scroll { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; min-width: 1050px; }
.users-table .number-col { width: 4.1%; } .users-table .name-col { width: 14.8%; } .users-table .email-col { width: 17.5%; } .users-table .role-col { width: 11%; } .users-table .status-col { width: 12.4%; } .users-table .modules-col { width: 15.6%; } .users-table .date-col { width: 12.1%; } .users-table .actions-col { width: 12.5%; }
.users-table th { height: 44px; font-size: 13px; font-weight: 600; background: #f9faff; text-align: left; }
.users-table th, .users-table td { padding: 7px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.users-table td { height: 48px; overflow: hidden; text-overflow: ellipsis; }
.users-table td:last-child { overflow: visible; }
.users-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 25px; padding: 4px 9px; font-size: 12px; border-radius: 6px; white-space: nowrap; }
.users-badge.super { color: #0053ff; background: #eaf2ff; }
.users-badge.admin { background: #e9edf3; }
.users-badge.active { color: #008e59; background: #e3f8ef; }
.users-badge.disabled { color: #ec001a; background: #ffebed; }
.users-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.users-row-actions { display: flex; gap: 18px; }
.users-edit, .users-delete { min-height: 34px; padding: 0 16px; border: 0; border-radius: 7px; font-size: 13px; font-weight: 500; }
.users-edit { color: #0053ff; background: #eaf1ff; }
.users-delete { color: #ed0017; background: #ffeded; }
.users-protected { display: block; text-align: center; color: #8b9ec3; }
.users-empty { text-align: center; height: 160px !important; color: var(--muted); }
.users-pagination { min-height: 119px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 25px 26px 18px; }
.users-page-controls { display: flex; align-items: center; gap: 34px; }
.users-page-controls select { width: 93px; height: 45px; }
#users-pages { display: flex; gap: 12px; }
#users-pages button { width: 44px; height: 45px; background: #fff; border: 1px solid var(--border); border-radius: 8px; color: #657eac; }
#users-pages button.current { background: #0453ff; border-color: #0453ff; color: #fff; }
#users-pages button:disabled { opacity: .55; cursor: default; }
.users-dialog { width: 662px; max-width: calc(100vw - 32px); padding: 25px 26px 22px; margin: min(19.5vh, 185px) auto 32px; max-height: calc(100dvh - min(19.5vh, 185px) - 32px); border: 1px solid #e5eaf4; border-radius: 14px; color: var(--text); background: #fff; box-shadow: 0 20px 70px rgba(17,40,94,.13); overflow-y: auto; }
.users-dialog::backdrop, .users-delete-dialog::backdrop { background: rgba(34,50,75,.50); }
.users-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 28px; }
.users-dialog h2 { margin: 0 0 5px; font-size: 28px; line-height: 32px; letter-spacing: -.4px; }
.users-dialog-header p { margin: 0; color: var(--muted); font-size: 16px; line-height: 21px; }
.users-close { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border: 1px solid #dce6ff; border-radius: 7px; background: #f1f5ff; color: #0e245b; margin-top: -5px; }
.users-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 23px; row-gap: 20px; }
.users-form-grid label > span:first-child { display: block; font-size: 14px; margin-bottom: 8px; line-height: 17px; }
.users-form-grid em { color: #e51635; font-style: normal; }
.users-form-grid input, .users-form-grid select { min-height: 43px; height: 43px; border-color: #dce5f7; font-size: 14px; padding: 10px 14px; border-radius: 7px; }
.users-password { display: block; position: relative; }
.users-password input { padding-right: 42px; }
.users-password input::placeholder { color: #50648f; font-size: 19px; letter-spacing: 0; }
.users-password button { display: grid; place-items: center; position: absolute; right: 8px; top: 5px; width: 32px; height: 33px; border: 0; color: #6c80aa; background: transparent; }
.users-password svg { width: 21px; height: 21px; }
.users-status-select { position: relative; display: block; }
.users-status-select select { padding-left: 40px; }
.users-select-dot { position: absolute; top: 10px; left: 13px; width: 22px; height: 22px; background: #d9f9e3; border-radius: 6px; pointer-events: none; }
.users-select-dot::after { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #00a235; left: 6px; top: 6px; }
.users-select-dot.disabled { background: #ffe4e7; }.users-select-dot.disabled::after { background: #ec001a; }
.users-permissions { margin-top: 21px; padding-top: 15px; border-top: 1px solid #d5e0f7; }
.users-permissions h3 { font-size: 17px; line-height: 21px; margin: 0 0 4px; }
.users-permissions > p { margin: 0 0 15px; color: var(--muted); font-size: 14px; line-height: 19px; }
.users-permissions-scroll { border: 1px solid #dfe7fa; border-radius: 9px; overflow: auto; }
.users-permission-table { border-collapse: collapse; width: 100%; font-size: 14px; table-layout: fixed; }
.users-permission-table th { font-weight: 500; background: #f8faff; }
.users-permission-table th, .users-permission-table td { height: 37px; padding: 8px 13px; text-align: center; border-bottom: 1px solid #e2eafb; }
.users-permission-table th:first-child, .users-permission-table td:first-child { text-align: left; width: 26%; }
.users-permission-table tbody tr:last-child td { border: 0; }
.users-permission-table th label { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.users-permission-table input { appearance: auto; accent-color: #0453ff; width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; border-radius: 3px; cursor: pointer; vertical-align: middle; }
.users-dialog-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 25px; }
.users-dialog-footer .users-secondary { min-width: 102px; font-weight: 400; }
.users-dialog-footer .users-primary { min-width: 153px; }
[data-error] { display: block; color: #d92035; font-size: 12px; margin-top: 5px; }
[data-error]:empty { display: none; }
#user-form-error, #delete-error { color: #c41c32; font-size: 14px; margin-bottom: 0; }
#users-notice { padding: 12px 16px; background: #edf5ff; color: #0c43c7; border-radius: 8px; font-size: 14px; }
#users-notice.is-error { color: #c41c32; background: #fff0f0; }
.users-delete-dialog { width: 440px; max-width: calc(100vw - 32px); border: 1px solid var(--border); border-radius: 14px; padding: 26px; color: var(--text); }
.users-delete-dialog h2 { margin: 0; font-size: 24px; }.users-delete-dialog p { line-height: 1.5; }.users-delete-dialog > div { display: flex; justify-content: flex-end; gap: 12px; }.users-delete-dialog .users-delete { min-height: 44px; }
@media (min-width: 1300px) { .users-table-card { min-height: 546px; display: flex; flex-direction: column; } .users-pagination { margin-top: auto; } }
@media (max-width: 1100px) { .users-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .users-filters { grid-template-columns: 1fr 1fr; } .users-dialog { margin: 32px auto; max-height: calc(100dvh - 64px); } }
@media (max-width: 700px) { .admin-users-page .admin-layout { display: block; }.admin-users-page .admin-sidebar { height: auto; position: static; min-height: 0; padding: 16px; }.admin-users-page .admin-brand { padding-bottom: 15px; }.admin-users-page .admin-nav { display: flex; flex-wrap: wrap; gap: 4px; }.admin-users-nav-link { font-size: 13px; padding: 0 9px; gap: 7px; min-height: 40px; }.admin-users-page .sidebar-bottom { display: none; }.admin-users-page .admin-main { padding: 22px 16px; }.admin-users-page .admin-header { flex-wrap: wrap; }.admin-users-page .admin-header h1 { font-size: 28px; }.admin-users-page .admin-header p { font-size: 14px; }.users-stat { padding: 14px; gap: 10px; min-height: 98px; }.users-stat-icon { width: 43px; height: 43px; flex-basis: 43px; }.users-stat > div > span { font-size: 13px; }.users-filters { gap: 14px; padding: 16px; }.users-filters label:first-child, .users-filters label:nth-child(3) { grid-column: 1 / -1; }.users-pagination { flex-wrap: wrap; padding: 20px 16px; }.users-page-controls { gap: 16px; }.users-dialog { padding: 22px 18px; margin: 16px auto; max-height: calc(100dvh - 32px); }.users-dialog h2 { font-size: 25px; }.users-dialog-header p { font-size: 14px; }.users-form-grid { grid-template-columns: 1fr; gap: 16px; }.users-permission-table { min-width: 480px; }.users-dialog-footer { position: sticky; bottom: -22px; background: #fff; padding: 14px 0 8px; }.users-dialog-footer .users-primary { min-width: 0; }.users-dialog-header { margin-bottom: 22px; } }
.users-dialog::backdrop, .users-delete-dialog::backdrop { backdrop-filter: none; }

/* Align row rhythm and typography with the supplied desktop reference. */
.admin-users-page .admin-header { margin-bottom: 13px; }
.admin-users-page .admin-nav .admin-users-nav-link { font-weight: 400; }
.admin-users-page .admin-nav .admin-users-nav-link.active { font-weight: 700; }
.users-table th, .users-table td { padding-top: 6px; padding-bottom: 6px; }
.users-table tbody tr:first-child td { height: 44px; }
.users-form-grid { row-gap: 18px; }
.users-dialog-header { margin-bottom: 25px; }
.users-permissions { padding-top: 14px; }
