﻿/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {

    /* Force table to not be like tables anymore */
    #tblAppList table,
    #tblAppList thead,
    #tblAppList tbody,
    #tblAppList th,
    #tblAppList td,
    #tblAppList tr {
        display: block;
    }

        /* Hide table headers (but not display: none;, for accessibility) */
        #tblAppList thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

    /*.table-striped > tbody > tr:nth-of-type(odd) {
        background: rgba(0, 0, 0, 0.05);
    }

    .table-striped > tbody > tr:nth-of-type(even) {
        background: transparent;
    }*/

    #tblAppList tr {
        border: 1px solid #ccc;
    }

    #tblAppList td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 40% !important;
        white-space: normal;
        text-align: left !important;
    }

        #tblAppList td br {
            display: none;
        }

        #tblAppList td:before {
            /* Now like a table header */
            position: absolute;
            /* Top/left values mimic padding */
            /* top: 6px;*/
            left: 6px;
            width: 40%;
            padding-right: 10px;
            white-space: nowrap;
            text-align: left;
            font-weight: bold;
            /*	Label the data	*/
            content: attr(data-title);
        }

        #tblAppList td.xtra-pt:before {
            /* Extra padding-top in certain conditions */
            top: 12px;
        }

        #tblAppList td:after {
            /* Now like a table header */
            position: absolute;
            /* Top/left values mimic padding */
            /* top: 6px;*/
            left: 45px;
            width: 55%;
        }

    div.dataTables_wrapper div.dataTables_filter {
        text-align: left;
        margin-left: -12px;
    }

    div.dataTables_wrapper div.dataTables_length {
        text-align: left;
    }

    .no-more-tables-hidden_td-xs {
        display: block !important;
    }

    .no-more-tables-hidden_td-sm {
        display: block !important;
    }

    .no-more-tables-hidden_td-m {
        display: block !important;
    }

    .container-narrowmargin {
        padding-right: var(--bs-gutter-x, .75rem) !important;
        padding-left: var(--bs-gutter-x, .75rem) !important;
    }

    .pt-3 {
        padding-top: 8px !important;
    }
}

@media only screen and (max-width: 360px) {
    div.dataTables_filter > input {
        width: 150px !important;
    }
}

@media only screen and (max-width: 440px) {
    .ColVis {
        display: block !important;
    }
}


@media only screen and (max-width: 767px) {
    .show-xs {
        display: block !important;
    }

    .hidden-xs {
        display: none !important;
    }

    .fixedHeader-floating {
        display: none !important;
    }
}

@media only screen and (max-width: 991px) {
    .no-more-tables-hidden_td-sm {
        display: none;
    }

    div.dataTables_filter > label {
        /*float: none !important;*/
    }

    div.dataTables_filter > input {
        float: right !important;
        width: 220px;
    }

    #no-more-tables_length label > select {
        width: 60px;
    }

    #no-more-tables_length label > span {
        display: none;
    }

    td > .checkbox label, td > .radio label {
        padding-left: 0 !important;
    }
}

@media only screen and (max-width: 1199px) {
    .no-more-tables-hidden_td-m {
        display: none;
    }

    .ColVis {
        display: none;
    }
}

@media only screen and (max-width:480px) {
    .dataTables_info {
        text-align: center;
    }

    .dataTables_paginate {
        float: none !important;
        text-align: center;
    }
}

@media only screen and (min-width:768px) {
    .dataTables_info {
        float: left;
    }

    .hidden-xs {
        display: block !important;
    }

    .show-xs {
        display: none;
    }
}
