{!-- css --}
/*
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;
}


body {
    padding: 0;
    border: 0;
    margin: 0;
    text-align: center;
    font-size: 12px;
    font-family: verdana,arial,sans-serif;
    color: #545454;
    min-width: 800px;
}
h2 span {
    font-variant: small-caps;
}
p a {
    font-weight: normal;
    outline: none;
}
p a:link,
p a:visited {
    color: #333;
    text-decoration: underline;
}
p a:hover {
    color: #fff;
    text-decoration: none;
    background: #000;
}
p a:active {
    color: #000;
    text-decoration: underline;
}
code {
    font-family: 'andale mono','lucida console','courier new',monospace;
    font-size: 1em;
}
p {
    line-height: 1.6em;
    margin: 0 0 1em 0;
}
h1 {
    font-weight: lighter;
    font-family: georgia, times new roman, times, georgia, palatino, serif;
    text-align: center;
    margin-top: 0.6em;
    color: #000;
    font-size: 2em;
}
h2 {
    font-weight: lighter;
    font-family: verdana,arial,sans-serif;
    text-align: center;
    margin-top: 1em;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2em;
}
h2 span {
    font-variant: small-caps;
    text-transform: none;
}

*/

table {
    width: 100%;
    padding: 0;
    margin: 0.6em auto 0.6em auto;
    border-left: 1px solid #DFD3FF  ;
    border-collapse: collapse;
}

/* width cleanup */
.c01 {
    width: 160px;
}

.c02 {
    width: 400px;
}

/* not sure what these do */
.cs1 {
    width: 30em;
}
.cs2 {
    width: 20em;
}
.cs1 td,
.cs2 td,
#scientificNotation {
    text-align: right;
}

caption {
    padding: 0 0 5px 0;
    margin: 0 auto;
    width: auto;
/*    font: italic 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;*/
    text-align: right;
}
th {
/*    font: bold 10px/22px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;*/
    color: #130C2A;
    border-right: 1px solid #DFD3FF;
    border-bottom: 1px solid #DFD3FF;
    border-top: 1px solid #DFD3FF;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
    padding: 8px 12px 4px 12px;
    background: #B4AAD4 url(css/tablesort/bg_header.jpg) no-repeat;
    vertical-align: middle;
}
td.total {
    border-top: 0;
    border-left: 0;
    border-right: 1px solid #DFD3FF;
    background: none;
    text-align: right;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
th.sortable,
th.sortable-text,
th.sortable-date,
th.sortable-keep,
th.sortable-date-dmy,
th.sortable-numeric,
th.sortable-currency,
th.sortable-sortByTwelveHourTimestamp,
th.sortable-sortIPAddress,
th.sortable-sortEnglishLonghandDateFormat,
th.sortable-sortScientificNotation,
th.sortable-sortImage,
th.sortable-sortFileSize,
th.sortable-sortAlphaNumeric,
th.sortable-sortEnglishDateTime {
    cursor: pointer;
    background: #B4AAD4 url(css/tablesort/bg_header_sortable.jpg) no-repeat;
    padding: 8px 12px 4px 16px;
}
th.forwardSort {
    background: #B4AAD4 url(css/tablesort/bg_header_down.jpg) no-repeat 0 0;
}
th.reverseSort {
    background: #B4AAD4 url(css/tablesort/bg_header_up.jpg) no-repeat 0 0;
}
table thead th.forwardSort a,
table thead th.reverseSort a {
    color: #000;
    text-decoration: none;
}
/*
These styles should be added when very long tables are expected
th.sort-active {
    background: #CAE8EA url(css/tablesort/bg_header_sorting.jpg) no-repeat 0 0;
    cursor: wait;
}
th.sort-active a {
    color: #a80000 !important;
    cursor: wait;
}
*/
th a {
    text-decoration: none;
    color: #21193A;
    background: transparent;
}
td a {
    text-decoration: none;
    color: #239;
    background: transparent;
}
td img {
    margin: 0 auto;
    border: 3px solid #ddd;
}
td a:hover {
    color: #DDBA17;
    /*border-bottom: 1px dotted #DFD3FF;*/
    background: transparent;
}
td {
    font: normal 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
    border-right: 1px solid #DFD3FF;
    border-bottom: 1px solid #DFD3FF;
    padding: 6px 12px 6px 12px;
    color: #21193A;
}
td.lft {
    text-align: left;
}
tr.alt {
    background: #F1ECFF;
    color: #797268;
}

/* 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) */
    tr[class="alt"] td {
        background: #F1ECFF url(css/tablesort/td_alt.jpg) no-repeat;
    }
    td[class~="alt"] {
        background: #F1ECFF url(css/tablesort/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 */
    tbody tr.alt td:first-child {
        /*background: #F5FAFA url(css/tablesort/bullet2.gif) no-repeat;*/
        font-weight: bold;
    }
    tbody tr td:first-child {
        /*background: #fff url(css/tablesort/bullet1.gif) no-repeat;*/
        font-weight: bold;
    }
    /* Image free rules for Internet Explorer < 7 */
    * html tr.alt td {
        background-color: #F1ECFF;
    }
    * html tr td.alt,
    * html tr.alt td.alt {
        background-color: #F1ECFF;
    }
    /* =================== FILTER */
    #fdtl, #fdtr, #fdbl, #fdbr {
        height: 7px;
        width: 7px;
        position: absolute;
        line-height: 1px;
        overflow: hidden;
        z-index: 10;
    }
    #fdtl {
        top: 8px;
        left: 0;
        background: transparent url(css/tablesort/fdtl.png) no-repeat 0 0;
    }
    #fdtr {
        top: 8px;
        right: 0;
        background: transparent url(css/tablesort/fdtr.png) no-repeat 0 0;
    }
    #fdbl {
        bottom: 0;
        left: 0;
        background: transparent url(css/tablesort/fdbl.png) no-repeat 0 0;
    }
    #fdbr {
        bottom: 0;
        right: 0;
        background: transparent url(css/tablesort/fdbr.png) no-repeat 0 0;
    }
    #fdlb, #fdrb {
        width: 7px;
        top: 15px;
        bottom: 7px;
        line-height: 1px;
        overflow: hidden;
        position: absolute;
        z-index: 5;
    }
    #fdbb, #fdtb {
        height: 7px;
        line-height: 1px;
        overflow: hidden;
        margin: 0;
        left: 7px;
        right: 7px;
        width: auto;
        display: block;
        position: absolute;
        z-index: 5;
    }
    #fdlb {
        left: 0;
        background: transparent url(css/tablesort/fdlb.png) repeat-y 0 0;
    }
    #fdrb {
        right: 0;
        background: transparent url(css/tablesort/fdrb.png) repeat-y 0 0;
    }
    #fdtb {
        top: 8px;
        background: transparent url(css/tablesort/fdtb.png) repeat-x 0 0;
    }
    #fdbb {
        bottom: 0;
        background: transparent url(css/tablesort/fdbb.png) repeat-x 0 0;
    }
    #fddongle {
        position: absolute;
        top: 0;
        height: 11px;
        width: 14px;
        background: transparent url(css/tablesort/fddongle.png) no-repeat 50% 0;
        z-index: 15;
    }
    #fdTablefilterWrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 20em;
        line-height: 1px;
    }
    #fdTablefilterWrapper form {
        margin: 15px 7px 0 7px;
        display: block;
        background: #000;
        padding: 0 0 7px 0;
    }
    #fdTablefilterWrapper form p {
        margin: 0;
        padding: 0;
        width: auto;
        background: #000;
    }
    #fdFilterInp,
    #fdFilterSel {
        display: block;
        width: 96%;
        margin: 0 auto;
        background: #000;
        border: 1px solid #DFD3FF;
        color: #efefef;
        padding: 0;
        text-align: center;
    }
    /* Safari */
    #fdFilterInp:focus,
    #fdFilterSel:focus {
        outline-width: 0;
    }
    #fdFilterInp {
        -webkit-border-radius: 4px;
    }
    /* End Safari */
    #fdFilterSel {
        text-align: left;
        width: 100%;
    }
    #fdTablefilterWrapper option {
        background: #111;
    }
    #fdTablefilterWrapper option.alternative {
        background: #222;
    }
    tr.invisibleRow {
        display: none;
        visibility: hidden;
    }
    th a.fdFilterUsed img {
        background: transparent url(css/tablesort/filterButtons.gif) no-repeat 0 0 !important;
    }
    a.fdFilterTrigger {
        display: inline;
        vertical-align: middle;
        line-height: 22px;
        margin-right: 4px;
    }
    a.fdFilterTrigger:hover img,
    a.fdFilterTrigger:focus img {
        background: transparent url(css/tablesort/filterButtons.gif) no-repeat 0 -30px;
    }
    .fdFilterTrigger img {
        border: 0 none;
        width: 15px;
        height: 15px;
        background: transparent url(css/tablesort/filterButtons.gif) no-repeat 0 -15px;
        margin: auto 0;
        line-height: 15px;
    }
    tr.fdFilterTableRow th {
        padding: 1px;
        line-height: 1px;
        background: #fff;
    }
    tr.fdFilterTableRow th form {
        padding: 0;
        margin: 0;
        line-height: 1px;
        background: #fff;
        width: auto;
    }
    tr.fdFilterTableRow th form p {
        width: 100%;
        padding: 0;
        margin: 0;
        text-transform: none;
        letter-spacing: 0;
    }
    tr.fdFilterTableRow th form p.fdInpContainer {
        padding: 0;
    }
    tr.fdFilterTableRow th input,
    tr.fdFilterTableRow th select {
        line-height: 1.2em;
        margin: 0;
    }
    tr.fdFilterTableRow th select,
    tr.fdFilterTableRow th input {
        box-sizing: border-box;
        border: 2px solid #DFD3FF;
        background-color: #FFFCF0;
        /*display:table-cell;*/
        width:100%;
        display: block;
        -moz-box-sizing: border-box;
    }
    tr.fdFilterTableRow th select option {
        background: #fff;
        border-top: 1px solid #fff;
        border-bottom: 1px solid #fff;
    }
    tr.fdFilterTableRow th select option.alternative {
        background: #efefef;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
    }
    th,
    th.sortable,
    th.sortable-text,
    th.sortable-date,
    th.sortable-keep,
    th.sortable-date-dmy,
    th.sortable-numeric,
    th.sortable-currency,
    th.sortable-sortByTwelveHourTimestamp,
    th.sortable-sortIPAddress,
    th.sortable-sortEnglishLonghandDateFormat,
    th.sortable-sortScientificNotation,
    th.sortable-sortImage,
    th.sortable-sortFileSize,
    th.sortable-sortAlphaNumeric {
        /*line-height: 22px;*/
		line-height: 15px;
    }
    #fdTablefilterWrapper::-moz-selection {
        background: #fff;
        color: #000;
    }
    #fdTablefilterWrapper::selection {
        background: #fff;
        color: #000;
    }

/* =================== reset */
div.showAll {
    float: right;
    /*position: absolute;*/
    /*left: 68px;*/
    /*right: 0px;*/
    font-family: 'Trebuchet MS', Verdana, Tahoma, sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    width: 15em;
    height: 1.5em;
    padding: 0.4em 0.5em 0.3em 0.5em;
    background: #fff url(css/tablesort/gradient.gif) repeat-x 0 -20px;
    border: 1px solid #ccc;
}

td.pi_pl a, td.pi_msds a {
    /*text-indent: -1000em;*/
    /*width: 32px;*/
    font-size: 9px;
    display: block;
    padding: 4px 0 4px 24px;
    background: url('css/images/amx-doc-icon-acrobat.gif') no-repeat 2px 50%;
}
td.pi_msds a {
    background: url('css/images/amx-doc-icon-acrobat.gif') no-repeat 2px 50%;
}

    /* =================== PAGINATE */
    /* Demo style */
    /*p {
        width: 800px;
        margin: 0 auto 1.6em auto;
    }
    */

    /* Pagination list styles */
/*    ul.fdtablePaginater {
        display: table;
        list-style: none;
        padding: 0;
        margin: 0 auto;
        text-align: center;
        height: 2em;
        width: auto;
        margin-bottom: 2em;
    }*/
    ul.fdtablePaginater {
        float: left;
        display: table;
        list-style: none;
        padding: 0;
        /*margin: 0 auto;*/
        text-align: center;
        height: 2em;
        width: auto;
        /*margin-bottom: 2em;*/
    }
    ul.fdtablePaginater li {
        display: table-cell;
        padding-right: 4px;
        color: #666;
        list-style: none;
        -moz-user-select: none;
        -khtml-user-select: none;
    }
    ul.fdtablePaginater li a.currentPage {
        border-color: #DDBA17 !important;
        color: #000;
    }
    ul.fdtablePaginater li a:active {
        border-color: #222 !important;
        color: #222;
    }
    ul.fdtablePaginater li a,
    ul.fdtablePaginater li div {
        display: block;
        width: 2em;
        font-size: 1em;
        color: #666;
        padding: 0;
        margin: 0;
        text-decoration: none;
        outline: none;
        border: 1px solid #ccc;
        font-family: 'Arial Black', sans-serif;
    }
    ul.fdtablePaginater li div {
        cursor: normal;
        opacity: .5;
        filter: alpha(opacity=50);
    }
    ul.fdtablePaginater li a span,
    ul.fdtablePaginater li div span {
        display: block;
        line-height: 2em;
        border: 1px solid #fff;
        background: #fff url(css/tablesort/gradient.gif) repeat-x 0 -20px;
    }
    ul.fdtablePaginater li a {
        cursor: pointer;
    }
    ul.fdtablePaginater li a:focus {
        color: #333;
        text-decoration: none;
        border-color: #aaa;
    }
    .fdtablePaginaterWrap {
        text-align: center;
        clear: both;
        text-decoration: none;
    }
    ul.fdtablePaginater li .next-page span,
    ul.fdtablePaginater li .previous-page span,
    ul.fdtablePaginater li .first-page span,
    ul.fdtablePaginater li .last-page span {
        font-weight: bold !important;
    }
    /* Keep the table columns an equal size during pagination */
    td.sized1 {
        width: 16em;
        text-align: left;
    }
    td.sized2 {
        width: 10em;
        text-align: left;
    }
    td.sized3 {
        width: 7em;
        text-align: left;
    }
    tfoot td {
        text-align: right;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    #visibleTotal {
        text-align: center;
        letter-spacing: auto;
    }
    * html ul.fdtablePaginater li div span,
    * html ul.fdtablePaginater li div span {
        background: #eee;
    }
    tr.invisibleRow {
        display: none;
    }

