﻿li label {font-size: 100%; cursor: pointer;}
.formerror li label {text-decoration: underline;}
select, input, textarea {font-size: 100%;}
label span label {font-size: 100%;}
label {color: #556e8c;}
.floated-label label {display: inline-block; width: 270px; float: left; padding: 3px 0 0 3px;}
.floated-label input { float: left;}
/* ============================= ELEMENTS ============================= */

.con-main input.field, 
.con-main textarea {
	background: #FFFFFF;
	border-top: 1px solid #727272;
	border-right: 1px solid #dedede;
	border-bottom: 1px solid #dedede;
	border-left: 1px solid #727272;
	background-color:#fff;
	color: #333;
	}

.con-main input.field		{width: 280px;}
.con-main input.halflength	{width: 140px;}
.con-main input.short		{width: 80px;}
.con-main input.shorter		{width: 50px;}
.con-main input.veryshort		{width: 40px;}
.con-main textarea			{width: 280px; font: 100% arial, verdana, helvetica, clean, sans-serif;}

.con-main select.menu {
	background: #F8F8F8;
	border-top: 1px solid #ccd7e2;
	border-right: 1px solid #859cb3;
	border-bottom: 1px solid #859cb3;
	border-left: 1px solid #ccd7e2;
	margin: 0;
	color: #333;
	}		

/* ============================= LAYOUT ============================= */

.con-main fieldset {
	width: 690px;
	display: block;
	}
.con-main .narrow-form fieldset {
	width: 490px;
	}
.con-main .narrow-form fieldset fieldset {
	width: auto;
	}		

legend.form-part {
    display: block;
    position: relative;
    zoom: 1;
    }
legend span {
	display: block; 
	background: #cbd4df;
	width: 680px;
	color: #3f5168; 
	font-weight: bold;
	padding: 4px 5px 4px 5px;
	margin: 0px 0px 0px 0px;
	}
.con-main .narrow-form .row legend span {
	padding-left: 0;
	}	
.narrow-form legend span {
	width: 480px;
	}	
.row legend {
/*	display: inline;*//* caused issues in ie8 */
	}	
.wide-legend legend {
	display: block;
	}

div.wide-legend span.element {
	padding-left: 0;
	}
.con-main div.row-title {
	position:relative;
	z-index:1;
	padding: 5px 0 4px 10px;
	background-color: #004990;
	border-top: 1px solid #fff;
	color: #fff;
	font-weight: bold;
	}	

.con-main div.row {
	position:relative;
	z-index:1;
	padding: 5px 0 4px 0;
	background-color: #eaeef2;
	border-top: 1px solid #fff;
	}
	
	.con-main .narrow-form .row {
	width: 490px;
	}	
	.con-main .narrow-form .row .row {
	width: auto;
	}
	.con-main .text-row {
		border-color: #cbd4df !important;
		}
	.con-main .medication {
		border-color: #cbd4df !important;
		background-color: #dfe3e7 !important;
		}	
.con-main div.row:after {
	display: block;
	clear: both;
	content: ".";
	visibility: hidden;
	height: 0;
	}	
.con-main div.required {
	text-align: right;
	background: none;
	border: none;
	margin-top: -24px;
	padding: 0;
	}
.narrow-form div.required {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	}
.con-main div.last {
	background-color: transparent;
	padding: 10px 0 0 0;
	background-image: none;
	border-bottom: none;
	}

.con-main span.desc {float: left; display: block; width: 150px; padding: 3px 0px 4px 5px; color: #556e8c; text-align: right;}
.con-main span.value {float: left; display: block; width: 300px; padding: 3px 0 4px 15px; color: #666666;}
.con-main span.element {float: left; display: block; padding: 1px 0 0 15px;}
.con-main span.tip {display: block; font-size: 10px; line-height: 10px; color: #999;padding:4px;}
.con-main .narrow-form span.element {width: 315px;}
.con-main span.text {float: left; display: block; font-weight: bold; padding: 3px 10px 3px 10px; color: #3f5168; line-height: 1.4em;}
.con-main span.element span.text {float: left; display: block; padding: 3px 0 0 2px;}
.con-main span.title-text {float: left; display: block; font-weight: bold; padding: 3px 10px 3px 10px; color: #3f5168; line-height: 1.4em;}

.con-main span.button {padding-left: 168px;}
.con-main span.button-right {text-align: right; display: block}
.con-main span.requiredinfo {width: 180px; font-weight: normal; color: #556e8c; font-style: italic; padding: 5px 6px 3px 0px; display: block; float: right;}
.con-main strong.requiredinfo {color: #ff1717; font-size: 100%;}

span.buttons {display: block; text-align: right;}
span.buttons .delete {float: left;}

.card-img {position: absolute; top: 5px; left: 320px; z-index: 1;}
span.align-left {margin-left: -160px!important; color: #3F5168;}

/* Check box - Spans width of form */	
div.wide-checkbox span.desc {display: none;}
div.wide-checkbox span.element {padding-left: 5px;}
.con-main .narrow-form div.wide-checkbox span.element {width: 480px;}
.con-main .narrow-form div.wide-checkbox span.element label {width: 450px;}

/* Required indicators */
strong.required,
.requiredinfo strong {
	color: #ff1717 !important;
	}
div.row strong.required {
	position: absolute;
	left: 153px;
	top: 0;
	width: 1em;
	padding: 10px 5px 0px 7px;
	}

div.row fieldset strong.required {
	left: 153px;
	}	





/* Row nested fieldset */
div.row fieldset {
	border: none;
	margin: 0;
	padding: 0 0 0 170px !important;
	width: 450px;
	}

/*see ie.css*/

div.row legend span {
	position: absolute;
	display: inline;
	float: left;
	text-align: right;
	width: 155px;
	margin-right: 15px;
	margin-left: -173px;
	background-color: transparent;
	color: #556e8c;
	border: none;
	font-weight: normal;
	white-space: normal;
	}
	div.wide-legend legend span {
		position: static;
		text-align: left;
		width: auto;
		margin-left: 0px;
		float: none;
		display: block;
		}
	
div.row div.row {
	float: left;
	width: auto;
	display: inline;
	min-height: 1em;
	padding: 0 5px 0 0;
	border: none;
	background-color: transparent;
	}
div.row div.row:after {
	display: none;
	clear: none;
	}
div.compact div.row label span.element {
	float: none;
	display: block;
	width: auto;
	padding: 0;
	}
div.compact div.row span.desc {
	position: absolute;
	left: -999999px;
	}

div.compact div.text label span.element {
	width: 9em;
	}


/* Checkboxlist */


fieldset.checkboxlist div.row {
	float: none;
	display: block;
	}

.con-main div.row fieldset.checkboxlist label {
	float: none;
	display: block;
	padding: 0;
	position: relative;
	}

fieldset.checkboxlist span.desc {
	text-align: left;
	float: none;
	margin-left: 32px;
	}

.con-main fieldset.checkboxlist span.element {
	width: 25px;
	position: absolute;
	top: 0;
	left: 0;
	float: none;
	}


/* Multicolumn checkbox list */


div.col:after {
	display: block;
	clear: both;
	content: ".";
	visibility: hidden;
	height: 0;
	}



div.twocol div.col {
	width: 160px;
	float: left;
	display: inline;
	}

div.twocol div.col div.row span.desc {
	width: 140px;
	}

fieldset.checkboxlist div.other,
div.twocol div.other {
	clear: left;
	margin-left: -150px;
	}

fieldset.checkboxlist div.other span.desc,
div.twocol div.other span.desc {
	text-align: right;
	float: left;
	margin-left: 0;
	}
fieldset.checkboxlist div.other span.element,
div.twocol div.other span.element {
	position: static;
	float: left;
	width: auto;
	}

/* horizontal aligned checkbox list */

div.horiz div.row {
	float: left;
	display: inline;
	padding: 0;
	}

div.horiz label {
	float: none !important;
	display: block !important;
	padding: 0 !important;
	position: relative; 
	}

div.horiz fieldset.checkboxlist span.desc {
	float: none;
	display: block;
	margin-left: 32px;
	text-align: left;
	width: auto;
	white-space: nowrap;
	}
	
div.horiz fieldset.single-line .row {
	display: block;
	clear: both;
	}	

div.horiz fieldset.checkboxlist span.element {
	position: absolute;
	top: 0;
	left: 0;
	display: inline;
	text-align: left;
	width: 18px;
	padding: 0 0 0 15px;
	}

/* text field in checkbox list */

div.horiz div.other {
	margin: 0;
	float: left;
	clear: none;
	}

div.horiz div.other label {
	white-space: nowrap;
	}


div.horiz div.other span.desc {
	text-align: right;
	width: auto;
	padding-left: 15px;
	margin: 0;
	position: absolute;
	top: 0;
	left: 0;
	}

div.horiz div.other span.element {
	width: auto;
	margin-left: 3em;
	position: static;
	float: none;
	display: block;
	}




/* Other */
#options {
	width: auto;
	margin-bottom: 0;
	}
#options td {
	padding: 0;
	border: none;
	padding: 3px 0px 3px 5px;
	border-top: 1px solid #fff;
	background-color: transparent;
	}

/* Checkbox styling */	
.con-main div.checkbox {
	/*width: 340px;*/
	clear: both;
	}
.con-main div.checkbox span,
.con-main div.checkbox img {
	float: left;
	}
.con-main div.checkbox span {
	padding: 3px 0px 0px 0px;
	display: block;
	}			
.con-main div.checkbox img {
	margin: 4px 0px 5px 5px;
	}
.con-main div.checkbox span.desc,
.con-main div.checkbox span.text {
	padding: 3px 0px 5px 5px;
	display: block;
	text-align: left;
	width: 290px;
	}
.con-main div.checkbox span.element,
.con-main div.checkbox span.checkbox {
	padding-left: 165px;
	padding-top: 0;
	width: 18px;
	}	
	
/* radio button layouts */	
.con-main div.row fieldset input {
/*	clear: left;*/
	float: left;
	}
.con-main div.row fieldset label {
	float: left;
	padding: 3px 10px 3px 0;
	display: inline;
	}
.con-main div.compact fieldset input,
.con-main div.compact fieldset label {
	clear: none;
	float: left;
	}	
.con-main div.compact div.row label {
	margin-right: 7px;
	padding: 3px 0;
	}

.radioset label {
	padding-right: 1em;
	}
	
/*===================================================================*/
/* --------------------------- VALIDATION -------------------------- */
/*===================================================================*/

div.formerror,
div.formsuccess {
	padding: 10px 0 10px 10px;
	display: block;
	clear: both;
	width: 656px;
	border-bottom: 1px solid #fff;
	}
.narrow-form div.formerror,
.narrow-form div.formsuccess,
.searchprescription-form div.formerror {
	width: 456px;
	}	
	
.fragment div.formerror,
.fragment div.formsuccess {
	margin-top: -4px;
	}	
div.formerror:after,
div.formsuccess:after {
		display: block;
		clear: both;
		content: ".";
		visibility: hidden;
		height: 0;
		}		
	
div.formerror, 
div.formerror h3, 
div.formerror ul,
div.formerror li, 
div.formerror p  {
	font-size: 100%;
	color: #ea1a39;
	margin: 0 !important;
	}
div.formsuccess p  {
	margin: 0 !important;
	}	
.formerror {
	background: url(../library/bg-error.gif) #ffcc66 0 0 no-repeat;
	padding-left: 34px !important;
	}
.formsuccess {
	background: url(../library/bg-success.gif) #B7E47E 0 0 no-repeat;
	padding-left: 34px !important;
	}		
				
.formerror ul {
	margin: 0 !important;
	padding: 0 !important;
	}	

.content .formerror ul li {
	background: url(../library/bullet-error.gif) no-repeat left 8px !important;
	padding: 2px 0px 2px 12px;
	}

div.formsuccess	{
	background-color: #B7E47E;
	color: #527e1a;
	}
.content div.formsuccess p	{
	margin-bottom: 0 !important;
	}		
div.formerror h3 {background-image: none; background-color: transparent; padding: 0; margin: 0; font-weight: bold;}	
div.formsuccess h3 {color:#207d0f;}		




div.medicine-name {
	clear: both;
	width: 100%;
	}
div.medicine-container {
	padding: 2px 0 3px 155px;
	float: left;
	}	
div.medicine-details {
	position: relative;
	font-style: italic;
	}
div.medicine-name,	
div.medicine-details {
	float: left;
	}	
div.repeat-group {
	position: relative;
	}	
div.repeat-group div.delete {
	position: absolute;
	top: 7px;
	left: 663px;
	z-index: 1000;
	}	

.checkboxlist {
	margin: 0;
	padding: 0;
	border: none;
	}
	
.checkboxlist td {
	background:transparent;
	border: none;
	padding-left: 0;
	}	

.mod-form {
	position: relative;
	}