XML 67 R57.htm IDEA: XBRL DOCUMENT
v3.25.2

Accrued Expenses and Other Current Liabilities (Details) - USD ($) $ in Thousands | Jun. 30, 2025 | Dec. 31, 2024
--- | --- | ---
Payables and Accruals [Abstract] |  |
Accrued salaries, wages and related employee benefits | $ 30,820 | $ 27,990
Accrued workers’ compensation and health benefits | 3,548 | 4,898
Deferred revenue | 9,811 | 8,096
Pension accrual | 2,480 | 2,458
Right-of-use liability - Operating | 11,237 | 11,375
Other accrued expenses | 32,586 | 30,416
Total | $ 90,482 | $ 85,233

X
- Definition Accrued Expenses And Other Liabilities, Current + References No definition available. + Details
Name: | mg_AccruedExpensesAndOtherLiabilitiesCurrent
Namespace Prefix: | mg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Carrying value as of the balance sheet date of the obligations incurred through that date and payable for salaries, wages, and related employee benefit. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle, if longer). + References No definition available. + Details
Name: | mg_AccruedSalariesWagesAndEmployeeRelatedBenefitsCurrent
Namespace Prefix: | mg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Carrying value as of the balance sheet date of obligations and payables pertaining to workers compensation and health benefits. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle, if longer). + References No definition available. + Details
Name: | mg_AccruedWorkersCompensationAndHealthBenefitsCurrent
Namespace Prefix: | mg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of obligation to transfer good or service to customer for which consideration has been received or is receivable, classified as current. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479806/606-10-50-11 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479837/606-10-45-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 8 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479806/606-10-50-8 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479837/606-10-45-2 + Details
Name: | us-gaap_ContractWithCustomerLiabilityCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of the obligation recognized by withdrawing from a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers. + References No definition available. + Details
Name: | us-gaap_MultiemployerPlansWithdrawalObligation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Present value of lessee's discounted obligation for lease payments from operating lease, classified as current. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479041/842-20-45-1 + Details
Name: | us-gaap_OperatingLeaseLiabilityCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of expenses incurred but not yet paid classified as other, due within one year or the normal operating cycle, if longer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(20)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_OtherAccruedLiabilitiesCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_PayablesAndAccrualsAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration