/* skillomat Zentrale 1.19.0 · Updates: Schätzung mit Quelle, Freigabe vor Schritten, Details je Schritt, Start ohne Warten, Anstöße seitenweise.
   Nur Tokens des Designsystems (app.css), hell und dunkel; 390 px ohne seitliches Scrollen; Trefferflächen ≥ 44 px; Bewegung nur ohne „Bewegung reduzieren“. */

/* Schätzung mit Quelle (Listen, Ablauf) */
.est119 { white-space: nowrap; color: var(--muted); }
.est119.src-own, .est119.src-version, .est119.src-series { color: var(--ink); }
.wprowt small .est119 { display: inline; }

/* Freigabe vor Schritten (Einzelne Welle, Welle bearbeiten, Assistent je Welle) */
.sg119 { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px 10px; margin: 10px 0; min-width: 0; }
.sg119 legend { font-size: 13.5px; font-weight: 500; padding: 0 4px; }
.sg119-row { display: flex; flex-wrap: wrap; gap: 0 14px; }
.sg119-c { min-height: 44px; align-items: center; }
.sg119-waves { display: grid; gap: 4px; }
.sg119sum { margin-top: 6px; }

/* Wartet auf Freigabe – in Liste und Details */
.sw119 { margin-left: 2px; vertical-align: middle; }
.btn.ap119 { margin: 4px 0 0 4px; vertical-align: middle; min-height: 44px; }
.c119 { display: block; min-width: 0; }
.wprowt .ap119 { display: inline-flex; }
.sw119box .btn { margin-top: 4px; }

/* Schaltfläche „Schritte“ in der Zeile einer Umgebung */
.det119b { flex: none; color: var(--muted); }
.det119b:hover { color: var(--ink); background: var(--hover); }
.det119b:focus-visible, .ap119:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.wstep .wplink { min-height: 44px; font-size: 13px; }

/* Start ohne Warten: Ladeanzeige und Hervorhebung der gestarteten Welle */
.ld119 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface2, var(--hover)); font-size: 14px; }
.spin119 { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong, var(--line)); border-top-color: var(--primary); }
:root:not([data-motion="off"]) .spin119 { animation: spin119 .9s linear infinite; }
.hl119 { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: var(--r-sm); }
:root:not([data-motion="off"]) .hl119 { animation: hl119 2.4s var(--mo-ease-out, ease-out) both; }
@keyframes spin119 { to { transform: rotate(360deg); } }
@keyframes hl119 { 0% { outline-color: var(--primary); } 70% { outline-color: var(--primary); } 100% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .spin119, .hl119 { animation: none !important; } }

/* Zeitstrahl: Hinweis auf den gemeinsamen Zustand mit der Liste */
.rt119cap { margin: -4px 0 8px; }

/* Details je Schritt */
dialog.det119 { width: min(980px, calc(100vw - 24px)); }
.det119-sum { margin-bottom: 12px; }
.det119-tw { margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.det119-t { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.det119-t th, .det119-t td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); white-space: normal; overflow-wrap: break-word; hyphens: auto; }
.det119-t thead th { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.det119-t thead th:nth-child(1) { width: 18%; } .det119-t thead th:nth-child(2), .det119-t thead th:nth-child(3) { width: 11%; }
.det119-t thead th:nth-child(4) { width: 9%; } .det119-t thead th:nth-child(5) { width: 15%; } .det119-t thead th:nth-child(7) { width: 17%; }
.det119-t thead th, .det119-t time { white-space: nowrap; }
.det119-t th, .det119-t td { padding-left: 8px; padding-right: 8px; }
.det119-t .pill { white-space: normal; text-align: left; line-height: 1.25; padding-top: 2px; padding-bottom: 2px; }
.det119-t tbody tr:last-child th, .det119-t tbody tr:last-child td { border-bottom: 0; }
.det119-t tbody th { font-weight: 500; }
.det119-t .num { font-variant-numeric: tabular-nums; }
.det119-t tr.st119-running { background: var(--hover); }
.det119-t tr.st119-failed { background: var(--bad-bg); }
.det119-t tr.st119-waiting { background: var(--warn-bg); }
.det119-est small, .det119-n + .pill { display: block; color: var(--muted); }
.det119-n + .pill { display: inline-flex; margin-top: 4px; color: inherit; }
.det119-est small.warnt, .det119-sum .warnt { color: var(--warn); }
html:not([data-theme="dark"]) .det119-est small.warnt, html:not([data-theme="dark"]) .det119-sum .warnt { color: #8a5600; }
.ell119 { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.det119-msg .ell119 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.det119-log summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.det119-log ol { margin: 4px 0 0; padding-left: 22px; font-size: 12.5px; color: var(--muted); max-height: 260px; overflow: auto; }
@media (max-width: 680px) {
  .det119-t, .det119-t tbody, .det119-t tr, .det119-t th, .det119-t td { display: block; width: auto !important; }
  .det119-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .det119-t tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .det119-t tbody tr:last-child { border-bottom: 0; }
  .det119-t th, .det119-t td { border: 0; padding: 3px 12px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
  .det119-t th::before, .det119-t td::before { content: attr(data-l); color: var(--muted); font-weight: 400; font-size: 12.5px; }
}

/* Anstöße: Zusammenfassung je Aufgabe, Liste seitenweise */
.sum119 { margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; }
.sum119 li { align-items: center; padding: 8px 0; }
.sum119 .grow { min-width: 0; }
.sum119-e { flex: none; min-width: 96px; text-align: right; }
.sum119-i.bad b { color: var(--bad); }
.run119-jobs { margin-top: 2px; }
.runs119-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; justify-content: space-between; padding-top: 10px; }
.runs119-foot .btn { min-height: 44px; }
@media (max-width: 520px) { .sum119 li { flex-wrap: wrap; gap: 4px 10px; } .sum119 .grow { flex: 1 1 100%; } .sum119-e { text-align: left; min-width: 0; } }

/* Reiter Aufgaben am Telefon: lange Zustandstexte (z. B. „Noch kein Lauf des Planers gemeldet.“) brechen um statt die Seite zu verbreitern */
@media (max-width: 520px) { .kv dd > .st { white-space: normal; align-items: flex-start; } .kv dd > .st::before { margin-top: 4px; } }
