$color-table-caption: $color-text-med-light;
$color-table-border: $color-bg-light;
$color-table-stripe: rgba(0,0,0,.2);

table {
  border-collapse: collapse;
  background-color: transparent;

  th {
    text-align: left;
    font-weight: bold;
  }

  caption {
    padding-top: .75rem;
    padding-bottom: .75rem;
    color: $color-table-caption;
    text-align: left;
    caption-side: bottom;
    font-size: .85rem;
  }
}

.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;

  th, td {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid $color-table-border;
  }

  thead {
    th {
      vertical-align: bottom;
      border-bottom: 2px solid $color-table-border;
      border-top: none;
    }
  }

  &.striped {
    tbody tr:nth-of-type(odd) {
      background-color: $color-table-stripe;
    }
  }

}
