v3.22.2.2
Debt (Details)
$ / shares in Units, $ in Thousands
3 Months Ended 9 Months Ended
May 13, 2022
USD ($)
tranche
Aug. 13, 2021
USD ($)
Jul. 19, 2021
USD ($)
Jul. 15, 2021
USD ($)
$ / shares
shares
Oct. 06, 2020
USD ($)
Jun. 23, 2020
USD ($)
Apr. 10, 2020
USD ($)
Sep. 18, 2019
USD ($)
Sep. 30, 2022
USD ($)
Sep. 30, 2021
USD ($)
Sep. 30, 2022
USD ($)
Sep. 30, 2021
USD ($)
Jul. 26, 2022
USD ($)
Dec. 31, 2021
USD ($)
Debt Instrument [Line Items]                            
Interest and debt expense                 $ 1,200 $ 42,100 $ 2,100 $ 59,200    
Unamortized debt issuance costs                 88,100   88,100     $ 0
Number of tranches | tranche 4                          
Line of credit tranches percentage 1.25%                          
Change in fair value - warrant liabilities                 (3,192) $ 0 (4,457) $ 0    
Write off of debt issuance cost                 2,500   2,500      
Letter of Credit                            
Debt Instrument [Line Items]                            
Outstanding balance                 1,600   1,600      
Line of credit, current                 100   100      
Long-term line of credit, noncurrent                 1,500   1,500      
Convertible Subordinated Debt Second Lien Term Loan | Revolving Credit Facility                            
Debt Instrument [Line Items]                            
Repayments of debt     $ 7,000                      
Secured Credit Agreement First Lien Loan | Revolving Credit Facility                            
Debt Instrument [Line Items]                            
Line of credit facility, remaining borrowing capacity                 300   $ 300     88,500
Secured Credit Agreement First Lien Loan | Revolving Credit Facility | Jp Morgan Chase Bank                            
Debt Instrument [Line Items]                            
Term loan facility amount               $ 20,000            
Long term debt weighted average rate of interest over a period of time                     5.58%      
Long-term debt                           0
New Credit Agreement                            
Debt Instrument [Line Items]                            
Write off of deferred debt issuance cost, interest expense                 11,500   $ 11,500      
New Credit Agreement | Revolving Credit Facility                            
Debt Instrument [Line Items]                            
Outstanding balance                 0   0      
Credit facility term 7 years                          
Maximum borrowing capacity $ 150,000                       $ 150,000  
Borrowing capacity upon facility increase $ 300,000                          
Credit facility borrower guaranty as a percentage of the facility (percent) 0.10                          
Change in fair value - warrant liabilities                     8,900      
Debt issuance costs                 $ 2,900   $ 2,900      
Paycheck Protection Program                            
Debt Instrument [Line Items]                            
Debt term                 1 year 6 months   1 year 6 months      
Proceeds from paycheck protection program loan             $ 2,100              
Interest rate                 1.00%   1.00%      
Borrowings under 2nd lien term loan                     $ 2,000      
Convertible Subordinated Debt | Convertible Debt Agreement                            
Debt Instrument [Line Items]                            
Term loan facility amount         $ 100,000                  
Long term debt bearing fixed interest rate         8.28%                  
Convertible Subordinated Debt | Convertible Subordinated Debt Second Lien Term Loan                            
Debt Instrument [Line Items]                            
Term loan facility amount         $ 125,000                  
Long term debt bearing fixed interest rate         13.00%                  
Payment of debt issuance costs         $ 3,800                  
Third-party fees paid         $ 1,000                  
Repayments of debt     150,500                      
Interest and debt expense     $ 3,800                      
Repayment penalty period     6 months                      
Repayment of debts prepayment penalty     $ 9,300                      
Debt term         5 years                  
Term Loan | Minimum | Jp Morgan Chase Bank | Second Amendment To The Secured Credit Agreement                            
Debt Instrument [Line Items]                            
Line of credit facility stated rate of interest           3.00%                
Term Loan | Maximum | Jp Morgan Chase Bank | Second Amendment To The Secured Credit Agreement                            
Debt Instrument [Line Items]                            
Line of credit facility stated rate of interest           4.00%                
Term Loan | Convertible Subordinated Debt Second Lien Term Loan                            
Debt Instrument [Line Items]                            
Repayments of debt     $ 31,100                      
Term Loan | Secured Credit Agreement First Lien Loan | Jp Morgan Chase Bank                            
Debt Instrument [Line Items]                            
Term loan facility amount               30,000            
Issuance of Term and Revolving Debt               30,000            
Borrowings under term facility               $ 11,900            
Term Loan | Secured Credit Agreement First Lien Loan | Jp Morgan Chase Bank | Second Amendment To The Secured Credit Agreement                            
Debt Instrument [Line Items]                            
Prospective conversion of revolving credit facility into term loan           $ 8,000                
Amount agreed to be repaid under revolving credit facility           $ 5,000                
Unamortized debt issuance costs                 $ 800   $ 800     $ 1,000
Term Loan | Secured Credit Agreement First Lien Loan | Minimum | Jp Morgan Chase Bank                            
Debt Instrument [Line Items]                            
Derivative swaption interest rate   2.50%                        
Derivative swaption basis spread on variable rate   1.50%                        
Term Loan | Secured Credit Agreement First Lien Loan | Maximum | Jp Morgan Chase Bank                            
Debt Instrument [Line Items]                            
Derivative swaption interest rate   3.50%                        
Derivative swaption basis spread on variable rate   2.50%                        
Term Loan | Secured Credit Agreement First Lien Loan | Five year Senior Secured Revolving Facility                            
Debt Instrument [Line Items]                            
Term loan facility amount   $ 35,000                        
Payment of debt issuance costs   900                        
Third-party fees paid   100                        
Outstanding balance   $ 90,000                        
Debt term   5 years                        
Term Loan | Secured Credit Agreement First Lien Loan | LIBOR | Jp Morgan Chase Bank                            
Debt Instrument [Line Items]                            
Spread on variable rate (in percentage)               1.50%            
Term Loan And Revolving Credit Facility | Secured Credit Agreement First Lien Loan | Maximum | Jp Morgan Chase Bank                            
Debt Instrument [Line Items]                            
Debt instrument leverage ratio   3.00                        
IPO | Convertible Subordinated Debt | Convertible Debt Agreement                            
Debt Instrument [Line Items]                            
Convertible notes       $ 106,300                    
Debt conversion, converted instrument, shares issued (in shares) | shares       14,847,066                    
Debt instrument, convertible, conversion price (in dollars per share) | $ / shares       $ 16.00