XML 86 R63.htm IDEA: XBRL DOCUMENT v3.8.0.1
Income taxes, Net deferred tax asset (liability) and tax credit carryforwards (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Net deferred tax asset (liability) [Abstract]    
Federal losses carryforward $ 1,603 $ 4,130
State losses carryforward 17,234 13,682
Research and development carryforward 3,534 3,647
Scientific research and experimental development credit carryforward 16,493 16,594
Stock compensation 5,344 8,389
Foreign deferrals 34,072 58,647
Inventory reserves 1,607 2,273
Other 3,889 5,569
Deferred tax asset 83,776 112,931
Fixed assets (23,121) (30,728)
Intangible assets (2,229) (5,882)
Other (10,451) (16,047)
Deferred tax liability (35,801) (52,657)
Valuation allowance (45,141) (54,178)
Net deferred tax (liabilities)/ asset 2,834 6,096
Operating Loss Carryforwards [Line Items]    
Deferred tax assets, valuation allowance 45,141 54,178
Research and Development Tax Credit [Member]    
Tax Credit Carryforward [Line Items]    
Tax credit carryforward, amount $ 3,500  
Tax credit carryforwards, expiration date Dec. 31, 2024  
Manitoba Scientific Research And Experimental Development [Member]    
Tax Credit Carryforward [Line Items]    
Tax credit carryforward, amount $ 16,500  
Tax credit carryforwards, expiration date Dec. 31, 2025  
U.S. Federal Tax Authority [Member]    
Net deferred tax asset (liability) [Abstract]    
Valuation allowance $ 0  
Operating Loss Carryforwards [Line Items]    
Deferred tax liabilities, net (13,100) (18,300)
Net operating loss carryforwards $ 7,600  
Operating loss carryforwards, expiration year Dec. 31, 2027  
Deferred tax assets, valuation allowance $ 0  
State and Local Jurisdiction [Member]    
Net deferred tax asset (liability) [Abstract]    
Valuation allowance (193,500)  
Operating Loss Carryforwards [Line Items]    
Net operating loss carryforwards 264,100  
Deferred tax assets, valuation allowance 193,500  
Foreign Tax Authority [Member]    
Operating Loss Carryforwards [Line Items]    
Deferred tax assets, net 15,900 $ 24,400
Net operating loss carryforwards $ 168,700  
Period of change in the nature or conduct of business following change in ownership 3 years  
U.S. Federal Tax Authority - Tax Effected [Member]    
Operating Loss Carryforwards [Line Items]    
Net operating loss carryforwards $ 1,600  
State and Local Jurisdiction - Tax Effected [Member]    
Net deferred tax asset (liability) [Abstract]    
Valuation allowance (12,600)  
Operating Loss Carryforwards [Line Items]    
Net operating loss carryforwards 17,200  
Deferred tax assets, valuation allowance 12,600  
Canadian Federal Gross [Member]    
Net deferred tax asset (liability) [Abstract]    
Valuation allowance (41,800)  
Operating Loss Carryforwards [Line Items]    
Deferred tax assets, valuation allowance 41,800  
Canadian Federal Tax Effected [Member]    
Net deferred tax asset (liability) [Abstract]    
Valuation allowance (11,300)  
Operating Loss Carryforwards [Line Items]    
Deferred tax assets, valuation allowance 11,300  
Foreign Tax Authority Tax Effected Excluding Canada [Member]    
Net deferred tax asset (liability) [Abstract]    
Valuation allowance (32,500)  
Operating Loss Carryforwards [Line Items]    
Deferred tax assets, valuation allowance 32,500  
Foreign Tax Authority Tax Effected [Member]    
Net deferred tax asset (liability) [Abstract]    
Valuation allowance (32,500)  
Operating Loss Carryforwards [Line Items]    
Deferred tax assets, valuation allowance $ 32,500