Debt (Details)
$ in Thousands
1 Months Ended
Jun. 23, 2021
Jun. 22, 2021
USD ($)
Dec. 21, 2018
USD ($)
tranche
Jun. 30, 2020
USD ($)
Jun. 30, 2019
USD ($)
Mar. 31, 2022
USD ($)
Estimated future principal payments due            
2023           $ 18,750
2024           37,500
2025 and thereafter           18,750
Total debt           $ 75,000
2018 Credit Facility            
Debt            
Number of tranche | tranche     3      
Maximum amount outstanding     $ 75,000      
Debt default interest rate addition (as a percent)           4.00
Term loan            
Debt            
Principal amount of each tranche of term loans     25,000      
Borrowing     $ 25,000 $ 25,000 $ 25,000  
2018 Credit Facility Amendment            
Debt            
Interest rate (as a percent)   5.50%        
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 2.10% 0.00%        
One-month LIBOR   one-month        
Principal Amount To Be Funded Per Tranche, Second Amendment, Including Additional Limit [Member]            
Debt            
Principal amount   $ 35,000