﻿table.tableGrid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    border: 1px solid #eee;
}

.tableGrid th {
    color: #fff;
    background-color: #bd172d;
    font-weight: 600;
}

.tableGrid td, .tableGrid th {
    padding: 6px;
    border: 1px solid #ccc;
    text-align: left;
}

th.header {
    cursor: pointer;
    padding-right: 20px;
    padding-left: 8px;
}

th.headerSortDown::after {
    position: absolute;
    margin-left: 5px;
    content: '\25B2';
}

th.headerSortUp::after {
    position: absolute;
    margin-left: 5px;
    content: '\25BC';
}

th.center {
    text-align: center;
    padding-left: 20px;
}

td.center {
    text-align: center;
}

@media (max-width: 900px) {
    /* Force table to not be like tables anymore */
    table.tableGrid, .tableGrid thead, .tableGrid tbody, .tableGrid th, .tableGrid td, .tableGrid tr {
        display: block;
        border: none;
    }

        /* Hide table headers (but not display: none;, for accessibility) */
        .tableGrid thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
            border: none;
        }

    .tableGrid tbody tr {
        padding: 1em;
    }

    .tableGrid td {
        text-align: left;
        padding: 0;
    }

    .tableGrid td:before {
        display: inline-block;
        padding-right: 0.5rem;
    }

    .timetable-button-padding {
        margin: 20px 0 6px 0;
    }
}

@media only screen and (min-width: 500px) and (max-width: 700px) {
    .tableGrid thead {
        display: table-header-group;
    }
}

@media (max-width: 900px) {
    td:before {
        content: attr(data-title);
    }
}
