Annual report pursuant to Section 13 and 15(d)

Borrowings - Additional Information (Details)

v3.20.4
Borrowings - Additional Information (Details)
1 Months Ended 12 Months Ended
Jun. 01, 2020
USD ($)
shares
Apr. 13, 2020
USD ($)
Jun. 30, 2020
USD ($)
shares
Jul. 31, 2019
USD ($)
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
Dec. 31, 2018
USD ($)
Jan. 01, 2019
USD ($)
Installment
Oct. 26, 2017
USD ($)
Debt Instrument [Line Items]                  
Outstanding borrowings         $ 0        
Remaining borrowing capacity         $ 8,000,000        
Waiver extended date         2020-05        
Lines of credit repaid principal amount           $ 5,614,000      
Debt instrument, outstanding balance         $ 362,000 508,000      
Proceeds from PPP Loan   $ 2,300,000     $ 2,289,000        
PPP Loan, repayment date         Apr. 29, 2020        
Loan and Security Agreement | East West Bank                  
Debt Instrument [Line Items]                  
Maximum borrowings available         $ 0        
Line of credit facility, cancellation date         Jun. 30, 2020        
Subordinated Term Loan and Security Agreement | B. Riley Principal Investments, LLC                  
Debt Instrument [Line Items]                  
Maximum borrowings available       $ 10,000,000         $ 12,000,000
Outstanding borrowings         $ 0 10,003,000      
Minimum principal amount outstanding of defined repayment penalties             $ 10,000,000    
Prepayment penalty description             The prepayment penalty was 2% for 2019 and decreased to1% after the second aniversary through maturity    
Interest rate, stated percentage             10.00%    
Debt prepayment penalties percentage         1.00%   2.00%    
Line of credit facility, maturity date             Sep. 01, 2022    
Lines of credit repaid principal amount       $ 3,250,000          
Lines of credit repaid principal amount percentage       25.00%          
Percentage of fee incurred       2.00%          
Compounded interest         $ 166,000 251,000      
Note Amendment and Debt Cancellation Agreement | B. Riley Principal Investments, LLC                  
Debt Instrument [Line Items]                  
Outstanding borrowings $ 6,170,000   $ 6,200,000   0        
Outstanding indebtedness $ 4,000,000                
Debt instrument redemption date Jun. 09, 2020                
Conversion shares | shares 8,226,834   8,226,834            
Promissory Notes Payable                  
Debt Instrument [Line Items]                  
Debt instrument, outstanding balance         $ 362,000 $ 508,000   $ 736,000  
Debt instrument, periodic payment, number of equal quarterly installments | Installment               20  
Debt instrument, frequency of periodic payment           quarterly      
Promissory Notes Payable | Minimum                  
Debt Instrument [Line Items]                  
Debt instrument, payment term         2 years        
Promissory Notes Payable | Maximum                  
Debt Instrument [Line Items]                  
Interest rate, stated percentage         8.00%        
Debt instrument, payment term         4 years