Accounts Receivable, Net - Schedule of the Activity in Allowance for Credit Losses (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
May 31, 2026 |
May 31, 2025 |
May 31, 2026 |
May 31, 2025 |
|
| Receivables [Abstract] | ||||
| Beginning allowance for credit losses | $ 40,420 | $ 43,746 | $ 42,000 | $ 49,200 |
| Provision for credit losses on accounts receivable | 8,510 | 12,531 | 24,585 | 35,885 |
| Write-offs, net of recoveries | (7,700) | (9,889) | (25,355) | (38,697) |
| Ending allowance for credit losses | $ 41,230 | $ 46,388 | $ 41,230 | $ 46,388 |
| X | ||||||||||
- Definition Amount of allowance for credit loss on accounts receivable. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| 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
|
| X | ||||||||||
- References No definition available.
|