Basis of Presentation - Additional Information (Details) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
|
Nov. 30, 2025
USD ($)
|
Aug. 31, 2025
USD ($)
|
Nov. 30, 2024
USD ($)
|
Nov. 30, 2025
USD ($)
segment
|
|
| Organization, Consolidation and Presentation of Financial Statements [Abstract] | ||||
| Allowance for credit losses for client receivables and contract assets | $ 24,571 | $ 32,247 | $ 24,571 | |
| Accumulated depreciation | 2,988,124 | 2,926,630 | 2,988,124 | |
| Business optimization costs | $ 307,541 | $ 615,324 | $ 0 | 923,000 |
| Employee severance | 628,000 | |||
| Asset impairments | $ 295,000 | |||
| Number of divestitures | segment | 2 | |||
| X | ||||||||||
- Definition Number Of Divestitures No definition available.
|
| X | ||||||||||
- Definition Amount of accumulated depreciation, depletion and amortization for physical assets used in the normal conduct of business to produce goods and services. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of allowance for credit loss on accounts receivable, classified as current. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of write-down of assets recognized in the income statement. Includes, but is not limited to, losses from tangible assets, intangible assets and goodwill. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of restructuring charges, remediation cost, and asset impairment loss. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of expenses for special or contractual termination benefits provided to current employees involuntarily terminated under a benefit arrangement associated exit or disposal activities pursuant to an authorized plan. Excludes expenses related to one-time termination benefits, a discontinued operation or an asset retirement obligation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|