$fixed-column-width: rem(160px);
$breakpoint: 768px;

.p_j4 {
  position: relative;
  max-width: 100vw;
  overflow: hidden;
}

.p_wc {
  .p_fc {
    &::after {
      display: block;
    }
  }
}

.p_qi {
  .p_s8 {
    margin-bottom: rem(52px);
  }
}

.p_yb {
  display: none;
}

.p_gf {
  height: rem(6px);
  width: rem(6px);
  background: color('ink', 'lightest');
  border-radius: border-radius();

  &:not(:last-of-type) {
    margin-right: spacing(extra-tight);
  }
}

.p_hj {
  background: color('ink');
}

.p_s8 {
  overflow-x: auto;
  // account for a mysterious gap in Safari when not collapsed
  margin-left: rem(140px);
  -webkit-overflow-scrolling: touch;
}

.p_fc {
  width: 100%;
  border-spacing: 0;

  &::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: $fixed-column-width;
    display: none;
    width: 0.6rem;
    background: linear-gradient(
      to right,
      rgba(color('black'), 0.12),
      rgba(color('black'), 0)
    );
  }
}

.p_s8 {
  overflow-x: auto;
  margin-left: $fixed-column-width;
}

// .TableRow {
//   &:hover .p_i8 {
//     @include breakpoint-after($breakpoint) {
//       background: color('sky', 'lighter');
//     }
//   }
// }

.p_yq {
  border-bottom: 0;
}

.p_i8 {
  padding: spacing();
  border-top: border();
  white-space: nowrap;
  text-align: left;
  transition: background-color 0.2s ease-in-out;
}

.p_op {
  text-align: right;
}

.p_zr {
  @include text-emphasis-normal;
  @include text-breakword;
  position: absolute;
  top: auto;
  left: 0;
  width: $fixed-column-width;
  white-space: unset;
  text-align: left;
  backface-visibility: hidden; // stops painting on scroll (due to positioning)
}

.p_fv {
  white-space: nowrap;
  overflow-x: hidden;
  text-overflow: ellipsis;
}

.p_ak {
  @include text-emphasis-subdued;
  font-weight: 400;
  border-top: border();
}

.p_ly {
  cursor: pointer;

  &:hover {
    .p_r9 {
      @include recolor-icon(color('indigo'));
      color: color('indigo');
    }

    .p_ks {
      opacity: 1;
    }
  }
}

.p_ks {
  display: flex;
  align-self: flex-end;
  opacity: 0;
  transition: opacity duration() easing(), fill duration() easing();
}

.p_r9 {
  @include unstyled-button;
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  align-items: baseline;
  transition: color duration() easing();

  &:hover,
  &:focus {
    @include recolor-icon(color('indigo'));
    color: color('indigo');

    .p_ks {
      opacity: 1;
    }
  }
}

.p_mg {
  justify-content: flex-start;
  flex-direction: row-reverse;
}

.p_y4 {
  .p_ks {
    opacity: 1;
  }
}

.p_f7 {
  @include text-emphasis-strong;
  background: color('sky', 'lighter');
  border-top: border();
}

.p_n4 {
  @include text-emphasis-normal;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border-bottom: 0;
  background: color('sky', 'light');
  color: color('ink', 'lighter');
  white-space: unset;
  text-align: center;
  backface-visibility: hidden; // stop painting on scroll (due to positioning)
}

@media (min-width: 1100px) {
  .p_wc {
    position: relative;
    .p_yb {
      display: flex;
      align-items: center;
      justify-content: center;
      // width: 100%;
      padding: spacing() spacing(tight);

      position: absolute;
      top: rem(-62px);
      right: 0;

      @include breakpoint-after($breakpoint, inclusive) {
        justify-content: flex-end;
      }
    }
  }
}