Fair value of financial instruments (Details) - USD ($) $ in Thousands | 3 Months Ended | |
Sep. 30, 2016 | Sep. 30, 2015 | Jun. 30, 2016 |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | $ 90,490 | | $ 95,318 |
Accretion of net premium on short-term investments | 125 | $ 205 | |
Short-term investments | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 85,816 | | 88,277 |
Short-term investments | U.S. agency securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 3,619 | | 5,929 |
Short-term investments | U.S. treasury securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | | | 1,702 |
Short-term investments | Asset-backed securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 9,737 | | 10,175 |
Short-term investments | Municipal securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 5,031 | | 6,018 |
Short-term investments | Commercial paper | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 3,243 | | 3,495 |
Short-term investments | Foreign government securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 751 | | |
Short-term investments | Corporate bonds | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 63,435 | | 60,958 |
Cash equivalents | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 4,674 | | 7,041 |
Cash equivalents | Money market mutual funds | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 4,174 | | 5,641 |
Cash equivalents | U.S. agency securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 500 | | 1,400 |
Quoted Prices in Active Markets for Identical Assets (Level 1) | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 4,174 | | 7,343 |
Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term investments | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 1,702 |
Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term investments | U.S. agency securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term investments | U.S. treasury securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | | | 1,702 |
Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term investments | Asset-backed securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term investments | Municipal securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term investments | Commercial paper | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term investments | Foreign government securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | |
Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term investments | Corporate bonds | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Quoted Prices in Active Markets for Identical Assets (Level 1) | Cash equivalents | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 4,174 | | 5,641 |
Quoted Prices in Active Markets for Identical Assets (Level 1) | Cash equivalents | Money market mutual funds | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 4,174 | | 5,641 |
Quoted Prices in Active Markets for Identical Assets (Level 1) | Cash equivalents | U.S. agency securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Significant Other Observable Inputs (Level 2) | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 86,316 | | 87,975 |
Significant Other Observable Inputs (Level 2) | Short-term investments | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 85,816 | | 86,575 |
Significant Other Observable Inputs (Level 2) | Short-term investments | U.S. agency securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 3,619 | | 5,929 |
Significant Other Observable Inputs (Level 2) | Short-term investments | U.S. treasury securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | | | 0 |
Significant Other Observable Inputs (Level 2) | Short-term investments | Asset-backed securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 9,737 | | 10,175 |
Significant Other Observable Inputs (Level 2) | Short-term investments | Municipal securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 5,031 | | 6,018 |
Significant Other Observable Inputs (Level 2) | Short-term investments | Commercial paper | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 3,243 | | 3,495 |
Significant Other Observable Inputs (Level 2) | Short-term investments | Foreign government securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 751 | | |
Significant Other Observable Inputs (Level 2) | Short-term investments | Corporate bonds | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 63,435 | | 60,958 |
Significant Other Observable Inputs (Level 2) | Cash equivalents | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 500 | | 1,400 |
Significant Other Observable Inputs (Level 2) | Cash equivalents | Money market mutual funds | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Significant Other Observable Inputs (Level 2) | Cash equivalents | U.S. agency securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 500 | | 1,400 |
Significant Unobservable Inputs (Level 3) | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Significant Unobservable Inputs (Level 3) | Short-term investments | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Significant Unobservable Inputs (Level 3) | Short-term investments | U.S. agency securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Significant Unobservable Inputs (Level 3) | Short-term investments | U.S. treasury securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | | | 0 |
Significant Unobservable Inputs (Level 3) | Short-term investments | Asset-backed securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Significant Unobservable Inputs (Level 3) | Short-term investments | Municipal securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Significant Unobservable Inputs (Level 3) | Short-term investments | Commercial paper | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Significant Unobservable Inputs (Level 3) | Short-term investments | Foreign government securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | |
Significant Unobservable Inputs (Level 3) | Short-term investments | Corporate bonds | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Significant Unobservable Inputs (Level 3) | Cash equivalents | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Significant Unobservable Inputs (Level 3) | Cash equivalents | Money market mutual funds | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | 0 | | 0 |
Significant Unobservable Inputs (Level 3) | Cash equivalents | U.S. agency securities | | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | | |
Estimated Fair Value | $ 0 | | $ 0 |