Long-Term Debt - Convertible Senior Notes (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
May 01, 2020
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Dec. 31, 2019
May 05, 2015
Carrying amount of Notes on the balance sheet:              
Purchases of Convertible Notes       $ (88,961) $ (33,915)    
Convertible Debt              
Carrying amount of Notes on the balance sheet:              
Purchases of Convertible Notes $ (69,200)     (69,242) 0    
Senior Notes              
Debt Instrument [Line Items]              
Stated interest rate             250.00%
Repurchased face amount   $ 89,100 $ 34,300 89,100 34,300    
Repayments of debt       89,000 33,900    
Gain (loss) on extinguishment of debt   0 513 166 711    
Carrying amount of Notes on the balance sheet:              
Convertible senior notes, principal amount   0   0   $ 158,295  
Unamortized debt discount   0   0   (1,667)  
Unamortized debt issuance costs   0   0   (330)  
Convertible senior notes, net   0   0   $ 156,298  
Contractual coupon interest   144 1,064 1,063 2,265    
Debt discount amortization   184 1,321 1,196 2,726    
Amortization of debt issuance costs   36 261 236 539    
Interest expense   $ 364 $ 3,159 $ 2,662 $ 6,241    
Interest on Convertible Debt, Net of Tax $ 900