Quarterly report pursuant to Section 13 or 15(d)

Earnings per Share and Shareholders' Equity Share Repurchase (Details)

v3.24.1.1.u2
Earnings per Share and Shareholders' Equity Share Repurchase (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended 150 Months Ended
Dec. 18, 2023
May 31, 2024
Feb. 29, 2024
Nov. 30, 2023
May 31, 2023
Feb. 28, 2023
Nov. 30, 2022
May 31, 2024
May 31, 2023
Feb. 29, 2024
Aug. 31, 2023
Aug. 31, 2022
Equity [Abstract]                        
Stock Repurchase Program, Remaining Number of Shares Authorized to be Repurchased   2,860,748           2,860,748        
Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest   $ 365,771 $ 336,926 $ 321,676 $ 336,619 $ 340,788 $ 334,323 $ 365,771 $ 336,619 $ 336,926 $ 326,620 $ 318,611
Net (loss) earnings   25,778 17,817 17,738 12,380 4,497 7,453 61,333 24,330      
Other Comprehensive (Loss) Income, Net of Tax   708 (1,207) 370 1,993 1,243 6,024 (129) $ 9,260      
Stock Issued During Period, Value, Employee Benefit Plan   75 35 51 59 49 42          
Stock Issued During Period, Value, Restricted Stock Award, Gross   0 0 0 0 0 0          
APIC, Share-based Payment Arrangement, Increase for Cost Recognition   2,772 2,810 2,717 2,207 2,120 2,155          
Stock Value Issued to Acquired For and Distributed From Rabbi Trust     263 90 90 $ 61 $ 77          
Retained earnings   245,256           245,256     1,011,112  
Treasury Stock, Value   $ 0           $ 0     $ 800,506  
Treasury Stock, Value, Acquired, Cost Method     $ 3,992 $ 26,116 20,831         $ 833,200    
Stock Repurchase Program, Number of Shares Authorized to be Repurchased   10,000,000           10,000,000        
Treasury Stock, Common, Shares   0           0     28,772,715  
Stock Repurchased During Period, Shares   71,536           1,165,767 843,689      
Stock Repurchased During Period, Value   $ 32,700     $ 20,800              
Treasury Stock, Shares, Acquired                   29,938,482    
Treasury Stock, Shares, Retired 29,841,209                      
Common Stock [Member]                        
Stock Issued During Period, Shares, New Issues   54,289,000 54,253,000 83,967,000 83,752,000 83,732,000 83,529,000 54,289,000 83,752,000 54,253,000 83,761,000 83,397,000
Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest   $ 10,858 $ 10,851 $ 16,793 $ 16,750 $ 16,746 $ 16,706 $ 10,858 $ 16,750 $ 10,851 $ 16,752 $ 16,679
Stock Issued During Period, Shares, Employee Benefit Plan   2,000 1,000 2,000 2,000 2,000 3,000          
Stock Issued During Period, Value, Employee Benefit Plan   $ 1   $ 0 $ 1   $ 1          
Stock Issued During Period, Shares, Restricted Stock Award, Gross   14,000 105,000 118,000 12,000 173,000 84,000          
Stock Issued During Period, Value, Restricted Stock Award, Gross   $ 2 $ 21 $ 23 $ 2 $ 34 $ 17          
Stock Issued To Acquired For And Distributed From Rabbi Trust     26,000 3,000 4,000 28,000 3,000          
Stock Value Issued to Acquired For and Distributed From Rabbi Trust     $ 5 $ 1 $ 1 $ 6 $ 1          
Treasury Stock, Shares, Retired   (72,000) (29,867,000)                  
Additional Paid-in Capital [Member]                        
Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest   $ 230,996 $ 226,075 223,474 218,164 215,879 215,194 230,996 218,164 226,075 220,472 212,986
Stock Issued During Period, Value, Employee Benefit Plan   74 35 51 58 49 41          
Stock Issued During Period, Value, Restricted Stock Award, Gross   (2) (21) 23 (2) (34) 17          
APIC, Share-based Payment Arrangement, Increase for Cost Recognition   2,772 2,810 2,717 2,207 2,120 2,155          
Stock Value Issued to Acquired For and Distributed From Rabbi Trust     258 89 89 55 76          
Stock Repurchased and Retired During Period, Value   824,600                    
Retained Earnings [Member]                        
Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest   245,256 222,047 1,028,871 991,081 978,701 974,204 245,256 991,081 222,047 1,011,112 966,751
Net (loss) earnings   25,778 17,817 17,738 12,380 4,497 7,453          
AOCI Attributable to Parent [Member]                        
Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest   (121,339) (122,047) (120,840) (125,701) (127,694) (128,937) (121,339) (125,701) (122,047) (121,210) (134,961)
Other Comprehensive (Loss) Income, Net of Tax   708 (1,207) 370 1,993 1,243 6,024          
Stock held in trust [member] [Member]                        
Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest   (3,777) (3,777) (3,576) (3,405) (3,320) (3,239) (3,777) (3,405) (3,777) (3,484) (3,209)
Stock Value Issued to Acquired For and Distributed From Rabbi Trust     201 92 (85) (81) 30          
Deferred Compensation, Share-based Payments [Member]                        
Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest   3,777 3,777 3,576 3,405 3,320 3,239 $ 3,777 $ 3,405 $ 3,777 $ 3,484 $ 3,209
Stock Value Issued to Acquired For and Distributed From Rabbi Trust     $ 201 $ 92 $ 85 $ 81 $ 30          
Par Value                        
Stock Repurchased and Retired During Period, Value   $ 6,000