INCOME TAXES - Unrecognized Tax Benefits Roll Forward (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2015
Jun. 30, 2014
Jun. 30, 2013
Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward]      
Unrecognized benefit—beginning of period $ 14,914 $ 11,455 $ 7,825
Gross increases—current year tax positions 4,960 3,871 3,806
Gross increases (decreases)—prior year tax positions 0 (213) (176)
Gross decreases - prior year tax positions due to statue lapse (284) (199) 0
Unrecognized benefit—end of period $ 19,590 $ 14,914 $ 11,455