.container {
  border-width: 1px;
  border-color: inherit;
  border-radius: 0.375rem;
}

.table {
  width: 100%;
  position: relative;
  overflow: auto;
  border-collapse: collapse;
  border-color: inherit;
}

.thead {
  border-color: inherit;
  tr {
    border-bottom-width: 1px;
    border-color: inherit;
  }
}

.tbody {
  border-color: inherit;
  tr:last-child {
    border-width: 0;
    border-color: inherit;
  }
}

.tr {
  border-bottom-width: 1px;
  border-color: inherit;
  &:hover {
    background-color: var(--theme-colors-gray-50);
  }
}

.th {
  text-align: left;
  vertical-align: middle;
  &:has([role="checkbox"]) {
    padding-right: 0;
  }
  [data-sortable] {
    cursor: pointer;
    background-color: transparent;
    padding: 0.75rem 0;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    font-weight: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    color: inherit;
    font-size: inherit;
    &:hover {
      color: var(--theme-colors-gray-900);
    }
    &[data-active="true"] {
      color: var(--theme-colors-gray-800);
      font-weight: 700;
    }
    svg {
      fill: var(--theme-colors-gray-500);
      &[data-direction="asc"] {
        > :global(._asc) {
          fill: var(--theme-colors-gray-800);
        }
      }
      &[data-direction="desc"] {
        > :global(._desc) {
          fill: var(--theme-colors-gray-800);
        }
      }
    }
  }
}

.td {
  padding: 1rem;
  vertical-align: middle;
}

.empty {
  height: 6rem;
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

@media (max-width: 767px) {
  .pagination {
    flex-direction: column-reverse;
  }
  .pagination__right {
    width: 100%;
    flex-direction: column-reverse;
    gap: 12px;
  }
  .pagination_controls_right,
  .pagination_controls_middle,
  .pagination_controls_left {
    margin-left: 0px !important;
  }
}

.pagination__left {
  flex: 1 1 0%;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--theme-colors-gray-500);
}

.pagination__right {
  display: flex;
  align-items: center;
  & > :not([hidden]) ~ :not([hidden]) {
    margin-left: 1.5rem;
  }
}

.pagination_controls_left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  & > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0.5rem;
  }
  p {
    white-space: nowrap;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: var(--theme-colors-gray-500);
  }
}

.pagination_controls_middle {
  display: flex;
  width: 100px;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--theme-colors-gray-500);
}

.pagination_controls_right {
  display: flex;
  align-items: center;
  & > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0.5rem;
  }
}

.pagination__button {
  height: 40px;
  width: 40px;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-width: 1px;
  border-color: inherit;
  outline: none;
  cursor: pointer;
  border-radius: 0.375rem;
  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}
.sr {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.view__button {
  margin-left: -0.75rem;
  padding: 0 1rem;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
}

.view__content {
  width: 150px;
}

.checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
