v3.5.0.2
DEBT (Details) - USD ($)
$ in Thousands
3 Months Ended
Sep. 30, 2016
Sep. 30, 2015
Jun. 30, 2016
Jun. 30, 2012
Long-term debt disclosure        
Principal $ 715,000   $ 645,000  
Unamortized Discount (34,092)   (36,943)  
Debt Issuance Costs (6,879)   (7,372)  
Total debt 674,029   600,685  
Convertible notes due 2019        
Long-term debt disclosure        
Principal 370,000   370,000  
Unamortized Discount (34,092)   (36,943)  
Debt Issuance Costs (3,616)   (3,934)  
Total debt 332,292   329,123  
Aggregate principal amount of convertible senior notes issued       $ 370,000
Interest rate on convertible senior notes (as a percent)       2.875%
Interest expense recognized 5,800 $ 5,600    
Revolving credit facility        
Long-term debt disclosure        
Principal 345,000   275,000  
Debt Issuance Costs (3,263)   (3,438)  
Total debt 341,737   $ 271,562  
Maximum availability under the revolving credit facility 650,000      
Outstanding amount under credit facility 345,000      
Available under the revolving credit facility $ 305,000      
Revolving credit facility | LIBOR        
Long-term debt disclosure        
Revolving credit facility, basis spread on interest rate (as a percent) 1.75%      
Effective interest rate (as percent) 2.28%      
Revolving credit facility | Minimum | LIBOR        
Long-term debt disclosure        
Revolving credit facility, basis spread on interest rate (as a percent) 1.25%      
Revolving credit facility | Maximum | LIBOR        
Long-term debt disclosure        
Revolving credit facility, basis spread on interest rate (as a percent) 3.00%