CONSOLIDATED STATEMENTS OF STOCKHOLDERS’ EQUITY (DEFICIT) - USD ($)
$ in Thousands
Total
Common Stock
Additional Paid-In Capital
Retained Earnings (Deficit)
Accumulated Other Comprehensive Loss
Balances (in shares) at Jun. 30, 2017   80,275,965      
Balances at Jun. 30, 2017 $ 601,764 $ 80 $ 525 $ 601,159 $ 0
Increase (Decrease) in Stockholders' Equity [Roll Forward]          
Net income 196,290     196,290  
Other comprehensive income (loss) $ 0        
Stock options exercised (in shares) 1,484,110 1,484,110      
Stock options exercised $ 1,539 $ 2 1,537    
Payroll taxes settled on Option Exercises (in shares)   (582,497)      
Payroll taxes settled on Option Exercises (40,624) $ (1)   (40,623)  
Restricted stock units issued, net of tax withholdings (in shares)   57,255      
Restricted stock units issued, net of tax withholdings (1,415)   (1,415)    
Repurchase of Common Stock (in shares)   (7,162,312)      
Repurchase of Common Stock (445,014) $ (7) (3,462) (441,545)  
Stock-based compensation expense 3,208   3,208    
Balances (in shares) at Jun. 30, 2018   74,072,521      
Balances at Jun. 30, 2018 315,748 $ 74 393 315,281 0
Increase (Decrease) in Stockholders' Equity [Roll Forward]          
Net income 322,694     322,694  
Other comprehensive income (loss) $ 393       393
Stock options exercised (in shares) 92,644 92,644      
Stock options exercised $ 831   831    
Restricted stock units issued, net of tax withholdings (in shares)   41,256      
Restricted stock units issued, net of tax withholdings (1,473)   (1,473)    
Repurchase of Common Stock (in shares)   (4,733,853)      
Repurchase of Common Stock (470,448) $ (5) (2,641) (467,802)  
Stock-based compensation expense 2,890   2,890    
Dividends paid on Common Stock (71,358)     (71,358)  
Balances (in shares) at Jun. 30, 2019   69,472,568      
Balances at Jun. 30, 2019 99,277 $ 69 0 98,815 393
Increase (Decrease) in Stockholders' Equity [Roll Forward]          
Net income 380,297     380,297  
Other comprehensive income (loss) $ (384)       (384)
Stock options exercised (in shares) 22,582 22,582      
Stock options exercised $ 179   179    
Restricted stock units issued, net of tax withholdings (in shares)   35,541      
Restricted stock units issued, net of tax withholdings (1,132)   (1,132)    
Repurchase of Common Stock (in shares)   (5,842,800)      
Repurchase of Common Stock (697,901) $ (5) (1,488) (696,408)  
Stock-based compensation expense 2,888   2,888    
Dividends paid on Common Stock (78,682)     (78,682)  
Balances (in shares) at Jun. 30, 2020   63,687,891      
Balances at Jun. 30, 2020 $ (295,458) $ 64 $ 447 $ (295,978) $ 9