/*
	Forms Stylesheet for National Museums Scotland (NMS) / Parallel 56

	$Author: adonaldson $
	$Date: 2006-10-12 17:22:22+01 $
	$Revision: 1.7 $	
*/

input[type=submit] {
   background-image: url(/images/button_bg.gif);
   background-repeat: repeat-x;
   background-position: 0;
   padding: 2px 5px;
   width: auto;
   color: #fff;
   border: 0 none;
}

/* Font styles */

input,
select,
textarea {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 100%;
	color: #000;
	background-color: #fff;
}

input.button  {
	font-weight: bold;
}

input {
	font-size: 100%;
	background-color: #fff;
	color: #000;
}

label {
	display: block;
	margin-bottom: 0.5em;
	padding-top: 2px;
	font-weight: bold;
}

/* Main Form styles */

fieldset input,
fieldset textarea,
fieldset select {
	padding: 2px;
	width: 95%;
}

fieldset p.heading {
	margin: 0.75em 0 0.5em 0;
	padding-top: 0.75em;
	font-size: 130%;
	font-weight: bold;
	border-top: 1px solid #ddd;	
}

fieldset select {
	width: 95.5%;
}

html>body fieldset select {
	width: 100%;
}

fieldset .submitrow {
	text-align: right;
}

fieldset textarea {
	height: 5em;
}

fieldset input.autowidth {
	width: auto;
	border: 0;
}

fieldset input.button {
	width: auto;
	color: #fff;
	padding: 0;
	border: 0;
	background-color: transparent;
	background-repeat: repeat-x;
	background-position: 0 0;
	padding: 2px 5px;
}

fieldset {
	/*margin: 2em 0;*/
	padding: 1em;
	border: 0;
	margin-top: 0;
	padding-top: 0;
}

fieldset fieldset.autogenerated { margin: 0; padding: 0; border: 0; }

@media screen {
	fieldset legend { display: none; }
}	

fieldset.wideForm { margin-right: 20%; } /* Changed from padding */

fieldset.inline { margin: 0 0 1em 0; }
fieldset.highlight { padding-top: 1em; margin-bottom: 1em; }
fieldset.inline select { width: 90%; margin-right: 2%; }
																/* Advanced form styles */

fieldset div.postcode input {
	width: 20%;
	margin-right: 1em;
}

fieldset div.datefields input { width: 9%; }

fieldset div.datefields input.day { }
fieldset div.datefields input.month { }
fieldset div.datefields input.year { width: 15%; }

/* Scrollable lists */
fieldset div.scrollable {
	width: 100%;
	height: 6.5em;
	overflow: scroll;
	border-top: 2px solid #eeeeee;
	border-bottom: 2px solid #eeeeee;
}

fieldset div.scrollablepadding {
	padding: 0.25em 0;
}

div.scrollable ul {
	width: 80%;
	list-style: none;
	margin: 0;
	padding: 0;
}

div.scrollable ul li { 
	white-space: nowrap;
}

div.scrollable ul li ul { font-size: 100%; }

fieldset div.labelabove .formElement { width: 100%; }

fieldset div.labelabove textarea { width: 100% }

fieldset input.autowidth,
fieldset label.autowidth input,
fieldset div.autowidth input,
fieldset span.autowidth input {
	width: auto;
	border: 0;
	background: transparent;
	margin-right: 0.5em;
}

fieldset div.formElement.labelsonright { width: 100%;  }

fieldset select.autowidthkeepborders {
	width: auto;
}

fieldset input.autowidthkeepborders {
	width: 50%;
}

fieldset .labelsonright input {
	float: left;
	/* Required to fix slight floating bug in safari / mac firefox */
	width: 0.98em;
	margin-left: 0;
	background: transparent;
}

fieldset .labelsonright label {
	float: left;
	width: auto;
}

																/* Advanced formbuilder styles */

/*fieldset div.shortlabel label { width: 12em; background: cyan; }
fieldset div.shortlabel .formElement label { width: auto; }
fieldset div.shortlabel .formElement { width: 17em; background: green; }

fieldset div.longlabel label { width: 19em;}
fieldset div.longlabel .formElement label { width: auto; }
fieldset div.longlabel .formElement { width: 10em;  }

fieldset div.labelabove label {	width: 30em; }

fieldset.boldlabels label,
div.boldlabels label {
	font-weight: bold;
}

fieldset label em,
fieldset.boldlabels label em,
div.boldlabels label em {
	display: block;
	font-style: normal;
	font-weight: normal;
	font-size: 85%;
}

fieldset .labelsonright label,
fieldset .formElement label,
fieldset.boldlabels .labelsonright label,
fieldset.boldlabels .formElement label,
div.boldlabels .labelsonright label,
div.boldlabels .formElement label {
	font-weight: normal;
}
*/

/* Hack required because of crazy form layout */
fieldset div.radiolist.hiddensecond { text-align: right; }
fieldset div.radiolist.hiddensecond label.option1 { float: left; }
fieldset div.radiolist.hiddensecond label.option3 { margin-left: 0.25em; }

fieldset div.labelabove label { margin-bottom: 0.5em; text-align: left; }

fieldset div.formElement div label { width: auto; }
fieldset div.labelabove div.formElement.twocol div {
	width: 49%;
	float: left;
}

fieldset.wideForm div.submitrow { margin-right: 4%; }
html>body fieldset.wideForm div.submitrow { margin-right: 1.5%; }
																
																/* Main form structure */

fieldset label {
	color: #000;
	width: 27%;
	margin-right: 2%;
	display: block;
	float: left;
	font-weight: bold;
}

fieldset .formElement {
	float: left;
	width: 71%;
}

fieldset .row {  } 

fieldset .formElement label {
	/* This class undoes all the work done to all labels */
	float: none;
	font-weight: normal;
	display: inline;
	width: auto;
}

/* how to clear a series of floats, make the inner floats push the outer container WITHOUT a br clearboth */
fieldset .row:after {
    content: "."; 
    display: block; 
    height: 0; 
    clear: both; 
    visibility: hidden;
}

fieldset .row {
	display: inline-block;
	margin-bottom: 0.5em;
	border: 1px solid #fff; /* Firefox bug */
}

/* Hides from IE-mac \*/
* html fieldset .row { height: 1%; }
fieldset .row { display: block; }
/* End hide from IE-mac */

																/* Quick Search */

fieldset.quickSearch {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 90%;
}

fieldset.quickSearch legend { display: none; }

fieldset.quickSearch div.formElement {
	width: 100%;
	margin: 0;
}

fieldset.quickSearch label {
	position: absolute;
	top: 0;
	left: 0;
	margin-left: 25%;
	text-align: left;
	color: #fff;
	background: #000;
	padding: 0.25em;
	margin-top: 1px;
}

fieldset.quickSearch input {
	width: 125px;
	margin-right: 40px;
	border: 0;
	border: 1px solid #000;
}

fieldset.quickSearch input.button {
	position: absolute;
	top: 0;
	right: 0;
	width: 35px;
	margin-right: 0;
	border: 0;
}

fieldset.quickSearch div.submitrow {
	text-align: right;
	margin-right: 0;
}

fieldset.quickSearch .row { border-width: 0; }

																/* Error styles (common) */

fieldset input.errorborder,
fieldset textarea.errorborder,
fieldset select.errorborder {
	margin-bottom: 0;
}

fieldset div.errormessage {
	clear: both;
	padding: 0 0 0.5em 1.5em;
	margin-left: 0.3em;
	margin-top: 0.5em;
}

fieldset div.labelsonright div.errormessage {
	padding: 0;
	margin: 0;
}

fieldset .errorborder {
	border-style: solid;
	border-width: 1px 1px 2px 1px !important;
}

																/* Error styles (colour) */

fieldset div.errormessage {
	color: #F60200;
	background: transparent url(../images/arrow_red_up.gif) no-repeat 0 0.3em;
}

div#secondColumn p.errormessage {
	color: #F60200;
}

fieldset .errorborder {
	border-color: #f60200 !important;
}

fieldset div.labelsonright div.errormessage {
	background: 0;
}

																/* Press release form */
				
fieldset.pressForm { margin-top: 0; }
									
fieldset.pressForm div.labelabove label { width: 100%; }

fieldset.pressForm .row { width: 70%; float: left; }

fieldset.pressForm input.button { margin-top: 2em; }

																/* Login form */														
		
fieldset.loginForm {
	border: 0 !important;
	border-bottom: 2px solid #A0A3C6;
	padding-left: 0;
	padding-right: 0;
}

fieldset.loginForm div.row { margin-bottom: 1em; }

fieldset.loginForm div.submitrow a { 
	margin-right: 1em;
}

p.errormessage { color: #ff0000; font-weight: bold; text-align: center; margin-bottom: 1em; }

																/* Search form */
fieldset.searchForm div.checkBox { 
	margin-left: 28%;
}

fieldset.searchForm div.checkBox input {
	width: auto !important;
	float: left;
}

fieldset.searchForm div.checkBox label {
	float: left;
	width: auto;
	margin-right: 2em;
	margin-left: 0.15em;
	font-weight: normal;
}

																/* Profile form */
																
.checklist div.autowidth { clear: both; }
.checklist div.autowidth input { float: left; }
.checklist div.autowidth label { float: left; width: 85%; }

.labelabove label { width: 100%; float: none; }
.labelabove .checklist.twocol div.autowidth { width: 50%; float: left; clear: none; }
.labelabove div.autowidth label { width: auto; }
html>body .labelabove div.autowidth label { width: 85%; }
.labelabove { clear: both; }	



table.tbform { color: #000000; font-size: 100%; border: none; !important }
table.tbform td { border: none; !important }
															
