Property, Plant and Equipment (Details) - USD ($) $ in Thousands |
Jan. 31, 2025 |
Jul. 31, 2024 |
|---|---|---|
| Property, Plant, Equipment, and ROU Assets [Line Items] | ||
| Lease right-of-use assets – operating | $ 39,999 | $ 43,139 |
| Lease right-of-use assets – finance | 4,399 | 4,772 |
| Total cost | 2,089,478 | 2,118,216 |
| Less: Accumulated depreciation | (769,657) | (727,498) |
| Property, plant and equipment, net | 1,319,821 | 1,390,718 |
| Land | ||
| Property, Plant, Equipment, and ROU Assets [Line Items] | ||
| Property, plant and equipment | 146,786 | 151,164 |
| Buildings and improvements | ||
| Property, Plant, Equipment, and ROU Assets [Line Items] | ||
| Property, plant and equipment | 1,042,198 | 1,053,812 |
| Machinery and equipment | ||
| Property, Plant, Equipment, and ROU Assets [Line Items] | ||
| Property, plant and equipment | 726,110 | 738,535 |
| Rental vehicles | ||
| Property, Plant, Equipment, and ROU Assets [Line Items] | ||
| Property, plant and equipment | $ 129,986 | $ 126,794 |