﻿/*-------------------------------------------------*/
/*
    core/css/menu.css
*/
/*-------------------------------------------------*/
/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 12px;
}

.slider-label {
    color: black;
}

a, a.hover, a.visited {
    text-decoration: none;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(102,102,102,0.80);
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        display: table-cell;
        position: absolute;
        content: "";
        height: 8px;
        width: 8px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: black;
}

input:focus + .slider {
    box-shadow: 0 0 1px black;
}

input:checked + .slider:before {
    -webkit-transform: translateX(8px);
    -ms-transform: translateX(8px);
    transform: translateX(8px);
}

/*sidebar*/
.sidebar-wrapper {
    left: 0px;
}

.sidebar-wrapper {
    width: 320px; /*was 280px*/
    height: calc(100vh - 46px);
    max-height: calc(100vh - 46px);
    position: absolute;
    top: 0;
    left: 40px;
    display: none;
    z-index: 999;
}

.sidebar-content {
    max-height: calc(100%);
    height: calc(100%);
    overflow-y: auto;
    position: relative;
    top: 46px;
    background: white;
    opacity: 0.99;
    border: 1px solid silver;
}

    .sidebar-content.desktop {
        overflow-y: hidden;
    }

.sidebar-wrapper .sidebar-search .input-group {
    padding: 10px 20px;
}

/*--------------------sidebar-brand/range----------------------*/

.sidebar-wrapper .sidebar-brand {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    color: black !important;
}

    .sidebar-wrapper .sidebar-brand .layers {
        text-transform: uppercase;
        font-weight: bold;
        flex-grow: 1;
    }

    .sidebar-wrapper .sidebar-brand .close-sidebar #close-sidebar {
        cursor: pointer;
        font-size: 20px;
        color: black !important;
    }

/*-------------------- end sidebar-brand----------------------*/

.sidebar-wrapper .sidebar-menu, .sidebar-wrapper .sidebar-basemaps, .sidebar-wrapper .sidebar-range, .sidebar-wrapper .sidebar-search, .sidebar-wrapper .sidebar-tool {
    /*border-top: 1px solid black !important;*/
}

.sidebar-range {
    display: none;
}

.sidebar-wrapper .sidebar-menu {
    color: gray;
}

    .sidebar-wrapper .sidebar-menu ul li a i {
        border: 1px solid gray;
    }

.sidebar-wrapper ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar-wrapper a {
    text-decoration: none;
}

.sidebar-wrapper .sidebar-menu {
    padding-bottom: 5px;
}

    .sidebar-wrapper .sidebar-menu .header-menu span {
        font-weight: bold;
        font-size: 14px;
        padding: 15px 20px 5px 20px;
        display: inline-block;
    }

    .sidebar-wrapper .sidebar-menu ul li a {
        display: inline-block;
        width: 100%;
        text-decoration: none;
        position: relative;
        padding: 8px 30px 8px 20px;
    }

.sidebar-wrapper .sidebar-tool a {
    display: inline-block;
    width: 50%;
    text-decoration: none;
    position: relative;
    padding: 8px 30px 8px 20px;
}

    .sidebar-wrapper .sidebar-menu ul li a i, .sidebar-wrapper .sidebar-tool a i {
        margin-right: 10px;
        font-size: 12px;
        width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        border-radius: 50px;
        border: 1px solid gray;
    }

.sidebar-wrapper .sidebar-menu ul li a:hover > i::before {
    display: inline-block;
    animation: swing ease-in-out 0.5s 1 alternate;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown > a:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f105";
    font-style: normal;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    background: 0 0;
    position: absolute;
    right: 15px;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu ul {
    padding: 5px 0;
    max-height: 159px;
    overflow-y: auto;
}

.sidebar-submenu ul::-webkit-scrollbar, #addressDiv::-webkit-scrollbar {
    width: 10px;
}

.sidebar-submenu ul::-webkit-scrollbar-track, #addressDiv::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
.sidebar-submenu ul::-webkit-scrollbar-thumb, #addressDiv::-webkit-scrollbar-thumb {
    background: var(--main-bg-color);
    border-radius: 10px;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu .sidebar-main-li, #addressDiv {
    padding-left: 20px;
    font-size: 13px;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a:before {
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    font-style: normal;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-right: 10px;
    font-size: 8px;
}

.sidebar-wrapper .sidebar-menu ul li a span.label,
.sidebar-wrapper .sidebar-menu ul li a span.badge {
    float: right;
    margin-top: 8px;
    margin-left: 5px;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a .badge,
.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a .label {
    float: right;
    margin-top: 0px;
}

.sidebar-wrapper .sidebar-menu .sidebar-submenu {
    display: none;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown.active > a:after {
    transform: rotate(90deg);
    right: 17px;
}

.sidebar-wrapper,
.sidebar-wrapper .sidebar-brand > a,
.sidebar-wrapper .sidebar-dropdown > a:after,
.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a:before,
.sidebar-wrapper ul li a i,
.page-wrapper .page-content,
.sidebar-wrapper .sidebar-search input.search-menu,
.sidebar-wrapper .sidebar-search .input-group-text,
.sidebar-wrapper .sidebar-menu ul li a,
#show-sidebar,
#close-sidebar {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

    .sidebar-wrapper .sidebar-menu ul li a, .sidebar-wrapper .sidebar-tool a {
        color: rgb(102,102,102);
        font-weight: bold;
    }

    .sidebar-wrapper .sidebar-search .input-group-text {
        background: var(--main-bg-color);
    }

    .sidebar-wrapper .sidebar-search .input-group-text {
        color: #fff;
    }

    .sidebar-wrapper .sidebar-search input.search-menu {
        color: black !important;
        background-color: white;
    }

    .sidebar-wrapper .sidebar-search input.search-menu,
    .sidebar-wrapper .sidebar-search .input-group-text {
        border-color: transparent;
        box-shadow: none;
    }

/*sidenav*/
.sidenavbar {
    height: calc(100vh - 46px);
    width: 40px;
    position: absolute;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: var(--main-bg-color);
    overflow-x: hidden;
    padding-top: 16px;
    text-align: center;
}

    .sidenavbar a:hover {
        color: #f1f1f1;
        text-decoration: none;
    }

    .sidenavbar ul li a {
        font-size: 16px;
        display: block;
        color: white;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidenavbar ul.components li a i {
        margin-right: 0;
        display: block;
        font-size: 16px;
    }

/*Nav Bar
--------------------------------------------------------*/
.navbar-nav-menu {
    background-color: var(--main-bg-color) !important; /*Was #0b5584, Changed from #283179, to match DPS branded colors - #0b5584*/
}

.nav-dropdown-link {
    color: var(--main-bg-color) !important; /*Changed from #283179, to match DPS branded colors - #0b5584*/
}

.navbar-toggler {
    margin: 0px;
}

.navbar-menu-icons {
    color: white !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:active,
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
    color: #d5820d !important; /*Changed from #d5820d */
    background-color: transparent;
}

.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.active {
    color: #d5820d !important; /*Changed from #d5820d */
    background-color: transparent;
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: -10rem;
        margin-top: -6px;
    }

.navbar-nav li.dropdown-submenu:active > ul.dropdown-menu,
.navbar-nav li.dropdown-submenu:focus > ul.dropdown-menu {
    display: block;
}

.navbar-expand-md .navbar-nav .dropdown-menu {
    z-index: 1001;
}

/*opacity range slider*/
.rangeSlider {
    -webkit-appearance: none;
    width: 100%;
    height: 11px;
    background: #666666;
    outline: none;
    opacity: 1.0; /*0.6;*/
    border-radius: 50px;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

    .rangeSlider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        background: black;
        cursor: pointer;
        border-radius: 50px;
    }

.divOpacMenu {
    padding: 20px 20px;
    display: flex;
    align-items: center;
}

.ui-accordion-content {
    padding: 3px !important;
    background-color: var(--main-bg-light) !important; /*Color of accordion panel*/
}

.ui-state-active {
    background-color: darkgrey !important; /*Color of active accordion*/
    color: #333 !important;
    border: #333 !important;
}

/* Card -------------------------------------------------*/
.card {
    border: none;
    border-radius: 0;
    -webkit-box-shadow: 1px 0 20px rgba(0,0,0,.05);
    box-shadow: 1px 0 20px rgba(0,0,0,.05);
}

.col-md-3, .col-md-9, .col-md-8, .col-md-12, .col-md-4,
.col-md-6, col-sm-4, col-sm-8, col-sm-6, col-sm-12 {
    padding: 0px;
    width: auto;
}

.card-body {
    padding: 0px;
}
/* Override the default bootstrap behavior where horizontal description lists 
    will truncate terms that are too long to fit in the left column*/
.dl-horizontal dt {
    white-space: normal;
}

.disabledControl {
    pointer-events: none;
    background-color: lightgray
}

.accordionTabs {
    font-size: 12px;
    padding: 0px !important;
}

.noPadding {
    padding: 0px !important;
}

.accordionHTMLDiv {
    padding: 5px 15px;
}
