Leases - Schedule of Supplemental Cash Flow and Other Information (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Aug. 31, 2026 |
Aug. 31, 2025 |
Aug. 31, 2024 |
|
| Cash paid for amounts included in measurement of lease liabilities: | |||
| Operating cash flows from operating leases | $ 92,116 | $ 85,976 | $ 78,614 |
| Operating cash flows from finance leases | 2,371 | 2,256 | 1,964 |
| Financing cash flows from finance leases | 12,111 | 9,772 | 7,716 |
| Supplemental noncash information: | |||
| Right of use assets obtained in exchange for lease liabilities | 76,249 | 89,158 | 73,183 |
| Right of use asset modifications | $ 179 | $ 25,475 | $ 12,277 |
| X | ||||||||||
- Definition Cash Flow, Lessee No definition available.
|
| X | ||||||||||
- Definition Right of Use Asset Modification No definition available.
|
| X | ||||||||||
- Definition Right-Of-Use Asset Obtained In Exchange For Lease Liability No definition available.
|
| X | ||||||||||
- Definition Amount of interest paid on finance lease liability. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of cash outflow for principal payment on finance lease. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of increase in right-of-use asset obtained in exchange for operating lease liability. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|