﻿/* Info related */
.ol-popup {
    position: absolute;
    background-color: white;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
    border-radius: 0px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    min-width: 440px;
    background-image: var(--bg-image);
    cursor: default;
}

    .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-overlaycontainer-stopevent {
    z-index: 10 !important;
}

.ol-popup-content {
    max-height: 390px;
    overflow-y: auto;
}

.ol-popup-header {
    color: white;
    padding-left: 10px;
    padding-top: 2px;
    background-color: var(--main-color);
    width: 100%;
    height: 24px;
}

.ol-popup-closer {
    color: white;
    position: absolute;
    top: 2px;
    right: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: all 200ms;
}

    .ol-popup-closer:link {
        text-decoration: none;
    }

    .ol-popup-closer:visited {
        text-decoration: none;
    }

@media (hover: hover) {
    .ol-popup-closer:hover {
        text-decoration: none;
        color: var(--btn-color);
    }
}

.ol-popup-closer:active {
    text-decoration: none;
}

.info-header-layer {
    font-size: xx-small;
    color: var(--text-heading-color);
    margin-left: 10px;
    font-weight: bold;
    line-height: 0px;
}

.info-header {
    font-size: large;
    color: var(--text-heading-color);
    margin-left: 10px;
    font-weight: bold;
    margin-bottom: 5px;
}

.info-column-attr-name {
}

.info-column-attr-value {
    min-width: 60px;
    white-space: pre-line;
}

.info-images-container {
    display: flex;
    justify-content: center;
}

.info-images-pane {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.info-column-attr-image {
    text-align: center;
    flex: 0 0 calc(20% - 40px);
    object-fit: cover;
    cursor: pointer;
    width: 100%;
}

.info-column-attr-image--small {
    margin: 5px;
    width: 102px;
    height: 102px;
}

.table-condensed {
    font-size: small;
    margin-bottom: 0px;
    padding: 4px;
}

/* Buttons tool-tip */
.tooltip {
    position: fixed;
}

/* OL measure tooltip */
.tooltip-measure-base {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    color: white;
    padding: 4px 8px;
    white-space: nowrap;
    font-size: 8pt;
}

.tooltip-measure {
    opacity: 1;
    font-weight: bold;
}

.tooltip-static {
    font-size: 12px;
    background-color: var(--btn-color);
    color: white;
    border: 1px solid white;
}

    .tooltip-measure:before,
    .tooltip-static:before {
        border-top: 6px solid rgba(0, 0, 0, 0.8);
        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: var(--btn-color);
    }

/* Map legend */
.tobel-legend {
    background: white;
    padding: 6px;
}

    .tobel-legend .legend-title {
        text-align: center;
        margin-bottom: 5px;
        font-weight: bold;
        font-size: 90%;
    }

    .tobel-legend .legend-scale ul {
        margin: 0;
        margin-bottom: 5px;
        padding: 0;
        float: left;
        list-style: none;
    }

        .tobel-legend .legend-scale ul li {
            font-size: 80%;
            list-style: none;
            margin-left: 0;
            line-height: 18px;
            margin-bottom: 2px;
        }

    .tobel-legend ul.legend-labels li span {
        display: block;
        float: left;
        height: 16px;
        width: 30px;
        margin-right: 5px;
        margin-left: 0;
        border: 1px solid #999;
    }

    .tobel-legend ul.legend-labels li img {
        height: 30px;
        width: auto;
    }

    .tobel-legend .legend-source {
        font-size: 70%;
        color: #999;
        clear: both;
    }

    .tobel-legend a {
        color: #777;
    }

/* Map (OL) related */
.map {
    position: absolute;
    height: calc(100% - 50px);
    width: 100%;
}

.ol-zoom {
    left: unset;
    right: 8px;
}

.ol-zoom-extent {
    left: unset;
    right: 8px;
}

.ol-scale-line {
    left: 50%;
    transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    background: var(--main-color);
    opacity: 0.3;
}

.ol-full-screen {
    top: 100px;
}

.ol-attribution li {
    font-size: 9px;
}

.ol-attribution.ol-uncollapsible {
    height: 1.4em;
}

/* Loading indicator */
#progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 60, 136, 1);
    width: 0;
    transition: width 250ms;
}

/* Tree view */
.gj-tree-bootstrap-4 ul.gj-list-bootstrap li {
    font-size: 9pt;
    background-color: transparent;
}

    .gj-tree-bootstrap-4 ul.gj-list-bootstrap li.active {
        color: unset !important;
        background-color: unset !important;
    }

.list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus {
    color: unset;
    background-color: unset;
}

.tree-scroll-panel {
    height: 100%;
    overflow-y: auto;
}

.gj-icon.plus {
    font-size: 18px;
}

.gj-icon.minus {
    font-size: 18px;
}

ul.gj-list li [data-role="display"] {
    cursor: unset !important;
    font-weight: 600;
}

/* Search panel */
.search-panel {
    position: absolute;
    margin-top: 6px;
    right: 6px;
    border: none;
    border-width: 0px;
    z-index: 9;
}

.form-control {
    border-radius: 0;
    height: unset;
    padding: 6px 8px;
}

input[type=date].form-control {
    line-height: unset;
}

form.brutusin-form td.prop-name {
    vertical-align: bottom;
    font-size: 13px;
}

/* Symbology panel */
.stats-panel-wrapper {
    position: absolute;
    right: 4px;
    bottom: 22px;
    overflow: auto;
    min-width: 290px;
    z-index: 9;
}

.stats-panel {
    padding: 4px 8px;
    background-color: white;
    border: 1px solid var(--main-color);
    -webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
    border-radius: var(--border-radius);
}

.symbology-panel {
    position: absolute;
    right: 6px;
    bottom: 22px;
    overflow: auto;
    max-height: 290px;
    z-index: 9;
    border: 1px solid var(--main-color);
    -webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
}

/* The sidepanel menu */
.sidepanel {
    width: 0;
    position: fixed;
    z-index: 11;
    background-color: white;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-top: 60px;
    transition: 0.5s;
    background-image: var(--bg-image);
    cursor: default;
}

.sidepanel-left {
    height: calc(100% - 50px);
    top: 50px;
    left: 0;
    border-right: 1px solid #D0D0D0;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

    .sidepanel-left .closebtn {
        position: absolute;
        top: 0;
        right: 14px;
        margin-top: 6px;
        margin-left: 50px;
        padding: 6px;
        text-decoration: none;
        font-size: 25px;
        color: #818181;
        display: block;
        transition: 0.3s;
    }

.sidepanel-right {
    height: calc(100% - 50px);
    top: 50px;
    right: 0;
    border-left: 1px solid #D0D0D0;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

    .sidepanel-right .closebtn {
        position: absolute;
        top: 0;
        left: 14px;
        margin-top: 6px;
        margin-right: 50px;
        padding: 6px;
        text-decoration: none;
        font-size: 25px;
        color: #818181;
        display: block;
        transition: 0.3s;
    }

.controls-sidepanel {
    position: absolute;
    top: 56px;
    transition: 0.3s;
    width: 50px;
    overflow-x: hidden;
    overflow-y: hidden;
    z-index: 9;
    line-height: 50px;
}

.right-controls {
    transition: 0.5s;
    right: 0;
}

/* Street view */
.cursor-def {
    cursor: default !important;
}

.cursor-sv {
    cursor: url(../images/cursors/street-view-cursor.cur) 7.5 17.5, crosshair !important;
}

.cursor-help {
    cursor: help !important;
}

.cursor-info {
    cursor: url(../images/cursors/info-cursor.cur) 2 2, help !important;
}

.cursor-coordinates {
    cursor: crosshair !important;
}

/* Buttons */
.quick-search-btn {
    cursor: pointer;
    background: var(--main-color);
    color: white;
    border-radius: var(--border-radius);
    z-index: 11;
    padding: 9px 10px;
    float: right;
    width: 44px;
    height: 44px;
    outline: black;
    border: 1px solid white;
}

@media (hover: hover) {
    .quick-search-btn:hover {
        background-color: var(--main-color-dark);
    }
}

.base-map-panel {
    bottom: 0;
    width: 260px;
    text-align: center;
    box-shadow: 0 -1px 28px rgba(0,0,0,0.25), 0 -1px 10px rgba(0,0,0,0.22);
    background: white;
}

.base-map-btn {
    box-shadow: 0 -1px 28px rgba(0,0,0,0.25), 0 -1px 10px rgba(0,0,0,0.22);
    width: 64px;
    height: 64px;
    margin: 6px;
    display: block;
    float: left;
    outline: black;
    border: 2px solid white;
}

@media (hover: hover) {
    .base-map-btn:hover {
        border: 2px solid var(--main-color-dark);
    }
}

.selected-base-map-btn {
    border: 2px solid var(--main-color-dark);
}

.base-map-btn-active {
    border: 2px solid var(--btn-color);
}

.panel-btn {
    margin-top: 6px;
    cursor: pointer;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-width: 0;
    border: 1px solid #fff;
    border-radius: var(--border-radius);
    z-index: 12;
    padding: 10px 15px;
    height: 44px;
}

@media (hover: hover) {
    .panel-btn:hover {
        background-color: var(--main-color-dark);
    }
}

.info-row-btn {
    cursor: pointer;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-width: 0px;
    z-index: 11;
    border-radius: 2px;
    margin: 2px;
    margin-left: 0px;
    min-width: 28px;
}

.add-attribute-btn {
    cursor: pointer;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-width: 0px;
    z-index: 11;
    border-radius: 2px;
    width: 100%;
}

@media (hover: hover) {
    .info-row-btn:hover {
        background-color: var(--main-color-dark);
    }
}

.cad-btn,
#feature-table-cad-btn {
    width: 100%;
    border: none;
    border-radius: 60px;
    margin-bottom: 20px;
}

.cad-arrows {
    font-size: xx-large;
    margin: 0px 6px;
    color: var(--main-color);
    position: relative;
    top: 50%;
    transform: translate(0, -25%);
}

    .cad-arrows-disabled {
        color: lightgray !important;
    }

#buttons-side-panel-right button,
#buttonSearchTool,
#buttons-side-panel button,
#legend-toggler-wrapper button {
    border: none;
}

#buttonInfoTool {
    color: white
}

#search-input {
    border: 2px solid var(--main-color);
    border-radius: var(--border-radius) 0px 0px var(--border-radius);
}

#buttonSearchTool {
    border-radius: 0px var(--border-radius) var(--border-radius) 0px;
}

#quick-search-wrapper .autoComplete_wrapper {
    margin-top: 0px;
    margin-right: 0px;
}

.autoComplete_wrapper #search-input {
    height: 44px;
}

#cad-test-btn span,
#feature-table-cad-btn span {
    font-size: medium;
}

#cad-test-btn i,
#feature-table-cad-btn i {
    margin: 0 5px;
}

/* Text w separator line */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
}

    .separator::before, .separator::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #C0C0C0;
    }

    .separator::before {
        margin-right: .25em;
    }

    .separator::after {
        margin-left: .25em;
    }

.separator-no-text {
    display: flex;
    align-items: center;
    text-align: center;
    font-weight: 600;
    flex: 1;
    border-bottom: 1px solid #C0C0C0;
}

/* Dashboard */
.circle-tile {
    margin-bottom: 15px;
    text-align: center;
}

.circle-tile-heading {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 100%;
    color: #FFFFFF;
    height: 80px;
    margin: 0 auto -40px;
    position: relative;
    transition: all 0.3s ease-in-out 0s;
    width: 80px;
    font-size: medium;
    line-height: 75px;
    text-align: center;
}

.circle-tile-content {
    padding-top: 42px;
    padding-bottom: 3px;
}

.circle-tile-heading-small {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 100%;
    color: #FFFFFF;
    height: 60px;
    margin: 0 auto -25px;
    position: relative;
    transition: all 0.3s ease-in-out 0s;
    width: 60px;
    font-size: small;
    line-height: 58px;
    text-align: center;
}

.circle-tile-content-small {
    padding-top: 30px;
    padding-bottom: 2px;
}

.circle-tile-description {
    font-size: smaller;
}

.red {
    background-color: #E74C3C;
}

.green {
    background-color: #239B56;
}

.orange {
    background-color: #F5B041;
}

.gray {
    background-color: #808B96;
}

.blue {
    background-color: #2874A6;
}

.text-faded {
    color: rgba(255, 255, 255, 0.7);
}

.delta {
    text-align: center;
    line-height: 15px;
    background-color: #F5F5F5;
    border-radius: 2px;
    padding: 1px 4px 2px 4px;
    font-weight: 600;
    font-size: small;
    display: block;
    vertical-align: middle;
    margin-left: 8px;
}

/* Loading indicator */
.loading-indicator {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: white;
    background-image: var(--bg-image);
    z-index: 2000;
    border: 1px solid var(--main-color);
    padding-right: 10px;
}

/* Scale & coords bar */
.scale-coord-bar {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 11;
    width: 390px;
}

.scale-coord-bar__text-box {
    color: var(--main-color);
    width: 86px;
    min-height: 18px;
    outline: none;
    border-width: 0px;
    border-radius: 0px var(--border-radius) var(--border-radius) 0px;
}

.scale-coord-bar__item {
    margin: 0px 4px;
    background: var(--main-color);
    padding: 2px 2px 2px 8px;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--border-radius);
    width: auto;
    margin-top: 6px;
}

/* Video */
.video-control {
    width: 610px;
}

/* Alert modals */
.alert__image {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Text sizes */
.x-large-txt {
    font-size: x-large;
}

.large-txt {
    font-size: large;
}

.medium-txt {
    font-size: medium;
}

.small-txt {
    font-size: small;
}

.x-small-txt {
    font-size: x-small;
}

.almost-full-width {
    width: 99%;
}

.items-list-modal-header {
    color: white;
    background-color: var(--main-color);
}

.panel-heading-nav {
    border-bottom: 0;
    padding: 5px 0 0;
}

    .panel-heading-nav .nav {
        padding-left: 5px;
        padding-right: 5px;
    }

/* Responsive design */
@media (max-width: 480px) {
    .x-large-txt {
        font-size: large !important;
    }

    .large-txt {
        font-size: medium !important;
    }

    .stats-panel-wrapper {
        position: absolute;
        right: 4px;
        left: 4px;
        bottom: 22px;
        overflow: auto;
        min-width: 200px;
        z-index: 9;
        line-height: 40%;
    }

    .delta {
        text-align: center;
        line-height: 15px;
        background-color: #F5F5F5;
        border-radius: 0px;
        padding: 1px 1px 2px 1px;
        font-weight: 600;
        font-size: small;
        display: block;
        vertical-align: middle;
        margin-left: 8px;
    }

    .content-to-hide-480 {
        display: none;
    }

    .ol-popup {
        min-width: 290px;
    }

    .sidepanel-left {
        max-width: 260px;
    }

    .controls-sidepanel {
        max-width: 310px;
        min-width: 50px;
    }

    .video-control {
        width: 400px;
    }

    .info-header {
        font-size: medium;
    }

    .table-condensed {
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .content-to-hide {
        display: none;
    }

    .sidepanel-left {
        max-width: 260px;
    }

    .controls-sidepanel {
        max-width: 310px;
        min-width: 50px;
    }

    .video-control {
        width: 300px;
    }

    .panel-btn {
        width: 44px;
    }
}

@media (min-width: 720px) {
    .table-info-row {
        width: 600px;
    }
}

@media only screen and (max-width: 600px) {
    .autoComplete_wrapper > input {
        width: 14rem !important;
    }
}
