Note 4 - Business Acquisitions (Details Textual) | Aug. 24, 2018USD ($)shares | Feb. 02, 2018USD ($)shares | Jan. 12, 2018USD ($)shares | Sep. 06, 2017USD ($)shares | Jun. 06, 2017USD ($)shares | May 04, 2017USD ($)shares | May 01, 2017USD ($)shares | Apr. 14, 2017USD ($) | Sep. 29, 2018USD ($) | Sep. 30, 2017USD ($) | Sep. 29, 2018USD ($) | Sep. 30, 2017USD ($) | Dec. 30, 2017USD ($) | Dec. 31, 2016USD ($) |
Business Combination, Consideration Transferred, Total | | | | | | | | | | | $ 41,660,000 | | $ 72,347,000 | |
Payments to Acquire Businesses, Gross | | | | | | | | | | | 728,000 | $ 563,000 | | |
Business Combination, Consideration Transferred, Liabilities Incurred | | | | | | | | | | | 1,565,000 | 908,000 | 908,000 | |
Business Combination, Contingent Consideration, Liability, Total | | | | | | | | | $ 2,995,000 | | 2,995,000 | | $ 1,890,000 | $ 2,439,000 |
Business Combination, Pro Forma Information, Revenue of Acquiree since Acquisition Date, Actual | | | | | | | | | 4,984,000 | $ 21,316,000 | 11,374,000 | 35,524,000 | | |
Business Combination, Pro Forma Information, Earnings or Loss of Acquiree since Acquisition Date, Actual | | | | | | | | | 1,356,000 | 3,905,000 | 2,008,000 | 6,847,000 | | |
Business Combination, Acquisition Related Costs | | | | | | | | | $ 213,000 | $ 315,000 | $ 583,000 | $ 892,000 | | |
CALYX Engineers and Consultants Inc. [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Total | $ 34,000,000 | | | | | | | | | | | | | |
Payments to Acquire Businesses, Gross | 25,000,000 | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable | $ 3,000,000 | | | | | | | | | | | | | |
Business Acquisition, Equity Interest Issued or Issuable, Number of Shares | shares | 36,379 | | | | | | | | | | | | | |
CALYX Engineers and Consultants Inc. [Member] | Uncollateralized Promissory Note [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred | $ 4,000,000 | | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | 3.75% | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred, Number of Equal Installments | 4 | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable, Periodic Payments | $ 1,000 | | | | | | | | | | | | | |
Debt Instrument, Periodic Payment, Total | 1,000,000 | | | | | | | | | | | | | |
CALYX Engineers and Consultants Inc. [Member] | Cash Payable Within 120 Days [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred | $ 2,000,000 | | | | | | | | | | | | | |
CSA (M&E) Ltd. [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Total | | $ 4,200,000 | | | | | | | | | | | | |
Payments to Acquire Businesses, Gross | | 2,000,000 | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable, Periodic Payments | | 125,000 | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable | | $ 150,000 | | | | | | | | | | | | |
Business Acquisition, Equity Interest Issued or Issuable, Number of Shares | shares | | 2,993 | | | | | | | | | | | | |
Business Acquisition, Equity Interest Issued or Issuable, Value Assigned | | $ 250,000 | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable, Number of Equal Installments | | 2 | | | | | | | | | | | | |
Business Combination, Contingent Consideration Arrangements, Range of Outcomes, Value, High | | $ 1,200,000 | | | | | | | | | | | | |
Business Combination, Contingent Consideration, Liability, Total | | 899,000 | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Cash and Equity Interest Issued and Issuable | | $ 250,000 | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Cash and Equity Interests Issued and Issuable, Number of Equal Installments | | 2 | | | | | | | | | | | | |
CSA (M&E) Ltd. [Member] | Uncollateralized Promissory Note [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred | | $ 600,000 | | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | 3.00% | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred, Number of Equal Installments | | 4 | | | | | | | | | | | | |
Debt Instrument, Periodic Payment, Total | | $ 150,000 | | | | | | | | | | | | |
Butsko Utility Design, Inc. [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Total | | | $ 4,250 | | | | | | | | | | | |
Payments to Acquire Businesses, Gross | | | 1,500 | | | | | | | | | | | |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable, Periodic Payments | | | 300,000 | | | | | | | | | | | |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable | | | $ 300,000 | | | | | | | | | | | |
Business Acquisition, Equity Interest Issued or Issuable, Number of Shares | shares | | | 5,630 | | | | | | | | | | | |
Business Acquisition, Equity Interest Issued or Issuable, Value Assigned | | | $ 600,000 | | | | | | | | | | | |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable, Number of Equal Installments | | | 2 | | | | | | | | | | | |
Business Combination, Contingent Consideration Arrangements, Range of Outcomes, Value, High | | | $ 850,000 | | | | | | | | | | | |
Business Combination, Contingent Consideration, Liability, Total | | | 666,000 | | | | | | | | | | | |
Business Combination, Consideration Transferred, Cash and Equity Interest Issued and Issuable | | | $ 600,000 | | | | | | | | | | | |
Business Combination, Consideration Transferred, Cash and Equity Interests Issued and Issuable, Number of Equal Installments | | | 2 | | | | | | | | | | | |
Butsko Utility Design, Inc. [Member] | Uncollateralized Promissory Note [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred | | | $ 1,000,000 | | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | 3.00% | | | | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred, Number of Equal Installments | | | 4 | | | | | | | | | | | |
Debt Instrument, Periodic Payment, Total | | | $ 250,000 | | | | | | | | | | | |
Marron and Associates, Inc. [Member] | | | | | | | | | | | | | | |
Payments to Acquire Businesses, Gross | | | | $ 400,000 | | | | | | | | | | |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable | | | | $ 67,000 | | | | | | | | | | |
Business Acquisition, Equity Interest Issued or Issuable, Number of Shares | shares | | | | 1,510 | | | | | | | | | | |
Business Combination, Consideration Transferred, Cash and Equity Interest Issued and Issuable | | | | $ 133,000 | | | | | | | | | | |
Business Combination, Consideration Transferred, Cash and Equity Interests Issued and Issuable, Number of Equal Installments | | | | 2 | | | | | | | | | | |
Marron and Associates, Inc. [Member] | Uncollateralized Promissory Note [Member] | | | | | | | | | | | | | | |
Business Combination, Contingent Consideration, Liability, Total | | | | $ 90,000 | | | | | | | | | | |
Marron and Associates, Inc. [Member] | Maximum [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Total | | | | 990,000 | | | | | | | | | | |
Marron and Associates, Inc. [Member] | Uncollateralized Promissory Note [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred | | | | $ 300,000 | | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | 3.00% | | | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred, Number of Equal Installments | | | | 3 | | | | | | | | | | |
Debt Instrument, Periodic Payment, Total | | | | $ 100,000 | | | | | | | | | | |
Richard D. Kimball Co., Inc. [Member] | | | | | | | | | | | | | | |
Payments to Acquire Businesses, Gross | | | | | $ 15,000,000 | | | | | | | | | |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable | | | | | $ 667,000 | | | | | | | | | |
Business Acquisition, Equity Interest Issued or Issuable, Number of Shares | shares | | | | | 18,072 | | | | | | | | | |
Business Combination, Consideration Transferred, Cash and Equity Interest Issued and Issuable | | | | | $ 1,333,000 | | | | | | | | | |
Business Combination, Consideration Transferred, Cash and Equity Interests Issued and Issuable, Number of Equal Installments | | | | | 2 | | | | | | | | | |
Richard D. Kimball Co., Inc. [Member] | Maximum [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Total | | | | | $ 22,500,000 | | | | | | | | | |
Richard D. Kimball Co., Inc. [Member] | Uncollateralized Promissory Note [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred | | | | | $ 5,500,000 | | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | 3.00% | | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred, Number of Equal Installments | | | | | 4 | | | | | | | | | |
Debt Instrument, Periodic Payment, Total | | | | | $ 1,375,000 | | | | | | | | | |
Holdrege & Kull, Consulting Engineers and Geologists [Member] | | | | | | | | | | | | | | |
Payments to Acquire Businesses, Gross | | | | | | $ 1,000,000 | | | | | | | | |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable | | | | | | $ 100,000 | | | | | | | | |
Business Acquisition, Equity Interest Issued or Issuable, Number of Shares | shares | | | | | | 2,628 | | | | | | | | |
Business Combination, Contingent Consideration Arrangements, Range of Outcomes, Value, High | | | | | | $ 500,000 | | | | | | | | |
Business Combination, Contingent Consideration, Liability, Total | | | | | | $ 405,000 | | | | | | | | |
Business Combination, Contingent Consideration Arrangements, Number of Equal Installments | | | | | | 4 | | | | | | | | |
Business Combination, Contingent Consideration Arrangements, Periodic Payments | | | | | | $ 125,000 | | | | | | | | |
Holdrege & Kull, Consulting Engineers and Geologists [Member] | Maximum [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Total | | | | | | 2,200,000 | | | | | | | | |
Holdrege & Kull, Consulting Engineers and Geologists [Member] | Uncollateralized Promissory Note [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred | | | | | | $ 600,000 | | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | 3.00% | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred, Number of Equal Installments | | | | | | 4 | | | | | | | | |
Debt Instrument, Periodic Payment, Total | | | | | | $ 150,000 | | | | | | | | |
Lochrane Engineering, Inc. [Member] | | | | | | | | | | | | | | |
Payments to Acquire Businesses, Gross | | | | | | | $ 2,690,000 | | | | | | | |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable | | | | | | | $ 17,000 | | | | | | | |
Business Acquisition, Equity Interest Issued or Issuable, Number of Shares | shares | | | | | | | 441 | | | | | | | |
Business Combination, Contingent Consideration Arrangements, Range of Outcomes, Value, High | | | | | | | $ 550,000 | | | | | | | |
Business Combination, Contingent Consideration, Liability, Total | | | | | | | 413,000 | | | | | | | |
Business Combination, Consideration Transferred, Cash and Equity Interest Issued and Issuable | | | | | | | $ 33,000 | | | | | | | |
Business Combination, Consideration Transferred, Cash and Equity Interests Issued and Issuable, Number of Equal Installments | | | | | | | 2 | | | | | | | |
Lochrane Engineering, Inc. [Member] | Maximum [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Total | | | | | | | $ 4,940,000 | | | | | | | |
Lochrane Engineering, Inc. [Member] | Uncollateralized Promissory Note [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred | | | | | | | $ 1,650,000 | | | | | | | |
Debt Instrument, Interest Rate, Stated Percentage | | | | | | | 3.00% | | | | | | | |
Business Combination, Consideration Transferred, Liabilities Incurred, Number of Equal Installments | | | | | | | 4 | | | | | | | |
Debt Instrument, Periodic Payment, Total | | | | | | | $ 413,000 | | | | | | | |
Bock & Clark Corporation [Member] | | | | | | | | | | | | | | |
Business Combination, Consideration Transferred, Total | | | | | | | | $ 42,000,000 | | | | | | |