XML 428 R87.htm IDEA: XBRL DOCUMENT v3.22.0.1
DEBT - Components of Debt (Details) - USD ($)
$ in Thousands
Dec. 31, 2021
Dec. 31, 2020
Debt Instrument [Line Items]    
Total carrying amount $ 366,984 $ 437,637
Current portion 71,491 71,025
Non-current portion 295,493 366,612
2019 Notes    
Debt Instrument [Line Items]    
Discount and debt issuance costs 4,500 5,400
2019 Notes | Convertible Senior Notes    
Debt Instrument [Line Items]    
Long-term debt, gross 225,534 224,586
Term Loan    
Debt Instrument [Line Items]    
Long-term debt, gross 140,000 210,000
Other    
Debt Instrument [Line Items]    
Long-term debt, gross $ 1,450 $ 3,051