XML 73 R62.htm IDEA: XBRL DOCUMENT
v3.23.2

Business Acquisitions - Summary of Elements of Purchase Price of Acquisitions (Parenthetical) (Details) $ in Millions | Jun. 30, 2023 USD ($)
--- | ---
Business Combinations [Abstract] |
Holdback amount | $ 1.3

X
- Definition Holdback amount portion included in restricted cash. + References No definition available. + Details
Name: | meg_HoldbackFunds
Namespace Prefix: | meg_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_BusinessCombinationsAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration