XML 100 R85.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Employee Benefit Plans (Details) | 12 Months Ended
--- | ---
Dec. 31, 2021 USD ($) | Dec. 31, 2020 USD ($) | Dec. 31, 2019 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) | 4.00% |  |
Vesting period for employer matching contribution | 5 years |  |
Contribution under 401(k) savings plan | $ 1,200,000 | $ 1,100,000 | $ 4,100,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.70 |  |

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 -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 70 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=49170846&loc=d3e28014-114942 + 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/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 80 -Section 50 -Paragraph 5 -Subparagraph (e)(1) -URI http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 80 -Section 55 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=35742348&loc=SL14450788-114948 + 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 No definition available. + 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: |