/* Terence Ordona, portal[AT]imaputz[DOT]com         */
/* http://creativecommons.org/licenses/by-sa/2.0/    */

/* begin some basic styling here                     */

table.sortable a.sortheader {
	display: block;
	font-weight: bold;
	font-size: 12px;
	line-height: 20px;
	text-decoration: none;
	color: #ffffff;
}

table.sortable a.sortheader:hover{
	text-decoration: none;
	color: #CCCCCC;
}

table.sortable span.sortarrow {
	color: white;
	font-weight: bold;
	text-decoration: none;
}

table, td, a {
	color: #000;
	font: normal normal 12px Verdana, Geneva, Arial, Helvetica, sans-serif
}

/* end basic styling                                 */


/* define height and width of scrollable area. Add 16px to width for scrollbar          */
/* allow WinIE to scale 100% width of browser by not defining a width                   */
/* WARNING: applying a background here may cause problems with scrolling in WinIE 5.x   */
div.tableContainer {
	clear: both;
	border: 1px solid #000;
	height: 522px;
	width: 542px;
	overflow: auto;
	float: left;
}

/* clean up for allowing display Opera 5.x/6.x and MacIE 5.x */
html>body div.tableContainer {
	height: auto;
	width: 539px;
	padding: 0;
}

/* Reset overflow value to hidden for all non-IE browsers. */
/* Filter out Opera 5.x/6.x and MacIE 5.x                  */
head:first-child+body div[class].tableContainer {
	height: 522px;
	overflow: auto;
}

/* define width of table. Opera 5.x/6.x and MacIE 5.x */
html>body div.tableContainer table {
	float: none;
	margin: 0;
}

/* set table header to a fixed position. WinIE 6.x only                                       */
/* In WinIE 6.x, any element with a position property set to relative and is a child of       */
/* an element that has an overflow property set, the relative value translates into fixed.    */
/* Ex: parent element DIV with a class of tableContainer has an overflow property set to auto */
thead.fixedHeader tr {
	position: relative;
	/* expression is for WinIE 5.x only. Remove to validate and for pure CSS solution      */
	top: expression(document.getElementById("tableContainer").scrollTop);
}

/* set THEAD element to have block level attributes. All other non-IE browsers            */
/* this enables overflow to work on TBODY element. All other non-IE, non-Mozilla browsers */
/* Filter out Opera 5.x/6.x and MacIE 5.x                                                 */
head:first-child+body thead[class].fixedHeader tr {
	display: block;
}

/* make the TH elements pretty */
thead.fixedHeader th {
	background: #666666;
	border-left: 1px solid #999;
	border-right: 1px solid #333;
	border-top: 1px solid #999;
	border-bottom: 1px solid #333;
	font-weight: bold;
	font-size: 12px;
	line-height: 20px;
	padding: 2px 3px 2px 3px;
	text-align: center;
	text-decoration: none;
	color: #FFFFFF;
	cursor: pointer;
}

thead.fixedHeader th:hover {
	background: #333333;
}

/* define the table content to be scrollable                                              */
/* set TBODY element to have block level attributes. All other non-IE browsers            */
/* this enables overflow to work on TBODY element. All other non-IE, non-Mozilla browsers */
/* induced side effect is that child TDs no longer accept width: auto                     */
/* Filter out Opera 5.x/6.x and MacIE 5.x                                                 */
head:first-child+body tbody[class].scrollContent {
	display: block;
	height: 496px;
	overflow: auto;
}

/* make TD elements pretty. Provide alternating classes for striping the table */
/* http://www.alistapart.com/articles/zebratables/                             */
tbody.scrollContent td, tbody.scrollContent tr.normalRow td {
	background: #FFF;
	border-bottom: none;
	border-left: 1px solid #F6F6F6;
	border-right: 1px solid #CCC;
	border-top: 1px solid #DDD;
	padding: 2px 0px 2px 6px;
}

tbody.scrollContent tr.alternateRow td {
	background: #EEE;
	border-bottom: none;
	border-left: 1px solid #F6F6F6;
	border-right: 1px solid #CCC;
	border-top: 1px solid #DDD;
	padding: 2px 0px 2px 6px;
}

.scrollContent tr {
	height: 14px;
}

/* define width of TH elements: 1st, 2nd, and 3rd respectively.      */
/* All other non-IE browsers. Filter out Opera 5.x/6.x and MacIE 5.x */
/* Add 16px to last TH for scrollbar padding                         */
/* http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-selectors    */
head:first-child+body thead[class].fixedHeader th {
	width: 100px;
}

head:first-child+body thead[class].fixedHeader th + th {
	width: 196px;
}

head:first-child+body thead[class].fixedHeader th + th + th {
	border-right: none;
	width: 231px;
}

/* define width of TH elements: 1st, 2nd, and 3rd respectively.      */
/* All other non-IE browsers. Filter out Opera 5.x/6.x and MacIE 5.x */
/* Add 16px to last TH for scrollbar padding                         */
/* http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-selectors    */
head:first-child+body tbody[class].scrollContent td {
	width: 100px;
	text-align: center;
}

head:first-child+body tbody[class].scrollContent td + td {
	width: 193px;
	text-align: left;
}

head:first-child+body tbody[class].scrollContent td + td + td {
	border-right: none;
	width: 210px;
	text-align: left;
}