/* Partial: _edit-mode.css.j2 — Edit mode indicators and editable field styles */

/* Edit Mode: hidden by default, shown when body.edit-mode */
.edit-only {
    display: none;
}

body.edit-mode .edit-only {
    display: inline-flex;
}

body.edit-mode .edit-only-block {
    display: block;
}

/* --- Edit Mode Visual Indicators --- */

/* Editable fields at rest in edit mode */
body.edit-mode .editable-field {
    background: rgba(59, 130, 246, 0.06);
    border-radius: 3px;
    padding: 1px 4px;
    transition: background 0.15s, box-shadow 0.15s;
    cursor: text;
}

body.edit-mode .editable-field:hover {
    background: rgba(59, 130, 246, 0.12);
}

body.edit-mode .editable-field:focus {
    background: white;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.3);
    outline: none;
}

/* Changed/unsaved field */
body.edit-mode .editable-field.dirty {
    background: rgba(245, 158, 11, 0.12);
    position: relative;
}

body.edit-mode .editable-field.dirty::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
}

/* Status select in edit mode */
body.edit-mode .status-select {
    padding: 2px 6px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.06);
    cursor: pointer;
    transition: border-color 0.15s;
}

body.edit-mode .status-select option {
    background: white;
    color: #212529;
    padding: 4px 8px;
}

body.edit-mode .status-select:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

body.edit-mode .status-select.dirty {
    background: rgba(245, 158, 11, 0.12);
    border-color: #f59e0b;
}

/* Status select hidden by default, shown in edit mode */
.status-select-wrapper {
    display: none;
}

body.edit-mode .status-select-wrapper {
    display: inline-flex;
}

body.edit-mode .status-badge-wrapper {
    display: none;
}
