Annual report pursuant to Section 13 and 15(d)

Debt - Narrative (Details)

v3.22.4
Debt - Narrative (Details) - USD ($)
1 Months Ended 12 Months Ended
Dec. 21, 2022
Dec. 31, 2022
Apr. 30, 2021
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Jul. 21, 2025
Sep. 30, 2021
Dec. 31, 2016
Debt Instrument [Line Items]                  
Loss on extinguishment of debt       $ 4,663,000 $ 1,027,000 $ 0      
Payment of debt issuance costs       2,463,000 375,000 $ 279,000      
Total principal debt payments   $ 72,576,000   $ 72,576,000          
Atel Loan Facility Draw 4                  
Debt Instrument [Line Items]                  
Debt instrument, interest rate, effective percentage   19.23%   19.23%          
Atel Loan Facility Draw 3                  
Debt Instrument [Line Items]                  
Debt instrument, interest rate, effective percentage   19.23%   19.23%          
Structural Derivative Liability | Level 3                  
Debt Instrument [Line Items]                  
Fair Value, measurement with unobservable inputs reconciliation, recurring basis, liability, purchases       $ 7,100,000          
Silicon Valley Bank Loan Revolver | Revolving Credit Facility                  
Debt Instrument [Line Items]                  
Long-term line of credit   $ 0   0 5,947,000        
Structural Lenders | Structural Debt Facility                  
Debt Instrument [Line Items]                  
Debt instrument, face amount   72,000,000   72,000,000          
Other long-term debt   $ 60,620,000   $ 60,620,000 0        
Debt instrument, interest rate, effective percentage   20.09%   20.09%          
Debt instrument, covenant, minimum unrestricted cash required to maintain   $ 57,000,000   $ 57,000,000          
Debt instrument, unamortized discount (premium), net $ 1,100,000                
Payment of debt issuance costs   3,300,000              
Total principal debt payments   $ 72,000,000   72,000,000          
Structural Lenders | Structural Debt Facility | Structural Derivative Liability | Level 3                  
Debt Instrument [Line Items]                  
Fair Value, measurement with unobservable inputs reconciliation, recurring basis, liability, purchases       $ 7,100,000          
Structural Lenders | Structural Debt Facility | Forecast                  
Debt Instrument [Line Items]                  
Debt instrument, anniversary of closing date             30 months    
Trading days prior to such date             60 days    
Structural Lenders | Structural Debt Facility | Class A Common Stock                  
Debt Instrument [Line Items]                  
Issuance of shares (in shares) 4,950,000                
Structural Lenders | Structural Debt Facility | Class A Common Stock | Forecast                  
Debt Instrument [Line Items]                  
Contingently issuable shares, calculation, numerator             $ 9,900,000    
Contingently issuable shares, calculation, maximum denominator             $ 2.00    
Structural Lenders | Structural Debt Facility | Minimum                  
Debt Instrument [Line Items]                  
Debt instrument, interest rate, effective percentage   15.00%   15.00%          
Structural Lenders | Structural Debt Facility | Prime Rate                  
Debt Instrument [Line Items]                  
Debt instrument, basis spread on variable rate   7.50%              
Loan And Security Agreement | Silicon Valley Bank Loan Revolver | Growth Capital Advance | Prime Rate                  
Debt Instrument [Line Items]                  
Debt instrument, face amount                 $ 3,900,000
Loan And Security Agreement | Silicon Valley Bank Loan Revolver | Revolving Credit Facility                  
Debt Instrument [Line Items]                  
Line of credit facility, maximum borrowing capacity                 $ 25,000,000
Loan revolver borrower capacity as a percentage of inventory balance                 60.00%
Loan And Security Agreement | Silicon Valley Bank Loan Revolver | Letter of Credit                  
Debt Instrument [Line Items]                  
Line of credit facility, maximum borrowing capacity     $ 10,000,000           $ 6,000,000
Amendment to the Loan And Security Agreement | Silicon Valley Bank Loan Revolver | Revolving Credit Facility                  
Debt Instrument [Line Items]                  
Loan revolver borrower capacity as a percentage of inventory balance     65.00%            
Line of credit facility, unused capacity, commitment fee percentage     0.20%            
Long-term debt, percentage bearing variable interest, percentage rate     3.25%            
Mezzanine Loan and Security Agreement | Silicon Valley Bank and Hercules Mezzanine Term Loan                  
Debt Instrument [Line Items]                  
Long-term debt, percentage bearing variable interest, percentage rate     8.75%            
Debt instrument, basis spread on variable rate     5.50%            
Mezzanine Loan and Security Agreement | Silicon Valley Bank and Hercules Mezzanine Term Loan | Tranche One                  
Debt Instrument [Line Items]                  
Other long-term debt     $ 25,000,000            
Mezzanine Loan and Security Agreement | Silicon Valley Bank and Hercules Mezzanine Term Loan | Tranche Two                  
Debt Instrument [Line Items]                  
Other long-term debt               $ 25,000,000  
Mezzanine Loan and Security Agreement | Silicon Valley Bank and Hercules Mezzanine Term Loan | Tranche Three                  
Debt Instrument [Line Items]                  
Long-term line of credit         $ 10,000,000        
Atel Loan Facility | Atel | Tranche Three                  
Debt Instrument [Line Items]                  
Other long-term debt   $ 500,000   $ 500,000          
Atel Loan Facility | Atel | Tranche Four                  
Debt Instrument [Line Items]                  
Other long-term debt   $ 100,000   $ 100,000