/* =============================================================
   global_sidebar_menu.css
   Styles for the collapsed app-nav sidebar and its fly-out
   navigation window (see global_sidebar_menu.js).
   ============================================================= */


/* ============================================================
   Layout: Sidebar Nav
   ============================================================ */

nav.app-nav-ctn {
    z-index: 3;
    position: relative;
    flex-basis: var(--sidebar-width-min);
    background: #035951;
}

/* top-left home link */
#app-nav-home-link {
    background: #031d1d;
    text-align: center;
}
#app-nav-home-link > a {
    display: inline-block;
    color: #327b42;
}
#app-nav-home-link > a:hover {
    color: #27873d;
}
#app-nav-home-link > a > span {
    display: none;
}

#app-nav-sidebar-simplebar {
    overflow-x: hidden;
    margin-top: 3em;
    position: sticky;
    top: 0;
    max-height: 100vh;
}
#app-nav-sidebar-simplebar .simplebar-scrollbar::before {
    background: var(--regular);
}
#app-nav-intro {
    display: none;
}
#app-nav-sidebar {
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
li.app-nav-option {
    display: block;
    text-align: center;
    width: 100%;
}
.app-nav-option:hover {
    background: #cdeee3;
    /*border-right: 0.5em inset #94e1c8;*/
    box-shadow: 3px 3px 8px #103535;
}
.app-nav-option.current-app {
    background: var(--red-highlight);
    border-right: 0.5em solid var(--red-text);
    box-shadow: 3px 3px 8px #103535;
}
span.app-nav-option-trigger {
    display: flex;
    cursor: pointer;
    color: #fff;
    padding: 0.5em 1em;
    align-items: center;
    justify-content: center;
}
span.app-nav-option-trigger .fa-stack {
    font-size: 0.6em;
    top: -0.3em;
}
span.app-nav-option-trigger .fa-stack-1x {
    top: 0.75em;
    margin-left: 0.75em;
    color: #ff945b;
}
span.app-nav-option-trigger:hover {
    color: #404040;
}
.current-app span.app-nav-option-trigger:hover {
    color: inherit;
}
.app-nav-app-title {
    display: none;
    line-height: 1em;
}


/* ============================================================
   Layout: App Nav Window
   ============================================================ */

#app-nav-window {
    width: calc(100vw - var(--sidebar-width-min));
    position: fixed;
    top: 6em;
    background: #fffde8;
    overflow: hidden;
    padding: 1em;
    opacity: 0;
    box-shadow: 4px 4px 8px #103535;
    min-height: 60vh;
    left: -100vw;
    max-height: 75vh;
}
#app-nav-window-inner {
    font-size: 1em;
}
.app-nav-app-home {
    border-bottom: 2px solid #0a3b51;
    margin: -1em -1em 0;
    padding: 0.5em 2em 0.5em 0.5em;
}
.app-nav-window-app-title {
    cursor: default;
    line-height: 1.1em;
}
.close-app-nav {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    opacity: 0.4;
    padding: 0.5em;
}
.close-app-nav:hover {
    opacity: 1;
}
.app-nav-back-link {
    display: flex;
    align-items: center;
    margin: 0 0 1em;
    line-height: 1.1em;
    cursor: pointer;
    color: var(--purple);
}
.app-nav-back-link span {
    padding-left: 1em;
}
#global-sidebar-content {
    margin-top: 3em;
    max-height: calc(75vh - 6em);
    color: var(--green-teal-text);
}
#global-sidebar-content [data-layer] {
    display: none;
}
.app-nav {
    padding: 0 0 0 1.5em;
    list-style: outside disc;
    background: transparent;
    margin: 0;
}
.app-nav > * {
    line-height: 1.1em;
    min-height: 1.2em;
    cursor: default;
    margin-bottom: 0.75em;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}
.app-nav > .destination {
    margin-left: -1.25rem;
}
.app-nav > * a {
    text-decoration: none;
    color: inherit;
    order: 1;
}
.app-nav > *:hover > a {
    text-decoration: underline;
}
.destination-new-tab {
    margin-right: 1em;
    color: var(--purple-bg);
    font-size: 0.7em;
    order: 0;
}
.destination:hover .destination-new-tab {
    font-size: 1em;
    color: var(--purple);
    margin-right: 0.4em;
}
.app-nav > .current-module-nav, .app-nav > .current-view-nav {
    list-style: none;
    font-weight: bold;
}
.app-nav > .module {
    list-style: none;
    margin-bottom: 1em;
}
.app-nav > .module::before {
    content: "\f054";
    font-family: "Font Awesome 5 Pro", sans-serif;
    font-style: normal;
    text-decoration: inherit;
    color: var(--purple);
    position: absolute;
    top: 0;
    left: -1.5em;
    font-size: 0.9em;
    font-weight: bold;
}
.app-nav > [data-get] > span {
    cursor: pointer;
}

/* split up testing menu */
.destination[data-dest="nsadmin-testing-othertestdashboard"],
.destination[data-dest="nsadmin-testing-alpacaimport"],
.destination[data-dest="nsadmin-testing-settings"] {
    padding-top: 1em;
    margin-top: 1em;
    border-top: 2px dashed var(--yellow-outline);
}


@media (min-width: 800px)
{
    #app-nav-window {
        width: 320px;
    }
}


/* ============================================================
   Responsive
   ============================================================ */

@media (min-width: 1024px)
{
    nav.app-nav-ctn {
        flex-basis: var(--sidebar-width);
    }

    #app-nav-intro {
        display: block;
        margin: 0 0 1em 0;
        padding: 0.5em;
        line-height: 1.3em;
        font-weight: normal;
        border-bottom: 2px solid;
    }

    li.app-nav-option {
    }

    span.app-nav-option-trigger {
        text-align: left;
        justify-content: start;
    }
    .app-nav-option .app-nav-app-icon {
        margin: 0 1em 0 0;
        width: 1em;
    }
    .app-nav-app-title {
        display: inline-block;
    }
}
