/*
======================================================================
	FLEXIBLE HEADER MULTIMENU UPP TO 2 + 2 LEVELS
	Common CSS for all Header Menus
	Roboto Condensed, Open Sans Condensed, Ubuntu Condensed,
	The jQuery variables to Show/Hide the Mobile Menu are common to all Header Navs
	jqNavHeaderMarker and jqNavHeader
====================================================================== 
*/


/*
    The Mobile Menu 
    "Roboto Condensed", "Ubuntu Condensed", "Open Sans Condensed", "Fira Sans Extra Condensed"
*/

.sxNavHeader {
    font-family: "Roboto Condensed", "Source Sans Pro", Arial, Helvetica, sans-serif;
    position: absolute;
    left: 0;
    bottom: 0;
    top: 100%;
    width: 100%;
    text-align: left;
    background: #3399dd;
    display: none;
    z-index: 1001;
    margin: 0;
    padding: 20px;
    font-size: 1em;
    line-height: 120%;
    overflow: auto;
}


/*
    COMMON VALUES FOR ALL LEVELS:
    FOR Mobiles, BUT some are also inherited for Desctops
*/

.sxNavHeader ul,
.sxNavHeader li {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sxNavHeader ul ul {
    margin: 0 0 0 40px;
}

.sxNavHeader li {
    margin-top: 12px;
}

.sxNavHeader>ul>li {
    margin-bottom: 20px;
}

.sxNavHeader>ul>li>ul>li {
    margin-top: 15px;
}

.sxNavHeader div,
.sxNavHeader a {
    display: block;
    position: relative !important;
}

.sxNavHeader a {
    color: rgba(255, 255, 255, 0.85);
}

.sxNavHeader a:hover {
    color: rgba(255, 255, 255, 1);
}

.sxNavHeader div {
    color: rgba(0, 0, 0, 0.85);
}

/* 
    Additions for FIRST LEVEL - Mobiles
*/
.sxNavHeader>ul>li {
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.40);
}


.sxNavHeader>ul>li>a,
.sxNavHeader>ul>li>div {
    font-size: 1.4em;
    padding: 10px 0;
}

.sxNavHeader>ul>li>a::after {
    content: "\00BB\00BB";
}

/*
    Additions for SECOND LEVEL - Mobiles
*/

.sxNavHeader li li div,
.sxNavHeader li li a {
    font-size: 1.2em;
}

.sxNavHeader li li li li a {
    position: relative;
    padding-left: 0.8em;
}

.sxNavHeader li li li li a::before {
    content: "\00BB\A";
    position: absolute;
    top: 0;
    left: 0;
}

/* 
    Additions for SECOND LEVEL + 2
*/

.sxNavHeader li li li div,
.sxNavHeader li li li a {
    font-size: 1em;
}

.sxNavHeader li li li a::after {
/*    content: "\00BB\A"; */
}
.sxNavHeader li li li li a::after {
    content: "";
}


/*  Back from Desctop to Mobile 
    ========================================================================================================================
    Restor the settings that have potentially been changed by jQuery in Desctop Screen  
*/

@media only screen and (max-width: 1023px) {
    .sxNavHeader {
        overflow: auto;
    }

    .sxNavHeader ul ul {
        display: block !important;
    }
}

/*  sxNav_1Levels.asp, sxNav_4Levels.asp
    ========================================================================================================================
    DESCTOP DEVICES FOR MENUS FROM 1 TO 4 LEVELS: sxNav_1Levels.asp, sxNav_4Levels.asp
    Transform Header Nav FROM Mobile Devices TO Desktop
	Use !important to reset values changed by jQuery, 
	since jQuery uses the ID jqNavHeader to change values set in CLASS sxNavHeader 
*/

@media only screen and (min-width: 1024px) {
    #sxNavHeaderMarker {
        display: none;
    }

    .sxNavHeader {
        position: static;
        display: block !important;
        width: 100%;
        height: auto !important;
        background: none;
        border: 0;
        padding: 0;
        text-align: center;
        overflow: visible !important;
    }

    /*  First Level
    */
    .sxNavHeader>ul {
        display: table;
        margin: 0 auto;
    }

    .sxNavHeader>ul>li {
        display: table-cell;
        margin: 0;
        text-align: left;
        overflow: visible;
        border: 0;
        padding-bottom: 0;

    }

    .sxNavHeader>ul>li:hover {
        background-color: #eee;
        background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
        border-radius: 0;
    }

    .sxNavHeader a {
        color: rgba(0, 0, 0, 1);
    }

    .sxNavHeader a:hover {
        color: rgba(0, 0, 0, 0.65);
    }

    .sxNavHeader div {
        color: #000;
    }

    .sxNavHeader>ul>li>div,
    .sxNavHeader>ul>li>a {
        cursor: pointer;
        padding: 12px 8px !important;
        margin: 0;
        border: 0;
        font-size: 0.9em !important;
        color: rgba(255, 255, 255, 0.8);
    }

    .sxNavHeader>ul>li>a:after {
        content: "";
    }

    .sxNavHeader>ul>li:hover>div,
    .sxNavHeader>ul>li:hover>a {
        color: rgba(0, 0, 0, 1);
    }



    /**
    .sxNavHeader>ul>li>div::before {
        content: "\21E3\A";
    }
    .sxNavHeader>ul>li:hover>div::before {
        content: "\21E1\A";
    }
    */

    /*  Second Level
	*/

    .sxNavHeader>ul>li>ul {
        position: absolute;
        left: 0;
        top: 100%;
        max-height: 600px;
        margin: 0;
        padding: 25px !important;
        display: none;
        white-space: nowrap;
        overflow: auto !important;
    }

    .sxNavHeader ul ul ul {
        padding: 0;
        margin: 0 0 0 20px;
    }

    .sxNavHeader li li div,
    .sxNavHeader li li a {
        font-size: 1em;
        font-weight: bold;
        white-space: nowrap;
    }

    /*	
        Second Level + 2
	*/
    .sxNavHeader li li li div,
    .sxNavHeader li li li a {
        font-size: 1em;
        font-weight: normal;
        white-space: nowrap;
    }

    /*	sxNav_4Levels_wide_byLevel1.asp, sxNav_4Levels_wide_byLevel2.asp
        ========================================================================================================================
        FOR WIDE-SCREEN OF SECOND LEVEL MENUS: sxNav_4Levels_wide_byLevel1.asp, sxNav_4Levels_wide_byLevel2.asp
		Used the classes ul.wideScreen in the first UL
		Set First LI to Static Position to change Position of the Second UL:
			It is positioned relative to nav, Not to its LI, thereby transforemd to Wide Screen
	*/
    .sxNavHeader .wideScreen>li {
        position: static;
    }

    .sxNavHeader .wideScreen>li>a,
    .sxNavHeader .wideScreen>li>div {
        font-size: 1em;
        padding: 0 10px;
    }

    /*
    * Obs! Display is changed into flex by jQuery
    * But it also functions as Block, with the firsts LI's set to inline-block
    */
    .sxNavHeader .wideScreen>li>ul {
        left: 0;
        right: 4%;
        display: none;
        /*  flex-direction: column OR row; Use flex-wrap instead*/
        flex-direction: row;
        flex-wrap: wrap;
        /*  center, flex-start, flex-end, space-around, space-between, */
        justify-content: center;
        /*  center, flex-start (top), flex-end (bottom), stretch, baseline */
        align-items: flex-start;
        text-align: center;
        white-space: normal;
        background: #eee;
        border: 1px solid #ddd;
        border-top: 0;
        box-shadow: 8px 8px 8px 0 rgba(0, 0, 0, 0.1);
    }

    .sxNavHeader .wideScreen>li>ul>li {
        display: inline-block;
        text-align: left;
        vertical-align: top;
        padding: 12px 6px 60px 6px;
        text-align: left;
        width: 250px;
    }

    .sxNavHeader .wideScreen li li div,
    .sxNavHeader .wideScreen li li a {
        white-space: normal !important;
    }

    .sxNavHeader .wideScreen li li li {
        overflow: hidden;
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
        font-size: 0.95em;
    }

    .sxNavHeader .wideScreen li li li li {
        font-size: 0.85em;
    }


    /*	sxNav_4Levels_wide_bySub.asp
        ========================================================================================================================
        FOR WIDE-SCREEN FLEXIBLE MENU FOR SELECTED SUB-MENUS: sxNav_4Levels_wide_bySub.asp
        THE SAME EFFECT AS THE ABOVE, BUT CAN BE USED ONLY FOR ONE OR MORE LIST-Groups
		Used the classes li.sub and ul.wide to selected links of the First Level
		Change initial settings for the Position och the First Level LI:
            The including UL.wide is positioned relative to nav, Not to its LI and thereby becomes Wide
	*/

    .sxNavHeader>ul>li.sub {
        position: static;
    }

    .sxNavHeader .wide {
        left: 0;
        right: 0;
        text-align: left;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding: 25px;
    }

    .sxNavHeader .wide>li {
        display: inline-block !important;
        vertical-align: top;
        text-align: left;
        width: 33%;
        overflow: hidden;
    }

    .sxNavHeader .wide li ul {
        position: static;
        display: inline-block !important;
    }

    .sxNavHeader .wide div {
        color: #000000 !important;
    }

    .sxNavHeader div,
    .sxNavHeader a {
        overflow: hidden;
        width: 100%;
        display: block !important;
        white-space: normal;
    }
}


@media only screen and (min-width: 1439px) {

    .sxNavHeader .wideScreen>li>ul {
        left: 8%;
        right: 8%;
    }
}

@media only screen and (min-width: 1599px) {

    .sxNavHeader .wideScreen>li>ul {
        left: 10%;
        right: 10%;
    }
}
@media only screen and (min-width: 1900px) {

    .sxNavHeader .wideScreen>li>ul {
        left: 15%;
        right: 15%;
    }
}

/*	For images in manu: 
    THE IMAG IS SET ON THE LEFT OR ON THE RIGHT OF TEXT IN a AND div
    Change all setting for A and Div, with !important
*/


/*  
    Group image is always on the left and is common for both alternatives, with its own class 
*/

/*  
    Image on the Left of text 
*/
a.imgMenuLeft,
div.imgMenuLeft {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-items: center;
}

.sxNavHeader li li .imgMenuLeft img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    max-width: 40px;
    height: auto;
}

.sxNavHeader li li a.imgMenuLeft,
.sxNavHeader li li div.imgMenuLeft {
    padding: 0 !important;
    vertical-align: middle;
}

.sxNavHeader li li a.imgMenuLeft span,
.sxNavHeader li li div.imgMenuLeft span {
    flex: 1;
}

.sxNavHeader a.imgMenuLeft::before,
.sxNavHeader div.imgMenuLeft::before {
    content: "" !important;
}


/* 
    Image on the Right of text:
    Change the padding to contain the height of Images 
    Or let jQuery do that for yoy 
*/

.sxNavHeader li li a.imgMenuRight,
.sxNavHeader li li div.imgMenuRight {
    padding: 0 56px 0 0 !important;
    position: relative;
    height: 48px;
}

.sxNavHeader li li .imgMenuRight img {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    height: 48px;
    max-width: 100%;
}

.sxNavHeader a.imgMenuRight::before,
.sxNavHeader div.imgMenuRight::before {
    content: "" !important;
}