XML 125 R87.htm IDEA: XBRL DOCUMENT
v3.22.4

Leases - Other Information Related to Leases (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
Cash paid for amounts included in the measurement of lease liabilities for finance and operating leases (in thousands): |  |  |
Finance - financing cash flows | $ 4,140 | $ 4,060 | $ 4,095
Finance - operating cash flows | 624 | 721 |
Operating - operating cash flows | 12,502 | 13,098 |
ROU assets obtained in the exchange for lease liabilities: |  |  |
Finance leases | 5,076 | 2,923 |
Operating leases | $ 6,067 | $ 7,021 |
Weighted-average remaining lease term (in years): |  |  |
Finance leases | 5 years 1 month 6 days | 5 years 4 months 24 days |
Operating leases | 4 years 8 months 12 days | 5 years 3 months 18 days |
Weighted-average discount rate: |  |  |
Finance leases | 5.50% | 5.30% |
Operating leases | 5.60% | 5.70% |

X
- Definition Cash Flow, Lessee + References No definition available. + Details
Name: | mg_CashFlowLesseeAbstract
Namespace Prefix: | mg_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Right-Of-Use Asset Obtained In Exchange For Lease Liability + References No definition available. + Details
Name: | mg_RightOfUseAssetObtainedInExchangeForLeaseLiabilityAbstract
Namespace Prefix: | mg_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Weighted Average Discount Rate, Percent + References No definition available. + Details
Name: | mg_WeightedAverageDiscountRatePercentAbstract
Namespace Prefix: | mg_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Weighted Average Remaining Lease Term + References No definition available. + Details
Name: | mg_WeightedAverageRemainingLeaseTermAbstract
Namespace Prefix: | mg_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of interest paid on finance lease liability. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (g)(1) -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 45 -Paragraph 5 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=123391704&loc=SL77918643-209977 + Details
Name: | us-gaap_FinanceLeaseInterestPaymentOnLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of cash outflow for principal payment on finance lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 45 -Paragraph 5 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=123391704&loc=SL77918643-209977 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (g)(1) -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 + Details
Name: | us-gaap_FinanceLeasePrincipalPayments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Weighted average discount rate for finance lease calculated at point in time. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (g)(4) -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 55 -Paragraph 53 -URI https://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971 + Details
Name: | us-gaap_FinanceLeaseWeightedAverageDiscountRatePercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Weighted average remaining lease term for finance lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (g)(3) -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 55 -Paragraph 53 -URI https://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971 + Details
Name: | us-gaap_FinanceLeaseWeightedAverageRemainingLeaseTerm1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 45 -Paragraph 5 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=123391704&loc=SL77918643-209977 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (g)(1) -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 + Details
Name: | us-gaap_OperatingLeasePayments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Weighted average discount rate for operating lease calculated at point in time. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (g)(4) -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 55 -Paragraph 53 -URI https://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971 + Details
Name: | us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 55 -Paragraph 53 -URI https://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (g)(3) -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 + Details
Name: | us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of increase in right-of-use asset obtained in exchange for finance lease liability. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 55 -Paragraph 53 -URI https://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (g)(2) -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 + Details
Name: | us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of increase in right-of-use asset obtained in exchange for operating lease liability. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 55 -Paragraph 53 -URI https://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (g)(2) -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 + Details
Name: | us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration