Quarterly report pursuant to Section 13 or 15(d)

Stockholders' Equity - Additional Information (Detail)

v3.8.0.1
Stockholders' Equity - Additional Information (Detail) - USD ($)
1 Months Ended 3 Months Ended 9 Months Ended
Apr. 30, 2018
Mar. 31, 2018
Jan. 31, 2018
Mar. 31, 2017
Mar. 31, 2018
Mar. 31, 2017
Sep. 30, 2016
Feb. 28, 2018
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Shares of common stock ,reserved for issuance   13,736,753     13,736,753      
Aggregate intrinsic value   $ 85,253,000     $ 85,253,000      
Common stock, shares exercised         309,497 0    
Option intrinsic value, exercised         $ 4,900,000      
Net tax benefits related to exercised options         0      
Estimated fair value of stock option, vested         $ 3,300,000 $ 4,200,000    
Granted, Number of shares         719,950      
Weighted average exercise price of options granted         $ 34.37      
Stock-based compensation expense         $ 7,014,000 $ 5,347,000    
Restricted Stock Units                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Weighted average grant date fair value per share         $ 35.80 $ 15.09    
Unrecognized stock-based compensation expense   39,100,000     $ 39,100,000      
Unrecognized stock-based compensation weighted average recognition period         2 years 10 months 24 days      
Aggregate intrinsic value   74,500,000     $ 74,500,000      
Restricted stock units, settled         336,240 195,957    
Restricted stock units, issued net of tax withholdings         229,854 47,017    
Restricted stock units withheld for tax obligations         86,359 20,234    
Restricted stock units withheld for tax obligations, value         $ 3,400,000 $ 300,000    
Granted, Number of shares         642,487      
Vested and Unvested Options                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Unrecognized stock-based compensation weighted average recognition period         2 years 9 months 18 days      
Unrecognized stock-based compensation   $ 38,000,000     $ 38,000,000      
2014 Equity Incentive Plan                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Shares of common stock ,reserved for issuance   11,191,315     11,191,315      
Aggregate number of awards available for grant to be issued   4,090,015     4,090,015      
Outstanding options and RSUs   7,101,300     7,101,300      
2018 Inducement Plan                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Shares of common stock ,reserved for issuance   1,250,000     1,250,000     1,250,000
2018 Inducement Plan | Subsequent Event                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Granted, Number of shares 70,000              
Weighted average exercise price of options granted $ 36.00              
2018 Inducement Plan | Restricted Stock Units | Subsequent Event                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Granted, Number of shares 42,500              
2014 Employee Stock Purchase Plan                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Shares of common stock ,reserved for issuance   1,020,438     1,020,438      
Aggregate number of awards available for grant to be issued   1,020,438     1,020,438      
Stock-based compensation expense         $ 100,000 $ 100,000    
Shares purchased         0 0    
Options Granted Outside the Equity Plans                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Shares of common stock ,reserved for issuance   275,000     275,000      
Unrecognized stock-based compensation expense   $ 1,800,000     $ 1,800,000      
Unrecognized stock-based compensation weighted average recognition period         3 years 3 months 18 days      
Aggregate intrinsic value   $ 6,900,000     $ 6,900,000      
Granted, Number of shares         275,000   0  
Weighted average exercise price of options granted         $ 13.96      
Weighted average grant date fair value of options granted         $ 2,200,000      
Underwritten Public Offering                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Common stock, shares issued   4,928,571 7,675,072          
Shares issued, price per share   $ 35.00 $ 18.25   $ 35.00      
Net proceeds from sale of common stock   $ 161,900,000 $ 131,400,000          
Common stock, shares sold   4,928,571 7,675,072          
At The Market Offering | Cowen                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Common stock, shares issued         0 0    
Common stock, shares sold         0 0    
Common stock value remained available to be sold   $ 55,000,000     $ 55,000,000      
At The Market Offering | Cowen | Maximum                
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]                
Common stock aggregate offering price       $ 75,000,000   $ 75,000,000    
Percentage of commission to be paid on gross sales proceeds of common stock sold       3.00%