/* ---------- Gesellschaften (Legal Entities) ---------- */
.ent-rail .ent-num { background: var(--navy-600); font-size: 10px; letter-spacing: 0.02em; }
.ent-focus { display: flex; align-items: center; }
.ent-filter { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ent-filter select { min-width: 220px; }
.view-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.ent-banner { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #ecfeff; border: 1px solid #a5f3fc; color: #155e75; font-size: 13px; }
.ent-banner.off { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.ent-banner svg { width: 16px; height: 16px; flex: none; }
.ent-banner .link-btn { margin-left: auto; }
.ent-modal { width: min(880px, 100%); }
.ent-tabs { margin: 12px 24px 0; align-self: flex-start; }
.ent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.ent-grid .ent-wide { grid-column: 1 / -1; }
.ent-group { margin: 16px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.ent-flags { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.ent-flag { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.ent-flag.own { background: var(--brand-50); }
.ent-flag select { width: auto; min-width: 150px; }
.ent-reg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ent-reg-head .seg { margin-left: auto; }
.ent-reg { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.ent-reg.check { border-color: #fde68a; background: #fffdf5; }
.ent-reg-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ent-reg-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.ent-reg-act input { flex: 1; min-width: 220px; }
.ent-reg-act input.missing { border-color: #fda4af; background: #fff1f2; }
.ent-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; border-top: 1px solid var(--line); }
.ent-matrix-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.ent-matrix-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ent-matrix { border-collapse: collapse; width: 100%; font-size: 13px; }
.ent-matrix th, .ent-matrix td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.ent-matrix thead th { position: sticky; top: 0; background: var(--brand-50); font-size: 12px; white-space: nowrap; }
.ent-matrix thead th small, .ent-matrix tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.ent-matrix tbody th { font-weight: 400; min-width: 220px; }
.ent-cell { border: 0; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 700; }
.ent-cell:not([data-ent-reg]) { cursor: default; }
.ent-variant { border: 1px solid #a5f3fc; background: #f0fdff; border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.ent-variant-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ent-scope .chips { margin-bottom: 4px; }
.tag.ent-var { background: #cffafe; color: #155e75; border-color: #a5f3fc; }
.cmp-mode { margin-right: 6px; }
@media (max-width: 720px) { .ent-grid, .ent-flags { grid-template-columns: 1fr; } }

/* ---------- Rechte je Prozessbereich (Projektmitglieder) ---------- */
.share-scope { flex-basis: 100%; margin: 4px 0 0 42px; font-size: 12.5px; }
.share-scope summary { cursor: pointer; color: var(--brand-600); }
.share-scope .check-label { margin: 3px 0; }
.share-scope-text { flex-basis: 100%; margin: 2px 0 0 42px; font-size: 12px; color: var(--muted); }
.member { flex-wrap: wrap; }

/* ---------- Rückmeldungen ---------- */
.portal-head-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.fb-step { margin-left: 6px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; line-height: 1; }
.fb-step:hover { border-color: var(--brand); color: var(--brand); }
.fb-kinds { display: flex; margin-bottom: 10px; }
.fb-kinds label { cursor: pointer; }
.fb-kinds label.on { background: var(--brand); color: #fff; }
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--panel); }
.fb-item.open { border-left: 4px solid var(--warn); }
.fb-item header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fb-status { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); }
.fb-status.s-neu { background: #fff7ed; color: #c2410c; }
.fb-status.s-in-Bearbeitung { background: #eff6ff; color: #1d4ed8; }
.fb-status.s-umgesetzt, .fb-status.s-beantwortet { background: #ecfdf5; color: #047857; }
.fb-where { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.fb-text { margin: 6px 0; white-space: pre-wrap; }
.fb-response { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--brand-50); font-size: 13px; }
.fb-handle { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.fb-handle input { flex: 1; min-width: 240px; }
.fb-handle select { width: auto; }
.portal-feedback:not(:empty) { margin-top: 24px; }
.count-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--warn); color: #fff; font-size: 11px; font-weight: 800; }

/* ---------- Cockpit ---------- */
#view-cockpit { overflow: auto; }
.cockpit-tabs { margin: 4px 0 14px; flex-wrap: wrap; }
.cockpit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; }
.cockpit-card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 14px 16px; }
.cockpit-card h4 { margin: 0 0 8px; }
.cockpit-card p { margin: 4px 0; font-size: 13px; }
.cockpit-todo { margin: 0; padding-left: 18px; font-size: 13px; }
.cockpit-todo li { margin: 4px 0; }
.cockpit-table { width: 100%; font-size: 13px; }
.cockpit-table .bad-row td { background: #fff1f2; }
.cockpit-note { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; font-size: 13px; }
.cockpit-note svg { width: 16px; height: 16px; flex: none; }
.cockpit-bar { display: grid; grid-template-columns: 110px 1fr 48px; align-items: center; gap: 8px; font-size: 12.5px; margin: 4px 0; }
.cockpit-bar div { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.cockpit-bar i { display: block; height: 100%; background: var(--brand); }
.cockpit-export { max-width: 760px; }
.cockpit-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; margin: 10px 0 16px; }
.lc-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; }
.lc-pill.released { background: #ecfdf5; color: #047857; }
.lc-pill.review, .lc-pill.approval { background: #fffbeb; color: #b45309; }

/* Reiterleiste: mit Cockpit zehn Reiter – kompakter, auf schmalen Bildschirmen ohne Symbole */
.tabs { gap: 0; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 10px 10px 12px; gap: 6px; white-space: nowrap; }
@media (max-width: 1500px) { .tabs button svg { display: none; } }
.ent-focus select { height: 30px; min-width: 240px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; appearance: none; font: inherit; font-weight: 600; color: var(--ink); }
.ent-focus select:has(option:checked:not([value=""])) { border-color: #06b6d4; background-color: #ecfeff; color: #155e75; }
.ent-filter span { color: var(--muted); font-weight: 500; }
.fb-kinds { gap: 4px; padding: 3px; }
.fb-kinds label { flex: 1; text-align: center; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fb-kinds label.on { background: var(--brand); color: #fff; }
