/* ============================================================
   List View — Dynamic Column Headers & Scroll
   ============================================================ */
.list-scroll-wrap {
    overflow-x: auto;
    border-radius: 12px;
}
.list-col-header {
    display: grid;
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    min-width: fit-content;
}
.list-add-col-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px dashed #cbd5e1;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
}
.list-add-col-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

/* Inline cell editor */
.list-cell-editor input,
.list-cell-editor select {
    width: 100%;
    max-width: 110px;
    font-size: 0.75rem;
    padding: 2px 4px;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.list-cell-value {
    transition: background 0.1s ease;
}

/* ============================================================
   Column Header Drag & Drop
   ============================================================ */
.col-header-cell {
    cursor: grab;
    user-select: none;
    position: relative;
    transition: opacity 0.15s ease;
}
.col-header-cell.col-dragging {
    opacity: 0.4;
    cursor: grabbing;
}
.col-header-cell.col-drop-left::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 2px;
    bottom: 2px;
    width: 2px;
    background: #3b82f6;
    border-radius: 1px;
}
.col-header-cell.col-drop-right::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 2px;
    bottom: 2px;
    width: 2px;
    background: #3b82f6;
    border-radius: 1px;
}

/* Table header drag */
th.col-header-cell { cursor: grab; user-select: none; position: relative; }
th.col-header-cell.col-dragging { opacity: 0.4; }
th.col-header-cell.col-drop-left { box-shadow: inset 3px 0 0 0 #3b82f6; }
th.col-header-cell.col-drop-right { box-shadow: inset -3px 0 0 0 #3b82f6; }
