XML 51 R39.htm IDEA: XBRL DOCUMENT
v3.22.2

Acquisitions, Goodwill, and Other Intangible Assets - 2022 and 2021 Acquisitions - Narrative (Details) $ in Thousands | 1 Months Ended | 3 Months Ended | 6 Months Ended | 12 Months Ended
--- | --- | --- | --- | ---
May 31, 2022 USD ($) shares | Dec. 31, 2021 USD ($) yr shares | Jun. 30, 2022 USD ($) | Mar. 31, 2022 USD ($) | Jun. 30, 2021 USD ($) | Jun. 30, 2022 USD ($) acquisition shares | Jun. 30, 2021 USD ($) | Dec. 31, 2021 USD ($) yr acquisition shares
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Cash paid for acquisitions, net of cash acquired |  |  |  |  |  | $ 44,908 | $ 589,055 |
Goodwill |  | $ 1,520,575 | $ 1,484,600 |  |  | 1,484,600 |  | $ 1,520,575
Fair value adjustment related to resolved contingent payments |  |  | (1,025) |  | $ 0 | (1,025) | $ 0 |
Oil and Gas |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Goodwill |  | 436,600 | 447,100 |  |  | 447,100 |  | 436,600
Power Delivery |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Goodwill |  | 303,400 | 264,500 |  |  | $ 264,500 |  | $ 303,400
2022 Acquisitions |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Business combinations, number of acquisitions | acquisition |  |  |  |  |  | 2 |  |
Cash paid for acquisitions, net of cash acquired |  |  |  |  |  | $ 15,800 |  |
Estimated fair value of contingent consideration |  |  | 1,800 |  |  | 1,800 |  |
2021 Acquisitions |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Business combinations, number of acquisitions | acquisition |  |  |  |  |  |  |  | 14
Cash paid for acquisitions, net of cash acquired |  |  |  |  |  |  |  | $ 1,269,700
Estimated fair value of contingent consideration |  | 103,000 |  |  |  |  |  | 103,000
Amortizing intangible assets |  | 608,800 |  |  |  |  |  | 608,800
Goodwill |  | $ 234,500 |  |  |  |  |  | 234,500
Business acquisition, goodwill, expected tax deductible amount |  |  | 149,000 |  |  | 149,000 |  |
Bargain purchase gain |  |  |  |  |  |  |  | 3,600
Total consideration |  |  |  |  |  |  |  | 1,554,300
Shares transferred |  |  |  |  |  |  |  | 181,700
Acquisition-related contingent consideration liabilities, range of potential undiscounted earn-out liabilities, low |  |  | 4,000 |  |  | 4,000 |  |
Acquisition-related contingent consideration liabilities, range of potential undiscounted earn-out liabilities, high |  |  | 120,000 |  |  | 120,000 |  |
2021 Acquisitions | Power Delivery |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Bargain purchase gain |  |  |  |  |  | 200 |  | $ 3,600
2021 Acquisitions | Minimum | Expected Term |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Business combinations, contingent consideration, earn-out period (in years) | yr |  | 1 |  |  |  |  |  | 1
2021 Acquisitions | Maximum | Expected Term |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Business combinations, contingent consideration, earn-out period (in years) | yr |  | 5 |  |  |  |  |  | 5
HMG |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Cash paid for acquisitions, net of cash acquired |  |  |  |  |  |  |  | $ 402,400
Amortizing intangible assets |  | $ 164,600 |  |  |  |  |  | $ 164,600
Amortizing intangible assets, weighted average useful life |  |  |  |  |  |  |  | 11 years
Goodwill |  | $ 68,300 |  |  |  |  |  | $ 68,300
Bargain purchase gain |  |  |  |  |  |  |  | 0
Total consideration |  |  |  |  |  |  |  | $ 584,100
Business acquisition, number of shares issued (in shares) | shares | 133,000 | 1,975,000 |  |  |  |  |  | 2,000,000
Shares transferred |  |  |  |  |  |  |  | $ 181,700
HMG | Contingent Consideration, Value Of Common Stock |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Estimated fair value of contingent consideration |  | $ 65,000 | 32,000 |  |  | $ 32,000 |  | 65,000
Total consideration | $ 29,400 |  |  |  |  |  |  |
Business acquisition, cash payment | $ 18,000 |  |  |  |  |  |  |
Business acquisition, number of shares issued (in shares) | shares | 133,157 |  |  |  |  | 160,000 |  |
Fair value adjustment related to resolved contingent payments |  |  | 15,000 |  |  |  |  |
Realized gain (loss) included in other income |  |  | 1,000 |  |  | $ 1,000 |  |
Unrealized gain (loss) included in other income |  |  | $ 3,200 |  |  | $ 3,200 |  |
HMG | Customer Relationships |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Amortizing intangible assets |  | 132,000 |  |  |  |  |  | $ 132,000
Amortizing intangible assets, weighted average useful life |  |  |  |  |  |  |  | 12 years
All other |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Cash paid for acquisitions, net of cash acquired |  |  |  |  |  |  |  | $ 867,300
Amortizing intangible assets |  | 444,200 |  |  |  |  |  | $ 444,200
Amortizing intangible assets, weighted average useful life |  |  |  |  |  |  |  | 17 years
Goodwill |  | $ 166,200 |  |  |  |  |  | $ 166,200
Bargain purchase gain |  |  |  |  |  |  |  | 3,600
Total consideration |  |  |  |  |  |  |  | 970,200
Shares transferred |  |  |  |  |  |  |  | 0
All other | Power Delivery |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Cash paid for acquisitions, net of cash acquired |  |  |  |  |  |  |  | $ 78,000
All other | Minimum | Expected Term | Power Delivery |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Business combinations, contingent consideration, earn-out period (in years) | yr |  | 1 |  |  |  |  |  | 1
All other | Customer Relationships |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Amortizing intangible assets, weighted average useful life |  |  |  |  |  |  |  | 17 years
INTREN |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Total consideration |  |  |  | $ 455,000 |  |  |  |
INTREN | Power Delivery |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Goodwill |  | $ 49,000 |  |  |  |  |  | $ 49,000
INTREN | Customer Relationships And Trade Names | Power Delivery |  |  |  |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |  |  |  |
Amortizing intangible assets |  | $ 284,000 |  |  |  |  |  | $ 284,000
Amortizing intangible assets, weighted average useful life |  |  |  |  |  |  |  | 20 years

X
- Definition Business Combinations, Contingent Consideration, Realized Gain (Loss) + References No definition available. + Details
Name: | mtz_BusinessCombinationsContingentConsiderationRealizedGainLoss
Namespace Prefix: | mtz_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Business Combinations, Contingent Consideration, Unrealized Gain (Loss) + References No definition available. + Details
Name: | mtz_BusinessCombinationsContingentConsiderationUnrealizedGainLoss
Namespace Prefix: | mtz_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Weighted average amortization period of finite-lived intangible assets acquired either individually or as part of a group of assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (a)(3) -URI https://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275 + Details
Name: | us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares of equity interests issued or issuable to acquire entity. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b)(4) -URI https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479 + Details
Name: | us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition 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. + References No definition available. + Details
Name: | us-gaap_BusinessAcquisitionLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of goodwill arising from a business combination that is expected to be deductible for tax purposes. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (d) -URI https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479 + Details
Name: | us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition In a business combination in which the amount of net identifiable assets acquired and liabilities assumed exceeds the aggregate consideration transferred or to be transferred (as defined), this element represents the amount of gain recognized by the entity. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 6 -URI https://asc.fasb.org/extlink&oid=126966197&loc=d3e6571-128477 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (f)(1) -URI https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 25 -Paragraph 2 -URI https://asc.fasb.org/extlink&oid=6911189&loc=d3e6387-128476 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 25 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=6911189&loc=d3e6396-128476 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=126966197&loc=d3e6527-128477 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 25 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=6911189&loc=d3e6393-128476 + Details
Name: | us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of consideration transferred, consisting of acquisition-date fair value of assets transferred by the acquirer, liabilities incurred by the acquirer, and equity interest issued by the acquirer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 8 -URI https://asc.fasb.org/extlink&oid=126966197&loc=d3e6613-128477 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 7 -URI https://asc.fasb.org/extlink&oid=126966197&loc=d3e6578-128477 + Details
Name: | us-gaap_BusinessCombinationConsiderationTransferred1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of equity interests of the acquirer, including instruments or interests issued or issuable in consideration for the business combination. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 8 -URI https://asc.fasb.org/extlink&oid=126966197&loc=d3e6613-128477 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 7 -URI https://asc.fasb.org/extlink&oid=126966197&loc=d3e6578-128477 + Details
Name: | us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of increase (decrease) in the value of a contingent consideration liability, including, but not limited to, differences arising upon settlement. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 4 -Subparagraph (a)(1) -URI https://asc.fasb.org/extlink&oid=126975305&loc=d3e7008-128479 + Details
Name: | us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition For contingent consideration arrangements recognized in connection with a business combination, this element represents an estimate of the high-end of the potential range (undiscounted) of the consideration which may be paid. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (c)(3) -URI https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479 + Details
Name: | us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition For contingent consideration arrangements and indemnification assets recognized in connection with a business combination, this element represents an estimate of the low-end of the potential range (undiscounted) of the consideration which may be paid. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (c)(3) -URI https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479 + Details
Name: | us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueLow
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of liability recognized arising from contingent consideration in a business combination. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (c)(1) -URI https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 35 -Paragraph 1 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126966325&loc=d3e6819-128478 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 25 -Paragraph 6 -URI https://asc.fasb.org/extlink&oid=6911189&loc=d3e6408-128476 + Details
Name: | us-gaap_BusinessCombinationContingentConsiderationLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Value of input used to measure contingent consideration liability from business combination. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (bbb)(2) -URI https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258 + Details
Name: | us-gaap_BusinessCombinationContingentConsiderationLiabilityMeasurementInput
Namespace Prefix: | us-gaap_
Data Type: | xbrli:decimalItemType
Balance Type: | na
Period Type: | instant

X
- Definition The amount of identifiable intangible assets recognized as of the acquisition date. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 55 -Paragraph 37 -URI https://asc.fasb.org/extlink&oid=123455525&loc=d3e2207-128464 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=128092470&loc=d3e4845-128472 + Details
Name: | us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount after accumulated impairment loss of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(10)(1)) -URI https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (h) -URI https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 55 -Paragraph 24 -URI https://asc.fasb.org/extlink&oid=122137925&loc=d3e14258-109268 Reference 5: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 852 -SubTopic 10 -Section 55 -Paragraph 10 -URI https://asc.fasb.org/extlink&oid=84165509&loc=d3e56426-112766 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=99380562&loc=d3e13770-109266 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(15)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_Goodwill
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The number of businesses acquired by the entity during the period. + References No definition available. + Details
Name: | us-gaap_NumberOfBusinessesAcquired
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash outflow associated with the acquisition of business during the period. The cash portion only of the acquisition price. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b)(1) -URI https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585 + Details
Name: | us-gaap_PaymentsToAcquireBusinessesGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow associated with the acquisition of a business, net of the cash acquired from the purchase. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585 + Details
Name: | us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=mtz_OilAndGasSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=mtz_PowerDeliverySegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=mtz_A2022AcquisitionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=mtz_A2021AcquisitionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_MeasurementInputTypeAxis=us-gaap_MeasurementInputExpectedTermMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=mtz_A2021AcquisitionsHenkelsMcCoyGroupIncMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ContingentConsiderationByTypeAxis=mtz_ContingentConsiderationValueOfCommonStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis=us-gaap_CustomerRelationshipsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=mtz_A2021AcquisitionsAllOtherMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=mtz_A2021AcquisitionsAllOtherINTRENMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis=mtz_CustomerRelationshipsAndTradeNamesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |