/* Native table scrolling preserves the same column grid for filters, headings and rows. */
.rq-shell .rq-table-layout { min-width: 0; max-width: 100%; }
.rq-shell .rq-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin: 1rem 0; }
.rq-shell .rq-stable-table { width: 100% !important; margin: 0 !important; }
.rq-shell .rq-stable-table :is(th,td) { vertical-align: middle; }
.rq-shell .rq-stable-table thead input { min-width: 6rem; width: 100%; padding-inline: .65rem; font-size: .875rem; }
.rq-shell .rq-stable-table .rq-table-actions { min-width: 10rem; white-space: nowrap; }
.rq-shell .rq-stable-table .rq-table-actions :is(.btn-group,.d-flex) { flex-wrap: nowrap; }
.rq-shell .rq-table-layout > .row { row-gap: .75rem; align-items: center; margin-inline: 0; }
.rq-shell .rq-table-layout .dataTables_filter input { max-width: 100%; }
.rq-shell .card-header > .d-flex { gap: .75rem; flex-wrap: wrap; align-items: center; }
.rq-shell .card-header > .d-flex > .d-flex { gap: .25rem; flex-wrap: wrap; }
.rq-shell .rq-table-scroll:focus-visible { outline: 3px solid var(--rq-focus, #187b71); outline-offset: 3px; }
@media (max-width: 767.98px) {
    .rq-shell .rq-mobile-table thead { contain: strict; }
    .rq-shell .rq-table-scroll:has(.rq-mobile-table) { overflow: visible; margin: .75rem 0; }
    .rq-shell .rq-stable-table .rq-table-actions { min-width: 0; white-space: normal; }
    .rq-shell .rq-table-layout .pagination { flex-wrap: wrap; gap: .25rem; justify-content: flex-start; }
    .rq-shell .rq-table-layout .dataTables_length { white-space: normal; }
}
/* Account fields share the available desktop width; long names/emails wrap within their own cells. */
@media (min-width: 768px) {
    .rq-shell :is(#user-master-table,#user-table) { table-layout: fixed; min-width: 76rem; }
    .rq-shell :is(#user-master-table,#user-table) :is(th,td) { padding-inline: .65rem; box-sizing: border-box !important; }
    .rq-shell :is(#user-master-table,#user-table) td { white-space: normal; overflow-wrap: anywhere; }
    .rq-shell :is(#user-master-table,#user-table) thead input { min-width: 0; }
    .rq-shell :is(#user-master-table,#user-table) th:nth-child(1) { width: 3rem !important; }
    .rq-shell :is(#user-master-table,#user-table) th:nth-child(2) { width: 9rem !important; }
    .rq-shell :is(#user-master-table,#user-table) th:nth-child(3) { width: 14rem !important; }
    .rq-shell :is(#user-master-table,#user-table) th:nth-child(4) { width: 10rem !important; }
    .rq-shell :is(#user-master-table,#user-table) th:nth-child(5),
    .rq-shell :is(#user-master-table,#user-table) th:nth-child(6),
    .rq-shell :is(#user-master-table,#user-table) th:nth-child(7) { width: 8rem !important; }
    .rq-shell :is(#user-master-table,#user-table) th:nth-child(8) { width: 6rem !important; }
    .rq-shell :is(#user-master-table,#user-table) th:nth-child(9) { width: 10rem !important; }
}
