
.employee-row.editing {
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
}


.editable-cell {
    position: relative;
    min-width: 120px;
}

.editable-cell.editing {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.editable-cell .cell-value {
    display: block;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.editable-cell .cell-value:hover {
    background-color: #e9ecef;
}

.editable-cell .cell-input,
.editable-cell .cell-select {
    width: 100%;
    padding: 0 0;
    border: 1px solid #007bff;
    border-radius: 4px;
    font-size: 12px; /* компактнее, влезает "11,5" */
    line-height: 1.1;
    height: 28px;
    box-sizing: border-box;
    background-color: white;
}

.editable-cell .cell-input:focus,
.editable-cell .cell-select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}


.readonly-cell {
    background-color: #f8f9fa;
    color: #6c757d;
    font-style: italic;
}


.action-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.action-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

/* Выровнять внутренние иконки по центру и размер 20x20 */
.action-buttons button .g-icon { width: 20px; height: 20px; overflow: visible; }

/* Для белой прямоугольной кнопки (добавить подпрактику) задать фон/бордер,
   чтобы не было «пустого» квадрата при различных темах */
.btn-add-subpractice { background: #10b981; border: 1px solid #059669; color: white; }
.btn-add-subpractice:hover { background: #059669; border-color: #047857; }

.btn-edit { background-color: #fff; color: #333; }
.btn-delete { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }

.btn-edit:hover {
    background-color: #e0a800;
}

.btn-save {
    background-color: #28a745;
    color: white;
}

.btn-save:hover {
    background-color: #218838;
}

.btn-cancel {
    background-color: #dc3545;
    color: white;
}

.btn-cancel:hover {
    background-color: #c82333;
}

.btn-delete:hover {
    background-color: #c82333;
    color: white;
}


.cell-value,
.cell-input,
.cell-select {
    transition: all 0.3s ease;
}

/* Отображаемое значение в ячейке той же компактности, что и input */
.editable-cell .cell-value {
    font-size: 12px;
    line-height: 1.1;
}


.cell-select {
    min-width: 150px;
}


.cell-input[type="number"] {
    text-align: right;
}


.cell-input[type="date"] {
    min-width: 130px;
}


@media (max-width: 768px) {
    .editable-cell {
        min-width: 100px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .action-buttons button {
        padding: 2px 4px;
        font-size: 10px;
    }
}
