﻿:root {
    --ol-background-color: rgba(0,60,136,.5) !important;
    --ol-subtle-background-color: rgba(255,255,255,.4) !important;
    --ol-subtle-foreground-color: #fff !important;
    --ol-foreground-color: #fff !important;
    --info-size: 16.5px;
}

.form-check-input:checked[type=radio] {
    background-image: url('../lib/bootstrap/dist/css/form-check-input-radio-bg.svg') !important;
}

.form-select {
    background-image: url('../lib/bootstrap/dist/css/form-select-bg.svg') !important;
}


html {
    background-color: #e2e2e2;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%
}

body {
    background-color: #fff;
    color: #333;
    font-size: 14px;
    font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#map {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 0;
    min-height: 100vh;
    min-width: 100vw;
}

#ns-form {
    position: fixed;
    margin-top: 35px;
    max-width: 300px;
    z-index: 11;
    margin-left: 7px;
    display: block;
    float: left;
}

    #ns-form .ol-control {
        top: 5px;
    }

.ol-popup {
    display: none;
    position: absolute;
    background-color: white;
    padding: 0 15px 15px 10px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    min-width: 365px;
    box-shadow: 5px 5px 20px #182019;
    z-index: 3;
    max-height: 80vh;
    max-width: 60vw;
    flex-direction: column;
}

    .ol-popup:after, .ol-popup:before {
        top: 100%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }

    .ol-popup:after {
        border-top-color: white;
        border-width: 10px;
        left: 48px;
        margin-left: -10px;
    }

    .ol-popup:before {
        border-top-color: #cccccc;
        border-width: 11px;
        left: 48px;
        margin-left: -11px;
    }

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    right: 8px;
}

    .ol-popup-closer:after {
        content: "✖";
        font-weight: bold;
    }

#popup-content-objects {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1px;
}

div.popup-content-objects-title-value {
    font-weight: bold;
    font-size: 18px;
    color: darkorchid;
    word-break: break-word;
}

div.popup-position {
    font-size: 12px;
    margin-left: -5px;
}

div.popup-title {
    padding: 10px 0 8px 0;
    text-align: center;
}


.tab-pane {
    overflow: auto;
    padding-right: 25px;
}

#myTab {
    padding-top: 5px;
    margin-left: 5px;
}

    #myTab > li > button, #myTab > li > a {
        padding: 5px;
        font-size: 14px
    }

div.tab-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 5px;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-width: 1px;
    border-color: #DDDDDD;
    margin-left: 5px;
}

#tab-content-schema {
    overflow: hidden !important;
    padding: 5px !important;
}

    #tab-content-schema.active {
        display: flex !important;
        flex-direction: column;
    }

.schema-buttons {
    white-space: nowrap;
    padding-top: 5px;
}

div.tab-content a {
    font-weight: bold;
    overflow-wrap: break-word;
    word-break: break-word;
}

div.tab-content div.popup-content-attributes-value {
    font-weight: bold;
}

#schema-type {
    height: 30px;
    top: 2.5px;
    position: relative;
    border-radius: 4px;
    border: 1px #ccc solid;
    background-color: #fff;
    color: #333;
}

div.schema {
    overflow: hidden;
}

.schema-button {
    padding-left: 8px;
    padding-top: 3px;
    width: 40px;
    height: 30px;
}

.schema-img {
    padding-bottom: 5px;
}

div.checkbox-true {
    background-image: url('../img/true.png');
    background-position: 14px center;
    background-repeat: no-repeat;
}

div.checkbox-false {
    background-image: url('../img/false.png');
    background-position: 14px center;
    background-repeat: no-repeat;
}

ul.popup-content-pager {
    margin: 5px 0 0 5px;
}

li.popup-content-pager-previus {
    float: left;
    padding-bottom: 5px;
}

li.popup-content-pager-next {
    float: right;
    padding-bottom: 5px;
}

#pagerStart {
    order: 1;
}
#pagerPrevius {
    order: 2;
}
#pagerNext {
    order: 3;
}
#pagerEnd {
    order: 4;
}

div.word-break {
    word-break: break-all;
}


div.map-title-position {
    left: 0;
    top: 0;
}

div.map-title {
    position: absolute;
    background-color: rgba(0, 60, 136, 0.5);
    border: medium none;
    color: white;
    display: block;
    height: 30px;
    width: 100%;
    padding: 0 10px 0 80px;
    background-position: 2px center;
    background-image: url('../img/globema_logo_small.png');
    background-repeat: no-repeat;
    background-size: 65px;
    z-index: 10;
}

    div.map-title a {
        color: white;
        cursor: pointer;
        line-height: 30px;
        vertical-align: middle;
        text-align: left;
        text-decoration: none;
        font-weight: bold;
    }

.map-title-button {
    margin-top: 4px;
    float: right;
    top: 0;
    margin-right: 5px;
}

#refreshBtn {
    background-position: 3px center;
    background-image: url('../img/refresh.png');
    background-repeat: no-repeat;
    background-size: 13px;
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
    padding: 1px 5px 0 20px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.btn-primary {
    background-color: var(--ol-background-color) !important;
}

    .btn-primary:hover {
        background-color: rgba(0,60,136,.7) !important;
    }

    .btn-primary:active {
        background-color: rgba(0,60,136,1) !important;
    }

    .btn-primary:focus {
        box-shadow: none !important;
    }


.login-info {
    position: fixed;
    right: 0;
}

#loginInfoPanel {
    position: fixed;
    right: 5px;
    overflow: hidden;
    transition: 0.1s;
    max-height: calc(100% - 8em);
    max-width: calc(100% - 8em);
    display: flex;
    flex-direction: column;
    text-align: right;
    background-color: rgba(255,255,255,0.75);
    border-radius: 3px;
    border: 1px solid rgb(46, 109, 164);
    padding: 5px;
    top: calc(2em + 5px);
    padding-left: 5px;
    padding-right: 5px;
}

#loginInfoPanel.shrunk {
        height: 0;
        border-width: 0px;
        padding: 0;
    }

.geometryTools {
    position: fixed;
    left: 15px;
    right : 15px;
    bottom: 40px;
    overflow: hidden;
    max-height: calc(100% - 8em);
    max-width: calc(100% - 30px);
    display: flex;
    flex-direction: row;
    text-align: left;
    background-color: rgba(255,255,255,0.75);
    border-radius: 3px;
    border: 1px solid rgb(46, 109, 164);
    padding: 5px;
}

    #geometryTools button {
        margin: 10px;
        padding: 5px;
    }

#layerBtn {
    vertical-align: unset;
}

.user-button-img {
    width: 15px;
    height: 15px;
    vertical-align: top;
}

.user-button {
    background-color: #337ab7;
    border-color: #2e6da4;
    border-radius: 3px;
    padding: 0px;
    padding-top: 2px;
    border: 1px solid #2e6da4;
    margin-top: 4px;
    margin-right: 4px;
    line-height: 1.5;
    background-position: center;
    background-image: url('../img/account.png');
    background-repeat: no-repeat;
    background-size: 15px;
    width: 21px;
    height: 21px;
}

#search_button {
    padding: 0.1rem 0.75rem;
}

#addressSearchPanel .query {
    display: flex;
}

    #addressSearchPanel .query #Address {
        flex: 1;
    }
    #addressSearchPanel .query #search_button {
        flex: 0;
    }

.address-search-results {
    border-color: cornflowerblue;
    border-radius: 5px;
    border-style: none;
    background-color: white;
    max-height: 15em;
    overflow: auto;
}

.address-list {
    font-family: Tahoma, Arial;
    font-size: 14px;
    list-style-type: circle;
    padding-left: 20px;
}

    .address-list li {
        padding: 3px;
    }

#results {
    height: auto;
}

.buttonPanelWrapper {
    position: relative;
}

.searchPanel {
    position: absolute;
    top: -3px;
    left: 27px;
    overflow: hidden;
    transition: 0.2s;
    width: min(500px, calc(100vw - 27px - 1.375em));
    max-height: calc(100vh - 8em);
    display: flex;
    flex-direction: column;
}

    .searchPanel.shrunk {
        width: 0;
    }

    .searchPanel > .twitter-typeahead {
        display: flex !important;
        flex-direction: column;
        flex: 1;
        overflow: hidden;
    }

        .searchPanel > .twitter-typeahead > .tt-menu {
            flex: 1;
            max-height: none !important;
        }

.searchBox {
    border-color: cornflowerblue;
    border-radius: 5px;
    border-width: thin;
    border-style: solid;
    padding: 2px;
    background-color: white;
    margin-top: 2px;
    margin-right: 4px;
    margin-left: 2px;
    margin-bottom: 2px;
    min-width: 0px;
    outline: none;
    width: calc(100% - 6px) !important;
}

    .searchBox:focus {
        outline-color: cornflowerblue;
        outline-width: medium;
        outline-style: groove;
        outline-offset: 0;
    }

.ol-touch .searchPanel, .ol-touch #layerMenuWrapper {
    font-size: 1.315em;
}

.mode-button {
    padding-bottom: 2px;
}

.mode-button-img {
    width: 20px;
    height: 20px;
}

.mode-button.on {
    text-decoration: none !important;
    background-color: rgba(0,60,136,1) !important;
    color: #fff !important;
}

.attr-group {
    font-style: italic;
    color: #bbb;
    display: flex;
}

    .attr-group .group-text {
        flex: 0;
        margin-right: 0.5em;
        white-space: nowrap;
    }

    .attr-group .group-line {
        flex: 1;
        margin-top: 0.8em;
        border-top: 1px solid #ddd;
    }

    .attr-group .group-end-line {
        flex: 1;
        margin-top: 0.3em;
        margin-bottom: 0.3em;
        border-top: 1px solid #ddd;
    }

.tooltip {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    color: white;
    padding: 4px 8px;
    opacity: 0.7;
    white-space: nowrap;
    z-index: 2;
    font-size: 1.15em;
}

.tooltip-measure {
    opacity: 1;
    font-weight: bold;
}

.tooltip-static {
    background-color: #ffcc33;
    color: black;
    border: 1px solid white;
}

    .tooltip-measure:before,
    .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%;
    }

    .tooltip-static:before {
        border-top-color: #ffcc33;
    }

.tooltip .ol-popup-closer {
    position: relative !important;
    right: 0 !important;
    font-size: 1.1em;
    left: 0.3em;
    margin: 0 0.3em;
}

.tooltip.mobile-control a {
    color: white;
    font-size: 1.1em;
}

.mobile-control a.mc-finish {
    margin-left: 1em;
}

.mc-delete::after {
    content: "✖";
}

.mc-finish::after {
    content: "✔";
}

.twitter-typeahead {
    width: 100%;
}

.tt-query {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
    color: #999
}

.tt-menu {
    position: relative !important;
    border-radius: 5px;
    border-style: none;
    background-color: white;
    max-height: 15em;
    overflow: auto;
    padding: 4px 0;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

.tt-suggestion {
    padding: 3px 20px;
}

    .tt-suggestion:hover {
        cursor: pointer;
        color: #fff;
        background-color: #0097cf;
    }

    .tt-suggestion.tt-cursor {
        color: #fff;
        background-color: #0097cf;
    }

    .tt-suggestion p {
        margin: 0;
    }

#btnToggleLayers {
    margin-bottom: 5px;
}

#btnCurrentLoc {
    margin-top: 5px;
}

.curr-loc {
    opacity: 0.6;
    width: 40px;
    height: 40px;
    background-image: url('../img/current_loc_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
}

:root {
    --layersWidth: 200px;
    --maxDialogWidth: calc(100vw - 27px - 1.375em);
}

.expandableDialog {
    position: absolute;
    top: -3px;
    left: 27px;
    background-color: rgba(255,255,255,0.75);
    border-radius: 3px;
    border: 1px solid rgb(46, 109, 164);
    padding: 0;
    transition: 0.2s;
    overflow: hidden;
    max-height: 75vh;
}

    .expandableDialog.shrunk {
        max-width: 0px !important;
        padding: 0 !important;
        border-left-width: 0px;
        border-right-width: 0px;
    }

#layerMenuWrapper {
    display: flex;
    flex-direction: column;
    max-width: min(var(--maxDialogWidth), var(--layersWidth));
}

#layerMenuWrapper li {
    list-style: none;
    white-space: nowrap;
    width: fit-content;
}

    #layerMenuWrapper.shrunk #layerMenu {
        overflow: hidden;
    }

#layerMenu {
    margin: 0;
    padding-left: 1em;
    padding-right: 2em;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    overflow: auto;
}

    #layerMenu ul {
        padding-left: 1em;
        transition: 0.2s;
        max-height: 0px;
        overflow: hidden;
    }

    #layerMenu label {
        font-weight: normal;
        width: fit-content;
    }

    #layerMenu > li > label {
        font-weight: bold !important;
    }

    #layerMenu svg {
        height: 1em;
        width: 1em;
        vertical-align: middle;
        transition: 0.2s;
    }

    #layerMenu spacer {
        height: 1em;
        width: 1em;
        display: inline-block;
    }

    #layerMenu svg {
        cursor: pointer;
        fill: #555;
        height: 1em;
        width: 1em;
    }

        #layerMenu svg:hover {
            fill: black;
        }


    #layerMenu li.exp > svg {
        transform: rotate(90deg);
    }

    #layerMenu input {
        margin-right: 0.2em;
        cursor: pointer;
    }

    #layerMenu label {
        cursor: pointer;
        color: #444;
    }

        #layerMenu label img {
            width: 1em;
            margin-top: -0.2em;
            margin-right: 0.2em;
        }

        #layerMenu label:hover {
            color: black;
        }

#displayScale {
    color: black;
    font-weight: bold;
    padding-top: 0.2em;
    padding-bottom: 0.3em;
    padding-left: 1em;
    padding-right: 2em;
    border-bottom: 1px solid black;
    width: auto !important;
}

    #displayScale > span {
        margin-left: 0.3em;
        color: cornflowerblue;
    }

.ol-rotate {
    top: 2.5em;
    font-family: "Quattrocento Sans", sans-serif;
}

.ol-control {
    padding: 2px;
}

.ol-control button {
    font-size: 1.14em !important;
}

.ol-control button:hover {
    background-color: rgba(0,60,136,.7) !important;
}

    .ol-control button:disabled:hover {
        background-color: #999 !important;
    }

    .ol-control button:disabled {
        background-color: #999 !important;
    }


.ol-attribution ul {
    color: #000 !important;
}

.ol-attribution a {
    color: #337ab7 !important;
}

#external-url-pre {
    flex: 1;
}

#external-url > a {
    display: block;
    border: 1px solid transparent;
}

#tab-content-update {
}

    #tab-content-update label {
        display: block;
        font-size: 13px;
        font-weight: bold;
        margin-top: 10px;
        margin-bottom: 5px;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: #ddd;
    }

    #tab-content-update select {
    }

    #tab-content-update input {
        display: inline;
    }

        #tab-content-update input[type="checkbox"]:focus {
            outline-style: none;
        }

    #tab-content-update .update-buttons {
        margin-top: 20px;
        margin-bottom: 10px;
        margin-left: 5px;
    }

#new-update {
    padding-top: 0px;
    padding-bottom: 0px;
}

#update-attached-files {
    margin-bottom: 15px;
}

.updateTextArea {
    margin-bottom: 10px;
    margin-top: 10px;
    font-size: 0.8rem !important;
}

#updates-main .form-control {
    appearance: auto;
    font-size: 0.8rem !important;
}

#tab-trace img, #popup-tab-update img {
    padding: 2px;
}

#tab-content-trace .form-control {
    margin: 0.2rem 0;
}

#tab-content-trace .btn, #plotPanel .btn {
    margin: 0.4rem 0;
    padding: 0.2rem 0.5rem;
}

#trace-clear {
    margin-right: 0.5em !important;
}

.tooltip-title {
    font-weight:bold;
    font-size:1.1em;
    min-width: 11em;
    text-align:center;
}

.tooltip-row{
    display:table-row
}

.tooltip-cell {
    display: table-cell;
}

.tooltip-cell-value {
    display: table-cell;
    font-weight:bold;
    padding-left: 0.5em;
}

.tooltip-trace-end .ol-popup-closer {
    left: revert;
    right: 0.3em;
    top: 0.3em;
    position: absolute !important;
}

#webUpdatesPanel {
    width: min(500px, calc(100vw - 27px - 1.375em));
    max-width: min(calc(100vw - 27px - 1.375em), 500px);
    display: flex;
    flex-direction: column;
}

    #webUpdatesPanel.shrunk {
        max-width: 0px;
        border-left-width: 0px;
        border-right-width: 0px;
    }

    #webUpdatesPanel label {
        display: block;
        color: black;
        font-weight: bold;
        padding-top: 0.2em;
        padding-bottom: 0.3em;
        padding-left: 1em;
        padding-right: 2em;
        border-bottom: 1px solid black;
    }

    #webUpdatesPanel button {
        width: auto !important;
    }

#webUpdatesPanelNew {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 5px;
}

#updates-list-panel {
    overflow: auto;
    margin: 5px;
}

#updateSearchPanel {
    margin: 5px;
    padding: 5px;
    border: 1px solid gray;
}

#updateSearchPanel button {
    padding: 5px;
}

#new-free-update {
    padding-top: 0px;
    padding-bottom: 0px;
    margin-left: 5px;
}

#plotPanel {
    max-width: var(--maxDialogWidth);
    padding: 0.25em 0.75em;
    overflow:visible;
}

    #plotPanel.shrunk {
        overflow:hidden;
    }

    #plotPanel .form-check {
        margin-right: 0.5em;
    }

    #plotPanel .row {
        width: calc(min(25em, var(--maxDialogWidth) - 1.5em - 2px));
        margin-top: 0.2em;
    }

#plot-scale-wrapper {
    display:flex;
}

    #plot-scale-wrapper > span {
        display: inline-block;
        align-content: center;
        font-size: 1rem;
        margin-right: 0.5em;
    }

#plot-scale-combo input {
    margin: 0 -2em 0 0;
    padding-right: 2.75em;
}

#plot-scale-combo .dropdown-toggle {
    width: 2em;
    margin: 0;
    display: inline-block;
    border-radius: 0;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    height:auto;
}

    #plot-scale-combo .dropdown-toggle:hover, #plot-scale-combo .dropdown-toggle:focus {
        outline: none;
    }

    #plot-scale-combo .dropdown-menu {
        width: 100%;
    }

#plot-scale-combo .dropdown-item:active {
    background-color: var(--ol-background-color) !important
}

#plot-run.disabled, #plot-run.disabled:hover {
    background-color: #999 !important;
    text-decoration: none;
    border-color: #999;
}

#plot-spinner {
    color: var(--ol-background-color);
    height: 2rem;
    width: 2rem;
    margin: 0.4rem 0;
}

.ns-info {
    filter: opacity(0%);
    position: fixed;
    bottom: 0em;
    left: 0em;
    height: calc(var(--info-size) * 1.4);
    padding: calc(var(--info-size) * 0.2);
    display: flex;
    flex-direction: row;
    background-color: #fffa;
    color: #000a;
    border-top-right-radius: calc(var(--info-size) * 0.25);
}

    .ns-info img {
        flex: 0;
        object-fit: contain;
        width: var(--info-size);
        height: 100%;
        display: block;
    }

    .ns-info br {
        display: none;
    }

.ns-info-text {
    flex: 1;
    font-size: calc(var(--info-size) / 1.3);
    padding-left: 0.3em;
    line-height: calc(var(--info-size));
    height: 100%;
    align-content: center;
}

.ns-info.collapsed {
    height: calc(var(--info-size) * 2.2);
    padding: calc(var(--info-size) * 0.1);
    border-top-right-radius: calc(var(--info-size) * 0.5);
}

    .ns-info.collapsed img {
        width: calc(var(--info-size) * 2);
        cursor: pointer;
    }

    .ns-info.collapsed br {
        display: inline;
    }

    .ns-info.collapsed .ns-info-text {
        position: fixed;
        left: 0;
        bottom: calc(var(--info-size) * 2.3);
        padding: 0;
        width: 100vw;
        height: auto;
        font-size: calc(var(--info-size) * 1.2);
        line-height: calc(var(--info-size) * 1.3);
        display: none;
    }

    .ns-info.collapsed span {
        display: inline-block;
        bottom: calc(var(--info-size) * 2.3);
        padding: calc(var(--info-size) * 0.4);
        max-width: 100%;
        height: auto;
        background-color: #fffa;
        border-radius: calc(var(--info-size) * 0.25);
    }


.initial-hidden {
    display: none;
}
