XML 36 R27.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Acquisitions (Tables) | 9 Months Ended
--- | ---
Sep. 30, 2022
Business Combination and Asset Acquisition [Abstract] |
Schedule of Acquisition-related Expense | These amounts are reported as Acquisition-related expense, net on the Unaudited Condensed Consolidated Statements of Income and were as follows for the three and nine months ended September 30, 2022 and 2021:
| Three months ended September 30, |  | Nine months ended September 30,
| 2022 |  | 2021 |  | 2022 |  | 2021
Due diligence, professional fees and other transaction costs | $ | 1 |  |  | $ | — |  |  | $ | 18 |  |  | $ | 34 |
Adjustments to fair value of contingent consideration liabilities | — |  |  | 246 |  |  | 45 |  |  | 1,034 |
Acquisition-related expense, net | $ | 1 |  |  | $ | 246 |  |  | $ | 63 |  |  | $ | 1,068 |

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