XML 44 R35.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Leases (Tables) | 9 Months Ended
--- | ---
Sep. 30, 2022
Leases [Abstract] |
Schedule of Supplemental Balance Sheet Information | The Company’s Condensed Consolidated Balance Sheets include the following related to right-of-use ("ROU")
Leases |  | Classification |  | September 30, 2022 |  | December 31, 2021
Assets |  |  |  |  |  |
ROU assets |  | Other assets |  | $ | 37,777 |  |  | $ | 42,451 |
Liabilities |  |  |  |  |  |
ROU - current |  | Accrued expenses and other current liabilities |  | $ | 9,976 |  |  | $ | 10,040 |
ROU liability - long-term |  | Other long-term liabilities |  | 29,205 |  |  | 34,030 |
Total ROU liabilities |  |  |  | $ | 39,181 |  |  | $ | 44,070 |
Schedule of Components of Lease Costs and Other Information Related to Leases | The components of lease costs were as follows:
|  |  |  | Three months ended September 30, | Nine months ended September 30,
|  | Classification |  | 2022 |  | 2021 | 2022 |  | 2021
Finance lease expense |  |  |  |  |  |  |  |  |
Amortization of ROU assets |  | Depreciation and amortization |  | $ | 1,002 |  |  | $ | 1,002 |  | $ | 3,039 |  |  | $ | 3,094 |
Interest on lease liabilities |  | Interest expense |  | 149 |  |  | 177 |  | 463 |  |  | 550 |
Operating lease expense |  | Cost of revenue; Selling, general & administrative expenses |  | 3,194 |  |  | 3,239 |  | 9,595 |  |  | 9,808 |
Short-term lease expense |  | Cost of revenue; Selling, general & administrative expenses |  | 26 |  |  | 7 |  | 35 |  |  | 22 |
Variable lease expense |  | Cost of revenue; Selling, general & administrative expenses |  | 530 |  |  | 532 |  | 1,619 |  |  | 1,956 |
Total |  |  |  | $ | 4,901 |  |  | $ | 4,957 |  | $ | 14,751 |  |  | $ | 15,430 |
Additional information related to leases was as follows:
|  |  | Nine months ended September 30,
|  |  |  |  | 2022 |  | 2021
Cash paid for amounts included in the measurement of lease liabilities for finance and operating leases |  |  |  |  |  |  |
Finance - financing cash flows |  |  |  |  | $ | 3,173 |  |  | $ | 3,032 |
Finance - operating cash flows |  |  |  |  | $ | 463 |  |  | $ | 550 |
Operating - operating cash flows |  |  |  |  | $ | 9,394 |  |  | $ | 9,870 |
ROU assets obtained in the exchange for lease liabilities |  |  |  |  |  |  |
Finance leases |  |  |  |  | $ | 3,373 |  |  | $ | 2,445 |
Operating leases |  |  |  |  | $ | 5,367 |  |  | $ | 4,212 |
Weighted-average remaining lease term (in years) |  |  |  |  |  |  |
Finance leases |  |  |  |  | 5.3 |  | 5.5
Operating leases |  |  |  |  | 4.8 |  | 5.3
Weighted-average discount rate |  |  |  |  |  |  |
Finance leases |  |  |  |  | 5.2 | % |  | 5.4 | %
Operating leases |  |  |  |  | 5.5 | % |  | 5.8 | %
Schedule of Maturities of Operating Lease Liabilities | Maturities of lease liabilities as of September 30, 2022 were as follows:
| Finance |  | Operating
Remainder of 2022 | $ | 2,316 |  |  | $ | 3,044 |
2023 | 4,408 |  |  | 11,577 |
2024 | 3,507 |  |  | 9,432 |
2025 | 1,958 |  |  | 6,941 |
2026 | 1,318 |  |  | 5,031 |
Thereafter | 793 |  |  | 8,941 |
Total | 14,300 |  |  | 44,966 |
Less: Present value discount | 953 |  |  | 5,785 |
Lease liability | $ | 13,347 |  |  | $ | 39,181 |
Schedule of Maturities of Finance Lease Liabilities | Maturities of lease liabilities as of September 30, 2022 were as follows:
| Finance |  | Operating
Remainder of 2022 | $ | 2,316 |  |  | $ | 3,044 |
2023 | 4,408 |  |  | 11,577 |
2024 | 3,507 |  |  | 9,432 |
2025 | 1,958 |  |  | 6,941 |
2026 | 1,318 |  |  | 5,031 |
Thereafter | 793 |  |  | 8,941 |
Total | 14,300 |  |  | 44,966 |
Less: Present value discount | 953 |  |  | 5,785 |
Lease liability | $ | 13,347 |  |  | $ | 39,181 |

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