STOCK-BASED COMPENSATION (Details) - USD ($) $ / shares in Units, $ in Thousands | 6 Months Ended |
Dec. 31, 2016 | Dec. 31, 2015 |
Employee Stock Option [Member] | | |
Number of Shares, Outstanding at June 30, 2016 | 465,000 | |
Number of Shares, Granted | 70,000 | |
Number of Shares, Forfeited, cancelled or expired | (175,000) | |
Number of Shares, Outstanding at December 31, 2016 | 360,000 | |
Number of Shares, Expected to vest at December 31, 2016 | 147,500 | |
Number of Shares, Options Vested | 147,500 | |
Number of Shares, Options Non-Vested | 212,500 | |
Number of Shares, Options Exercisable | 147,500 | |
Weighted Avg Grant Date Fair Value per Share, Outstanding at June 30, 2016 | $ 2.95 | |
Weighted Avg Grant Date Fair Value per Share, Granted | 1.64 | |
Weighted Avg Grant Date Fair Value per Share, Forfeited, cancelled or expired | 3.58 | |
Weighted Avg Grant Date Fair Value per Share, Outstanding at December 31, 2016 | 2.39 | |
Weighted Avg Grant Date Fair Value per Share, Expected to vest at December 31, 2016 | 3.5 | |
Weighted Avg Grant Date Fair Value Per Share, Options Vested | 3.5 | |
Weighted Avg Grant Date Fair Value per Share, Options Non-Vested | 1.61 | |
Weighted Avg Grant Date Fair Value per Share, Options Exercisable | $ 3.5 | |
Weighted Avg Contractual Term in Years, Outstanding | 8 years 10 months 24 days | 0 years |
Weighted Avg Contractual Term in Years, Granted | 0 years | |
Weighted Avg Contractual Term in Years, Forfeited, cancelled or expired | 0 years | |
Weighted Avg Contractual Term in Years, Options Non-Vested | 0 years | |
Weighted Avg Contractual Term in Years, Options Exercisable | 0 years | |
Aggregate Intrinsic Value, Outstanding at June 30, 2016 | $ (542) | |
Aggregate Intrinsic Value, Granted | 10 | |
Aggregate Intrinsic Value, Forfeited, cancelled or expired | (314) | |
Aggregate Intrinsic Value, Outstanding at June 30, 2016 | (218) | |
Aggregate Intrinsic Value, Options Vested | (253) | |
Aggregate Intrinsic Value, Options Non-Vested | 36 | |
Aggregate Intrinsic Value, Options Exercisable | $ (253) | |
Restricted Stock Units (RSUs) [Member] | | |
Number of Shares, Outstanding at June 30, 2016 | 88,930 | |
Number of Shares, Granted | 0 | |
Number of Shares, Released | (45,180) | |
Number of Shares, Forfeited, cancelled or expired | (43,750) | |
Number of Shares, Outstanding at December 31, 2016 | 0 | |
Number of Shares, RSAs Vested | 0 | |
Number of Shares, Expected to vest at December 31, 2016 | 0 | |
Number of Shares, Options Vested | 0 | |
Weighted Avg Grant Date Fair Value per Share, Outstanding at June 30, 2016 | $ 3.3 | |
Weighted Avg Grant Date Fair Value per Share, Granted | 0 | |
Weighted Avg Grant Date Fair Value per Share, Released | 1.66 | |
Weighted Avg Grant Date Fair Value per Share, Forfeited, cancelled or expired | 5 | |
Weighted Avg Grant Date Fair Value per Share, Outstanding at December 31, 2016 | 0 | |
Weighted Avg Grant Date Fair Value per Share, RSAs Vested | 0 | |
Weighted Avg Grant Date Fair Value per Share, Expected to vest at December 31, 2016 | 0 | |
Weighted Avg Grant Date Fair Value Per Share, Options Vested | $ 0 | |
Weighted Avg Contractual Term in Years, Outstanding | 0 years | 0 years |
Weighted Avg Contractual Term in Years, Granted | 0 years | |
Weighted Avg Contractual Term in Years, Released | 0 years | |
Weighted Avg Contractual Term in Years, Forfeited, cancelled or expired | 0 years | |
Weighted Avg Contractual Term in Years, RSAs Vested | 0 years | |
Weighted Avg Contractual Term in Years, Expected to vest at December 31, 2016 | 0 years | |
Aggregate Intrinsic Value, Outstanding at June 30, 2016 | $ 158 | |
Aggregate Intrinsic Value, Granted | 0 | |
Aggregate Intrinsic Value, Released | 80 | |
Aggregate Intrinsic Value, Forfeited, cancelled or expired | 78 | |
Aggregate Intrinsic Value, Outstanding at June 30, 2016 | 0 | |
Aggregate Intrinsic Value, RSAs Vested | 0 | |
Aggregate Intrinsic Value, Expected to vest at December 31, 2016 | $ 0 | |
Restricted Stock [Member] | | |
Number of Shares, Outstanding at June 30, 2016 | 5,263 | |
Number of Shares, Granted | 0 | |
Number of Shares, Released | 0 | |
Number of Shares, Forfeited, cancelled or expired | 0 | |
Number of Shares, Outstanding at December 31, 2016 | 5,263 | |
Number of Shares, RSAs Vested | 2,632 | |
Number of Shares, Expected to vest at December 31, 2016 | 2,631 | |
Number of Shares, Options Vested | 2,631 | |
Weighted Avg Grant Date Fair Value per Share, Outstanding at June 30, 2016 | $ 3.8 | |
Weighted Avg Grant Date Fair Value per Share, Granted | 0 | |
Weighted Avg Grant Date Fair Value per Share, Released | 0 | |
Weighted Avg Grant Date Fair Value per Share, Forfeited, cancelled or expired | 0 | |
Weighted Avg Grant Date Fair Value per Share, Outstanding at December 31, 2016 | 3.8 | |
Weighted Avg Grant Date Fair Value per Share, RSAs Vested | 3.80 | |
Weighted Avg Grant Date Fair Value per Share, Expected to vest at December 31, 2016 | 3.8 | |
Weighted Avg Grant Date Fair Value Per Share, Options Vested | $ 3.8 | |
Weighted Avg Contractual Term in Years, Outstanding | 1 year | 0 years |
Weighted Avg Contractual Term in Years, Granted | 0 years | |
Weighted Avg Contractual Term in Years, Released | 0 years | |
Weighted Avg Contractual Term in Years, Forfeited, cancelled or expired | 0 years | |
Weighted Avg Contractual Term in Years, RSAs Vested | 0 years | |
Weighted Avg Contractual Term in Years, Expected to vest at December 31, 2016 | 1 year | |
Aggregate Intrinsic Value, Outstanding at June 30, 2016 | $ 9 | |
Aggregate Intrinsic Value, Granted | 0 | |
Aggregate Intrinsic Value, Released | 0 | |
Aggregate Intrinsic Value, Forfeited, cancelled or expired | 0 | |
Aggregate Intrinsic Value, Outstanding at June 30, 2016 | 9 | |
Aggregate Intrinsic Value, RSAs Vested | 5 | |
Aggregate Intrinsic Value, Expected to vest at December 31, 2016 | $ 9 | |