/* Zeiterfassung in der Aufgabe, Timer, Abrechnung und gemeinsame Kopf-/Werkzeugleisten. */
.kb-ts-tabs { display: flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 46px; background: var(--kb-surface); border-bottom: 1px solid var(--kb-border); flex-wrap: wrap; }
.kb-ts-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--kb-text-strong); margin-right: 16px; padding: 10px 0; }
.kb-ts-toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--kb-surface); border-bottom: 1px solid var(--kb-border); flex-wrap: wrap; }
.kb-ts { background: var(--kb-bg); }
.kb-ts-elapsed { font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 600; color: var(--kb-text-strong); }
.kb-ts-group td { background: var(--kb-surface-2); }
.kb-ts-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--kb-success); white-space: nowrap; }
.kb-ts-badge .kb-icon { font-size: 13px; }
.kb-link { color: var(--kb-link); text-decoration: none; cursor: pointer; }
.kb-link:hover { color: var(--kb-link-hover); text-decoration: underline; }
.kb-nowrap { white-space: nowrap; }
.kb-icon.is-up svg, .kb-icon.is-down svg { transform: rotate(90deg); }

/* Uhr-Symbol in der Navigationsleiste (nur sichtbar, solange ein Timer läuft) */
.kb-clock { position: relative; }
.kb-clock[hidden] { display: none; }
.kb-clock.is-running::after {
  content: ''; position: absolute; top: 10px; right: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--kb-success); box-shadow: 0 0 0 2px var(--kb-navbar-bg); animation: kb-ts-pulse 1.6s infinite;
}
@keyframes kb-ts-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .kb-clock.is-running::after { animation: none; } }

/* Reiter „Zeiterfassung“ in der Aufgabe */
.kb-task-time .kb-list-wrap { margin: 0; }
.kb-task-time-table { min-width: 620px; }
.kb-task-time-table th:nth-child(1), .kb-task-time-table td:nth-child(1) { width: 150px; }
.kb-task-time-table th:nth-child(2), .kb-task-time-table td:nth-child(2) { width: 170px; }
.kb-task-time-table th:nth-child(4), .kb-task-time-table td:nth-child(4) { width: 110px; }
.kb-task-time-table td:nth-child(5) { width: 1%; white-space: nowrap; text-align: right; }
.kb-task-time-table tr.is-locked td { color: var(--kb-muted); }
.kb-task-time-table tr.is-new td { background: var(--kb-highlight); }
.kb-task-time-table tfoot td { border-top: 2px solid var(--kb-border-strong); font-weight: 600; }
.kb-task-time-table .is-total { font-variant-numeric: tabular-nums; color: var(--kb-text-strong); }
.kb-ts-cell-input {
  width: 100%; box-sizing: border-box; padding: 4px 6px; border: 1px solid transparent; border-radius: 4px;
  background: transparent; color: var(--kb-text-strong); font: inherit;
}
.kb-ts-cell-input.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.kb-ts-cell-input:hover:not(:disabled) { border-color: var(--kb-border); }
.kb-ts-cell-input:focus { outline: none; border-color: var(--kb-link); background: var(--kb-input-bg); }
.kb-ts-row-actions { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.kb-task-time-hint { margin: 10px 0 0; font-size: 12px; }
.kb-task-timer { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.kb-task-timer.is-running { padding: 6px 10px; border-radius: 6px; background: var(--kb-highlight); }
.kb-task-timer .kb-btn { display: inline-flex; align-items: center; gap: 6px; }

/* Abrechnung */
.kb-billing-month { display: inline-block; min-width: 150px; text-align: center; color: var(--kb-text-strong); align-self: center; }
.kb-billing-warning { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; padding: 8px 12px; border-radius: 6px; background: color-mix(in srgb, var(--kb-warning) 15%, transparent); color: var(--kb-text-strong); }
.kb-billing-table td:nth-child(4) { max-width: 360px; }
.kb-ts .kb-list td.is-num, .kb-ts .kb-list th.is-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Standard-Phasen */
.kb-stage-tpl { padding: 16px; max-width: 760px; }
.kb-stage-tpl > p { margin: 0 0 12px; }
