Debt - Additional Information (Details) | Dec. 08, 2020USD ($)tranche | Mar. 02, 2020USD ($)trancheitem | Feb. 29, 2020USD ($) | Mar. 31, 2020USD ($) | Jun. 30, 2021USD ($) | Jun. 30, 2020USD ($) | Jun. 30, 2021USD ($) | Jun. 30, 2020USD ($) | Dec. 31, 2020USD ($) | Mar. 31, 2017USD ($) |
Debt Instrument [Line Items] | | | | | | | | | | |
Interest expense | | | | | $ 1,000,000 | $ 1,000,000 | $ 2,000,000 | $ 2,500,000 | | |
Cash interest expense | | | | | 800,000 | 800,000 | 1,700,000 | 2,200,000 | | |
Non-cash interest expense | | | | | 200,000 | $ 200,000 | $ 300,000 | $ 300,000 | | |
Solar Capital Ltd | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Amendment fee payable | | | | | | | | | $ 100,000 | |
Solar Capital Ltd | Term A Loan | Maximum | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Extended period of interest only term loan | 36 months | | | | | | | | | |
Solar Capital Ltd | Term A Loan | Minimum | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Extended period of interest only term loan | 24 months | | | | | | | | | |
Solar Capital Ltd | Term A Loan and Term B Loan | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Basis spread on variable rate | | 1.66% | | | | | | | | |
Interest rate | | 7.65% | | | | | | | | |
Interest-only period | | 2022-03 | | | | | | | | |
Interest-only period upon achievement of revenues | | 2023-02 | | | | | | | | |
Number of default events | item | | 0 | | | | | | | | |
Line of credit facility, conversion to term loan, conditions | | | | | | | At the Company’s election, the interest only period may be extended through February 2023 if the Company satisfies a minimum net product revenue covenant through March 1, 2022 and no event of default shall have occurred | | | |
Solar Capital Ltd | $35.0 Million Credit Facility | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Line of credit facility, maximum borrowing capacity | | | | | | | | | | $ 35,000,000 |
Solar Capital Ltd | $35.0 Million Credit Facility | Term A Loan | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Borrowings outstanding under credit facility | | $ 35,000,000 | | | | | | | | |
Solar Capital Ltd | $50.0 Million Credit Facility | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Line of credit facility, maximum borrowing capacity | | $ 50,000,000 | | | | | | | | |
Term loans number of tranches | tranche | | 2 | | | | | | | | |
Increase in final payment fees percentage upon extension interest only periods | | 5.50% | | | | | | | | |
Trailing twelve month net product revenue first threshold limit to pay exit fee | | $ 100,000,000 | | | | | | | | |
Trailing twelve month net product revenue Second threshold limit to pay exit fee | | $ 125,000,000 | | | | | | | | |
Percentage of exit fee for liquidation, dissolution, winding up or change of control of the Company | | 4.50% | | | | | | | | |
Percentage of exit fee upon achievement of any trailing twelve month revenues | | 2.25% | | | | | | | | |
Percentage of exit fee upon achievement of both trailing twelve month revenues | | 4.50% | | | | | | | | |
Capped exit fee percentage on term loan principal amount | | 4.50% | | | | | | | | |
Solar Capital Ltd | $50.0 Million Credit Facility | Prepaid on or Before First Anniversary of Funding | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Prepayment fees percentage | | 3.00% | | | | | | | | |
Solar Capital Ltd | $50.0 Million Credit Facility | Prepaid After First and on or Before Second Anniversary of Funding | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Prepayment fees percentage | | 2.00% | | | | | | | | |
Solar Capital Ltd | $50.0 Million Credit Facility | Prepaid After Second Anniversary of Funding | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Prepayment fees percentage | | 1.00% | | | | | | | | |
Solar Capital Ltd | $50.0 Million Credit Facility | Term A Loan | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Credit facility maturity date | | Feb. 28, 2025 | | | | | | | | |
Solar Capital Ltd | $15 Million Credit Facility | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Line of credit facility, maximum borrowing capacity | $ 15,000,000 | | | | | | | | | |
Solar Capital Ltd | $15 Million Credit Facility | Term B Loan | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Line of credit facility, maximum borrowing capacity | | $ 15,000,000 | | | | | | | | |
Line of credit facility, conversion to term loan, conditions | | | | | | | Under the Term B Loan portion of the Solar Facility, the Company is permitted to borrow, at its election, up to an aggregate amount of $15.0 million, (i) upon the Company achieving a specified amount of trailing twelve months net product revenue, and (ii) assuming there has been no event of default under the Solar Facility prior to such election. Once the net product revenue condition has been satisfied, the Company may only make an election to borrow under the Term B Loan portion of the Solar Facility until the earlier of (a) December 15, 2021, (b) 30 days following achievement of the net product revenue condition or (c) the occurrence of an event of default. | | | |
Solar Capital Ltd | $5.0 Million Credit Facility | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Borrowings outstanding under credit facility | $ 5,000,000 | | | | | | | | | |
Term loans number of tranches | tranche | 3 | | | | | | | | | |
Oxford Finance LLC | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Line of credit facility, maximum borrowing capacity | | | | $ 35,000,000 | | | | | | |
Debt instrument, final payment fee | | | | 2,500,000 | | | | | | |
Combined debt discount and deferred issuance costs | | | | $ 600,000 | | | | | | |
Oxford Finance LLC | Term A Loan | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Final payment fees percentage | | | 8.50% | | | | | | | |
Oxford Finance LLC | Term B Loan | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Final payment fees percentage | | | 7.50% | | | | | | | |
Oxford Finance LLC | $35.0 Million Credit Facility | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Line of credit facility, maximum borrowing capacity | | | $ 35,000,000 | | | | | | | |
Borrowings outstanding under credit facility | | | | | $ 35,000,000 | | $ 35,000,000 | | | |
Credit facility maturity date | | | | | | | Feb. 1, 2025 | | | |
Debt instrument, interest rate | | | | | 8.15% | | 8.15% | | | |
Oxford Finance LLC | $35.0 Million Credit Facility | LIBOR | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Basis spread on variable rate | | | | | | | 7.38% | | | |
Debt instrument, description of variable rate basis | | | | | | | 30 day U.S. LIBOR | | | |
Oxford Finance LLC | $35.0 Million Credit Facility | Term A Loan | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Borrowings outstanding under credit facility | | | 25,000,000 | | | | | | | |
Oxford Finance LLC | $35.0 Million Credit Facility | Term B Loan | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Borrowings outstanding under credit facility | | | 5,000,000 | | | | | | | |
Oxford Finance LLC | $35.0 Million Credit Facility | Term C Loan | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Line of credit facility, current borrowing capacity | | | $ 5,000,000 | | | | | | | |