/**
 * CSS styles for forms generated by yiic.
 *
 * The styles can be applied to the following form structure:
 *
 * <div class="form">
 *     <div class="row">
 *         <label for="inputid">xyz</label>
 *         <input name="inputid" id="inputid" type="text" />
 *         <p class="hint">hint text</p>
 *     </div>
 *     <div class="row">
 *         <label for="inputid">xyz</label>
 *         <input name="inputid" id="inputid" type="text" />
 *         <p class="hint">hint text</p>
 *     </div>
 *     <div class="row buttons">
 *         <label for="inputid">xyz</label>
 *         <input name="inputid" id="inputid" type="text" />
 *         <p class="hint">hint text</p>
 *     </div>
 * </div>
 *
 * The above code will render the labels and input fields in separate lines.
 * In order to render them in the same line, please use the "wide" form as follows,
 *
 * <div class="wide form">
 *     ......
 * </div>
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @link http://www.yiiframework.com/
 * @copyright Copyright &copy; 2008-2010 Yii Software LLC
 * @license http://www.yiiframework.com/license/

    BW: Added class 'form-label' to allow other labels in the form
        to be treated differently
    BW: Modifed for CBA forms
    BW: Added style for Canary Forms
 */

/* NUI FORM */


.nuiFormOuter {
		
}

div.nuiFormTitle {
    padding: 5px;    
    min-width: 300px;
}

div.nuiFormWrapper {
    padding: 5px;
    margin-bottom: 20px;
    min-width: 300px; 
}

div.nuiForm label, .nuiForm input[type="text"], .nuiForm select {
    margin-right: 20px;
}


div.nuiForm
{
    overflow: auto;
}

div.nuiFormCanary
{
	background-color: #FFFF99;
	background-image: none;
}

div.nuiForm input,
div.nuiForm textarea,
div.nuiForm select
{
	margin: 0.2em 0.2em 0.5em 0em;
}

div.nuiForm select
{
	min-width: 160px;
}

div.nuiForm table.nuiFormGridEntry th {
	text-align: left;
	font-size:  75%;
}

div.nuiForm table.nuiFormGridEntry input,
div.nuiForm table.nuiFormGridEntry textarea,
div.nuiForm table.nuiFormGridEntry select
{
	margin: 0.1em 0.1em 0.2em 0em;
}

/* FIELDSET */

div.nuiForm fieldset
{
	border: 1px solid #444;
	padding: 5px 10px 10px 10px;
	margin: 0 0 10px 0;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background-color: #eef;
}

div.nuiForm fieldset legend {
	/*background-color: #666;*/
	color: white;
    border-radius: 10px;
    padding: 0 10px 0 10px;
    font-size: 75%;
    background-image: none;
}

/*
COLLAPSIBLE FIELDSETS
*/
div.nuiForm fieldset.nuiFormCollapsible legend
{
    padding: 0 20px 0 10px;
	background-image: url('../../images/minus.png');
	background-repeat:no-repeat;
	background-position: bottom 0px right 5px;
}

div.nuiForm fieldset.nuiFormFieldSetHidden
{
	height: 0px;
}

div.nuiForm fieldset.nuiFormFieldSetHidden>div
{
	display: none;
}

div.nuiForm fieldset.nuiFormCollapsible legend:hover
{
	cursor: pointer;
}

div.nuiForm fieldset.nuiFormCollapsible.nuiFormFieldSetHidden legend {	
    background-image: url('../../images/plus.png');
}
/*
END OF COLLAPSIBLE FIELDSETS
*/

div.nuiForm .nuiFormLabel
{
	font-weight: bold;
	font-size: 1.0em;
	display: block;
}

div.nuiForm div.nuiFormHoriz .nuiFormLabel  {
    display: inline;
}

div.nuiForm .nuiFormLabelHelp {
	font-size: .8em;
}

div.nuiForm .noFloat label
{
	display: inline;
	font-weight: normal;
}

div.nuiForm .nuiFormRow
{
	margin: 5px 0;
}

div.nuiForm div.nuiFormHoriz .nuiFormRow {
    display: inline;
}

div.nuiForm .hint
{
	margin: 0;
	padding: 0;
	color: #999;
}

div.nuiForm .note
{
	font-style: italic;
}

div.nuiForm span.required
{
	color: red;
}

div.nuiForm div.error label,
div.nuiForm label.error,
div.nuiForm span.error
{
	color: #C00;
}

div.nuiForm div.error input,
div.nuiForm div.error textarea,
div.nuiForm div.error select,
div.nuiForm input.error,
div.nuiForm textarea.error,
div.nuiForm select.error
{
	background: #FEE;
	border-color: #C00;
}

div.nuiForm div.success input,
div.nuiForm div.success textarea,
div.nuiForm div.success select,
div.nuiForm input.success,
div.nuiForm textarea.success,
div.nuiForm select.success
{
	background: #E6EFC2;
	border-color: #C6D880;
}


div.nuiForm .errorSummary
{
	border: 2px solid #FBC2C4;
	padding: 7px 7px 12px 7px;
	margin: 0 0 20px 0;
	font-size: 1.0em;
	background:#FBE3E4;
	-moz-border-radius: 5px; -webkit-border-radius: 5px;
}

div.nuiForm .errorMessage
{
	color: red;
	font-size: 0.9em;
}

div.nuiForm .errorSummary p
{
	margin: 0;
	padding: 5px;
}

div.nuiForm .errorSummary ul
{
	margin: 0;
	padding: 0 0 0 20px;
}

div.wide.form label
{
	float: left;
	margin-right: 10px;
	position: relative;
	text-align: right;
	width: 100px;
}

div.wide.form .row
{
	clear: left;
}

div.wide.form .buttons, div.wide.form .hint, div.wide.form .errorMessage
{
	clear: left;
	padding-left: 110px;
}
