Revenue - Summary of Activity for Allowance for Credit Losses (Detail) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Feb. 29, 2024 |
Feb. 28, 2023 |
Feb. 29, 2024 |
Feb. 28, 2023 |
|
| Accounts receivable, allowance for credit loss [Roll Forward] | ||||
| Beginning balance | $ 57,448 | $ 48,041 | $ 49,482 | $ 46,669 |
| Bad debt provision | 3,608 | 1,950 | 14,197 | 9,473 |
| Uncollectible accounts written off, net of recoveries | (2,471) | (2,667) | (5,285) | (7,573) |
| Translation adjustments | (208) | (2) | (17) | (1,247) |
| Ending balance | $ 58,377 | $ 47,322 | $ 58,377 | $ 47,322 |
| 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
|