.table-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-32);
  padding: var(--sp-48) var(--container-pad) var(--sp-96);
}

.table__wrap {
  display: flex;
  gap: var(--sp-8);
  width: 100%;
  max-width: var(--container-width);
  align-items: stretch;
}

.table__labels {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  width: 15.875rem; /* 254px */
  flex-shrink: 0;
  background: var(--surface-purple-01);
  border-radius: var(--radius-12);
  padding: var(--sp-16) var(--sp-12);
}

.table__labels-spacer {
  height: 3.125rem; /* 50px, aligns with header pill row */
  flex-shrink: 0;
}

.table__label-rows {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.table__label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--fs-body-18);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.006em;
  color: var(--text-primary);
  border-top: 1px solid var(--surface-white);
  flex-shrink: 0;
}

.table__label-row--fill {
  flex: 65 1 0;
  min-height: 0;
}

.table__label-row--wide {
  flex-grow: 120;
}

.table__values {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.table__bar {
  background: var(--surface-light-blue-02);
  border-radius: var(--radius-12);
  height: 3.25rem; /* 52px */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--fs-body-14);
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 var(--sp-16);
}

.table__bar--restrictions {
  height: 7.5rem;
  padding: 0;
}

.table__bar-cols {
  display: flex;
  width: 100%;
  height: 100%;
}

.table__bar-cols > div {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--sp-12);
}

.table__bar-cols > div.is-muted {
  font-weight: 500;
  color: var(--text-primary);
}

.table__bar-cols > div + div {
  border-left: 1px solid var(--surface-white);
}

.table__bar-cols > div.span-2 {
  flex: 2 0 0;
}

.data-table__head-pill {
  background: var(--surface-white);
  border-radius: var(--radius-12);
  padding: var(--sp-8) var(--sp-12);
  font-size: var(--fs-body-14);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
}

.table__groups {
  display: flex;
  gap: var(--sp-4);
  width: 100%;
}

.table__group {
  background: var(--surface-light-blue-02);
  border-radius: var(--radius-12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  padding: var(--sp-16) var(--sp-12) 0;
}

.table__group--single {
  width: 15.875rem; /* 254px */
  flex-shrink: 0;
}

.table__group--double {
  flex: 1 0 0;
  min-width: 0;
}

.table__group-head {
  display: flex;
  gap: var(--sp-8);
}

.table__group-head .data-table__head-pill {
  flex: 1 0 0;
  min-width: 0;
}

.table__group-body {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--surface-white);
}

.table__group-row {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--fs-body-14);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  border-top: 1px solid var(--surface-white);
  padding: var(--sp-16) 0.75rem;
}

.table__group-body > .table__group-row:first-child {
  border-top: none;
}

.table__group-row--split {
  gap: 0.75rem;
  padding-left: 0;
  padding-right: 0;
}

.table__group-row--split > div {
  flex: 1 0 0;
  min-width: 0;
  padding: 0 0.75rem;
}

.table__group-row--split > div + div {
  border-left: 1px solid var(--surface-white);
}

.table__group-row ul {
  list-style: none;
  text-align: center;
  font-weight: 700;
  padding: 0;
  margin: 0;
}

.table__group-row p {
  margin: 0 0 0.25rem;
}

.table__group-row p:last-child {
  margin-bottom: 0;
}

.table__buttons {
  display: flex;
  gap: var(--sp-8);
  justify-content: center;
}

.table__buttons .btn {
  width: 15rem; /* 240px */
}
