/* ═══════════════════════════════════════════════
   HOCHRUNTER OS — Base Stylesheet
   Tokens → 00-tokens.css
   Bootstrap overrides → 01-bootstrap-overrides.css
   Shell → 02-shell.css
   Komponenten → 03-components.css
   Legacy-Aliase → 99-legacy-bridge.css
   ═══════════════════════════════════════════════ */

/* ── SCROLLBAR ──────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--z-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--z-400); }
* { scrollbar-width: thin; scrollbar-color: var(--z-300) transparent; }

/* ── BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 {
  margin: 0 0 .35em;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.25;
}

a { color: var(--z-900); text-decoration: none; }
a:hover { text-decoration: none; color: var(--z-600); }
b, strong { font-weight: 600; }

/* Monospace numbers */
.mono, td b, .kpi-card strong, .kv-total-row b,
.ocard-footer strong, .ocard-id, .wf-id, .dc-id {
  font-family: 'Geist Mono', 'IBM Plex Mono', ui-monospace, monospace;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.02em;
}

/* Lucide icon sizing */
i[data-lucide] { display: inline-flex; align-items: center; justify-content: center; }
i[data-lucide] svg { width: 16px; height: 16px; stroke-width: 1.7; }

/* ── SHELL ──────────────────────────────────────── */
.app-shell { min-height: 100vh; }
.main { margin-left: 60px; }
.login-main { margin-left: 0; min-height: 100vh; display: grid; place-items: center; }
.content { padding: 24px 28px 40px; max-width: none; width: 100%; box-sizing: border-box; }

/* ── SIDEBAR ────────────────────────────────────── */
/* Farben/Radien/Abstaende hier sind >=851px komplett von 06-art-director.css
   ("APP-SHELL 2026", !important) ueberschrieben - nur die BASIS-Deklaration
   (position/inset/width/overflow) bleibt fuer den eingeklappten Mobile-Zustand
   (<851px, bevor .mob-open greift) live, da 06-art-director dafuer keine
   eigene Basisbreite setzt. Nicht loeschen, nur als kosmetisch tot betrachten. */
.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: 60px; overflow: hidden;
  background: #fafafa;
  border-right: 1px solid rgba(0,0,0,.06);
  display: flex; flex-direction: column;
  z-index: 100;
  transition: width .22s cubic-bezier(.4,0,.2,1);
}
@media (min-width: 851px) {
  .sidebar:hover { width: var(--sw); box-shadow: 6px 0 28px rgba(0,0,0,.06); }
}

.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  height: var(--th); flex-shrink: 0; white-space: nowrap;
  background: #fff;
}
.sidebar-logo {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--accent); border-radius: 10px;
  display: grid; place-items: center;
}
.sidebar-logo svg rect { fill: #fff; }
.sidebar-brand > div:last-child { opacity: 0; transition: opacity .18s .06s; min-width: 0; }
.sidebar:hover .sidebar-brand > div:last-child { opacity: 1; }
.sidebar-brand b     { font-size: 13px; font-weight: 700; color: var(--z-950); display: block; letter-spacing: -.02em; }
.sidebar-brand small { font-size: 10.5px; color: var(--z-400); display: block; margin-top: 1px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 6px; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-group { margin-bottom: 0; }
.nav-group-items { display: block; }
.nav-group-chevron { display: none; }

.nav-group-label {
  font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  color: var(--z-500);
  padding: 0 4px 0 12px; pointer-events: none;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity .18s .08s, max-height .2s, padding .2s, color .12s;
}
.sidebar:hover .nav-group-label {
  opacity: 1; max-height: 42px; padding: 18px 8px 6px 12px;
  display: flex; align-items: center;
}
.sidebar:hover .nav-group-label::after {
  content: ''; flex: 1; height: 1px;
  background: var(--z-200); margin-left: 8px; opacity: .6;
}
.sidebar:hover .nav-group:first-child .nav-group-label { padding-top: 4px; }
.sidebar:hover .nav-group + .nav-group { margin-top: 6px; }
.sidebar:hover .nav-group-label:hover { color: var(--z-600); }
.sidebar:hover .nav-group.open .nav-group-label,
.sidebar:hover .nav-group:first-child .nav-group-label { color: var(--accent); }
.sidebar:hover .nav-group.open .nav-group-label::before,
.sidebar:hover .nav-group:first-child .nav-group-label::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  margin-right: 8px; flex-shrink: 0;
}
.sidebar:hover .nav-group.open .nav-group-label::after,
.sidebar:hover .nav-group:first-child .nav-group-label::after { background: var(--accent); opacity: .2; }

/* Desktop: Akkordeon */
@media (min-width: 851px) {
  .sidebar:hover .nav-group-label { pointer-events: auto; cursor: pointer; user-select: none; }
  .sidebar:hover .nav-group-items { max-height: 0; overflow: hidden; transition: max-height .15s ease; }
  .sidebar:hover .nav-group.open .nav-group-items { max-height: 600px; transition: max-height .3s ease; }
  /* Erste Gruppe (Vertrieb) immer offen wenn expanded */
  .sidebar:hover .nav-group:first-child .nav-group-items { max-height: 600px; overflow: hidden; transition: max-height .3s ease; }
}

/* Nav-Item */
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 9px;
  color: var(--z-600); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: background .12s, color .12s;
  margin-bottom: 1px; white-space: nowrap;
}
.nav-item:not(.active):hover { background: #fff; color: var(--z-900); text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.nav-item:not(.active):hover .nav-icon { color: var(--z-700); }
.nav-item.active {
  background: var(--accent-lt);
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 2px 0 0 rgba(79,70,229,.4);
}
.nav-item.active:hover { background: var(--accent-md); }
.nav-item.active .nav-icon { color: var(--accent); }

/* Icon-Container — gross im Rail, klein im Expanded */
.nav-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--z-400);
  transition: width .22s cubic-bezier(.4,0,.2,1),
              height .22s cubic-bezier(.4,0,.2,1),
              border-radius .22s, background .12s, color .12s;
}
.nav-icon i[data-lucide] svg { width: 20px; height: 20px; }

/* Rail: nur Desktop — auf Mobile ist Sidebar ein Drawer */
@media (min-width:851px) {
  .sidebar:not(:hover) .nav-item { padding: 0 10px; }
  .sidebar:not(:hover) .nav-item:not(.active):hover { background: transparent; }
  .sidebar:not(:hover) .nav-item:not(.active):hover .nav-icon { background: rgba(0,0,0,.06); color: var(--z-700); }
  .sidebar:not(:hover) .nav-item.active { background: transparent; box-shadow: none; }
  .sidebar:not(:hover) .nav-item.active .nav-icon { background: var(--accent-lt); color: var(--accent); }
  .sidebar:not(:hover) .sidebar-footer { justify-content: center; padding: 10px 0; }
  .sidebar:not(:hover) .sidebar-user-info,
  .sidebar:not(:hover) .sidebar-logout { opacity: 0; pointer-events: none; }
}

/* Expanded: Icon schrumpft auf 28×28 Container — immer mit subtilem Hintergrund */
.sidebar:hover .nav-icon { width: 28px; height: 28px; border-radius: 7px; background: rgba(0,0,0,.04); }
.sidebar:hover .nav-item:not(.active):hover .nav-icon { background: rgba(0,0,0,.08); color: var(--z-800); }
.sidebar:hover .nav-item.active .nav-icon {
  background: var(--accent-md); color: var(--accent);
  box-shadow: 0 1px 4px rgba(79,70,229,.25);
}

.nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-footer {
  padding: 10px; border-top: 1px solid rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
  white-space: nowrap; background: #fff;
}
.sidebar-user { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.sidebar-avatar {
  width: 34px; height: 34px; background: var(--accent); color: #fff;
  border-radius: 10px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; transition: opacity .15s; }
.sidebar-user b     { font-size: 13px; font-weight: 600; display: block; color: var(--z-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user small { font-size: 11px; color: var(--z-400); display: block; margin-top: 1px; }
.sidebar:hover .sidebar-user-info { transition: opacity .18s .08s; }
.sidebar-logout {
  color: var(--z-400); display: flex; padding: 6px; border-radius: 7px;
  transition: opacity .15s, color .12s, background .12s; flex-shrink: 0; text-decoration: none;
}
.sidebar:hover .sidebar-logout { transition: opacity .18s .08s, color .12s, background .12s; }
.sidebar-logout:hover { color: var(--err); background: var(--err-bg); }
.sidebar-logout i svg { width: 15px; height: 15px; }

/* ── TOPBAR ─────────────────────────────────────── */
/* Layout (Grid/Spalten/Position/Hoehe/Innenabstand) wird ausschliesslich von
   02-shell.css definiert - siehe dortiger Kommentar. Hier bewusst nur noch
   Transition als harmlose Kosmetik; display:grid/grid-template-columns und
   das feste padding/height wurden entfernt, weil sie das Grid aus
   02-shell.css ueberschrieben haetten. */
.topbar {
  transition: box-shadow var(--tr), border-color var(--tr);
}
.topbar--scrolled {
  box-shadow: 0 1px 16px rgba(0,0,0,.07);
  border-bottom-color: transparent;
}

.topbar-left    { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-center  { display: flex; flex-direction: column; position: relative; }
.topbar-right   { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.topbar-page    { font-size: 15px; font-weight: 700; color: var(--z-950); letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar-actions { display: flex; align-items: center; gap: 5px; }
.topbar-sep     { width: 1px; height: 18px; background: rgba(0,0,0,.1); flex-shrink: 0; margin: 0 2px; }

.topbar-user-chip { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 20px; background: var(--z-100); cursor: default; }
.topbar-user-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.topbar-user-name { font-size: 13px; font-weight: 600; color: var(--z-700); white-space: nowrap; }

/* Buttons → 03-components.css */
/* Magnetic buttons */
[data-magnetic] { will-change: transform; }

/* Cards → 03-components.css */
.hos-panel + .hos-panel, .mt-3 { margin-top: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-lt); }
.panel-head h3 { margin: 0; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); font-size: 13px; }

/* ── SECTION HEAD ───────────────────────────────── */
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.section-head h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.04em; }
.section-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.section-head span { color: var(--muted); font-size: 13px; }

/* ── TABLES ─────────────────────────────────────── */
.table { font-size: 13px; }
.table thead th {
  background: var(--z-50);
  color: var(--z-500);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 9px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody td { padding: 10px 14px; border-bottom: 1px solid var(--line-lt); vertical-align: middle; color: var(--sub); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--z-50); }
.table tbody td b { font-weight: 600; color: var(--ink); }

/* status-pill → 03-components.css */

/* ── ALERT ──────────────────────────────────────── */
.alert-success-bar {
  background: var(--ok-bg); color: var(--ok);
  border: 1px solid var(--ok-bd); border-radius: var(--r);
  padding: 10px 14px; margin-bottom: 16px;
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}

/* ── KPI GRID ───────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.grid-3   { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.grid-2   { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 16px; }

.kpi-card {
  background: var(--card); border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--r-lg); padding: 18px 20px;
}
.kpi-card:hover { background: var(--z-50); }
.kpi-card span  { display: block; color: var(--z-500); font-size: 11.5px; font-weight: 500; margin-bottom: 8px; }
.kpi-card strong {
  font-family: 'Geist Mono', 'IBM Plex Mono', monospace;
  font-size: 30px; font-weight: 600; letter-spacing: -.05em;
  color: var(--ink); display: block; line-height: 1;
}
.kpi-card em { display: block; font-style: normal; font-size: 11.5px; color: var(--ok); font-weight: 500; margin-top: 6px; }
.kpi-card small { display: block; color: var(--z-400); font-size: 11px; margin-top: 3px; }

/* ── HERO PANEL ─────────────────────────────────── */
.hero-panel {
  background: var(--z-950);
  color: #fff;
  border-radius: var(--r-md);
  padding: 28px 32px;
  display: flex; justify-content: space-between; gap: 24px; align-items: flex-end;
  margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.hero-panel::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 50%;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,0,0,.03) 0%, transparent 70%);
  pointer-events: none;
}
.hero-panel h1  { font-weight: 600; font-size: clamp(16px,2.2vw,24px); color: #fff; margin: 0 0 8px; letter-spacing: -.03em; line-height: 1.3; }
.hero-panel p   { color: rgba(255,255,255,.5); font-size: 13px; margin: 0; max-width: 500px; line-height: 1.6; }
.hero-actions   { display: flex; gap: 8px; flex-shrink: 0; position: relative; z-index: 1; }
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  margin-bottom: 10px; position: relative; z-index: 1;
}

/* ── FLOW ───────────────────────────────────────── */
.flow { display: flex; flex-wrap: wrap; gap: 4px; }
.flow span {
  padding: 3px 10px; border-radius: var(--r-full);
  background: var(--z-100); border: 1px solid var(--z-200);
  font-size: 11.5px; font-weight: 500; color: var(--z-600);
}
.score { height: 4px; background: var(--z-200); border-radius: 2px; min-width: 80px; overflow: hidden; }
.score span { display: block; height: 100%; background: var(--z-900); border-radius: 2px; }

/* ── MODAL ──────────────────────────────────────── */
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeOutOverlay {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideDownModal {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(10px) scale(.97); }
}

/* Modal animations — Struktur → 03-components.css */
.hos-overlay {
  backdrop-filter: blur(6px);
  animation: fadeInOverlay .15s ease;
}
.hos-overlay.hos-closing {
  animation: fadeOutOverlay .18s ease forwards !important;
  pointer-events: none;
}
.hos-overlay.hos-closing .hos-modal {
  animation: slideDownModal .18s cubic-bezier(.4,0,1,1) forwards !important;
}
.hos-modal { animation: slideUpModal .22s cubic-bezier(.2,.8,.4,1); }

/* ── FORM GRID ──────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: var(--z-700); }
.form-grid input, .form-grid select, .form-grid textarea {
  padding: 7px 10px; border: 1px solid var(--z-200); border-radius: var(--r);
  font-size: 13.5px; font-family: inherit; background: var(--card); color: var(--ink);
  transition: border-color .12s, box-shadow .12s; outline: none;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  border-color: var(--z-400);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
  outline: none;
}
.prefill-banner { background: var(--z-50); border: 1px solid var(--z-200); border-radius: var(--r); padding: 10px 14px; font-size: 13px; margin: 0 20px; color: var(--z-700); }

/* ── ORDER TABS ─────────────────────────────────── */
.orders-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.orders-title  { display: flex; align-items: baseline; gap: 8px; }
.orders-title h1 { margin: 0; font-size: 18px; }
.orders-total  { color: var(--muted); font-size: 13px; }
.orders-empty  { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 48px 20px; text-align: center; color: var(--muted); }

.order-tabs {
  display: flex; gap: 3px; margin-bottom: 16px;
  background: var(--z-100); border: 1px solid var(--line);
  border-radius: var(--r); padding: 3px; width: fit-content;
}
.otab { background: transparent; border: none; border-radius: var(--r-xs); padding: 5px 13px; font-size: 12.5px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 5px; color: var(--muted); transition: all .1s; }
.otab:hover { color: var(--sub); background: rgba(255,255,255,.6); }
.otab.active { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--sh-xs); }
.otab-count { background: var(--z-200); color: var(--z-500); border-radius: var(--r-full); padding: 0 6px; font-size: 11px; }
.otab.active .otab-count { background: var(--z-100); color: var(--z-600); }

/* ── ORDER CARDS ────────────────────────────────── */
.order-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.ocard { background: var(--card); border: 1px solid rgba(0,0,0,.07); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--tr); }
.ocard:hover { border-color: rgba(0,0,0,.14); }
.ocard-head { padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.ocard-head--blue  { background: #0f172a; }
.ocard-head--amber { background: #431407; }
.ocard-head--green { background: #052e16; }
.ocard-head--teal  { background: #042f2e; }
.ocard-head--gray  { background: var(--z-800); }
.ocard-status { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.7); }
.ocard-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.ocard-id { font-size: 11px; color: rgba(255,255,255,.35); font-family: 'Geist Mono', monospace; }
.ocard-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.ocard-title { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ocard-info { display: grid; gap: 3px; }
.ocard-row { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.ocard-row b { color: var(--sub); font-weight: 600; }
.ocard-icon { width: 14px; text-align: center; flex-shrink: 0; }
.ocard-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ocard-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: var(--r-full); font-size: 11px; font-weight: 500; border: 1px solid; }
.ocard-tag.partner { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-bd); }
.ocard-tag.appt    { color: var(--z-600); background: var(--z-50); border-color: var(--z-200); }
.ocard-footer { padding: 8px 12px; border-top: 1px solid var(--line-lt); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; background: var(--z-50); }
.ocard-btn { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 4px 9px; font-size: 11.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all .1s; text-decoration: none; color: var(--sub); display: inline-flex; align-items: center; }
.ocard-btn:hover { border-color: var(--z-400); color: var(--ink); background: var(--z-50); }
.ocard-btn--primary { background: var(--z-900); color: #fff; border-color: var(--z-900); }
.ocard-btn--primary:hover { background: var(--z-700); color: #fff; }
.ocard-btn--green { background: var(--ok); color: #fff; border-color: var(--ok); }
.ocard-btn--green:hover { background: #15803d; color: #fff; }
.ocard-map-link { text-decoration: none; font-size: 13px; opacity: .45; transition: opacity .1s; }
.ocard-map-link:hover { opacity: 1; }
.kunde-badge { background: var(--ok); color: #fff; border-radius: var(--r-full); padding: 1px 8px; font-size: 10px; font-weight: 600; }

/* ── DETAIL ─────────────────────────────────────── */
.detail-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-title  { flex: 1; display: flex; align-items: center; gap: 10px; }
.detail-title h1 { margin: 0; font-size: 18px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 14px; align-items: start; }
.detail-info { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.info-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 14px; border-bottom: 1px solid var(--line-lt); font-size: 13px; }
.info-row:nth-child(even) { background: var(--z-50); }
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--muted); font-size: 11px; font-weight: 500; }
.info-row b, .info-row a { font-weight: 600; text-decoration: none; color: var(--ink); }

/* ── PIPELINE ───────────────────────────────────── */
.pipeline { display: flex; align-items: center; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 20px; margin-bottom: 20px; }
.pipeline-step { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 72px; text-align: center; font-size: 11px; font-weight: 500; color: var(--muted); flex-shrink: 0; }
.pipeline-step.active { color: var(--ink); }
.pipeline-step.done   { color: var(--ok); }
.pipeline-icon { font-size: 16px; display: block; opacity: .2; }
.pipeline-step.done .pipeline-icon, .pipeline-step.active .pipeline-icon { opacity: 1; }
.pipeline-line { flex: 1; height: 1px; background: var(--z-200); min-width: 16px; }
.pipeline-line.done { background: var(--ok); }

/* ── VIEW TABS ──────────────────────────────────── */
.view-tabs { display: flex; gap: 3px; margin: 16px 0; background: var(--z-100); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; width: fit-content; flex-wrap: wrap; }
.vtab { background: transparent; border: none; border-radius: var(--r-xs); padding: 5px 13px; font-size: 12.5px; font-weight: 500; cursor: pointer; color: var(--muted); transition: all .1s; }
.vtab:hover { color: var(--sub); background: rgba(255,255,255,.6); }
.vtab.active { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--sh-xs); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── NOTES ──────────────────────────────────────── */
.notes-field { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; font-family: inherit; min-height: 90px; resize: vertical; outline: none; transition: border-color .12s; }
.notes-field:focus { border-color: var(--z-400); box-shadow: 0 0 0 3px rgba(0,0,0,.06); outline: none; }

/* ── MAP ────────────────────────────────────────── */
.map-panel { padding: 0; overflow: hidden; }
.map-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--z-50); }
.map-panel-head h3 { margin: 0; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.map-embed-full { width: 100%; line-height: 0; }
.map-block { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.map-address { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.map-ext-link { color: var(--z-600); text-decoration: none; font-weight: 500; font-size: 12px; }
.map-ext-link:hover { text-decoration: underline; }
.map-embed { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }

/* ── APPT (legacy flex rows — kept for compatibility) ── */
.appt-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

/* ── ASSIGN ─────────────────────────────────────── */
.assign-active { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.assign-active b { font-size: 14px; font-weight: 600; }
.candidates-head { font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin: 12px 0 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.candidate-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-lt); }
.candidate-row.ineligible { opacity: .4; }
.candidate-row b { font-size: 13px; font-weight: 600; }
.candidate-row small { color: var(--muted); font-size: 12px; display: block; }
/* .text-danger → 01-bootstrap-overrides.css */

/* ── PARTNER: LAYOUT ─────────────────────────────── */
.prt-layout { display: flex; gap: 12px; align-items: flex-start; }

/* ── PARTNER: LIST ───────────────────────────────── */
.prt-list-col { flex: 1; min-width: 0; }
.prt-listcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }

/* Toolbar */
.prt-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; row-gap: 8px; background: var(--z-50); }
.prt-toolbar-right { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.prt-search-inp { padding: 6px 9px 6px 28px; border: 1px solid var(--line); border-radius: var(--r); font-size: 12.5px; background: var(--card); color: var(--ink); width: 160px; outline: none; transition: border-color .12s; font-family: inherit; }
.prt-search-inp:focus { border-color: var(--z-400); }
.prt-sort-sel { padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--r); font-size: 12.5px; background: var(--card); color: var(--ink); cursor: pointer; font-family: inherit; outline: none; }
.prt-toolbar .hos-seg { background: none; border: none; padding: 0; gap: 2px; flex-wrap: wrap; }
.prt-toolbar .hs-btn  { padding: 5px 10px; font-size: 12.5px; }
.prt-tab-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 4px; flex-shrink: 0; }
.prt-tab-dot.ok   { background: var(--ok); }
.prt-tab-dot.warn { background: var(--warn); }
.prt-tab-dot.err  { background: var(--err); }
.prt-tab-dot.gray { background: var(--z-400); }

/* Column grid — defined in one place, reused by hd + row */
.prt-list-hd,
.prt-row { grid-template-columns: 36px 1fr 120px 100px 78px 72px; }

/* Column header */
.prt-list-hd { display: grid; gap: 10px; padding: 7px 14px 7px 17px; border-bottom: 1px solid var(--line); background: var(--z-50); }
.prt-list-hd span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

/* Rows */
.prt-row { display: grid; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; transition: background .12s, border-color .12s; }
.prt-row:last-child { border-bottom: none; }
.prt-row:hover { background: var(--z-50); }
.prt-row.active { background: var(--z-100); border-left-color: var(--z-900); }
.prt-row.active .prt-row-name { color: var(--z-900); font-weight: 700; }
.prt-row-av { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; flex-shrink: 0; letter-spacing: -.01em; }
.prt-av-c0{background:var(--ink);}.prt-av-c1{background:var(--ok);}.prt-av-c2{background:#7c3aed;}.prt-av-c3{background:#0891b2;}
.prt-av-c4{background:var(--warn);}.prt-av-c5{background:var(--err);}.prt-av-c6{background:#0d9488;}.prt-av-c7{background:#db2777;}
.prt-row-info { min-width: 0; }
.prt-row-name { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prt-row-sub  { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.prt-row-trade { font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prt-row-more { font-size: 10px; background: var(--z-200); color: var(--muted); padding: 1px 5px; border-radius: var(--r-full); margin-left: 3px; }
.prt-row-status { display: flex; align-items: center; gap: 5px; }
.prt-row-score { display: flex; align-items: center; gap: 6px; }
.prt-row-sbar { flex: 1; height: 4px; background: var(--z-100); border-radius: 2px; overflow: hidden; min-width: 28px; }
.prt-row-snum { font-size: 11.5px; font-weight: 700; width: 22px; text-align: right; flex-shrink: 0; }
.prt-row-acts { display: flex; gap: 3px; opacity: 0; transition: opacity .15s; justify-content: flex-end; }
.prt-row:hover .prt-row-acts,
.prt-row.active .prt-row-acts { opacity: 1; }

/* ── PARTNER: DETAIL PANEL ───────────────────────── */
.prt-panel-mob-back { display: none; }
.prt-back-btn { display: flex; align-items: center; gap: 7px; padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--ink); background: none; border: none; cursor: pointer; font-family: inherit; }
.prt-back-btn:hover { color: var(--z-600); }

/* Panel: startet als 0-breites unsichtbares Element, animiert rein */
.prt-panel {
  flex-shrink: 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border: none;
  border-radius: var(--r-lg);
  transition: width .3s cubic-bezier(.4,0,.2,1), opacity .22s ease;
  background: var(--card);
  position: sticky;
  top: 68px;
  max-height: calc(100vh - 84px);
  align-self: flex-start;
}
/* Panel offen: 440px, sichtbar */
.prt-layout.panel-open .prt-panel {
  width: 440px;
  opacity: 1;
  pointer-events: auto;
  border: 1px solid var(--line);
}

/* Panel Footer */
.prt-pft-inner { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--z-50); display: flex; flex-direction: column; gap: 8px; }
.prt-ft-main { width: 100%; justify-content: center; font-size: 13px; padding: 9px 16px; }
.prt-ft-row2 { display: flex; gap: 6px; align-items: center; }
.prt-ft-btn  { font-size: 12px; padding: 6px 12px; white-space: nowrap; }

.prt-panel-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; color: var(--muted); text-align: center; }
#prt-panel-content { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.prt-ph    { flex-shrink: 0; }
.prt-ptabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 4px; flex-shrink: 0; overflow-x: auto; scrollbar-width: none; }
.prt-ptabs::-webkit-scrollbar { display: none; }
.prt-pbd   { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--z-200) transparent; }
.prt-pft   { flex-shrink: 0; }

/* Panel tabs */
.prt-pt { padding: 11px 14px; font-size: 12.5px; font-weight: 500; color: var(--muted); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: color .12s, border-color .12s; font-family: inherit; margin-bottom: -1px; white-space: nowrap; }
.prt-pt:hover { color: var(--ink); }
.prt-pt.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

/* Panel pane section */
.pd-sec { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.pd-sec:last-child { border-bottom: none; }
.pd-lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); display: flex; align-items: center; gap: 5px; }

/* Alerts */
.prt-alert { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r); font-size: 12px; font-weight: 500; }
.prt-alert.err  { background: var(--err-bg); border: 1px solid var(--err-bd); color: var(--err); }
.prt-alert.warn { background: var(--warn-bg); border: 1px solid var(--warn-bd); color: var(--warn); }

/* Shared */
.prt-prefix-badge { font-size: 10px; font-family: 'Geist Mono', monospace; font-weight: 700; background: var(--z-800); color: #fff; padding: 2px 7px; border-radius: 4px; letter-spacing: .06em; white-space: nowrap; }
.prt-meta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.prt-meta-item { font-size: 11.5px; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 4px; transition: color .12s; }
.prt-meta-item:hover { color: var(--ink); }
.prt-bank { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; background: var(--z-50); border: 1px solid var(--line); border-radius: var(--r); }
.prt-advance-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s; font-family: inherit; white-space: nowrap; }
.prt-advance-btn:hover { background: var(--z-900); color: #fff; border-color: var(--z-900); }
.prt-score-bar { height: 4px; background: var(--z-100); border-radius: 2px; overflow: hidden; }
.prt-score-fill { height: 100%; border-radius: 2px; }

/* ── PARTNER: RESPONSIVE ─────────────────────────── */

/* ── Desktop: Panel-offen → Trade ausblenden, kompaktere Spalten ── */
.prt-layout.panel-open .prt-col-trade { display: none; }
.prt-layout.panel-open .prt-list-hd,
.prt-layout.panel-open .prt-row { grid-template-columns: 36px 1fr 96px 70px 60px; }

/* ── 1300px: Panel etwas schmaler ── */
@media (max-width: 1300px) {
  .prt-layout.panel-open .prt-panel { width: 400px; }
}

/* ── 1140px: Panel noch schmaler, Score ausblenden ── */
@media (max-width: 1140px) {
  .prt-layout.panel-open .prt-panel { width: 360px; }
  .prt-layout.panel-open .prt-col-score { display: none; }
  .prt-layout.panel-open .prt-list-hd,
  .prt-layout.panel-open .prt-row { grid-template-columns: 36px 1fr 96px; }
}

/* ── 1060px: Panel wird Fullscreen-Overlay (Tablet/kleiner Laptop) ── */
@media (max-width: 1060px) {
  .prt-layout.panel-open .prt-panel {
    position: fixed;
    inset: 0;
    top: 0;
    width: 100% !important;
    max-height: 100dvh;
    border-radius: 0;
    border: none !important;
    z-index: 90;
    opacity: 1;
  }
  /* Liste: keine Spaltenanpassung nötig wenn Panel Overlay ist */
  .prt-layout.panel-open .prt-col-trade { display: revert; }
  .prt-layout.panel-open .prt-col-score { display: revert; }
  .prt-layout.panel-open .prt-list-hd,
  .prt-layout.panel-open .prt-row { grid-template-columns: 36px 1fr 120px 100px 78px 72px; }
  .prt-panel-mob-back { display: flex; border-bottom: 1px solid var(--line); background: var(--z-50); }
  .prt-row-acts { opacity: 1; }
}

/* ── 750px: Tablet hochkant ── */
@media (max-width: 750px) {
  .prt-col-trade { display: none; }
  .prt-list-hd, .prt-row { grid-template-columns: 36px 1fr auto auto; }
  .prt-row-acts { display: none; }
}

/* ── 500px: Mobil ── */
@media (max-width: 500px) {
  .prt-col-score { display: none; }
  .prt-list-hd, .prt-row { grid-template-columns: 36px 1fr auto; }
  .prt-toolbar { padding: 8px 12px; }
  .prt-toolbar-right { width: 100%; }
  .prt-search-inp { flex: 1; width: auto; }
  .prt-ft-row2 { flex-wrap: wrap; }
  .prt-ft-btn { flex: 1; justify-content: center; }
}
.trade-tag { background: var(--z-100); border: 1px solid var(--z-200); color: var(--z-600); border-radius: var(--r-full); padding: 2px 9px; font-size: 11px; font-weight: 500; }
.trade-tag.missing { background: var(--warn-bg); border-color: var(--warn-bd); color: var(--warn); display:inline-flex;align-items:center;gap:4px; }
.btn-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); color: var(--sub); cursor: pointer; transition: background var(--tr), color var(--tr), border-color var(--tr); flex-shrink: 0; padding: 0; }
.btn-icon:hover { background: var(--z-100); color: var(--ink); border-color: var(--z-300); }
.btn-icon.danger:hover { background: var(--err-bg); border-color: var(--err-bd); color: var(--err); }
.btn-icon.has-login { border-color: var(--z-300); color: var(--z-700); }

/* ── PARTNER TAB-BAR → .hos-seg / .hs-btn / .hs-count ─────────── */

/* ── ONBOARDING PIPELINE ────────────────────────── */
.ob-track { display: flex; align-items: flex-start; }
.ob-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.ob-num { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--z-200); background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--z-300); transition: all .15s; }
.ob-step.done   .ob-num { background: var(--ok);  border-color: var(--ok);  color: #fff; }
.ob-step.active .ob-num { background: var(--ink); border-color: var(--ink); color: #fff; }
.ob-step > span { font-size: 9px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ob-step.done   > span  { color: var(--ok);  font-weight: 600; }
.ob-step.active > span  { color: var(--ink); font-weight: 600; }
.ob-line { flex: 1; height: 2px; background: var(--z-200); min-width: 8px; margin-bottom: 20px; border-radius: 1px; }
.ob-line.done { background: var(--ok); }
.ob-action-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 8px 12px; border-radius: var(--r); background: var(--z-50); border: 1.5px solid var(--z-200); color: var(--z-700); font-size: 12px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s; margin-top: 10px; }
.ob-action-btn:hover { background: var(--z-100); border-color: var(--z-400); }

/* ── BAUSTELLEN / PROJECT CARDS ─────────────────── */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 12px; }
.proj-card { background: var(--card); border: 1px solid rgba(0,0,0,.07); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--tr); }
.proj-card:hover { border-color: rgba(0,0,0,.14); }
.proj-accent { height: 3px; }
.proj-accent.blue  { background: var(--b-500); }
.proj-accent.green { background: var(--ok); }
.proj-accent.amber { background: var(--warn); }
.proj-accent.red   { background: var(--err); }
.proj-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.proj-foot { padding: 10px 14px; border-top: 1px solid var(--line-lt); background: var(--z-50); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.proj-progress-bar { height: 5px; background: var(--z-100); border-radius: 3px; overflow: hidden; flex: 1; }
.proj-progress-fill { height: 100%; border-radius: 3px; transition: width .3s; }
.proj-metric { display: flex; flex-direction: column; gap: 1px; }
.proj-metric-label { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.proj-metric-val { font-size: 14px; font-weight: 700; color: var(--ink); }

/* ── TERMINE / APPOINTMENTS ─────────────────────── */
.appt-day-group { margin-bottom: 2px; }
.appt-day-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 10px 16px 6px; border-bottom: 1px solid var(--line-lt); background: var(--z-50); }
.appt-day-header.today { color: var(--ink); background: var(--z-100); font-weight: 800; }
.appt-row { display: grid; grid-template-columns: 90px 1fr 1fr 120px 90px 80px; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-lt); transition: background .1s; }
.appt-row:hover { background: var(--z-50); }
.appt-row:last-child { border-bottom: none; }
.appt-time { display: flex; flex-direction: column; gap: 1px; font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.appt-time span:not(:first-child) { font-size: 10px; font-weight: 500; color: var(--muted); }
.appt-day-header { display: flex; align-items: center; gap: 8px; }
.appt-type-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-full); font-size: 11px; font-weight: 600; background: var(--z-100); border: 1px solid var(--z-200); color: var(--sub); white-space: nowrap; }
@media(max-width:700px) { .appt-row { grid-template-columns: 1fr 1fr; } .appt-row > *:nth-child(n+5) { display:none; } }
@media(max-width:480px) { .proj-grid { grid-template-columns: 1fr; } }

/* ── BAUSTELLENTYP-AUSWAHL ──────────────────────── */
.pj-type-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 10px; }
.pj-type-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 16px 12px 14px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pj-type-card:hover { border-color: var(--tc); background: var(--tbg); }
.pj-type-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--tbg,var(--z-100)); color: var(--tc,var(--z-700)); display: flex; align-items: center; justify-content: center; transition: background .15s; border: 1.5px solid var(--tc,var(--z-300)); }
.pj-type-card:hover .pj-type-icon { background: var(--tc); color: #fff; }
.pj-type-name { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.pj-type-trades { font-size: 10px; color: var(--muted); line-height: 1.3; }
.pj-trade-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-full); background: var(--z-100); border: 1px solid var(--z-200); color: var(--z-700); font-size: 12px; font-weight: 600; }
.pj-cust-opt:hover { background: var(--z-100); }
@media(max-width:500px) { .pj-type-grid { grid-template-columns: repeat(2,1fr); } }

/* ── TRADES / CHECKBOXES ────────────────────────── */
.trades-section { margin: 12px 0 4px; padding: 0 20px 16px; }
.trades-label { font-weight: 500; font-size: 12px; color: var(--muted); margin-bottom: 10px; padding-top: 14px; border-top: 1px solid var(--line-lt); }
.trades-checkboxes { display: grid; grid-template-columns: repeat(auto-fill,minmax(185px,1fr)); gap: 5px; }
.trade-check { display: flex; align-items: center; gap: 8px; background: var(--z-50); border: 1px solid var(--line); border-radius: var(--r); padding: 7px 10px; font-size: 13px; cursor: pointer; transition: all .1s; }
.trade-check:hover { background: var(--card); border-color: var(--z-300); color: var(--ink); }
.trade-check input { width: 14px; height: 14px; accent-color: var(--ink); }

/* ── DISPATCH ───────────────────────────────────── */
.dispatch-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.dispatch-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dispatch-section-head h2 { margin: 0; font-size: 14.5px; font-weight: 600; }
.section-count { padding: 2px 9px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 500; background: var(--z-100); color: var(--muted); border: 1px solid var(--z-200); }
.section-count.urgent { background: var(--err-bg); color: var(--err); border-color: var(--err-bd); }
.section-count.warn   { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-bd); }
.dispatch-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
.dispatch-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 10px; }
.dispatch-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; background: var(--card); }
.dispatch-card.open { border-left: 2px solid var(--ink); }
.dc-top  { display: flex; justify-content: space-between; align-items: center; }
.dc-id   { font-size: 11px; font-weight: 500; color: var(--muted); font-family: 'Geist Mono', monospace; }
.dc-title { font-size: 14px; font-weight: 600; }
.dc-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.dc-meta a { color: inherit; text-decoration: none; }
.dc-meta a:hover { color: var(--ink); }
.dc-modal-order { background: var(--z-50); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
.dispatch-pending { display: grid; gap: 8px; }
.pending-card { background: var(--warn-bg); border: 1px solid var(--warn-bd); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.pending-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pending-order { display: flex; align-items: baseline; gap: 5px; }
.pending-arrow { font-size: 16px; color: var(--muted); }
.pending-partner b { display: block; font-size: 13px; font-weight: 600; }
.pending-partner small { display: block; font-size: 12px; color: var(--muted); }
.pending-actions { display: flex; flex-direction: column; gap: 5px; }

/* ── PARTNER PICK ───────────────────────────────── */
.partner-pick-list { display: grid; }
.partner-pick-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-lt); }
.partner-pick-row:last-child { border-bottom: none; }
.partner-pick-info b     { font-size: 13px; font-weight: 600; display: block; }
.partner-pick-info small { color: var(--muted); font-size: 12px; }

/* ── DOCS ───────────────────────────────────────── */
.doc-list { display: grid; }
.doc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-lt); }
.doc-row:last-child { border-bottom: none; }
.doc-info b     { font-size: 13px; font-weight: 600; display: block; }
.doc-info small { font-size: 12px; color: var(--muted); }
.doc-form   { display: flex; gap: 6px; align-items: center; }
.doc-select { padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-xs); font-size: 12px; background: var(--card); cursor: pointer; }
.doc-date   { padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-xs); font-size: 12px; width: 130px; }

/* ── WORKFLOW LIST ──────────────────────────────── */
.wf-list { display: grid; gap: 6px; }
.wf-card { background: var(--card); border: 1px solid rgba(0,0,0,.07); border-radius: var(--r-md); display: grid; grid-template-columns: 2px 1fr auto; overflow: hidden; transition: border-color .12s; }
.wf-card:hover { border-color: rgba(0,0,0,.14); }
.wf-stripe.blue   { background: var(--b-600); }
.wf-stripe.green  { background: var(--ok); }
.wf-stripe.amber  { background: var(--warn); }
.wf-stripe.info   { background: var(--muted); }
.wf-body { padding: 12px 16px; display: grid; gap: 6px; }
.wf-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wf-id   { font-size: 11px; font-weight: 500; color: var(--muted); margin-right: 5px; font-family: 'Geist Mono', monospace; }
.wf-title { font-size: 14px; font-weight: 600; }
.wf-info  { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.wf-info a { color: inherit; text-decoration: none; }
.wf-info a:hover { color: var(--ink); }
.wf-info b { color: var(--sub); font-weight: 600; }
.wf-status-row { display: flex; flex-wrap: wrap; gap: 5px; }
.wf-badge { display: flex; align-items: center; gap: 5px; background: var(--z-100); border: 1px solid var(--line); border-radius: var(--r-full); padding: 2px 8px; font-size: 11px; font-weight: 500; }
.wf-badge.partner { background: var(--ok-bg); border-color: var(--ok-bd); }
.wf-badge.appt    { background: var(--z-100); border-color: var(--z-200); }
.wf-actions { padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 148px; border-left: 1px solid var(--line-lt); background: var(--z-50); }
@media(max-width:750px){.wf-card{grid-template-columns:2px 1fr}.wf-actions{flex-direction:row;flex-wrap:wrap;padding:0 14px 10px;border-left:none;border-top:1px solid var(--line)}}
@media(max-width:480px){.prt-grid{grid-template-columns:1fr}}

/* ── PROJECT BOARD ──────────────────────────────── */
.project-board { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.project-card { background: var(--card); border: 1px solid rgba(0,0,0,.07); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 8px; transition: border-color .12s; }
.project-card:hover { border-color: rgba(0,0,0,.14); }
.project-card h3 { margin: 0; font-size: 14px; font-weight: 600; }
.project-card p, .project-card small { margin: 0; color: var(--muted); font-size: 12px; }
.metrics { display: flex; gap: 14px; font-size: 12px; font-family: 'Geist Mono', monospace; }
.metrics span { display: flex; gap: 4px; align-items: center; }

/* ── KV / INVOICE ───────────────────────────────── */
.kv-layout { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: start; }
.kv-totals { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; padding: 12px 0; border-top: 1px solid var(--z-300); margin-top: 8px; }
.kv-total-row { display: flex; gap: 24px; font-size: 13px; font-family: 'Geist Mono', monospace; }
.kv-total-row span { color: var(--muted); }
.kv-total-row b { min-width: 110px; text-align: right; font-weight: 600; }
.kv-total-row.total { font-size: 15px; font-weight: 700; border-top: 1px solid var(--ink); padding-top: 8px; margin-top: 4px; }
.quote-items-head { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.quote-item-row { display: grid; grid-template-columns: 1fr 70px 70px 90px 65px 26px; gap: 5px; margin-bottom: 5px; }
.qi-desc,.qi-qty,.qi-unit,.qi-price,.qi-tax { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; font-family: inherit; background: var(--card); }
.qi-del { background: none; border: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 0; }
.qi-del:hover { color: var(--err); }
.quote-total { background: var(--z-50); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin-top: 10px; display: flex; gap: 20px; font-size: 13px; flex-wrap: wrap; font-family: 'Geist Mono', monospace; }
.quote-total b { font-weight: 600; }
.quick-products { margin: 8px 0; display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.quick-products small { color: var(--muted); font-size: 12px; }
.quick-products button { background: var(--z-100); border: 1px solid var(--z-200); border-radius: var(--r-xs); padding: 3px 9px; font-size: 12px; font-weight: 500; cursor: pointer; color: var(--sub); }
.quick-products button:hover { background: var(--z-200); color: var(--ink); }

/* ── BRIEFING ───────────────────────────────────── */
.briefing-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.briefing-header { padding: 18px 22px; background: var(--z-950); color: #fff; }
.briefing-label { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: 6px; }
.briefing-header h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.briefing-grid { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); }
.briefing-section { padding: 18px; border-right: 1px solid var(--line); }
.briefing-section:last-child { border-right: none; }
.briefing-section:nth-child(even) { background: var(--z-50); }
.briefing-section-title { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.briefing-row { font-size: 13px; margin-bottom: 5px; }
.briefing-phone { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; font-family: 'Geist Mono', monospace; }
.briefing-big-date { font-size: 24px; font-weight: 600; color: var(--ink); font-family: 'Geist Mono', monospace; }
.briefing-map-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--z-50); }
@media(max-width:700px){.briefing-grid{grid-template-columns:1fr}}

/* ── CUSTOMER / MONTEUR VIEW ────────────────────── */
.customer-view { max-width: 680px; margin: 0 auto; }
.cv-header { text-align: center; padding: 22px; background: var(--z-950); color: #fff; border-radius: var(--r-md) var(--r-md) 0 0; }
.cv-header h2 { margin: 0 0 5px; font-size: 18px; }
.cv-header p  { margin: 0; opacity: .6; font-size: 13px; }
.cv-pipeline { display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-top: none; padding: 16px; overflow-x: auto; }
.cv-step { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 80px; }
.cv-step-icon { font-size: 16px; opacity: .2; }
.cv-step.done .cv-step-icon, .cv-step.active .cv-step-icon { opacity: 1; }
.cv-step span { font-size: 10px; font-weight: 500; color: var(--muted); text-align: center; }
.cv-step.done span, .cv-step.active span { color: var(--sub); }
.cv-line { flex: 1; height: 1px; background: var(--z-200); min-width: 14px; }
.cv-line.done { background: var(--ok); }
.cv-info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 10px; }
.cv-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; text-align: center; }
.cv-card-title { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.cv-card-value { font-size: 16px; font-weight: 600; margin-bottom: 3px; font-family: 'Geist Mono', monospace; }
.cv-card-sub   { font-size: 12px; color: var(--muted); }
.cv-card-icon  { font-size: 20px; margin-bottom: 6px; opacity: .5; }

.monteur-header { background: var(--z-950); color: #fff; border-radius: var(--r-md); padding: 20px 22px; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.monteur-label { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.monteur-header h2 { margin: 0 0 4px; font-size: 18px; }
.monteur-time  { font-size: 13px; opacity: .6; }
.monteur-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.monteur-card  { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.monteur-card-title { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.monteur-address { font-size: 14px; line-height: 1.6; }
.monteur-info  { display: flex; justify-content: space-between; align-items: center; }
.monteur-call  { background: var(--ink); color: #fff; border-radius: var(--r); padding: 7px 14px; text-decoration: none; font-weight: 600; font-size: 13px; }
.monteur-notes { background: var(--z-50); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.monteur-checklist { display: grid; gap: 4px; }
.monteur-checklist label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 5px 6px; border-radius: var(--r-xs); }
.monteur-checklist label:hover { background: var(--z-100); }
.monteur-checklist input { width: 14px; height: 14px; accent-color: var(--ink); }
@media(max-width:700px){.monteur-grid{grid-template-columns:1fr}.monteur-header{display:grid;gap:10px}}

/* ── SETTINGS / READINESS ───────────────────────── */
.readiness { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; border-bottom: 1px solid var(--line-lt); padding: 10px 0; }
.readiness small { grid-column: 1/-1; color: var(--muted); font-size: 12px; }
.checklist { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.checklist label { background: var(--z-50); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; font-size: 13px; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: background .1s; }
.checklist label:hover { background: var(--z-100); }
.checklist input { accent-color: var(--ink); }
.alert-card { background: var(--warn-bg); border: 1px solid var(--warn-bd); border-radius: var(--r); padding: 12px; font-size: 13px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.check-list li { padding: 7px 12px; background: var(--ok-bg); border: 1px solid var(--ok-bd); border-radius: var(--r); font-size: 13px; }
.check-list li::before { content: "✓  "; color: var(--ok); font-weight: 700; }

/* ── MISC ───────────────────────────────────────── */
.big { font-size: 36px; font-weight: 600; letter-spacing: -.05em; font-family: 'Geist Mono', monospace; }
.mini-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 8px; display: grid; gap: 6px; }
.dispatch-flow { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.dispatch-flow span { padding: 3px 10px; background: var(--z-100); border: 1px solid var(--z-200); border-radius: var(--r-full); font-size: 11.5px; color: var(--sub); }
.rule-line { display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-lt); font-size: 13px; }
.rule-line:last-child { border-bottom: none; }
.rule-line strong { font-weight: 600; }
.rule-line em { font-style: normal; background: var(--z-100); color: var(--sub); padding: 1px 7px; border-radius: var(--r-full); font-size: 11px; font-weight: 500; }
.quote-builder > div { background: var(--z-50); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 4px; }
.quote-builder span { font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.product-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-lt); }
.product-row:last-child { border-bottom: none; }
.product-row small { display: block; color: var(--muted); font-size: 12px; }
.hos-panel.map-panel { padding: 0; overflow: hidden; }
/* .text-bg-*, .badge → 01-bootstrap-overrides.css */
.ok  { color: var(--ok);  font-weight: 600; }
.bad { color: var(--err); font-weight: 600; }

/* ── LOGIN ──────────────────────────────────────── */
.login-main { background: var(--z-100); }

.login-wrap { width: min(390px, 94vw); }

.login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
}

.login-header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.login-logo {
  width: 34px; height: 34px;
  background: var(--z-900); border-radius: var(--r-md);
  display: grid; place-items: center; flex-shrink: 0;
}
.login-brand   { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.login-tagline { font-size: 11px; color: var(--z-400); font-weight: 400; margin-top: 1px; }
.login-body    { padding: 24px; }
.login-title   { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.login-sub     { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.login-error   { background: var(--err-bg); color: var(--err); border: 1px solid var(--err-bd); border-radius: var(--r); padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.login-field   { margin-bottom: 14px; }
.login-label   { display: block; font-size: 12px; font-weight: 500; color: var(--z-700); margin-bottom: 5px; }
.login-input   { width: 100%; padding: 9px 11px; border: 1px solid var(--z-200); border-radius: var(--r); font-size: 14px; font-family: inherit; background: var(--card); color: var(--ink); transition: border-color .12s, box-shadow .12s; outline: none; }
.login-input:focus { border-color: var(--z-400); box-shadow: 0 0 0 3px rgba(0,0,0,.06); outline: none; }
.login-btn { width: 100%; padding: 10px 20px; background: var(--z-900); color: #fff; border: none; border-radius: var(--r); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .12s; font-family: inherit; margin-top: 4px; }
.login-btn:hover { background: var(--z-700); }
.login-footer  { padding: 14px 24px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-xl) var(--r-xl); background: var(--z-50); }
.login-secure  { font-size: 11px; color: var(--z-400); font-weight: 400; }

/* ── RESPONSIVE GRID UTILITIES ──────────────────── */
/* Verwende diese Klassen statt inline display:grid  */
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.g2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }

/* Tabellen immer scrollbar auf kleinen Screens */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media(min-width:1400px) { :root { --sw: 276px } }

@media(max-width:1100px) {
  :root { --sw: 236px }
  .kpi-grid  { grid-template-columns: repeat(2,1fr) }
  .order-grid { grid-template-columns: repeat(2,1fr) }
  .detail-grid { grid-template-columns: 1fr 1fr }
  .kv-layout { grid-template-columns: 1fr }
  .project-board { grid-template-columns: repeat(2,1fr) }
  .g4 { grid-template-columns: repeat(2,1fr) }
}

/* ── HAMBURGER BUTTON ────────────────────────────── */
.mob-menu-btn {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: 1px solid var(--line);
  border-radius: var(--r); cursor: pointer;
  padding: 0; flex-shrink: 0;
  transition: background .1s;
}
.mob-menu-btn:hover { background: var(--z-100); }
.mob-menu-btn span {
  display: block; width: 18px; height: 1.5px;
  background: var(--z-700); border-radius: 2px;
  transition: all .2s;
}

/* ── MOBILE BACKDROP ────────────────────────────── */
.mob-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: rgba(0,0,0,.45);
}
.mob-backdrop--visible { display: block; }

/* Labels auf Mobile ausblenden */
.mob-hide { /* visible by default */ }

@media(max-width:850px) {
  /* ── Layout ── */
  .main { margin-left: 0 }
  .mob-hide { display: none }
  .mob-menu-btn { display: flex }

  /* ── Sidebar als Drawer ── */
  .sidebar {
    position: fixed; inset: 0 auto 0 0;
    width: 260px;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    z-index: 100;
    box-shadow: none;
  }
  .sidebar.mob-open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,.18);
  }
  .sidebar:hover { box-shadow: none; }
  /* Sidebar-Nav wieder normal (nicht horizontal) */
  .sidebar-nav { flex-direction: column; flex-wrap: nowrap; overflow-y: auto; }
  .sidebar-footer { display: flex }
  .nav-group { display: block; margin-bottom: 0; }
  .nav-group-label {
    display: block; opacity: 1; max-height: none;
    padding: 12px 4px 4px 10px;
    pointer-events: auto; cursor: pointer; user-select: none;
    text-transform: uppercase; font-size: 9.5px; letter-spacing: .08em;
    color: var(--z-400);
    font-weight: 700;
  }
  .nav-group:first-child .nav-group-label { padding-top: 4px; }
  .nav-group.open .nav-group-label { color: var(--accent); }
  .nav-group-chevron { display: none; }
  .nav-group-items { max-height: 0; overflow: hidden; transition: max-height .28s cubic-bezier(.4,0,.2,1); }
  .nav-group.open .nav-group-items { max-height: 600px; }
  .sidebar-brand > div:last-child { opacity: 1; }
  .nav-item { padding: 8px 10px; font-size: 13.5px; border-radius: 9px; }
  .nav-item.active { background: var(--accent-lt); color: var(--accent); font-weight: 600; box-shadow: none; }
  .nav-item.active .nav-icon { color: var(--accent); }
  .nav-icon { width: 20px; height: 20px; border-radius: 0; background: transparent; }

  /* ── Topbar: mobiles Padding wird von 02-shell.css definiert, damit es
     nicht mit dem dortigen Grid-Layout konkurriert. ── */

  /* ── Floating action bar: full width ── */
  #prov-action-bar { left: 0; }

  /* ── Grids stapeln ── */
  .section-head { flex-wrap: wrap; gap: 8px; }
  .g3 { grid-template-columns: 1fr 1fr }
  .g4 { grid-template-columns: 1fr 1fr }
}

@media(max-width:600px) {
  .content { padding: 14px 16px }
  .kpi-grid  { grid-template-columns: 1fr 1fr }
  .order-grid { grid-template-columns: 1fr }
  .project-board { grid-template-columns: 1fr }
  .detail-grid { grid-template-columns: 1fr }
  .cv-info-grid { grid-template-columns: 1fr }
  .checklist { grid-template-columns: 1fr }
  .hero-panel { flex-direction: column; align-items: flex-start }
  .briefing-grid { grid-template-columns: 1fr }
  .g4 { grid-template-columns: 1fr }
  .g3 { grid-template-columns: 1fr }
  .g2 { grid-template-columns: 1fr }

  /* Section-head: Button unter Titel */
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head > div:last-child { width: 100%; }

  /* Tabs wrappen */
  .order-tabs { flex-wrap: wrap; width: 100%; }
}

/* ── PARTNER BANK + FORM SECTIONS ────────────────────────────────────────── */
.prt-bank-name { display: block; font-size: 10px; color: var(--muted); margin-bottom: 1px; }
.prt-bank-iban { display: block; font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.prt-bank-bic  { display: block; font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted); }

.partner-form-section-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
  margin: 16px 0 10px;
}

/* Filter-Bar → 99-legacy-bridge.css */

/* ── GLOBAL FOCUS RING ──────────────────────────── */
:focus-visible {
  outline: 2px solid var(--z-400);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
button:focus-visible, a:focus-visible { outline-color: var(--z-400); }

/* ── SELECTION ──────────────────────────────────── */
::selection { background: var(--z-200); color: var(--z-900); }

/* ── CARD HOVER LIFT (global) ───────────────────── */
.wf-card { transition: border-color var(--tr); }
.wf-card:hover { transform: none; }
.project-card { transition: border-color var(--tr); }
.project-card:hover { transform: translateY(-1px); }

/* ── SECTION HEAD REFINEMENT ────────────────────── */
.section-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.section-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -.03em; }

/* ── TABLE REFINEMENT ───────────────────────────── */
.table tbody tr { transition: background var(--tr-fast); }
.table thead th { letter-spacing: .07em; }

/* ── SIDEBAR REFINEMENTS (no overrides — dark theme set above) ── */
.nav-icon { transition: color var(--tr-fast); }
.nav-item { transition: background var(--tr-fast), color var(--tr-fast); }

/* ── MODAL CLOSE BUTTON ─────────────────────────── */
.modal-close { transition: background var(--tr-fast), color var(--tr-fast); }

/* ── ALERT SUCCESS BAR ──────────────────────────── */
.alert-success-bar {
  animation: slideUpModal .2s ease;
}

/* ── CARDX HOVER ────────────────────────────────── */
.cardx { transition: box-shadow var(--tr); }

/* Input focus → 03-components.css */

/* ── SKELETON LOADER ────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--z-100) 25%, var(--z-50) 50%, var(--z-100) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r);
}

/* ── TOPBAR TITLE ───────────────────────────────── */
.topbar-page {
  font-size: 14px; font-weight: 600;
  color: var(--z-900); letter-spacing: -.025em;
}

/* ── SMOOTH PAGE TRANSITIONS ────────────────────── */
.content { animation: fadeInContent .2s ease; }
@keyframes fadeInContent {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SIDEBAR LOGO ── set in main block above */

/* Modal head + btn-primary → 03-components.css */

/* ── BADGE / COUNTER PILL ───────────────────────── */
.otab-count { transition: background var(--tr-fast); }

/* ── DISPATCH CARD HOVER ────────────────────────── */
.dispatch-card { transition: border-color var(--tr); }
.dispatch-card:hover { border-color: rgba(0,0,0,.14); transform: none; }

/* Toast → 03-components.css */

/* ── SPINNER ANIMATION ──────────────────────────── */
@keyframes hosSpinAnim { to { transform: rotate(360deg); } }

/* ── PULSE: used after AJAX card updates ─────────── */
@keyframes hosPulse {
  0%  { box-shadow: 0 0 0 0 rgba(0,0,0,.18); }
  70% { box-shadow: 0 0 0 6px rgba(0,0,0,0); }
  100%{ box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}
.hos-pulse { animation: hosPulse .5s ease-out; }

/* ── FORM & BUTTON LOADING ──────────────────────── */
.btn[disabled] { opacity: .68; cursor: not-allowed; }
.btn[disabled]:hover { transform: none; }

/* Nav active — set in main SIDEBAR block above */
.sidebar-logo { box-shadow: none; }

/* ── TOPBAR SEARCH ──────────────────────────────── */
/* Massgebliche Definition in 02-shell.css (Grid statt absoluter Positionierung,
   ein Rahmen statt Wrapper+Input-Doppelrahmen). Hier entfernt, um nicht wieder
   einen konkurrierenden Such-Layer aufzubauen. */

/* Tables, empty states → 03-components.css */

/* ═══════════════════════════════════════════════════
   KPI CARD IMPROVEMENTS
   ═══════════════════════════════════════════════════ */
.kpi-card { position: relative; overflow: hidden; }
.kpi-card-icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: .1;
}
.kpi-card-icon i svg { width: 22px; height: 22px; }
.kpi-card-trend {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; margin-top: 6px;
}
.kpi-card-trend.up   { color: var(--ok); }
.kpi-card-trend.down { color: var(--err); }
.kpi-card-trend.flat { color: var(--muted); }

/* ── STATUS PILL REFINEMENT ─────────────────────── */
/* Add pulse dot animation for "active" states */
.status-pill.active-pulse::before {
  animation: pillPulse 2s ease-in-out infinite;
}
@keyframes pillPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.4); }
}

/* btn-icon → 03-components.css */

/* ── GLOBAL SEARCH RESULTS ──────────────────────── */
/* .hos-search-results (Positionierung/Rahmen/Schatten) wird von
   03-components.css definiert - dort die massgebliche, tatsaechlich
   wirksame Definition (laedt spaeter, ueberschreibt jede Eigenschaft
   dieser Regel vollstaendig). War hier zuvor zusaetzlich mit
   position:fixed/centered dupliziert, ohne sichtbaren Effekt - entfernt,
   nicht nur ueberdeckt. Die Item-Regeln (.hsr-*) direkt darunter sind die
   einzige aktive Definition und bleiben hier. */
.hsr-section {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
  padding: 10px 14px 6px; background: #fff;
  border-top: 1px solid var(--line-lt);
}
.hsr-section:first-child { border-top: 0; }
.hsr-item {
  display: grid; grid-template-columns: 34px minmax(0,1fr) auto 16px;
  align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 14px; text-decoration: none; color: var(--ink);
  border-top: 1px solid rgba(15,23,42,.055); transition: background .12s, color .12s;
}
.hsr-item:hover, .hsr-item.active { background: #f7f8f8; color: var(--ink); text-decoration: none; }
.hsr-item:last-child { border-bottom: none; }
.hsr-icon {
  width: 34px; height: 34px; border-radius: 7px;
  background: #f2f4f3; border: 1px solid rgba(15,23,42,.07);
  display: flex; align-items: center; justify-content: center;
  color: #305a4b; flex-shrink: 0;
}
.hsr-icon svg { width: 16px; height: 16px; display: block; }
.hsr-copy { min-width: 0; }
.hsr-label { font-size: 13px; font-weight: 650; line-height: 1.3; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsr-sub   { margin-top: 2px; font-size: 11px; line-height: 1.3; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsr-meta { max-width: 138px; color: #667085; font: 500 10.5px/1.3 'Geist Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsr-arrow { width: 14px; height: 14px; color: #98a2b3; }
.hsr-module-links { display: flex; align-items: center; gap: 4px; padding: 9px 10px; border-top: 1px solid var(--line-lt); background: #fafbfa; overflow-x: auto; }
.hsr-module-links a { padding: 5px 8px; border-radius: 6px; color: #52605b; font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.hsr-module-links a:hover { color: #173d31; background: #edf3f0; }
.hsr-empty { display: grid; grid-template-columns: 32px minmax(0,1fr); column-gap: 10px; padding: 18px 16px; }
.hsr-empty svg { grid-row: 1 / span 2; width: 20px; height: 20px; margin: 4px 0 0 5px; color: #87918d; }
.hsr-empty strong { font-size: 13px; color: var(--ink); }
.hsr-empty span { margin-top: 2px; font-size: 11px; color: var(--muted); }
.hsr-loading { display: flex; align-items: center; gap: 9px; padding: 16px; color: var(--muted); font-size: 12px; }
.hsr-loading > span:first-child { width: 15px; height: 15px; border: 2px solid #dce4e0; border-top-color: #305a4b; border-radius: 50%; animation: hosSpinAnim .7s linear infinite; }

@media (max-width: 620px) {
  .hsr-item { grid-template-columns: 34px minmax(0,1fr) 14px; }
  .hsr-meta { display: none; }
}

/* .prt-tab-count → .hs-count (04-page-layout.css) */

/* ── Form inputs & labels (global) ── */
.set-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.form-inp {
  width: 100%;
  padding: 8px 11px;
  border: 1.5px solid var(--z-200);
  border-radius: var(--r);
  font-size: 13px;
  font-family: inherit;
  background: var(--card);
  color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
  outline: none;
  box-sizing: border-box;
}
.form-inp:focus {
  border-color: var(--z-400);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
  outline: none;
}
.form-inp.mono { font-family: 'Geist Mono', monospace; letter-spacing: .04em; }

/* Alert bars → 03-components.css */

/* ═══════════════════════════════════════════════════
   RESPONSIVE TABLE FIX
   Cards use overflow:hidden (inline) for border-radius clipping.
   On mobile, tables inside must still scroll horizontally.
   !important on overflow-x overrides the inline overflow:hidden
   shorthand — only the x-axis is changed, y stays hidden.
   ═══════════════════════════════════════════════════ */

/* Fix: table-wrap class overrides inline overflow:hidden */
.table-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }

/* Mobile: all card containers allow horizontal scroll for tables */
@media(max-width:850px) {
  .cardx     { overflow-x: auto !important; }
  .hos-panel { overflow-x: auto !important; }
  /* Ensure tables inside take full width of their scroll container */
  .cardx .table, .hos-panel .table { min-width: 480px; }
}

/* stat-grid, hos-tabs, count-badge → 03-components.css / 99-legacy-bridge.css */

/* ── MOBILE COLUMN VISIBILITY ────────────────────── */
.col-show-sm { display: none; }
@media(max-width:850px) {
  .col-hide-sm { display: none !important; }
  .col-show-sm { display: block !important; }
}
@media(max-width:540px) {
  .col-hide-xs { display: none !important; }
  /* Compact table cells on very small screens */
  .table tbody td { padding: 8px 10px; font-size: 12px; }
  .table thead th { padding: 8px 10px; }
  /* Section-head stacks on narrow screens */
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-head > div:last-child { width: 100%; }
  .section-head > div:last-child .btn { width: 100%; justify-content: center; }
  /* Stat grid collapses to 2 on very small */
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  /* Filter bars stack */
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-input, .filter-select { width: 100%; }
  /* Floating action bar — full width on mobile */
  #prov-action-bar { left: 0; flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 10px; }
}

/* sidebar-brand: white-space so text doesn't wrap when clipped */
.sidebar-brand { white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════════
   DESIGN SYSTEM v4 — AWARD-WINNING OVERHAUL
   Principles: Linear, Vercel, Stripe, Raycast — Tight radius,
   layered shadows, strong type hierarchy, purposeful color.
   ═══════════════════════════════════════════════════════════════════ */

/* Tokens → 00-tokens.css */

/* -- BASE --------------------------------------------------------- */
body { font-size: 13.5px; background: var(--bg); }
h1,h2,h3,h4,h5 { font-weight: 700; }

/* Sidebar nav-item → base sidebar block + 02-shell.css */
/* Topbar → base topbar block + 02-shell.css */

/* Buttons → 03-components.css */

/* Cards, section-head → 03-components.css */

/* -- KPI CARDS ---------------------------------------------------- */
.kpi-card { border-radius: 14px; border: 1px solid rgba(0,0,0,.07); padding: 20px 22px; }
.kpi-card:hover { background: var(--z-50); }
.kpi-card strong { font-size: 30px; letter-spacing: -.06em; }

/* Stat cards → 03-components.css */

/* Tables → 03-components.css */

/* -- ORDER CARDS: light theme replaces dark headers -------------- */
.ocard { border-radius: 14px; border-color: rgba(0,0,0,.07); }
.ocard:hover { border-color: rgba(0,0,0,.14); }
.ocard-head { padding: 9px 14px; }
.ocard-head--blue  { background: var(--z-50);  border-bottom-color: var(--z-200); }
.ocard-head--amber { background: #fffbeb;      border-bottom-color: #fde68a; }
.ocard-head--green { background: #f0fdf4;      border-bottom-color: #bbf7d0; }
.ocard-head--teal  { background: #f0fdfa;      border-bottom-color: #99f6e4; }
.ocard-head--gray  { background: var(--z-100); border-bottom-color: var(--z-200); }
.ocard-head--blue  .ocard-status { color: var(--z-600); }
.ocard-head--amber .ocard-status { color: #92400e; }
.ocard-head--green .ocard-status { color: #14532d; }
.ocard-head--teal  .ocard-status { color: #134e4a; }
.ocard-head--gray  .ocard-status { color: var(--z-600); }
.ocard-id { opacity: 1; color: var(--muted); }
.ocard-head--blue  .ocard-id { color: var(--b-400); }
.ocard-head--amber .ocard-id { color: #b45309; }
.ocard-head--green .ocard-id { color: #16a34a; opacity: .6; }
.ocard-btn { border-radius: 7px; }
.ocard-footer { background: var(--z-50); }

/* -- PARTNER CARDS ----------------------------------------------- */

/* -- INFO ROWS ---------------------------------------------------- */
.detail-info { border-radius: 14px; }
.info-row { padding: 10px 16px; font-size: 13.5px; }
.info-row span { font-size: 11.5px; font-weight: 600; }

/* -- PIPELINE ---------------------------------------------------- */
.pipeline { border-radius: 14px; padding: 16px 24px; }

/* Modal, form inputs → 03-components.css */

/* hos-tabs → 03-components.css */
.order-tabs { border-radius: 10px; }
.otab { border-radius: 7px; font-size: 12.5px; }
/* .prt-tabs/.prt-tab → .hos-seg/.hs-btn (04-page-layout.css) */

/* Status pills → 03-components.css */

/* -- DISPATCH ---------------------------------------------------- */
.dispatch-card { border-radius: 10px; }
.dispatch-section { border-radius: 14px; }
.dispatch-section-head h2 { font-size: 14px; font-weight: 700; letter-spacing: -.02em; }

/* -- WF CARDS ---------------------------------------------------- */
.wf-card { border-radius: 10px; border-color: rgba(0,0,0,.07); }
.wf-card:hover { border-color: rgba(0,0,0,.14); }
.wf-title { letter-spacing: -.02em; }

/* -- PROJECT / PROTOCOL CARDS ------------------------------------ */
.proj-card { border-radius: 14px; }
.proj-card:hover { border-color: rgba(0,0,0,.14); }
.pj-type-card { border-radius: 12px; }
.proto-card { border-radius: 14px; }
.briefing-card { border-radius: 14px; }
.mini-card { border-radius: 10px; }

/* View toggle, empty states → 03-components.css */

/* GLOBAL SEARCH: .hos-search-results → 03-components.css (siehe Kommentar dort oben) */

/* Toast → 03-components.css */

/* -- SCORES + PROGRESS ------------------------------------------- */
.prt-score-bar { height: 5px; border-radius: 3px; }
.score { height: 5px; border-radius: 3px; }
.score span { border-radius: 3px; }
.proj-progress-bar { height: 5px; border-radius: 3px; }

/* -- LOGIN ------------------------------------------------------- */
.login-card { border-radius: 18px; }
.login-header { border-radius: 18px 18px 0 0; }
.login-footer { border-radius: 0 0 18px 18px; }
.login-logo { border-radius: 10px; }
.login-btn { border-radius: 9px; font-weight: 700; letter-spacing: -.02em; }
.login-input { border-radius: 8px; padding: 10px 13px; font-size: 13.5px; border: 1.5px solid var(--z-200); }

/* -- DETAIL PAGES ----------------------------------------------- */
.detail-topbar { margin-bottom: 22px; }
.detail-title h1 { font-size: 19px; font-weight: 800; letter-spacing: -.04em; }


/* -- PAGE ENTRY ANIMATION --------------------------------------- */
@keyframes hosPageIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.content { animation: hosPageIn .2s ease; }

/* -- APPOINTMENTS ----------------------------------------------- */
.appt-day-header { background: var(--z-50); }
.appt-type-chip { border-radius: 999px; font-size: 11px; font-weight: 700; }
.appt-view-toggle { border-radius: 9px; }
.appt-view-btn { border-radius: 7px; }

/* -- DASHBOARD KPI ------------------------------------------------ */
.db-kpi-row  { display:grid; gap:14px; }
.db-kpi-card {
  background:#fff; border-radius:14px; border:1px solid rgba(0,0,0,.07);
  padding:18px 20px 16px; box-shadow:var(--sc);
  transition:box-shadow .2s,transform .15s;
  text-decoration:none; display:block; text-align:center;
}
.db-kpi-card:hover { box-shadow:var(--sc2); transform:translateY(-3px); text-decoration:none; }
.db-kpi-label {
  font-size:10px; font-weight:700; color:var(--muted);
  text-transform:uppercase; letter-spacing:.1em; margin-bottom:10px;
}
.db-kpi-value {
  font-family:'Geist Mono',monospace; font-size:32px; font-weight:800;
  letter-spacing:-.05em; color:var(--z-950); line-height:1; margin-bottom:7px;
}
.db-kpi-hint { font-size:10.5px; color:var(--muted); line-height:1.4; }
.chart-card  { border-radius:14px; border:1px solid rgba(0,0,0,.07); }

/* -- KANBAN (assignments) --------------------------------------- */
.kan-col { border-radius: 14px; }
.kan-card { border-radius: 10px; }
.kan-card:hover { border-color: rgba(0,0,0,.14); }

/* -- END OF DESIGN SYSTEM v4 ------------------------------------ */

/* -- OCARD TEXT OVERRIDE: light headers need dark text ---------- */
.ocard-status { color: var(--z-600); }
.ocard-id     { color: var(--muted); font-size: 11px; }


/* ═══════════════════════════════════════════════════
   GLOBAL UI SYSTEM IMPROVEMENTS
   ═══════════════════════════════════════════════════ */

/* ── SELECT / DROPDOWN ─────────────────────────────── */
select, select.form-inp {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 34px !important;
  cursor: pointer;
}
/* Focus → 03-components.css */

/* ── FORM LABELS ───────────────────────────────────── */
.form-label, .set-label {
  font-size: 12px; font-weight: 600; color: var(--z-700);
  display: block; margin-bottom: 5px; letter-spacing: -.01em;
}

/* ── FORM INPUTS — global refinement ──────────────── */
/* Visual base: applies to all inputs. No padding/width here — those only
   go on .form-inp / .form-grid inputs so search wrappers keep their own padding-left. */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="date"],
input[type="search"], select, textarea {
  border: 1px solid var(--z-200);
  border-radius: 8px;
  background: #fff;
  color: var(--z-950);
  font-family: inherit;
  font-size: 13px;
  transition: border-color .1s, box-shadow .1s;
}
/* Padding + width only where a full-width form input is expected */
.form-inp,
.form-grid input, .form-grid select, .form-grid textarea,
.set-grid input, .set-grid select, .set-grid textarea,
.modal-body input, .modal-body select, .modal-body textarea,
.hos-modal input, .hos-modal select, .hos-modal textarea {
  padding: 8px 11px;
  width: 100%;
}
.form-inp::placeholder, input::placeholder, textarea::placeholder { color: var(--z-400); }

/* ── CHECKBOX refinement ───────────────────────────── */
input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--accent);
  border-radius: 4px;
  cursor: pointer;
}

/* ── PENDING COMMISSION ─────────────────────────────── */
.prov-pending-section {
  border-left: 3px solid var(--warn);
  padding-left: 12px; padding-top: 2px; padding-bottom: 2px;
  margin-bottom: 12px;
}
.prov-pending-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: 2px 8px; border-radius: 4px;
  background: var(--warn-bg); color: #854d0e;
}

/* ── PRODUCT CARDS ─────────────────────────────────── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
@media(max-width:1100px) { .prod-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:640px)  { .prod-grid { grid-template-columns: 1fr; } }

.prod-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 14px;
  padding: 18px 20px 16px;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.12);
  text-decoration: none; color: inherit;
}
.prod-card:hover .prod-actions { opacity: 1; transform: translateY(0); }

.prod-actions {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .15s ease, transform .15s ease;
  display: flex; gap: 5px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--z-100);
}

.prod-margin-bar-track {
  height: 4px; background: var(--z-100); border-radius: 2px;
  overflow: hidden; margin: 10px 0 3px;
}
.prod-margin-bar-fill {
  height: 100%; border-radius: 2px; width: 0;
  animation: prodBarIn .7s .1s ease forwards;
}
@keyframes prodBarIn { to { width: var(--bar-w, 0%); } }

.prod-cat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 7px; border-radius: 5px;
}
.prod-cat-badge.service      { background: #ede9fe; color: #5b21b6; }
.prod-cat-badge.material     { background: #dbeafe; color: #1d4ed8; }
.prod-cat-badge.bundle       { background: #dcfce7; color: #15803d; }

.prod-filter-bar {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.prod-filter-pills {
  display: flex; gap: 2px; background: var(--z-100);
  border-radius: 9px; padding: 3px;
}
.prod-pill {
  padding: 5px 13px; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--z-500); border-radius: 7px; transition: all .1s; white-space: nowrap;
}
.prod-pill:hover { color: var(--z-800); background: rgba(0,0,0,.04); }
.prod-pill.active { background: #fff; color: var(--z-950); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.09); }

/* ── SETTINGS TABS ─────────────────────────────────── */
.set-tabs {
  display: flex; gap: 2px;
  background: var(--z-100); border-radius: 10px;
  padding: 3px; margin-bottom: 22px; width: fit-content;
}
.set-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 16px; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--z-500); border-radius: 8px; background: none;
  transition: all .12s; white-space: nowrap;
}
.set-tab:hover { color: var(--z-800); background: rgba(0,0,0,.04); }
.set-tab.active {
  background: #fff; color: var(--z-950); font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.set-tab i svg { width: 13px; height: 13px; }
.set-tab-pane { display: none; }
.set-tab-pane.active { display: block; }


/* card-section-head, age-chip, num-em → 99-legacy-bridge.css */

/* Tokens */
:root {
  --os-bg: #f6f8fb;
  --os-surface: rgba(255,255,255,.88);
  --os-border: rgba(15,23,42,.075);
  --os-text: #0f172a;
  --os-muted: #64748b;
  --os-faint: #94a3b8;
  --os-blue: #0b5cff;
  --os-blue-soft: rgba(11,92,255,.09);
  --os-sidebar-collapsed: 84px;
  --os-sidebar-expanded: 248px;
  --os-topbar-h: 72px;
  --os-ease: cubic-bezier(.22,1,.36,1);
}

/* App Shell */
.os-shell {
  min-height: 100vh;
  background: var(--os-bg);
  color: var(--os-text);
}
.os-main {
  min-height: 100vh;
  margin-left: var(--os-sidebar-collapsed);
  transition: margin-left .24s var(--os-ease);
}
.login-main { margin-left: 0; }
.os-content {
  width: 100%;
  max-width: none;
  padding: clamp(18px, 2.2vw, 34px);
}

/* Sidebar */
.os-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--os-sidebar-collapsed);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.9));
  border-right: 1px solid var(--os-border);
  box-shadow: 14px 0 44px rgba(15,23,42,.035);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: width .24s var(--os-ease), box-shadow .24s var(--os-ease);
}
.os-sidebar:hover,
.os-sidebar.is-expanded {
  width: var(--os-sidebar-expanded);
  box-shadow: 18px 0 60px rgba(15,23,42,.07);
}
.os-sidebar .sidebar-brand {
  height: 72px;
  padding: 0 22px;
  background: transparent;
  border-bottom: 0;
}
.os-sidebar .sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: #0f172a;
  box-shadow: 0 14px 34px rgba(15,23,42,.12);
}
.os-sidebar .sidebar-brand > div:last-child,
.os-sidebar .os-nav-label,
.os-sidebar .os-nav-text,
.os-sidebar .sidebar-user-info,
.os-sidebar .sidebar-logout {
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s var(--os-ease);
}
.os-sidebar:hover .sidebar-brand > div:last-child,
.os-sidebar:hover .os-nav-label,
.os-sidebar:hover .os-nav-text,
.os-sidebar:hover .sidebar-user-info,
.os-sidebar:hover .sidebar-logout,
.os-sidebar.is-expanded .sidebar-brand > div:last-child,
.os-sidebar.is-expanded .os-nav-label,
.os-sidebar.is-expanded .os-nav-text,
.os-sidebar.is-expanded .sidebar-user-info,
.os-sidebar.is-expanded .sidebar-logout {
  opacity: 1;
  pointer-events: auto;
}
.os-sidebar .sidebar-brand b {
  color: var(--os-text);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.04em;
}
.os-sidebar .sidebar-brand small {
  color: var(--os-muted);
  font-size: 11px;
  font-weight: 720;
}

/* Navigation */
.os-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 14px;
  scrollbar-width: none;
}
.os-nav::-webkit-scrollbar { display: none; }
.os-nav-group { margin-top: 18px; }
.os-nav-group:first-child { margin-top: 2px; }
.os-nav-label {
  display: block;
  padding: 0 22px;
  margin: 0 0 8px;
  color: var(--os-faint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.os-nav-item,
.os-sidebar:not(:hover) .os-nav-item,
.os-sidebar:hover .os-nav-item {
  position: relative;
  height: 46px;
  min-height: 46px;
  margin: 5px 14px;
  padding: 0 13px;
  border-radius: 16px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #475569;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
  transition: background .16s var(--os-ease), color .16s var(--os-ease), transform .16s var(--os-ease), border-color .16s var(--os-ease);
}
.os-sidebar.is-collapsed:not(:hover) .os-nav-item {
  width: 52px;
  padding: 0;
  margin: 5px auto;
  justify-content: center;
}
.os-nav-item:hover {
  background: rgba(11,92,255,.055);
  color: var(--os-blue);
  transform: translateX(2px);
}
.os-nav-item.active {
  background: linear-gradient(90deg, rgba(11,92,255,.13), rgba(11,92,255,.045));
  border-color: rgba(11,92,255,.08);
  color: var(--os-blue);
  font-weight: 880;
}
.os-nav-item.active::before {
  content: "";
  position: absolute;
  left: -7px;
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: var(--os-blue);
}
.os-nav-icon,
.os-sidebar:hover .os-nav-icon,
.os-sidebar:not(:hover) .os-nav-icon,
.os-nav-item.active .os-nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  box-shadow: none;
}
.os-nav-icon svg { width: 19px; height: 19px; }
.os-nav-text {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.os-nav-badge {
  margin-left: auto;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--os-blue-soft);
  color: var(--os-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}
.os-sidebar.is-collapsed:not(:hover) .os-nav-badge {
  position: absolute;
  right: 2px;
  top: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
}
.os-sidebar .sidebar-footer {
  min-height: 74px;
  padding: 14px 16px;
  border-top: 1px solid var(--os-border);
  background: rgba(255,255,255,.62);
}
.os-sidebar.is-collapsed:not(:hover) .sidebar-footer {
  justify-content: center;
  padding: 12px 0;
}
.os-sidebar .sidebar-avatar,
.os-sidebar .topbar-user-avatar {
  background: #0f172a;
}

/* Collapsed tooltip */
.os-sidebar.is-collapsed:not(:hover) .os-nav-item::after {
  content: attr(title);
  position: fixed;
  left: 76px;
  z-index: 500;
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid var(--os-border);
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 18px 42px rgba(15,23,42,.18);
  font-size: 12px;
  font-weight: 760;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity .14s var(--os-ease), transform .14s var(--os-ease);
}
.os-sidebar.is-collapsed:not(:hover) .os-nav-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Topbar */
.os-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--os-topbar-h);
  height: auto;
  padding: 0 clamp(16px, 2vw, 30px);
  background: rgba(246,248,251,.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(15,23,42,.065);
  display: grid;
  grid-template-columns: minmax(180px,260px) minmax(320px,560px) auto;
  align-items: center;
  gap: 22px;
  box-shadow: none;
}
.topbar-title-stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.topbar-crumb { color: var(--os-muted); font-size: 11px; font-weight: 760; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-page { color: var(--os-text); font-size: 18px; font-weight: 880; letter-spacing: -.04em; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }

/* Buttons */
.os-btn {
  position: relative;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--os-border);
  background: #fff;
  color: var(--os-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 820;
  box-shadow: 0 10px 28px rgba(15,23,42,.04);
  cursor: pointer;
  transition: transform .16s var(--os-ease), box-shadow .16s var(--os-ease), background .16s var(--os-ease);
}
.os-btn:hover { color: var(--os-text); text-decoration: none; transform: translateY(-1px); box-shadow: 0 16px 38px rgba(15,23,42,.07); }
.os-btn svg { width: 15px; height: 15px; }
.os-btn-primary { background: var(--os-blue); border-color: var(--os-blue); color: #fff; box-shadow: 0 16px 38px rgba(11,92,255,.22); }
.os-btn-primary:hover { color: #fff; box-shadow: 0 20px 46px rgba(11,92,255,.28); }
.os-btn-soft { background: #fff; }
.os-btn-ghost { background: transparent; box-shadow: none; }
.os-btn-icon { width: 38px; padding: 0; }
.topbar-user-chip { height: 38px; padding: 4px 12px 4px 4px; border: 1px solid var(--os-border); background: rgba(255,255,255,.76); box-shadow: 0 10px 28px rgba(15,23,42,.035); }
.topbar-user-avatar { width: 30px; height: 30px; background: #0f172a; }

/* Responsive */
@media (max-width: 850px) {
  .os-main { margin-left: 0; }
  .os-sidebar { transform: translateX(-105%); width: min(320px, calc(100vw - 24px)); }
  .os-sidebar.mob-open { transform: translateX(0); }
  .os-sidebar .sidebar-brand > div:last-child,
  .os-sidebar .os-nav-label,
  .os-sidebar .os-nav-text,
  .os-sidebar .sidebar-user-info,
  .os-sidebar .sidebar-logout { opacity: 1; pointer-events: auto; }
  .os-topbar { min-height: 64px; grid-template-columns: 1fr auto; padding: 0 14px; }
  .os-topbar .topbar-center { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-user-chip,
  .os-btn-icon { display: none; }
}

/* Animations */
.os-content { animation: osContentIn .34s var(--os-ease) both; }
@keyframes osContentIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Shell correction v2 — collapsed sauber, expanded ruhig */
:root {
  --os-sidebar-collapsed: 78px;
  --os-sidebar-expanded: 248px;
}
.os-main {
  margin-left: var(--os-sidebar-collapsed);
}
.os-sidebar {
  width: var(--os-sidebar-collapsed);
  background: rgba(255,255,255,.92);
  box-shadow: 8px 0 30px rgba(15,23,42,.025);
}
.os-sidebar:hover,
.os-sidebar.is-expanded {
  width: var(--os-sidebar-expanded);
  box-shadow: 14px 0 48px rgba(15,23,42,.055);
}
.os-sidebar .sidebar-brand {
  height: 68px;
  padding: 0 20px;
}
.os-sidebar.is-collapsed:not(:hover) .sidebar-brand {
  justify-content: center;
  padding: 0;
}
.os-sidebar .sidebar-logo {
  width: 34px;
  height: 34px;
  border-radius: 13px;
}
.os-nav {
  padding-top: 6px;
}
.os-nav-group {
  margin-top: 14px;
}
.os-nav-label {
  margin-bottom: 6px;
}
.os-nav-item,
.os-sidebar:not(:hover) .os-nav-item,
.os-sidebar:hover .os-nav-item {
  height: 42px;
  min-height: 42px;
  margin: 3px 12px;
  border-radius: 14px;
  font-weight: 720;
}
.os-sidebar.is-collapsed:not(:hover) .os-nav-item {
  width: 46px;
  height: 42px;
  min-height: 42px;
  margin: 4px auto;
  padding: 0;
}
.os-sidebar.is-collapsed:not(:hover) .os-nav-item.active {
  background: var(--os-blue-soft);
  border-color: rgba(11,92,255,.10);
}
.os-sidebar.is-collapsed:not(:hover) .os-nav-item.active::before {
  left: -10px;
  height: 22px;
}
.os-nav-item:hover {
  transform: none;
}
.os-nav-icon,
.os-sidebar:hover .os-nav-icon,
.os-sidebar:not(:hover) .os-nav-icon,
.os-nav-item.active .os-nav-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}
.os-nav-icon svg {
  width: 18px;
  height: 18px;
}
.os-sidebar.is-collapsed:not(:hover) .os-nav-item::after {
  display: none;
}
.os-sidebar .sidebar-footer {
  min-height: 68px;
  padding: 12px 14px;
}
.os-sidebar.is-collapsed:not(:hover) .sidebar-footer {
  padding: 10px 0;
}
.os-topbar {
  min-height: 68px;
  background: rgba(246,248,251,.82);
  grid-template-columns: minmax(170px,250px) minmax(280px,520px) auto;
}
.topbar-page {
  font-size: 17px;
}
.os-btn {
  height: 36px;
  padding: 0 13px;
  box-shadow: none;
}
.os-btn:hover {
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.os-btn-primary {
  box-shadow: 0 14px 34px rgba(11,92,255,.20);
}
.topbar-user-chip {
  height: 36px;
  box-shadow: none;
}
.topbar-user-avatar {
  width: 28px;
  height: 28px;
}
@media (max-width: 850px) {
  .os-main { margin-left: 0; }
}

/* NAV REPAIR v3 — final gegen alte !important-Shell-Regeln */
@media (min-width: 851px) {
  body.os-shell .os-sidebar,
  body.os-shell .os-sidebar.is-collapsed,
  body.os-shell .sidebar.os-sidebar {
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    overflow: hidden !important;
    background: rgba(255,255,255,.94) !important;
    border-right: 1px solid rgba(15,23,42,.075) !important;
    box-shadow: 8px 0 30px rgba(15,23,42,.025) !important;
    transition: width .22s cubic-bezier(.22,1,.36,1), max-width .22s cubic-bezier(.22,1,.36,1), box-shadow .22s cubic-bezier(.22,1,.36,1) !important;
  }

  body.os-shell .os-sidebar:hover,
  body.os-shell .os-sidebar.is-expanded,
  body.os-shell .sidebar.os-sidebar:hover {
    width: 248px !important;
    min-width: 248px !important;
    max-width: 248px !important;
    box-shadow: 16px 0 52px rgba(15,23,42,.065) !important;
  }

  body.os-shell .os-main,
  body.os-shell .main.os-main {
    margin-left: 78px !important;
  }

  body.os-shell .os-content,
  body.os-shell .content.os-content {
    padding: clamp(18px, 2vw, 30px) !important;
  }

  body.os-shell .os-sidebar .sidebar-brand {
    height: 68px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 12px !important;
    background: transparent !important;
    border-bottom: 0 !important;
  }

  body.os-shell .os-sidebar:hover .sidebar-brand,
  body.os-shell .os-sidebar.is-expanded .sidebar-brand {
    justify-content: flex-start !important;
    padding: 0 20px !important;
  }

  body.os-shell .os-sidebar .sidebar-brand > div:last-child,
  body.os-shell .os-sidebar .os-nav-label,
  body.os-shell .os-sidebar .os-nav-text,
  body.os-shell .os-sidebar .sidebar-user-info,
  body.os-shell .os-sidebar .sidebar-logout {
    opacity: 0 !important;
    width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  body.os-shell .os-sidebar:hover .sidebar-brand > div:last-child,
  body.os-shell .os-sidebar:hover .os-nav-label,
  body.os-shell .os-sidebar:hover .os-nav-text,
  body.os-shell .os-sidebar:hover .sidebar-user-info,
  body.os-shell .os-sidebar:hover .sidebar-logout,
  body.os-shell .os-sidebar.is-expanded .sidebar-brand > div:last-child,
  body.os-shell .os-sidebar.is-expanded .os-nav-label,
  body.os-shell .os-sidebar.is-expanded .os-nav-text,
  body.os-shell .os-sidebar.is-expanded .sidebar-user-info,
  body.os-shell .os-sidebar.is-expanded .sidebar-logout {
    opacity: 1 !important;
    width: auto !important;
    max-width: 170px !important;
    overflow: hidden !important;
    pointer-events: auto !important;
  }

  body.os-shell .os-sidebar .sidebar-logo {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 13px !important;
    background: #0f172a !important;
    box-shadow: none !important;
  }

  body.os-shell .os-nav {
    padding: 8px 0 12px !important;
  }

  body.os-shell .os-nav-group,
  body.os-shell .nav-group.os-nav-group {
    margin: 0 0 12px !important;
  }

  body.os-shell .os-nav-label,
  body.os-shell .sidebar:hover .os-nav-label,
  body.os-shell .nav-group-label.os-nav-label {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 20px !important;
    margin: 10px 0 6px !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: .13em !important;
    text-transform: uppercase !important;
  }

  body.os-shell .os-nav-label::before,
  body.os-shell .os-nav-label::after,
  body.os-shell .nav-group-label::before,
  body.os-shell .nav-group-label::after {
    display: none !important;
    content: none !important;
  }

  body.os-shell .os-nav-group .nav-group-items,
  body.os-shell .sidebar:hover .os-nav-group .nav-group-items,
  body.os-shell .sidebar:hover .nav-group-items,
  body.os-shell .nav-group-items {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.os-shell .os-nav-item,
  body.os-shell .nav-item.os-nav-item,
  body.os-shell .sidebar:not(:hover) .os-nav-item,
  body.os-shell .sidebar:hover .os-nav-item {
    position: relative !important;
    width: 46px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 4px auto !important;
    padding: 0 !important;
    border-radius: 14px !important;
    border: 1px solid transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    color: #64748b !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: none !important;
  }

  body.os-shell .os-sidebar:hover .os-nav-item,
  body.os-shell .os-sidebar.is-expanded .os-nav-item,
  body.os-shell .sidebar.os-sidebar:hover .os-nav-item {
    width: auto !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin: 3px 12px !important;
    padding: 0 12px !important;
  }

  body.os-shell .os-nav-item:hover {
    color: #0b5cff !important;
    background: rgba(11,92,255,.055) !important;
  }

  body.os-shell .os-nav-item.active,
  body.os-shell .nav-item.os-nav-item.active,
  body.os-shell .sidebar:not(:hover) .os-nav-item.active {
    color: #0b5cff !important;
    background: rgba(11,92,255,.10) !important;
    border-color: rgba(11,92,255,.10) !important;
    box-shadow: none !important;
  }

  body.os-shell .os-nav-item.active::before {
    content: "" !important;
    position: absolute !important;
    left: -8px !important;
    width: 4px !important;
    height: 22px !important;
    border-radius: 999px !important;
    background: #0b5cff !important;
  }

  body.os-shell .os-nav-icon,
  body.os-shell .nav-icon.os-nav-icon,
  body.os-shell .sidebar:hover .os-nav-icon,
  body.os-shell .sidebar:not(:hover) .os-nav-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex: 0 0 20px !important;
    color: currentColor !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.os-shell .os-nav-icon svg,
  body.os-shell .nav-icon.os-nav-icon svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2 !important;
  }

  body.os-shell .os-nav-text,
  body.os-shell .nav-label.os-nav-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    color: currentColor !important;
    font-size: 13px !important;
    font-weight: 760 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  body.os-shell .os-nav-badge,
  body.os-shell .nav-cb-badge.os-nav-badge {
    margin-left: auto !important;
    min-width: 22px !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: rgba(11,92,255,.10) !important;
    color: #0b5cff !important;
    font-size: 10.5px !important;
    font-weight: 850 !important;
  }

  body.os-shell .os-sidebar:not(:hover) .os-nav-badge {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    font-size: 9px !important;
  }

  body.os-shell .os-sidebar .sidebar-footer {
    min-height: 66px !important;
    padding: 10px 0 !important;
    justify-content: center !important;
    background: transparent !important;
    border-top: 1px solid rgba(15,23,42,.075) !important;
  }

  body.os-shell .os-sidebar:hover .sidebar-footer,
  body.os-shell .os-sidebar.is-expanded .sidebar-footer {
    padding: 12px 14px !important;
    justify-content: flex-start !important;
  }

  body.os-shell .os-sidebar.is-collapsed:not(:hover) .os-nav-item::after {
    display: none !important;
  }

  /* Grid-Layout kommt ausschliesslich aus 02-shell.css — hier keine
     grid-template-columns mehr, sonst ueberlagern Anruf/Actions die Suche. */
  body.os-shell .os-topbar,
  body.os-shell .topbar.os-topbar {
    min-height: 66px !important;
    height: 66px !important;
    padding: 0 24px !important;
    background: rgba(246,248,251,.86) !important;
    border-bottom: 1px solid rgba(15,23,42,.065) !important;
  }
}

@media (max-width: 850px) {
  body.os-shell .os-main,
  body.os-shell .main.os-main { margin-left: 0 !important; }
  body.os-shell .os-sidebar { width: min(320px, calc(100vw - 24px)) !important; max-width: none !important; }
}

/* Anrufe: Name/Resolve-Menü bleibt auch am Listenende im Viewport */
@media (min-width: 768px) {
  .anr-resolve-menu {
    position: fixed !important;
    top: var(--anr-resolve-top, 92px) !important;
    left: var(--anr-resolve-left, auto) !important;
    right: auto !important;
    z-index: 6300 !important;
    min-width: 190px !important;
    max-width: min(320px, calc(100vw - 32px)) !important;
    max-height: min(420px, calc(100vh - 32px)) !important;
    overflow: auto !important;
    transform-origin: top right;
  }
  .anr-resolve-wrap.is-above .anr-resolve-menu,
  .anrp-resolve-wrap.is-above .anr-resolve-menu {
    transform-origin: bottom right;
  }
}

/* Anrufe: Drawer darf nicht als ganze Seite scrollen */
.anr-drawer {
  position: fixed !important;
  inset: 0 0 0 auto !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  width: min(460px, 100vw) !important;
  overflow: hidden !important;
  z-index: 6400 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
}
.anr-drawer-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 6390 !important;
}
.anr-drawer-lock {
  overflow: hidden !important;
}
.anr-drawer-head {
  position: relative !important;
  top: auto !important;
  min-height: 58px;
  flex-shrink: 0;
  background: #fff !important;
}
.anr-drawer-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scroll-behavior: auto !important;
  padding: 16px 18px 22px !important;
}

/* Shell Motion Fix — ruhige collapsed Navigation, kein Content-Sprung */
@media (min-width: 851px) {
  body.os-shell {
    --os-sidebar-collapsed: 82px;
    --os-sidebar-expanded: 252px;
    --os-shell-ease: cubic-bezier(.22, 1, .36, 1);
  }

  body.os-shell .sidebar.os-sidebar {
    width: var(--os-sidebar-collapsed) !important;
    max-width: var(--os-sidebar-expanded) !important;
    transform: translateZ(0);
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.9)) !important;
    border-right: 1px solid rgba(15, 23, 42, .075) !important;
    box-shadow: 10px 0 34px rgba(15, 23, 42, .025) !important;
    transition:
      width .34s var(--os-shell-ease),
      box-shadow .34s var(--os-shell-ease),
      background .34s var(--os-shell-ease) !important;
    will-change: width;
  }

  body.os-shell .sidebar.os-sidebar:hover,
  body.os-shell .sidebar.os-sidebar.is-expanded {
    width: var(--os-sidebar-expanded) !important;
    box-shadow: 18px 0 58px rgba(15, 23, 42, .08) !important;
  }

  body.os-shell .main.os-main {
    margin-left: var(--os-sidebar-collapsed) !important;
    transition: none !important;
  }

  body.os-shell .content.os-content {
    transition: padding .22s ease !important;
  }

  body.os-shell .sidebar.os-sidebar .sidebar-brand {
    height: 72px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 23px !important;
    border-bottom: 0 !important;
    background: transparent !important;
    transition: padding .34s var(--os-shell-ease) !important;
  }

  body.os-shell .sidebar.os-sidebar:hover .sidebar-brand,
  body.os-shell .sidebar.os-sidebar.is-expanded .sidebar-brand {
    padding: 0 20px !important;
  }

  body.os-shell .sidebar.os-sidebar .sidebar-logo {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    border-radius: 14px !important;
    background: #0f172a !important;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .16) !important;
  }

  body.os-shell .sidebar.os-sidebar .sidebar-brand-text,
  body.os-shell .sidebar.os-sidebar .os-nav-label,
  body.os-shell .sidebar.os-sidebar .os-nav-text,
  body.os-shell .sidebar.os-sidebar .sidebar-user-info,
  body.os-shell .sidebar.os-sidebar .sidebar-logout {
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-8px) scale(.985) !important;
    transition:
      opacity .18s ease,
      transform .28s var(--os-shell-ease),
      visibility 0s linear .22s !important;
    pointer-events: none !important;
    white-space: nowrap !important;
  }

  body.os-shell .sidebar.os-sidebar:hover .sidebar-brand-text,
  body.os-shell .sidebar.os-sidebar:hover .os-nav-label,
  body.os-shell .sidebar.os-sidebar:hover .os-nav-text,
  body.os-shell .sidebar.os-sidebar:hover .sidebar-user-info,
  body.os-shell .sidebar.os-sidebar:hover .sidebar-logout,
  body.os-shell .sidebar.os-sidebar.is-expanded .sidebar-brand-text,
  body.os-shell .sidebar.os-sidebar.is-expanded .os-nav-label,
  body.os-shell .sidebar.os-sidebar.is-expanded .os-nav-text,
  body.os-shell .sidebar.os-sidebar.is-expanded .sidebar-user-info,
  body.os-shell .sidebar.os-sidebar.is-expanded .sidebar-logout {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) scale(1) !important;
    transition:
      opacity .22s ease .08s,
      transform .34s var(--os-shell-ease) .04s,
      visibility 0s !important;
    pointer-events: auto !important;
  }

  body.os-shell .sidebar.os-sidebar .sidebar-brand b {
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    letter-spacing: -.045em !important;
  }

  body.os-shell .sidebar.os-sidebar .sidebar-brand small {
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 720 !important;
  }

  body.os-shell .sidebar.os-sidebar .sidebar-nav.os-nav {
    padding: 8px 10px 16px !important;
  }

  body.os-shell .sidebar.os-sidebar .os-nav-group {
    margin: 16px 0 0 !important;
  }

  body.os-shell .sidebar.os-sidebar .os-nav-group:first-child {
    margin-top: 4px !important;
  }

  body.os-shell .sidebar.os-sidebar .os-nav-label {
    height: 22px !important;
    max-height: 22px !important;
    margin: 0 0 6px !important;
    padding: 0 11px !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .13em !important;
    text-transform: uppercase !important;
  }

  body.os-shell .sidebar.os-sidebar .os-nav-label::before,
  body.os-shell .sidebar.os-sidebar .os-nav-label::after {
    display: none !important;
    content: none !important;
  }

  body.os-shell .sidebar.os-sidebar .nav-group-items,
  body.os-shell .sidebar.os-sidebar:hover .nav-group-items,
  body.os-shell .sidebar.os-sidebar .nav-group.open .nav-group-items {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    transition: none !important;
  }

  body.os-shell .sidebar.os-sidebar .os-nav-item {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 48px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 5px auto !important;
    padding: 0 13px !important;
    border: 1px solid transparent !important;
    border-radius: 17px !important;
    color: #64748b !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition:
      width .34s var(--os-shell-ease),
      margin .34s var(--os-shell-ease),
      padding .34s var(--os-shell-ease),
      background .18s ease,
      color .18s ease,
      transform .18s ease,
      border-color .18s ease,
      box-shadow .18s ease !important;
    will-change: width, transform;
  }

  body.os-shell .sidebar.os-sidebar:hover .os-nav-item,
  body.os-shell .sidebar.os-sidebar.is-expanded .os-nav-item {
    width: 100% !important;
    margin: 5px 0 !important;
    padding: 0 13px !important;
  }

  body.os-shell .sidebar.os-sidebar .os-nav-item:hover {
    color: #0b5cff !important;
    background: rgba(11, 92, 255, .065) !important;
    transform: translateX(2px) !important;
  }

  body.os-shell .sidebar.os-sidebar .os-nav-item.active {
    color: #0b5cff !important;
    background: linear-gradient(90deg, rgba(11,92,255,.14), rgba(11,92,255,.045)) !important;
    border-color: rgba(11, 92, 255, .09) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.44) !important;
  }

  body.os-shell .sidebar.os-sidebar .os-nav-item.active::before {
    content: "" !important;
    position: absolute !important;
    left: -7px !important;
    top: 50% !important;
    width: 4px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: #0b5cff !important;
    transform: translateY(-50%) !important;
  }

  body.os-shell .sidebar.os-sidebar .os-nav-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex: 0 0 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: currentColor !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.os-shell .sidebar.os-sidebar .os-nav-icon svg {
    width: 19px !important;
    height: 19px !important;
    stroke-width: 2 !important;
  }

  body.os-shell .sidebar.os-sidebar .os-nav-text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    color: currentColor !important;
    font-size: 13px !important;
    font-weight: 780 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.os-shell .sidebar.os-sidebar .sidebar-footer {
    min-height: 74px !important;
    padding: 12px 0 !important;
    border-top: 1px solid rgba(15, 23, 42, .07) !important;
    background: rgba(255, 255, 255, .54) !important;
    justify-content: center !important;
    transition: padding .34s var(--os-shell-ease), justify-content .34s var(--os-shell-ease) !important;
  }

  body.os-shell .sidebar.os-sidebar:hover .sidebar-footer,
  body.os-shell .sidebar.os-sidebar.is-expanded .sidebar-footer {
    padding: 13px 14px !important;
    justify-content: flex-start !important;
  }

  body.os-shell .sidebar.os-sidebar .sidebar-avatar {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    background: #0f172a !important;
    color: #fff !important;
  }
}

@media (max-width: 850px) {
  body.os-shell .sidebar.os-sidebar {
    width: min(320px, calc(100vw - 24px)) !important;
    transform: translateX(-105%);
    transition: transform .34s cubic-bezier(.22, 1, .36, 1) !important;
  }

  body.os-shell .sidebar.os-sidebar.mob-open {
    transform: translateX(0);
  }

  body.os-shell .sidebar.os-sidebar .sidebar-brand-text,
  body.os-shell .sidebar.os-sidebar .os-nav-label,
  body.os-shell .sidebar.os-sidebar .os-nav-text,
  body.os-shell .sidebar.os-sidebar .sidebar-user-info,
  body.os-shell .sidebar.os-sidebar .sidebar-logout {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: block !important;
  }
}
