Debt - Long-term debt (Details) - USD ($) $ in Thousands  | 
Mar. 31, 2023  | 
Dec. 31, 2022  | 
|---|---|---|
| Debt Instrument [Line Items] | ||
| Long-term debt | $ 353,998 | $ 288,610 | 
| Less debt issuance costs | (2,143) | (2,310) | 
| Total long-term debt | 351,855 | 286,300 | 
| Less current portion | (10,000) | (10,000) | 
| Long-term debt, less current portion | 341,855 | 276,300 | 
| Term Loan | ||
| Debt Instrument [Line Items] | ||
| Long-term debt | 97,500 | 100,000 | 
| Revolver Loan | ||
| Debt Instrument [Line Items] | ||
| Long-term debt | $ 256,498 | $ 188,610 | 
| X | ||||||||||
- Definition Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| 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. No definition available. 
  | 
| X | ||||||||||
- Definition Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
  | 
| X | ||||||||||
- Definition Amount, excluding unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt, classified as current. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Definition Amount, excluding unamortized premium (discount) and debt issuance cost, of long-term debt classified as noncurrent. Excludes lease obligation. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  |