| Debt - Long-term debt (Details) - USD ($) $ in Thousands | Jun. 30, 2022 | Dec. 31, 2021 | 
|---|---|---|
| Debt Instrument [Line Items] | ||
| Long-term debt | $ 310,356 | $ 286,734 | 
| Less debt issuance costs | (1,746) | (2,165) | 
| Total long-term debt | 308,610 | 284,569 | 
| Less current portion | (14,162) | (14,162) | 
| Long-term debt, less current portion | 294,448 | 270,407 | 
| Term Loan | ||
| Debt Instrument [Line Items] | ||
| Long-term debt | 52,675 | 60,175 | 
| Revolver Loan | ||
| Debt Instrument [Line Items] | ||
| Long-term debt | $ 257,681 | $ 226,559 | 
| 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 
 |