Quarterly Financial Information Disclosure [Abstract] Schedule of Quarterly Information (Unaudited) Quarterly Financial Information [Table Text Block] Organization, Consolidation and Presentation of Financial Statements [Abstract] Disposal Groups, Including Discontinued Operations [Table] Disposal Groups, Including Discontinued Operations [Table] Disposal Group Name [Axis] Disposal Group Name [Axis] Disposal Group Name [Domain] Disposal Group Name [Domain] Globetec Business [Member] Globetec Business [Member] Globetec Construction, LLC (business name). Disposal Group Classification [Axis] Disposal Group Classification [Axis] Disposal Group Classification [Domain] Disposal Group Classification [Domain] Discontinued Operations, Disposed of by Sale [Member] Discontinued Operations, Disposed of by Sale [Member] Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items] Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items] Discontinued operations, additional losses on disposal, before tax Discontinued Operation, Provision for Loss (Gain) on Disposal, before Income Tax Discontinued operations, net loss Income (Loss) from Discontinued Operations, Net of Tax, Including Portion Attributable to Noncontrolling Interest Discontinued operations, losses on disposal and impairment charges, net of tax Discontinued Operation, Provision for Loss (Gain) on Disposal, Net of Tax Schedule of Multiemployer Plans [Table] Concentration Risk Benchmark [Axis] Concentration Risk Benchmark [Axis] Concentration Risk Benchmark [Domain] Concentration Risk Benchmark [Domain] Workforce Subject to Collective Bargaining Arrangements [Member] Workforce Subject to Collective Bargaining Arrangements [Member] Concentration Risk Type [Axis] Concentration Risk Type [Axis] Concentration Risk Type [Domain] Concentration Risk Type [Domain] Unionized Employees [Member] Unionized Employees Concentration Risk [Member] Multiemployer Plan Type [Axis] Multiemployer Plan Type [Axis] Multiemployer Plans Type [Domain] Multiemployer Plans Type [Domain] Multiemployer Plans, Pension [Member] Multiemployer Plans, Pension [Member] Multiemployer Plans, Other Multiemployer [Member] Multiemployer Plans, Postretirement Benefit [Member] Range [Axis] Range [Axis] Range [Domain] Range [Domain] Low [Member] Minimum [Member] High [Member] Maximum [Member] Covered Employees and Contributions, Multiemployer Plans [Line Items] Multiemployer Plans [Line Items] Multiemployer plans, covered employees (in number of employees) Defined Contribution Plan, Number of Employees Covered Multiemployer plans, contributions (in dollars) Multiemployer Plan, Period Contributions Commitments and Contingencies Disclosure [Abstract] Loss Contingencies [Table] Loss Contingencies [Table] Long-term Debt, Type [Axis] Long-term Debt, Type [Axis] Long-term Debt, Type [Domain] Long-term Debt, Type [Domain] Credit Facility [Member] Domestic Line of Credit [Member] Guarantor Obligations, Nature [Axis] Guarantor Obligations, Nature [Axis] Guarantor Obligations, Nature [Domain] Guarantor Obligations, Nature [Domain] Performance and Payment Bonds [Member] Performance Guarantee [Member] Financial Guarantees [Member] Financial Standby Letter of Credit [Member] Surety Bond [Member] Surety Bond [Member] Scenario [Axis] Scenario [Axis] Scenario [Domain] Scenario, Unspecified [Domain] Estimate [Member] Scenario, Plan [Member] Loss Contingency Nature [Axis] Loss Contingency Nature [Axis] Loss Contingency, Nature [Domain] Loss Contingency, Nature [Domain] Uninsured Risk [Member] Uninsured Risk [Member] Insurance Policies By Type [Axis] Products and Services [Axis] Insurance Policies By Type [Domain] Products and Services [Domain] Workers Compensation, General and Automobile Policies [Member] Property, Liability and Casualty Insurance Product Line [Member] Employee Group Medical Claims Policy [Member] Group Insurance Policies [Member] Workers Compensation [Member] Accident and Health Insurance Product Line [Member] Balance Sheet Location [Axis] Balance Sheet Location [Axis] Balance Sheet Location [Domain] Balance Sheet Location [Domain] Other Long-Term Liabilities [Member] Other Noncurrent Liabilities [Member] Other Long-Term Assets [Member] Other Noncurrent Assets [Member] Collateral [Axis] Collateral [Axis] Collateral [Domain] Collateral [Domain] Cash [Member] Cash [Member] Loss Contingencies [Line Items] Loss Contingencies [Line Items] Letters of credit issued Letters of Credit Outstanding, Amount Outstanding bonds, amount Guarantor Obligations, Maximum Exposure, Undiscounted Bonded projects, costs to complete Contract Revenue Cost Self insurance reserve Self Insurance Reserve Self insurance reserve, non-current Self Insurance Reserve, Noncurrent Cash collateral held by insurance carriers Pledged Assets Separately Reported, Other Assets Pledged as Collateral, at Fair Value Segment Reporting [Abstract] Schedule of Financial Information by Reportable Segment Schedule of Segment Reporting Information, by Segment [Table Text Block] Reconciliation of Consolidated Income (Loss) from Continuing Operations before Income Taxes to EBITDA Reconciliation of Operating Profit (Loss) from Segments to Consolidated [Table Text Block] Schedule of Significant Customers, Revenue Concentration Information Schedule of Revenue by Major Customers by Reporting Segments [Table Text Block] Business Combinations [Abstract] Schedule of Business Acquisitions, by Acquisition [Table] Schedule of Business Acquisitions, by Acquisition [Table] Business Acquisition [Axis] Business Acquisition [Axis] Business Acquisition, Acquiree [Domain] Business Acquisition, Acquiree [Domain] Pacer [Member] Pacer [Member] Pacer Construction Holdings Corporation and its affiliated operating companies ("Pacer") (business name). Currency [Axis] Currency [Axis] All Currencies [Domain] All Currencies [Domain] Canadian Dollars [Member] Canada, Dollars Segments [Axis] Segments [Axis] Segments [Domain] Segments [Domain] Other [Member] Other Segments [Member] Related Party [Axis] Related Party [Axis] Related Party [Domain] Related Party [Domain] Joint Venture [Member] Corporate Joint Venture [Member] Change in Accounting Estimate by Type [Axis] Change in Accounting Estimate by Type [Axis] Change in Accounting Estimate, Type [Domain] Change in Accounting Estimate, Type [Domain] Contracts Accounted for under Percentage-of-Completion [Member] Contracts Accounted for under Percentage of Completion [Member] Performance Guarantees [Member] Business Combinations [Line Items] Business Acquisition [Line Items] Business combinations, effective date Business Acquisition, Effective Date of Acquisition Business combinations, percentage of voting interests acquired Business Acquisition, Percentage of Voting Interests Acquired Business combinations, name of acquired entity Business Acquisition, Name of Acquired Entity Business combinations, payments in cash (in dollars) Payments to Acquire Businesses, Gross Business combinations, description of acquired entity Business Acquisition, Description of Acquired Entity Project losses (in dollars) Loss on Contracts Construction projects, percentage complete Construction Projects, Percentage Complete For a construction project, represents the percentage of completion of the project as of a point in time. Goodwill and intangible asset impairment Goodwill and Intangible Asset Impairment Condensed Financial Statements, Supplemental Guarantor Information [Abstract] -- None. No documentation exists for this element. -- Condensed Financial Statements [Table] Condensed Financial Statements [Table] Senior Notes [Member] Senior Notes [Member] Debt Instrument [Axis] Debt Instrument [Axis] Debt Instrument, Name [Domain] Debt Instrument, Name [Domain] 4.875% Senior Notes [Member] Four Point Eight Seven Five Percent Senior Notes [Member] 4.875% Senior Notes Condensed Financial Statements, Captions [Line Items] Condensed Financial Statements, Captions [Line Items] Debt instrument, interest rate (percentage) Debt Instrument, Interest Rate, Stated Percentage Share-based Compensation [Abstract] Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table] Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table] Plan Name [Axis] Plan Name [Axis] Plan Name [Domain] Plan Name [Domain] 2013 Incentive Plan [Member] 2013 Incentive Plan [Member] The MasTec, Inc. 2013 Incentive Compensation Plan ("2013 Incentive Plan") ESPPs [Member] Employee Stock Plans [Member] The MasTec, Inc. Bargaining Units Employee Stock Purchase Plan (the “2013 Bargaining Units ESPP”) and the MasTec, Inc. 2011 Amended and Restated Employee Stock Purchase Plan as amended (the “2011 ESPP”), together known as the “ESPPs”. Award Type [Axis] Award Type [Axis] Award Type [Domain] Equity Award [Domain] Restricted Stock and Restricted Stock Units [Member] Restricted Stock And Restricted Stock Units [Member] Stock including a provision that prohibits sale or substantive sale of an equity instrument for a specified period of time or until specified performance conditions are met ("Restricted Stock") or share instrument which is convertible to stock or an equivalent amount of cash, after a specified period of time or when specified performance conditions are met ("Restricted Stock Units"). Restricted Stock and Restricted Stock Units are together referred to as "Restricted Shares". Employee Stock Purchase Plans [Member] Employee Stock [Member] Equity Components [Axis] Equity Components [Axis] Equity Component [Domain] Equity Component [Domain] Common Stock [Member] Common Stock [Member] Stock-Based Compensation and Other Employee Benefit Plans [Line Items] Share-based Compensation Arrangement by Share-based Payment Award [Line Items] Stock-based compensation plan, description Share-based Compensation Arrangement by Share-based Payment Award, Description Stock-based compensation plan, number of shares authorized Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized Stock-based compensation, number of shares available for grant or issuance Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Available for Grant Leases [Abstract] Lease Obligations Leases of Lessee Disclosure [Text Block] Related Party Transactions [Abstract] Related Party Transactions Related Party Transactions Disclosure [Text Block] Fair Value Disclosures [Abstract] Fair Value Measurements, Recurring and Non-Recurring [Table] Fair Value Measurements, Recurring and Nonrecurring [Table] Measurement Frequency [Axis] Measurement Frequency [Axis] Fair Value, Measurement Frequency [Domain] Fair Value, Measurement Frequency [Domain] Fair Value Measurements, Non-Recurring [Member] Fair Value, Measurements, Nonrecurring [Member] Measurement Basis [Axis] Measurement Basis [Axis] Fair Value Measurement [Domain] Fair Value Measurement [Domain] Portion at Fair Value Measurement [Member] Portion at Fair Value Measurement [Member] Gross Carrying Amount [Member] Reported Value Measurement [Member] Fair Value [Member] Estimate of Fair Value Measurement [Member] Fair Value, Hierarchy [Axis] Fair Value, Hierarchy [Axis] Fair Value Hierarchy [Domain] Fair Value Hierarchy [Domain] Level 1 [Member] Fair Value, Inputs, Level 1 [Member] Fair Value, Financial Instruments Measured on a Non-Recurring Basis [Line Items] Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] 4.875% Senior Notes (in dollars) Notes Payable, Fair Value Disclosure Fair value measurements, valuation techniques Fair Value Measurements, Valuation Techniques Condensed Cash Flow Statement [Table] Condensed Cash Flow Statement [Table] Consolidation Items [Axis] Consolidation Items [Axis] Consolidation Items [Domain] Consolidation Items [Domain] Reportable Legal Entities [Member] Reportable Legal Entities [Member] Eliminations [Member] Consolidation, Eliminations [Member] Legal Entity [Axis] Legal Entity [Axis] Entity [Domain] Entity [Domain] MasTec, Inc. [Member] Parent Company [Member] Guarantor Subsidiaries [Member] Guarantor Subsidiaries [Member] Non-Guarantor Subsidiaries [Member] Non-Guarantor Subsidiaries [Member] Condensed Consolidating Statements of Cash Flows [Line Items] Condensed Cash Flow Statements, Captions [Line Items] Net cash provided by (used in) operating activities Net Cash Provided by (Used in) Operating Activities Cash flows (used in) provided by investing activities: Net Cash Provided by (Used in) Investing Activities [Abstract] Cash paid for acquisitions, net of cash acquired Payments to Acquire Businesses, Net of Cash Acquired Capital expenditures Payments to Acquire Productive Assets Proceeds from sale of property and equipment Proceeds from Sale of Property, Plant, and Equipment Payments for investments, net Payments for (Proceeds from) Investments Net cash used in investing activities Net Cash Provided by (Used in) Investing Activities Cash flows provided by (used in) financing activities: Net Cash Provided by (Used in) Financing Activities [Abstract] Proceeds from credit facilities Proceeds from Long-term Lines of Credit Repayments of credit facilities Repayments of Long-term Lines of Credit Repayments of senior convertible notes Repayments of Senior Debt Repayments of other borrowings and capital lease obligations Repayments of Other Debt Repurchase of common stock Payments for Repurchase of Common Stock Proceeds from stock-based awards, net Proceeds from Issuance of Shares under Incentive and Share-based Compensation Plans, Including Stock Options Excess tax benefit from stock-based compensation Excess Tax Benefit from Share-based Compensation, Financing Activities Payments of acquisition-related contingent consideration Payments of Merger Related Costs, Financing Activities Other financing activities, net Proceeds from (Payments for) Other Financing Activities Net financing activities and advances (to) from consolidated affiliates Net Financing Activities And Advances From (To) Consolidated Affiliates The cash inflow (outflow) from financing activities and (advances to) collection of money previously advanced to consolidated entities. Net cash (used in) provided by financing activities Net Cash Provided by (Used in) Financing Activities Effect of currency translation on cash Effect of Exchange Rate on Cash and Cash Equivalents Net increase (decrease) in cash and cash equivalents Cash and Cash Equivalents, Period Increase (Decrease) Cash and cash equivalents - beginning of period Cash and Cash Equivalents, at Carrying Value Cash and cash equivalents - end of period Accounting Policies [Abstract] Principles of Consolidation Consolidation, Policy [Policy Text Block] Equity Method Investments Equity Method Investments, Policy [Policy Text Block] Unicorporated Entities, Proportional Consolidation Interest in Unincorporated Joint Ventures or Partnerships, Policy [Policy Text Block] Cost Method Investments Cost Method Investments, Policy [Policy Text Block] Reclassifications Reclassification, Policy [Policy Text Block] Variable Interest Entities Consolidation, Variable Interest Entity, Policy [Policy Text Block] Translation of Foreign Currencies Foreign Currency Transactions and Translations Policy [Policy Text Block] Management Estimates Use of Estimates, Policy [Policy Text Block] Revenue Recognition Revenue Recognition, Policy [Policy Text Block] Revenue Recognition, Percentage-of-Completion Method Revenue Recognition, Percentage-of-Completion Method [Policy Text Block] Allowance for Doubtful Accounts Receivables, Trade and Other Accounts Receivable, Allowance for Doubtful Accounts, Policy [Policy Text Block] Cash and Cash Equivalents Cash and Cash Equivalents, Policy [Policy Text Block] Inventories Inventory, Policy [Policy Text Block] Property and Equipment Property, Plant and Equipment, Policy [Policy Text Block] Finite-Lived Intangible Assets Intangible Assets, Finite-Lived, Policy [Policy Text Block] Impairment of Long-Lived Assets Impairment or Disposal of Long-Lived Assets, Including Intangible Assets, Policy [Policy Text Block] Goodwill and Indefinite-Lived Intangible Assets Goodwill and Intangible Assets, Policy [Policy Text Block] Valuation of Net Assets Acquired and Estimated Future Earn-Out Obligations in Business Combinations Business Combinations Policy [Policy Text Block] Deferred Financing Costs Deferred Charges, Policy [Policy Text Block] Self-Insurance Self Insurance Reserve [Policy Text Block] Income Taxes Income Tax, Policy [Policy Text Block] Unremitted Foreign Earnings Unremitted Earnings in Foreign Investment, Policy [Policy Text Block] Stock-Based Compensation Share-based Compensation, Option and Incentive Plans Policy [Policy Text Block] Collective Bargaining Agreements and Multiemployer Plans Collective Bargaining Agreements and Multiemployer Plans [Policy Text Block] Disclosure of accounting policy for collective bargaining agreements and multiemployer plans. Restructuring Costs Costs Associated with Exit or Disposal Activities or Restructurings, Policy [Policy Text Block] Litigation and Contingencies Commitments and Contingencies, Policy [Policy Text Block] Fair Value of Financial Instruments Fair Value of Financial Instruments, Policy [Policy Text Block] Discontinued Operations Discontinued Operations, Policy [Policy Text Block] New Accounting Pronouncements New Accounting Pronouncements, Policy [Policy Text Block] Comprehensive Income Comprehensive Income, Policy [Policy Text Block] Income Tax Uncertainties Income Tax Uncertainties, Policy [Policy Text Block] Schedule of Goodwill [Table] Schedule of Goodwill [Table] Communications [Member] Communications [Member] Engineering, construction and maintenance of communications infrastructure primarily related to wireless and wireline/fiber communications and install-to-the-home customers, and, to a lesser extent, distribution infrastructure for electrical utilities, among others. Oil and Gas [Member] Oil And Gas [Member] Engineering, construction and maintenance services on oil and natural gas pipelines and processing facilities for the energy and utilities industries. Electrical Transmission [Member] Electrical Transmission [Member] The engineering, construction and maintenance of electrical transmission lines and substations primarily for the energy and utility industries. Power Generation and Industrial [Member] Power Generation and Industrial [Member] Installation and construction of conventional and renewable power facilities, related electrical transmission infrastructure, ethanol/biofuel facilities and various types of industrial infrastructure, primarily for the energy, utility and other end-markets. Asset Class [Axis] Asset Class [Axis] Asset Class [Domain] Asset Class [Domain] Goodwill [Member] Goodwill [Member] Indefinite-Lived Intangible Assets [Member] Indefinite-lived Intangible Assets [Member] Minimum [Member] Maximum [Member] Subsegments [Axis] Subsegments [Axis] Subsegments [Domain] Subsegments [Domain] Reporting Unit Or Intangible, Quantitative Testing, Estimated Fair Value Not Substantially Exceeding Carrying Value [Member] Reporting Unit Or Intangible Quantitative Testing Estimated Fair Value Not Substantially Exceed Carrying Value [Member] The reporting unit or indefinite lived intangible asset(s) for which quantitative testing was performed, and for which the estimated fair value did not substantially exceed the carrying value. Reporting Unit Or Intangible, Quantitative Testing, Impairment Charge Recorded [Member] Reporting Unit Or Intangible For Which Impairment Charge Was Recorded [Member] The reporting unit or indefinite lived intangible asset for which an impairment charge was recorded. Indefinite-lived Intangible Assets [Axis] Indefinite-lived Intangible Assets [Axis] Indefinite-lived Intangible Assets, Major Class Name [Domain] Indefinite-lived Intangible Assets, Major Class Name [Domain] Pre-Qualifications [Member] Contractual Rights [Member] Goodwill and Indefinite-Lived Intangible Assets [Line Items] Indefinite-lived Intangible Assets [Line Items] Number of aggregated components in reporting unit Goodwill Impairment Testing, Number Of Components Aggregated For a business entity, represents the number of components of an operating segment that were aggregated into a reporting unit for purposes of goodwill impairment testing. Goodwill impairment testing, number of reporting units Number of Reporting Units Impairment testing, significant assumptions Fair Value Measurements, Significant Assumptions Goodwill impairment testing, terminal growth rate (percentage) Fair Value Inputs, Long-term Revenue Growth Rate Impairment testing, number of years of discounted cash flows before terminal value Impairment Testing, Number Of Years Of Projected Results For a business entity, represents the number of years for which projections are incorporated into a cash flow analysis before the terminal year value is estimated in connection with impairment testing. Impairment testing, discount rate (percentage) Fair Value Inputs, Discount Rate Goodwill impairment testing, reporting unit, percentage of estimated fair value in excess of carrying value Reporting Unit, Percentage of Fair Value in Excess of Carrying Amount Impairment testing, sensitivity analysis, description Fair Value Measurements, Sensitivity Analysis, Description Impairment testing, discount rate sensitivity analysis, spread on discount rate for which evaluation was completed (percentage) Impairment Testing, Discount Rate Sensitivity Analysis, Spread On Discount Rate For Which Evaluation Was Completed For sensitivity analysis purposes, represents the percentage points added to or deducted from the discount rate used in a discounted cash flow analysis in connection with impairment testing. Goodwill, carrying amount (in dollars) Goodwill Goodwill, pre-tax impairment charge (in dollars) Goodwill, Impairment Loss Indefinite-lived intangible asset impairment testing, number of indefinite-lived intangible assets Impairment Testing, Discounted Cash Flow Methodology, Number Of Indefinite-Lived Intangible Assets For a business entity, represents the number of indefinite-lived intangible assets for which impairment testing was performed using a discounted cash flow methodology. Indefinite-lived intangible assets, pre-tax impairment charge (in dollars) Impairment of Intangible Assets, Indefinite-lived (Excluding Goodwill) Indefinite-lived intangible assets, carrying amount (in dollars) Indefinite-Lived Intangible Assets (Excluding Goodwill) Impairment testing, EBITDA multiple Fair Value Inputs, Earnings before Interest, Taxes, Depreciation, and Amortization Multiple Indefinite-lived intangible asset impairment testing, percentage of fair value in excess of carrying amount Indefinite-Lived Intangible Asset Percentage Of Fair Value In Excess Of Carrying Amount Percentage of fair value of indefinite-lived intangible asset in excess of carrying amount. Multiemployer Plans [Abstract] Other Retirement Plans Pension and Other Postretirement Benefits Disclosure [Text Block] Other Commitments [Table] Other Commitments [Table] Investment, Name [Axis] Investment, Name [Axis] Investment, Name [Domain] Investment, Name [Domain] Joint Ventures That Provide Electrical Transmission Infrastructure Services [Member] Joint Ventures That Provide Electrical Transmission Infrastructure Services [Member] Joint venture(s) that provide(s) electrical transmission infrastructure services. Joint Venture A That Provides Electrical Transmission Infrastructure Services [Member] Joint Venture A That Provides Electrical Transmission Infrastructure Services [Member] Joint venture A that provides electrical transmission infrastructure services. Joint Venture B That Provides Electrical Transmission Infrastructure Services [Member] Joint Venture B That Provides Electrical Transmission Infrastructure Services [Member] Joint venture B that provides electrical transmission infrastructure services. Joint Venture C That Provides Electrical Transmission Infrastructure Services [Member] Joint Venture C That Provides Electrical Transmission Infrastructure Services [Member] Joint venture C that provides electrical transmission infrastructure services. Other Commitments [Line Items] Other Commitments [Line Items] Proportionately consolidated non-controlled joint venture, ownership percentage Proportionately Consolidated Joint Venture Ownership Percentage The percentage of ownership of common stock or equity participation in the investee accounted for under the proportionate consolidation method. Number of joint ventures Number Of Joint Ventures Number of joint ventures in which the Company has an interest. Business, Basis of Presentation and Significant Accounting Policies [Table] Business, Basis Of Presentation And Significant Accounting Policies [Table] Schedule reflecting financial concepts. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Income Statement Location [Axis] Income Statement Location [Axis] Income Statement Location [Domain] Income Statement Location [Domain] Interest Expense [Member] Interest Expense [Member] Workers' Compensation Policy [Member] General Liability Policy [Member] General Liability [Member] Property Insurance Policy [Member] Property Insurance Product Line [Member] Umbrella Policy [Member] Other Insurance Product Line [Member] Property and Equipment, Type [Axis] Property, Plant and Equipment, Type [Axis] Property and Equipment, Type [Domain] Property, Plant and Equipment, Type [Domain] Automobiles [Member] Automobiles [Member] Business, Basis Of Presentation And Significant Accounting Policies [Line Items] Business, Basis Of Presentation And Significant Accounting Policies [Line Items] Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Number of reportable segments Number of Reportable Segments Book overdrafts Book Overdrafts Book overdrafts represent outstanding checks or drafts not yet presented to the bank that result in overdraft balances for book purposes. Book overdrafts are classified within accounts payable in the consolidated balance sheets, that are in excess of recorded cash balances. Book overdrafts differ from bank overdrafts, which are checks presented to the bank that are in excess of cash balances at the bank. Inventory obsolescence reserves Inventory Valuation Reserves Financing costs incurred Payments of Debt Issuance Costs Amortization of deferred financing costs Amortization of Debt Issuance Costs Deferred financing costs, net of accumulated amortization Debt Issuance Costs, Net Per claim deductible, insurance policies Malpractice Insurance, Deductible Maximum annual coverage limit, per claim Malpractice Insurance, Maximum Coverage Per Incident Maximum annual coverage limit, in aggregate Malpractice Insurance, Annual Coverage Limit Loss contingency, maximum loss per employee Loss Contingency, Range Of Possible Loss, Maximum, Per Employee The maximum amount of possible loss from the contingency per employee. Provision for U.S. income taxes on unremitted foreign earnings Deferred Tax Liability Not Recognized, Amount of Unrecognized Deferred Tax Liability, Undistributed Earnings of Foreign Subsidiaries Equity [Abstract] Accumulated Other Comprehensive Loss [Table] Accumulated Other Comprehensive Income (Loss) [Table] Foreign Currency [Member] Accumulated Foreign Currency Adjustment Attributable to Parent [Member] Other [Member] Accumulated Net Investment Gain (Loss) Attributable to Parent [Member] Accumulated Other Comprehensive Loss [Line Items] Accumulated Other Comprehensive Income (Loss) [Line Items] Accumulated other comprehensive loss, beginning balance Accumulated Other Comprehensive Income (Loss), Net of Tax Unrealized gains (losses), net of tax Other Comprehensive Income (Loss), Net of Tax Accumulated other comprehensive loss, ending balance WesTower [Member] WesTower [Member] WesTower Communications, Inc. (business name) General and Administrative Expenses [Member] General and Administrative Expense [Member] Business Acquisition [Line Items] Business combinations, pro forma information, description Business Acquisition, Pro Forma Information, Description Unaudited Supplemental Pro Forma Financial Information and Results of Businesses Acquired Business Acquisition, Pro Forma Information [Abstract] Business combinations, pro forma revenue Business Acquisition, Pro Forma Revenue Business combinations, pro forma net income from continuing operations Business Acquisition, Pro Forma Net Income (Loss) Business combinations, actual of acquirees, revenue (year-over-year impact) Business Combination, Pro Forma Information, Revenue of Acquiree since Acquisition Date, Actual Business combinations, actual of acquirees, net (loss) income from continuing operations (year-over-year impact) Business Combination, Pro Forma Information, Earnings or Loss of Acquiree since Acquisition Date, Actual Business combinations, acquisition integration costs Business Combination, Integration Related Costs Project losses Business combinations, other acquisition-related costs Business Combination, Acquisition Related Costs Document and Entity Information [Abstract] -- None. No documentation exists for this element. -- Document Type Document Type Amendment Flag Amendment Flag Document Period End Date Document Period End Date Document Fiscal Year Focus Document Fiscal Year Focus Document Fiscal Period Focus Document Fiscal Period Focus Entity Registrant Name Entity Registrant Name Trading Symbol Trading Symbol Entity Central Index Key Entity Central Index Key Current Fiscal Year End Date Current Fiscal Year End Date Entity Well-known Seasoned Issuer Entity Well-known Seasoned Issuer Entity Voluntary Filers Entity Voluntary Filers Entity Current Reporting Status Entity Current Reporting Status Entity Filer Category Entity Filer Category Entity Public Float (in dollars) Entity Public Float Entity Common Stock, Shares Outstanding Entity Common Stock, Shares Outstanding Receivables [Abstract] Schedule of Accounts Receivable [Table] Schedule of Accounts, Notes, Loans and Financing Receivable [Table] Receivable Type [Axis] Receivable Type [Axis] Receivable [Domain] Receivable [Domain] Accounts Receivable [Member] Trade Accounts Receivable [Member] Schedule of Accounts Receivable, Net of Allowance [Line Items] Accounts, Notes, Loans and Financing Receivable [Line Items] Schedule of Accounts Receivable, Net of Allowance Schedule of Accounts, Notes, Loans and Financing Receivable [Table Text Block] Schedule of Activity, Allowance for Doubtful Accounts Schedule of Credit Losses for Financing Receivables, Current [Table Text Block] Property, Plant and Equipment [Abstract] Schedule of Property and Equipment [Table] Property, Plant and Equipment [Table] Property and Equipment [Member] Property, Plant and Equipment [Member] Property and Equipment [Line Items] Property, Plant and Equipment [Line Items] Capitalized internal-use software, gross Capitalized Computer Software, Gross Capitalized internal-use software, net Capitalized Computer Software, Net Depreciation and amortization Depreciation, Depletion and Amortization Debt Disclosure [Abstract] Schedule of Long-term Debt Instruments [Table] Schedule of Long-term Debt Instruments [Table] Convertible Debt [Member] Convertible Debt [Member] Debt Conversion Description [Axis] Debt Conversion Description [Axis] Debt Conversion, Name [Domain] Debt Conversion, Name [Domain] 4.25% Convertible Notes [Member] 4.25% Notes [Member] 4.25% senior convertible notes 4.0% Convertible Notes [Member] 4.0% Notes [Member] 4.0% senior convertible notes Treasury Stock, Common [Member] Treasury Stock, Common [Member] Debt Instrument [Line Items] Debt Instrument [Line Items] Debt instrument, convertible, interest rate (percentage) Debt instrument, convertible, repayments (in dollars) Repayments of Convertible Debt Value of premium shares upon conversion, convertible notes (in dollars) Stock Issued During Period, Value, Conversion of Convertible Securities Share reissuances, treasury stock (in shares) Stock Issued During Period, Shares, Treasury Stock Reissued Credit Facility [Axis] Credit Facility [Axis] Credit Facility [Domain] Credit Facility [Domain] Term Loan [Member] Loans Payable [Member] Revolving Loans [Member] Revolving Credit Facility [Member] Letters of Credit [Member] Letter of Credit [Member] Line of credit facility, description of variable rate Debt Instrument, Description of Variable Rate Basis Line of credit facility, interest rate description, letters of credit Line of Credit Facility, Interest Rate Description Line of credit facility, commitment fee description Line of Credit Facility, Commitment Fee Description Line of credit facility, covenant terms Line of Credit Facility, Covenant Terms Line of credit facility, collateral Line of Credit Facility, Collateral Business combinations, acquisition integration costs (in dollars) Capital Leases Capital Lease Obligations [Abstract] Future minimum lease commitments, 2017 Capital Leases, Future Minimum Payments Due, Next Twelve Months Future minimum lease commitments, 2018 Capital Leases, Future Minimum Payments Due in Two Years Future minimum lease commitments, 2019 Capital Leases, Future Minimum Payments Due in Three Years Future minimum lease commitments, 2020 Capital Leases, Future Minimum Payments Due in Four Years Future minimum lease commitments, 2021 Capital Leases, Future Minimum Payments Due in Five Years Future minimum lease commitments, thereafter Capital Leases, Future Minimum Payments Due Thereafter Total minimum lease payments Capital Leases, Future Minimum Payments Due Less amounts representing interest Capital Leases, Future Minimum Payments, Interest Included in Payments Total capital lease obligations, net of interest Capital Lease Obligations Less current portion Capital Lease Obligations, Current Long-term portion of capital lease obligations, net of interest Capital Lease Obligations, Noncurrent Operating Leases Leases, Operating [Abstract] Future minimum lease commitments, 2017 Operating Leases, Future Minimum Payments Due, Next Twelve Months Future minimum lease commitments, 2018 Operating Leases, Future Minimum Payments, Due in Two Years Future minimum lease commitments, 2019 Operating Leases, Future Minimum Payments, Due in Three Years Future minimum lease commitments, 2020 Operating Leases, Future Minimum Payments, Due in Four Years Future minimum lease commitments, 2021 Operating Leases, Future Minimum Payments, Due in Five Years Future minimum lease commitments, thereafter Operating Leases, Future Minimum Payments, Due Thereafter Total minimum lease payments Operating Leases, Future Minimum Payments Due Earnings Per Share [Abstract] Earnings Per Share Earnings Per Share [Text Block] Other Guarantees [Table] Long-Duration Contracts, Assumptions, by Product and Guarantee [Table] Subsidiaries [Member] Subsidiaries [Member] Warranty [Member] Warranty Obligations [Member] Other Guarantees [Line Items] Long-Duration Contracts, Assumptions by Product and Guarantee [Line Items] Other guarantees, description Guarantor Obligations, Origin and Purpose General warranty, description Standard Product Warranty Description General warranty, period (in years) Fair Value Assumptions, Expected Term General warranty, accrued reserve (in dollars) Standard and Extended Product Warranty Accrual Other Accrued Expenses [Member] Accrued Liabilities [Member] Debt instruments, accrued interest payable Interest Payable, Current Schedule of Related Party Transactions, by Related Party [Table] Schedule of Related Party Transactions, by Related Party [Table] Other Postretirement Benefits, Individual Contracts, Type of Deferred Compensation [Axis] Other Postretirement Benefits, Individual Contracts, Type of Deferred Compensation [Axis] Other Postretirement Benefits, Individual Contracts, Type of Deferred Compensation [Domain] Other Postretirement Benefits, Individual Contracts, Type of Deferred Compensation [Domain] Split Dollar Life Insurance [Member] Postretirement Life Insurance [Member] Chairman, Board of Directors [Member] Board of Directors Chairman [Member] Chief Executive Officer [Member] Chief Executive Officer [Member] Executive Officers [Member] Executive Officer [Member] Related Party Transaction [Line Items] Related Party Transaction [Line Items] Life insurance, face amount Life Insurance, Corporate or Bank Owned, Amount Payments for life insurance policies Payments to Acquire Life Insurance Policies Proceeds from life insurance, net of premiums paid Payments for (Proceeds from) Life Insurance Policies Life insurance assets, carrying amount Cash Surrender Value of Life Insurance Accounts Receivable, Net of Allowance Loans, Notes, Trade and Other Receivables Disclosure [Text Block] Receivables, Non-Recourse Arrangement [Member] Financing Receivable [Member] Improvement in cash collections from non-recourse financing arrangement Other Operating Activities, Cash Flow Statement Non-recourse financing arrangement, discount charge Gain (Loss) on Sale of Accounts Receivable Quarterly Information (Unaudited) Quarterly Financial Information [Text Block] Multiemployer Plan Name [Axis] Multiemployer Plan Name [Axis] Multiemployer Plan Name [Domain] Multiemployer Plan Name [Domain] Central States [Member] Central States Southeast And Southwest Areas Pension Fund [Member] Central States Southeast And Southwest Areas Pension Fund Multiemployer plan, withdrawal obligation, payments Loss Contingency Accrual, Payments Multiemployer plans, withdrawal liability Multiemployer Plans, Withdrawal Obligation Statement of Cash Flows [Abstract] Statement [Table] Statement [Table] Other Significant Non-Cash Transaction [Axis] Other Significant Noncash Transaction [Axis] Other Significant Non-Cash Transaction, Name [Domain] Other Significant Noncash Transaction, Name [Domain] Equipment [Member] Machinery and Equipment [Member] Statement [Line Items] Statement [Line Items] Cash flows from operating activities: Net Cash Provided by (Used in) Operating Activities [Abstract] Net income (loss) Net Income (Loss), Including Portion Attributable to Noncontrolling Interest Adjustments to reconcile net income (loss) to net cash provided by operating activities: Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract] Non-cash interest expense, net Amortization of Debt Issuance Costs and Discounts Non-cash stock-based compensation expense Allocated Share-based Compensation Expense Excess tax benefit from stock-based compensation Excess Tax Benefit from Share-based Compensation, Operating Activities Provision for deferred income taxes Deferred Income Tax Expense (Benefit) Other non-cash items Other Noncash Income (Expense) Losses (gains), net, on asset sales, including fixed assets held-for-sale and discontinued operations Gain (Loss) on Sale of Assets and Asset Impairment Charges Changes in assets and liabilities, net of acquisitions: Increase (Decrease) in Operating Capital [Abstract] Accounts receivable Increase (Decrease) in Accounts Receivable Inventories Increase (Decrease) in Inventories Other assets, current and long-term portion Increase (Decrease) in Other Operating Assets Accounts payable and accrued expenses Increase (Decrease) in Accounts Payable and Accrued Liabilities Billings in excess of costs and earnings Increase (Decrease) in Billing in Excess of Cost of Earnings Book overdrafts Increase (Decrease) in Book Overdrafts Other liabilities, current and long-term portion Increase (Decrease) in Other Operating Liabilities Net cash provided by operating activities Cash flows used in investing activities: Payments for other investments Payments to Acquire Other Investments Proceeds from other investments Proceeds from Sale and Maturity of Other Investments Cash flows (used in) provided by financing activities: Repayment of senior convertible notes Repayments of other borrowings Repayments of Other Long-term Debt Payments of capital lease obligations Repayments of Long-term Capital Lease Obligations Other financing activities, net Supplemental cash flow information: Supplemental Cash Flow Information [Abstract] Interest paid Interest Paid Income taxes paid, net of refunds Income Taxes Paid, Net Supplemental disclosure of non-cash information: Cash Flow, Noncash Investing and Financing Activities Disclosure [Abstract] Equipment acquired under capital lease Capital Lease Obligations Incurred Equipment acquired under financing arrangements Notes Issued Accrued capital expenditures Capital Expenditures Incurred but Not yet Paid Premium shares, conversion of convertible notes Debt Instrument, Convertible, If-converted Value in Excess of Principal Other Credit Facilities [Member] Foreign Line of Credit [Member] Weighted Average [Member] Weighted Average [Member] Line of credit facility, maximum borrowing capacity (in dollars) Line of Credit Facility, Maximum Borrowing Capacity Long-term debt obligations Long-term Debt, Gross Line of credit facility, interest rate (percentage) Line of Credit Facility, Interest Rate at Period End Debt instrument, rationale for classification as long-term debt Line of Credit Facility, Rationale for Classification as Long-term Debt Earnings Per Share, Basic and Diluted [Abstract] Earnings Per Share [Table] Schedule of Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Table] Operating Activities [Axis] Operating Activities [Axis] Operating Activities [Domain] Operating Activities [Domain] Continuing Operations [Member] Continuing Operations [Member] Earnings Per Share [Line Items] Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Line Items] Net income (loss) attributable to MasTec: Net Income (Loss) Attributable to Parent, Diluted [Abstract] Net income (loss), continuing operations - basic (in dollars) Income (Loss) from Continuing Operations, Net of Tax, Attributable to Parent Interest expense, net of tax, convertible notes (in dollars) Interest on Convertible Debt, Net of Tax Net income (loss) attributable to MasTec - diluted (in dollars) Net Income (Loss) Attributable to Parent, Diluted Net loss from discontinued operations - basic and diluted (in dollars) Income (Loss) from Discontinued Operations, Net of Tax, Attributable to Parent Weighted average shares outstanding: Weighted Average Number of Shares Outstanding, Diluted [Abstract] Weighted average shares outstanding - basic Weighted Average Number of Shares Outstanding, Basic Dilutive common stock equivalents (in shares) Incremental Common Shares Attributable to Dilutive Effect of Share-based Payment Arrangements Dilutive premium shares, convertible notes Incremental Common Shares Attributable to Dilutive Effect of Contingently Issuable Shares Weighted average shares outstanding - diluted Weighted Average Number of Shares Outstanding, Diluted Risks and Uncertainties [Abstract] Concentration Risk [Table] Concentration Risk [Table] Accounts Receivable, Net, Less BIEC [Member] Accounts Receivable [Member] Revenue [Member] Sales Revenue, Services, Net [Member] Credit Concentration Risk [Member] Credit Concentration Risk [Member] Customer Concentration Risk [Member] Customer Concentration Risk [Member] Customer [Axis] Customer [Axis] Customer [Domain] Customer [Domain] Customer with Highest Net Accounts Receivable Position [Member] Customer With Highest Net Accounts Receivable Position1 [Member] Customer who accounted for the highest net accounts receivable position, subsequent to AT&T's acquisition of DIRECTV, which represents accounts receivable, net, less billings in excess of costs and earnings. Customer With Second Highest Net Accounts Receivable Position [Member] Customer With Second Highest Net Accounts Receivable Position [Member] Customer who accounted for the second highest net accounts receivable position, which represents accounts receivable, net, less billings in excess of costs and earnings. Ten Largest Customers [Member] Ten Largest Customers1 [Member] Ten largest customers, subsequent to AT&T acquisition of DIRECTV. Concentration Risk [Line Items] Concentration Risk [Line Items] Number of customers Number Of Customers1 Number of customers Concentration risk, percentage of total Concentration Risk, Percentage Schedule of Property and Equipment, Net Property, Plant and Equipment [Table Text Block] Plan [Member] Debt Instrument, Redemption, Period [Axis] Debt Instrument, Redemption, Period [Axis] Debt Instrument, Redemption, Period [Domain] Debt Instrument, Redemption, Period [Domain] Debt Instrument, Redemption, on or after March 15, 2018 [Member] Debt Instrument, Redemption, Period Two [Member] Redemption Period Prior to March 15, 2018 [Member] Debt Instrument, Redemption, Period One [Member] Debt instrument, principal amount (in dollars) Debt Instrument, Face Amount Debt instrument, maturity date Debt Instrument, Maturity Date Debt instrument, payment terms Debt Instrument, Payment Terms Debt instrument, guarantees Debt Instrument, Collateral Debt instrument, call feature description Debt Instrument, Call Feature Debt instrument, percentage of principal that may be redeemed Debt Instrument, Redemption Price, Percentage of Principal Amount Redeemed Debt instrument, earliest call date Debt Instrument, Redemption Period, Start Date Debt instrument, redemption description Debt Instrument, Redemption, Description Debt instrument, redemption period end date Debt Instrument, Redemption Period, End Date Debt instrument, redemption price, percentage of principal amount Debt Instrument, Redemption Price, Percentage Debt instrument, restrictive covenants Debt Instrument, Restrictive Covenants Management [Member] Management [Member] Immediate Family Member of Management [Member] Immediate Family Member of Management or Principal Owner [Member] Related Party Transaction [Axis] Related Party Transaction [Axis] Related Party Transaction [Domain] Related Party Transaction [Domain] Subcontracting Arrangement, Construction Services [Member] Subcontracting Arrangements [Member] The performance of services under a subcontracting arrangement. Equipment [Member] Equipment [Member] Services [Member] Service Agreements [Member] Employee Leasing Arrangements [Member] Employment Contracts [Member] Property Lease [Member] Property Subject to Operating Lease [Member] Lease Agreements [Member] Lease Agreements [Member] Major Customers [Axis] Name of Major Customer [Domain] Related Customer [Member] Related Customer [Member] Customer that has a related party relationship with the entity, either by ownership or management affiliation. Lease Arrangement, Type [Axis] Lease Arrangement, Type [Axis] Lease Arrangement, Type [Domain] Lease Arrangement, Type [Domain] Aircraft [Member] Air Transportation Equipment [Member] Number of additional management employees, subcontracting arrangement Entity Number of Employees Payments, related party Related Party Transaction, Expenses from Transactions with Related Party Proceeds from sale of equipment, related party Proceeds from Sale of Machinery and Equipment Payables, related party Accounts Payable, Related Parties Charges, related party Related Party Transaction, Other Revenues from Transactions with Related Party Receivables, related party Due from Related Parties Revenue, related party Revenue from Related Parties Accounts receivable, related party Accounts Receivable, Related Parties Number of subsidiaries, non-controlling interests, subcontracting arrangement Number Of Subsidiaries Number of consolidated subsidiaries reported by the Company. Segments and Related Information Segment Reporting Disclosure [Text Block] Selected Quarterly Financial Information [Abstract] Selected Quarterly Financial Information [Abstract] Revenue Revenues Costs of revenue, excluding depreciation and amortization Cost of Services, Excluding Depreciation, Depletion, and Amortization Net (loss) income Income (Loss) from Continuing Operations, Net of Tax, Including Portion Attributable to Noncontrolling Interest Net (loss) income attributable to MasTec, Inc. Net Income (Loss) Attributable to Parent (Loss) earnings per share from continuing operations: Basic (in dollars per share) Income (Loss) from Continuing Operations, Per Basic Share Diluted (in dollars per share) Income (Loss) from Continuing Operations, Per Diluted Share EBITDA Reconciliation: Reconciliation of Operating Profit (Loss) from Segments to Consolidated [Abstract] Income (loss) from continuing operations before income taxes Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest Interest expense, net Interest Revenue (Expense), Net EBITDA - Continuing operations EBITDA Earnings from continuing operations before interest, taxes, depreciation and amortization, a non-U.S. GAAP financial measure of profitability. Earnings Per Share Reconciliation Disclosure Earnings Per Share Reconciliation Disclosure Goodwill and Intangible Assets Disclosure [Abstract] Rollforward of Goodwill by Reportable Segment Schedule of Goodwill [Table Text Block] Rollforward of Other Intangible Assets Intangible Assets Disclosure [Text Block] Schedule of Expected Future Amortization Expense for Amortizing Assets Schedule of Finite-Lived Intangible Assets, Future Amortization Expense [Table Text Block] Schedule of Pro Forma Information, Business Acquisitions Business Acquisition, Pro Forma Information [Table Text Block] Segments and Related information [Table] Schedule of Segment Reporting Information, by Segment [Table] Geographical [Axis] Geographical [Axis] Geographical [Domain] Geographical [Domain] United States [Member] UNITED STATES Foreign Operations [Member] Non-US [Member] Geographic Concentration Risk [Member] Geographic Concentration Risk [Member] Foreign Customers [Member] Foreign Customers [Member] Foreign customers, which represent customers in countries other than the United States. Segment and Related Information [Line Items] Segment Reporting Information [Line Items] Property and equipment, net Property, Plant and Equipment, Net Intangible assets and goodwill, net Intangible Assets, Net (Including Goodwill) Statement of Financial Position [Abstract] Assets Assets [Abstract] Current assets: Assets, Current [Abstract] Cash and cash equivalents Accounts receivable, net of allowance Accounts Receivable, Net, Current Inventories, net Inventory, Net Prepaid expenses Prepaid Expense, Current Other current assets Other Assets, Current Total current assets Assets, Current Goodwill, net Other intangible assets, net Intangible Assets, Net (Excluding Goodwill) Other long-term assets Other Assets, Noncurrent Total assets Assets Liabilities and equity Liabilities and Equity [Abstract] Current liabilities: Liabilities, Current [Abstract] Current portion of long-term debt Long-term Debt and Capital Lease Obligations, Current Accounts payable Accounts Payable, Current Accrued salaries and wages Employee-related Liabilities, Current Other accrued expenses Accrued Liabilities, Current Billings in excess of costs and earnings Billings in Excess of Cost, Current Other current liabilities Other Liabilities, Current Total current liabilities Liabilities, Current Long-term debt Long-term Debt and Capital Lease Obligations Long-term deferred tax liabilities, net Deferred Tax Liabilities, Net, Noncurrent Other long-term liabilities Other Liabilities, Noncurrent Total liabilities Liabilities Commitments and contingencies (Note 14) Commitments and Contingencies Equity Stockholders' Equity Attributable to Parent [Abstract] Preferred stock, $1.00 par value: authorized shares - 5,000,000; issued and outstanding shares – none Preferred Stock, Value, Issued Common stock, $0.10 par value: authorized shares - 145,000,000; issued shares - 90,634,771 (including 1,927,286 of unvested restricted shares) and 88,197,474 as of December 31, 2016 and 2015, respectively) Common Stock, Value, Issued Capital surplus Additional Paid in Capital, Common Stock Retained earnings Retained Earnings (Accumulated Deficit) Accumulated other comprehensive loss Treasury stock, at cost: 8,094,004 shares as of both December 31, 2016 and 2015 Treasury Stock, Common, Value Total MasTec, Inc. shareholders’ equity Stockholders' Equity Attributable to Parent Non-controlling interests Stockholders' Equity Attributable to Noncontrolling Interest Total equity Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest Total liabilities and equity Liabilities and Equity Contractual Maturities of Debt and Capital Lease Obligations Maturities of Long-term Debt and Capital Lease Obligations [Abstract] Contractual maturities of debt and capital lease obligations, 2017 Long-term Debt and Capital Lease Obligations, Repayments of Principal in Next Twelve Months Contractual maturities of debt and capital lease obligations, 2018 Long-term Debt and Capital Lease Obligations, Maturities, Repayments of Principal in Year Two Contractual maturities of debt and capital lease obligations, 2019 Long-term Debt and Capital Lease Obligations, Maturities, Repayments of Principal in Year Three Contractual maturities of debt and capital lease obligations, 2020 Long-term Debt and Capital Lease Obligations, Maturities, Repayments of Principal in Year Four Contractual maturities of debt and capital lease obligations, 2021 Long-term Debt, Maturities, Repayments of Principal in Year Five Contractual maturities of debt and capital lease obligations, thereafter Long-term Debt and Capital Lease Obligations, Maturities, Repayments of Principal after Year Five Total long-term debt obligations Long-term Debt and Capital Lease Obligations, Including Current Maturities, Gross Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt and capital lease obligations including current maturities. Restricted Stock Units (RSUs) [Member] Restricted Stock Units (RSUs) [Member] Restricted Shares Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward] Non-vested restricted shares, beginning balance (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number Granted (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period Vested (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period Canceled/forfeited (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeited in Period Non-vested restricted shares, ending balance (in shares) Per Share Weighted Average Grant Date Fair Value Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract] Non-vested restricted shares, per share weighted average grant date fair value, beginning balance (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value Granted (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value Vested (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value Canceled/forfeited (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value Non-vested restricted shares, per share weighted average grant date fair value, ending balance (in dollars per share) Contingent Consideration by Type [Axis] Contingent Consideration by Type [Axis] Contingent Consideration Type [Domain] Contingent Consideration Type [Domain] Earn-Out Arrangements [Member] Earn-out Arrangements [Member] Additional future payments to sellers of an acquired business, contingent upon the acquired business's future earnings performance. Level 3 [Member] Fair Value, Inputs, Level 3 [Member] Fair Value Measurements, Recurring [Member] Fair Value, Measurements, Recurring [Member] Measurement Basis [Axis] Other Current Liabilities [Member] Other Current Liabilities [Member] Foreign Currency Translation Adjustments [Member] Other Income or Expense [Member] Nonoperating Income (Expense) [Member] Receivable [Member] Receivable [Member] Unclassified receivable amount, not otherwise defined in the taxonomy Reclassification Adjustment [Member] Reclassification Adjustment [Member] Adjustment that relates to a reclassification between financial statement line items. Fair Value, Financial Instruments Measured on a Recurring Basis [Line Items] ASC 805 contingent consideration, fair value Obligations, Fair Value Disclosure Range of potential undiscounted earn-out liabilities, low Business Combination, Contingent Consideration Arrangements, Range of Outcomes, Value, Low Range of potential undiscounted earn-out liabilities, high Business Combination, Contingent Consideration Arrangements, Range of Outcomes, Value, High Additions from new business combinations, ASC 805 contingent consideration Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Purchases Payments of ASC 805 contingent consideration Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Settlements Foreign currency translation gains, other comprehensive income, ASC 805 contingent consideration Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Other Comprehensive Income (Loss) (Increase) reduction in ASC 805 contingent consideration liability, (loss) gain included in earnings Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings Reduction in ASC 805 contingent consideration liability Business Combination, Contingent Consideration Arrangements, Change in Amount of Contingent Consideration, Liability Reduction in receivable, amount Reductions in Other Assets, Amount Components of Deferred Tax Assets and Liabilities [Abstract] Deferred Tax Assets and Liabilities [Table] Deferred Tax Assets And Liabilities [Table] A table or schedule providing information pertaining to deferred tax assets and/or deferred tax liabilities. Deferred Revenue Arrangement Type [Axis] Deferred Revenue Arrangement Type [Axis] Deferred Revenue [Domain] Deferred Revenue [Domain] Long-Term Contracts [Member] Construction Contracts [Member] Gain on Remeasurement of Equity Investee Equity Method Investee [Member] Income Taxes [Line Items] Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Deferred tax assets: Deferred Tax Assets, Gross [Abstract] Accrued insurance Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Self Insurance Operating loss carryforwards and tax credits Deferred Tax Assets, Operating Loss Carryforwards Unrealized gains and losses Deferred Tax Assets, Unrealized Gains And Losses Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from unrealized gains and losses. Compensation and benefits Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits Bad debt Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Allowance for Doubtful Accounts Other Deferred Tax Assets, Other Valuation allowance Deferred Tax Assets, Valuation Allowance Total deferred tax assets Deferred Tax Assets, Net of Valuation Allowance Deferred tax liabilities: Deferred Tax Liabilities, Gross [Abstract] Property and equipment Deferred Tax Liabilities, Property, Plant and Equipment Goodwill Deferred Tax Liabilities, Goodwill Other intangible assets Deferred Tax Liabilities, Intangible Assets Deferred income Deferred Tax Liabilities, Tax Deferred Income Other Deferred Tax Liabilities, Other Total deferred tax liabilities Deferred Tax Liabilities, Gross Net deferred tax liabilities Deferred Income Tax Liabilities, Net Reportable Segments [Member] Operating Segments [Member] Corporate [Member] Corporate, Non-Segment [Member] Depreciation and Amortization: Depreciation, Depletion and Amortization [Abstract] Defined Contribution Plan Name [Axis] Defined Contribution Plan Name [Axis] Defined Contribution Plan Name [Domain] Defined Contribution Plan Name [Domain] 401(k) Plan [Member] 401(K) Plan [member] A 401(k) plan is a defined contribution plan where an employee can make contributions which go into a 401(k) account. In some plans, the employer also makes contributions such as matching the employee’s contributions up to a certain percentage. Defined Contribution Plan Type [Axis] Defined Contribution Plan Type [Axis] Defined Contribution Plan Type [Domain] Other Postretirement Benefit Plan [Member] Other Postretirement Benefit Plan [Member] Contributions up to 3% [Member] Contributions up to 3% [Member] Contributions up to 3%. 100% Match [Member] 100 Percent Match [Member] 100% match Contributions over 3% up to 5% [Member] Contributions over 3% up to 5% [Member] Contributions over 3% up to 5%. 50% Match [Member] 50 Percent Match [Member] 50% match 401(k) Plan Disclosure [Line Items] Defined Contribution Plan Disclosure [Line Items] Stock-based compensation plan, description Description of Defined Contribution Pension and Other Postretirement Plans 401(k) plan, maximum pre-tax annual contribution per employee, percentage of annual compensation Defined Contribution Plan, Maximum Annual Contributions Per Employee, Percent 401(k) plan, employer matching contribution, percentage of matching contribution Defined Contribution Plan, Employer Matching Contribution, Percent of Match 401(k) plan, employer matching contribution, percentage of employee's salary Defined Contribution Plan, Employer Matching Contribution, Percent of Employees' Gross Pay 401(k) plan, discretionary employer matching contribution, percentage of matching contribution payable in shares Employer Matching Contribution Percent of Matching Contribution in Shares Employer matching contribution, percentage of matching contribution in shares. 401(k) plan, discretionary employer matching contribution, percentage of matching contribution payable in cash Employer Matching Contribution, Percent of Matching Contribution in Cash Employer matching contribution, percentage of matching contribution in cash. 401(k) plan, employer matching contribution (in dollars) Defined Contribution Plan, Cost Recognized Shedule of Summarized Financial Information of Equity Investees Equity Method Investments [Table Text Block] Goodwill [Line Items] Goodwill [Line Items] Goodwill, net, beginning balance Accruals of acquisition-related contingent consideration, net Goodwill, Other Increase (Decrease) Currency translation adjustments Goodwill, Foreign Currency Translation Gain (Loss) Measurement period adjustments Goodwill, Purchase Accounting Adjustments Goodwill impairment Goodwill, net, ending balance Goodwill, accumulated impairment loss Goodwill, Impaired, Accumulated Impairment Loss Goodwill, gross Goodwill, Gross Condensed Balance Sheet Statement [Table] Condensed Balance Sheet Statement [Table] Condensed Consolidating Balance Sheets [Line Items] Condensed Balance Sheet Statements, Captions [Line Items] Total current assets Goodwill and other intangible assets, net Investments in and advances to consolidated affiliates, net Due from Affiliate, Noncurrent Total current liabilities Other long-term liabilities Liabilities, Other than Long-term Debt, Noncurrent Total equity Type of Arrangement and Non-arrangement Transactions [Axis] Type of Arrangement and Non-arrangement Transactions [Axis] Arrangements and Non-arrangement Transactions [Domain] Arrangements and Non-arrangement Transactions [Domain] Master Service and Other Service Agreements [Member] Concentration Risk from Type of Arrangement [Member] Product Concentration Risk [Member] Trade Accounts Receivable [Member] Billing Status, Type [Axis] Billing Status, Type [Axis] Receivables Billing Status [Domain] Receivables Billing Status [Domain] Unbilled Revenues [Member] Unbilled Revenues [Member] Change in accounting estimate, percentage of completion projects, financial effect, percentage Change In Accounting Estimate, Percentage Of Completion Projects, Financial Effect, Percentage Disclosure of the percentage effect on project profit (defined as project revenue less project costs of revenue, including depreciation) during the reporting period of changes in contract estimates for projects that were in process as of the end of the prior year. Fixed price contracts, term within which generally completed (in years) Fixed Price Contracts, Term Expected length of time within which a fixed price contract accounted for under the percentage-of-completion method is completed, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Unapproved change orders, description Unapproved Change Orders, Description Unapproved change orders, amount (in dollars) Unbilled Change Orders, Amount Expected to be Collected within One Year Unapproved change orders, contract revenue recognized (in dollars) Contracts Revenue Change order approval process, period (in years) Unapproved Change Orders, Expected Term For Approval Expected length of time within which an unapproved change order is approved by the customer, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Income Tax Disclosure [Abstract] Provision for Income Taxes [Table] Provision For Income Taxes [Table] A summary of the components of an entity's provision for income taxes, including the current and deferred portions. Current: Current Income Tax Expense (Benefit), Continuing Operations [Abstract] Federal Current Federal Tax Expense (Benefit) Foreign Current Foreign Tax Expense (Benefit) State and local Current State and Local Tax Expense (Benefit) Total current income tax expense Current Income Tax Expense (Benefit) Deferred: Deferred Income Tax Expense (Benefit), Continuing Operations [Abstract] Federal Deferred Federal Income Tax Expense (Benefit) Foreign Deferred Foreign Income Tax Expense (Benefit) State and local Deferred State and Local Income Tax Expense (Benefit) Total deferred income tax expense Provision for income taxes Income Tax Expense (Benefit) Stock-Based Compensation and Other Employee Benefit Plans Disclosure of Compensation Related Costs, Share-based Payments [Text Block] Schedule of Revenue by Major Customers, by Reporting Segments [Table] Schedule of Revenue by Major Customers, by Reporting Segments [Table] AT&T (including DIRECTV) [Member] AT&T1 [Member] AT&T, including DIRECTV (business name). Energy Transfer Affiliates [Member] Energy Transfer Affiliates [Member] Energy Transfer affiliates (business name). Revenue, Significant Customer [Line Items] Revenue, Major Customer [Line Items] Significant customers, percentage of total consolidated revenue Land [Member] Land [Member] Building and Leasehold Improvements [Member] Building and Building Improvements [Member] Machinery and Equipment [Member] Office Furniture and Equipment [Member] Furniture and Fixtures [Member] Construction in Progress [Member] Construction in Progress [Member] Property and equipment Property, Plant and Equipment, Gross Less accumulated depreciation and amortization Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment Property and equipment, net Estimated useful lives (in years) Property, Plant and Equipment, Useful Life Schedule of Activity, Restricted Shares Schedule of Share-based Compensation, Restricted Stock and Restricted Stock Units Activity [Table Text Block] Schedule of Activity, Stock Options Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding and Exercisable [Table Text Block] Schedule of Activity, Employee Stock Purchase Plans Schedule of Share-based Compensation, Employee Stock Purchase Plan, Activity [Table Text Block] Schedule of Non-Cash Stock-Based Compensation Expense Schedule of Compensation Cost for Share-based Payment Arrangements, Allocation of Share-based Compensation Costs by Plan [Table Text Block] Capital Expenditures: Segment Reporting Information, Additional Information [Abstract] Capital expenditures Long-term Debt and Capital Lease Obligations, Including Current Maturities [Abstract] Long-term Debt and Capital Lease Obligations, Including Current Maturities [Abstract] Capital Lease Obligations [Member] Capital Lease Obligations [Member] Notes Payable [Member] Notes Payable, Other Payables [Member] Debt [Member] Debt [Member] Adjustments for New Accounting Pronouncements [Axis] Adjustments for New Accounting Pronouncements [Axis] Type of Adoption [Domain] Type of Adoption [Domain] ASU 2015-03 [Member] Accounting Standards Update 2015-03 [Member] Line of credit facility, maturity date Line of Credit Facility, Expiration Date Capital lease obligations, expiration date, range, end Lease Expiration Date Notes payable, maturity date, range, end Debt Instrument, Maturity Date Range, End Capital lease obligations Less unamortized deferred financing costs Total debt, net of deferred financing costs Long-term Debt and Capital Lease Obligations, Including Current Maturities Adoption of new accounting pronouncement, reclassification of deferred financing costs from other assets to debt, amount New Accounting Pronouncement or Change in Accounting Principle, Cumulative Effect of Change on Equity or Net Assets Eliminations [Member] Intersegment Eliminations [Member] Utilities [Member] Utilities [Member] Customers of the business entity whose end-market products or services are in the utilities industry. Revenue: Segment Reporting Information, Revenue for Reportable Segment [Abstract] Revenue (in dollars) Utilities customers, percentage of Communications segment revenue Subsequent Events [Abstract] Subsequent Events Subsequent Events [Text Block] Supplemental Guarantor Financial Information Condensed Financial Statements [Text Block] Income Taxes Income Tax Disclosure [Text Block] Fair Value of Financial Instruments Fair Value Disclosures [Text Block] Statement of Stockholders' Equity [Abstract] Treasury Stock [Member] Contributed Shares [Member] Other Additional Capital [Member] Capital Surplus [Member] Additional Paid-in Capital [Member] Retained Earnings [Member] Retained Earnings [Member] Accumulated Other Comprehensive Loss [Member] AOCI Attributable to Parent [Member] Total MasTec, Inc. Shareholders’ Equity [Member] Parent [Member] Non-Controlling Interests [Member] Noncontrolling Interest [Member] Consolidated Statements of Equity Increase (Decrease) in Stockholders' Equity [Roll Forward] Beginning balance, common shares outstanding (in shares) Common Stock, Shares, Issued Beginning balance Beginning balance, treasury shares (in shares) Treasury Stock, Common, Shares Net income (loss) Other comprehensive income (loss) Non-cash stock-based compensation Adjustments to Additional Paid in Capital, Share-based Compensation, Requisite Service Period Recognition Income tax effect from stock-based compensation Adjustment to Additional Paid in Capital, Income Tax Effect from Share-based Compensation, Net Exercise of stock options (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period Exercise of stock options Stock Issued During Period, Value, Stock Options Exercised Issuance of restricted shares, net (in shares) Stock Issued During Period, Shares, Restricted Stock Award, Net of Forfeitures Issuance of restricted shares, net Stock Issued During Period, Value, Restricted Stock Award, Net of Forfeitures Other stock issuances, net (in shares) Stock Issued During Period, Shares, Other Other stock issuances, net Stock Issued During Period, Value, Other Issuance of treasury stock for convertible notes (in shares) Issuance of treasury stock for convertible notes Stock Issued During Period, Value, Treasury Stock Reissued Conversion of convertible notes Stock Issued During Period, Value, Conversion of Convertible Securities, Net of Adjustments Contributed shares, transfer to capital surplus Stockholders' Equity, Other Other activity, net Adjustments to Additional Paid in Capital, Other Acquisition of treasury stock, at cost (in shares) Treasury Stock, Shares, Acquired Acquisition of treasury stock, at cost Treasury Stock, Value, Acquired, Cost Method Other activity, net Noncontrolling Interests, Other This element represents other increases (decreases) in noncontrolling interests which are not separately disclosed or provided for elsewhere in the taxonomy. Ending balance, common shares outstanding (in shares) Ending balance Ending balance, treasury shares (in shares) Schedule of Deferred Compensation Arrangement with Individuals, Share-based Payments [Table] Schedule of Deferred Compensation Arrangement with Individual, Share-based Payments [Table] Equity Award [Domain] Restricted Shares [Member] Deferred Compensation Arrangement with Individuals, Share-based Payments [Line Items] Deferred Compensation Arrangement with Individual, Share-based Payments [Line Items] Stock-based compensation, options outstanding (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Number Stock-based compensation, vesting period (in years) Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period Stock-based compensation, shares withheld for the exercise prices of options (in shares) Shares Paid for Exercise Price for Share Based Compensation For net-share settlement of share-based awards, this element represents the number of shares withheld for payment of exercise price, and excludes shares paid for tax withholdings. Stock-based compensation, shares withheld for employee tax withholdings (in shares) Shares Paid for Tax Withholding for Share Based Compensation Stock-based compensation, payments for employee tax obligations to taxing authorities (in dollars) Payments Related to Tax Withholding for Share-based Compensation Share-based compensation, purchase price of common stock, percentage Share-based Compensation Arrangement by Share-based Payment Award, Purchase Price of Common Stock, Percent Stock-based compensation, fair value assumptions, method used Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Method Used Stock-based compensation, fair value measurements, significant assumptions Share-based compensation, fair value assumptions, expected dividend yield (percentage) Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Dividend Rate Schedule of Operating Leases [Table] Schedule of Operating Leased Assets [Table] Lease Terms in Excess of One Year [Member] Lease Term In Excess Of One Year [Member] Lease term in excess of one year. Lease Terms of One Year or Less [Member] Lease Term Less Than One Year [Member] Lease term of one year or less. Operating Leases [Line Items] Operating Leased Assets [Line Items] Operating leases, term of contract (in years) Lessee Leasing Arrangements, Operating Leases, Term of Contract Operating leases, rent expense (in dollars) Operating Leases, Rent Expense, Net CCP [Member] Cross Country Pipeline [Member] Cross Country Pipeline Supply, Inc. (business name) Cost Method Investment [Member] Cost-method Investments [Member] Payments for equipment, related party Rebates received, related party Related Party Transaction, Rebates Received From Transactions With Related Party Cash rebates received from a related party, as a result of purchase transactions with the related party (excluding transactions that are eliminated in consolidated or combined financial statements). Operating Loss Carryforwards [Table] Operating Loss Carryforwards [Table] Income Tax Authority [Axis] Income Tax Authority [Axis] Income Tax Authority [Domain] Income Tax Authority [Domain] State [Member] State and Local Jurisdiction [Member] Foreign [Member] Foreign Tax Authority [Member] Federal [Member] Domestic Tax Authority [Member] Tax Period [Axis] Tax Period [Axis] Tax Period [Domain] Tax Period [Domain] Earliest Tax Year [Member] Earliest Tax Year [Member] Latest Tax Year [Member] Latest Tax Year [Member] Income Tax Authority, Name [Axis] Income Tax Authority, Name [Axis] Income Tax Authority, Name [Domain] Income Tax Authority, Name [Domain] Canada [Member] Canada Revenue Agency [Member] Discontinued operations, benefit from income taxes Discontinued Operation, Tax Effect of Discontinued Operation Valuation allowance, methodologies and assumptions Valuation Allowance, Methodologies and Assumptions Net operating loss carryforwards Net operating loss carryforwards, expiration date Operating Loss Carryforwards, Expiration Date Liability for uncertain tax positions, current Liability for Uncertainty in Income Taxes, Current Liability for uncertain tax positions, long-term Liability for Uncertainty in Income Taxes, Noncurrent Cash proceeds (in dollars) Proceeds from Issuance of Shares under Incentive and Share-based Compensation Plans, Excluding Stock Options Common shares issued (in shares) Stock Issued During Period, Shares, Employee Stock Purchase Plans Weighted average price per share (in dollars per share) Share-based Compensation Arrangements by Share-based Payment Award, Options, Exercises in Period, Weighted Average Exercise Price Weighted average per share grant date fair value (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Weighted Average Grant Date Fair Value Accumulated Other Comprehensive Loss Accumulated Other Comprehensive Income (Loss), Net of Tax [Abstract] Schedule of Changes in Accumulated Other Comprehensive Loss Schedule of Accumulated Other Comprehensive Income (Loss) [Table Text Block] Goodwill and Other Intangible Assets Goodwill and Intangible Assets Disclosure [Text Block] Antidilutive Securities [Axis] Antidilutive Securities [Axis] Antidilutive Securities, Name [Domain] Antidilutive Securities, Name [Domain] Common Stock Equivalents Excluded Due To Net Loss [Member] Common Stock Equivalents Excluded Due To Net Loss [Member] The number of weighted average common stock equivalents excluded from the calculation of diluted net loss per share as their effect would have been anti-dilutive. 2009 Convertible Notes [Member] 2009 Senior Convertible Notes [Member] 2009 Senior Convertible Notes 2011 Convertible Notes [Member] 2011 Senior Convertible Notes [Member] 2011 Senior Convertible Notes Debt instrument, convertible, matured and converted (in dollars) Extinguishment of Debt, Amount Weighted average anti-dilutive common stock equivalents (in shares) Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount Debt instrument, weighted average interest rate (percentage) Debt, Weighted Average Interest Rate Subsequent Event [Table] Subsequent Event [Table] Subsequent Event Type [Axis] Subsequent Event Type [Axis] Subsequent Event Type [Domain] Subsequent Event Type [Domain] Subsequent Event [Member] Subsequent Event [Member] Subsequent Event [Line Items] Subsequent Event [Line Items] Line of credit facility, maximum borrowing capacity Line of credit facility, revolving loans sublimit, Canadian dollars or Mexican pesos Line Of Credit, Revolving Loan Sublimit, Canadian Dollars Or Mexican Pesos Sublimit or portion of maximum borrowing capacity available on an existing line of credit in Canadian dollars or Mexican pesos. Line of credit facility, principal amount currently drawn Long-term Line of Credit Line of credit facility, remaining borrowing capacity Line of Credit Facility, Remaining Borrowing Capacity Schedule of Multiemployer Plans [Table] Central Pension Fund of the I.U.O.E and Participating Employers [Member] Central Pension Fund Of IUOE And Participating Employers [Member] Central Pension Fund of the International Union of Operating Engineers and Participating Employers Pipeline Industry Pension Fund [Member] Pipeline Industry Pension Fund [Member] Pipeline Industry Pension Fund Teamsters National Pipe Line Pension Fund [Member] Teamsters National Pipeline Pension Fund [Member] Teamsters National Pipe Line Pension Fund Laborers' National Pension Fund [Member] Laborers National Pension Fund [Member] Laborers National Pension Fund Central Laborers' Pension Fund [Member] Central Laborers' Pension Fund [Member] Central Laborers' Pension Fund National Electrical Benefit Fund [Member] National Electrical Benefit Fund [Member] National Electrical Benefit Fund Minnesota Laborers Pension Fund [Member] Minnesota Laborers Pension Fund [Member] Minnesota Laborers Pension Fund I.B.E.W. Local 1249 Pension Plan [Member] I.B.E.W. Local 1249 Pension Plan [Member] I.B.E.W. Local 1249 Pension Plan Minnesota Teamsters Construction Division Pension Plan [Member] Minnesota Teamsters Construction Division Pension Plan [Member] Minnesota Teamsters Construction Division Pension Plan Local Union No. 9 I.B.E.W. and Outside Contractors Pension Fund [Member] Local Union No. 9 I.B.E.W. and Outside Contractors Pension Fund [Member] Local Union No. 9 I.B.E.W. and Outside Contractors Pension Fund Michigan Laborers' Pension Fund [Member] Michigan Laborers Pension Fund [Member] Michigan Laborers' Pension Fund West Virginia Laborers Pension Trust Fund [Member] West Virginia Laborers Pension Trust Fund [Member] West Virginia Laborers Pension Trust Fund Laborers' District Council of Western Pennsylvania Pension Fund [Member] Laborers District Council Of West Pennsylvania Pension Fund [Member] Laborers' District Council Of Western Pennsylvania Pension Fund Operating Engineers' Local 324 Pension Fund [Member] Operating Engineers Local Three Hundred And Twenty Four Pension Fund [Member] Operating Engineers' Local 324 Pension Fund Other Funds [Member] Multiemployer Plan, Individually Insignificant Multiemployer Plans [Member] Canadian Multiemployer Plans [Member] Canadian Multi-Employer Plans [Member] Multiemployer plans in which the entity participates resulting from the use of union-based resources in Canada. Multiemployer Plans [Line Items] Multiemployer plans, employer identification number Entity Tax Identification Number Multiemployer plans, plan number Multiemployer Plan Number Multiemployer plans, collective bargaining arrangement, expiration date Multiemployer Plans, Collective-Bargaining Arrangement, Expiration Date Multiemployer plans, pension protection act zone status Multiemployer Plans, Certified Zone Status Multiemployer plans, pension protection act zone status, date Multiemployer Plans, Certified Zone Status, Date Multiemployer plans, extended amortization provisions Multiemployer Plans, Certified Zone Status, Extended Amortization Provisions Multiemployer plans, Company contributions greater than 5% of total plan contributions Multiemployer Plans, Period Contributions, Significance of Contributions Multiemployer plans, funding improvement plan and rehabilitation plan status Multiemployer Plans, Funding Improvement Plan and Rehabilitation Plan Multiemployer plans, surcharge status Multiemployer Plans, Surcharge Stock Options [Member] Employee Stock Option [Member] Stock-based compensation awards, stock options, vested (percentage) Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Percentage Stock options exercised, intrinsic value Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period, Intrinsic Value Stock options exercised, proceeds Employee Service Share-based Compensation, Cash Received from Exercise of Stock Options Income Tax Effects: Employee Service Share-based Compensation, Aggregate Disclosures [Abstract] Income tax benefit from non-cash stock-based compensation Employee Service Share-based Compensation, Tax Benefit from Compensation Expense Excess tax benefit from non-cash stock-based compensation EBITDA - Continuing Operations: Segment Reporting Information, Income (Loss) before Income Taxes [Abstract] EBITDA - Continuing operations Deferred Tax Liabilities, Net [Abstract] Current deferred tax assets, net (included within other current assets) Deferred Tax Assets, Net, Current Long-term deferred tax liabilities, net Stock Options Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding [Roll Forward] Options outstanding, vested, beginning balance (in shares) Options exercisable, beginning balance (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Number Exercised (in shares) Canceled/forfeited (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Options, Forfeitures and Expirations in Period Options outstanding, vested, ending balance (in shares) Options exercisable, ending balance (in shares) Per Share Weighted Average Exercise Price Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Exercise Price [Abstract] Options outstanding, vested, per share weighted average exercise price, beginning balance (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Exercise Price Options exercisable, per share weighted average exercise price, beginning balance (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Weighted Average Exercise Price Exercised (in dollars per share) Options outstanding, vested, per share weighted average exercise price, ending balance (in dollars per share) Options exercisable, per share weighted average exercise price, ending balance (in dollars per share) Weighted Average Remaining Contractual Life and Aggregate Intrinsic Value Share-based Compensation Arrangement by Share-based Payment Award, Options, Additional Disclosures [Abstract] Options outstanding, vested, weighted average remaining contractual life (in years) Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Remaining Contractual Term Options outstanding, vested, aggregate intrinsic value (in dollars) Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Intrinsic Value Options exercisable, weighted average remaining contractual life (in years) Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Weighted Average Remaining Contractual Term Options exercisable, aggregate intrinsic value (in dollars) Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Intrinsic Value Schedule of Earnings Per Share Information Schedule of Earnings Per Share, Basic and Diluted [Table Text Block] Pension [Member] Multiemployer plans, general nature Multiemployer Plans, General Nature Multiemployer plans, underfunded status, description Multiemployer Plans, Underfunded Status, Description Assets: Assets Schedule of Multiemployer Pension Plans Schedule of Multiemployer Plans [Table Text Block] Schedule of Covered Employees and Contributions, Multiemployer Plans Schedule of Costs of Retirement Plans [Table Text Block] Property and Equipment, Net Property, Plant and Equipment Disclosure [Text Block] Quarterly Financial Information [Table] Interim Period, Costs Not Allocable [Table] Nature of Expense [Axis] Nature of Expense [Axis] Interim Period, Costs Not Allocable [Domain] Interim Period, Costs Not Allocable [Domain] Audit Committee Investigation [Member] Audit Committee Investigation [Member] Audit Committee investigation related costs. Litigation Status [Axis] Litigation Status [Axis] Litigation Status [Domain] Litigation Status [Domain] Settled Litigation [Member] Settled Litigation [Member] Waha JVs [Member] Waha JVs [Member] Trans-Pecos Pipeline, LLC ("TPP") (business name) and Comanche Trail Pipeline, LLC ("CTP") (business name) and together, referred to as the Waha JVs Derivative Instrument [Axis] Derivative Instrument [Axis] Derivative Contract [Domain] Derivative Contract [Domain] Interest Rate Swap [Member] Interest Rate Swap [Member] Foreign Tax Authority [Member] Alberta [Member] ALBERTA Quarterly Financial Information [Line Items] Interim Period, Costs Not Allocable [Line Items] Restructuring charges Restructuring Charges Goodwill and intangible asset impairment General and administrative expenses General and Administrative Expense Court mandated mediation settlement charge Gain (Loss) Related to Litigation Settlement Recognized unrealized loss, unconsolidated affiliates Income (Loss) from Equity Method Investments Income tax expense, adjustment resulting from tax law change Income Tax Expense (Benefit), Continuing Operations, Adjustment of Deferred Tax (Asset) Liability Schedule of Capital Leased Assets [Table] Schedule of Capital Leased Assets [Table] Capital Leased Assets [Line Items] Capital Leased Assets [Line Items] Assets held under capital lease, gross Capital Leased Assets, Gross Assets held under capital lease, net Capital Leases, Balance Sheet, Assets by Major Class, Net Summarized Financial Information of Equity Investees Equity Method Investment, Summarized Financial Information [Abstract] Current assets Equity Method Investment, Summarized Financial Information, Current Assets Long-term assets Equity Method Investment, Summarized Financial Information, Noncurrent Assets Total assets Equity Method Investment, Summarized Financial Information, Assets Current liabilities Equity Method Investment, Summarized Financial Information, Current Liabilities Long-term liabilities Equity Method Investment, Summarized Financial Information, Noncurrent Liabilities Total liabilities Equity Method Investment, Summarized Financial Information, Liabilities Net losses Equity Method Investment, Summarized Financial Information, Net Income (Loss) Schedule Of Other Intangible Assets [Table] ScheduleOfIntangibleAssets [Table] Schedule of intangible assets, excluding goodwill. Non-Amortizing Intangible Assets [Axis] Non-Amortizing Intangible Assets, Major Class Name [Domain] Trade Names [Member] Trade Names [Member] Amortizing Intangible Assets by Major Class [Axis] Finite-Lived Intangible Assets by Major Class [Axis] Amortizing Intangible Assets, Major Class Name [Domain] Finite-Lived Intangible Assets, Major Class Name [Domain] Customer Relationships and Backlog [Member] Customer-Related Intangible Assets [Member] Other Amortizing Intangible Assets [Member] Other Intangible Assets [Member] Other Intangible Assets [Line Items] Intangible assets [Line Items] Line items for intangible assets, excluding goodwill. Other intangible assets, non-amortizing, carrying amount Other intangible assets, amortizing, gross carrying amount Finite-Lived Intangible Assets, Gross Other intangible assets, gross carrying amount Intangible Assets, Gross (Excluding Goodwill) Accumulated amortization Finite-Lived Intangible Assets, Accumulated Amortization Other Intangible Assets [Roll Forward] Intangible Assets (Excluding Goodwill) [Roll Forward] Rollforward of intangible assets, excluding goodwill. Other intangible assets, non-amortizing, beginning balance Other intangible assets, net, amortizing, beginning balance Finite-Lived Intangible Assets, Net Other intangible assets, net, beginning balance Amortization expense Amortization of Intangible Assets Currency translation adjustments, non-amortizing intangible assets Indefinite-lived Intangible Assets, Foreign Currency Translation Gain (Loss) Currency translation adjustments, amortizing intangible assets Finite Lived Intangible Assets, Foreign Currency Translation Gain (Loss) Currency translation adjustments Intangible Assets, Gross (Excluding Goodwill), Translation Adjustments Amount of increase (decrease) to intangible assets, excluding goodwill, for foreign currency translation adjustments. Intangible asset impairment, non-amortizing intangible assets Intangible assets impairment, amortizing intangible assets Impairment of Intangible Assets, Finite-lived Intangible asset impairment Impairment of Intangible Assets (Excluding Goodwill) Other activity, intangible assets Intangible Assets (Excluding Goodwill), Other Activity Amount of increase (decrease) to intangible assets, excluding goodwill, for other activity or adjustments, which are not otherwise defined in the taxonomy. Other intangible assets, non-amortizing, ending balance Other intangible assets, net, amortizing, ending balance Other intangible assets, net, ending balance Remaining weighted average amortization period (in years) Finite-Lived Intangible Assets, Remaining Amortization Period Condensed Income Statement [Table] Condensed Income Statement [Table] Condensed Consolidating Statements of Operations and Comprehensive Income (Loss) [Line Items] Condensed Income Statements, Captions [Line Items] General and administrative expenses Interest expense (income), net Equity in (earnings) losses of unconsolidated affiliates Other (income) expense, net Nonoperating Income (Expense) Benefit from (provision for) income taxes Net income (loss) from continuing operations Net loss from discontinued operations Equity in income (loss) from subsidiaries, net of tax Income (Loss) from Subsidiaries, Net of Tax Net income (loss) Net income (loss) attributable to non-controlling interests Net Income (Loss) Attributable to Noncontrolling Interest Net income (loss) attributable to MasTec, Inc. Comprehensive income (loss) Comprehensive Income (Loss), Net of Tax, Including Portion Attributable to Noncontrolling Interest Domestic Income (Loss) from Continuing Operations before Income Taxes, Domestic Foreign Income (Loss) from Continuing Operations before Income Taxes, Foreign Debt Long-term Debt [Text Block] Class of Treasury Stock [Table] Class of Treasury Stock [Table] Share Repurchase Program [Axis] Share Repurchase Program [Axis] Share Repurchase Program [Domain] Share Repurchase Program [Domain] 2016 Share Repurchase Program [Member] 2016 Share Repurchase Program [Member] Share repurchase plan authorized by the board of directors in February 2016. 2014 Share Repurchase Program [Member] 2014 Share Repurchase Program [Member] Share repurchase plan authorized by the board of directors in December 2014. Equity, Treasury Stock [Line Items] Equity, Class of Treasury Stock [Line Items] Share repurchase program, amount authorized, value Stock Repurchase Program, Authorized Amount Treasury stock acquired (in shares) Treasury stock acquired, value Share reissuances, treasury stock, value Valuation and Qualifying Accounts [Abstract] Schedule II - Valuation and Qualifying Accounts Schedule of Valuation and Qualifying Accounts Disclosure [Text Block] Amortization of Intangible Assets Segment reporting information, factors used to identify entity's reportable segments Segment Reporting, Factors Used to Identify Entity's Reportable Segments Number of operating segments Number of Operating Segments Segment reporting information, description of products and services Segment Reporting Information, Description of Products and Services Segment reporting, description of all other segments Segment Reporting, Description of All Other Segments Segment reporting, transactions between reportable segments Segment Reporting, Measurement for Transactions Between Reportable Segments Segment reporting, additional information about entity's reportable segments Segment Reporting, Additional Information about Entity's Reportable Segments Accounts Receivable, Net of Allowance Accounts Receivable, Net, Current [Abstract] Contract billings Contract Receivable, Due in Next Twelve Months Retainage Contract Receivable Retainage, Next Twelve Months Cost and earnings in excess of billings Costs in Excess of Billings, Current Accounts receivable, gross Accounts Receivable, Gross, Current Less allowance for doubtful accounts Allowance for Doubtful Accounts Receivable, Current Accounts receivable, net Statement of Comprehensive Income [Abstract] Other comprehensive income (loss): Other Comprehensive Income (Loss), Net of Tax [Abstract] Foreign currency translation gains (losses), net of tax Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax Unrealized gains on equity investee activity, net of tax Other Comprehensive Income (Loss), Unrealized Gain (Loss) on Derivatives Arising During Period, Net of Tax Comprehensive income (loss) Comprehensive income (loss) attributable to non-controlling interests Comprehensive Income (Loss), Net of Tax, Attributable to Noncontrolling Interest Comprehensive income (loss) attributable to MasTec, Inc. Comprehensive Income (Loss), Net of Tax, Attributable to Parent Amortization Expense Finite-Lived Intangible Assets, Amortization Expense, Maturity Schedule [Abstract] Intangible assets, expected future amortization expense, 2017 Finite-Lived Intangible Assets, Amortization Expense, Next Twelve Months Intangible assets, expected future amortization expense, 2018 Finite-Lived Intangible Assets, Amortization Expense, Year Two Intangible assets, expected future amortization expense, 2019 Finite-Lived Intangible Assets, Amortization Expense, Year Three Intangible assets, expected future amortization expense, 2020 Finite-Lived Intangible Assets, Amortization Expense, Year Four Intangible assets, expected future amortization expense, 2021 Finite-Lived Intangible Assets, Amortization Expense, Year Five Intangible assets, expected future amortization expense, thereafter Finite-Lived Intangible Assets, Amortization Expense, after Year Five Intangible assets, expected future amortization expense, total Equity Investee [Member] Joint Venture Which Was Liquidated in 2016 [Member] Joint Venture Which Was Liquidated in 2016 [Member] Joint venture which was liquidated in 2016. Commercial and/or Financial Standby [Member] Interest Rate Swaps [Member] Other Commitments [Axis] Other Commitments [Axis] Other Commitments [Domain] Other Commitments [Domain] Equity Investees, Remaining Amounts Committed [Member] Capital Support Agreement [Member] Cost method investment, original cost Cost Method Investments, Original Cost Equity investee, ownership percentage Equity Method Investment, Ownership Percentage Equity investee, aggregate initial cost Equity Method Investment, Aggregate Cost Number of pipelines to be constructed Number Of Pipelines To Be Constructed Number of pipelines under construction. Unrecognized unrealized fair market value gains, equity investee Other Comprehensive Income (Loss), Unrealized Gain (Loss) on Derivatives Arising During Period, before Tax Unrecognized unrealized fair market value gains, equity investee, net of tax Equity investee, equity and other contributions Payments to Acquire Equity Method Investments Equity investee, net contributions Revenue, related parties Receivables including retainage, net of BIEC, related parties Accounts Receivable, Net Of Billings In Excess Of Costs, Related Parties Amount of receivables, net of billings in excess of costs, arising from transactions with related parties. Receivables are the amounts due from customers or clients, within one year of the balance sheet date (or the normal operating cycle, whichever is longer), for goods or services (including trade receivables) that have been delivered or sold in the normal course of business, reduced to the estimated net realizable fair value by an allowance established by the entity of the amount it deems uncertain of collection. Billings in excess of costs is the liability attributable to (i) billings in excess of costs under the percentage of completion contract accounting method representing the difference between contractually invoiced amounts (billings) and revenue recognized based, for example, on costs incurred to estimated total costs at period end or (ii) contractually invoiced amounts (billings) in excess of costs incurred and accumulated under the completed contract accounting method that are expected to be realized within one year or one operating cycle, whichever is longer, from the reporting date. Aggregate net carrying value, equity investee, other current assets Investments in and Advance to Affiliates, Subsidiaries, Associates, and Joint Ventures Net investment in equity investees, liability Unconsolidated affiliates, outstanding commitments Other Commitment Other equity investee, proceeds related to ongoing liquidation Proceeds from Equity Method Investment, Dividends or Distributions, Return of Capital Valuation and Qualifying Accounts Disclosure [Table] Valuation and Qualifying Accounts Disclosure [Table] Valuation Allowances and Reserves Type [Axis] Valuation Allowances and Reserves Type [Axis] Valuation Allowances and Reserves [Domain] Valuation Allowances and Reserves [Domain] Allowance for Doubtful Accounts [Member] Allowance for Doubtful Accounts [Member] Costs and Earnings in Excess of Billings Allowance [Member] Allowance for Trade Receivables [Member] Inventory Valuation Reserve [Member] Inventory Valuation Reserve [Member] Valuation Allowance for Deferred Tax Assets [Member] Valuation Allowance of Deferred Tax Assets [Member] Valuation and Qualifying Accounts Disclosure [Line Items] Valuation and Qualifying Accounts Disclosure [Line Items] Valuation and Qualifying Accounts [Roll Forward] Movement in Valuation Allowances and Reserves [Roll Forward] Balance at beginning of period Valuation Allowances and Reserves, Balance Charges to cost and expense Valuation Allowances and Reserves, Additions for Charges to Cost and Expense Other additions Valuation Allowances and Reserves, Additions for Charges to Other Accounts (Deductions) Valuation Allowances and Reserves, Deductions Balance at end of period Income Statement [Abstract] Other income, net Provision for income taxes Discontinued operations: Income (Loss) from Discontinued Operations, Net of Tax, Including Portion Attributable to Noncontrolling Interest [Abstract] Net loss from discontinued operations Earnings per share (Note 2): Basic earnings (loss) per share: Earnings Per Share, Basic [Abstract] Continuing operations (in dollars per share) Discontinued operations (in dollars per share) Income (Loss) from Discontinued Operations and Disposal of Discontinued Operations, Net of Tax, Per Basic Share Total basic earnings (loss) per share Earnings Per Share, Basic Basic weighted average common shares outstanding Diluted earnings (loss) per share: Earnings Per Share, Diluted [Abstract] Continuing operations (in dollars per share) Discontinued operations (in dollars per share) Income (Loss) from Discontinued Operations and Disposal of Discontinued Operations, Net of Tax, Per Diluted Share Total diluted earnings (loss) per share Earnings Per Share, Diluted Diluted weighted average common shares outstanding Equity Stockholders' Equity Note Disclosure [Text Block] Restricted Shares [Member] Restricted Stock [Member] Preferred stock, par value (in dollars per share) Preferred Stock, Par or Stated Value Per Share Preferred stock, shares authorized Preferred Stock, Shares Authorized Preferred stock, shares issued Preferred Stock, Shares Issued Preferred stock, shares outstanding Preferred Stock, Shares Outstanding Common stock, par value (in dollars per share) Common Stock, Par or Stated Value Per Share Common stock, shares authorized Common Stock, Shares Authorized Common stock, shares issued Unvested restricted shares (in shares) Treasury stock, shares Schedule of Components of Income (Loss) from Continuing Operations before Income Taxes Schedule of Income before Income Tax, Domestic and Foreign [Table Text Block] Schedule of Provision for Income Taxes Schedule of Components of Income Tax Expense (Benefit) [Table Text Block] Schedule of Deferred Tax Assets and Liabilities Schedule of Deferred Tax Assets and Liabilities [Table Text Block] Schedule of Effective Tax Rate Reconciliation Schedule of Effective Income Tax Rate Reconciliation [Table Text Block] Commitments and Contingencies Commitments Contingencies and Guarantees [Text Block] Schedule of Restructuring and Related Costs [Table] Schedule of Restructuring and Related Costs [Table] Other Expense, Net [Member] Held-for-Sale [Member] Disposal Group, Held-for-sale, Not Discontinued Operations [Member] Restructuring Cost and Reserve [Line Items] Restructuring Cost and Reserve [Line Items] Restructuring reserve, current Restructuring Reserve, Current Condensed Consolidating Statements of Operations and Comprehensive Income (Loss) Condensed Income Statement [Table Text Block] Condensed Consolidating Balance Sheets Condensed Balance Sheet [Table Text Block] Condensed Consolidating Statements of Cash Flows Condensed Cash Flow Statement [Table Text Block] Financial Support [Member] Receivables, related party, unincorporated joint venture Due from Joint Ventures Guarantees issued, related party Project-related financing provided, related party Payments for Advance to Affiliate Additional amounts committed, related party U.S. statutory federal rate applied to pretax income (loss) Effective Income Tax Rate Reconciliation, at Federal Statutory Income Tax Rate, Percent State and local income taxes, net of federal benefit Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Percent Foreign tax rate differential Effective Income Tax Rate Reconciliation, Foreign Income Tax Rate Differential, Percent Non-deductible expenses Effective Income Tax Rate Reconciliation, Nondeductible Expense, Percent Goodwill and intangible assets Effective Income Tax Rate Reconciliation, Nondeductible Expense, Impairment Losses, Percent Change in tax rate Effective Income Tax Rate Reconciliation, Change in Enacted Tax Rate, Percent Domestic production activities deduction Effective Income Tax Rate Reconciliation, Deduction, Qualified Production Activity, Percent Other Effective Income Tax Rate Reconciliation, Other Adjustments, Percent Valuation allowance for deferred tax assets Effective Income Tax Rate Reconciliation, Change in Deferred Tax Assets Valuation Allowance, Percent Effective income tax rate Effective Income Tax Rate Reconciliation, Percent Allowance for Doubtful Accounts [Rollforward] Allowance for Doubtful Accounts Receivable [Roll Forward] Allowance for doubtful accounts at beginning of year Provision for doubtful accounts Provision for Doubtful Accounts Amounts charged against the allowance Allowance for Doubtful Accounts Receivable, Write-offs Allowance for doubtful accounts at end of year Employee Stock Plans [Member] Stock-based compensation awards, unearned compensation (in dollars) Employee Service Share-based Compensation, Nonvested Awards, Compensation Not yet Recognized, Share-based Awards Other than Options Stock-based compensation awards, unearned compensation, weighted average expected recognition period (in years) Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Period for Recognition Stock-based compensation, vested awards, intrinsic value (in dollars) Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period, Fair Value Stock-based compensation, restricted shares, granted (in shares) Stock-based compensation, restricted shares, vested in period (in shares) Schedule of Carrying Values of Debt Schedule of Long-term Debt Instruments [Table Text Block] Schedule of Contractual Maturities of Debt and Capital Lease Obligations Schedule of Maturities of Long-term Debt [Table Text Block] Swing Line Loans [Member] Bridge Loan [Member] Accordion Feature [Member] Additional Funding Agreement Terms [Member] Base Rate Option (i) [Member] Base Rate Option 1 [Member] Base Rate equals the Federal Funds Rate plus 0.5%. Base Rate Option (iii) [Member] Base Rate Option 3 [Member] Base Rate equals the Eurocurrency Rate plus 1.00%. Base Rate Option (ii) [Member] Base Rate Option 2 [Member] Base Rate equals the Bank of America Prime Rate. Performance Standby [Member] Standby Letters of Credit [Member] Variable Rate [Axis] Variable Rate [Axis] Variable Rate [Domain] Variable Rate [Domain] Eurocurrency Rate [Member] Eurocurrency Rate [Member] Interest rate at which a bank borrows funds from other banks in a foreign market. Base Rate [Member] Base Rate [Member] Federal Funds Rate [Member] Federal Funds Purchased [Member] Bank of America Prime Rate [Member] Prime Rate [Member] Permitted Acquisition [Member] Permitted Acquisition [Member] Permitted Acquisition [Member] Line of credit facility, term loan, frequency of payments Line of Credit Facility, Frequency of Payments Line of credit facility, term loan, amount of quarterly principal installment payments Line of Credit Facility, Periodic Payment, Principal Line of credit facility, capacity available for letters of credit Line of Credit Facility, Capacity Available for Specific Purpose Other than for Trade Purchases Line of credit facility, capacity available for letters of credit sublimit, Canadian dollars or Mexican pesos Line Of Credit, Letter Of Credit Sublimit, Canadian Dollars Or Mexican Pesos The portion of the maximum amount of borrowing capacity under a line of credit that is available as of the balance sheet date for letters of credit that is available in Canadian dollars or Mexican pesos. Line of credit facility, swing line loans sublimit Line of Credit, Revolving Loan Sublimit Sublimit or portion of maximum borrowing capacity available on an existing line of credit. Line of credit facility, amount of borrowings denominated in foreign currencies Line Of Credit Facility, Amount Denominated In Foreign Currencies The carrying value as of the balance sheet date of the portion of the revolving credit facility obligation which is denominated in foreign currencies. Line of credit facility, letters of credit issued Line of credit facility, remaining borrowing capacity in Canadian dollars or Mexican pesos Line Of Credit Facility, Remaining Borrowing Capacity In Foreign Currency Amount of borrowing capacity currently available in either Canadian dollars or Mexican pesos that is included in the total amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding). Line of credit facility, unused credit facility commitment fee (percentage) Line of Credit Facility, Unused Capacity, Commitment Fee Percentage Line of credit facility, variable interest rate, margin over base rate (percentage) Debt Instrument, Basis Spread on Variable Rate Line of credit facility, combined subsidiary guarantors percentage of consolidated EBITDA threshold (percentage) Percentage Of Consolidated EBITDA Threshold, Combined Subsidiary Guarantors 1 Ratio of Loan Party EBITDA as of the most recent four quarters to Adjusted Consolidated EBITDA as of the most recent four quarters. Line of credit facility, individual domestic subsidiary guarantors percentage of consolidated EBITDA threshold (percentage) Percentage Of Consolidated EBITDA Threshold, Individual Subsidiary Guarantors 1 Ratio of Loan Party EBITDA as of the most recent four quarters to Adjusted EBITDA as of the most recent four quarters for any domestic subsidiary. Line of credit facility, required consolidated leverage ratio (in multiple) Ratio of Indebtedness to Net Capital Line of credit facility, required consolidated interest coverage ratio (in multiple) Interest Coverage Ratio The ratio which is calculated by dividing earnings before interest and taxes of a period by interest expense of the same period. Line of credit facility, adjusted consolidated leverage ratio, permitted acquisitions amount, minimum threshold Permitted Acquisitions Amount Adjusted Ratio of Indebtedness to Net Capital Minimum threshold amount of consideration for permitted acquisition or series of permitted acquisitions during a fiscal quarter in order to permit a higher consolidated leverage ratio range for such a fiscal quarter and the subsequent two fiscal quarters. Line of credit facility, adjusted consolidated leverage ratio, permitted acquisitions, maximum number of times right may be exercised Number Of Times Right May Be Exercised Number of times during the term of the Credit Facility that the right to permit the consolidated leverage ratio to exceed a specified threshold may be or has been exercised. April 2014 Acquisition [Member] April 2014 Acquisitions [Member] Acquisitions completed during the month ended April 30, 2014. January 2014 Acquisition [Member] January 2014 Acquisitions [Member] Acquisitions completed during the month ended January 31, 2014. Other 2014 Acquisitions [Member] Other 2014 Acquisitions [Member] Other acquisitions completed during the year ended December 31, 2014. Business combinations, aggregate purchase price, as adjusted (in dollars) Business Combination, Aggregate Consideration, As Adjusted Amount of aggregate purchase price for an acquisition, including cash and contingent consideration, as adjusted, as of a specified date. Business, Basis of Presentation and Significant Accounting Policies Organization, Consolidation, Basis of Presentation, Business Description and Accounting Policies [Text Block] Deferred Compensation Plan Highly Compensated Employees [Member] Deferred Compensation Plan Highly Compensated Employees [Member] Deferred compensation plan for highly compensated employees. Deferred compensation plans, description Deferred Compensation Arrangements, Overall, Description Deferred compensation plans, assets Deferred Compensation Plan Assets Deferred compensation plans, liabilities Deferred Compensation Liability, Classified, Noncurrent Schedule of Future Lease Commitments Schedule Of Future Minimum Rental Payments For Operating Leases And Lease Payments For Capital Leases [Table Text Block] Tabular disclosure of future minimum payments required in the aggregate and for each of the five succeeding fiscal years under capital leases and operating leases, including escalation clauses in effect as of the balance sheet date, having initial or remaining non-cancelable lease terms in excess of one year.