Note 11 - Income Taxes - Reconciliation of Unrecognized Tax Benefits (Details) - USD ($) $ in Thousands  | 
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2019  | 
Jun. 30, 2018  | 
Jun. 30, 2017  | 
|
| Balance | $ 1,947 | $ 1,747 | $ 1,480 | 
| Additions due to acquisitions | 900 | 628 | |
| Additions for tax positions of current year | 2,185 | 35 | 13 | 
| Closure of tax years | (374) | ||
| Tax reform | 165 | ||
| Ending balances | $ 5,032 | $ 1,947 | $ 1,747 | 
| X | ||||||||||
- Definition Amount of decrease in unrecognized tax benefits resulting from closure of tax years. No definition available. 
  | 
| X | ||||||||||
- Definition Amount of increase in unrecognized tax benefits resulting from tax reform. No definition available. 
  | 
| X | ||||||||||
- Definition Amount of unrecognized tax benefits. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Amount of increase in unrecognized tax benefits resulting from acquisitions. No definition available. 
  | 
| X | ||||||||||
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  |