/* Copyright TvTWeb - www.tvtweb.nl */

/*=== Major Elements ======================================================================================================================================================*/

*{padding: 0; margin: 0;}
/* change font family */
form											                {padding:0px; margin:0px; line-height:19px;}

/* Change font color and size */
fieldset legend, fieldset input, fieldset label, fieldset select, fieldset textarea, fieldset.webappForm label, .webAppTableSearchFilter input, .webAppTableSearchFilter select, span.unitDescription
                                                                {font-family:Arial; color:#333333; font-size:12px;}
/* Basics */
fieldset legend									                {padding-bottom:9px; font-weight:bold; color:#a3ac41; padding-top:10px;}
fieldset.webappForm								                {margin:0px; padding:0px 15px 5px 0px; border:0px; text-align:left;}
fieldset.webappForm p                                           {padding:0px 0px 15px 0px;}
fieldset.webappForm input.formButton			                {cursor:pointer; color:#ffffff; font-weight:bold; background-color:#c8d63e; border:0px; margin:10px 0px 0px 220px; padding:5px; width:242px; border:1px solid #b1bc48; font-size:15px;}
fieldset.webappForm input.formButton:hover		                {background-color:#b4c038;}

/*=== Label Elements ======================================================================================================================================================*/

fieldset.webappForm label.addErrorText			                                    {color:#ec0000;}

/*=== Default =============================================================================================================================================================*/

fieldset.webappForm label                                                           {width: 220px; /* label width *//* label margin = (input left margin) - (label width) */ /* label margin */}
fieldset.webappForm input, fieldset.webappForm select, fieldset.webappForm textarea {margin-left: 220px; /* (label width) + (label margin) */ width: 240px; /* subjective, only applies to non-checkbox or radio inputs */ resize:none; margin-top:5px;}
form span.brFooter                                                                  {/* Always include a span.brFooter at the end of a line of items -- generally immediately following one of an INPUT, SELECT or TEXTAREA.*/	display:block; height:10px;	clear:both;} 


/*=== oneAfterAnother ======================================================================================================================================================*/

fieldset.oneAfterAnother label                                                      {width: auto; float:left; margin:0px; height:24px;}
fieldset.oneAfterAnother label.firstLabel                                           {width:220px;}
fieldset.oneAfterAnother input, fieldset.oneAfterAnother select, fieldset.oneAfterAnother textarea {margin:4px 20px 0px 5px; float:left; resize:none;}
form fieldset.oneAfterAnother span.brFooter                                         {display:none;} 

/*=== Input Elements ======================================================================================================================================================*/

/* default input border */
fieldset.webappForm input.addBorder, select.addBorder, textarea.addBorder, input.multiple {border:solid 1px #999999;}

/* error check input border */
fieldset.webappForm input.addErrorBorder, select.addErrorBorder, textarea.addErrorBorder {border:solid 1px #ec0000;}

fieldset.webappForm input.afterAnother  {float:left; margin:0px 10px 0px 0px;}

/*=== Input units & description ============================================================================================================================================*/

fieldset.webappForm input.selectInput						{border:solid 1px #dfdfdf; width:222px; margin:0px; float:left; margin-right:5px;}

fieldset.webappForm input.multiple							{float:left; margin:0px; margin-right:5px; margin-top:4px;}
fieldset.webappForm input.multipleAddErrorBorder	 	    {float:left; border:solid 1px #ec0000; margin:0px; margin-right:5px;}

fieldset.webappForm input.addErrorBorder					{border:solid 1px #ec0000;}

/* Unit description, for example: kg, hours, day-month-year */
fieldset.webappForm span.unitDescription		            {float:left; margin-top:2px; margin-right:5px;}


/*=== Radio buttons ==========================================================================================================================================================*/

/* Radio name right, radiobutton left */

fieldset.webappForm .checks label, fieldset.webappForm.checks label {
	/*
		Overrides for previously defined stuff and changes.
		Left margin must be 10pixels more than "fieldset.webappForm input, fieldset.webappForm select" etc.
	*/
	float: none; width: auto; clear: none; display: block; text-align: left; padding-top: 0; margin-bottom: 0;padding-left:22px;
}

fieldset.webappForm .checks input, fieldset.webappForm.checks input {
	/*
		Left margin is the same value as "fieldset.webappForm input, fieldset.webappForm select" etc.
	*/
	float: left; text-align: right; width: auto; margin-left:0px; margin-right:10px;}

/*=== IE6 Fixes ============================================================================================================================================================*/
/*
	The following makes Internet Explorer 6.x play nicely. 
	These fix the double float margin bug.
*/
* html fieldset.webappForm .checks input, * html fieldset.webappForm.checks input { 
	margin-left: 105px;  /* (1/2)((label width) + (label margin)) */
}
* html fieldset.webappForm .checks label, * html fieldset.webappForm.checks label { 
	margin-left: 220; /* (label width) + (label margin) */
	height: 1em; 
}

/*=== Form Elements - DO NOT EDIT BELOW THIS LINE =========================================================================================================================*/

fieldset.webappForm label:first-letter {text-transform:uppercase;}
fieldset.webappForm label {
	/* 
		A label must precede the form element in the HTML
		You must keep the top padding for some browsers to keep the label and the form element looking on the same line
	*/
	float: left; padding-top: 0.2em;
}

fieldset.webappForm label.oneUnderAnother {float:none; display:block; padding-bottom:7px;}

/* Readonly fields */
fieldset.webappForm label.solidLabel 
{
	display: block;
	width: 239px;
	padding:0px 0px 0px 1px;
	background-color:#eeeeee;
	height:14px;
	border:solid 1px #eeeeee;
}
fieldset.webappForm label.solidLabelError 
{
	display: block;
	width: 239px;
	padding:0px 0px 0px 1px;
	background-color:#eeeeee;
	height:14px;
	border:solid 1px #EC0000;
}
fieldset.webappForm label.errorLabel 
{
	display: block;
	width: 440px; /* width depends on the width of the fieldset */
	padding:8px 10px 8px 10px;
	color:#000000;
	border:solid 1px #EC0000;
	background-color:#fae9e9;
	font-weight:bold;
	float:none;
}

fieldset.webappForm input, fieldset.webappForm textarea, fieldset.webappForm select {
	/*
		These items must immediately follow the LABEL item associated with it and followed by a BR (see below).
		The following width must be 10pixels wider than the width of the LABEL.
	*/
	display: block;
	margin-bottom: 0;
}

fieldset.webappForm textarea.oneUnderAnother {float:none; margin-left:0px;}
							
fieldset.webappForm input[type="radio"], fieldset.webappForm input[type="checkbox"], fieldset.webappForm input[type="hidden"] {width:auto; margin-top:7px;}
fieldset.webappForm input[type="text"] {width:240px; margin-left:0px;}
fieldset.webappForm input[type="hidden"] {/*Firefox doesn't want to make them actually hidden, so I'll force it.*/	display: none;}

/*=== IE Fixes ====================================================================================================================================================================*/

* html fieldset.webappForm br {/*	For some crazy reason, IE lets me style its BR tag.*/ line-height: 1em;	font-size: 0.5em;}
