XML 46 R26.htm IDEA: XBRL DOCUMENT
v3.25.3

Debt (Details) $ in Millions | 3 Months Ended
--- | ---
Sep. 30, 2025 USD ($)
Debt Disclosure [Abstract] |
Line of credit facility, initiation date | Sep. 09, 2021
Line of credit facility, maximum borrowing capacity | $ 90.0
Compensating balance | 25.0
Line of credit facility, borrowing base | 61.4
Letters of credit outstanding, amount | 4.8
Line of credit facility, remaining borrowing capacity | $ 56.6
Asset backed credit facility, adjusted term SOFR rate, minimum | 0.0100
Alternate base rate margin | 0.0100
Additional margin on alternate base rate loans, minimum | 1.00%
Additional margin on alternate base rate loans, maximum | 1.50%
Additional margin on adjusted term SOFR, minimum | 0.0200
Additional margin on adjusted term SOFR, maximum | 0.0250
Unused credit facility fee, percentage | 0.25%
Asset backed line of credit, balance limit for fixed charge, coverage ratio | $ 13.5
Asset backed line of credit, percentage limit for fixed charge, coverage ratio | 15.00%
Asset backed credit facility, fixed charge coverage ratio requirement, minimum | 1.00
Asset backed credit facility, fixed charged coverage ratio requirement, maximum | 1.00
Asset backed credit facility, federal funds rate addition | 0.0050

X
- Definition Additional Margin On Adjusted Term SOFR Maximum + References No definition available. + Details
Name: | mtrx_AdditionalMarginOnAdjustedTermSOFRMaximum
Namespace Prefix: | mtrx_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Additional Margin On Adjusted Term SOFR Minimum + References No definition available. + Details
Name: | mtrx_AdditionalMarginOnAdjustedTermSOFRMinimum
Namespace Prefix: | mtrx_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Alternate Base Rate Margin + References No definition available. + Details
Name: | mtrx_AlternateBaseRateMargin
Namespace Prefix: | mtrx_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Asset Backed Credit Facility Adjusted Term SOFR Rate Minimum + References No definition available. + Details
Name: | mtrx_AssetBackedCreditFacilityAdjustedTermSOFRRateMinimum
Namespace Prefix: | mtrx_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Asset Backed Credit Facility, Federal Funds Rate Addition + References No definition available. + Details
Name: | mtrx_AssetBackedCreditFacilityFederalFundsRateAddition
Namespace Prefix: | mtrx_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Asset Backed Credit Facility Fixed Charge Coverage Ratio Requirement, Maximum + References No definition available. + Details
Name: | mtrx_AssetBackedCreditFacilityFixedChargeCoverageRatioRequirementMaximum
Namespace Prefix: | mtrx_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Asset Backed Credit Facility Fixed Charge Coverage Ratio Requirement, Minimum + References No definition available. + Details
Name: | mtrx_AssetBackedCreditFacilityFixedChargeCoverageRatioRequirementMinimum
Namespace Prefix: | mtrx_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line of credit basis spread on alternate base rate maximum. + References No definition available. + Details
Name: | mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMaximum
Namespace Prefix: | mtrx_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line of credit basis spread on alternate base rate minimum. + References No definition available. + Details
Name: | mtrx_LineOfCreditBasisSpreadOnAlternateBaseRateMinimum
Namespace Prefix: | mtrx_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition mtrx:AssetBackedLineofCreditBalanceLimitforFixedChargeCoverageRatio + References No definition available. + Details
Name: | mtrx_MtrxAssetBackedLineofCreditBalanceLimitforFixedChargeCoverageRatio
Namespace Prefix: | mtrx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition mtrx:AssetBackedLineofCreditPercentageLimitforFixedChargeCoverageRatio + References No definition available. + Details
Name: | mtrx_MtrxAssetBackedLineofCreditPercentageLimitforFixedChargeCoverageRatio
Namespace Prefix: | mtrx_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of a specific compensating balance arrangement that is maintained under an agreement for a bank loan or future credit availability. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_CompensatingBalanceAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Definition The total amount of the contingent obligation under letters of credit outstanding as of the reporting date. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 944 -SubTopic 605 -Name Accounting Standards Codification -Section 55 -Paragraph 15 -Publisher FASB -URI https://asc.fasb.org/1943274/2147477548/944-605-55-15 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 944 -SubTopic 605 -Name Accounting Standards Codification -Section 55 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147477548/944-605-55-12 + Details
Name: | us-gaap_LettersOfCreditOutstandingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of current borrowing capacity under the credit facility considering any current restrictions on the amount that could be borrowed (for example, borrowings may be limited by the amount of current assets), but without considering any amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(19)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Date the credit facility first became available, in YYYY-MM-DD format. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(19)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityInitiationDate1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
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 -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(19)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481544/470-10-50-6 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(19)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity
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: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration