#svk-map-container {
    padding: 0;
}

/* Sticky tab bar*/
header.navbar-fixed-top +  main .nav.nav-tabs {
    position:fixed;
    top: 100px;
}
header.navbar-fixed-top.navbar-transition + main .nav.nav-tabs {
    position:fixed;
    top: 71px;
}


#svk-map-container .nav-tabs {
    height: 60px;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    left: 0;
    padding-left: 34px;
    padding-top: 18px;
}
#svk-map-container :is(.nav-link, .navbar-nav .nav-link.active, .navbar-nav .nav-link.show){
    color:#007df6;
}
.ol-popup {
    position: absolute;
    background-color: white;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
    filter: drop-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: 315px;
}

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

.ol-popup-closer:after {
    content: "X";
}

.scroll-lock {
    top: 65px;
    left: 0.5em;
}

.polygon-select {
    top: 100px;
    left: 0.5em;
}

.container {
    width: auto;
}

.date-warning,
.date-warning-over-30,
.date-warning-over-365 {
    text-align: center;
    display: none;
    color: #151515;
    font-size: 16px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-warning-over-365,
.date-warning {
    background-color: #ff8b7c;
    border: 1px solid #d56a61;
}

.date-warning-over-30 {
    background-color: #f4d07a;
    border: 1px solid #d6b158;
}

.datepicker-lowered {
    margin-top: 30px;
}

#map-navigation-menu {
    display: flex;
    padding-bottom: 10px;
    margin-top: 10px;
    align-items: end;
}

#map-datepicker-menu,
#map-layer-selector-menu {
    padding-right: 10px;
}

#updateMap,
#station-search-reset-map {
    margin-right: 10px;
}

.loading-overlay {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 100;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#map-layer-visibility {
    margin-top: -16px;
    padding-right: 15px;
    padding-left: 15px;
}

#map-station-historical {
    padding-right: 15px;
    padding-left: 15px;
    margin-top: -6px;
}

#svk-map-container .nav-tabs {
    margin-right: 60px;
}

button.accordion.active:after {
    content: "-";
}

#request-button {
    border-top: 1px solid #b3bed7;
}

#stations {
    padding-top: 28px;
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 25px;
    margin: auto;
    position: flex;
    overflow-y: auto;
    height: 100vh;
}
#stations thead {
    position: sticky;
    top: -15px;
    background: #fff;
}

#station-table {
    padding: auto;
    margin: auto;
    position: relative;
}

#stations-form {
    padding-top: 10px;
}

.active-button {
    background-color: white !important;
}

#popup-station-number,
#popup-add-station {
    color: #007df6;
    cursor: pointer;
}

#station-list-ul li {
    width: 30%;
}

.station-closed {
    background-color: lightgrey;
}

#stations-search {
    width: 25%;
    color: black;
}

/*Center Carousel images*/
.carousel-inner img {
    margin-left: auto;
    margin-right: auto;
}

#booking-flex-container {
    display: flex;
    padding-top: 20px;
}

#booking-box-left {
    background-color: #f9f9f9;
    padding: 15px 20px 15px 20px;
    border: #ddd solid 1px;
}

#booking-box-right {
    background-color: #f9f9f9;
    border: #ddd solid 1px;
    border-left: none;
}

#booking-box-datepicker,
#booking-box-timeseries,
#booking-box-reports,
#booking-box-dynamics {
    border-bottom: #ddd solid 1px;
    padding: 15px 20px 15px 20px;
}

#booking-datepicker {
    /*margin: 5px;*/
    /*float: right;*/
    /*width: 100%;*/
    /*background-color: #B3BeD7;*/
}

#booking-datepicker span {
    font-weight: 500;
    font-size: 28px;
    font-family: inherit;
    line-height: 1.1;
    color: inherit;
    padding-right: 20px;
}

#booking-send-request {
    /*width: 100%;*/
}

#booking-stations-range {
    padding-top: 10px;
}


/* Modal Overlay */
#modal-preview-timeserie {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999; /*ensures the modal appears on top of other elements on the page.*/
}

/* Modal Content */
#modal-content {
    position: absolute; /* Position the modal at the center of the screen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Set the dimensions and appearance of the modal */
    width: auto; /* Adjust this value based on your design needs */
    height: auto; /* Let the height adjust based on content */
    max-height: 95%; /* Limit the maximum height to 90% of the viewport height */
    padding: 1rem; /* Use 'rem' instead of 'pc' for consistency */
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    /* Allow the modal to be resizable and show scrollbars when content overflows */
    resize: both;
    overflow: auto;
}

/* Modal Text */
#modal-text {
    font-family: "Lucida Console", monospace; /* Set font and text formatting for the modal content */
    font-size: 15px;
    white-space: break-spaces; /* Allow line breaks to wrap text */
}

/* Modal Buttons */
#modal-buttons {
    /* Align buttons to the right of the modal */
    display: flex;
    justify-content: flex-end;
    /* Add some spacing between buttons and the content */
    margin-top: 10px; /* Change margin-bottom to margin-top for better alignment */
}

/* Modal Download Button */
#modal-download {
    margin-right: 10px;
}

/* Previous button */
.ui-datepicker-prev {
    border: rgb(20, 86, 216) solid 2px;
    position: relative;
    width: 20px;
    height: 20px;
    overflow: hidden;
}
.ui-datepicker-prev::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgb(20, 86, 216);
    border-left: 2px solid rgb(20, 86, 216);
    transform: rotate(-45deg);
    top: 50%;
    left: 50%;
    margin-top: -5px;
    margin-left: -3px;
}

/* Next button */
.ui-datepicker-next {
    border: rgb(20, 86, 216) solid 2px;
    position: relative;
    width: 20px;
    height: 20px;
    overflow: hidden;
}
.ui-datepicker-next::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgb(20, 86, 216);
    border-right: 2px solid rgb(20, 86, 216);
    transform: rotate(45deg);
    top: 50%;
    left: 50%;
    margin-top: -5px;
    margin-left: -5px;
}
