XML 45 R34.htm IDEA: XBRL DOCUMENT v3.21.2
Risks and Liquidity (Details) - USD ($)
$ in Thousands
6 Months Ended 12 Months Ended
Aug. 02, 2021
Apr. 26, 2021
Jun. 30, 2021
Jun. 30, 2020
Dec. 31, 2020
Mar. 31, 2021
Jun. 12, 2020
Feb. 20, 2020
Jan. 04, 2018
Risks and Liquidity [Abstract]                  
Accumulated deficit     $ (397,547)   $ (322,843)        
Cash, cash equivalents and investments     426,800            
Shareholders' Equity Disclosure [Abstract]                  
Conversion of convertible notes into common stock     $ 35,544 $ 0          
2022 Convertible Notes [Member]                  
Shareholders' Equity Disclosure [Abstract]                  
Redemption of principal balance           $ 38,400   $ 39,350  
Convertible senior notes, interest rate, stated percentage   6.25%           6.25%  
Debt instrument maturity date     Aug. 31, 2022            
Conversion of convertible notes into common stock   $ 38,400     7,600        
2022 Convertible Notes [Member] | Subsequent Event [Member]                  
Shareholders' Equity Disclosure [Abstract]                  
Outstanding amount $ 0                
2021 Convertible Notes [Member]                  
Shareholders' Equity Disclosure [Abstract]                  
Redemption of principal balance     $ 5,150   5,150   $ 7,500   $ 52,000
Convertible senior notes, interest rate, stated percentage     5.75%       6.25%    
Debt instrument maturity date     Aug. 01, 2021            
2021 Convertible Notes [Member] | Subsequent Event [Member]                  
Shareholders' Equity Disclosure [Abstract]                  
Conversion of convertible notes into common stock 5,150                
Outstanding amount $ 0                
IPO [Member] | Common Stock [Member]                  
Shareholders' Equity Disclosure [Abstract]                  
Net proceeds, offering amount         $ 280,800        
Common stock shares issued (in shares)         5,339,286