/***********************************
 *                                 *
 *              BASE               *
 * Global reset, default styles    *
 * for form elements.              *
 *                                 *
 ***********************************/

/* Global reset */

*
{
  margin:                     0;
  padding:                    0;
}

html, body
{
  width:                      100%;
  height:                     100%;
}

body
{
  margin:                     0px;
  padding:                    0px; 
  background-color:           white;
}

/*
 * This style is used to solve some cross-browser
 * difficulties. In some browsers, forms are always padded
 * with some bottom whitespace, unless the FORM tag is
 * supplied with the style defined below.
 */
form
{
  font-family:                inherit;
  font-size:                  100%;
  padding:                    0px;
  margin:                     0px;
  display:                    inline;
  text-indent:                0px;
  clear:                      none;
}

div.field_title
{
  font-weight:                bold;
  padding-bottom:             1px;
}

div.field_instr
{
  font-style:                 italic;
  font-size:                  90%;
  padding-bottom:             2px;
}

/*
 * Default style definition for <input> tag.
 */
input
{
  font-family:                inherit;
  font-size:                  100%;
  font-weight:                normal;
  font-style:                 normal;  
  clear:                      right;
  width:                      99%;
  margin-bottom:              3px;	
  color:                      #333;
  padding:                    2px;
  border:                     solid 1px #41426D;
  background:                 transparent url("input.gif") repeat-x 0 0;  
}

/*
 * Default style definition for <select> tag.
 */
select
{
  font-family:                inherit;
	font-size:                  100%;
  clear:                      right;
  width:                      99%;
  margin-bottom:              3px;
  border:                     solid 1px #41426D;
  background:                 transparent url("input.gif") repeat-x 0 0;  
}

option
{
  background:                 white;
}

/*
 * Default style definition for <textarea> tag.
 */
textarea
{
  font-family:                inherit;
	font-size:                  100%;
  clear:                      right;
  width:                      100%;
  height:                     400px;
  margin-bottom:              3px;	
  border:                     solid 1px #41426D;
  background:                 transparent url("input.gif") repeat-x 0 0;  
  padding:                    2px;
}

/*
 * 'Validation' is the style used to print error messages
 * when a form was not filled out correctly.
 */
div.validation
{
  color:                      #aa0000;
  font-weight:                bold;
}

div.validation ul
{
  list-style-type:            square;
  list-style-image:           none;
  padding-left:               15px;
  margin-left:                2px;
  margin-top:                 3px;
}

table
{
  font-family:                inherit;
  font-size:                  100%;
}



/***********************************
 *                                 *
 *          DARKENER               *
 * DIV style for placing overlay   *
 * over whole site to allow        *
 * modal window placement.         *
 *                                 *
 ***********************************/


div.framework_darkener
{
  position:                   absolute;
  top:                        0;
  left:                       0;
  z-index:                    1;
  width:                      100%;
  height:                     100%;
  background-color:           black;
  filter:                     alpha(opacity=50);
  opacity:                    0.5;
  margin:                     auto;
}

div.framework_question
{
  position:                   absolute;
  top:                        50%;
  left:                       50%;
  z-index:                    2;
  width:                      400px;
  height:                     100px;
  margin-top:                 -50px;
  margin-left:                -200px;
  background-color:           white;
  border:                     solid 1px black;
}

div#framework_loader
{
  position:              absolute; 
  top:                   10px; 
  right:                 10px; 
  left:                  auto; 
  width:                 77px; 
  height:                15px;
  background:            transparent url("loading.gif") no-repeat 0 0;
}


/***********************************
 *                                 *
 *           TYPOGRAPHY            *
 * Default fonts for HTML          *
 * elements.                       *
 *                                 *
 ***********************************/

body 
{
	font-family:                Trebuchet MS, Georgia, Arial, Helvetica, sans-serif;
	font-size:                  11px;
}

h1
{
  font-size:                  16px;
  font-weight:                bold;
}

h2
{
  font-size:                  15px;
  font-weight:                bold;
}

h3
{
  font-size:                  14px;
  font-weight:                bold;
}

h4
{
  font-size:                  13px;
  font-weight:                bold;
  border-bottom:              solid 1px grey;
  margin-top:                 1px;
  margin-bottom:              2px;
}

h5
{
  font-size:                  12px;
  font-weight:                bold;
}

h6
{
  font-size:                  11px;
  font-weight:                bold;
}

a.text            { color:#000099; text-decoration: none;      }
a.text:link 	    { color:#000099; text-decoration: none;      }
a.text:visited	  { color:#000099; text-decoration: none;      }
a.text:hover      { color:#0000ff; text-decoration: underline; }
a.text:active     { color:#000099; text-decoration: none;      }

a.graphic         { color: black; text-decoration: none; border: none; }
a.graphic:link    { color: black; text-decoration: none; border: none; }
a.graphic:visited { color: black; text-decoration: none; border: none; }
a.graphic:hover   { color: black; text-decoration: none; border: none; }
a.graphic:active  { color: black; text-decoration: none; border: none; }





/***********************************
 *                                 *
 *           TYPOGRAPHY            *
 * Styles for DbTable.             *
 *                                 *
 ***********************************/

 
/* 
 * General DB table style.
 */
.table 
{
  width:                      100%;              /* Fills up width of container. */
  font-size:                  100%;
  color:                      black;
  padding:                    2px 0px 2px 0px;
}

/*
 * Header columns
 */
.rowheader 
{
	font-weight:                bold;              /* Headers are in bold. */
	padding:                    1px;
  border-bottom:              solid #999999 1px;
  text-align:                 left;
}

/* 
 * Row that does not alternate in color.
 */
.row td /* you *must* add td here for the padding to have effect. */
{
  background-color:           white;
  padding:                    1px;
}

/*
 * Row that alternates in color (color 0)
 */
.row0 td /* you *must* add td here for the padding to have effect. */
{
  border-bottom:              solid #999999 1px;  
  background-color:           white;
  padding:                    1px;
}

/*
 * Row that alternates in color (color 1)
 */
.row1 td /* you *must* add td here for the padding to have effect. */
{
  border-bottom:              solid #999999 1px;
  background-color:           #eeeeee;
  padding:                    1px;
}

/*
 * Paging arrows and numbers.
 */
.pager
{
  width:                      100%;              /* To fill up the bottom of the table. */
  color:                      black;             /* Color of the text of the page numbers. */
  margin-top:                 3px;
  margin-bottom:              3px;
  font-weight:                bold;
  font-size:                  9px;
}

.pager a
{
  font-weight:                bold;
  font-size:                  9px;
}

/***********************************
 *                                 *
 *       GRAPHIC BORDER            *
 * Borders for panels.             *
 *                                 *
 ***********************************/

div.graphic_border
{
  width:                      100%;
  border:                     solid 1px #999999;
  background:                 transparent url("corner.jpg") no-repeat 100% 100%;
  padding:                    0;
  position:                   relative;
}

div.graphic_border div.title
{
  width:                      100%;
  position:                   relative;
  text-align:                 left;
  background:                 #e9e9e9 url("fade.jpg") no-repeat 100% 0%;
  color:                      black;
  font-variant:               small-caps;
  font-weight:                bold;
  border-bottom:              solid 1px #999999;
}


/***********************************
 *                                 *
 *       DEBUG                     *
 * Styles for debug output.        *
 *                                 *
 ***********************************/

div#framework_debug_button
{
  position:                   absolute;
  top:                        5px;
  left:                       5px;
  z-index:                    98;
  width:                      auto;
  height:                     auto;
  background-color:           white;
  filter:                     alpha(opacity=80);
  opacity:                    0.8;
  padding:                    5px;
  border:                     solid 1px black;
}

div#framework_debug
{
  position:                   absolute;
  top:                        0;
  left:                       0;
  z-index:                    99;
  width:                      auto;
  height:                     auto;
  background-color:           white;
  filter:                     alpha(opacity=90);
  opacity:                    0.9;
  margin:                     20px;
  border:                     solid 1px black;
}

div#framework_debug table
{
  font-family:                inherit;
	font-size:                  100%;
  border:                     solid 1px #999999;
  width:                      99%;
  color:                      black;
  padding:                    0px;
  margin:                     5px 5px 10px 5px;  
  text-align:                 left;
}

div#framework_debug table th
{
	font-weight:                bold;              
	font-size:                  100%;
  text-align:                 left;
  background-color:           #777777;
  color:                      white;
  padding:                    2px;
}

div#framework_debug table td.row0
{
  text-align:                 left;
  font-size:                  100%;
  border-top:                 solid #999999 1px;  
  background-color:           white;
  padding:                    1px;
}


div#framework_debug table td.row1
{
  text-align:                 left;
  font-size:                  100%;
  border-top:                 solid #999999 1px;
  background-color:           #eeeeee;
  padding:                    1px;
}  
