html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin-bottom: 60px;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1em;
}

header .dropdown-menu {
    z-index: 10000;
}

.dropdown-menu {
    padding: .5em;
}

.link-hover:active:hover {
    color: white !important;
}

.edit:hover {
    cursor: pointer;
}

.form-label.required:after {
    content: " *";
    color: red;
}

.view-action:hover,
.edit-action:hover,
.detail-action:hover,
.delete-action:hover,
.clickable-row {
    cursor: pointer;
}

.overlay {
    background-color: rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .overlay > .spinner-border {
        width: 6rem;
        height: 6rem;
    }

.btn-outline-secondary:hover {
    color: #fff !important;
    text-decoration: none;
}

.load-assist-filter-header {
    border-right: 1px solid;
    width: 10%;
    text-align: center;
    vertical-align: middle;
}

.load-assist-top-row {
    border-right: 1px solid;
}

.toast-bottom-right {
    bottom: 4.75em;
    right: 1em;
}

.filter-dropdown {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.chips {
    display: inline-flex;
}

    .chips span {
        margin: 2px 0;
        margin-right: .5em;
    }

    .chips[readonly] span {
        opacity: 0.5;
    }

    .chips span > .btn-close {
        margin-left: 0.5em;
        width: 8px;
        height: 8px;
    }

    .chips:focus-within {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

    .chips input {
        border: none;
        appearance: none;
        flex: 1 1 auto;
        background-color: inherit;
    }

        .chips input:focus {
            outline: none;
        }

        .chips input:disabled {
            background: inherit !important;
        }

.validate-hidden,
.field-validation-valid {
    display: block;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.separator {
    display: flex;
    font-size: smaller;
    align-items: center;
    text-align: center;
    margin: .75em 0;
    color: #BBB;
}

    .separator::before,
    .separator::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #CCC;
    }

    .separator:not(:empty)::before {
        margin-right: .5em;
    }

    .separator:not(:empty)::after {
        margin-left: .5em;
    }

.leaflet-control-custom-light {
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
    background-color: #FFF;
    border-radius: 5px;
    padding: .75em;
}

.leaflet-control-custom-dark {
    border: 2px solid rgba(255, 255, 255, 0.4);
    background-clip: padding-box;
    background-color: #212429;
    border-radius: 5px;
    padding: .75em;
}

.leaflet-control-layers-dark,
.leaflet-control-zoom-in-dark,
.leaflet-control-zoom-out-dark,
.leaflet-control-attribution-dark {
    background-color: #212429 !important;
    color: #dfe2e7 !important;
}

.leaflet-control-layers-dark,
.leaflet-bar-dark {
    border: solid 2px rgba(255, 255, 255, 0.4) !important;
}

.legend-item {
    display: flex;
    align-items: center;
}

    .legend-item > span {
        display: inline-block;
        width: 15px;
        height: 15px;
        margin-right: 1em;
    }

/* Reduced form size for schedules and my journeys accordion content. */
.compact-form input[type=text],
.compact-form textarea {
    padding: 1px;
    margin-bottom: 0px;
    margin-top: 0px;
    font-size: 13px;
}

.compact-form .col-form-label {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    font-size: 13px;
}

/* Styling for the lowest value in a clearance checker result. */
.cc-lowest {
    font-weight: 700;
}

/* Slight modification to the look of accordions to work better when hidden. */

.accordion-item {
    margin-bottom: 1em;
    border: 1px solid rgba(0, 0, 0, .125) !important;
    border-radius: .25rem !important;
}

    .accordion-item:not(:last-child) {
        margin-bottom: 1em;
    }

.accordion-button {
    border-top-left-radius: .25rem !important;
    border-top-right-radius: .25rem !important;
}

    .accordion-button.collapsed {
        border-bottom-left-radius: .25rem !important;
        border-bottom-right-radius: .25rem !important;
    }

    .accordion-button > span {
        margin-left: .5em;
    }

        .accordion-button > span:first-child {
            margin-left: auto;
        }

/* Set a base z-index for modal backdrops. Part of fix for stacking multiple modals on top of one another. */
.modal-backdrop + .modal-backdrop {
    z-index: 1060;
    opacity: .25;
}

/* Generic styling for leaflet popups. */
.leaflet-popup-content {
    margin: .5em 1.5em .5em .5em;
    font-size: 12px;
}

    .leaflet-popup-content .leaflet-popup-content-group {
        display: flex;
        width: 100%;
    }

        .leaflet-popup-content .leaflet-popup-content-group > * {
            flex: 1 1 auto;
        }

    .leaflet-popup-content button {
        text-decoration: none !important;
        font-size: 12px !important;
        text-align: left;
        padding: 0;
    }

        .leaflet-popup-content button:not(:last-child) {
            margin-right: 1em;
        }

/* For setting modal content heights. */
.modal-mch {
    max-height: 65vh;
}

.modal-ch {
    min-height: 65vh;
}

.modal-c-grow {
    flex: 1 1 auto;
    padding: .25em;
    padding-right: 1em;
    overflow-y: scroll;
}

.modal-c-builder-form {
    flex: 0 0 auto;
    padding: .25em;
    padding-right: 1em;
    overflow-y: scroll;
    max-height: 25vh;
}

.lb-border {
    border-right: thin solid;
    border-left: thin solid;
    border-collapse: collapse;
    border-color: lightgray;
}

.supporting-file-download {
    cursor: pointer;
    text-decoration: none;
    font-style: normal;
}

.dt-action-link {
    width: 5%;
}

.btn-jv {
    --bs-btn-hover-bg: rgba(128, 128, 128, 0.7);
}

    btn-jv:focus, .btn-jv:active {
        outline: none !important;
        box-shadow: none;
    }

.btn-map {
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
    background-color: #FFF;
    color: #111;
    border-radius: 5px;
    padding: .75em;
    width: 47px;
    height: 47px;
}

    .btn-map:focus, btn-map:active, btn-map:hover {
        outline: none !important;
        box-shadow: none !important;
    }

.btn-map-dark {
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    background-color: #212429 !important;
    color: #CFD3D6 !important;
}

.spinner-center {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.load-assist-readonly-cell {
    background-color: var(--bs-secondary-bg);
    opacity: 1;
}

.dropdown-menu-scrollable {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

    /* Style the scrollbar for better appearance */
    .dropdown-menu-scrollable::-webkit-scrollbar {
        width: 6px;
    }

    .dropdown-menu-scrollable::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .dropdown-menu-scrollable::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

        .dropdown-menu-scrollable::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

.cursor-pointer {
    cursor: pointer;
}

.lor-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.chevron {
    transition: transform 0.2s;
}