/* Editable Fields - редактируемые поля в таблицах */

.editable-field {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.5;
    background: #f5faff;
    border: 1px dashed #8ab4f8;
}

.editable-field:hover {
    background: #fff3cd !important;
    outline: 2px solid #ffc107;
}

.editable-field:focus {
    outline: 2px solid #2196F3;
    background: #e3f2fd !important;
}

.editable-field[contenteditable="true"] {
    cursor: text;
    min-height: auto;
}

.editable-field.editing {
    background: #e3f2fd !important;
    outline: 2px solid #2196F3;
}

.editable-field.error {
    background: #ffebee !important;
}

.shows-field, .date-start-field, .date-end-field {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.5;
}

.editable-vat-rate {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
    display: inline-block;
    background: #e3f2fd;
    font-weight: 500;
    vertical-align: middle;
    line-height: 1.5;
    border: 1px dashed #8ab4f8;
}

.editable-vat-rate:hover {
    background: #fff3cd !important;
    outline: 2px solid #ffc107;
}

.vat-rate-dropdown {
    position: absolute;
    background: white;
    border: 2px solid #2196F3;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 120px;
}

.vat-rate-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.vat-rate-option:hover {
    background: #e3f2fd;
}

.vat-rate-option.selected {
    background: #2196F3;
    color: white;
    font-weight: bold;
    outline: 2px solid #f44336;
}

/* Стили для редактируемого бейджа типа договора */
.editable-badge {
    cursor: pointer;
    transition: all 0.2s;
}

.editable-badge:hover {
    opacity: 0.85;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.contract-type-dropdown {
    position: absolute;
    background: white;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 220px;
}

.contract-type-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
}

.contract-type-option:hover {
    background: #e8f5e9;
}

.contract-type-option.selected {
    background: #4CAF50;
    color: white;
    font-weight: bold;
}

.subject-type-dropdown {
    position: absolute;
    background: white;
    border: 2px solid #9C27B0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 200px;
}

.subject-type-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
}

.subject-type-option:hover {
    background: #f3e5f5;
}

.subject-type-option.selected {
    background: #9C27B0;
    color: white;
    font-weight: bold;
}

.action-type-dropdown {
    position: absolute;
    background: white;
    border: 2px solid #FF9800;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    min-width: 200px;
    margin-top: 5px;
}

.action-type-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
}

.action-type-option:hover {
    background: #fff3e0;
}

.action-type-option.selected {
    background: #FF9800;
    color: white;
    font-weight: bold;
}
