* {
    font-family: "Mulish", sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    position: relative;
    margin: 0;
}

#map {
    height: 100%;
}

.leaflet-div-icon.selection-polygon {
    margin-left: -6px !important;
    margin-top: -6px !important;
    border-radius: 50%;
    border: 3px solid rgb(8, 82, 194);
    background-color: rgb(97, 145, 216);
}

.leaflet-div-icon.selection-polygon:nth-child(2) {
    border: 3px solid red;
    background-color: red;
}

/* layers */
#map .box-layers {
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#map .box-layers .box-layers-button {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background-color: #fff;
    background-image: url(svg/layers.svg);
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

#map .box-layers .box-layers-button:hover {
    background-color: #f4f4f4;
}

#map .box-layers .box-layers-pane {
    display: none;
    position: absolute;
    top: 0;
    right: 32px;
    background-color: #fff;
    width: 160px;
    border: 2px solid #b1b1b1;
}

#map .box-layers.show .box-layers-pane {
    display: block;
}

#map .box-layers .box-layers-pane .layer-box-group>span {
    padding: 12px;
    display: block;
}

#map .box-layers .box-layers-pane .layer-box-group ul {
    list-style: none;
}

#map .box-layers .box-layers-pane .layer-box-group ul li {
    display: flex;
    margin-bottom: 8px;
    cursor: pointer;
}

#map .box-layers .box-layers-pane .layer-box-group ul li span.layer-checkbox {
    border: 1px solid #000;
    border-radius: 2px;
    padding: 8px;
    cursor: pointer;
    margin-right: 6px;
    position: relative;
}

#map .box-layers .box-layers-pane .layer-box-group ul li span.layer-checkbox:hover {
    background-color: #f4f4f4;
}

#map .box-layers .box-layers-pane .layer-box-group ul li.active span.layer-checkbox:after {
    content: "\2713";
    color: red;
    position: absolute;
    top: -3px;
    left: 2px;
    font-size: 16px;
    font-weight: bold;
}

/* elevation */
#map .elevation-panel {
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#map .elevation-panel .elevation-button {
    background-color: #fff;
    background-image: url(../resources/svg/water.svg);
    background-repeat: no-repeat;
    background-size: auto;
    background-position: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
}

#map .elevation-panel .elevation-button:hover {
    background-color: #f4f4f4;
}

#map .elevation-panel .elevation-selector {
    display: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    position: absolute;
    top: -2px;
    right: 36px;
    padding: 6px 12px;
}

#map .elevation-panel[data-state="1"] .elevation-selector {
    display: inherit;
}

/* upload */
#map .upload-panel {
    /*display: none;*/
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#map .upload-panel .upload-button {
    background-color: #fff;
    background-image: url(../resources/svg/upload.svg);
    background-repeat: no-repeat;
    background-size: auto;
    background-position: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
}

#map .upload-panel .upload-button:hover {
    background-color: #f4f4f4;
}

#map .upload-panel .upload-file-panel {
    display: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    position: absolute;
    top: -2px;
    right: 36px;
    padding: 6px 12px;
}

#map .upload-panel[data-state="1"] .upload-file-panel {
    display: inherit;
}

/* export map png */
#map .download-png-panel {
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#map .download-png-panel .download-png-button {
    background-color: #fff;
    background-image: url(../resources/svg/picture.svg);
    background-repeat: no-repeat;
    background-size: auto;
    background-position: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

#map .download-png-panel .download-png-button:hover {
    background-color: #f4f4f4;
}

#map .download-png-panel .download-png-button .download-png-info {
    display: none;
    padding: 12px;
    position: absolute;
    right: 34px;
    top: 0;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #ccc;
}

#map .download-png-panel .download-png-button .download-png-info input {
    margin: 4px;
    outline: unset;
}

#map .download-png-panel .download-png-button .download-png-info input[type="button"] {
    float: right;
    cursor: pointer;
}

#map .download-png-panel .download-png-button.show .download-png-info {
    display: block;
}

/* thredds */
#map .thredds-panel.leaflet-control {
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#map .thredds-panel .thredds-button {
    width: 352px;
    height: 30px;
    max-width: 30px;
    border-radius: 4px;
    background-color: #fff;
    background-image: url(svg/thredds.svg);
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: max-width 0.74s;
    color: transparent;
    box-sizing: border-box;
}

@keyframes show-button {
    0% {
        border: unset;
        padding: 4px 50px;
        color: transparent;
        opacity: 1;
    }

    80% {
        border: unset;
        padding: 4px 50px;
        color: transparent;
        opacity: 1;
    }

    99% {
        border: unset;
        background-position-x: 8px;
        padding: 4px 50px;
        color: transparent;
        opacity: 1;
    }

    100% {
        border: unset;
        background-position-x: 8px;
        padding: 4px 50px;
        color: black;
        opacity: 1;
    }
}

@keyframes show-panel {
    0% {
        max-width: 332px;
        max-height: 0;
        padding: 10px 12px 6px 8px;
        margin: initial;
    }

    100% {
        max-height: 278px;
        max-width: 332px;
        padding: 10px 12px 6px 8px;
        margin: initial;
    }
}

@keyframes show-panel2 {
    0% {
        max-height: 0;
        max-width: 350px;
        padding: 1px;
    }

    100% {
        max-height: 278px;
        max-width: 350px;
        padding: 1px;
    }
}

#map .thredds-panel.show .thredds-button {
    border-bottom-left-radius: unset;
    border-bottom-right-radius: unset;
    animation: show-button 0.4s ease-in 1s forwards;
    max-width: 352px;
    opacity: 1;
}

#map .thredds-panel .thredds-button:hover {
    background-color: #f4f4f4;
}

#map .thredds-panel .thredds-container-panel {
    position: relative;
    background-color: #fff;
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 0;
    max-width: 0;
    /*border: 2px solid #b1b1b1;
    border-radius: 2px;*/
    padding: 0px;
    /*transition: max-width 1s, max-height 1s;*/
    z-index: -1;
    width: 332px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    margin: -1px;
}

#map .thredds-panel.show .thredds-container-panel {
    /*max-height: 278px;
    max-width: 332px;  */
    /*padding: 10px 12px 6px 8px;
    margin: initial;*/
    animation: show-panel 0.8s ease-in 0.7s forwards;
}

#map .thredds-panel .thredds-panel-group {
    /*display: none;*/
    /*position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow-y: scroll;
    max-height: 0;
    max-width: 0;
    border: 2px solid #b1b1b1;
    border-radius: 2px;
    padding: 10px 8px 0px 8px;
    transition: max-width 1s, max-height 1s;
    z-index: -1;
    width: 332px;*/
    opacity: 0;
    transition: opacity 3s, max-height 1s;
    /*max-height: 34px;*/
    overflow-y: hidden;
    position: relative;
}

#map .thredds-panel .thredds-panel-group.show-content {
    overflow-y: unset;
}

#map .thredds-panel.show .thredds-panel-group {
    /*display: block;*/
    /*max-height: 278px;
    max-width: 332px;    */
    opacity: 1;
    background-color: #fff;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer {
    list-style: none;
    margin-top: 2px;
    padding-left: 20px;
    max-height: 30px;
    overflow-y: hidden;
    transition: max-height 1s;
    background-color: #fff;
    margin-bottom: 1px;
}

#map .thredds-panel.show .thredds-panel-group.no-service .thredds-panel-layer{
    padding-left: 0;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li {
    padding-left: 38px;
    display: flex;
    /*margin-bottom: 5px;*/
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ebebeb;
    border-top: unset;
    padding-top: 5px;
    position: relative;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options {
    flex-basis: 26%;
    text-align: right;
    opacity: 0.5;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li.active .thredds-options {
    opacity: 1;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .wms-selector-layer {
    pointer-events: none;
    width: 100%;
    margin-right: 10px;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li.active .wms-selector-layer {
    pointer-events: all;
    cursor: pointer;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options .thredds-zoom-to,
#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options .wms-zoom-to {
    padding: 0 6px;
    background-image: url(svg/zoom.svg);
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-right: 10px;
    display: none;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options .thredds-opacity {
    padding: 0 6px;
    background-image: url(svg/opacity.svg);
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options .thredds-last-time,
#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options .wms-last-time,
#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options .wms-selector-time {
    padding: 0 6px;
    background-image: url(svg/calendar.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options .thredds-opacity:hover,
#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options .thredds-last-time:hover,
#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options .wms-last-time:hover,
#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options .wms-selector-time:hover {
    background-color: #f4f4f4;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options .thredds-opacity .thredds-opacity-selector {
    position: absolute;
    top: 0px;
    right: 22px;
    background-color: #fff;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
    z-index: 1;
    display: none;
    padding: 4px 8px;
    border-radius: 3px;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options .thredds-opacity .thredds-opacity-selector:before {
    content: "";
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background-color: #fff;
    position: absolute;
    top: 4px;
    right: -6px;
    border-top: 1px solid rgb(0 0 0 / 8%);
    border-right: 1px solid rgb(0 0 0 / 8%);
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li.active .thredds-options .thredds-opacity.show-opacity .thredds-opacity-selector {
    display: block;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li .thredds-options .thredds-opacity .thredds-opacity-selector .thredds-opacity-value {
    color: #4f6178;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li.active .thredds-options .thredds-zoom-to,
#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li.active .thredds-options .wms-zoom-to {
    display: initial;
}

#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li.active .thredds-options .thredds-zoom-to:hover,
#map .thredds-panel.show .thredds-panel-group .thredds-panel-layer li.active .thredds-options .wms-zoom-to:hover {
    background-color: #f4f4f4;
}

#map .thredds-panel .thredds-panel-group .thredds-panel-layer li span.thredds-checkbox,
#map .thredds-panel .thredds-panel-group .thredds-panel-layer li span.wms-checkbox {
    /*border: 1px solid #000;
    border-radius: 2px;*/
    padding: 8px;
    width: 2px;
    height: 2px;
    cursor: pointer;
    margin-right: 6px;
    /*position: relative;*/
    display: inline-block;
    position: absolute;
    left: 6;
    top: 6;
    background-image: url(../resources/svg/eye-slash.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

#map .thredds-panel .thredds-panel-group .thredds-panel-layer li.active span.thredds-checkbox,
#map .thredds-panel .thredds-panel-group .thredds-panel-layer li.active span.wms-checkbox {
    background-image: url(../resources/svg/eye.svg);
}

#map .thredds-panel .thredds-panel-group .thredds-panel-layer li span.thredds-checkbox:hover,
#map .thredds-panel .thredds-panel-group .thredds-panel-layer li span.wms-checkbox:hover {
    background-color: #f4f4f4;
}

/*#map .thredds-panel .thredds-panel-group .thredds-panel-layer li.active span.thredds-checkbox:after{
    content: '\2713';
    color: red;
    position: absolute;
    top: -3px;
    left: 2px;
    font-size: 16px;
    font-weight: bold;
}*/
#map .thredds-panel .thredds-panel-group .thredds-panel-layer li .thredds-label,
#map .thredds-panel .thredds-panel-group .thredds-panel-layer li .wms-label {
    display: flex;
    cursor: pointer;
    word-break: keep-all;
    flex-basis: 74%;
    opacity: 0.5;
}

#map .thredds-panel .thredds-panel-group .thredds-panel-layer li.active .thredds-label,
#map .thredds-panel .thredds-panel-group .thredds-panel-layer li.active .wms-label {
    opacity: 1;
}

#map .thredds-panel .thredds-active-panel {
    position: relative;
    background-color: #fff;
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 0;
    max-width: 0;
    /*border: 2px solid #b1b1b1;*/
    /*border-radius: 2px;*/
    padding: 0px;
    transition: max-width 1s, max-height 1s;
    z-index: -2;
    width: 350px;
    /*border-top: unset;*/
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#map .thredds-panel.show .thredds-active-panel {
    /*max-height: 278px;
    max-width: 350px;
    padding: 1px;*/
    animation: show-panel2 1.4s ease-in 0.7s forwards;
    /*padding: 10px 8px 6px 8px;*/
}

#map .thredds-panel.show .thredds-active-panel .thredds-label,
#map .thredds-panel.show .thredds-active-panel .wms-label {
    display: flex;
    padding: 10px 24px 10px 8px;
    position: relative;
    cursor: pointer;
    background-color: #fafafa;
    border: 1px solid #ebebeb;
    margin: 6px 12px 6px 6px;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label:before,
#map .thredds-panel.show .thredds-active-panel .wms-label:before {
    content: "";
    background-image: url(../resources/svg/move.svg);
    background-position: center;
    background-repeat: no-repeat;
    width: 6px;
    height: 18px;
    margin-right: 6px;
    visibility: hidden;
    pointer-events: none;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label:hover,
#map .thredds-panel.show .thredds-active-panel .wms-label:hover {
    background-color: #f4f4f4;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label:hover:before,
#map .thredds-panel.show .thredds-active-panel .wms-label:hover:before {
    visibility: visible;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .thredds-checkbox,
#map .thredds-panel.show .thredds-active-panel .wms-label .wms-checkbox {
    width: 18px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .thredds-checkbox:hover,
#map .thredds-panel.show .thredds-active-panel .wms-label .wms-checkbox:hover {
    background-color: #e7e7e7;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .thredds-checkbox:before,
#map .thredds-panel.show .thredds-active-panel .wms-label .wms-checkbox:before {
    display: block;
    content: "\00d7";
    position: absolute;
    top: -4px;
    left: 4px;
    font-size: 16px;
    pointer-events: none;
    color: red;
}

#map .thredds-panel.show .thredds-active-panel .wms-label[wms-selector]:before{
    display: none !important;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .container-buttons,
#map .thredds-panel.show .thredds-active-panel .wms-label .container-buttons {
    /*width: 100%;*/
    text-align: right;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .animation-button,
#map .thredds-panel.show .thredds-active-panel .wms-label .animation-button,
#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range {
    cursor: pointer;
    width: 24px;
    height: 20px;
    text-align: center;
    position: absolute;
    right: 4px;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .animation-button.dynamic-animation{
    bottom: 0;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range{
    top: 0;
    height: 18px;
    background-size: 16px;
    background-image: url(svg/palettes.svg);
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range .color-range-box{
    display: none;
    width: 80px;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range .color-range-box.show{
    display: flex;
    flex-wrap: wrap;
    position: fixed;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.3);
    padding: 8px;
    box-sizing: border-box;
    left: 28px;
    width: 274px;
    cursor: default;
}
#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range .color-range-box input{
    width: 64px;
    outline: unset;
    margin: 8px 0;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range .color-range-box input:last-child{
    margin-left: auto;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range .color-range-box input.color-box-apply,
#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range .color-range-box input.color-box-reset{
    width: auto;
    flex-basis: 48%;
    background-color: #007bc4;
    color: white;
    border: unset;
    border-radius: 3px;
    padding: 6px;
    font-size: 14px;
    cursor: pointer;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range .color-range-box input.color-box-apply:hover,
#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range .color-range-box input.color-box-reset:hover{
    background-color: #00629d;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range .color-range-box input.color-box-apply{
    margin-left: 2%;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range .color-range-box input.color-box-reset{
    margin-right: 2%;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range .color-range-box div{
    width: 12px;
    height: 22px;
    margin: 0 auto;
    flex-basis: 14px;
    flex-grow: 1;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .animation-button:hover,
#map .thredds-panel.show .thredds-active-panel .wms-label .animation-button:hover,
#map .thredds-panel.show .thredds-active-panel .thredds-label .range-button.dynamic-range:hover {
    background-color: #e7e7e7;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .animation-button:before,
#map .thredds-panel.show .thredds-active-panel .wms-label .animation-button:before {
    content: "\e072";
    font-family: "Glyphicons Halflings";
    display: block;
    cursor: pointer;
    width: 24px;
    height: 20px;
    text-align: center;
    position: absolute;
    right: 0;
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .animation-button.remove:before,
#map .thredds-panel.show .thredds-active-panel .wms-label .animation-button.remove:before {
    content: "\e074";
}

#map .thredds-panel.show .thredds-active-panel .thredds-label .animation-button.stop:before,
#map .thredds-panel.show .thredds-active-panel .wms-label .animation-button.stop:before {
    content: "\e074";
}

#map .thredds-panel.show .thredds-active-panel .move-highlight-down,
#map .thredds-panel.show .thredds-active-panel .move-highlight-up {
    position: relative;
}

#map .thredds-panel.show .thredds-active-panel .move-highlight-up:after {
    content: "";
    position: absolute;
    top: -5px;
    width: 90%;
    height: 1px;
    border-top: 1px dashed #2255e6;
}

#map .thredds-panel.show .thredds-active-panel .move-highlight-down:after {
    content: "";
    position: absolute;
    bottom: -5px;
    width: 90%;
    height: 1px;
    border-bottom: 1px dashed #2255e6;
}

/* reset extent */
#map .reset-extent-button {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    background-image: url(svg/extent.svg);
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

#map .reset-extent-button:hover {
    background-color: #f4f4f4;
}

/* selection */
#map .leaflet-draw a.query-line {
    background-image: url(svg/query_line.svg);
    background-position: center;
    background-size: 60%;
    background-repeat: no-repeat;
}

#map .leaflet-draw a.query-data {
    background-image: url(svg/cursor.svg);
    background-position: center;
    /*background-size: 60%;*/
    background-size: 16%;
    background-repeat: no-repeat;
    cursor: pointer;
}

.leaflet-control-container .leaflet-top.leaflet-left div.leaflet-draw:nth-child(1) .leaflet-draw-draw-polyline {
    border-bottom: unset;
}

.leaflet-control-container .leaflet-top.leaflet-left div.leaflet-draw:nth-child(1) .leaflet-draw-draw-rectangle {
    display: none;
}

#map .leaflet-draw .leaflet-draw-toolbar-button-enabled {
    /*background-color: #007BC4;*/
    background-color: #ff843b;
    filter: invert(1);
}

/* plots */
#map .plot-container {
    position: absolute;
    bottom: 0;
    height: 400px;
    width: 100%;
    max-height: 0;
    transition: max-height 0.45s ease-out;
    z-index: 9999;
    background-color: white;
    cursor: initial;
}

#map .plot-container[data-plot="true"] {
    max-height: 400px;
}

#map .plot-container[data-minimize="true"] {
    max-height: 38px;
}

#map .plot-container div.plot {
    width: 100%;
    height: 300px;
    position: relative;
    box-sizing: border-box;
}

#map .plot-container div.plot .plot-header {
    padding: 6px;
    position: relative;
    background-color: #007bc4;
}

#map .plot-container div.plot .plot-header span.plot-minimize {
    display: block;
    width: 26px;
    height: 26px;
    background-image: url(data:image/svg+xml;utf8,<svg width="14" height="9" viewBox="0 0 14 9" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.07895 7.95127L0.212211 1.96138C-0.070737 1.67249 -0.070737 1.20413 0.212211 0.915278L0.896472 0.216657C1.17894 -0.0717354 1.63673 -0.0722904 1.91986 0.215424L6.59126 4.96252L11.2626 0.215424C11.5458 -0.0722904 12.0036 -0.0717354 12.286 0.216657L12.9703 0.915278C13.2532 1.20416 13.2532 1.67252 12.9703 1.96138L7.10358 7.95127C6.82063 8.24012 6.3619 8.24012 6.07895 7.95127Z" fill="%23FFF"/></svg>);
    background-repeat: no-repeat;
    background-size: 64%;
    background-position: center;
    cursor: pointer;
}

#map .plot-container div.plot .plot-header span.plot-minimize:hover {
    background-color: #014f7c;
}

#map .plot-container[data-minimize="true"] div.plot .plot-header span.plot-minimize {
    transform: rotate(180deg);
}

#map .plot-container div.plot .plot-header span.plot-close {
    display: block;
    width: 32px;
    height: 32px;
    background-image: url(data:image/svg+xml;utf8,<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.292786 1.29296C0.480314 1.10549 0.734622 1.00017 0.999786 1.00017C1.26495 1.00017 1.51926 1.10549 1.70679 1.29296L6.99979 6.58596L12.2928 1.29296C12.385 1.19745 12.4954 1.12127 12.6174 1.06886C12.7394 1.01645 12.8706 0.988862 13.0034 0.987709C13.1362 0.986555 13.2678 1.01186 13.3907 1.06214C13.5136 1.11242 13.6253 1.18667 13.7192 1.28056C13.8131 1.37446 13.8873 1.48611 13.9376 1.60901C13.9879 1.7319 14.0132 1.86358 14.012 1.99636C14.0109 2.12914 13.9833 2.26036 13.9309 2.38236C13.8785 2.50437 13.8023 2.61471 13.7068 2.70696L8.41379 7.99996L13.7068 13.293C13.8889 13.4816 13.9897 13.7342 13.9875 13.9964C13.9852 14.2586 13.88 14.5094 13.6946 14.6948C13.5092 14.8802 13.2584 14.9854 12.9962 14.9876C12.734 14.9899 12.4814 14.8891 12.2928 14.707L6.99979 9.41396L1.70679 14.707C1.51818 14.8891 1.26558 14.9899 1.00339 14.9876C0.741188 14.9854 0.490376 14.8802 0.304968 14.6948C0.11956 14.5094 0.0143909 14.2586 0.0121125 13.9964C0.00983408 13.7342 0.110628 13.4816 0.292786 13.293L5.58579 7.99996L0.292786 2.70696C0.105315 2.51943 0 2.26512 0 1.99996C0 1.73479 0.105315 1.48049 0.292786 1.29296Z" fill="%23FFF"/></svg>);
    background-repeat: no-repeat;
    background-size: 40%;
    background-position: center;
    cursor: pointer;
    position: absolute;
    top: 3px;
    right: 10px;
}

#map .plot-container div.plot .plot-header span.plot-close:hover {
    background-color: #014f7c;
}

#map .plot-container div.plot .plot-options span.toggle-plot-points {
    /*background-color: #f6f6f6;*/
    background-color: #007bc4;
    color: #ffffff;
    font-size: 12px;
    padding: 6px;
    cursor: pointer;
    margin-left: 1px;
    position: relative;
    padding-left: 32px;
    background-image: url(svg/toggle_points.svg);
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

#map .plot-container div.plot .plot-options span.toggle-plot-points:hover {
    background-color: #01649f;
}

#map .plot-container div.plot .plot-options span.plot-csv {
    background-color: #f6f6f6;
    color: #4f6178;
    font-size: 12px;
    padding: 6px;
    cursor: pointer;
    margin-left: auto;
    position: relative;
    padding-left: 32px;
}

#map .plot-container div.plot .plot-options span.plot-csv:hover {
    background-color: #dbd9d9;
}

#map .plot-container div.plot .plot-options span.plot-csv:before {
    content: "";
    background-image: url(svg/csv.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    width: 28px;
    height: 30px;
    position: absolute;
    top: 0;
    left: 0;
}

#map .plot-container div.plot .plot-options span.plot-export {
    background-color: #f6f6f6;
    color: #4f6178;
    font-size: 12px;
    padding: 6px;
    cursor: pointer;
    margin-left: 12px;
    position: relative;
    padding-left: 32px;
}

#map .plot-container div.plot .plot-options span.plot-export:hover {
    background-color: #dbd9d9;
}

#map .plot-container div.plot .plot-options span.plot-export:before {
    content: "";
    background-image: url(svg/png.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    width: 28px;
    height: 30px;
    position: absolute;
    top: 0;
    left: 0;
}

#map .plot-container div.plot .plot-options {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 8px 0 8px;
}

#map .plot-container div.plot .plot-options>.plot-datepicker {
    display: flex;
}

#map .plot-container div.plot .plot-options>.plot-datepicker>.plot-datepicker {
    margin-right: 12px;
}

#map .plot-container div.plot .plot-options>.plot-datepicker>.plot-datepicker:before {
    content: "";
    background-image: url(svg/calendar-gray.svg);
    background-repeat: no-repeat;
    background-position: center;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

#map .plot-container div.plot .plot-options input.plot-datepicker {
    border: unset;
    height: 30px;
    background-color: #f6f6f6;
    color: #4f6178;
    cursor: pointer;
    outline: unset;
    padding-left: 40px;
}

#map .plot-container div.plot .plot-options select.plot-datepicker-time {
    border: unset;
    height: 30px;
    background-color: #f6f6f6;
    padding-left: 10px;
    color: #4f6178;
    border-left: 1px solid #ebebeb;
    cursor: pointer;
    outline: unset;
}

#map .plot-container div.plot .plot-options .plot-update {
    padding: 2px 12px;
    background-color: #007bc4;
    color: #ffffff;
    line-height: 24px;
    font-size: 14px;
    cursor: pointer;
}

#map .plot-container div.plot .plot-options .plot-update:hover {
    background-color: #01649f;
}

#map .plot-container[data-time="true"] .plot-options>.plot-datepicker>.plot-datepicker:nth-child(1),
#map .plot-container[data-time="false"] .plot-options>.plot-datepicker>.plot-datepicker:nth-child(2),
#map .plot-container[data-time="false"] .plot-options>.plot-datepicker>.plot-datepicker:nth-child(3) {
    /*opacity: 0;
    pointer-events: none;*/
    display: none;
}

/*#map .plot-container div.plot .plot-canvas-container{
    height: 100%;
}
#map .plot-container[data-time="false"] div.plot .plot-canvas-container{
    height: 80%;
}*/
#map .plot-container div.plot .plot-canvas-container {
    height: 80%;
}

/* warnings */
@keyframes show-warning {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.warning-container {
    display: none;
    position: absolute;
    bottom: 22px;
    width: 100%;
    text-align: center;
    z-index: 999999;
}

.warning-container.show {
    display: block;
}

.warning-container .warning-body {
    display: inline;
    opacity: 0;
    padding: 12px;
    background-color: #5f5f5f;
    color: white;
}

.warning-container.show .warning-body {
    animation-name: show-warning;
    animation-duration: 7s;
}

/* datepicker */
#map .leaflet-control-container .leaflet-top.leaflet-left .datepicker-container {
    clear: unset;
    z-index: 9999;
    display: flex;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#map .leaflet-control-container .leaflet-top.leaflet-left .datepicker-container .datepicker-button {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
    background-image: url(svg/calendar.svg);
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

#map .leaflet-control-container div[disabled] {
    opacity: 0.7;
    cursor: not-allowed !important;
}

#map .leaflet-control-container div[disabled] div,
#map .leaflet-control-container div[disabled] select,
#map .leaflet-control-container div[disabled] input,
#map .leaflet-control-container div[disabled] a {
    pointer-events: none;
}

#map .leaflet-control-container .leaflet-top.leaflet-left .datepicker-container .datepicker-input {
    width: 86px;
    border: unset;
    outline: unset;
    cursor: pointer;
}

#map .leaflet-control-container .leaflet-top.leaflet-left .datepicker-container .datepicker-select {
    border: unset;
    border-left: 2px solid rgba(0, 0, 0, 0.2);
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
    cursor: pointer;
    outline: unset;
}

#map .leaflet-control-container .leaflet-top.leaflet-left .datepicker-container .qs-datepicker-container {
    top: 34px !important;
    left: 0px !important;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/*#map .leaflet-control-container .leaflet-top.leaflet-left .datepicker-container .datepicker-select{
    color: #4F6178;
    padding-left: 30px;
    cursor: pointer;
}
#map .leaflet-control-container .leaflet-top.leaflet-left .datepicker-container .datepicker-select:before{
    content: '';
}*/
/* language */
#map .leaflet-control-container .leaflet-top.leaflet-left .language-container {
    z-index: 900;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#map .leaflet-control-container .leaflet-top.leaflet-left .language-button {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 4px;
    background-image: url(svg/language.svg);
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

#map .leaflet-control-container .leaflet-top.leaflet-left .language-button .language-info {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #007bc4;
    border-radius: 88%;
    width: 9px;
    height: 9px;
    color: white;
    padding: 2px;
    line-height: 0.8;
    font-size: 9px;
    pointer-events: none;
}

#map .leaflet-control-container .leaflet-top.leaflet-left .language-container[data-state="0"] .language-panel {
    display: none;
}

#map .leaflet-control-container .leaflet-top.leaflet-left .language-container[data-state="1"] .language-panel {
    display: block;
    position: absolute;
    border-radius: 4px;
    margin-top: 4px;
    background: white;
    padding: 12px 10px;
    box-shadow: 0px 3px 8px -2px rgb(0 0 0 / 75%);
}

#map .leaflet-control-container .leaflet-top.leaflet-left .language-container[data-state="1"] .language-panel .language-panel-title {
    font-size: 14px;
    margin-left: 6px;
    color: #007bc4;
}

#map .leaflet-control-container .leaflet-top.leaflet-left .language-container .language-panel div {
    display: flex;
}

#map .leaflet-control-container .leaflet-top.leaflet-left .language-container .language-panel div label {
    font-size: 14px;
    margin-left: 6px;
}

#map .leaflet-control-container .leaflet-top.leaflet-left .language-container .language-panel div label.checked {
    color: #007bc4;
}

/* legend */
.thredds-panel-layer li.thredds-panel-sublayer {
    opacity: 0;
    transition: opacity 1.3s;
}

.thredds-panel-layer.show-folder li.thredds-panel-sublayer {
    opacity: 1;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend {
    width: 100%;
    height: 20px;
    margin-top: 5px;
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    opacity: 0.5;
}

.thredds-panel-layer li.thredds-panel-sublayer.active .thredds-legend {
    opacity: 1;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container {
    flex-basis: 82%;
    position: relative;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .legend-min-value {
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 80px;
    /*border: unset;*/
    outline: unset;
    opacity: 0;
    pointer-events: none;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .legend-min-value-label {
    position: absolute;
    left: 0;
    bottom: -16px;
    cursor: pointer;
    border: unset;
    outline: unset;
    opacity: 0;
    pointer-events: none;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .legend-max-value {
    position: absolute;
    bottom: -16px;
    right: 11px;
    width: 80px;
    /*border: unset;*/
    outline: unset;
    opacity: 0;
    pointer-events: none;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .legend-max-value-label {
    position: absolute;
    bottom: -16px;
    right: 11px;
    cursor: pointer;
    border: unset;
    outline: unset;
    opacity: 0;
    pointer-events: none;
}

.thredds-panel-layer li.thredds-panel-sublayer[wms-selector] .thredds-legend .legend-container .legend-max-value-label{
    right: 0;
}

.thredds-panel-layer li.thredds-panel-sublayer.active .thredds-legend .legend-container .legend-min-value,
.thredds-panel-layer li.thredds-panel-sublayer.active .thredds-legend .legend-container .legend-min-value-label,
.thredds-panel-layer li.thredds-panel-sublayer.active .thredds-legend .legend-container .legend-max-value,
.thredds-panel-layer li.thredds-panel-sublayer.active .thredds-legend .legend-container .legend-max-value-label {
    opacity: 1;
    pointer-events: all;
}

.thredds-panel-layer li.thredds-panel-sublayer[wms-selector].active .thredds-legend .legend-container .legend-min-value,
.thredds-panel-layer li.thredds-panel-sublayer[wms-selector].active .thredds-legend .legend-container .legend-min-value-label,
.thredds-panel-layer li.thredds-panel-sublayer[wms-selector].active .thredds-legend .legend-container .legend-max-value,
.thredds-panel-layer li.thredds-panel-sublayer[wms-selector].active .thredds-legend .legend-container .legend-max-value-label {
    pointer-events: none;
}

.thredds-panel-layer li.thredds-panel-sublayer.active .thredds-legend .legend-container .legend-min-value:hover,
.thredds-panel-layer li.thredds-panel-sublayer.active .thredds-legend .legend-container .legend-min-value-label:hover,
.thredds-panel-layer li.thredds-panel-sublayer.active .thredds-legend .legend-container .legend-max-value:hover,
.thredds-panel-layer li.thredds-panel-sublayer.active .thredds-legend .legend-container .legend-max-value-label:hover {
    background-color: #f4f4f4;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .legend-min-value.hide,
.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .legend-min-value-label.hide,
.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .legend-max-value.hide,
.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .legend-max-value-label.hide {
    display: none;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .legend {
    width: 6px;
    height: 200px;
    transform-origin: bottom left;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
    position: absolute;
    left: 0;
    bottom: 13px;
    background-size: contain;
    border-radius: 8px;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .legend.wms-image {
    width: 16px;
    height: 200px;
    background-position: -6px;
    background-size: 60px 100%;
    background-repeat: no-repeat;
    border-radius: unset;
}

.thredds-panel-layer li.thredds-panel-sublayer[wms-selector] .thredds-legend .legend-container {
    flex-basis: 96%;
    position: relative;
}

.thredds-panel-layer li.thredds-panel-sublayer[wms-selector] .thredds-legend .legend-container .legend {
    width: 100%;
    height: 12px;
    overflow: hidden;
    transform-origin: unset;
    -webkit-transform: unset;
    -moz-transform: unset;
    -ms-transform: unset;
    -o-transform:unset;
    transform: unset;
    position: unset;
    left: unset;
    bottom: unset;
    background-size: unset;
    border-radius: unset;
    display: none;
}

.thredds-panel-layer li.thredds-panel-sublayer[wms-selector].active .thredds-legend .legend-container .legend{
    display: block;
    margin-top: 4px;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .thredds-legend-buttons {
    flex-basis: 18%;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .thredds-legend-buttons .palette-selector {
    margin: 0 auto;
    width: 16px;
    height: 16px;
    display: block;
    background-size: cover;
    background-image: url(svg/palettes.svg);
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-right: 10px;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .thredds-legend-buttons .palette-selector:hover {
    background-color: #f4f4f4;
}

.thredds-panel-layer li.thredds-panel-sublayer[wms-selector] .wms-data-properties,
.thredds-panel-layer li.thredds-panel-sublayer[wms-selector] .wms-selector-time{
    display: none;
}

.thredds-panel-layer li.thredds-panel-sublayer[wms-selector].active .wms-data-properties{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    padding: 3px;

    > div{
        height: 32px;
        width: 32px;
        background-repeat: no-repeat;
        background-size: cover;
        border: 1px solid transparent;
        border-radius: 3px;
        margin: 3px;
        cursor: pointer;

        .svg-icon{
            background-color: #002B4A;
            pointer-events: none;
            width: 28px;
            height: 28px;
            mask-repeat: no-repeat;
            mask-size: contain;
            mask-position: center;
            margin: 2px;
        }
    }
    > div[data-selected="true"]{
        background-color: #002B4A;

        .svg-icon{
            background-color: #fff;
        }

    }
    > div:hover{
        background-color: #002B4A;
        filter: brightness(1.5);

        .svg-icon{
            background-color: #fff;
        }
    }
}

.thredds-panel-layer li.thredds-panel-sublayer[wms-selector].active .wms-selector-time{
    display: inline;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;

    .selector-calendar{
        margin: 0 auto;
        border-radius: 4px;
        border: 2px solid rgba(0, 0, 0, 0.2);
        width: fit-content;
        display: flex;
        pointer-events: none;
        
        > input{
            outline: none;
            border: unset;
            padding: 7px 10px;
            width: 126px;
            text-align: right;
            padding-left: 36px;
            cursor: pointer;
            pointer-events: all;
        }
    }

    .selector-calendar:before{
        content: '';
        position: absolute;
        display: block;
        width: 30px;
        height: 30px;
        background-image: url(svg/calendar.svg);
        background-position: center;
        background-repeat: no-repeat;
        pointer-events: none;
    }

    .qs-datepicker-container{
        position: fixed;
        top: 249px !important;
        left: 11px !important;
        width: 22rem;
        pointer-events: all;
    }
    .qs-datepicker-container.qs-hidden{
        pointer-events: none;
    }
}

.thredds-panel-layer li.thredds-panel-sublayer .legend-palettes {
    display: none;
    opacity: 0.5;
}

.thredds-panel-layer li.thredds-panel-sublayer.active .legend-palettes {
    opacity: 1;
}

.thredds-panel-layer li.thredds-panel-sublayer.show-palette .legend-palettes {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
}

.thredds-panel-layer li.thredds-panel-sublayer.show-palette .legend-palettes div {
    flex-basis: 20%;
}

.thredds-panel-layer li.thredds-panel-sublayer.show-palette .legend-palettes div div {
    width: 34px;
    height: 62px;
    background-size: contain;
    margin: 4px auto;
    border: 4px solid white;
}

.thredds-panel-layer li.thredds-panel-sublayer.show-palette .legend-palettes div.active-palette div {
    border: 4px solid red;
}

.thredds-panel-layer li.thredds-panel-sublayer.show-palette .legend-palettes div:not(.active-palette):not(.style-selector) div:not(.style-check):not(.style-name):hover {
    border: 4px solid blue;
    cursor: pointer;
}

.thredds-panel-layer li.thredds-panel-sublayer .legend-palettes div.style-selector {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
}

.thredds-panel-layer li.thredds-panel-sublayer .legend-palettes div.style-selector div[data-style] {
    display: flex;
    flex-basis: 30%;
    margin: 0;
    width: unset;
    height: unset;
}

.thredds-panel-layer li.thredds-panel-sublayer .legend-palettes div.style-selector .style-check {
    width: 20px;
    height: 20px;
    flex-basis: unset;
    margin: unset;
    border: 1px solid black;
    position: relative;
    cursor: pointer;
}

.thredds-panel-layer li.thredds-panel-sublayer .legend-palettes div.style-selector .style-check:hover {
    background-color: #fcbaba;
}

.thredds-panel-layer li.thredds-panel-sublayer .legend-palettes div.style-selector div.active-style .style-check:after {
    content: "\2713";
    color: red;
    position: absolute;
    top: -2px;
    left: 4px;
    font-size: 16px;
    font-weight: bold;
}

.thredds-panel-layer li.thredds-panel-sublayer .legend-palettes div.style-selector .style-name {
    flex-basis: unset;
    display: block;
    margin: 0;
    height: auto;
    width: 100%;
}

.thredds-container-panel .thredds-panel-group .service-name {
    background-color: #fafafa;
    font-weight: bold;
    font-size: 14px;
    padding: 6px;
    cursor: pointer;
    border: 1px solid #ebebeb;
    /* width: 301px; */
}

.thredds-container-panel .thredds-panel-group .folder-name {
    background-color: #fafafa;
    font-weight: bold;
    font-size: 12px;
    padding: 6px;
    cursor: pointer;
    border: 1px solid #ebebeb;
    position: relative;
    padding-right: 26px;
}

.thredds-container-panel .thredds-panel-group .folder-name .download-nc {
    background-image: url(../resources/svg/download.svg);
    background-repeat: no-repeat;
    background-size: 56%;
    background-position: center;
    width: 26px;
    height: 26px;
    position: absolute;
    right: 2px;
    top: 2px;
}

.thredds-container-panel .thredds-panel-group .folder-name .download-nc:hover {
    background-color: #e7e7e7;
}

.thredds-container-panel .thredds-panel-group .service-name:before,
.thredds-container-panel .thredds-panel-group .folder-name:before {
    display: block;
    float: left;
    content: "";
    width: 12px;
    height: 12px;
    background-image: url(svg/collapse.svg);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
    margin-top: 3px;
    margin-right: 8px;
    transform: rotate(-90deg);
}

.thredds-container-panel .thredds-panel-group.show-content .service-name:before,
.thredds-container-panel .thredds-panel-group.show-content .thredds-panel-layer.show-folder .folder-name:before,
.thredds-container-panel .thredds-panel-group.no-service .thredds-panel-layer.show-folder .folder-name:before {
    transform: rotate(0deg);
}

/* animation control */
#map .leaflet-bar-timecontrol {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s;
}

#map .leaflet-bar-timecontrol.show {
    opacity: 1;
    pointer-events: all;
}

#map .timecontrol-speed:before {
    content: unset;
}

#map .leaflet-bar-timecontrol .timecontrol-speed .speed {
    width: 38px;
    position: absolute;
    bottom: 0;
    right: 6px;
}

#map .leaflet-bar.leaflet-bar-horizontal.leaflet-bar-timecontrol.leaflet-control {
    background-color: #1f1f1f;
    height: 48px;
    padding: 2px;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-backward {
    border-radius: 50%;
    height: 24px;
    width: 24px;
    margin-top: 5px;
    position: relative;
    margin-left: 3px;
    margin-right: 3px;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-backward:before {
    position: absolute;
    top: -4px;
    left: 0;
    width: 20px;
    height: 20px;
    color: #007bc4;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-play {
    border-radius: 50%;
    height: 30px;
    width: 30px;
    margin-top: 2px;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-play:before {
    top: -1px;
    left: 1;
    color: #007bc4;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-forward {
    border-radius: 50%;
    height: 24px;
    width: 24px;
    margin-top: 5px;
    position: relative;
    margin-left: 3px;
    margin-right: 3px;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-forward:before {
    position: absolute;
    top: -4px;
    right: 0px;
    width: 20px;
    height: 20px;
    color: #007bc4;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-backward:hover,
#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-play:hover,
#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-forward:hover {
    background-color: #c9eeff;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-date,
#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-slider.timecontrol-speed {
    background-color: #1f1f1f;
    border: unset;
    color: white;
    margin-top: 2px;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-slider.timecontrol-dateslider {
    background-color: #1f1f1f;
    border: unset;
    margin-top: 2px;
    height: 100%;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-slider.timecontrol-dateslider .slider,
#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-slider.timecontrol-speed .slider {
    background-color: black;
    border: unset;
    height: 6px;
    margin-top: 12px;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-slider.timecontrol-dateslider .slider .knob,
#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-slider.timecontrol-speed .slider .knob {
    width: 6px;
    margin-top: -5px;
    height: 16px;
    cursor: pointer;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-slider.timecontrol-dateslider .slider .slider-barra {
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    background: #007bc4;
}

/* coordinates control */
#map .cursor-container {
    display: none;
    background-color: #1f1f1f;
    padding: 4px;
    border-radius: 3px;
    color: white;
    position: absolute;
    /*top: -13px;
    left: 68px;*/
    top: -34px;
    left: 126px;
    width: 334px;
    height: 22px;
    font-size: 12px;
    line-height: 15px;
}

#map .cursor-container.open {
    display: flex;
}

#map .cursor-container .coordinates-icon {
    background-image: url(svg/coordinates.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 24px;
    height: 24px;
    position: relative;
}

#map .cursor-container .coordinates-icon:after {
    content: "";
    width: 2px;
    height: 22px;
    background-color: white;
    position: absolute;
    right: -9px;
}

#map .cursor-container .coordinates-values {
    padding: 4px;
    margin: 0 14px;
}

#map .elevation-panel {
    display: none;
}

#map .thredds-panel-layer li.thredds-panel-sublayer.show-palette .legend-palettes input.reset-scale {
    flex-basis: 100%;
    border-radius: 3px;
    text-align: center;
    padding: 5px;
    margin: 0 10px 10px 0px;
    margin-left: 0;
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    background-color: #fafafa;
}

#map .thredds-panel-layer li.thredds-panel-sublayer.show-palette .legend-palettes input.reset-scale:hover {
    background-color: #e7e7e7;
}

#map .thredds-panel-layer li.thredds-panel-sublayer.show-palette .legend-palettes input.reset-scale[data-full-range="unset"],
#map .thredds-panel-layer li.thredds-panel-sublayer.show-palette .legend-palettes input.reset-scale[data-full-range="true"] {
    /*background-color: red;*/
    opacity: 0.3;
    pointer-events: none;
}

#map .thredds-panel-layer li.thredds-panel-sublayer.show-palette.active .legend-palettes input.reset-scale[data-full-range="false"] {
    /*background-color: green;*/
    pointer-events: all;
}

/* popup */
.leaflet-popup-content-wrapper {
    border-radius: 2px;
}

.leaflet-popup-content-wrapper .leaflet-popup-content {
    width: max-content !important;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-coords {
    color: #4f6178;
    font-size: 10px;
    font-weight: bold;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-time {
    font-size: 10px;
    color: #4f6178;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-value {
    margin-top: 5px;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-value span:nth-child(1) {
    font-weight: bold;
    color: #1f1f1f;
    font-size: 12px;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-value span:nth-child(2) {
    color: #1f1f1f;
    font-size: 12px;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-value span:nth-child(3) {
    color: #4f6178;
    font-size: 12px;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-row {
    display: flex;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-row .popup-column {
    width: 33%;
    position: relative;
    padding: 0 7px;
    box-sizing: border-box;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-row .popup-column:not(:last-child):after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: #4f6178;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-row .popup-column .arrow {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    background-image: url(../resources/svg/arrow-up.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-table .popup-row:nth-child(1) .popup-column {
    font-weight: bold;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-table {
    margin-top: 6px;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-row:first-child .popup-column {
    color: #1f1f1f;
    font-weight: bold;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .popup-table .deg {
    text-align: center;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .wms-selector-popup{
    .wms-popup-title{
        color: #003453;
        font-weight: 700;
        font-size: 20px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;

        img{
            width: 60px;
            height: 60px;
            border: 2px solid #007BC4;
            border-radius: 50%;
            margin-right: 12px;
        }

        .wms-popup-info{
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            flex-grow: 1;

            span:nth-child(2){
                color: #333;
                font-weight: 400;
                font-size: 12px;
            }
        }

        a.link-plataformas{
            width: 18px;
            height: 18px;
            background-image: url(../resources/svg/external-link.svg);
            background-repeat: no-repeat;
            background-size: contain;
            background-position: center center;
            margin-left: 12px;
            margin-bottom: 14px;
        }
    }
    .properties{
        border-top: 1px solid #D9D9D9;
        margin-top: 9px;
        padding-top: 5px;

        > span{
            display: block;
            margin-top: 19px;
            margin-bottom: 6px;
        }

        > span:nth-child(1){
            margin-top: 6px;
        }

        div{
            margin: 3px 0;
            display: flex;
            flex-wrap: wrap;
            align-items: center;

            span:nth-child(1){
                color: #003453;
                font-size: 14px;
                font-weight: 700;
                flex-grow: 1;
                margin-right: 8px;
            }
        }
    }
}

#map .leaflet-bar-timecontrol .animation-date-selector {
    display: inline-flex;
    margin: 6px 6px;
    float: left;
}

#map .leaflet-bar-timecontrol .animation-date-selector input {
    margin-right: 5px;
}

#map .leaflet-bar-timecontrol .animation-date-selector input[type="text"].datepicker-animation {
    padding: 4px;
    border: unset;
    outline: unset;
    text-align: right;
    background-color: #000000;
    color: #ffffff;
    width: 104px;
    position: relative;
    background-image: url(svg/calendar_white.svg);
    background-position: 4px;
    background-size: 14px;
    background-repeat: no-repeat;
    cursor: pointer;
}

#map .leaflet-bar-timecontrol .animation-date-selector .qs-datepicker-container {
    bottom: 46px !important;
    top: unset !important;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-date {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: unset;
}

#map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-slider.timecontrol-speed {
    height: 100%;
}

#map .leaflet-bar-timecontrol .animation-update-button {
    background-color: #007bc4;
    background-image: url(svg/reload.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 82%;
    border: unset;
    outline: unset;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

#map .leaflet-bar-timecontrol .animation-update-button:hover {
    background-color: #016099;
}

#map .leaflet-bar-timecontrol .qs-datepicker-container:after {
    content: "";
    position: absolute;
    transform: rotate(45deg);
    bottom: -7px;
    left: 24px;
    width: 12px;
    height: 12px;
    background-color: white;
    border-right: 1px solid grey;
    border-bottom: 1px solid grey;
}

#map .leaflet-bar-timecontrol .qs-datepicker-container {
    overflow: unset;
}

/* calendar */
.qs-datepicker-container .qs-datepicker .qs-controls {
    background-color: white;
}

.qs-datepicker-container .qs-datepicker .qs-controls .qs-month-year span {
    color: #007bc4;
    font-weight: 700;
}

.qs-datepicker-container .qs-arrow.qs-left:after {
    border-right-color: #007bc4;
}

.qs-datepicker-container .qs-arrow.qs-right:after {
    border-left-color: #007bc4;
}

.qs-datepicker-container .qs-arrow:hover.qs-left:after {
    border-right-color: #0073b6;
}

.qs-datepicker-container .qs-arrow:hover.qs-right:after {
    border-left-color: #0073b6;
}

.qs-datepicker-container .qs-month-year:hover {
    border-bottom: 1px solid #007bc4;
}

.qs-datepicker-container .qs-arrow:hover {
    background: unset;
}

.qs-datepicker-container .qs-datepicker .qs-day {
    font-weight: 400;
    color: #4f6178;
    font-size: 14px;
}

.qs-datepicker-container .qs-datepicker .qs-num {
    font-weight: 400;
    font-size: 14px;
}

.qs-datepicker-container .qs-overlay {
    background: rgba(0, 0, 0, 0.02);
}

.qs-datepicker-container .qs-overlay .qs-overlay-month {
    color: #000;
}

.qs-datepicker-container .qs-overlay .qs-close {
    color: #000;
}

.qs-datepicker-container .qs-overlay .qs-submit {
    display: none;
}

.qs-datepicker-container .qs-overlay-year {
    outline: unset;
}

.qs-datepicker-container .qs-overlay .qs-overlay-year {
    border-bottom: 1px solid grey;
    margin: 0 auto;
    color: #000;
}

/* hide directories */
#map .thredds-panel .thredds-panel-group.no-directories .thredds-panel-layer {
    padding: 0;
}

#map .thredds-panel .thredds-panel-group.no-directories .thredds-panel-layer {
    max-height: unset;
}

.thredds-panel .thredds-container-panel .thredds-panel-group.no-directories .folder-name {
    display: none;
    max-height: unset;
}

.thredds-panel .thredds-container-panel .thredds-panel-group.no-directories .service-name {
    display: none;
}

.thredds-panel .thredds-container-panel .thredds-panel-group.no-service .service-name {
    display: none;
}

#map .thredds-panel .thredds-panel-group.no-directories .thredds-panel-layer li.thredds-panel-sublayer {
    opacity: unset;
}

/* dynamic animation player */
#map .leaflet-bar-timecontrol.dynamic input[type="text"] {
    display: none;
}

#map .leaflet-bar-timecontrol.dynamic .leaflet-control-timecontrol.timecontrol-slider.timecontrol-speed {
    display: none;
}

#map .leaflet-bar-timecontrol.dynamic .animation-update-button {
    display: none;
}

/* popups distances */
.leaflet-popup-content .popup-distance {
    list-style: none;
    padding: 0;
    margin: 5px 10px;
}

.leaflet-popup-content .popup-distance li {
    display: flex;
}

.leaflet-popup-content .popup-distance li span:nth-child(1) {
    font-weight: 700;
}

.leaflet-popup-content .popup-distance li span:nth-child(2) {
    font-weight: 400;
    display: block;
    width: 100%;
    text-align: right;
    min-width: 86px;
}

/* popup download */
.download-popup-panel .popup-download-title {
    margin: 10px 0;
    color: #007bc4;
    font-size: 14px;
    font-weight: 700;
}

.download-popup-panel .download-popup-calendar {
    display: flex;
}

.download-popup-panel .download-popup-calendar span {
    margin: 2px 18px;
    font-size: 14px;
}

.download-popup-panel .download-popup-calendar .input-container input.download-datepicker {
    border: unset;
    height: 30px;
    background-color: #f6f6f6;
    color: #4f6178;
    cursor: pointer;
    outline: unset;
    padding-left: 40px;
}

.download-popup-panel .download-popup-calendar .input-container:before {
    content: "";
    background-image: url(svg/calendar-gray.svg);
    background-repeat: no-repeat;
    background-position: center;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.download-popup-panel .download-popup-options div {
    margin-top: 10px;
}

.download-popup-panel .custom-bbox {
    border: 1px solid #007bc4;
    color: #007bc4;
    background-color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
    margin-top: 20px;
    float: right;
}

.download-popup-panel .custom-bbox:hover {
    background-color: #e7e7e7;
}

.download-popup-panel .current-bbox {
    border: 1px solid #007bc4;
    color: #fff;
    background-color: #007bc4;
    font-size: 12px;
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
    margin-top: 20px;
    float: right;
    margin-left: 8px;
}

.download-popup-panel .current-bbox:hover {
    background-color: #06639b;
}

.download-popup-panel .clear {
    clear: both;
}

/* remove elements */
.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
}

/* service link */
.thredds-panel .thredds-container-panel .thredds-panel-group .service-name a.link-catalog {
    width: 18px;
    height: 18px;
    position: absolute;
    right: 2px;
    top: 2px;
    background-image: url(../resources/svg/external-link.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.thredds-panel .thredds-container-panel .thredds-panel-group .service-name a.link-catalog:hover {
    background-color: #e7e7e7;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .show-full-legend {
    position: absolute;
    top: 6px;
    right: -20px;
    width: 14px;
    height: 14px;
    background-image: url(../resources/svg/info-circle.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .show-full-legend:hover {
    background-color: #f4f4f4;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .full-legend {
    background-color: white;
    background-position-y: center;
    background-position-x: left;
    background-size: auto;
    background-repeat: no-repeat;
    height: 516px;
    width: 92px;
    position: fixed;
    top: 6px;
    left: 372px;
    border-radius: 3px;
    display: none;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .full-legend.show {
    display: block;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .full-legend .full-legend-close {
    font: 16px/14px Tahoma, Verdana, sans-serif;
    color: #c3c3c3;
    text-decoration: none;
    font-weight: 700;
    float: right;
    padding: 2px 2px;
    cursor: pointer;
}

.thredds-panel-layer li.thredds-panel-sublayer .thredds-legend .legend-container .full-legend .full-legend-close:hover {
    color: #999;
}

.leaflet-bottom .leaflet-control-scale {
    top: -28px;
}

#map.notime select.datepicker-time,
#map.notime select.plot-datepicker-time {
    display: none;
}

#map.notime .leaflet-control-container .leaflet-top.leaflet-left .datepicker-container .datepicker-input {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

#map .leaflet-bar-timecontrol.dynamic .leaflet-control-timecontrol.timecontrol-play{
    display: none;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .upload-popup-panel{
    text-align: center;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .upload-popup-panel>div{
    display: flex;
    margin: 6px 0px;
}
.leaflet-popup-content-wrapper .leaflet-popup-content .upload-popup-panel>div label{
    flex-grow: 1;
    margin-right: 18px;
    text-align: left;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .upload-popup-panel select{
    outline: unset;
}

.leaflet-popup-content-wrapper .leaflet-popup-content .upload-popup-panel>input{
    margin-top: 8px;
}

#map .leaflet-responsive-container{
    position: absolute;
    z-index: 1000;
    pointer-events: none;
    top: 0;
    right: 0;
    margin-top: 10px;
    margin-right: 10px;
    border-radius: 4px;    
    border: 2px solid rgba(0, 0, 0, 0.2);
}

#map .leaflet-responsive-controls{
    display: none;    
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 4px;    
    background-image: url(images/options.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
    cursor: pointer;
    pointer-events: all;
}

/* download */
.download-status {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 999999999999999999;
    background-color: #FFF;
    padding: 10px 16px;
    border: 1px solid #000;
    margin: -1px;
}
.download-status .download-loader{
    position: relative;
    height: 6px;
    width: 100px;
    border: 1px solid #000;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.02);
}
.download-status .download-loader:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: #0a59d1ed;
    width: 0;
    height: 100%;
    border-radius: 3px;
    animation: download 1.3s ease-in-out infinite;
}

@keyframes download {
    50% {
        width: 100%;
    }    
    100% {
        width: 0;
        right: 0;
        left: unset;
    }
}

/* responsive */
@media (max-width: 432px) {
    header > #banner > a > img{
        max-width: 100%;
    }
    #map  .cursor-container.open{
        display: none;
    }
    #map .leaflet-responsive-controls{
        display: block;
    }
    
    #map .thredds-panel.leaflet-control.show{
        position: absolute;
        top: 0;
        left: 0;
        max-width: calc(100vw - 4px);
        width: calc(100vw - 4px);
        margin: 0;
        padding: 0;
        z-index: 9999;
        outline: unset;
        box-shadow: unset;
        height: calc((100vh - 142px) - 40px - 4px);
        background-color: #fff;
    }

    #map .thredds-panel.leaflet-control.show .thredds-button{
        width: calc(100vw - 4px);
        max-width: calc(100vw - 4px);
    }

    #map .thredds-panel.leaflet-control.show .thredds-container-panel{
        width: calc(100vw - 4px);
        box-sizing: border-box;
    }

    #map .thredds-panel.leaflet-control.show .thredds-active-panel{
        width: calc(100vw - 4px);
        box-sizing: border-box;
    }

    #map .leaflet-top.leaflet-right{
        display: none;
    }

    #map .leaflet-top.leaflet-right.show{
        display: block;
        padding-top: 48px;
        /*margin-top: 48px;
        max-height: calc((100vh - 185.406px) - 28px - 26px - 48px);*/
        overflow-y: scroll;
        pointer-events: all;
        background-color: #bbbbbb7a;
        width: 100%;
        z-index: 9999;
        height: calc((100vh - 185.406px) - 44px);
        max-height: calc((100vh - 185.406px) - 44px);
    }

    #map .leaflet-top.leaflet-right > div{
        margin-top: 0;
        margin-bottom: 0;
        border-radius: unset;
    }

    #map .leaflet-top.leaflet-left{
        z-index: 9999;
    }
    
    #map .leaflet-bottom.leaflet-left{
        z-index: 999;
    }

    #map .leaflet-bottom.leaflet-right{
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
    }

    #map .leaflet-bar.leaflet-bar-horizontal.leaflet-bar-timecontrol.leaflet-control.show{
        margin: 0;
        padding: 0;
        border: unset;
        border-radius: unset;
        float: unset;
        height: auto;
        margin-bottom: 0;
        order: 2;
        width: 100%;
    }

    #map .leaflet-container .leaflet-control-attribution{
        order: 1;
    }

    #map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-slider.timecontrol-dateslider {
        margin: 0;
        float: none;
        height: 35px;
        padding: 2px 8px;
        display: flex;
        flex-wrap: wrap;
    }

    #map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-slider.timecontrol-dateslider >.slider{
        flex-basis: 50%;
    }

    #map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-slider.timecontrol-dateslider >a{
        flex-basis: 50%;
        width: 50%;
    }

    #map .leaflet-bar-timecontrol .leaflet-control-timecontrol.timecontrol-slider.timecontrol-speed {
        margin: 0;
        float: unset;
        height: 28px;
    }

    #map .thredds-panel.leaflet-control.show .thredds-active-panel .thredds-label .thredds-checkbox{
        padding: 0 6px;
        display: block;
        box-sizing: border-box;
        width: 28px;
        height: 20px;
    }

    #map .thredds-panel.show .thredds-active-panel .thredds-label .thredds-checkbox:before{
        left: 6px;
        top: -8px;
        font-size: 22px;
    }

    #map .plot-container[data-plot="true"] {
        max-height: calc(100vh - 182.406px);
    }

    #map .plot-container {
        height: calc(100vh - 182.406px);
    }

    #map .plot-container[data-minimize="true"] {
        max-height: 38px;
    }

    #map .plot-container div.plot .plot-options>.plot-datepicker {
        flex-wrap: wrap;
        padding: 4px;
    }

    #map .plot-container div.plot .plot-options>.plot-datepicker>.plot-datepicker {
        padding: 1px;
    }

    #map .leaflet-responsive-container.show{
        z-index: 99999;
        left: 0;
        right: unset;
        margin-left: 10px;
    }

    @keyframes show-panel {
        0% {
            max-width: calc(100vw - 4px);
            max-height: 0;
            padding: 10px 12px 6px 8px;
            margin: initial;
        }
    
        100% {
            max-height: calc(((100vh - 185.406px) - 28px - 26px)/2);
            max-width: calc(100vw - 4px);
            padding: 10px 12px 6px 8px;
            margin: initial;
        }
    }

    @keyframes show-panel2 {
        0% {
            max-height: 0;
            max-width: calc(100vw - 4px);
            padding: 1px;
        }
    
        100% {
            max-height: calc(((100vh - 185.406px) - 28px - 26px)/2);
            max-width: calc(100vw - 4px);
            padding: 1px;
        }
    }
}
.leaflet-tooltip{
    white-space: pre;
}
.wms-selector-time .qs-datepicker{
    .qs-num{
        border: 1px solid transparent;
    }
    .qs-num:not(.qs-disabled){
        border-color: red;
    }

    .qs-controls{
        .qs-arrow.qs-left{
            margin-left: 12px;
        }
        .qs-arrow.qs-right{
            margin-right: 12px;
        }
    }
}
.qs-datepicker[calendar-loading]{
    pointer-events: none;
}
.qs-datepicker[calendar-loading]:before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(1px);
    z-index: 10;
}
.qs-datepicker[calendar-loading]:after{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    margin-top: -14px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 11;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}