XML 59 R38.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Acquisitions (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2023
Business Combination and Asset Acquisition [Abstract] |
Schedule of Acquisition-related Expenses | These amounts are recorded as acquisition-related expense, net, on the Consolidated Statements of Income (Loss) and were as follows for the years ended December 31, 2023, 2022 and 2021 (in thousands):
| For the year ended December 31,
| 2023 |  | 2022 |  | 2021
Due diligence, professional fees and other transaction costs | $ | 9 |  |  | $ | 31 |  |  | $ | 5 |
Adjustments to fair value of contingent consideration liabilities | — |  |  | 45 |  |  | 1,128 |
Acquisition-related expense, net | $ | 9 |  |  | $ | 76 |  |  | $ | 1,133 |

X
- Definition Tabular disclosure of acquisition-related costs. + References No definition available. + Details
Name: | mg_ScheduleOfBusinessCombinationAcquisitionRelatedCostsTableTextBlock
Namespace Prefix: | mg_
Data Type: | dtr-types1: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