XML 95 R77.htm IDEA: XBRL DOCUMENT v3.21.2
Western Digital Corporation 401(k) Plan - Additional Information (Details) - USD ($)
$ in Millions
12 Months Ended
Jul. 02, 2021
Jul. 03, 2020
Jun. 28, 2019
Defined Benefit Plan Disclosure [Line Items]      
Defined contribution plan, employer matching contribution, percent of match 50.00%    
Defined contribution plan, employer matching contribution, percent of employees' gross pay 6.00%    
Defined contribution plan, employer discretionary contribution amount $ 34 $ 33 $ 34
Pre-Tax      
Defined Benefit Plan Disclosure [Line Items]      
Defined contribution plan, maximum annual contributions per employee, percent 75.00%    
Pre Tax and Post Tax      
Defined Benefit Plan Disclosure [Line Items]      
Defined contribution plan, maximum annual contributions per employee, percent 10.00%    
Post-Tax      
Defined Benefit Plan Disclosure [Line Items]      
Defined contribution plan, maximum annual contributions per employee, percent 10.00%    
After Amendment      
Defined Benefit Plan Disclosure [Line Items]      
Company contributions vest period 2 years