/* ═══════════════════════════════════════════════════════════════
   TOURKACHELN – v5.0 Premium
   Tiefe, Glow-Statussignal, glassmorphistisch für app-shell.
   ═══════════════════════════════════════════════════════════════ */

/* ── Basis-Chip (Light) ── */
.ride-chip-v2 {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(80, 100, 140, .14);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(16, 42, 67, .06), 0 1px 0 rgba(255,255,255,.8) inset;
  transition: border-color .15s, box-shadow .15s;
}
.ride-chip-v2:not(.ride-chip-v2--locked):not(.ride-chip-v2--done):hover {
  border-color: rgba(76, 139, 245, .35);
  box-shadow: 0 3px 12px rgba(16, 42, 67, .10), 0 1px 0 rgba(255,255,255,.8) inset;
}

/* ── Statussignal: linker Rand ── */
.ride-chip-v2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
}
.ride-chip-v2--ok::before    { background: #16a34a; }
.ride-chip-v2--tight::before { background: #ca8a04; }
.ride-chip-v2--late::before  { background: #dc2626; }
.ride-chip-v2--locked::before{ background: #6366f1; }
.ride-chip-v2--held::before  { background: #0891b2; }
.ride-chip-v2--done::before  { background: #94a3b8; opacity: .4; }
.ride-chip-v2--done          { opacity: .55; background: #f8f9fb; }

/* ══════════════════════════
   ZONE A – Kopf
   ══════════════════════════ */
.chip-v2-head {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px 10px 16px;
}

/* Drag-Handle */
.chip-v2-grip {
  position: absolute;
  top: 10px;
  left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #c8d8e8;
  font-size: 12px;
  letter-spacing: -1.2px;
  cursor: grab;
  user-select: none;
  line-height: 1;
  border-radius: 8px;
  transition: color .1s, background .12s ease;
  z-index: 1;
}
.chip-v2-grip:hover  { color: #64748b; background: rgba(255,255,255,.05); }
.chip-v2-grip:active { cursor: grabbing; }
.ride-chip-v2--locked .chip-v2-grip,
.ride-chip-v2--held   .chip-v2-grip,
.ride-chip-v2--done   .chip-v2-grip { opacity: 0; pointer-events: none; }

.chip-v2-head {
  cursor: grab;
}
.chip-v2-head button,
.chip-v2-head a,
.chip-v2-head input,
.chip-v2-head select,
.chip-v2-head textarea,
.chip-v2-head summary,
.chip-v2-head details,
.chip-v2-head label {
  cursor: auto;
}

/* Zeit-Block */
.chip-v2-time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.chip-v2-time-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 4px;
  border-radius: 10px;
  font-size: .90rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  background: #f1f5f9;
  color: #334e68;
  transition: background .15s, color .15s;
}
.ride-chip-v2--ok    .chip-v2-time-pill { background: #dcfce7; color: #166534; }
.ride-chip-v2--tight .chip-v2-time-pill { background: #fef9c3; color: #854d0e; }
.ride-chip-v2--late  .chip-v2-time-pill { background: #fee2e2; color: #991b1b; }
.ride-chip-v2--held  .chip-v2-time-pill { background: #cffafe; color: #0e7490; }
.ride-chip-v2--done  .chip-v2-time-pill { background: #f1f5f9; color: #94a3b8; }

.chip-v2-time-label {
  font-size: .57rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
  line-height: 1;
}
.chip-v2-time-eta {
  font-size: .64rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.25;
}
.chip-v2-time-eta--tight { color: #b45309; }
.chip-v2-time-eta--late  { color: #b91c1c; }
.chip-v2-time-eta--held  { color: #0e7490; }

/* Patienteninfo */
.chip-v2-right-col { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chip-v2-name-row  { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.chip-v2-patient {
  font-size: .88rem;
  font-weight: 700;
  color: #0f2d47;
  line-height: 1.2;
  letter-spacing: .01em;
  word-break: break-word;
  flex: 1 1 auto;
  min-width: 0;
}
.chip-v2-transport {
  font-size: .60rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.chip-v2-transport--sitzend    { background: #e0f2fe; color: #0369a1; }
.chip-v2-transport--rollstuhl  { background: #ede9fe; color: #6d28d9; }
.chip-v2-transport--tragestuhl { background: #fce7f3; color: #9d174d; }
.chip-v2-transport--liegend    { background: #fce7f3; color: #9d174d; }
.chip-v2-lockicon { font-size: .72rem; opacity: .5; flex-shrink: 0; }

.chip-v2-subline {
  font-size: .68rem;
  color: #94a3b8;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.chip-v2-subline--ok    { color: #15803d; }
.chip-v2-subline--tight { color: #b45309; }
.chip-v2-subline--late  { color: #b91c1c; }
.chip-v2-subline--held  { color: #0e7490; }

/* Driver-Badge */
/* ── Fahrer-Statusstreifen: volle Breite, prominent ── */
.chip-v2-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(255,255,255,.06);
  border-radius: 12px 12px 0 0;
  overflow: visible;
}
body.app-shell .chip-v2-status-bar {
  border-radius: 16px 16px 0 0;
}
.chip-v2-status-bar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chip-v2-status-bar__label {
  white-space: nowrap;
  overflow: visible;
  min-width: 0;
}
/* driver-state-badge innerhalb des Streifens: app.css-Overrides aufheben */
.chip-v2-status-bar .driver-state-badge,
body.app-shell .chip-v2-status-bar .driver-state-badge {
  background: none !important;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-left: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  /* Kritisch: max-width und overflow aus app.css aufheben */
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap;
}

/* Statusfarben je Fahrerstatus — Light */
.chip-v2-status-bar.driver-bar--confirmed {
  background: #eff6ff;
  border-bottom-color: #bfdbfe;
  color: #1e40af;
}
.chip-v2-status-bar.driver-bar--confirmed .chip-v2-status-bar__dot {
  background: #3b82f6;
  box-shadow: 0 0 5px rgba(59,130,246,.6);
}
.chip-v2-status-bar.driver-bar--en_route {
  background: #f0fdf4;
  border-bottom-color: #bbf7d0;
  color: #15803d;
}
.chip-v2-status-bar.driver-bar--en_route .chip-v2-status-bar__dot {
  background: #22c55e;
  box-shadow: 0 0 5px rgba(34,197,94,.6);
}
.chip-v2-status-bar.driver-bar--in_progress {
  background: #ecfdf5;
  border-bottom-color: #6ee7b7;
  color: #065f46;
}
.chip-v2-status-bar.driver-bar--in_progress .chip-v2-status-bar__dot {
  background: #10b981;
  box-shadow: 0 0 5px rgba(16,185,129,.7);
}

/* App-Shell Dark */
body.app-shell .chip-v2-status-bar.driver-bar--confirmed {
  background: rgba(59,130,246,.14);
  border-bottom-color: rgba(59,130,246,.25);
  color: #93c5fd;
}
body.app-shell .chip-v2-status-bar.driver-bar--confirmed .chip-v2-status-bar__dot {
  background: #60a5fa;
  box-shadow: 0 0 7px rgba(96,165,250,.8);
}
body.app-shell .chip-v2-status-bar.driver-bar--en_route {
  background: rgba(34,197,94,.12);
  border-bottom-color: rgba(34,197,94,.25);
  color: #86efac;
}
body.app-shell .chip-v2-status-bar.driver-bar--en_route .chip-v2-status-bar__dot {
  background: #4ade80;
  box-shadow: 0 0 7px rgba(74,222,128,.8);
}
body.app-shell .chip-v2-status-bar.driver-bar--in_progress {
  background: rgba(16,185,129,.14);
  border-bottom-color: rgba(16,185,129,.28);
  color: #6ee7b7;
}
body.app-shell .chip-v2-status-bar.driver-bar--in_progress .chip-v2-status-bar__dot {
  background: #34d399;
  box-shadow: 0 0 7px rgba(52,211,153,.85);
}

/* Alten driver-state-badge Stil (außerhalb Streifen, z.B. Summary) */
.driver-state-badge {
  display: inline-flex;
  align-items: center;
  font-size: .63rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #314c9f;
  white-space: nowrap;
  letter-spacing: .01em;
}
.driver-state-badge--confirmed    { background: #eff6ff; color: #1d4ed8; }
.driver-state-badge--en_route,
.driver-state-badge--in_progress  { background: #f0fdf4; color: #15803d; }
.driver-state-badge--completed    { background: #f1f5f9; color: #64748b; }

/* ── Badges oben ── */
.chip-v2-badges {
  padding: 0 14px 4px 16px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.chip-v2-badge           { font-size: .65rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.chip-v2-badge--followup { background: #f5f3ff; color: #7c3aed; }
.chip-v2-badge--kind     { background: #eff6ff; color: #1d4ed8; }
.chip-v2-badge--dialyse  { background: #faf5ff; color: #7c3aed; }

/* ══════════════════════════
   ZONE B – Adressen
   ══════════════════════════ */
.chip-v2-body { padding: 0 14px 0 16px; display: grid; gap: 0; }
.chip-v2-addr {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0 8px;
  padding: 6px 0;
  border-top: 1px solid rgba(39, 76, 119, .07);
}
.chip-v2-addr:first-child { border-top: 1px solid rgba(39, 76, 119, .07); }
.chip-v2-addr-lbl {
  font-size: .56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
  padding-top: 2px;
  line-height: 1;
}
.chip-v2-addr-content   { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chip-v2-addr-name   { font-size: .76rem; font-weight: 700; color: #334e68; line-height: 1.25; word-break: break-word; }
.chip-v2-addr-street { font-size: .73rem; color: #64748b; line-height: 1.3; word-break: break-word; }

/* ══════════════════════════
   Aufklappbare Fahrdetails
   ══════════════════════════ */
.chip-v2-detail {
  margin: 8px 14px 0 16px;
  border-radius: 9px;
  border: 1px solid rgba(39, 76, 119, .10);
  background: rgba(248, 250, 252, .7);
  overflow: hidden;
}
.chip-v2-detail--late  { border-color: rgba(220,38,38,.15);  background: rgba(254,242,242,.6); }
.chip-v2-detail--tight { border-color: rgba(202,138,4,.15);  background: rgba(254,252,232,.6); }
.chip-v2-detail--ok    { border-color: rgba(22,163,74,.12);  background: rgba(240,253,244,.6); }
.chip-v2-detail-summary {
  cursor: pointer;
  list-style: none;
  padding: 6px 10px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #94a3b8;
  transition: color .12s;
}
.chip-v2-detail-summary::-webkit-details-marker { display: none; }
.chip-v2-detail-summary:hover { color: #475569; }
.chip-v2-detail-body   { padding: 0 10px 8px; display: grid; gap: 1px; }
.chip-v2-detail-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(39, 76, 119, .05);
  font-size: .68rem;
}
.chip-v2-detail-line:last-child { border-bottom: none; }
.chip-v2-detail-lbl { color: #94a3b8; flex-shrink: 0; }
.chip-v2-detail-val { color: #334e68; font-weight: 700; text-align: right; }

/* ══════════════════════════
   ZONE C – Aktionen
   ══════════════════════════ */
.chip-v2-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px 12px 16px;
  border-top: 1px solid rgba(39, 76, 119, .07);
  margin-top: 8px;
}
.chip-v2-btn-group { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }
.chip-v2-btn {
  font-size: .68rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(80, 100, 140, .18);
  background: #f4f7fb;
  color: #334e68;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .01em;
  line-height: 1.4;
  transition: border-color .1s, background .1s, color .1s;
}
.chip-v2-btn:hover          { background: #eef4ff; border-color: rgba(76,139,245,.4); color: #1d4ed8; }
.chip-v2-btn--danger        { background: #fef2f2; border-color: rgba(220,38,38,.22); color: #b91c1c; }
.chip-v2-btn--danger:hover  { background: #fee2e2; border-color: rgba(220,38,38,.45); }
.chip-v2-btn--locked        { background: #eef2ff; border-color: rgba(99,102,241,.28); color: #4338ca; }
.chip-v2-btn--release       { background: #ecfeff; border-color: rgba(8,145,178,.28); color: #0e7490; }
.chip-v2-btn:disabled       { opacity: .4; cursor: default; pointer-events: none; }

/* Kind-Footer: volle Breite, angedockt am unteren Rand der Kachel */
.chip-v2-kind-footer {
  margin-top: 4px;
  padding: 6px 16px;
  text-align: center;
  border-top: 1px solid rgba(139, 92, 246, .2);
  border-radius: 0 0 12px 12px;
  background: rgba(139, 92, 246, .08);
}
.chip-v2-kind-footer .ride-kind-line {
  padding: 0;
  justify-content: center;
}
/* Explizit alle app.css-Overrides für transport-chip neutralisieren */
.chip-v2-kind-footer .transport-chip,
.chip-v2-kind-footer .transport-chip--kind,
.chip-v2-kind-footer .transport-chip--kind-dialyse,
.chip-v2-kind-footer .transport-chip--kind-ambulant,
.chip-v2-kind-footer .ride-kind-line .transport-chip--kind,
.chip-v2-kind-footer .ride-kind-line .transport-chip--kind-dialyse,
.chip-v2-kind-footer .ride-kind-line .transport-chip--kind-ambulant {
  display: inline;
  font-size: .64rem;
  font-weight: 600;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  letter-spacing: .03em;
  text-transform: uppercase;
  opacity: .85;
}
.chip-v2-kind-footer .transport-chip--kind-dialyse,
.chip-v2-kind-footer .ride-kind-line .transport-chip--kind-dialyse {
  color: #7c3aed;
}
.chip-v2-kind-footer .transport-chip--kind-ambulant,
.chip-v2-kind-footer .ride-kind-line .transport-chip--kind-ambulant {
  color: #1d4ed8;
}
/* app-shell dark */
body.app-shell .chip-v2-kind-footer {
  border-top-color: rgba(167, 139, 250, .2);
  background: rgba(139, 92, 246, .10);
  border-radius: 0 0 16px 16px;
}
body.app-shell .chip-v2-kind-footer .transport-chip,
body.app-shell .chip-v2-kind-footer .transport-chip--kind,
body.app-shell .chip-v2-kind-footer .transport-chip--kind-dialyse,
body.app-shell .chip-v2-kind-footer .ride-kind-line .transport-chip--kind,
body.app-shell .chip-v2-kind-footer .ride-kind-line .transport-chip--kind-dialyse {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #c4b5fd;
}
body.app-shell .chip-v2-kind-footer .transport-chip--kind-ambulant,
body.app-shell .chip-v2-kind-footer .ride-kind-line .transport-chip--kind-ambulant {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #93c5fd;
}

/* ── Abgeschlossen-Summary ── */
.chip-v2-summary {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px 10px 16px;
  cursor: pointer;
  list-style: none;
}
.chip-v2-summary::-webkit-details-marker { display: none; }
.chip-v2-summary-name {
  font-size: .88rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.chip-v2-done-badge {
  font-size: .63rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .01em;
}

/* ── Drag-Ghost ── */
.ride-chip-v2.is-dragging {
  opacity: .75;
  transform: rotate(1deg);
  box-shadow: 0 16px 40px rgba(15,23,42,.28);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .chip-v2-head    { gap: 10px; padding: 10px 12px 8px 14px; }
  .chip-v2-body    { padding: 0 12px 0 14px; }
  .chip-v2-actions { padding: 7px 12px 10px 14px; }
  .chip-v2-badges  { padding: 0 12px 4px 14px; }
  .chip-v2-summary { padding: 9px 12px 9px 14px; }
  .chip-v2-detail  { margin: 6px 12px 0 14px; }
}

/* ══════════════════════════════════════════════════════════════
   APP-SHELL (dunkles Dashboard) – Premium-Glasmorphismus
   ══════════════════════════════════════════════════════════════ */
body.app-shell .ride-chip-v2 {
  background: linear-gradient(145deg, rgba(30,40,55,.95) 0%, rgba(20,28,42,.98) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 -1px 0 rgba(0,0,0,.3) inset,
    0 4px 24px rgba(0,0,0,.35),
    0 1px 4px rgba(0,0,0,.2);
}
body.app-shell .ride-chip-v2:not(.ride-chip-v2--locked):not(.ride-chip-v2--done):hover {
  border-color: rgba(255,255,255,.14);
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 -1px 0 rgba(0,0,0,.3) inset,
    0 6px 30px rgba(0,0,0,.4),
    0 2px 6px rgba(0,0,0,.25);
}
body.app-shell .ride-chip-v2--done {
  background: linear-gradient(145deg, rgba(22,28,38,.88), rgba(16,22,32,.92));
}

/* Statussignal mit Glow im app-shell */
body.app-shell .ride-chip-v2--ok::before    { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.55); }
body.app-shell .ride-chip-v2--tight::before { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,.55); }
body.app-shell .ride-chip-v2--late::before  { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.55); }
body.app-shell .ride-chip-v2--locked::before{ background: #818cf8; box-shadow: 0 0 8px rgba(129,140,248,.45); }
body.app-shell .ride-chip-v2--held::before  { background: #22d3ee; box-shadow: 0 0 8px rgba(34,211,238,.5); }

/* Zeit-Pille */
body.app-shell .chip-v2-time-pill            { background: rgba(6,12,20,.6); color: #e8f2ff; border: 1px solid rgba(255,255,255,.08); font-size: .94rem; }
body.app-shell .ride-chip-v2--ok    .chip-v2-time-pill { background: rgba(34,197,94,.18);  color: #86efac; border-color: rgba(34,197,94,.25);  }
body.app-shell .ride-chip-v2--tight .chip-v2-time-pill { background: rgba(245,158,11,.18); color: #fcd34d; border-color: rgba(245,158,11,.25); }
body.app-shell .ride-chip-v2--late  .chip-v2-time-pill { background: rgba(239,68,68,.18);  color: #fca5a5; border-color: rgba(239,68,68,.25);  }
body.app-shell .ride-chip-v2--held  .chip-v2-time-pill { background: rgba(6,182,212,.18);  color: #67e8f9; border-color: rgba(6,182,212,.25);  }
body.app-shell .ride-chip-v2--done  .chip-v2-time-pill { background: rgba(255,255,255,.04); color: #475569; border-color: rgba(255,255,255,.06); }

body.app-shell .chip-v2-time-label { color: #4d7a96; }
body.app-shell .chip-v2-time-eta   { color: #6b9ab5; }
body.app-shell .chip-v2-time-eta--tight { color: #d97706; }
body.app-shell .chip-v2-time-eta--late  { color: #ef4444; }
body.app-shell .chip-v2-time-eta--held  { color: #06b6d4; }

body.app-shell .chip-v2-patient    { color: #e8f2ff; letter-spacing: .01em; }
body.app-shell .chip-v2-transport  { background: rgba(255,255,255,.07); color: #7a9ab5; border: 1px solid rgba(255,255,255,.10); }
body.app-shell .chip-v2-subline    { color: #7a9ab5; }
body.app-shell .chip-v2-subline--ok    { color: #4ade80; }
body.app-shell .chip-v2-subline--tight { color: #fbbf24; }
body.app-shell .chip-v2-subline--late  { color: #f87171; }
body.app-shell .chip-v2-subline--held  { color: #22d3ee; }

body.app-shell .chip-v2-addr       { border-top-color: rgba(255,255,255,.05); }
body.app-shell .chip-v2-addr-lbl   { color: #2d5570; }
body.app-shell .chip-v2-addr-name  { color: #b8cfe0; }
body.app-shell .chip-v2-addr-street{ color: #6b8fa8; }

body.app-shell .chip-v2-detail {
  border-color: rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
}
body.app-shell .chip-v2-detail--late  { border-color: rgba(239,68,68,.18);  background: rgba(239,68,68,.06); }
body.app-shell .chip-v2-detail--tight { border-color: rgba(245,158,11,.18); background: rgba(245,158,11,.06); }
body.app-shell .chip-v2-detail--ok    { border-color: rgba(34,197,94,.14);  background: rgba(34,197,94,.05); }
body.app-shell .chip-v2-detail-summary { color: #4d7a96; }
body.app-shell .chip-v2-detail-summary:hover { color: #93c5fd; }
body.app-shell .chip-v2-detail-line   { border-bottom-color: rgba(255,255,255,.03); }
body.app-shell .chip-v2-detail-lbl    { color: #4d7a96; }
body.app-shell .chip-v2-detail-val    { color: #b8cfe0; }

body.app-shell .chip-v2-actions    { border-top-color: rgba(255,255,255,.05); }
body.app-shell .chip-v2-btn {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.10);
  color: #c8daea;
  letter-spacing: .01em;
}
body.app-shell .chip-v2-btn:hover   { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
body.app-shell .chip-v2-btn--danger  { background: rgba(239,68,68,.12);   border-color: rgba(239,68,68,.28);   color: #fca5a5; }
body.app-shell .chip-v2-btn--locked  { background: rgba(129,140,248,.15); border-color: rgba(129,140,248,.3);  color: #c7d2fe; }
body.app-shell .chip-v2-btn--release { background: rgba(6,182,212,.15);   border-color: rgba(6,182,212,.3);    color: #67e8f9; }

body.app-shell .chip-v2-grip       { color: #2d5570; }
body.app-shell .chip-v2-grip:hover { color: #7a9ab5; }

body.app-shell .driver-state-badge              { background: rgba(49,76,159,.22); color: #93c5fd; }
body.app-shell .driver-state-badge--confirmed   { background: rgba(29,78,216,.2);  color: #93c5fd; }
body.app-shell .driver-state-badge--en_route,
body.app-shell .driver-state-badge--in_progress { background: rgba(22,163,74,.2);  color: #86efac; }
body.app-shell .driver-state-badge--completed   { background: rgba(255,255,255,.06); color: #475569; }

body.app-shell .chip-v2-summary-name { color: #6b8fa8; }
body.app-shell .chip-v2-done-badge   { background: rgba(255,255,255,.07); color: #475569; }

/* Ambulant-Footer: blau statt lila */
.chip-v2-kind-footer:has(.transport-chip--kind-ambulant) {
  border-top-color: rgba(59, 130, 246, .2);
  background: rgba(59, 130, 246, .07);
}
body.app-shell .chip-v2-kind-footer:has(.transport-chip--kind-ambulant) {
  border-top-color: rgba(96, 165, 250, .2);
  background: rgba(59, 130, 246, .10);
}
/* ── Buttons im Kachel-Kontext: mini-btn überschreiben ── */
body.app-shell .ride-chip-v2 .mini-btn,
body.app-shell .ride-chip-v2 .mini-btn--ghost {
  font-size: .68rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: #c8daea;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .01em;
  line-height: 1.4;
  transition: background .12s, border-color .12s;
}
body.app-shell .ride-chip-v2 .mini-btn:hover,
body.app-shell .ride-chip-v2 .mini-btn--ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.2);
  color: #e8f2ff;
}
body.app-shell .ride-chip-v2 .mini-btn--danger {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.32);
  color: #fca5a5;
}
body.app-shell .ride-chip-v2 .mini-btn--danger:hover {
  background: rgba(239,68,68,.22);
  border-color: rgba(239,68,68,.5);
}
body.app-shell .ride-chip-v2 .mini-btn[data-action="lock"]:not(.mini-btn--danger) {
  background: rgba(129,140,248,.14);
  border-color: rgba(129,140,248,.32);
  color: #c7d2fe;
}
body.app-shell .ride-chip-v2 .mini-btn[data-action="lock"].mini-btn--danger {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.32);
  color: #fca5a5;
}
body.app-shell .ride-chip-v2 .mini-btn[data-action="driverrelease"] {
  background: rgba(6,182,212,.14);
  border-color: rgba(6,182,212,.32);
  color: #67e8f9;
}

/* ── Kachel-Hintergrund je Fahrerstatus ── */
/* Light Mode */
.ride-chip-v2.ride-chip--state-confirmed {
  background: #f0f7ff;
}
.ride-chip-v2.ride-chip--state-en_route {
  background: #f0fdf4;
}
.ride-chip-v2.ride-chip--state-in_progress {
  background: #ecfdf5;
}

/* App-Shell Dark Mode — minimaler Statushauch, Kachel bleibt dunkel und lesbar */
body.app-shell .ride-chip-v2.ride-chip--state-confirmed {
  background: rgba(22, 33, 54, .97);
  border-color: rgba(96,165,250,.18);
}
body.app-shell .ride-chip-v2.ride-chip--state-en_route {
  background: rgba(20, 32, 27, .97);
  border-color: rgba(74,222,128,.16);
}
body.app-shell .ride-chip-v2.ride-chip--state-in_progress {
  background: rgba(18, 32, 30, .97);
  border-color: rgba(52,211,153,.18);
}
/* v833: kompakte Patientenzeile */
.chip-v2-name-row{flex-wrap:nowrap;overflow:hidden;max-width:100%;}
.chip-v2-patient{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal;overflow-wrap:normal;}
.chip-v2-transport{flex:0 0 auto;max-width:96px;overflow:hidden;text-overflow:ellipsis;}

/* v845: Fahrtart-Footer final vereinheitlicht.
   Wichtig: Diese Regeln stehen bewusst im Tourkachel-Modul, weil dessen CSS nach app.css geladen wird.
   Dadurch greifen sie zuverlässig und überschreiben ältere Dialyse/Ambulant/Custom-Varianten. */
body.app-shell .ride-chip-v2 .chip-v2-kind-footer,
body.app-shell .order-card .chip-v2-kind-footer{
  background:transparent !important;
  border-top:0 !important;
  box-shadow:none !important;
}
body.app-shell .ride-chip-v2 .chip-v2-kind-footer:has(.transport-chip--kind-ambulant),
body.app-shell .order-card .chip-v2-kind-footer:has(.transport-chip--kind-ambulant){
  background:transparent !important;
  border-top:0 !important;
}
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .transport-chip--kind,
body.app-shell .order-card .chip-v2-kind-footer .transport-chip--kind,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .transport-chip--kind-dialyse,
body.app-shell .order-card .chip-v2-kind-footer .transport-chip--kind-dialyse,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .transport-chip--kind-ambulant,
body.app-shell .order-card .chip-v2-kind-footer .transport-chip--kind-ambulant,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line .transport-chip--kind,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line .transport-chip--kind,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line .transport-chip--kind-dialyse,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line .transport-chip--kind-dialyse,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line .transport-chip--kind-ambulant,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line .transport-chip--kind-ambulant{
  background:linear-gradient(90deg, #6256e5 0%, #8670ff 100%) !important;
  color:#ffffff !important;
  opacity:1 !important;
  filter:none !important;
  border:0 !important;
  border-top:1px solid rgba(255,255,255,.24) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13), 0 -1px 10px rgba(15,23,42,.13) !important;
  text-shadow:0 1px 1px rgba(0,0,0,.32) !important;
}

/* v846: Vertikaler Statusstreifen final in die Tourkachel integriert.
   Nur Optik: keine Höhe, keine Innenabstände, keine Inhalte verändert.
   Ein einzelnes Pseudo-Element erzeugt den Streifen bündig innerhalb der Kartenrundung. */
body.app-shell .ride-chip-v2,
body.app-shell .order-card{
  position:relative !important;
  overflow:hidden !important;
}
body.app-shell .ride-chip-v2::after,
body.app-shell .order-card::after{
  display:none !important;
}
body.app-shell .ride-chip-v2::before,
body.app-shell .order-card::before{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  bottom:0 !important;
  width:5px !important;
  border-radius:16px 0 0 16px !important;
  pointer-events:none !important;
  z-index:3 !important;
  opacity:1 !important;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,.20),
    1px 0 7px rgba(0,0,0,.18) !important;
}
body.app-shell .ride-chip-v2--ok::before,
body.app-shell .order-card.ride-chip-v2--ok::before{
  background:linear-gradient(180deg,#3ee28f 0%,#16b86f 100%) !important;
}
body.app-shell .ride-chip-v2--tight::before,
body.app-shell .order-card.ride-chip-v2--tight::before{
  background:linear-gradient(180deg,#ffd166 0%,#f59e0b 100%) !important;
}
body.app-shell .ride-chip-v2--late::before,
body.app-shell .order-card.ride-chip-v2--late::before{
  background:linear-gradient(180deg,#ff7a8a 0%,#ef4444 100%) !important;
}
body.app-shell .ride-chip-v2--locked::before,
body.app-shell .order-card.ride-chip-v2--locked::before{
  background:linear-gradient(180deg,#a5b4fc 0%,#818cf8 100%) !important;
}
body.app-shell .ride-chip-v2--held::before,
body.app-shell .order-card.ride-chip-v2--held::before{
  background:linear-gradient(180deg,#67e8f9 0%,#0891b2 100%) !important;
}
body.app-shell .ride-chip-v2--done::before,
body.app-shell .order-card.ride-chip-v2--done::before{
  background:linear-gradient(180deg,#a8b3c2 0%,#64748b 100%) !important;
  opacity:.55 !important;
}

/* v848: Sammelfahrt-Checkbox rechts bündig oberhalb des Fahrtart-Streifens.
   Absolut positioniert: Sie nimmt keine eigene Zeile mehr ein und schiebt keine Schrift nach oben. */
body.app-shell .ride-chip-v2 .chip-v2-select-row,
body.app-shell .order-card .chip-v2-select-row{
  position:absolute !important;
  right:4px !important; /* ca. 1 mm Abstand zum rechten Kachelrand */
  bottom:33px !important; /* ca. 1,5 mm höher über dem unteren Fahrtart-Streifen */
  z-index:12 !important;
  width:18px !important;
  height:18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  margin:0 !important;
  min-height:0 !important;
  pointer-events:none !important;
}
body.app-shell .ride-chip-v2.is-ride-collapsed .chip-v2-select-row,
body.app-shell .order-card.is-ride-collapsed .chip-v2-select-row{
  right:4px !important;
  bottom:29px !important;
  width:18px !important;
  height:18px !important;
  padding:0 !important;
  margin:0 !important;
  min-height:0 !important;
}
body.app-shell .ride-chip-v2 .chip-v2-select-row:empty,
body.app-shell .order-card .chip-v2-select-row:empty{
  display:none !important;
}
body.app-shell .ride-chip-v2 .chip-v2-select-row .collective-select,
body.app-shell .order-card .chip-v2-select-row .collective-select{
  position:static !important;
  right:auto !important;
  bottom:auto !important;
  z-index:13 !important;
  width:18px !important;
  height:18px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  padding:0 !important;
  pointer-events:auto !important;
  opacity:.72 !important;
  transition:opacity .12s ease, transform .12s ease, box-shadow .12s ease;
}
body.app-shell .ride-chip-v2:hover .chip-v2-select-row .collective-select,
body.app-shell .order-card:hover .chip-v2-select-row .collective-select,
body.app-shell .ride-chip-v2 .chip-v2-select-row .collective-select:focus-within,
body.app-shell .order-card .chip-v2-select-row .collective-select:focus-within{
  opacity:1 !important;
}
body.app-shell .ride-chip-v2 .chip-v2-select-row .collective-select span,
body.app-shell .order-card .chip-v2-select-row .collective-select span{
  width:15px !important;
  height:15px !important;
  border-radius:4px !important;
  border:1.4px solid rgba(23,76,124,.50) !important;
  background:rgba(255,255,255,.88) !important;
  box-shadow:0 1px 4px rgba(15,23,42,.13) !important;
}
body.app-shell .ride-chip-v2 .chip-v2-select-row .collective-select input:checked + span,
body.app-shell .order-card .chip-v2-select-row .collective-select input:checked + span{
  border-color:#174c7c !important;
  background:#174c7c !important;
  box-shadow:0 0 0 2px rgba(23,76,124,.14), 0 1px 5px rgba(15,23,42,.18) !important;
}
body.app-shell .ride-chip-v2 .chip-v2-select-row .collective-select input:checked + span::after,
body.app-shell .order-card .chip-v2-select-row .collective-select input:checked + span::after{
  font-size:10px !important;
  line-height:13px !important;
}
body.app-shell .ride-chip-v2.is-ride-collapsed .ride-kind-line,
body.app-shell .order-card.is-ride-collapsed .ride-kind-line,
body.app-shell .ride-chip-v2 .ride-kind-line,
body.app-shell .order-card .ride-kind-line{
  padding-right:0 !important;
}

/* v852: Rückfahrt-Fahrtart-Balken farblich eindeutig von Hinfahrt abheben.
   Nur unterer Fahrtart-Footer: Layout, Höhe, Checkbox und Inhalte bleiben unverändert. */
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .transport-chip--kind.transport-chip--outbound,
body.app-shell .order-card .chip-v2-kind-footer .transport-chip--kind.transport-chip--outbound,
body.app-shell .ride-chip-v2 .ride-kind-line .transport-chip--kind.transport-chip--outbound,
body.app-shell .order-card .ride-kind-line .transport-chip--kind.transport-chip--outbound{
  background:linear-gradient(90deg, hsl(252 68% 51%), hsl(262 70% 58%)) !important;
  color:#ffffff !important;
}
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .transport-chip--kind.transport-chip--return,
body.app-shell .order-card .chip-v2-kind-footer .transport-chip--kind.transport-chip--return,
body.app-shell .ride-chip-v2 .ride-kind-line .transport-chip--kind.transport-chip--return,
body.app-shell .order-card .ride-kind-line .transport-chip--kind.transport-chip--return{
  background:linear-gradient(90deg, hsl(205 70% 43%), hsl(190 72% 45%)) !important;
  color:#ffffff !important;
}
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .transport-chip--kind.transport-chip--return,
body.app-shell .order-card .chip-v2-kind-footer .transport-chip--kind.transport-chip--return{
  border-top-color:rgba(255,255,255,.26) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 -1px 10px rgba(15,23,42,.13) !important;
}

/* v853: Genau zwei Farben fuer den unteren Fahrtart-Balken: Hinfahrt und Rueckfahrt.
   Alle Fahrtarten nutzen dieselbe Hinfahrtfarbe bzw. dieselbe Rueckfahrtfarbe. */
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .transport-chip--kind,
body.app-shell .order-card .chip-v2-kind-footer .transport-chip--kind,
body.app-shell .ride-chip-v2 .ride-kind-line .transport-chip--kind,
body.app-shell .order-card .ride-kind-line .transport-chip--kind{
  background:linear-gradient(90deg, hsl(252 68% 51%), hsl(262 70% 58%)) !important;
  color:#ffffff !important;
  border-top:1px solid rgba(255,255,255,.24) !important;
  text-shadow:0 1px 1px rgba(0,0,0,.32) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13), 0 -1px 10px rgba(15,23,42,.13) !important;
  opacity:1 !important;
  filter:none !important;
}
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .transport-chip--kind.transport-chip--outbound,
body.app-shell .order-card .chip-v2-kind-footer .transport-chip--kind.transport-chip--outbound,
body.app-shell .ride-chip-v2 .ride-kind-line .transport-chip--kind.transport-chip--outbound,
body.app-shell .order-card .ride-kind-line .transport-chip--kind.transport-chip--outbound{
  background:linear-gradient(90deg, hsl(252 68% 51%), hsl(262 70% 58%)) !important;
}
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .transport-chip--kind.transport-chip--return,
body.app-shell .order-card .chip-v2-kind-footer .transport-chip--kind.transport-chip--return,
body.app-shell .ride-chip-v2 .ride-kind-line .transport-chip--kind.transport-chip--return,
body.app-shell .order-card .ride-kind-line .transport-chip--kind.transport-chip--return{
  background:linear-gradient(90deg, hsl(198 70% 43%), hsl(184 72% 45%)) !important;
}

/* v855: Finale bereinigte Richtungsgestaltung des unteren Fahrtart-Balkens.
   Exakt zwei Farben: alle Hinfahrten gleich, alle Rückfahrten gleich.
   Die Farbe hängt nur noch an .ride-kind-line--outbound bzw. .ride-kind-line--return.
   Fahrtart-spezifische Klassen wie Dialyse/Ambulant/Chemo/Physio beeinflussen die Balkenfarbe nicht mehr. */
body.app-shell .ride-chip-v2 .chip-v2-kind-footer,
body.app-shell .order-card .chip-v2-kind-footer{
  margin-top:4px !important;
  padding:0 !important;
  overflow:hidden !important;
  border-top:0 !important;
  border-radius:0 0 16px 16px !important;
  background:transparent !important;
  box-shadow:none !important;
}
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  text-align:center !important;
  border-top:1px solid rgba(255,255,255,.22) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 -1px 10px rgba(15,23,42,.12) !important;
}
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line--outbound,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line--outbound{
  background:linear-gradient(90deg, #5c50dd 0%, #7b64f2 100%) !important;
}
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line--return,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line--return{
  background:linear-gradient(90deg, #0f8aa3 0%, #13a3ad 100%) !important;
}
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line .transport-chip,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line .transport-chip,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line .transport-chip--kind,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line .transport-chip--kind,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line .transport-chip--kind-dialyse,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line .transport-chip--kind-dialyse,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line .transport-chip--kind-ambulant,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line .transport-chip--kind-ambulant,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line .transport-chip--outbound,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line .transport-chip--outbound,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line .transport-chip--return,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line .transport-chip--return{
  display:block !important;
  width:100% !important;
  box-sizing:border-box !important;
  padding:6px 16px !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  color:#ffffff !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:0 1px 1px rgba(0,0,0,.30) !important;
  font-size:.64rem !important;
  font-weight:700 !important;
  letter-spacing:.045em !important;
  line-height:1.2 !important;
  text-transform:uppercase !important;
}

/* v856: Endgültig bereinigte Richtungfarben für Fahrtart-Footer.
   Die Farbe hängt ausschließlich an der Richtungsklasse der Zeile.
   Der innere Chip ist transparent, damit alte Fahrtart-Klassen die Farbe nicht mehr übersteuern können. */
body.app-shell .ride-chip-v2 .ride-kind-line,
body.app-shell .order-card .ride-kind-line,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border-top:1px solid rgba(255,255,255,.22) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 -1px 10px rgba(15,23,42,.12) !important;
}
body.app-shell .ride-chip-v2 .ride-kind-line.ride-kind-line--outbound,
body.app-shell .order-card .ride-kind-line.ride-kind-line--outbound,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line.ride-kind-line--outbound,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line.ride-kind-line--outbound{
  background:#6657e8 !important;
  background-image:linear-gradient(90deg,#5f52df 0%,#7a67f1 100%) !important;
}
body.app-shell .ride-chip-v2 .ride-kind-line.ride-kind-line--return,
body.app-shell .order-card .ride-kind-line.ride-kind-line--return,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line.ride-kind-line--return,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line.ride-kind-line--return{
  background:#1395a7 !important;
  background-image:linear-gradient(90deg,#0f879f 0%,#15a9b3 100%) !important;
}
body.app-shell .ride-chip-v2 .ride-kind-line .transport-chip,
body.app-shell .order-card .ride-kind-line .transport-chip,
body.app-shell .ride-chip-v2 .ride-kind-line .transport-chip--kind,
body.app-shell .order-card .ride-kind-line .transport-chip--kind,
body.app-shell .ride-chip-v2 .ride-kind-line [class*="transport-chip--kind"],
body.app-shell .order-card .ride-kind-line [class*="transport-chip--kind"]{
  display:block !important;
  width:100% !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:6px 16px !important;
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  color:#fff !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:0 1px 1px rgba(0,0,0,.30) !important;
  font-size:.64rem !important;
  font-weight:800 !important;
  letter-spacing:.045em !important;
  line-height:1.2 !important;
  text-transform:uppercase !important;
}

/* v857: Endgültige Farblogik Fahrtart-Footer.
   Genau zwei sichtbare Balkenfarben: Hinfahrt Blau, Rückfahrt Türkis.
   Die Fahrtart selbst beeinflusst nur den Text, niemals die Farbe. */
body.app-shell .ride-chip-v2 .ride-kind-line,
body.app-shell .order-card .ride-kind-line,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border-top:1px solid rgba(255,255,255,.24) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16), 0 -1px 10px rgba(15,23,42,.14) !important;
}
body.app-shell .ride-chip-v2 .ride-kind-line.ride-kind-line--outbound,
body.app-shell .order-card .ride-kind-line.ride-kind-line--outbound,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line.ride-kind-line--outbound,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line.ride-kind-line--outbound,
body.app-shell .ride-chip-v2 .ride-kind-line[data-ride-direction="outbound"],
body.app-shell .order-card .ride-kind-line[data-ride-direction="outbound"]{
  background:#1d4ed8 !important;
  background-image:linear-gradient(90deg,#1d4ed8 0%,#2563eb 100%) !important;
}
body.app-shell .ride-chip-v2 .ride-kind-line.ride-kind-line--return,
body.app-shell .order-card .ride-kind-line.ride-kind-line--return,
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line.ride-kind-line--return,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line.ride-kind-line--return,
body.app-shell .ride-chip-v2 .ride-kind-line[data-ride-direction="return"],
body.app-shell .order-card .ride-kind-line[data-ride-direction="return"]{
  background:#0e7490 !important;
  background-image:linear-gradient(90deg,#0e7490 0%,#0891b2 100%) !important;
}
body.app-shell .ride-chip-v2 .ride-kind-line .transport-chip,
body.app-shell .order-card .ride-kind-line .transport-chip,
body.app-shell .ride-chip-v2 .ride-kind-line .transport-chip--kind,
body.app-shell .order-card .ride-kind-line .transport-chip--kind,
body.app-shell .ride-chip-v2 .ride-kind-line [class*="transport-chip--kind"],
body.app-shell .order-card .ride-kind-line [class*="transport-chip--kind"]{
  display:block !important;
  width:100% !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:6px 16px !important;
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  color:#ffffff !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:0 1px 1px rgba(0,0,0,.34) !important;
  font-size:.64rem !important;
  font-weight:800 !important;
  letter-spacing:.045em !important;
  line-height:1.2 !important;
  text-transform:uppercase !important;
}


/* v859: Finale, dunklere Fahrtart-Footerfarben.
   Muss nach allen alten Regeln greifen; Farben nur nach Richtung. */
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line.ride-kind-line--outbound,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line.ride-kind-line--outbound,
body.app-shell .ride-chip-v2 .ride-kind-line.ride-kind-line--outbound,
body.app-shell .order-card .ride-kind-line.ride-kind-line--outbound,
body.app-shell .ride-chip-v2 .ride-kind-line[data-ride-direction="outbound"],
body.app-shell .order-card .ride-kind-line[data-ride-direction="outbound"]{
  background:#1e3a8a !important;
  background-image:linear-gradient(90deg,#1e3a8a 0%,#1d4ed8 100%) !important;
}
body.app-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line.ride-kind-line--return,
body.app-shell .order-card .chip-v2-kind-footer .ride-kind-line.ride-kind-line--return,
body.app-shell .ride-chip-v2 .ride-kind-line.ride-kind-line--return,
body.app-shell .order-card .ride-kind-line.ride-kind-line--return,
body.app-shell .ride-chip-v2 .ride-kind-line[data-ride-direction="return"],
body.app-shell .order-card .ride-kind-line[data-ride-direction="return"]{
  background:#075985 !important;
  background-image:linear-gradient(90deg,#075985 0%,#0e7490 100%) !important;
}
body.app-shell .ride-chip-v2 .ride-kind-line .transport-chip,
body.app-shell .order-card .ride-kind-line .transport-chip,
body.app-shell .ride-chip-v2 .ride-kind-line .transport-chip--kind,
body.app-shell .order-card .ride-kind-line .transport-chip--kind,
body.app-shell .ride-chip-v2 .ride-kind-line [class*="transport-chip--kind"],
body.app-shell .order-card .ride-kind-line [class*="transport-chip--kind"]{
  background:transparent !important;
  background-image:none !important;
  color:#fff !important;
  text-shadow:0 1px 2px rgba(0,0,0,.45) !important;
}

/* v922: Fahrerstatus-Band final: echte Kopfzeile ohne Überlappung.
   Status bleibt ganz oben über volle Breite; Patient, Uhrzeit und Route laufen darunter
   wieder in einem stabilen Grid. Keine Logikänderung. */
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed{
  position:relative !important;
  overflow:hidden !important;
  padding:0 12px 8px 12px !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed{--driver-status-accent:#60a5fa;--driver-status-strong:#2563eb;--driver-status-deep:#102a4f;}
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route{--driver-status-accent:#2dd4bf;--driver-status-strong:#0d9488;--driver-status-deep:#0b3b3f;}
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress{--driver-status-accent:#34d399;--driver-status-strong:#16a34a;--driver-status-deep:#123f25;}
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed{--driver-status-accent:#94a3b8;--driver-status-strong:#64748b;--driver-status-deep:#263241;}
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed{--driver-status-accent:#60a5fa;--driver-status-strong:#2563eb;--driver-status-deep:#102a4f;}
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route{--driver-status-accent:#2dd4bf;--driver-status-strong:#0d9488;--driver-status-deep:#0b3b3f;}
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress{--driver-status-accent:#34d399;--driver-status-strong:#16a34a;--driver-status-deep:#123f25;}
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed{--driver-status-accent:#94a3b8;--driver-status-strong:#64748b;--driver-status-deep:#263241;}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed{
  background:
    radial-gradient(120% 75% at 0% 0%, color-mix(in srgb, var(--driver-status-accent) 20%, transparent) 0%, transparent 50%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--driver-status-deep) 74%, #0b1220) 0%,
      #07111d 100%) !important;
  border-color:color-mix(in srgb, var(--driver-status-accent) 34%, rgba(255,255,255,.12)) !important;
  box-shadow:
    0 18px 36px rgba(0,0,0,.34),
    0 0 0 1px color-mix(in srgb, var(--driver-status-accent) 18%, transparent) inset,
    inset 0 1px 0 rgba(255,255,255,.06) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar{
  order:-10 !important;
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  width:auto !important;
  margin:0 -12px 10px -12px !important;
  padding:9px 42px 9px 14px !important;
  min-height:38px !important;
  box-sizing:border-box !important;
  border:0 !important;
  border-bottom:1px solid color-mix(in srgb, var(--driver-status-accent) 42%, rgba(255,255,255,.16)) !important;
  border-radius:0 !important;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--driver-status-strong) 92%, #0f172a) 0%,
      color-mix(in srgb, var(--driver-status-accent) 54%, #101827) 56%,
      rgba(15,23,42,.92) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 8px 18px rgba(0,0,0,.16) !important;
  color:#fff !important;
  overflow:hidden !important;
  z-index:2 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar::after,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar::after{
  content:'' !important;
  position:absolute !important;
  inset:0 !important;
  height:auto !important;
  border-radius:0 !important;
  pointer-events:none !important;
  background:
    radial-gradient(circle at 12% -30%, rgba(255,255,255,.35) 0%, transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 48%) !important;
  opacity:.72 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar__dot{
  position:relative !important;
  z-index:1 !important;
  flex:0 0 8px !important;
  width:8px !important;
  height:8px !important;
  border-radius:999px !important;
  background:#fff !important;
  box-shadow:0 0 0 4px rgba(255,255,255,.13), 0 0 14px rgba(255,255,255,.46) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar__label{
  position:relative !important;
  z-index:1 !important;
  display:block !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:100% !important;
  color:#fff !important;
  font-size:.78rem !important;
  line-height:1.22 !important;
  font-weight:950 !important;
  letter-spacing:-.01em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  text-shadow:0 1px 2px rgba(0,0,0,.45) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .ride-main-fields{
  display:grid !important;
  grid-template-columns:62px minmax(0,1fr) !important;
  grid-template-areas:
    "time head"
    "route route" !important;
  gap:7px 9px !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  align-items:start !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-time-block,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-time-block,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-time-block,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-time-block{
  grid-area:time !important;
  min-width:0 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-head,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-head,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-head,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-head,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-head{
  grid-area:head !important;
  min-width:0 !important;
  padding-right:18px !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-route,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-route,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-route,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-route,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-route,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-route,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-route,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-route{
  grid-area:route !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .ride-compact-toggle,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .ride-compact-toggle,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .ride-compact-toggle,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .ride-compact-toggle{
  top:8px !important;
  right:8px !important;
  z-index:8 !important;
  color:rgba(255,255,255,.88) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-patient,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-patient,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-patient,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-patient,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-patient{
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:normal !important;
  word-break:normal !important;
}

/* v923: Grundlayout-Reparatur für ALLE Tourkacheln.
   Der Premium-Fahrerstatus aus v921/v922 bleibt erhalten, aber die stabile
   Kopfstruktur darf nicht nur für Status-Kacheln gelten. Sonst werden normale
   Tourkacheln durch die alte .chip-v2-head-Grid-Regel inhaltlich gequetscht. */
body.app-shell.dashboard-shell .ride-chip-v2 .ride-main-fields,
body.app-shell.dashboard-shell .order-card .ride-main-fields{
  display:grid !important;
  grid-template-columns:62px minmax(0,1fr) !important;
  grid-template-areas:
    "time head"
    "route route" !important;
  gap:7px 9px !important;
  width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:12px 12px 8px 12px !important;
  align-items:start !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card .chip-v2-time-block{
  grid-area:time !important;
  min-width:0 !important;
  width:62px !important;
  align-self:start !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .ride-main-fields > .chip-v2-head,
body.app-shell.dashboard-shell .order-card .ride-main-fields > .chip-v2-head{
  grid-area:head !important;
  display:block !important;
  min-width:0 !important;
  width:100% !important;
  box-sizing:border-box !important;
  padding:0 20px 0 0 !important;
  margin:0 !important;
  cursor:grab !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .ride-main-fields > .chip-v2-head .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card .ride-main-fields > .chip-v2-head .chip-v2-name-row{
  display:flex !important;
  align-items:flex-start !important;
  gap:7px !important;
  flex-wrap:wrap !important;
  min-width:0 !important;
  width:100% !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .ride-main-fields > .chip-v2-head .chip-v2-patient,
body.app-shell.dashboard-shell .order-card .ride-main-fields > .chip-v2-head .chip-v2-patient{
  display:block !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  line-height:1.18 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-route,
body.app-shell.dashboard-shell .order-card .chip-v2-route{
  grid-area:route !important;
  display:grid !important;
  gap:0 !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-route .chip-v2-addr,
body.app-shell.dashboard-shell .order-card .chip-v2-route .chip-v2-addr{
  min-width:0 !important;
}

/* Status-Kacheln haben oben bereits ein Statusband; darunter braucht das
   Hauptgrid weniger Top-Padding, aber exakt dieselbe stabile Struktur. */
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .ride-main-fields{
  padding:0 0 8px 0 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card .ride-compact-toggle{
  z-index:8 !important;
}

/* v924: Wirksame Layout-Reparatur für ALLE Tourkacheln.
   Die vorherige Korrektur hing an konkurrierenden Grid-Areas aus app.css.
   Jetzt besitzt die Kachel eine eigene stabile Primärzeile: Zeit links,
   Patient rechts, Route darunter. Dadurch kann nichts mehr überlappen. */
body.app-shell.dashboard-shell .ride-chip-v2,
body.app-shell.dashboard-shell .order-card{
  isolation:isolate;
}

body.app-shell.dashboard-shell .ride-chip-v2 .ride-main-fields,
body.app-shell.dashboard-shell .order-card .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.is-ride-collapsed .ride-main-fields,
body.app-shell.dashboard-shell .order-card.is-ride-collapsed .ride-main-fields{
  display:flex !important;
  flex-direction:column !important;
  grid-template-columns:none !important;
  grid-template-areas:none !important;
  gap:8px !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:12px 12px 8px 12px !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .ride-main-fields{
  padding-top:0 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card .chip-v2-primary-row{
  display:grid !important;
  grid-template-columns:62px minmax(0,1fr) !important;
  gap:9px !important;
  align-items:start !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card .chip-v2-primary-row > .chip-v2-time-block{
  grid-area:auto !important;
  width:62px !important;
  min-width:0 !important;
  max-width:62px !important;
  align-self:start !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card .chip-v2-primary-row > .chip-v2-head{
  grid-area:auto !important;
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:0 22px 0 0 !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card .chip-v2-primary-row .chip-v2-name-row{
  display:flex !important;
  align-items:flex-start !important;
  gap:7px !important;
  flex-wrap:wrap !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .order-card .chip-v2-primary-row .chip-v2-patient{
  display:block !important;
  flex:1 1 140px !important;
  min-width:0 !important;
  max-width:100% !important;
  line-height:1.18 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .ride-main-fields > .chip-v2-route,
body.app-shell.dashboard-shell .order-card .ride-main-fields > .chip-v2-route{
  grid-area:auto !important;
  display:grid !important;
  gap:0 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .ride-main-fields > .chip-v2-route .chip-v2-addr,
body.app-shell.dashboard-shell .order-card .ride-main-fields > .chip-v2-route .chip-v2-addr{
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar{
  width:auto !important;
  margin:0 0 0 0 !important;
  border-radius:18px 18px 10px 10px !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card .ride-compact-toggle{
  top:9px !important;
  right:8px !important;
  z-index:10 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar + .ride-main-fields,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar + .ride-main-fields{
  padding-top:10px !important;
}

/* v926: Tourkachel-Layout bereinigt auf Basis 924.
   Ziel: statusstark, aber ruhig; keine Überlappungen; aufgeklappt sauber gegliedert.
   Keine Funktionslogik, nur Tourkachel-Optik/Layout im Dashboard. */
body.app-shell.dashboard-shell .ride-chip-v2,
body.app-shell.dashboard-shell .order-card{
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  border-radius:16px !important;
}

/* Sammel-Checkbox aus der Kachel entfernen: sie überlagert Start/Ziel und stört die Premium-Karte. */
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-select-row,
body.app-shell.dashboard-shell .order-card .chip-v2-select-row{
  display:none !important;
}

/* Statusband bleibt ganz oben, läuft über volle Breite und reserviert echten Platz im Layout. */
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar{
  flex:0 0 auto !important;
  order:0 !important;
  width:100% !important;
  margin:0 !important;
  padding:9px 42px 9px 14px !important;
  min-height:36px !important;
  border-radius:0 !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar__label{
  display:block !important;
  min-width:0 !important;
  max-width:100% !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  line-height:1.22 !important;
}

/* Der Aufklapp-Trigger sitzt immer innerhalb der Kachel, ohne Patient oder Status zu überdecken. */
body.app-shell.dashboard-shell .ride-chip-v2 .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card .ride-compact-toggle{
  position:absolute !important;
  top:10px !important;
  right:10px !important;
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  min-height:24px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  margin:0 !important;
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:999px !important;
  background:rgba(3,10,22,.42) !important;
  color:rgba(232,242,255,.9) !important;
  box-shadow:0 2px 8px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08) !important;
  z-index:20 !important;
}
body.app-shell.dashboard-shell .ride-chip-v2:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .ride-compact-toggle{
  top:9px !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .ride-compact-toggle:hover,
body.app-shell.dashboard-shell .order-card .ride-compact-toggle:hover{
  background:rgba(20,35,55,.74) !important;
  border-color:rgba(255,255,255,.22) !important;
}

/* Hauptbereich: kein gequetschtes Layout, aber kompakt genug für Disposition. */
body.app-shell.dashboard-shell .ride-chip-v2 .ride-main-fields,
body.app-shell.dashboard-shell .order-card .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.is-ride-collapsed .ride-main-fields,
body.app-shell.dashboard-shell .order-card.is-ride-collapsed .ride-main-fields{
  order:1 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:9px !important;
  width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  padding:12px 14px 9px 16px !important;
  margin:0 !important;
  overflow:visible !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar + .ride-main-fields,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar + .ride-main-fields{
  padding-top:11px !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card .chip-v2-primary-row{
  display:grid !important;
  grid-template-columns:64px minmax(0,1fr) !important;
  gap:10px !important;
  align-items:start !important;
  width:100% !important;
  min-width:0 !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card .chip-v2-primary-row > .chip-v2-head{
  display:block !important;
  padding:0 28px 0 0 !important;
  margin:0 !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow:visible !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card .chip-v2-time-block{
  width:64px !important;
  max-width:64px !important;
  min-width:0 !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-time-pill,
body.app-shell.dashboard-shell .order-card .chip-v2-time-pill{
  min-height:30px !important;
  padding:7px 5px !important;
  box-sizing:border-box !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card .chip-v2-name-row{
  display:flex !important;
  align-items:flex-start !important;
  gap:7px !important;
  flex-wrap:wrap !important;
  min-width:0 !important;
  width:100% !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-patient,
body.app-shell.dashboard-shell .order-card .chip-v2-patient{
  display:block !important;
  min-width:0 !important;
  max-width:100% !important;
  color:#f2f8ff !important;
  font-size:.9rem !important;
  font-weight:850 !important;
  line-height:1.24 !important;
  letter-spacing:.005em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  text-shadow:0 1px 1px rgba(0,0,0,.32) !important;
}

/* Start/Ziel-Bereich: ruhige getrennte Box, keine Überlagerung, keine störende Checkbox. */
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-route,
body.app-shell.dashboard-shell .order-card .chip-v2-route{
  display:grid !important;
  gap:6px !important;
  width:100% !important;
  min-width:0 !important;
  padding:0 !important;
  margin:0 !important;
  overflow:visible !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-route .chip-v2-addr,
body.app-shell.dashboard-shell .order-card .chip-v2-route .chip-v2-addr{
  display:grid !important;
  grid-template-columns:34px minmax(0,1fr) !important;
  gap:8px !important;
  align-items:start !important;
  padding:7px 9px !important;
  min-width:0 !important;
  border:1px solid rgba(255,255,255,.07) !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.025) !important;
  box-sizing:border-box !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-addr:first-child,
body.app-shell.dashboard-shell .order-card .chip-v2-addr:first-child{
  border-top:1px solid rgba(255,255,255,.07) !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-addr-lbl,
body.app-shell.dashboard-shell .order-card .chip-v2-addr-lbl{
  color:#78a6c6 !important;
  font-size:.57rem !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-addr-name,
body.app-shell.dashboard-shell .order-card .chip-v2-addr-name{
  color:#d7e8f6 !important;
  line-height:1.25 !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-addr-street,
body.app-shell.dashboard-shell .order-card .chip-v2-addr-street{
  color:#9eb9cf !important;
  line-height:1.32 !important;
}

/* Aufgeklappter Inhalt: geordnete Detailfläche statt lose gestapelter Elemente. */
body.app-shell.dashboard-shell .ride-chip-v2 .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card .ride-expanded-fields{
  order:2 !important;
  display:grid !important;
  gap:8px !important;
  width:auto !important;
  margin:2px 14px 10px 16px !important;
  padding:10px !important;
  border:1px solid rgba(255,255,255,.075) !important;
  border-radius:12px !important;
  background:rgba(4,12,24,.24) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035) !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}
body.app-shell.dashboard-shell .ride-chip-v2.is-ride-collapsed .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card.is-ride-collapsed .ride-expanded-fields{
  display:none !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-expanded-transport,
body.app-shell.dashboard-shell .order-card .chip-v2-expanded-transport{
  display:flex !important;
  justify-content:flex-start !important;
  margin:0 !important;
  padding:0 !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-detail,
body.app-shell.dashboard-shell .order-card .chip-v2-detail{
  margin:0 !important;
  border-radius:10px !important;
  overflow:hidden !important;
  background:rgba(255,255,255,.025) !important;
  border-color:rgba(255,255,255,.07) !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-detail-summary,
body.app-shell.dashboard-shell .order-card .chip-v2-detail-summary{
  padding:8px 10px !important;
  color:#b9d4e8 !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-detail-body,
body.app-shell.dashboard-shell .order-card .chip-v2-detail-body{
  padding:0 10px 9px !important;
  gap:0 !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-actions,
body.app-shell.dashboard-shell .order-card .chip-v2-actions{
  margin:0 !important;
  padding:8px 0 0 0 !important;
  border-top:1px solid rgba(255,255,255,.055) !important;
}

/* Fahrtart-Footer bleibt Abschluss der Karte, sauber ohne Zusatzüberlagerung. */
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer{
  order:3 !important;
  margin-top:0 !important;
}

@media (max-width:900px){
  body.app-shell.dashboard-shell .ride-chip-v2 .ride-main-fields,
  body.app-shell.dashboard-shell .order-card .ride-main-fields{
    padding:11px 12px 8px 14px !important;
  }
  body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-primary-row,
  body.app-shell.dashboard-shell .order-card .chip-v2-primary-row{
    grid-template-columns:60px minmax(0,1fr) !important;
    gap:9px !important;
  }
  body.app-shell.dashboard-shell .ride-chip-v2 .ride-expanded-fields,
  body.app-shell.dashboard-shell .order-card .ride-expanded-fields{
    margin:2px 12px 9px 14px !important;
  }
}

/* v927: Fahrerstatus-Kachel finalisiert.
   Statusband muss wirklich vollflächig oben sitzen; darunter laufen Inhalt und
   aufgeklappte Details in sauber getrennten, lesbaren Ebenen. */
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed{
  padding:0 !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  border-radius:16px !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-status-bar,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-status-bar,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-status-bar,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-status-bar,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-status-bar,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-status-bar,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-status-bar,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-status-bar{
  order:0 !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:10px 44px 10px 15px !important;
  min-height:42px !important;
  border-radius:0 !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  overflow:hidden !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-status-bar__label{
  color:#ffffff !important;
  font-size:.79rem !important;
  font-weight:900 !important;
  line-height:1.24 !important;
  letter-spacing:.005em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  text-shadow:0 1px 2px rgba(0,0,0,.55) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .ride-compact-toggle,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .ride-compact-toggle,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .ride-compact-toggle,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .ride-compact-toggle{
  top:9px !important;
  right:10px !important;
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  min-height:24px !important;
  background:rgba(2,8,20,.32) !important;
  border:1px solid rgba(255,255,255,.22) !important;
  color:#fff !important;
  box-shadow:0 2px 7px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.12) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .ride-main-fields{
  order:1 !important;
  padding:12px 14px 10px 16px !important;
  gap:9px !important;
  background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)) !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-primary-row,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-primary-row,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-primary-row,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-primary-row{
  grid-template-columns:66px minmax(0,1fr) !important;
  gap:11px !important;
  align-items:start !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-primary-row > .chip-v2-head{
  padding-right:0 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-patient,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-patient,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-patient,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-patient,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-patient{
  color:#f8fbff !important;
  font-size:.93rem !important;
  line-height:1.28 !important;
  font-weight:900 !important;
  text-shadow:0 1px 2px rgba(0,0,0,.45) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .ride-expanded-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .ride-expanded-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .ride-expanded-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .ride-expanded-fields{
  order:2 !important;
  margin:0 14px 11px 16px !important;
  padding:10px !important;
  border-radius:13px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:linear-gradient(180deg, rgba(8,18,34,.92), rgba(4,12,24,.88)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 8px 20px rgba(0,0,0,.18) !important;
  color:#dbeafe !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-detail,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-detail,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-detail,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-detail,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-detail,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-detail,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-detail,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-detail{
  background:rgba(255,255,255,.04) !important;
  border-color:rgba(255,255,255,.09) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-detail-summary,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-detail-summary,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-detail-summary,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-detail-summary,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-detail-summary,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-detail-summary,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-detail-summary,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-detail-summary{
  color:#eaf4ff !important;
  font-weight:850 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-detail-lbl,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-detail-lbl,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-detail-lbl,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-detail-lbl,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-detail-lbl,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-detail-lbl,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-detail-lbl,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-detail-lbl{
  color:#9fc2dd !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-detail-val,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-detail-val,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-detail-val,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-detail-val,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-detail-val,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-detail-val,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-detail-val,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-detail-val{
  color:#f5fbff !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-kind-footer,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-kind-footer,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-kind-footer,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-kind-footer,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-kind-footer,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-kind-footer,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-kind-footer,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-kind-footer{
  order:3 !important;
}

/* v928: Status-Kachel aufgeklappt stabilisieren.
   Der geschlossene Zustand aus v927 bleibt unverändert. Nur im aufgeklappten
   Statuszustand bekommt die Primärzeile mehr Raum, damit Patientenname und
   Adressen nicht gequetscht oder vertikal umbrochen werden. */
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  align-items:stretch !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-time-block{
  width:100% !important;
  max-width:none !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  min-width:0 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-time-block .chip-v2-time-pill,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-time-block .chip-v2-time-pill,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-time-block .chip-v2-time-pill,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-time-block .chip-v2-time-pill,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-time-block .chip-v2-time-pill,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-time-block .chip-v2-time-pill,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-time-block .chip-v2-time-pill,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-time-block .chip-v2-time-pill{
  flex:0 0 auto !important;
  min-width:62px !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-head{
  width:100% !important;
  max-width:100% !important;
  padding:0 !important;
  min-width:0 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row .chip-v2-name-row{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row .chip-v2-patient{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
  hyphens:auto !important;
  line-height:1.25 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .ride-expanded-fields,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .ride-expanded-fields,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .ride-expanded-fields,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .ride-expanded-fields{
  margin:0 14px 11px 16px !important;
  padding:10px !important;
  overflow:visible !important;
}

/* v929: Aufgeklappte Tourkacheln mit Fahrerstatus exakt wie normale aufgeklappte
   Tourkacheln sortieren. Der Status bleibt oben als Vollbreitenband; darunter
   nutzt die Kachel wieder dieselbe Primärzeile wie ohne Status: Uhrzeit links,
   Patient rechts, Start/Ziel darunter. Damit entstehen keine Sonderraster und
   kein unruhiger Sonderaufbau im aufgeklappten Zustand. */
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row{
  display:grid !important;
  grid-template-columns:64px minmax(0,1fr) !important;
  gap:10px !important;
  align-items:start !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-time-block{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:3px !important;
  width:64px !important;
  min-width:0 !important;
  max-width:64px !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-head{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  padding:0 28px 0 0 !important;
  margin:0 !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row .chip-v2-name-row{
  display:flex !important;
  align-items:flex-start !important;
  gap:7px !important;
  flex-wrap:wrap !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row .chip-v2-patient{
  display:block !important;
  flex:1 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:100% !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  hyphens:none !important;
  line-height:1.24 !important;
}

/* Aufgeklappte Statuskachel: Detailbereich nicht gesondert verschachteln/quetschen,
   sondern in derselben ruhigen Boxlogik wie andere aufgeklappte Kacheln anzeigen. */
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .ride-expanded-fields,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .ride-expanded-fields,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .ride-expanded-fields,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .ride-expanded-fields{
  display:grid !important;
  gap:8px !important;
  width:auto !important;
  margin:2px 14px 10px 16px !important;
  padding:10px !important;
  border:1px solid rgba(255,255,255,.075) !important;
  border-radius:12px !important;
  background:rgba(4,12,24,.24) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035) !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

/* v930: Finale Reparatur der aufgeklappten Tourkachel mit Fahrerstatus.
   Ursache war nicht der Statusbalken, sondern eine Kaskade alter Grid-/Flex-Regeln
   plus overflow-wrap:anywhere am Patientennamen. Diese finale Regel setzt den
   sichtbaren Kachelinhalt wieder in einen eindeutigen, stabilen Aufbau:
   Statusband oben, darunter Kopfzeile mit Uhrzeit links und Patient rechts,
   darunter Start/Ziel. Keine Sonder-Sortierung fuer Statuskacheln. */
body.app-shell.dashboard-shell .ride-chip-v2,
body.app-shell.dashboard-shell .order-card{
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar{
  display:flex !important;
  align-items:center !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin:0 !important;
  border-radius:18px 18px 0 0 !important;
  padding:10px 44px 10px 15px !important;
  position:relative !important;
  z-index:2 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .ride-main-fields,
body.app-shell.dashboard-shell .order-card .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .ride-main-fields{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  padding:12px 14px 10px 16px !important;
  margin:0 !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar + .ride-main-fields,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar + .ride-main-fields{
  padding-top:12px !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card .chip-v2-primary-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row{
  display:grid !important;
  grid-template-columns:64px minmax(0,1fr) !important;
  column-gap:10px !important;
  row-gap:0 !important;
  align-items:start !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin:0 0 9px 0 !important;
  padding:0 !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-time-block,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-time-block{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:64px !important;
  min-width:64px !important;
  max-width:64px !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row > .chip-v2-head{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  padding:0 30px 0 0 !important;
  margin:0 !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card .chip-v2-name-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row .chip-v2-name-row,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row .chip-v2-name-row{
  display:flex !important;
  align-items:flex-start !important;
  gap:6px !important;
  flex-wrap:wrap !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-patient,
body.app-shell.dashboard-shell .order-card .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .chip-v2-primary-row .chip-v2-patient,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .chip-v2-primary-row .chip-v2-patient{
  display:block !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:100% !important;
  width:auto !important;
  color:#f8fbff !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  hyphens:none !important;
  line-height:1.24 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-route,
body.app-shell.dashboard-shell .order-card .chip-v2-route,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-confirmed .chip-v2-route,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-en_route .chip-v2-route,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-in_progress .chip-v2-route,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-completed .chip-v2-route,
body.app-shell.dashboard-shell .order-card.ride-chip--state-confirmed .chip-v2-route,
body.app-shell.dashboard-shell .order-card.ride-chip--state-en_route .chip-v2-route,
body.app-shell.dashboard-shell .order-card.ride-chip--state-in_progress .chip-v2-route,
body.app-shell.dashboard-shell .order-card.ride-chip--state-completed .chip-v2-route{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:6px !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-route .chip-v2-addr,
body.app-shell.dashboard-shell .order-card .chip-v2-route .chip-v2-addr{
  display:grid !important;
  grid-template-columns:36px minmax(0,1fr) !important;
  gap:8px !important;
  align-items:start !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card .ride-expanded-fields,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-confirmed .ride-expanded-fields,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-en_route .ride-expanded-fields,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-in_progress .ride-expanded-fields,
body.app-shell.dashboard-shell .ride-chip-v2:not(.is-ride-collapsed).ride-chip--state-completed .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-confirmed .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-en_route .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-in_progress .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card:not(.is-ride-collapsed).ride-chip--state-completed .ride-expanded-fields{
  display:grid !important;
  gap:8px !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  box-sizing:border-box !important;
  margin:2px 14px 11px 16px !important;
  padding:10px !important;
  overflow:visible !important;
  border:1px solid rgba(255,255,255,.075) !important;
  border-radius:12px !important;
  background:rgba(4,12,24,.30) !important;
}

/* v931: Serienfahrten-Checkbox wiederherstellen und Fahrtart-Footer bündig abschließen.
   Basis bleibt v930: keine Änderung an Sortierung/Markup der Tourkachel-Inhalte.
   Checkbox liegt als dezenter Overlay-Trigger unten rechts: ca. 3 mm rechts, 2 mm unten.
   Der untere Fahrtart-/Richtungsbalken schließt optisch mit dem Kachelrahmen ab. */
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-select-row,
body.app-shell.dashboard-shell .order-card .chip-v2-select-row,
body.app-shell.dashboard-shell .ride-chip-v2.is-ride-collapsed .chip-v2-select-row,
body.app-shell.dashboard-shell .order-card.is-ride-collapsed .chip-v2-select-row{
  position:absolute !important;
  right:11px !important; /* ca. 3 mm */
  bottom:8px !important; /* ca. 2 mm */
  z-index:24 !important;
  width:18px !important;
  height:18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  margin:0 !important;
  min-height:0 !important;
  pointer-events:none !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-select-row:empty,
body.app-shell.dashboard-shell .order-card .chip-v2-select-row:empty{
  display:none !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-select-row .collective-select,
body.app-shell.dashboard-shell .order-card .chip-v2-select-row .collective-select{
  position:static !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  min-height:18px !important;
  margin:0 !important;
  padding:0 !important;
  pointer-events:auto !important;
  opacity:.86 !important;
  border-radius:6px !important;
  background:rgba(3,10,22,.48) !important;
  box-shadow:0 2px 8px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.10) !important;
  transition:opacity .12s ease, transform .12s ease, box-shadow .12s ease, background .12s ease !important;
}
body.app-shell.dashboard-shell .ride-chip-v2:hover .chip-v2-select-row .collective-select,
body.app-shell.dashboard-shell .order-card:hover .chip-v2-select-row .collective-select,
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-select-row .collective-select:focus-within,
body.app-shell.dashboard-shell .order-card .chip-v2-select-row .collective-select:focus-within{
  opacity:1 !important;
  background:rgba(9,18,34,.72) !important;
  box-shadow:0 3px 10px rgba(0,0,0,.34), 0 0 0 2px rgba(96,165,250,.12), inset 0 1px 0 rgba(255,255,255,.13) !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-select-row .collective-select input,
body.app-shell.dashboard-shell .order-card .chip-v2-select-row .collective-select input{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-select-row .collective-select span,
body.app-shell.dashboard-shell .order-card .chip-v2-select-row .collective-select span{
  display:block !important;
  width:13px !important;
  height:13px !important;
  border-radius:4px !important;
  border:1.4px solid rgba(226,242,255,.72) !important;
  background:rgba(8,18,32,.58) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12) !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-select-row .collective-select input:checked + span,
body.app-shell.dashboard-shell .order-card .chip-v2-select-row .collective-select input:checked + span{
  border-color:#93c5fd !important;
  background:linear-gradient(180deg,#3b82f6 0%,#1d4ed8 100%) !important;
  box-shadow:0 0 0 2px rgba(59,130,246,.20), inset 0 1px 0 rgba(255,255,255,.22) !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-select-row .collective-select input:checked + span::after,
body.app-shell.dashboard-shell .order-card .chip-v2-select-row .collective-select input:checked + span::after{
  color:#fff !important;
  font-size:9px !important;
  line-height:12px !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer{
  order:3 !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  align-self:stretch !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:0 0 16px 16px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  background:transparent !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line{
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  border-radius:0 !important;
  box-sizing:border-box !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line .transport-chip,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line .transport-chip,
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line [class*="transport-chip"],
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line [class*="transport-chip"]{
  padding-right:36px !important; /* Platz für die unten rechts liegende Serien-Checkbox */
}

/* v932: Fahrtart-/Richtungsbalken bündig über die komplette Tourkachelbreite.
   Der Balken ist ein echter Kartenabschluss: volle Breite, bündig bis in die unteren
   Rundungen, oberhalb des linken Statusstreifens und mit Platz für die Serien-Checkbox. */
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer{
  position:relative !important;
  z-index:18 !important;
  order:3 !important;
  display:block !important;
  flex:0 0 auto !important;
  align-self:stretch !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 0 16px 16px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  background:transparent !important;
  box-shadow:none !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line{
  position:relative !important;
  z-index:1 !important;
  display:block !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  min-height:28px !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:0 0 16px 16px !important;
  border-top:1px solid rgba(255,255,255,.22) !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(0,0,0,.20),
    0 -1px 12px rgba(0,0,0,.14) !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line::after,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line::after{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  pointer-events:none !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.05) 42%, rgba(0,0,0,.10) 100%) !important;
  opacity:.85 !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line .transport-chip,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line .transport-chip,
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line [class*="transport-chip"],
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line [class*="transport-chip"]{
  position:relative !important;
  z-index:2 !important;
  display:block !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:7px 42px 7px 18px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  color:#fff !important;
  text-align:center !important;
  line-height:1.2 !important;
}

/* v933: Fahrtart-/Richtungsfooter wirklich über die komplette Tourkachelbreite.
   Der sichtbare Farbverlauf liegt auf .ride-kind-line selbst, nicht auf dem inneren Chip.
   Dadurch endet der Balken bündig an Kartenrand und Rundung; Checkbox bleibt unverändert. */
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer{
  position:relative !important;
  z-index:20 !important;
  flex:0 0 auto !important;
  align-self:stretch !important;
  display:block !important;
  box-sizing:border-box !important;
  /* Falls ältere Regeln/Container den Footer einrücken, wird er bis an die Kartenkante gezogen.
     Die Karte clippt wegen overflow:hidden sauber auf die Rundung. */
  width:calc(100% + 36px) !important;
  min-width:calc(100% + 36px) !important;
  max-width:none !important;
  margin:0 -18px 0 -18px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 0 16px 16px !important;
  overflow:hidden !important;
  background:transparent !important;
  box-shadow:none !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line{
  position:relative !important;
  z-index:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-width:100% !important;
  max-width:none !important;
  min-height:30px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-top:1px solid rgba(255,255,255,.22) !important;
  border-radius:0 0 16px 16px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.24),
    0 -1px 12px rgba(0,0,0,.16) !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line.ride-kind-line--outbound,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line.ride-kind-line--outbound,
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line[data-ride-direction="outbound"],
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line[data-ride-direction="outbound"]{
  background:
    linear-gradient(90deg,#1e3a8a 0%,#315bdc 54%,#5d78ff 100%) !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line.ride-kind-line--return,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line.ride-kind-line--return,
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line[data-ride-direction="return"],
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line[data-ride-direction="return"]{
  background:
    linear-gradient(90deg,#075985 0%,#0e7490 52%,#14b8a6 100%) !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line::after,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line::after{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  pointer-events:none !important;
  z-index:1 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.07) 44%, rgba(0,0,0,.10) 100%),
    linear-gradient(100deg, transparent 0%, rgba(255,255,255,.12) 56%, transparent 72%) !important;
  opacity:.82 !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line .transport-chip,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line .transport-chip,
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line .transport-chip--kind,
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line .transport-chip--kind,
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-kind-footer .ride-kind-line [class*="transport-chip"],
body.app-shell.dashboard-shell .order-card .chip-v2-kind-footer .ride-kind-line [class*="transport-chip"]{
  position:relative !important;
  z-index:2 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:7px 46px 7px 22px !important;
  box-sizing:border-box !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  color:#ffffff !important;
  text-align:center !important;
  text-transform:uppercase !important;
  font-size:.66rem !important;
  font-weight:900 !important;
  letter-spacing:.045em !important;
  line-height:1.18 !important;
  text-shadow:0 1px 2px rgba(0,0,0,.42) !important;
}

/* v934: Unterer Fahrtart-/Richtungsbalken als echter Vollbreitenabschluss.
   Betrifft sowohl die Modulstruktur (.chip-v2-kind-footer) als auch ältere direkte
   .ride-kind-line-Ausgabe aus dashboard.js. Der sichtbare Verlauf liegt auf der
   kompletten Kartenbreite; der Text ist nur Inhalt, kein eigener Pill-Hintergrund. */
body.app-shell.dashboard-shell .ride-chip-v2,
body.app-shell.dashboard-shell .order-card{
  overflow:hidden !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 > .ride-kind-line,
body.app-shell.dashboard-shell .order-card > .ride-kind-line,
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-kind-footer,
body.app-shell.dashboard-shell .order-card > .chip-v2-kind-footer{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  z-index:20 !important;
  display:block !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 0 16px 16px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  background:transparent !important;
  box-shadow:none !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-kind-footer > .ride-kind-line,
body.app-shell.dashboard-shell .order-card > .chip-v2-kind-footer > .ride-kind-line,
body.app-shell.dashboard-shell .ride-chip-v2 > .ride-kind-line,
body.app-shell.dashboard-shell .order-card > .ride-kind-line{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  min-height:30px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-top:1px solid rgba(255,255,255,.24) !important;
  border-radius:0 0 16px 16px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.28),
    0 -1px 12px rgba(0,0,0,.16) !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 > .ride-kind-line.ride-kind-line--outbound,
body.app-shell.dashboard-shell .order-card > .ride-kind-line.ride-kind-line--outbound,
body.app-shell.dashboard-shell .ride-chip-v2 > .ride-kind-line[data-ride-direction="outbound"],
body.app-shell.dashboard-shell .order-card > .ride-kind-line[data-ride-direction="outbound"],
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-kind-footer > .ride-kind-line.ride-kind-line--outbound,
body.app-shell.dashboard-shell .order-card > .chip-v2-kind-footer > .ride-kind-line.ride-kind-line--outbound,
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-kind-footer > .ride-kind-line[data-ride-direction="outbound"],
body.app-shell.dashboard-shell .order-card > .chip-v2-kind-footer > .ride-kind-line[data-ride-direction="outbound"]{
  background:linear-gradient(135deg,#182f7c 0%,#2757d8 54%,#7c8cff 100%) !important;
  background-image:linear-gradient(135deg,#182f7c 0%,#2757d8 54%,#7c8cff 100%) !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 > .ride-kind-line.ride-kind-line--return,
body.app-shell.dashboard-shell .order-card > .ride-kind-line.ride-kind-line--return,
body.app-shell.dashboard-shell .ride-chip-v2 > .ride-kind-line[data-ride-direction="return"],
body.app-shell.dashboard-shell .order-card > .ride-kind-line[data-ride-direction="return"],
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-kind-footer > .ride-kind-line.ride-kind-line--return,
body.app-shell.dashboard-shell .order-card > .chip-v2-kind-footer > .ride-kind-line.ride-kind-line--return,
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-kind-footer > .ride-kind-line[data-ride-direction="return"],
body.app-shell.dashboard-shell .order-card > .chip-v2-kind-footer > .ride-kind-line[data-ride-direction="return"]{
  background:linear-gradient(135deg,#083f63 0%,#087a92 54%,#1cc8c1 100%) !important;
  background-image:linear-gradient(135deg,#083f63 0%,#087a92 54%,#1cc8c1 100%) !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 > .ride-kind-line::after,
body.app-shell.dashboard-shell .order-card > .ride-kind-line::after,
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-kind-footer > .ride-kind-line::after,
body.app-shell.dashboard-shell .order-card > .chip-v2-kind-footer > .ride-kind-line::after{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  pointer-events:none !important;
  z-index:1 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,.06) 48%, rgba(0,0,0,.12) 100%),
    linear-gradient(100deg, transparent 0%, rgba(255,255,255,.13) 55%, transparent 73%) !important;
  opacity:.86 !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 > .ride-kind-line .transport-chip,
body.app-shell.dashboard-shell .order-card > .ride-kind-line .transport-chip,
body.app-shell.dashboard-shell .ride-chip-v2 > .ride-kind-line [class*="transport-chip"],
body.app-shell.dashboard-shell .order-card > .ride-kind-line [class*="transport-chip"],
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-kind-footer > .ride-kind-line .transport-chip,
body.app-shell.dashboard-shell .order-card > .chip-v2-kind-footer > .ride-kind-line .transport-chip,
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-kind-footer > .ride-kind-line [class*="transport-chip"],
body.app-shell.dashboard-shell .order-card > .chip-v2-kind-footer > .ride-kind-line [class*="transport-chip"]{
  position:relative !important;
  z-index:2 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:1 1 auto !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  height:100% !important;
  margin:0 !important;
  padding:7px 44px 7px 20px !important;
  border:0 !important;
  border-radius:0 !important;
  box-sizing:border-box !important;
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  color:#fff !important;
  text-align:center !important;
  text-transform:uppercase !important;
  font-size:.66rem !important;
  font-weight:900 !important;
  letter-spacing:.045em !important;
  line-height:1.18 !important;
  text-shadow:0 1px 2px rgba(0,0,0,.46) !important;
}

/* v935: Normale Tourkacheln an die stimmigere Breitenlogik der Fahrerstatus-Kacheln angleichen.
   Nur Geometrie/Innenbreite; keine Sortierung, keine Status-/Fachlogik. */
body.app-shell.dashboard-shell .ride-chip-v2:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed),
body.app-shell.dashboard-shell .order-card:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed){
  padding:0 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .ride-main-fields,
body.app-shell.dashboard-shell .order-card:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .ride-main-fields,
body.app-shell.dashboard-shell .ride-chip-v2:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed).is-ride-collapsed .ride-main-fields,
body.app-shell.dashboard-shell .order-card:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed).is-ride-collapsed .ride-main-fields{
  padding:12px 12px 9px 12px !important;
  gap:9px !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .chip-v2-primary-row,
body.app-shell.dashboard-shell .order-card:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .chip-v2-primary-row{
  grid-template-columns:64px minmax(0,1fr) !important;
  gap:10px !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .chip-v2-primary-row > .chip-v2-head,
body.app-shell.dashboard-shell .order-card:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .chip-v2-primary-row > .chip-v2-head{
  padding-right:30px !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .chip-v2-route,
body.app-shell.dashboard-shell .order-card:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .chip-v2-route{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .chip-v2-route .chip-v2-addr,
body.app-shell.dashboard-shell .order-card:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .chip-v2-route .chip-v2-addr{
  grid-template-columns:34px minmax(0,1fr) !important;
  padding:7px 9px !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .ride-expanded-fields,
body.app-shell.dashboard-shell .order-card:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .ride-expanded-fields{
  margin:2px 12px 10px 12px !important;
  width:auto !important;
  max-width:calc(100% - 24px) !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card:not(.ride-chip--state-confirmed):not(.ride-chip--state-en_route):not(.ride-chip--state-in_progress):not(.ride-chip--state-completed) .ride-compact-toggle{
  top:10px !important;
  right:10px !important;
}

/* 936: Checkbox in Tourkachel ohne Schatten darstellen */
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-select-row .collective-select,
body.app-shell.dashboard-shell .order-card .chip-v2-select-row .collective-select,
body.app-shell.dashboard-shell .ride-chip-v2:hover .chip-v2-select-row .collective-select,
body.app-shell.dashboard-shell .order-card:hover .chip-v2-select-row .collective-select,
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-select-row .collective-select:focus-within,
body.app-shell.dashboard-shell .order-card .chip-v2-select-row .collective-select:focus-within{
  box-shadow:none !important;
}
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-select-row .collective-select span,
body.app-shell.dashboard-shell .order-card .chip-v2-select-row .collective-select span,
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-select-row .collective-select input:checked + span,
body.app-shell.dashboard-shell .order-card .chip-v2-select-row .collective-select input:checked + span{
  box-shadow:none !important;
}

/* v938: Abgeschlossene Tourkacheln lesbar und ohne abgeschnittene Namen/Texte.
   Betrifft nur den kompakten Summary-Zustand abgeschlossener Fahrten. */
body.app-shell.dashboard-shell .ride-chip-v2--done,
body.app-shell.dashboard-shell .order-card.ride-chip-v2--done{
  opacity:.88 !important;
  background:linear-gradient(145deg, rgba(20,28,40,.94), rgba(13,20,31,.97)) !important;
  border-color:rgba(148,163,184,.28) !important;
  box-shadow:0 10px 24px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.055) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2--done .ride-chip__summary,
body.app-shell.dashboard-shell .order-card.ride-chip-v2--done .ride-chip__summary,
body.app-shell.dashboard-shell .ride-chip-v2--done .chip-v2-summary,
body.app-shell.dashboard-shell .order-card.ride-chip-v2--done .chip-v2-summary{
  display:grid !important;
  grid-template-columns:64px minmax(0,1fr) !important;
  grid-template-areas:
    "time name"
    "time state" !important;
  align-items:center !important;
  gap:3px 10px !important;
  min-height:54px !important;
  padding:10px 14px 10px 16px !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2--done .ride-chip__summary .time-pill,
body.app-shell.dashboard-shell .order-card.ride-chip-v2--done .ride-chip__summary .time-pill,
body.app-shell.dashboard-shell .ride-chip-v2--done .chip-v2-summary .chip-v2-time-pill,
body.app-shell.dashboard-shell .order-card.ride-chip-v2--done .chip-v2-summary .chip-v2-time-pill{
  grid-area:time !important;
  width:64px !important;
  min-width:64px !important;
  max-width:64px !important;
  min-height:30px !important;
  align-self:center !important;
  justify-self:start !important;
  padding:7px 5px !important;
  border-radius:12px !important;
  background:rgba(96,165,250,.12) !important;
  border:1px solid rgba(148,163,184,.20) !important;
  color:#7dd3fc !important;
  font-weight:850 !important;
  text-align:center !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2--done .ride-chip__summary-name,
body.app-shell.dashboard-shell .order-card.ride-chip-v2--done .ride-chip__summary-name,
body.app-shell.dashboard-shell .ride-chip-v2--done .chip-v2-summary-name,
body.app-shell.dashboard-shell .order-card.ride-chip-v2--done .chip-v2-summary-name{
  grid-area:name !important;
  display:block !important;
  min-width:0 !important;
  max-width:100% !important;
  width:100% !important;
  color:#dbeafe !important;
  font-size:.86rem !important;
  font-weight:800 !important;
  line-height:1.22 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  hyphens:none !important;
}

body.app-shell.dashboard-shell .ride-chip-v2--done .ride-chip__summary-state,
body.app-shell.dashboard-shell .order-card.ride-chip-v2--done .ride-chip__summary-state,
body.app-shell.dashboard-shell .ride-chip-v2--done .chip-v2-done-badge,
body.app-shell.dashboard-shell .order-card.ride-chip-v2--done .chip-v2-done-badge{
  grid-area:state !important;
  justify-self:start !important;
  align-self:start !important;
  max-width:100% !important;
  width:auto !important;
  min-width:0 !important;
  margin-top:1px !important;
  color:#cbd5e1 !important;
  background:rgba(148,163,184,.13) !important;
  border:1px solid rgba(148,163,184,.18) !important;
  border-radius:999px !important;
  padding:2px 8px !important;
  font-size:.62rem !important;
  font-weight:800 !important;
  line-height:1.25 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2--done .ride-chip__summary::after,
body.app-shell.dashboard-shell .order-card.ride-chip-v2--done .ride-chip__summary::after,
body.app-shell.dashboard-shell .ride-chip-v2--done .chip-v2-summary::after,
body.app-shell.dashboard-shell .order-card.ride-chip-v2--done .chip-v2-summary::after{
  display:none !important;
}

/* 943: Zahlungsanzeige in der aufgeklappten Tourkachel */
.chip-v2-payment{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.24);
  background:linear-gradient(135deg, rgba(15,23,42,.92), rgba(30,41,59,.78));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.chip-v2-payment--copay{border-color:rgba(250,204,21,.34);background:linear-gradient(135deg, rgba(83,63,12,.82), rgba(30,41,59,.78));}
.chip-v2-payment--private{border-color:rgba(56,189,248,.35);background:linear-gradient(135deg, rgba(8,47,73,.86), rgba(30,41,59,.78));}
.chip-v2-payment__text{display:grid;gap:2px;min-width:0;color:#e5eefc;}
.chip-v2-payment__text span{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#aebbd0;font-weight:900;}
.chip-v2-payment__text strong{font-size:1rem;color:#fff;white-space:nowrap;}
.chip-v2-payment__edit{appearance:none;border:1px solid rgba(226,232,240,.22);border-radius:999px;background:rgba(15,23,42,.58);color:#eaf2ff;font-size:.72rem;font-weight:900;padding:7px 10px;cursor:pointer;}
.chip-v2-payment__edit:hover{background:rgba(30,41,59,.92);border-color:rgba(226,232,240,.38);}

/* v946: Zahlungsstatus in der Tourkachel auch für Privatfahrten lesbar anzeigen */
.chip-v2-payment__text em{
  font-style:normal;
  font-size:.74rem;
  color:#c9d8ee;
  font-weight:800;
  letter-spacing:.01em;
}

/* 948: Uhrzeit direkt in der Tourkachel bearbeitbar – gleiche Optik wie Zeit-Pill */
body.app-shell.dashboard-shell .chip-v2-time-pill--editable{
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  font:inherit;
  line-height:1;
  text-align:center;
}
body.app-shell.dashboard-shell .chip-v2-time-pill--editable:hover{
  filter:brightness(1.08);
  transform:translateY(-1px);
}
body.app-shell.dashboard-shell .chip-v2-time-pill--editable:focus-visible{
  outline:2px solid rgba(125,211,252,.72);
  outline-offset:2px;
}


/* 955 – Tourkachel-Aktionen sauber zweizeilig anordnen
   Ziel: keine aus der Kachel laufenden Buttons. Oben Bearbeiten + Patientendaten,
   darunter weitere Aktionen wie Freigeben/Sperren/Lösen/Stornieren. */
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-actions,
body.app-shell.dashboard-shell .order-card .chip-v2-actions{
  width:100% !important;
  box-sizing:border-box !important;
  padding:8px 10px 10px 10px !important;
  margin:0 !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-btn-group,
body.app-shell.dashboard-shell .order-card .chip-v2-btn-group{
  width:100% !important;
  max-width:100% !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:6px !important;
  align-items:stretch !important;
  flex:1 1 auto !important;
  min-width:0 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-btn-group .mini-btn,
body.app-shell.dashboard-shell .order-card .chip-v2-btn-group .mini-btn{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  min-height:30px !important;
  padding:6px 8px !important;
  box-sizing:border-box !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  line-height:1.15 !important;
  font-size:.65rem !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-btn-group .mini-btn[data-action="open"],
body.app-shell.dashboard-shell .order-card .chip-v2-btn-group .mini-btn[data-action="open"]{
  grid-column:1 !important;
  grid-row:1 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-btn-group .mini-btn[data-action="patient-edit"],
body.app-shell.dashboard-shell .order-card .chip-v2-btn-group .mini-btn[data-action="patient-edit"]{
  grid-column:2 !important;
  grid-row:1 !important;
}

/* Weitere Aktionen bleiben in der zweiten Zeile und laufen nicht aus der Kachel. */
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-btn-group .mini-btn[data-action="driverrelease"],
body.app-shell.dashboard-shell .order-card .chip-v2-btn-group .mini-btn[data-action="driverrelease"],
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-btn-group .mini-btn[data-action="lock"],
body.app-shell.dashboard-shell .order-card .chip-v2-btn-group .mini-btn[data-action="lock"],
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-btn-group .mini-btn[data-action="reopen"],
body.app-shell.dashboard-shell .order-card .chip-v2-btn-group .mini-btn[data-action="reopen"],
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-btn-group .mini-btn[data-action="cancel"],
body.app-shell.dashboard-shell .order-card .chip-v2-btn-group .mini-btn[data-action="cancel"]{
  grid-row:auto !important;
}

@media (max-width:680px){
  body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-btn-group,
  body.app-shell.dashboard-shell .order-card .chip-v2-btn-group{
    grid-template-columns:1fr !important;
  }
  body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-btn-group .mini-btn[data-action="open"],
  body.app-shell.dashboard-shell .order-card .chip-v2-btn-group .mini-btn[data-action="open"],
  body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-btn-group .mini-btn[data-action="patient-edit"],
  body.app-shell.dashboard-shell .order-card .chip-v2-btn-group .mini-btn[data-action="patient-edit"]{
    grid-column:auto !important;
    grid-row:auto !important;
  }
}

/* Fahrerstatus: Am Ziel angekommen */
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest{
  --driver-status-accent:#38bdf8;
  --driver-status-strong:#0284c7;
  --driver-status-deep:#082f49;
  border-color:rgba(56,189,248,.45)!important;
}

/* v994: ARRIVED_DEST exakt an CONFIRMED/EN_ROUTE/IN_PROGRESS-Statusband angleichen.
   Diese Datei wird nach app.css geladen; deshalb muss die Korrektur hier am Ende stehen. */
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest{
  --driver-status-accent:#38bdf8 !important;
  --ride-accent:#38bdf8 !important;
  --ride-accent-soft:rgba(56,189,248,.23) !important;
  --ride-card-bg-1:#123140 !important;
  --ride-card-bg-2:#061722 !important;
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  border-radius:16px !important;
  border-color:color-mix(in srgb, var(--driver-status-accent) 34%, rgba(180,207,238,.18)) !important;
  background:
    radial-gradient(120% 85% at 0% 0%, color-mix(in srgb, var(--driver-status-accent) 24%, transparent) 0%, transparent 46%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--driver-status-accent) 13%, var(--ride-card-bg-1)) 0%,
      var(--ride-card-bg-2) 100%) !important;
  box-shadow:
    0 18px 36px rgba(0,0,0,.31),
    0 0 0 1px color-mix(in srgb, var(--driver-status-accent) 13%, transparent) inset,
    0 1px 0 rgba(255,255,255,.055) inset !important;
}

body.app-shell.dashboard-shell .driver-bar--arrived_dest{
  --driver-status-accent:#38bdf8 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest .chip-v2-status-bar,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest .chip-v2-status-bar{
  order:0 !important;
  position:relative !important;
  inset:auto !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  transform:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  min-height:42px !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:10px 44px 10px 15px !important;
  border:0 !important;
  border-radius:0 !important;
  border-bottom:1px solid color-mix(in srgb, var(--driver-status-accent) 40%, rgba(255,255,255,.14)) !important;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--driver-status-accent) 78%, #0f172a) 0%,
      color-mix(in srgb, var(--driver-status-accent) 42%, #111827) 48%,
      rgba(15,23,42,.86) 100%),
    radial-gradient(circle at 14% -35%, rgba(255,255,255,.34) 0, transparent 46%) !important;
  color:#ffffff !important;
  overflow:hidden !important;
  z-index:3 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest .chip-v2-status-bar::after,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest .chip-v2-status-bar::after{
  content:'' !important;
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:0 !important;
  height:46% !important;
  pointer-events:none !important;
  border-radius:0 !important;
  background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)) !important;
  opacity:.72 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest .chip-v2-status-bar__dot{
  position:relative !important;
  z-index:1 !important;
  display:block !important;
  flex:0 0 9px !important;
  width:9px !important;
  height:9px !important;
  min-width:9px !important;
  min-height:9px !important;
  margin:0 !important;
  border-radius:999px !important;
  background:#ffffff !important;
  box-shadow:0 0 0 4px rgba(255,255,255,.13), 0 0 16px rgba(255,255,255,.48) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest .chip-v2-status-bar__label{
  position:relative !important;
  z-index:1 !important;
  display:block !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
  color:#ffffff !important;
  font-size:.79rem !important;
  font-weight:900 !important;
  line-height:1.24 !important;
  letter-spacing:.005em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  word-break:normal !important;
  text-shadow:0 1px 2px rgba(0,0,0,.45) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest .chip-v2-status-bar + .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest .chip-v2-status-bar + .ride-main-fields{
  order:1 !important;
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  padding:12px 14px 10px 16px !important;
  margin:0 !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest .ride-compact-toggle{
  top:10px !important;
  right:10px !important;
  z-index:20 !important;
}

/* v995: ARRIVED_DEST darf nicht als Sonderlayout laufen.
   Der Statusbalken wird über die tatsächlich gerenderte Balkenklasse fixiert,
   nicht nur über die Karten-Statusklasse. Damit greift die Korrektur auch dann,
   wenn die Elternklasse abweicht oder durch ältere Renderer nicht gesetzt wird. */
body.app-shell.dashboard-shell .ride-chip-v2:has(> .chip-v2-status-bar.driver-bar--arrived_dest),
body.app-shell.dashboard-shell .order-card:has(> .chip-v2-status-bar.driver-bar--arrived_dest),
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest{
  --driver-status-accent:#60a5fa !important;
  --driver-status-strong:#2563eb !important;
  --driver-status-deep:#172554 !important;
  padding:0 !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  border-radius:16px !important;
}

body.app-shell.dashboard-shell .chip-v2-status-bar.driver-bar--arrived_dest{
  order:0 !important;
  position:relative !important;
  inset:auto !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  transform:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  min-height:42px !important;
  margin:0 !important;
  padding:10px 44px 10px 15px !important;
  box-sizing:border-box !important;
  border:0 !important;
  border-radius:0 !important;
  border-bottom:1px solid rgba(96,165,250,.25) !important;
  background:rgba(59,130,246,.14) !important;
  color:#93c5fd !important;
  overflow:hidden !important;
  box-shadow:none !important;
  z-index:3 !important;
}

body.app-shell.dashboard-shell .chip-v2-status-bar.driver-bar--arrived_dest::after{
  content:none !important;
  display:none !important;
}

body.app-shell.dashboard-shell .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__dot{
  position:relative !important;
  z-index:1 !important;
  display:block !important;
  flex:0 0 8px !important;
  width:8px !important;
  height:8px !important;
  min-width:8px !important;
  min-height:8px !important;
  margin:0 !important;
  border-radius:999px !important;
  background:#60a5fa !important;
  box-shadow:0 0 7px rgba(96,165,250,.8) !important;
}

body.app-shell.dashboard-shell .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__label{
  position:relative !important;
  z-index:1 !important;
  display:block !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
  color:#ffffff !important;
  font-size:.79rem !important;
  font-weight:900 !important;
  line-height:1.24 !important;
  letter-spacing:.005em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  word-break:normal !important;
  text-shadow:0 1px 2px rgba(0,0,0,.55) !important;
}

body.app-shell.dashboard-shell .chip-v2-status-bar.driver-bar--arrived_dest + .ride-main-fields{
  order:1 !important;
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  padding:12px 14px 10px 16px !important;
  margin:0 !important;
  overflow:visible !important;
}

body.app-shell.dashboard-shell .ride-chip-v2:has(> .chip-v2-status-bar.driver-bar--arrived_dest) .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card:has(> .chip-v2-status-bar.driver-bar--arrived_dest) .ride-compact-toggle,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest .ride-compact-toggle{
  top:10px !important;
  right:10px !important;
  z-index:20 !important;
}

/* v996: ARRIVED_DEST final exakt wie die bestehenden Fahrerstatus-Köpfe ausrichten.
   Wichtig: Diese Regeln stehen NACH allen älteren Sonderregeln (v993-v995),
   damit der Statusbalken nicht mehr nach links/oben ausbrechen kann. */
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest{
  position:relative !important;
  overflow:hidden !important;
  padding:0 12px 8px 12px !important;
  display:flex !important;
  flex-direction:column !important;
  border-radius:16px !important;
  --driver-status-accent:#60a5fa !important;
  --driver-status-strong:#2563eb !important;
  --driver-status-deep:#102a4f !important;
  background:
    radial-gradient(120% 75% at 0% 0%, color-mix(in srgb, var(--driver-status-accent) 20%, transparent) 0%, transparent 50%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--driver-status-deep) 74%, #0b1220) 0%,
      #07111d 100%) !important;
  border-color:color-mix(in srgb, var(--driver-status-accent) 34%, rgba(255,255,255,.12)) !important;
  box-shadow:
    0 18px 36px rgba(0,0,0,.34),
    0 0 0 1px color-mix(in srgb, var(--driver-status-accent) 18%, transparent) inset,
    inset 0 1px 0 rgba(255,255,255,.06) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived_dest,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived_dest,
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-status-bar.driver-bar--arrived_dest,
body.app-shell.dashboard-shell .order-card > .chip-v2-status-bar.driver-bar--arrived_dest{
  order:-10 !important;
  position:relative !important;
  inset:auto !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  transform:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:9px !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:38px !important;
  box-sizing:border-box !important;
  margin:0 -12px 10px -12px !important;
  padding:9px 42px 9px 14px !important;
  border:0 !important;
  border-radius:0 !important;
  border-bottom:1px solid color-mix(in srgb, var(--driver-status-accent) 42%, rgba(255,255,255,.16)) !important;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--driver-status-strong) 92%, #0f172a) 0%,
      color-mix(in srgb, var(--driver-status-accent) 54%, #101827) 56%,
      rgba(15,23,42,.92) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 8px 18px rgba(0,0,0,.16) !important;
  color:#fff !important;
  overflow:hidden !important;
  z-index:2 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-status-bar.driver-bar--arrived_dest::after,
body.app-shell.dashboard-shell .order-card > .chip-v2-status-bar.driver-bar--arrived_dest::after{
  content:'' !important;
  position:absolute !important;
  inset:0 !important;
  height:auto !important;
  border-radius:0 !important;
  pointer-events:none !important;
  background:
    radial-gradient(circle at 12% -30%, rgba(255,255,255,.35) 0%, transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 48%) !important;
  opacity:.72 !important;
  display:block !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .order-card > .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__dot{
  position:relative !important;
  z-index:1 !important;
  display:block !important;
  flex:0 0 8px !important;
  width:8px !important;
  height:8px !important;
  min-width:8px !important;
  min-height:8px !important;
  margin:0 !important;
  border-radius:999px !important;
  background:#fff !important;
  box-shadow:0 0 0 4px rgba(255,255,255,.13), 0 0 14px rgba(255,255,255,.46) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card > .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__label{
  position:relative !important;
  z-index:1 !important;
  display:block !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
  color:#fff !important;
  font-size:.78rem !important;
  line-height:1.22 !important;
  font-weight:950 !important;
  letter-spacing:-.01em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  text-shadow:0 1px 2px rgba(0,0,0,.45) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .ride-main-fields,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .ride-main-fields{
  display:grid !important;
  grid-template-columns:62px minmax(0,1fr) !important;
  grid-template-areas:
    "time head"
    "route route" !important;
  gap:7px 9px !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest .ride-compact-toggle,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest .ride-compact-toggle{
  top:10px !important;
  right:10px !important;
  z-index:20 !important;
}

/* v997: ARRIVED_DEST - Statuspunkt wie bei den anderen Fahrerstatusmeldungen einrücken.
   Die Höhe aus v996 bleibt unverändert; korrigiert wird nur die linke Position von Punkt und Text. */
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__dot{
  margin-left:14px !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest .chip-v2-status-bar.driver-bar--arrived_dest,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest .chip-v2-status-bar.driver-bar--arrived_dest,
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar.driver-bar--arrived_dest,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar.driver-bar--arrived_dest{
  padding-left:0 !important;
}


/* v998: ARRIVED_DEST Textumbruch nach Komma und Punkt sauber einrücken.
   Grundlage: Nutzerwunsch, den Status als zwei Zeilen darzustellen. */
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived_dest,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived_dest,
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-status-bar.driver-bar--arrived_dest,
body.app-shell.dashboard-shell .order-card > .chip-v2-status-bar.driver-bar--arrived_dest{
  padding-left:14px !important;
  padding-top:8px !important;
  padding-bottom:8px !important;
  gap:9px !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__dot{
  margin-left:0 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .ride-chip-v2 .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card .chip-v2-status-bar.driver-bar--arrived_dest .chip-v2-status-bar__label{
  white-space:pre-line !important;
}

/* v1000: ARRIVED_DEST nutzt ab jetzt das funktionierende CONFIRMED-Statusband.
   Entscheidend: keine driver-bar--arrived_dest-Sonderpositionierung mehr.
   Der Punkt wird wie bei bestätigten Fahrten normal im Balkenfluss gesetzt. */
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual,
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-status-bar.driver-bar--arrived-visual,
body.app-shell.dashboard-shell .order-card > .chip-v2-status-bar.driver-bar--arrived-visual{
  order:-10 !important;
  position:relative !important;
  inset:auto !important;
  transform:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:9px !important;
  width:auto !important;
  min-width:0 !important;
  min-height:38px !important;
  box-sizing:border-box !important;
  margin:0 -12px 10px -12px !important;
  padding:8px 42px 8px 16px !important;
  border:0 !important;
  border-radius:0 !important;
  border-bottom:1px solid color-mix(in srgb, #60a5fa 42%, rgba(255,255,255,.16)) !important;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, #2563eb 92%, #0f172a) 0%,
      color-mix(in srgb, #60a5fa 54%, #101827) 56%,
      rgba(15,23,42,.92) 100%) !important;
  color:#fff !important;
  overflow:hidden !important;
  z-index:5 !important;
}
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-status-bar.driver-bar--arrived-visual .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .order-card > .chip-v2-status-bar.driver-bar--arrived-visual .chip-v2-status-bar__dot{
  position:relative !important;
  display:block !important;
  flex:0 0 8px !important;
  width:8px !important;
  height:8px !important;
  min-width:8px !important;
  min-height:8px !important;
  margin:0 !important;
  border-radius:999px !important;
  background:#fff !important;
  box-shadow:0 0 0 4px rgba(255,255,255,.13),0 0 14px rgba(255,255,255,.46) !important;
  z-index:6 !important;
}
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .ride-chip-v2 > .chip-v2-status-bar.driver-bar--arrived-visual .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card > .chip-v2-status-bar.driver-bar--arrived-visual .chip-v2-status-bar__label{
  position:relative !important;
  display:block !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  color:#fff !important;
  font-size:.78rem !important;
  line-height:1.18 !important;
  font-weight:950 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  z-index:6 !important;
}

/* v1001: ARRIVED_DEST exakt wie die funktionierenden Fahrerstatus-Balken.
   Keine gekürzte Leiste, keine negative Margin, keine Sonderverschiebung.
   Die Leiste bleibt volle Kachelbreite; Punkt und Text sitzen innerhalb des Balkens. */
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest{
  padding:0 !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  border-radius:16px !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--confirmed.driver-bar--arrived-visual,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--confirmed.driver-bar--arrived-visual{
  order:0 !important;
  position:relative !important;
  inset:auto !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  transform:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  flex:0 0 auto !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  min-height:42px !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:10px 44px 10px 15px !important;
  border:0 !important;
  border-radius:0 !important;
  border-bottom:1px solid color-mix(in srgb, var(--driver-status-accent, #60a5fa) 42%, rgba(255,255,255,.16)) !important;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--driver-status-strong, #2563eb) 92%, #0f172a) 0%,
      color-mix(in srgb, var(--driver-status-accent, #60a5fa) 54%, #101827) 56%,
      rgba(15,23,42,.92) 100%) !important;
  color:#fff !important;
  overflow:hidden !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 8px 18px rgba(0,0,0,.16) !important;
  z-index:2 !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual::after,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual::after,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--confirmed.driver-bar--arrived-visual::after,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--confirmed.driver-bar--arrived-visual::after{
  content:'' !important;
  position:absolute !important;
  inset:0 !important;
  height:auto !important;
  border-radius:0 !important;
  pointer-events:none !important;
  background:
    radial-gradient(circle at 12% -30%, rgba(255,255,255,.35) 0%, transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 48%) !important;
  opacity:.72 !important;
  display:block !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--confirmed.driver-bar--arrived-visual .chip-v2-status-bar__dot,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--confirmed.driver-bar--arrived-visual .chip-v2-status-bar__dot{
  position:relative !important;
  z-index:3 !important;
  display:block !important;
  flex:0 0 8px !important;
  width:8px !important;
  height:8px !important;
  min-width:8px !important;
  min-height:8px !important;
  margin:0 !important;
  border-radius:999px !important;
  background:#fff !important;
  box-shadow:0 0 0 4px rgba(255,255,255,.13), 0 0 14px rgba(255,255,255,.46) !important;
}

body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--arrived-visual .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .ride-chip-v2.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--confirmed.driver-bar--arrived-visual .chip-v2-status-bar__label,
body.app-shell.dashboard-shell .order-card.ride-chip--state-arrived_dest > .chip-v2-status-bar.driver-bar--confirmed.driver-bar--arrived-visual .chip-v2-status-bar__label{
  position:relative !important;
  z-index:3 !important;
  display:block !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  color:#fff !important;
  font-size:.79rem !important;
  font-weight:900 !important;
  line-height:1.24 !important;
  letter-spacing:.005em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  text-shadow:0 1px 2px rgba(0,0,0,.45) !important;
}

/* v1003: Abgeschlossene Fahrerstatus-Badges in der kompakten Tourkachel nicht abschneiden.
   Der Badge kommt bei abgeschlossenen Fahrerfahrten als .driver-state-badge aus dashboard.js,
   nicht als .chip-v2-done-badge. Deshalb muss er explizit ins Summary-Grid gesetzt werden. */
body.app-shell.dashboard-shell .ride-chip-v2--done .chip-v2-summary .driver-state-badge,
body.app-shell.dashboard-shell .order-card.ride-chip-v2--done .chip-v2-summary .driver-state-badge,
body.app-shell.dashboard-shell .ride-chip-v2--done .chip-v2-summary .driver-state-badge--completed,
body.app-shell.dashboard-shell .order-card.ride-chip-v2--done .chip-v2-summary .driver-state-badge--completed{
  grid-area:state !important;
  justify-self:start !important;
  align-self:start !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  min-width:max-content !important;
  max-width:none !important;
  min-height:18px !important;
  height:auto !important;
  margin:1px 0 0 0 !important;
  padding:3px 9px !important;
  box-sizing:border-box !important;
  border-radius:999px !important;
  background:rgba(148,163,184,.13) !important;
  border:1px solid rgba(148,163,184,.18) !important;
  color:#cbd5e1 !important;
  font-size:.62rem !important;
  font-weight:800 !important;
  line-height:1 !important;
  letter-spacing:.01em !important;
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
