INCOME TAXES - Schedule of Unrecognized Tax Benefits (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
---|---|---|---|
Jun. 30, 2017 |
Jun. 30, 2016 |
Jun. 30, 2015 |
|
Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns | |||
Beginning of year balance | $ 4,381 | $ 3,436 | $ 1,438 |
Increases in prior period tax positions | 101 | 318 | 1,185 |
Decreases in prior period tax positions | (870) | (201) | 0 |
Decreases due to lapse in statute of limitations | (22) | (721) | (225) |
Increases in current period tax positions | 1,453 | 1,549 | 1,038 |
End of year balance | $ 5,043 | $ 4,381 | $ 3,436 |