XML 105 R89.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Employee Benefit Plans - Additional Information (Details) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 USD ($) union | Dec. 31, 2022 USD ($) | Dec. 31, 2021 USD ($)
Multiemployer Plans, Pension |  |  |
Number of local unions (union) | union | 300 |  |
United States | Profit Sharing and Thrift Employee Benefit Plan | Other Postretirement Benefits Plan |  |  |
Contributions to benefit plans | $ | $ 15.9 | $ 15.7 | $ 17.8

X
- Definition Represents the number of local unions. + References No definition available. + Details
Name: | myrg_NumberOfLocalUnions
Namespace Prefix: | myrg_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cost for defined contribution plan. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 70 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480794/715-70-50-1 + Details
Name: | us-gaap_DefinedContributionPlanCostRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_RetirementPlanTypeAxis=us-gaap_PensionPlansDefinedBenefitMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanSponsorLocationAxis=country_US
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanNameAxis=myrg_ProfitSharingAndThriftEmployeeBenefitPlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanTypeAxis=us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |