Debt - Additional Information (Detail) - USD ($) | 1 Months Ended | 3 Months Ended | 9 Months Ended | 12 Months Ended | |
May 31, 2018 | Dec. 31, 2016 | Sep. 30, 2018 | Sep. 30, 2018 | Dec. 31, 2017 | Aug. 03, 2018 |
Debt Instrument [Line Items] | | | | | | |
Interest expense | | | $ 700,000 | $ 1,600,000 | | |
Oxford Loan [Member] | | | | | | |
Debt Instrument [Line Items] | | | | | | |
Loan agreement, aggregate borrowing capacity | | $ 25,000,000 | | | | |
Loan, maturity period | | | | Jul. 1, 2021 | | |
Loan agreement, floating rate terms | | | | Floating rate per annum equal to the greater of either the 30-day U.S. Dollar LIBOR reported in the Wall Street Journal plus 6.41% or 6.95% | | |
Loan origination fees and debt issuance costs | | 400,000 | | | | |
Loan agreement, covenant noncompliance penalty | | | | 5.00% | 5.00% | |
Loan agreement, covenant description | | | | The Oxford Loan includes customary events of default, including failure to pay amounts due, breaches of covenants and warranties, material adverse effect events, certain cross defaults and judgments, and insolvency. If the Company is unable to comply with these covenants or if the Company defaults on any portion of the outstanding borrowings, the lenders can also impose a 5.0% penalty and restrict access to additional borrowings under the loan and security agreement. | | |
Loan agreement, covenant compliance | | | | The Company was in compliance with the terms under the Oxford Loan as of September 30, 2018 and December 31, 2017. | | |
Prepayment of loan fee, description | | | | Calculated as of the loan origination date, equal to (i) 3.0% of the loan prepaid during the first 12 months, (ii) 2.0% of the loan prepaid in months 13-24 and (iii) 1.0% of the loan prepaid thereafter. | | |
Oxford Loan [Member] | Loan Prepaid During First 12 Months [Member] | | | | | | |
Debt Instrument [Line Items] | | | | | | |
Debt instrument prepayment fee percentage | | | | 3.00% | | |
Oxford Loan [Member] | Loan Prepaid During 13 to 24 Months [Member] | | | | | | |
Debt Instrument [Line Items] | | | | | | |
Debt instrument prepayment fee percentage | | | | 2.00% | | |
Oxford Loan [Member] | Loan Prepaid After 24 Months [Member] | | | | | | |
Debt Instrument [Line Items] | | | | | | |
Debt instrument prepayment fee percentage | | | | 1.00% | | |
Oxford Loan [Member] | Minimum [Member] | | | | | | |
Debt Instrument [Line Items] | | | | | | |
Loan agreement, interest rate | | | 6.95% | 6.95% | | |
Oxford Loan [Member] | Food And Drug Administration [Member] | | | | | | |
Debt Instrument [Line Items] | | | | | | |
Percentage of success fee | | | | 5.00% | | |
Success fees payable maximum period after approval | | | | 30 days | | |
Oxford Loan [Member] | LIBOR [Member] | | | | | | |
Debt Instrument [Line Items] | | | | | | |
Loan agreement, percentage to be added to the interest rate under condition | | | | 6.41% | | |
Oxford Loan [Member] | Tranche A [Member] | | | | | | |
Debt Instrument [Line Items] | | | | | | |
Face value of term loan | | $ 15,000,000 | | | $ 15,000,000 | |
Interest only payment period | | 18 months | | | | |
Principal and interest payment period | | 36 months | | | | |
Percentage of exit fee on principal balance | | | 7.50% | 7.50% | | |
Loan final repayment exit fees payable | | | $ 1,100,000 | $ 1,100,000 | $ 1,125,000 | |
Oxford Loan [Member] | Tranche A [Member] | Food And Drug Administration [Member] | | | | | | |
Debt Instrument [Line Items] | | | | | | |
Fee payable maximum period from funding | | | | 10 years | | |
Oxford Loan [Member] | Amended Tranche B [Member] | | | | | | |
Debt Instrument [Line Items] | | | | | | |
Principal and interest payment period | 30 months | | | | | |
Extended term of interest only payment period | 6 months | | | | | |
Percentage of exit fee on principal balance | | | 7.50% | 7.50% | | |
Loan final repayment exit fees payable | | | $ 400,000 | $ 400,000 | | |
Loan final repayment fee payable | | | 100,000 | 100,000 | | |
Oxford Loan [Member] | Amended Tranche C [Member] | | | | | | |
Debt Instrument [Line Items] | | | | | | |
Loan final repayment exit fees payable | | | $ 400,000 | $ 400,000 | | |
Amendment [Member] | Amended Tranche B [Member] | | | | | | |
Debt Instrument [Line Items] | | | | | | |
Face value of term loan | $ 5,000,000 | | | | | |
Amendment [Member] | Amended Tranche C [Member] | | | | | | |
Debt Instrument [Line Items] | | | | | | |
Face value of term loan | | | | | | $ 5,000,000 |