Business Combinations - Additional Information (Details) $ in Thousands  | 
12 Months Ended | |||
|---|---|---|---|---|
| 
 Oct. 01, 2022  
USD ($) 
 | 
 Sep. 30, 2023  
USD ($)  
Number  
Location 
 | 
 Oct. 01, 2022  
USD ($)  
Number 
 | 
 Oct. 02, 2021  
USD ($) 
 | 
|
| Business Acquisition [Line Items] | ||||
| Total purchase consideration, net of cash acquired | $ 15,549 | $ 107,663 | $ 8,868 | |
| 2022 Acquisitions | ||||
| Business Acquisition [Line Items] | ||||
| Number of business acquired | Number | 6 | |||
| Total purchase consideration, net of cash acquired | $ 107,663 | $ 107,700 | ||
| Fair value contigent consideration | $ 3,000 | |||
| Number of locations in which assets acquired | Location | 27 | |||
| 2022 Acquisitions | Contingent Consideration Two | ||||
| Business Acquisition [Line Items] | ||||
| Contingent consideration | $ 4,000 | $ 4,000 | ||
| 2023 Acquisitions | ||||
| Business Acquisition [Line Items] | ||||
| Number of business acquired | Number | 5 | |||
| Total purchase consideration, net of cash acquired | $ 15,549 | |||
| Number of locations in which assets acquired | Location | 12 | |||
| X | ||||||||||
- Definition Number of locations in which assets acquired. No definition available. 
  | 
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Amount of liability recognized arising from contingent consideration in a business combination. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Fair value of contingent consideration in a business combination that is classified in shareholders' equity. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Definition The number of businesses acquired by the entity during the period. No definition available. 
  | 
| X | ||||||||||
- Definition The cash outflow associated with the acquisition of a business, net of the cash acquired from the purchase. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  |