/**
 * @file table_row.css
 * @component Table Row (Internal)
 * @description Paints the native row from the enclosing Table's striping and
 * fill state, without styling its cells.
 *
 * @section Public custom properties
 * None.
 *
 * @section Private custom properties
 * None.
 */
:where([data-component-id="marsal_sdc:table_row"]) {
  background-color: transparent;
}

/* Every second body row of a striped Table paints the subtle surface. */
:where([data-component-id="marsal_sdc:table"][data-striped="true"]) > .marsal-table__table > tbody > :where([data-component-id="marsal_sdc:table_row"]:nth-child(even)) {
  background-color: var(--marsal-color-surfaceSubtle);
}

/* Mirrors Table's fill scope; the last body row claims the stretched surplus. */
:where([data-component-id="marsal_sdc:table"][data-fill-height="true"]) > .marsal-table__table > tbody > :where([data-component-id="marsal_sdc:table_row"]:last-child) {
  @media screen and (min-width: 55.25rem) {
    block-size: 100%;
  }

  @media print {
    block-size: 100%;
  }
}
