XML 48 R36.htm IDEA: XBRL DOCUMENT v3.21.2
Long-term Debt - Components of Borrowings, Including Current Portion (Details) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Dec. 31, 2020
Debt Instrument [Line Items]      
Unamortized debt discounts $ (5,576)   $ (57,297)
Long-term debt, net of discounts 224,424   172,703
Cumulative Effect, Period of Adoption, Adjustment      
Debt Instrument [Line Items]      
Unamortized debt discounts     51,012
Long-term debt, net of discounts     51,012
Cumulative Effect, Period of Adoption, Adjusted Balance      
Debt Instrument [Line Items]      
Unamortized debt discounts     (6,285)
Long-term debt, net of discounts     223,715
Convertible Notes      
Debt Instrument [Line Items]      
Outstanding Principal Of Convertible Debt 230,000   230,000
Debt Instrument, Convertible, If-converted Value in Excess of Principal $ 81,700    
Equity component of convertible debt   $ 58,500  
Convertible Notes | Cumulative Effect, Period of Adoption, Adjusted Balance      
Debt Instrument [Line Items]      
Outstanding Principal Of Convertible Debt     $ 230,000