.users-list-page {
    --users-border: #e9edf4;
    --users-muted: #768298;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 480px;
    background: #fff;
}

.users-list-page > .navbar-wrapper { flex-shrink: 0; }

.users-list-page > .container-fluid {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding-inline: 0 !important;
}

.users-list-page .body-wrapper,
.users-list-page .bodywrapper__inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.users-list-page .body-wrapper { padding: 0; }

.users-list-workspace,
.users-list-table { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.users-list-workspace { position: relative; }
.users-list-progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 6; overflow: hidden; opacity: 0; }
.users-list-workspace[aria-busy="true"] .users-list-progress { opacity: 1; }
.users-list-progress::after { content: ''; display: block; width: 35%; height: 100%; background: #5148e5; }
.users-list-workspace[aria-busy="true"] .users-list-progress::after { animation: users-list-loading 1s ease-in-out infinite; }
.users-list-workspace[aria-busy="true"] .card-body { opacity: .65; }
.users-list-error { flex-shrink: 0; padding: 10px 18px; background: #fff4f4; color: #a83232; font-size: 12px; }
.users-list-error[hidden] { display: none; }
@keyframes users-list-loading { from { transform: translateX(-100%); } to { transform: translateX(390%); } }
@media (prefers-reduced-motion: reduce) { .users-list-workspace[aria-busy="true"] .users-list-progress::after { animation: none; width: 100%; } }

.users-list-header {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--users-border);
}

.users-list-heading { display: flex; align-items: center; gap: 10px; }
.users-list-heading .page-title { margin: 0; color: #25334b; font-size: 18px; font-weight: 600; }
.users-list-count { padding: 3px 9px; border-radius: 6px; background: #f1f3f9; color: #657189; font-size: 12px; font-weight: 500; }
.users-list-header .btn { padding: 7px 12px; border-radius: 6px; font-size: 12px; }
.users-list-controls { flex: 1 1 460px; min-width: 0; }
.users-list-controls:empty { display: none; }
.users-list-header .breadcrumb-plugins { flex-shrink: 0; margin-left: auto; }
.users-list-controls .table-options { width: 100%; }

@media (max-width: 1199px) {
    .users-list-controls { flex-basis: 100%; order: 3; }
}

.users-list-page .open--table {
    flex: 1;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.users-list-page .open--table > .card-header {
    flex-shrink: 0;
    padding: 10px 18px !important;
    border-bottom: 1px solid var(--users-border);
    border-radius: 0;
    background: #fff;
}

.users-list-page .table-options,
.users-list-page .table-options > div {
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
}

.users-list-page .table-options { flex-wrap: wrap !important; }
.users-list-page .table-options > div:last-child { min-width: 0; flex-shrink: 1 !important; }
.users-list-page .table-options form { min-width: 0; }
.users-list-page .table-options .input-group { flex-wrap: nowrap; }

.users-list-page .table-option-btn,
.users-list-page .table-options .form-select,
.users-list-page .table-options .input-group-text,
.users-list-page .table-options input.form-control {
    height: 34px !important;
    border-color: #dce2ed !important;
    background-color: #fff !important;
    color: #536077;
    font-size: 12px;
    line-height: 1.4;
}

.users-list-page .table-option-btn { padding: 7px 10px; border-radius: 6px; }
.users-list-page .table-option-btn:hover { background-color: #f6f6ff !important; border-color: #cbc8fb !important; color: #5148e5; }
.users-list-page .table-options .form-select { padding: 6px 28px 6px 10px; }
.users-list-page .table-options input.form-control { width: 220px; max-width: 100%; }
.users-list-page .table-options input.form-control:focus { border-color: #5148e5 !important; }

.users-list-page .open--table > .card-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.users-list-scroll {
    flex: 1;
    min-width: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd3df #f8f9fb;
}

.users-list-scroll:focus-visible { outline: 2px solid #5148e5; outline-offset: -2px; }
.users-list-page #openTable { width: 100%; margin-bottom: 0; border-collapse: separate; border-spacing: 0; }

.users-list-page #openTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 10px;
    border-bottom: 1px solid var(--users-border);
    background: #f8f9fb;
    color: #657189;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
}

.users-list-page .table-header-sort { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: inherit; font-size: inherit; font-weight: inherit; }
.users-list-page .table-header-sort i { color: #a1aabc; font-size: 14px; }
.users-list-page .table-header-sort:hover,
.users-list-page .table-header-sort.is-sorted,
.users-list-page .table-header-sort.is-sorted i { color: #5148e5; }
.users-list-page .table-header-sort:focus-visible { outline: 2px solid #5148e5; outline-offset: 3px; border-radius: 2px; }

.users-list-page #openTable tbody td {
    padding: 6px 10px;
    border-bottom: 1px solid #eef1f6;
    background: #fff;
    color: #536077;
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;
}

.users-list-page #openTable tbody tr:hover td { background: #f8faff; }
.users-list-page #openTable td a { color: #25334b; font-weight: 500; }
.users-list-page #openTable td a:hover { color: #5148e5; }
.users-list-page #openTable [data-key="account_number"] { font-variant-numeric: tabular-nums; }
.users-list-page #openTable [data-key="balance"] { text-align: right; font-variant-numeric: tabular-nums; }
.users-list-page #openTable td[data-key="balance"] { color: #25334b; font-weight: 500; }

.users-list-contact { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.users-list-page #openTable .users-list-contact,
.users-list-page #openTable .users-list-contact > *,
.users-list-page #openTable .users-list-contact-details > * { font-size: inherit; line-height: inherit; }
.users-list-contact-name { max-width: 320px; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.users-list-page #openTable .users-list-contact-details { display: inline-flex; align-items: center; gap: 6px; color: #768298; font-size: 11px; line-height: 1.3; }
.users-list-contact-email { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.users-list-contact-phone { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.users-list-contact-separator { color: #a1aabc; }

.users-list-country { display: inline-flex; align-items: center; gap: 7px; }
.users-list-page #openTable .users-list-country,
.users-list-page #openTable .users-list-country > span { font-size: inherit; }
.users-list-country-flag { display: block; flex-shrink: 0; width: 20px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(37, 51, 75, .1); }

.users-list-address { display: inline-flex; align-items: center; gap: 6px; max-width: 360px; vertical-align: middle; white-space: nowrap; }
.users-list-page #openTable .users-list-address,
.users-list-page #openTable .users-list-address > span { font-size: inherit; line-height: inherit; }
.users-list-address .users-list-country,
.users-list-address-separator { flex-shrink: 0; }
.users-list-address-location { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.users-list-address-separator { color: #a1aabc; }

/* Keep row actions within reach when the account columns scroll horizontally. */
.users-list-page #openTable th:last-child:not([data-key]),
.users-list-page #openTable td:last-child:not([data-key]):not([colspan]) {
    position: sticky;
    right: 0;
    text-align: center;
    box-shadow: -1px 0 0 var(--users-border);
}

.users-list-page #openTable th:last-child:not([data-key]) { z-index: 3; }
.users-list-page #openTable td:last-child:not([data-key]):not([colspan]) { z-index: 1; }
.users-list-page #openTable td:last-child:has(.dropdown-menu.show) { z-index: 5; }
.users-list-page .table-row-actions { display: inline-flex; align-items: center; gap: 6px; }
.users-list-page #openTable .table-row-action,
.users-list-page #openTable .dropdown > .btn { --action-color: #475569; --action-border: #cbd5e1; --action-background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; padding: 4px 7px; border: 1px solid var(--action-border); border-radius: 5px; background: var(--action-background); color: var(--action-color); transition: background-color .15s, border-color .15s, color .15s; }
.users-list-page #openTable .users-list-action-details { --action-color: #4f46e5; --action-border: #e0e7ff; --action-background: #eef2ff; }
.users-list-page #openTable .users-list-action-kyc { --action-color: #0284c7; --action-border: #bae6fd; --action-background: #f0f9ff; }
.users-list-page .table-row-action ~ .dropdown { margin-left: 2px; padding-left: 8px; border-left: 1px solid var(--users-border); }
.users-list-page #openTable .table-row-action:hover,
.users-list-page #openTable .table-row-action:focus-visible,
.users-list-page #openTable .dropdown > .btn:hover,
.users-list-page #openTable .dropdown > .btn:focus-visible,
.users-list-page #openTable .dropdown > .btn[aria-expanded="true"] { border-color: var(--action-color); background: var(--action-color); color: #fff; }
.users-list-page #openTable .table-row-action:focus-visible,
.users-list-page #openTable .dropdown > .btn:focus-visible { outline: 2px solid var(--action-color); outline-offset: 2px; }
.users-list-page #openTable .table-row-actions i { font-size: 16px; }
.users-list-page #openTable .dropdown-menu { min-width: 190px; padding: 5px; border: 1px solid var(--users-border); border-radius: 7px; box-shadow: 0 8px 24px rgba(37, 51, 75, .14); }
.users-list-page #openTable .dropdown-item { padding: 7px 10px; border-radius: 4px; font-size: 12px; line-height: 1.4; }
.users-list-page #openTable td[colspan] { padding: 48px 18px; color: var(--users-muted); }

.users-list-page .open--table > .card-footer {
    flex-shrink: 0;
    padding: 12px 18px !important;
    border-top: 1px solid var(--users-border);
    border-radius: 0;
}

.users-list-page .card-footer .pagination { flex-wrap: wrap; gap: 4px; margin: 0; }
.users-list-page .card-footer .page-link { padding: 5px 10px; font-size: 12px; }
.users-list-page .table-footer-with-rows { display: flex; align-items: center; gap: 18px; }
.users-list-page .table-page-size-form { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.users-list-page .table-page-size-form label { margin: 0; color: #657189; font-size: 12px; }
.users-list-page .table-page-size-form .form-select { width: 76px; height: 34px; padding: 6px 26px 6px 10px; border-color: #dce2ed; border-radius: 6px; color: #536077; font-size: 12px; }
.users-list-page .table-footer-pagination { flex: 1; min-width: 0; }

@media (max-width: 575px) {
    .users-list-header,
    .users-list-page .open--table > .card-header,
    .users-list-page .open--table > .card-footer { padding: 10px 12px !important; }
    .users-list-heading .page-title { font-size: 16px; }
    .users-list-page .table-options > div:last-child { width: 100%; }
    .users-list-page .table-options form { flex: 1; }
    .users-list-page .table-options input.form-control { width: 100%; max-width: none; }
    .users-list-page .table-footer-with-rows { gap: 12px; }
}
