@use '../utils/utilities' as util;

.pgh-table-box {
  table[mat-table] {
    min-width: 100%;
    max-width: 100%;
  }

  .mat-mdc-form-field {
    margin-block: 0.25rem;
  }

  .mat-mdc-table,
  .mat-mdc-paginator {
    background: transparent;
  }

  .mat-mdc-paginator-container {
    padding-inline: 1rem;
  }

  .mat-mdc-header-row {
    height: 3.125rem;
  }

  .mat-mdc-table {
    > thead {
      background: var(--eee);
    }

    > tbody {
      td {
        font-size: inherit;
      }
    }
  }

  .mat-mdc-header-cell {
    color: var(--444);
    font-size: 0.875rem;
    @include util.font-weight-without-variable-support('bold');
  }

  th.mat-mdc-header-cell,
  td.mat-mdc-cell,
  td.mat-mdc-footer-cell {
    padding-block: 0;
    padding-inline: 0.25rem;

    &:first-of-type:not(:only-of-type) {
      padding-inline-start: 1rem;
    }

    &:last-of-type:not(:only-of-type) {
      padding-inline-end: 1rem;
    }
  }

  .mat-mdc-row:nth-child(even) {
    background-color: var(--f9f9f9);
  }
}
