nav#menu, nav#subnav {
    box-sizing: border-box;
}

nav#menu {
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    position: fixed;
}

.menu-btn-section {
    top: 0;
    right: 0;
    position: absolute;
    display: flex;
}

#dropdown_toggle,
#home-btn,
#advanced-icon {
    display: flex;
    width: 50px;
    height: 100%;
    cursor: pointer;
    min-height: 45px;
    position: relative;
}

#advanced-icon {
    cursor: unset;
}

.menu-btn-section .feather {
    color: #fff;
    margin: auto !important;
    padding: 0 !important;
}

div#dropdown_wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
    width: 100%;
    max-height: 0px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    background-color: #fff;
    transition: max-height 400ms;
    border-bottom: 1px solid rgba(0,0,0,.15);
    box-shadow: 0 0 2px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.15);
}

div.dropdown_helper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-self: flex-start;
}

div.dropdown_helper {
    box-sizing: border-box;
}

ul#overflow, ul#settings, ul#currentuser {
    min-width: 360px;
    box-sizing: border-box;
}

ul#overflow, ul#settings, ul#currentuser {
    margin: 0;
    padding: 15px 20px;
    list-style: none;
}

ul#overflow li, ul#settings li, ul#currentuser li {
    display: block;
    padding: 3px 5px;
}

ul#overflow li, ul#settings li, ul#currentuser li,
ul#overflow li a, ul#settings li a, ul#currentuser li a {
    width: 100%;
    color: #1a1a1a;
    font-size: 13px;
    overflow: hidden;
    text-decoration: none;
}

ul#overflow li.active,
ul#overflow li a.active {
    font-weight: bold;
}

ul#overflow a, ul#settings a, ul#currentuser a {
    cursor: pointer;
}

ul#overflow li a, ul#settings li a, ul#currentuser li a {
    overflow-wrap: break-word;
    word-break: break-all;
    word-wrap: break-word;
    text-overflow: ellipsis;
    white-space: normal;
}

ul#overflow li a:hover, ul#settings li a:hover, ul#currentuser li a:hover {
    font-weight: bolder;
}

ul#overflow li.title, ul#settings li.title, ul#currentuser li.title {
    font-size: 14px;
    font-weight: bolder;
    line-height: 25px;
    margin-bottom: 10px;
    border-bottom: 1px solid #666;
}

#dropdown_wrapper li {
    background-color: transparent;
    box-sizing: border-box;
}

div#bar_wrapper {
    position: relative;
    padding: 0 0 0 15px;
    background-color: #007ACC;
    box-shadow: 0 0 2px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.14);
}

#overflow_items {
    overflow-x: hidden;
    overflow-y: auto;
    text-overflow: ellipsis;
}

#overflow_items ul,
#cofiguration_items ul,
#settings_items ul,
#currentuser_items ul {
    padding: 0;
}

ul#bar {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 46px;
    overflow: hidden;
    min-height: 45px;
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: flex-start;
}

ul#bar li {
    display: inline-block;
    transition: background-color 400ms;
}

ul#bar li:hover, ul#bar li.active, div#dropdown_toggle.active {
    background-color: #1C97EA;
}

ul#bar li a {
    width: 100%;
    color: #fff;
    display: block;
    font-size: 14px;
    font-weight: normal;
    padding: 14px 15px;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}

nav#subnav {
    box-sizing: border-box;
    width: 100%;
    padding: 0 15px;
    background-color: #f0f0f0;
}

nav#subnav ul {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    list-style: none;
}

nav#subnav ul li {
    float: left;
    padding: 4px 0;
    transition: background-color 300ms;
}

nav#subnav ul li a {
    color: #000;
    width: 100%;
    padding: 0 15px;
    text-decoration: none;
}

nav#subnav ul li:hover, nav#subnav ul li.active {
    background-color: rgba(0,0,0,.09);
}

#subnav, #menu {
    z-index: 1000;
}

#subnav a {
    font-weight: normal;
}

.subnavlist {
    list-style: none outside none;
    margin: 0px;
    display: inline-block;
    padding: 0px;
}

.subnavlistitem {
    display: inline-block;
    border: medium none;
    min-height: 17px;
    padding: 0px 10px;
    color: #007acc;
    text-decoration: none;
    float: left;
    font-size: inherit;
    background-size: contain;
}

.subnavlink {
    text-decoration: none;
    color: #535353;
    margin: 0px;
    display: block;
    width: 100%;
    height: 100%;
}

.subnavlinkactive {
    text-decoration: none;
    color: #007acc;
    margin: 0px;
    display: block;
    width: 100%;
    height: 100%;
    font-weight: bold;
}

.subnavlink:hover {
    cursor: pointer;
    color: #007acc;
}

.nav {
    margin: 0px;
    height: auto;
    padding: 0px 20px;
    background: none repeat 0% 0% #007ACC;
}

.nav ul {
    list-style: none outside none;
    margin: 0px;
    display: inline-block;
    padding: 0px;
}

.nav li {
    display: inline-block;
    min-height: 30px;
    padding: 0px 10px;
    color: #FFF;
    text-decoration: none;
    font-size: inherit;
    font-weight: bold;
    text-align: center;
}

.nav a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 5px;
    text-decoration: none;
    margin: 0 auto;
}


/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: fixed;
    background-color: #007ADD;
    min-width: 160px;
    right: 0px;
    z-index: 100;
    top: 45px;
}

/* Links inside the dropdown */
.dropdown-content a {
    text-align: left;
    color: white;
    padding: 11 12;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background: #1C97FA;
}

.nav li:hover {
    background-size: contain;
}

.navbar-extension-state-error {
    border-bottom: 4px solid #FF0000;
}

.navbar-extension-state-loaded {
    border-bottom: 4px solid #FFFFFF;
}

.active {
    cursor: pointer;
    background: none repeat scroll 0% 0% #1C97EA;
}

.disabled {
    cursor: default;
}
