Annual report pursuant to Section 13 and 15(d)

Debt - Narrative (Details)

v3.22.0.1
Debt - Narrative (Details)
1 Months Ended 10 Months Ended 12 Months Ended
Sep. 30, 2021
USD ($)
Apr. 30, 2020
USD ($)
$ / shares
shares
Mar. 31, 2020
Dec. 31, 2019
USD ($)
$ / shares
shares
Sep. 30, 2019
USD ($)
Mar. 31, 2019
USD ($)
Nov. 30, 2017
Aug. 31, 2016
USD ($)
Mar. 31, 2016
USD ($)
tranche
$ / shares
shares
Dec. 31, 2019
USD ($)
$ / shares
shares
Dec. 31, 2019
USD ($)
$ / shares
shares
Dec. 31, 2021
USD ($)
Sep. 24, 2021
shares
Dec. 31, 2020
USD ($)
Debt Instrument [Line Items]                            
Number of shares called by warrants (in shares) | shares                         344,085  
Preferred stock warrants                       $ 0   $ 2,401,000
Accrued interest                       $ 1,600,000   $ 1,000,000
Effective interest rate                       10.75%   11.44%
A&R Loan Agreement Warrant                            
Debt Instrument [Line Items]                            
Preferred stock warrants   $ 100,000                        
2016 Agreement | Secured Debt                            
Debt Instrument [Line Items]                            
Principal amount           $ 50,000,000     $ 20,000,000          
Debt term       42 months 42 months 42 months     42 months          
Number of tranches | tranche                 3          
Cash advance       $ 10,000,000 $ 10,000,000 $ 10,000,000   $ 5,000,000 $ 10,000,000 $ 30,000,000        
Periodic payment, as a percentage       8.00% 8.00% 8.00%                
Direct fees                     $ 300,000      
2016 Agreement | Series C Warrants                            
Debt Instrument [Line Items]                            
Warrant exercise price (in dollars per share) | $ / shares                 $ 5.36          
Preferred stock warrants                 $ 200,000          
2016 Agreement | Series D Warrant                            
Debt Instrument [Line Items]                            
Warrant exercise price (in dollars per share) | $ / shares       $ 9.275           $ 9.275 $ 9.275      
Preferred stock warrants       $ 400,000           $ 400,000 $ 400,000      
2016 Agreement | Series C                            
Debt Instrument [Line Items]                            
Number of shares called by warrants (in shares) | shares                 195,992          
2016 Agreement | Series D                            
Debt Instrument [Line Items]                            
Number of shares called by warrants (in shares) | shares       161,724           161,724 161,724      
2016 Agreement | Prime Rate | Secured Debt                            
Debt Instrument [Line Items]                            
Basis spread on interest rate       4.50% 3.70% 2.90% 3.75%              
Interest rate (minimum)   5.50%   5.50% 5.50% 5.50% 3.25%     5.50% 5.50%      
2016 Agreement | Prime Rate | Secured Debt | Minimum                            
Debt Instrument [Line Items]                            
Interest rate (minimum)       5.50% 5.50% 5.50%       5.50% 5.50%      
A&R Loan Agreement                            
Debt Instrument [Line Items]                            
Interest rate (minimum) 8.00%                          
Extension term 24 months                          
Covenant, cash balance $ 20,000,000                          
A&R Loan Agreement | Secured Debt                            
Debt Instrument [Line Items]                            
Cash advance   $ 10,000,000                        
Extension term     12 months                      
A&R Loan Agreement | A&R Loan Agreement Warrant                            
Debt Instrument [Line Items]                            
Warrant exercise price (in dollars per share) | $ / shares   $ 9.275                        
A&R Loan Agreement | Series D                            
Debt Instrument [Line Items]                            
Number of shares called by warrants (in shares) | shares   53,908