/* Planbare Dienste (docs/04 Abschnitt 13): Fenster „Dienste“. Farben aus app.css. */

.dst-fenster { width: min(760px, 96vw); max-height: 88dvh; }
.dst-fenster .modal-body { gap: .6rem; }

.dst-leer { color: var(--muted); font-size: .85rem; padding: .5rem 0; }
.dst-fehler {
  padding: .45rem .6rem; border-radius: var(--radius); font-size: .82rem;
  background: color-mix(in srgb, var(--bad, #e5484d) 18%, transparent); border: 1px solid var(--bad, #e5484d);
}
.dst-gruppe {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  margin-top: .35rem;
}

.dst-karte {
  display: flex; flex-direction: column; gap: .4rem; padding: .6rem .7rem;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  border-left: 4px solid #f4f4f5;
}
.dst-karte.dst-bsw { border-left-color: #e5484d; }
.dst-karte.hervor { box-shadow: 0 0 0 2px var(--accent); }

.dst-kopf { display: flex; align-items: flex-start; gap: .6rem; }
.dst-titel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.dst-ort { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dst-geld { font-family: var(--mono); font-weight: 700; white-space: nowrap; }

.dst-zeit { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .82rem; }
.dst-rest { color: var(--muted); }
.dst-zeit .btn { margin-left: auto; }

.dst-bedarf { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: .8rem; }
.dst-was { font-weight: 600; margin-right: .2rem; }
.dst-bedarf .chip.ok { border-color: var(--ok); color: var(--ok); }
.dst-bedarf .chip.fehlt { border-color: var(--warn, #f4c542); color: var(--warn, #f4c542); }

.dst-lauf { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.dst-lauf b { color: var(--text); }
.dst-balken { flex: 1 1 120px; max-width: 220px; }

.dst-ende { font-size: .82rem; }
.dst-ende .ok { color: var(--ok); }
.dst-ende .fehlt { color: var(--bad, #e5484d); }

.dst-fahrzeuge { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .8rem; }
.dst-fz { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.dst-fz i { color: var(--muted); font-style: normal; }

.dst-wahl {
  display: flex; flex-direction: column; gap: .15rem; max-height: 260px; overflow-y: auto;
  padding: .3rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.dst-alle { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; padding-top: .25rem; }

.dst-knoepfe { display: flex; gap: .4rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  .dst-fenster { width: 100vw; max-height: 100dvh; }
  .dst-ort { white-space: normal; }
  .dst-zeit .btn { margin-left: 0; }
}
