/*
 * Base structure
 * Mobile first
 */

body {
	padding-top: 50px; /* Move down content due to fixed navbar which is 50px height */
}

/*
 * Top navbar
 */
#navbar {
	max-height: 80vh;
}
nav.navbar-fixed-top {
	border: 0; /* Hide default border to remove 1px line. */
}
nav.navbar .navbar-brand,
nav.navbar .navbar-brand:hover,
nav.navbar .navbar-brand:focus {
	color: #e78018;
}

/*
 * Sidebar
 */
#sidebar {
	display: none; /* Hide for mobile, show later */
}
#sidebar .nav-sidebar {
	font-size: 16px;
	margin-right: -21px;
	margin-bottom: 20px;
	margin-left: -20px;
}
#sidebar .nav-sidebar > li > a {
	color: #aaa;
	padding-right: 20px;
	padding-left: 20px;
}
#sidebar .nav-sidebar > li > a:hover,
#sidebar .nav-sidebar > li > a:focus {
	color: #fff;
	background-color: #494851;
}
#sidebar .nav-sidebar > .active > a,
#sidebar .nav-sidebar > .active > a:hover,
#sidebar .nav-sidebar > .active > a:focus {
	color: #fff;
	background-color: #b96613;
}


/*
 * Main content
 */
#pageContainer {
	padding: 20px;
}
#pageContainer .page-header {
	margin-top: 0;
	color: #d87816;
}

/*
 * Global add-ons
 */
h2.sub-header {
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

table.table td button {width: 34px;}
table.table td button + button {margin-left: 5px;}

.np {padding: 0px;}
.mr5 {margin-right: 5px;}
.mb10 {margin-bottom: 10px;}
.mb15 {margin-bottom: 15px;}
.mb30 {margin-bottom: 30px;}
.mt0 {margin-top: 0px;}
.resize-v {resize: vertical;}
.fs1-1em {font-size: 1.1em}
.fs150pc {font-size: 150%;}
.fs200pc {font-size: 200%;}
.hide-imp {display: none !important;}

.text-green{color: #3c763d;}
.text-blue{color: #337ab7;}
.text-lblue{color: #31708f;}
.text-orange{color: #8a6d3b;}
.text-red{color: #a94442;}

.cur-po {cursor: pointer;}

.form-group.required > label:after {
	content: "*";
	color: #f00;
}

/* auto show formatted number */
.auto-show-formatted-num .dropdown-menu {
	padding: 0;
	width: 100%;
}

.auto-show-formatted-num .dropdown-menu input {
	font-size: 200%;
}
/* .auto show formatted number */

/* chosen select */
.chosen-select {width: 100%;}
.chosen-container {width: 100% !important;}
.chosen-single {height: 34px !important;}
.chosen-single-text-center .chosen-single {text-align: center;}
.chosen-single span,
.chosen-single div {padding-top: 4px !important;}
.chosen-drop-up .chosen-container .chosen-drop {
	border-bottom: 0;
	border-top: 1px solid #aaa;
	top: auto;
	bottom: 40px;
}
/* .chosen select */

/* chosen select multiple */
.chosen-container-multi input {width: 100% !important;}
.chosen-container-multi {line-height: 2.5 !important;}
.chosen-container-multi ul.chosen-choices > li.search-field {width: 100%;}
/* .chosen select multiple */

/* overlay */
#overlay {
	position: fixed;
	display: none;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(255, 255, 255, 0.8);
	z-index: 1100;
}

#overlay .display {
	position: absolute;
	top: 50%;
	left: 50%;
	font-size: 30px;
	color: #e78018;
	transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
}
/* .overlay */

/* toast */
#toast {
	visibility: hidden;
	width: 300px;
	margin-left: -150px;
	background-color: #333;
	border-color: #000;
	color: #fff;
	text-align: center;
	border-radius: 2px;
	padding: 16px;
	position: fixed;
	z-index: 1150;
	left: 50%;
	bottom: 30px;
	font-size: 17px;
}

#toast.primary {
	background-color: #286090;
	border-color: #122b40;
}

#toast.success {
	background-color: #449d44;
	border-color: #398439;
}

#toast.info {
	background-color: #31b0d5;
	border-color: #269abc;
}

#toast.warning {
	background-color: #ec971f;
	border-color: #d58512;
}

#toast.danger {
	background-color: #c9302c;
	border-color: #ac2925;
}

#toast.show {
	visibility: visible;
	-webkit-animation: toastFadein 0.5s;
	animation: toastFadein 0.5s;
}

#toast i.toast-icon {
	font-size: 150%;
	vertical-align: middle;
	margin-right: 7px;
}

@-webkit-keyframes toastFadein {
	from {bottom: 0; opacity: 0;} 
	to {bottom: 30px; opacity: 1;}
}

@keyframes toastFadein {
	from {bottom: 0; opacity: 0;}
	to {bottom: 30px; opacity: 1;}
}
/* .toast */

/*
 * Bootstrap overrides
 */
div.table-responsive {
	border: 0px;
}

.input-group.date input:read-only { /* for date pickers */
	background-color: #fff;
}

/*
 * Desktop view
 */
@media (min-width: 768px) {
	/*
	 * Top navbar
	 */
	#navbar li span.nav-item-name {
		display: none;
	}

	/*
	 * Sidebar
	 */
	#sidebar {
		position: fixed;
		top: 50px;
		bottom: 0;
		left: 0;
		z-index: 1000;
		display: block;
		padding: 20px;
		overflow-x: hidden;
		overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
		background-color: #37363d;
		border-right: 1px solid #eee;
	}

	/*
	 * Main content
	 */
	#pageContainer {
		padding-right: 40px;
		padding-left: 40px;
	}
}

@media print {
	.no-print, .no-print * {
		display: none !important;
	}
	.display-on-print, .display-on-print * {
		display: inline-block !important;
	}
	.display-on-print-block, .display-on-print-block * {
		display: block !important;
	}
}