Income Taxes - Unrecognized Tax Benefits (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Reconciliation of the beginning and ending amount of unrecognized tax benefits      
Unrecognized tax benefits balance at beginning of year $ 437 $ 522 $ 1,033
Reductions for tax positions of prior years (469)   (465)
Reductions for currency translations   (85) (46)
Increases for currency translations 32    
Unrecognized tax benefits balance at end of year   437 $ 522
Deferred tax assets resulting from the exercise of employee stock options, which will be allocated to paid-in capital 100 100  
Pre-change net operating losses that can be used in future years 13,500    
Deferred tax assets, U.S. net operating loss carryforwards $ 115,600    
Unrecognized loss recognition period 5 years    
Unrecognized loss from change in ownership that should be recognized during the recognition period $ 7,600    
Amount of research credit carryforwards subject to IRC Section 382 limitations 1,200    
Un-repatriated foreign earnings 0    
Accrued interest and penalties   400  
Canada      
Reconciliation of the beginning and ending amount of unrecognized tax benefits      
Research and experimental development expenditure carryforwards 16,700    
Canadian ITC credit carryforwards 1,600    
U.S.      
Reconciliation of the beginning and ending amount of unrecognized tax benefits      
Gross deferred tax liability 2,883 5,447  
Net operating loss carryforwards 43,929 27,202  
Foreign      
Reconciliation of the beginning and ending amount of unrecognized tax benefits      
Net operating loss carryforwards 8,624 $ 5,797  
Foreign | Canada      
Reconciliation of the beginning and ending amount of unrecognized tax benefits      
Unused net operating loss carryforwards 13,700    
Federal and state      
Reconciliation of the beginning and ending amount of unrecognized tax benefits      
Unused net operating loss carryforwards 830,000    
Net operating loss carryforwards assumed during acquisition 117,000    
Net operating loss carryforwards generated by the Company subsequent to acquisition 713,000    
Net operating losses not subject to IRC section 382 $ 102,200