@media only screen and (max-width: 800px) {
    /* Force table to not be like tables anymore.. */
    #no-more-tables table,
    #no-more-tables thead,
    #no-more-tables tbody,
    #no-more-tables th,
    #no-more-tables td,
    #no-more-tables tr {
        display: block;
        box-sizing: border-box;
    }

        /* Hide table headers (but not display: none;, for accessibility) */
        #no-more-tables thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

    #no-more-tables tr {
        border: 1px solid #ccc;
        border-bottom-color: rgba(71, 95, 123, 0.70);
    }

        #no-more-tables tr:last-child {
            border-bottom-color: #ccc;
        }

    #no-more-tables td {
        /* Behave like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        white-space: normal;
    }

        #no-more-tables td:last-child {
            padding-left: 1.5em;
            text-align: center;
        }

        #no-more-tables td:before {
            /* Now like a table header */
            position: absolute;
            /* Top/left values mimic padding */
            top: 6px;
            left: 17px;
            width: 42%;
            padding-right: 10px;
            white-space: nowrap;
            text-align: left;
            font-weight: bold;
            text-wrap: wrap;
            margin-top: 0.4em;
            color: var(--accent-color);
        }

        /*
    Label the data
    */
        #no-more-tables td:before {
            content: attr(data-title);
        }

        #no-more-tables td:last-child:before {
            content: none;
        }

       /* #no-more-tables td:first-child:before {
            content: none;
        }*/

    #no-more-tables #gridtable-occupancy td:last-child {
        padding-left: 50%;
        text-align: unset;
    }

        #no-more-tables #gridtable-occupancy td:last-child:before {
            content: attr(data-title);
        }


    #no-more-tables #tblMeterRecord td:last-child:before, #no-more-tables #tblMeterRecord td:first-child:before,
    #no-more-tables #gridtable-meterrecord td:last-child:before, #no-more-tables #gridtable-meterrecord td:first-child:before, #no-more-tables #gridtable-occupancy td:first-child:before {
        content: attr(data-title);
    }

    #no-more-tables #tblMeterRecord td:last-child, #no-more-tables #gridtable-meterrecord td:last-child {
        text-align: unset;
        padding-left: 50%;
    }

    tbody tr:nth-child(odd) td {
        background-color: rgba(229, 231, 235, 0.46);
        border-bottom: 1px solid #fff !important;
    }

        tbody tr:nth-child(odd) td:last-child {
            border: none !important;
        }

    thead.cf {
        height: 0 !important;
    }

    .gridjs-td button {
        margin: 0 .3em 0 .3em;
    }
}

td {
    width: auto !important;
    min-width: unset;
    min-height: 3.07em;
}

.gridjs-tr .gridjs-th {
    font-size: 16px;
    background-color: transparent;
}

td.gridjs-td {
    padding: 0;
}

tbody tr:nth-child(odd) td {
    background-color: rgba(0, 0, 0, 0.05);
}

.gridjs-th-content {
    text-transform: uppercase;
}

.gridjs-pages button:not(.gridjs-currentPage) {
    color: #324356 !important;
    font-weight: 600;
}

.gridjs-pages button:not(.gridjs-spread):not(.gridjs-currentPage):hover {
    color: #324356 !important;
    border-radius: 0.267rem;
    background-color: rgba(90, 141, 238, 0.2) !important;
}

.gridjs-currentPage {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--font-color-light) !important;
}

#gridtable-meterrecord th.gridjs-th {
    min-width: 10em !important;
    width: 10em !important;
}

th.gridjs-th {
    /*min-width: 12.9em !important;
    width: 12.9em !important;*/
}

    th.gridjs-th:first-child {
        min-width: 14em !important;
        width: 14em !important;
    }

    th.gridjs-th:last-child {
        min-width: 9em !important;
        width: 9em !important;
    }

/*th.gridjs-th:nth-of-type(n+2):nth-of-type(-n+8) {
        min-width: 10em !important;
        width: 10em !important;
    }*/

#gridtable-occupancy th.gridjs-th {
    min-width: 9em !important;
    width: 9em !important;
}

    #gridtable-occupancy th.gridjs-th:first-child {
        min-width: 15em !important;
        width: 15em !important;
    }

tr.gridjs-tr.meter th, tr.gridjs-tr.meterRecord th {
    min-width: 10em !important;
    width: 10em !important;
}

    tr.gridjs-tr.meter th:first-child {
        min-width: 7em !important;
        width: 7em !important;
    }

    tr.gridjs-tr.meter th.gridjs-th:nth-of-type(n+2):nth-of-type(-n+8) {
        min-width: 10em;
        width: 10em;
    }

    tr.gridjs-tr.meter th:nth-of-type(2), tr.gridjs-tr.meter th:nth-of-type(5), tr.gridjs-tr.meter th:nth-of-type(8),
    tr.gridjs-tr.meterRecord th:nth-of-type(4), tr.gridjs-tr.meterRecord th:nth-of-type(7), tr.gridjs-tr.meterRecord th:nth-of-type(n+12):nth-last-of-type(n+3) {
        min-width: 15em !important;
        width: 15em !important;
    }

@media only screen and (max-width: 309px) {
    #no-more-tables #gridtable td:nth-last-child(4), #no-more-tables #gridtable td:nth-last-child(3) {
        height: 4.5em;
    }
}

/*Styling for Bootstrap-table*/
th.bootstrapTable-th {
    padding: 12px 24px !important;
}

.bootstrap-table .fixed-table-container .table thead th .th-inner {
    padding: 0 !important;
}

tr.bootstrapTable-tr.meter th:nth-of-type(2), tr.bootstrapTable-tr.meter th:nth-of-type(6), tr.bootstrapTable-tr.meter th:nth-of-type(9), tr.bootstrapTable-tr.meterRecord th:nth-of-type(4), tr.bootstrapTable-tr.meterRecord th:nth-of-type(7), tr.bootstrapTable-tr.meterRecord th:nth-of-type(n+12):nth-last-of-type(n+3) {
    min-width: 15em !important;
    width: 15em !important;
}

tr.bootstrapTable-tr.meter th, tr.bootstrapTable-tr.meterRecord th {
    min-width: 10em !important;
    width: 10em !important;
}

tr.bootstrapTable-tr.meter th:first-child {
    min-width: 7em !important;
    width: 7em !important;
}

/*tr.bootstrapTable-tr.meter th.bootstrapTable-th:nth-of-type(n+2):nth-of-type(-n+8) {
    min-width: 10em !important;
    width: 10em !important;
}*/

td.bootstrapTable-td {
    border: 1px solid #e5e7eb !important;
    box-sizing: content-box !important;
    padding: 12px 24px !important;
}

.bootstrapTable-tr .bootstrapTable-th {
    font-size: 16px;
    background-color: transparent;
}

.modal-popup-content > .float-right.pagination {
    color:red;
}

.bootstrapTable-wrapper {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-color: #e5e7eb;
    border-radius: 8px 8px 0 0;
    border-top-width: 1px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
    display: block;
    overflow: auto;
    position: relative;
    width: 100%;
    z-index: 1
}

.bootstrapTable-wrapper:nth-last-of-type(2) {
    border-bottom-width: 1px;
    border-radius: 8px
}

@media only screen and (max-width: 800px) {
    td.bootstrapTable-td {
        border: none !important;
        border-bottom: 1px solid #eee !important;
        position: relative !important;
        padding-left: 50% !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }

    td.bootstrapTable-td:last-child {
        padding-left: 1.5em !important;
        text-align: center;
    }
}