XML 104 R83.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Employee Benefit Plans (Details) | 12 Months Ended
--- | ---
Dec. 31, 2023 USD ($) | Dec. 31, 2022 USD ($) | Dec. 31, 2021 USD ($)
Multiemployer Plans [Line Items] |  |  |
Minimum age for employees to contribute catch up contributions under IRS limits | 50 years |  |
Continuous service period required for eligibility of employees to participate under the plan | 3 months |  |
Maximum company match amount of employee contributions matched up to 6% of annual compensation (as a percent) | 50.00% |  |
Maximum percentage of employee's annual compensation for which the company contributes a matching contribution (as a percent) | 6.00% |  |
Vesting period for employer matching contribution | 5 years |  |
Contribution under 401(k) savings plan | $ 3,900,000 | $ 3,000,000 | $ 1,200,000
Multiemployer Plans, Pension | Boilermakers and Pipefitters Plans |  |  |
Multiemployer Plans [Line Items] |  |  |
Contributions to multi-employer defined benefit plan | $ 0 | $ 0 |
Multiemployer Plans, Pension | Boilermakers and Pipefitters Plans | Minimum |  |  |
Multiemployer Plans [Line Items] |  |  |
Multiemployer plan funded status percentage | 0.80 |  |

X
- Definition Represents the continuous service period required for eligibility of employees to participate under the plan. + References No definition available. + Details
Name: | mg_DefinedContributionPlanContinuousServicePeriodAfterWhichEmployeesBecomeEligibleToParticipateUnderPlan
Namespace Prefix: | mg_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Represents the vesting period for employer matching contribution under the plan. + References No definition available. + Details
Name: | mg_DefinedContributionPlanEmployersMatchingContributionAnnualVestingPeriod
Namespace Prefix: | mg_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Represents the minimum age for employees to contribute catch up contributions under IRS limits. + References No definition available. + Details
Name: | mg_DefinedContributionPlanMinimumAgeForEmployeesToContributeCatchUpContributionsUnderInternalRevenueServicesLimits
Namespace Prefix: | mg_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Multiemployer Plan, Pension, Significant, Funded Status, Percentage + References No definition available. + Details
Name: | mg_MultiemployerPlanPensionSignificantFundedStatusPercentage
Namespace Prefix: | mg_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

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
- Definition Percentage of employees' gross pay for which the employer contributes a matching contribution to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage employer matches of the employee's percentage contribution matched. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cost for employer contribution to multiemployer pension plan determined to be individually significant. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 55 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480547/715-80-55-8 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (e)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-5 + Details
Name: | us-gaap_MultiemployerPlanPensionSignificantEmployerContributionCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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 Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 55 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480547/715-80-55-8 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-6 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-6 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-11 Reference 5: http://www.xbrl.org/2003/role/exampleRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-11 Reference 6: http://www.xbrl.org/2003/role/exampleRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-11 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 35 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480606/715-80-35-1 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-11 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-5 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-5 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-5 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-5 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (e)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-5 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (e)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-5 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (f)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-5 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (f)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-5 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (f)(3) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-5 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 9 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-9 Reference 19: http://www.xbrl.org/2003/role/exampleRef -Topic 715 -SubTopic 80 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480576/715-80-50-6 + Details
Name: | us-gaap_MultiemployerPlansLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
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_RetirementPlanNameAxis=mg_BoilermakersandPipefittersPlansMember
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: |