Quarterly report pursuant to Section 13 or 15(d)

Income Taxes - Additional Information (Details)

v3.8.0.1
Income Taxes - Additional Information (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2017
Jun. 30, 2017
Mar. 31, 2017
Sep. 30, 2017
Sep. 30, 2016
Dec. 31, 2016
Schedule Of Income Taxes [Line Items]            
Effective income tax rate reconciliation (percent)       (82.40%) 43.70%  
Excess tax benefit $ 7,200 $ 4,500 $ 2,700      
Cumulative effect of adoption of ASU 2016-09           $ 43,843
Deferred tax assets, net 69,589     $ 69,589   15,665
Deferred tax assets, convertible debt issuance cost   $ 600        
Accounting Standards Update 2016-09, Excess Tax Benefit Component            
Schedule Of Income Taxes [Line Items]            
Deferred tax assets, net $ 43,800     $ 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