/* Column Reorder + Hide/Show styles */

/* Draggable headers */
th[draggable="true"] {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
th[draggable="true"]:active {
    cursor: grabbing;
}
th.col-dragging {
    opacity: 0.4;
    background-color: #cce5ff !important;
}
th.col-drag-over {
    border-left: 3px solid #0d6efd !important;
    background-color: #e8f0fe !important;
}

/* Drop zone — appears below header when dragging */
.col-drop-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #fff3cd;
    border: 2px dashed #ffc107;
    color: #856404;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}
.col-drop-zone-icon {
    font-size: 18px;
}
.col-drop-zone-active {
    background: #f8d7da !important;
    border-color: #dc3545 !important;
    color: #721c24 !important;
}
.col-drop-zone-disabled {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #6c757d !important;
    cursor: not-allowed;
}

/* Right-click context menu */
.col-context-menu {
    position: absolute;
    z-index: 99999;
    min-width: 200px;
    max-width: 320px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 4px 0;
    font-size: 13px;
}
.col-context-title {
    padding: 8px 14px 6px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.col-context-item {
    padding: 7px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #212529;
    transition: background 0.15s;
}
.col-context-item:hover {
    background: #e9ecef;
}
.col-restore-icon {
    color: #0d6efd;
    font-weight: bold;
    font-size: 14px;
}
.col-context-sep {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}
.col-context-restore-all {
    font-weight: 600;
    color: #0d6efd;
}
.col-context-restore-all:hover {
    background: #cfe2ff;
}
