XML 81 R43.htm IDEA: XBRL DOCUMENT
v3.22.4

Leases (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2022
Leases [Abstract] |
Schedule of Supplemental Balance Sheet Information | The Company’s Consolidated Balance Sheets include the following related to operating leases as of December 31, 2022 and 2021 (in thousands):
Leases |  | Classification |  | 2022 |  | 2021
Assets: |  |  |  |  |  |
ROU assets |  | Other Assets |  | $ | 36,946 |  |  | $ | 42,451 |
Liabilities: |  |  |  |  |  |
ROU liability - current |  | Accrued expenses and other current liabilities |  | $ | 10,376 |  |  | $ | 10,040 |
ROU liability - long-term |  | Other long-term liabilities |  | 28,066 |  |  | 34,030 |
Total ROU liabilities |  |  |  | $ | 38,442 |  |  | $ | 44,070 |
Schedule of Components of Lease Costs and Other Information Related to Leases | The components of lease costs for the year ended December 31, 2022 and 2021 are as follows (in thousands):
|  | Classification |  | 2022 |  | 2021
Finance lease expense: |  |  |  |  |  |
Amortization of ROU assets |  | Depreciation and amortization |  | $ | 4,068 |  |  | $ | 4,111 |
Interest on lease liabilities |  | Interest expense |  | 624 |  |  | 721 |
Operating lease expense |  | Cost of revenue; Selling, general & administrative expenses |  | 12,783 |  |  | 13,042 |
Short-term lease expense |  | Cost of revenue; Selling, general & administrative expenses |  | 77 |  |  | 27 |
Variable lease expense |  | Cost of revenue; Selling, general & administrative expenses |  | 2,141 |  |  | 2,507 |
Total |  |  |  | $ | 19,693 |  |  | $ | 20,408 |
Additional information related to leases as of December 31, 2022 and 2021 is as follows:
|  | 2022 |  | 2021
Cash paid for amounts included in the measurement of lease liabilities for finance and operating leases (in thousands): |  |  |  |
Finance - financing cash flows |  | $ | 4,140 |  |  | $ | 4,060 |
Finance - operating cash flows |  | 624 |  |  | 721 |
Operating - operating cash flows |  | 12,502 |  |  | 13,098 |
ROU assets obtained in the exchange for lease liabilities: |  |  |  |
Finance leases |  | $ | 5,076 |  |  | 2,923 |
Operating leases |  | 6,067 |  |  | 7,021 |
Weighted-average remaining lease term (in years): |  |  |  |
Finance leases |  | 5.1 |  | 5.4
Operating leases |  | 4.7 |  | 5.3
Weighted-average discount rate: |  |  |  |
Finance leases |  | 5.5 | % |  | 5.3 | %
Operating leases |  | 5.6 | % |  | 5.7 | %
Schedule of Maturities of Operating Lease Liabilities | Maturities of lease liabilities as of December 31, 2022 is as follows (in thousands):
| Finance |  | Operating
2023 | $ | 6,131 |  |  | $ | 12,109 |
2024 | 3,970 |  |  | 9,869 |
2025 | 2,448 |  |  | 7,304 |
2026 | 1,747 |  |  | 5,272 |
2027 | 842 |  |  | 4,119 |
Thereafter | 255 |  |  | 5,089 |
Total | 15,393 |  |  | 43,762 |
Less: Present value discount | 1,147 |  |  | 5,320 |
Lease liability | $ | 14,246 |  |  | $ | 38,442 |
Schedule of Maturities of Finance Lease Liabilities | Maturities of lease liabilities as of December 31, 2022 is as follows (in thousands):
| Finance |  | Operating
2023 | $ | 6,131 |  |  | $ | 12,109 |
2024 | 3,970 |  |  | 9,869 |
2025 | 2,448 |  |  | 7,304 |
2026 | 1,747 |  |  | 5,272 |
2027 | 842 |  |  | 4,119 |
Thereafter | 255 |  |  | 5,089 |
Total | 15,393 |  |  | 43,762 |
Less: Present value discount | 1,147 |  |  | 5,320 |
Lease liability | $ | 14,246 |  |  | $ | 38,442 |

X
- Definition Assets And Liabilities, Lessee + References No definition available. + Details
Name: | mg_AssetsAndLiabilitiesLesseeTableTextBlock
Namespace Prefix: | mg_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of undiscounted cash flows of finance lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to finance lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 6 -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918701-209980 + Details
Name: | us-gaap_FinanceLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 + Details
Name: | us-gaap_LeaseCostTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 6 -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918701-209980 + Details
Name: | us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration