Stock-based compensation - Summary of RSU activity (Details) - RSU awards - USD ($) shares in Thousands, $ in Thousands |
6 Months Ended |
|---|---|
Dec. 31, 2019 | |
| Number of Shares | |
| Beginning balance (in shares) | 2,637 |
| Granted (in shares) | 1,310 |
| Vested (in shares) | (932) |
| Canceled (shares) | (458) |
| Ending balance (in shares) | 2,557 |
| RSUs outstanding, weighted average remaining contractual life | 1 year 9 months 10 days |
| RSUs outstanding, aggregate intrinsic value | $ 12,428 |
| RSUs expected to vest at period end (in shares) | 2,143 |
| RSUs expected to vest, weighted average remaining contractual life | 1 year 7 months 28 days |
| RSUs expected to vest, aggregate intrinsic value | $ 10,413 |