﻿/*NOTE: mobile first (xs) */
body, html {
	margin: 0;
	padding: 0;
	min-height: 100vh;
}


.default-layout #wrapper > main, .detail-view-body > main {
	max-width: 1225px !important;
}

.default-layout .detail-view.empty .detail-view-body > main {
	max-width: 100% !important;
}


.default-layout #mainNav {
	-moz-box-shadow: 5px 0 20px var(--MainShadowColor);
	-webkit-box-shadow: 5px 0 20px var(--MainShadowColor);
	box-shadow: 5px 0 20px var(--MainShadowColor);
}


/* Default layout specific styles */
@media only screen and (min-width: 992px) {
	.default-layout header #mainLogo {
		height: 80px !important;
	}
}



#wrapper {
	min-height: 100vh;
	position: relative;
	padding: 60px 0 10px 0;
}

header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 10;
}


header #mainLogo { 
	background-image: var(--ApplicationLogoIconUrl); 
	display: block; 
	margin: 5px auto;
	min-width: 50px; 
	max-width: 35%; 
	height: 50px; 
	background-position: center center; 
	background-repeat: no-repeat; 
	background-size: contain;
}
#headerActions, #globalActions {
	position: absolute;
	top: 18px;
	left: 0;
}
#headerActions { right: 0; left: auto; }

#headerSmartBox {
	position: absolute;
	left: 0;
	top: 60px;
	z-index: 10;
	background-color: var(--HeaderBGColor);
	border-style: solid;
	border-width: 1px;
	border-color: var(--HeaderBorderColor);
	padding: 10px;
	width: 100%;
}
#headerSmartBox.collapsed { display: none; }
#headerSmartBox .smart-box-wrapper { background-color: var(--HeaderBGColor);  }


.action-container a {
	display: block;
	float: right;
	margin: 0;
	padding: 0 7px;
	width: 35px;
	height: 32px;
	font-size: 18px;
	-ms-transform: translate(-1px, -1px);
	-o-transform: translate(-1px, -1px);
	-webkit-transform: translate(-1px, -1px);
	transform: translate(-1px, -1px);
}

#globalActions a { float: left; }

.action-container div {
	position: absolute;
	right: 0;
	top: 45px;
	min-width: 100px;
	background-color: var(--HeaderBGColor);
	border-style: solid;
	border-width: 1px;
	border-color: var(--HeaderBorderColor);
	-webkit-box-shadow: -3px 3px 3px rgba(0, 0, 0, .25);
	box-shadow: -3px 3px 3px rgba(0, 0, 0, .25);
}

.action-container div.collapsing {
	-webkit-transition-duration: .10s;
    -o-transition-duration: .10s;
    transition-duration: .10s;
}


nav#mainNav {
	width: 265px;
	height: 100%;
	padding-top: 85px;
	position: fixed;
	left: 0;
	top: 0;
	z-index: 9;
	-webkit-transition: left .15s linear;
	-moz-transition: left .15s linear;
	-o-transition: left .15s linear;
	transition: left .15s linear;
}
#mainNav.collapsed { 
	left: -265px;
	-webkit-transition: left .15s linear; 
	-moz-transition: left .15s linear; 
	-o-transition: left .15s linear; 
	transition: left .15s linear;
}
#mainNav .button {
	background-color: var(--NavBGColor);
	color: var(--NavColor);
	border-width: 0;
	outline: none;
	position: absolute;
	right: 0;
	top: 1px;
	z-index: 2;
	margin: 0;
	width: 40px;
	height: 96%;
	height: calc(100% - 2px);
}
#mainNav .button:hover {
	color: var(--NavLinkHoverColor);
	background-color: var(--NavLinkHoverBGColor);
	border-color: var(--NavLinkHoverBorderColor);
}

/* for child nav lists */
nav#mainNav li ul {
	margin-left: 10px;
}


#wrapper main {
	margin: 0;
	padding: 1px;
	position: relative;
	max-width: 1400px;
}
#wrapper main.disabled { pointer-events: none; opacity: .3; }
#wrapper main.nav-hidden { margin-left: 20px; }


footer {
	text-align: center;
	padding: 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; }
#footerInner { margin-left: 0; }
#footerInner.nav-hidden { margin-left: 0; }
footer nav { margin-top: 10px; }



#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 { height: 65px; padding-left: 275px; }
	header #mainLogo { 
		background-image: var(--ApplicationLogoUrl); 
		min-width: 255px; max-width: 255px; height: 55px; margin:0; 
		position: absolute; left: 10px; top: 5px;
	}

	#headerActions, #globalActions {
		top: 14px;
	}

	.action-container a {
		width: 50px;
		height: 40px;
		font-size: 24px;
	}
	.action-container div,
	header .action-container div.collapse {
		display: block;
		position: relative;
		float: right;
		top: auto;
		background-color: transparent;
		border: none;
		-webkit-box-shadow: none;
		box-shadow: none;
	}

	header .action-container .action-collapse {
		display: none !important;
	}
	#globalActions { position: relative; float: left;  }
	#globalActions .life-icon-header-menu,  #globalActions .life-icon-search { display: none; }


	.action-container a img {
		width: 26px;
		height: 26px;
	}


	#headerSmartBox { 
		position: relative; 
		display: block !important;
		background-color: transparent;
		border: none;
		float: left;
		top: auto;
		margin: 5px 0 0 10px;
		max-width: 350px;
	}
	#headerSmartBox.collapsed { display: block; }

	#mainNav.collapsed { left: 0 !important; }

	#wrapper main { margin: 10px 20px 0 290px; }
	
	#footerInner { margin-left: 265px; }
	#footerBackTop { display: none; }
}