﻿* {
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Styles for search navigation */

.search-row {
    height: 2.5rem;
}

.search-form {
    max-width: 430px;
}

/* Disable html input clear button as it is not a standard and is not supported by all browsers*/

input[type=search]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

input[type=reset] {
    border: 1px solid #ced4da;
    border-radius: 5px;
    background-color: #fff;
    width: 40px;
    color: #2c3e97;
    font-size: 15px;
    font-weight: 600;
}

    input[type=reset]:hover {
        background-color: #f5f5f5;
    }

.selected-level {
    color: #2c3e97;
    font-weight: 600;
}

.checked-item {
    color: #2c3e97 !important;
    font-weight: 500;
    background-color: #e8ecff;
    border-radius: 5px;
}

.level {
    color: #2c3e97;
}

#search-results,
#organizations-list {
    width: 410px;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin-top: -0.5rem;
    margin-left: 1.4rem;
    position: absolute;
    z-index: 1022!important;
}

#organizations-list {
    margin-left: 28rem;
    width: 340px;
}

    #search-results ul,
    #organizations-list ul {
        list-style-type: none;
        padding-left: 5px;
        margin-bottom: 0;
    }

    #search-results li,
    #organizations-list li {
        padding: 1px 5px;
        border-radius: 5px;
    }

        #search-results li:focus,
        #organizations-list li:focus {
            outline: none;
        }

#search-results a {
    text-decoration: none;
    color: inherit;
}

#search-results .not-found {
    margin-left: 1rem;
    font-size: 14px;
    font-weight: 600;
}

.match {
    background-color: #d3d9fc;
}

.highlight {
    background-color: #eef1ff;
}

/* Styles for both toggle buttons */

.button-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 5px;
    border: none;
}

.button-toggle-icon {
    font-size: 1.2rem;
    line-height: 0;
}

/* Styles for toggle button on small screen */

#button-toggle-org-nav {
    background-color: #fff;
}

    #button-toggle-org-nav:hover {
        background-color: #eef1ff;
    }

/* Styles for Main Area */

main {
    /*border-top: 1px solid #ced4da;*/
}

/* We use CSS Grid for the left sidebar to overlay over the data display area */

.wrapper {
    display: grid;
}

/*#nav-container label {
    font-weight: 400;
}*/

#left-sidebar,
#main-content-area {
    grid-area: 1 / 1;
}

/* Left Sidebar */

#left-sidebar {
    background-color: #F5F5F5;
    border-right: 1px solid #ced4da;
    max-width: 425px;
    min-height: calc(100vh - 100px);
    max-height: 80vh;
    z-index: 1021;
    transition-duration: 0.2s;
    overflow-y: auto;
}

/* Styles for toggle button on big screen */

#button-toggle-sidebar {
    float: right;
    background-color: #F5F5F5;
}

    #button-toggle-sidebar:hover {
        background-color: #e4e7fa;
    }

.sidebar-collapsed {
    max-width: 50px !important;
}

/* Org Navigation Widget */

#nav-container .selected-level {
    white-space: nowrap;
    margin-top: -2rem;
}

#org-nav {
    margin-top: -2.5rem;
}

    #org-nav ul {
        padding-left: 1.5rem;
    }

    #org-nav li {
        overflow: hidden;
        white-space: nowrap;
        margin-top: 0.2rem;
    }

    #org-nav a {
        text-decoration: none;
        white-space: nowrap;
        color: inherit;
        padding: 1px 5px;
        border-radius: 5px;
    }

    #org-nav ul:first-child {
        margin-left: -2rem;
    }

    #org-nav li:first-child {
        margin-top: 0.5rem;
    }

    #org-nav li:last-child {
        margin-bottom: 0.5rem;
    }

    #org-nav .button-caret {
        cursor: pointer;
        font-size: 0.8rem;
        color: #2c3e97;
        border: none;
        padding: 1px 5px;
        border-radius: 5px;
        background-color: #F5F5F5;
    }

        #org-nav .button-caret::before {
            content: "\25B6";
            display: inline-block;
        }

    #org-nav .button-caret-down::before {
        transform: rotate(90deg);
    }

    #org-nav .button-caret:hover,
    #org-nav a:hover {
        background-color: #e4e7fa;
    }

    #org-nav .nested,
    .hidden {
        display: none;
    }

    #org-nav .active {
        display: block;
    }

.selected {
    font-weight: 600;
    background-color: #ccd4fd;
}

/* Styles for main content area, we need margin-left so that the collapsed left sidebar does not block data */

#main-content-area {
    margin-left: 65px;
}

#multiselect-reset,
#multiselect-show {
    font-size: 16px;
}

#organizations-list li {
    font-weight: 500;
    color: #2c3e97;
}

.parent-item {
    font-weight: 500;
}

.non-clickable {
    pointer-events: none;
    opacity: 0.8;
}

/* Adjusting org nav to smaller screens */

@media only screen and (max-width: 767px) {
    #main-content-area {
        margin-left: 0;
    }

    .container-fluid,
    .main-container {
        padding: 0 !important;
    }

    .wrapper {
        display: initial;
    }

    #search-results {
        max-width: 300px;
    }

    #left-sidebar {
        max-width: 100vw;
        min-height: fit-content;
        max-height: fit-content;
        border-bottom: 1px solid #ced4da;
        overflow-y: hidden;
    }

    #main-content-area {
        grid-area: 2 / 1;
    }

    #nav-container .selected-level {
        margin-top: 0.5rem;
    }

    #button-toggle-sidebar {
        display: none;
    }

    .sidebar-collapsed {
        display: none;
    }

    #search-results li,
    #org-nav li {
        line-height: 1.8;
    }

    #organizations-list {
        margin-left: 20rem;
    }

    #org-nav .button-caret {
        font-size: 1.2rem;
        padding-left: 8px;
        padding-right: 10px;
    }

    input[type=checkbox] {
        width: 16px;
        height: 16px;
    }
}

@media only screen and (max-width: 575px) {

    #organizations-list {
        margin-left: 1.3rem;
        margin-top: -3rem;
    }
}