Leases - Schedule of Cash Flow Information (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
May 31, 2026 |
May 31, 2025 |
|
| Leases [Abstract] | ||
| Cash paid for amounts included in the measurement of operating lease liabilities | $ 65,735 | $ 56,987 |
| Operating lease right-of-use assets obtained in exchange for new and renewed operating lease liabilities | 95,527 | 84,629 |
| Operating lease right-of-use assets acquired in business combinations | $ 0 | $ 3,077 |
| Other information related to operating leases | ||
| Weighted-average remaining lease term - operating leases | 5 years 8 months 4 days | 5 years 7 months 28 days |
| Weighted-average discount rate - operating leases | 4.34% | 4.08% |
| X | ||||||||||
- Definition Lessee, Operating Lease, Additional Information [Abstract] No definition available.
|
| X | ||||||||||
- Definition Right-Of-Use Asset Obtained In Exchange For Operating Lease Liability, Business Combination No definition available.
|
| X | ||||||||||
- References No definition available.
|
| 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 Weighted average discount rate for operating lease calculated at point in time. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| 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
|