/**
 * 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 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 0;
  border: 1px solid #126394;
  border-radius: 4px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  color: #000000;
  background: #ffffff;
}
div.form input:focus,
div.form textarea:focus,
div.form select:focus {
    border-color: rgb(74, 135, 175);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0) inset, 0 1px 1px 1px rgb(74, 135, 175), 0 -1px 1px 1px rgb(100, 194, 255);
}
div.form input[type='text'],
div.form select {
  float: left;
  width: 58%;
}

div.form input[type='submit'],div.form input[type='button'],a.button {
  padding-bottom: 2px;
  border: 1px solid #065080;
  margin-bottom: 3px;
  text-align: center;
  border-radius: 4px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  background: #E0EEEE;
  color: #065080;
  font-weight: bold;
}
a.button{
    text-decoration: none;
    padding: 2px 7px;
}

div.form input[type='submit']:hover,
div.form input[type='button']:hover,
a.button:hover {
    color: #0099FF;
    cursor: pointer;
    border: 1px solid #0099FF;
}

div.form fieldset {
    border: 1px solid #DDD;
    padding: 10px;
    margin: 0 0 10px 0;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    font-weight: bold;
}

div.form fieldset.level1 {
    border-color: #065080;
}

div.form fieldset.level1>legend {
    font-size: 12pt;
    color: #065080;
    padding: 0 6px;
}

div.form fieldset.level2 {
    min-width:95%;
    border-color: #30A1E6;
}

div.form fieldset.level2  >  fieldset > legend{
  font-size: 10pt;
}
div.form fieldset.level2 > legend {
    font-size: 10pt;
    color: #30A1E6;
    padding: 0 6px;
}

div.form select.label {
    border: none;
    background: none;
}
div.form select.label,
div.form label {
    font-weight: normal;
    font-size: 0.9em;
    display: block;
    float: left;
    width: 40%;
    padding-top: 2px;
    line-height: 15px;
}
div.form .row,
div.form .row2,
div.form .row2bastard,
div.form .row2dbl,
div.form .row2half{
    float: left;
    margin-right: 0.5em;
    width: 48%;
    margin-bottom: 0;
    min-height: 3em;
}

div.form .row2 {
    width: 32%;
}
div.form .row2bastard {
    width: 48.67%;
}
div.form .row2bastard label {
    width: 26.2%;
}
div.form .row2bastard input[type="text"],
div.form .row2double select {
    width: 71.8%;
}
div.form .row2dbl input[type="text"],
div.form .row2dbl select{
    width: 49%;
}

div.form .row2half {
    width: 21.3%;
}
div.form .row2half label {
    width: 60%;
}
div.form .row2half input[type="text"],
div.form .row2half select {
    width: 35%;
}
@media(max-width: 1280px){
  div.form .row2 {
    width: 49%;
  }
  div.form .row2bastard {
    width: 75%;
  }
  div.form .row2half {
    width: 32.5%;
  }
}
@media(min-width: 1600px){
  div.form .row2 {
    width: 24%;
  }
  div.form .row2bastard {
    width: 36%;
  }
  div.form .row2half {
    width: 16%;
  }
}

.row2halfseparator {
    float: left;
    width: 5.1%;
    margin-bottom: 10px;
}

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

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

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 span.error, div.form div.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;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
}

div.form .errorMessage {
    color: red;
    font-size: 0.8em;
    font-weight: normal;
    float: left;
    /*width: 40%;*/
}

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;
}
