/* GlasERP – Programm-Ansicht (public/programm-ansicht.js), 15.10.2026. Flach wie die übrigen Programmseiten (body.pg-open):
   keine fetten Schriften über 600, Zeichenfläche füllt den Platz, kein waagrechter Überlauf. */
.pa-workspace { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pa-workspace b, .pa-workspace strong, .pa-workspace th, .pa-workspace h3 { font-weight: 600; }
.pa-workspace .page-title { font-weight: 500; }
.pa-unter { margin: 2px 0 0; color: var(--muted, #6b7280); font-size: 13px; }
.pa-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pa-tools .pg-tabs button.active { background: #111; color: #fff; }
.pa-quelle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; min-width: 0; }
.pa-quelle label { display: inline-flex; align-items: center; gap: 4px; margin: 0; white-space: nowrap; }
.pa-quelle input[type="search"] { width: 220px; max-width: 100%; }
.pa-quelle select { max-width: 360px; }
.pa-position, .pa-datei { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.pa-position[hidden], .pa-datei[hidden] { display: none; }
.pa-titel { font-size: 13px; color: #374151; min-height: 18px; overflow-wrap: anywhere; }
.pa-titel-entwurf { color: #b45309; }
.pa-titel-veraltet, .pa-titel-fehler { color: #b91c1c; }
.pa-titel-freigegeben, .pa-titel-aktuell { color: #15803d; }
.pa-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 10px; min-height: 0; height: calc(100vh - 210px); min-height: 420px; }
.pa-bild { position: relative; border: 1px solid #d8dadd; border-radius: 6px; background: #fff; overflow: hidden; min-width: 0; }
.pa-bild svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.pa-bild svg.pa-zieht { cursor: grabbing; }
.pa-zoom { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; z-index: 2; }
.pa-zoom button { padding: 3px 9px; font-size: 13px; background: #fff; border: 1px solid #d8dadd; border-radius: 4px; }
.pa-leer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6b7280; font-size: 14px; padding: 20px; text-align: center; pointer-events: none; }
.pa-leer[hidden] { display: none; }
.pa-tafel { fill: #eef2f6; stroke: #cbd5e1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.pa-linie { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.pa-fehlt { fill: none; stroke: #dc2626; stroke-opacity: .35; stroke-width: 9; vector-effect: non-scaling-stroke; }
.pa-pfeile { stroke: none; }
svg.pa-gedimmt .pa-bahn { opacity: .18; }
svg.pa-gedimmt .pa-bahn.pa-hervor { opacity: 1; }
.pa-bahn.pa-hervor .pa-linie { stroke-width: 3; }
.pa-seite { overflow: auto; border: 1px solid #d8dadd; border-radius: 6px; background: #fff; padding: 10px 12px; font-size: 13px; min-width: 0; }
.pa-seite h3 { font-size: 13px; margin: 12px 0 6px; }
.pa-seite h3:first-child { margin-top: 0; }
.pa-info { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; }
.pa-info dt { color: #6b7280; }
.pa-info dd { margin: 0; overflow-wrap: anywhere; }
.pa-legende { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; }
.pa-legende li { display: flex; align-items: center; gap: 6px; }
.pa-farbe { display: inline-block; width: 18px; height: 0; border-top: 3px solid #999; flex: 0 0 18px; margin-right: 4px; vertical-align: middle; }
.pa-farbe.gestrichelt { border-top-style: dashed; }
.pa-farbe-fehlt { border-top: 8px solid rgba(220, 38, 38, .35); }
.pa-farbe-tafel { height: 10px; border: 1px solid #cbd5e1; background: #eef2f6; }
.pa-pfeil { width: 18px; text-align: center; font-size: 11px; color: #374151; }
.pa-meldungen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pa-meldungen li { padding: 4px 6px; border-radius: 4px; background: #f6f7f8; overflow-wrap: anywhere; }
.pa-m-fehler { background: #fef2f2 !important; color: #991b1b; }
.pa-m-anlage { background: #fef2f2 !important; color: #b91c1c; border-left: 3px solid #dc2626; }
.pa-m-hinweis { background: #fffbeb !important; color: #92400e; }
.pa-m-ok { background: #f0fdf4 !important; color: #166534; }
.pa-schritte { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pa-schritte th, .pa-schritte td { text-align: left; padding: 3px 4px; border-bottom: 1px solid #eef0f2; vertical-align: top; overflow-wrap: anywhere; font-size: 12.5px; }
.pa-schritte th:nth-child(1), .pa-schritte td:nth-child(1) { width: 30px; }
.pa-schritte th:nth-child(3), .pa-schritte td:nth-child(3) { width: 82px; }
.pa-schritte th:nth-child(4), .pa-schritte td:nth-child(4) { width: 58px; }
.pa-schritte tr[data-gruppe] { cursor: pointer; }
.pa-schritte tr[data-gruppe]:hover, .pa-schritte tr.pa-aktiv { background: #f1f5f9; }
.pa-zeile-fehlt td { color: #b91c1c; }
.pa-zeile-fehlt em { font-style: normal; font-weight: 600; }
@media (max-width: 1100px) {
  .pa-body { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pa-bild { height: 60vh; min-height: 320px; }
  .pa-seite { max-height: none; }
}

/* Einstieg in vorhandene Editoren, 05.11.2026. */
.pa-workspace #pa-editor[hidden] { display: none; }
.pa-leer p { max-width: 540px; margin: 0 0 16px; line-height: 1.5; }
.pa-leer a { pointer-events: auto; display: inline-block; max-width: 100%; white-space: normal; }
