/* Prop Item Buttons and Detail Styles */

/* Prop item buttons in scene table */
.prop-items-container {
    display: block;
    min-height: 30px;
}

td .prop-items-container {
    position: relative;
}

.prop-item-button {
    position: relative;
    padding: 6px 24px 6px 10px;
    margin: 0 0 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.prop-item-button:last-child {
    margin-bottom: 0;
}

.prop-item-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.prop-item-button .delete-x {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 16px;
    height: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.prop-item-button:hover .delete-x {
    display: flex;
}

.prop-item-button.editing {
    padding: 6px 10px;
}

.prop-item-button.editing .delete-x {
    display: none;
}

.prop-item-input {
    padding: 6px 10px;
    border: 1px solid #007bff;
    border-radius: 4px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
}

.add-prop-button {
    padding: 6px 12px;
    border: 1px solid #007bff;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 5px 0 0 0;
}

td:hover .prop-items-container .add-prop-button:not(.editing) {
    display: inline-flex;
}

.add-prop-button:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.add-prop-button.editing {
    display: block;
    padding: 6px 10px;
    width: 100%;
    height: auto;
    margin: 5px 0 0 0;
    box-sizing: border-box;
}

/* Prop Detail Field Styles */
.prop-detail-field {
    margin-bottom: 12px;
}

.prop-detail-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 12px;
    color: #555;
}

.prop-detail-field input,
.prop-detail-field textarea,
.prop-detail-field select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.prop-detail-field textarea {
    min-height: 60px;
    resize: vertical;
}

/* Combo Dropdown Styles */
.combo-dropdown {
    font-size: 13px;
}

.combo-option:hover {
    background-color: #f0f0f0 !important;
}

/* Prop Detail Actions */
.prop-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.prop-detail-actions button {
    flex: 1;
    padding: 8px;
    font-size: 13px;
}
