Leases -Supplemental Cash Flow (Details) - USD ($) $ in Thousands  | 
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2021  | 
Dec. 31, 2020  | 
Dec. 31, 2019  | 
|
| Cash paid for amounts included in the measurement of lease liabilities: | |||
| Operating cash flows from operating leases | $ 53,981 | $ 50,263 | |
| Operating cash flows from finance leases | 301 | 197 | |
| Financing cash flows from finance leases | 2,423 | 1,446 | $ 946 | 
| Right-of-use assets obtained in exchange for operating lease liabilities | 74,736 | 72,454 | |
| Leased assets obtained in exchange for finance lease obligations | $ 9,673 | $ 1,927 | |
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Amount of interest paid on finance lease liability. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Amount of cash outflow for principal payment on finance lease. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Amount of increase in right-of-use asset obtained in exchange for finance lease liability. Reference 1: http://www.xbrl.org/2003/role/exampleRef 
  | 
| X | ||||||||||
- Definition Amount of increase in right-of-use asset obtained in exchange for operating lease liability. Reference 1: http://www.xbrl.org/2003/role/exampleRef 
  |