Debt (Details)
$ in Thousands
1 Months Ended
Jun. 22, 2021
USD ($)
Dec. 21, 2018
USD ($)
tranche
Jun. 30, 2020
USD ($)
Jun. 30, 2019
USD ($)
Dec. 31, 2021
USD ($)
Estimated future principal payments due          
2024         $ 18,750
2024         37,500
2025 and thereafter         18,750
Total debt         $ 75,000
2018 Credit Facility          
Debt          
Number of tranche | tranche   3      
Borrowing   $ 25,000 $ 25,000 $ 25,000  
Maximum amount outstanding   $ 75,000      
Debt default interest rate addition (as a percent)   4.00      
2018 Credit Facility | Term loan          
Debt          
Principal amount of each tranche of term loans   $ 25,000      
Principal Amount To Be Funded Per Tranche          
Debt          
Principal amount $ 35,000        
2018 Credit Facility Amendment          
Debt          
Interest rate (as a percent) 5.50%        
One-month LIBOR one-month        
Prepayment fee in first year 1.00%        
Prepayment fee in second year 0.50%        
Prepayment fee in third year 0.25%        
2018 Credit Facility Amendment | Lenders          
Debt          
Issuance costs $ 200        
2018 Credit Facility Amendment | Minimum          
Debt          
Variable interest rate 2.10%        
2018 Credit Facility Amendment | One-month U.S. LIBOR          
Debt          
Variable interest rate 0.00%        
2018 Credit Facility Amendment | One-month U.S. LIBOR | Maximum          
Debt          
Variable interest rate 2.10%