.err_field {
  padding: 3px 5px;
  background-color: red;
}

.errors, label.err {
  color: red;
}

.freeform input, .freeform select {
  font-size: 13px;
  padding: 1.6px;
  margin-left: 0px;
}

ul.freeform {
  padding: 0px;
  list-style-type: none;
  margin: 0px;
}

ul.freeform li,
ul.form_section li {
  display: block;
  clear: both;
  margin: 0px;
  padding: 0px;
  /* padding instead of margin to avoid ie float bugs */
  padding-bottom: 15px;
  list-style-type: none;
} 
  
ul.errors {
  display: block;
  list-style-type: disc;
  float: none;
  padding-left: 3em;
}

ul.errors li {
  display: list-item;
  list-style-type: disc;
  padding: 0px;
  margin: 0px;
  float: none;
}

ul.form_section label,
ul.form_section span.field {
  display: block;
  font-size: 12px;
  line-height: 100%;
  margin: 0px;
  padding: 0px;
}

ul.form_section label {
  /* padding instead of margin because ie will add margin below a compound 
     field (ie bug) */
  padding-bottom: 6px; 
  font-weight: bold;
}

ul.form_section label.uneditable {
  font-weight: bold;
}

.freeform  ul.form_section span.subfield {
  padding: 0px;
  float: left;
  display: block;
  margin: 0px;
  padding: 0px;
  margin-right: .5em;
  position: relative;
  vertical-align: top;
}

/* subfield that starts a new row */
.freeform ul.form_section span.newrow {
    clear: both;
}

.freeform  ul.form_section span.subfield label {
  clear: both;
  font-weight: normal;
  font-size: 11px;
  line-height: 27px;
  position: absolute;
  bottom: 0px;
  margin: 0px;
  padding: 0px;
  margin-left: 2px;
  margin-bottom: 1em; /* override this for ie */
  /* line height and bottom margin = 1.75 label ems, so .25em space above */
  color: #666;
}

.subfield input, 
.subfield select {
  margin: 0px;
  margin-bottom: 2.5em;
  padding: 1.6px;
}

/* horizontal styles */
ul.form_section {
  clear: both;
  padding: 0px;
  margin: 0px;
}

.form_item ul.horiz li {
  float: left;
  margin-right: 1em;
  clear: none;
  display: inline;
}

.form_item ul.horiz li.item_buttons {
  margin-top: 1.5em;
}

.freeform div.horiz_clear {
  clear: both;
  padding: 0px;
  margin: 0px;
}

/* list of associations */
ul.assoc_list {
  padding: 0px;
}

ul.assoc_list li {
  margin-bottom: .5em;
}

ul.assoc_list li label{
  display: inline;
}

/* tabbed form */
.freeform .tab_form_tabs {
    position: relative;
    margin: 0px;
    padding: 0px;
    /* turn on has_layout for this div in ie */
    zoom: 1;
}

.freeform span.tab_form_tab {
    display: block;
    float: left;
    
    position: relative;
    bottom: -1px;
    
    padding: .3em 1em;
    line-height: 1em;
    border: 1px solid #888;
    border-bottom: none;
    margin-right: .5em;
    background-color: #e9e9e9;
}

.freeform span.selected {
    background-color: white;
    bottom: -1px;
}

.freeform span.tab_form_tab a {
    text-decoration: none;
    color: black;    
}


.freeform span.selected a,
.freeform span.selected input {
    margin-bottom: 1px;
}

.freeform span.selected a {
    display: block;
}

.freeform .tab_form_content {
    margin: 0px;
    padding: 1em;
    border: 1px solid #888;
    clear: both;
}
