.table-wrapper {
  width: 100%;
  overflow: auto;
  border-inline-start: 1px solid #f0f0f0;
  border-start-start-radius: 8px;
  border-start-end-radius: 8px;
}

.table {
  min-width: 100%;
  padding: 0;
  margin: 0;
  overflow: unset;
  font-size: 14px;
  line-height: 1.5714;
  color: rgb(0 0 0 / 88%);
  text-align: start;
  list-style: none;
  border-spacing: 0;
  border-collapse: separate;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  border-radius: 8px 8px 0 0;

  & td {
    min-width: 0;
  }
}

.table-head {
  position: sticky;
  top: 0;
  text-align: center;

  & th {
    position: relative;
    min-width: 0;
    padding: 16px;
    margin: 0;
    font-weight: 600;
    color: rgb(0 0 0 / 88%);
    text-align: center;
    overflow-wrap: anywhere;
    list-style: none;
    background: #fafafa;
    border-inline-end: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    border-start-start-radius: 8px;
    transition: background 0.2s ease;

    &:last-child {
      border-start-end-radius: 8px;
    }
  }
}

.table-body {
  & td {
    position: relative;
    min-width: 0;
    padding: 16px;
    overflow-wrap: anywhere;
    border-inline-end: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, border-color 0.2s;
  }
}

.resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  touch-action: none;
  cursor: col-resize;
  user-select: none;
  background: rgb(0 0 0 / 50%);
  opacity: 0;

  &:hover {
    opacity: 1;
  }
}

.resizing {
  opacity: 1;
}

.sticky {
  width: 100%;
}
