XML 83 R72.htm IDEA: XBRL DOCUMENT
v3.21.1

Fair Value of Financial Instruments - Summary of Financial Instruments Measured at Fair Value on Recurring Basis (Details) - Fair Value, Recurring - Level 3 - USD ($) $ in Thousands | 3 Months Ended
--- | ---
Mar. 31, 2021 | Mar. 31, 2020
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |
Beginning balance | $ 75,353 | $ 32,971
Acquisitions | 1,804 |
Changes in fair value included in earnings | 11,666 | 29,626
Payment of contingent consideration payable |  | (4,703)
Foreign currency translation of contingent consideration payment |  | (208)
Ending balance | 88,823 | 57,686
Contingent Put Option |  |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |
Beginning balance |  | 7,100
Changes in fair value included in earnings |  | 29,627
Ending balance |  | 36,727
Business Acquisitions Contingent Consideration, Current |  |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |
Beginning balance | 49,902 | 8,614
Changes in fair value included in earnings | 462 |
Payment of contingent consideration payable |  | (4,703)
Foreign currency translation of contingent consideration payment |  | (208)
Ending balance | 50,364 | 3,703
Business Acquisitions Contingent Consideration, Long-Term |  |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |
Beginning balance | 4,565 | 379
Acquisitions | 1,804 |
Changes in fair value included in earnings | 10,602 |
Ending balance | 16,971 | 379
Conversion Option |  |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |
Beginning balance | 20,886 |
Changes in fair value included in earnings | 602 |
Ending balance | $ 21,488 |
Warrant Option |  |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] |  |
Beginning balance |  | 16,878
Changes in fair value included in earnings |  | (1)
Ending balance |  | $ 16,877

X
- Definition Fair value measurement with unobservable inputs reconciliation recurring basis liability foreign currency translation of contingent consideration payment. + References No definition available. + Details
Name: | meg_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityForeignCurrencyTranslationOfContingentConsiderationPayment
Namespace Prefix: | meg_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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 No definition available. + Details
Name: | us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of gain (loss) recognized in income from liability measured at fair value on recurring basis using unobservable input (level 3). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(1) -URI http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of purchases 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 -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(2) -URI http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of settlements 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 -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(2) -URI http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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 -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258 + 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_OptionIndexedToIssuersEquityTypeAxis=us-gaap_PutOptionMember
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_FairValueByLiabilityClassAxis=meg_WarrantOptionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |