XML 60 R47.htm IDEA: XBRL DOCUMENT v3.21.2
Allowance for Doubtful Accounts (Detail) - Allowance for doubtful accounts - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Jun. 30, 2019
Valuation And Qualifying Accounts Disclosure [Line Items]      
Balance, beginning of period $ 816 $ 434 $ 397
Charged to costs and other 234 560 153
Write-offs (252) (178) (116)
Balance, end of period 798 816 434
Accounts receivable, net of allowance for doubtful accounts      
Valuation And Qualifying Accounts Disclosure [Line Items]      
Balance, beginning of period 788 411  
Balance, end of period 751 788 411
Other Long-term Assets      
Valuation And Qualifying Accounts Disclosure [Line Items]      
Balance, beginning of period 28 23  
Balance, end of period $ 47 $ 28 $ 23