/* === ACTIVITY LOG === */
.act-row {
  display: flex;
  align-items: center;  /* ← alles zentriert */
  gap: 12px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
}

.act-row-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;      /* ← nie kleiner */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-input);
}

/* Feste Breite rechts – verhindert das Springen! */
.act-row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  width: 60px;          /* ← feste Breite für max 2 Buttons */
  justify-content: flex-end;
}

.act-btn {
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, color 0.1s;
  flex-shrink: 0;
}
.act-btn:hover {
  background: var(--bg-input);
  color: var(--text);
}

/* Hauptinhalt */
.act-row-body {
  flex: 1;
  min-width: 0;               /* ← verhindert Overflow-Probleme */
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.act-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
}
.act-row-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-row-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

/* Unterzeile */
.act-row-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1;
}
.act-row-sub-dot { color: var(--border); }
.act-ctx {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-sec);
  font-weight: 500;
}
.act-row-id {
  font-family: monospace;
  font-size: 10px;
  color: var(--text-muted);
}

/* Expand */
.act-expand {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--bg-input);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.act-expand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.act-expand-key {
  color: var(--text-muted);
  font-weight: 600;
  min-width: 80px;
  flex-shrink: 0;
}
.act-expand-val { color: var(--text); }
.act-val-old {
  color: var(--accent);
  background: var(--danger-pale);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: line-through;
}
.act-val-new {
  color: var(--success);
  background: var(--success-pale);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* Rechte Buttons */
.act-row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.act-btn {
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, color 0.1s;
}
.act-btn:hover {
  background: var(--bg-input);
  color: var(--text);
}

/* Desktop */
@media (min-width: 768px) {
  .act-row {
    padding: 10px 0;
    margin: 0;
  }
}

/* === KANBAN BOARD === */
.kanban {
  display: flex; gap: 16px; padding: 0 24px 24px;
  overflow-x: auto; min-height: 400px; align-items: flex-start;
}
.kanban-col {
  flex: 1; min-width: 260px; max-width: 380px;
  background: var(--bg); border-radius: var(--r);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.kanban-col-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.kanban-col-title {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.kanban-col-count {
  background: var(--bg-input); color: var(--text-sec);
  padding: 2px 10px; border-radius: 10px;
  font-size: 12px; font-weight: 700;
}
.kanban-col-body {
  padding: 10px; display: flex; flex-direction: column;
  gap: 8px; min-height: 100px;
}
.kanban-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px;
  cursor: pointer; transition: box-shadow 0.1s, transform 0.1s;
}
.kanban-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.kanban-card-late { border-left: 3px solid var(--accent); }
.kanban-card-hdr {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}
.kanban-card-id { font-size: 13px; font-weight: 700; }
.kanban-card-date { font-size: 11px; color: var(--text-muted); }
.kanban-card-info {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: var(--text-sec); margin-bottom: 8px;
}
.kanban-card-info div { display: flex; align-items: center; gap: 6px; }
.kanban-card-footer {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-muted);
  padding-top: 8px; border-top: 1px solid var(--border);
}
.kanban-empty {
  text-align: center; padding: 30px 16px;
  color: var(--text-muted); font-size: 13px;
}

@media (min-width: 768px) {
  .kanban-col { min-width: 280px; }
}