/* Editor de plantillas (Fase 9.2) */

.template-editor-toolbar {
    padding: 0.75rem 1rem;
}

.template-editor-grid {
    align-items: stretch;
}

.template-editor-list,
.template-editor-available {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 80px;
}

.template-editor-item,
.template-editor-available-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: #fff;
}

.template-editor-item.is-missing {
    border-color: rgba(220, 53, 69, 0.5);
    background: rgba(220, 53, 69, 0.05);
}

.template-editor-handle {
    cursor: grab;
    color: #6c757d;
    font-weight: 700;
    font-family: monospace;
    font-size: 1.1rem;
    user-select: none;
    line-height: 1;
}

.template-editor-handle:active {
    cursor: grabbing;
}

.template-editor-item-body,
.template-editor-available-body {
    flex: 1;
    min-width: 0;
}

.template-editor-item-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-editor-item-meta {
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.template-editor-item-ghost {
    opacity: 0.4;
    background: #e9ecef;
}

.template-editor-empty,
.template-editor-available-empty {
    margin-top: 0.75rem;
}

/* Diff de versiones (9.4) */
.template-diff-row.template-diff-added {
    background: rgba(25, 135, 84, 0.06);
}
.template-diff-row.template-diff-removed {
    background: rgba(220, 53, 69, 0.06);
    text-decoration: line-through;
    color: #6c757d;
}
.template-diff-row.template-diff-removed .badge {
    text-decoration: none;
}
.template-diff-row.template-diff-moved {
    background: rgba(255, 193, 7, 0.08);
}
