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.6.0.2
Provision for Income Taxes - Schedule of major components of deferred tax assets and liabilities (Details) - USD ($)
$ in Thousands
Dec. 31, 2016
Dec. 31, 2015
Deferred tax assets    
Net operating loss carryforwards $ 167,961 $ 91,658
Tax credit carryforwards 21,111 14,204
Allowances and other 27,729 21,802
Stock options 32,986 29,927
Depreciation and amortization 3,704 0
Total deferred tax assets 253,491 157,591
Valuation allowance (200,797) (92,772)
Total deferred tax assets, net of valuation allowance 52,694 64,819
Deferred tax liabilities    
Convertible debt (31,592) (37,580)
Depreciation and amortization (22,360) (27,252)
Total deferred tax liabilities (53,952) (64,832)
Net deferred tax assets (liabilities) $ (1,258) $ (13)