Loan Agreements - Additional Information (Detail) | Apr. 10, 2015USD ($) | Jan. 08, 2015USD ($)Tranches$ / sharesshares | Jan. 31, 2015USD ($) | Aug. 31, 2012USD ($) | Mar. 31, 2012USD ($) | Dec. 31, 2011USD ($)$ / sharesshares | Jun. 30, 2015USD ($)shares | Jun. 30, 2014USD ($) | Aug. 31, 2012USD ($) | Dec. 31, 2014USD ($)shares | Apr. 30, 2014shares |
Debt Instrument [Line Items] | | | | | | | | | | | |
Common stock, shares issued | shares | | | | | | | 27,300,105 | | | 20,125,049 | |
Proceeds from sale of common stock | $ 37,200,000 | | | | | | $ 2,472,000 | $ 133,000 | | | |
Proceeds from loan payable | | | | | | | 15,000,000 | | | | |
Accrued interest | | | | | | | 91,000 | | | $ 574,000 | |
Loan and Security Agreement with Lighthouse Capital Partners VI, L.P. [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Loan and security agreement, maximum borrowing capacity | | | | | | $ 10,000,000 | | | | | |
Loan and security agreement, borrowings repayment period | | | | | | 36 months | | | | | |
Proceeds from loan payable | | | | $ 5,000,000 | $ 5,000,000 | | | | $ 10,000,000 | | |
Debt instrument stated interest rate | | | | | | 8.25% | | | | | |
Loan and security agreement, borrowings repayment start date | | | | | | Dec. 1, 2012 | | | | | |
Line of credit facility, additional interest payment | | | | | | | $ 600,000 | | | | |
Proceeds from repayments of notes payable | | | $ 3,600,000 | | | | | | | | |
Unamortized discount relating to warrants | | | 200,000 | | | | | | | | |
Loan and Security Agreement with Lighthouse Capital Partners VI, L.P. [Member] | Series D Convertible Preferred Stock [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Exercise price of warrant | $ / shares | | | | | | $ 12.04 | | | | | |
Warrant expiration date | | | | | | 2021-12 | | | | | |
Warrant expiration period | | | | | | 10 years | | | | | |
Loan and Security Agreement with Lighthouse Capital Partners VI, L.P. [Member] | Common Stock [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Warrant to purchase stock, number of securities called by warrants or rights | shares | | | | | | | | | | | 66,436 |
Maximum [Member] | Loan and Security Agreement with Lighthouse Capital Partners VI, L.P. [Member] | Series D Convertible Preferred Stock [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Warrant to purchase stock, number of securities called by warrants or rights | shares | | | | | | 66,436 | | | | | |
Loan and Security Agreement with Hercules Technology Growth Capital, Inc. [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Loan and security agreement, maximum borrowing capacity | | $ 26,000,000 | | | | | | | | | |
Customary funding conditions minimum net cash proceeds required from issuance and sale of equity securities | | $ 40,000,000 | | | | | | | | | |
Term loan facility, maturity date | | Jul. 1, 2018 | | | | | | | | | |
Term loan facility, interest rate terms | | | | | | | The Term Loan will mature on July 1, 2018. Each advance under the Term Loan accrues interest at a floating per annum rate equal to the greater of (i) 7.30% or (ii) the sum of 7.30% plus the prime rate minus 5.75%. The Term Loan provides for interest-only payments on a monthly basis until December 31, 2015. | | | | |
Interest only period extension requirement, minimum net cash proceeds required from issuance and sale of equity securities | | $ 30,000,000 | | | | | | | | | |
Additional interest rate during an event of default | | 5.00% | | | | | | | | | |
Final payment as percentage of aggregate original principal amount | | 6.70% | | | | | | | | | |
Term loan facility, interest rate | | 7.30% | | | | | | | | | |
Class of additional warrant or right number of securities called by warrants or rights | shares | | 34,380 | | | | | | | | | |
Class of warrant or right, date until which warrants exercisable | | Jan. 8, 2020 | | | | | | | | | |
Estimated fair value of warrant | | | $ 659,000 | | | | | | | | |
Loan and security agreement, borrowings repayment period | | 30 months | | | | | | | | | |
Common stock, shares issued | shares | | 135,501 | | | | | | | | | |
Issuance/sale of stock, price per share | $ / shares | | $ 7.38 | | | | | | | | | |
Proceeds from sale of common stock | | $ 1,000,000 | | | | | | | | | |
Loan and Security Agreement with Hercules Technology Growth Capital, Inc. [Member] | Common Stock [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Exercise price of warrant | $ / shares | | $ 6.05 | | | | | | | | | |
Warrant to purchase stock, number of securities called by warrants or rights | shares | | 137,521 | | | | | | | | | |
Loan and Security Agreement with Hercules Technology Growth Capital, Inc. [Member] | If Payment Occurs Within Twelve Months Of Closing Date [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Debt prepayment charge | | 3.00% | | | | | | | | | |
Loan and Security Agreement with Hercules Technology Growth Capital, Inc. [Member] | If Payment Occurs After Twelve Months But on or Prior to Twenty Four Months Following Closing Date [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Debt prepayment charge | | 2.00% | | | | | | | | | |
Loan and Security Agreement with Hercules Technology Growth Capital, Inc. [Member] | If Payment Occurs on or After Twenty Four Months Following Closing Date [Member[ | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Debt prepayment charge | | 1.00% | | | | | | | | | |
Loan and Security Agreement with Hercules Technology Growth Capital, Inc. [Member] | Prime Rate [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Term loan facility, interest rate spread | | 5.75% | | | | | | | | | |
Loan and Security Agreement with Hercules Technology Growth Capital, Inc. [Member] | Borrowing One [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Loan and security agreement, maximum borrowing capacity | | $ 15,000,000 | | | | | | | | | |
Loan and Security Agreement with Hercules Technology Growth Capital, Inc. [Member] | Borrowing Two [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Loan and security agreement, maximum borrowing capacity | | 5,000,000 | | | | | | | | | |
Loan and Security Agreement with Hercules Technology Growth Capital, Inc. [Member] | Borrowing Three [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Loan and security agreement, maximum borrowing capacity | | $ 6,000,000 | | | | | | | | | |
Loan and Security Agreement with Hercules Technology Growth Capital, Inc. [Member] | Maximum [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Number of tranches | Tranches | | 3 | | | | | | | | | |
Loan and Security Agreement with Hercules Technology Growth Capital, Inc. [Member] | Minimum [Member] | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Amount of term loan facility required to be drawn | | $ 3,000,000 | | | | | | | | | |