/* Form Related Rules */
/* ================== */

.widget {
  padding:7px 0;
  border-top:3px solid #FFD37A;  
  border-bottom:1px solid #CCC;  
}
form {
  padding:10px;
  height:expression('1%'); /* IE Pick-a-boo bug fix */
  color:black;
}
fieldset {
  position:expression('relative'); /* Fixes IE problem with fieldset+legend boundaries */
  padding:15px 10px;
  background-color:#FAFAFA;
  border-left:1px solid #bbb;
  border-right:1px solid #bbb;  
  margin:20px 0;
  overflow:visible;
}
fieldset fieldset  {
  border:1px solid #ccc;
  background-color:#FFF;
}
legend {
  position:expression('absolute'); 
  padding:2px 5px;
  top:expression('-9px'); /* Fixes IE problem with fieldset+legend boundaries */
  padding:2px 5px;
  color:#E5B84C;
  font-weight:bold;
}
fieldset fieldset legend {
  font-size:90%;
}
label, .label {  
  color:black;
  font-size:small;
  margin:0;
}
/* Ties together a label and its checkbox or radio */
.formBox .oneChoice {
  white-space:nowrap; 
}

/* .label is typically used on a span or p tag to label a radio or checkbox group */
.formBox label.preField {
  display:-moz-inline-box;
  display:inline-block;  
  width:expression('7em'); /* Min-width for IE6 */
  min-width:20em;
  text-align:right;
}
.label { display:block; width:auto; }
.formBox fieldset fieldset label.preField {
  min-width:18em;
}
label.postField  {
  margin-left:4px;
  margin-right:4px;
}
  
/* Inputs ======================================================================== */

.formBox textarea {
  padding:0;
  vertical-align:top;
  margin:2px 2px 1px 0;
}
.formBox input {
  font-size:100%; 
  margin:0 2px 0 0;
}
.formBox select {
  margin:2px 2px 1px 0;
  padding:0;
}
.inlineSection .oneField select {
  margin:0 2px 1px 0 !important;
}
.gridSection select  {
  margin:0 !important;
}


/* wForms Related Rules */
/* ==================== */
/* Field w/ a validation error */
form .errFld {
  padding:1px;
  border:1px solid #F00;
}
.errFld {
  border:1px solid #F00;
}
.errMsg {  
  color:#CC3333 !important;
  display:block;
}
/* Field-Hint with focus */
form .field-hint {
  position:absolute;
  color:#000;
  z-index:50;
  font-size:85%;
  min-height:2em;  
  background-image:url(/pub/Applications/LocalApps/WformsPackage/hint_topborder_grey.gif);
  width:300px;
  background-repeat:no-repeat;
  background-position:left top;  
  padding:14px 0 0 0;
}
form .field-hint div {
  background-color:#fffbb8;
  border-left:1px solid #ffc20d;
  border-right:1px solid #ffc20d;
  border-bottom:1px solid #ffc20d;
  padding:4px
}
/* Field-Hint without focus */
form .field-hint-inactive {
  position: absolute;
  visibility:hidden;
  float:right;
  font-size:85%;
  min-height:2em;
  padding:0 0 0 20px ;
}
/* Repeat Behavior  */
.repeat {
  border:1px solid #ddd;
  background-color:#FFFFFF;
  margin:3px 0;
  padding-right:6px;
}
.removeable {
  border:1px solid #ddd;
  background-color:#F3F3F3;
  padding-right:6px;  
}
/* Links generated by the Repeat Behavior */
.duplicateLink {
  margin-top:10px;
  font-weight:bold;
  text-align:right;
  display:block;
}
.removeLink {
  margin-top:10px;
  text-align:right;
  display:block;
  color:#CC3300;
}
/* Hide link for more than limit repeats */
.duplicateLinkHidden {
  display:none;
}
/* Switch Behavior Classes */
.onstate-a,  .onstate-b,  .onstate-c,  .onstate-d,
.onstate-e,  .onstate-f,  .onstate-g,  .onstate-h, 
.onstate-i,  .onstate-j,  .onstate-k,  .onstate-l, 
.onstate-m,  .onstate-n,  .onstate-o,  .onstate-p, 
.onstate-q,  .onstate-r,  .onstate-s,  .onstate-t,
.onstate-u,  .onstate-v,  .onstate-w,  .onstate-x,  
.onstate-y,  .onstate-z,  .onstate-aa, .onstate-ab,
.onstate-ac, .onstate-ad, .onstate-ae, .onstate-af,
.onstate-ag, .onstate-ah, .onstate-ai, .onstate-aj,
.onstate-ak, .onstate-al, .onstate-am, .onstate-an {
  display:block;
}

/* IE6 BUG FIXES ==================================================================== */
form {
  height:expression('1%'); /* IE Pick-a-boo bug fix */
}
form fieldset {
  position:expression('relative'); /* Fixes IE problem with fieldset+legend boundaries */
  margin-top:expression('1em');
  padding-top:expression('1.5em');
  overflow:expression('visible');
}
form fieldset legend {
  position:expression('absolute'); 
  top:expression('-.5em'); /* Fixes IE problem with fieldset+legend boundaries */
  left:expression('.5em');
}
form .inlineSection .oneField {
  display:expression('inline-block');    
}
label, form .label {  
  font-size:expression('90%');
}
label.preField, form .inlineSection .oneField .inlineLabel {
  min-width:expression('20em');
}