XML 50 R35.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Acquisitions (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2021
Business Combination and Asset Acquisition [Abstract] |
Schedule of Estimated Fair Value of Assets Acquired and Liabilities Assumed at the Date of Acquisition | The following table summarizes the final fair value of the assets acquired and liabilities assumed and the Company's allocation of purchase price:
| 2019 |  |
Cash paid | $ | 4,380 |  |  |
Working capital adjustments | $ | (152) |  |  |
Fair value of contingent consideration | $ | 1,342 |  |  |
Total consideration | $ | 5,570 |  |  |
Current net assets | $ | 142 |  |  |
Other assets | $ | 34 |  |  |
Property, plant and equipment | $ | 65 |  |  |
Intangibles | $ | 3,594 |  |  |
Goodwill | $ | 1,735 |  |  |
Net assets acquired | $ | 5,570 |  |  |
Schedule of Acquisition-related Expenses | These amounts are recorded as acquisition-related expense, net, on the consolidated statements of income and were as follows for the years ended December 31, 2021, 2020 and 2019:
| For the year ended December 31,
| 2021 |  | 2020 |  | 2019
Due diligence, professional fees and other transaction costs | $ | 5 |  |  | $ | — |  |  | $ | 364 |
Adjustments to fair value of contingent consideration liabilities | 1,128 |  |  | 337 |  |  | 511 |
Acquisition-related expense, net | $ | 1,133 |  |  | $ | 337 |  |  | $ | 875 |

X
- Definition Tabular disclosure of acquisition-related costs. + References No definition available. + Details
Name: | mg_ScheduleOfBusinessCombinationAcquisitionRelatedCostsTableTextBlock
Namespace Prefix: | mg_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Tabular disclosure of the amounts recognized as of the acquisition date for each major class of assets acquired and liabilities assumed. May include but not limited to the following: (a) acquired receivables; (b) contingencies recognized at the acquisition date; and (c) the fair value of noncontrolling interests in the acquiree. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=123413009&loc=d3e4845-128472 + Details
Name: | us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration