.nsw-table {
  @include font-stack;
  @include font-size('sm');
  @include border-radius('none');
  border-collapse: collapse;
  width: 100%;
  margin: 0 auto;
  caption-side: bottom;

  caption {
    @include nsw-spacing(padding, sm xs);
    text-align: left;
  }

  th,
  td {
    @include nsw-spacing(padding, sm xs);
    text-align: left;
    vertical-align: baseline;
    border-bottom: solid 1px $dark80;
  }

  th,
  thead td,
  tfoot td {
    @include font-stack('heading');
  }

  thead {
    border-bottom: solid 2px $dark80;
  }
}

.nsw-table--caption-top {
  caption-side: top;
}

.nsw-table--striped {
  th,
  td {
    border-bottom: 0;
  }

  tbody tr:nth-of-type(even) {
    background-color: $light10;
  }
}


.nsw-table--bordered {
  th,
  td {
    border: solid 1px $dark80;
  }
}

.nsw-table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  &:focus {
    @include nsw-focus;
  }
}
