XML 66 R55.htm IDEA: XBRL DOCUMENT
v3.21.1

Business Acquisitions - Summary of Elements of Purchase Price of Acquisitions (Details) - USD ($) $ in Thousands | 1 Months Ended | 12 Months Ended
--- | --- | ---
Jan. 31, 2021 | Dec. 31, 2020
Business Acquisition [Line Items] |  |
Cash |  | $ 175,450
Common Stock |  | 25,000
Other Purchase Price Components Current |  | (1,889)
Other Purchase Price Components Long Term |  | 100
Contingent Consideration Current |  | 34,661
Contingent Consideration Long Term |  | 10,543
Total Purchase Price |  | 243,865
MSE Group |  |
Business Acquisition [Line Items] |  |
Cash | $ 9,082 |
Common Stock | 2,271 |
Other Purchase Price Components Current | 10,146 |
Contingent Consideration Long Term | 1,804 |
Total Purchase Price | $ 23,303 |
CTEH |  |
Business Acquisition [Line Items] |  |
Cash |  | 175,000
Common Stock |  | 25,000
Other Purchase Price Components Current |  | (1,939)
Contingent Consideration Current |  | 34,451
Contingent Consideration Long Term |  | 10,543
Total Purchase Price |  | 243,055
Other Acquisition |  |
Business Acquisition [Line Items] |  |
Cash |  | 450
Other Purchase Price Components Current |  | 50
Other Purchase Price Components Long Term |  | 100
Contingent Consideration Current |  | 210
Total Purchase Price |  | $ 810

X
- Definition Business combination, consideration transferred, contingent consideration current. + References No definition available. + Details
Name: | meg_BusinessCombinationConsiderationTransferredContingentConsiderationCurrent
Namespace Prefix: | meg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Business combination, consideration transferred, contingent consideration long term. + References No definition available. + Details
Name: | meg_BusinessCombinationConsiderationTransferredContingentConsiderationLongTerm
Namespace Prefix: | meg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Business combination, consideration transferred, other purchase price component long term. + References No definition available. + Details
Name: | meg_BusinessCombinationConsiderationTransferredOtherPurchasePriceComponentLongTerm
Namespace Prefix: | meg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Business combination, consideration transferred, other purchase price components, current. + References No definition available. + Details
Name: | meg_BusinessCombinationConsiderationTransferredOtherPurchasePriceComponentsCurrent
Namespace Prefix: | meg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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_BusinessAcquisitionLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of consideration transferred, consisting of acquisition-date fair value of assets transferred by the acquirer, liabilities incurred by the acquirer, and equity interest issued by the acquirer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=116859721&loc=d3e6613-128477 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=116859721&loc=d3e6578-128477 + Details
Name: | us-gaap_BusinessCombinationConsiderationTransferred1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of equity interests of the acquirer, including instruments or interests issued or issuable in consideration for the business combination. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=116859721&loc=d3e6613-128477 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=116859721&loc=d3e6578-128477 + Details
Name: | us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow associated with the acquisition of business during the period. The cash portion only of the acquisition price. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b)(1) -URI http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585 + Details
Name: | us-gaap_PaymentsToAcquireBusinessesGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=meg_MSEGroupMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=meg_TheCenterForToxicologyAndEnvironmentalHealthLLCMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=meg_OtherAcquisitionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |