Quarterly report pursuant to Section 13 or 15(d)

Long-Term Debt - Narrative (Details)

v3.23.3
Long-Term Debt - Narrative (Details)
3 Months Ended 9 Months Ended
Aug. 14, 2023
USD ($)
Jul. 25, 2022
Sep. 30, 2023
USD ($)
$ / shares
Sep. 30, 2022
USD ($)
Sep. 30, 2023
USD ($)
$ / shares
shares
Sep. 30, 2022
USD ($)
Aug. 10, 2023
USD ($)
Dec. 31, 2022
USD ($)
Debt Instrument [Line Items]                
Deferred financing costs, current     $ 3,900,000 $ 200,000 $ 3,900,000 $ 200,000    
Debt Instrument, Repaid, Principal     22,000,000          
Loss on debt extinguishment     (253,000) $ 0 (253,000) 0    
Loss on debt extinguishment         253,000 $ 0    
Loss on debt extinguishment, related to termination of loan agreement     300,000          
Senior Secured Convertible Notes [Member]                
Debt Instrument [Line Items]                
Deferred financing costs     $ 4,100,000   $ 4,100,000      
Effective interest rate during period (as a percent)         39.90%      
Debt Instrument, Repaid, Principal $ 22,000,000              
Securities Purchase Agreement, Issue and Sell in Offering, Aggregate Principal Amount of Notes             $ 105,000,000  
Securities Purchase Agreement, Aggregate Principal Amount of Notes 70,000,000              
Securities Purchase Agreement, Right to purchase $ 35,000,000              
Securities Purchase Agreement, Note Interest Rate 6.00%              
Securities Purchase Agreement, Principal Amount Repaid 115.00%              
Minimum liquidity required $ 30,000,000              
Conversion of debt, shares issued (in shares) | shares         644.7453      
Debt Instrument, Convertible, Conversion Ratio         1,000      
Conversion price (in usd per share) | $ / shares     $ 1.55   $ 1.55      
Proceeds from (Repayments of) Debt $ 66,000,000              
Senior secured convertible notes, accreting discounts     $ 28,600,000   $ 28,600,000      
Senior secured convertible notes, accreting discounts, debt derivatives     13,900,000   13,900,000      
Senior secured convertible notes, accreting discounts, repayment price     10,500,000   10,500,000      
Senior secured convertible notes, accreting discounts, lender fees paid     100,000   100,000      
Senior secured convertible notes, accreting discounts, third-party fees     4,100,000   4,100,000      
Securities Purchase Agreement, repayment calculated rate 12.50%              
Senior secured convertible notes, principal balance reduction $ 1.15              
Line of credit                
Debt Instrument [Line Items]                
Outstanding debt     $ 0   0     $ 3,000,000
Line of credit | Revolving Credit Facility                
Debt Instrument [Line Items]                
Proceeds from credit facility         $ 14,000,000      
Effective interest rate (as a percent)     12.00% 5.80% 15.80% 5.20%    
Final payments made during debt extinguishment         $ 300,000      
Line of credit | Revolving Credit Facility | Less Than Or Equal To 1.50                
Debt Instrument [Line Items]                
Adjusted quick ratio   1.50            
Line of credit | Revolving Credit Facility | Debt Covenant Terms 3                
Debt Instrument [Line Items]                
Adjusted quick ratio   1.0            
Line of credit | Revolving Credit Facility | Prime | Less Than Or Equal To 1.50                
Debt Instrument [Line Items]                
Basis spread on variable rate (as a percent)   0.25%            
Line of credit | Revolving Credit Facility | Prime | Greater Than 1.50                
Debt Instrument [Line Items]                
Basis spread on variable rate (as a percent)   0.75%            
Line of credit | Revolving Credit Facility | Prime | Debt Covenant Terms 3                
Debt Instrument [Line Items]                
Basis spread on variable rate (as a percent)   5.00%            
Line of credit | Revolving Credit Facility | Prime | Debt Covenant Terms 4                
Debt Instrument [Line Items]                
Basis spread on variable rate (as a percent)   5.50%            
Equipment loan                
Debt Instrument [Line Items]                
Outstanding debt     $ 0   $ 0     $ 5,356,000
Effective interest rate during period (as a percent)     18.10% 5.50% 12.60% 4.10%