XML 93 R50.htm IDEA: XBRL DOCUMENT v3.23.3
NATURE OF OPERATIONS AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Narrative) (Details)
$ in Thousands
3 Months Ended 12 Months Ended
Aug. 31, 2023
USD ($)
Aug. 31, 2023
USD ($)
segments
Aug. 31, 2022
USD ($)
Aug. 31, 2021
USD ($)
Property, Plant and Equipment [Line Items]        
Number of business segments | segments   2    
Asset impairments $ 3,500 $ 3,780 $ 4,926 $ 6,784
Proceeds From Government Grants Related To Income   9,500 15,500  
Realized and unrealized gain (loss) on investment and foreign currency   12,100 $ 9,600  
West Virginia Economic Development Authority        
Property, Plant and Equipment [Line Items]        
Agreement For Performance Based Principal Reduction Loan   75,000    
Proceeds From Performance Based Principal Reduction Loan   5,000    
Energy Aid Program, 2022        
Property, Plant and Equipment [Line Items]        
Proceeds From Government Grants Related To Income   $ 4,300    
Receivables secured by credit insurance or letters of credit        
Property, Plant and Equipment [Line Items]        
Percentage of accounts receivable secured by credit insurance or letters of credit 14.00% 14.00% 16.00%