﻿

@media (min-width:1920px) {
    .table-container {
        position: relative;
        max-height: calc(1000px - 2.5em) !important;
        overflow: auto;
        border: 1px solid #E8EAED !important;
        font-size: 0.75em !important;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        padding-block: 0 !important;
    }

    thead, tfoot {
        position: sticky;
        z-index: 2;
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    thead {
        top: 0;
    }

    tfoot {
        bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    tbody tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    thead th, tfoot th, tfoot td, tbody th, tbody tr {
        font-size: 1em !important;
    }
}

@media (min-width: 1200px) and (max-width: 1920px) {

    .table-container {
        position: relative;
        max-height: calc(400px - 2.5em) !important;
        overflow: auto;
        font-size: 0.75em !important;
        border: 1px solid #E8EAED !important;
        /*font-size: 0.6em !important;*/
    }

    table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        padding-block: 0 !important;
    }

    thead, tfoot {
        position: sticky;
        z-index: 2;
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    thead {
        top: 0;
    }

    tfoot {
        bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    tbody tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    thead th, tfoot th, tfoot td, tbody th, tbody tr {
        font-size: 1em !important;
    }
}

@media (min-width: 812px) and (max-width: 1200px) {
    .table-container {
        font-size: 0.75em !important;
    }

    td, th, .badge, td > span.f-12 {
        font-size: 0.72em !important;
    }

        td > span.badge {
            padding: 2px !important;
            border-radius: 4px !important;
        }

    .thead th {
        text-overflow: ellipsis;
    }
}

@media (max-width: 812px) {
    table {
        font-size: 0.7rem !important;
    }
}
