/* Cursor and hit-testing overrides on top of @xyflow/react/dist/style.css, scoped via the
   .workflow-canvas class on the ReactFlow root. Selectors repeat xyflow's own classes to win
   on specificity regardless of stylesheet order. */

/* Pointer mode: nodes are primarily click targets (a click opens the config panel), so show
   the default arrow instead of xyflow's grab/pointer, and only switch to grabbing mid-drag. */
.workflow-canvas .react-flow__node.selectable,
.workflow-canvas .react-flow__node.draggable {
  cursor: default;
}

.workflow-canvas .react-flow__node.draggable.dragging {
  cursor: grabbing;
}

/* Pan mode: nodes are inert, so let pointer events fall through to the pane. Panning then
   works even when the drag starts on a node, and the pane's grab cursor shows everywhere. */
.workflow-canvas.pan-mode .react-flow__node {
  pointer-events: none;
}

/* Moving a step (use-step-move): the dragged card passes under the other cards and the `+` buttons,
   a little see-through, so the `+` under the pointer and its "Move here" stay visible. React Flow writes
   the node's z-index inline (raised by 1000 while it is selected), so only !important can lower it. */
.workflow-canvas .react-flow__node.dragging {
  z-index: -1 !important; /* NOSONAR: overrides React Flow's inline z-index, see above */
  opacity: 0.8;
}
