Quarterly report pursuant to Section 13 or 15(d)

Debt Instruments - Summary of the Effective Interest Rate, Contractually Stated Interest Expense and Costs Related to Amortization of Discount for the Notes (Details)

v3.10.0.1
Debt Instruments - Summary of the Effective Interest Rate, Contractually Stated Interest Expense and Costs Related to Amortization of Discount for the Notes (Details) - Convertible debt - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2018
Jun. 30, 2017
Jun. 30, 2018
Jun. 30, 2017
Convertible senior notes due 2020        
Debt Instrument [Line Items]        
Effective interest rate 10.18% 10.18% 10.18% 10.18%
Contractually stated interest expense $ 1,119 $ 1,493 $ 2,629 $ 3,002
Amortization of discount $ 4,043 $ 4,912 $ 9,438 $ 9,799
Convertible senior notes due 2023        
Debt Instrument [Line Items]        
Effective interest rate 10.38%   10.38%  
Contractually stated interest expense $ 347   $ 347  
Amortization of discount $ 979   $ 979