XML 56 R42.htm IDEA: XBRL DOCUMENT v3.22.0.1
Debt (Details) - USD ($)
$ / shares in Units, $ in Thousands
1 Months Ended 12 Months Ended
Dec. 31, 2020
Nov. 30, 2020
Sep. 30, 2020
Aug. 31, 2020
Jul. 31, 2020
Jun. 30, 2020
Apr. 30, 2020
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Debt Instrument [Line Items]                    
Amounts due to related parties $ 4,360             $ 0 $ 4,360  
Proceeds from loans               0 4,134 $ 0
Gain on loan extinguishment               4,183 0 $ 0
Current principal amount $ 4,623             1,524 $ 4,623  
Paycheck Protection Program Loan                    
Debt Instrument [Line Items]                    
Gain on loan extinguishment               $ 4,200    
Series D-1 Convertible Preferred Shares                    
Debt Instrument [Line Items]                    
Issuance of redeemable convertible preferred stock, net of issuance costs (in shares)   308,182 1,232,370 1,232,730 621,447       1,854,177 6,471,833
Shares issued price per share (in usd per share)   $ 8.11   $ 8.11 $ 8.11          
Series E Redeemable Convertible Preferred Stock                    
Debt Instrument [Line Items]                    
Issuance of redeemable convertible preferred stock, net of issuance costs (in shares)               4,650,999    
Shares issued price per share (in usd per share) $ 12.73                  
Conversion of related party convertible loan to Series E-1 redeemable convertible preferred shares (in shares) 3,928,937                  
Paycheck Protection Program Loan                    
Debt Instrument [Line Items]                    
Proceeds from loans             $ 4,100      
Truck Purchase Loans                    
Debt Instrument [Line Items]                    
Interest rate 8.95%               8.95%  
Principal amount $ 1,900             $ 5,600 $ 1,900  
Term               60 months 42 months  
Current principal amount               $ 1,500    
Noncurrent principal amount               $ 5,200    
Truck Purchase Loans | Minimum                    
Debt Instrument [Line Items]                    
Interest rate               6.96%    
Truck Purchase Loans | Maximum                    
Debt Instrument [Line Items]                    
Interest rate               9.73%    
Affiliated Entity | Scania                    
Debt Instrument [Line Items]                    
Amounts due to related parties             $ 5,000      
Affiliated Entity | SUN Dream, Inc                    
Debt Instrument [Line Items]                    
Convertible loan, related party           $ 50,000        
Interest rate           10.00%        
Discounted conversion price           90.00%        
Affiliated Entity | SUN Dream, Inc | Series D-1 Convertible Preferred Shares                    
Debt Instrument [Line Items]                    
Shares issued price per share (in usd per share)           $ 8.11