/* Table presentation takes precedence over the workspace and document defaults. */
:root {
  --table-number-alignment: right;
}

table :is(th, td) {
  text-align: var(--table-cell-alignment, start) !important;
  vertical-align: middle !important;
}

table :is(th, td):where(.num, .num-int, .num-float, .hr-number, .fin-calculation-number, :has(> input[type="number"])) {
  --table-cell-alignment: var(--table-number-alignment);
}

table :is(thead th, thead td, th[scope="col"], th[scope="colgroup"]) {
  --table-cell-alignment: center;
}

table :is(th, td) input[type="number"] {
  text-align: var(--table-number-alignment);
}

table :is(td, tbody th, tfoot th),
table :is(td, tbody th, tfoot th) * {
  font-weight: 400 !important;
}
