Income taxes (Details) - USD ($) |
3 Months Ended | 6 Months Ended | |||
|---|---|---|---|---|---|
Dec. 31, 2019 |
Dec. 31, 2018 |
Dec. 31, 2019 |
Dec. 31, 2018 |
Jun. 30, 2019 |
|
| Income Tax Disclosure [Abstract] | |||||
| Provision (benefit) for income taxes | $ 205,000 | $ 102,000 | $ 616,000 | $ 842,000 | |
| Effective tax provision rate | 4.00% | (9.00%) | |||
| Unrecognized tax benefit | 5,000,000.0 | $ 5,000,000.0 | $ 4,600,000 | ||
| Unrecognized tax benefits that would affect effective tax rate | 77,000 | 77,000 | 77,000 | ||
| Interest and penalties related to unrecognized tax positions accrued | $ 0 | $ 0 | 0 | ||
| Valuation allowance | $ 48,400,000 | ||||