XML 70 R56.htm IDEA: XBRL DOCUMENT v3.21.2
DEBT - Components of Notes (Details) - USD ($)
$ in Thousands
Jun. 30, 2021
Dec. 31, 2020
Jul. 24, 2020
May 31, 2017
Debt Instrument [Line Items]        
Net carrying amount $ 465,876 $ 611,412    
2025 Convertible Notes        
Debt Instrument [Line Items]        
Gross carrying amount 575,000 575,000    
Unamortized debt discount 99,166 110,110    
Debt issuance costs 9,958 11,056 $ 12,000  
Net carrying amount 465,876 453,834    
2022 Convertible Notes        
Debt Instrument [Line Items]        
Gross carrying amount 169,659 169,690   $ 300,000
Unamortized debt discount 7,086 10,815    
Debt issuance costs 850 1,297   $ 7,400
Net carrying amount $ 161,723 $ 157,578