/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
	/* padding-top: 57px; */
	/*background-color: #fffcec;*/
	font-family: sans-serif, 'cwTeXHei';
}


/*
 * Global add-ons
 */

.sub-header {
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
	border: 0;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
	display: none;
}
@media (min-width: 768px) {
	.sidebar {
		position: fixed;
		top: 1px;
		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: #d4d6d8;
		background-color: #ffffff;
		border-right: 1px solid #eee;
	}
}

/* Sidebar navigation */
.nav-sidebar {
	margin-right: -21px; /* 20px padding + 1px border */
	margin-bottom: 20px;
	margin-left: -20px;
}
.nav-sidebar > li > a {
	padding: 18px 20px 17px 65px;
	margin-bottom: 2px;
	margin-left: 1px;
	min-height: 50px;
	color: #333;
	font-size: 14px;
	border-right: 2px solid #fff;
	vertical-align: middle;
}
.nav-sidebar > li > a:hover,
.nav-sidebar > li > a:focus {
	padding-left: 65px;
	border-right: 2px solid #428bca;
	background-color: transparent;
}
.nav-sidebar > li > a:hover::before,
.nav-sidebar > li > a:focus::before {
}
.nav-sidebar > li.active > a {
	padding-left: 63px;
	color: #428bca;
	border-right: 4px solid #428bca;
	font-weight: 700;
}
/*.nav-sidebar > li.active > a::before {
	position: absolute;
	top: 2px;
	right: 0;
	bottom: 2px;
	left: 5px;
	content: '';
	box-shadow: 0 5px 20px rgba(66,139,202,.5);
	border-radius: 30px 0 0 30px;
}*/

.nav-sidebar .nav-pills > li > a {
	padding-left: 65px;
	border-radius: 0;
	color: #333;
}
.nav-sidebar .nav-pills > li > a:hover,
.nav-sidebar .nav-pills > li > a:focus {
	border-right: 2px solid #428bca;
	background-color: transparent;
}
.nav-sidebar .nav-pills > li.active > a,
.nav-sidebar .nav-pills > li.active > a:hover,
.nav-sidebar .nav-pills > li.active > a:focus {
	border-right: 4px solid #428bca;
	font-weight: 700;
	color: #428bca;
	background: none;
}
/*.nav-sidebar .nav-pills > li.active > a::before {
	position: absolute;
	top: 2px;
	right: 0;
	bottom: 2px;
	left: 40px;
	content: '';
	box-shadow: 0 5px 20px rgba(66,139,202,.5);
	border-radius: 30px 0 0 30px;
}*/

.nav-icon {
	background-repeat: no-repeat;
	background-position: 20px 50%;
	background-size: 30px;
}
.nav-icon-operation { background-image: url(../img/operation.png); }
.nav-icon-report { background-image: url(../img/report.png); }
.nav-icon-process { background-image: url(../img/process.png); }
.nav-icon-order { background-image: url(../img/factoryOrder.png); }
.nav-icon-plan { background-image: url(../img/planning.png); }
.nav-icon-setup { background-image: url(../img/settings.png); }
.nav-icon-userMgn { background-image: url(../img/userMgn.png); }

/*
 * Main content
 */

.main {
	/* padding: 20px; */
}
@media (min-width: 768px) {
	.main {
		padding-right: 40px;
		padding-left: 40px;
	}
}
.main .page-header {
	margin-top: 0;
}


/*
 * Placeholder dashboard ideas
 */

.placeholders {
	margin-bottom: 30px;
	text-align: center;
}
.placeholders h4 {
	margin-bottom: 0;
}
.placeholder {
	margin-bottom: 20px;
}
.placeholder img {
	display: inline-block;
	border-radius: 50%;
}

/* showLotDetail */

.embeder {
	position: absolute;
	top: 60px;
	right: 0;
	bottom: 0;
	left: 0;
}
.embeder aside {
	position: fixed;
	top: 60px;
	bottom: 0;
	left: 0;
	width: 200px;
	overflow: auto;
	border-right: 1px solid #ddd;
	background: #fff;
}
.embeder .embederContent {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 210px;
}
.embeder aside ul {
	padding-right: 1em;
	padding-left: 1em;
}
	.embeder aside li {
		list-style: none;
	}
	.embeder aside li a {
		line-height: 2em;
		display: block;
		padding-right: 1em;
		padding-left: 1em;
		margin-top: 3px;
		margin-bottom: 3px;
		color: #333;
		text-decoration: none;
		cursor: pointer;
		border-radius: 1.5em;
		border: 2px solid #fff;
		text-overflow: ellipsis;
	}
	.embeder aside li a .testerName {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		display: block;
	}
	.embeder aside li a .testerType {
		content: '';
		float: right;
		display: block;
		margin-top: .75em;
		width: 1.5em;
		height: .5em;
		background: none;
		border-radius: 1em;
	}

	.embeder aside li a:hover {
		border-color: #ccc;
	}
	.embeder aside li.gray a .testerType {
		background: #9B9B9B;
	}
	.embeder aside li.green a .testerType {
		background: #A6D363;
	}
	.embeder aside li.red a .testerType {
		background: #B64444;
	}
	.embeder aside li.gray a:hover {
		border-color: #9B9B9B;
	}
	.embeder aside li.green a:hover {
		border-color: #A6D363;
	}
	.embeder aside li.red a:hover {
		border-color: #B64444;
	}

	.embeder aside li.active a {
		color: #fff;
	}
	.embeder aside li.active a .testerType {
		background: #fff;
	}
	.embeder aside li.active.gray a {
		background: #9B9B9B;
	}
	.embeder aside li.active.green a {
		background: #A6D363;
	}
	.embeder aside li.active.red a {
		background: #B64444;
	}

	.embeder aside li.back a {
		border-radius: 0;
		border: 0 none;
		/*border-bottom: 1px solid #ddd;*/
		margin-top: 20px;
		margin-bottom: 15px;
		padding-bottom: 5px;
	}
	.embeder aside li.back a .fa {
		/*color: #428bca;*/
		margin-top: 7px;
		padding-right: 3px;
	}

	.embederContent .testerNav {
		margin: 30px 30px 15px 30px;
	}
	.embederContent .testerNav .testerName {
		float: left;
		font-size: 24px;
	}
	.embederContent .testerNav .yieldicon {
		float: left;
		margin-right: 15px;
		width: 35px;
		height: 35px;
		border-radius: 35px;

		color: #fff;
		border: 1px solid #9B9B9B;
		background: #aaa url(../img/dashboard-machine-dot.png) no-repeat 50% 50%;
	}
	.embederContent .testerNav .yieldicon.gray {
		color: #fff;
		border: 1px solid #9B9B9B;
		background-color: #9B9B9B;
		background-image: url(../img/dashboard-machine-dot.png);
	}

	.embederContent .testerNav .yieldicon.green {
		color: #fff;
		border: 1px solid #A6D363;
		background-color: #A6D363;
		background-image: url(../img/dashboard-machine-check.png);
	}

	.embederContent .testerNav .yieldicon.red {
		color: #fff;
		border: 1px solid #B64444;
		background-color: #B64444;
		background-image: url(../img/dashboard-machine-pause.png);
	}
	.embederContent .testerNav .action-btn .btn i {
		margin-right: 5px;
	}

	#rawData .dl-horizontal {
		margin-left: 20px;
	}
	#rawData .dl-horizontal dt {
		text-align: left;
		font-weight: normal;
		line-height: 1.8em;
		color: #777;
	}
	#rawData .dl-horizontal dd {
		font-weight: bold;
		line-height: 1.8em;
	}

