/* Companion styles for static/common/dax_tables.js */

/* Fallback for tables DataTables can't model (colspan rows, nested tables). */
.dax-table-scroll {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.dataTable.dax-datatable {
    width: 100% !important;
    margin-top: 0 !important;
}

/* Keep the controls row tidy on phones. */
@media (max-width: 767.98px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: left !important;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
    }
    .dataTables_wrapper .dataTables_paginate .pagination {
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }
}

/* Child-row list produced by Responsive. */
table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%;
}
table.dataTable > tbody > tr.child span.dtr-title {
    min-width: 110px;
    font-weight: 600;
}

/* Print every column, never the collapsed layout. */
@media print {
    table.dataTable > thead > tr > th,
    table.dataTable > tbody > tr > td,
    table.dataTable > tfoot > tr > th,
    table.dataTable > tfoot > tr > td {
        display: table-cell !important;
    }
    table.dataTable > tbody > tr.child { display: none !important; }
    table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
    table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before { display: none !important; }
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_paginate { display: none !important; }
}
