/* Mobile presentation only; original table nodes/actions and desktop layout remain. */
.rq-mobile-table-tools { display:none; }
@media(max-width:767.98px) {
    .rq-shell .content-wrapper .card-header,.rq-shell .content-wrapper .card-header > .d-flex { flex-wrap:wrap; gap:.75rem; }
    .rq-shell .content-wrapper .card-header > .d-flex > * { min-width:0; max-width:100%; }
    .rq-shell .content-wrapper .breadcrumb { flex-wrap:wrap; overflow-wrap:anywhere; }
    .rq-shell .content-wrapper input.form-control,.rq-shell .content-wrapper select.form-select,.rq-shell .content-wrapper textarea.form-control { font-size:16px; }
    .rq-shell .content-wrapper .select2-container { max-width:100%; }
    .rq-mobile-table-host { min-width:0; max-width:100%; overflow:visible; }
    .rq-mobile-table-host .dataTables_scrollHead,.rq-mobile-table-host .dataTables_scrollFoot { display:none; }
    .rq-mobile-table-host .dataTables_scrollBody { overflow:visible !important; max-height:none !important; height:auto !important; width:100% !important; }
    .rq-mobile-table-host .dataTables_filter { text-align:left; margin:1rem 0; }
    .rq-mobile-table-host .dataTables_filter label { display:flex; flex-direction:column; align-items:stretch; gap:.4rem; width:100%; white-space:normal; }
    .rq-mobile-table-host .dataTables_filter input { width:100% !important; margin-left:0 !important; min-height:44px; }
    .rq-mobile-table-host .dataTables_length { margin:.75rem 0; width:100%; }
    .rq-mobile-table-host .dataTables_paginate { width:100%; }
    .rq-mobile-table-host .pagination { flex-wrap:wrap; justify-content:flex-start !important; gap:.25rem; }
    .rq-mobile-table-host .page-link { min-width:40px; min-height:40px; display:flex; align-items:center; justify-content:center; }
    .rq-mobile-table-tools { display:block; gap:.4rem; padding:0 0 .75rem; white-space:normal; }
    .rq-mobile-table-tools > label { display:block; font-weight:600; margin:0; }
    .rq-mobile-table-tools summary { cursor:pointer; padding:.75rem 0; }
    .rq-mobile-table-tools details label { display:block; margin:.75rem 0 .3rem; }
    .rq-mobile-table-tools select { min-height:44px; }
    .rq-mobile-table,.rq-mobile-table tbody { display:block; width:100% !important; min-width:0 !important; border:0 !important; }
    .rq-mobile-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
    .rq-mobile-table tbody > tr { display:block; margin:0 0 1rem; padding:1rem; border:1px solid #d9e3ec !important; border-radius:12px; background:#fff; }
    .rq-mobile-table tbody > tr > td { display:grid; grid-template-columns:minmax(85px,.85fr) minmax(0,1.5fr); gap:.5rem; width:auto !important; min-width:0 !important; max-width:100%; white-space:normal !important; overflow-wrap:anywhere; word-break:normal; text-align:left !important; padding:.55rem 0 !important; border:0 !important; position:static !important; box-shadow:none !important; background:transparent !important; --bs-table-accent-bg:transparent; }
    .rq-mobile-table tbody > tr > td::before { content:attr(data-mobile-label); color:#52667b; font-size:.85rem; font-weight:600; }
    .rq-mobile-table tbody > tr > td.rq-cell-title { display:block; font-weight:650; font-size:1rem; padding:0 0 .75rem !important; border-bottom:1px solid #e2e8f0 !important; margin-bottom:.25rem; }
    .rq-mobile-table tbody > tr > td.rq-cell-number { display:none !important; }
    .rq-mobile-table tbody > tr > td.rq-cell-actions,.rq-mobile-table tbody > tr > td.rq-cell-empty { display:block; }
    .rq-mobile-table td.rq-cell-title::before,.rq-mobile-table td.rq-cell-actions::before,.rq-mobile-table td.rq-cell-empty::before { display:none; }
    .rq-mobile-table td.d-none.d-md-table-cell { display:grid !important; }
    .rq-mobile-table td > * { min-width:0; max-width:100%; }
    .rq-mobile-table .badge { white-space:normal; line-height:1.4; justify-self:start; }
    .rq-mobile-table .btn-group,.rq-mobile-table .rq-cell-actions > .d-flex { display:flex; flex-wrap:wrap; justify-content:flex-start !important; gap:.5rem; }
    .rq-mobile-table .btn { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; min-height:44px; min-width:44px; white-space:normal; margin:0 !important; border-radius:6px !important; }
    .rq-mobile-table .btn[data-mobile-action]::after { content:attr(data-mobile-action); }
    .rq-mobile-table .am-trend-badge { max-width:100%; white-space:normal; }
    .dark-style .rq-mobile-table tbody > tr { background:#233449; border-color:#415269 !important; }
    .dark-style .rq-mobile-table tbody > tr > td { color:#e5edf6; }
    .dark-style .rq-mobile-table tbody > tr > td::before { color:#c3d0dd; }
    .dark-style .rq-mobile-table td.rq-cell-title { border-bottom-color:#415269 !important; }
}
@media(max-width:767.98px) {
    .rq-mobile-keyvalues { width:100% !important; table-layout:fixed; }
    .rq-mobile-keyvalues thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
    .rq-mobile-keyvalues tbody tr { display:block; padding:.5rem; }
    .rq-mobile-keyvalues tbody td { display:block; width:100% !important; min-width:0 !important; white-space:normal !important; overflow-wrap:anywhere; }
    .rq-mobile-keyvalues tbody td:first-child { font-weight:600; padding-bottom:.25rem; }
    .rq-mobile-keyvalues input,.rq-mobile-keyvalues code { max-width:100%; overflow-wrap:anywhere; }
}

@media(max-width:767.98px) {
    .rq-mobile-table td.rq-cell-actions .btn-group,.rq-mobile-table td.rq-cell-actions > .d-flex { width:100% !important; min-width:0; flex-wrap:wrap !important; }
    .rq-mobile-table td.rq-cell-actions .btn-group > .btn { flex:1 1 120px !important; max-width:100% !important; white-space:normal !important; }
    .rq-mobile-table .btn[data-mobile-action]::after { min-width:0; white-space:normal; overflow-wrap:normal; }
}

@media(max-width:767.98px) {
    #assessment-table .am-action-btns { display:flex; width:100%; flex-wrap:wrap; justify-content:flex-start; gap:.5rem; }
    #assessment-table .am-action-btns .btn { width:auto; height:auto; flex:1 1 120px; padding:.6rem; min-height:44px; }
}
