Condensed Consolidated Statements of Comprehensive Income (Loss) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Dec. 31, 2019 |
Dec. 31, 2018 |
Dec. 31, 2019 |
Dec. 31, 2018 |
|
| Statement of Comprehensive Income [Abstract] | ||||
| Net income (loss) | $ 13,006 | $ (4,581) | $ 9,052 | $ (12,151) |
| Other comprehensive income (loss): | ||||
| Foreign currency translation adjustment, net of tax | 207 | (131) | (103) | (348) |
| Available-for-sale securities: | ||||
| Unrealized gain (loss) on available-for-sale securities, net of tax | (15) | 97 | 44 | 186 |
| Reclassification adjustments for (loss) gain on available-for-sale securities recognized, net of tax | (1) | 5 | (2) | 7 |
| Net (decrease) increase from available-for-sale securities, net of tax | (16) | 102 | 42 | 193 |
| Other comprehensive income (loss), net of tax | 191 | (29) | (61) | (155) |
| Comprehensive income (loss) | $ 13,197 | $ (4,610) | $ 8,991 | $ (12,306) |