/* Table cell editing improvements - prevent resize handle interference */
.resizable-table td:focus, .resizable-table th:focus {
    cursor: text !important;
}

/* Hide resize handles when cell is focused for editing */
.resizable-table td:focus .cell-resizer,
.resizable-table th:focus .cell-resizer,
.resizable-table td:focus .column-resizer,
.resizable-table th:focus .column-resizer,
.resizable-table td:focus .row-resizer,
.resizable-table th:focus .row-resizer {
    pointer-events: none !important;
    opacity: 0 !important;
    display: none !important;
}

/* Ensure text cursor shows properly in cells */
.resizable-table td[contenteditable="true"],
.resizable-table th[contenteditable="true"] {
    cursor: text !important;
    user-select: text !important;
}

/* Improve click area for cell editing */
.resizable-table td[contenteditable="true"]:not(:focus),
.resizable-table th[contenteditable="true"]:not(:focus) {
    cursor: pointer;
}

.resizable-table td[contenteditable="true"]:hover,
.resizable-table th[contenteditable="true"]:hover {
    background: rgba(37, 99, 235, 0.02);
}

/* Prevent resize handles from blocking text selection */
.resizable-table td[contenteditable="true"]:focus-within .cell-resizer,
.resizable-table th[contenteditable="true"]:focus-within .cell-resizer {
    display: none !important;
}

/* Dark mode support for table cell editing */
[data-theme="dark"] .resizable-table td[contenteditable="true"]:hover,
[data-theme="dark"] .resizable-table th[contenteditable="true"]:hover {
    background: rgba(96, 165, 250, 0.05);
}