html {
	font-family: 'Source Sans Pro', sans-serif;
	background-color: #dcdee2;
}

html, body {
	margin: 0;
	padding: 0;
}

body.modal-open {
	height: 100vh;
	overflow-y: hidden;
	padding-right: 15px; /* Avoid width reflow */
}

textarea {
	width: 100%;
	min-height: 120px;
	border-radius: 3px;
}

textarea:focus {
	-webkit-box-shadow: 0px 0px 22px -3px rgba(97,159,235,1);
	-moz-box-shadow: 0px 0px 22px -3px rgba(97,159,235,1);
	box-shadow: 0px 0px 22px -3px rgba(97,159,235,1);	
}

#wrapper {

}

#topbar {
	z-index: 1;
	height: 50px;
	width: 100%;
	background-color: #303235;
	color: #9599a0;
	padding: 0 2%;
	box-sizing: border-box;
	position: fixed;
	left: 0;
	top: 0;
}

#topbar > div {
	padding: 15px 0;
}

#pagetitle {
	float: left;
	width: 60%;
}

#topmenu {
	float: right;
	width: 30%;
	height: 100%;
	text-align: right;
}

.topbar_button {
	margin-right: 20px;
}

.topbar_button:last-child {
	margin-right: 0;
}

#logout_button {
	
}

#content {
	margin: 50px 0 0 0;
	padding: 0 0.3rem;
	box-sizing: border-box;
	background-color: #fff;
	border-radius: 4px;
	/* border: 1px solid #b2b3b7; */
	color: #303235;
}

/* === Login section === */
#content.logincontent {
	width: 350px;
	margin: 100px auto 0 auto;
	background-color: #303235;
}
#login fieldset {
	border: none;
}
#login .inputicon {
	background-color: #fff;
	color: #303235;
}
#login_button {
	display: inline-block;
	padding: 7px;
	width: 100%;
	box-sizing: border-box;
	border-radius: 4px;
	text-align: center;
	background-color: #fff;
	color: #303235;
}
#loginfail_msg {
	display: inline-block;
	border-radius: 7px;
	box-sizing: border-box;
	padding: 5px;
	width: 100%;
	text-align: center;
	font-weight: bold;
	border: 2px solid #893f3f;
	color: #893f3f;
	background-color: #dd9e9e;
}
/* === End login section ===*/

#contentheader {
	background-color: #103863;
	color: #fff;
	border-radius: 4px 4px 0 0;
/*	padding: 0.5%;
	box-sizing: border-box;*/
}

/* === List view ===*/
#worksheet_list > .row > .cell:nth-child(1n) {
	width: 20%;
}
#worksheet_list > .row > .cell:nth-child(2n) {
	width: 15%;
}
#worksheet_list > .row > .cell:nth-child(3n) {
	width: 10%;
}
#worksheet_list > .row > .cell:nth-child(4n) {
	width: 10%;
}
#worksheet_list > .row > .cell:nth-child(5n) {
	width: 10%;
}
#worksheet_list > .row > .cell:nth-child(6n) {
	width: 25%;
}
#worksheet_list > .row > .cell:nth-child(7n) {
	width: 10%;
}
.ws--expired {
	/* Any workflow that has a duedate before the current date */
	background-color: #ffbfbf;
}
#cancel_servicejob_prompt {
	position: fixed;
	z-index: -1;
	width: 88%;
	/*height: 88%;*/
	padding: 4%;
	left: 2%;
	top: 2%;
	-webkit-transform: scale3d(0.9, 0.9, 1);
	-moz-transform: scale3d(0.9, 0.9, 1);
	transform: scale3d(0.9, 0.9, 1);
	opacity: 0;
	background-color: #fff;
	-webkit-box-shadow: 0px 0px 56px -5px rgba(107,107,107,1);
	-moz-box-shadow: 0px 0px 56px -5px rgba(107,107,107,1);
	box-shadow: 0px 0px 56px -5px rgba(107,107,107,1);
	transition: transform 100ms ease, opacity 100ms ease, z-index 0ms ease 100ms;
}
#cancel_servicejob_prompt.active {
	z-index: 3;
	opacity: 1;
	-webkit-transform: scale3d(1, 1, 1);
	-moz-transform: scale3d(1, 1, 1);
	transform: scale3d(1, 1, 1);
	transition: transform 100ms ease, opacity 100ms ease, z-index 0ms ease;
}
/* NEW schedular items */
.scheduled_item {
	transition: opacity 600ms ease, height 600ms ease 200ms;
	opacity: 1;
}
.scheduled_item_provisional {
	opacity: 0.6;
	position: relative;
}
.scheduled_item_provisional:after {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
}
#content .scheduled_item.faded {
	opacity: 0;
	height: 0 !important;
	transition: opacity 50ms ease, height 600ms ease 0ms;
}
#schedular_cancel_prompt_wrapper {
	position: fixed;
	background-color: rgba(255,255,255,0.7);
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: -1;
	opacity: 0;
}
#schedular_cancel_prompt_wrapper.active {
	opacity: 1;
	z-index: 2;
}
#schedular_cancel_prompt {
	position: absolute;
	width: 90%;
	left: 5%;
	top: 15%;
	padding: 20px;
	box-sizing: border-box;
	background-color: #fff;
	border-radius: 5px;
	-webkit-box-shadow: 0px 3px 10px -4px rgba(138,138,138,1);
	-moz-box-shadow: 0px 3px 10px -4px rgba(138,138,138,1);
	box-shadow: 0px 3px 10px -4px rgba(138,138,138,1);
}

/* === Detail View === */
#page_title {
	text-align: center;
}
.detailheader {
	background-color: #2a334c;
	/*background-color: #103863;*/
	color: #fff;
	border-radius: 10px 10px 0 0;
	padding: 7px 0;
	font-size: 120%;
	font-weight: 800;
}
/*.block > .row > .cell {*/
.cell {
	width: 25%;
}
.block > .row:last-child {
	border: none;
}
.subblock_indentifier {
	display: inline-block;
	width: 70%;
}
.subblock_subtitle {
	font-size: 90%;
	font-weight: 400;
}
.statuswrapper {
	/*display: inline-block;*/
	position: absolute;
	right: 10px;
	top: 10px;
	width: 28%;
	text-align: right;
	/*vertical-align: top;*/
}
.status {
	border-radius: 50%;
	display: inline-block;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	vertical-align: top;
}
.status_ok {
	border: 2px solid #3f8c46;
	color: #3f8c46;
	background-color: #9edda4;
}
.status_notok {
	border: 2px solid #893f3f;
	color: #893f3f;
	background-color: #dd9e9e;
}
.toggle_fold {
	display: inline-block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #103863;
	color: #103863;
	font-size: 28px;
	line-height: 40px;
	text-align: center;
	vertical-align: top;
	cursor: pointer;
}
.foldout_wrapper {
	height: 0;
	overflow: hidden;
	-webkit-transition: height 300ms ease;
	-moz-transition: height 300ms ease;
	transition: height 300ms ease;
}
/* Ticket comments */
.solution_cell {
	width: 80%;
}
.existing_ticket_comments {
	max-height: 300px;
	overflow-y: scroll;
}
.existing_ticket_comment {
	border-bottom: 1px solid #dcdee2;
}
.existing_ticket_comment_label {
	font-weight: 800;
}
/* // Ticket comments */
/* Comments block */
#comments__wrapper {
	max-height: 300px;
	overflow-y: scroll;
	width: 100%;
}
/* Report iframe*/
#report-container {
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: 4;
	-webkit-transform: translateY(-100%);
	-moz-transform: translateY(-100%);
	-o-transform: translateY(-100%);
	transform: translateY(-100%);
	transition: transform 200ms ease-out;
	background-color: #fff;
}
#report-container.active {
	-webkit-transform: translateY(0);
	-moz-transform: translateY(0);
	-o-transform: translateY(0);
	transform: translateY(0);

}
/* Awesomplete */
.awesomplete .visually-hidden {
	display: block;
	width: 0;
} 
/* Close worksheet popup */
#ws-summary-popup {
	position: fixed;
	z-index: -1;
	-webkit-transform: scale3d(0.9,0.9,0.9);
	-moz-transform: scale3d(0.9,0.9,0.9);
	transform: scale3d(0.9,0.9,0.9);
	opacity: 0;
	transition: z-index 0ms linear 100ms, transform 100ms linear 0ms, opacity 100ms linear 0ms;
	left: 1%;
	top: 1%;
	width: 98%;
	height: 98%;
	padding: 2%;
	box-sizing: border-box;
	overflow-y: scroll;
	background-color: #ffffff;
	-webkit-box-shadow: 0px 0px 40px -10px rgba(117,117,117,1);
	-moz-box-shadow: 0px 0px 40px -10px rgba(117,117,117,1);
	box-shadow: 0px 0px 40px -10px rgba(117,117,117,1);
}
#ws-summary-popup.active {
	z-index: 9999;
	-webkit-transform: scale3d(1,1,1);
	-moz-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
	opacity: 1;
	transition: z-index 0ms linear 0ms, transform 100ms linear 0ms, opacity 100ms linear 0ms;
}
#ws-close-popup__materials,
#ws-close-popup__signature {
	border: 1px solid #dcdee2;
	border-radius: 10px;
}
#ws-close-popup__signature {
	margin-top: 20px;
}
#ws-close-popup__materials > h2,
#ws-close-popup__signature > h2 {
	background-color: #2a334c;
	display: block;
	border-radius: 10px 10px 0 0;
	color: #fff;
	margin: 0;
	padding: 10px;
}
#summary-materials-table {
	width: 100%;
}
#summary-materials-table td {
	padding: 10px 20px;
	box-sizing: border-box;
}
#summary-materials-headrow {
	font-weight: bold;
}
.summary-materials-row td {
	border-top: 1px solid #000;
}
#ws-close-popup__signature > div {
	width: 90%;
	margin-left: 5%;	
}
#signature-name-wrapper {
	text-align: center;
}
#signature-name {
	width: 100%;
	padding: 7px;
	box-sizing: border-box;
	border: 1px solid #3f3f3f;
}
#signature-image-wrapper {

}
.signature_tools {
	width: auto !important;
	margin: auto !important;
}
#close-worksheet-summary {
	/*margin: 20px;*/
}

/* Signature */
#signature_wrapper {
	text-align: center;
}
#signature_content {
	text-align: center;
	width: 100%;
}
#signature-name {
	width: 240px;
	margin: 10px 0;
}
#signature {
	border: 1px solid #000;
	display: inline-block;
}
#signature_image {
	/* Hide until it is filled with a signature */
	display: none;
}
#signature_image.active {
	display: inline-block;
}
.signature_tools button {
	width: 45%;
}
/* === General classes === */
.warning-text {
	display: inline-block;
	background-color: #f99d9d;
	border-left: 4px solid #ff5656;
	width: 96%;
	padding: 2%;
	margin: 6px 0;
}
.clear {
	clear: both;	
}
.icon {
	color: #9599a0;
	text-decoration: none;
	font-size: 24px;
}
.icon--medium {
	font-size: 2em;
}
.block {
	border: 1px solid #dcdee2;
	border-radius: 10px;
	float: left;
	width: 100%;
	margin: 10px 0;
}
.subblock {
	float: left;
	width: 98%;
	box-sizing: border-box;
	background-color: #e6e9ed;
	border-radius: 3px;
	margin: 1%;
	border: 1px solid #cbced1;
}
.row {
	float: left;
	border-bottom: 1px solid #dcdee2;
	width: 100%;
	/*display: table;*/
}
.cell {
	/*display: table-cell;*/
	position: relative;
	vertical-align: top;
	padding: 8px;
	box-sizing: border-box;
	text-align: left;
	float: left;
}
.cell.col-1 {
	width: 25%;
}
.cell.col-2 {
	width: 50%;
}
.cell.col-3 {
	width: 75%;
}
.cell.col-4 {
	width: 100%;
}
.cell_label,
.cell_content {
	float: left;
	box-sizing: border-box;
}
.cell_label {
	font-weight: 800;
	padding-right: 8px;
}
.mob_cell_label {
	display: none;
	font-weight: 800;
}
.actionlink {
	display: inline-block;
	border-radius: 5px;
	color: #fff;
	text-decoration: none;
	background-color: #2392ce;
	padding: 10px;
	cursor: pointer;
}
.button_group {
	border: 1px solid #3b5766;
	display: inline-block;
	border-radius: 5px;
}
.button_group .actionlink {
	float: left;
	border-radius: 0;
	border-right: 1px solid #3b5766;
}
.button_group .actionlink:first-child {
	border-radius: 5px 0 0 5px;
}
.button_group .actionlink:last-child {
	border-radius: 0 5px 5px 0;
	border-right: none;
}
.confirmbutton {
	background-color: #11b252;
}
.confirmbutton:before {
	content: "\ea10";
	font-size: 16px;
	display: inline-block;
	margin-right: 8px;
	font-family: 'icomoon' !important;
}
.savebutton {
	background-color: #11b252;
}
.savebutton:before {
	content: "\e962";
	font-size: 16px;
	display: inline-block;
	margin-right: 8px;
	font-family: 'icomoon' !important;
}
.cancelbutton {
	background-color: #bc1232;
}
.cancelbutton:before {
	content: "\ea0f";
	font-size: 16px;
	display: inline-block;
	margin-right: 8px;
	font-family: 'icomoon' !important;
}
.pencilbutton:before {
	content: "\e906";
	font-size: 16px;
	display: inline-block;
	margin-right: 8px;
	font-family: 'icomoon' !important;
}
.reportbutton:before {
	content: "\e922";
	font-size: 16px;
	display: inline-block;
	margin-right: 8px;
	font-family: 'icomoon' !important;
}
.notificationbutton {
	background-color: #d89d1e;
}
.notificationbutton:before {
	content: "\ea08";
	font-size: 16px;
	display: inline-block;
	margin-right: 8px;
	font-family: 'icomoon' !important;
}
.add_calendaricon_before-big:before {
	content: "\e900";
	font-size: 32px;
	display: inline-block;
	margin-right: 8px;
	font-family: 'icomoon' !important;
}
.form-group {
	margin: 8px 0;
}
.inputicon {
	display: inline-block;
	width: 20%;
	height: 40px;
	font-size: 24px;
	line-height: 40px;
	text-align: center;
	border-radius: 4px 0 0 4px;
	margin-right: -4px;
	vertical-align: top;
}
.inputicon:before {
	line-height: 40px;
}
.textinput-group {
	width: 100%;
	vertical-align: top;
}
.textinput-group input {
	display: inline-block;
	width: 80%;
	border-radius: 0 4px 4px 0;
	height: 40px;
	margin-right: -4px;
	vertical-align: top;
	padding: 0;
	border: none;
}
.checkbox-input-group {
	clear: both;
	padding: 7px 0;
}
.checkbox-input-group .checkbox-input-group__checkbox {
	vertical-align: top;
	width: 5%;
}
.checkbox-input-group .checkbox-input-group__desc, 
.checkbox-input-group .awesomplete {
	vertical-align: top;
	display: inline-block;
	width: 65%;
	box-sizing: border-box;
}
.checkbox-input-group .awesomplete .checkbox-input-group__desc,
.checkbox-input-group .awesomplete .awesomplete {
	width: 100%;
}
.checkbox-input-group .checkbox-input-group__qty {
	width: 20%;
}

/* === AJAX loader === */
#ajax_loader {
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: rgba(255,255,255,0.8);
	top: 0;
	left: 0;
	z-index: -1;
	opacity: 0;
}
#ajax_loader.active {
	z-index: 1;
	opacity: 1;
}
#ajax_loader_inner {
	position: absolute;
	width: 90%;
	height: 60%;
	top: 20%;
	left: 5%;
	text-align: center;
}
#ajax_loader_title {
	font-size: 200%;
}
.mp-button {
	padding: 0.75em;
	background-color: #103863;
	color: #fff;
	border: none;
	border-radius: 8px;
}
.mp-button > a {
	color: #fff;
	text-decoration: none;
}
/*=== Datepicker override === */
.wc-date-popover {
	bottom: 0 !important;
	top: auto !important;
}
/*=== Alert === */
#mp_alert_wrapper,
#mp_confirm_wrapper {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: 0;
	transition: opacity 0ms linear 0ms; 
}
#mp_alert_wrapper.active,
#mp_confirm_wrapper.active {
	z-index: 6003;
	opacity: 1;
	transition: opacity 100ms linear 0ms; 
}
#mp_alert_background,
#mp_confirm_background {
	position: absolute;
	background-color: rgba(255,255,225,0.7);
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}
#mp_alert_box,
#mp_confirm_box {
	width: 50%;
	min-width: 400px;
	max-width: 600px;
	background-color: #ffffff;
	border: 1px solid #9e9c9c;
	border-radius: 4px;
	padding: 15px;
	box-sizing: border-box;
	margin: 20px auto 0 auto;
	-webkit-box-shadow: 0px 5px 10px -5px rgba(112,112,112,1);
	-moz-box-shadow: 0px 5px 10px -5px rgba(112,112,112,1);
	box-shadow: 0px 5px 10px -5px rgba(112,112,112,1);
}

#mp_confirm_buttons {
	display: block;
	margin: 0 auto;
	box-sizing: border-box;
	text-align: center;
	font-weight: 800;
	margin-top: 10px;
	cursor: pointer;	
}


/* === Mobile === */
@media only screen and (max-width : 960px) {
	#contentheader {
		display: none;
	}
	.row {
		display: block;
	}
	#worksheet_list > .row > .cell:first-child {
		background-color: #103863;
		color: #fff;
	}
	.cell {
		width: 100% !important;
		/*display: block;*/
		/*float: left;*/
		border-bottom: 1px solid #d5dbe2;
	}
	.cell:last-child {
		border: none;
	}
	.mob_cell_label {
		display: block;
		float: left;
		width: 20%;
	}
	.cellcontent {
		float: left;
		width: 80%;
	}
	.fullwidth {
		width: 100%;
	}
	/* == Detailview styles for mobile ==*/
	.cell_label,
	.cell_content {
		width: 100%;
	}
	.fullwidth > .cell_label {
		width: 100%;
		text-align: center;
	}
	.button_group {
		width: 100%;
		box-sizing: border-box;
	}
	.button_group .actionlink {
		float: left;
		width: 100%;
		text-align: center;
		padding-left: 0;
		padding-right: 0;
		border-radius: 0;
		border-bottom: 1px solid #3b5766;
	}
	.button_group .actionlink:first-child {
		border-radius: 5px 5px 0 0;
	}
	.button_group .actionlink:last-child {
		border-radius: 0 0 5px 5px;
		border-bottom: none;
	}
	#ws-summary-popup {
		padding: 5%;
	}
	#mp_alert_box {
		min-width: 200px;
		max-width: 80%;
	}
}

/* LDS additions */
#content .slds-timeline__item_action-list-component:before {
	background:#5876a3;
}
#content .slds-timeline__item_address:before {
	background:#4bc076;
}
#content .slds-timeline__item_service-crew:before {
	background:#fa975c;
}
#content .slds-timeline__item_product-required:before {
	background:#ef6e64;
}
#content .slds-timeline__item_maintenance-plan:before {
	background:#2a739e;
}
#content .slds-timeline__item_service-crew-member:before {
	background:#7e8be4;
}
#content .slds-timeline__item_formula:before {
	background:#54698d;
}

/* LDS overrides */
#content .slds-timeline__item_expandable::before {
	left: 0.85rem
}

/* Zurb Tribute */
.tribute-container {
	position: absolute;
	top: 0;
	left: 0;
	height: auto;
	max-height: 300px;
	max-width: 500px;
	overflow-y: scroll;
	display: block;
	z-index: 999999;
}
.tribute-container ul {
	margin: 0;
	margin-top: 2px;
	padding: 0;
	list-style: none;
	background: #efefef;
}
.tribute-container li {
	padding: 5px 5px;
	cursor: pointer;
}
.tribute-container li.highlight {
	background: #ddd;
}
.tribute-container li span {
	font-weight: bold;
}
.tribute-container li.no-match {
	cursor: default;
}
.tribute-container .menu-highlighted {
	font-weight: bold;
}
#tickets_header {
	background-color: #6b0d12;
}
#notes_header {
	background-color: #20A971;
}
#servicejobs_header {
	background-color: #8D3DF5;
}
#content .ticket_comment_input {
	/* background-color: #f29f8e; */
}
#content .order_comment_input {
	background-color: #9bdbc0;
}

#ticket-description,
#ticket-cause,
#ticket-solution {
	height: 10rem;
}

.document-grid li {
	margin-top: 0.5rem;
	width: 100% !important;
}