﻿.lastupdatedtext {
    font-size: 12px !important;
}

.alert-modal > .modal-dialog {
    max-width: 100% !important;
    width: 800px !important;
}

.modal-header {
    background: #1D2856 !important;
}
.chart-js-canvas {
    width: 100% !important;
}
.chart-js-canvas-holder {
    width: 100% !important;
}
.modal-header > h5 {
    color: white !important;
}

.esri-search__submit-button {
    border-radius: 50px !important;
}

.esri-search, .esri-search__container, .esri-search__input-container, .esri-search__form, .esri-input, .esri-search__input {
    border-radius: 50px !important;
}

.esri-search__container {
    border-radius: 50px !important;
}

.routingPane {
    border-radius: 50px !important;
}

.view-height {
    height: calc(100vh - 50px);
}
#main_ActiveElectionList {
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    background-color: transparent;
    padding: 4px 0;
    text-align: center; /* centers the displayed value */
    margin: 0;
    outline: none;
    cursor: pointer;
    /*box-shadow: 0 1px 10px #DEBC73;*/
}

select#main_ActiveElectionList:focus {
    box-shadow: 0 1px 10px #1d2856;
}

select#main_ActiveElectionList {
    -webkit-appearance: none;
    -moz-appearance: none;
    background-size: 14px;
    padding-right: 2rem;
    border-radius: 4px;
    margin-bottom: 5px;
    background-size: 24px 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3ccircle cx='12' cy='12' r='11' fill='%231d2856' stroke='%23ccc' stroke-width='2'/%3e%3cpath d='M8 10l4 4 4-4' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
}

.round-form {
    border-bottom-left-radius: 50px !important;
    border-top-left-radius: 50px !important;
    height: 40px !important;
}

.round-button {
    padding: 2px 24px; /* Top/Bottom, Left/Right padding */
    border-radius: 999px; /* Creates fully rounded edges */
    border: none;
}

#toc-items {
    background: lightgrey;
}

.esri-view .esri-view-surface--touch-none:focus::after {
    outline: none !important;
}

‍‍‍
.routingOptions {
    background: white;
    height: 60px;
    width: 100%;
}

.routingButton {
    height: 100%;
    width: 100%;
    text-align: center;
    margin: 0;
    vertical-align: middle;
    line-height: 60px;
}

    .routingButton.active {
        background-color: grey;
        color: white;
    }


.routingPane {
    width: 100%;
}

.imagelogo {
    height: 40px;
    width: 40px;
    margin-left: 11px;
    image-rendering: auto;
}

.no-margin {
    margin: 0px !important
}
.esri-attribution__sources, esri-attribution__powered-by {
    display: none !important;
}

.esri-attribution__powered-by {
    display: none !important;
}
.wait-time-red {
    background-image: url(../images/TimeIconRed.png);
    background-position: center;
    background-repeat: no-repeat;
    height: 70px;
    background-size: contain;
    /* display: table-cell; */
    top: 0px;
    line-height: 100%;
    text-align: center;
    display: flex;
    font-weight: 600;
    justify-content: center;
    align-items: center;
}

.wait-time-gray {
    background-image: url(../images/TimeIconGray.png);
    background-position: center;
    background-repeat: no-repeat;
    height: 70px;
    background-size: contain;
    /* display: table-cell; */
    top: 0px;
    line-height: 100%;
    text-align: center;
    display: flex;
    font-weight: 600;
    justify-content: center;
    align-items: center;
}

.wait-time-orange {
    background-image: url(../images/TimeIconOrange.png);
    background-position: center;
    background-repeat: no-repeat;
    height: 70px;
    background-size: contain;
    /* display: table-cell; */
    top: 0px;
    line-height: 100%;
    text-align: center;
    display: flex;
    font-weight: 600;
    justify-content: center;
    align-items: center;
}

.wait-time-yellow {
    background-image: url(../images/TimeIconYellow.png);
    background-position: center;
    background-repeat: no-repeat;
    height: 70px;
    background-size: contain;
    /* display: table-cell; */
    top: 0px;
    line-height: 100%;
    text-align: center;
    display: flex;
    font-weight: 600;
    justify-content: center;
    align-items: center;
}

.wait-time-green {
    background-image: url(../images/timeicongreen.png);
    background-position: center;
    background-repeat: no-repeat;
    height: 70px;
    background-size: contain;
    /* display: table-cell; */
    top: 0px;
    line-height: 100%;
    text-align: center;
    display: flex;
    font-weight: 600;
    justify-content: center;
    align-items: center;
}

.wait-time-white {
    background-image: url(../images/timeiconwhite.png);
    background-position: center;
    background-repeat: no-repeat;
    height: 70px;
    background-size: contain;
    /* display: table-cell; */
    top: 0px;
    line-height: 100%;
    text-align: center;
    display: flex;
    font-weight: 600;
    justify-content: center;
    align-items: center;
}

.no-padding {
    padding: 0px !important
}

.minus-nav {
    height: calc(100% - 50px);
}

.tc-button {
    margin-right: 10px;
}

.card-shadow {
    box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.3);
}

.esri-feature__main-container .card {
    border: 0px !important;
}

.esri-popup__button--dock {
    display: none !important;
}

.esri-view .esri-view-surface--inset-outline:focus::after {
    outline: none !important;
}

.toolbar-settings {
    padding: 5px;
    background: lightgray;
}

.esri-features__container:not(:empty) {
    padding: 0px !important;
}

.option-select {
    height: 25px !important;
    min-height: 20px !important;
    padding: 0px !important;
    padding-left: 10px !important;
    padding-right: 30px !important;
}

.content-wrapper {
    overflow: hidden !important;
}

@media (min-width: 768px) {
    #viewDiv {
        height: calc(100% - 10px) !important;
    }
    #toc-items {
        height: calc(100% - 440px);
        box-shadow: inset 2px 2px 2px 0px #261f245e;
        overflow-y: scroll;
    }
    .main-sidebar {
        width: 450px;
        box-shadow: 5px 0px 5px 0px rgba(0,0,0,0.3);
        z-index: 1;
    }

    .tab-content-weird > .tab-content > .tab-pane {
        display: block !important;
        margin: 0px !important;
        padding: 0px !important;
        height: 100% !important;
    }

    .tab-content-weird {
        height: 100% !important;
    }

    .hidden-md-up {
        display: none;
    }

    .mobile-accessibility {
        display: none;
    }

    .esri-popup__main-container {
        border-radius: 25px !important;
    }

    .esri-ui .esri-popup {
        border-radius: 25px !important;
    }

    .esri-search {
        min-width: 400px !important;
        margin: auto;
    }

    .tab-content {
        height: 100% !important;
    }

/*    #viewDiv {
        height: calc(100%);
    }*/
}

@media(max-width: 768px) {
    .routingPane {
        width: 100% !important;
    }
    #toc-items {
        height: calc(100% - 260px);
        box-shadow: inset 2px 2px 2px 0px #261f245e;
        overflow-y: scroll;
    }
    .esri-search {
        width: 93vw !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: center;
    }

    .tab-content-weird {
        height: 100% !important;
        width: 100% !important;
    }

    .mobile-accessibility {
        display: block !important;
    }

    .hidden-md-up {
        display: flex !important;
        height: 50px;
        width: 100%;
    }

    .tab-content {
        height: calc(100% - 50px) !important;
    }

    #viewDiv {
        height: calc(100% - 5px) !important;
    }

        .minus-nav {
        height: calc(100% - 100px);
    }
}

.no-list {
    width: 100%;
    text-align: center;
}

.no-padding {
    padding: 0px !important;
    margin: 0px !important;
}

html,
body,
#viewDiv {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

#paneDiv {
    position: absolute;
    top: 10px;
    left: 62px;
    padding: 0 12px 0 12px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

.full-height {
    height: 100%;
    overflow-y: auto;
}

.full-width {
    width: 100%;
}

.tabular-data {
    height: 80%;
}


.half-row {
    width: 50%;
}

#pagination {
    margin: 10px;
}

    #pagination > .last, #pagination > .first {
        display: none !important;
    }

.loading-large {
    font-size: 40px;
}

.wait-time-box {
    align-content: center;
    font-size: 40px;
}


.nav-tabs .nav-link {
    border: 0px solid grey;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    background-color: lightgrey;
    color: grey;
    height: 100%;
}

    .nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
        color: #495057;
        background-color: #F2EFE8;
        border-color: #F2EFE8 #F2EFE8 #F2EFE8;
        border-top: 0px;
    }

/* The switch - the box around the slider */
.mapfilter-switch {
    position: relative;
    display: inline-block;
    margin-top: 3px;
    width: 40px;
    height: 20px;
}

    /* Hide default HTML checkbox */
    .mapfilter-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.mapfilter-slider-div {
    height: 50px;
    line-height: 50px;
}
/* The slider */
.mapfilter-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: gray;
    -webkit-transition: .4s;
    transition: .4s;
}

    .mapfilter-slider:before {
        position: absolute;
        content: "";
        height: 17px;
        width: 17px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .mapfilter-slider {
    background-color: #803B21;
}
/* Rounded sliders */
.mapfilter-slider.round {
    border-radius: 34px;
}

    .mapfilter-slider.round:before {
        border-radius: 50%;
    }

input:focus + .mapfilter-slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .mapfilter-slider:before {
    -webkit-transform: translateX(19px);
    -ms-transform: translateX(19px);
    transform: translateX(19px);
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    margin-top: 10px;
    width: 60px;
    height: 34px;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider-div {
    height: 80px;
}
/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #23513C;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #1D2856;
}

.toggle-switch-text-left {
    line-height: 50px;
    right: -20px;
    color: green;
    font-weight: bold;
}

.toggle-switch-text-right {
    line-height: 50px;
    left: -20px;
    color: blue;
    font-weight: bold;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.toolbar-subtitle {
    padding-top: 4px !important;
    display: inline-block !important;
}

.max-width {
    width: 100% !important;
}

.round-select {
    border-radius: 50px;
}

/* Force vertical alignment in the bottom-right widget container */
.esri-ui-bottom-right {
    display: flex !important;
    flex-direction: column !important; /* Stacks items vertically */
    align-items: flex-end !important; /* Aligns them cleanly to the right edge */
    gap: 8px; /* Controls the spacing between the buttons */
}

/* Optional: Reset margins so the gap property handles the spacing */
.esri-ui-bottom-right .esri-component {
    margin: 0 !important;
}

/*.esri-search__container {
    margin-bottom: 25px !important;
}*/
.esri-ui-top-left .esri-search {
    margin-bottom: 15px !important; /* Adjust this value to control the gap */
}
