:root {
  --navy: #102a43;
  --navy-2: #173f5f;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #dbe3ec;
  --text: #17212b;
  --muted: #64748b;
  --ist: #f6d66a;
  --ist-soft: #fff8db;
  --soll: #9fc8ec;
  --soll-soft: #edf6fd;
  --danger: #b42318;
  --success: #067647;
  --shadow: 0 8px 24px rgba(16, 42, 67, .08);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--bg); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar { background: var(--navy); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--navy); font-weight: 800; }
.brand-title { font-weight: 700; font-size: 18px; }
.brand-subtitle { font-size: 12px; opacity: .72; margin-top: 2px; }
.nav { display: grid; gap: 8px; padding-top: 22px; }
.nav-item { border: 0; border-radius: 10px; background: transparent; color: #dbeafe; display: flex; gap: 11px; align-items: center; padding: 11px 12px; text-align: left; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.12); color: #fff; }
.nav-icon { width: 20px; text-align: center; font-size: 18px; }
.sidebar-footer { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.version { font-size: 12px; opacity: .6; }
.main { min-width: 0; }
.topbar { min-height: 104px; background: #fff; border-bottom: 1px solid var(--line); padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 10; }
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 5px; }
h1 { margin: 0; font-size: 27px; letter-spacing: -.02em; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.content { padding: 28px 32px 48px; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--text); padding: 10px 14px; border-radius: 9px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn:hover { background: #f8fafc; }
.btn-primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-danger { border-color: #fecaca; background: #fff5f5; color: var(--danger); }
.btn-small { padding: 7px 10px; font-size: 13px; }
.btn-icon { width: 35px; height: 35px; padding: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 2px 10px rgba(16,42,67,.03); }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 28px; font-weight: 750; margin-top: 6px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-header { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.panel-header h2 { margin: 0; font-size: 18px; }
.panel-body { padding: 20px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { min-width: 260px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: #fff; }
.core-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.core-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; transition: transform .12s, box-shadow .12s; }
.core-card:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16,42,67,.08); }
.core-card-head { padding: 16px 17px 13px; border-bottom: 1px solid var(--line); }
.core-card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.core-card h3 { margin: 0; font-size: 17px; }
.core-card p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 7px 0 0; min-height: 18px; }
.core-card-body { padding: 10px 12px 14px; }
.process-link { width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 9px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.process-link:hover { background: var(--blue-soft); }
.process-link-content { display: grid; min-width: 0; }
.process-entry-label { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.process-name { font-weight: 650; margin-top: 2px; }
.process-goal-label { margin-top: 7px; }
.process-goal-mini { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 240px; }
.empty { border: 1px dashed #cbd5e1; border-radius: 12px; padding: 42px 22px; text-align: center; color: var(--muted); background: #fafcff; }
.empty strong { display: block; color: var(--text); margin-bottom: 6px; }
.detail-head { display: grid; grid-template-columns: minmax(240px,.9fr) minmax(320px,1.15fr) minmax(320px,1.15fr); gap: 16px; margin-bottom: 18px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.label { color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.info-title { font-size: 23px; font-weight: 750; margin-top: 5px; }
.info-text { margin-top: 8px; color: #475569; line-height: 1.5; white-space: pre-wrap; }
.process-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 15px; }
.meta-chip { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.table-wrap { overflow: auto; max-width: 100%; }
.process-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 1500px; font-size: 13px; }
.process-table th, .process-table td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; }
.process-table th:first-child, .process-table td:first-child { border-left: 1px solid var(--line); }
.process-table thead tr:first-child th { border-top: 1px solid var(--line); }
.process-table th { padding: 9px 9px; font-weight: 700; text-align: left; }
.process-table td { padding: 10px 9px; background: #fff; line-height: 1.35; }
.process-table .group-ist { background: var(--ist); text-align: center; font-size: 15px; }
.process-table .group-soll { background: var(--soll); text-align: center; font-size: 15px; }
.process-table .head-ist { background: var(--ist-soft); }
.process-table .head-soll { background: var(--soll-soft); }
.process-table tbody tr:hover td { background: #f8fbff; }
.step-name { font-weight: 650; }
.cell-muted { color: var(--muted); }
.cell-actions { white-space: nowrap; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 700; background: #eef2f6; color: #475569; }
.badge.manual { background: #fff1f2; color: #9f1239; }
.badge.partial { background: #fff7ed; color: #9a3412; }
.badge.auto { background: #ecfdf3; color: #067647; }
.rating { display: flex; gap: 2px; color: #e6a700; font-size: 16px; }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-top: 0; background: #fafcff; border-radius: 0 0 12px 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 650; }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 11px; background: #fff; outline: none; }
.form-field textarea { min-height: 90px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,.15); }
.form-section { grid-column: 1 / -1; margin-top: 3px; padding: 9px 11px; border-radius: 8px; font-weight: 750; }
.form-section.ist { background: var(--ist-soft); border-left: 4px solid var(--ist); }
.form-section.soll { background: var(--soll-soft); border-left: 4px solid var(--soll); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.48); display: grid; place-items: center; z-index: 100; padding: 24px; }
.modal { width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgba(15,23,42,.28); }
.modal.wide { width: min(1000px, 100%); }
.modal-header { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { margin: 0; font-size: 20px; }
.modal-close { border: 0; background: transparent; font-size: 24px; color: var(--muted); line-height: 1; }
.modal-body { padding: 20px; }
.modal-footer { padding: 15px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; position: sticky; bottom: 0; background: #fff; }
.toast-root { position: fixed; right: 22px; bottom: 22px; display: grid; gap: 10px; z-index: 150; }
.toast { background: #17212b; color: #fff; border-radius: 10px; padding: 11px 14px; box-shadow: var(--shadow); min-width: 240px; font-size: 13px; }
.toast.error { background: #7f1d1d; }
.loading { padding: 50px 20px; text-align: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid #dbeafe; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.mobile-only { display: none; }
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 86px 1fr; }
  .brand-title, .brand-subtitle, .nav-item span:last-child, .version { display: none; }
  .brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .nav-item { justify-content: center; }
  .detail-head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { padding: 18px; min-height: auto; position: static; align-items: flex-start; }
  .content { padding: 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full, .form-section { grid-column: 1; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; }
}

/* Version 0.3.0 – zeilenbasierte, aufklappbare Prozessübersicht */
.db-state { font-size: 11px; margin-bottom: 5px; color: rgba(255,255,255,.65); }
.db-state.ok { color: #86efac; }
.db-state.error { color: #fca5a5; }
.overview-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.overview-intro h2 { display: none; }
.overview-intro p { margin: 0; color: var(--muted); font-size: 14px; }
.overview-search-wrap { position: relative; min-width: 360px; }
.overview-search-wrap .search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; pointer-events: none; }
.overview-search { width: 100%; min-width: 360px; padding-left: 39px; }
.stats-rich { gap: 14px; }
.stat-card-rich { display: flex; align-items: center; gap: 16px; min-height: 98px; padding: 17px 20px; }
.stat-card-rich .stat-value { margin-top: 3px; font-size: 29px; line-height: 1; }
.stat-subline { margin-top: 5px; color: var(--muted); font-size: 12px; }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; font-weight: 800; flex: 0 0 auto; }
.stat-icon.blue { color: #2563eb; background: #eff6ff; }
.stat-icon.cyan { color: #0891b2; background: #ecfeff; }
.stat-icon.violet { color: #7c3aed; background: #f5f3ff; }
.stat-icon.orange { color: #ea580c; background: #fff7ed; }
.process-overview-panel { overflow: visible; box-shadow: 0 5px 20px rgba(16,42,67,.06); }
.overview-table-head { display: grid; grid-template-columns: minmax(460px, 1.8fr) 110px 130px 130px 165px 95px; gap: 0; align-items: center; min-height: 58px; padding: 0 18px; border-bottom: 1px solid var(--line); color: #52647a; font-size: 12px; font-weight: 700; }
.overview-table-head > div:not(:first-child) { text-align: center; }
.accordion-list { display: block; }
.core-accordion { border-bottom: 1px solid var(--line); }
.core-accordion:last-child { border-bottom: 0; }
.core-accordion.expanded { background: #fbfdff; }
.core-row { display: grid; grid-template-columns: 40px minmax(420px, 1.8fr) 110px 130px 130px 165px 95px; min-height: 82px; align-items: center; padding: 0 18px 0 10px; background: #fff; }
.core-accordion.expanded > .core-row { background: linear-gradient(90deg, #eef6ff 0%, #f8fbff 55%, #fff 100%); }
.accordion-toggle { width: 32px; height: 32px; border: 0; background: transparent; color: #1d4ed8; font-size: 27px; line-height: 1; border-radius: 8px; }
.accordion-toggle:hover { background: #eaf2ff; }
.core-main { display: flex; align-items: center; gap: 14px; min-width: 0; cursor: pointer; padding: 12px 0; }
.core-icon { width: 43px; height: 43px; border-radius: 12px; background: #eaf3ff; color: #2563eb; display: grid; place-items: center; font-size: 23px; flex: 0 0 auto; }
.core-copy { min-width: 0; display: grid; gap: 4px; }
.core-copy strong { font-size: 16px; color: #17212b; }
.core-copy span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric { text-align: center; color: #334155; font-size: 14px; }
.metric.strong { font-weight: 700; color: #17212b; }
.row-actions { display: flex; justify-content: center; gap: 7px; }
.icon-action { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #334155; display: grid; place-items: center; font-weight: 700; }
.icon-action:hover { background: #f8fafc; border-color: #b9c7d6; }
.rating-pill { display: inline-flex; min-width: 48px; justify-content: center; align-items: center; border-radius: 999px; padding: 5px 10px; font-weight: 750; font-size: 13px; }
.rating-pill.good { background: #dcfce7; color: #15803d; }
.rating-pill.mid { background: #ecfccb; color: #4d7c0f; }
.rating-pill.low { background: #ffedd5; color: #c2410c; }
.rating-pill.neutral { background: #f1f5f9; color: #94a3b8; }
.core-expanded { background: #fff; border-top: 1px solid #dbeafe; padding: 0 18px 14px 60px; }
.process-subhead, .process-overview-row { display: grid; grid-template-columns: minmax(260px, 1.05fr) minmax(320px, 1.3fr) 130px 130px 165px 95px; align-items: center; }
.process-subhead { min-height: 43px; color: #64748b; font-size: 11px; font-weight: 700; border-bottom: 1px solid var(--line); }
.process-subhead > div:nth-child(n+3) { text-align: center; }
.process-overview-row { min-height: 58px; border-bottom: 1px solid #edf1f5; }
.process-overview-row:last-of-type { border-bottom: 0; }
.process-open, .process-goal-open { border: 0; background: transparent; text-align: left; color: #17212b; padding: 9px 10px 9px 0; min-width: 0; }
.process-open { display: flex; align-items: center; gap: 11px; font-weight: 650; }
.process-open:hover, .process-goal-open:hover { color: var(--blue); }
.process-doc-icon { width: 34px; height: 34px; border-radius: 9px; background: #eef6ff; color: #2563eb; display: inline-grid; place-items: center; flex: 0 0 auto; }
.process-goal-open { color: #52647a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-process-row { padding: 12px 0 2px; }
.no-process-row { color: var(--muted); padding: 20px 0 8px; font-size: 13px; }
.overview-empty { margin: 22px; }

@media (max-width: 1280px) {
  .overview-table-head { grid-template-columns: minmax(360px,1.8fr) 90px 110px 110px 135px 80px; }
  .core-row { grid-template-columns: 38px minmax(320px,1.8fr) 90px 110px 110px 135px 80px; }
  .process-subhead, .process-overview-row { grid-template-columns: minmax(220px,1fr) minmax(260px,1.2fr) 110px 110px 135px 80px; }
}
@media (max-width: 1050px) {
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-intro { align-items: stretch; flex-direction: column; }
  .overview-search-wrap, .overview-search { min-width: 0; width: 100%; }
  .process-overview-panel { overflow-x: auto; }
  .overview-table-head, .core-row { min-width: 1000px; }
  .core-expanded { min-width: 1000px; }
}

/* Version 0.3.1 – getrennte Navigation für Übersicht, Kernprozesse und Prozesse */
.dashboard-intro { margin-bottom: 18px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(360px,.8fr); gap: 16px; margin-top: 18px; }
.dashboard-panel { overflow: hidden; }
.dashboard-panel .panel-header { min-height: 58px; }
.text-link { border: 0; background: transparent; color: var(--blue); font-weight: 650; font-size: 13px; padding: 6px 0; }
.text-link:hover { text-decoration: underline; }
.dashboard-list { display: grid; }
.dashboard-list-row { min-height: 68px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.dashboard-list-row:last-child { border-bottom: 0; }
.dashboard-list-row > div:first-child { min-width: 0; display: grid; gap: 4px; }
.dashboard-list-row strong { color: #17212b; font-size: 14px; }
.dashboard-list-row span { color: var(--muted); font-size: 12px; }
.dashboard-duration { font-weight: 750; color: #334155; white-space: nowrap; }
.empty.compact { margin: 0; border: 0; border-radius: 0; min-height: 100px; }
.automation-overview { padding: 8px 18px 18px; display: grid; gap: 20px; }
.automation-overview-row { display: grid; grid-template-columns: 150px 1fr 52px; gap: 12px; align-items: center; }
.automation-overview-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.automation-overview-label strong { min-width: 24px; text-align: right; }
.progress-track { height: 9px; border-radius: 999px; background: #edf2f7; overflow: hidden; }
.progress-track span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: #3b82f6; }
.automation-overview-row:nth-child(2) .progress-track span { background: #f59e0b; }
.automation-overview-row:nth-child(3) .progress-track span { background: #22c55e; }
.automation-overview-percent { text-align: right; font-size: 12px; color: var(--muted); font-weight: 700; }
.list-page-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 18px; }
.list-page-toolbar p { margin: 0; color: var(--muted); font-size: 14px; }
.flat-process-panel { overflow-x: auto; }
.flat-process-head, .flat-process-row { display: grid; grid-template-columns: minmax(230px,1.1fr) minmax(190px,.8fr) minmax(290px,1.3fr) 120px 120px 155px 90px; align-items: center; min-width: 1120px; }
.flat-process-head { min-height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); color: #52647a; font-size: 12px; font-weight: 700; }
.flat-process-head > div:nth-child(n+4) { text-align: center; }
.flat-process-row { min-height: 64px; padding: 0 16px; border-bottom: 1px solid #edf1f5; }
.flat-process-row:last-child { border-bottom: 0; }
.flat-process-row:hover { background: #fbfdff; }
.flat-core-name { color: #52647a; font-size: 13px; padding-right: 14px; }

@media (max-width: 1050px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .list-page-toolbar { align-items: stretch; flex-direction: column; }
}

/* V0.3.3: lesefreundliche Eingabe von Arbeitsschritten */
.modal.wide { width: min(1180px, 100%); }
.step-editor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 20px; }
.step-editor-grid .form-field.full { grid-column: 1 / -1; }
.step-editor-grid textarea { min-height: 125px; line-height: 1.55; }
.step-editor-grid #stepDescription { min-height: 110px; }
.step-editor-grid #stepData, .step-editor-grid #stepProblems { min-height: 145px; }
@media (max-width: 760px) {
  .step-editor-grid { grid-template-columns: 1fr; }
  .step-editor-grid .form-field.full { grid-column: 1; }
}

/* 0.3.4 – Kompakte Prozessansicht und persistente Speicherbestätigung */
.detail-switch { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.compact-wrap { width:100%; }
.compact-process-table { width:100%; border-collapse:collapse; font-size:13px; table-layout:auto; }
.compact-process-table th { text-align:left; font-size:12px; color:var(--muted, #64748b); background:#f8fafc; white-space:nowrap; padding:13px 10px; border-bottom:1px solid var(--line); }
.compact-process-table td { padding:12px 10px; border-bottom:1px solid var(--line); vertical-align:middle; }
.compact-process-table td:nth-child(3) { min-width:170px; }
.compact-process-table tbody .compact-step-row:hover, .compact-process-table .is-expanded { background:#eef6ff; }
.compact-process-table .step-name-button { appearance:none; border:0; background:transparent; padding:0; font:inherit; font-weight:700; cursor:pointer; color:#102940; text-align:left; }
.compact-process-table .step-name-button:hover { color:#165eea; }
.step-expand { border:0; background:transparent; color:#155ee8; font-size:25px; line-height:1; cursor:pointer; padding:2px 6px; }
.step-expand:focus-visible, .step-name-button:focus-visible { outline:2px solid #2563eb; outline-offset:2px; border-radius:4px; }
.step-detail-row > td { background:#f8fbff; padding:16px !important; }
.step-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; }
.step-detail-card { border:1px solid #d9e4f1; background:white; border-radius:10px; overflow:hidden; min-width:0; }
.step-detail-card h3 { margin:0; padding:13px 16px; background:#fff1bc; font-size:13px; }
.step-detail-card.soll h3 { background:#d7eafd; }
.step-detail-card dl { margin:0; display:grid; grid-template-columns:minmax(135px,34%) minmax(0,1fr); }
.step-detail-card dt,.step-detail-card dd { padding:12px 14px; margin:0; border-top:1px solid #e7edf4; overflow-wrap:anywhere; line-height:1.5; }
.step-detail-card dt { font-weight:650; font-size:12px; }
.step-detail-card dd { font-size:13px; }
.save-status { display:inline-flex; align-items:center; color:#08713f; background:#ecfdf3; border:1px solid #b8e8ca; border-radius:8px; padding:9px 12px; white-space:nowrap; font-size:12px; font-weight:650; }
.save-status[hidden] { display:none; }
@media(max-width:950px) { .step-detail-grid { grid-template-columns:1fr; } .compact-process-table { min-width:890px; } }

/* 0.3.6 – zentrale, filterbare Übersicht über alle Arbeitsschritte */
.all-steps-panel { overflow:hidden; }
.all-steps-filters { display:grid; grid-template-columns:repeat(5,minmax(145px,1fr)) auto; gap:12px; align-items:end; padding:18px; border-bottom:1px solid var(--line); }
.all-steps-filters label { display:flex; flex-direction:column; gap:7px; font-size:12px; font-weight:700; color:#52647a; min-width:0; }
.all-steps-filters select { width:100%; min-width:0; border:1px solid #d9e4f1; border-radius:8px; padding:10px 9px; background:white; color:#102940; font:inherit; font-weight:400; }
.steps-list-summary { padding:13px 18px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; color:#52647a; font-size:13px; border-bottom:1px solid var(--line); }
.all-steps-scroll { overflow-x:auto; }
.all-steps-table { width:100%; min-width:1190px; border-collapse:collapse; font-size:13px; }
.all-steps-table th { background:#f8fafc; text-align:left; padding:14px 12px; color:#52647a; font-size:12px; border-bottom:1px solid var(--line); white-space:nowrap; }
.all-steps-table td { padding:14px 12px; vertical-align:middle; border-bottom:1px solid #e9eef5; }
.all-steps-table tr:last-child td { border-bottom:0; }
.all-steps-table tbody tr:hover { background:#f7fbff; }
.all-steps-table td:nth-child(1) { min-width:165px; }
.all-steps-table td:nth-child(2),.all-steps-table td:nth-child(3) { min-width:165px; }
.all-steps-table td:nth-child(5) { min-width:140px; }
.all-steps-table .row-actions { display:flex; gap:6px; }
.all-steps-empty { text-align:center; padding:34px !important; color:#64748b; }
@media(max-width:1200px) { .all-steps-filters { grid-template-columns:repeat(3,minmax(160px,1fr)); } }
@media(max-width:720px) { .all-steps-filters { grid-template-columns:1fr; } }

/* Version 0.4.0: Mehrfachauswahl für Systeme */
.system-picker { position: relative; min-width: 0; isolation: isolate; }
.system-picker-toggle { width: 100%; min-height: 42px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; padding: 10px 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.system-picker-toggle:focus-visible { outline: 3px solid rgba(96,165,250,.3); border-color: #60a5fa; }
.system-picker-options { position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 150; margin-top: 0; border: 1px solid #cbd5e1; background: #fff; border-radius: 9px; box-shadow: 0 5px 14px rgba(16,42,67,.08); max-height: 240px; overflow-y: auto; padding: 5px; }
.system-picker-options[hidden] { display: none; }
.system-picker-choice { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-weight: 400 !important; }
.system-picker-choice:hover { background: #eff6ff; }
.system-picker-choice input { width: 16px !important; height: 16px; flex: 0 0 auto; }

/* 0.4.1: Offene Systemauswahl liegt ueber den folgenden Formularfeldern. */
.step-editor-grid .form-field:has(.system-picker:focus-within) { z-index: 2; }
.system-picker-toggle span { flex: 0 0 auto; }
