/* Shared list and grid density. Keep this stylesheet last in Site.Master. */
table.data-table,
table.data-grid,
table.custom-datagrid {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
}

table.data-table > thead > tr > th,
table.data-grid > thead > tr > th,
table.custom-datagrid > thead > tr > th {
    height: 32px !important;
    min-height: 32px !important;
    box-sizing: border-box !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}

table.data-table > tbody > tr > td,
table.data-grid > tbody > tr > td,
table.custom-datagrid > tbody > tr > td {
    box-sizing: border-box !important;
    padding: 5px 8px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
}

table.data-table > thead > tr > th.is-sortable,
table.data-grid > thead > tr > th.is-sortable {
    padding: 0 !important;
}

table.data-table > thead > tr > th .list-sort-button,
table.data-grid > thead > tr > th .list-sort-button {
    height: 31px !important;
    min-height: 31px !important;
    box-sizing: border-box !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

/* Shared financial table formatting. */
table.data-table .numeric-column,
table.data-grid .numeric-column,
table.custom-datagrid .numeric-column,
table.data-table .money,
table.data-grid .money,
table.custom-datagrid .money {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}
table.data-table th.numeric-column .list-sort-button,
table.data-grid th.numeric-column .list-sort-button {
    justify-content: flex-end;
    text-align: right;
}
table.data-table .table-total-row > th,
table.data-table .table-total-row > td,
table.data-grid .table-total-row > th,
table.data-grid .table-total-row > td,
table.custom-datagrid .table-total-row > th,
table.custom-datagrid .table-total-row > td,
table.data-table > tfoot > tr > th,
table.data-table > tfoot > tr > td,
table.data-grid > tfoot > tr > th,
table.data-grid > tfoot > tr > td,
table.custom-datagrid > tfoot > tr > th,
table.custom-datagrid > tfoot > tr > td {
    font-weight: 700 !important;
}
