.page_webgis .container-fluid {
    max-width: 98%;
}

.ol-tooltip {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    color: white;
    padding: 4px 8px;
    opacity: 0.7;
    white-space: nowrap;
    font-size: 12px;
}

.ol-tooltip-measure {
    opacity: 1;
    font-weight: bold;
}

.ol-tooltip-static {
    background-color: #ffcc33;
    color: black;
    border: 1px solid white;
}

.ol-tooltip-measure:before,
.ol-tooltip-static:before {
    border-top: 6px solid rgba(0, 0, 0, 0.5);
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    content: "";
    position: absolute;
    bottom: -6px;
    margin-left: -7px;
    left: 50%;
}

.ol-tooltip-static:before {
    border-top-color: #ffcc33;
}

.ol-control button {
    cursor: pointer;
}

.ol-control button i {
    font-size: 13px;
}

.ol-zoom {
    top: .5em;
    left: .5em;
}

/*.ol-reset-tool {*/
/*    top: 5.5em;*/
/*    left: .5em;*/
/*}*/

.ol-select-tool {
    top: 5.9em;
    left: .5em;
}

.ol-reset-tool {
    top: 7.6em;
    left: .5em;
}

.ol-delete-tool {
    top: 7.6em;
    left: .5em;
}

.ol-delete-all-tool {
    top: 9.3em;
    left: .5em;
}

.ol-draw-line {
    top: 11.4em;
    left: .5em;
}

.ol-draw-polygon {
    top: 13.1em;
    left: .5em;
}

.ol-draw-circle {
    top: 14.8em;
    left: .5em;
}

.ol-measure-linear {
    top: 16.9em;
    left: .5em;
}

.ol-measure-area {
    top: 18.6em;
    left: .5em;
}

.ol-open-tool {
    top: 20.7em;
    left: .5em;
}

.ol-save-tool {
    top: 22.4em;
    left: .5em;
}


#map {
    width: 100%;
    min-height: 800px;
    height: 100%;
}

.webgis-map {
    /*background-color: rgba(0, 60, 136, .7);*/
    margin: inherit;
    position: relative;
    overflow: hidden;
}

.webgis-control .layerConfigsSidebar {
    background-color: #009ad3;
    width: 100% !important;
    min-height: 100%;
    transition: 0.3s;
}

.layer_legend_mobile .layerConfigsSidebar {
    background-color: rgba(0, 60, 136, .7);
    position: absolute;
    /*width: 0% !important;*/
    right: 0;
    top: 0;
    min-height: 100%;
    transition: 0.3s;
}

.view_layer_button {
    position: absolute;
    top: 0px;
    left: -50px;
    background-color: rgba(0, 60, 136, .7);
    width: 50px;
    height: 50px;
    border-radius: 0px 0px 0px 10px;
}

.view_layer_button i {
    font-size: 25px;
    margin-left: 10px;
    margin-top: 13px;
    cursor: pointer;
    color: white;
}

.layerConfigsSidebar h4, .legendSidebar h4 {
    text-align: center;
    margin: 0 10px 10px;
    color: white;
}

.layerConfigsSidebar .row.layer {
    margin: 0px;
    position: relative;
}

.row.layer .drag-icon {
    width: 15px;
    text-align: center;
    margin-right: 5px;
    float: left;
}

.row.layer .drag-icon .fas {
    font-size: 18px;
    margin-top: 5px;
}

.layerTitle {
    font-weight: bold;
    margin-top: 1px;
    float: left;
}

.layerTitle .layerTitle {
    margin-left: 5px;
    float: right;
    font-size: 12px;
    margin-top: 4px;
}

input.opacity {
    width: 100%;
}

.param-title {
    font-size: 12px;
}

.layerConfigs {
    margin-top: 50px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: normal;
    font-size: 16px;
}

ul.sortable {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.sortable li {
    margin: 0 5px 5px 5px;
    padding: 5px;
}

.ui-state-highlight {
    height: 45px;
}

.ui-state-disabled {
    opacity: 1;
    background: rgba(0, 154, 211, 1);
    color: white;
    height: 35px;
}

.ui-state-disabled .row.layer {
    height: 30px;
}

.ui-state-disabled .row.layer .layerTitle {
    margin-top: 0px;
}

.ck-button {
    margin: 4px;
    background-color: #EFEFEF;
    border-radius: 4px;
    border: 1px solid #D0D0D0;
    overflow: auto;
    float: left;
    margin-top: 6px;
    clear: both;
}

.ck-button label {
    float: left;
    margin-bottom: 0px;
}

.ck-button label span {
    text-align: center;
    padding: 3px 0px;
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
}

.ck-button label input {
    position: absolute;
    visibility: hidden !important;
}

.ck-button input:checked + span {
    background-color: rgba(0, 154, 211, 1);
    color: #fff;
    padding: 5px 10px;
}

.params-group {
    float: left;
}

.params-group .ck-button {
    margin-left: 0px;
}

a.skiplink {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

a.skiplink:focus {
    clip: auto;
    height: auto;
    width: auto;
    background-color: #fff;
    padding: 0.3em;
}

#map:focus {
    outline: #4A74A8 solid 0.15em;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc !important;
}

.visibility-toggle {
    position: absolute !important;
    right: 5px;
    top: 0;
}

.layer-extra-config {
    width: 100%;
}

.layer-extra-config .card-body {
    padding: 5px;
}

.sublayer-control {
    float: left;
    width: 100%;
    /*height: 25px;*/
    margin-bottom: 10px;
}

.sublayer-control input.opacity {
    /*width: auto;*/
    margin-right: 10px;
}

.sublayer-control .param-title {
    float: left;
    font-weight: 500;
    max-width: 40%;
    min-width: 20px;
}

.sublayer-control.select-layer .param-title {
    width: auto;
}

@media (max-width: 1200px) {
    .sublayer-control.select-layer .param-title {
        clear: both;
        margin-bottom: 15px;
    }
}

.sublayer-control input.opacity {
    float: right;
    /*clear: both;*/
    /*margin-right: 20px;*/
    max-width: 25%;
}

.sublayer-control .toggle {
    float: right;
    /*width: 20% !important;*/
}

.sublayer-control select {
    font-size: 12px;
    border: none;
    border-bottom: 1px solid gainsboro;
    margin-left: 10px;
    float: left;
    letter-spacing: 2px;
    font-weight: 900;
}

.row.layer .inline-range {
    position: absolute !important;
    width: 25%;
    right: 70px;
    height: 25px;
}

.layer-extra-config {
    overflow: hidden;
}

.webgis-control .legendSidebar {
    background-color: #009ad3;
    /*position: absolute;*/
    right: 15px;
    width: 100% !important;
    top: 55px;
    min-height: 100%;
    transition: 0.3s;
}

.layer_legend_mobile .legendSidebar {
    background-color: rgba(0, 60, 136, .7);
    position: absolute;
    right: 0;
    /* width: 100% !important; */
    top: 0;
    min-height: 100%;
    transition: 0.3s;
}


.legendSidebar .view_layer_button {
    /*position: absolute;*/
    top: 0;
    left: -50px;
    background-color: rgba(0, 60, 136, .7);
    width: 50px;
    height: 50px;
    border-radius: 0 0 0 10px;
}

.view_layer_button.active, .view_legend_button.active {
    background-color: #009ad3;
}

@media (max-width: 767px) {
    /*.layerConfigsSidebar .view_layer_button {*/
    /*    display: none;*/
    /*}*/
}

.legendSidebar .view_layer_button i {
    font-size: 25px;
    margin-left: 10px;
    margin-top: 13px;
    cursor: pointer;
    color: white;
}

/*.legendSidebar h4 {*/
/*    text-align: center;*/
/*    margin: 10px;*/
/*    color: white;*/
/*}*/

.legendSidebar ul {
    list-style: none;
}

.legendSidebar ul li {
    float: left;
    text-align: center;
    margin-right: 15px;
    width: 40%;
    margin-bottom: 20px;
}

.legendSidebar ul li h6 {
    color: white;
    height: 40px;
}

.legendSidebar ul li h6.align-middle {
    line-height: 40px;
}

.view_legend_button {
    position: absolute;
    top: 60px;
    left: -50px;
    right: auto;
    background-color: rgba(0, 60, 136, .7);
    width: 50px;
    height: 50px;
    border-radius: 0 0 0 10px;
}

.layer_legend_mobile .view_legend_button {
    position: relative;
    top: 25px;
    right: 50px;
    left: auto;
    background-color: rgba(0, 60, 136, .7);
    width: 50px;
    height: 50px;
    border-radius: 0 0 0 10px;
}

.view_legend_button i {
    font-size: 25px;
    margin-left: 22px;
    margin-top: 13px;
    cursor: pointer;
    color: white;
}

.legendSidebar img {
    max-height: 250px;
}

.hidden {
    display: none !important;
}

.my_colorpicker {
    width: 30px;
    border: none;
    padding: 0;
    margin-left: 10px;
    height: 30px;
    margin-top: -10px;
}

.drifters .param-title {
    max-width: 48%;
    float: left;
}

.drifters .sublayer-control .toggle {
    float: left;
    max-width: 48%;
}

.drifters .sublayer-control input.opacity {
    float: left;
    max-width: 48%;
}

.drifters .my_colorpicker {
    float: left;
}

.btn-add-buoy, .btn-add-buoy-all, .btn-hide-buoy-all {
    margin-left: 20px;
    font-weight: bold !important;
    cursor: pointer;
    text-transform: uppercase;
}

.params-filter {
    margin-bottom: 10px;
    margin-top: 10px;
}

.buoy-params {
    display: none;
}

.btn-remove-buoy {
    float: right;
    cursor: pointer;
    height: 22px;
    line-height: 22px;
    margin: 0px 10px;
    font-weight: 900;
}

.params-group:not(.params-filter):first-child {
    margin-top: 10px;
}

.layer_link {
    float: right;
    font-size: 10px;
    background-color: #7192bb;
    color: #fff;
    padding: 5px;
    margin-left: 3px;
    border-radius: 50%;
    cursor: pointer;
}

#webgis_external_link {
    background-color: #EFEFEF;
}

