STOCK BASED COMPENSATION - Stock-based compensation expense (Detail) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
---|---|---|---|---|
Mar. 31, 2017 |
Mar. 31, 2016 |
Mar. 31, 2017 |
Mar. 31, 2016 |
|
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | ||||
Stock-based compensation expense | $ 601 | $ 882 | $ 2,094 | $ 2,866 |
Cost of revenues | ||||
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | ||||
Stock-based compensation expense | 39 | 114 | 213 | 341 |
Research and development | ||||
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | ||||
Stock-based compensation expense | 421 | 566 | 1,362 | 1,770 |
Sales, general and administrative | ||||
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | ||||
Stock-based compensation expense | $ 141 | $ 202 | $ 519 | $ 755 |