XML 66 R57.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Long-Term Debt - Narrative (Details) |  | 9 Months Ended | 12 Months Ended |
--- | --- | --- | --- | ---
Aug. 01, 2022 USD ($) | Sep. 30, 2022 USD ($) | Sep. 30, 2021 USD ($) | Dec. 31, 2021 USD ($) | May 19, 2021 USD ($)
Debt Instrument [Line Items] |  |  |  |  |
Debt outstanding |  | $ 201,212,000 |  | $ 202,565,000 |
Finance costs incurred |  | 148,000 | $ 550,000 |  |
Line of Credit | Senior credit facility |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Maximum borrowing capacity |  |  |  |  | $ 150,000,000
Line of Credit | JP Morgan Chase Bank Credit Agreement |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Consolidated debt ratio (less than) | 1.25 |  |  |  |
Consolidated debt ratio (greater than) | 3.75 |  |  |  |
Fixed charge coverage ratio | 1.25 |  |  |  |
Days written notice required | 5 days |  |  |  |
Business acquisition amount, threshold for notice | $ 10,000,000 |  |  |  |
Line of Credit | JP Morgan Chase Bank Credit Agreement | Senior credit facility |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Maximum borrowing capacity | $ 190,000,000 |  |  |  |
Term of credit facility | 5 years |  |  |  |
Maximum borrowing capacity in non-U.S. Dollar currencies | $ 100,000,000 |  |  |  |
Line of Credit | JP Morgan Chase Bank Credit Agreement | Secured Debt |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Term loan | 125,000,000 |  |  |  | $ 100,000,000
Line of Credit | JP Morgan Chase Bank Credit Agreement | Letter of Credit |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Maximum amount available for the issuance of letters of credit | $ 20,000,000 |  |  |  |
Line of Credit | JP Morgan Chase Bank Credit Agreement | Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate | Minimum | Variable Rate Component |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Interest rate | 1.25% |  |  |  |
Line of Credit | JP Morgan Chase Bank Credit Agreement | Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate | Maximum | Variable Rate Component |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Interest rate | 2.75% |  |  |  |
Line of Credit | JP Morgan Chase Bank Credit Agreement | Through June 30, 2023 |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Total consolidated debt leverage ratio (no more than) | 4.0 |  |  |  |
Line of Credit | JP Morgan Chase Bank Credit Agreement | Remainder of term |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Total consolidated debt leverage ratio (no more than) | 3.75 |  |  |  |
Line of Credit | JP Morgan Chase Bank Credit Agreement | Through June 30, 2024 |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Debt periodic payments | $ 1,560,000 |  |  |  |
Line of Credit | JP Morgan Chase Bank Credit Agreement | July 1, 2024 - June 30, 2025 |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Debt periodic payments | 2,340,000 |  |  |  |
Line of Credit | JP Morgan Chase Bank Credit Agreement | After June 30, 2025 |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Debt periodic payments | $ 3,120,000 |  |  |  |
Senior credit facility |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Debt outstanding |  | 73,750,000 |  | 119,500,000 |
Outstanding borrowings |  | 196,700,000 |  |  |
Outstanding letters of credit |  | 3,000,000 |  |  |
Capitalized costs associated with debt modifications |  | 1,400,000 |  |  |
Senior credit facility | Senior Secured Term Loan A Facility |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Debt outstanding |  | 122,936,000 |  | 76,673,000 |
Senior credit facility | JP Morgan Chase Bank Credit Agreement |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Debt outstanding |  | 122,900,000 |  |  |
Senior credit facility | Credit Agreement |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Capitalized unamortized issuance cost |  |  |  | 800,000 |
Finance costs incurred |  |  |  | 1,600,000 |
Expensed finance costs |  |  |  | 200,000 |
Other |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Debt outstanding |  | 4,526,000 |  | $ 6,392,000 |
Other | Minimum |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Debt periodic payments |  | $ 1,000 |  |  |
Interest rate |  | 0.40% |  |  |
Other | Maximum |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |
Debt periodic payments |  | $ 15,000 |  |  |
Interest rate |  | 3.50% |  |  |

X
- Definition Debt Instrument, Covenant Compliance, Total Consolidated Debt Leverage Ratio + References No definition available. + Details
Name: | mg_DebtInstrumentCovenantComplianceTotalConsolidatedDebtLeverageRatio
Namespace Prefix: | mg_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Covenant, Consolidated Debt Leverage Ratio, Lowest Available Margin Applicable + References No definition available. + Details
Name: | mg_DebtInstrumentCovenantConsolidatedDebtLeverageRatioLowestAvailableMarginApplicable
Namespace Prefix: | mg_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- Definition Debt Instrument, Covenant, Consolidated Debt Leverage Ratio, Maximum Margin Applicable, If Greater Than + References No definition available. + Details
Name: | mg_DebtInstrumentCovenantConsolidatedDebtLeverageRatioMaximumMarginApplicableIfGreaterThan
Namespace Prefix: | mg_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- Definition Debt Instrument, Covenant, Fixed Charge Coverage Ratio + References No definition available. + Details
Name: | mg_DebtInstrumentCovenantFixedChargeCoverageRatio
Namespace Prefix: | mg_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Covenant, Number Of Days Before Business Acquisition, Written Notice Required + References No definition available. + Details
Name: | mg_DebtInstrumentCovenantNumberOfDaysBeforeBusinessAcquisitionWrittenNoticeRequired
Namespace Prefix: | mg_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Definition Debt Instrument, Covenant, Threshold Business Acquisition, Minimum Amount + References No definition available. + Details
Name: | mg_DebtInstrumentCovenantThresholdBusinessAcquisitionMinimumAmount
Namespace Prefix: | mg_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Represents the maximum amount of borrowing capacity under the revolving credit facility that is available for the issuance of letters of credit. + References No definition available. + Details
Name: | mg_LineOfCreditFacilityMaximumBorrowingCapacityAvailableForIssuanceOfLettersOfCredit
Namespace Prefix: | mg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Represents the maximum borrowing capacity in non-U.S. dollar currencies under the revolving credit facility. + References No definition available. + Details
Name: | mg_LineOfCreditFacilityMaximumBorrowingCapacityInNonUSCurrencies
Namespace Prefix: | mg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of amortization expense attributable to debt issuance costs. + 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 (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(8)) -URI https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 1F -Subparagraph (b)(2) -URI https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=124435984&loc=d3e28555-108399 + Details
Name: | us-gaap_AmortizationOfFinancingCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Face (par) amount of debt instrument at time of issuance. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 1B -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI https://asc.fasb.org/extlink&oid=124435984&loc=d3e28551-108399 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI https://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 50 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124429444&loc=SL124452920-239629 Reference 5: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 55 -Paragraph 69C -URI https://asc.fasb.org/extlink&oid=123466577&loc=SL123495737-112612 Reference 6: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 55 -Paragraph 69B -URI https://asc.fasb.org/extlink&oid=123466577&loc=SL123495735-112612 + Details
Name: | us-gaap_DebtInstrumentFaceAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 1B -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

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_DebtInstrumentLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of the required periodic payments including both interest and principal payments. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentPeriodicPayment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Period of time between issuance and maturity of debt instrument, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentTerm
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The total amount of the contingent obligation under letters of credit outstanding as of the reporting date. + References No definition available. + Details
Name: | us-gaap_LettersOfCreditOutstandingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(16)) -URI https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910 + Details
Name: | us-gaap_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, excluding unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b)(3) -URI https://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 55 -Paragraph 69C -URI https://asc.fasb.org/extlink&oid=123466577&loc=SL123495737-112612 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)) -URI https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 55 -Paragraph 69B -URI https://asc.fasb.org/extlink&oid=123466577&loc=SL123495735-112612 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 1D -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The cash outflow paid to third parties in connection with debt origination, which will be amortized over the remaining maturity period of the associated long-term debt. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (e) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsOfDebtIssuanceCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The remaining balance of debt issuance expenses that were capitalized and are being amortized against income over the lives of the respective bond issues. This does not include the amounts capitalized as part of the cost of the utility plant or asset. + References No definition available. + Details
Name: | us-gaap_UnamortizedDebtIssuanceExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Write-off of amounts previously capitalized as debt issuance cost in an extinguishment of debt. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.8) -URI https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227 + Details
Name: | us-gaap_WriteOffOfDeferredDebtIssuanceCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_LineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=mg_TheCreditAgreementJPMorganChaseBankMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_SecuredDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_LetterOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember
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: | mg_VariableRateComponentAxis=mg_VariableRateComponentMember
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: | mg_DebtCovenantPeriodAxis=mg_DebtCovenantPeriodOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | mg_DebtCovenantPeriodAxis=mg_DebtCovenantPeriodTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | mg_DebtCovenantPeriodAxis=mg_DebtCovenantPeriodThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | mg_DebtCovenantPeriodAxis=mg_DebtCovenantPeriodFourMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | mg_DebtCovenantPeriodAxis=mg_DebtCovenantPeriodFiveMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=mg_TermALoanFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=mg_CreditAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=mg_OtherLongTermDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |