Quarterly report pursuant to Section 13 or 15(d)

Operating leases - Narrative (Details)

v3.23.2
Operating leases - Narrative (Details)
shares in Thousands
3 Months Ended 6 Months Ended
Nov. 09, 2022
USD ($)
ft²
a
Nov. 01, 2022
squareFoot
option
Jun. 30, 2023
USD ($)
shares
Jun. 30, 2022
USD ($)
Jun. 30, 2023
USD ($)
shares
Jun. 30, 2022
USD ($)
Apr. 07, 2023
USD ($)
Jan. 31, 2023
squareFoot
Dec. 31, 2022
USD ($)
shares
Jan. 21, 2022
Lessee, Lease, Description [Line Items]                    
Number of options to extend the lease term | option   1                
Operating lease renewal term (in years)   5 years                
Number of square feet | squareFoot   100,000                
Lease term (in years)   10 years                
Lease, option to terminate (in years)   5 years                
Lease not yet commenced, operating lease liability to be paid     $ 300,000   $ 300,000   $ 44,300,000      
Operating lease equity liability for fully non-refundable shares             $ 1,500,000      
Common stock, shares issued (in shares) | shares     568,904   568,904       355,388  
Lease premium over the original purchase price 1.50                  
Operating lease, weighted average discount rate, percent     6.70%   6.70%          
Operating lease right-of-use assets     $ 37,945,000   $ 37,945,000       $ 39,331,000  
Operating lease liability     40,172,000   40,172,000       40,800,000  
Current portion of operating lease liabilities     $ 2,864,000   $ 2,864,000       $ 2,200,000  
Operating Lease, Liability, Current, Statement of Financial Position [Extensible Enumeration]     Accrued expenses and other current liabilities   Accrued expenses and other current liabilities       Accrued expenses and other current liabilities  
Weighted average remaining lease term (in years)     9 years 2 months 12 days   9 years 2 months 12 days       9 years 8 months 12 days  
I-40 Warrants                    
Lessee, Lease, Description [Line Items]                    
Aggregate fair value     $ 900,000   $ 900,000          
Derivative liability, current     $ 600,000   $ 600,000          
Imputed interest rate         10.00%          
Maximum                    
Lessee, Lease, Description [Line Items]                    
Lease term (in years)             10 years      
Minimum                    
Lessee, Lease, Description [Line Items]                    
Lease term (in years)             5 years      
Industrialization Facility In Bentonville Arkansas                    
Lessee, Lease, Description [Line Items]                    
Operating lease renewal term (in years)     10 years   10 years          
Term of lease (in years)                   10 years
Real Estate Facility In Justin, Texas                    
Lessee, Lease, Description [Line Items]                    
Term of lease (in years)   3 years 5 months                
Number of square feet | squareFoot               8,000    
MICHIGAN                    
Lessee, Lease, Description [Line Items]                    
Number of options to extend the lease term         1          
Operating lease renewal term (in years)     5 years   5 years          
OKLAHOMA | Purchase And Sale Agreement For Manufacturing Facility                    
Lessee, Lease, Description [Line Items]                    
Asset acquired, building, number of square feet | ft² 630,000                  
Area of land (in acres) | a 121                  
Payments to acquire facility $ 34,200,000                  
TEXAS | Related Party                    
Lessee, Lease, Description [Line Items]                    
Related party lease expense     $ 200,000 $ 200,000 $ 300,000 $ 300,000