/*
Author: Natalie Downe
Date: 03/10/2005
Description: all styles that affect the general layout and look of forms 

	NOTE: any problems with IE please do not put hacks in here, use formsIE.css to over-ride

	TO USE: used by default in the header, if not required (such as in 
	contactability and availability) the set 'noForms' variable to anything,
	eg:     <c:param name="noForms" value="true" /> */

/* -------------- Forms -------------- */

form { 
	margin-top: 2em;
}

form div {
	margin: 1em 0;
}

input,
textarea {
	/*color: #698AB7;
	background-color: white;*/
	border: 1px solid #A8A9C6;
	padding: 0.1em 0.3em;
	color: black;
	background-color: white;
	font-family: Verdana, Sans-serif;
	font-size: 1em;
}

select {
	border: 1px solid #A8A9C6;
}

select.long {
	width: 30%;
}

input:active, 
textarea:active {
	/*background-color: #FAFAFC;
	color: #698AB7;*/
	background-color: #FAFAFC;
	color: black;
}

form input[type=radio], 
form input[type=checkbox],
html body div#content form input.radio, 
html body div#content form input.checkbox {
	width: 1em !important;
	border: none !important;
	background-color: inherit;
	color: inherit;
}

input[type=radio] {
	border: none !important;
}

form label, p.mockLabel {
	width: 12em;
	float: left;
	display: block;
	font-weight: bold;
	cursor: pointer;
	padding-left: 8px;
	text-align: left;
	background-color: inherit;
}

form label.radio {
	width: 5em !important;
	float: none;
	display: inline;
	font-weight: normal;
	cursor: pointer;
	padding-left: 0;
	text-align: left;
}

form label.checkbox {
    width:0em !important;
}

form div#saveContainer,
div.saveContainer {
	clear:both;	
}

form input[type=submit], 
form div#saveContainer input, 
div.saveContainer input,
div#saveContainer a.linkButton:link,
div#saveContainer a.linkButton:visited,
div#saveContainer a.linkButton:hover,
div#saveContainer a.linkButton:active {
	text-decoration: none;
	border: 1px solid black;
	padding: 0.2em 0.2em;
	margin: 0.8em 54px;
	background-color: #000066;
	background-image: url(/nems/images/buttonBevel.gif);
	background-position: top left;
	background-repeat: no-repeat;
	color: white;
	text-transform: uppercase;
	font-weight: normal;
	width: 4.5em;
	font-size: 0.85em;
}
 
div#content form div#saveContainer input.nonIndent, 
div#content div.saveContainer input.nonIndent  {
	margin-left: 1em;
}

form input[type=submit]:active, 
div#saveContainer input:active, 
div.saveContainer input:active,
div#saveContainer a.linkButton:active {
	border: 1px solid black;
	background-position: bottom right;
}


div#content div#saveContainer a.linkButton:link,
div#content div#saveContainer a.linkButton:visited,
div#content div#saveContainer a.linkButton:hover,
div#content div#saveContainer a.linkButton:active {
	margin: 1em 0 1em 1em;
	position: relative;
	top: 1.3em;
	padding-left: 0.5em;
	padding-right: 0.5em;
}

input.disabled, 
input[type='submit'].disabled {
	color: #999999;
	background-color: #F5F5F9;
	border: 1px solid #D8D8D8;
}

input.readonly,
textarea.readonly {
	background-color: #EBEBEB;
	border-color: #EEEEF5;
}

div#saveContainer {
	border-top: 1px solid #000066;
	background-color: #A8A9C6;
	height: 3.5em;
	clear: both;
}
div.saveContainer {
	border-top: 1px solid #000066;
	background-color: #A8A9C6;
	height: 3.5em;
	clear: both;
}

label.required, .required {
	background-image: url(/nems/images/icons/required.gif);
	background-repeat: no-repeat;
	background-position: left 5px; 
}

label.noneRequired {
	padding-left: 0;
}

p.required {
	padding-left: 8px;
}

p.awaitingModeration, span.awaitingModeration {
	color: green;
	font-style: italic;
	margin:0;
	padding:0;
	font-weight: bold;
	text-align: left;
}

label a:link,
label a:visited,
label a:hover,
label a:active {
	color: #698AB7;
	font-weight: normal;
	font-size: 0.8em;
}

div.longLabel label {
	width: 95%;
	float: left; 
	clear: none;
}

div.longLabel input {
	width: 1em;
	float: left;
}

div.longLabel p.expandedInfo {
	float: left;
	clear: left;
	width: 100%; 
}

input.emailAddress {
	width: 25em;
}

input.money {
	width: 5em;
}

/* Field prefixes and suffixes */
p.pre,
p.post {
	float: left;
	width: 1em;
}

p.pre {
	vertical-align: top;
	margin: 0 0 1em 0;
	text-align: right;
	padding: 0.15em;
}

p.post {
	clear: right;
	width: 6em;
	vertical-align: top;
	margin: 0 0 1em 0.1em;
	padding: 0.15em;
}

/* errors */

/* errors */
ul.formValidationError li {
	list-style-type: none;
	border-width: 1px ;
	padding: 0.4em 0 0 15px;
	margin: 0;
	width: 100%;
	height: 2em;
	background-color: #FCE0DA;
	color: black;
	font-weight: bold;
	font-size: 0.8em;
	text-align: left;
	background-image: url(/nems/images/icons/required.gif);
	background-repeat: no-repeat;
	background-position: 6px 40%;
}

ul.formValidationError {
	height: 25px;
	margin: 0 0 0 12.5em;
	width: 39.8%;
	padding: 0;
} 

div.hidden,
div.hiddenField {
	display: none;
}

/* mceEditor 

html body div#content form table.mceEditor tbody {
	font-size: 12pt;
}*/

/* Exceptions */

div.midsize input {
	width: 39.8%;
}

div.midsize label {
	width: 15em;
}

div.midsize ul.formValidationError {
	margin: 0 0 0 15.5em;
	width: 39.4%;
}

div.small ul.formValidationError {
	width: 18.6%;
}

/* used for long lables small normal input boxes (not checkboxes) */
div.reverseLength input {
	width: 4em;
	margin-left: 2em;
}

div.reverseLength label {
	width: 23em;
}

div.reverseLength label em {
	font-style: normal;
	text-transform: uppercase;
}

div.reverseLength p {
	clear: both;
	font-style: italic;
	padding: 1em 0 0 0;
	margin: 0;
}

div.hiddenFields {
	height: 0;
	padding:0;
	margin:0;
	border: none;
}

div#saveContainer input.wide,
div#passwordContainer input.wide {
	width: 15em;
}
div#saveContainer input#selectAllButton {
	width: 9em;
	float: right;
}

div.formEditContainer,
div.formNonEditContainer {
	border: 1px solid #EEEEF5;
	background-color: #F9F9F9;
	padding-left: 45px;
	background-image: url(/nems/images/icons/notes_32.gif);
	background-repeat: no-repeat;
	background-position: 10px 14px 
}
div.formNonEditContainer {
	background-image: none;
}

div.formEditContainer p.formEditContainerTitle,
div.formNonEditContainer p.formNonEditContainerTitle {
	width: 100%;;
	float: left;
	display: block;
	font-weight: bold;
	padding-left: 8px;
	padding-bottom: 1em;
	text-align: left;
}
