﻿.ondemandGrid {
    width: 100%;
    display: grid;
    grid-template-columns: 100px 100px 1fr 100px 1fr;
    grid-auto-rows: 40px;
    border: 1px solid #ccc;
    border-left: none;
    border-top: none;
}

    .ondemandGrid > * {
        border: 1px solid #ccc;
        border-right: none;
        border-bottom: none;
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
        align-items: flex-start;
        padding-left: 15px;
    }

    .ondemandGrid .hdr {
        background-color: #ECECEC;
        font-weight: bold;
        align-items: center;
        padding: 0;
    }

        .ondemandGrid .hdr span {
            margin-top: 5px;
            font-weight: normal;
            font-size: 85%;
        }

    .ondemandGrid .subHdr {
        background-color: #F6F6F6;
        font-weight: bold;
        align-items: center;
        padding: 0;
    }

    .ondemandGrid .colspan2 {
        grid-column: 2 / 4;
    }

@media (max-width: 1000px) {
    .ondemand .kind {
        margin: 5px 0px;
    }

    .ondemand .kind h2 {
        margin-bottom: 5px;
    }

    .ondemand p {
        margin: 5px;
    }

    p, .notes {
        font-size: 1.2rem !important;
    }

    .notes {
        margin-top: 0px !important;
    }

    .ondemandGrid {
        display: flex;
        flex-flow: row wrap;
        border: none;
        padding: 0px 10px;
    }

        .ondemandGrid > div {
            border-bottom: 1px solid gray;
        }

        .ondemandGrid > * {
            align-items: flex-start !important;
            font-size: 1.5rem;
            width: 100%;
            border: none;
            background-color: white !important;
            flex-flow: row nowrap;
            align-items: center;
            justify-content: flex-start;
            padding-left: 2rem;
        }

            .ondemandGrid > *:last-child {
                margin-bottom: 10px;
            }

        .ondemandGrid .hdr {
            margin-top: 10px;
            font-weight: normal;
            opacity: 0.8;
            border: none;
        }

        .ondemandGrid .subHdr {
            width: auto;
            padding-left: 2rem;
            font-weight: normal;
            opacity: 0.8;
        }

            .ondemandGrid .subHdr + div {
                width: auto;
                flex-grow: 1;
            }

}
