Annual report pursuant to Section 13 and 15(d)

Income Taxes - Narrative (Details)

v3.8.0.1
Income Taxes - Narrative (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Valuation Allowance [Line Items]        
Stock-based compensation deferred tax asset $ 5,043 $ 6,977    
Federal statutory tax rate (as a percent) 35.00% 35.00% 35.00%  
Valuation allowance $ (85,393) $ (43,269) $ (53,199) $ (73,659)
Foreign earnings that will be indefinitely reinvested 105,200      
Liability for income taxes associated with uncertain tax positions 8,700 11,000    
Unrecognized tax benefits that would impact tax rate 8,200 10,700    
Income tax interest and penalties 6,500 6,100 $ 1,400  
Federal        
Valuation Allowance [Line Items]        
Net operating loss carryforwards 283,500 152,700    
State        
Valuation Allowance [Line Items]        
Net operating loss carryforwards 146,200 84,900    
Foreign        
Valuation Allowance [Line Items]        
Net operating loss carryforwards 124,000 56,400    
Domestic Deferred Tax Assets        
Valuation Allowance [Line Items]        
Valuation allowance (59,400) (33,100)    
Foreign Deferred Tax Assets        
Valuation Allowance [Line Items]        
Valuation allowance (26,000) $ (10,200)    
ASU 2016-09        
Valuation Allowance [Line Items]        
Stock-based compensation deferred tax asset $ 1,700