Quarterly report pursuant to Section 13 or 15(d)

Revolving credit line - Narrative (Details)

v3.7.0.1
Revolving credit line - Narrative (Details) - USD ($)
Jul. 31, 2017
Mar. 27, 2017
Mar. 01, 2012
Jun. 30, 2017
Jun. 30, 2016
Debt Instrument [Line Items]          
Debt balance       $ 5,000,000 $ 0
Line of Credit | Revolving Credit Facility          
Debt Instrument [Line Items]          
Debt balance       5,000,000  
Bridge Bank – Revolving Credit Line - March 1, 2012 | Bridge Bank, N.A. | Line of Credit | Revolving Credit Facility          
Debt Instrument [Line Items]          
Line of credit facility, maximum borrowing capacity   $ 10,000,000 $ 10,000,000    
Debt instrument, allowable borrowings, percentage of eligible accounts receivable     80.00%    
Debt instrument, additional borrowing maximum, over eligible accounts receivable limit     $ 1,000,000    
Period for eligible accounts receivable     90 days    
Remaining borrowing capacity       1,700,000  
Debt balance       $ 5,000,000  
Eighth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility | Period from February 1, 2017 through December 31, 2017          
Debt Instrument [Line Items]          
Quick ratio (not less than)   0.65      
Eighth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility | Period from January 1, 2018 and after          
Debt Instrument [Line Items]          
Quick ratio (not less than)   0.75      
Eighth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility | Quarter ending March 31, 2017          
Debt Instrument [Line Items]          
Maximum decline in Adjusted EBITDA from projected amount   $ 300,000      
Maximum percentage of decline in revenue from projected amount   25.00%      
Eighth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility | Quarter ending June 30, 2017          
Debt Instrument [Line Items]          
Maximum decline in Adjusted EBITDA from projected amount   $ 400,000      
Eighth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility | Quarter ending September 30, 2017          
Debt Instrument [Line Items]          
Maximum decline in Adjusted EBITDA from projected amount   $ 400,000      
Maximum percentage of decline in revenue from projected amount   25.00%      
Eighth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility | Quarter ending December 31, 2017          
Debt Instrument [Line Items]          
Maximum decline in Adjusted EBITDA from projected amount   $ 400,000      
Maximum percentage of decline in revenue from projected amount   25.00%      
Subsequent Event | Ninth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility          
Debt Instrument [Line Items]          
Percentage change in finance charge for outstanding advances 0.25%        
Percentage change in finance charge for outstanding advances on the non-formula availability 0.75%        
Subsequent Event | Ninth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility | Period from January 1, 2018 and after          
Debt Instrument [Line Items]          
Quick ratio (not less than) 0.70        
Subsequent Event | Ninth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility | Quarter ending June 30, 2017          
Debt Instrument [Line Items]          
Maximum percentage of decline in revenue from projected amount 25.00%        
Subsequent Event | Ninth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility | Period After June 30, 2017          
Debt Instrument [Line Items]          
Advance rate 85.00%        
Subsequent Event | Ninth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility | Period from June 1, 2017 to December 31, 2017          
Debt Instrument [Line Items]          
Quick ratio (not less than) 0.60        
Subsequent Event | Ninth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility | Period after July 31, 2017          
Debt Instrument [Line Items]          
Non-formula availability $ 500,000        
Subsequent Event | Ninth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility | Period after October 15, 2017          
Debt Instrument [Line Items]          
Non-formula availability 250,000        
Subsequent Event | Ninth Business Financing Modification Agreement with Western Alliance Bank | Line of Credit | Revolving Credit Facility | Period at December 31, 2017          
Debt Instrument [Line Items]          
Non-formula availability $ 0