Quarterly report pursuant to Section 13 or 15(d)

Operating leases - Narrative (Details)

v3.24.2.u1
Operating leases - Narrative (Details)
$ in Thousands
3 Months Ended 6 Months Ended
Nov. 09, 2022
USD ($)
a
ft²
Nov. 01, 2022
option
Jun. 30, 2024
USD ($)
Jun. 30, 2023
USD ($)
Jun. 30, 2024
USD ($)
Jun. 30, 2023
USD ($)
Dec. 31, 2023
USD ($)
Apr. 07, 2023
USD ($)
Jan. 31, 2023
squareFoot
Lessee, Lease, Description [Line Items]                  
Number of options to extend the lease term | option   1              
Operating lease renewal term (in years)   5 years              
Lease not yet commenced, operating lease liability to be paid     $ 300   $ 300     $ 44,300  
Operating lease equity liability for fully non-refundable shares               $ 1,500  
Lease premium over the original purchase price 1.500                
Derivative Liability, Statement of Financial Position [Extensible Enumeration]     Derivative liability, non-current   Derivative liability, non-current        
Operating lease, weighted average discount rate, percent     6.70%   6.70%        
Operating lease right-of-use assets     $ 34,489   $ 34,489   $ 36,241    
Operating lease liability     37,308   37,308   38,800    
Operating lease liabilities, current portion     $ 3,273   $ 3,273   $ 3,086    
Weighted average remaining lease term (in years)     8 years 2 months 12 days   8 years 2 months 12 days   8 years 8 months 12 days    
I-40 Warrants                  
Lessee, Lease, Description [Line Items]                  
Aggregate fair value     $ 900   $ 900        
Derivative liability, current     600   $ 600        
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  
Real Estate Facility In Justin, Texas                  
Lessee, Lease, Description [Line Items]                  
Number of square feet | squareFoot                 8,000
Term of lease (in years)   3 years 5 months              
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 acquired (in acres) | a 121                
Payments to acquire facility $ 34,200                
TEXAS | Related Party                  
Lessee, Lease, Description [Line Items]                  
Related party lease expense     $ 200 $ 200 $ 300 $ 300