/* Epic 35 S8 — process admin list / detail chrome (workflow-admin facit). */

.proc-row {
  display: flex;
  align-items: center;
  gap: var(--space-4, 1rem);
  padding: var(--space-4, 1rem) var(--space-5, 1.25rem);
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.proc-row:last-child {
  border-bottom: none;
}

.proc-id {
  flex: 1 1 auto;
  min-width: 0;
}

.proc-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.proc-meta {
  font-size: 0.85rem;
  margin-top: 0.2rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Keep slug readable when the row is narrow — never stack one glyph per line. */
.proc-meta .mono {
  display: inline;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.proc-counts {
  display: flex;
  gap: var(--space-4, 1rem);
  flex: 0 0 auto;
}

.proc-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
  font-size: 0.75rem;
  color: var(--text-muted, #6c757d);
}

.proc-count b {
  font-size: 1.05rem;
  color: var(--text, inherit);
}

.proc-actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.proc-step-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.06));
}

.proc-step-row:last-child {
  border-bottom: none;
}

.proc-step-flags {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
}

.process-list .empty-state,
.card .empty-state {
  text-align: center;
  padding: 2rem 1rem;
}

.empty-state-icon {
  font-size: 2rem;
  opacity: 0.55;
  margin-bottom: 0.5rem;
}

/* Facit mobile: wrap counts/actions under identity so .proc-id keeps full width. */
@media (max-width: 767.98px) {
  .proc-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .proc-id {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }

  .proc-counts {
    flex: 1 1 auto;
  }

  .proc-actions {
    flex-wrap: wrap;
    width: 100%;
  }
}
