Subsequent Event - Additional Information (Details) $ in Millions |
1 Months Ended | 12 Months Ended | ||
|---|---|---|---|---|
Jul. 25, 2017 |
Feb. 28, 2022
USD ($)
mo
|
Dec. 31, 2021
USD ($)
|
Dec. 31, 2020
USD ($)
|
|
| Subsequent Event [Line Items] | ||||
| Long-term debt | $ 30.0 | $ 30.0 | ||
| Term Loans | ||||
| Subsequent Event [Line Items] | ||||
| Debt instrument, final payment fee percentage | 7.50% | |||
| Term Loans | Loan Prepayment | ||||
| Subsequent Event [Line Items] | ||||
| Debt instrument, final payment fee percentage | 1.00% | |||
| 2022 Loan Agreement | Term Loans | Loan Prepayment | ||||
| Subsequent Event [Line Items] | ||||
| Debt instrument term loan prepaid Period description | on or prior to February 22, 2024 | |||
| 2022 Loan Agreement | Subsequent Event | ||||
| Subsequent Event [Line Items] | ||||
| Debt instrument maturity date | Feb. 01, 2027 | |||
| Repayment of outstanding debt | $ 5.0 | |||
| Debt instrument, final payment fee percentage | 7.50% | |||
| 2022 Loan Agreement | Subsequent Event | Term Loans | Loan Prepayment | ||||
| Subsequent Event [Line Items] | ||||
| Debt instrument, final payment fee percentage | 1.00% | |||
| 2022 Loan Agreement | Oxford | ||||
| Subsequent Event [Line Items] | ||||
| Long-term debt | In February 2022, the Company entered into a new Loan and Security Agreement (“2022 Loan Agreement”) with Oxford. Pursuant to the terms of the 2022 Loan Agreement, the Company borrowed $60.0 million in term loans, a portion of which was used to repay the balance outstanding under the 2021 Amended Loan Agreement. Under the 2022 Loan Agreement the interest-only period is through April 1, 2025, with interest-only payments through March 1, 2025, followed by 23 equal monthly payments of principal and applicable interest. Upon the satisfaction of certain conditions set forth in the 2022 Loan Agreement, the interest-only period may be extended through April 1, 2026, followed by 11 equal monthly payments of principal and applicable interest. As a result, all amounts outstanding under the 2022 Loan Agreement will mature on February 1, 2027. | |||
| 2022 Loan Agreement | Oxford | Subsequent Event | ||||
| Subsequent Event [Line Items] | ||||
| Long-term debt | $ 60.0 | |||
| Debt instrument repayment number of month | mo | 23 | |||
| 2021 Amended Loan Agreement | Subsequent Event | ||||
| Subsequent Event [Line Items] | ||||
| Debt instrument repayment number of month | mo | 11 | |||
| Debt instrument, fee amount | $ 1.6 | |||
| Debt instrument repayment of interest only extension period | 48 months |