Revenue - Summary of Activity for Allowance for Credit Losses (Detail) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Nov. 30, 2023 |
Nov. 30, 2022 |
Nov. 30, 2023 |
Nov. 30, 2022 |
|
| Accounts receivable, allowance for credit loss [Roll Forward] | ||||
| Beginning balance | $ 56,584 | $ 46,775 | $ 49,482 | $ 46,669 |
| Bad debt provision | 2,892 | 5,116 | 10,588 | 7,523 |
| Uncollectible accounts written off, net of recoveries | (2,033) | (4,238) | (2,815) | (4,905) |
| Translation adjustments | 5 | 388 | 193 | (1,246) |
| Ending balance | $ 57,448 | $ 48,041 | $ 57,448 | $ 48,041 |
| X | ||||||||||
- Definition Accounts receivable allowance for credit loss translation adjustments. No definition available.
|
| X | ||||||||||
- Definition Amount of allowance for credit loss on accounts receivable. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| 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 Amount of direct write-downs of accounts receivable charged against the allowance. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of expense (reversal of expense) for expected credit loss on accounts receivable. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|