Quarterly report pursuant to Section 13 or 15(d)

Debt - Notes payable (Details)

v3.21.2
Debt - Notes payable (Details) - USD ($)
3 Months Ended 6 Months Ended
Jun. 30, 2021
Jun. 24, 2020
Jan. 13, 2020
Nov. 14, 2019
Jun. 30, 2021
Jun. 30, 2020
Jun. 30, 2021
Jun. 30, 2020
Dec. 31, 2020
Dec. 31, 2019
Dec. 19, 2019
Nov. 04, 2019
Debt Instruments [Abstract]                        
Debt outstanding $ 10,860,000       $ 10,860,000   $ 10,860,000   $ 32,611,000      
Common stock or units, issued (in shares) 15,821,559       15,821,559   15,821,559   8,651,400      
Accretion of debt discount $ 1,400,000                      
Notes payable, net $ 0       $ 0   $ 0   $ 18,910,000      
Licensing arrangement                        
Debt Instruments [Abstract]                        
Termination fee paid     $ 100,000                  
Common stock or units, issued (in shares)     12,120                  
Termination fee payable     $ 100,000                  
Common stock purchase warrant issuable     200,000                  
November 2019 Notes                        
Debt Instruments [Abstract]                        
Default interest rate       12.00%                
Subordinated convertible notes | Executive Officer                        
Debt Instruments [Abstract]                        
Notes payable, net                   $ 100,000    
Interest expense (less than)         $ 100,000 $ 100,000 $ 100,000 $ 100,000        
Subordinated convertible notes | Director                        
Debt Instruments [Abstract]                        
Notes payable, net                   $ 2,200,000    
November 2019 Notes                        
Debt Instruments [Abstract]                        
Face amount                       $ 2,800,000
Long-term debt, interest rate 10.00%       10.00%   10.00%   10.00%     10.00%
Conversion price (in dollars per share) $ 5.00 $ 22.50     $ 5.00   $ 5.00         $ 24.00
Increase in fair value, adjustment to paid in capital   $ 300,000                    
Debt outstanding $ 0       $ 0   $ 0   $ 2,830,000      
Debt issuance costs and discounts                 $ 300,000      
Seller Notes                        
Debt Instruments [Abstract]                        
Long-term debt, interest rate                     10.00%  
Conversion price (in dollars per share)   $ 22.50                 $ 24.00  
Increase in fair value, adjustment to paid in capital   $ 300,000                    
Senior Seller Notes                        
Debt Instruments [Abstract]                        
Face amount                     $ 10,000,000.0  
Long-term debt, interest rate 10.00%       10.00%   10.00%   10.00%      
Conversion price (in dollars per share) $ 5.00       $ 5.00   $ 5.00          
Debt outstanding $ 0       $ 0   $ 0   $ 10,332,000      
Debt issuance costs and discounts                 $ 800,000      
Junior Seller Notes                        
Debt Instruments [Abstract]                        
Face amount                     $ 5,000,000.0  
Long-term debt, interest rate 10.00%       10.00%   10.00%   10.00%      
Debt outstanding $ 0       $ 0   $ 0   $ 4,973,000      
Debt issuance costs and discounts                 $ 500,000      
ABG Notes                        
Debt Instruments [Abstract]                        
Face amount     $ 600,000                  
Long-term debt, interest rate 10.00%       10.00%   10.00%   10.00%      
Conversion price (in dollars per share) $ 5.00 $ 22.50 $ 24.00   $ 5.00   $ 5.00          
Increase in fair value, adjustment to paid in capital   $ 100,000                    
Debt outstanding $ 0       $ 0   $ 0   $ 687,000      
Debt issuance costs and discounts $ 100,000       $ 100,000   $ 100,000   $ 100,000      
ABG Notes | Licensing arrangement                        
Debt Instruments [Abstract]                        
Long-term debt, interest rate     10.00%                  
June 2020 Notes                        
Debt Instruments [Abstract]                        
Face amount   $ 1,500,000                    
Long-term debt, interest rate 10.00% 10.00%     10.00%   10.00%   10.00%      
Conversion price (in dollars per share) $ 4.50 $ 4.50     $ 4.50   $ 4.50          
Debt outstanding $ 0       $ 0   $ 0   $ 88,000      
Debt issuance costs and discounts $ 1,500,000       $ 1,500,000   $ 1,500,000   $ 1,500,000