Quarterly report pursuant to Section 13 or 15(d)

Borrowings - Additional Information (Details)

v3.19.3
Borrowings - Additional Information (Details)
3 Months Ended 9 Months Ended 12 Months Ended
Nov. 02, 2018
$ / shares
Sep. 30, 2019
USD ($)
Sep. 30, 2019
USD ($)
Sep. 30, 2018
USD ($)
Dec. 31, 2018
USD ($)
Dec. 31, 2017
USD ($)
FinancingArrangement
Jun. 30, 2019
USD ($)
Jan. 01, 2019
USD ($)
Installment
Oct. 26, 2017
USD ($)
Debt Instrument [Line Items]                  
Lines of credit repaid principal amount     $ 5,614,000 $ 63,884,000          
Reverse stock split     15-to-1            
Reverse stock split ratio 0.0667                
Long-term debt   $ 10,298,000 $ 10,298,000            
Other Financing Arrangements                  
Debt Instrument [Line Items]                  
Number of financing arrangements | FinancingArrangement           3      
Debt instrument, face amount           $ 472,000      
Long-term debt   0 0   $ 238,000        
Debt instrument, discount             $ 359,000    
Other Financing Arrangement One                  
Debt Instrument [Line Items]                  
Debt instrument, maturity date           2020-06      
Other Financing Arrangement Two                  
Debt Instrument [Line Items]                  
Debt instrument, maturity date           2020-08      
Loan and Security Agreement | East West Bank                  
Debt Instrument [Line Items]                  
Maximum borrowings available   8,000,000 $ 8,000,000            
Line of credit facility, interest rate during period     1.00%            
Line of credit facility, maturity date     2019-11            
Line of credit facility, covenant compliance minimum required availability amount         1,200,000 $ 750,000      
Line of credit facility, status of covenant compliance     The Company was not in compliance with one of the financial covenants, specifically the fixed charge coverage ratio, however, EWB waived such noncompliance in October 2019 by amending the EWB Loan Agreement.            
Outstanding borrowings   0 $ 0            
Loan and Security Agreement | East West Bank | Maximum                  
Debt Instrument [Line Items]                  
Fixed charge coverage ratio for last day of each month           1.05      
Remaining borrowing capacity   8,000,000 8,000,000   $ 8,000,000        
Loan and Security Agreement | East West Bank | Minimum                  
Debt Instrument [Line Items]                  
Fixed charge coverage ratio for last day of each month         1.10 1.00      
Subordinated Term Loan and Security Agreement | B. Riley Principal Investments, LLC                  
Debt Instrument [Line Items]                  
Maximum borrowings available         $ 12,000,000       $ 10,000,000
Outstanding borrowings   9,751,000 $ 9,751,000   13,001,000        
Minimum principal amount outstanding to have waiver of defined prepayment penalties         $ 10,000,000        
Debt instrument, stated interest rate         10.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%            
Debt instrument, convertible, price of common stock per share | $ / shares $ 8.87                
Subordinated Term Loan and Security Agreement | B. Riley Principal Investments, LLC | Prior to First Anniversary of Effective Date                  
Debt Instrument [Line Items]                  
Designated percentage 100.00%                
Subordinated Term Loan and Security Agreement | B. Riley Principal Investments, LLC | Year Two of Loan Agreement                  
Debt Instrument [Line Items]                  
Designated percentage 75.00%                
Subordinated Term Loan and Security Agreement | B. Riley Principal Investments, LLC | Year Three of Loan Agreement                  
Debt Instrument [Line Items]                  
Designated percentage 50.00%                
Subordinated Term Loan and Security Agreement | B. Riley Principal Investments, LLC | Year Four of Loan Agreement                  
Debt Instrument [Line Items]                  
Designated percentage 25.00%                
Subordinated Term Loan and Security Agreement | B. Riley Principal Investments, LLC | Final Year of Agreement on or Prior to Maturity Date                  
Debt Instrument [Line Items]                  
Designated percentage 12.50%                
Promissory Notes Payable                  
Debt Instrument [Line Items]                  
Debt instrument, outstanding balance   $ 547,000 $ 547,000   $ 718,000     $ 736,000  
Debt instrument, periodic payment, number of equal quarterly installments | Installment               20  
Debt instrument, frequency of periodic payment     quarterly            
Promissory Notes Payable | Maximum                  
Debt Instrument [Line Items]                  
Debt instrument, stated interest rate   8.00% 8.00%            
Debt instrument, payment term     4 years            
Promissory Notes Payable | Minimum                  
Debt Instrument [Line Items]                  
Debt instrument, payment term     2 years