/**
 * Form Generation Library Stylesheet
 * 
 * This style sheet includes the basic styles
 * for a form generated with the form generation
 * library for CodeIgniter
 * 
 * @license		MIT License
 * @author		Frank Michel
 * @link		http://frankmichel.com
 * @docu		http://frankmichel.com/formgenlib
 * @email		info@frankmichel.comcc
 * 
 * @file		form.css
 * @version		1.0.4
 * @date		02/28/2011
 * 
 * Copyright (c) 2009 Frank Michel
 */

/* --------------------------------------------------------------------------
	GENERAL FORM */

form.form {
	color: #444;
	font-family: "Lucida Grande", "Lucida Sans Unicode", Lucida, Tahoma, Arial, sans-serif;
	font-size: 14px;
	line-height: 24px;
}

/**
 * this will make sure that floats will be cleared
 * for example if you use <br /> after checkboxes and radio buttons
 */
form.form br {
	clear: left;
}

form.form #errors {
	padding: 10px; 
	margin-bottom: 10px;
	border: 1px solid #c00;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	background-color: #fff;
}

div.alert-errors {
	padding: 10px; 
	margin-bottom: 10px;
	border: 1px solid #c00;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	background-color: #fff;
}

div.alert-success {
	padding: 10px; 
	margin-bottom: 10px;
	border: 1px solid #289f18;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	background-color: #fff;
}

/* --------------------------------------------------------------------------
	FIELDSET */

form.form fieldset {
	margin-bottom: 20px;
	padding: 20px;
	background-color: #f4f4f4;
	border: 1px solid #bbb;	
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
}

form.form legend {
	font-size: 12px;
}

/* --------------------------------------------------------------------------
	LABELS */

form.form label {
	display: inline;
	float: left;
	
	width: 140px;
	width: "150px";
	padding-right: 10px;
	
	vertical-align: middle;
}

label.error {
	color: #c00;
}

/**
 * use this class in the $config['defaults'] for 'label' in the config file
 * if you want the text in the label left justified
 */
form.form label.left {
	text-align: left;
}

/**
 * 'combine' is used when two labels are combined such as in 'City/Zip'
 */
form.form label.left.combine {
	width: auto;
	float: left;
	padding: 0;
}

/**
 * use this class in the $config['defaults'] for 'label' in the config file
 * if you want the text in the label right justified
 */
form.form label.right {
	text-align: right;
}

form.form label.right.combine {
	width: auto;
	float: none;
	text-align: right;	
	padding: 0;
}

/**
 * use this class in the $config['defaults'] for 'label' in the config file
 * if you want to display the label above the field
 */
form.form label.top {
	float: none;
	padding: 0;
	width: auto;
	text-align: left;
}

/**
 * use this class in the $config['defaults'] for 'label' in the config file
 * if you want to display the label after the field
 */
form.form label.after {
	float: none;
	padding-left: 10px;
	vertical-align: top;
	text-align: left;
}

form.form label.after.combine {
	width: auto;
	float: left;
	padding: 0;
}

/**
 * this needs to be assigned to all 'checkbox' and 'radio' type elements
 * (to remove any width and float styles previously set)
 */
form.form label.check {
	float: left;
	width: auto;
}

form.form input.check + label.check  {
	padding-left: 6px;
}

/**
 * this is where you can style your required labels
 * don't forget to include this class name in the config file
 */
form.form label.required {
	font-weight: bold;
}

/* --------------------------------------------------------------------------
	GENERAL INPUTS */

form.form input, form.form select,form.form textarea,form.form button {
	font-size: 12px;
	color: #000;
	border: 1px solid #666;
}

form.forminput.error,form.formselect.error,form.form textarea.error {
	border: 1px solid #c00;
}

form.forminput[disabled],form.form input[readonly] {
	color: #808080;
	background-color: #efefef;
}

form.form input[type="file"] {
	border: none;
}

/* --------------------------------------------------------------------------
	TEXT INPUTS */

form.form input {
	width: 192px;
	width: "200px";
	padding: 4px;
	margin-bottom: 5px;
}

/* --------------------------------------------------------------------------
	CHECKBOX / RADIO INPUTS */

form.form input.check {
	float: left;
	 width: auto;
	padding: 0;
	margin: 0;
	height: 24px;
	border: none;
}

/* --------------------------------------------------------------------------
	UPLOADS */

form.form input.upload {
	border: none;
	background-color: transparent;
}

/* --------------------------------------------------------------------------
	IMAGE INPUTS */

form.form input.image {
	border: 0px;
	background-color: transparent;
}

/* --------------------------------------------------------------------------
	TEXTAREA */

form.form textarea {
	font-family: "Lucida Grande", "Lucida Sans Unicode", Lucida, Tahoma, Arial, sans-serif;	
	padding: 2px;
	width: 296px;
	width: "300px";
	height: 150px;
}

/* --------------------------------------------------------------------------
	SELECT */

form.form select {
	padding: 2px;
	margin-bottom: 4px;
	background-color: #fff;
}

form.form optgroup {
	color: #fff;
	background-color: #999;
}

form.form option {
	color: #000;
	background-color: #fff;
}

/* --------------------------------------------------------------------------
	BUTTONS */

form.form button,form.form .button {
	width: auto;
	height: 24px;
	padding: 1px 5px 1px 5px;
	margin: 0;
	color: #fff;
	background-color: #215586;			
	border: 1px solid #606060;
	vertical-align: middle;		
}

/* --------------------------------------------------------------------------
	OTHER */
	
form.form span.help {
	display: block;
	color: #666;
	font-size: 10px;
	margin-left: 160px;
	line-height: 15px;
	margin-bottom: 5px;
}