Annual report pursuant to Section 13 and 15(d)

Notes Payable - Narrative (Details)

v3.22.0.1
Notes Payable - Narrative (Details) - USD ($)
$ / shares in Units, $ in Thousands, shares in Millions
1 Months Ended 12 Months Ended
Jul. 15, 2019
Jun. 13, 2019
Jun. 30, 2021
Apr. 30, 2021
Apr. 30, 2020
Sep. 30, 2019
Jul. 15, 2019
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Oct. 31, 2021
Oct. 31, 2020
Jul. 09, 2019
Jun. 30, 2019
Debt Instrument [Line Items]                            
Loss on extinguishment of debt               $ 2,304 $ 0 $ 1,514        
Apollo Credit Agreement                            
Debt Instrument [Line Items]                            
Maximum borrowing capacity       $ 40,000             $ 150,000      
Apollo Credit Agreement | Secured Debt                            
Debt Instrument [Line Items]                            
Debt issuance costs               4,000            
Apollo Credit Agreement | Subsidiaries                            
Debt Instrument [Line Items]                            
Debt instrument, collateral amount               9,800            
Apollo Credit Agreement | Subsidiaries | Secured Debt                            
Debt Instrument [Line Items]                            
Proceeds from long-term lines of credit               56,700            
Long-term line of credit               $ 49,100            
Percentage of revenues generated from collateral determining repayment of additional amount of principal outstanding under the facility               50.00%            
Debt instrument, covenant, monthly reports delivered, period       30 days                    
Repayments of long-term lines of credit               $ 7,900            
Apollo Credit Agreement | London Interbank Offered Rate (LIBOR) | Subsidiaries | Secured Debt                            
Debt Instrument [Line Items]                            
Basis spread on variable rate               8.50%            
Term Loans | Secured Debt                            
Debt Instrument [Line Items]                            
Proceeds from long-term lines of credit             $ 50,000              
Debt discount                         $ 5,000  
Debt instrument, face amount               $ 50,000            
Term Loans | Secured Debt | DB Warrants                            
Debt Instrument [Line Items]                            
Number of securities called by warrants                         0.2  
Exercise price of warrants (usd per share)               $ 20.70            
Warrants fair value                         $ 5,000  
Proceeds from warrant exercises         $ 2,000 $ 3,000                
Term Loans | Secured Debt | 2021 DB Warrants                            
Debt Instrument [Line Items]                            
Warrants fair value                       $ 600    
Term Loans | Secured Debt | 2020 DB Warrants                            
Debt Instrument [Line Items]                            
Proceeds from warrant exercises     $ 600                      
Term Loans | London Interbank Offered Rate (LIBOR) | Secured Debt                            
Debt Instrument [Line Items]                            
Basis spread on variable rate               9.50%            
Initial Term Loan | Secured Debt                            
Debt Instrument [Line Items]                            
Maximum borrowing capacity                           $ 45,000
Proceeds from long-term lines of credit   $ 45,000                        
Repayments of long-term lines of credit       $ 31,200                    
Loss on extinguishment of debt       $ 2,300                    
Incremental Term Loans | Secured Debt                            
Debt Instrument [Line Items]                            
Maximum borrowing capacity                         $ 5,000  
Proceeds from long-term lines of credit $ 5,000                          
Interest expense, debt               $ 2,200