XML 78 R63.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Accrued Expenses and Other Current Liabilities (Details) - USD ($) $ in Thousands | Dec. 31, 2021 | Dec. 31, 2020
--- | --- | ---
Payables and Accruals [Abstract] |  |
Accrued salaries, wages and related employee benefits | $ 33,816 | $ 30,214
Contingent consideration | 1,830 | 1,300
Accrued workers' compensation and health benefits | 3,994 | 3,948
Deferred revenues | 6,202 | 6,538
Right-of-use liability - Operating | 10,040 | 10,348
Pension accrual | 2,519 | 2,519
Other accrued expenses | 25,462 | 23,633
Total accrued expenses and other current liabilities | $ 83,863 | $ 78,500

X
- Definition Carrying value as of the balance sheet date of obligations incurred and payable, pertaining to costs that are statutory in nature, are incurred on contractual obligations, or accumulate over time and for which invoices have not yet been received or will not be rendered. Examples include taxes, interest, rent and utilities. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer). Also includes the fair value of contingent consideration liabilities and the carrying amount of consideration received or receivable as of the balance sheet date on potential earnings that were not recognized as revenue in conformity with GAAP, and which are expected to be recognized as such within one year or the normal operating cycle, if longer, including sales, license fees, and royalties, but excluding interest income. + References No definition available. + Details
Name: | mg_AccruedLiabilitiesDeferredRevenuesAndContingentConsiderationLiabilitiesCurrent
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 liability recognized arising from contingent consideration in a business combination, expected to be settled within one year or the normal operating cycle, if longer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 25 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=6911189&loc=d3e6408-128476 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 35 -Paragraph 1 -Subparagraph b -URI http://asc.fasb.org/extlink&oid=116859824&loc=d3e6819-128478 + Details
Name: | us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent
Namespace Prefix: | us-gaap_
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 -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=123360276&loc=SL49130531-203044 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=123360276&loc=SL49130532-203044 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 8 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=123351226&loc=SL49130549-203045 + 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 -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 45 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977 + 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 -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.20) -URI http://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 210 -SubTopic 10 -Section 45 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=124098289&loc=d3e6911-107765 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 9 -URI http://asc.fasb.org/extlink&oid=124098289&loc=d3e7018-107765 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=124098289&loc=d3e6935-107765 + 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