Note 13 - Stock-based Compensation (Details Textual) - USD ($) | May 29, 2014 | May 31, 2019 | Apr. 30, 2019 | Dec. 31, 2018 | Mar. 31, 2018 | Apr. 30, 2017 | Mar. 31, 2017 | Dec. 31, 2019 | Mar. 31, 2017 | Dec. 31, 2019 | Dec. 31, 2018 | Dec. 31, 2017 | Dec. 31, 2016 |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross | | | | | | | | | | | 0 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Number, Ending Balance | | | | | | | | | | | | 45,068 | 56,131 |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested in Period, Fair Value | | | | | | | | | | $ 953,000 | $ 719,000 | $ 256,000 | |
Share-based Payment Arrangement, Expense | | | | | | | | | | 912,000 | 732,000 | 614,000 | |
Share-based Payment Arrangement, Expense, Tax Benefit | | | | | | | | | | $ 200,000 | $ 172,000 | $ 231,000 | |
Allocated Share-based Compensation Expense, Impact on Earnings Per Share, Diluted | | | | | | | | | | $ 0.12 | $ 0.09 | | |
Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount, Total | | | | | | | | $ 924,000 | | $ 924,000 | | | |
Allocated Share-based Compensation Expense, Impact on Earnings Per Share, Basic | | | | | | | | | | $ 0.12 | 0.10 | | |
Allocated Share-based Compensation Expense, Impact on Earnings Per Share, Basic and Diluted | | | | | | | | | | | | $ 0.26 | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Nonvested, Number of Shares, Ending Balance | | | | | | | | | | | | 0 | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value | | | | | | | | | | | $ 6.34 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period, Intrinsic Value | | | | | | | | | | | $ 1,406,000 | $ 82,000 | |
Proceeds from Stock Options Exercised | | | | | | | | | | $ 0 | 485,000 | 123,000 | |
Amortization, Current Year [Member] | | | | | | | | | | | | | |
Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount, Total | | | | | | | | 399,000 | | 399,000 | | | |
Amortization Year 2 [Member] | | | | | | | | | | | | | |
Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount, Total | | | | | | | | 263,000 | | 263,000 | | | |
Amortization, Year 3 [Member] | | | | | | | | | | | | | |
Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount, Total | | | | | | | | $ 262,000 | | $ 262,000 | | | |
Restricted Stock [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value | | | | | | | | | | $ 48.75 | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period | | | | | | | | | | 2,058 | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value | | | | | | | | | | $ 36.35 | | | |
Accrual Shares to Each Non-employee Director [Member] | | | | | | | | | | | | | |
Share-based Payment Arrangement, Expense | | | | | | | | | | $ 100,000 | $ 70,000 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Additional Grants in Period | | | | | | | | | | | 276 | | |
Accrual Shares to Each Non-employee Director [Member] | Nine Non-Employee Directors [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Additional Grants in Period | | | | | | | | 205 | | | | | |
Accrual Shares to Each Non-employee Director [Member] | One Non-Employee Directors [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Additional Grants in Period | | | | | | | | | | 213 | | | |
Nonqualified Options [Member] | Annual Grant to Non-employee [Member] | | | | | | | | | | | | | |
Share-based Payment Arrangement, Expense | | | | | | | | | | | | $ 70,000 | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Additional Grants in Period | | | | | | | | | 614 | | | | |
The 2014 Stock Option Plan [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized | 750,000 | | | | | | | | | | | | |
Number of Common Stock Accrued Under Share-based Compensation Plan for Each Non-employee Director | | 213 | 1,845 | | 1,932 | | 4,298 | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross | | | | | | | | | | | 0 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Number, Ending Balance | | | | 0 | | | | | | | 0 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Available for Grant | | | | | | | | 407,000 | | 407,000 | | | |
The 2014 Stock Option Plan [Member] | Restricted Stock [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value | | | | $ 36.35 | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period | | | | 33,000 | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period | | | | 4 years | | | | | | | | | |
The 2014 Stock Option Plan [Member] | Restricted Stock [Member] | Chief Executive Officer [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value | | | | | | $ 16.38 | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period | | | | | | 100,000 | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period | | | | | | 3 years | | | | | | | |
The 2014 Stock Option Plan [Member] | Stock Award [Member] | Director [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value | | $ 47.06 | $ 48.94 | | $ 36.35 | | $ 16.29 | | | | | | |
The 2014 Stock Option Plan [Member] | Minimum [Member] | Restricted Stock [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Purchase Price of Common Stock, Percent | 85.00% | | | | | | | | | | | | |