XML 78 R66.htm IDEA: XBRL DOCUMENT v3.22.2
DEBT - Schedule of Convertible Senior Notes due in 2025 (Details) - Convertible Notes - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Jun. 30, 2022
Jun. 30, 2021
Notes due 2025        
Debt Instrument [Line Items]        
Contractual interest expense $ 64 $ 64 $ 128 $ 214
Amortization of debt discount 1,088 1,033 2,137 3,422
Amortization of debt issuance costs 123 122 241 416
Total interest cost recognized 1,275 1,219 2,506 4,052
Notes due 2028        
Debt Instrument [Line Items]        
Amortization of debt discount 0 4,872 0 6,483
Amortization of debt issuance costs 327 236 643 315
Total interest cost recognized 327 5,108 643 6,798
Notes due 2026        
Debt Instrument [Line Items]        
Amortization of debt discount 0 5,587 0 7,373
Amortization of debt issuance costs 502 404 987 539
Total interest cost recognized $ 502 $ 5,991 $ 987 $ 7,912