.runhistory {
  padding: 24px;

  &__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;

    h2 { margin: 0; flex: 0; margin-right: auto; }
  }

  &__filter {
    width: 200px;
  }

  &__table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;

    th, td {
      text-align: left;
      padding: 10px 12px;
      border-bottom: 1px solid #e2e8f0;
      font-size: 0.875rem;
    }

    th { background: #f1f5f9; font-weight: 600; }
  }

  &__row {
    cursor: pointer;
    &:hover { background: #f8fafc; }
  }

  &__empty {
    text-align: center;
    color: #94a3b8;
    padding: 24px;
  }
}

.badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;

  &--queued    { background: #e2e8f0; color: #475569; }
  &--running   { background: #dbeafe; color: #1d4ed8; }
  &--success   { background: #dcfce7; color: #16a34a; }
  &--failed    { background: #fee2e2; color: #dc2626; }
  &--cancelled { background: #f1f5f9; color: #64748b; }
}
