/* Stabilitätsregeln für Analyseansichten. Breite Inhalte scrollen innerhalb ihres Bereichs. */
/* PowerPoint-aehnliche Auswahl und Skalierung im SOLL-Prozesseditor. */
.target-process-node .target-node-text{display:block;width:100%;height:calc(100% - 28px);min-height:0;margin:0;padding:10px;border:0;background:#f3f6f9;color:var(--navy);font-family:inherit;font-size:13px;font-weight:700;line-height:18px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;resize:none;box-shadow:none}.target-process-node .target-node-text:focus{background:#fff;outline:2px solid #6f91b5;outline-offset:-2px}
.target-process-canvas line.selected{stroke:#d86f59;stroke-width:5;filter:drop-shadow(0 0 2px #fff)}.target-process-canvas:focus{outline:2px solid #6f91b5;outline-offset:-2px}.target-process-node{min-width:160px;min-height:100px;overflow:hidden}.target-process-node .target-node-note{height:calc(100% - 58px);align-items:stretch}.target-process-node .target-node-note>span{align-self:center}.target-process-node .target-node-note textarea{height:100%;min-height:0}.target-node-resize{position:absolute;right:0;bottom:0;width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;border:0!important;border-right:3px solid var(--coral)!important;border-bottom:3px solid var(--coral)!important;background:transparent!important;cursor:nwse-resize}.target-process-editor>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px}.target-process-editor>footer button{height:28px;min-height:28px;padding:2px 9px;border:1px solid #dce5f2;background:#fff;color:var(--navy);font-size:10px;font-weight:700}.target-process-editor>footer button:disabled{opacity:.45;cursor:default}
html,body{max-width:100%;overflow-x:clip}
input[type=number]{appearance:textfield;-moz-appearance:textfield}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}

/* Der Seitentitel bleibt in jeder Hauptansicht direkt unter der Navigation sichtbar. */
.view>.hero{position:sticky;top:72px;z-index:14;box-shadow:0 4px 10px #102d5824}
#projectView>.hero{position:sticky;top:72px;z-index:14}
.topbar,main{width:calc(100vw - var(--sidebar));max-width:calc(100vw - var(--sidebar))}
.view,.project-shell,.project-streams,.optimization-analysis,.project-levers,.project-lever,.analysis-intro,.project-mes-analysis,.project-mes-table-scroll{min-width:0;max-width:100%}
.project-shell,.optimization-analysis,.project-lever{overflow:hidden}
.project-streams,.lever-table-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden}
.project-flow-card.lever-impact-highlight{outline:4px solid #f0a21a;outline-offset:-4px;box-shadow:0 0 0 3px #f0a21a45;background:#fff5d9!important}
.project-nav[hidden]{display:none}
.project-nav button[hidden]{display:none!important}
.project-nav button small{display:block;font-size:11px;font-weight:400;margin-top:3px}
.help-button{margin-left:auto;display:flex;align-items:center;gap:8px;padding:10px 14px;background:#fff;border:1px solid #aebbd0;color:#142c62;font-weight:700}
.help-button b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#203c78;color:#fff}
.online-help{width:min(860px,calc(100vw - 40px));border:0;padding:0;box-shadow:0 18px 60px #10234a55}
.online-help::backdrop{background:#10234a80}
.help-head{display:flex;justify-content:space-between;align-items:center;padding:16px 22px;background:#263f78;color:#fff;font-weight:700;letter-spacing:.12em}
.help-head button{border:0;background:transparent;color:#fff;font-size:28px}
.help-body{padding:26px}.help-body section{margin-top:22px}.help-body h3{margin-bottom:6px;color:#213a73}
.help-flow{display:flex;align-items:center;gap:10px;overflow:auto;padding:18px;background:#eef2f7}.help-flow span{min-width:120px;padding:14px;text-align:center;background:#fff;border-top:4px solid #d8735e;font-weight:700}.help-flow i{color:#d8735e;font-size:22px}
@media(max-width:1050px){.topbar,main{width:calc(100vw - 72px);max-width:calc(100vw - 72px)}}
.project-file-actions{display:flex;gap:8px;margin-left:auto}.projects-head{gap:12px}.project-row{grid-template-columns:1fr auto auto auto}
.analysis-type-choice{margin:0 0 18px;padding:0;border:0}.analysis-type-choice legend{margin-bottom:9px;color:#17356f;font-size:14px;font-weight:800}.analysis-type-choice legend span{font-weight:400;color:#718097}.analysis-type-choice>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.analysis-type-choice label{display:grid;grid-template-columns:22px 1fr;align-items:center;gap:10px;min-height:72px;padding:12px 14px;border:1px solid #bdc8d8;border-top:4px solid #263f78;background:#fff;cursor:pointer}.analysis-type-choice label:has(input:checked){border-color:#d8735e;background:#fff5f0;box-shadow:inset 0 0 0 2px #d8735e}.analysis-type-choice input{width:18px;height:18px;accent-color:#d8735e}.analysis-type-choice label span{display:grid;gap:4px}.analysis-type-choice strong{color:#17356f}.analysis-type-choice small{color:#65748a;line-height:1.3}
@media(max-width:900px){.analysis-type-choice>div{grid-template-columns:1fr}}
.project-mes-analysis{width:100%;max-width:100%;min-width:0;margin-top:18px;overflow:hidden;border:1px solid #c4cfdd;background:#fff}.project-mes-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 16px;border-bottom:1px solid #c4cfdd}.project-mes-head h2{margin:3px 0}.project-mes-head p{margin:0;color:#64728a;font-size:13px}.project-mes-rates{display:flex;align-items:center;gap:20px;padding:9px 14px;border-bottom:1px solid #c4cfdd;background:#e8edf4;color:#193564}.project-mes-rates>strong{font-size:12px;text-transform:uppercase;letter-spacing:.08em}.project-mes-rates label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700}.project-mes-rates input{width:70px;min-width:0;min-height:30px;height:30px;padding:3px 6px;border:0;border-bottom:2px solid #8298b7;background:#fff}.project-mes-rates small{color:#64728a}.project-mes-rates>div{display:grid;margin-left:auto;text-align:right;font-size:12px}.project-mes-table-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden}.project-mes-table{width:100%;min-width:1040px;border-collapse:collapse;table-layout:fixed}.project-mes-table col.mes-select-col{width:52px}.project-mes-table col.mes-potential-col{width:245px}.project-mes-table col.mes-quantity-col{width:155px}.project-mes-table col.mes-period-col{width:90px}.project-mes-table col.mes-factor-col{width:205px}.project-mes-table col.mes-rate-col{width:165px}.project-mes-table col.mes-result-col{width:128px}.project-mes-table th{padding:8px;background:#293f76;color:#fff;text-align:left;vertical-align:middle;font-size:11px}.project-mes-table td{height:48px;padding:4px 7px;border-right:1px solid #d2dae5;border-bottom:1px solid #d2dae5;vertical-align:middle;overflow:hidden}.project-mes-table tbody tr:nth-child(even) td{background:#f6f8fb}.project-mes-table tr.selected td{background:#edf6f0}.project-mes-table input,.project-mes-table select{width:100%;min-width:0;min-height:28px;height:28px;padding:2px 5px;border:0;border-bottom:1px solid #91a4bd;background:transparent;font-size:12px}.project-mes-table select{cursor:pointer}.project-mes-table td:first-child{text-align:center}.project-mes-table td:first-child input{width:17px;height:17px;min-height:17px;border:1px solid #91a4bd;accent-color:#d8735e}.project-mes-table label,.project-mes-name,.project-mes-result{display:grid;align-content:center;gap:2px;min-width:0}.project-mes-table span,.project-mes-table small{overflow:hidden;color:#68778d;font-size:9px;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.project-mes-name>div{display:flex;align-items:center;gap:6px;min-width:0}.project-mes-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.project-mes-name button{flex:0 0 auto;border:0;background:#d8735e;color:#fff;padding:4px 6px;font-size:9px;font-weight:700}.project-mes-name-input{font-weight:700}.project-mes-value{grid-template-columns:72px minmax(0,1fr)!important;align-items:center}.project-mes-factor{grid-template-columns:60px minmax(0,1fr)!important;align-items:center;gap:5px!important}.project-mes-value span,.project-mes-factor span{min-width:0}.project-mes-result{text-align:right}.project-mes-result strong{font-size:13px}.project-mes-analysis footer{display:flex;justify-content:flex-end;align-items:center;gap:22px;padding:11px 16px;background:#243b72;color:#fff}.project-mes-analysis footer strong{font-size:22px}.project-mes-analysis footer span{font-size:13px;font-weight:700}
@media(max-width:1000px){.project-mes-rates{align-items:flex-start;flex-direction:column;gap:8px}.project-mes-rates>div{margin-left:0;text-align:left}}
.project-mes-table{width:1065px;min-width:1065px}.project-mes-table col.mes-potential-col{width:235px}.project-mes-table col.mes-quantity-col{width:145px}.project-mes-table col.mes-period-col{width:82px}.project-mes-table col.mes-factor-col{width:190px}.project-mes-table col.mes-rate-col{width:190px}

/* MES-Projekttabelle: ruhige Tabellenfläche ohne Eingabekästchen oder Trennstriche. */
.project-mes-analysis{border:0}
.project-mes-head,.project-mes-rates{border-bottom:0}
.project-mes-rates input,.project-mes-table input,.project-mes-table select{border:0!important;outline:0;background:transparent;box-shadow:none}
.project-mes-table td{height:54px;padding:7px 10px;border:0;vertical-align:middle}
.project-mes-table th{padding:10px;font-size:17px}
.project-mes-table input,.project-mes-table select{height:34px;min-height:34px;padding:3px 4px;font-size:20px;font-weight:600;line-height:1}
.project-mes-table span{font-size:15px;line-height:1}
.project-mes-name strong{font-size:20px;line-height:1}
.project-mes-result strong{font-size:20px;line-height:1}
.project-mes-hours{color:#425675;font-size:20px;font-weight:700;line-height:1;text-align:right}
.project-mes-table col.mes-hours-col{width:105px}
.project-mes-rates{font-size:14px}
.project-mes-rates label{font-size:14px}
.project-mes-rates input{height:34px;min-height:34px;font-size:15px;font-weight:700}
.project-mes-table tbody tr:nth-child(even) td{background:#f2f5f9}
.project-mes-table tr.selected td{background:#e7f1eb}
.project-mes-analysis footer b{font-size:18px}

/* Tabellen nutzen ihre Inhaltsbreite; freie Fensterbreite wird nicht auf Spalten verteilt. */
.project-mes-table,.mes-compact-table,.lever-table{width:max-content}
.project-mes-table th,.project-mes-table td,.mes-compact-table th,.mes-compact-table td,.lever-table th,.lever-table td{vertical-align:middle}

/* Kompakter Tabellenstandard: 24 px Schrift bei 30 px Zeilenhöhe = 80 %. */
.project-mes-table,.mes-compact-table{width:max-content;min-width:0;table-layout:auto}
.project-mes-table th,.project-mes-table td,.mes-compact-table th,.mes-compact-table td{box-sizing:border-box;padding:3px .1em;overflow:visible;white-space:nowrap;text-overflow:clip;vertical-align:middle}
.project-mes-table tbody tr,.mes-compact-table tbody tr{height:30px}
.project-mes-table td,.mes-compact-table td{height:30px;font-size:24px;line-height:1}
.project-mes-table input,.project-mes-table select,.mes-compact-table input,.mes-compact-table select{field-sizing:content;width:auto;min-width:0;height:24px;min-height:24px;padding:0;font-size:24px;line-height:1}
.project-mes-table .project-mes-name strong,.project-mes-table .project-mes-hours,.project-mes-table .project-mes-result strong,.project-mes-table .project-mes-value span,.mes-compact-table .mes-name input,.mes-compact-table .mes-row-number label{font-size:24px;line-height:1}
.project-mes-value,.project-mes-factor{grid-template-columns:max-content max-content!important;gap:.2em!important}
.project-mes-table thead tr,.mes-compact-table thead tr{height:30px}
.project-mes-table th,.mes-compact-table th{height:30px;font-size:24px;line-height:1}

.project-mes-table col{width:auto!important}
.project-mes-table th,.project-mes-table td{width:auto!important;min-width:0!important;max-width:none!important}
.project-mes-name strong,.project-mes-table span,.project-mes-table small{overflow:visible;text-overflow:clip}
#mesPotentialsView,#apsPotentialsView,.mes-potential-page,.mes-table-scroll{width:100%;max-width:100%;min-width:0}.mes-potential-page{overflow:hidden}.mes-table-scroll{overflow-x:auto;overflow-y:hidden}
.mes-potential-page{padding:32px 40px 56px;background:#f4f6f9}.mes-potential-intro{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:22px}.mes-potential-intro h2{margin:4px 0 8px;font-size:32px}.mes-potential-intro p{max-width:980px;margin:0;color:#64728a}.mes-active-count{display:grid;justify-items:end;color:#213a73;white-space:nowrap}.mes-active-count strong{font-size:34px;line-height:1}.mes-active-count span{font-size:13px;margin-top:4px}
.mes-effect-groups{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:18px}.mes-effect-groups article{display:grid;align-content:start;gap:5px;min-height:98px;padding:15px;border-top:4px solid #d8735e;background:#fff;box-shadow:0 1px 2px #20365f12}.mes-effect-groups strong{color:#17356f}.mes-effect-groups span{font-size:13px}.mes-effect-groups small{color:#69778c;line-height:1.35}
.mes-method-note{display:grid;grid-template-columns:180px 1fr;gap:20px;padding:16px 18px;margin-bottom:20px;border-left:4px solid #213a73;background:#e8edf4}.mes-method-note strong{color:#17356f}.mes-method-note span{color:#52637d}
.mes-group-list{display:grid;gap:14px}.mes-group-section{border:1px solid #c7d1e0;background:#fff}.mes-group-section>summary{display:grid;grid-template-columns:minmax(240px,1fr) auto minmax(320px,1.25fr);align-items:center;gap:20px;padding:16px 20px;border-left:5px solid #d8735e;background:#e9edf3;cursor:pointer;list-style:none}.mes-group-section>summary::-webkit-details-marker{display:none}.mes-group-section>summary div{display:grid;gap:3px}.mes-group-section>summary strong{font-size:20px;color:#17356f}.mes-group-section>summary span,.mes-group-section>summary small{color:#65748a}.mes-group-section>summary b{font-size:13px;text-align:right;color:#314b7e}.mes-group-body{display:grid;gap:12px;padding:14px;background:#f6f8fb}
.mes-potential-card{border:1px solid #cbd4e1;background:#fff;box-shadow:0 1px 2px #20365f0d}.mes-potential-card>header{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 16px;border-bottom:1px solid #d5dde8;border-top:3px solid #263f78;background:#f0f3f7}.mes-number{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#263f78;color:#fff;font-weight:800}.mes-function{display:grid;gap:3px}.mes-function>span{font-size:10px;font-weight:800;letter-spacing:.14em;color:#8290a6}.mes-function input{width:100%;padding:0;border:0;background:transparent;color:#17356f;font-size:18px;font-weight:800}.mes-active{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#fff;border:1px solid #bdc8d8;font-weight:700;color:#294273}.mes-active input{width:18px;height:18px;accent-color:#d8735e}
.mes-state-pair{display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);align-items:stretch}.mes-state-pair label{display:grid;gap:7px;padding:14px 16px}.mes-state-pair label>span,.mes-metrics label>span{font-size:10px;font-weight:800;letter-spacing:.1em;color:#78889f}.mes-state-pair textarea{width:100%;min-height:68px;padding:10px 11px;border:1px solid #c8d2df;background:#fff;font:inherit;color:#22395f;resize:vertical}.mes-state-pair .mes-improvement{background:#f0f6f2}.mes-state-pair .mes-improvement textarea{border-color:#a8c7b2}.mes-impact-arrow{display:grid;place-items:center;background:#e9edf3;color:#d8735e;font-size:26px;font-weight:800}
.mes-metrics{display:grid;grid-template-columns:160px minmax(250px,1.45fr) minmax(170px,1fr) minmax(180px,1fr) minmax(170px,1fr);gap:0;border-top:1px solid #d5dde8;background:#fbfcfd}.mes-metrics label{display:grid;align-content:start;gap:6px;padding:12px;border-right:1px solid #d5dde8}.mes-metrics label:last-child{border-right:0}.mes-metrics input,.mes-metrics select,.mes-metrics textarea{width:100%;min-height:38px;padding:8px;border:1px solid #c8d2df;background:#fff;font:inherit;color:#22395f}.mes-metrics textarea{resize:vertical}.mes-savebar{position:sticky;bottom:0;z-index:4;display:flex;justify-content:space-between;align-items:center;margin-top:18px;padding:14px 18px;background:#263f78;color:#fff}.mes-savebar span{font-size:13px}.mes-savebar button{background:#fff;color:#17356f}
@media(max-width:1350px){.mes-effect-groups{grid-template-columns:repeat(3,1fr)}.mes-metrics{grid-template-columns:repeat(2,1fr)}.mes-metrics .mes-kpi{grid-column:span 2}.mes-group-section>summary{grid-template-columns:1fr auto}.mes-group-section>summary b{grid-column:1/-1;text-align:left}}
@media(max-width:850px){.mes-potential-page{padding:24px 18px}.mes-effect-groups{grid-template-columns:1fr}.mes-state-pair{grid-template-columns:1fr}.mes-impact-arrow{height:34px}.mes-metrics{grid-template-columns:1fr}.mes-metrics .mes-kpi{grid-column:auto}.mes-method-note{grid-template-columns:1fr}.mes-savebar{align-items:flex-start;gap:12px;flex-direction:column}}
.mes-potential-page{padding:22px 28px 34px;overflow:hidden}.mes-potential-intro{align-items:center;margin-bottom:14px}.mes-potential-intro h2{font-size:28px;margin-bottom:4px}.mes-potential-intro p{font-size:14px}.mes-active-count strong{font-size:28px}
.mes-intro-actions{display:flex;align-items:center;gap:16px}.mes-intro-actions .secondary{white-space:nowrap}.mes-table-scroll{width:100%;max-width:100%;overflow-x:auto;border:1px solid #bcc8d8;background:#fff}.mes-compact-table{width:100%;min-width:1770px;border-collapse:collapse;table-layout:fixed}.mes-compact-table th{position:sticky;top:0;z-index:2;padding:8px 7px;background:#263f78;border-right:1px solid #ffffff38;color:#fff;font-size:11px;line-height:1.15;text-align:left;vertical-align:middle}.mes-compact-table th:nth-child(1){width:78px;text-align:center}.mes-compact-table th:nth-child(2){width:245px}.mes-compact-table th:nth-child(3),.mes-compact-table th:nth-child(4){width:285px}.mes-compact-table th:nth-child(5){width:92px;text-align:center}.mes-compact-table th:nth-child(6){width:220px}.mes-compact-table th:nth-child(7),.mes-compact-table th:nth-child(9){width:140px}.mes-compact-table th:nth-child(8){width:95px}.mes-compact-table th:nth-child(10){width:155px}.mes-compact-table th:nth-child(11){width:55px}
.mes-compact-table td{height:38px;padding:3px 5px;border-right:1px solid #d3dbe7;border-bottom:1px solid #d3dbe7;vertical-align:middle;background:#fff}.mes-compact-table tbody tr:nth-child(even) td{background:#f5f7fa}.mes-compact-table tbody tr:hover td{background:#eef3f8}.mes-compact-table tr.mes-dragging td{opacity:.45;background:#fff2cf}.mes-compact-table input,.mes-compact-table select{display:block;width:100%;height:30px;min-height:30px;padding:0 5px;border:1px solid transparent;background:transparent;color:#1c355f;font:inherit;font-size:12px;line-height:30px}.mes-compact-table select{line-height:normal}.mes-compact-table input:focus,.mes-compact-table select:focus{outline:0;border-color:#8ca1bf;background:#fff}.mes-improvement-cell{box-shadow:inset 3px 0 #d8735e}.mes-name input{font-weight:700;font-size:12px}.mes-type select{text-align:center;font-weight:700;color:#526683}.mes-row-number label{display:flex;align-items:center;justify-content:center;gap:8px;height:30px;color:#17356f;font-weight:800}.mes-row-number input{display:inline-block;width:16px;height:16px;min-height:16px;padding:0;accent-color:#d8735e}.mes-row-actions{white-space:nowrap;text-align:center}.mes-row-actions button{width:22px;height:28px;padding:0;border:0;background:transparent;color:#243f76;font-weight:800;cursor:pointer}.mes-row-actions [data-mes-drag]{cursor:grab;letter-spacing:-3px}.mes-row-actions [data-mes-delete]{color:#b14f42;font-size:18px}.mes-savebar{position:static;margin-top:10px;padding:9px 13px}.mes-savebar button{padding:7px 13px}

/* Muss nach den Basisklassen stehen: kompakte 80-%-Regel der globalen MES-Tabelle. */
.mes-compact-table{width:max-content;min-width:0;table-layout:auto}
.mes-compact-table tbody tr{height:30px}
.mes-compact-table td{box-sizing:border-box;height:30px;padding:3px 6px;overflow:visible;font-size:15.36px;line-height:1;white-space:nowrap;text-overflow:clip;vertical-align:middle}
.mes-compact-table input,.mes-compact-table select,.mes-compact-table .mes-name input{field-sizing:content;width:auto;min-width:0;height:24px;min-height:24px;padding:0 4px;font-size:15.36px;line-height:1}
.mes-compact-table .mes-row-number label{height:24px;padding:0 4px;font-size:15.36px;line-height:1}
.mes-compact-table thead tr{height:30px}
.mes-compact-table th{box-sizing:border-box;height:30px;padding:3px 6px;font-size:15.36px;line-height:1;white-space:nowrap;vertical-align:middle}
.mes-compact-table th,.mes-compact-table td{width:auto!important;min-width:0!important;max-width:none!important}
.mes-compact-table thead th:first-child{position:sticky;left:0;z-index:7;width:96px!important;min-width:96px!important;max-width:96px!important;background:#263f78;box-shadow:none}
.mes-compact-table tbody td:first-child{position:sticky;left:0;z-index:4;width:96px!important;min-width:96px!important;max-width:96px!important;box-shadow:none}
.mes-compact-table thead th:nth-child(2){position:sticky;left:96px;z-index:7;background:#263f78;box-shadow:4px 0 5px -4px #243b7277}
.mes-compact-table tbody td:nth-child(2){position:sticky;left:96px;z-index:4;box-shadow:4px 0 5px -4px #243b7255}

/* Projektassessment Stellhebel: ruhige Farbzellen, größere Zahlen ohne höhere Zeilen. */
.lever-table input[data-lever-quantity],.lever-table input[data-lever-effort],.lever-table input[data-project-complexity]{box-shadow:none!important}
.lever-table tbody td,.lever-table tfoot .quantity-total td{font-size:1.3em;line-height:1}
.lever-table tbody td input,.lever-table tfoot .quantity-total td input{font-size:1em;line-height:1}

/* Alle Zellen einer Tabellenkopfzeile müssen dieselbe obere Randstärke besitzen. */
.lever-table thead tr:first-child>th:not(.process-heading){border-top:6px solid var(--navy)}

/* Projekt-Stellhebeltabelle: Ausprägung und Erläuterung getrennt, Zahlen kompakt. */
.lever-table .lever-variant-col{width:380px}
.lever-table .lever-description-col{width:460px}
.lever-table .lever-quantity-col{width:82px}
.lever-table .lever-percent-col{width:58px}
.lever-table .lever-effort-col,.lever-table .lever-total-col{width:94px}
.lever-table .lever-money-col{width:104px}
.lever-table .variant-heading{width:380px!important;min-width:380px!important;max-width:380px!important}
.lever-table .description-heading{width:460px!important;min-width:460px!important;max-width:460px!important;text-align:left}
.lever-table tbody th.variant-title{width:380px;min-width:380px;max-width:380px;font-size:1.3em;line-height:1.1;vertical-align:middle}
.lever-table tbody td.variant-description{width:460px!important;min-width:460px!important;max-width:460px!important;background:#f7f9fb!important;color:var(--muted);font-size:1em;line-height:1.15;text-align:left;white-space:normal;overflow-wrap:break-word;vertical-align:middle}
.lever-table tbody td:nth-child(3),.lever-table tbody td:nth-child(5){width:82px;min-width:82px;max-width:82px;background:#eef5fb}
.lever-table tbody td:nth-child(4),.lever-table tbody td:nth-child(6){width:58px;min-width:58px;max-width:58px;background:#f7fafc}
.lever-table tbody td:nth-child(5){background:#edf8f2}
.lever-table tbody td:nth-child(n+7){width:94px;min-width:94px;max-width:94px}
.lever-table tfoot input[data-lever-rate]{width:100%;height:32px;min-height:32px;border:0;border-radius:0;padding:3px 7px;font-size:21px;line-height:1;font-weight:800;text-align:right;box-shadow:none}
.lever-table tfoot input[data-lever-rate$=":personRate"]{background:#eef5fb}
.lever-table tfoot input[data-lever-rate$=":machineRate"]{background:#fff7e6}

/* Zahlen und zugehörige Zeichen bleiben in sämtlichen Fachtabellen ungeteilt. */
.lever-table tbody td:not(.variant-description),.lever-table tfoot th,.lever-table tfoot td,.lever-header-total,.project-lever>footer strong,.optimization-grand-total strong{white-space:nowrap}
.project-mes-table td,.project-mes-table th,.mes-compact-table td,.mes-compact-table th{white-space:nowrap}

/* Die beiden fachlichen Leitspalten bleiben beim horizontalen Scrollen sichtbar. */
.lever-table .variant-heading,.lever-table tbody th.variant-title,.lever-table tfoot th:first-child{position:sticky;left:0;z-index:4}
.lever-table .description-heading,.lever-table tbody td.variant-description,.lever-table tfoot tr>td:nth-child(2){position:sticky;left:380px;z-index:3}
.lever-table thead .variant-heading,.lever-table thead .description-heading{z-index:7;background:var(--navy)}
.lever-table tbody th.variant-title{background:#f7f9fb}
.lever-table tfoot .quantity-total th:first-child,.lever-table tfoot .quantity-total td:nth-child(2){background:var(--navy)}
.lever-table tfoot .rate-row th:first-child,.lever-table tfoot .rate-row td:nth-child(2){background:#fff}
.lever-table .description-heading,.lever-table tbody td.variant-description,.lever-table tfoot tr>td:nth-child(2){box-shadow:4px 0 5px -4px #243b7266}

/* Projekttabelle MES: gleiche visuelle Logik wie die Stellhebelbewertung. */
.project-mes-analysis{border:1px solid #c4cfdb;background:#fff}
.project-mes-head{padding:14px 16px;border-bottom:1px solid #c4cfdb;background:#fff}
.project-mes-rates{min-height:58px;padding:9px 14px;border-bottom:1px solid #c4cfdb;background:#eaf0f6}
.project-mes-rates>strong{font-size:13px;color:var(--navy)}
.project-mes-rates label{gap:8px;font-size:14px;color:var(--navy)}
.project-mes-rates input{width:86px;height:34px;min-height:34px;padding:3px 8px;border:0!important;font-size:20px;font-weight:800;line-height:1;text-align:right;box-shadow:none}
.project-mes-rates label:nth-of-type(1) input{background:#eef5fb}
.project-mes-rates label:nth-of-type(2) input{background:#fff7e6}
.project-mes-table{width:1485px;min-width:1485px;max-width:1485px;border-collapse:collapse;table-layout:fixed}
.project-mes-table col.mes-select-col{width:58px!important}
.project-mes-table col.mes-potential-col{width:340px!important}
.project-mes-table col.mes-quantity-col{width:235px!important}
.project-mes-table col.mes-period-col{width:115px!important}
.project-mes-table col.mes-factor-col{width:230px!important}
.project-mes-table col.mes-rate-col{width:225px!important}
.project-mes-table col.mes-hours-col{width:125px!important}
.project-mes-table col.mes-result-col{width:157px!important}
.project-mes-table thead tr{height:42px}
.project-mes-table th{position:static;width:auto!important;min-width:0!important;max-width:none!important;height:42px;padding:6px 9px;border:1px solid #c4cfdb;background:var(--navy);color:#fff;font-size:14px;line-height:1.05;text-align:center;vertical-align:middle;white-space:nowrap}
.project-mes-table th:nth-child(2),.project-mes-table th:nth-child(3){text-align:left}
.project-mes-table tbody tr{height:50px}
.project-mes-table td{box-sizing:border-box;width:auto!important;min-width:0!important;max-width:none!important;height:50px;padding:5px 9px;border:1px solid #c4cfdb;background:#fff;font-size:20px;line-height:1.05;vertical-align:middle;overflow:hidden;white-space:nowrap}
.project-mes-table tbody tr:nth-child(even) td{background:#f7f9fb}
.project-mes-table tr.selected td{background:#fff}
.project-mes-table tr.selected:nth-child(even) td{background:#f7f9fb}
.project-mes-table td:nth-child(3){background:#eef5fb!important}
.project-mes-table td:nth-child(5){background:#fff7e6!important}
.project-mes-table td:nth-child(4),.project-mes-table td:nth-child(6){background:#f7fafc!important}
.project-mes-table tr.selected td:first-child{background:#edf8f2!important}
.project-mes-table input,.project-mes-table select{box-sizing:border-box;display:block;width:100%;min-width:0;height:32px;min-height:32px;padding:2px 6px;border:0!important;background:transparent;font-size:20px;font-weight:700;line-height:1;outline:0;box-shadow:none}
.project-mes-table input:focus,.project-mes-table select:focus{background:#fff;outline:2px solid #6e91b5;outline-offset:-2px}
.project-mes-table td:nth-child(5) input:focus,.project-mes-table td:nth-child(5) select:focus{outline-color:#c68d2c}
.project-mes-table td:first-child{text-align:center}
.project-mes-table td:first-child input{display:inline-block;width:20px;height:20px;min-height:20px;padding:0;accent-color:var(--coral)}
.project-mes-table .project-mes-name strong,.project-mes-table .project-mes-name-input{display:block;overflow:hidden;font-size:20px;line-height:1.05;text-overflow:ellipsis;white-space:nowrap}
.project-mes-table .project-mes-value,.project-mes-table .project-mes-factor{display:grid!important;align-items:center;gap:9px!important}
.project-mes-table .project-mes-value{grid-template-columns:70px minmax(0,1fr)!important}
.project-mes-table .project-mes-factor{grid-template-columns:72px minmax(0,1fr)!important}
.project-mes-table .project-mes-value input,.project-mes-table .project-mes-factor input{text-align:right}
.project-mes-table .project-mes-value span{overflow:hidden;color:#68778d;font-size:17px;line-height:1.05;text-overflow:ellipsis;white-space:nowrap}
.project-mes-table .project-mes-hours,.project-mes-table .project-mes-result{text-align:right;font-size:20px;font-weight:700}
.project-mes-table .project-mes-result strong{font-size:20px;line-height:1;white-space:nowrap}
.project-mes-analysis footer{min-height:58px;padding:12px 16px;border-top:0;background:var(--navy);color:#fff}
.project-mes-analysis footer span{font-size:15px}.project-mes-analysis footer b{font-size:20px}.project-mes-analysis footer strong{font-size:25px}

/* Gruppierte MES-Stammdaten: Gruppen bleiben über die gesamte Tabellenbreite sichtbar. */
.mes-compact-table .mes-group-header td{position:static!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;height:42px;padding:0!important;border:1px solid #aebbd0!important;background:#e8edf4!important;box-shadow:inset 4px 0 var(--coral)!important}
.mes-group-header button{display:flex;width:100%;height:41px;align-items:center;gap:12px;padding:0 14px;border:0;background:transparent;color:var(--navy);font-size:16px;text-align:left;cursor:pointer}
.mes-group-header button span{width:16px;font-size:12px;text-align:center}
.mes-group-header button strong{font-size:16px}
.mes-group-header button small{margin-left:auto;color:#68778d;font-size:13px;font-weight:600}
.mes-group-header.mes-drop-target td{background:#fff3df!important}

/* MES-Projekt: konsistente Rasterlinien und kompakte Rechenspalten. */
.project-mes-analysis,.project-mes-head,.project-mes-rates,.project-mes-table-scroll,.project-mes-analysis footer{width:2080px;max-width:100%}
.project-mes-table{width:2080px;min-width:2080px;max-width:2080px;border:1px solid #c4cfdb;border-collapse:collapse}
.project-mes-table col.mes-select-col{width:70px!important}
.project-mes-table col.mes-potential-col{width:500px!important}
.project-mes-table col.mes-quantity-col{width:390px!important}
.project-mes-table col.mes-period-col{width:170px!important}
.project-mes-table col.mes-factor-col{width:260px!important}
.project-mes-table col.mes-rate-col{width:350px!important}
.project-mes-table col.mes-hours-col{width:150px!important}
.project-mes-table col.mes-result-col{width:190px!important}
.project-mes-table th,.project-mes-table td{border:1px solid #c4cfdb!important}
.project-mes-table td:nth-child(4) select,.project-mes-table td:nth-child(6) select{font-weight:400}
.project-mes-table td:nth-child(5) input{font-weight:700;text-align:right}

/* Finale MES-Projektregeln – müssen nach sämtlichen historischen Definitionen stehen. */
.project-mes-analysis{width:2400px;max-width:100%}
.project-mes-head,.project-mes-rates,.project-mes-table-scroll,.project-mes-analysis footer{box-sizing:border-box;width:2400px;max-width:100%}
.project-mes-table{width:2400px;min-width:2400px;max-width:2400px;table-layout:fixed}
.project-mes-table col.mes-select-col{width:70px!important}
.project-mes-table col.mes-potential-col{width:500px!important}
.project-mes-table col.mes-quantity-col{width:390px!important}
.project-mes-table col.mes-period-col{width:170px!important}
.project-mes-table col.mes-factor-col{width:380px!important}
.project-mes-table col.mes-rate-col{width:350px!important}
.project-mes-table col.mes-hours-col{width:220px!important}
.project-mes-table col.mes-result-col{width:320px!important}
.project-mes-table thead tr,.project-mes-table th{height:48px}
.project-mes-table th{padding:6px 10px;font-size:18px;line-height:1}
.project-mes-table tbody tr,.project-mes-table td{height:34px!important;min-height:0!important}
.project-mes-table td{padding:0 10px!important;font-size:24px;line-height:1}
.project-mes-table input,.project-mes-table select{height:30px!important;min-height:30px!important;padding:0 7px!important;font-size:24px;line-height:1}
.project-mes-table td:first-child input{height:20px!important;min-height:20px!important;padding:0!important}
.project-mes-table .project-mes-name strong,.project-mes-table .project-mes-name-input,.project-mes-table .project-mes-hours,.project-mes-table .project-mes-result strong{font-size:24px}
.project-mes-table .project-mes-value span{font-size:20px}
.project-mes-analysis footer{min-height:54px;padding:10px 16px}

/* Verbindliche MES-Projektproportionen: lesbare Arbeitsbreite statt Miniaturdarstellung. */
.project-mes-analysis{width:2080px;max-width:100%;border:1px solid #c4cfdb;background:#fff}
.project-mes-head,.project-mes-rates,.project-mes-table-scroll,.project-mes-analysis footer{box-sizing:border-box;width:2080px;max-width:100%}
.project-mes-table{width:2080px;min-width:2080px;max-width:2080px;table-layout:fixed}
.project-mes-table col.mes-select-col{width:70px!important}
.project-mes-table col.mes-potential-col{width:500px!important}
.project-mes-table col.mes-quantity-col{width:390px!important}
.project-mes-table col.mes-period-col{width:170px!important}
.project-mes-table col.mes-factor-col{width:260px!important}
.project-mes-table col.mes-rate-col{width:350px!important}
.project-mes-table col.mes-hours-col{width:150px!important}
.project-mes-table col.mes-result-col{width:190px!important}
.project-mes-table thead tr,.project-mes-table th{height:48px}
.project-mes-table th{padding:6px 10px;font-size:18px;line-height:1}
.project-mes-table tbody tr,.project-mes-table td{height:34px}
.project-mes-table td{padding:0 10px;font-size:24px;line-height:1}
.project-mes-table input,.project-mes-table select{height:30px;min-height:30px;padding:0 7px;font-size:24px;line-height:1}
.project-mes-table .project-mes-name strong,.project-mes-table .project-mes-name-input,.project-mes-table .project-mes-hours,.project-mes-table .project-mes-result strong{font-size:24px}
.project-mes-table .project-mes-value span{font-size:20px}
.project-mes-analysis footer{min-height:54px;padding:10px 16px}

/* Projekttabelle MES: gleiche visuelle Logik wie die Stellhebelbewertung. */
.project-mes-analysis{border:1px solid #c4cfdb;background:#fff}
.project-mes-head{padding:14px 16px;border-bottom:1px solid #c4cfdb;background:#fff}
.project-mes-rates{min-height:58px;padding:9px 14px;border-bottom:1px solid #c4cfdb;background:#eaf0f6}
.project-mes-rates>strong{font-size:13px;color:var(--navy)}
.project-mes-rates label{gap:8px;font-size:14px;color:var(--navy)}
.project-mes-rates input{width:86px;height:34px;min-height:34px;padding:3px 8px;border:0!important;font-size:20px;font-weight:800;line-height:1;text-align:right;box-shadow:none}
.project-mes-rates label:nth-of-type(1) input{background:#eef5fb}
.project-mes-rates label:nth-of-type(2) input{background:#fff7e6}
.project-mes-table{width:2080px;min-width:2080px;max-width:2080px;border:1px solid #c4cfdb;border-collapse:collapse;table-layout:fixed}
.project-mes-table col.mes-select-col{width:70px!important}
.project-mes-table col.mes-potential-col{width:500px!important}
.project-mes-table col.mes-quantity-col{width:390px!important}
.project-mes-table col.mes-period-col{width:170px!important}
.project-mes-table col.mes-factor-col{width:260px!important}
.project-mes-table col.mes-rate-col{width:350px!important}
.project-mes-table col.mes-hours-col{width:150px!important}
.project-mes-table col.mes-result-col{width:190px!important}
.project-mes-table thead tr{height:48px}
.project-mes-table th{position:static;width:auto!important;min-width:0!important;max-width:none!important;height:48px;padding:8px 10px;border:1px solid #c4cfdb!important;background:var(--navy);color:#fff;font-size:15px;line-height:1.05;text-align:center;vertical-align:middle;white-space:nowrap}
.project-mes-table th:nth-child(2),.project-mes-table th:nth-child(3){text-align:left}
.project-mes-table tbody tr{height:34px}
.project-mes-table td{box-sizing:border-box;width:auto!important;min-width:0!important;max-width:none!important;height:34px;padding:0 10px;border:1px solid #c4cfdb!important;background:#fff;font-size:24px;line-height:1;vertical-align:middle;overflow:hidden;white-space:nowrap}
.project-mes-table tbody tr:nth-child(even) td{background:#f7f9fb}
.project-mes-table tr.selected td{background:#fff}
.project-mes-table tr.selected:nth-child(even) td{background:#f7f9fb}
.project-mes-table td:nth-child(3){background:#eef5fb!important}
.project-mes-table td:nth-child(5){background:#fff7e6!important}
.project-mes-table td:nth-child(4),.project-mes-table td:nth-child(6){background:#f7fafc!important}
.project-mes-table tr.selected td:first-child{background:#edf8f2!important}
.project-mes-table input,.project-mes-table select{box-sizing:border-box;display:block;width:100%;min-width:0;height:30px;min-height:30px;padding:0 7px;border:0!important;background:transparent;font-size:24px;font-weight:700;line-height:1;outline:0;box-shadow:none}
.project-mes-table input:focus,.project-mes-table select:focus{background:#fff;outline:2px solid #6e91b5;outline-offset:-2px}
.project-mes-table td:nth-child(5) input:focus,.project-mes-table td:nth-child(5) select:focus{outline-color:#c68d2c}
.project-mes-table td:first-child{text-align:center}
.project-mes-table td:first-child input{display:inline-block;width:20px;height:20px;min-height:20px;padding:0;accent-color:var(--coral)}
.project-mes-table .project-mes-name strong,.project-mes-table .project-mes-name-input{display:block;overflow:hidden;font-size:24px;line-height:1;text-overflow:ellipsis;white-space:nowrap}
.project-mes-table .project-mes-value,.project-mes-table .project-mes-factor{display:grid!important;align-items:center;gap:9px!important}
.project-mes-table .project-mes-value{grid-template-columns:70px minmax(0,1fr)!important}
.project-mes-table .project-mes-factor{grid-template-columns:72px minmax(0,1fr)!important}
.project-mes-table .project-mes-value input,.project-mes-table .project-mes-factor input{text-align:right}
.project-mes-table .project-mes-value span{overflow:hidden;color:#68778d;font-size:20px;line-height:1;text-overflow:ellipsis;white-space:nowrap}
.project-mes-table .project-mes-hours,.project-mes-table .project-mes-result{text-align:right;font-size:24px;font-weight:700}
.project-mes-table .project-mes-result strong{font-size:24px;line-height:1;white-space:nowrap}
.project-mes-table td:nth-child(4) select,.project-mes-table td:nth-child(6) select{font-weight:400}
.project-mes-table td:nth-child(5) input{font-weight:700;text-align:right}
.project-mes-analysis footer{min-height:58px;padding:12px 16px;border-top:0;background:var(--navy);color:#fff}
.project-mes-analysis footer span{font-size:15px}.project-mes-analysis footer b{font-size:20px}.project-mes-analysis footer strong{font-size:25px}

/* MES-Projekt: Gruppenabschnitte wie in der globalen Tabelle (Optimierung bei ...). */
.project-mes-table tbody.project-mes-group{border:0}
.project-mes-table .project-mes-group-header td{width:auto!important;min-width:0!important;max-width:none!important;height:44px!important;padding:0 16px!important;border:1px solid #aebbd0!important;background:#e8edf4!important;box-shadow:inset 4px 0 var(--coral);text-align:left;vertical-align:middle;white-space:nowrap;overflow:hidden}
.project-mes-table .project-mes-group-header strong{font-size:18px;line-height:1;color:var(--navy)}
.project-mes-table .project-mes-group-header small{margin-left:12px;font-size:14px;font-weight:600;color:#68778d}

/* ===== MES-Potentialanalyse v2 (Kennzahlen, Maschinen, gruppenbasierte Potentiale) ===== */
.project-mes-analysis{width:100%;min-width:0;max-width:100%;border:1px solid #c4cfdb;background:#fff}
.mes-base,.mes-machines{min-width:0;max-width:100%;padding:14px 16px;border-top:1px solid #c4cfdb}
.mes-base-head{display:flex;align-items:baseline;gap:12px;margin-bottom:10px}
.mes-base-head small{color:#68778d;font-size:13px}
.mes-base-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.mes-base-field{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:8px 10px;border:1px solid #d3dbe6;border-radius:6px;background:#f7f9fb}
.mes-base-field>span{flex:1 1 100%;min-width:0;color:var(--navy);font-size:13px;font-weight:600}
.mes-base-field input{width:110px;min-width:0;height:32px;padding:2px 8px;border:1px solid #c4cfdb;border-radius:4px;background:#fff;font-size:17px;font-weight:700;text-align:right}
.mes-base-field select{height:32px;min-width:0;padding:2px 6px;border:1px solid #c4cfdb;border-radius:4px;background:#fff;font-size:14px}
.mes-base-field small{color:#68778d;font-size:13px;white-space:nowrap}
.mes-base-constants{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:12px;padding:10px 12px;border:1px dashed #c4cfdb;border-radius:6px;background:#eef3f8}
.mes-base-constants>strong{color:var(--navy);font-size:13px}
.mes-param-field{flex:0 0 auto;padding:6px 8px;background:#fff}
.mes-param-field input{width:78px}
.mes-empty{color:#68778d;font-size:14px}
.mes-machine-list{display:flex;flex-direction:column;gap:8px}
.mes-machine-step{border:1px solid #d3dbe6;border-radius:6px;background:#f7f9fb;overflow:hidden}
.mes-machine-step.is-machine{border-color:#b7c6a8;background:#f0f6ea}
.mes-machine-toggle{display:flex;align-items:center;gap:10px;padding:8px 12px;cursor:pointer}
.mes-machine-toggle input{width:18px;height:18px;accent-color:var(--coral)}
.mes-machine-symbol{width:20px;font-size:16px;color:#9aa8bd;text-align:center}
.mes-machine-step.is-machine .mes-machine-symbol{color:#3f7d2f}
.mes-machine-toggle strong{min-width:0;overflow:hidden;color:var(--navy);font-size:16px;text-overflow:ellipsis;white-space:nowrap}
.mes-machine-detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;padding:0 12px 12px 42px}
.mes-machine-detail label{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.mes-machine-detail label>span{flex:1 1 100%;color:var(--navy);font-size:13px;font-weight:600}
.mes-machine-detail input,.mes-machine-detail select{height:32px;min-width:0;padding:2px 8px;border:1px solid #c4cfdb;border-radius:4px;background:#fff;font-size:16px;font-weight:700}
.mes-machine-detail input[type=number]{width:110px;text-align:right}
.mes-machine-detail small{color:#68778d;font-size:13px}
.mes-machine-avail input{background:#fff7e6}
.mes-machine-avail>span{color:#8a5b12!important}
.mes-pot-block{display:grid;width:fit-content;min-width:0;max-width:100%}
.mes-pot-scroll{width:100%;min-width:0;max-width:100%;overflow-x:auto;border-top:1px solid #c4cfdb}
.mes-pot-table{width:100%;min-width:720px;border-collapse:collapse;table-layout:fixed}
.mes-pot-table col.mes-pot-nr{width:56px}
.mes-pot-table col.mes-pot-field{width:280px}
.mes-pot-table col.mes-pot-result{width:150px}
.mes-pot-table th{padding:8px 10px;border:1px solid #c4cfdb;background:var(--navy);color:#fff;font-size:14px;text-align:left;vertical-align:middle;white-space:nowrap}
.mes-pot-table th:last-child{text-align:right}
.mes-pot-group-header td{padding:8px 12px;border:1px solid #aebbd0;background:#e8edf4;box-shadow:inset 4px 0 var(--coral);vertical-align:middle}
.mes-pot-group-name strong{color:var(--navy);font-size:16px}
.mes-pot-group-name small{margin-left:10px;color:#68778d;font-size:13px;font-weight:600}
.mes-pot-group-field{width:280px}
.mes-group-input input{width:100%;min-width:0;height:34px;padding:2px 10px;border:1px solid #c4cfdb;border-radius:4px;background:#eef1f5;color:var(--navy);font-size:16px;font-weight:700;text-align:right}
.mes-group-input input::placeholder{color:#8794a8;font-weight:600;font-style:italic}
.mes-group-input.machine em{color:#68778d;font-size:13px}
.mes-pot-group-result{text-align:right;color:var(--navy);font-size:18px;font-weight:800;white-space:nowrap}
.mes-info-row td{padding:5px 10px;border:1px solid #dfe5ee;background:#fff;font-size:14px;color:#3d4a60;vertical-align:middle}
.mes-info-row td.mes-info-nr{color:#8794a8;font-variant-numeric:tabular-nums;text-align:center}
.mes-info-row td.mes-info-name{font-weight:700;color:var(--navy)}
.mes-info-row:nth-child(even) td{background:#f7f9fb}
.mes-info-empty td{color:#8794a8;font-style:italic}
.mes-pot-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:12px 16px;background:var(--navy);color:#fff}
.mes-pot-footer span{font-size:15px}
.mes-pot-footer strong{font-size:26px;white-space:nowrap}
/* ⚙-Badge auf den Wertstrom-Boxen */
.project-flow-card.has-machine{box-shadow:0 0 0 2px #3f7d2f inset}
.flow-machine-badge{position:absolute;top:7px;right:34px;font-size:13px;color:#3f7d2f;line-height:1}
.project-flow-card{position:relative}
.project-flow-card.analysis-clickable{cursor:pointer}
.project-flow-card.analysis-clickable:hover{outline:2px solid var(--coral);outline-offset:-2px}
.step-analysis-badge{position:absolute;top:5px;right:5px;width:22px;height:22px;min-height:0;padding:0;border:1px solid #aebbc9;border-radius:2px;background:#f8fafc;color:var(--navy);font-family:Georgia,serif;font-size:14px;font-style:italic;font-weight:700;line-height:20px;text-align:center;z-index:2}
.step-analysis-badge:hover,.step-analysis-badge:focus-visible{border-color:var(--navy);background:#e8edf5;outline:none}.step-analysis-badge.has-entries{border-color:#d45f49;background:#d86f59;color:#fff;box-shadow:0 0 0 2px rgba(216,111,89,.2);font-style:normal}
.step-analysis-backdrop{position:fixed;inset:0;background:#102d5845;z-index:300}
.step-analysis-drawer{position:fixed;top:0;right:0;bottom:0;width:min(760px,92vw);min-width:0;max-width:100%;display:flex;flex-direction:column;background:#f5f7fa;border-left:1px solid #aebbc9;box-shadow:-12px 0 30px #102d5830;z-index:301}
.step-analysis-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;background:var(--navy);color:#fff}.step-analysis-head h2{margin:3px 0;font-size:24px}.step-analysis-head p{margin:0;color:#dbe3ef}.step-analysis-head .panel-label{color:#b9c7d8}.step-analysis-head>button{width:38px;height:38px;border:1px solid #8293b0;background:#ffffff16;color:#fff;font-size:24px}
.step-analysis-body{min-width:0;overflow-y:auto;padding:14px;display:grid;gap:12px}.step-analysis-section{min-width:0;border:1px solid #c4cfdb;background:#fff}.step-analysis-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#e8edf5;border-bottom:1px solid #c4cfdb}.step-analysis-section h3{margin:2px 0 0;color:var(--navy);font-size:18px}
.step-note-list{display:grid;gap:9px;padding:10px}.step-note-empty{margin:0;padding:10px;color:#68778d;text-align:center}.step-note-entry{border:1px solid #d3dbe6;background:#f9fafc}.step-note-entry>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;background:#f0f3f7;border-bottom:1px solid #d3dbe6}.step-note-entry>header button{width:28px;height:28px;border:1px solid #c4cfdb;background:#fff;color:#8a3428;font-size:18px}
.step-note-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:9px}.step-note-form label{min-width:0;display:grid;gap:3px}.step-note-form label>span{color:#4e5d73;font-size:11px;font-weight:700}.step-note-form input,.step-note-form select,.step-note-form textarea{width:100%;min-width:0;padding:6px 8px;border:1px solid #c4cfdb;background:#fff;color:var(--navy);font:inherit}.step-note-form textarea{resize:vertical}.step-note-form label:has(textarea){grid-column:1/-1}.step-report-check{grid-column:1/-1!important;display:flex!important;align-items:center;gap:7px}.step-report-check input{width:17px;height:17px}.step-report-check span{font-size:12px!important}
@media(max-width:640px){.step-note-form{grid-template-columns:1fr}}
.business-case-page{min-width:0;max-width:100%;margin-top:16px;border:1px solid #c4cfdb;background:#fff}.bc-intro{padding:16px 18px;border-bottom:1px solid #c4cfdb}.bc-intro h2{margin:4px 0;color:var(--navy);font-size:26px}.bc-intro p{max-width:1100px;margin:0;color:#68778d}
.bc-settings{border-bottom:1px solid #c4cfdb}.bc-settings>header,.bc-rollout>header{padding:10px 14px 4px;background:#e8edf5}.bc-settings h3,.bc-rollout h3{margin:2px 0;color:var(--navy);font-size:17px}.bc-settings>div{display:flex;flex-wrap:wrap;gap:8px;padding:9px 14px 12px;background:#f7f9fb}.bc-settings label{display:flex;align-items:center;gap:6px;min-height:34px;padding:3px 7px;border:1px solid #cbd5e1;background:#fff}.bc-settings label span{font-size:12px;font-weight:700}.bc-settings input{width:105px;min-width:0;border:1px solid #c4cfdb;padding:4px 6px;text-align:right;font-weight:700}.bc-settings input[type=month]{width:132px;text-align:left}.bc-settings i{font-size:12px;font-style:normal;color:#68778d}
.bc-kpis{display:grid;grid-template-columns:repeat(6,minmax(140px,1fr));gap:1px;background:#c4cfdb;border-bottom:1px solid #c4cfdb}.bc-kpis>div{display:grid;gap:3px;padding:11px 13px;background:#f7f9fb}.bc-kpis span{color:#68778d;font-size:11px;font-weight:700}.bc-kpis strong{color:var(--navy);font-size:19px;font-variant-numeric:tabular-nums;white-space:nowrap}
.bc-table-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto}.bc-table,.bc-site-table{width:max-content;min-width:0;max-width:none;border-collapse:collapse;table-layout:auto}.bc-table th,.bc-table td,.bc-site-table th,.bc-site-table td{padding:6px 9px;border:1px solid #d3dbe6;vertical-align:middle}.bc-table thead th,.bc-site-table thead th{background:var(--navy);color:#fff;text-align:right;white-space:nowrap}.bc-table thead th:first-child,.bc-site-table thead th:first-child{text-align:left}.bc-table tbody th,.bc-site-table tbody th{text-align:left;background:#f3f6f9}.bc-table td,.bc-site-table td{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.bc-table th:first-child{width:180px;min-width:180px}.bc-table td,.bc-table thead th:not(:first-child){width:125px;min-width:125px}.bc-site-table th:first-child{min-width:150px}.bc-site-table th,.bc-site-table td{min-width:105px}.bc-site-table th:nth-child(3),.bc-site-table th:nth-child(4),.bc-site-table td:nth-child(3),.bc-site-table td:nth-child(4){min-width:120px}.bc-summary-row th,.bc-summary-row td{background:#f3f6f9;font-weight:800}.bc-summary-row th{white-space:nowrap}.bc-summary-row button{width:24px;margin-right:7px;vertical-align:middle;height:24px;padding:0;border:1px solid #aebbc9;background:#fff;color:var(--navy);font-size:13px;line-height:22px}.bc-site-detail th,.bc-site-detail td{background:#fff;color:#4e5d73;font-size:12px}.bc-site-detail th{padding-left:40px!important;font-weight:600}.bc-table .bc-result th,.bc-table .bc-result td{background:#e2e9f4;color:var(--navy);font-weight:800}.bc-rollout{border-top:12px solid #f5f7fa}.bc-site-table{font-size:13px}
@media(max-width:1200px){.bc-kpis{grid-template-columns:repeat(3,minmax(140px,1fr))}}@media(max-width:700px){.bc-kpis{grid-template-columns:repeat(2,minmax(130px,1fr))}}
.bc-company-scaling{display:grid!important;grid-template-columns:max-content max-content max-content minmax(260px,1fr);align-items:center}.bc-company-scaling .bc-check{height:34px}.bc-company-scaling .bc-check input{width:16px;height:16px;min-height:16px;margin:0;accent-color:var(--coral)}.bc-company-scaling>p{min-width:0;margin:0;padding:0 4px;color:#68778d;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
@media(max-width:1100px){.bc-company-scaling{grid-template-columns:repeat(2,minmax(220px,1fr))}.bc-company-scaling>p{grid-column:1/-1}}
/* Globale MES-Tabelle: editierbare Überschriften & Gruppenköpfe */
.mes-compact-table thead .mes-header-input{width:100%;min-width:0;height:auto;padding:2px 4px;border:1px solid transparent;border-radius:3px;background:transparent;color:#fff;font-size:15.36px;font-weight:700;line-height:1.15}
.mes-compact-table thead .mes-header-input::placeholder{color:#ffffffaa}
.mes-compact-table thead .mes-header-input:hover{border-color:#ffffff55}
.mes-compact-table thead .mes-header-input:focus{border-color:#fff;background:#16305c;color:#fff;outline:0}
.mes-group-head-row{display:flex;align-items:center;gap:10px;width:100%;min-width:0}
.mes-group-head-row>button{flex:0 0 auto;width:28px;height:28px;border:0;background:transparent;color:var(--navy);font-size:12px;cursor:pointer}
.mes-group-name-input{flex:1 1 auto;min-width:0;height:30px;padding:2px 8px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--navy);font-size:16px;font-weight:700}
.mes-group-name-input:hover{border-color:#aebbd0}
.mes-group-name-input:focus{border-color:var(--navy);background:#fff;outline:0}
.mes-group-field-label{flex:0 0 auto;display:flex;align-items:center;gap:6px;color:#68778d;font-size:12px;font-weight:600}
.mes-group-field-label input{width:190px;min-width:0;height:28px;padding:2px 8px;border:1px solid #c4cfdb;border-radius:4px;background:#eef1f5;color:var(--navy);font-size:13px;font-weight:700}
.mes-group-head-row>small{flex:0 0 auto;color:#68778d;font-size:13px;font-weight:600;white-space:nowrap}

/* Globale MES-Stammdaten: volle Containerbreite, lange Aussagen duerfen umbrechen. */
.mes-master-table{width:100%;min-width:1180px;table-layout:fixed}
.mes-master-table th:nth-child(1){width:96px!important}
.mes-master-table th:nth-child(2){width:14%!important}
.mes-master-table th:nth-child(3){width:18%!important}
.mes-master-table th:nth-child(4){width:20%!important}
.mes-master-table th:nth-child(5){width:18%!important}
.mes-master-table th:nth-child(6){width:260px!important}
.mes-master-table th:nth-child(7){width:56px!important}
.mes-master-table td:nth-child(2){width:14%!important}
.mes-master-table td:nth-child(3){width:18%!important}
.mes-master-table td:nth-child(4){width:20%!important}
.mes-master-table td:nth-child(5){width:18%!important}
.mes-master-table td:nth-child(6){width:260px!important}
.mes-master-table td:nth-child(7){width:56px!important}
.mes-master-table textarea,.aps-compact-table textarea{display:block;field-sizing:content;width:100%;min-width:0;min-height:24px;padding:2px 4px;resize:none;overflow:hidden;border:1px solid transparent;background:transparent;color:#1c355f;font:inherit;font-size:15.36px;line-height:1.2;white-space:normal}
.mes-master-table textarea:focus,.aps-compact-table textarea:focus{outline:0;border-color:#8ca1bf;background:#fff}
.mes-master-table td:nth-child(3),.mes-master-table td:nth-child(4),.mes-master-table td:nth-child(5){white-space:normal}
.mes-master-table .mes-master-group-header td{height:42px!important;background:#e8edf4!important}
.mes-master-table .mes-group-header td,.aps-compact-table .mes-group-header td{box-shadow:none!important}
.mes-master-table .mes-improvement-cell,.aps-compact-table .mes-improvement-cell{box-shadow:none}
.mes-master-table .mes-master-project-cell{position:static!important;display:flex;align-items:center;justify-content:flex-end;gap:10px;width:270px!important;padding:4px 8px!important;white-space:nowrap}
.mes-master-table .mes-master-project-cell{display:table-cell!important;text-align:right;vertical-align:middle}
.mes-master-table .mes-master-project-cell .mes-group-field-label{min-width:0}
.mes-master-table .mes-master-project-cell .mes-group-field-label{display:inline-flex}
.mes-master-table .mes-master-project-cell .mes-group-field-label input{width:180px}
.mes-master-table .mes-master-project-cell small{display:inline-block;margin-left:10px;color:#68778d;font-size:13px;font-weight:600}

/* APS-Stammdaten: dieselbe kompakte Gruppensprache, mit lokalem Horizontal-Scroll. */
.aps-compact-table{width:max-content;min-width:100%;table-layout:auto}
.aps-compact-table th:nth-child(1){width:96px!important}
.aps-compact-table th:nth-child(2){width:230px!important}
.aps-compact-table th:nth-child(3),.aps-compact-table th:nth-child(4){width:270px!important}
.aps-compact-table th:nth-child(5){width:105px!important}
.aps-compact-table th:nth-child(6){width:210px!important}
.aps-compact-table th:nth-child(7){width:155px!important}
.aps-compact-table th:nth-child(8){width:90px!important}
.aps-compact-table th:nth-child(9){width:170px!important}
.aps-compact-table th:nth-child(10){width:170px!important}
.aps-compact-table th:nth-child(11){width:56px!important}
.aps-compact-table td:nth-child(3),.aps-compact-table td:nth-child(4),.aps-compact-table td:nth-child(6){white-space:normal}
.aps-compact-table .aps-group-header td{position:static!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;height:42px!important;padding:0 12px!important;background:#e8edf4!important;box-shadow:none!important}
.aps-group-head>strong{flex:1 1 auto;color:var(--navy);font-size:16px}

/* Maximallisten: kompakte, responsive Stammdaten- und Prozessdarstellung. */
#catalogView>.hero,#e2eView>.hero{position:sticky;top:72px;z-index:14}
#catalogView .catalog-grid{grid-template-columns:repeat(auto-fill,minmax(250px,320px));justify-content:space-between}
#catalogView .master-cluster-body{gap:10px;padding:10px}
#catalogView .catalog-groups.master-clusters-ready{gap:12px}
#catalogView .catalog-group>header{min-height:44px;padding:4px 8px}
#catalogView .catalog-group>header>.master-group-toggle{width:28px;height:28px;min-width:28px}
#catalogView .catalog-group>header>.master-department-handle{width:34px;height:30px;min-width:34px}
#catalogView .catalog-group>header>.master-department-name{width:min(360px,38vw);height:30px;min-height:30px;padding:2px 6px;font-size:16px}
#catalogView .catalog-card{min-height:48px;padding:5px 7px}
#catalogView .catalog-card input{min-height:30px;padding:4px 6px}
#e2eView .e2e-chain>header{min-height:46px;padding:6px 10px}
#e2eView .e2e-chain>header button{width:30px;height:30px;min-width:30px}
#e2eView .e2e-chain-handle{width:34px;height:30px;min-width:34px}
#e2eView .e2e-chain>header strong{font-size:17px}
#e2eView .e2e-flow{gap:6px;padding:8px}
#e2eView .e2e-boundary{width:120px!important;height:64px!important;min-width:120px!important;max-width:120px!important;min-height:64px!important;max-height:64px!important;flex:0 0 120px!important;border-radius:10px!important;padding:7px 9px!important;font-size:10px!important}
#e2eView .e2e-step:not(.e2e-production){min-height:64px;padding:6px 8px}
#e2eView .e2e-step.e2e-production{max-width:500px!important;min-height:64px;padding:6px 8px}
#e2eView .e2e-production>div{gap:4px;margin-top:5px}
#e2eView .e2e-production>div span{padding:3px 5px}

/* Projekt aus Maximalliste: mehr Breite fuer den Wertstrom, kompakte Bearbeitung. */
#builderView>.hero{position:sticky;top:72px;z-index:14}
#builderView .builder-head{align-items:center;gap:14px;margin-bottom:12px;flex-wrap:wrap}
#builderView .builder-head>div:first-child{order:1}
#builderView .builder-project-loader{order:2;margin-left:auto}
#builderView .builder-save-top{order:3;flex:0 0 auto;margin-left:0;padding:9px 14px}
#builderView .builder-layout{grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:12px}
#builderView .builder-catalog{max-height:calc(100vh - 250px);min-width:0}
#builderView .builder-catalog .hint{padding:8px 10px;font-size:12px}
#builderView .builder-catalog .catalog-groups{gap:9px;padding:9px}
#builderView .builder-catalog .catalog-group header{display:grid;grid-template-columns:28px minmax(0,1fr) auto;min-height:36px;padding:4px;margin:0}
#builderView .builder-catalog .catalog-group header>strong{min-width:0;line-height:1.2;overflow-wrap:break-word}
#builderView .builder-catalog .catalog-group header>span{margin-left:0;white-space:nowrap;align-self:center}
#builderView .builder-catalog .catalog-card.builder-source{min-height:40px;padding:5px 8px}
#builderView .project-form{min-width:0;padding:12px}
#builderView .project-fields{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;margin-bottom:10px}
#builderView .project-fields>label:has(input[name=customer]){grid-column:span 4}
#builderView .project-fields>label:has(input[name=name]){grid-column:span 6}
#builderView .project-fields>label:has(input[name=sites]){grid-column:span 2}
#builderView .project-fields:has(input[name=systemName])>label:has(input[name=customer]){grid-column:span 3}
#builderView .project-fields:has(input[name=systemName])>label:has(input[name=name]){grid-column:span 4}
#builderView .project-fields:has(input[name=systemName])>label:has(input[name=systemName]){grid-column:span 4}
#builderView .project-fields:has(input[name=systemName])>label:has(input[name=sites]){grid-column:span 1}
#builderView .project-fields input{height:34px;min-height:34px;padding:5px 8px}
#builderView .project-fields>label{gap:4px;padding:7px 8px;border:1px solid #c8d3e1;border-top:3px solid #7187aa;background:#edf2f8}
#builderView .project-fields>label>span{color:var(--navy);font-weight:700}
.expand-all-toolbar{display:flex;justify-content:flex-end;align-items:center;min-height:34px;margin:0 0 6px}
.expand-all-toolbar .secondary{min-height:30px;padding:5px 10px;font-size:12px;white-space:nowrap}
#builderView .builder-catalog .expand-all-toolbar{margin:6px 9px 0}
#builderView .analysis-type-choice{margin-bottom:10px}
#builderView .analysis-type-choice legend{margin-bottom:6px;font-size:12px}
#builderView .analysis-type-choice>div{gap:8px}
#builderView .analysis-type-choice label{min-height:54px;grid-template-columns:18px minmax(0,1fr);gap:8px;padding:7px 9px;border-top-width:3px}
#builderView .analysis-type-choice input{width:16px;height:16px;min-height:16px}
#builderView .analysis-type-choice label span{gap:2px}
#builderView .analysis-type-choice strong{font-size:13px}
#builderView .analysis-type-choice small{font-size:11px;line-height:1.2}
#builderView .lane-actions{min-height:40px;padding:5px 8px}
#builderView .lane-actions .secondary{padding:7px 10px}
#builderView .lanes{gap:8px;margin-top:8px}
#builderView .lane-head{min-height:42px;align-items:center;gap:6px;padding:4px 6px;background:#e8eef6}
#builderView .lane-head>input{height:32px;min-height:32px;padding:4px 7px;background:#f9fbfd;border-color:#b9c7d9}
#builderView .lane-align{grid-template-columns:auto minmax(150px,230px);gap:6px}
#builderView .lane-align select{height:32px;min-height:32px;padding:4px 7px}
#builderView .lane-head>button{padding:4px 6px;font-size:12px;white-space:nowrap}
#builderView .lane-flow{padding:7px}
#builderView .dropzone{min-height:72px;padding:4px}
#builderView .dropzone .flow-card{flex:0 0 180px;width:180px!important;min-width:180px!important;max-width:180px!important;min-height:58px;padding:6px 8px}
#builderView .dropzone .flow-card strong{white-space:normal;overflow-wrap:break-word;line-height:1.15}
#builderView .alignment-spacer{flex:0 0 200px;width:200px;min-width:200px;min-height:58px}
#builderView .savebar{position:sticky;bottom:0;z-index:5;margin:10px -12px -12px;padding:8px 12px;background:var(--navy)}
#builderView .savebar button{padding:8px 13px;background:#fff;color:var(--navy)}
@media(max-width:1050px){#builderView .builder-layout{grid-template-columns:1fr}#builderView .builder-catalog{max-height:340px}#builderView .project-fields,#builderView .project-fields:has(input[name=systemName]){grid-template-columns:repeat(2,minmax(0,1fr))}#builderView .project-fields>label,#builderView .project-fields:has(input[name=systemName])>label{grid-column:auto!important}}
@media(max-width:720px){#builderView>.hero{top:72px}#builderView .builder-head{align-items:flex-start;flex-wrap:wrap}#builderView .builder-save-top{margin-left:0}#builderView .project-fields,#builderView .project-fields:has(input[name=systemName]){grid-template-columns:1fr}#builderView .lane-head{align-items:stretch;flex-wrap:wrap}#builderView .lane-align{width:100%;grid-template-columns:auto minmax(0,1fr)}}

/* ===== Maschinen inline unter der Wertstrom-Box (nur System-Seite) ===== */
.project-streams.machine-mode .project-stream-grid{align-items:flex-start}
.project-streams.machine-mode .project-alignment-spacer{flex:0 0 210px;width:210px;min-width:210px}
/* Zelle als Block, damit das flex-basis der Karte (Breite) NICHT als Höhe wirkt. */
.stream-cell{display:block;flex:0 0 210px;width:210px;min-width:210px}
.stream-cell .project-flow-card{display:grid!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:65px}
.project-flow-card.machine-clickable{cursor:pointer;user-select:none}
.project-flow-card.machine-clickable:hover{outline:2px solid #3f7d2f;outline-offset:-2px}
.mes-box-table{width:100%;margin-top:6px;border-collapse:collapse;table-layout:fixed;background:#eef6e6;border:1px solid #a9bd97;box-shadow:inset 3px 0 #3f7d2f}
.mes-box-table th{width:60%;padding:0 6px;border:1px solid #cbdabb;background:#e2edd4;color:#2f5124;font-size:11px;font-weight:700;text-align:left;line-height:1;white-space:nowrap;overflow:hidden}
.mes-box-table td{padding:0;border:1px solid #cbdabb;background:#fff}
.mes-box-table tr{height:22px}
.mes-box-val{display:flex;align-items:center}
.mes-box-table input,.mes-box-table select{width:100%;height:20px;min-height:20px;padding:0 5px;border:0;background:transparent;color:var(--navy);font-size:12px;font-weight:700;text-align:right}
.mes-box-table select{text-align:left;font-size:11px;font-weight:600}
.mes-box-unit{flex:0 0 auto;padding-right:5px;color:#5a6b52;font-size:11px;font-weight:700}
.mes-box-table input:focus,.mes-box-table select:focus{outline:2px solid #6e91b5;outline-offset:-1px;background:#fff}
.mes-machine-note{display:flex;align-items:baseline;gap:12px;padding:8px 16px;border-top:1px solid #c4cfdb}
.mes-machine-note small{color:#68778d;font-size:13px}

/* Kompakte Kennzahlen-Leiste: Chips in Box-Tabellen-Zeilenhöhe, volle Breite, Umbruch in 2. Zeile. */
.mes-base{padding:10px 16px}
.mes-kv-row{display:flex;flex-wrap:wrap;gap:6px 8px;margin-top:6px}
.mes-kv{display:flex;align-items:center;gap:6px;height:26px;padding:0 8px;border:1px solid #d3dbe6;border-radius:5px;background:#f7f9fb;white-space:nowrap}
.mes-kv>span{color:var(--navy);font-size:11px;font-weight:600}
.mes-kv input{width:62px;height:20px;min-height:20px;padding:0 6px;border:1px solid #cfd8e3;border-radius:3px;background:#fff;color:var(--navy);font-size:13px;font-weight:700;text-align:right}
.mes-kv select{height:20px;min-height:20px;padding:0 2px;border:1px solid #cfd8e3;border-radius:3px;background:#fff;font-size:11px}
.mes-kv i{font-style:normal;color:#68778d;font-size:11px}
.mes-kv-const{background:#eef3f8;border-style:dashed}

/* Projekt-Potentialtabelle: exakt das Design der globalen Tabelle, nur andere Spalten. */
.mes-pot-scroll{min-width:0;max-width:100%;overflow-x:auto;border-top:1px solid #c4cfdb}
.mes-project-pot{width:max-content;min-width:min(1600px,100%);max-width:none;table-layout:auto}
.mes-project-pot thead th{position:static!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;background:#263f78!important;color:#fff;box-shadow:none!important}
.mes-project-pot thead th.mes-pot-nr,.mes-project-pot tbody td.mes-pot-nr{width:56px!important;min-width:56px!important;max-width:56px!important;text-align:center}
.mes-project-pot thead th:nth-child(2){width:330px!important}
.mes-project-pot thead th:nth-child(3){width:410px!important}
.mes-project-pot thead th:nth-child(4){width:410px!important}
.mes-project-pot thead th:nth-child(5){width:250px!important;text-align:right}
.mes-project-pot thead th:nth-child(6){width:144px!important;text-align:right}
.mes-project-pot tbody td{position:static!important;left:auto!important;padding:5px 8px;border:1px solid #d3dbe7;background:#fff;color:#33415a;font-size:13px;line-height:1.2;white-space:nowrap;vertical-align:middle;box-shadow:none!important}
.mes-project-pot tbody tr:nth-child(even) td{background:#f5f7fa}
.mes-project-pot td.mes-pot-name{color:var(--navy);font-weight:700}
.mes-project-pot .mes-pot-empty td{color:#8794a8;font-style:italic}
.mes-project-pot .mes-group-header td{padding:0!important;background:#e8edf4!important;box-shadow:none!important;border:1px solid #aebbd0!important}
.mes-project-pot .mes-group-header td:first-child{box-shadow:inset 4px 0 var(--coral)!important}
.mes-project-pot .mes-group-header .mes-pot-entry-cell{padding:4px 8px!important;vertical-align:middle}
.mes-project-pot .mes-group-header .mes-pot-result-cell{padding:4px 12px!important;vertical-align:middle;text-align:right}
.mes-pot-head{gap:12px;min-height:42px;padding:4px 14px}
.mes-pot-head>strong{flex:0 0 auto;color:var(--navy);font-size:16px}
.mes-pot-head>small{flex:0 0 auto;margin-left:0;color:#68778d;font-size:13px;font-weight:600;white-space:nowrap}
.mes-pot-spacer{flex:1 1 auto}
.mes-pot-input{flex:0 0 auto;display:flex;align-items:center;gap:8px}
.mes-pot-input{width:100%;justify-content:flex-end}
.mes-pot-input>span{min-width:0;color:#4a5b78;font-size:12px;font-weight:600;white-space:normal;text-align:right}
.mes-pot-input input{flex:0 0 72px;width:72px;height:28px;padding:0 8px;border:1px solid #c4cfdb;border-radius:4px;background:#fff;color:var(--navy);font-size:15px;font-weight:800;text-align:right}
.mes-pot-input input::placeholder{color:#9aa7ba;font-weight:600}
.mes-pot-machine-hint{flex:0 0 auto;color:#68778d;font-size:12px;font-style:italic}
.mes-pot-result{display:block;color:var(--navy);font-size:18px;font-weight:800;text-align:right;white-space:nowrap}
.project-mes-analysis .mes-pot-footer{box-sizing:border-box;width:100%;max-width:none}

/* ===== Kosten- und Investitionsrechnung ===== */
.cost-page{min-width:0;max-width:100%;margin-top:18px;border:1px solid #c4cfdb;background:#fff}
.cost-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;border-bottom:1px solid #c4cfdb}
.cost-intro h2{margin:3px 0}
.cost-intro p{margin:0;color:#64728a;font-size:13px}
.cost-intro-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.cost-import{display:inline-flex;align-items:center;cursor:pointer}
.cost-import input{display:none}
.cost-scroll{container-type:inline-size;min-width:0;max-width:100%;overflow-x:auto}
.cost-table{--cost-label-max:33.333cqw;width:max-content;min-width:0;border-collapse:separate;border-spacing:0;table-layout:auto;font-variant-numeric:tabular-nums}
.cost-table thead th{padding:4px 10px;border:1px solid #c4cfdb;background:#263f78;color:#fff;font-size:13px;font-weight:700;text-align:right;white-space:nowrap;vertical-align:middle}
.cost-table th.cost-rowlabel{width:min(360px,var(--cost-label-max));min-width:min(280px,var(--cost-label-max));max-width:min(360px,var(--cost-label-max));text-align:left;white-space:normal;overflow-wrap:break-word}
.cost-table thead th:not(.cost-rowlabel):not(.cost-total-col){width:140px;min-width:140px;max-width:140px}
.cost-table th.cost-total-col{width:105px;min-width:105px;max-width:105px;background:#1c3160}
.cost-site{display:flex;align-items:center;gap:6px}
.cost-site input{width:100%;min-width:0;height:24px;min-height:24px;padding:0 5px;border:0;border-radius:0;background:transparent;color:#fff;font-size:13px;font-weight:700;text-align:left;box-shadow:none}
.cost-site input:hover{background:#ffffff0d}
.cost-site input:focus{background:#16305c;outline:2px solid #fff;outline-offset:-2px;box-shadow:none}
.cost-site button{flex:0 0 auto;width:20px;height:20px;padding:0;border:0;border-radius:2px;background:#ffffff22;color:#fff;font-size:14px;font-weight:800;line-height:1;cursor:pointer}
.cost-site button:hover{background:#d8735e}
.cost-site-size{display:block;margin-top:2px;color:#dce5f2;font-size:10px;font-weight:700;line-height:1.1;text-align:left;text-transform:capitalize}
.cost-site-size.small{color:#d8e8d7}.cost-site-size.medium{color:#f0e2b7}.cost-site-size.large{color:#ffd0c8}
.cost-table td{height:25px;padding:0 8px;border:1px solid #d3dbe7;font-size:13px;text-align:right;white-space:nowrap;vertical-align:middle}
.cost-table td.cost-rowlabel{width:min(360px,var(--cost-label-max));min-width:min(280px,var(--cost-label-max));max-width:min(360px,var(--cost-label-max));text-align:left;color:#33415a;font-weight:600;white-space:normal;overflow-wrap:break-word;line-height:1.15}
.cost-table thead th:first-child{position:sticky;left:0;z-index:5;box-shadow:4px 0 5px #263f7826}
.cost-table tbody tr:not(.cost-section)>td:first-child{position:sticky;left:0;z-index:3;background:#fff;box-shadow:4px 0 5px #263f781f}
.cost-table tbody tr:nth-child(even):not(.cost-section)>td:first-child{background:#f7f9fb}
.cost-table tbody tr:nth-child(even) td{background:#f7f9fb}
.cost-table tbody input{display:block;width:100%;min-width:0;height:24px;min-height:24px;padding:0 6px;border:0;border-radius:0;background:transparent;color:var(--navy);font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1;text-align:right;box-shadow:none}
.cost-table tbody input:hover{background:#eef3f8}
.cost-table tbody input:focus{position:relative;z-index:1;background:#fff;outline:2px solid #6e91b5;outline-offset:-2px;box-shadow:none}
.cost-money{display:grid;grid-template-columns:minmax(0,1fr) 12px;align-items:center;column-gap:4px;width:100%;font-variant-numeric:tabular-nums;white-space:nowrap}
.cost-money>b,.cost-money>input{min-width:0;margin:0;padding:0;text-align:right;font:inherit;font-weight:700}
.cost-money>span{text-align:right;color:var(--navy);font-size:13px;font-weight:700}
.cost-table .cost-money-input>input{width:100%;padding:0}
.cost-table td.cost-total{background:#eef3f8!important;color:var(--navy);font-weight:800}
.cost-table tr.cost-section td{height:30px;background:#e8edf4!important;box-shadow:inset 4px 0 var(--coral);padding:3px 12px;text-align:left}
.cost-table tr.cost-section span{color:var(--navy);font-size:14px;font-weight:800}
.cost-table tr.cost-derived td.cost-calc{background:#f4f8f4}
.cost-table td.cost-calc{color:#33415a;font-weight:700}
.cost-table tr.cost-sum td{background:#dfe8f4!important;color:var(--navy);font-weight:800;border-top:2px solid #aebbd0}
.cost-table tr.cost-derived td:first-child{background:#f4f8f4}
.cost-table tr.cost-sum td:first-child{background:#dfe8f4!important}
.cost-rates{padding:12px 16px;border-top:1px solid #c4cfdb;background:#fafbfd}
.cost-rates-head{margin-bottom:2px}
.cost-rates-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.cost-rates-grid .mes-kv{height:28px}
.cost-rates-grid .mes-kv input{width:78px}
.cost-rates-note{display:block;margin-top:8px;color:#68778d;font-size:12px}
.cost-footer{display:flex;justify-content:flex-end;align-items:center;gap:14px;padding:12px 16px;background:var(--navy);color:#fff}
.cost-footer span{font-size:13px;font-weight:600;opacity:.85}
.cost-footer strong{font-size:22px;white-space:nowrap}
.cost-footer strong+span{margin-left:14px}

/* ===== Globale Kostenbenchmarks ===== */
.benchmark-content{min-width:0;max-width:100%}
.benchmark-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
.benchmark-intro h2{margin:4px 0;font-size:25px}.benchmark-intro p{margin:0;color:var(--muted)}
.benchmark-scroll{min-width:0;max-width:100%;overflow-x:auto;border:1px solid #c4cfdb}
.benchmark-table{width:max-content;min-width:980px;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.benchmark-table th{height:40px;padding:7px 10px;border:1px solid #c4cfdb;background:#263f78;color:#fff;text-align:left;vertical-align:middle}
.benchmark-table th:first-child{width:420px;min-width:320px}.benchmark-table th:nth-child(2){width:180px}.benchmark-table th:nth-child(n+3){width:250px}
.benchmark-table td{height:34px;padding:5px 10px;border:1px solid #d3dbe7;vertical-align:middle}
.benchmark-table tr:nth-child(even):not(.benchmark-section) td{background:#f7f9fb}
.benchmark-label{font-weight:700;color:#33415a}.benchmark-mes{text-align:right}
.benchmark-mes>span{display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:5px}
.benchmark-mes input{width:100%;height:25px;min-height:25px;padding:0 5px;border:0;background:transparent;font-weight:800;text-align:right}
.benchmark-mes i{font-style:normal;font-weight:800;color:var(--navy);text-align:right}
.benchmark-reference{color:#42516a;font-size:13px}.benchmark-section td{height:32px;background:#e8edf4!important;color:var(--navy);font-size:15px;font-weight:800;box-shadow:inset 5px 0 var(--coral)}
.benchmark-sources{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;background:#f7f9fb;color:#68778d;font-size:12px}
.benchmark-sources a{color:var(--navy);font-weight:700}

/* ===== Managementbericht ===== */
.management-report{min-width:0;max-width:100%;margin-top:16px;border:1px solid #c4cfdb;background:#fff;color:#182b59;overflow:hidden}
.mr-cover{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;min-height:150px;padding:28px 32px;background:linear-gradient(120deg,#1f3568 0%,#304879 72%,#3d5687 100%);box-shadow:inset 6px 0 #d57965;color:#fff}
.mr-cover .panel-label{color:#d8dfed}.mr-cover h2{margin:6px 0 5px;font-size:34px;line-height:1.08;color:#fff}.mr-cover p{max-width:780px;margin:0;color:#e1e6f0;font-size:15px}
.mr-cover-mark{display:grid;justify-items:end;gap:7px;flex:0 0 auto}.mr-cover-mark b{font-family:Georgia,serif;font-size:23px;letter-spacing:.04em}.mr-cover-mark span{font-size:12px;color:#d8dfed}
.mr-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1px;background:#cbd4e1;border-bottom:1px solid #c4cfdb}
.mr-kpis article{min-height:94px;padding:15px 18px;background:#fff}.mr-kpis article.accent{background:#f3f6fa}.mr-kpis span,.mr-kpis small{display:block;color:#68778d}.mr-kpis span{font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.mr-kpis strong{display:block;margin:7px 0 2px;font-size:24px;font-variant-numeric:tabular-nums;white-space:nowrap}.mr-kpis small{font-size:11px}
.mr-summary{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:22px;align-items:center;padding:24px 28px;background:#f7f9fc;border-bottom:1px solid #d1d9e5}.mr-summary h3,.mr-section h3{margin:4px 0 8px;font-size:21px}.mr-summary p{max-width:1000px;margin:0;color:#42516a;line-height:1.5}.mr-summary aside{padding:14px 16px;border-left:4px solid #d57965;background:#fff}.mr-summary aside span,.mr-summary aside small{display:block;color:#68778d;font-size:11px}.mr-summary aside strong{display:block;margin:5px 0;font-size:16px}
.mr-section{min-width:0;max-width:100%;padding:22px 28px;border-bottom:1px solid #d1d9e5}.mr-section>header{margin-bottom:12px}
.mr-card-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}.mr-card-list article{display:flex;flex-direction:column;min-height:150px;padding:14px;border:1px solid #ced7e4;border-top:4px solid #304879;background:#fff}.mr-card-list header,.mr-card-list footer{display:flex;justify-content:space-between;gap:10px;align-items:center}.mr-card-list h4{margin:12px 0 5px;font-size:15px}.mr-card-list p{margin:0 0 14px;color:#42516a;font-size:13px;line-height:1.4}.mr-card-list footer{margin-top:auto;padding-top:9px;border-top:1px solid #e0e5ed;color:#68778d;font-size:10px}.mr-card-list footer span{min-width:0;overflow-wrap:anywhere}
.mr-level{display:inline-block;padding:3px 7px;border-radius:2px;background:#e8edf4;color:#33415a;font-size:10px;font-weight:800;text-transform:uppercase;white-space:nowrap}.mr-level.kritisch{background:#f4d9d4;color:#833f34}.mr-level.hoch{background:#f8e5d2;color:#80501f}.mr-level.niedrig{background:#dfeee5;color:#315d42}
.mr-empty{display:flex;align-items:center;gap:13px;min-height:74px;padding:14px 16px;border:1px dashed #b8c4d5;background:#fafbfd}.mr-empty>b{display:grid;place-items:center;width:30px;height:30px;border:1px solid #d57965;color:#a95646}.mr-empty strong,.mr-empty span{display:block}.mr-empty span{margin-top:3px;color:#68778d;font-size:12px}
.mr-table-scroll{min-width:0;max-width:100%;overflow-x:auto;border:1px solid #c4cfdb}.mr-action-table{width:100%;min-width:880px;border-collapse:collapse;table-layout:fixed}.mr-action-table th,.mr-action-table td{height:36px;padding:6px 9px;border:1px solid #d3dbe7;vertical-align:middle;text-align:left;overflow-wrap:anywhere}.mr-action-table thead th{height:39px;background:#304879;color:#fff;font-size:12px}.mr-action-table th:nth-child(1){width:24%}.mr-action-table th:nth-child(2){width:17%}.mr-action-table th:nth-child(3){width:13%}.mr-action-table th:nth-child(4),.mr-action-table th:nth-child(5),.mr-action-table th:nth-child(6),.mr-action-table th:nth-child(7){width:11.5%}.mr-action-table tbody th{color:#182b59;font-size:12px}.mr-action-table td{color:#42516a;font-size:12px}
.mr-roadmap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.mr-roadmap>section{min-width:0;border:1px solid #cbd4e1;background:#f8fafc}.mr-roadmap>section>header{display:flex;justify-content:space-between;align-items:center;padding:9px 11px;background:#e8edf4;font-size:12px;font-weight:800}.mr-roadmap>section>header b{display:grid;place-items:center;width:21px;height:21px;background:#304879;color:#fff}.mr-roadmap>section>div{display:grid;gap:6px;padding:8px}.mr-roadmap article{padding:9px;background:#fff;border-left:3px solid #d57965}.mr-roadmap article strong,.mr-roadmap article small{display:block}.mr-roadmap article strong{font-size:12px}.mr-roadmap article small{margin-top:4px;color:#68778d;font-size:10px}.mr-roadmap em{padding:14px 4px;color:#7d899a;font-size:11px}
.mr-team>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.mr-team article{display:grid;gap:4px;padding:12px 14px;background:#edf2f7;border-left:3px solid #304879}.mr-team article b{font-size:13px}.mr-team article span{color:#68778d;font-size:11px;line-height:1.35}.mr-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 28px;background:#1f3568;color:#fff;font-size:11px}.mr-footer strong{font-size:12px}
@media(max-width:900px){.mr-cover{align-items:flex-start;padding:22px}.mr-cover-mark{display:none}.mr-summary{grid-template-columns:1fr}.mr-roadmap{grid-template-columns:repeat(2,minmax(0,1fr))}.mr-section{padding:18px}.mr-footer{padding:12px 18px}}
@media(max-width:560px){.mr-cover h2{font-size:27px}.mr-roadmap{grid-template-columns:1fr}.mr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* SOLL Prozess & Roadmap: Potentialtabelle ohne Realisierungsspalte. */
.project-potential-scroll table{min-width:1650px}
/* ===== Business-Case-Berichtsinhalte ===== */
.bc-editorial{min-width:0;max-width:100%;border-bottom:1px solid #c4cfdb;background:#f7f9fc}.bc-editorial>header{padding:13px 16px 8px}.bc-editorial>header h3{margin:3px 0;font-size:18px}.bc-editorial>header p{margin:0;color:#68778d;font-size:12px}
.bc-narrative{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:8px 16px 12px}.bc-narrative label{display:grid;gap:5px}.bc-narrative span{font-size:12px;font-weight:800}.bc-narrative textarea{width:100%;min-height:72px;resize:vertical;padding:8px 9px;border:1px solid #bdc9d8;background:#fff;color:#182b59;font:inherit;font-size:13px;line-height:1.4}
.bc-editorial-grid{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:1px;padding-top:1px;background:#cad3df}.bc-editorial-grid>article{min-width:0;background:#fff}.bc-editorial-grid>article>header{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:54px;padding:8px 10px;background:#e8edf4}.bc-editorial-grid>article>header span{color:#728096;font-size:9px;font-weight:800;letter-spacing:.09em}.bc-editorial-grid h4{margin:2px 0;font-size:13px}.bc-editorial-grid>article>header button{width:30px;height:30px;padding:0;border:1px solid #9faec2;background:#fff;color:#20366d;font-size:19px}.bc-editorial-grid>article>div{display:grid;gap:6px;padding:8px}.bc-editorial-grid>article>div>p{margin:9px 3px;color:#7b8798;font-size:11px}.bc-editorial-grid label{display:grid;grid-template-columns:minmax(0,1fr) 26px;align-items:start;gap:4px}.bc-editorial-grid textarea{width:100%;min-height:52px;resize:vertical;padding:6px 7px;border:1px solid #c7d1dd;font:inherit;font-size:11px;line-height:1.35}.bc-editorial-grid label button{width:26px;height:26px;padding:0;border:1px solid #d2b1ab;background:#fff;color:#9b4d40}

/* ===== Managementbericht: Storyline & ROI ===== */
.mr-project-story>div{display:grid;grid-template-columns:1.15fr .85fr;gap:10px}.mr-project-story article{min-width:0;padding:17px 18px;border:1px solid #cdd6e2;background:#f8fafc}.mr-project-story article.goal{border-left:5px solid #d57965;background:#eef3f8}.mr-project-story article>span{color:#758399;font-size:9px;font-weight:800;letter-spacing:.1em}.mr-project-story article p{margin:8px 0 0;color:#33415a;font-size:14px;line-height:1.55}
.mr-section-intro{margin:0;color:#68778d;font-size:12px}.mr-commercial{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.75fr);gap:12px;align-items:stretch}.mr-commercial>div{min-width:0;border:1px solid #ced7e3;background:#fbfcfe}.mr-commercial aside{padding:15px 17px;background:#eef3f8;border-left:4px solid #d57965}.mr-commercial aside h4{margin:4px 0 11px;font-size:15px}.mr-commercial dl{margin:0}.mr-commercial dl div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #d3dce7;font-size:11px}.mr-commercial dt{color:#68778d}.mr-commercial dd{margin:0;font-weight:800;text-align:right;white-space:nowrap}.mr-commercial aside p{margin:11px 0 0;color:#59687d;font-size:11px;line-height:1.4}
.mr-chart{min-width:0;padding:10px 13px 6px}.mr-chart svg{display:block;width:100%;height:auto;max-height:250px}.mr-chart .axis{stroke:#aab6c7;stroke-width:1}.mr-chart rect.cost{fill:#d57965}.mr-chart rect.saving{fill:#678675}.mr-chart .net{fill:none;stroke:#20366d;stroke-width:3}.mr-chart .net-point{fill:#fff;stroke:#20366d;stroke-width:2}.mr-chart text{fill:#5e6c81;font-size:11px;text-anchor:middle}.mr-chart-legend{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;color:#5e6c81;font-size:10px}.mr-chart-legend span:before{display:inline-block;width:9px;height:9px;margin-right:5px;content:''}.mr-chart-legend .cost:before{background:#d57965}.mr-chart-legend .saving:before{background:#678675}.mr-chart-legend .net:before{height:3px;background:#20366d;vertical-align:middle}
.mr-finance-kpis{display:grid;grid-template-columns:repeat(4,minmax(135px,1fr));gap:1px;margin-top:10px;background:#cbd4e1}.mr-finance-kpis article{padding:11px 13px;background:#f3f6fa}.mr-finance-kpis span{display:block;color:#68778d;font-size:10px;font-weight:800;text-transform:uppercase}.mr-finance-kpis strong{display:block;margin-top:5px;font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}.mr-commercial-empty{max-width:760px}
.mr-alternatives{margin-top:14px;padding:14px 16px;background:#f2f5f9;border-left:4px solid #304879}.mr-alternatives h4{margin:0 0 8px}.mr-bullets{display:grid;gap:7px;margin:0;padding:0;list-style:none}.mr-bullets li{position:relative;padding:9px 12px 9px 29px;border:1px solid #d0d9e5;background:#fff;color:#33415a;font-size:13px;line-height:1.4}.mr-bullets li:before{position:absolute;left:11px;top:13px;width:7px;height:7px;background:#d57965;content:''}.mr-next{background:#f7f9fc}.mr-next .mr-bullets{counter-reset:next}.mr-next .mr-bullets li{counter-increment:next;padding-left:42px}.mr-next .mr-bullets li:before{display:grid;place-items:center;left:10px;top:7px;width:23px;height:23px;background:#20366d;color:#fff;content:counter(next);font-size:10px;font-weight:800}
@media(max-width:1100px){.bc-editorial-grid{grid-template-columns:repeat(2,minmax(210px,1fr))}.mr-commercial{grid-template-columns:1fr}.mr-commercial aside{border-left:0;border-top:4px solid #d57965}}
@media(max-width:700px){.bc-narrative,.mr-project-story>div{grid-template-columns:1fr}.bc-editorial-grid{grid-template-columns:1fr}.mr-finance-kpis{grid-template-columns:repeat(2,minmax(125px,1fr))}}
/* ===== Business-Case-Prozessinformationen ===== */
.bc-process-info{min-width:0;max-width:100%;margin:0 16px 14px;border:1px solid #c5cfdb;background:#fff}.bc-process-info>header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 12px;background:#e8edf4}.bc-process-info>header h3{margin:2px 0;font-size:15px}.bc-process-info>header p{margin:0;color:#68778d;font-size:11px}.bc-process-info>header>b{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;background:#20366d;color:#fff;font-size:16px}.bc-process-info-scroll{min-width:0;max-width:100%;overflow-x:auto}.bc-process-info table{width:100%;min-width:860px;border-collapse:collapse;table-layout:fixed}.bc-process-info th,.bc-process-info td{height:42px;padding:6px 8px;border:1px solid #d3dbe6;vertical-align:middle;text-align:left;font-size:11px}.bc-process-info thead th{height:34px;background:#304879;color:#fff;font-size:10px}.bc-process-info thead th:nth-child(1){width:19%}.bc-process-info thead th:nth-child(2){width:12%}.bc-process-info thead th:nth-child(3){width:29%}.bc-process-info thead th:nth-child(4){width:40%}.bc-process-info tbody th{font-size:12px}.bc-process-info tbody th span,.bc-process-info tbody td small{display:block;margin-bottom:2px;color:#748196;font-size:9px;font-weight:600}.bc-process-info tbody td strong{display:block;color:#25385f;overflow-wrap:anywhere}.bc-process-info-empty{padding:16px;color:#748196;font-size:12px}.bc-use-switch{display:grid;grid-template-columns:repeat(4,minmax(72px,1fr));gap:3px}.bc-use-switch button{min-height:27px;padding:4px 6px;border:1px solid #bac6d5;background:#fff;color:#4a5970;font-size:10px;font-weight:700;white-space:nowrap}.bc-use-switch button.active{border-color:#20366d;background:#20366d;color:#fff}.bc-use-switch button.active.roadmap{border-color:#557863;background:#557863}.bc-use-switch button.active.alternative{border-color:#c76652;background:#c76652}.bc-use-switch button.active.excluded{border-color:#7d8795;background:#7d8795}
@media(max-width:700px){.bc-process-info{margin:0 8px 12px}}
/* ===== Managementpräsentation & Gantt ===== */
.bc-editorial>header{padding:22px 24px 12px}.bc-editorial>header h3{font-size:24px}.bc-editorial>header p{font-size:14px;line-height:1.45}.bc-narrative{gap:18px;padding:12px 24px 24px}.bc-narrative span{font-size:14px}.bc-narrative textarea{min-height:150px;padding:14px 16px;font-size:16px;line-height:1.55}.bc-editorial-grid{grid-template-columns:repeat(2,minmax(300px,1fr));gap:12px;padding:22px 24px;background:#eef2f7}.bc-editorial-grid>article{border:1px solid #c7d1de}.bc-editorial-grid>article>header{min-height:72px;padding:12px 16px}.bc-editorial-grid>article>header span{font-size:10px}.bc-editorial-grid h4{font-size:18px}.bc-editorial-grid>article>div{gap:10px;padding:12px}.bc-editorial-grid textarea{min-height:104px;padding:10px 12px;font-size:14px;line-height:1.5}
.management-report{background:#f2f5f9}.mr-cover{min-height:230px;padding:44px 52px}.mr-cover h2{font-size:46px}.mr-cover p{max-width:900px;font-size:19px;line-height:1.45}.mr-cover-mark b{font-size:29px}.mr-section{padding:44px 52px;background:#fff;border-bottom:14px solid #f2f5f9}.mr-section>header{margin-bottom:24px}.mr-section>header .panel-label{font-size:11px}.mr-section h3{margin:7px 0 10px;font-size:31px;line-height:1.15}.mr-section-intro{font-size:15px;line-height:1.45}.mr-project-story>div{gap:18px}.mr-project-story article{padding:30px 32px}.mr-project-story article>span{font-size:11px}.mr-project-story article p{font-size:20px;line-height:1.55}.mr-commercial{gap:20px}.mr-commercial aside{padding:24px 26px}.mr-commercial aside h4{font-size:20px}.mr-commercial dl div{padding:9px 0;font-size:13px}.mr-commercial aside p{font-size:13px}.mr-finance-kpis article{padding:17px 19px}.mr-finance-kpis strong{font-size:24px}.mr-card-list{gap:16px}.mr-card-list article{min-height:190px;padding:20px}.mr-card-list h4{font-size:18px}.mr-card-list p{font-size:15px}.mr-alternatives{margin-top:22px;padding:22px 24px}.mr-alternatives h4{font-size:20px}.mr-bullets{gap:11px}.mr-bullets li{padding:14px 18px 14px 38px;font-size:16px}.mr-bullets li:before{left:16px;top:20px}.mr-team article{padding:20px 22px}.mr-team article b{font-size:18px}.mr-team article span{font-size:14px}.mr-next .mr-bullets li{padding-left:54px}.mr-next .mr-bullets li:before{left:14px;top:11px;width:28px;height:28px}
.mr-gantt-scroll{min-width:0;max-width:100%;overflow-x:auto;border:1px solid #c5cfdb;background:#fff}.mr-gantt{width:100%;min-width:980px}.mr-gantt>header{display:grid;grid-template-columns:300px repeat(8,minmax(72px,1fr));height:46px;background:#263f78;color:#fff}.mr-gantt>header>div,.mr-gantt>header>span{display:flex;align-items:center;padding:0 12px;border-right:1px solid rgba(255,255,255,.28);font-size:12px;font-weight:800}.mr-gantt>header>span{justify-content:center;padding:0}.mr-gantt-row{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:64px;border-top:1px solid #d6deE8}.mr-gantt-row:nth-child(odd){background:#f7f9fc}.mr-gantt-label{display:flex;flex-direction:column;justify-content:center;padding:9px 13px;border-right:1px solid #cbd5e1}.mr-gantt-label strong{font-size:13px;line-height:1.25}.mr-gantt-label small{margin-top:4px;color:#718096;font-size:10px}.mr-gantt-track{display:grid;grid-template-columns:repeat(8,minmax(72px,1fr));align-items:center;background-image:linear-gradient(to right,transparent calc(100% - 1px),#d5dde8 calc(100% - 1px));background-size:12.5% 100%}.mr-gantt-track>span{grid-column:var(--start)/span var(--span);display:flex;align-items:center;min-width:0;height:30px;margin:0 5px;padding:0 10px;border-radius:2px;background:#304879;color:#fff;box-shadow:0 3px 7px rgba(22,42,84,.18)}.mr-gantt-track>span.phase-1{background:#d57965}.mr-gantt-track>span.phase-2{background:#5e7d6d}.mr-gantt-track>span.phase-3{background:#667996}.mr-gantt-track>span b{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.mr-cover{min-height:180px;padding:30px}.mr-cover h2{font-size:36px}.mr-section{padding:30px}.mr-project-story article p{font-size:17px}}
@media(max-width:700px){.bc-editorial-grid{grid-template-columns:1fr;padding:14px}.bc-narrative{padding:10px 14px 18px}.mr-section{padding:24px 18px}.mr-section h3{font-size:26px}}
@media print{.management-report{border:0;background:#fff}.mr-section{break-inside:avoid;min-height:185mm;border-bottom:0;page-break-after:always}.mr-footer{page-break-after:always}.mr-gantt-scroll{overflow:visible}.mr-gantt{min-width:0}}
/* ===== Flexible Systembenchmarks ===== */
.benchmark-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.benchmark-system-tabs{display:flex;gap:6px;max-width:100%;min-width:0;margin-bottom:10px;overflow-x:auto}.benchmark-system-tabs button{display:grid;gap:2px;min-width:150px;padding:9px 12px;border:1px solid #aebbc9;background:#fff;color:#20366d;text-align:left;font-weight:800}.benchmark-system-tabs button small{color:#728096;font-size:10px;font-weight:600}.benchmark-system-tabs button.active{border-color:#263f78;background:#263f78;color:#fff}.benchmark-system-tabs button.active small{color:#dbe2ee}.benchmark-system-head{display:flex;justify-content:space-between;align-items:end;gap:12px;padding:10px 12px;border:1px solid #c4cfdb;border-bottom:0;background:#eef2f7}.benchmark-system-head label{display:grid;gap:4px}.benchmark-system-head label span{color:#64738a;font-size:10px;font-weight:800;text-transform:uppercase}.benchmark-system-head input{width:280px;max-width:100%;height:32px;padding:4px 8px;border:1px solid #aebbc9;background:#fff;color:#20366d;font:inherit;font-weight:800}
.benchmark-flex-table{min-width:0;width:max-content}.benchmark-flex-table th:first-child,.benchmark-flex-table td:first-child{position:sticky;left:0;z-index:2;width:360px;min-width:300px;max-width:360px}.benchmark-flex-table thead th:first-child{z-index:4}.benchmark-flex-table thead th:not(:first-child){width:225px;min-width:225px;max-width:225px}.benchmark-flex-table tbody th:first-child{background:#f7f9fb;color:#33415a!important}.benchmark-flex-table tbody tr:nth-child(even):not(.benchmark-section) th:first-child{background:#fff}.benchmark-flex-table tbody th.benchmark-label{color:#33415a!important;font-weight:700}.benchmark-column-head{display:grid;grid-template-columns:minmax(0,1fr) 27px;align-items:center;gap:5px}.benchmark-column-head input{min-width:0;width:100%;height:29px;padding:3px 6px;border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.1);color:#fff;font:inherit;font-weight:800}.benchmark-column-head button{width:27px;height:27px;padding:0;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.12);color:#fff;font-size:16px}.benchmark-value{text-align:right}.benchmark-value>span{display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:5px}.benchmark-value input{width:100%;height:27px;min-width:0;padding:2px 5px;border:0;background:transparent;color:#20366d;font:inherit;font-weight:800;text-align:right;font-variant-numeric:tabular-nums}.benchmark-value i{color:#20366d;font-size:12px;font-style:normal;font-weight:800;text-align:right}.benchmark-flex-table .benchmark-section td{position:static!important;width:auto!important;max-width:none!important}.benchmark-flex-table .benchmark-section td{box-shadow:none;border-left:5px solid var(--coral)}
@media(max-width:700px){.benchmark-intro{align-items:flex-start;flex-direction:column}.benchmark-system-head{align-items:flex-start;flex-direction:column}.benchmark-flex-table th:first-child,.benchmark-flex-table td:first-child{width:280px;min-width:240px;max-width:280px}}
/* ===== Benchmark-Kompaktraster ===== */
.benchmark-flex-table thead th{box-sizing:border-box;height:42px!important;padding:5px 8px!important}.benchmark-flex-table tbody th,.benchmark-flex-table tbody td{box-sizing:border-box;height:31px!important;padding:3px 8px!important;line-height:1.2;vertical-align:middle}.benchmark-flex-table tbody th.benchmark-label{font-size:12px}.benchmark-flex-table .benchmark-section td{height:30px!important;padding:3px 10px!important;font-size:13px}.benchmark-flex-table .benchmark-value input{height:24px!important;min-height:24px!important;padding:1px 4px!important;font-size:12px}.benchmark-flex-table .benchmark-value i{font-size:11px}.benchmark-column-head input{height:28px!important;min-height:28px!important;padding:2px 6px!important;font-size:12px}.benchmark-column-head button{height:27px;min-height:27px}.benchmark-flex-table tbody th span,.benchmark-flex-table tbody td small{margin-bottom:1px}
/* ===== Weitere Projektanmerkungen ===== */
.project-notes-page{min-width:0;max-width:100%;margin-top:16px;border:1px solid #c4cfdb;background:#fff;overflow:hidden}
.project-notes-intro{padding:16px 18px;border-bottom:1px solid #c4cfdb;background:#f7f9fc}
.project-notes-intro h2{margin:4px 0;color:var(--navy);font-size:26px}
.project-notes-intro p{max-width:1100px;margin:0;color:#68778d}
.project-notes-page .bc-editorial{margin:0;border:0}
/* ===== Globale und projektbezogene MES-Anforderungen ===== */
.mes-requirements-page{min-width:0;max-width:100%}.mes-requirements-page.project{margin-top:16px}.mes-req-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:13px;padding:14px 16px;border:1px solid #c4cfdb;border-left:5px solid var(--coral);background:#eef2f7}.mes-req-intro h2{margin:3px 0 4px;font-size:25px}.mes-req-intro p{max-width:1050px;margin:0;color:var(--muted)}.mes-req-kpis{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.mes-req-kpis span{display:grid;min-width:110px;padding:8px 10px;border:1px solid #c4cfdb;background:#fff;color:#64738a;font-size:10px;text-align:right}.mes-req-kpis b{color:var(--navy);font-size:19px;font-variant-numeric:tabular-nums}.mes-req-toolbar{display:flex;align-items:end;gap:8px;margin-bottom:10px;padding:9px 10px;border:1px solid #c4cfdb;background:#fff}.mes-req-toolbar label{display:grid;gap:4px;min-width:0}.mes-req-toolbar label:first-child{flex:1}.mes-req-toolbar label>span{color:#64738a;font-size:10px;font-weight:800;text-transform:uppercase}.mes-req-toolbar input,.mes-req-toolbar select{height:34px;min-height:34px;padding:4px 8px}.mes-req-toolbar.project label:nth-child(2){width:180px;flex:none}.mes-req-phases{display:grid;min-width:0;max-width:100%;gap:10px}.mes-req-phase{min-width:0;max-width:100%;border:1px solid #c4cfdb;background:#fff}.mes-req-phase>header{display:flex;align-items:center;gap:10px;min-height:48px;padding:7px 10px;background:#e8edf4}.mes-req-phase>header>button{width:34px;height:34px;min-height:34px;padding:0;border:1px solid #aebbc9;background:#fff;color:var(--navy);font-size:18px;font-weight:800}.mes-req-phase>header>div{display:flex;align-items:baseline;gap:11px;min-width:0}.mes-req-phase>header strong{font-size:18px}.mes-req-phase>header span{color:var(--muted);font-size:11px}.mes-req-phase.collapsed .mes-req-phase-body{display:none}.mes-req-phase.collapsed>header{background:#f7f9fb}.mes-req-phase-body{display:grid;gap:9px;padding:9px;background:#f7f9fb}.mes-req-module{min-width:0;max-width:100%;border:1px solid #ccd5e1;background:#fff}.mes-req-module>header{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:6px 9px;background:#edf2f7}.mes-req-module>header>div{display:flex;align-items:baseline;gap:9px;min-width:0}.mes-req-module>header strong{font-size:15px}.mes-req-module>header span{color:var(--muted);font-size:10px}.mes-req-module>header button{height:30px;min-height:30px;padding:3px 9px;font-size:11px}.mes-req-subgroup h4{margin:0;padding:6px 9px;border-top:1px solid #d5dde7;background:#f7f9fb;color:#42516a;font-size:11px}.mes-req-table-scroll{min-width:0;max-width:100%;overflow-x:auto}.mes-req-table{width:100%;max-width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;color:#263451}.mes-req-table th{height:32px;padding:4px 7px;border-right:1px solid #c4cfdb;border-top:1px solid #c4cfdb;background:#263f78;color:#fff;font-size:10px;text-align:left;vertical-align:middle}.mes-req-table td{padding:4px 7px;border-right:1px solid #d3dbe7;border-bottom:1px solid #d3dbe7;background:#fff;font-size:11px;line-height:1.25;vertical-align:middle}.mes-req-table tbody tr:nth-child(even) td{background:#f8fafc}.mes-req-table col.id{width:105px}.mes-req-table.global col.requirement{width:38%}.mes-req-table.global col.variant{width:30%}.mes-req-table.global col.source{width:195px}.mes-req-table.global col.active{width:78px}.mes-req-table textarea{display:block;width:100%;height:31px;min-height:31px;padding:5px 6px;border:0;background:#f2f6fa;box-shadow:none;resize:vertical;line-height:19px}.mes-req-table textarea:focus{outline:2px solid #7899ba;outline-offset:-2px;background:#fff}.mes-req-id{color:#59677d;font-weight:800;white-space:nowrap}.mes-req-origin{display:inline-block;margin-bottom:3px;padding:2px 5px;background:#e6edf5;color:#34557e;font-size:9px;font-weight:800;white-space:nowrap}.mes-req-origin.added{background:#fff0eb;color:#9c4438}.mes-req-table td>small{display:block;color:#718096;font-size:9px}.mes-req-active label{display:grid;justify-items:center;gap:2px}.mes-req-active input{width:18px;height:18px;min-height:auto;accent-color:var(--coral)}.mes-req-active span{font-size:9px}.mes-req-table.project col.decision{width:145px}.mes-req-table.project col.id{width:105px}.mes-req-table.project col.requirement{width:46%}.mes-req-table.project col.variant{width:auto}.mes-req-table.project td strong{display:block;font-size:11px}.mes-req-table.project td strong+small{margin-top:3px}.mes-req-decision select{width:100%;height:30px;min-height:30px;padding:3px 6px;border:0;background:#eef3f8;font-size:11px;font-weight:800}.mes-req-table tr.status-required td{background:#f1f7f3}.mes-req-table tr.status-excluded td{color:#7a8595;background:#f5f6f8}.mes-req-table tr.status-required .mes-req-decision select{background:#dcefe3;color:#245f42}.mes-req-table tr.status-excluded .mes-req-decision select{background:#eceff3;color:#64738a}.mes-req-table textarea:disabled{background:#f5f6f8;color:#8b96a5}.mes-req-use-default{margin-top:3px;padding:2px 6px;border:1px solid #aebbc9;background:#fff;color:var(--navy);font-size:9px;font-weight:800}.mes-requirements-page>.savebar{padding:12px 0}.mes-requirements-page>.savebar button{padding:9px 14px}.mes-req-table input[type=number]::-webkit-inner-spin-button,.mes-req-table input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
@media(max-width:900px){.mes-req-intro{align-items:flex-start;flex-direction:column}.mes-req-kpis{justify-content:flex-start}.mes-req-toolbar{align-items:stretch;flex-direction:column}.mes-req-toolbar.project label:nth-child(2){width:auto}.mes-req-table{min-width:920px}.mes-req-table-scroll{overflow-x:auto}.mes-req-table.project th:first-child,.mes-req-table.project td:first-child{position:sticky;left:0;z-index:2}.mes-req-table.project td:first-child{background:#fff}.mes-req-table.project tr.status-required td:first-child{background:#f1f7f3}.mes-req-table.project tr.status-excluded td:first-child{background:#f5f6f8}}

/* MES-Anforderungskatalog: kompakte, sichtbar editierbare Referenztabelle. */
.mes-requirements-page,.mes-req-phases,.mes-req-phase,.mes-req-phase-body,.mes-req-module,.mes-req-subgroup{min-width:0;max-width:100%}
.mes-req-table-scroll{width:100%;min-width:0;max-width:100%;overflow-x:auto;overflow-y:visible;border-top:1px solid #c4cfdb;background:#fff;scrollbar-gutter:stable}
.mes-req-table{width:100%;min-width:1120px;max-width:none;table-layout:fixed}
.mes-req-table.global col.id{width:116px}.mes-req-table.global col.requirement{width:39%}.mes-req-table.global col.variant{width:31%}.mes-req-table.global col.source{width:190px}.mes-req-table.global col.active{width:86px}
.mes-req-table.global th:first-child,.mes-req-table.global td:first-child{position:sticky;left:0;z-index:2}.mes-req-table.global thead th:first-child{z-index:4}.mes-req-table.global tbody td:first-child{box-shadow:1px 0 0 #d3dbe7}
.mes-req-table td{padding:5px 7px;line-height:1.35;vertical-align:middle}
.mes-req-table textarea{height:auto;min-height:34px;max-height:144px;padding:7px 8px;border:0;background:#edf3f8;line-height:18px;resize:vertical;overflow-y:auto}
.mes-req-table textarea:hover{background:#e5edf5}.mes-req-table textarea:focus{outline:2px solid #6f91b5;outline-offset:-2px;background:#fff}
.mes-req-subgroup h4{position:sticky;left:0;margin:0;padding:6px 9px;border-top:1px solid #d5dde7;background:#e8edf4;color:#34445f;font-size:11px;letter-spacing:.01em}
.mes-req-module>header{position:sticky;left:0}.mes-req-module>header button{white-space:nowrap}.mes-req-active label{min-height:34px;align-content:center}
.mes-req-table-scroll::-webkit-scrollbar{height:11px}.mes-req-table-scroll::-webkit-scrollbar-track{background:#e5eaf0}.mes-req-table-scroll::-webkit-scrollbar-thumb{border:3px solid #e5eaf0;border-radius:8px;background:#8b99a9}
.read-only-view .mes-req-table textarea{background:#f5f6f8;color:#66758a}
.mes-req-table.global{min-width:900px}
.mes-req-table.global col.id{width:78px}.mes-req-table.global col.requirement{width:47%}.mes-req-table.global col.variant{width:43%}.mes-req-table.global col.active{width:86px}
.mes-req-number{white-space:nowrap;font-variant-numeric:tabular-nums}.mes-req-number b{display:inline-block;min-width:24px;text-align:right}
.mes-req-drag{display:inline-grid;place-items:center;width:25px;height:27px;margin-right:5px;border:1px solid transparent;color:#718096;font-size:14px;font-weight:800;letter-spacing:-2px;cursor:grab;user-select:none}
.mes-req-drag:hover,.mes-req-drag:focus{border-color:#9fb0c5;background:#fff;color:var(--navy);outline:0}.mes-req-drag:active{cursor:grabbing}
.mes-req-subgroup h4{display:flex;align-items:center;justify-content:space-between;gap:10px}.mes-req-subgroup h4 small{color:#78869a;font-size:9px;font-weight:600}
.mes-req-dragging{opacity:.42}.mes-req-drop-before td{box-shadow:inset 0 4px var(--coral)!important}.mes-req-drop-after td{box-shadow:inset 0 -4px var(--coral)!important}.mes-req-drop-target{outline:3px dashed var(--coral);outline-offset:-4px;background:#fff5f2}
.read-only-view .mes-req-drag{display:none}

/* MES-Anforderungskatalog: vertikal verdichtetes Arbeitsraster. */
.mes-req-phase>header{min-height:42px;padding:4px 8px}.mes-req-phase>header>button{width:30px;height:30px;min-height:30px}.mes-req-phase>header strong{font-size:16px}
.mes-req-phase-body{gap:6px;padding:6px}.mes-req-module>header{min-height:36px;padding:3px 7px}.mes-req-module>header strong{font-size:13px}.mes-req-module>header button{height:27px;min-height:27px;padding:2px 7px;font-size:10px}
.mes-req-subgroup h4{min-height:25px;padding:3px 6px;font-size:10px}
.mes-req-table.global{min-width:820px}.mes-req-table.global col.id{width:64px}.mes-req-table.global col.requirement{width:49%}.mes-req-table.global col.variant{width:calc(51% - 134px)}.mes-req-table.global col.active{width:70px}
.mes-req-table th{height:27px;padding:3px 5px;font-size:9px}.mes-req-table td{padding:2px 5px;font-size:10px;line-height:1.2}
.mes-req-table textarea{min-height:28px;max-height:112px;padding:4px 5px;font-size:10px;line-height:15px}
.mes-req-number b{min-width:18px}.mes-req-drag{width:20px;height:23px;margin-right:2px;font-size:12px}
.mes-req-active label{min-height:28px;gap:0}.mes-req-active input{width:16px;height:16px}.mes-req-active span{font-size:8px}

/* MES-Anforderungen: Drei-Spalten-Raster mit abgestimmtem Schrift-/Zeilenverhältnis. */
.mes-req-table.global{min-width:640px}.mes-req-table.global col.id{width:64px}.mes-req-table.global col.requirement{width:auto}.mes-req-table.global col.active{width:72px}
.mes-req-table.global th{height:26px;padding:3px 5px;font-size:10px;line-height:14px}
.mes-req-table.global td{padding:2px 4px;font-size:11px;line-height:16px}
.mes-req-table.global textarea{min-height:26px;max-height:96px;padding:3px 5px;font-size:11px;line-height:16px}
.mes-req-table.global .mes-req-active label{min-height:26px}.mes-req-table.global .mes-req-active span{font-size:8px;line-height:10px}

/* Pflichtstandard: Editor und Tabellenzelle bilden exakt eine Flaeche. */
.mes-req-table.global tbody td:nth-child(2){padding:0;background:#edf3f8}
.mes-req-table.global tbody tr:nth-child(even) td:nth-child(2){background:#e9eff5}
.mes-req-table.global tbody td:nth-child(2):hover{background:#e4ecf4}
.mes-req-table.global tbody td:nth-child(2):focus-within{background:#fff;box-shadow:inset 0 0 0 2px #6f91b5}
.mes-req-table.global tbody td:nth-child(2)>textarea{display:block;width:100%;height:30px;min-height:30px;max-height:94px;margin:0;padding:7px 6px;border:0;background:transparent;box-shadow:none;outline:0;resize:none;overflow-y:auto;font-size:11px;line-height:16px}
.mes-req-table.global tbody td:nth-child(2)>textarea:hover,.mes-req-table.global tbody td:nth-child(2)>textarea:focus{border:0;background:transparent;box-shadow:none;outline:0}
.mes-req-table.global .mes-req-active label{min-height:26px}
.mes-req-table.global tbody td:nth-child(2)>textarea{font-size:12px;font-weight:700}

/* Subgroup titles belong to the table header; module titles stay prominent without changing data-row height. */
.mes-req-module>header strong{font-size:16px;line-height:20px}
.mes-req-topic-head{font-size:11px!important;line-height:15px;white-space:normal;overflow-wrap:anywhere}
.mes-req-table.global.review{min-width:1450px}.mes-req-table.global.review col.id{width:64px}.mes-req-table.global.review col.requirement{width:36%}.mes-req-table.global.review col.proposal{width:36%}.mes-req-table.global.review col.review-decision{width:155px}.mes-req-table.global.review col.active{width:72px}.mes-req-table.global.review col.delete{width:52px}
.mes-req-review{padding:0!important;background:#f3f6fa!important}.mes-req-review:focus-within{background:#fff!important;box-shadow:inset 0 0 0 2px #6f91b5}.mes-req-review>textarea{display:block;width:100%;height:30px;min-height:30px;max-height:94px;margin:0;padding:7px 6px;border:0;background:transparent;box-shadow:none;outline:0;resize:none;overflow-y:auto;font-size:12px;font-weight:700;line-height:16px}.mes-req-review>small{display:block;padding:3px 6px 5px;color:#68778d;font-size:9px;line-height:12px}.mes-req-review-decision select{width:100%;height:30px;min-height:30px;margin:0;padding:3px 5px;border:0;background:#eef3f8;font-size:10px;font-weight:700}.mes-req-review-decision select:focus{outline:2px solid #6f91b5;outline-offset:-2px;background:#fff}
.mes-req-table.global{min-width:680px}.mes-req-table.global col.delete{width:52px}
.mes-req-actions{text-align:center}.mes-req-actions button{width:24px;height:24px;min-height:24px;padding:0;border:1px solid #d8a49b;background:#fff;color:#9c4438;font-size:17px;font-weight:700;line-height:20px;cursor:pointer}
.mes-req-actions button:hover,.mes-req-actions button:focus{border-color:#9c4438;background:#fae8e4;outline:0}.mes-req-actions button:disabled{border-color:#d5dde7;background:#f5f6f8;color:#9aa5b4;cursor:default}

/* Finale MES-Anforderungen: Modul- und Anforderungsschrift 16 px bei unveränderter Einzeilenhöhe. */
.mes-req-module>header strong,.mes-req-table.global tbody td:nth-child(2)>textarea{font-size:16px;line-height:20px}
.mes-req-table.global tbody td:nth-child(2)>textarea{height:30px;min-height:30px;max-height:30px;padding:5px 6px;white-space:nowrap;overflow-x:auto;overflow-y:hidden}

/* Zentrale Erfassung und zusammengeführte dunkelblaue Modul-/Untergruppenüberschrift. */
.mes-req-create-row{display:grid;grid-template-columns:minmax(230px,1.1fr) minmax(190px,.8fr) minmax(360px,2.5fr) auto auto;gap:7px;align-items:center;margin-bottom:10px;padding:8px 10px;border:1px solid #c4cfdb;background:#fff}.mes-req-create-row input,.mes-req-create-row select,.mes-req-create-row button{height:34px;min-height:34px;margin:0}.mes-req-module.compact-head{border:0;background:transparent}.mes-req-module.compact-head .mes-req-table-scroll{border-top:0}.mes-req-combined-head{height:36px!important;padding:5px 7px!important}.mes-req-combined-head strong{font-size:16px;line-height:20px}.mes-req-combined-head small{margin-left:10px;color:#dce5f2;font-size:10px;font-weight:600;white-space:nowrap}@media(max-width:1100px){.mes-req-create-row{grid-template-columns:1fr 1fr}.mes-req-create-row [data-new-mes-text]{grid-column:1/-1}}

/* Lesbare zentrale Anlagezeile und projektbezogene Katalogauswertung. */
.mes-req-create-row input,.mes-req-create-row select,.mes-req-create-row button{height:42px;min-height:42px;padding:8px 10px;font-size:14px;line-height:20px}.mes-req-create-row select{padding-top:7px;padding-bottom:7px}
.mes-req-realization-summary{display:flex;align-items:center;gap:10px;margin:-1px 0 10px;padding:8px 10px;border:1px solid #c4cfdb;background:#263f78;color:#fff}.mes-req-realization-summary>strong{margin-right:6px;font-size:14px}.mes-req-realization-summary>span{display:flex;align-items:baseline;gap:5px;padding:4px 8px;background:#ffffff14}.mes-req-realization-summary b{font-size:18px;font-variant-numeric:tabular-nums}.mes-req-realization-summary small{color:#dce5f2;font-size:10px}.mes-req-realization-summary em{margin-left:auto;color:#dce5f2;font-size:10px;font-style:normal}
.mes-req-hidden-groups{display:flex;align-items:center;gap:6px;overflow-x:auto;margin-bottom:10px;padding:7px 9px;border:1px solid #d4bd8b;background:#fff8e8;white-space:nowrap}.mes-req-hidden-groups strong{color:#6f541d;font-size:11px}.mes-req-hidden-groups button{height:28px;min-height:28px;padding:3px 8px;border:1px solid #c5aa70;background:#fff;color:#5d4a22;font-size:10px}
.mes-req-phase>header>.mes-req-hide-group{width:auto;height:28px;min-height:28px;margin-left:auto;padding:3px 9px;border-color:#aebbc9;background:#fff;color:#263451;font-size:10px;white-space:nowrap}.mes-req-table.project.catalog-style{min-width:1800px}.mes-req-table.project.catalog-style col.decision{width:135px}.mes-req-table.project.catalog-style col.number{width:58px}.mes-req-table.project.catalog-style col.requirement{width:auto}.mes-req-table.project.catalog-style col.realization{width:190px}.mes-req-table.project.catalog-style col.variant{width:31%}
.mes-req-table.project.catalog-style .mes-req-combined-head{position:relative;padding-right:125px!important}.mes-req-table.project.catalog-style .mes-req-combined-head button{position:absolute;top:5px;right:6px;height:26px;min-height:26px;padding:2px 7px;border:1px solid #dce5f2;background:#fff;color:#263451;font-size:9px}.mes-req-project-number{text-align:center;font-variant-numeric:tabular-nums}.mes-req-project-text strong{overflow:hidden;font-size:16px;line-height:20px;text-overflow:ellipsis;white-space:nowrap}.mes-req-realization select{width:100%;height:30px;min-height:30px;border:0;background:#eef3f8;font-size:11px;font-weight:700}.mes-req-realization select:disabled{color:#8b96a5;background:#f5f6f8}
@media(max-width:900px){.mes-req-realization-summary{align-items:stretch;flex-direction:column}.mes-req-realization-summary em{margin-left:0}}

/* Projektkatalog: identisches Kompaktraster wie global, nur Realisierung und Loeschen. */
.mes-req-project-actions{display:flex;justify-content:flex-end;margin-bottom:8px}.mes-req-project-actions button{height:34px;min-height:34px;padding:4px 12px}
.mes-req-table.project.catalog-style{width:100%;min-width:760px;table-layout:fixed}.mes-req-table.project.catalog-style col.number{width:60px}.mes-req-table.project.catalog-style col.requirement{width:auto}.mes-req-table.project.catalog-style col.realization{width:260px}.mes-req-table.project.catalog-style col.delete{width:76px}
.mes-req-table.project.catalog-style th{height:36px;padding:5px 7px;font-size:11px;line-height:20px;white-space:nowrap}.mes-req-table.project.catalog-style td{height:34px;padding:0 7px;font-size:12px;line-height:20px;vertical-align:middle}.mes-req-table.project.catalog-style .mes-req-project-text strong{display:block;overflow:hidden;font-size:15px;line-height:20px;text-overflow:ellipsis;white-space:nowrap}
.mes-req-table.project.catalog-style .mes-req-realization{padding:0;background:#edf3f8}.mes-req-table.project.catalog-style .mes-req-realization:focus-within{background:#fff;box-shadow:inset 0 0 0 2px #6f91b5}.mes-req-table.project.catalog-style .mes-req-realization select{display:block;width:100%;height:34px;min-height:34px;margin:0;padding:0 8px;border:0;background:transparent;box-shadow:none;color:#263451;font-size:13px;font-weight:700;line-height:20px;outline:0}
.mes-req-table.project.catalog-style .mes-req-actions{padding:0;text-align:center}.mes-req-table.project.catalog-style .mes-req-actions button{vertical-align:middle}.mes-req-table.project.catalog-style .mes-req-combined-head{height:36px!important;white-space:nowrap}.mes-req-table.project.catalog-style .mes-req-combined-head strong{display:inline;overflow:hidden;font-size:16px;line-height:20px;text-overflow:ellipsis;white-space:nowrap}.mes-req-table.project.catalog-style .mes-req-combined-head small{display:inline}.mes-req-table.project.catalog-style .mes-req-combined-head button{top:5px}

/* Mengengeruest-Pruefung: direkte + indirekte FTE muessen den Pilot-Usern je Schicht entsprechen. */
.mes-value-warning input,.cost-value-warning input{color:#b42318!important;font-weight:800!important}.mes-value-warning,.cost-value-warning{background:#fff1f0!important}.mes-value-warning input:focus,.cost-value-warning input:focus{outline-color:#b42318!important}

/* Prozessschritt-Potentiale: ein zusammenhaengender Datensatz vom Problem bis zur Umsetzung. */
.step-analysis-drawer{width:min(1040px,94vw)}.step-potential-list{display:grid;gap:12px;padding:12px}.step-potential-entry{min-width:0;border:1px solid #c4cfdb;background:#fff}.step-potential-entry>header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:8px 12px;border-bottom:1px solid #c4cfdb;background:#eef2f7}.step-potential-entry>header>div{display:grid;gap:2px;min-width:0}.step-potential-entry>header strong{overflow:hidden;color:var(--navy);font-size:18px;text-overflow:ellipsis;white-space:nowrap}.step-potential-entry>header>button{width:30px;height:30px;min-height:30px;padding:0;border:1px solid #d8a49b;background:#fff;color:#9c4438;font-size:19px}.step-potential-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.step-potential-form>label{display:grid;gap:4px;min-width:0}.step-potential-form>label:first-child,.step-potential-form>label:nth-child(4),.step-condition-section{grid-column:1/-1}.step-potential-form label>span{color:#4e5d73;font-size:11px;font-weight:700}.step-potential-form textarea{width:100%;min-width:0;margin:0;padding:7px 9px;border:1px solid #c4cfdb;background:#fff;color:var(--navy);font:inherit;resize:vertical}.step-condition-section{min-width:0;border:1px solid #c4cfdb}.step-condition-section>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;background:#e8edf5}.step-condition-section h4{margin:2px 0;color:var(--navy);font-size:16px}.step-condition-section button{white-space:nowrap}.step-condition-scroll{max-width:100%;overflow-x:auto}.step-condition-scroll table{width:100%;min-width:650px;border-collapse:collapse;table-layout:fixed}.step-condition-scroll th{padding:6px 8px;background:var(--navy);color:#fff;font-size:11px;text-align:left}.step-condition-scroll th:last-child{width:58px;text-align:center}.step-condition-scroll td{padding:0;border:1px solid #d3dbe6;vertical-align:middle}.step-condition-scroll textarea{display:block;width:100%;min-height:52px;margin:0;padding:7px 8px;border:0;background:#f4f7fa;box-shadow:none;resize:vertical}.step-condition-scroll td:last-child{text-align:center}.step-condition-scroll td:last-child button{width:26px;height:26px;min-height:26px;padding:0;border:1px solid #d8a49b;background:#fff;color:#9c4438;font-size:17px}.step-condition-empty td{height:42px!important;padding:8px!important;color:#68778d;text-align:center!important}

/* Weitere Projektanmerkungen: Potentiale in Wertstromreihenfolge. */
.project-potential-overview{min-width:0;max-width:100%;border-bottom:1px solid #c4cfdb;background:#fff}.project-potential-overview>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;background:#eef2f7}.project-potential-overview h3{margin:3px 0;color:var(--navy);font-size:20px}.project-potential-overview p{margin:0;color:#68778d}.project-potential-overview>header>b{font-size:24px}.project-potential-scroll{width:100%;max-width:100%;overflow-x:auto}.project-potential-scroll table{width:100%;min-width:1800px;border-collapse:collapse;table-layout:fixed}.project-potential-scroll th,.project-potential-scroll td{padding:7px 9px;border:1px solid #d3dbe6;vertical-align:middle}.project-potential-scroll thead th{background:var(--navy);color:#fff;font-size:11px;text-align:left;white-space:nowrap}.project-potential-scroll thead th:nth-child(1){width:150px}.project-potential-scroll thead th:nth-child(2){width:180px}.project-potential-scroll thead th:nth-child(3){width:190px}.project-potential-scroll thead th:nth-child(4),.project-potential-scroll thead th:nth-child(5),.project-potential-scroll thead th:nth-child(6){width:240px}.project-potential-scroll thead th:nth-child(7){width:360px}.project-potential-scroll thead th:nth-child(8){width:150px}.project-potential-scroll tbody th{background:#edf2f7;color:var(--navy);text-align:left}.project-potential-scroll tbody th span{display:inline-block;margin-right:6px;color:#78869a;font-size:10px}.project-potential-scroll tbody td{font-size:12px;line-height:1.35}.project-potential-conditions div{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:4px 0;border-bottom:1px solid #dfe5ed}.project-potential-conditions div:last-child{border-bottom:0}.project-potential-conditions span{color:#5d6b7f}.project-potential-conditions em,.project-potential-empty{color:#78869a;font-style:normal}.project-potential-realization{padding:0!important;background:#edf3f8}.project-potential-realization select{display:block;width:100%;height:38px;min-height:38px;margin:0;padding:0 8px;border:0;background:transparent;color:var(--navy);font-weight:700}.project-potential-realization:focus-within{background:#fff;box-shadow:inset 0 0 0 2px #6f91b5}.project-potential-empty{padding:24px;text-align:center}
@media(max-width:760px){.step-potential-form{grid-template-columns:1fr}.step-potential-form>label{grid-column:1/-1}}

/* Business Case: kurze transparente Erlaeuterung der mengenbasierten Verteilung. */
.bc-distribution-note{display:grid;grid-template-columns:auto repeat(3,minmax(0,1fr));gap:10px;padding:10px 14px;border-bottom:1px solid #c4cfdb;background:#eef3f8}.bc-distribution-note>strong{align-self:start;color:var(--navy);font-size:14px}.bc-distribution-note>span{color:#4e5d73;font-size:12px;line-height:1.4}.bc-distribution-note b{color:var(--navy)}@media(max-width:1000px){.bc-distribution-note{grid-template-columns:1fr}.bc-distribution-note>strong{margin-bottom:-3px}}

/* Grafischer SOLL-Prozesseditor mit lokaler Arbeitsflaeche. */
.target-process-editor{min-width:0;max-width:100%;border-top:10px solid #f1f4f8;background:#fff}.target-process-editor>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid #c4cfdb;background:#eef2f7}.target-process-editor h3{margin:3px 0;color:var(--navy);font-size:20px}.target-process-editor p{margin:0;color:#68778d}.target-process-workspace{display:grid;grid-template-columns:270px minmax(900px,1fr);width:100%;min-width:0;max-width:100%;overflow-x:auto;background:#e8edf4}.target-process-workspace>aside{position:sticky;left:0;z-index:5;min-height:620px;padding:12px;border-right:1px solid #aebbc9;background:#f7f9fb}.target-process-workspace>aside>strong{display:block;color:var(--navy);font-size:15px}.target-process-workspace>aside>p{margin:3px 0 10px;font-size:11px}.target-process-workspace>aside>div{display:grid;gap:7px}.target-process-workspace>aside button{display:grid;gap:3px;width:100%;min-height:54px;padding:7px 9px;border:1px solid #b9c5d4;background:#fff;color:var(--navy);text-align:left;cursor:grab}.target-process-workspace>aside button:hover{border-color:var(--coral);background:#fff7f4}.target-process-workspace>aside button span{color:#68778d;font-size:10px}.target-process-workspace>aside button b{overflow:hidden;font-size:12px;line-height:16px;text-overflow:ellipsis;white-space:nowrap}.target-process-workspace>aside em{color:#78869a;font-size:12px;font-style:normal}.target-process-canvas{position:relative;width:100%;min-width:900px;height:620px;overflow:hidden;background-color:#fff;background-image:linear-gradient(#dce4ee 1px,transparent 1px),linear-gradient(90deg,#dce4ee 1px,transparent 1px);background-size:24px 24px}.target-process-canvas>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.target-process-canvas line{stroke:#263f78;stroke-width:2.5;cursor:pointer;pointer-events:stroke}.target-process-canvas line:hover{stroke:#d86f59;stroke-width:4}.target-process-canvas marker path{fill:#263f78}.target-process-canvas-empty{position:absolute;inset:0;display:grid;place-items:center;color:#8b98aa;font-size:20px;font-weight:700;pointer-events:none}.target-process-node{position:absolute;z-index:2;width:220px;height:130px;border:1px solid #9eacc0;background:#fff;box-shadow:0 4px 12px #102d5820}.target-process-node>header{display:flex;align-items:center;justify-content:flex-end;height:28px;padding:2px 4px;background:var(--navy);color:#fff;cursor:move}.target-process-node>header>span{margin-right:auto;letter-spacing:-2px}.target-process-node>header button{width:24px;height:24px;min-height:24px;padding:0;border:1px solid #ffffff55;background:#ffffff12;color:#fff;font-size:15px}.target-process-node>header button.active{background:var(--coral)}.target-process-node label{display:grid;grid-template-columns:42px 1fr;align-items:center;min-width:0;border-bottom:1px solid #d5dde7}.target-process-node label>span{padding-left:6px;color:#68778d;font-size:9px;font-weight:700}.target-process-node input,.target-process-node textarea{display:block;width:100%;margin:0;padding:4px 6px;border:0;background:#f3f6f9;color:var(--navy);font:inherit;box-shadow:none}.target-process-node input{height:30px;font-size:12px;font-weight:700}.target-process-node textarea{height:70px;font-size:11px;line-height:15px;resize:none}.target-process-node label:focus-within{box-shadow:inset 0 0 0 2px #6f91b5}.target-process-editor>footer{padding:7px 12px;background:var(--navy);color:#dce5f2;font-size:11px}
