/*
 * SPDX-FileCopyrightText: 2024-present Tobias Kunze
 * SPDX-License-Identifier: Apache-2.0
 */

tr[dragsort-id] {
  &.drag-indicator.insert-before {
    th,
    td {
      border-top: 2px solid var(--color-text-lighter);
    }
  }
  &.drag-indicator.insert-after {
    th,
    td {
      border-bottom: 2px solid var(--color-text-lighter);
    }
  }
  &.dragging td {
    background-color: var(--color-grey-lighter);
  }
}
.dragging .dragsort-button {
  transform: translate(-9999px);
}
.dragsort-button:not(:disabled) {
  &,
  button {
    cursor: grab;
  }
  &:active {
    cursor: grabbing;
  }
}
div[dragsort-id] {
  &.drag-indicator.insert-before {
    box-shadow: 0 -2px var(--color-text-lighter);
  }
  &.drag-indicator.insert-after {
    box-shadow: 0 2px var(--color-text-lighter);
  }
  .dragging {
    cursor: grabbing !important;
  }
}
thead.drag-indicator.insert-after {
  box-shadow: 0 2px var(--color-text-lighter);
}
.dragging {
  cursor: grabbing !important;
}
