:where(table) {
  border: none;
  width: 100%;

  & th,
  & tr {
    border-block-start: none;
    border-block-end: 1px solid var(--neutral-300);
    border-inline: none;
    background-color: var(--white);
  }

  & tbody tr:last-child {
    border-block-end: none;
  }

  & thead tr {
    border-block-end: none;
  }

  & th {
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.5;
    letter-spacing: 0.03125rem;
    text-transform: uppercase;
    background-color: var(--neutral-100);
    padding: 0.75rem 1.5rem;
    color: var(--neutral-600);
    overflow-wrap: break-word;
    position: sticky;
    top: 0;
    z-index: 1;
    border-block-end: none;
    box-shadow: inset 0 -1px 0 var(--neutral-300);
    height: 3.5rem;
    vertical-align: middle;
  }

  & td {
    padding: 0.5rem 1.5rem;
    overflow-wrap: break-word;
    height: 3.5rem;
    vertical-align: middle;
  }

  & :where(button) {
    background-color: transparent;
    border: none;
    outline: none;
    color: var(--info-500);
    padding-inline: 0;
  }
}

:where(.table-container) {
  border: 1px solid var(--neutral-300);
  overflow: hidden;

  & ::-webkit-scrollbar {
    width: 0.75rem;
    height: 0.75rem;
  }

  & ::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-inline-start: 1px solid var(--neutral-300);
  }

  & ::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: 0.5rem;
    border: 0.125rem solid transparent;
    background-clip: padding-box;
  }

  & ::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-500);
  }
}

.table-row-button {
  background-color: var(--white);
  cursor: pointer;

  &:hover {
    background-color: var(--app-theme-color-100);
  }
}

.table-row-white {
  background-color: var(--white);
}

.table-layout-auto {
  table-layout: auto;
}

.table-layout-fixed {
  table-layout: fixed;
}

:where(.table-scroll-wrapper) {
  overflow: auto;
  overflow-anchor: none;
}
