/* -- navigation -------------------------------------------------- */
#SearchForm,
#TopMenu {
	float: none;
}

#NavigationMenu {
	height: 60px;
}

#Header {
	border: 0;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.16), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

#HeaderBar, .navbar-header {
	position: relative;
	z-index: 1;
}

#HeaderBar .navbar-backdrop {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background-color: #ffffff;
}

#headerContainer {
	/*width: 100vw !important;*/
	width: 100% !important;
}

#headerContainer .row {
	display: flex;
	justify-content: space-between;
}

#Titles {
	width: 50%;
}

#MyActionsMenu {
	left: 0;
	width: 50%;
}

#CenterTitles {
	right: 0;
}

#Header .navbar-brand {
	height: 60px;
	margin: 0;
	padding: 0 10px 0 0;
	font-size: 12px;
	font-weight: bold;
	color: #4094f0;
}

#Header #Logo {
	border: 0;
	height: 60px;
	line-height: 60px;
	padding: 0 15px 0 0;
}

.menu-bar-top  #Header .navbar-nav > li > a {
	color: inherit;
	padding-top: 20px;
	padding-bottom: 20px;
	font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: normal;
}

#Header .nav > li > a:hover {
    background-color: transparent;
}

#Header .nav > li .dropdown-menu {
	border-radius: 2px;
	padding: 10px 0;
	border: 0;
	box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.24), 0 1.5px 6px rgba(0, 0, 0, 0.12);
}

.menu-bar-top #Header .nav > li .dropdown-menu > li > a {
    padding: 6px 45px;
    font-size: 13px;
	font-weight: 400;
	color: #545454;
}

#HeaderCollapse.readability-dark-background .collapse-inner #NavigationMenu li > ul > li > a:hover {
    color: rgb(0,0,0);
}

#Header .nav li > a .icon {
	float: left;
	margin-left: -28px;
}

#Header .nav > li.dropdown.open > .dropdown-toggle,
#Header .nav > li.dropdown.active > .dropdown-toggle,
#Header .nav > li.dropdown.open.active > .dropdown-toggle {
	position: relative;
	color: white;
	background-color: #6d6d6d;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

#TopMenu {
	padding-left: 0;
}

#TopMenu .nav > li .lnr {
	font-size : 24px;
	vertical-align: middle;
	transition: color 0.2s ease-out;
}

#TopMenu .nav > li > a {
	padding: 18px 6px;
	font-weight: 500;
}

#TopMenu .nav .user-btn .lnr {
	margin-right: 4px;
}

#TopMenu .nav > li.divider {
    width: 1px;
    height: 60px;
    margin: 0 9px;
    overflow: hidden;
    background-color: #e5e5e5;
}

#TopMenu .nav > li > a > .avatar {
	width: 30px;
	height: 30px;
	margin: -3px 8px -3px 0;
	border-radius: 18px;
	border: 2px solid transparent;
}

#TopMenu .nav > li.dropdown.open > a > .avatar {
	border-color: #fff;
}

/* -- universal search form --------------------------------------- */
#SearchForm {
	margin: 12px 2px 12px 2px;
	padding: 0;
	border-right: 0;
	position: relative;
}

#SearchForm .search-query {
	padding-left: 4px;
	padding-right: 32px;
	background-clip: padding-box;
	box-shadow: none;
	width: 36px;
	height: 36px;
	border: 0;
	border-bottom: 1px solid transparent;
	border-radius: 0;
	background-color: transparent;
	cursor: pointer;
}
	
#SearchForm .lnr {
	position: absolute;
	top: 7px;
	right: 4px;
	pointer-events: none;
	transition: background-color 0.3s ease-out;
}

#SearchForm.hovered .lnr {
	color: #4094f0;
}

#SearchForm.focused .search-query {
	width: 200px;
	right: 30px;
	border-bottom: 1px solid #4094f0;
}
#SearchForm.focused .lnr {
	color: #4094f0;
}

#SearchForm .allow-scan {
	padding: 0;
}

#SearchForm .btn-scan {
	display: none;
	right: 40px;
	border: 0;
}
#SearchForm .btn-scan .glyphicon {
	font-size: 20px;
}
#SearchForm.focused .btn-scan {
	display: block;
}

#ActionsMenu div#PageActions {
	float: right;
}

#PageCenterTitle {
	text-align: center;
}

#SearchForm 
/* -- sub menu ---------------------------------------------------- */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px 6px;
    border-radius: 0 6px 6px 6px;
}
.dropdown-submenu:hover > .dropdown-menu {
    display:block;
}
.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:#cccccc;
    margin-top:5px;
    margin-right:-10px;
}
.dropdown-submenu.pull-left {
    float:none;
}
.dropdown-submenu.pull-left > .dropdown-menu {
    left:-100%;
    margin-left:10px;
    -webkit-border-radius:6px 0 6px 6px;
    -moz-border-radius:6px 0 6px 6px;
    border-radius:6px 0 6px 6px;
}

/* -- header collapse --------------------------------------------- */

.navbar-toggle {
	margin-bottom: 12px;
	margin-top: 12px;
	padding: 10px 5px;
}
.navbar-toggle .icon-bar {
	background-color: gray;
}
.readability-dark-background .navbar-toggle .icon-bar {
	background-color: white;
}

.navbar-toggle .icon-bar:nth-of-type(2) {
	top: 1px;
}
.navbar-toggle .icon-bar:nth-of-type(3) {
  	top: 2px;
}
.navbar-toggle .icon-bar {
	  position: relative;
	  transition: all 500ms ease-in-out;
}
.navbar-toggle.open .icon-bar:nth-of-type(1) {
	  top: 6px;
	  transform: rotate(45deg);
}
.navbar-toggle.open .icon-bar:nth-of-type(2) {
	  background-color: transparent;
}
.navbar-toggle.open .icon-bar:nth-of-type(3) {
	  top: -6px;
	  transform: rotate(-45deg);
}

/* -- sub header -------------------------------------------------- */

/*#SubHeader {
	position: relative;
	padding: 1px 0;  for margin collapse 
}*/

.menu-bar-left .container {
    margin: unset !important;
}

@media(min-width: 770px) {
	.conditionsInitialized .btn-default {
		margin-left: 200px
	}
}

#PageTitle {
	/*margin: 15px 0 15px 15px; */
	height: 35px;
	background-color: transparent;
	white-space: nowrap;	
}

.has-breadcrumbs #PageTitle {
	margin-top: 0;
}

.page-actions-active #PageTitle {
	display: none;
	margin-left: -5px;
	opacity: 0;
}

#PageTitle h2,
#PageTitle .select2-chosen,
#PageTitle .lookup-value-title,
#PageCenterTitle .date-picker-text {
    font-family: 'Open Sans', sans-serif;
	color: #ffffff;
	background-color: transparent;
	font-weight: 300;
	line-height: 32px;
	height: 34px;
	font-size: 30px;
	margin-top: 0;
	margin-bottom: 0;
}

#PageTitle h2 {
	white-space: nowrap;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    vertical-align:middle;
}

#PageTitle .date-selector h2 {
	width: 100%;
}

#PageTitle .date-selector h2 {
	width: 100%;
}

#PageTitle .select2-default > .select2-chosen {
	color: white !important;	
}

#PageTitle .select2-search-choice-close {
	color: white;
	margin-top: 6px;
	margin-right: 10px;
}

#Header.affix #PageTitle h2,
#Header.affix #PageTitle .select2-chosen,
#Header.affix #PageCenterTitle .date-picker-text  {
	font-size: 1.6em;
	display: inline-block;
}

#PageTitle .selector .select2-arrow {
	border-top: 6px solid #ffffff;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
}

#PageTitle .selector.select2-dropdown-open .select2-arrow {
	border-top: 0;
	border-bottom: 6px solid #ffffff;
}

#PageCenterTitle {
	/*
	position: absolute;
	/top: 35px; causes issues when there is no breadcrumb*/
	/*left: 50%;*/
	
	transition: top 0.35s ease-in-out, opacity 0.35s ease-in-out;
	pointer-events: none; /* title occludes action button */
}

#Header.affix #PageCenterTitle {
	top: 7px;
}

#ActionsMenu {
	margin-bottom: 10px !important;
}

#PageTitle {
	margin-top: 15px;
	margin-bottom: 10px;
}

#PageCenterTitle > * {
/*	position: relative;
	left: -50%; */
}

#PageCenterTitle .date-picker {
	display: inline-block;
	pointer-events: all; /* need to reverse pointer-events: none */
}
#PageCenterTitle .date-picker:before {
	content: none;
}
#PageCenterTitle .date-picker-text {
	padding-right: 0;
}
#PageCenterTitle .date-picker-allow-clear .date-picker-text {
	padding-right: 30px;
}
#PageCenterTitle .date-picker .date-picker-clear-choice {
	right: 8px;
}
#PageCenterTitle .date-picker.direction-buttons .btn-prev,
#PageCenterTitle .date-picker.direction-buttons .btn-next {
	border: 0;
	font-size: 20px;
	padding: 0;
}

#PageTitle img {
	float: left;
	max-height: 30px;
	max-width: 30px;
	margin: 5px 10px 5px 0;
	border-radius: 2px;
}

#PageTitle .btn-to-top {
	float: left;
	color: white;
	font-size: 14px;
	line-height: 40px;
	width: 0;
	opacity: 0;
	overflow: hidden;
	transition: all 0.35s ease-in-out;
}
#Header.affix #PageTitle .btn-to-top {
	opacity: 1;
	width: 14px;
	margin-right: 10px;
}

#Header.affix #PageTitle img {
	display: none;
}

#Breadcrumbs {
	display: block;
	overflow: hidden;
	margin: 15px 15px 0;
	height: 20px;
	line-height: 20px;
	white-space: nowrap;
	overflow: hidden;
	opacity: 1;
	transition: all 0.35s ease-in-out;
}

#Header .breadcrumb li,
#Header .breadcrumb li a {
	font-size: 1.2rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.6);
}

#Header .breadcrumb li:first-child:before {
	content: none;
}
#Header .breadcrumb li:before {
    content: '\e080';
    color: rgba(255, 255, 255, 0.6);
    vertical-align: top;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-size: 0.7em;
    margin: 0 5px 0 4px;
    -webkit-font-smoothing: antialiased;
}

#Header .breadcrumb .divider {
	display: none;
}

#Header .breadcrumb li.active {
	color: white;
	margin-left: 20px;
	height: 0;
	opacity: 0;
	transition: margin-left 0.35s ease-in-out, opacity 0.35s ease-in-out;
}

.page-actions-active #Header .breadcrumb li.active {
	height: auto;
	opacity: 1;
	margin-left: 0;
}

#Header .navbar-nav > li > a.btn-header {
	background-color: transaprent;
	border: 1px solid #777777;
	border-radius: 3px;
	padding: 8px 10px;
	margin: 11px 0 11px 6px;
}
#Header .navbar-nav > li > a.btn-header:hover,
#Header .navbar-nav > li > a.btn-header:active {
	color: white;
	background-color: #777777;
}
#Header .navbar-nav > li > a.btn-important {
	color: #0bc37b;
	border-color: #0bc37b;
}
#Header .navbar-nav > li > a.btn-important:hover,
#Header .navbar-nav > li > a.btn-important:active {
	color: white;
	background-color: #0bc37b;
}

#Header.affix #Breadcrumbs {
	margin-top: 5px;
	margin-bottom: 0;
	opacity: 0;
	height: 0;
}
#Header.affix #PageTitle,
#Header.affix #ActionsViewTitle {
	margin-bottom: 5px;
}
#Header.affix .has-breadcrumbs #PageTitle {
	margin-top: 0;
}

/* -- actions ----------------------------------------------------- */
#ActionsViewTitle {
	display: none;
	margin: 15px 0 15px 15px; 
	height: 35px;
	background-color: transparent;
	white-space: nowrap;
	overflow: hidden;
}

.has-breadcrumbs #ActionsViewTitle {
	margin-top: 0;
}

.page-actions-active #ActionsViewTitle {
	display: block;
}

#ActionsViewTitle h3 {
    font-family: 'Open Sans', sans-serif;
	color: #ffffff;
	line-height: 35px;
	font-weight: 600;
	font-size: 20px;
	margin-top: 0;
	margin-bottom: 0;
}

#ActionsViewTitle .close {
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
	color: white;
	font-size: 30px;
	line-height: 35px;
	opacity: 1;
	margin-right: 10px;
	float: left;
}

#ActionsMenu,
#ActionsViewMenu {

	position: relative;
	float: right;
	text-align: right;
	white-space: nowrap;
	margin: 15px 15px 15px 0;
	opacity: 1;
	transition: all 0.35s ease-in-out;
	
}

#ActionsViewMenu {
	display: none;
}

.page-actions-active #ActionsMenu {
	opacity: 0;
	display: none;
}

.page-actions-active #ActionsViewMenu {
	display: block;
}

#Header.affix #ActionsMenu,
#Header.affix #ActionsViewMenu {
	margin-top: 5px;
}

.has-breadcrumbs #ActionsMenu,
.has-breadcrumbs #ActionsViewMenu,
#Header.affix .has-breadcrumbs #ActionsMenu,
#Header.affix .has-breadcrumbs #ActionsViewMenu {
	margin-top: 0;
	margin-bottom: 0;
}

#ActionMenuContainer h5 {
	border-bottom: solid 2px lightgray;
	padding-bottom: 5px;
    margin-left: 10px;
    margin-right: 10px;
    text-align: left;
    color: #333;
}

#ActionMenuContainer h5 .glyphicon {
	float: none;
    margin-top: 1px;
    margin-left: 10px;
}

#ActionMenuContainer {
	min-width: 287px;
	max-height: 700px;
	overflow-y: auto;
}

/*.search-nav-group,
.user-nav-group,
.extra-nav-group {
	margin-left: 8px;
}

.search-nav-group li:first-child,
.user-nav-group li:first-child,
.extra-nav-group li:first-child {
	border-left: 1px solid #e5e5e5 !important;
}*/
	
/* -- resolution -------------------------------------------------- */

@media (min-width: 768px) {
	
	.menu-bar-top #ActionMenuContainer {
		max-height: 600px;
		overflow-y: auto;
	}
	
	.menu-bar-top #SearchForm, #TopMenu {
		float: right;
	}
	.menu-bar-top #SearchForm .search-query {
		/* in order to avoid an animation quirk when switching between collapsed and regular modes */
		transition: width 0.3s ease-out, right 0.3s ease-out, border 0.3s ease-out, background-color 0.3s ease-out;
	}
	.menu-bar-top #Header.readability-dark-background .navbar-nav > li > a {
		color: white;
	}
	
}

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 823px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) {
	#ActionMenuContainer {
		max-height: 200px !important;
	}
}
@media (max-width: 767px) {
	
	.menu-bar-top #ActionMenuContainer {
		max-width: 225px;
		max-height: 400px;
		overflow-y: auto;
		overflow-x: auto;
	}
	.menu-bar-top #PageTitle h2 {
	    	overflow: hidden;
	}
	
	.menu-bar-top #PageTitle .date-selector h2 {
		width: 100% !important;
	}
	
	.menu-bar-top #PageCenterTitle {
		margin-top: 0;
	}
	
	.menu-bar-top #PageTitle .date-selector h2 {
		width: 100% !important;
	}
	
	.menu-bar-top #PageCenterTitle {
		margin-top: 0;
	}
	
	.menu-bar-top #Header #Logo {
		padding: 0 15px;
	}

	.menu-bar-top #NavigationMenu {
		height: auto;
	}
	
	.menu-bar-top #TopMenu {
		border-top: 1px solid #e5e5e5;
	}
	
	.menu-bar-top #TopMenu .nav > li > a {
		font-weight: 700;
	}
	
	.menu-bar-top #TopMenu, .menu-bar-top #NavigationMenu {
		margin: 0 -15px;
		padding: 0;
	}
	
	.menu-bar-top #TopMenu .nav > li.divider {
	    display: none;
	}

	#Header .navbar-collapse {
		max-height: none;
		background-color: #f8f8f8;
		position: fixed !important;
		height: 100% !important;
		width: 100%;
		padding-top: 59px;
		box-sizing: border-box;
		margin: 0;
		top: 0;
		left: 0;
		opacity: 1;
		transition: opacity .35s ease-out, top .35s ease-out;
		-webkit-overflow-scrolling : touch;
		z-index: -1;
	}
	
	.menu-bar-top #Header .nav > li {
		color: black;
	}
	.menu-bar-top #Header .readability-dark-background .nav > li .lnr-magnifier {
		color: white;
	}
	.menu-bar-top #Header .nav > li > a {
		padding-left: 42px;
	}
	.menu-bar-top #Header .nav > li .dropdown-menu > li > a {
		padding: 8px 45px 8px 62px;
		padding-left: 62px;
		font-size: 1.2em;
	}
	.menu-bar-top #Header .nav > li .dropdown-menu > li > a:hover,
	.menu-bar-top #Header .nav > li .dropdown-menu > li > a:active {
		color: #4094f0;
	}
	.menu-bar-top #Header .nav > li > .dropdown-menu .icon {
		display: none;
	}
	.menu-bar-top #Header .nav > li.dropdown.open > .dropdown-toggle:after {
		content: none;
	}
	.menu-bar-top #Header .navbar-collapse.collapsing {
		top: -100%;
		opacity: 0;
	}
	.menu-bar-top #Header .nav > li.dropdown > .dropdown-menu {
		position: static;
		box-shadow: none;
		border-radius: 0;
		margin-top: -20px;
		display: block;
		height: 0;
		overflow: hidden;
		visibility: hidden;
		transition: margin .15s ease-out;
		float: none;
	}
	.menu-bar-top #Header .nav > li.dropdown.open > .dropdown-menu {
		margin-top: 0;
		height: auto;
		visibility: visible;
	}
	
	/*#PageCenterTitle,
	#PageCenterTitle > * {
		left: 0;
	}*/
	
	.menu-bar-top #Header .has-center-title .breadcrumb li.active {
		height: auto;
		opacity: 1;
		margin-left: 0;
	}
	
	.menu-bar-top #Header .has-center-title #PageTitle {
		/*width: 0; */
		margin-left: -5px;
		/*opacity: 0; */
	}
	
	.menu-bar-top .collapse-inner {
		padding-bottom: 260px;
		position: relative;
	}
	
	.menu-bar-top .search-nav-group {
		margin: 0 25px;
	}
	
	.menu-bar-top .user-nav-group,
	.menu-bar-top .extra-nav-group {
		position: absolute;
		left: 0;
		right: 0;
		background-color: #ffffff;
		border-top: 1px solid #e5e5e5;
		border-bottom: 1px solid #e5e5e5;
		margin: 0 -15px;
	}
	.menu-bar-top .user-nav-group {
		bottom: 180px;
		z-index: 1;
	}
	.menu-bar-top .extra-nav-group {
		bottom: 0;
		z-index: 2;
	}
	
	.menu-bar-top #SearchForm {
		margin: 14px;
	}
	#SearchForm .glyphicon-search {
		right: 14px;
		top: 20px;
	}
	.menu-bar-top #SearchForm .search-query {
		width: 100% !important;
		padding-left: 6px;
		padding-right: 30px;
		font-size: 16px;
		transition: background-color 0.3s ease-out;
		height: 40px;
		border-bottom: 1px solid gray;
	}
	
	.menu-bar-top #Breadcrumbs {
		margin: 10px 15px 5px;
	}
	
}

@media (min-width:1200px) {
	.menu-bar-top #Breadcrumbs {
		margin-top: 10px;
	}
	#ActionsMenu,
	#ActionsViewMenu {
		margin-top: 20px;
		margin-bottom: 20px;
	}
	.menu-bar-top #PageTitle h2,
	.menu-bar-top #PageTitle .select2-chosen {
		font-size: 32px;
		line-height: 40px;
		height: 40px;
	}
	.menu-bar-top #ActionsViewTitle h3 {
		line-height: 40px;
	}
	
	.menu-bar-top #Header.affix #PageCenterTitle {
		top: 10px;
	}
	.menu-bar-top #PageCenterTitle .date-picker-text {
		height: 40px;
	}
}

/* -- print ------------------------------------------------------- */
@media print {
	#Header {
		position: static;
		margin: 0;
	}
	#HeaderBar,
	#Breadcrumbs,
	#ActionsMenu,
	#ActionsViewGroup,
	#PageTitle .btn-to-top {
		display: none !important;
	}
	#SubHeader {
		background: transparent !important;
	}
	#PageTitle {
		margin: 0 !important;
		padding: 15px 0;
		height: auto;
	}
	#PageTitle h2 {
		font-size: 30px !important;
	}
}

@media(max-width: 1400px) {

	.menu-bar-top #MyActionsMenu {
		width: 100%;
	}
	
	.menu-bar-top #Titles {
    	width: 100%;
    }

	#headerContainer .row {
		/*flex-direction: column;*/
	}
	
	/* Left Menu Bar Position */

}

/* Hover color for menu items when dropdown is not open */
.menu-bar-top #Header #HeaderBar .collapse-inner #NavigationMenu > li:not(.open) > a:hover,
.menu-bar-top #Header #HeaderBar .readability-dark-background #TopMenu .user-nav-group > li:not(.open) > a:hover,
.menu-bar-top #Header #HeaderBar .readability-light-background #TopMenu .user-nav-group > li:not(.open) > a:hover,
.menu-bar-top #Header #HeaderBar .readability-dark-background #TopMenu .extra-nav-group > li:not(.open) > a:hover,
.menu-bar-top #Header #HeaderBar .readability-light-background #TopMenu .extra-nav-group > li:not(.open) > a:hover {
    color: #337ab7 !important;
}