XML 88 R77.htm IDEA: XBRL DOCUMENT
v3.23.2

Fair Value of Financial Instruments - Summary of Financial Instruments Measured at Fair Value on Recurring Basis Using Significant Unobservable Inputs (Level 3) (Details) - Fair Value, Recurring - Level 3 - USD ($) $ in Thousands | Jun. 30, 2023 | Dec. 31, 2022 | Jun. 30, 2022 | Dec. 31, 2021
--- | --- | --- | --- | ---
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |  |  |  |  |
Level 3 Liabilities | $ 33,585 |  | $ 33,986 |  | $ 30,581 | $ 58,881
Level 3 Assets | 6,462 |  | 6,046 |  | 3,982 |
Business Acquisitions Contingent Consideration, Current |  |  |  |  |  |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |  |  |  |  |
Level 3 Liabilities | 4,119 |  | 3,801 |  | 2,814 | 31,450
Business Acquisitions Contingent Consideration, Long-Term |  |  |  |  |  |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |  |  |  |  |
Level 3 Liabilities | 2,311 |  | 4,454 |  | 3,560 | 4,350
Conversion Option |  |  |  |  |  |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |  |  |  |  |
Level 3 Liabilities | 27,155 |  | 25,731 |  | 24,207 | $ 23,081
Interest Rate Swap |  |  |  |  |  |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |  |  |  |  |
Level 3 Assets | $ 6,462 | [1] | $ 6,046 | [1] | $ 3,982 |
[1] | Included in other assets in the unaudited condensed consolidated statement of financial position.

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-3 + Details
Name: | us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -SubTopic 10 -Topic 820 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -SubTopic 10 -Topic 820 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_FairValueByMeasurementFrequencyAxis=us-gaap_FairValueMeasurementsRecurringMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByLiabilityClassAxis=meg_BusinessAcquisitionsContingentConsiderationCurrentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByLiabilityClassAxis=meg_BusinessAcquisitionsContingentConsiderationLongTermMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByLiabilityClassAxis=meg_ConversionOptionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_InterestRateSwapMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |