INCOME TAXES - Additional Information (Details) - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Jun. 30, 2015
Jun. 30, 2015
Jun. 30, 2014
Jun. 30, 2013
Tax Credit Carryforward [Line Items]        
Effective tax rate   11.00% 9.10% 12.30%
Business e-mail compromise (BEC) fraud loss   $ 39,137 $ 0 $ 0
Valuation allowance $ 595 595 $ 345  
Increase in equity when deferred tax assets are recognized   495    
Undistributed earnings of foreign subsidiaries that the Company intends to reinvest indefinitely 443,000 443,000    
Amount of unrecognized tax benefits that would affect the effective tax rate if recognized 18,600 18,600    
Interest accrued related to uncertain tax matters 1,200 1,200    
State | California | Research Tax Credit Carryforward        
Tax Credit Carryforward [Line Items]        
Tax credit, net of unrecognized tax benefits 1,400 1,400    
Valuation allowance 595 $ 595    
Business E-mail Compromise Fraud Loss        
Tax Credit Carryforward [Line Items]        
Business e-mail compromise (BEC) fraud loss $ 39,137