v3.23.2
Summary of Significant Accounting Policies and Estimates - Additional Information (Detail) - USD ($)
12 Months Ended
Jul. 01, 2023
Jul. 02, 2022
Jul. 03, 2021
Schedule Of Significant Accounting Policies [Line Items]      
Provision (benefit) for doubtful accounts $ 6,000,000 $ 9,000,000 $ (23,800,000)
Inventories, net 3,390,000,000 3,428,600,000  
Inventories at first in first out cost 2,126,600,000    
Inventories at last in first out cost 1,263,400,000    
Inventory reserve 212,700,000 173,500,000  
Consideration received from vendors 97,200,000 101,800,000  
Adjusted inventories $ 17,400,000 26,400,000  
Property, Plant, and Equipment, Useful Life, Term, Description [Extensible Enumeration] Property, Plant and Equipment, Net    
Impairment losses $ 0 0 0
Impairment of goodwill and intangible assets   0 0
State and local excise taxes 3,900,000,000 3,700,000,000 1,200,000,000
Contract assets 32,500,000 26,400,000  
Cost of goods sold $ 50,999,800,000 45,637,700,000 26,873,700,000
Employee Stock Purchase Plan [Member]      
Schedule Of Significant Accounting Policies [Line Items]      
Eligible employees to purchase common stock at discount, percent 15.00%    
Shipping and Handling Fees      
Schedule Of Significant Accounting Policies [Line Items]      
Cost of goods sold $ 2,502,800,000 2,253,200,000 $ 1,450,700,000
Minimum [Member]      
Schedule Of Significant Accounting Policies [Line Items]      
Useful lives of assets 2 years    
Intangible assets estimated useful life 2 years    
Maximum [Member]      
Schedule Of Significant Accounting Policies [Line Items]      
Useful lives of assets 39 years    
Intangible assets estimated useful life 12 years    
Fair Value Inputs Level 1 [Member]      
Schedule Of Significant Accounting Policies [Line Items]      
Funds deposited in insurance trusts $ 7,300,000 $ 7,100,000