/* ---------- Rows put in order by hand (sortable_controller.js: procedures) ---------- */

.table__handle {
  width: 2.5rem;
  padding-right: 0;
}

/* Dragged up and down by mouse or finger: the page mustn't scroll instead */
.sort-handle {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text-subtle);
  cursor: grab;
  touch-action: none;

  svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  &:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
  }
}

.sortable--dragging {
  background: var(--color-primary-subtle);
  cursor: grabbing;

  .sort-handle {
    cursor: grabbing;
  }
}
