﻿/*
    Current menu cutoff points (easily changed with find/replace)
    1079px - for max queries
    1080px - for min queries
*/


/*Section removed from sidebar.css*/

.headerBar {
    margin: -20px -20px 35px -20px;
    background: var(--oxidised-copper-dark) !important;
    padding: 5px 0px 0px 10px !important;
    height: 50px;
}

#pageTitle {
    clear:both;
}

#pageTitle h4 {
    font-size: 1rem;
}

.logoHeader img {
    display: none;
}

.navCheck {
    display: none;
}

/*
.menuThinView {
    display: inherit;
}
*/
.menuThinShow {
    display: unset;
}

.menuThinHide {
    display: none;
}

i ~ .menuThinShow,
.menuThinView ~ .menuWideView {
    padding-left: 5px;
}


@media (min-width: 1080px) {
    .menuThinView {
        display: none;
    }

    .menuThinShow {
        display: none;
    }

    .headerBar {
        margin: -20px -20px 50px -20px;
    }

    .logoHeader {
        width: var(--circle-height);
        height: var(--circle-height);
        background-color: var(--submenu-grey);
        position: absolute;
        top: 10px;
        left: 10px;
        border-radius: 50%;
        z-index: var(--layer-second);
    }

    .logoHeader img {
        display: unset;
        width: var(--circle-height);
        height: var(--circle-height);
        object-fit: cover;
    }
}

.userDetails {
    float: right;
    position: relative;
    top: 5px;
    right: 10px;
    z-index: var(--layer-third);
}

.userDetailsButton .fa-user-circle:before {
    color: #434343;
    font-size: xx-large;
    background-image: linear-gradient(#fff,#fff);
    background-repeat: no-repeat;
    background-size: 50% 75%;
    background-position: center;
}

.usr_name {
    display: none;
}

.usr_initials {
    float: right;
    margin-right: 0px;
    display: inline-block;
    border-radius: 50%;
    background-color: #d2ccce;
}

.usr_initials_inner {
    display: table-cell;
    border-radius: 50%;
    background-color: var(--submenu-grey);
    width: var(--circle-height-small);
    height: var(--circle-height-small);
    vertical-align: middle;
    text-align: center;
}

.usr_nametag {
    display: inline-block;
    min-width: 0px;
    font-size: large;
    color: var(--alternate-text);
}

.usr_nametag:hover {
    /*color: white;*/
    color: var(--oxidised-copper-light);
}

@media (min-width: 1080px) {
    .usr_name {
        display: unset;
        clear: none;
        height: 30px;
        float: right;
        margin-right: 10px;
        margin-top: 6px;
        overflow: hidden;
        align-items: center;
    }

    .usr_nametag {
        min-width: 200px;
    }

    .usr_initials_inner {
        width: var(--circle-height);
        height: var(--circle-height);
    }
}


#sidebar,
.sidebar-header {
    display: none;
    width: 0px;
}

#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
    margin-left: 250px;
    margin-left: 0px; /* this should only be needed until the relevant sidebar.css is used */
}


/*custom menu.css*/

.menuBar {
    float: left;
    z-index: var(--layer-second);
}

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

    .checkbtn {
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
    }
    

    /*
    #navCheck:checked ~ #epicnav {
        display: block !important;
        z-index: var(--layer-top);
    }
    */

    .navCheck:checked ~ ul {
        display: block !important;
    }

    #epicnav {
        display: none;
        position: absolute;
        top: 50px;
        left: 0;
        background: var(--oxidised-copper-dark);
        z-index: var(--layer-top);
        width: fit-content;
        padding-left: 10px;
    }

    #epicnav a {
        font-size: 1.1rem;
        color: #fff;
        display: block;
    }

    ul > li > ul {
        display:none;
    }

    #epicnav a:has( ~ ul:not(.menuThinHide)) {
        display: none !important;
    }

    #epicnav ul {
        list-style-type: none;
    }
    
    #epicnav li {
        padding: .5rem 1rem;
    }

    #epicnav label {
        font-size: 1.1rem;
        color: #fff;
        cursor: pointer;
    }

    #epicnav label i {
        padding-right:5px;
    }

    #epicnav label:has(+ ul):after {
        display: inline-block;
        margin-left: 0.2em;
        font-family: var(--font-awesome-family);
        content: '\f105';
    }

    /*
    .menuBar a:has(+ ul):after {
        display: inline-block;
        margin-left: 0.2em;
        font-family: var(--font-awesome-family);
        content: '\f105';
    }
    */
    /*
    .menuBar a:has(+ ul):hover:after {
        display: inline-block;
        margin-left: 0.2em;
        font-family: var(--font-awesome-family);
        content: '\f104';
    }
     */
    }

@media only screen and (min-width: 1080px) {

    .menuBar.rightSide {
        float: right;
    }

    #epicnav {
        position: absolute;
        top: 18px;
        left: 80px;
    }

        #epicnav > li:first-child {
            padding-left: 40px;
        }

        ul#epicnav, #epicnav ul { /*remove the bullets from the dropdown ul as well*/
            margin: 0;
            padding: 3px 0px;
            list-style-type: none;
            height: 32px;
        }

        #epicnav li {
            /*width: 100px;*/ /*...and set the width*/
            padding-left: 1vw;
            padding-right: 1vw;
        }

        #epicnav li {
            float: left; /*float the li element so the menu's horizontal...*/
            color: var(--alternate-text);
        }

            #epicnav li a {
                display: block;
                line-height: 32px; /*needed to prevent loosing focus when scrolling down to dropdown*/
                text-align: center;
                text-decoration: none;
                border: none;
                color: inherit;
            }

                #epicnav li a:hover {
                    color: var(--oxidised-copper-light); /* against a dark background (reference) so needs to be lighter */
                }

            /* second level - to be horizontal line below header between (and behind) circles */
            #epicnav li:hover > ul {
                display: block; /*display the ul when the parent li is hovered*/
                z-index: var(--layer-third);
            }

            #epicnav li > ul {
                display: none; /*hide the dropdown*/
                position: absolute; /*position it absolutely..*/
                left: 0; /*...align the left edge with the left edge of the parent li...*/
                top: 32px; /*...and 32px down from the top - 30px height + 2px for the border*/
                list-style-type: none;
                z-index: var(--layer-forth); /* make sure it opens behind the logo things */
                background-color: var(--submenu-grey); /*give the dropdown a different background colour*/
                width: 92vw;
                margin-left: -5px;
                padding-left: 12px;
            }


            #epicnav li ul li {
                float: left;
                position: relative; /*set position:relative as the start point for absolutely positioning the dropdown*/
            }

            #epicnav li ul a {
                color: var(--standard-text);
            }

                #epicnav li ul a:hover {
                    color: var(--oxidised-copper); /* now against a light background so needs to be darker */
                }

            /* third level - this is to be vertical */

            #epicnav li > ul > li > ul {
                display: none; /*hide the dropdown*/
                position: absolute; /*position it absolutely..*/
                left: 0; /*...align the left edge with the left edge of the parent li...*/
                top: 32px; /*...and 32px down from the top - 30px height + 2px for the border*/
                width: fit-content;
                padding: 0px;
                box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            }

                #epicnav li > ul > li > ul > li {
                    background-color: var(--submenu-grey); /*give the dropdown a different background colour*/
                    clear: both;
                    width: 100%;
                    text-align: left;
                    padding-left: 1vw;
                    white-space: nowrap;
                }

                    #epicnav li > ul > li > ul > li a {
                        text-align: left;
                    }

            #epicnav li > ul > li:hover > ul {
                display: block; /*display the ul when the parent li is hovered*/
                margin-top: -3px; /* shuffle up to remove some white space */
                z-index: var(--layer-third);
            }

    /* non regoin specific items */

    /*.menuBar a.hasChildren:after {*/
    .menuBar a:has(~ ul):after {
        display: inline-block;
        margin-left: 0.2em;
        font-family: var(--font-awesome-family);
        content: '\f107';
    }

    /*.menuBar a.hasChildren:hover:after {*/
    .menuBar a:has(~ ul):hover:after {
        display: inline-block;
        margin-left: 0.2em;
        font-family: var(--font-awesome-family);
        content: '\f106';
    }
}

/* right hand buttons */

.rightSideButtons {
    display: none;
}

@media (min-width: 1080px) {
    .rightSideButtons {
        display: unset;
    }

    .rightSideButtons li {
        float: right;
        clear: left;
        color: var(--alternate-text);
        list-style-type: none;
        display: inline-block;
        padding-right: 1vw;
        padding-top: 5px;
    }

    .rightSideButtons li:first-child {
        margin-right: 20px;
    }

    .rightSideButtons li a {
        color: var(--alternate-text);
    }

    .rightSideButtons li a:hover {
        color: var(--oxidised-copper-light);
    }
}

#btn_helpme.active {
    color: var(--oxidised-copper-light);
}
/* important - non overridable styles */

a.external {
    color: var(--external-link) !important;
}

ul.activeSystem {
    display: block !important;
}

a.activeSystem, 
a.activeLink {
    font-weight: bold !important;
    text-decoration: underline !important;
}

.menuBar a.activeSystem:after {
    display: inline-block;
    margin-left: 0.2em;
    font-family: var(--font-awesome-family);
    content: '\f106' !important;
}

#btn_hdr_quickFind {
    height: 30px;
    width: 30px;
    margin-top: -3px;
    padding: 0px;
}


