| Income Taxes (Tables)
 | 12 Months Ended | 
| Oct. 03, 2020 | 
|---|
| Income Tax Disclosure [Abstract] |  | 
| Schedule of provision for income taxes comprises | The provision for income taxes comprises the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | $ | 8,188 |  |  | $ | 14,072 |  |  | $ | 966 |  |  
|  |  |  | 2,262 |  |  |  | 1,537 |  |  |  | 2,555 |  |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  
|  |  |  | 10,450 |  |  |  | 15,609 |  |  |  | 3,521 |  |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  |  | (5,844 | ) |  |  | (418 | ) |  |  | 2,752 |  |  
|  |  |  | (1,979 | ) |  |  | (336 | ) |  |  | (1,347 | ) |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  
|  |  |  | (7,823 | ) |  |  | (754 | ) |  |  | 1,405 |  |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  
| Total income tax provision |  | $ | 2,627 |  |  | $ | 14,855 |  |  | $ | 4,926 |  |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  | 
| Reconciliation of the provision for income taxes to the amount computed at the federal statutory rate | A reconciliation of the provision for income taxes to the amount computed at the federal statutory rate is as follows: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  
| Federal income tax at statutory rate |  | $ | 12,851 |  |  | $ | 3,198 |  |  | $ | (190 | ) |  
|  |  |  | 464 |  |  |  | 286 |  |  |  | 27 |  |  
| Change in valuation allowance |  |  | (11,373 | ) |  |  | 11,060 |  |  |  | 5,738 |  |  
| State taxes, net of federal benefit |  |  | 2,503 |  |  |  | 208 |  |  |  | 891 |  |  
|  |  |  | — |  |  |  | — |  |  |  | (1,540 | ) |  
|  |  |  | (1,818 | ) |  |  | 103 |  |  |  | — |  |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  
| Total income tax provision |  | $ | 2,627 |  |  | $ | 14,855 |  |  | $ | 4,926 |  |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  | 
| Schedule of tax effects of temporary differences of the deferred tax assets and liabilities | The tax effects of temporary differences that give rise to significant portions of the deferred tax assets and liabilities are summarized below. 
|  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  
|  |  | 
 |  |  | 
 |  |  
|  |  |  |  |  |  |  |  |  |  
|  |  | $ | 5,433 |  |  | $ | 948 |  |  
|  |  |  | — |  |  |  | 1,228 |  |  
|  |  |  | 1,053 |  |  |  | 681 |  |  
|  |  |  | 6,919 |  |  |  | 17,886 |  |  
|  |  |  | 46,644 |  |  |  | — |  |  
|  |  |  | — |  |  |  | 590 |  |  
| Reserves and other accruals |  |  | 354 |  |  |  | — |  |  
|  |  |   |   |  |  |   |   |  |  
| Total deferred tax assets |  |  | 60,403 |  |  |  | 21,333 |  |  
| Deferred tax liabilities: |  |  |  |  |  |  |  |  |  
| Property, plant, and equipment |  |  | (611 | ) |  |  | — |  |  
|  |  |  | (3,258 | ) |  |  | (2,456 | ) |  
| Reserves and other accruals |  |  | — |  |  |  | (2,673 | ) |  
|  |  |  | (44,014 | ) |  |  | — |  |  
|  |  |  | (512 | ) |  |  | (646 | ) |  
|  |  |   |   |  |  |   |   |  |  
| Total deferred tax liabilities |  |  | (48,395 | ) |  |  | (5,775 | ) |  
|  |  |  | (5,425 | ) |  |  | (16,798 | ) |  
|  |  |   |   |  |  |   |   |  |  
| Deferred tax assets (liabilities), net |  | $ | 6,583 |  |  | $ | (1,240 | ) |  
|  |  |   |   |  |  |   |   |  |  | 
| Schedule of Valuation Allowances | Valuation Allowance consists of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | 
 
 |  |  | 
 
 
 |  |  |  |  |  | 
 |  |  
|  |  |  |  |  
|  |  | $ | — |  |  | $ | 5,738 |  |  | $ | — |  |  | $ | 5,738 |  |  
|  |  | $ | 5,738 |  |  | $ | 11,060 |  |  | $ | — |  |  | $ | 16,798 |  |  
|  |  | $ | 16,798 |  |  | $ | — |  |  | $ | (11,373 | ) |  | $ | 5,425 |  |  |