XML 115 R102.htm IDEA: XBRL DOCUMENT v3.21.2
Employee Stock and Savings Plans - Additional Information (Detail) - USD ($)
$ / shares in Units, shares in Millions, $ in Millions
12 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Jun. 30, 2019
Compensation Related Costs Disclosure [Line Items]      
Company contribution amount for each dollar a participant contributes into the savings plans 50.00%    
Retirement benefits for saving plans funded by employer $ 1,200 $ 1,000 $ 877
Upper Limit | IRS Compensation Limit      
Compensation Related Costs Disclosure [Line Items]      
Percentage of employee's earnings the company may contribute into the savings plans 50.00%    
Stock Awards      
Compensation Related Costs Disclosure [Line Items]      
Shares authorized for future grant 251    
Unrecognized compensation costs $ 12,000    
Unrecognized compensation costs are expected to be recognized over a weighted average period (years) 3 years    
Weighted average grant-date fair value $ 221.13 [1] $ 140.49 $ 107.02
Fair value of awards vested $ 13,400 $ 10,100 $ 8,700
Stock Awards | Lower Limit      
Compensation Related Costs Disclosure [Line Items]      
Award vest period 4 years    
Stock Awards | Upper Limit      
Compensation Related Costs Disclosure [Line Items]      
Award vest period 5 years    
Restricted Stock Units | Executive Incentive Plan      
Compensation Related Costs Disclosure [Line Items]      
Award vest period 4 years    
Performance Stock Units | Executive Incentive Plan      
Compensation Related Costs Disclosure [Line Items]      
Award vest period 3 years    
Employee Stock      
Compensation Related Costs Disclosure [Line Items]      
Shares authorized for future grant 88    
Percentage of market value at which employees are able to purchase shares of common stock 90.00% 90.00% 90.00%
Maximum percentage of gross compensation at which employees may purchase shares 15.00% 15.00% 15.00%
Employee stock purchase plan expiration period 10 years    
[1] Includes 2 million of PSUs granted at target and performance adjustments above target levels for fiscal years 2021, 2020, and 2019.