/**
 * 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/
 */

div.form
{
}

div.form input,
div.form textarea,
div.form select
{
    margin: 0.2em 0 0.5em 0px;
    border: 1px solid #0088DD;
    background: #d3e5f0;
    padding: 2px;    
}

div.form submit,
div.form input[type="button"],
div.form input[type="submit"],
div.form button
{
    margin: 0.2em 0 0.5em 0;
    border: 1px solid #000000;
    background: #002C45;
    padding: 5px;
    color: #6EC7FF;
}

div.form submit:hover,
div.form input[type="button"]:hover,
div.form input[type="submit"]:hover,
div.form button:hover
{
    cursor: pointer;
    cursor: hand;
    background: #005D96;
}

div.form fieldset
{
    border: 2px solid #666666;
    padding: 10px;
    margin: 0 0 10px 0;
    -moz-border-radius:7px;
}

div.form fieldset legend
{
    padding: 0px 5px 0px 5px;
    font-weight: bold;
    font-size: 16px;
}

div.form label
{
    font-weight: bold;
    font-size: 0.9em;
    display: block;
    /*margin: 0px 3px 0;*/
    margin: 0;
}

div.form .row
{
    margin: 5px 0;
}

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

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

div.form .dropdown{
    width: 100%;
}

div.form div.message{
    color:red;
    text-align:center;
    font-weight:bold;
}

div.form div.loading{
    background:url('../images/loading.gif') no-repeat;
}

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

div.form div.error label:first-child,
div.form label.error,
div.form span.error
{
    color: #C00;
}

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

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

div.form div.success label
{
    color: inherit;
}

div.form .errorSummary
{
    border: 2px solid #C00;
    padding: 7px 7px 12px 7px;
    margin: 0 0 20px 0;
    background: #FEE;
    font-size: 0.9em;
}

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

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

div.form .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;
}

table.form_table
{
    border-collapse:collapse;
    width: 100%;
    border: 0px;
    padding: 0px;
    margin: 0px;
}

table.form_table td
{
    border: 1px solid #888;
    vertical-align: top;
    padding: 10px;
}

table.form_table input, table.form_table textarea
{
    margin-left: 2px;
    border: 1px solid #0088DD;
    padding: 2px;
    font-size: 14px;
    margin: 0;
    margin-top: 1px;
    margin-left: 1px;
    background: #d3e5f0;
}

table.form_table input[type="radio"] 
{ 
    float: left;
    margin-right: 5px;
} 

table.form_table td.button
{
    border: 0px;
    text-align: right;
    padding: 10px 10px 0px 0;
}

table.search_table
{
    border-collapse:collapse;
    width: 100%;
    border: 0px;
}

table.search_table td
{
    padding: 2px;
    margin: 0;
}

table.search_table td.align_right
{
    text-align: right;
}

table.search_table td.button
{
    border: 0px;
    text-align: right;
    padding: 10px 15px 10px 0;
}


table.search_table input, table.search_table textarea, table.search_table select
{
    margin-left: 2px;
    border: 1px solid #0088DD;
    padding: 2px;
    font-size: 14px;
    margin: 0;
    margin-top: 1px;
    margin-left: 1px;
    background: #d3e5f0;
}

table.clean_table
{
    border-collapse:collapse;
    width: 100%;
    border: 0px #000 solid;
}

table.clean_table td
{
    border: 0px solid #000000;
    vertical-align: middle;
    padding: 0;
    margin: 0;
}

table.clean_table td.align_right
{
    vertical-align: middle;
    padding: 0;
    margin: 0;
    text-align: right;
}

table.clean_table td.button
{
    border: 0px;
    text-align: right;
    padding: 10px 10px 0px 0;
}

table.empty_table
{
    border-collapse:collapse;
    width: 100%;
    border: 0px;
    padding: 0px;
    margin: 0px;
}

table.empty_table td
{
    border: 0px #000 solid;
    padding: 0px;
    margin: 0px;
}

table.empty_table td.align_right
{
    text-align: right;
}


td.empty_td
{
    padding: 0px;
    margin: 0px;
    height: 100%;
}

table.clean_table_line
{
    border-collapse:collapse;
    width: 100%;
    border: 1px #000 solid;
}

table.clean_table_line td
{
    border: 0px solid #000000;
    vertical-align: middle;
    padding: 0;
    margin: 0;
}

table.clean_table_line td.align_right
{
    vertical-align: middle;
    padding: 0;
    margin: 0;
    text-align: right;
}

table.clean_table_line td.button
{
    border: 0px;
    text-align: right;
    padding: 10px 10px 0px 0;
}

table.empty_table_line
{
    border-collapse:collapse;
    width: 100%;
    border: 1px #000 solid;
    padding: 0px;
    margin: 0px;
}

table.empty_table_line td
{
    border: 0px #000 solid;
    padding: 0px;
    margin: 0px;
}

table.empty_table_line td.align_right
{
    text-align: right;
}


table.batch_table
{
    border-collapse:collapse;
    vertical-align: middle;
    padding: 0;
    margin: 0;
}
table.batch_table td
{
    border:1px solid #FFF;
    vertical-align: middle;
    padding: 1px;
    margin: 0;
}

table.batch_table th
{
    border:1px solid #FFF;
    background: #5ea2ca;
}
table.batch_table tr:nth-child(odd)
{
    background: #e5f1f4;
}
table.batch_table tr:nth-child(even)
{
    background: #d8f5d5;
}
table.batch_table input
{
    margin-left: 2px;
    border: 1px solid #0088DD;
    padding: 2px;
    font-size: 14px;
    margin: 0;
    margin-top: 1px;
    margin-left: 1px;
    background: #d3e5f0;
}

input
{
    border: 1px solid #0088DD;
    background: #d3e5f0;
}

textarea
{
    border: 1px solid #0088DD;
    background: #d3e5f0;
}

select
{
    border: 1px solid #0088DD;
    background: #d3e5f0;
}

.floatleft 
{
    float: left;
}

div.form .btndis
{
    color: #435a68!important;
}

div.form .btndis:hover
{
    cursor: default!important;
    background: #002C45!important;
    
}

div.form .empty_input
{
    /*margin: 0.2em 0 0.5em 1px;*/
    margin: 0;
    border: 1px solid #0088DD;
    background: #d3e5f0;
    padding: 1px;    
}

div.form .empty_button
{
    /*margin: 0.2em 0 0.5em 0;*/
    margin: 0;
    border: 1px solid #000000;
    background: #002C45;
    padding: 0px;
    height: 15px;
    color: #6EC7FF;
}

div.form .empty_cbutton
{
    /*margin: 0.2em 0 0.5em 0;*/
    margin: 0;
    border: 1px solid #000000;
    background: #002C45;
    padding: 0px;
    height: 22px;
    color: #6EC7FF;
    vertical-align: top;
}

div.form .empty_fieldset
{
    border: 2px solid #666666;
    /*padding: 10px;
    margin: 0 0 10px 0;*/
    padding: 0;
    margin: 0;
    -moz-border-radius:7px;
}

div.empty_div
{
    padding: 0;
    margin: 0;
}

.dialog_textarea 
{
    width: 560px;
    height: 320px;
    border: 1px solid #0088DD;
    padding: 4px;
    font-size: 14px;
    background: #d3e5f0;
}