/**
 * EXTENSIONS TO BOOTSTRAP TABLES for our idiosyncratic needs
 */

table.table.table-borderless thead {
    border-bottom: 1px solid #C2C2C2;
}

table.table.table-borderless tfoot {
    border-bottom: 1px solid #C2C2C2;
}

table.table tbody th {
    font-weight: bold;
}



/*
 * DATATABLES styling because they put arrows on the right, use insufficient spacing, and look bad unless we fix them
 * also, we want arrows on the left *except for* .text-right cells, so that's a whole other thing
 */

table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after {
    right: unset;
    left: 0px;
    top: unset !important;  /* align to bottom, not top, for 2-row TH content */
    bottom: 5px;

    font-family: 'Font Awesome 5 Free';
    font-weight: bold;
}
table.dataTable.table-sm .sorting:before,
table.dataTable.table-sm .sorting_asc:before,
table.dataTable.table-sm .sorting_desc:before {
    right: unset;
    left: 10px;
    top: unset !important;  /* align to bottom, not top, for 2-row TH content */
    bottom: 5px;

    font-family: 'Font Awesome 5 Free';
    font-weight: bold;
}
table.dataTable.table-sm > thead > tr > th {
     padding-left: 1.5em;
}

table.dataTable thead .text-right.sorting:after,
table.dataTable thead .text-right.sorting_asc:after,
table.dataTable thead .text-right.sorting_desc:after,
table.dataTable thead .text-right.sorting_asc_disabled:after,
table.dataTable thead .text-right.sorting_desc_disabled:after {
    right: 0px;
}
table.dataTable.table-sm .text-right.sorting:before,
table.dataTable.table-sm .text-right.sorting_asc:before,
table.dataTable.table-sm .text-right.sorting_desc:before {
    right: 10px;
}
table.dataTable.table-sm > thead > tr > th.text-right {
     padding-right: 1.5em !important;
}
