﻿.panel {
    box-sizing: border-box;
    padding-top: 58px;
}

#layer-control {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    background-color: white;
    z-index: 10;
    padding-top: 60px;
    overflow-x: hidden;
}

#layer-control label{
    width:180px;
    text-overflow:ellipsis;
}

    #layer-control .list-group-item {
        border: none;
        padding-left: 25px;
    }

        #layer-control .list-group-item:hover {
            background-color: #f5f5f5;
        }

    #layer-control input:hover {
        cursor: pointer
    }

    #layer-control label:hover {
        cursor: pointer
    }

    #layer-control .list-group-item-header {
        position: relative;
        display: block;
        padding: .75rem 1.25rem;
        background-color: #fff;
        border: none;
        margin-left: 25px;
    }

.list-group-item-subitem {
    padding-left: 50px!important;
}

.custom-control-input {
    position: initial;
}

.collapse-layers-icon {
    cursor: pointer;
}

.rotated {
    transform: rotate(90deg);
    -ms-transform: rotate(90deg); /* IE 9 */
    -moz-transform: rotate(90deg); /* Firefox */
    -webkit-transform: rotate(90deg); /* Safari and Chrome */
    -o-transform: rotate(90deg); /* Opera */
}

#street-view {
    z-index: 3;
    height: 100vh;
    width: 50vw;
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    padding-top: 56px !important;
}

#pan {
    width: 100%;
    height: calc(100% - 50px);
}

/**
    Measurement tooltip CSS
*/
.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;
    }

/**
    Popup CSS
*/

.ol-popup {
    position: absolute;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    padding: 15px;
    bottom: 12px;
    left: -50px;
    min-width: 280px;
    -webkit-box-shadow: 0 16px 28px 0 rgba(0,0,0,0.22),0 25px 55px 0 rgba(0,0,0,0.21) !important;
    box-shadow: 0 16px 28px 0 rgba(0,0,0,0.22),0 25px 55px 0 rgba(0,0,0,0.21) !important;
}

    .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-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
}

    .ol-popup-closer:after {
        content: "✖";
    }


#popup-content {
    overflow-y: auto;
    max-height: 300px;
    margin-right: 10px;
}
/**
    Popup content css
*/

.popup-layer-name {
    font-size: 16px;
    font-weight: 700;
    padding: 3px;
}

    .popup-layer-name:hover {
        cursor: pointer;
    }

.popup-layer-details {
    padding: 3px;
}

.popup-layer-info {
    height: 24px;
    overflow-y: hidden;
}

.info-item {
    display: flex;
    flex-direction: row;
    padding: 2px;
}

.info-item-title {
    font-size: 14px;
    font-weight: 600;
    padding-left: 10px;
}

.info-item-body {
    font-size: 14px;
    padding-left: 5px;
}


#location-search-container, #municipality-search-container {
    position: absolute;
    width: 500px;
    height: auto;
    display: none;
    z-index: 11;
    background-color: #fff;
    top: 70px;
    left: calc(50vw - 250px);
}

.search-result-list {
    position: absolute;
    display: none;
    background-color: #fff;
    width: 100%;
    height:200px;
    z-index:12;
    overflow-y:scroll;
}

.search-result-item{
    padding-top:2px;
    padding-bottom:2px;
    padding-left:5px;
}
.search-result-item:hover{
    cursor:pointer;
    background-color:#e1e1e1;
}

#user-list-header {
    background-color: #f5f5f5;
}

.user-row:nth-child(odd) {
    background-color: #fafafa;
}

#user-list-container{
    border:1px solid #e1e1e1;
    border-radius:3px;
}

/*
    Analytics css
*/
.pt-70{
    padding-top:70px;
}

.s-hidden {
    visibility: hidden;
    padding-right: 10px;
}

.select {
    cursor: pointer;
    display: inline-block;
    position: relative;
    color: #495057;
    border-bottom: 1px solid #ced4da;
    width:100%;
}

.styledSelect {
    position: absolute;
    top: 0px;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    padding: 0 10px;
    font-weight: bold;
}

    .styledSelect:after {
        content: "";
        width: 0;
        height: 0;
        border: 5px solid transparent;
        border-color: #666 transparent transparent transparent;
        position: absolute;
        top: 9px;
        right: 6px;
    }

    .styledSelect:active,
    .styledSelect.active {
        background-color: #eee;
    }

.options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    margin: 0 0;
    padding: 0 0;
    list-style: none;
    background-color: white;
    -webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
    -moz-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
}

    .options li {
        padding: 0 6px;
        margin: 0 0;
        padding: 0 10px;
    }

        .options li:hover {
            background-color: #39f;
            color: white;
        }


.my-select {
    cursor: pointer;
    display: inline-block;
    position: relative;
    color: #495057;
    border-bottom: 1px solid #ced4da;
    width: 100%;
}
/*Arrow*/
    .my-select:after {
        content: "";
        width: 0;
        height: 0;
        border: 5px solid transparent;
        border-color: #666 transparent transparent transparent;
        position: absolute;
        top: 9px;
        right: 6px;
    }

    .my-select > ul {
        display: none;
        position: absolute;
        background-color: #fff;
        list-style-type: none;
        width: inherit;
        z-index: 999;
        padding:5px 5px;
        -webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
        -moz-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
        box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
    }
        .my-select > ul > li {
            padding: 4px 8px;
            color: #bdbdbd;
        }
            .my-select > ul > li:not([disabled]) {
            color: #4285f4;
        }
                .my-select > ul > li:not([disabled]):hover {
                    color: #fff;
                    background-color: #4285f4;
                    -webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
                    -moz-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
                    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
                }

.selected {
    color: #fff!important;
    background-color: #4285f4!important;
    -webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
    -moz-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
}

div[role=displayed]{
    font-weight:bold;
}

.flex-item{
    min-width:300px;
}

#details-modal-button {
    background-color: #fff;
    color: #4285F4;
    font-weight:bold;
    font-size:14px;
    margin:4px;

}
    #details-modal-button:hover {
        color: #0d47a1;
        cursor:pointer;
    }

#legend-opened {
    position: absolute;
    width: 250px;
    height: auto;
    background-color: #bbdefb;
    bottom: 10px;
    right: 10px;
    z-index: 50;
    -webkit-box-shadow: 0 16px 28px 0 rgba(0,0,0,0.22),0 25px 55px 0 rgba(0,0,0,0.21) !important;
    box-shadow: 0 16px 28px 0 rgba(0,0,0,0.22),0 25px 55px 0 rgba(0,0,0,0.21) !important;
}

    #legend-opened h6 {
        -webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
        -moz-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
        box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
    }

#legend-closed {
    padding:4px 6px;
    display:none;
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #fff;
    bottom: 10px;
    right: 10px;
    z-index: 50;
    -webkit-box-shadow: 0 16px 28px 0 rgba(0,0,0,0.3),0 25px 55px 0 rgba(0,0,0,0.28) !important;
    box-shadow: 0 16px 28px 0 rgba(0,0,0,0.3),0 25px 55px 0 rgba(0,0,0,0.28) !important;
}

    #legend-closed i {
        color: #33b5e5;
    }

        #legend-closed i:hover {
            cursor: pointer;
            color: #0099CC;
        }

    .legend-item-text {
        padding-top: 3px;
    }

#legend-opened img{
    height:32px!important;
    width:32px!important;
}

#analytics-selection{
    height:300px;
}

#chart-panel {
    overflow-y: auto;
    height:calc(100% - 300px)!important;
    overflow-x:hidden;
}

.tr-click:hover {
    cursor: pointer;
}

.highlight {
    background-color: #c9e5ff;
}
