v3.25.2
Revenue - Summary of Revenues Disaggregated by Major Product and Sales Destination (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2025
May 31, 2024
May 31, 2025
May 31, 2024
Disaggregation of Revenue [Line Items]        
Revenues $ 726,991 $ 673,920 $ 2,026,036 $ 1,967,876
Ferrous Revenues        
Disaggregation of Revenue [Line Items]        
Revenues 320,746 334,425 966,805 999,419
Nonferrous Revenues        
Disaggregation of Revenue [Line Items]        
Revenues 229,428 184,127 590,489 517,902
Steel Revenues        
Disaggregation of Revenue [Line Items]        
Revenues 125,935 108,259 331,900 322,511
Retail and Other Revenues        
Disaggregation of Revenue [Line Items]        
Revenues 50,882 47,109 136,842 128,044
Foreign        
Disaggregation of Revenue [Line Items]        
Revenues 340,718 348,503 1,032,275 1,023,799
Domestic        
Disaggregation of Revenue [Line Items]        
Revenues $ 386,273 $ 325,417 $ 993,761 $ 944,077