XML 64 R53.htm IDEA: XBRL DOCUMENT v3.21.1
DEBT - Long-term debt (Details) - USD ($)
$ in Thousands
Mar. 31, 2021
Dec. 31, 2020
Debt Instrument [Line Items]    
Total carrying amount of debt $ 1,002,229 $ 330,865
Less: current portion of convertible notes and long-term financing receivable recorded as debt (84,356) (325,967)
Long-term debt 917,873 4,898
Convertible Notes | Convertible Senior Notes Due 2028    
Debt Instrument [Line Items]    
Long-term debt, gross 575,000 0
Less unamortized discount and issuance costs (164,905) 0
Total carrying amount of debt 410,095 0
Convertible Notes | Convertible Senior Notes Due 2026    
Debt Instrument [Line Items]    
Long-term debt, gross 632,500 0
Less unamortized discount and issuance costs (129,630) 0
Total carrying amount of debt 502,870 0
Convertible Notes | Convertible Senior Notes Due 2025    
Debt Instrument [Line Items]    
Long-term debt, gross 102,260 320,000
Less unamortized discount and issuance costs (19,657) (64,979)
Total carrying amount of debt 82,603 255,021
Less: current portion of convertible notes and long-term financing receivable recorded as debt (102,300)  
Convertible Notes | Convertible Senior Notes Due 2024    
Debt Instrument [Line Items]    
Long-term debt, gross 1,068 88,140
Less unamortized discount and issuance costs (217) (19,119)
Total carrying amount of debt 851 69,021
Less: current portion of convertible notes and long-term financing receivable recorded as debt (900)  
Convertible Notes | Convertible Senior Notes Due 2023    
Debt Instrument [Line Items]    
Long-term debt, gross 5,000 5,000
Less unamortized discount and issuance costs (92) (102)
Total carrying amount of debt 4,908 4,898
Financing Receivable | Financing Receivable Recorded as Debt    
Debt Instrument [Line Items]    
Long-term debt, gross $ 902 $ 1,925