XML 43 R32.htm IDEA: XBRL DOCUMENT v3.7.0.1
DEBT (Details) - Silicon Valley Bank
Mar. 08, 2016
USD ($)
installment
Jun. 30, 2017
USD ($)
May 09, 2017
USD ($)
Sep. 09, 2016
USD ($)
Debt Instrument [Line Items]        
Weighted average interest rate   7.90%    
Revolving Credit Facility | December 31, 2017        
Debt Instrument [Line Items]        
Minimum revenue covenant     $ 51,700,000  
Debt Financing Agreement        
Debt Instrument [Line Items]        
Debt instrument, face amount $ 15,000,000.0      
Maximum borrowing capacity (up to)       $ 20,000,000
Debt Financing Agreement | Revolving Credit Facility | Line of Credit        
Debt Instrument [Line Items]        
Line of credit facility, maximum borrowing capacity $ 10,000,000.0      
Line of credit, current   $ 2,500,000    
Remaining borrowing capacity   2,200,000.0    
Term Loan        
Debt Instrument [Line Items]        
Short-term bank loans and notes payable   $ 8,000,000    
Term Loan | Prime Rate        
Debt Instrument [Line Items]        
Basis spread on variable rate 5.00%      
Number of installments | installment 36      
Term Loan | Prime Rate | Minimum        
Debt Instrument [Line Items]        
Basis spread on variable rate 1.25%      
Term Loan | Debt Instrument, Redemption, Period One        
Debt Instrument [Line Items]        
Debt instrument, face amount $ 4,000,000.0      
Term Loan | Debt Instrument, Redemption, Period Two        
Debt Instrument [Line Items]        
Debt instrument, face amount 4,000,000.0      
Term Loan | Debt Instrument, Redemption, Period Three        
Debt Instrument [Line Items]        
Debt instrument, face amount $ 2,000,000.0