| Income Taxes (Details 4) - USD ($) $ in Thousands | 12 Months Ended | ||
|---|---|---|---|
| Dec. 28, 2019 | Dec. 29, 2018 | Dec. 30, 2017 | |
| Reconciliation of Unrecognized Tax Benefits [Roll Forward] | |||
| Unrecognized tax benefit, beginning balance | $ 6,113 | $ 4,542 | $ 3,501 | 
| Increases from positions taken during prior periods | 1,121 | 372 | 1,525 | 
| Increases from positions taken during current period | 817 | 2,036 | 558 | 
| Lapse of statute of limitations | 0 | (837) | (1,042) | 
| Unrecognized tax benefit, ending balance | $ 8,051 | $ 6,113 | $ 4,542 | 
| X | ||||||||||
| 
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of unrecognized tax benefits. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of decrease in unrecognized tax benefits resulting from lapses of applicable statutes of limitations. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 |