XML 81 R74.htm IDEA: XBRL DOCUMENT
v3.25.3

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 | Sep. 30, 2025 | Dec. 31, 2024 | Sep. 30, 2024 | Dec. 31, 2023
--- | --- | --- | --- | ---
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |  |  |  |  |
Level 3 Liabilities | $ 23,705 |  | $ 53,351 |  | $ 54,754 | $ 25,057
Level 3 Assets | 0 |  | 1,544 |  | 0 | 3,461
Business Acquisitions Contingent Consideration, Current |  |  |  |  |  |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |  |  |  |  |
Level 3 Liabilities | 15,609 |  | 26,872 |  | 6,423 | 3,592
Business Acquisitions Contingent Consideration, Long-Term |  |  |  |  |  |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |  |  |  |  |
Level 3 Liabilities | 7,810 |  | 6,255 |  | 27,924 | 2,448
Conversion Option |  |  |  |  |  |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |  |  |  |  |
Level 3 Liabilities | 0 |  | 20,224 |  |  |
Interest Rate Swap |  |  |  |  |  |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |  |  |  |  |
Level 3 Liabilities | 286 | [1] |  |  | 353 |
Level 3 Assets | $ 0 | [1] | $ 1,544 | [1] | $ 0 | $ 3,461
[1] | Included in other non-current liabilities and other assets in the unaudited condensed consolidated statement of financial position as of September 30, 2025 and audited condensed consolidated statement of financial position as of December 31, 2024, respectively.

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/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 100 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-100 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 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -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://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 101 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-101 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-3 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -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://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-3 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -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: |