﻿.main-logo{
    height: 45px;
    width: auto;
}

#MenuIcon {
    float: right;
    display: none;
    margin: 4px;
}

#MenuItem {
    background: url("/Images/module-50.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

#MenuItem:hover {
    background: url("/Images/module-50_w.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

#MenuIntel {
    background: url("/Images/FortuneTeller-50.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
    
}

#MenuIntel:hover {
    background: url("/Images/FortuneTeller-50_w.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

#MenuFoodSafety {
    background: url("/Images/good-quality-50.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
    
}

#MenuFoodSafety:hover {
    background: url("/Images/good-quality-50_w.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

#MenuProduction {
    background: url("/Images/manufacturing-50.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
    
}

#MenuProduction:hover {
    background: url("/Images/manufacturing-50w.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

#MenuLogistics {
    background: url("/Images/delivery-50.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
    
}

#MenuLogistics:hover {
    background: url("/Images/delivery-50_w.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

#MenuProcurement {
    background: url("/Images/buy-50.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
    
}

#MenuProcurement:hover {
    background: url("/Images/buy-50_w.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

#MenuSales {
    background: url("/Images/Meeting-50.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
    
}

#MenuSales:hover {
    background: url("/Images/Meeting-50_w.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

#MenuMaintenance {
    background: url("/Images/Worker-50.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
    
}

#MenuMaintenance:hover {
    background: url("/Images/Worker-50_w.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

#MenuOccSafety {
    background: url("/Images/safety-hat-50.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
    
}

#MenuOccSafety:hover {
    background: url("/Images/safety-hat-50_w.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

#MenuAg {
    background: url("/Images/farm-50.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;    
}

#MenuAg:hover {
    background: url("/Images/farm-50_w.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

#MenuCannabis {
    background: url("/Images/cannabis.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

#MenuCannabis:hover {
    background: url("/Images/cannabis_w.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

#MenuKosher {
    background: url("/Images/certIcon.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
    
}

#MenuKosher:hover {
    background: url("/Images/certIcon_w.png") no-repeat;
    background-position: center 2px;
    background-size: auto 30px;
}

.menu-label{
    font-size: 9px;
    margin-top: 33px;
    font-weight: bold;
    cursor: pointer;
}

#menu > div.menu-list > div.menu-item.menu-link.link8.not5 > a > img {
    height: 2.35vh;
}

#menu {
    width: 99%;
    height: 60px;
    margin: auto;
}

.menu-list {
    position: absolute;
    width: 100%;
    margin: 1.95vh 0 0 0;
    text-align: center;
    display: block;
}

.menu-item {
    display: inline;
}

.menu-item.not5 {
    margin-right: 2vw;
}

.menu-item.logo, .menu-item.sign-in {
    position: absolute;
}

.menu-item.sign-in {
    right: 2vw;
    height: 5vh;
    margin-top: 2.5vh;
}

.menu-item.sign-in > a {
    font-size: 1.5vh;
}

.menu-item > a {
    font-size: 2.35vh;
    font-weight: 300;
    text-decoration: none;
    text-transform: Capitalize;
    color: white;
    padding-bottom: 1.25vh;
}

.link {
    float: right;
    margin-right: 2vw;
}

.link > a {
    font-size: 2.35vh;
    font-weight: 500;
    text-decoration: none;
    text-transform: Capitalize;
    color: white;
    padding-bottom: 1.25vh;
}

.menu-link > a:hover {
    border-bottom: 1vh solid rgba(255,255,255,0.5);
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    -o-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
}

#menu div.logo > a > img {
    margin-top: 12px;
    height: 40px;
}

img.menu-button {
    display: none;
}

img.close-button {
    display: none;
}

.menu-item > menu-link {
    padding-bottom: 12vh;
}

#topdiv {
    position: fixed;
    top: 0px;
    left: 0px;
    background-color: #fff;
    padding: 2px;
    height: 60px;
    width: 100%;
    border-bottom: 1px solid #eee;
    z-index: 9999;
    vertical-align: top;
    box-sizing: border-box;
}

#topdiv > *{
    box-sizing: border-box;
}

#divLogo {
    position: relative;
    float: left;
    margin-top: 2px;
}

#menu-container {
    display: block;
    width: 100%;
    padding-bottom: 4px;
}

#menu-container > a > img {
    float: left;
}

#CaMenu {
    float: left;
    text-align: center;
    color: rgb(51, 51, 51);
    text-decoration: none;
    font-size: 11px;
    list-style-type: none;
/*    background-color: #fff;*/
    z-index: 2147483647;
    display: flex;
    align-items: flex-end;
}

#CaMenu > a, #CaMenu > li > ul > li > a {
    color: rgb(51, 51, 51);
    text-decoration: none;
    font-size: 9px;
    font-weight: bold;
}

#CaMenu > li {
    display: inline-block;
    float: left;
    height: 56px;
    width: 65px;
    margin: 0 4px 0 0;
    border: solid 1px #333;
    border-color: rgba(0,0,0,0);
    border: 1px solid #ccc;
}

#CaMenu > li:hover {
    color: white;
}

#CaMenu > li:hover > img.whiteicon {
    display: inline-block;
}

    #CaMenu > li > ul {
        visibility: hidden;
        opacity: 0;
        transition: visibility 0.1s, opacity 0.1s ease-out;
        margin: 5px 0 0 -1px;
        position: relative;
        z-index: 9999;
    }

    #CaMenu > li:hover > ul {
        visibility: visible;
        opacity: 1;
        transition: visibility 0.2s, opacity 0.2s ease-in;
        transition-delay: 0.3s;
    }

    #CaMenu > li > ul > li {
        text-align: left;
        border: solid 1px #ccc;
        z-index: 9999;
        width: 208px;
    }

#CaMenu > li > ul > li > a {
    display: block;
    width: 200px;
    color: rgb(51, 51, 51);
    padding: 4px;
    background-color: #fff;
}

#CaMenu > li:hover {
    background-color: #263869;
}

#CaMenu > li:hover > ul > li {
    display: block;
    color: rgb(51, 51, 51);
    background-color: #fff;
}

#CaMenu > li > ul > li:hover > a {
    color: #fff;
    background-color: #263869;
}

#CaMenu > li:hover > a {
    color: #fff;
}

#CaMenu > li:hover > ul > li > a {
    color: rgb(51, 51, 51);
}

#CaMenu > li > ul > li:hover > a {
    color: #fff;
}

#CaMenu > li > ul > li:hover {
    background-color: #263869;
}

#CaMenu > li:hover > .ca-main {
    color: #fff;
}

#CaMenu > li:hover > .ca-sub {
    color: #fff;
}

ul#navlist {
    float: right;
    margin-right: 20px;
    margin-top: 4px;
}

ul#navlist li {
    display: inline;
}

ul#navlist li a {
    color: #263869;
    text-decoration: none;
    font-size: 10pt;
}

ul#navlist li:first-child a {
    border: none;
}

ul#navlist li a:hover {
    color: #263869;
}

/***** menu bar ******/

#nav {
    margin: 0 0 0 0;
    padding: 11px 4px 0;
    line-height: 100%;
    width: 1024px;
}

#nav li {
    margin: 0 3px;
    padding: 0 0 6px;
    float: left;
    position: relative;
    list-style: none;
}
/* main level link */
#nav a {
    font-size: 8.5pt;
    font-weight: bold;
    color: #ddd;
    text-decoration: none;
    display: block;
    padding: 3px 5px;
    margin: 0;
}
/* main level link hover */
#nav .current a, #nav li:hover > a {
    background: #d1d1d1; /* for non-css3 browsers */
    color: #444;
    /*border: solid 1px #f8f8f8;*/
}
/* sub levels link hover */
#nav ul li:hover a, #nav li:hover li a {
    background: none;
    border: none;
    color: #666;
}

#nav ul a:hover {
    background: #0399d4 !important; /* for non-css3 browsers */
    color: #fff !important;
}
/* level 2 list */
#nav ul {
    background: #ddd; /* for non-css3 browsers */
    display: none;
    margin: 0;
    padding: 0;
    width: 185px;
    position: absolute;
    top: 25px;
    left: 0;
    border: solid 1px #ccc;
}
/* dropdown */
#nav li:hover > ul {
    display: block;
}

#nav ul li {
    float: none;
    margin: 0;
    padding: 0;
}

#nav ul a {
    font-weight: normal;
}

/* level 3+ list */
#nav ul ul {
    left: 181px;
    top: -3px;
}

/* clearfix */
#nav:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

#nav {
    display: inline-block;
}

html[xmlns] #nav {
    display: block;
}

* html #nav {
    height: 1%;
}

#openid_choice > p {
    color: #fff;
}

/* Login links */

.login-partial {
    display: inline;
    float: right;
    margin: 4px 4px 0 4px;
}

.login-partial > li {
    list-style-type: none;
    text-decoration: none;
    float: left;
    margin-right: 5px;
}

.login-partial > li > a {
    color: #666;
    font-size: 1.1em;
    vertical-align: middle;
}

#loginLink, #registerLink, #ego-menu-left > a, #ego-menu-right > a {
    color: #333;
    font-weight: normal;
    width: 100px;
    background-color: #fff;
}

#loginLink, #registerLink {
    border: #263869 1px solid;
    padding: 2px 6px 2px 6px;
}

#loginLink:hover, #registerLink:hover {
    outline: none;
    border: 1px solid #ccc;
}

#logoutForm {
    display: inline;
}

.link4 {
    cursor: pointer;
}

ul.resources-drop-down {
    display: none;
    position: absolute;
    list-style: none;
    left: 46vw;
    top: 3.5vh;
    text-align: left;
    padding: 0;
    background-image: url(/Images/icicle-texture-real.jpg);
    font-family: 'Montserrat', arial;
    font-weight: 300;
    margin-top: 0.25vh;
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
}

.link4:hover ul.resources-drop-down {
    display: block;
}

ul.resources-drop-down li {
    padding: 0.55vh 1vw;
}

ul.resources-drop-down li a {
    color: white;
    font-size: 2vh;
}

ul.resources-drop-down li:nth-child(5) {
    padding-bottom: 1vh;
}

ul.resources-drop-down li:hover {
    background-color: white;
}

ul.resources-drop-down li:hover a {
    color: #0088aa;
}

#menu-container > ul > li > a > span > img.inventory-icon {
    width: 50px;
    height: 37px;
    opacity: 0.6;
    margin-bottom: 0px;
    padding: 0;
}

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

    #menu {
        width: 100%;
        height: 7%;
        margin: auto;
    }

    .menu-list {
        position: absolute;
        width: 25%;
        background-color: rgba(200, 200, 200, 0.8);
        padding: 4px 8px 0 0;
        margin: 0 !important;
        right: 0;
        text-align: right;
        display: none;
    }

    .menu-item {
        display: block;
    }

    .menu-item.not5 {
        margin-right: 0;
    }

    .menu-item a {
        font-size: 3vh;
        color: #0088aa;
    }

    #menu > div.menu-list > div.menu-item.menu-link.link8.not5 > a > img {
        background-color: #08A;
    }

    .link1, .link2, .link3, .link4, .link5 {
        margin-top: 1vh;
    }

    .menu-link a:hover {
        border-bottom: 0;
    }

    .logo img {
        height: 5.5vh;
        margin-top: 1.5vh;
        margin-left: 1vh;
    }

    img.menu-button {
        margin-right: 2.5vh;
        margin-top: 2vh;
        float: right;
        height: 4vh;
        cursor: pointer;
        display: block;
    }

    img.close-button {
        height: 3vh;
        margin-top: 2vh;
        cursor: pointer;
        float: right;
        display: block;
    }


    .menu-link a.current-menu-link {
        border-bottom: 0;
    }

    ul.resources-drop-down {
        display: none;
        position: relative;
        list-style: none;
        left: 1vw;
        top: 0.25vw;
        text-align: right;
        padding: 0;
        background-image: none;
        font-weight: 300;
        margin-top: 0;
    }

    .link4:hover ul.resources-drop-down {
        display: block;
    }

    ul.resources-drop-down li {
        padding: 0.55vh 1vw;
    }

    ul.resources-drop-down li a {
        color: #0088aa;
        font-size: 2.5vh;
        font-style: italic;
    }

    ul.resources-drop-down li:nth-child(5) {
        padding-bottom: 0;
    }

    ul.resources-drop-down li:hover {
        background-color: rgba(0,0,0,0);
    }
}

@media screen and (max-width: 1011px) {
    .show-on-moblie{
        display: inline-block;
    }

    table {
        width: 100%;
    }

    #topdiv{
        height: 50px;
    }

    .main-logo {
        height: 25px;
        width: auto;
    }

    #main{
        top: 32px;
    }

    #MenuIcon {
        display: block;
        margin-right: 14px;
    }

    #CaMenu{
        position: absolute;
        display: none;
        text-align: left;
        top: 80px;
        left: 0;
    }

    #CaMenu > li {
        clear: both;
        display: block;
        margin: 0;
        background-image: none;
        height: 30px;
        width: 150px;
        margin-bottom: 4px;
        background-color: #fd8a54;
    }

    #CaMenu > li:hover {
        background-image: none;
        background-size: auto 20px;
    }

    .menu-label {
        display: block;
        text-align: center;
        margin-top: 4px;
        color: #fff;
        cursor: pointer;
        font-size: 16px;
        vertical-align: middle;
        width: 150px;
    }

    #CaMenu > li > ul {
        position: absolute;
        top: 0;
        left: 66px;
        background-image: none;
        margin: 0 8px;
        width: 256px;
    }

    #CaMenu > li > ul > li > a {
        padding: 2px 0 2px 8px;
         font-size: 14px;
    }

    #MenuFoodSafetyContent{
        height: 500px;
        overflow-y: scroll;
    }
}

@media screen and (max-width:860px) {
    #CaMenu > li:hover > ul > li.hide-on-mobile {
        display: none;
    }
}

@media screen and (max-height:700px) {
    #CaMenu > li:hover > ul > li.full-only {
        display: none;
    }
}