.table {
  margin-top: var(--spacer--xl);
  border: 1px solid var(--text);
  border-bottom: none;
}

.table__header,
.table-cell > * {
  padding: var(--spacer--sm) var(--spacer);
}

.table__group-header {
  padding: var(--spacer);
}

.table__header,
.table__group-header,
.table-row,
.table-cell__label {
  border-bottom: 1px solid var(--text);
}

.table-cell:not(:last-child) {
  border-right: 1px solid var(--text);
}

.table__header {
  background-color: var(--green--dark);
  color: var(--white);
}

.table-row,
.table-cells__wrapper {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

.table-cells__wrapper {
  overflow-x: scroll;
  scrollbar-color: var(--green--dark) var(--gray--light);
  scrollbar-width: auto;
  scrollbar-gutter: stable;
}

.table-cells__wrapper::-webkit-scrollbar {
  height: 12px;
  -webkit-appearance: none;
}

.table-cells__wrapper::-webkit-scrollbar-track {
  background: var(--gray--light);
}

.table-cells__wrapper::-webkit-scrollbar-thumb {
  background: var(--green--dark);
  border-radius: 6px;
}

.table-cell__key-cell {
  max-width: 33.33333%;
  font-weight: var(--font-weight--semi);
  text-align: left;
}

@media (min-width: 768px) {
  .table-cell__key-cell {
    max-width: 20%;
  }
}

.table-cell__key-cell .table-cell__label {
  background-color: var(--green--dark);
  color: var(--white);
}

.table-cell__key-cell .table-cell__value {
  color: var(--green--dark);
}

.table-cell {
  width: 100%;
}

.table-cell__label {
  white-space: nowrap;
  font-weight: var(--font-weight--semi);
}

.table-simple__header,
.table-simple-row > * {
  padding: var(--spacer--sm) var(--spacer);
}

.table-simple__header,
.table-simple-row {
  border-bottom: 1px solid var(--text);
}

.table-simple__header {
  color: var(--green--dark);
}

.table-simple-row {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

.table-simple-cell__label {
  width: 100%;
  border-right: 1px solid var(--text);
}

.table-simple-cell__value {
  width: 200px;
}
