﻿/* Header Styles */

header#home {
    display: flex;
    width: 100%;
}

#mainmenu .dropdown-toggle::after {
    content: none;
}

@media screen and (max-width: 769px) {
    header#home {
        flex-direction: column;
    }

}

.headerlogo {
    display: flex;
    position: relative;
}

#ge-text {
    height: 36px;
    position: absolute;
    opacity: 0;
    left: 80%;
}

nav#mainnav {
    /* background: #1b75bc; */
    background: linear-gradient(0deg, #1b75bc, #124f7f) !important;
    font-size: 1rem;
    padding: 0;
}

body.testing-environment nav#mainnav {
    background: linear-gradient(0deg, #900, #b00) !important;
}

    body.testing-environment nav#mainnav::after {
        content: "Testing environment";
        font-size: clamp(20px, 4vw, 2rem);
        position: absolute;
        top: calc(20px);
        color: white;
        font-weight: bold;
        font-style: italic;
        left: 50%;
        transform: translateX(-50%);
    }


    #mainnav .navbar-brand {
        max-height: 40px;
        height: 40px;
        margin-right: .5rem !important;
    }

#mainmenu {
    padding: 0;
}


    #mainmenu > ul > li a {
        cursor: pointer;
    }


/*header mobile only*/
@media screen and (max-width: 769px) {
    #mainnav a {
        padding: 0 10px;
    }

/*    #mainmenu {
        background: #343d49;
    }*/

/*        #mainmenu .dropdown-menu {
            background: rgba(255, 255, 255, 0.1);
        }*/

    #mainnav #mainmenu .navbar-nav {
        flex-direction: row!important;
    }

    .navbar-nav .dropdown-menu {
        position: absolute;
    }

    #mainmenu a {
        /* color: #ffffff; */
        padding: 10px 25px;
        font-size: 1rem;
    }

/*            #mainmenu a:hover {
                background: rgba(255, 255, 255, 0.3);
            }*/

    #mainnav #toggle-buttons {
        display: flex;
        background: #343d49;
    }

    #mainnav #toggle-buttons i {
        padding: 0 15px;
    }

    #toggle-buttons .navbar-toggler {
        border: none;
    }
}
/*header desktop only*/

@media screen and (min-width: 770px) {

    .dropdown-toggle {
        display: block;
    }

    nav#mainnav {
        height: 70px;
        padding: 0 20px;
        width: 100%;
        justify-content: space-between;
    }

    .navbar-brand {
        max-height: 50px;
    }


    #mainmenu > ul > li > a {
        padding: 0 20px;
    }

        #mainmenu,
        #mainmenu > ul,
        #mainmenu > ul > li,
        #mainmenu > ul > li > a {
            height: 100%;
        }

            #mainmenu > ul > li > a {
                align-items: center;
                display: flex;
                justify-content: center;
            }
}

/* End Header Styles */

/* dropdowns */

#mainmenu .dropdown-menu.show {
    display: flex;
    flex-direction: column;
}

#mainmenu .dropdown-menu .dropdown-item.overview {
    order: -10;
}

.dropdown-menu a {
    color: #444444;
}

.dropdown-item i {
    width: 32px;
}

/* Search Styles */

#search-area div * {
    margin: 0 0 10px 0;
}

.search-results {
    display: none;
    max-height: 500px;
    max-width: 590px;
    position: absolute;
    right: 0;
    width: 100%;
    z-index: 999999;
}

    .search-results .k-grid .k-header {
        display: none;
    }

    .search-results .k-grid-content {
        max-height: 500px;
    }

/*header search component desktop only*/

@media screen and (min-width: 770px) {

    #search-area {
        align-items: center;
        display: flex;
    }

        #search-area div * {
            margin: 0 10px 0 0;
        }
}

/*header search component mobile only*/

#searchDropdown {
    position: relative;
    width: 100%;
}

    #searchDropdown::after {
        content: "\f078";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        height: auto;
        background: white;
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
        width: 20px;
        font-family: "FontAwesome";
        font-weight: 900;
        align-items: center;
        justify-content: center;
        display: flex;
        font-size: 10px;
        pointer-events: none;
    }

    #searchDropdown option {
        color: #000;
    }

@media screen and (max-width: 769px) {

    #searchDropdown::after {
        /* same height as margin on the select element */
        bottom: 10px;
    }

    #search-area > div {
        padding: 10px 20px 0;
    }

    #search-area .searchbuttons {
        margin-left: auto;
    }

        #search-area .searchbuttons :not(first-of-type) {
            margin-left: 10px;
        }

    .search-results {
        box-shadow: 0 10px 10px 5px rgba(0,0,0,0.4);
        margin-top: 0;
        right: 0;
        width: 100%;
    }
}


#search-area select, #search-area #txtCriteria {
    background: transparent;
    color: #fff !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    fill: #fff;
}

    #search-area #txtCriteria::placeholder {
        color: #fff;
        opacity: 1;
    }

    #search-area #txtCriteria::-ms-input-placeholder {
        color: #fff;
    }


/* End Search Styles */