.tableBlock {
  color: #000000;
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.tableBlock__shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 64px 112px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.tableBlock__top {
  position: absolute;
  top: 0;
}

/* Pills nav */
.tableBlock__nav {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.tableBlock__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  font: 600 18px/1.5 "DM Sans";
  letter-spacing: 0;
  text-transform: uppercase;
  color: #7d7d7d;
}

.tableBlock__pill.is-active {
  padding: 10px;
  border-radius: 5px;
  background: #151515;
  color: #ffffff;
}

/* Table cards */
.tableBlock__tables {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.tableBlock__card {
  width: 100%;
}

.tableBlock__cardHeader {
  background: #1e1e1e;
  border: 1px solid #909090;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tableBlock__cardTitle {
  margin: 0;
  color: #ffffff;
  font-family:
    "Roboto",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
}

.tableBlock__headerBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 12px 24px;
  border-radius: 30px;
  background: #ffffff;
  border: 0.5px solid #909090;
  text-decoration: none;
  color: #000000;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.tableBlock__headerBtnIcon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tableBlock__headerBtnIconImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tableBlock__headerBtnText {
  font: 400 16px/1.5 "DM Sans";
}

.tableBlock__tableWrap {
  border: 1px solid #909090;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  width: 100%;
  position: relative; /* enables scroll hint overlays */
}

.tableBlock__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.tableBlock__th {
  background: #6e6e6e;
  color: #ffffff;
  padding: 16px 24px;
  font: 600 18px/1.5 "DM Sans";
  text-align: left;
  border-right: 1px solid #909090;
}

.tableBlock__th:last-child {
  border-right: 0;
}

.tableBlock__td {
  padding: 28px 24px;
  font: 500 16px/1.5 "Roboto";
  color: #000000;
  border-top: 1px solid #909090;
  border-right: 1px solid #909090;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tableBlock__td:last-child {
  border-right: 0;
}

/* Back to top */
.tableBlock__backToTop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #000000;
  margin-left: auto;
}

.tableBlock__backIcon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff8000;
  transform: rotate(180deg);
}

.tableBlock__backText {
  font: 600 14px/1.5 "DM Sans";
}

/* Responsive */
@media (max-width: 1024px) {
  .tableBlock__shell {
    padding: 56px 32px 96px;
  }
}

@media (max-width: 768px) {
  .tableBlock__shell {
    padding: 48px 20px 80px;
    gap: 48px;
  }

  .tableBlock__nav {
    gap: 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tableBlock__nav::-webkit-scrollbar {
    display: none;
  }

  .tableBlock__tables {
    gap: 48px;
  }

  .tableBlock__cardHeader {
    flex-direction: column;
    align-items: flex-start;
  }

  .tableBlock__headerBtn {
    width: 100%;
    justify-content: center;
  }

  .tableBlock__tableWrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tableBlock__tableWrap::-webkit-scrollbar {
    display: none;
  }

  /* Mobile: one-time "swipe" hint (animated arrow) */
  .tableBlock__tableWrap.is-scrollable.is-at-start:not(.is-hint-seen)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    opacity: 1;
    animation: nbTableSwipeHint 900ms ease-in-out infinite;

    /* Arrow icon */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 6l6 6-6 6'/%3E%3C/svg%3E")
      no-repeat center / 18px 18px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 6l6 6-6 6'/%3E%3C/svg%3E")
      no-repeat center / 18px 18px;
    background-color: #0b3a4f;
  }

  .tableBlock__tableWrap.is-scrollable.is-hint-seen::after {
    opacity: 0;
    animation: none;
  }

  @keyframes nbTableSwipeHint {
    0%,
    100% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(-8px);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .tableBlock__tableWrap.is-scrollable.is-at-start:not(.is-hint-seen)::after {
      animation: none;
    }
  }

  .tableBlock__table {
    min-width: calc(var(--tb-cols, 3) * 240px);
  }

  .tableBlock__td {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }
}
