Quarterly report pursuant to Section 13 or 15(d)

Convertible Senior Notes (Details)

v3.8.0.1
Convertible Senior Notes (Details)
$ in Thousands
9 Months Ended
Nov. 01, 2017
Sep. 30, 2017
USD ($)
Dec. 31, 2016
USD ($)
Debt Instrument, Redemption [Line Items]      
Proceeds from convertible senior notes   $ 282,185  
Convertible senior notes maturity date   Jan. 15, 2022  
Convertible senior notes conversion ratio   0.0502537  
Convertible senior notes   $ 282,543 $ 0
Convertible Debt [Member]      
Debt Instrument, Redemption [Line Items]      
Convertible senior notes aggregate principal amount   $ 287,500  
Convertible senior notes interest rate per annum   6.25%  
Over-Allotment Option [Member] | Convertible Debt [Member]      
Debt Instrument, Redemption [Line Items]      
Convertible senior notes aggregate principal amount   $ 37,500  
Subsequent Event [Member]      
Debt Instrument, Redemption [Line Items]      
Reverse stock split, conversion ratio 0.50