.tag {
	display: inline-block;
	padding: 5px;
	border-radius: 5px;
	font-size: 0.8em;
	font-weight: bold;
	margin: 1px;
	box-sizing: border-box;
}

.tag-users {
	background: #F2F2F2;
	color: #707070;
}

.tag-whatever-whatever {
	background: #BD0000;
	color: #fff;
}

.tag-jobtype-service {
	background: #ECC3C3;
	color: #505050;
}
.tag-jobtype-in_house_service {
	background: #E97676;
	color: #FFF;
}
.tag-jobtype-installation {
	background: #C6ACEC;
	color: #505050;
}
.tag-jobtype-inspection {
	background: #ECD2AC;
	color: #505050;
}
.tag-jobtype-pm {
	background: #EDF1A7;
	color: #505050;
}
.tag-jobtype-production {
	background: #CFECC3;
	color: #505050;
}
.tag-jobtype-equipment_check_in {
	background: #B5FFE4;
	color: #505050;
}
.tag-jobtype-warranty {
	background: #CBCBCB;
	color: #505050;
}
.tag-jobtype-phone_tech_support {
	background: #C3D8EC;
	color: #505050;
}

.tag-priority-low {
	border: 2px solid #00B017;
	color: #00B017;
}
.tag-priority-normal {
	border: 2px solid #1C8ED6;
	color: #1C8ED6;
}
.tag-priority-high {
	border: 2px solid #FF9900;
	color: #FF9900;
}
.tag-priority-urgent {
	border: 1px solid #E20606;
	color: #E20606;
	animation: animation-blink 1s linear infinite;
}

.tag-status-workorder-unassigned {
	background: #FF9900;
	color: #fff;
}
.tag-status-workorder-assigned {
	background: #D6A30A;
	color: #fff;
}
.tag-status-workorder-en_route {
	background: #0073BD;
	color: #fff;
}
.tag-status-workorder-on_site {
	background: #00BDA6;
	color: #fff;
}
.tag-status-workorder-repairs_necessary {
	background: #C3329A;
	color: #fff;
}
.tag-status-workorder-parts_necessary {
	background: #560595;
	color: #fff;
}
.tag-status-workorder-awaiting_parts {
	background: #9069DA;
	color: #fff;
}
.tag-status-workorder-awaiting_approval {
	background: #EAFA69;
	color: #505050;
}
.tag-status-workorder-parts_received_-_unassigned {
	background: #CFB3F2;
	color: #fff;
}
.tag-status-workorder-past_due {
	background: #BD0000;
	color: #fff;
}
.tag-status-workorder-completed {
	background: #02A409;
	color: #fff;
}
.tag-status-workorder-approved_to_invoice {
	background: #02A409;
	color: #fff;
}
.tag-status-workorder-printed {
	background: #007701;
	color: #fff;
}
.tag-status-workorder-invoiced {
	background: #007701;
	color: #fff;
}
.tag-status-workorder-cancelled {
	background: #6C6C6C;
	color: #fff;
}

.tag-status-inquiry-open {
	background: #FF9900;
	color: #fff;
}
.tag-status-inquiry-converted {
	background: #02A409;
	color: #fff;
}
.tag-status-inquiry-closed {
	background: #6c6c6c;
	color: #fff;
}



/* SCHEDULE CLASSES */
#schedule-container {
	max-width: 100%;
}

#schedule-needs-scheduling {
	max-height: 800px;
	overflow-y: auto;
	font-size: 0.9em;
}

.schedule-container-day {
	overflow-x: auto;
}

.schedule-table {
	width: 100%;
	table-layout: fixed;
	border: 1px solid #cdcccc;
	font-size: 0.9em;
}

.schedule-table th {
	background: #F2F2F2;
	text-align: center;
}

.schedule-table th, .schedule-table td {
	border-collapse: collapse;
	border: 1px solid #E0E0E0;
	box-sizing: border-box;
}

.schedule-table-header th {
	padding: 5px;
}

.schedule-table-today {
	background: #FAFFEE;
}
.schedule-table-month-day-muted {
	opacity: 0.4;
}
.schedule-table-month td {
	height: 150px;
	vertical-align: top;
}

.schedule-table-week-hour-column {
	width: 75px !important;
	color: #BBBBBB;
	font-size: 0.8em;
	font-weight: normal;
}
.schedule-table-week-row {
	height: 40px;
}
.schedule-table-week-halfhour {
	color: #B6B1B1;
	font-weight: normal;
}
.schedule-table-week td, .schedule-table-day td {
	vertical-align: top;
	position: relative;
}

.schedule-table-day td {
overflow-x: visible;
}

.schedule-table-day-minutes {
	color: #BBBBBB;
	font-size: 0.8em;
	font-weight: normal;
	text-align: left !important;
}
.schedule-table-day-users-header {
	width: 150px !important;
}
.schedule-table-day {
	width: 1500px !important;
}
.schedule-table-day-hour-blocks {
	width: 150px !important;
	overflow-y: visible;
}
.schedule-table-day-row {
	height: 20px;
}
.schedule-table-day-users-column {
	position: absolute;
	width: 150px;
	border-top: 0 !important;
	border-bottom: 0 !important;
	margin-left: -1px;
	padding-top: 30px !important;
	z-index: 1500;
}

.appointment-card {
	background: #fff;
	border: 1px solid #bbbbbb;
	box-shadow: 0px 0px 8px #C9C9C9;
	font-size: 0.9em;
	padding: 5px;
	box-sizing: border-box;
	z-index: 1000;
	overflow: hidden;
	transition: transform 0.5s ease-in-out;
	-webkit-transition: transform 0.5s ease-in-out;
}

.appointment-card:hover {
	z-index: 1500;
}

.appointment-card-time {
	font-size: 0.9em;
}

.schedule-table-day .appointment-card {
	position: absolute;
	min-width: 150px;
}

.schedule-table-week .appointment-card {
	position: absolute;
	width: 100%;
}

#schedule-needs-scheduling .appointment-card {
	position: inherit !important;
	max-width: 100%;
	z-index: 1000;
}

#schedule-needs-scheduling .ui-resizable-e, #schedule-needs-scheduling .ui-resizable-s {
	display: none;
}

.appointment-card-jobtype-inspection {
	border-left: 5px solid #FAFFBB;
}
.appointment-card-jobtype-chimney_cleaning_open_fireplace {
	border-left: 5px solid #DAFFDF;
}
.appointment-card-jobtype-chimney_cleaning_insert {
	border-left: 5px solid #A9F1B2;
}
.appointment-card-jobtype-chimney_cleaning_stove {
	border-left: 5px solid #6CD579;
}
.appointment-card-jobtype-chimney_cleaning_insert_with_liner {
	border-left: 5px solid #39A346;
}
.appointment-card-jobtype-gas_service {
	border-left: 5px solid #C70101;
}
.appointment-card-jobtype-installation {
	border-left: 5px solid #0084E4;
}
.appointment-card-jobtype-service_call {
	border-left: 5px solid #FED3EE;
}
.appointment-card-jobtype-return {
	border-left: 5px solid #724ABA;
}
.appointment-card-jobtype-water_leak_repair {
	border-left: 5px solid #AEE5FC;
}

.ui-resizable-e {
	border: 2px dashed #c9c9c9;
	width: 10px;
}
.ui-resizable-s {
	border: 2px dashed #c9c9c9;
	height: 10px;
}

/* END SCHEDULE CLASSES */

@media screen and (max-width: 1024px){
	.nav-tabs>li {
		width: 50% !important;
	}
}
