﻿/*NOTE: mobile first (xs) */
body, html {
	margin: 0;
	padding: 0;
	min-height: 100vh;
}

/* Centered layout specific styles */
.centered-layout #wrapper > main, .detail-view-body > main {
	max-width: 1225px !important;
}

#wrapper {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	padding: 102px 0 0 0; /* 2 extra pixels for border*/
	min-height: 100vh;
}

#wrapper main {
	margin: 0;
	padding: 1px;
}

#wrapper main.disabled {
	pointer-events: none;
	opacity: .3;
}

header {
	width: 100%;
	position: fixed;
	min-height: 60px;
	z-index: 100;
	top: 0;
	left: 0;
	text-align: center;
}

header > ul {
	height: 70px;
}

	header #mainLogo {
		display: inline-block;
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;
		max-height: 160px;
		max-width: 40%;
		margin: 0 auto;
	}
/* this is the mobile icon image, hidden on desktop */
		header #mainLogo #appIconImg {
			/* we set this in css because the javascript will use this to modify the src property */
			background-image: var(--ApplicationLogoIconUrl);
			max-height: 100px;
			max-width: 100%;
		}

/* this is the desktop image, hidden on mobile */
header #mainLogo #appLogoImg {
	/* we set this in css because the javascript will use this to modify the src property */
	background-image: var(--ApplicationLogoUrl);
	display: none;
}


#subHeader {
	background-color: var(--HeaderBGColor);
	color: var(--HeaderColor);
	position: relative;
}

#headerSmartBox {
	position: absolute;
	z-index: 10;
	background-color: var(--HeaderBGColor);
	padding: 10px;
	width: 100%;
}

#headerSmartBox.collapsed {
	display: none;
}


.action-container a {
	display: block;
	float: right;
}


#headerActions {
	position: absolute;
	right: 10px;
	bottom: 10px;
}

#globalActions {
	position: absolute;
	left: 10px;
	bottom: 10px;
}

#globalActions a {
	float: left;
}

.action-container div {
	position: absolute;
	right: 0;
	top: 49px;
	background-color: var(--HeaderBGColor);
	border-color: var(--HeaderBorderColor);
	border-style: solid;
	border-width: 1px;
	border-radius: 0 0 5px 5px;
	-webkit-box-shadow: -3px 3px 3px var(--MainShadowColor);
	box-shadow: -3px 3px 3px var(--MainShadowColor);
	white-space: nowrap;
}

header .action-container div a {
	display: inline-block;
	float: none;
}

.action-container div.collapsing {
	-webkit-transition-duration: .10s;
	-o-transition-duration: .10s;
	transition-duration: .10s;
}


nav#mainNav {
	position: fixed;
	width: 100%;
	z-index: 99;
	left: 0;
	bottom: auto;
	-webkit-transition: bottom .15s linear;
	-moz-transition: bottom .15s linear;
	-o-transition: bottom .15s linear;
	transition: bottom .15s linear;
}

#mainNav.collapsed {
	bottom: -100%;
	top: auto;
	-webkit-transition: bottom .15s linear;
	-moz-transition: bottom .15s linear;
	-o-transition: bottom .15s linear;
	transition: bottom .15s linear;
}

#mainNav > .nav > li {
	position: relative;
}

#mainNav .dropdown a {
	padding-right: 40px;
}

#mainNav a {
	border-width: 0 0 1px 0;
}

#mainNav > .nav > li > a {
	border-width: 1px;
}

#mainNav .collapse, #mainNav .collapsing {
	margin-left: 20px;
}

#mainNav .button {
	background-color: var(--NavBGColor);
	color: var(--NavColor);
	position: absolute;
	right: 1px;
	top: 0;
	z-index: 5;
	margin: 0;
	width: 35px;
	height: 100%;
	border: 0;
}

#mainNav .button:hover {
	color: var(--NavLinkHoverColor);
	background-color: var(--NavLinkHoverBGColor);
	border-color: var(--NavLinkHoverBorderColor);
}

#mainNav .dropdown-menu {
	background-color: var(--NavBGColor);
}

footer {
	max-width: 1200px;
	text-align: center;
	padding: 10px;
	margin: 0 auto;
}

footer nav {
	margin-top: 10px;
}

#footerBackTop {
	margin: 0 0 10px 0;
	display: block;
}

#footerBackTop a {
	display: block;
	max-width: 100px;
	margin: -5px auto 0 auto;
	font-variant: small-caps;
}



#msgWrapper {
	position: fixed;
	top: 20px;
	padding: 0 5px 0 5px;
	z-index: 10001;
	width: 100%;
}

#interfaceMessage {
	display: none;
	margin: 0 auto;
	max-width: 1024px;
	-webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, .25);
	box-shadow: 5px 5px 5px rgba(0, 0, 0, .25);
}


/*At least SM*/
@media screen and (min-width: 992px) {
	header {
		position: relative;
		z-index: 2;
	}

	#subHeader {
		border-color: var(--NavBorderColor);
		border-style: var(--NavBorderStyle);
		border-width: var(--NavBorderWidth);
		background-color: var(--NavBGColor);
	}

	#mainNav.collapsed {
		display: block;
		height: auto !important;
	}

	nav#mainNav {
		border-width: 0 !important;
		position: relative;
		width: auto;
		top: auto;
		padding: 0 0 0 375px;
		z-index: 1;
		white-space: nowrap;
		text-align: right;
	}

	nav#mainNav > ul.nav {
		overflow-x: auto;
	}

	#mainNav > .nav > li {
		display: inline-block;
		vertical-align: middle;
	}

	#mainNav > .nav > li > a {
		border-width: 1px;
		height: 60px;
		padding-top: 18px;
		display: block;
	}

	header #mainLogo {
		width: auto;
		height: auto;
		max-width: 70%;
	}
	/* desktop logo on mobile */
	header #mainLogo #appLogoImg {
		display: inline-block;
		max-width: 100%;
		max-height: 160px;
	}
	/* desktop logo on mobile */
	header #mainLogo #appIconImg {
		display: none;
	}

	header > ul {
		height: auto;
	}

	#globalActions, #headerActions {
		top: 15px;
	}

	header .action-container div {
		background-color: transparent;
		border-color: transparent;
	}

	header .action-container div.collapse {
		display: block;
		position: relative;
		float: right;
		top: -1px;
		background-color: transparent;
		border-color: transparent;
		border: none;
		-webkit-box-shadow: none;
		box-shadow: none;
	}
		
	header .action-container .action-collapse {
		display: none !important;
	}

	#globalActions .life-icon-header-menu, #globalActions .life-icon-search {
		display: none;
	}

	#headerSmartBox, #headerSmartBox.collapsed {
		position: absolute;
		display: block !important;
		top: 15%;
		top: calc(50% - 22px);
		left: 10px;
		margin: 0;
		max-width: 350px;
		background-color: transparent;
		padding: 4px;
	}

	#wrapper {
		padding-top: 0;
	}

	#footerBackTop {
		display: none;
	}
}/* END media screen and (min-width: 992px)*/
