/*
   Add the following to your CSS file should you wish the cursor to
   "wait" while the script is processing the sort

body.sort-active *
        {
        cursor:wait;
        }
*/

table#tablesort
        {
        width: 100%;
        padding: 0;
        margin: 0 auto 1.5em auto;
        border-left: 1px solid #C1DAD7;
        border-collapse:collapse;
        }
#tablesort .cs1
        {
        width:30em;
        }
#tablesort .cs2
        {
        width:20em;
        }
#tablesort .cs1 td,
#tablesort .cs2 td,
#tablesort #scientificNotation
        {
        text-align:right;
        }
#tablesort caption
        {
        padding: 0 0 5px 0;
        margin:0 auto;
        width:auto;
        font: italic 11px Verdana, Arial, Helvetica, sans-serif;
        text-align: right;
        }
#tablesort th
        {
        font: bold 12px/22px Verdana, Arial, Helvetica, sans-serif;
        color: #4f6b72;
        border-right: 1px solid #C1DAD7;
        border-bottom: 1px solid #C1DAD7;
        border-top: 1px solid #C1DAD7;
        letter-spacing: 1px;
        text-align: left;
        padding: 8px 12px 4px 12px;
        background: #CAE8EA url(../design/tablesort/bg_header.jpg) no-repeat;
        vertical-align:middle;
        }
#tablesort td.total
        {
        border-top: 0;
        border-left: 0;
        border-right: 1px solid #C1DAD7;
        background: none;
        text-align:right;
        font-weight:bold;
        text-transform:uppercase;
        letter-spacing:1px;
        }
#tablesort th.sortable,
#tablesort th.sortable-text,
#tablesort th.sortable-date,
#tablesort th.sortable-keep,
#tablesort th.sortable-date-dmy,
#tablesort th.sortable-numeric,
#tablesort th.sortable-currency,
#tablesort th.sortable-sortByTwelveHourTimestamp,
#tablesort th.sortable-sortIPAddress,
#tablesort th.sortable-sortEnglishLonghandDateFormat,
#tablesort th.sortable-sortScientificNotation,
#tablesort th.sortable-sortImage,
#tablesort th.sortable-sortFileSize,
#tablesort th.sortable-sortAlphaNumeric,
#tablesort th.sortable-sortEnglishDateTime
        {
        cursor:pointer;
        background: #EFEFEF url(../design/tablesort/bg_header_sortable.jpg) no-repeat;
        padding: 8px 12px 4px 16px;
        }
#tablesort th.forwardSort
        {
        background:#EFEFEF url(../design/tablesort/bg_header_down.jpg) no-repeat 0 0;
        }
#tablesort th.reverseSort
        {
        background:#EFEFEF url(../design/tablesort/bg_header_up.jpg) no-repeat 0 0;
        }
table#tablesort thead th.forwardSort a,
table#tablesort thead th.reverseSort a
        {
        color:#000;
        text-decoration:none;
        }
/*
These styles should be added when very long tables are expected
#tablesort th.sort-active
        {
        background:#CAE8EA url(../media/bg_header_sorting.jpg) no-repeat 0 0;
        cursor:wait;
        }
#tablesort th.sort-active a
        {
        color:#a80000 !important;
        cursor:wait;
        }
*/
#tablesort th a
        {
        text-decoration:none;
        color: #4f6b72;
        background:transparent;
        }
#tablesort td a
        {
        background:transparent;
        }
#tablesort td img
        {
        margin:2px auto;
        border:1px solid #ddd;
        }
#tablesort td a:hover
        {
        border-bottom:1px #000066;
        }
#tablesort td
        {
        border-right: 1px solid #C1DAD7;
        border-bottom: 1px solid #C1DAD7;
        padding: 6px 12px 6px 12px;
        }
#tablesort td.lft
        {
        text-align:left;
        }
#tablesort tr.alt
        {
        background: #fff;
        }

/* Poor old Internet Explorer 6 has a bug that means we can't use background images for the table rows
   as it trys to download the image each and every time that it is used (which means a 1000 row table
   will produce 1000 http requests for the image in question) */
#tablesort tr[class="alt"] td
        {
        background: #fff url(../media/td_alt.jpg) no-repeat;
        }
#tablesort td[class~="alt"]
        {
        background: #fff url(../media/col_alt.jpg) no-repeat !important;
        }
/* Poor old Internet Explorer won't see the next two rules either as it doesn't get :first-child */
#tablesort tbody tr.alt td:first-child
        {
        background: #fff url(../media/bullet2.gif) no-repeat;
        font-weight:bold;
        }
#tablesort tbody tr td:first-child
        {
        background: #fff url(../media/bullet1.gif) no-repeat;
        font-weight:bold;
        }
/* Image free rules for Internet Explorer < 7 */
* html #tablesort tr.alt td
        {
        background-color:#fff;
        }
* html #tablesort tr td.alt,
* html #tablesort tr.alt td.alt
        {
        background-color:#fff;
        }

