v3.26.3
SEGMENT INFORMATION (Long-Lived Assets by Geographic Area) (Details) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2026
Aug. 31, 2025
Aug. 31, 2024
Segment Reporting, Entity-Wide Information Not Provided as Part of Reportable Segment, Geographical Area, Revenue and Long-Lived Asset [Line Items]      
Depreciation and amortization $ 395,921 $ 285,877 $ 280,367
Asset impairments 21 4,607 6,708
Capital expenditures 579,844 402,821 324,271
Assets 10,257,897 7,171,834 6,817,839
Long-lived assets 3,719,352 2,944,355 2,779,301
Segments | Reportable Segments Total      
Segment Reporting, Entity-Wide Information Not Provided as Part of Reportable Segment, Geographical Area, Revenue and Long-Lived Asset [Line Items]      
Depreciation and amortization 386,664 275,804 270,719
Capital expenditures 572,332 395,445 315,804
Assets 9,144,813 5,939,897 5,758,325
Segments | Corporate and Other      
Segment Reporting, Entity-Wide Information Not Provided as Part of Reportable Segment, Geographical Area, Revenue and Long-Lived Asset [Line Items]      
Depreciation and amortization 9,257 10,073 9,648
Capital expenditures 7,512 7,376 8,467
Assets 1,113,084 1,231,937 1,059,514
United States      
Segment Reporting, Entity-Wide Information Not Provided as Part of Reportable Segment, Geographical Area, Revenue and Long-Lived Asset [Line Items]      
Long-lived assets 3,428,151 2,650,327 2,499,949
Poland      
Segment Reporting, Entity-Wide Information Not Provided as Part of Reportable Segment, Geographical Area, Revenue and Long-Lived Asset [Line Items]      
Long-lived assets 254,730 256,248 236,326
Other      
Segment Reporting, Entity-Wide Information Not Provided as Part of Reportable Segment, Geographical Area, Revenue and Long-Lived Asset [Line Items]      
Long-lived assets $ 36,471 $ 37,780 $ 43,026