Balance Sheet Components (Allowance for Product Returns) (Details) - Allowance for Product Returns [Member] - USD ($) $ in Thousands |
12 Months Ended | ||
---|---|---|---|
Jun. 30, 2019 |
Jun. 30, 2018 |
Jun. 30, 2017 |
|
Valuation And Qualifying Accounts Disclosure [Line Items] | |||
Balance at beginning of period | $ 11,266 | $ 7,296 | $ 3,123 |
Additions | 85,190 | 38,103 | 31,034 |
Deductions | (70,559) | (34,133) | (26,861) |
Balance at end of period | $ 25,897 | $ 11,266 | $ 7,296 |