XML 107 R68.htm IDEA: XBRL DOCUMENT v3.19.3.a.u2
DEBT - Long-term debt (Details) - USD ($)
$ in Thousands
Dec. 31, 2019
Dec. 31, 2018
Debt Instrument [Line Items]    
Total carrying amount of debt $ 105,543 $ 109,783
Debt, current (2,884) (28,155)
Long-term debt 102,659 81,628
Convertible Notes | Convertible Senior Note Due 2024    
Debt Instrument [Line Items]    
Long-term debt, gross 132,000 0
Less unamortized discount and issuance costs (35,815) 0
Total carrying amount of debt 96,185 0
Convertible Notes | Convertible Senior Notes Due 2023    
Debt Instrument [Line Items]    
Long-term debt, gross 5,000 65,000
Total carrying amount of debt 4,857 62,639
Less: unamortized issuance costs (143) (2,361)
Secured Debt | Term Loan Agreement, July 2016    
Debt Instrument [Line Items]    
Long-term debt, gross 0 41,524
Less unamortized discount and issuance costs 0 (1,059)
Total carrying amount of debt 0 40,465
Debt, current 0 (25,417)
Financing Receivable | Financing Receivable Recorded as Debt    
Debt Instrument [Line Items]    
Long-term debt, gross 4,501 6,679
Debt, current $ (2,884) $ (2,738)