Annual report pursuant to Section 13 and 15(d)

Provision for Income Taxes - Schedule of major components of deferred tax assets and liabilities (Details)

v3.8.0.1
Provision for Income Taxes - Schedule of major components of deferred tax assets and liabilities (Details) - USD ($)
$ in Thousands
Dec. 31, 2017
Dec. 31, 2016
Deferred tax assets    
Net operating loss carryforwards $ 245,442 $ 167,961
Tax credit carryforwards 31,575 21,111
Allowances and other 15,293 27,729
Stock options 20,162 32,986
Depreciation and amortization 5,746 3,704
Total deferred tax assets 318,218 253,491
Valuation allowance (302,298) (200,797)
Total deferred tax assets, net of valuation allowance 15,920 52,694
Deferred tax liabilities    
Convertible debt (16,348) (31,592)
Depreciation and amortization 0 (22,360)
Total deferred tax liabilities (16,348) (53,952)
Net deferred tax liabilities $ (428) $ (1,258)