/*
 * Drag-drop affordance + animations for rows reorder-enabled by
 * dx-grid-row-dnd.js. Tweak freely — JS only sets/removes the marker
 * classes (.n2c-drag-handle / .n2c-dnd-dragging / .n2c-dnd-drop-target),
 * all visual behaviour lives in this file.
 */

.n2c-drag-handle {
    cursor: grab;
    user-select: none;
    color: #888;
    padding: 3px 6px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fafafa;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
    flex-shrink: 0;
    min-width: 18px;
    text-align: center;
}

.n2c-drag-handle:hover {
    background: #ececec;
    border-color: #909090;
    color: #444;
}

.n2c-drag-handle:active {
    cursor: grabbing;
    background: #d8d8d8;
}

/* Source row during drag — modern "lifted" feel with soft tilt + shadow. */
tr.n2c-dnd-dragging {
    opacity: 0.7;
    transform: scale(0.99) rotate(-0.4deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    z-index: 2;
}

/* Drop target row — blue gradient + top/bottom rules signal "will land here". */
tr.n2c-dnd-drop-target {
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.12) 0%, rgba(13, 110, 253, 0.04) 100%) !important;
    box-shadow: inset 0 2px 0 0 #0d6efd, inset 0 -2px 0 0 #0d6efd;
    transition: background-color 0.12s ease, box-shadow 0.12s ease;
}
