@import '../../config/variables.css';
/* Experimental from bootstrap */
/*
 * Tables for, you guessed it, tabular data
 * ---------------------------------------- */
table {
    width: 100%;
    margin-bottom: 18px;
    padding: 0;
    border-collapse: collapse;
}

th, td {
    padding: 10px 10px 9px 0;
    line-height: 1.5em;
    text-align: left;
}
th {
    padding-top: 9px;
    vertical-align: middle;
}
td {
    vertical-align: top;
    border-top: 1px solid var(--sardine);
}
thead th {
    background-color: var(--stone);
    color: var(--milk);
}
tbody th {
    border-top: 1px solid var(--sardine);
    vertical-align: top;
}

.condensed th, .condensed td { padding: 5px 5px 4px 5px !important; }

.super-condensed th, .super-condensed td { padding: 2px 3px !important; }
table.centerify td, table.centerify th { text-align: center; }

.bordered-table {
    border: 1px solid var(--sardine);
    border-collapse: separate;
    *border-collapse: collapse;
    /* IE7, collapse table to remove spacing */
    border-radius: 4px;
}
.bordered-table td, .bordered-table th { padding-left: 10px; }
.bordered-table tr:first-child * { border-top: none; }
.bordered-table th + th, .bordered-table td + td, .bordered-table th + td { border-left: 1px solid var(--sardine); }
.bordered-table thead tr:first-child th:first-child, .bordered-table tbody tr:first-child td:first-child { border-radius: 2px 0 0 0; }
.bordered-table thead tr:first-child th:last-child, .bordered-table tbody tr:first-child td:last-child { border-radius: 0 2px 0 0; }
.bordered-table tbody tr:last-child td:first-child { border-radius: 0 0 0 2px; }
.bordered-table tbody tr:last-child td:last-child { border-radius: 0 0 2px 0; }

.bordered-table.borderless-edges {
    /* leave right border styles from .bordered-table */
    border-top: none;
    border-bottom: none;
    border-left: none;
    border-radius: 0;
}

.zebra-striped tbody tr:nth-child(odd) td, .zebra-striped tbody tr:nth-child(odd) th { background-color: var(--sardine); }
.expandable tbody tr:hover td, .expandable tbody tr:hover th { background-color: var(--sardine); }
.sort-up:after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--milk);
    transform: rotate(360deg);
}
.sort-down:after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--milk);
    transform: rotate(360deg);
}
.collapsed, .table-pointer {
    height: 14px;
    width: 10px;
    background: transparent url('/img/collapse/prolapse.png') no-repeat -5px -2px;
}
.expanded, .state-expanded .table-pointer { background: transparent url('/img/collapse/prolapse.png') no-repeat -25px -2px; }
table .header { cursor: pointer; }
table .header:after {
    content: '';
    float: right;
    margin-top: 7px;
    border-width: 0 4px 4px;
    border-style: solid;
    border-color: var(--licorice) transparent;
    visibility: hidden;
}
table .headerSortUp, table .headerSortDown {
    background-color: rgba(141, 192, 219, 0.25);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
}
table .header:hover:after { visibility: visible; }
table .headerSortDown:after, table .headerSortDown:hover:after {
    visibility: visible;
    opacity: 0.6;
}
table .headerSortUp:after {
    border-bottom: none;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--licorice);
    visibility: visible;
    box-shadow: none; /* is this still needed? */
    opacity: 0.6;
}
table .primary-blue {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

table .headerSortUp.primary-blue, table .headerSortDown.primary-blue { background-color: var(--toothpaste); }

table .avocado {
    color: var(--avocado);
    border-bottom-color: var(--avocado);
}

table .headerSortUp.avocado, table .headerSortDown.avocado { background-color: var(--mint); }

table .cherry {
    color: var(--cherry);
    border-bottom-color: var(--cherry);
}
table .headerSortUp.cherry, table .headerSortDown.cherry { background-color: var(--salmon); }

tr.selected th, tr.selected td { background-color: var(--licorice) !important; }
tr.heavy td, tr.heavy th { vertical-align: bottom; }
table.clickable tbody tr { cursor: pointer; }
table .centerify td { text-align: center; }
/* Border my tablestuff */

table.outerborder {
    border: 1px solid var(--sardine);
    border-collapse: separate;
    *border-collapse: collapse;
    /* IE7, collapse table to remove spacing */
    border-radius: 1px;
}
table.outerborder thead tr:first-child th:first-child { border-radius: 1px 0 0 0; }
table.outerborder td, table.outerborder th { padding-left: 10px; }

table.innerborder th + th, table.innerborder td + td, .table.innerborder th + td { border-left: 1px solid var(--sardine); }
table.hover-rows tbody tr:hover td, table.hover-rows tbody tr:hover th, tr.hover-rows { background-color: var(--sardine); }
table.hover-cells tbody td:hover, td.hover-cells { background-color: var(--sardine); }