
/* CSS form builder plugin stylesheets.
  - copy (or link) this file into public/stylesheets/ folder
  - include in your template (<%= stylesheet_link_tag 'css_form' %>)
*/

form.cssform, div.css_show {
  width: 540px;
  margin-left: auto;
  margin-right: auto;
  background-color: #eee;
  padding: 5px;
  border: 1px solid #444;
}


form.cssform .form-field, div.css_show  .form-field {
  display: block;
  font-size: 90%;
  padding: 0px 0px 2px 0px;
  margin: 0px 4px 0px 0px;
}

form.cssform p, div.css_show p {
  font-size: 80%;
  font-style: italic;
}

form.cssform .form-field input,
form.cssform .form-field select,
form.cssform .form-field textarea {
  padding: 2px 4px 2px 4px;
}

form.cssform .form-field input,
form.cssform .form-field select,
form.cssform .form-field textarea {
  border: solid 1px #1F7F00;
}

div.form-field span{
  padding: 0px;
  font-weight: bold;
  background-color: #f7f7f7;
  border: solid 1px #1F7F00;
  width: 120px;
}

div.form-field span.extra{
  padding-left: 4px;
  font-style: italic;
  font-weight: normal;
  font-size: 80%;
  width: auto;
  border: none;
  vertical-align: top;
}


div.css_show .form-field span{
  font-weight: bold;
  background-color: #f7f7f7;
  border: solid 1px #1F7F00;
  padding: 0 4px 0 4px;
  margin: 0;
  width: 150px;
}

div.css_show .form-field span.textarea,
form.cssform .form-field textarea {
  width: 310px;
  height: 60px;
  border: solid 1px #1F7F00;
}

form.cssform .form-field textarea.long {
  width: 310px;
  height:120px;
  border: solid 1px #1F7F00;
}

form.cssform .form-field textarea.extra-long {
  width: 310px;
  height:240px;
  border: solid 1px #1F7F00;
}

div.css_show .form-field span.textarea-double-size,
form.cssform .form-field textarea.double-size {
  width: 620px;
  height: 30px;
  border: solid 1px #1F7F00;
}

div.css_show  .form-field span.checkbox, 
div.css_show  .form-field span.radiobutton{
  width: 40px;
}

div.css_show  .form-field span.datetime_select{
  width: 400px;
}

div.css_show pre{
  background-color: #f7f7f7;
}

form.cssform .form-field input.normal-size,
form.cssform .form-field select.normal-size,
div.css_show .form-field span.normal-size {
  width: 120px;
}

form.cssform .form-field input.larger-size,
form.cssform .form-field select.larger-size,
div.css_show .form-field span.larger-size {
  width: 200px;
}

form.cssform .form-field input.double-size,
form.cssform .form-field select.double-size,
div.css_show .form-field span.double-size {
  width: 310px;
}

form.cssform .form-field input.half-size,
form.cssform .form-field select.half-size,
div.css_show .form-field span.half-size {
  width: 70px;
}

form.cssform .form-field input.q-size,
form.cssform .form-field select.q-size,
div.css_show .form-field span.q-size {
  width: 40px;
}

form.cssform .form-field input.numeric,
div.css_show .form-field span.numeric {
  width: 120px;
  text-align: left;
}

form.cssform .form-field input.numeric-small,
div.css_show .form-field span.numeric-small {
  width: 35px;
  text-align: left;
}

form.cssform fieldset,
div.css_show fieldset {
  margin: 0px 5px 0px 5px;
  padding-top: 2px;
  padding-bottom: 4px;
  padding-left: 10px;
  border: 1px solid #aaa;
} 

form.cssform fieldset.right,
div.css_show fieldset.right {
  float: right;
  width: 320px;
}

form.cssform fieldset.continue,
div.css_show fieldset.continue {
  float: left;
  width: 350px;
}

form.cssform fieldset.buttons {
  float: left;
  width: 350px;
  border:none;
  text-align:center;
}


form.cssform legend,
div.css_show legend {
  font-size: 14pt;
  font-weight: bold;
  font-style: italic;
  margin-left: 5px;
  margin-right: 5px;
  color: #555;
}

form.cssform label  {
    line-height: normal;
    text-align: right;
    margin-right: 4px;
    position: relative;
    display: block;
    float: left;
    font-size: 80%;
    width: 130px;
}

form.cssform label.radio-button {
    display: inline;
    float: none;
    vertical-align: top;
    margin-left: 8px;
  }

form.cssform label.check-box {
    width: 200px;
    vertical-align: top;
}

div.css_show label  {
    line-height: normal;
    text-align: right;
    margin-right: 10px;
    position: relative;
    display: block;
    float: left;
    width: 120px;
}
