XML 78 R67.htm IDEA: XBRL DOCUMENT
v3.21.1

Debt - Additional Information (Details) - USD ($) |  |  |  |  |  | 3 Months Ended | 6 Months Ended | 12 Months Ended |  |  |  |
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Sep. 30, 2022 | Sep. 30, 2021 | Oct. 06, 2020 | Sep. 30, 2020 | Apr. 13, 2020 | Mar. 31, 2021 | Mar. 31, 2020 | Oct. 06, 2020 | Dec. 31, 2020 | Dec. 31, 2022 | Dec. 31, 2021 | May 16, 2019 | Mar. 12, 2019
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Line of credit |  |  |  |  | $ 225,000,000 |  |  |  |  |  |  |  |
Credit facility maturity date |  |  |  |  | Apr. 30, 2025 |  |  |  |  |  |  |  |
Debt instrument, repayments term |  |  |  |  |  | Quarterly |  |  |  |  |  |  |
Debt instrument, repayments |  |  |  | $ 500,000 |  |  |  |  |  |  |  |  |
Maximum consolidated leverage ratio |  |  |  |  |  | 425.00% |  |  |  |  |  |  |
Minimum consolidated fixed charge coverage ratio |  |  |  |  | 125.00% |  |  |  |  |  |  |  |
Consolidated total leverage ratio |  |  |  |  |  | 3.10% |  |  | 2.70% |  |  |  |
Weighted average interest rate |  |  |  |  |  | 5.50% |  |  |  |  |  |  |
Capital Lease Obligations |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Capital leased assets, gross |  |  |  |  |  | $ 6,200,000 |  |  | $ 6,100,000 |  |  |  |
Capital leases, income statement, amortization expense |  |  |  |  |  | $ 600,000 | $ 200,000 |  |  |  |  |  |
Minimum | Capital Lease Obligations |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Capital lease asset estimated useful lives |  |  |  |  |  | 3 years |  |  |  |  |  |  |
Maximum | Capital Lease Obligations |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Capital lease asset estimated useful lives |  |  |  |  |  | 7 years |  |  |  |  |  |  |
Forecast |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Debt instrument, repayments | $ 1,600,000 | $ 1,100,000 |  |  |  |  |  |  |  |  |  |  |
Maximum consolidated leverage ratio |  |  |  |  |  |  |  |  |  | 375.00% | 400.00% |  |
Incremental Term Loans |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Line of credit facility, maximum borrowing capacity |  |  |  |  | $ 100,000,000 |  |  |  |  |  |  |  |
Incremental Term Loans | Minimum |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Percentage of pari passu debt of all lenders to be held by unitranche lenders |  |  |  |  | 70.00% |  |  |  |  |  |  |  |
Leverage Ratio Greater Than Equal to 3.25 |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Percentage of prepayment on excess cash flow less voluntary prepayments of term loan |  |  |  |  | 50.00% |  |  |  |  |  |  |  |
Consolidated fixed leverage ratio |  |  |  |  | 3.25% |  |  |  |  |  |  |  |
Leverage Ratio Less Than 3.00 |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Percentage of prepayment on excess cash flow less voluntary prepayments of term loan |  |  |  |  | 25.00% |  |  |  |  |  |  |  |
Consolidated fixed leverage ratio |  |  |  |  | 3.00% |  |  |  |  |  |  |  |
Equipment Line Of Credit |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Line of credit facility, maximum borrowing capacity |  |  |  |  |  |  |  |  |  |  |  |  | $ 2,000,000
Canadian Equipment Line Of Credit |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Line of credit facility, maximum borrowing capacity |  |  |  |  |  |  |  |  |  |  |  | $ 1,000,000 |
LIBOR Plus | Prior Senior Secured Credit Facility |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Interest rate |  |  |  |  |  | 1.00% |  |  |  |  |  |  |
Federal Funds Rate Plus | Prior Senior Secured Credit Facility |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Interest rate |  |  |  |  |  | 0.50% |  |  |  |  |  |  |
Term Loan Facility |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Line of credit |  |  |  |  | $ 175,000,000 | $ 173,359,000 |  |  | $ 173,906,000 |  |  |  |
Term Loan Facility | Prior Senior Secured Credit Facility |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Line of credit |  |  |  |  |  | 50,000,000 |  |  |  |  |  |  |
Term Loan Facility | LIBOR Plus |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Interest rate |  |  | 4.50% |  |  |  |  | 5.00% |  |  |  |  |
Term Loan Facility | Base Rate Plus |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Interest rate |  |  |  |  |  |  |  | 4.00% |  |  |  |  |
Term Loan Facility | LIBOR Floor |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Interest rate |  |  | 1.00% |  |  |  |  | 1.00% |  |  |  |  |
Revolving Line of Credit |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Line of credit |  |  |  |  | $ 50,000,000 |  |  |  |  |  |  |  |
Line of credit facility unused commitment fee |  |  |  |  | 0.35% |  |  |  |  |  |  |  |
Revolving Line of Credit | Prior Senior Secured Credit Facility |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Line of credit |  |  |  |  |  | $ 130,000,000 |  |  |  |  |  |  |
Revolving Line of Credit | LIBOR Plus |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Interest rate |  |  |  |  |  |  |  | 3.50% |  |  |  |  |
Revolving Line of Credit | Base Rate Plus |  |  |  |  |  |  |  |  |  |  |  |  |
Line Of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Interest rate |  |  |  |  |  |  |  | 2.50% |  |  |  |  |

X
- Definition Capital lease asset estimated useful lives. + References No definition available. + Details
Name: | meg_CapitalLeaseAssetEstimatedUsefulLives
Namespace Prefix: | meg_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Consolidated leverage ratio. + References No definition available. + Details
Name: | meg_ConsolidatedLeverageRatio
Namespace Prefix: | meg_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line of credit facility consolidated fixed leverage ratio. + References No definition available. + Details
Name: | meg_LineOfCreditFacilityConsolidatedFixedLeverageRatio
Namespace Prefix: | meg_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Maximum consolidated leverage ratio. + References No definition available. + Details
Name: | meg_MaximumConsolidatedLeverageRatio
Namespace Prefix: | meg_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Minimum consolidated fixed charge coverage ratio. + References No definition available. + Details
Name: | meg_MinimumConsolidatedFixedChargeCoverageRatio
Namespace Prefix: | meg_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of pari passu debt of all lenders to be held by unitranche lenders. + References No definition available. + Details
Name: | meg_PercentageOfPariPassuDebtOfAllLendersToBeHeldByUnitrancheLenders
Namespace Prefix: | meg_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of prepayment on excess cash flow less voluntary prepayments of term loan. + References No definition available. + Details
Name: | meg_PercentageOfPrepaymentOnExcessCashFlowLessVoluntaryPrepaymentsOfTermLoan
Namespace Prefix: | meg_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount before accumulated depreciation of leased physical assets used in the normal conduct of business to produce goods and services. + References Reference 1: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 30 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=121569800&loc=d3e45014-112735 + Details
Name: | us-gaap_CapitalLeasedAssetsGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The charge for the use of long-lived depreciable capital leased assets for the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Publisher FASB -Name Accounting Standards Codification -Topic 980 -SubTopic 840 -Section 55 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=121616545&loc=d3e56872-110439 Reference 2: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=121569800&loc=d3e45031-112735 + Details
Name: | us-gaap_CapitalLeasesIncomeStatementAmortizationExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Description of the frequency of periodic payments (monthly, quarterly, annual). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentFrequencyOfPeriodicPayment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of the required periodic payments applied to principal. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentPeriodicPaymentPrincipal
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Weighted average interest rate of debt outstanding. + References No definition available. + Details
Name: | us-gaap_DebtWeightedAverageInterestRate
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(16)) -URI http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910 + Details
Name: | us-gaap_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Date the credit facility terminates, in CCYY-MM-DD format. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityExpirationDate1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
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_LineOfCreditFacilityLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The fee, expressed as a percentage of the line of credit facility, for available but unused credit capacity under the credit facility. + References No definition available. + Details
Name: | us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_CapitalLeaseObligationsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementScenarioAxis=srt_ScenarioForecastMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=meg_IncrementalTermLoansMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=meg_LeverageRatioGreaterThanOrEqualToThreePointTwoFiveMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=meg_LeverageRatioLessThanThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=meg_EquipmentLineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=meg_CanadianEquipmentLineOfCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_LondonInterbankOfferedRateLIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=meg_PriorSeniorSecuredCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_FederalFundsEffectiveSwapRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=meg_TermLoanFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_BaseRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=meg_LondonInterbankOfferedRateLIBORFloorMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |