v3.26.3
CONSOLIDATED STATEMENTS OF EQUITY - USD ($)
$ in Thousands
Total
Common Stock
Additional Paid-in Capital
Accumulated Other Comprehensive Loss
Retained Earnings
Treasury Stock
Beginning balance (in shares) at Aug. 31, 2023   31,935,000        
Beginning balance at Aug. 31, 2023 $ 1,107,043 $ 3 $ 497,434 $ (163,992) $ 817,559 $ (43,961)
Treasury stock, beginning balance (in shares) at Aug. 31, 2023           958,000
Increase (Decrease) in Stockholders' Equity [Roll Forward]            
Purchase of treasury stock (in shares)           980,000
Purchase of treasury stock $ (73,486)         $ (73,486)
Issuance of treasury stock (in shares) (3,000) (3,000)       (3,000)
Issuance of treasury stock $ 0   (185)     $ 185
Issuance of restricted stock award (in shares)   671,000        
Forfeiture of restricted stock awards (in shares)   (32,000)        
Stock-based compensation 17,293   17,293      
Dividends paid to stockholders (66,162)       (66,162)  
Net income 138,875       138,875  
Other comprehensive (loss) income (598)     (598)    
Ending balance (in shares) at Aug. 31, 2024   32,571,000        
Ending balance at Aug. 31, 2024 1,122,965 $ 3 514,542 (164,590) 890,272 $ (117,262)
Treasury stock, ending balance (in shares) at Aug. 31, 2024           1,935,000
Increase (Decrease) in Stockholders' Equity [Roll Forward]            
Purchase of treasury stock (in shares)           72,000
Purchase of treasury stock $ (6,710)         $ (6,710)
Issuance of treasury stock (in shares) (65,000) (65,000)       (65,000)
Issuance of treasury stock $ 0   (4,000)     $ 4,000
Issuance of restricted stock award (in shares)   192,000        
Forfeiture of restricted stock awards (in shares)   (10,000)        
Stock-based compensation 18,812   18,812      
Dividends paid to stockholders (38,733)       (38,733)  
Net income 147,887       147,887  
Other comprehensive (loss) income $ 3,151     3,151    
Ending balance (in shares) at Aug. 31, 2025 30,745,833 32,688,000        
Ending balance at Aug. 31, 2025 $ 1,247,372 $ 3 529,354 (161,439) 999,426 $ (119,972)
Treasury stock, ending balance (in shares) at Aug. 31, 2025 1,942,214         1,942,000
Increase (Decrease) in Stockholders' Equity [Roll Forward]            
Purchase of treasury stock (in shares)           69,000
Purchase of treasury stock $ (9,092)         $ (9,092)
Issuance of treasury stock (in shares) (53,000) (53,000)       (53,000)
Issuance of treasury stock $ 0   (3,379)     $ 3,379
Issuance of restricted stock award (in shares)   267,000        
Forfeiture of restricted stock awards (in shares)   (88,000)        
Stock-based compensation 23,339   23,339      
Dividends paid to stockholders (42,979)       (42,979)  
Net income 166,586       166,586  
Other comprehensive (loss) income $ 70,124     70,124    
Ending balance (in shares) at Aug. 31, 2026 30,855,604 32,814,000        
Ending balance at Aug. 31, 2026 $ 1,455,350 $ 3 $ 549,314 $ (91,315) $ 1,123,033 $ (125,685)
Treasury stock, ending balance (in shares) at Aug. 31, 2026 1,958,479         1,958,000