/* Transition effect for ajax content change */
#spa-page-content {
	opacity: 1;
	transition: all .2s ease-in-out;
	margin: 0 auto;
	padding: 2em 2%;
}
.in-loading #spa-page-content {
	opacity: 0;
}

.bg-success {
	color: #161;
	padding: 1em 1em .25em;
	margin: 0 auto 1em;
	border-radius: 6px;
}

body {
	font-family: 'PT Sans', sans-serif;
	font-weight: 400;
}
body.sign-in {
	display: flex;
	flex-flow: column;
	justify-content: space-around;
	align-content: center;
	align-items: center;
	width: 100vw;
	height: 100vh;
}
body.sign-in section {
	width: 300px;
}
body.default-layout {
	padding-top: 4em;
	background-color: #CBCBCB;
}
body.dragging, body.dragging * {
    cursor: move !important
}
header,
nav {
	position: fixed;
	left: 0;
	right: 0;
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	padding: .75em 1em;
	z-index: 999;
}
header {
	top: 0;
	background-color: #fff;
}
nav {
	bottom: 0;
	background-color: #000;
}

nav a {
	color: #f6f6f6;
	text-decoration: none;
	cursor: pointer;
}
nav a:hover, nav a:focus {
	color: #fff;
	text-decoration: none;
}
.addnew {
	font-size: 30px;
	line-height: 2em;
	position: fixed;
	left: calc( 50% - 1em );
	bottom: -.25em;
	display: flex;
	justify-content: center;
	align-content: center;
	background-color: #333;
	width: 2em;
	height: 2em;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	box-sizing: border-box;
	z-index: 1000;
}

.lsc-branding {
	font-size: 180px;
	width: 1em;
	height: 0.4737em;
	background-image: url('../images/lsc-logo.svg');
	background-repeat: no-repeat;
	background-size: cover;
	display: block;
	margin: 0 auto;
	overflow: hidden;
	color: transparent;
}

/* Change Widget Alignment */
.field-datepicker .input-with-icon.right-align input {
	text-align: left;
}

/* Eye (OS, OD, OU) and Plan (S, G, P) Styles */
.field-checkboxlist:not(.is-scrollable),
.field-checkboxlist:not(.is-scrollable) .field-checkboxlist-inner {
	padding: 0;
	background: transparent;
	border: none;
	display: flex;
	justify-content: flex-start;
}
#surgery-add .field-checkboxlist .checkboxlist-controls {
	display: none;
}
.field-checkboxlist .field-checkboxlist-inner {
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0;
	background: transparent;
	border: none;
}
.patient-plan .custom-radio label::before,
.patient-plan .custom-radio input[type="radio"]:checked + label::before,
.patient-plan .custom-radio input[type="radio"]:checked + label::after,
.surgery-eye .custom-checkbox label::before,
.surgery-eye .custom-checkbox input[type="checkbox"]:checked + label::before {
	content: none;
}

.surgery-eye .custom-checkbox {
	margin: 0 5px 0 0;
	padding: 0;
}
.procedure-eye {
	width: 1.5em;
}
.patient-plan,
.procedure-eye,
.patient-plan .custom-radio label,
.surgery-eye .custom-checkbox label {
	font-size: 60px;
	border: 2px solid #888;
	border-radius: 6px;
	padding: .02em .01em .05em;
	line-height: .75em;
	font-weight: 700;
	color: rgba(255,255,255,0.7);
	transition: all .15s ease-in-out;
	margin: 0 auto;
	text-align: center;
}
.form-group.patient-plan {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-content: start;
	align-items: end;
	border: none;
}
.form-group.patient-plan > label {
	width: 100%;
	line-height: 1;
	text-align: left;
}
.procedure-eye,
.patient-plan .custom-radio input[type="checkbox"]:checked + label,
.surgery-eye .custom-checkbox input[type="checkbox"]:checked + label {
	background-color: #888;
	color: #fff !important;
}


.eye-od,
.custom-checkbox input[value="OD"] + label {
	border-color: #AF0000 !important;
}
.eye-od,
.custom-checkbox input[type="checkbox"][value="OD"]:checked + label {
	background-color: #AF0000 !important;
}
.eye-os,
.custom-checkbox input[value="OS"] + label {
	border-color: #00A4D8 !important;
}
.eye-os,
.custom-checkbox input[type="checkbox"][value="OS"]:checked + label {
	background-color: #00A4D8 !important;
}
.eye-ou {
	border-color: #AF64D8 !important;
	background-color: #AF64D8 !important;
}

.patient-plan .custom-radio {
	padding-left: 0;
}
.patient-plan,
.patient-plan .custom-radio input[type="radio"]:checked + label {
	color: #505050;
}
.patient-plan,
.patient-plan .custom-radio input[type="radio"] + label {
	width: 1em;
}
.patient-plan .custom-radio input[type="radio"][value="S"] + label {
	border-color: #E9E9E9 !important;
}
.patient-plan .custom-radio input[type="radio"][value="G"] + label {
	border-color: #E1CA00 !important;	
}
.patient-plan .custom-radio input[type="radio"][value="P"] + label {
	border-color: #9A9A9A !important;	
}
.plan-s,
.patient-plan .custom-radio input[type="radio"][value="S"]:checked + label {
	background-color: #E9E9E9 !important;
	border-color: #E9E9E9 !important;
}
.plan-g,
.patient-plan .custom-radio input[type="radio"][value="G"]:checked + label {
	background-color: #E1CA00 !important;	
	border-color: #E1CA00 !important;	
}
.plan-p,
.patient-plan .custom-radio input[type="radio"][value="P"]:checked + label {
	background-color: #9A9A9A !important;	
	border-color: #9A9A9A !important;	
}
.no-plan {
	background-color: transparent;
	border-color: transparent;
}


/* Form Tabs */
.control-tabs.primary-tabs > ul.nav-tabs, .control-tabs.primary-tabs > div > ul.nav-tabs, .control-tabs.primary-tabs > div > div > ul.nav-tabs {
	display: none;
}
.control-tabs > div.tab-content > div.tab-pane {
	display: block;
}






/* Surgery Schedule */
#schedule-date {
	display: inline;
}
#schedule-date .active-dates {
	border-width: 1px 0px 1px 1px;
	border-radius: 4px 0 0 4px;
	padding: .15em .5em;
	width: 7em;
	box-shadow: inset 1px 1px 3px #ccc;
}
#schedule-date button {
	border-width: 1px 1px 1px 0px;
	border-radius: 0 4px 4px 0;
	padding: .15em .5em;
	background-color: #444;
	color: #fff;
}
#surgeries-list h2,
#surgeries-list .active-dates-container {
	display: inline;
}
#surgeries-list .schedule-header {
	margin-bottom: 2em;
}
.surgeon-heading,
.surgeon-group-surgeries {
	background-color: rgba(255,255,255,.5);
	padding: 5px;
}
.surgeon-heading {
	display: inline-block;
	border-radius: 6px 6px 0 0;
	margin: 0;
	min-width: 12em;
	color: #505050;
}
.surgeon-heading small {
	display: none;
}
.surgeon-heading button {
	font-size: .6em;
	border-radius: 4px;
	border: none;
	background-color: #777;
	color: #fff;
	padding: 3px 5px;
}
.surgeon-group-surgeries {
	border-radius: 0 6px 6px 6px;
	margin: 0 auto 20px;
	list-style-type: none;
}

.surgeon-group-surgeries .placeholder::before {
	content: 'Drop to set new order in this spot.';
}

.surgeon-group-surgeries .placeholder {
	position: relative;
	border: 1px dashed #666;
	background-color: rgba(150,150,150,.4);
	text-align: center;
	line-height: 3em;
	height: 3em;
	border-radius: 6px;
	margin: 5px auto;
	transition: all .2s ease-in-out;
}
.surgery-details {
	background-color: #505050;
	border-radius: 4px;
	color: #fff;
	padding: 8px 8px 8px 26px;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-content: flex-start;
	align-items: baseline;
	transition: all .2s ease-in-out;
	position: relative;
}
.surgery-item {
	transition: all .2s ease-in-out;
}
.surgery-item:not(:last-of-type) {
	margin: 0 0 10px;
}
.surgery-item.dragged {
	cursor: move;
	height: auto !important;
	opacity: .75;
	box-shadow: 0px 2px 5px rgba(0,0,0,0.3);
	z-index: 999999;
	transform: scale(1.01);
}
.surgery-details .item-handle {
	width: 20px;
	text-align: center;
	align-self: center;
	position: absolute;
	top: 2px;
	left: 2px;
	bottom: 2px;
	display: flex;
	flex-flow: column;
	justify-content: center;
	color: #777;
	cursor: move;
	border-radius: 4px;
	transition: all .2s ease-in-out;
}
.surgery-details .item-handle:hover {
	color: #fff;
	background-color: #777;
}
.surgery-details strong {
	color: #BABABA;
	font-weight: 700;
}
.surgery-details .procedure {
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
	margin: 5px 0 0;
}
.surgery-details .procedure span:nth-of-type(-n+2) {
	margin-right: 5px;
}
.surgery-details .procedure span:nth-of-type(-n+2) {
	margin-right: 5px;
}
.surgery-details .procedure span:nth-of-type(3) {
	border-radius: 6px 0 0 6px;
}
.surgery-details .procedure span:nth-of-type(n+3) {
	padding: 2px 5px;
	background-color: rgba(0,0,0,0.3);
}
.surgery-details .procedure span:last-of-type {
	border-radius: 0 6px 6px 0;
}
.surgery-details .patient-name {
	margin: 0;
	font-weight: 400;
	font-size: 1.2em;
	line-height: 1.5em;
}
.surgery-details .patient-name,
.surgery-details .patient-dob {
	width: 50%;
}
.surgery-details .patient-dob {
	text-align: right;
}
.surgery-details .procedure-type-iol {
	display: flex;
	flex-flow: column wrap;
	justify-content: space-between;
}
.surgery-details .procedure-type {
	font-style: italic;
	color: #DCDCDC;
	line-height: .8em;
}
.surgery-details .procedure-type:first-of-type {
	font-size: 1.7em;
}
.surgery-details .procedure-iol {
	font-size: 1.3em;
	line-height: 1em;
}
.surgery-details .procedure-lri,
.surgery-details .procedure-toric,
.surgery-details .procedure-diopter {
	font-size: 1.3em;
	text-align: center;
	line-height: 1em;
	display: flex;
	flex-flow: column;
	justify-content: space-between;
}
.surgery-details .procedure-lri strong,
.surgery-details .procedure-toric strong,
.surgery-details .procedure-diopter strong {
	display: block;
	line-height: 1.3em;
}
.surgery-details .procedure-variables {
	margin: 0;
	padding: 5px;
	list-style-type: none;
	max-height: 3.8em;
	display: flex;
	flex-flow: column wrap;
	justify-content: space-between;
	align-items: flex-start;
	align-content: flex-start;
	font-size: .8em;
	line-height: 1.1;
}
.surgery-details .procedure-variables li {
	margin-right: 1em;
}
.surgery-details .procedure-notes {
	flex: 1 1;
	align-self: flex-start;
	margin-left: 15px;
}
.surgery-details .doclink a {
	background-color: #eee;
	color: #333;
	padding: .2em;
	border-radius: 6px;
	text-decoration: none;
	transition: all .2s ease-in-out;
}
.surgery-details .doclink a:hover {
	background-color: #fff;
}
#Relation-formSurgvars-surgvars .control-scrollbar {
	display: flex;
	flex-flow: column wrap;
	max-height: 19em;
}

/* Add Entry Forms */
.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default.select2-container--open .select2-selection {
	border-color:#ffa;
	background-color: #ffa;
}

.entry-form {
	background-color: #505050;
	color: #fff;
}
.entry-form label {
	color: #fff;
}
.entry-form .field-checkboxlist-scrollable {
	background: transparent;
	border: none;
	padding-left: 0;
}
.entry-form .field-checkboxlist.is-scrollable small {
	display: none;
}

/* Add Surgery Form */
.entry-form .surgery-input-primary {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
}
.entry-form .surgery-input-primary label {
	width: 7em;
	font-size: 1.6em;
}
.entry-form .surgery-input-primary .relation-widget,
.entry-form .surgery-input-primary .field-datepicker {
	flex-grow: 1;
}
.entry-form .surgery-eye > label {
	display: none;
}
.entry-form .control-tabs > div.tab-content > div.tab-pane {
	display: flex !important;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-content: flex-start;
	align-items: flex-end;
	padding-top: 0;
}
.entry-form .control-tabs > div.tab-content > div.tab-pane:nth-of-type(2) {
	display: grid !important;
	grid-template-columns: 35% 65%;
	grid-template-rows: auto auto;
	grid-template-areas: 
	"procedure variables"
	"procedure notes"
	"procedure override-dx"
	"procedure override-pd"
	;
}

.entry-form .field-checkboxlist-scrollable {
	height: auto;
}
.entry-form .surgery-input-procedure,
.entry-form .surgery-input-variables {
	align-self: flex-start;
	width: auto !important;
}
.entry-form .surgery-input-procedure {
	grid-area: procedure;
}
.entry-form .surgery-input-variables {
	grid-area: variables;
	align-self: start;
}
.entry-form .surgery-input-dx {
	grid-area: override-dx;
}
.entry-form .surgery-input-pdesc {
	grid-area: override-pd;
}
.entry-form .surgery-input-notes {
	grid-area: notes;
	width: 100% !important;
}
.entry-form .surgery-input-notes textarea {
	height: 10em;
}
.entry-form .surgery-input-procedure > label,
.entry-form .surgery-input-variables > label {
	display: none;
}
.entry-form .surgery-input-procedure .custom-checkbox label::before {
	width: 1.1em;
	height: 1.1em;
	position: static;
	margin-right: .25em;
	vertical-align: middle;
}
.entry-form .surgery-input-procedure .custom-checkbox input[type="checkbox"]:indeterminate + label::before,
.entry-form .surgery-input-procedure .custom-checkbox input[type="checkbox"]:checked + label::before {
	font-size: inherit;
	line-height: 1em;
}
.entry-form .surgery-input-procedure .checkbox label {
	font-size: 1.2em;
	padding: 0;
}
.entry-form .surgery-input-variables .field-checkboxlist-scrollable {
	padding-top: 15px;
}
.entry-form .surgery-input-variables .field-checkboxlist-scrollable .checkbox {
	margin-top: 0;
}


@media screen and (min-width: 1280px) {
	.addnew {
		display: none;
	}
	.content-wrapper {
		display: flex;
		flex-flow: row nowrap;
		justify-content: space-between;
	}
	.entry-list {
		width: 57%;
	}
	.entry-form {
		position: absolute;
		right: 0;
		width: 41%;
		padding: 0 2% 80px;
		border-radius: 12px 0 0 12px;
	}

}


@media print {
	body {
		margin: 0;
		padding: 0;
		font-size: 1.2em;
	}
	#schedule-date input {
		border: none;
		padding: none;
		width: auto;
	}
	#spa-page-content {
		padding: 0 .25in;
	}
	header,
	nav,
	.schedule-header,
	.addnew,
	.entry-form,
	.doclink,
	.item-handle,
	.pagination,
	.placeholder,
	#schedule-date button,
	.surgery-details .patient-dob {
		display: none !important;
	}
	.surgeon-group {
		page-break-after: always;
	}
	.surgeon-group-surgeries {
		list-style-type: decimal;
	}
	.surgeon-heading {
		font-size: 12pt;
	}
	.surgeon-heading small {
		display: inline;
	}
	.surgery-item {
		padding-left: .25em !important;
		margin-left: 1em !important;
		list-style-position: outside;
		align-content: center;
		font-size: 10pt;
		page-break-inside: avoid;
		width: 100% !important;
		height: auto !important;
	}
	.surgery-item::marker,
	.surgery-details,
	.surgery-details .patient-name,
	.surgery-details .procedure {
		/*display: table-cell;*/
		/*white-space: nowrap !important;*/
	}
	.surgery-item::marker {
		font-size: 1.5em;
		line-height: 30pt;
		font-weight: 700;
		vertical-align: baseline;
	}
	.surgery-item:not(:last-of-type) {
		margin: 0;
	}	
	.surgery-details {
		justify-content: flex-start;
		border-bottom: 1pt solid #000;
		border-radius: 0;
		min-width: 80%;
		padding: 2pt;
	}
	.surgery-details .patient-name {
		width: 20%;
		text-align: right;
		font-size: 10pt;
		line-height: 1;
		margin-right: .5em;
		align-self: center;
	}
	.patient-plan,
	.procedure-eye,
	.patient-plan .custom-radio label,
	.surgery-eye .custom-checkbox label {
		font-size: 10pt;
		line-height: 1;
		border-radius: 3px;
		align-content: center;
		vertical-align: middle;
		padding: 0;
	}
	.surgery-details .procedure-type:first-of-type {
	    font-size: 1.1em;
	}
	.surgery-details .procedure-type-iol {
		flex-flow: row wrap;
	}	
	.surgery-details .procedure-type-iol div {
		width: 15em;
		display: inline-block;
	}
	.surgery-details .procedure-iol {
		font-size: 1em;
		margin-left: 1em;
	}
	.surgery-details .procedure-iol strong,
	.surgery-details .procedure-diopter strong,
	.surgery-details .procedure-toric strong {
		display: none;
	}	
	.surgery-details .procedure-lri,
	.surgery-details .procedure-toric,
	.surgery-details .procedure-diopter {
		font-size: 1em;
	}
}