Quarterly report pursuant to Section 13 or 15(d)

Income Taxes - Additional Information (Details)

v3.7.0.1
Income Taxes - Additional Information (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2017
Jun. 30, 2017
Jun. 30, 2016
Dec. 31, 2016
Schedule Of Income Taxes [Line Items]        
Effective income tax rate reconciliation (percent)   (19.20%) 41.90%  
Excess tax benefit $ 4,500 $ 2,700    
Cumulative effect of adoption of ASU 2016-09       $ 43,843
Deferred tax assets, net 63,260 63,260   15,665
Deferred tax assets, convertible debt issuance cost 600 600    
Accounting Standards Update 2016-09, Excess Tax Benefit Component        
Schedule Of Income Taxes [Line Items]        
Deferred tax assets, net $ 43,800 $ 43,800    
Deferred tax assets, valuation allowance       300
Accumulated Deficit        
Schedule Of Income Taxes [Line Items]        
Cumulative effect of adoption of ASU 2016-09       43,837
Accumulated Deficit | Accounting Standards Update 2016-09, Excess Tax Benefit Component        
Schedule Of Income Taxes [Line Items]        
Cumulative effect of adoption of ASU 2016-09       $ 43,800