XML 49 R37.htm IDEA: XBRL DOCUMENT v3.21.2
Long-term Debt - Schedule of Interest (Details) - Convertible Notes - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Jun. 30, 2021
Jun. 30, 2020
Debt Instrument [Line Items]        
Contractual interest expense $ 1,510 $ 1,509 $ 3,019 $ 1,895
Amortization of debt discount and issuance costs 354 2,604 709 3,254
Total interest expense $ 1,864 4,113 $ 3,728 5,149
Cumulative Effect, Period of Adoption, Adjustment        
Debt Instrument [Line Items]        
Amortization of debt discount and issuance costs   (2,263)   (2,832)
Total interest expense   (2,263)   (2,832)
Cumulative Effect, Period of Adoption, Adjusted Balance        
Debt Instrument [Line Items]        
Contractual interest expense   1,509   1,895
Amortization of debt discount and issuance costs   341   422
Total interest expense   $ 1,850   $ 2,317