﻿/* Prozesse: BPMN-Diagramm mit Seitenpanel, Vorschau im Formular */

.e2-prozess__arbeitsflaeche {
    display: flex;
    gap: var(--oo-space-3, 0.75rem);
    min-height: 0;
}

.e2-prozess__leinwand {
    flex: 1;
    min-width: 0;
    height: calc(100vh - 14rem);
    min-height: 26rem;
    border: 1px solid var(--oo-border-color, #d0d5dd);
    border-radius: var(--oo-radius-md, 0.5rem);
    background: #fff;
    overflow: hidden;
}

.e2-prozess__panel {
    width: 19rem;
    flex-shrink: 0;
    max-height: calc(100vh - 14rem);
    overflow: auto;
    padding: var(--oo-space-3, 0.75rem);
    border: 1px solid var(--oo-border-color, #d0d5dd);
    border-radius: var(--oo-radius-md, 0.5rem);
    background: var(--oo-surface, #fff);
}

.e2-prozess__titel {
    margin: 0 0 var(--oo-space-3, 0.75rem);
    font-size: 1rem;
}

.e2-prozess__hinweis {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0;
    color: var(--oo-text-muted, #667085);
}

.e2-prozess__gruppe {
    margin-top: var(--oo-space-3, 0.75rem);
}

.e2-prozess__gruppe ul {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
}

/* Aufgaben mit Verknüpfungen: kleiner Punkt rechts oben */
.e2-prozess__leinwand .e2-bpmn-verknuepft .djs-visual > rect {
    stroke-dasharray: none;
}

.e2-prozess__leinwand .e2-bpmn-verknuepft .djs-visual::after {
    content: none;
}

.e2-prozess__leinwand .e2-bpmn-verknuepft .djs-visual > rect:first-child {
    fill: #eef6ff !important;
}

.e2-prozess__vorschau {
    display: block;
    max-height: 22rem;
    overflow: auto;
}

.e2-prozess__vorschau svg {
    max-width: 100%;
    height: auto;
}

@media (max-width: 800px) {
    .e2-prozess__arbeitsflaeche {
        flex-direction: column;
    }

    .e2-prozess__leinwand {
        height: 60vh;
        min-height: 20rem;
    }

    .e2-prozess__panel {
        width: auto;
        max-height: none;
    }
}
