XML 45 R32.htm IDEA: XBRL DOCUMENT v3.22.2
Recent Accounting Pronouncements - Additional Information (Details) - USD ($)
$ in Thousands
Jun. 30, 2022
Mar. 31, 2022
Dec. 31, 2021
Jun. 30, 2021
Mar. 31, 2021
Dec. 31, 2020
Lessee, Lease, Description [Line Items]            
Stockholders' equity attributable to parent $ 765,495 $ 693,769 $ 671,266 $ 526,258 $ 480,896 $ 470,418
Convertible Bond Debt | Convertible Debt            
Lessee, Lease, Description [Line Items]            
Debt discount and debt issuance costs (866)   (13,165)      
Accumulated deficit            
Lessee, Lease, Description [Line Items]            
Stockholders' equity attributable to parent (210,854) (278,858) (313,495) (453,064) (462,289) (472,138)
Additional paid-in capital            
Lessee, Lease, Description [Line Items]            
Stockholders' equity attributable to parent $ 963,482 $ 961,930 982,746 $ 979,683 $ 943,600 $ 943,572
Cumulative Effect, Period of Adoption, Adjustment            
Lessee, Lease, Description [Line Items]            
Stockholders' equity attributable to parent     (12,050)      
Cumulative Effect, Period of Adoption, Adjustment | Accumulated deficit            
Lessee, Lease, Description [Line Items]            
Stockholders' equity attributable to parent     8,676      
Cumulative Effect, Period of Adoption, Adjustment | Additional paid-in capital            
Lessee, Lease, Description [Line Items]            
Stockholders' equity attributable to parent     $ (20,726)