@import '../clinical-lowlight-theme/Row.module';
@import '../orion-fusion-theme/Row.module';

:local {
  .striped-table-row:nth-child(even) {
    background-color: var(--terra-table-row-striped-background-color, #f0f0f0);
  }

  .row {
    background-color: var(--terra-table-row-background-color, #fff);

    &.selectable:hover {
      background-color: var(--terra-table-row-hover-background-color, #e2f2fc);
      cursor: pointer;
    }


    &.selected {
      background-color: var(--terra-table-row-selected-background-color, #cbe7fa);
      border-right: 1px solid #0092e0;
      // Add bottom border to cells in a selected row
      td,
      th {
        border-bottom: var(--terra-table-row-highlight-border-bottom, 1px solid #0092e0);
      }
    }
  }
  // Add top border for first selected row or when not adjacent to a selected row
  /* stylelint-disable selector-max-compound-selectors */
  .row.selected:first-child,
  .row:not(.selected) + .row.selected {
    td,
    th {
      border-top: var(--terra-table-row-highlight-border-top, 1px solid #0092e0);
    }
  }
  /* stylelint-enable selector-max-compound-selectors */
}
