Stock-Based Compensation - Schedule of Stock Options Granted and Outstanding (Details) - $ / shares |
12 Months Ended | |||
|---|---|---|---|---|
May 31, 2026 |
May 31, 2025 |
May 31, 2024 |
May 31, 2023 |
|
| Shares | ||||
| Outstanding, beginning of period (in shares) | 12,678,487 | 15,249,032 | 17,711,008 | |
| Granted (in shares) | 1,186,657 | 1,050,217 | 1,633,988 | |
| Canceled (in shares) | 0 | 0 | 0 | |
| Forfeited (in shares) | (305,433) | (622,472) | (442,372) | |
| Exercised (in shares) | (2,054,262) | (2,998,290) | (3,653,592) | |
| Outstanding, end of period (in shares) | 11,505,449 | 12,678,487 | 15,249,032 | |
| Options exercisable (in shares) | 4,708,646 | 4,870,890 | 5,543,968 | 6,185,384 |
| Weighted Average Exercise Price | ||||
| Outstanding, beginning of period (in dollars per share) | $ 103.72 | $ 85.73 | $ 69.50 | |
| Granted (in dollars per share) | 201.51 | 222.76 | 165.58 | |
| Canceled (in dollars per share) | 0 | 0 | 0 | |
| Forfeited (in dollars per share) | 156.46 | 142.77 | 102.84 | |
| Exercised (in dollars per share) | 63.08 | 53.30 | 42.91 | |
| Outstanding, end of period (in dollars per share) | $ 116.58 | $ 103.72 | $ 85.73 | |
| X | ||||||||||
- Definition The number of shares into which fully or partially vested stock options outstanding as of the balance sheet date can be currently converted under the option plan. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Number of options or other stock instruments for which the right to exercise has lapsed under the terms of the plan agreements. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition The number of shares under options that were cancelled during the reporting period as a result of occurrence of a terminating event specified in contractual agreements pertaining to the stock option plan. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Gross number of share options (or share units) granted during the period. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Number of options outstanding, including both vested and non-vested options. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. No definition available.
|
| X | ||||||||||
- Definition Weighted average price at which grantees can acquire the shares reserved for issuance under the stock option plan. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Weighted average price at which option holders acquired shares when converting their stock options into shares. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Weighted average price at which grantees could have acquired the underlying shares with respect to stock options of the plan that expired. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Weighted average price at which grantees could have acquired the underlying shares with respect to stock options that were terminated. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Weighted average per share amount at which grantees can acquire shares of common stock by exercise of options. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Number of share options (or share units) exercised during the current period. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|