Annual report pursuant to Section 13 and 15(d)

Debt - Schedule of Convertible Notes (Details)

v3.8.0.1
Debt - Schedule of Convertible Notes (Details) - USD ($)
$ in Thousands
Dec. 31, 2017
May 31, 2017
Dec. 31, 2016
Debt Instrument [Line Items]      
Convertible notes, net $ 281,199   $ 0
Convertible Notes | Convertible Senior Notes Due November 2022      
Debt Instrument [Line Items]      
Principal amount 345,000 $ 345,000  
Unamortized discount (56,557)    
Unamortized debt issuance costs (7,244)    
Convertible notes, net 281,199 282,500  
Equity component, net of issuance costs and deferred tax: $ 61,390 $ 62,500