/* Modul Versandaufträge: Stilregeln, die nur die Versandliste und ihre Akte brauchen (Chips mit Zahl, Auswahlleiste, Status,
   Wartezeit, Karten am Handy). Alles, was jede Arbeitsfläche teilt (af-…, ak-…, abz-…), steht in oo.css – hier nie etwas davon
   überschreiben. Gleiche Marken (Farben, Ecken, Haarlinien) wie in oo.css; Klassen mit der Vorsilbe vs-…
   Eingebunden in Dokument.razor nach oo.css. */

/* ── Status (Schritt des PC-Programms) ─────────────────────────────────────────────────────────────────────────
   „Unterwegs“ in getöntem Blau wie „läuft“ der eBay-Liste (aus den Marken gebildet, hell und dunkel). */
.vs-abz-unterwegs { background: color-mix(in srgb, var(--akzent) 14%, var(--flaeche)); color: color-mix(in srgb, var(--akzent) 72%, var(--tinte-1)); }
.vs-abz-storniert { opacity: .75; }

/* ── Kopfleiste ────────────────────────────────────────────────────────────────────────────────────────────── */
.vs-suchhuelle { display: contents; }
.vs-kopf .ein.vs-zeitraum, .vs-kopf .ein.vs-dienst { flex: 0 1 auto; width: auto; min-width: 0; max-width: 190px; }
.vs-neu { flex: 0 0 auto; }

/* Chips je Schritt mit Zahl: eigene Zeile unter der Kopfleiste (sieben Chips passen sonst neben Suche und Filter nicht).
   ☠️ Nicht af-chips: die blendet oo.css unter 560 px aus. Am Handy seitlich zu wischen. */
.vs-chips { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1px solid var(--linie); overflow-x: auto;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.vs-chips::-webkit-scrollbar { display: none; }
.vs-chip { flex: 0 0 auto; }
.vs-chip .n { color: var(--tinte-4); font-variant-numeric: tabular-nums; }
.vs-chip.gewaehlt .n { color: inherit; }
.vs-chip.vs-ueberfaellig { color: var(--alarm); }
.vs-chip.vs-ueberfaellig.gewaehlt { background: var(--alarm-grund); }
.vs-zuviele { flex: 0 0 auto; }

/* Auswahlleiste: erscheint, sobald etwas markiert ist (Sammelaktionen der PC-Liste). */
.vs-auswahl { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1px solid var(--linie);
  background: color-mix(in srgb, var(--akzent) 6%, var(--flaeche)); flex-wrap: wrap; }
.vs-auswahl-zahl { font-weight: 600; color: var(--tinte-1); margin-right: 4px; }

/* Die Kopfleiste richtet sich nach der Breite der Liste (neben Akte), nicht des Fensters. */
.vs-flaeche > .af-mitte { container-type: inline-size; }
@container (width < 900px) {
  .vs-kopf .af-aufheben span, .vs-neu span { display: none; }
  .vs-kopf .af-suche { flex: 1 1 140px; min-width: 120px; }
}
@container (width < 640px) {
  .vs-kopf { flex-wrap: wrap; row-gap: 6px; }
  .vs-kopf .ein.vs-zeitraum, .vs-kopf .ein.vs-dienst { flex: 1 1 40%; max-width: none; }
  .vs-auswahl .kn span { display: none; }
}

/* ── Liste ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.vs-status-zelle { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.vs-flaeche .af-z .af-c .vs-status-zelle .abz { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-kaestchen { flex: 0 0 auto; margin: 0; width: 14px; height: 14px; accent-color: var(--akzent); cursor: pointer; }
.vs-wartet.vs-stufe-hinweis { color: var(--warn); font-weight: 600; }
.vs-wartet.vs-stufe-kritisch { color: var(--alarm); font-weight: 600; }
.af-c .vs-empf .name { color: var(--tinte-1); }
.af-c .vs-empf .land { color: var(--tinte-4); font-size: 11.5px; }
a.vs-tracking { color: inherit; text-decoration: none; }
a.vs-tracking:hover { text-decoration: underline; }
.af-z.vs-storniert .af-c, .af-z.vs-storniert .af-c .name { color: var(--tinte-5); }
.af-nichts .vs-aufheben { margin-top: 8px; pointer-events: auto; }

/* ── Karten (Handy) ──────────────────────────────────────────────────────────────────────────────────────────
   Je Sendung drei Zeilen in fester Höhe (72 px, VersandTabelle.KartenHoehe): Empfänger und Status; Nummer und Versand;
   Sendungsnummer oder Wartezeit und das Datum. Das Kästchen steht links, die Karte ist die Fläche für den Finger. */
.vs-karte { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.vs-karte .vs-kaestchen { width: 18px; height: 18px; }
.vs-k-links { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.vs-k1, .vs-k2, .vs-k3 { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.vs-k-empf { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--tinte-1); font-weight: 600; }
.vs-k1 .abz { flex: 0 0 auto; }
.vs-k2, .vs-k3 { color: var(--tinte-4); font-size: 12.5px; overflow: hidden; }
.vs-k-datum { margin-left: auto; flex: 0 0 auto; }

/* ── Akte ──────────────────────────────────────────────────────────────────────────────────────────────────── */
.vs-ak-hinweis { margin: 0 0 8px; color: var(--tinte-3); }
.vs-ak-marken, .vs-ak-hinweise { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 3px; }
.vs-ak-marken li { display: flex; align-items: center; gap: 6px; }
.vs-ak-marken li.ok { color: var(--ok); }
.vs-ak-marken li.fehlt { color: var(--warn); }
.vs-ak-hinweise li { color: var(--warn); }
.vs-ak-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-ak-paket { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--linie); }
.vs-ak-paket:last-child { border-bottom: 0; }
.vs-ak-paketnr { font-weight: 600; color: var(--tinte-1); }
.vs-ak-paket a { margin-left: auto; color: inherit; }
.vs-ak-verfolgung p { margin: 0 0 4px; }
.vs-ak-verlauf { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.vs-ak-verlauf li { display: grid; grid-template-columns: 88px 1fr; gap: 8px; }
.vs-ak-fehler { color: var(--alarm); }

/* ── Neuer Versandauftrag (/versand/neu, Vorbild AuftragAuswahlDialog): Liste links, Paketschein rechts ──────────────────────── */
.vn { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 24px; }
.vn-kopf { display: flex; align-items: center; gap: 10px; }
.vn-kopf h1 { margin: 0; font-size: 17px; font-weight: 600; }
.vn-leiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vn-suche { flex: 1 1 320px; min-width: 200px; max-width: 560px; }
.vn-sicht { flex: 0 0 auto; }
.vn-sicht button { padding: 0 12px; }
.vn-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vn-rechte { margin: 0; color: var(--tinte-3); font-size: 12.5px; }
.vn-flaeche { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; min-height: 0; }
.vn-liste { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--linie); border-radius: 3px; background: var(--flaeche); }
.vn-gruppe { padding: 8px 10px 4px; color: var(--tinte-4); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.vn-z { display: grid; grid-template-columns: 30px 64px minmax(0, 1.4fr) minmax(0, 1fr) 54px 92px auto; align-items: center; gap: 8px; min-height: 32px;
  padding: 4px 10px; border: 0; border-top: 1px solid var(--linie); background: transparent; color: var(--tinte-1); text-align: left; font: inherit; cursor: pointer; }
.vn-gruppe + .vn-z { border-top: 0; }
.vn-z:hover { background: var(--flaeche-2); }
.vn-z.vn-gewaehlt { background: var(--auswahl); box-shadow: inset 2px 0 0 var(--akzent); }
.vn-z > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vn-art { color: var(--tinte-4); font-size: 11.5px; font-weight: 600; }
.vn-nr { font-weight: 600; font-variant-numeric: tabular-nums; }
.vn-ort, .vn-datum { color: var(--tinte-3); }
.vn-betrag { text-align: right; font-variant-numeric: tabular-nums; }
.vn-marke { justify-self: end; padding: 1px 6px; border-radius: 3px; background: var(--flaeche-2); color: var(--tinte-4); font-size: 11.5px; }
.vn-marke-warn { color: var(--warn); }
.vn-marke-fehler { color: var(--alarm); }
.vn-leise { color: var(--tinte-4); }
.vn-mehr { align-self: center; margin: 8px; }
.vn-hinweis { margin: 6px 10px 10px; color: var(--warn); }
.vn-laedt { display: flex; align-items: center; gap: 8px; padding: 18px 12px; color: var(--tinte-4); }
.vn-leer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 14px; }
.vn-rechts { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; }
.vn-anlegen { justify-content: center; height: 32px; }
.vn-schein { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--linie); border-radius: 3px; background: var(--flaeche); }
.vn-schein-leer { margin: 0; color: var(--tinte-4); }
.vn-schein-von, .vn-schein-an { display: flex; flex-direction: column; gap: 1px; }
.vn-schein-von { color: var(--tinte-3); font-size: 12px; }
.vn-schein-titel { color: var(--tinte-4); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.vn-schein-an { padding-top: 8px; border-top: 1px dashed var(--linie); }
.vn-an-name { font-size: 14px; }
.vn-plz { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.vn-land { font-weight: 600; letter-spacing: .03em; }
.vn-warn { color: var(--alarm); }
.vn-schein-daten { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 4px 8px; margin: 0; padding-top: 8px; border-top: 1px dashed var(--linie); }
.vn-schein-daten dt { color: var(--tinte-4); font-size: 12px; }
.vn-schein-daten dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.vn-schein-inhalt ul { margin: 0; padding: 0; list-style: none; }
.vn-menge { color: var(--tinte-4); font-variant-numeric: tabular-nums; }
.vn-pruef { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--linie); list-style: none; font-size: 12.5px; }
.vn-pruef li { display: flex; align-items: flex-start; gap: 6px; }
.vn-pruef a { margin-left: auto; white-space: nowrap; }
.vn-pruef-ok { color: var(--ok); }
.vn-pruef-hinweis { color: var(--tinte-3); }
.vn-pruef-warnung { color: var(--warn); }
.vn-pruef-fehler { color: var(--alarm); }
@media (max-width: 900px) {
  .vn { padding: 10px 12px 20px; }
  .vn-flaeche { grid-template-columns: minmax(0, 1fr); }
  .vn-rechts { position: static; }
  .vn-z { grid-template-columns: 28px 56px minmax(0, 1fr) auto; }
  .vn-z .vn-ort, .vn-z .vn-datum, .vn-z .vn-betrag { display: none; }
}
