/* Tables (DBIM 4.1.1 i): text is left-aligned, numbers are right-aligned, column names are centred.
   Linked on the pages that have a table. script/dbim-tables.js marks the cells of a column of numbers with dbim-num.
   The rules are !important because the tables carry Bootstrap's and DataTables' own alignment classes. */
table.table > thead > tr > th {
    text-align: center !important;
}
table.table > tbody > tr > th,
table.table > tbody > tr > td,
table.table > tfoot > tr > th,
table.table > tfoot > tr > td {
    text-align: left !important;
}
table.table > tbody > tr > .dbim-num,
table.table > tfoot > tr > .dbim-num {
    text-align: right !important;
}
/* The dark rows at the head and the foot of a table take the key colour instead of Bootstrap's near-black
   (DBIM 2.1). Not in high contrast: there the high-contrast stylesheet colours them. */
html:not(.dbim-hc) table.table > .table-dark {
    --bs-table-bg: var(--dbim-c1);
    --bs-table-color: var(--dbim-white);
    --bs-table-border-color: var(--dbim-c3);
}
