/* IT HUB - MOBEX Corporate Identity (Skill mobex-branding): Dark Navy, Primary Teal, Muted Blue (einzige CTA),
   Tech Cyan nur fuer Interaktionen, Light Surface fuer Flaechen. Keine Signalfarben - Unterscheidung ueber Typografie/Symbole. */
:root {
  --navy: #091B28;
  --teal: #6C929B;
  --blue: #4A6C82;
  --cyan: #00C2D1;
  --surface: #F4F7F8;
  --white: #FFFFFF;
  --hair: rgba(9, 27, 40, .12);
  --hair-strong: rgba(9, 27, 40, .24);
  --text: var(--navy);
  --muted: #56707a;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 6px;
  --sidebar: 232px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--surface); }
a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.25; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.mono { font-family: Consolas, 'Cascadia Mono', monospace; font-size: 12px; }
[hidden] { display: none !important; }

/* ---------- Grundgeruest */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand img { height: 16px; display: block; opacity: .95; }
.brand .product { margin-top: 10px; font-size: 20px; font-weight: 700; letter-spacing: 3px; }
.nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav .group { margin: 14px 10px 6px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius); color: rgba(255,255,255,.88); }
.nav a.sub { padding-left: 28px; font-size: 13px; color: rgba(255,255,255,.72); }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--teal); }
.nav .count { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.14); border-radius: 10px; padding: 0 7px; }
.sidebar .foot { padding: 14px 20px; font-size: 12px; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.1); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 28px; background: var(--white); border-bottom: 1px solid var(--hair); position: sticky; top: 0; z-index: 5; }
.topbar .search { flex: 1; max-width: 420px; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }
.mode-chip { font-size: 11px; letter-spacing: .5px; border: 1px dashed var(--teal); color: var(--muted); padding: 2px 8px; border-radius: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-grid; place-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
.avatar.frieda { background: var(--navy); }
.content { padding: 24px 28px 48px; width: 100%; min-width: 0; }   /* volle Breite (Christian 23.10.2026, vorher max. 1400px) */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .crumbs { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Karten, Raster */
.card { background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head .actions { margin-left: auto; display: flex; gap: 6px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid.halves { grid-template-columns: 1fr 1fr; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius); padding: 14px 16px; display: block; color: var(--text); }
.kpi:hover { border-color: var(--cyan); color: var(--text); }
.kpi .v { font-size: 28px; font-weight: 700; line-height: 1.1; }
.kpi .l { font-size: 12px; color: var(--muted); }
.kpi.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.kpi.primary .l { color: rgba(255,255,255,.85); }

/* ---------- Tabellen */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--hair-strong); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
tbody tr:nth-child(even) td { background: #fafbfc; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface); }
td .title { font-weight: 600; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---------- Status-Kennzeichen (ohne Signalfarben) */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 1px 9px; border-radius: 10px; border: 1px solid var(--hair-strong); white-space: nowrap; background: var(--white); color: var(--text); }
.badge.s-entwurf { border-style: dashed; color: var(--muted); }
.badge.s-geplant { background: var(--surface); border-color: var(--teal); }
.badge.s-in_umsetzung { background: var(--teal); border-color: var(--teal); color: #fff; }
.badge.s-pausiert { border-style: dotted; border-width: 2px; }
.badge.s-abgeschlossen { background: var(--navy); border-color: var(--navy); color: #fff; }
.badge.s-abgebrochen { text-decoration: line-through; color: var(--muted); }
.badge.t-erledigt, .badge.m-erreicht { background: var(--navy); border-color: var(--navy); color: #fff; }
.badge.t-in_bearbeitung { background: var(--teal); border-color: var(--teal); color: #fff; }
.badge.t-wartet { border-style: dotted; border-width: 2px; }
.badge.t-entfaellt, .badge.m-entfaellt { text-decoration: line-through; color: var(--muted); }
.badge.c-in_klaerung { border-color: var(--teal); }
.badge.c-freigabe_offen { background: var(--blue); border-color: var(--blue); color: #fff; }
.badge.c-manuell { border-style: dashed; }
.prio { font-size: 12px; white-space: nowrap; }
.prio.hoch, .prio.kritisch { font-weight: 700; }
.prio.kritisch::before { content: '▲▲ '; }
.prio.hoch::before { content: '▲ '; }
.prio.niedrig { color: var(--muted); }
.overdue { font-weight: 700; }
.overdue::before { content: '✕ '; }
.tag { display: inline-block; font-size: 11px; background: var(--surface); border: 1px solid var(--hair); border-radius: 3px; padding: 0 6px; margin: 0 4px 4px 0; color: var(--muted); }

/* ---------- Formulare, Buttons */
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--white); border: 1px solid var(--hair-strong); border-radius: 4px; padding: 7px 9px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0,194,209,.2); }
textarea { min-height: 80px; resize: vertical; }
.field { margin-bottom: 12px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.check { display: flex; align-items: center; gap: 6px; font-weight: 400; color: var(--text); font-size: 13px; }
.check input { width: auto; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 4px; border: 1px solid var(--hair-strong); background: var(--white); color: var(--navy); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--cyan); color: var(--navy); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--cyan); border-color: var(--cyan); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface); }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: default; }
.icon-btn { background: none; border: 0; cursor: pointer; padding: 4px 6px; color: var(--muted); font-size: 14px; border-radius: 4px; }
.icon-btn:hover { color: var(--navy); background: var(--surface); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar select, .toolbar input { width: auto; min-width: 150px; }
.segmented { display: inline-flex; border: 1px solid var(--hair-strong); border-radius: 4px; overflow: hidden; }
.segmented a { padding: 6px 12px; font-size: 13px; color: var(--navy); border-right: 1px solid var(--hair); }
.segmented a:last-child { border-right: 0; }
.segmented a.active { background: var(--navy); color: #fff; }

/* ---------- Registerkarten */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--hair-strong); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--navy); }
.tabs a.active { color: var(--navy); border-bottom-color: var(--navy); }
.tabs .n { font-weight: 400; font-size: 11px; margin-left: 4px; }

/* ---------- Projektkopf */
.project-head { background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.project-head .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.project-head .key { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.project-head h1 { margin: 4px 0 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }
.facts .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.facts .v { font-weight: 600; }
.info-box { background: var(--surface); border-left: 3px solid var(--teal); padding: 12px 14px; border-radius: 0 var(--radius) var(--radius) 0; white-space: pre-line; }
.cta-box { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 16px 18px; }
.cta-box label { color: rgba(255,255,255,.85); }
.cta-box .btn.primary { background: var(--white); color: var(--blue); border-color: var(--white); }
.cta-box .btn.primary:hover { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.cta-box h2 { margin-bottom: 6px; }
.list-plain { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Timeline der Anfrage */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 1px; background: var(--hair-strong); }
.tl-item { position: relative; margin-bottom: 16px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin-left: -20px; }
.tl-item .avatar { position: relative; z-index: 1; }
.tl-card { background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius); padding: 10px 14px; }
.tl-item.in .tl-card { background: var(--surface); }
.tl-item.draft .tl-card { border: 1px dashed var(--blue); }
.tl-meta { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.tl-meta b { color: var(--navy); font-size: 13px; }
.tl-body { white-space: pre-wrap; word-break: break-word; }
.tl-body textarea { min-height: 160px; }
.tl-actions { display: flex; gap: 6px; margin-top: 8px; }

/* ---------- Board (Projekte nach Status) */
.board { display: grid; grid-template-columns: repeat(6, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.column { background: #eaeff1; border-radius: var(--radius); padding: 10px; min-height: 120px; }
.column h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin: 2px 4px 10px; display: flex; }
.column h3 .n { margin-left: auto; color: var(--muted); font-weight: 400; }
.bcard { display: block; background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; color: var(--text); }
.bcard:hover { border-color: var(--cyan); color: var(--text); }
.bcard .k { font-size: 11px; color: var(--muted); }
.bcard .t { font-weight: 600; margin: 2px 0 6px; }
.bcard .m { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Eintraege, Historie */
.entry { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hair); align-items: flex-start; }
.entry:last-child { border-bottom: 0; }
.entry .txt { flex: 1; }
.entry.done .txt { color: var(--muted); }
.entry .sym { width: 18px; text-align: center; font-weight: 700; color: var(--blue); }
.hist { font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--hair); }
.hist .when { color: var(--muted); font-size: 12px; }
.hist .chg { color: var(--muted); font-size: 12px; }

/* ---------- Wissensdatenbank */
.kb { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.kb .cats a { display: flex; padding: 6px 10px; border-radius: 4px; color: var(--navy); }
.kb .cats a.active { background: var(--navy); color: #fff; }
.kb .cats a:hover:not(.active) { background: var(--white); }
.kb .cats .n { margin-left: auto; color: inherit; opacity: .6; font-size: 12px; }
.article-item { display: block; padding: 14px 0; border-bottom: 1px solid var(--hair); color: var(--text); }
.article-item:hover { color: var(--text); }
.article-item:hover .at { color: var(--cyan); }
.article-item .at { font-weight: 700; color: var(--blue); }
.markdown { max-width: 820px; }
.markdown h1 { font-size: 22px; margin: 0 0 14px; }
.markdown h2 { font-size: 17px; margin: 22px 0 8px; }
.markdown h3 { font-size: 14px; margin: 18px 0 6px; }
.markdown p, .markdown ul, .markdown ol { margin: 0 0 10px; }
.markdown code { background: var(--surface); padding: 1px 5px; border-radius: 3px; font-family: Consolas, monospace; font-size: 12.5px; }
.markdown pre { background: var(--navy); color: #fff; padding: 12px 14px; border-radius: var(--radius); overflow-x: auto; }
.markdown pre code { background: none; padding: 0; color: inherit; }
.markdown table { margin: 8px 0 14px; }
.markdown blockquote { margin: 0 0 10px; padding: 6px 14px; border-left: 3px solid var(--teal); background: var(--surface); }

/* ---------- Benachrichtigungen, Dialog, Meldung */
.bell { position: relative; }
.bell .dot { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.popover { position: absolute; right: 16px; top: 52px; width: 380px; max-height: 70vh; overflow-y: auto; background: var(--white); border: 1px solid var(--hair-strong); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(9,27,40,.16); z-index: 20; }
.popover .ph { display: flex; padding: 10px 14px; border-bottom: 1px solid var(--hair); align-items: center; }
.notif { display: block; padding: 10px 14px; border-bottom: 1px solid var(--hair); color: var(--text); }
.notif:hover { background: var(--surface); color: var(--text); }
.notif.unread { box-shadow: inset 3px 0 0 var(--blue); }
.notif .nt { font-weight: 600; font-size: 13px; }
.notif .nx { font-size: 12px; color: var(--muted); white-space: pre-line; max-height: 3.6em; overflow: hidden; }
.modal-back { position: fixed; inset: 0; background: rgba(9,27,40,.45); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px; z-index: 30; overflow-y: auto; }
.modal { background: var(--white); border-radius: var(--radius); width: 100%; max-width: 620px; padding: 20px 22px; box-shadow: 0 16px 40px rgba(9,27,40,.3); }
.modal h2 { margin-bottom: 14px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--radius); z-index: 40; max-width: 90vw; box-shadow: 0 8px 24px rgba(9,27,40,.3); }
.toast.error::before { content: '✕  '; font-weight: 700; }
.lookup { position: relative; }
.lookup .results { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border: 1px solid var(--hair-strong); border-radius: 4px; z-index: 10; max-height: 220px; overflow-y: auto; }
.lookup .results a { display: block; padding: 6px 10px; color: var(--navy); }
.lookup .results a:hover { background: var(--surface); }
.link-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.link-row .lt { width: 130px; font-size: 12px; color: var(--muted); }
.link-row .lv { flex: 1; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Login, Benutzermenue, Rechte */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); background: var(--white); }
.login-hero { background: var(--navy); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login-hero img { height: 18px; width: auto; align-self: flex-start; }
.login-hero .product { font-size: 44px; font-weight: 700; letter-spacing: 6px; margin-top: 18px; }
.login-hero p { color: rgba(255,255,255,.72); max-width: 420px; }
.login-hero .hair { width: 64px; height: 3px; background: var(--teal); margin: 18px 0; }
.login-form { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.login-form h1 { margin-bottom: 6px; }
.login-form .err { margin: 0 0 12px; font-weight: 600; }
.login-form .err::before { content: '✕ '; }
.login-form .btn.primary { width: 100%; justify-content: center; padding: 10px; margin-top: 6px; }
.login-form .btn.ms-login { gap: 10px; text-decoration: none; }   /* Microsoft-Anmeldung (AUTH_MODE=entra) */
.user-menu { position: relative; }
.user-menu .menu { position: absolute; right: 0; top: 36px; background: var(--white); border: 1px solid var(--hair-strong); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(9,27,40,.16); min-width: 220px; z-index: 22; padding: 6px 0; }
.user-menu .menu a, .user-menu .menu button { display: block; width: 100%; text-align: left; padding: 8px 14px; background: none; border: 0; font: inherit; color: var(--navy); cursor: pointer; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--surface); color: var(--navy); }
.user-menu .menu .who { padding: 8px 14px 10px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font: inherit; color: var(--navy); padding: 2px 4px; border-radius: 4px; }
.user-btn:hover { background: var(--surface); }
.role { font-size: 11px; border: 1px solid var(--hair-strong); border-radius: 10px; padding: 0 7px; color: var(--muted); white-space: nowrap; }
.role.admin { background: var(--navy); border-color: var(--navy); color: #fff; }
.readonly-note { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px dashed var(--teal); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.readonly-note .actions { margin-left: auto; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset[disabled] input, fieldset[disabled] select, fieldset[disabled] textarea { background: var(--surface); color: var(--muted); }
.once-secret { font-family: Consolas, monospace; font-size: 16px; letter-spacing: 1px; background: var(--surface); border: 1px solid var(--hair-strong); padding: 10px 12px; border-radius: 4px; user-select: all; }

/* ---------- Schmale Bildschirme */
@media (max-width: 1000px) {
  .grid.two, .grid.halves { grid-template-columns: 1fr; }
  .kb { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar); transform: translateX(-100%); transition: transform .2s; z-index: 25; }
  .shell.nav-open .sidebar { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .content { padding: 16px 16px 40px; }
  .mode-chip, .user-chip .uname { display: none; }
  .popover { left: 16px; right: 16px; width: auto; }
  .login-page { grid-template-columns: 1fr; }
  .login-hero { padding: 28px 16px; }
  .login-hero .product { font-size: 30px; }
  .login-form { padding: 28px 16px; }
}

/* ---------- Controlling HUB: Provisionskontrolle (Schritte, Status, Kuemmerliste) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.step { background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius); padding: 10px 14px; display: flex; gap: 10px; align-items: center; color: var(--text); }
.step:hover { border-color: var(--cyan); color: var(--text); }
.step .n { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--teal); color: var(--teal); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: 0 0 auto; }
.step.active { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.step.active .n { background: var(--blue); border-color: var(--blue); color: #fff; }
.step.done .n { background: var(--teal); color: #fff; }
.step .t { font-weight: 600; } .step .s { font-size: 12px; color: var(--muted); }
.kpi.active { border-color: var(--blue); box-shadow: inset 0 3px 0 var(--blue); }
.badge.st-treffer { background: var(--navy); border-color: var(--navy); color: #fff; }
.badge.st-differenz { background: var(--blue); border-color: var(--blue); color: #fff; }
.badge.st-offen { border-style: dashed; color: var(--muted); }
.badge.st-storno { background: var(--teal); border-color: var(--teal); color: #fff; }
.badge.kl-neu { border-style: dashed; }
.badge.kl-in_bearbeitung { background: var(--teal); border-color: var(--teal); color: #fff; }
.badge.kl-erledigt { background: var(--navy); border-color: var(--navy); color: #fff; }
.badge.kl-entfaellt { text-decoration: line-through; color: var(--muted); }
tr.kuemmern td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
tr.done td { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td select { padding: 4px 6px; font-size: 13px; }
.crumbs { font-size: 12px; color: var(--muted); letter-spacing: .5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .grid.two { grid-template-columns: 1fr !important; } }

/* ---------- Ablage */
.ablage { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.ablage > div > .card + .card { margin-top: 16px; }
.tree { padding: 12px 10px; }
.tree .t-h { display: flex; align-items: center; gap: 6px; padding: 4px 6px 8px; color: var(--navy); }
.tree .t-h .ic { color: var(--teal); }
.tree .t-i { display: flex; align-items: center; gap: 6px; padding: 5px 8px 5px 22px; border-radius: 4px; color: var(--navy); font-size: 13px; }
.tree .t-i.sub { padding-left: 22px; }
.tree .t-i.subsub { padding-left: 40px; color: var(--muted); }
.tree .t-i .ic { color: var(--teal); flex: 0 0 auto; }
.tree a.t-i:hover { background: var(--surface); color: var(--navy); }
.tree a.t-i.active { background: var(--navy); color: #fff; }
.tree a.t-i.active .ic, .tree a.t-i.active .t-m { color: rgba(255,255,255,.8); }
.tree .t-n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree .t-i.subsub .t-n { font-weight: 400; }
.tree .t-m { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; }
.tree .t-s { font-size: 12px; margin-left: 6px; }
tr.fehlt td { background: var(--surface); }
.ic { vertical-align: -3px; color: var(--teal); }

/* ---------- Provisionsabgleich */
.ablauf { list-style: none; margin: 10px 0 0; padding: 0; }
.ablauf li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.ablauf li:last-child { border-bottom: 0; }
.ablauf .n { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--hair-strong); color: var(--muted); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: 0 0 auto; }
.ablauf li.laeuft .n { border-color: var(--cyan); color: var(--cyan); animation: puls 1s ease-in-out infinite; }
.ablauf li.ok .n { background: var(--navy); border-color: var(--navy); color: #fff; }
.ablauf li.warn .n { background: var(--teal); border-color: var(--teal); color: #fff; }
.ablauf li.fehler .n { border-style: dashed; border-color: var(--navy); color: var(--navy); }
.ablauf li.fehler [data-t] { color: var(--navy); font-weight: 600; }
@keyframes puls { 50% { opacity: .35; } }

/* ---------- Provisionskontrolle (Aufbau wie Rohertragsliste) */
.stand { margin: -8px 0 12px; }
.summen { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.summen > div { padding: 12px 16px; border-right: 1px solid var(--hair); }
.summen > div:last-child { border-right: 0; }
.summen .l { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.summen .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summen .s { font-size: 12px; color: var(--muted); }
.summen .cta { background: var(--blue); color: #fff; }
.summen .cta .l, .summen .cta .s { color: rgba(255,255,255,.8); }
/* Validierung Steffi 09.11.2026 (A4): Links in der farbigen Kachel weiß und unterstrichen statt blau auf violett */
.summen .cta a, .summen .cta a:visited { color: #fff !important; text-decoration: underline; font-weight: 600; }
.summen .cta a:hover { color: #fff !important; opacity: .85; }
/* A10/B1: Sortieren per Klick auf die Spaltenüberschrift */
th.sortierbar { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortierbar:hover { color: var(--blue); }
th.sort-auf::after { content: ' ▲'; font-size: 10px; }
th.sort-ab::after { content: ' ▼'; font-size: 10px; }
/* A6: Zeitraum Jahr / Monat / Einzelmonat|YTD */
.zeitraum-wahl { flex-wrap: wrap; gap: 6px; }
/* Bereichsumschalter (Christian 09.11.2026): in der Auswahlzeile links neben „Alle Provider“, gleiche Höhe wie die Auswahlfelder */
.zeitraum-wahl .bereich-kopf { align-self: stretch; display: inline-flex; }
.zeitraum-wahl .bereich-kopf a { display: flex; align-items: center; padding: 0 14px; font-weight: 600; }
.segmented.klein a { padding: 5px 10px; font-size: 12px; }
/* Knopf "CRM ↗" je Datensatz (09.11.2026) */
.crm-knopf { font-size: 11px; padding: 2px 7px; white-space: nowrap; }
table.kontrolle td.crm-zelle { width: 58px; text-align: center; }
table.ro-kompakt .crm-knopf { margin-top: 3px; padding: 2px 6px; }
/* Provision andere Provider (09.11.2026) */
.andere-kachel { margin-bottom: 16px; }
.andere-kachel .an-scroll { max-height: 360px; overflow: auto; }
.andere-kachel .an-pruefen { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 10px; background: #FFF4D6; color: #7A5A00; }
.andere-kachel tr.an-hinweis td { font-size: 12px; color: #7A5A00; background: #FFFBEF; padding-top: 2px; }
.andere-kachel .an-pruefen-text { color: #7A5A00; }
.andere-kachel tr.an-zeile { cursor: pointer; }
.andere-kachel tr.an-zeile.offen .pk-pfeil { display: inline-block; transform: rotate(90deg); }
.andere-kachel .an-pdf, .andere-kachel .an-excel { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 10px; background: #EEF0FF; color: #3B2FB8; }
.andere-kachel .an-excel { background: #E8F6EF; color: #146C43; }
/* C1: nachträglich erfasst */
.pruef .nacherf, .kv .nacherf { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 10px; background: #FFF4D6; color: #7A5A00; }
.pruef .nacherf.frist, .kv .nacherf.frist { background: #FDE2E2; color: #9B1C1C; }
.pruef .nacherf.verschoben, .kv .nacherf.verschoben { background: #E3ECFF; color: #1F3F8F; }
.mz-leiste { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 8px; }
.mz-leiste label { display: inline-flex; gap: 6px; align-items: center; }
table.kontrolle input.mz-wahl { vertical-align: middle; margin: 0 4px 0 0; }
/* Rohertrag kompakt (Christian 09.11.2026: bei 80 % Fenstergröße alles auf einen Blick): feste Breiten, Umbruch statt waagerechtem Scrollen */
table.ro-kompakt { table-layout: fixed; width: 100%; font-size: 12px; }
table.ro-kompakt th, table.ro-kompakt td { padding: 5px 6px; white-space: normal; overflow-wrap: break-word; vertical-align: top; }
table.ro-kompakt td.nw, table.ro-kompakt .nw { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.ro-kompakt thead th { font-size: 11px; line-height: 1.25; }
table.ro-kompakt thead tr.gruppen th { padding: 4px 6px; letter-spacing: .5px; font-size: 10px; }
table.ro-kompakt td.firma { max-width: none; }
table.ro-kompakt .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.ro-kompakt .ell2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
table.ro-kompakt .small { font-size: 11px; }
/* Status-Auswahl passt sich der Spalte an (überschreibt die feste Breite 132px von table.ro-tab .ro-sel) */
table.ro-tab.ro-kompakt .ro-sel { width: 100%; min-width: 0; max-width: 100%; font-size: 11px; padding: 2px 4px; }
table.ro-tab.ro-kompakt td.ro-bh > div { display: inline-block; width: calc(100% - 22px); vertical-align: top; }
table.ro-tab.ro-kompakt td.ro-bh .ro-wahl { display: inline-block; width: 18px; vertical-align: top; }
table.ro-kompakt .ro-prot { font-size: 11px; padding: 2px 6px; margin-top: 3px; }
table.ro-kompakt .badge { font-size: 10px; padding: 0 5px; }
table.ro-kompakt tr.filter-zeile th { padding: 3px 4px; }
table.ro-kompakt tr.filter-zeile .fz { display: flex; min-width: 0; }
table.ro-kompakt tr.filter-zeile input { min-width: 0; width: 100%; font-size: 11px; padding: 2px 4px; }
/* B3: Spaltenwahl im Rohertrag */
.ro-spaltenwahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; max-height: 60vh; overflow: auto; }
.ro-spaltenwahl label { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.ro-spaltenwahl label .muted { margin-left: auto; }
table.kontrolle { font-size: 13px; }
table.kontrolle thead tr.gruppen th { text-transform: uppercase; letter-spacing: 1px; font-size: 11px; color: #fff; border-bottom: 0; padding: 6px 10px; }
table.kontrolle .g-vorgang { background: var(--navy); }
table.kontrolle .g-prov { background: var(--blue); border-left: 2px solid #fff; }
table.kontrolle .g-hw { background: var(--teal); border-left: 2px solid #fff; }
table.kontrolle .g-erg { background: var(--navy); border-left: 2px solid #fff; }
table.kontrolle thead tr.gruppen th:last-child { background: var(--navy); }
table.kontrolle thead tr:nth-child(2) th { position: sticky; top: 0; background: var(--white); z-index: 1; }
table.kontrolle .grp { border-left: 1px solid var(--hair-strong); }
table.kontrolle td { padding: 7px 10px; }
table.kontrolle tbody tr.row { cursor: pointer; }
table.kontrolle tbody tr.row:nth-child(4n+3) td { background: var(--surface); }
table.kontrolle tbody tr.row:hover td { background: rgba(0,194,209,.07); }
table.kontrolle tbody tr.row.offen td { background: #eaf0f2; }
table.kontrolle tbody tr.row.offen .aufklapp { transform: rotate(90deg); }
table.kontrolle .aufklapp { color: var(--muted); width: 20px; text-align: center; transition: transform .15s; }
table.kontrolle td.firma, table.kontrolle td.tarif { max-width: 165px; }
table.kontrolle td.am { max-width: 130px; }
table.kontrolle .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.kontrolle tfoot td { border-top: 2px solid var(--navy); background: var(--white); font-variant-numeric: tabular-nums; position: sticky; bottom: 0; }
/* Provider Provisionen: Datenbasis (Soll / Ist-Import) und Zusatzpunkte neben den Reitern (15.10.2026) */
.datenbasis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 0 0 12px; }
.datenbasis .db-teil { padding: 14px 18px; }
.datenbasis .db-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.datenbasis h3 { margin: 0; font-size: 14px; }
.datenbasis .db-zahl { margin: 6px 0 8px; font-size: 13px; }
.datenbasis .db-zahl b { font-size: 18px; }
.datenbasis table.mini { width: 100%; margin-bottom: 6px; }
.datenbasis details summary { cursor: pointer; color: var(--muted); }
.datenbasis .db-datei { padding: 2px 0; word-break: break-all; }
.extra-links { display: inline-flex; flex-direction: column; gap: 2px; }
@media (max-width: 900px) { .datenbasis { grid-template-columns: 1fr; } }
/* Boni & Ziele (15.10.2026) */
table.boni-tab { font-size: 12.5px; }
table.boni-tab td, table.boni-tab th { padding-left: 6px; padding-right: 6px; }
table.boni-tab .bo-name { min-width: 220px; max-width: 320px; }
table.boni-tab .bo-leer { background: rgba(127, 127, 127, .06); color: var(--muted); }
table.boni-tab td.bo-z { cursor: pointer; }
table.boni-tab td.bo-z:hover, table.boni-tab td.bo-z.aktiv { text-decoration: underline; color: var(--accent, #4318ff); }
table.boni-tab td.bo-fehlt { color: #b45309; background: #fff4e5; font-weight: 600; font-size: 11px; }
table.boni-tab .bo-fehlt-text { color: #b45309; }
table.boni-tab tr.bo-gruppe > td { background: var(--hair, #eef1f6); padding-top: 10px; padding-bottom: 8px; }
table.boni-tab tr.bo-summe > td { border-top: 1px solid var(--hair-strong, #d5dae3); }
table.boni-tab tr.bo-summe.gesamt > td { font-size: 13px; }
.readonly-note.warn { border-left-color: #f59e0b; }
/* Rohertrag-Varianten (16.10.2026) */
table.varianten input { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--hair, #e3e7ee); border-radius: 8px; font: inherit; font-size: 13px; }
table.varianten td { vertical-align: top; padding-top: 6px; padding-bottom: 6px; }
/* CRM ↔ Provisionen (16.10.2026): drei Kacheln, Aufteilung je Provider */
.crm-block { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.crm-k { display: block; background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius); padding: 14px 18px; color: inherit; text-decoration: none; border-top: 4px solid #A3AED0; }
.crm-k:hover { box-shadow: 0 6px 18px rgba(43, 54, 116, .10); }
.crm-ok { border-top-color: #05CD99; } .crm-a { border-top-color: #FFB547; } .crm-b { border-top-color: #EE5D50; }
.crm-l { font-size: 12px; font-weight: 700; color: #2B3674; }
.crm-v { font-size: 26px; font-weight: 700; color: #1B2559; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.crm-v small { font-size: 13px; font-weight: 500; color: #A3AED0; }
.crm-s { font-size: 12px; color: #47548C; margin-bottom: 8px; }
.crm-p { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 8px; font-size: 12.5px; padding: 4px 0; border-top: 1px solid #F1F3F9; font-variant-numeric: tabular-nums; }
.crm-p .crm-warn { font-weight: 600; color: #B54848; }
/* PlusKarte als vierte Kachel, "davon Vertrag vorhanden" (26.10.2026) */
.crm-block.vier { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .8fr); }
.crm-pk { border-top-color: #A3AED0; }
.crm-p.crm-mv { grid-template-columns: minmax(0, 1fr) auto auto; color: #05845F; font-weight: 600; }
@media (max-width: 1100px) { .crm-block, .crm-block.vier { grid-template-columns: minmax(0, 1fr); } }
/* Geprüfte Bausteine / Zahlung ohne Soll / Datenqualität (16.10.2026) */
.pruef .dq { color: #8A5A00; background: #FFF4DE; border: 1px solid #F5D9A0; border-radius: 6px; padding: 0 6px; font-size: 11px; white-space: nowrap; }
.dq-zeile { background: #FFF8EB; border: 1px solid #F5D9A0; border-radius: 10px; padding: 7px 12px; margin: 0 0 12px; color: #6B4A00; }
.dq-zeile a { color: #8A5A00; font-weight: 600; }
.dq-box { margin-top: 8px; padding: 6px 8px; background: #FFF8EB; border-radius: 6px; color: #6B4A00; }
table.mini tr.pruef-summe td { border-top: 1px solid #E0E5F2; font-weight: 600; }
/* Interne Provisionen: Punkte-Block Verträge / Hardware / Gesamt hervorgehoben (16.10.2026) */
table.in-tab th.g-pkt { background: #4318FF; color: #fff; }
table.in-tab td.pk, table.in-tab th.pk { background: #F4F1FF; }
table.in-tab td.pk { font-size: 14px; font-weight: 600; color: #2B3674; }
table.in-tab td.pk-ges, table.in-tab th.pk-ges { background: #E9E3FF; }
table.in-tab td.pk-ges b { font-size: 15px; color: #4318FF; }
table.in-tab tr.vp-vorgang td.pk { font-size: 12.5px; font-weight: 400; }
/* Dateiauswahl im Durchlauf (16.10.2026) */
.dl-auswahl { margin-top: 8px; display: grid; gap: 8px; }
.dl-gruppe { border: 1px solid var(--hair); border-radius: 10px; padding: 8px 10px; background: #FAFBFF; }
.dl-kopf { font-size: 12.5px; margin-bottom: 4px; display: flex; gap: 6px; align-items: baseline; }
.dl-kopf b { margin-right: auto; }
.dl-kopf a { font-size: 12px; }
.dl-zeile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 3px 0; font-size: 13px; cursor: pointer; font-weight: 400; }
.dl-zeile span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-zeile input { width: auto; margin: 0; }
.dl-mehr summary { cursor: pointer; color: var(--muted); margin: 2px 0 6px; }
/* Auswertungen und Diagramme (16.10.2026) */
.aw-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.aw-karte h2, .aw-tabelle h2 { margin-top: 0; font-size: 16px; }
.aw-tabelle { margin-bottom: 16px; }
svg.ch { width: 100%; height: auto; display: block; margin: 6px 0 2px; }
svg.ch .ch-gitter { stroke: #E9EDF7; stroke-width: 1; }
svg.ch .ch-achse { fill: #A3AED0; font-size: 11px; }
svg.ch .ch-label { fill: #2B3674; font-size: 11.5px; }
svg.ch .ch-wert { fill: #47548C; font-size: 10.5px; font-weight: 600; }
svg.ch .ch-innen { fill: #fff; font-size: 10.5px; font-weight: 600; }
svg.ch rect:hover { opacity: .82; }
.ch-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #47548C; margin: 4px 0 8px; }
.ch-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.summen.aw-summen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .aw-raster { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .summen.aw-summen { grid-template-columns: 1fr 1fr; } }
/* Jahresziele (16.10.2026) */
.jz-regel { border: 1px solid var(--hair, #e3e7ee); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; background: #fbfcfe; }
.jz-kopf { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.jz-kopf input { flex: 1; font-weight: 600; padding: 7px 10px; border: 1px solid var(--hair, #e3e7ee); border-radius: 8px; }
.jz-felder { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jz-tarife { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--hair, #e3e7ee); border-radius: 8px; padding: 6px; background: #fff; }
.jz-tarife input { flex: 1; min-width: 200px; border: 0; outline: 0; padding: 4px; font: inherit; }
.jz-chip { display: inline-flex; gap: 4px; align-items: center; background: #eef1f6; border-radius: 12px; padding: 2px 4px 2px 10px; font-size: 12.5px; }
.jz-chip button { border: 0; background: transparent; cursor: pointer; color: #707eae; }
table.jz-stufen input { width: 110px; display: inline-block; }
.jz-stand { margin-top: 6px; color: #47548c; }
@media (max-width: 900px) { .jz-felder { grid-template-columns: 1fr 1fr; } }
/* Hilfe (16.10.2026): Menüpunkt unten in der Seitenleiste, Hilfeseite */
.sidebar .nav-hilfe { flex: none; padding-top: 6px; padding-bottom: 6px; border-top: 1px solid var(--hair, rgba(255,255,255,.1)); }
.sidebar .nav.nav-hilfe { flex: none; overflow: visible; }
.hilfe-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 14px; }
.hilfe-doku { display: flex; gap: 16px; align-items: flex-start; }
.hilfe-doku h2 { margin-top: 0; }
.hilfe-gross { width: 44px; height: 44px; flex: none; color: var(--accent, #4318ff); }
.kv-hilfe { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hair, #eef1f6); font-size: 13px; }
.kv-hilfe:last-child { border-bottom: 0; }
@media (max-width: 900px) { .hilfe-raster { grid-template-columns: 1fr; } }
/* Vorgänge ohne gefundene Provision (16.10.2026) */
tr.row.kein-ist > td:first-child { box-shadow: inset 4px 0 0 #7a1f2b; }
.st-text.kein-ist { color: #b42318; font-weight: 600; }
.amp-chip.amp-keinist .punkt { background: #7a1f2b; }
.amp-chip.amp-keinist { border-color: #f1c5c5; }
.amp-chip.amp-keinist.aktiv { background: #fdecec; border-color: #b42318; }
/* Spaltenfilter (16.10.2026) */
tr.filter-zeile > th { padding: 4px 4px 6px; background: inherit; text-transform: none; letter-spacing: 0; font-weight: 400; }
tr.filter-zeile input { width: 100%; min-width: 48px; padding: 3px 6px; font-size: 11.5px; border: 1px solid var(--hair, #e3e7ee); border-radius: 6px; background: #fff; color: inherit; box-sizing: border-box; }
tr.filter-zeile input:not(:placeholder-shown) { border-color: var(--accent, #4318ff); background: #f4f1ff; }
tr.filter-zeile input::placeholder { color: #a3aed0; }
table.gefiltert thead tr:not(.filter-zeile):last-of-type th { color: var(--accent, #4318ff); }
tr.filter-zeile .fz { display: flex; gap: 2px; align-items: center; }
tr.filter-zeile .fz input { flex: 1; }
.fz-knopf { flex: none; width: 20px; height: 22px; padding: 0; border: 1px solid var(--hair, #e3e7ee); border-radius: 6px; background: #fff; color: #707eae; font-size: 11px; cursor: pointer; line-height: 1; }
.fz-knopf:hover { border-color: var(--accent, #4318ff); color: var(--accent, #4318ff); }
.fz-knopf.aktiv { background: var(--accent, #4318ff); border-color: var(--accent, #4318ff); color: #fff; }
/* Werteliste (wie Excel) – 16.10.2026 überarbeitet: Checkboxen hatten aus dem Formular-CSS width:100% und verdrängten den Wert */
.fz-pop { position: fixed; z-index: 1000; width: 320px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid #d5dae3; border-radius: 12px; box-shadow: 0 12px 32px rgba(17, 28, 68, .18); padding: 12px; font-size: 13px; color: #1b2559; text-transform: none; letter-spacing: 0; font-weight: 400; text-align: left; }
.fz-pop .fz-titel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #a3aed0; margin: 0 2px 8px; }
.fz-pop .fz-suche { width: 100%; box-sizing: border-box; height: 32px; padding: 5px 10px; border: 1px solid #d5dae3; border-radius: 8px; margin-bottom: 8px; font-size: 13px; }
.fz-pop label { display: flex !important; gap: 10px; align-items: center; min-height: 30px; padding: 4px 8px; margin: 0; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; color: #1b2559; }
.fz-pop label:hover { background: #f4f7fe; }
.fz-pop label[hidden] { display: none !important; }
.fz-pop input[type="checkbox"] { flex: none; width: 16px !important; height: 16px; min-width: 16px; margin: 0; padding: 0; accent-color: #4318ff; cursor: pointer; }
.fz-pop label span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-pop label em { flex: none; font-style: normal; color: #707eae; font-size: 11.5px; background: #f4f7fe; border-radius: 10px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.fz-pop .fz-alle { font-weight: 600; border-bottom: 1px solid #eef1f6; border-radius: 6px 6px 0 0; margin-bottom: 4px; padding-bottom: 6px; }
.fz-pop .fz-liste { max-height: 300px; overflow: auto; }
.fz-pop .fz-fuss { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef1f6; align-items: center; }
tr.nachladen > td { text-align: center; padding: 14px; font-size: 13px; background: transparent; }
tr.nachladen .btn { margin-left: 8px; }
tr.detail > td { background: #eaf0f2; padding: 14px 18px 16px; border-bottom: 2px solid var(--hair-strong); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.detail-grid h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border-bottom: 1px dotted var(--hair-strong); font-size: 13px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; font-weight: 600; word-break: break-word; }
table.mini { font-size: 12px; background: transparent; }
table.mini td { padding: 3px 6px; border-bottom: 1px dotted var(--hair-strong); background: transparent !important; }
.rechnung { margin-top: 10px; padding: 8px 10px; background: var(--white); border-left: 3px solid var(--blue); font-size: 13px; }
table.prov-tab td, table.prov-tab th { padding: 7px 12px; }
@media (max-width: 1000px) { .ablage { grid-template-columns: 1fr; } .summen { grid-template-columns: 1fr 1fr; } .detail-grid { grid-template-columns: 1fr; } }
table.kontrolle .teile { font-size: 11px; color: var(--muted); white-space: normal; font-weight: 400; max-width: 150px; margin-left: auto; line-height: 1.35; }
table.kontrolle .pruef { margin-top: 3px; font-size: 11px; white-space: nowrap; }
table.kontrolle .pruef span { border: 1px solid var(--hair-strong); border-radius: 8px; padding: 0 6px; }
table.kontrolle .pruef span.ok { background: var(--surface); }
table.kontrolle .pruef span.abw { background: var(--navy); border-color: var(--navy); color: #fff; }
table.mini th { font-size: 10px; padding: 2px 6px; background: transparent; }
table.kontrolle th, table.kontrolle td { padding-left: 8px; padding-right: 8px; }
table.kontrolle td.num { white-space: nowrap; }
table.kontrolle .mono { font-size: 11.5px; }

/* ---------- Ampel (Christian 12.10.2026: gruen = stimmt, orange = kleine, rot = grosse Abweichung; bewusst gedaempfte Toene) */
:root { --amp-gruen: #2e7d4f; --amp-gruen-bg: #e5f2ea; --amp-orange: #c46a12; --amp-orange-bg: #fbeedd; --amp-rot: #b3261e; --amp-rot-bg: #f8e3e1; }
table.kontrolle tbody tr.row.amp-gruen td { background: var(--amp-gruen-bg) !important; }
table.kontrolle tbody tr.row.amp-orange td { background: var(--amp-orange-bg) !important; }
table.kontrolle tbody tr.row.amp-rot td { background: var(--amp-rot-bg) !important; }
table.kontrolle tbody tr.row.amp-gruen td:first-child { box-shadow: inset 4px 0 0 var(--amp-gruen); }
table.kontrolle tbody tr.row.amp-orange td:first-child { box-shadow: inset 4px 0 0 var(--amp-orange); }
table.kontrolle tbody tr.row.amp-rot td:first-child { box-shadow: inset 4px 0 0 var(--amp-rot); }
table.kontrolle tbody tr.row.amp-gruen td.amp-zelle { color: var(--amp-gruen); font-weight: 700; }
table.kontrolle tbody tr.row.amp-orange td.amp-zelle { color: var(--amp-orange); }
table.kontrolle tbody tr.row.amp-rot td.amp-zelle { color: var(--amp-rot); }
table.kontrolle tbody tr.row.amp-orange td.amp-zelle b, table.kontrolle tbody tr.row.amp-rot td.amp-zelle b { color: inherit; }
table.kontrolle tbody tr.row:hover td { filter: brightness(.97); }
table.kontrolle tbody tr.row.offen td { filter: brightness(.94); }
.ampel-legende { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.amp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px; border: 1px solid var(--hair-strong); background: var(--white); color: var(--navy); font-size: 12.5px; }
.amp-chip:hover { border-color: var(--cyan); color: var(--navy); }
.amp-chip .punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--hair-strong); }
.amp-chip.amp-gruen .punkt { background: var(--amp-gruen); } .amp-chip.amp-gruen { background: var(--amp-gruen-bg); }
.amp-chip.amp-orange .punkt { background: var(--amp-orange); } .amp-chip.amp-orange { background: var(--amp-orange-bg); }
.amp-chip.amp-rot .punkt { background: var(--amp-rot); } .amp-chip.amp-rot { background: var(--amp-rot-bg); }
table.kontrolle tbody tr.row.ov-info td { color: var(--muted); }
.amp-chip.aktiv { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); font-weight: 600; }
table.kontrolle .pruef span.ok { background: var(--amp-gruen-bg); border-color: var(--amp-gruen); color: var(--amp-gruen); }
table.kontrolle .pruef span.abw { background: var(--amp-rot-bg); border-color: var(--amp-rot); color: var(--amp-rot); }

/* ---------- Ablage (Umbau 12.10.2026: Monatsuebersicht statt Ordnerbaum) */
table.ab-tab { font-size: 13px; }
table.ab-tab th { vertical-align: bottom; }
table.ab-tab td { vertical-align: middle; padding: 9px 10px; }
table.ab-tab tr.ab-row { cursor: pointer; }
table.ab-tab tr.ab-row:hover td { background: rgba(0,194,209,.06); }
table.ab-tab tr.ab-row.offen td { background: #eaf0f2; }
table.ab-tab tr.ab-row.offen td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
table.ab-tab td.ab-soll { max-width: 220px; font-size: 12px; }
table.ab-tab tr.ab-detail > td { background: #eaf0f2; padding: 4px 16px 14px 19px; border-bottom: 2px solid var(--hair-strong); }
.ab-detail-kopf { margin: 6px 0 8px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ab-chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; white-space: nowrap; border: 1px solid var(--hair-strong); background: var(--white); }
.ab-chip.ok { background: var(--amp-gruen-bg); border-color: var(--amp-gruen); color: var(--amp-gruen); }
.ab-chip.da { background: var(--amp-orange-bg); border-color: var(--amp-orange); color: var(--amp-orange); }
.ab-chip.fehlt { background: var(--amp-rot-bg); border-color: var(--amp-rot); color: var(--amp-rot); font-weight: 600; }
.ab-chip.leer { color: var(--muted); border-style: dashed; }
.ab-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.ab-zwei .card + .card { margin-top: 0; }
.ab-ordner { display: flex; align-items: center; gap: 6px; margin: 10px 0 4px; font-size: 13px; }
.ab-ordner:first-of-type { margin-top: 0; }
.ab-datei { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 4px 0 4px 18px; border-bottom: 1px dotted var(--hair); font-size: 12px; }
.ab-datei .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-stand { margin-top: 10px; font-size: 12.5px; }
.ab-regeln { margin-top: 16px; }
.ab-regeln summary { cursor: pointer; list-style: revert; }
.ab-regeln-inhalt { margin-top: 10px; }
@media (max-width: 1000px) { .ab-zwei { grid-template-columns: 1fr; } }

/* ---------- Provisionsabgleich aufgeraeumt (13.10.2026, Aufbau vom 12.10. beibehalten) */
details.stand-zeile { margin: -8px 0 12px; }
details.stand-zeile > summary { cursor: pointer; color: var(--navy); }
details.stand-zeile > summary b { color: var(--blue); }
.stand-inhalt { margin-top: 6px; padding: 8px 12px; background: var(--white); border: 1px dashed var(--teal); border-radius: var(--radius); line-height: 1.6; }
.ampel-kachel { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ampel-kachel span { display: inline-flex; align-items: center; gap: 5px; }
.ampel-kachel i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.punkt-g { background: var(--amp-gruen); } .punkt-o { background: var(--amp-orange); } .punkt-r { background: var(--amp-rot); } .punkt-x { background: #c5cfd3; }
table.prov-tab .si { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.prov-tab .si span { display: inline-block; width: 26px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); text-align: left; }
table.kontrolle .pruef span.neutral { background: var(--surface); color: var(--muted); }
table.kontrolle .st-text { font-size: 12px; color: var(--muted); }
table.kontrolle td.pruef-zelle { max-width: 150px; }
table.kontrolle td.pruef-zelle .pruef { white-space: normal; line-height: 1.9; }
table.kontrolle td.pruef-zelle .pruef span { white-space: nowrap; }

/* ---------- Vertriebspartner (13.10.2026) */
table.vp-tab tr.vp-row { cursor: pointer; }
table.vp-tab tr.vp-row:hover td { background: rgba(0,194,209,.06); }
table.vp-tab tr.vp-row.offen td { background: #eaf0f2; }
table.vp-tab tr.vp-row.ohne td { color: var(--muted); }
table.vp-tab tr.vp-row.ohne td:first-child { box-shadow: inset 4px 0 0 var(--amp-orange); }
table.vp-tab tr.vp-row .pfeil { display: inline-block; transition: transform .15s; color: var(--muted); }
table.vp-tab tr.vp-row.offen .pfeil { transform: rotate(90deg); }
table.vp-tab tr.vp-vorgang td { background: #f7fafb; font-size: 12.5px; }

/* ---------- Interne Provisionen (13.10.2026) */
table.in-tab td.anteil { min-width: 110px; }
table.in-tab .balken { height: 8px; background: var(--surface); border-radius: 4px; overflow: hidden; margin-top: 4px; }
table.in-tab .balken span { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.in-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.badge.in-h { font-size: 11px; padding: 0 7px; }
.badge.in-rueck { border-color: var(--amp-rot); color: var(--amp-rot); }
.badge.in-vorjahr { border-color: var(--amp-orange); color: #8a5200; }
.badge.in-mehrfach { border-color: var(--amp-rot); background: #fdecec; color: var(--amp-rot); }
.badge.in-null { color: var(--muted); }
.badge.in-ausgeglichen, .badge.in-ausgleich { border-color: var(--hair-strong); background: var(--surface); color: var(--muted); }
table.in-monate tr.in-monat { cursor: pointer; }
table.in-monate tr.in-monat:hover td { background: rgba(0,194,209,.06); }
table.in-monate tr.in-monat.aktiv td { background: #eaf0f2; }
table.in-monate tr.in-monat.aktiv td:first-child { box-shadow: inset 4px 0 0 var(--blue); }
.in-plus { color: var(--amp-gruen); font-weight: 600; }
.in-minus { color: var(--amp-rot); font-weight: 600; }

/* ---------- Rohertrag (13.10.2026) */
.badge.aktiv { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.ampel-legende .badge span[class^="punkt-"] { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.badge.ro-kein_abruf, .badge.ro-gutschrift_abw, .badge.ro-mehrere, .badge.ro-kunde { border-color: var(--amp-orange); color: #8a5200; }
.badge.ro-nicht_gebucht, .badge.ro-kein_vk, .badge.ro-kein_ist { color: var(--muted); }
table.ro-tab td.firma, table.ro-tab td.tarif { max-width: 200px; }
tr.am-row { cursor: pointer; }
tr.am-row:hover td { background: var(--surface); }

/* ---------- Bereich Mobilfunk / Festnetz (13.10.2026) */
.bereich-schalter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -6px 0 16px; }
.segmented.gross a { padding: 9px 18px; font-size: 14px; }
.segmented.gross a .n { font-size: 11.5px; font-weight: 400; opacity: .8; margin-left: 6px; }
.bereich-chip { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; padding: 0 6px; border-radius: 8px; border: 1px solid currentColor; vertical-align: 1px; margin-left: 4px; }
.bereich-chip.b-mobilfunk { color: #3965c6; }
.bereich-chip.b-festnetz { color: #b0590a; }
.bereich-chip.b-saas { color: #6b4fbb; }
.bereich-chip.b-uebergreifend { color: #5e6b78; }

/* ---------- Bereiche gesperrt (Berechtigungskonzept 15.10.2026) */
.nav a.gesperrt { color: var(--muted); opacity: .6; cursor: not-allowed; }
.nav a.gesperrt .ico { opacity: .6; }
.nav a .schloss { width: 14px; height: 14px; margin-left: auto; margin-right: 14px; flex: none; }
.nav a.gesperrt .count { display: none; }
.gesperrt-seite { text-align: center; padding: 48px 24px; }
.gesperrt-seite .schloss-gross { width: 48px; height: 48px; color: var(--muted); margin-bottom: 12px; }
.bereich-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bereich-chips button { font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 12px; border: 1px solid var(--hair-strong); background: var(--white); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.bereich-chips button.frei { background: var(--blue); border-color: var(--blue); color: #fff; }
.bereich-chips button .ico { width: 12px; height: 12px; }
.bereich-chips button:disabled { opacity: .6; cursor: default; }

.summen > .gesamt-kachel { border: 2px solid var(--navy); }
/* Boni & Ziele: Gruppenkopf, Zwischensumme, Kacheln als Filter (20.10.2026) */
table.boni-tab tr.bo-gruppe td { background: var(--bg, #f3f5fb); padding-top: 12px; border-top: 2px solid var(--navy); }
table.boni-tab tr.bo-summe.zwischen td { background: var(--white); border-top: 1px solid var(--line, #dfe3ee); }
.summen > a.bo-kachel { color: inherit; text-decoration: none; cursor: pointer; }
.summen > a.bo-kachel.aktiv { outline: 2px solid var(--blue); }
/* Provider-Tabelle kompakt, Bausteine per Klick (20.10.2026) */
table.prov-kompakt tr.pk-zeile.klickbar { cursor: pointer; }
table.prov-kompakt tr.pk-zeile.klickbar:hover td { background: #f6f7fd; }
table.prov-kompakt .pk-pfeil { display: inline-block; width: 12px; color: var(--muted); transition: transform .15s; }
table.prov-kompakt tr.pk-zeile.offen .pk-pfeil { transform: rotate(90deg); }
table.prov-kompakt tr.pk-detail > td { background: #f8f9fd; padding: 10px 14px 14px 30px; }
.pk-detail-box table.mini { width: auto; min-width: 640px; margin: 4px 0 8px; }
.pk-detail-box table.mini td, .pk-detail-box table.mini th { padding: 4px 12px; }
.pk-detail-box .warn-text { color: #b45309; margin-bottom: 4px; }
/* Vodafone Airtime-Satz (20.10.2026) */
.satz-unter { color: #b45309; font-weight: 600; }
details.satz-card > summary.bausteine-sum { cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--navy); }

/* Reklamation (20.10.2026) */
table.kl-tab th.wahl, table.kl-tab td.wahl { width: 28px; text-align: center; }
table.kl-tab td.wahl input, table.kl-tab th.wahl input { width: 16px !important; height: 16px; }
.rk-vorlage .rk-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.rk-vorlage .rk-fuss { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.rk-vorlage table.mini select { min-width: 220px; }
table.kl-tab select[data-status] { min-width: 130px; }
table.kl-tab td:nth-child(2) { min-width: 240px; }

/* Prüfliste: gespeicherte Zeile kurz markieren (20.10.2026) */
table.kl-tab tr.gespeichert td { background: #e7f7ee !important; transition: background .3s; }
/* Reklamations-Monitoring (20.10.2026) */
.rk-balken { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #eef0f6; }
.rk-balken .ok { background: #16a34a; } .rk-balken .of { background: #f59e0b; } .rk-balken .oz { background: #9ca3af; }
.prov-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; margin-right: 4px; }
.prov-chip.fehlt { background: #fde2e2; color: #b91c1c; } .prov-chip.teilweise { background: #fef3c7; color: #b45309; }
.prov-chip.erhalten { background: #dcfce7; color: #15803d; } .prov-chip.storniert { background: #e5e7eb; color: #374151; }
.akte-box { margin-top: 10px; padding: 10px; border: 1px solid var(--line, #dfe3ee); border-radius: 8px; background: #fafbfe; }
.akte-box .hist { font-size: 12px; margin-top: 4px; } .akte-box .hist .when { color: var(--muted); font-size: 11px; }

/* Interne Provisionen in Euro je Bestandteil (21.10.2026): Tabelle/Matrix, Accounterbetrachtung */
table.am-tab td.am-zelle, table.am-matrix td.am-zelle { cursor: pointer; }
table.am-tab td.am-zelle:hover, table.am-matrix td.am-zelle:hover { background: #EEF3FF; }
table.am-tab td.am-zelle.sel, table.am-matrix td.am-zelle.sel { outline: 2px solid var(--blue); outline-offset: -2px; background: #EEF3FF; }
table.am-tab tr.am-team td, table.am-matrix .am-team { color: var(--muted); background: var(--surface); }
table.am-tab tr.aktiv td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.badge.am-deckel { font-size: 10.5px; padding: 0 6px; border-color: var(--amp-orange); color: #8a5200; }
.am-matrix-wrap { overflow-x: auto; }
table.am-matrix th.am-fix { position: sticky; left: 0; z-index: 2; background: var(--white); min-width: 170px; text-align: left; box-shadow: 1px 0 0 var(--hair-strong); }
table.am-matrix thead th { white-space: nowrap; }
table.am-matrix tfoot td, table.am-matrix tfoot th { border-top: 2px solid var(--hair-strong); }
/* Spaltengruppen Mobilfunk / Mietstücke (12.11.2026): Gruppenkopf mittig, Gesamt-Spalte leicht hinterlegt */
table.am-tab th.am-gruppe { text-align: center; border-bottom: 1px solid var(--hair-strong); }
table.am-tab .am-ges, table.am-matrix tr.am-ges td, table.am-matrix tr.am-ges th { background: var(--surface); }
.am-detail .am-summe { text-align: right; padding: 0 6px; }
.am-detail .am-summe b { font-size: 16px; color: #2B3674; }
.badge.in-massen, .badge.in-vorlaeufig { color: var(--muted); border-style: dashed; }
.badge.in-regel { border-color: var(--amp-rot); color: var(--amp-rot); }
.badge.in-vormonat, .badge.in-ohne_vk { border-color: var(--amp-orange); color: #8a5200; }
.badge.in-topstopp { border-color: var(--blue); color: var(--blue); }
/* Rohertrag: Aufschluesselung der Ist-Provision (22.10.2026) */
.ro-ist { margin: 2px 0 6px 12px; padding-left: 8px; border-left: 2px solid var(--hair-strong); }
.ro-ist .kv.sub span, .ro-ist .kv.sub b { font-size: 12px; font-weight: 400; }
.ro-ist table.mini td, .ro-ist table.mini th { font-size: 11.5px; }
/* T-Partnerbonus-Kachel (22.10.2026) */
.pb-kachel { margin: 0 0 16px; padding: 14px 16px; border-left: 4px solid #E20074; }
.pb-kachel .pb-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pb-kachel .l { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.pb-kachel .pb-kopf > div > .l { color: #2B3674; font-size: 13px; }
.pb-kachel .pb-werte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.pb-kachel .pb-wert { display: block; color: inherit; text-decoration: none; border-radius: 8px; padding: 6px 8px; margin: -6px -8px; }
.pb-kachel .pb-wert:hover { background: #F4F7FE; }
.pb-kachel .pb-wert:hover .v { text-decoration: underline; }
.pb-kachel .pb-werte .v { font-size: 20px; font-weight: 700; color: #2B3674; }
.pb-kachel .pb-werte .s { font-size: 12px; color: var(--muted); }
.pb-kachel .pb-werte .pb-fehlt .v { color: var(--amp-rot); }
@media (max-width: 900px) { .pb-kachel .pb-werte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Einstellungen je Bereich: Rechte-Chips in Benutzer & Rechte (22.10.2026) */
.einst-rechte { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; }
.einst-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--hair-strong); background: var(--white); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; cursor: pointer; color: var(--muted); }
.einst-chip .ico { width: 12px; height: 12px; }
.einst-chip.st-sehen { border-color: var(--blue); color: var(--blue); background: #EEF3FF; }
.einst-chip.st-bearbeiten { border-color: var(--amp-gruen, #05CD99); color: #067a5c; background: #E6FAF5; }
.einst-reiter .n { font-size: 10.5px; opacity: .75; }
/* Rohertrag: Spalte Buchhaltung (23.10.2026) */
.ro-bh { min-width: 120px; display: flex; gap: 6px; align-items: flex-start; }
table.ro-tab td.ro-bh { display: table-cell; white-space: nowrap; min-width: 0; }
table.ro-tab td.ro-bh > div { display: inline-block; vertical-align: top; }
.ro-wahl { display: inline-flex; align-items: center; margin-right: 6px; cursor: pointer; }
.ro-wahl input { width: 16px; height: 16px; margin: 0; }
.ro-geprueft { color: var(--amp-gruen); font-weight: 600; font-size: 12px; }
.ro-auswahl { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; }
.ro-auswahl[hidden] { display: none; }
@media (max-width: 1400px) { .summen.ro-summen { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }

/* Rohertrag Status je Zeile (23.10.2026) */
.ro-status { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 10px; }
.ro-st-pr { background: var(--amp-orange-bg); color: var(--amp-orange); }
.ro-st-ok { background: #EEF3FF; color: var(--blue); }
.ro-st-bh { background: var(--amp-gruen-bg); color: var(--amp-gruen); }

/* Airtime-Prüfung (23.10.2026): Status je Anschluss, Kacheln als Filter, Monatsspalten */
.air-st { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.air-st-fehlt { background: var(--amp-rot-bg); color: var(--amp-rot); }
.air-st-datei_fehlt { background: #eceff3; color: #4b5563; }
.air-st-abweichend { background: var(--amp-orange-bg); color: var(--amp-orange); }
.air-st-identisch { background: var(--amp-gruen-bg); color: var(--amp-gruen); }
.air-st-neu { background: #EEF3FF; color: var(--blue); }
.summen.air-summen { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.summen.air-summen > a { color: inherit; text-decoration: none; cursor: pointer; }
.summen.air-summen > a.aktiv { outline: 2px solid var(--blue); outline-offset: -2px; }
table.kontrolle td.air-m, table.kontrolle th.air-m { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.kontrolle td.air-m.leer { color: var(--muted); }
table.kontrolle td.air-akt { font-weight: 700; }
tr.air-quelle { cursor: pointer; }
@media (max-width: 1400px) { .summen.air-summen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Rohertrag: Status direkt in der Zeile, Protokoll als Button ganz rechts (23.10.2026) */
.ro-sel { font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 8px; width: auto; max-width: 190px; cursor: pointer; }
.ro-sel-offen { background: var(--white); }
.ro-sel-in_pruefung { background: var(--amp-orange-bg); color: var(--amp-orange); border-color: var(--amp-orange); }
.ro-sel-pruefung_ok { background: #EEF3FF; color: var(--blue); border-color: var(--blue); }
.ro-sel-bh_ok { background: var(--amp-gruen-bg); color: var(--amp-gruen); border-color: var(--amp-gruen); }
.ro-sel option { color: #1b2541; background: #fff; }
td.ro-prot-zelle { white-space: nowrap; text-align: right; }
.ro-prot-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
table.ro-tab td.ro-bh > .ro-wahl { vertical-align: top; margin-top: 4px; }
table.ro-tab .ro-sel { width: 132px; text-overflow: ellipsis; }
table.ro-tab td.ro-prot-zelle .btn { padding: 2px 8px; font-size: 11.5px; }

/* Rohertrag: Airtime kalkulatorisch, nur Info (23.10.2026) */
table.kontrolle .g-info { background: #7a8296; border-left: 2px solid #fff; }
table.ro-tab td.ro-air { color: #5b6478; white-space: nowrap; }
.ro-st-rekl { background: var(--amp-rot-bg); color: var(--amp-rot); }
.ro-sel-reklamation { background: var(--amp-rot-bg); color: var(--amp-rot); border-color: var(--amp-rot); }
.ro-korr { color: var(--amp-orange); font-weight: 600; white-space: nowrap; }

/* Prüfliste: Rohertrag-Fall direkt bearbeiten (23.10.2026) */
.kl-ro-edit { display: grid; gap: 6px; min-width: 240px; }
.kl-ro-edit textarea { min-height: 54px; font-size: 12.5px; resize: vertical; }
.kl-ro-edit .kl-ro-ist { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.kl-ro-edit .kl-ro-ist input { width: 110px; text-align: right; }
.kl-ro-edit .kl-ro-aktion { display: flex; align-items: center; gap: 8px; }

/* Benutzer & Rechte: Übersicht und Rechte-Editor wie die Navigation (23.10.2026) */
.re-zelle { display: flex; align-items: center; gap: 14px; justify-content: space-between; min-width: 470px; }
.re-zeile { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; margin-bottom: 3px; }
.re-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: #eef0f4; color: #a3aab8; }
.re-ico .ico { width: 14px; height: 14px; }
.re-ico.frei { background: var(--blue); color: #fff; }
.re-trenn { width: 1px; height: 18px; background: var(--hair-strong); margin: 0 4px; }
.re-einst-ico { width: 14px; height: 14px; color: var(--muted); }
.re-einst { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 6px; font-size: 10.5px; font-weight: 700; background: #eef0f4; color: #a3aab8; }
.re-einst.st-sehen { background: #EEF3FF; color: var(--blue); }
.re-einst.st-bearbeiten { background: var(--amp-gruen-bg); color: var(--amp-gruen); }
.re-werkzeug { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 10px; }
.re-werkzeug select { width: auto; min-width: 220px; }
.re-editor { border: 1px solid var(--hair); border-radius: 12px; max-height: 60vh; overflow: auto; }
.re-gruppe { position: sticky; top: 0; z-index: 1; background: #f6f7fb; padding: 6px 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--hair); }
.re-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--hair); cursor: pointer; }
.re-row:last-child { border-bottom: 0; }
.re-row > .ico { width: 18px; height: 18px; color: var(--navy); flex: none; }
.re-row:hover { background: #fafbff; }
.re-name { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.re-text { font-size: 11.5px; color: var(--muted); }
.re-unter { padding-left: 44px; background: #fcfcfe; }
.re-inaktiv { opacity: .45; }
.re-aus, .re-einst-kopf { cursor: default; }
.re-aus { opacity: .6; }
.re-schalter { position: relative; width: 38px; height: 22px; flex: none; }
.re-schalter input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.re-schalter i { position: absolute; inset: 0; border-radius: 11px; background: #d5dae3; transition: background .15s; pointer-events: none; }
.re-schalter i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.re-schalter input:checked + i { background: var(--blue); }
.re-schalter input:checked + i::after { transform: translateX(16px); }
.re-schalter input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
.re-stufen { display: inline-flex; border: 1px solid var(--hair-strong); border-radius: 8px; overflow: hidden; flex: none; }
.re-stufen label { cursor: pointer; }
.re-stufen input { position: absolute; opacity: 0; pointer-events: none; }
.re-stufen span { display: inline-block; padding: 3px 10px; font-size: 12px; color: var(--muted); border-left: 1px solid var(--hair); }
.re-stufen label:first-child span { border-left: 0; }
.re-stufen input:checked + span { background: var(--blue); color: #fff; font-weight: 600; }
.re-stufen label:first-child input:checked + span { background: #6b7280; }
.re-stufen label:last-child input:checked + span { background: var(--amp-gruen); }

/* Reklamation: Vorschau vor dem Erstellen (26.10.2026) */
.rk-vorschau h3 { margin: 10px 0 6px; font-size: 14px; }
.rk-vorschau table.mini { width: 100%; }
.rk-vorschau tr.rk-aus td { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.2); }
.rk-vorschau tr.rk-aus td .in-minus { text-decoration: none; }
.btn.danger { color: var(--amp-rot); }
.btn.danger:hover:not(:disabled) { background: var(--amp-rot-bg); }
/* Provision andere Provider als Karten (Christian 09.11.2026: "schöner darstellen") */
.andere-kachel .an-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.andere-kachel .an-kopf h2 { margin: 0 0 2px; }
.andere-kachel .an-gesamt { text-align: right; }
.andere-kachel .an-gesamt .v { font-size: 22px; font-weight: 700; }
.andere-kachel .an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.andere-kachel .an-karte { text-align: left; font: inherit; color: inherit; background: var(--surface, #F7F8FC); border: 1px solid var(--hair, #E3E6EF); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, box-shadow .15s; }
.andere-kachel .an-karte:hover { border-color: #B9B4F5; box-shadow: 0 2px 8px rgba(59, 47, 184, .08); }
.andere-kachel .an-karte.offen { border-color: #3B2FB8; box-shadow: 0 0 0 1px #3B2FB8 inset; }
.andere-kachel .an-karte.pruefen { border-left: 3px solid #E0A800; }
.andere-kachel .an-name { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.andere-kachel .an-betrag { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.andere-kachel .an-fuss { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; }
.andere-kachel .an-delta { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.andere-kachel .an-delta.auf { color: #146C43; }
.andere-kachel .an-delta.ab { color: #B42318; }
.andere-kachel .an-ohne { margin-top: 10px; }
.andere-kachel .an-detail { margin-top: 12px; border-top: 1px solid var(--hair, #E3E6EF); padding-top: 10px; }
.andere-kachel .an-detail-kopf { margin-bottom: 4px; }
/* Validierung 26.11.2026: gefilterte Kacheln, klickbare Provider-Zeilen, Boni-Kachel, andere Provider Einmal/Airtime + Auswahl */
.kachel-filter { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: #F4F7FE; color: #2B3674; }
.gefiltert-chip { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 9px; background: #E9EDF7; color: #4A6C82; font-size: 10.5px; font-weight: 600; text-transform: none; letter-spacing: 0; vertical-align: 1px; }
.crm-p.crm-link { cursor: pointer; border-radius: 6px; }
.crm-p.crm-link:hover { background: #F4F7FE; }
.crm-p.crm-link:hover > span:first-child { text-decoration: underline; }
.boni-kpi { margin: 0 0 16px; padding: 14px 16px; border-left: 4px solid #4A6C82; }
.boni-kpi .boni-kpi-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.boni-kpi .l { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.boni-kpi .boni-kpi-kopf > div > .l { color: #2B3674; font-size: 13px; }
.boni-kpi .boni-kpi-werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.boni-kpi .boni-kpi-werte .v { font-size: 20px; font-weight: 700; color: #2B3674; }
.boni-kpi .boni-kpi-werte .s { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .boni-kpi .boni-kpi-werte { grid-template-columns: 1fr; } }
.andere-kachel .an-art { color: #4A6C82; }
.andere-kachel .an-wahl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.pb-bereich { margin: 8px 0 16px; }
/* Kachel "Vorgang nicht provisionierbar" (27.11.2026) */
.crm-np { border-top-color: #6C929B; }
.crm-block.fuenf { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1fr) minmax(0, .8fr); }
@media (max-width: 1400px) { .crm-block.fuenf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .crm-block.fuenf { grid-template-columns: minmax(0, 1fr); } }
.crm-dl { float: right; font-size: 11px; font-weight: 600; padding: 1px 8px; border: 1px solid var(--hair, #E3E6EF); border-radius: 10px; cursor: pointer; color: #4A6C82; text-transform: none; letter-spacing: 0; }
.crm-dl:hover { border-color: #00C2D1; color: #00C2D1; }
.crm-rv { margin-top: 8px; }
