﻿
.table-response {
}

    .table-response thead th {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 10px;
        font-family: inherit;
        font-weight: 500;
        line-height: 1.1;
        color: #ffffff;
        border-color: #ffffff !important;
        background-color: #181f4c !important;
    }

    .table-response th {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 10px;
        font-family: inherit;
        font-weight: 500;
        line-height: 1.1;
        color: #ffffff;
        border-color: #ffffff !important;
        background-color: #181f4c !important;
    }

.table-response-border {
    border-color: #181f4c;
    border-style: solid;
    border-width: 2px;
}

.table-response-cellborder {
    border-left-color: #181f4c;
    border-left-style: solid;
    border-left-width: 1px;
    border-right-color: #181f4c;
    border-right-style: solid;
    border-right-width: 1px;
}

.td-subhead {
    font-weight: bold;
}

@media print {

    .table-response {
        width: 100% !important;
        table-layout: auto;
    }

    td {
        white-space: nowrap; /* Prevents text from wrapping, forcing the cell to expand */
    }

    thead {
        display: table-row-group;
    }
    /* Optional: Prevent individual rows from splitting across pages */
    tr {
        page-break-inside: avoid;
        break-inside: avoid;
        -webkit-column-break-inside: avoid; 
    }
        tr.header-row {
            break-before: page;
        }
    th {
        /* This creates a "fake" margin using a thick transparent border */
        border-top: 20px solid white;
        background-clip: padding-box; /* This keeps the blue color inside the padding, not the border */
        background-color: #1a237e;
        color: white;
        padding: 10px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Striped row color — apply print-color-adjust only here, not globally */
    .table-striped > tbody > tr:nth-of-type(odd) > td,
    .table-striped > tbody > tr:nth-of-type(odd) > th {
        background-color: #d6e4f0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}