/* === Table scroll enhancements ===
 * Top mirror scrollbar + Shift+drag horizontal scroll.
 */

.table-scroll-mirror {
    width: 100%;
    height: 12px;
    border-radius: 4px;
    background: var(--color-bg-secondary, #f0f0f0);
}

.table-scroll-mirror::-webkit-scrollbar {
    height: 8px;
}

.table-scroll-mirror::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.table-scroll-mirror::-webkit-scrollbar-thumb {
    background: var(--color-border-dark, #94A3B8);
    border-radius: 4px;
}

.table-scroll-mirror::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted, #6B7280);
}

/* Shift+drag cursor */
.table-wrapper.dragging {
    cursor: grabbing;
    user-select: none;
}

.table-wrapper.dragging * {
    cursor: grabbing !important;
    user-select: none !important;
}

/* Tooltip */
#table-scroll-tooltip {
    position: fixed;
    z-index: 99999;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 12px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    white-space: nowrap;
    font-family: Arial, sans-serif;
}
