/* Shared screen contract for data tables, including dialogs and Django admin.
   The layer wins over legacy page density rules without changing row heights,
   table layout or print output. Presentation tables and calendar widgets keep
   their own geometry. */
@layer table-spacing {
  @media screen {
    body table:not([role="presentation"]):not(.ui-datepicker-calendar):not(.fc *) > :is(thead, tbody, tfoot) > tr > :is(th, td),
    body table:not([role="presentation"]):not(.ui-datepicker-calendar):not(.fc *) > tr > :is(th, td) {
      padding-inline: 1rem !important;
    }
    /* Dense day/selection columns must still fit their contents after insets.
       Sticky offsets and the full matrix width already consume these tokens. */
    .hrm-timesheet-workspace {
      --ts-number-width: 4.5rem !important;
      --ts-day-width: 3.5rem !important;
    }
  }
}
