.ol-popup {
    position: absolute;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    min-width: 280px;
}

.ol-popup:after,
.ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}

.ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
}

.ol-popup-closer:after {
    content: "\0d7";
}

.ol-overviewmap.ol-uncollapsible {
    bottom: auto;
    left: auto;
    right: 0;
    top: 0;
}

@media only screen and (min-width:768px) {
    .ol-attribution:not(.ol-collapsed) {
        max-width: 40%;
    }
}

.ol-attribution li {
    display: block;
}

.ol-attribution li:not(:last-child)::after {
    content: unset;
}

.ol-emdb-legend {
    width: 10%;
    max-height: 25%;
    position: absolute;
    bottom: auto;
    left: auto;
    right: 0;
    top: 0;
}

@media only screen and (max-width:1024px) {
    .ol-emdb-legend {
        width: 20% !important;
    }
}

.ol-control button {
    font-size: 1.5em !important;
}

html,
body {
    width: 100%;
    overflow: hidden;
}

.offcanvas-parent {
    position: relative;
}

.offcanvas {
    position: absolute;
}

.btn-circle {
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    padding: 0;
    border-radius: 50%;
}

.btn-circle i {
    position: relative;
    top: -1px;
}

#btn-layer,
#btn-search,
#btn-chart,
#btn-table,
#btn-setting {
    z-index: 1000;
    position: fixed;
    left: 5px;
}

#btn-search {
    bottom: calc(0% + 150px + 200px);
}

#btn-chart {
    bottom: calc(0% + 150px + 160px);
}

#btn-table {
    bottom: calc(0% + 150px + 120px);
}

#btn-layer {
    bottom: calc(0% + 150px + 80px);
}

#btn-setting {
    bottom: calc(0% + 150px + 40px);
}

#selected-content {
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    border-color: #c5c5c5;
}

#dropdown-content .dropdown-menu {
    min-width: 300px;

}

#selected-content {
    overflow-x: hidden;
}

#selected-content button {
    width: 100%;
    display: flex;
    align-items: center;
}

#selected-content-name {
    border-style: none;
    overflow-x: hidden;
    text-overflow: ellipsis;
}

#offcanvas-search {
    width: calc(100% - 120px);
}

.btn-control {
    width: 110px;
}

.btn-outline-primary.bg-on,
.btn-outline-success.bg-on {
    --bs-btn-bg: white;
}

@media only screen and (max-width:1024px) {

    #offcanvas-search,
    #offcanvas-chart {
        width: 100%;
    }
}

@media only screen and (max-width:768px) {
    #offcanvas-setting {
        width: 100%;
    }

    #btn-search {
        bottom: calc(0% + 150px + 210px);
    }

    #btn-chart {
        bottom: calc(0% + 150px + 170px);
    }

    #btn-table {
        bottom: calc(0% + 150px + 130px);
    }

    #btn-layer {
        bottom: calc(0% + 150px + 90px);
    }

    #btn-setting {
        bottom: calc(0% + 150px + 50px);
    }

}

@media only screen and (max-height:420px) {
    .footer {
        display: none;
    }

    #btn-search {
        bottom: calc(0% + 200px);
    }

    #btn-chart {
        bottom: calc(0% + 160px);
    }

    #btn-table {
        bottom: calc(0% + 120px);
    }

    #btn-layer {
        bottom: calc(0% + 80px);
    }

    #btn-setting {
        bottom: calc(0% + 40px);
    }

    .btn-reload {
        top: .5rem !important;
        left: 3rem !important;
    }
}

#offcanvas-search .offcanvas-header,
#offcanvas-chart .offcanvas-header,
#offcanvas-setting .offcanvas-header {
    border-left: 1rem solid #348641;
}

#created-link {
    width: 100%;
    height: 50%;
}

#select-class {
    max-height: 20rem;
    overflow-y: scroll;
    border: 1px solid rgba(0, 0, 0, .125);
}

#select-class .list-group-item {
    border: none;
}

#place-search-block {
    max-height: 10rem;
    overflow-y: scroll;
    border: 1px solid rgba(0, 0, 0, .125);
}

#now-loading-measured-data {
    z-index: 999;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: solid 2px #00000066;
    border-radius: 10%;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinner:after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border-radius: 50%;
    border: 5px solid rgba(180, 180, 180, 0.6);
    border-top-color: rgba(0, 0, 0, 0.6);
    animation: spinner 0.6s linear infinite;
}

.spinner {
    opacity: 0.5;
}

.tooltip-inner {
    background-color: white;
    color: unset;
    font-size: 1.0rem;
    box-shadow: 0px 0px 4px black;
    opacity: 1 !important;
}

.tooltip.bs-tooltip-right .tooltip-arrow::before {
    border-right-color: white !important;
}

.tooltip.bs-tooltip-left .tooltip-arrow::before {
    border-left-color: white !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: white !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: white !important;
}

#date-physical-reduce {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#print-map {
    margin: 0 auto;
}

#print-map-page {
    overflow: scroll;
}

@media print {
    @page {
        margin: 0 !important;
    }

    header {
        display: none !important;
    }

    footer {
        display: none !important;
    }

    #print-map-page {
        overflow: visible;
    }

    #print-control {
        display: none !important;
    }

    #print-map {
        width: 100% !important;
        margin: 0 auto !important;
        scale: 0.9 !important;
    }

    button.ol-zoom-in {
        display: none !important;
    }

    button.ol-zoom-out {
        display: none !important;
    }

    button.btn-ol-reload {
        display: none !important;
    }
}

.control-header {
    padding: 1rem;
    border-left: 1rem solid #348641;
}

.map-control {
    display: none;
    overflow-y: auto;
    z-index: 1001;
    background-color: white;
}

#toast-position {
    top: 10%;
    left: 50%;
    z-index: 1010;
}

.facility-icon {
    width: 16px;
    height: 16px;
}

.graph-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
}

#ui-datepicker-div {
    z-index: 1010 !important;
}