



    .cal-header {
        background: #888;
        font-size: 1.2rem;
        font-weight: 500;
        padding-left: 1rem;
        padding-right: 1rem;

        div:nth-child(1) {
            padding: 0.5rem;
            color: white;
        }

        div {
            width: auto;
        }

        .dash-panel-ctrls {
            display: none;
        }
    }

    .cal-date {
        .boatcal-boat-row:nth-child(10n+3) {
            background: #fff3cd;
        }
        /* soft yellow */
        .boatcal-boat-row:nth-child(10n+4) {
            background: #e2f0cb;
        }
        /* soft lime */
        .boatcal-boat-row:nth-child(10n+5) {
            background: #d1f2eb;
        }
        /* soft teal */
        .boatcal-boat-row:nth-child(10n+6) {
            background: #d6eaf8;
        }
        /* soft blue */
        .boatcal-boat-row:nth-child(10n+7) {
            background: #e8daef;
        }
        /* soft purple */
        .boatcal-boat-row:nth-child(10n+8) {
            background: #f5eef8;
        }
        /* very light violet */
        .boatcal-boat-row:nth-child(10n+9) {
            background: #f4f6f6;
        }
        /* cool grey */
        .boatcal-boat-row:nth-child(10n+10) {
            background: #eaf2f8;
        }
        /* blue-grey */
        .boatcal-boat-row:nth-child(10n+11) {
            background: #f8d7da;
        }
        /* soft red */
        .boatcal-boat-row:nth-child(10n+12) {
            background: #fde2cc;
        }
        /* soft orange */
    }

    .boatcal-times-container {
        font-weight: 500;
        font-size: 0.7rem;
    }

    .card > .cal-header {
        margin: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;

        .dash-panel-ctrls {
            margin-top: auto;
            margin-bottom: auto;
            display: block;
            float: none;
        }
    }

    .card .cal-body {
        height: calc(100% - 48px);
        overflow-y: scroll;

        .boatcal-boat-label {
            display: flex;
            font-size: 0.7rem;
            font-weight: 500;
            text-align: right;
            justify-content: flex-end;

            span {
                display: flex;
                word-wrap: break-word;
            }
        }
    }

    .cal-grid {
        display: grid;
        grid-template-columns: 4rem auto;
    }

    .cal-times {
        height: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        background-color: honeydew;

        > div {
            position: relative;
        }
    }

    /* Full-screen calendar page (rental/calendar). Runs edge to edge: cancel the page container's side padding. */
    .cal-full {
        display: block;
        margin-left: calc(var(--bs-gutter-x, 1.5rem) * -.5);
        margin-right: calc(var(--bs-gutter-x, 1.5rem) * -.5);
    }

    .boatcal-options {
        padding: 3px 1rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        /* Positioned so the boat list opens above the calendar rows, but kept below the menu dropdowns
           (Bootstrap uses 1000) so the main menu is never covered by this bar */
        position: relative;
        z-index: 990;


        > div {
            margin: 0 4px;
        }
    }

    /* Boat picker (Choices.js). As a flex item it shrink-wrapped to about 100px, so boat names wrapped one letter
       per line. Give it a proper width, left-align the list, keep it above the calendar, and give the dates room. */
    .boatcal-options > div:first-child {
        flex: 1 1 220px;
        min-width: 200px;
        max-width: 300px;
    }

    .boatcal-options .choices {
        margin-bottom: 0;
        text-align: left;
    }

    .boatcal-options .choices__inner {
        min-height: 38px;
        padding: 4px 8px;
        font-size: 1rem;
    }

    .boatcal-options .choices__list--dropdown {
        z-index: 10000;
        min-width: 260px;
    }

    .boatcal-options .choices__list--dropdown .choices__item {
        word-break: normal;
    }

    .boatcal-options .input-group .form-control {
        width: 7.5rem !important;
    }

    @media(max-width:500px) {
        .boatcal-options {
            display: grid;
            grid-template-columns: auto 30px auto;
            grid-row-gap: 5px;

            > div:nth-child(1), > div:nth-child(5) {
                grid-column: 1 / span 3;
                max-width: none;
            }

            > div {
                text-align: center;
            }

                > div:nth-child(5) {
                    a, span {
                        display: block;
                        width: 100%;
                    }
                }
        }
    }

    .cal-to-label {
        font-weight: 500;
    }
