/* Styles of the workflow editor (forms, delete dialog). Owned by the editor group. Colours only through the tokens of :root in ../app.css. */
.wf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.wf-edit-form {
    margin: 12px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
}

.wf-edit-form .form-title {
    margin: 0 0 8px;
    font-size: 1rem;
}

.wf-edit-form .field {
    margin: 0 0 12px;
}

.wf-edit-form .field-label {
    display: block;
    margin-bottom: 4px;
}

.wf-edit-form .input {
    width: 100%;
    max-width: 560px;
    box-sizing: border-box;
}

.wf-edit-form select.input {
    width: auto;
}

.wf-edit-form textarea.input {
    min-height: 96px;
    resize: vertical;
}

.wf-edit-form .help {
    margin: 4px 0 0;
}

.wf-input-row {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.wf-input-row legend {
    padding: 0 6px;
    font-family: var(--mono);
}

.wf-input-row .row-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
}

.wf-input-row .field {
    margin: 0;
}

.wf-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.wf-edit-error {
    margin: 8px 0 0;
    color: var(--red-text);
}

.wf-edit-error:empty {
    display: none;
}

.wf-notice {
    margin: 8px 0;
    color: var(--text);
}

.dialog .wf-delete-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.dialog .wf-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}