/*
 *
 * This makes a table with static header
 * optional sortable
 *
*/

td {
  border-bottom: 1px solid #ccc;
  padding: 5px;
  text-align: left; /* IE */
}
td + td {
  border-left: 1px solid #ccc;
}
th {
  padding: 0 5px;
  text-align: left; /* IE */
}
.header-background {
  border-bottom: 1px solid black;
}

/* above this is decorative, not part of the test */

.fixed-table-container {
  width: 50%;
  height: 200px;
  border: 1px solid black;
  margin: 10px auto;
  background-color: white;
  /* above is decorative or flexible */
  position: relative; /* could be absolute or relative */
  padding-top: 30px; /* height of header */
}

.fixed-table-container-inner {
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
}

.header-background {
  background-color: #D5ECFF;
  height: 30px; /* height of header */
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

table {
  background-color: white;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.th-inner {
  position: absolute;
  top: 0;
  line-height: 30px; /* height of header */
  text-align: left;
  border-left: 1px solid black;
  padding-left: 5px;
  margin-left: -5px;
}
.first .th-inner {
    border-left: none;
    padding-left: 6px;
}

/* for hidden header hack to calculate widths of dynamic content */

.hidden-head {
  min-width: 530px; /* enough width to show all header text, or bad things happen */
}

.hidden-header .th-inner {
  position: static;
  overflow-y: hidden;
  height: 0;
  white-space: nowrap;
  padding-right: 5px;
}

/* for complex headers */

.complex.fixed-table-container {
  padding-top: 60px; /* height of header */
  overflow-x: hidden; /* for border */
}

.complex .header-background {
  height: 60px;
}

.complex-top .th-inner {
  border-bottom: 1px solid black;
  width: 100%
}

.complex-bottom .th-inner {
  top: 30px;
  width: 100%
}

.complex-top .third .th-inner { /* double row cell */
  height: 60px;
  border-bottom: none;
  background-color: #D5ECFF;
}

/* for tableSorter headers */

.fixed-table-container.sort-decoration { 
  overflow-x: hidden;
  min-width: 530px; /* enough width to show arrows */
}
.sort-decoration .th-inner {
  width: 100%;
}
.header .th-inner {
  background-color: #D5ECFF;
 }
.headerSortUp .th-inner, .headerSortDown .th-inner {
  background-color: #EFEFFF;
}
span.sortArrow {
  background: url(/scripts/jquery/images/bg.gif) 0 4px no-repeat transparent;
  padding: 1px 10px;
  line-height: 30px;
}
.headerSortUp span.sortArrow {
  background: url(/scripts/jquery/images/asc.gif) 0 7px no-repeat transparent;
}
.headerSortDown span.sortArrow {
  background: url(/scripts/jquery/images/desc.gif) 0 7px no-repeat transparent;
}
