/* One shared small-screen presentation for site record and comparison tables.
   Enhancement adds labels from real column headings without cloning content. */
@media screen and (max-width:1280px) {
    body .cexam-responsive-table-wrap {
        max-width:100%!important;
        min-width:0!important;
        overflow-x:visible!important;
        overflow-y:visible!important;
        white-space:normal!important;
    }
    body table.cexam-responsive-table {
        display:block!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        table-layout:auto!important;
        border-collapse:separate!important;
        border-spacing:0!important;
        margin-inline:0!important;
        direction:ltr;
    }
    body table.cexam-responsive-table > thead {
        display:block!important;
        position:absolute!important;
        width:1px!important;
        height:1px!important;
        padding:0!important;
        overflow:hidden!important;
        clip:rect(0,0,0,0)!important;
        clip-path:inset(50%)!important;
        white-space:nowrap!important;
        border:0!important;
    }
    body table.cexam-responsive-table > :is(tbody,tfoot) {
        display:block!important;
        width:100%!important;
        min-width:0!important;
    }
    body table.cexam-responsive-table > :is(tbody,tfoot) > tr:not([hidden]):not(.d-none):not([style*="display: none" i]):not([style*="display:none" i]) {
        display:block!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        height:auto!important;
        margin:0 0 16px!important;
        padding:5px 16px!important;
        border:1px solid var(--cexam-surface-border,#d2deee)!important;
        border-radius:15px!important;
        background:var(--cexam-surface-canvas,#fff)!important;
        box-shadow:none!important;
        overflow:visible;
    }
    body table.cexam-responsive-table > :is(tbody,tfoot) > tr > :is(td,th):not([hidden]):not(.d-none):not([style*="display: none" i]):not([style*="display:none" i]) {
        display:block!important;
        position:static!important;
        float:none!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        height:auto!important;
        min-height:0!important;
        padding:12px 0!important;
        border:0!important;
        border-radius:0!important;
        background:transparent!important;
        box-shadow:none!important;
        text-align:left!important;
        white-space:normal!important;
        overflow-wrap:anywhere;
        word-break:normal;
        direction:ltr;
    }
    body table.cexam-responsive-table > :is(tbody,tfoot) > tr > :is(td,th):not([hidden]):not(.d-none):not([style*="display: none" i]):not([style*="display:none" i]):not(:last-child) {
        border-bottom:1px solid var(--cexam-surface-divider,#e9edf3)!important;
    }
    body table.cexam-responsive-table > :is(tbody,tfoot) > tr[data-cexam-context]:not([data-cexam-context=""])::before {
        content:attr(data-cexam-context);
        display:block;
        grid-column:1 / -1;
        padding:12px 0;
        border-bottom:1px solid var(--cexam-surface-divider,#e9edf3);
        color:#234b77;
        font-weight:750;
        text-align:left;
        white-space:normal;
        overflow-wrap:anywhere;
    }
    body table.cexam-responsive-table > :is(tbody,tfoot) > tr > :is(td,th)::before {
        content:attr(data-cexam-label)!important;
        display:block!important;
        position:static!important;
        float:none!important;
        width:auto!important;
        margin:0 0 5px!important;
        padding:0!important;
        color:#526b89!important;
        font-family:inherit;
        font-size:11px!important;
        font-weight:750!important;
        line-height:1.5!important;
        letter-spacing:.025em;
        text-transform:none!important;
        text-align:left!important;
        white-space:normal!important;
        overflow-wrap:anywhere;
    }
    body table.cexam-responsive-table > :is(tbody,tfoot) > tr > [data-cexam-label=""]::before {display:none!important;}
    body table.cexam-responsive-table .cexam-table-record-title {color:#234b77;}
    body table.cexam-responsive-table :is(p,div,span,a,strong,small,label,code,pre) {max-width:100%;overflow-wrap:anywhere;}
    body table.cexam-responsive-table :is(form,.cexam-q-actions,.cexam-q-actions-inline,.d-flex) {min-width:0;max-width:100%;flex-wrap:wrap;}
    body table.cexam-responsive-table :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.select2-container) {min-width:0!important;max-width:100%!important;}
    body table.cexam-responsive-table :is(button,a[class*="button"],a[class*="btn"]) {max-width:100%;margin-inline:0!important;white-space:normal;overflow-wrap:anywhere;}
    body table.cexam-responsive-table > :is(tbody,tfoot) > tr > :is(td,th) > :is(button,a[class*="button"],a[class*="btn"]) {margin-block:4px!important;}
    body table.cexam-responsive-table :is(img,video,audio) {max-width:100%;}
    body table.cexam-responsive-table pre {white-space:pre-wrap;}
    body table.cexam-responsive-table :is(.cexam-your-mobile-status,.cexam-your-mobile-label) {display:none!important;}
    body table.cexam-responsive-table .cexam-your-record-id {display:block!important;}
    body .dash-data-scroll.cexam-responsive-table-wrap {max-height:none;}
    body .mg-table-wrap.cexam-responsive-table-wrap {border:0;background:transparent;}
    body table.cexam-responsive-table :is([hidden],.d-none) {display:none!important;}
    body table.cexam-responsive-table > :is(tbody,tfoot) > tr:is([style*="display: none" i],[style*="display:none" i]),
    body table.cexam-responsive-table > :is(tbody,tfoot) > tr > :is(td,th):is([style*="display: none" i],[style*="display:none" i]) {display:none!important;}
}
@media screen and (min-width:768px) and (max-width:1280px) {
    body table.cexam-responsive-table > :is(tbody,tfoot) > tr:not([hidden]):not(.d-none):not([style*="display: none" i]):not([style*="display:none" i]) {
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr));
        column-gap:22px;
    }
    body table.cexam-responsive-table .cexam-table-record-title,
    body table.cexam-responsive-table .cexam-table-full-cell {grid-column:1 / -1;}
    body table.cexam-responsive-table.cexam-key-value-table > tbody > tr {grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)!important;}
    body table.cexam-responsive-table.cexam-key-value-table .cexam-table-record-title {grid-column:auto;}
    body table.cexam-responsive-table > :is(tbody,tfoot) > tr:is([style*="display: none" i],[style*="display:none" i]) {display:none!important;}
}
