Consolidated Statements of Stockholders' Equity (Deficit) - USD ($)
$ in Thousands
Total
Common Stock
Additional Paid-In Capital
Treasury Stock
Retained Earnings
Balances at Jun. 30, 2012 $ 130,951 $ 92 $ 128,981 $ (69,515) $ 71,393
Balances (in shares) at Jun. 30, 2012   92,049,978   (39,079,910)  
Increase (Decrease) in Stockholders' Equity [Roll Forward]          
Net income and comprehensive income $ 80,490       80,490
Stock options exercised (in shares) 266,558 266,558      
Stock options exercised $ 635   635    
Restricted stock units issued, net of tax withholdings (in shares)   56,317      
Restricted stock units issued, net of tax withholdings (214)   (214)    
Cash dividend to common stock (15,652)       (15,652)
Repurchase of common stock (in shares)   (5,159,050)   (5,159,050)  
Common stock repurchased (54,354) $ (5)   $ (54,349)  
Stock-based compensation expense 3,376   3,376    
Tax impact of employee stock transactions 2,204   2,204    
Balances (in shares) at Jun. 30, 2013   87,213,803   (44,238,960)  
Balances at Jun. 30, 2013 147,436 $ 87 134,982 $ (123,864) 136,231
Increase (Decrease) in Stockholders' Equity [Roll Forward]          
Net income and comprehensive income $ 176,937       176,937
Stock options exercised (in shares) 849,635 849,635      
Stock options exercised $ 2,090 $ 1 2,089    
Restricted stock units issued, net of tax withholdings (in shares)   116,010      
Restricted stock units issued, net of tax withholdings (2,013)   (2,013)    
Stock-based compensation expense 4,906   4,906    
Tax impact of employee stock transactions 5,908   5,908    
Balances (in shares) at Jun. 30, 2014   88,179,448   (44,238,960)  
Balances at Jun. 30, 2014 335,264 $ 88 145,872 $ (123,864) 313,168
Increase (Decrease) in Stockholders' Equity [Roll Forward]          
Net income and comprehensive income $ 129,663       129,663
Stock options exercised (in shares) 299,034 299,034      
Stock options exercised $ 1,686   1,686    
Restricted stock units issued, net of tax withholdings (in shares)   130,792      
Restricted stock units issued, net of tax withholdings (1,798)   (1,798)    
Retirement of treasury shares (in shares)       44,768,739  
Retirement of treasury shares     (138,864) $ 138,864  
Cash dividend to common stock (15,020)       (15,020)
Repurchase of common stock (in shares)   (1,195,497)   (529,779)  
Common stock repurchased (34,712) $ (1) (13,967) $ (15,000) (5,744)
Stock-based compensation expense 4,992   4,992    
Tax impact of employee stock transactions 2,079   2,079    
Balances (in shares) at Jun. 30, 2015   87,413,777   0  
Balances at Jun. 30, 2015 $ 422,154 $ 87 $ 0 $ 0 $ 422,067