/* Tabbed Tables */

.tabbed-tables + .tabbed-tables {
  padding-top: 0;
}

.tabbed-tables--scale-potential-following {
  position: relative;
  overflow: visible;
}

.tabbed-tables--scale-potential-following .grid-container {
  position: relative;
  z-index: 3;
}

.tabbed-tables__scale-potential-diagonal {
  position: absolute;
  right: 0;
  bottom: -260px;
  left: 0;
  z-index: 1;
  height: 740px;
  pointer-events: none;
}

.tabbed-tables__scale-potential-diagonal svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tabbed-tables__tabs-scroll {
  position: relative;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tabbed-tables__tabs-scroll::-webkit-scrollbar {
  display: none;
}

.tabbed-tables__tabs {
  position: relative;
  display: flex;
  gap: 30px;
  width: max-content;
  min-width: 100%;
}

.tabbed-tables__tabs::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 2px;
  background: var(--grey);
  content: '';
}

.tabbed-tables__tab {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--black);
  font-weight: 400;
  cursor: pointer;
  font-family: 'Jura', sans-serif;
  text-transform: uppercase;
  font-size: 24px;
  @media screen and (max-width: 49.99875em) {
    font-size: 18px;
  }
}

.tabbed-tables__tab:hover {
  color: var(--blue);
}

.tabbed-tables__tab:focus-visible,
.tabbed-tables__tab.is-active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.tabbed-tables__tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.tabbed-tables__panel {
  padding-top: 30px;
}

.tabbed-tables.is-ready .tabbed-tables__panel[hidden] {
  display: none;
}

.tabbed-tables .table-container {
  margin-bottom: 0;
  overflow: hidden;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 17px 31px rgb(0 0 0 / 26%);
}

.tabbed-tables__table-scroll {
  min-height: var(--tabbed-tables-page-height, 0px);
  overflow-x: auto;
}

.tabbed-tables__table tbody tr[hidden] {
  display: none;
}

.tabbed-tables__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  color: var(--grey);
}

.tabbed-tables__pagination button {
  margin: 0;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}

.tabbed-tables__pagination button:disabled {
  color: var(--grey);
  cursor: default;
}

.tabbed-tables__pagination button[aria-current='page'] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tabbed-tables__pagination button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media print {
  .tabbed-tables__table-scroll {
    min-height: 0;
  }

  .tabbed-tables__pagination {
    display: none;
  }

  .tabbed-tables .tabbed-tables__table tbody tr[hidden] {
    display: table-row;
  }
}

.tabbed-tables__below-table {
  margin-top: 30px;
}

.tabbed-tables__below-table-text {
  /* color: var(--blue); */
}

.tabbed-tables__below-table-text > :first-child {
  margin-top: 0;
}

.tabbed-tables__below-table-text > :last-child {
  margin-bottom: 0;
}

.tabbed-tables__below-table-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  @media screen and (min-width: 50em) {
    float: right;
  }
  margin-top: 20px;
  color: var(--blue);
  font-family: 'Jura', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.tabbed-tables__below-table::after {
  display: table;
  clear: both;
  content: '';
}

.tabbed-tables__table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Jura', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.tabbed-tables__table th,
.tabbed-tables__table td {
  padding: 12px;
  border: 0;
  text-align: left;
}

.tabbed-tables__table th:not(:first-child),
.tabbed-tables__table td:not(:first-child) {
  text-align: right;
}

.tabbed-tables__table thead {
  background: linear-gradient(var(--blue), var(--blue)) 12px 100% / calc(100% - 24px) 1px no-repeat;
  color: var(--blue);
}

.tabbed-tables__table th {
  color: var(--blue);
  font-size: 18px;
}

.tabbed-tables__table tbody tr:nth-child(odd) {
  background: var(--white);
}

.tabbed-tables__table tbody tr:nth-child(even) {
  background: var(--light-blue);
}

.tabbed-tables__table--custom-highlights tbody tr:nth-child(even),
.tabbed-tables__table tbody tr.tabbed-tables__row--white {
  background: var(--white);
}

.tabbed-tables__table tbody tr.tabbed-tables__row--light {
  background: var(--light-blue);
}

.tabbed-tables__table tbody tr.tabbed-tables__row--dark {
  background: var(--dark-blue);
  color: var(--white);
}

@media print, screen and (min-width: 64em) {
  .tabbed-tables__panel {
    padding-top: 40px;
  }

  .tabbed-tables__table th:first-child,
  .tabbed-tables__table td:first-child {
    padding-left: 24px;
  }

  .tabbed-tables__table th:last-child,
  .tabbed-tables__table td:last-child {
    padding-right: 24px;
  }

  .tabbed-tables__table thead:first-child tr:first-child th,
  .tabbed-tables__table tbody:first-child tr:first-child td {
    padding-top: 18px;
  }

  .tabbed-tables__table tbody tr:last-child.tabbed-tables__row--dark td {
    padding-bottom: 18px;
  }

  .tabbed-tables__table thead {
    background-position: 24px 100%;
    background-size: calc(100% - 48px) 1px;
  }
}

@media screen and (max-width: 49.99875em) {
  .tabbed-tables__scale-potential-diagonal {
    bottom: -100px;
    height: 340px;
  }

  .tabbed-tables__tabs-scroll {
    overflow: visible;
  }

  .tabbed-tables__tabs {
    gap: 16px;
    width: 100%;
  }

  .tabbed-tables__tab {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .tabbed-tables .table-container {
    padding: 0;
  }

  .tabbed-tables__table {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
  }

  .tabbed-tables__table th {
    font-family: 'Jura', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
  }

  .tabbed-tables__table th,
  .tabbed-tables__table td {
    padding: 8px;
  }

  .tabbed-tables__table thead {
    background-position: 8px 100%;
    background-size: calc(100% - 16px) 1px;
  }
}
