/* SIGNIN FORM */
.form-signin {
	max-width: 330px;
	padding: 15px;
	margin: 50px auto;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
	margin-bottom: 10px;
}
.form-signin .checkbox {
	font-weight: normal;
}
.form-signin .form-control {
	position: relative;
	height: auto;
	-webkit-box-sizing: border-box;
	 -moz-box-sizing: border-box;
		  box-sizing: border-box;
	padding: 10px;
	font-size: 16px;
}
.form-signin .form-control:focus {
	z-index: 1;
}
.form-signin input[type="email"] {
	margin-bottom: -1px;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
	margin-bottom: 10px;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

/* Utility classes */
.drop-target
{
	border: 1px dashed #ababab;
	border-radius: 4px;
	background-color: #efefef;
	font-style: italic;
	text-align: center;
	vertical-align: middle;
	padding: 15px 5px;
	min-height: 50px;
}

.control-readonly
{
	padding-top: 7px;
}

/* PANEL WITH TABS */
.panel.with-nav-tabs .card-header {
	padding: 5px 5px 0px 5px;
}
.panel.with-nav-tabs .nav-tabs{
	border-bottom: none;
}
.panel.with-nav-tabs .nav-justified{
	margin-bottom: -1px;
}

/* CALENDAR */
.calendar-block
{
	padding: 0px;
	width: 98%; 
	position: absolute; 
	top: 0; 
	bottom: 0;
	z-index: 0;
}
.calendar
{
	z-index: 0;
	height: 100%;
}
.calendar thead th
{
	width: calc(100% / 7);
	max-width: calc(100% / 7);
}
.calendar tbody td
{
	width: calc(100% / 7);
	max-width: calc(100% / 7);
}
.calendar-week
{
	margin: 0px;
	height: 100%;
}
.calendar-day {
	min-height: 3.0em;
	z-index: 0;
	padding: 2px;
}
.calendar-day-disabled {
	background-color: #eee;
}

.calendar-date {
	display: block;
	text-decoration: underline;
	margin: 0 0.25em 0.25em 0;
	width: 100%;
	text-align: center;
}

.calendar-date-day {
	display: inline-block;
	width: 15%;
}

.calendar-date-actions {
	display: inline-block;
	text-align: right;
	width: 85%;
}

.calendar-orders {
	padding: 0px;
}

.calendar-order {
	cursor: pointer;
	display: block;
	border: 2px solid #585858;
	color: #000000;
	background-color: #ffffff;
	margin: 1px 0;
	padding: 2px;
	border-radius: 4px;
	z-index: 10;
	-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
	font-size: 0.7em;
}

.calendar-order div {
	padding: 0px 2px;
}

.calendar-order .customer
{
	font-weight: bold;
}

.calendar-order .technicians
{
	font-size: 0.75em;
}

.calendar-order.order-disabled
{
	cursor: not-allowed;
}

.calendar-note {
	cursor: pointer; 
	display: block;
	border: 1px solid #000000;
	color: #ffffff;
	background-color: #9430b0;
	margin: 1px 0;
	padding: 2px;
	border-radius: 4px;
	z-index: 10;
	-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
	font-size: 0.7em;
}

/* CALENDAR Adjustments based on screen size */
@media (min-width: 992px) {
	.calendar-week {
		height: 200px;
	}
}
/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
	.calendar thead th {
		padding: 0.4em;
		font-size: 0.6em;
	}
	.calendar tbody td
	{
		padding: 0.2em;
	}
	.calendar-week {
		height: 100px;
	}
		
	.calendar-order .customer
	{
		font-size: 0.7em;
	}

	.calendar-order .location
	{
		font-size: 0.7em;
		display: none;
	}

	.calendar-order .technicians
	{
		font-size: 0.75em;
		display: none;
	}
}

@media (max-width: 767px) {
	.calendar-block
	{
		padding: 0px;
		margin: 0px;
	}
	.calendar thead {
		display: none;
	}
	.calendar thead th {
		width: 100%;
		max-width: 100%;
	}
	.calendar tbody td {
		width: 100%;
		max-width: 100%;
	}
	.calendar-day {
		display: block;
		width: 100%;
		margin: 0;
		border: 1px;
	}
	.calendar-day-disabled {
		display: none;
	}
	.calendar-order {
		font-size: 0.9em;
	}
}

/* DISPATCH */
.dispatch-order {
	cursor: pointer;
	margin-bottom: 5px;
	z-index: 10;
	background-color: #ffffff;
}
.dispatch-order.dispatch-order-disabled {
	cursor: not-allowed;
}

/* DISPATCH BODY */
.dispatch-order .card-header {
	font-size: 0.9em;
}
.dispatch-order .card-header h5.card-title {
	font-size: 1.0em;
	font-weight: bold;
}
.dispatch-order .card-body {
	/*padding: 5px;*/
}
.dispatch-order .card-body h5 {
	font-weight: bold;
	font-size: 0.9em;
}
.dispatch-order .card-body {
	font-size: 0.8em;
}
.dispatch-order .card-footer {
	/*padding: 4px;*/
}

/* ORDER STATUS */
.order-status-0 /* WAITING FOR PARTS */
{
	border-color: #ff2c03;
	background-color: #ff8a73;
}
.order-status-0 .card-header
{
	color: #f7f7f7;
	background-color: #f2210a !important;
	background-image: linear-gradient(to bottom, #ff4040 0, #700303 100%);
	border-color: #bfbfbf;
}
.order-status-0 .card-footer
{
	border-bottom-color: #6e6e6e;
}

.order-status-1 /* PENDING */
{
	border-color: #6e6e6e;
	background-color: #f2f2f2;
}
.order-status-1 .card-header
{
	color: #f7f7f7;
	background-color: #a8a8a8 !important;
	background-image: linear-gradient(to bottom, #c2c2c2 0, #7a7a7a 100%);
	border-color: #bfbfbf;
}
.order-status-1 .card-footer
{
	border-bottom-color: #6e6e6e;
}
.order-status-2 /* PARTS IN */
{
	border-color: #fac064;
	background-color: #ffa20d;
}
.order-status-3 /* IN PROGRESS */
{
	border-color: #b3b3b3;
	background-color: #a1e6ff;
}
.order-status-3 .card-header
{
	color: #333;
	background-color: #f5f5f5;
	background-image: linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);
	border-color: #ddd;
}
.order-status-3 .card-footer
{
	border-bottom-color: #b3b3b3;
}

.order-status-4 /*COMPLETED*/
{
	color: #000000;
	border-color: #8f93ea;
	background-color: #b0ffc0;
}
.order-status-4 .card-header
{
	border-color: #8f93ea;
	background-color: #b0ffc0;
}

.order-status-5	/* REVIEWED */
{
	border-color: #252525;
	background-color: #ffffff;
}
.order-status-5 .card-header
{
	color: #000000;
	background-color: #a2a2a2;
	background-image: linear-gradient(to bottom, #aeaeae 0, #a2a2a2 100%);
	border-color: #252525;
}
.calendar-order.order-status-5
{
	cursor: not-allowed;
}
.calendar-order.order-status-5.order-status-5-incomplete
{
	border: 2px solid #ff0000;
}
.calendar-order.order-status-5.order-status-5-partial
{
	border: 2px solid #fff04f;
}

.order-status-6 /* INVOICED */
{
	border-color: #000000;
	background-color: #404040;
	color: #ededed;
	cursor: not-allowed;
}

.calendar-order.order-accepted-full:not(.order-disabled):not(.order-status-4):not(.order-status-5)
{
	background-color: #a1e3ad;
}
.calendar-order.order-accepted-partial:not(.order-disabled):not(.order-status-4):not(.order-status-5)
{
	background-color: #fafa78;
}

/* PRIORITY */
.order-priority-1, .order-bg-priority-1 {
	border: 2px solid #7556b3;
}
.order-priority-2, .order-bg-priority-2 {
	border: 2px solid #2a59f5;
}
.order-priority-3, .order-bg-priority-3 {
	border: 2px solid #000000;
}
.order-priority-4, .order-bg-priority-4 {
	border: 2px solid #f5910f;
}
.order-priority-5, .order-bg-priority-5 {
	border: 2px solid #f50f0f;
}

/* PREVENTATIVE MAINTENANCE */
.order-maintenance:not(.order-status-0, .order-status-4, .order-status-5)
{
	border-color: #828109;
}
.order-maintenance:not(.order-status-0, .order-status-4, .order-status-5) .card-header
{
	color: #747369;
	background-color: #fbf89d;
	background-image: linear-gradient(to bottom, #fffd53 0, #c3be2f 100%);
	border-color: #ffee33;
}
.calendar-order.order-maintenance:not(.order-status-4, .order-status-5)
{
	color: #747369;
	background-color: #fbf89d;
}