/** Menu
 **************************************************************** **/
#topBar {
    display: block;
    position: relative;
    min-height: 22px;
    z-index: 11;
    border: 1px solid #bbb;
}

    #topBar.styleBackgroundColor,
    #topBar.styleBackgroundColor a {
        color: #fff;
    }

body.boxed #topBar {
    -webkit-border-bottom-left-radius: 2px;
    -webkit-border-bottom-right-radius: 2px;
    -moz-border-radius-bottomleft: 2px;
    -moz-border-radius-bottomright: 2px;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

#topBar a.social {
    width: 24px;
    height: 24px;
    line-height: 26px;
    font-size: 16px;
}

#topNav a.logo {
    margin: 10px 15px 22px 0;
    padding: 0 0 5px 20px;
    display: inline-block;
    height: 41px;
    float: left;
}

    #topNav a.logo.onepage {
        display: inline-block;
        height: 50px;
        overflow: hidden;
        margin-top: 3px;
    }

#topNav {
    display: block;
    left: 0;
    right: 0;
    top: 0;
    min-height: 95px;
    /*border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;*/
    background: #fff;
    position: relative;
    z-index: 10;
    background-image: url('../images/quicken/quicken_nav-bg.png');
    background-position-x: 0px;
    background-position-y: 0px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-origin: initial;
    background-clip: initial;
    background-color: rgb(230, 46, 48);
    -webkit-box-shadow: 0 4px 0 rgba(0, 0, 0, 0.04);
    -moz-box-shadow: 0 4px 0 rgba(0, 0, 0, 0.04);
    -o-box-shadow: 0 4px 0 rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.04);
}

@media (max-width: 767px) {
    #topNav {
        background-size: initial;
    }
}

.navbar-nav.navbar-left {
    margin: 20px 0 0 12px;
}

.navbar-nav.navbar-right {
    margin: 14px 0 0 12px;
}

#topNav .nav-pills > li > a,
#topNav .nav-pills > li > a:hover,
#topNav .nav-pills > li > a:focus,
#topNav .nav-pills > li.active > a,
#topNav .nav-pills > li.active > a:hover,
#topNav .nav-pills > li.active > a:focus {
    color: #fff;
    background-color: transparent;
}

#topNav nav.nav-main {
    color: #fff;
    background-color: transparent;
    margin: 22px 0 0 0;
    border: none;
}

#topNav div.nav-main-collapse,
#topNav div.nav-main-collapse.in {
    border: none;
}

#topNav div.navbar-collapse {
    padding: 0;
}

#topNav ul.nav > li:hover > a:before,
#topNav ul.nav > li.active > a:before {
    content: ' ';
    height: 2px;
    width: 100%;
    left: 0;
    top: -3px;
    position: absolute;
    background-color: transparent !important;
}

#topNav ul.nav > li {
    color: #666;
    /*border-left:#eee 1px solid;*/
    text-align: center;
    position: relative;
    margin: 0;
}

    #topNav ul.nav > li:last-child {
        /*border-right:#eee 1px solid;*/
    }

    #topNav ul.nav > li:hover > a,
    #topNav ul.nav > li:active > a {
        /*font-weight: 500!important;*/
    }

    #topNav ul.nav > li a {
        color: #fff;
        background-color: transparent;
        padding: 15px 23px;
        position: relative;
        text-decoration: none;
        font-size: 14px;
        line-height: 14px;
        display: block;
        font-weight: 500;
        -webkit-transition: all 0.2s;
        -moz-transition: all 0.2s;
        -o-transition: all 0.2s;
        transition: all 0.2s;
    }

    #topNav ul.nav > li > a > span {
        /*display:block;*/
        font-size: 12px;
        color: #fff;
        -webkit-transition: all 0.2s;
        -moz-transition: all 0.2s;
        -o-transition: all 0.2s;
        transition: all 0.2s;
    }

#topNav ul.nav. > li:hover a {
    color: #fff;
}

#topNav ul.nav.dropdown-menu > li a {
    color: #000;
}


/* submenu */
#topNav ul.dropdown-menu li.divider {
    margin: -1px 0 0 0;
    padding: 0;
    border: 0;
    border-bottom: rgba(0,0,0,0.2) 1px solid;
}

#topNav .nav li:hover > ul.dropdown-menu {
    padding: 1px 0 0 0;
    display: block;
    z-index: 100;
}

#topNav ul.dropdown-menu {
    text-align: left;
    color: #000;
    margin-top: 0;
    border: #eee 1px solid;
    border-top: 0;
    list-style: none;
    background-color: #fff;
    min-width: 200px;
    -webkit-box-shadow: -6px 6px 4px rgba(0, 0, 0, 0.18);
    -moz-box-shadow: -6px 6px 4px rgba(0, 0, 0, 0.18);
    -o-box-shadow: -6px 6px 4px rgba(0, 0, 0, 0.18);
    box-shadow: -6px 6px 4px rgba(0, 0, 0, 0.18);
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    border-radius: 1px;
}

    #topNav ul.dropdown-menu li {
        position: relative;
    }

    #topNav ul.dropdown-menu > li a {
        margin: 0;
        padding: 15px 80px 15px 25px;
        font-weight: 400;
        color: #555;
        font-size: 13px;
        border-bottom: rgba(0,0,0,0.1) 1px solid;
    }

        #topNav ul.dropdown-menu > li a i.fa {
            margin-right: 4px;
        }

    #topNav ul.dropdown-menu a.dropdown-toggle:after {
        content: "\f105";
        font-family: FontAwesome;
        position: absolute;
        font-size: 15px;
        right: 10px;
        top: 9px;
        color: #999;
    }

#topNav .dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #eaeaea;
    margin-top: 5px;
    margin-right: -10px;
}

#topNav .dropdown-submenu li:hover > a:after {
    color: #fff !important;
}

#topNav ul.dropdown-menu li:last-child > a {
    border-bottom: 0;
    border-bottom: 0;
}

.dropdown-menu > li:hover > a,
.dropdown-menu > li:focus > a {
    color: #fff !important;
    background-color: #333;
}

/* sub-submenu */
#topNav ul.dropdown-menu > li:hover > ul.dropdown-menu {
    display: block;
    position: absolute;
    left: 100%;
    top: 0;
    padding: 0;
    margin: 0;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-right: 0 !important;
    border: #eaeaea 1px solid;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}




/* mobile */
#topNav button.btn-mobile {
    display: none;
}

#topNav button.btn-mobile {
    color: #fff;
    display: none;
    background: transparent;
    padding: 6px 10px;
    margin-top: 10px;
    margin-bottom: 3px;
    border: solid;
    border-width: 1px;
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    border-radius: 1px;
}

    #topNav button.btn-mobile i {
        padding: 0;
        margin: 0;
        font-size: 21px;
    }

#topNav span.glyphicon {
    margin-right: 8px;
    color: #fff !important;
    padding: 4px 0 0 0;
}


/** Responsive Top Nav
 **************************************************************** **/
@media only screen and (max-width: 1024px) {
    #topNav .search {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    #topNav {
        background-color: #fff;
    }

    .navbar-collapse {
        max-height: 100%;
    }

    .navbar-nav {
        margin: 0px 15px 0px 15px;
    }

    #topNav ul.nav > li:hover a > span.glyphicon {
        color: #fff !important;
    }

    #topNav span.glyphicon {
        margin-right: 8px;
        color: #000 !important;
        padding: 4px 0 0 0;
    }

    #topNav .container {
        padding: 0;
        margin: 0;
    }

    #topNav button.btn-mobile {
        display: block;
        float: right;
        margin-right: 15px;
    }

    #topNav form.search {
        float: left;
        margin-top: 6px;
        margin-left: 15px;
    }

    #topNav nav.nav-main {
        background-color: transparent;
    }

    #topNav div.nav-main-collapse,
    #topNav div.nav-main-collapse.in {
        width: 100%;
        margin: 0 0 0 0;
    }

    #topNav div.nav-main-collapse {
        float: none;
        overflow-x: hidden;
        background-color: #fff;
    }

        #topNav div.nav-main-collapse.collapse {
            display: none !important;
        }

        #topNav div.nav-main-collapse.in {
            display: block !important;
        }

    #topNav div.nav-main-collapse {
        position: relative;
    }

    /**************************************************************************/

    #topMain > li > a > span {
        display: none !important;
    }

    #topMain li {
        display: block !important;
        float: none;
        text-align: left;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
    }

    #topMain > li > a {
        text-align: left;
        border: 0;
        border-bottom: rgba(0,0,0,0.1) 1px solid;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
    }

    #topMain > li:hover,
    #topMain > li:hover > a {
        border-top: 0 !important;
    }

    /**************************************************************************/

    #topNav ul.nav > li {
        background-color: #fff;
        /*border-left:#eee 1px solid;*/
        text-align: left;
        position: relative;
        margin: 0;
    }

    #topNav ul.nav.navbar-left > li:first-child {
        padding: 3px 0 0 0;
    }

    #topNav ul.nav > li:last-child {
        /*border-right:#eee 1px solid;*/
    }

    #topNav ul.nav > li:hover > a:before,
    #topNav ul.nav > li.active > a:before {
    }

    #topNav ul.nav > li:hover,
    #topNav ul.nav > li:active {
    }

        #topNav ul.nav > li:hover > a,
        #topNav ul.nav > li:active > a {
            /*font-weight: 500!important;*/
            background-color: #146794;
        }

    #topNav ul.nav > li > a.dropdown-toggle:after {
        content: "\f107";
        font-family: FontAwesome;
        position: absolute;
        font-size: 14px;
        right: 20px;
        top: 15px;
        color: #999;
    }

    #topNav ul.nav > li > a.dropdown-toggle > span {
        display: none;
    }

    #topNav ul.nav > li > a > span {
        /*display:block;*/
        font-size: 12px;
        color: #fff;
        -webkit-transition: all 0.2s;
        -moz-transition: all 0.2s;
        -o-transition: all 0.2s;
        transition: all 0.2s;
    }

    #topNav ul.nav > li:hover a.dropdown-toggle {
        color: #fff;
    }

    #topNav ul.nav > li > a:hover {
        color: #fff;
    }

    #topNav ul.nav > li > a {
        color: #000;
    }

    #topNav ul.nav.dropdown-menu > li:hover a {
        color: #fff;
    }

    #topNav ul.nav.dropdown-menu > li a {
        color: #000;
    }

    /* submenu */
    #topMain ul.dropdown-menu {
        color: #00f;
        position: static;
        clear: both;
        float: none;
        display: none !important;
        border-left: 0 !important;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }

    #topNav nav.nav-main li.resp-active > ul.dropdown-menu {
        display: block !important;
        margin-left: 30px;
        margin-right: 30px;
        padding: 0px 0;
        border-right: 0;
    }

        #topNav nav.nav-main li.resp-active > ul.dropdown-menu li {
            border-left: 0;
        }

    #topNav ul.nav > li:hover > a:before,
    #topNav ul.nav > li.active > a:before {
        background-color: transparent;
    }

    #topNav ul.dropdown-menu > li:hover > ul.dropdown-menu {
        position: static;
    }
}

@media only screen and (max-width: 479px) {

    #topNav form.search {
        margin-left: 4px;
    }

    #topNav button.btn-mobile {
        margin-right: 4px;
    }

    #topBar .container {
        padding: 0 3px 6px 6px;
    }

    #topBar a.logo {
        display: block;
        text-align: center;
        margin: 6px 0;
        float: none;
    }

    .hide_mobile {
        display: none;
    }
}
