/*
Attempt to make standard form style for all projects, then have customised bits per project/page
020109

*/


form {  /* set width in form, not fieldset (still takes up more room w/ fieldset width */
  ffont:100% verdana,arial,sans-serif;
  margin: 0;
  padding: 0;
  mmin-width: 600px;
  mmax-width: 900px;
  mwidth: 800px;
  bbackground:pink;
}

form fieldset {
  /* clear: both; note that this clear causes inputs to break to left in ie5.x mac, commented out */
  border-color: #000;
  border-width: 1px;
  border-style: solid;
  padding: 10px;        /* padding in fieldset support spotty in IE */
  padding:0;
  /*set these two to turn off fs border and realign left margin*/
  margin: 0;
  border-style: none;
}

form fieldset legend {
	font-size:1.1em; /* bump up legend font size, not too large or it'll overwrite border on left */
                       /* be careful with padding, it'll shift the nice offset on top of border  */
}

form label {
	display: block;  /* block float the labels to left column, set a width */
	float: left;
	width: 150px;
	padding: 0;
	margin: 5px 0 0; /* set top margin same as form input - textarea etc. elements */
	text-align: right;
    bbackground:red;
}

form fieldset label:first-letter { /* use first-letter pseudo-class to underline accesskey, note that */
	text-decoration:underline;    /* Firefox 1.07 WIN and Explorer 5.2 Mac don't support first-letter */
                                    /* pseudo-class on legend elements, but do support it on label elements */
                                    /* we instead underline first letter on each label element and accesskey */
                                    /* each input. doing only legends would  lessens cognitive load */
                                   /* opera breaks after first letter underlined legends but not labels */
}

form input, form textarea, form select{
	/* display: inline; inline display must not be set or will hide submit buttons in IE 5x mac */
    /*took width auto out or IE shrinks button width*/
    wwidth:auto;      /* set width of form elements to auto-size, otherwise watch for wrap on resize */
	margin:5px 0 0 10px; /* set margin on left of form elements rather than right of
                              label aligns textarea better in IE */
}




/*inline allows me to wrap lumps so that labels are inline with previous input*/
form .inline{
  bbackground:blue;
  margin:0;
}

form .inline label{
  display:inline;
  float:none;
  background:none;
  pmargin:0;
  ppadding:0;
}

form .inline input{
  margin:0;
}

form .inline p{
  bbackground:yellow;
  display:inline;
}


form .indent{
  /*indent should be same as label width*/
  margin-left:160px;
  margin-top:10px;
}

form p.tip{
  display:inline;
  text-decoration:none;
  border:none;/*This is set elsewhere for rollover prompt - BEWARE*/
  ppadding-left:0;
  pmargin:0;
  ffont-size:90%;
}


form input#reset {
	margin-left:0px; /* set margin-left back to zero on reset button (set above) */
}

form textarea { overflow: auto; }

form small {
	display: block;
	margin: 0 0 5px 160px; /* instructions/comments left margin set to align w/ right column inputs */
	padding: 1px 3px;
	font-size: 88%;
}

form .required{font-weight:bold;} /* uses class instead of div, more efficient */

form br {
	clear:left; /* setting clear on inputs didn't work consistently, so brs added for degrade */
}


form .indent .button{
  margin-left:0;
}


/*need these to straighten the top login bar if the form.css is used*/
form#loginform input{
  margin-left:0;
}

form#loginform label{
  width:auto;
}


/* Styling for the autocomplete list on add.php */
ul.ui-autocomplete { background: #efefef; width: 250px; opacity: 0.95; padding: 0;
border-left:1px solid #A0A0A0;
border-right:1px solid #A0A0A0;
border-bottom:1px solid #A0A0A0;
-moz-box-shadow: 3px 3px 4px #A0A0A0;
-webkit-box-shadow: 3px 3px 4px #A0A0A0;
box-shadow: 3px 3px 4px #A0A0A0;
}
ul.ui-autocomplete li { color: #e4c205; list-style-type: none; height: 20px; padding-left: 10px;}
ul.ui-autocomplete li:hover { background: #dfdfdf }
ul.ui-autocomplete li a {color: #000; display:block }
ul.ui-autocomplete li a:hover { cursor: pointer}









