<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:mhh="http://mastechdigital.com/20251231"
  xmlns:srt="http://fasb.org/srt/2025"
  xmlns:us-gaap-ebp="http://fasb.org/us-gaap-ebp/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="mhh-20251231.xsd" xlink:type="simple"/>
    <context id="C_9530dea3-8c54-43c5-9a97-f8d9a6f16430">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001437226</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">mhh:EBP2019Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2023-12-31</instant>
        </period>
    </context>
    <context id="C_b4a5e7bd-ebfb-45f5-967f-871d89f70fb4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001437226</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">mhh:EBP2019Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="C_bb55eca5-36f2-4969-93ba-6f94e006d315">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001437226</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">mhh:EBP2019Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-06-01</startDate>
            <endDate>2024-06-30</endDate>
        </period>
    </context>
    <context id="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001437226</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">mhh:EBP2019Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="C_e08574ce-1e61-4121-9fba-b161564db7a8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001437226</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">mhh:EBP2019Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2025-12-31</instant>
        </period>
    </context>
    <context id="C_e8a23ed1-dc46-41ff-aed6-0729f3fa1be5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001437226</identifier>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="C_03e3b382-ec2b-45de-b6aa-a3c0b42f7418">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001437226</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">mhh:EBP2019Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-06-01</startDate>
            <endDate>2025-06-30</endDate>
        </period>
    </context>
    <context id="C_0e5f03e8-da28-473c-92ce-444d7a42cb47">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001437226</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">mhh:EBP2019Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2024-12-31</instant>
        </period>
    </context>
    <context id="C_20f0fd0d-d235-4f97-9058-494e70abc104">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001437226</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MaximumMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">mhh:EBP2019Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="C_3386db37-00b8-4a2b-8174-fa2f662565e5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001437226</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MinimumMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">mhh:EBP2019Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <unit id="U_pure">
        <measure>pure</measure>
    </unit>
    <unit id="U_shares">
        <measure>shares</measure>
    </unit>
    <unit id="U_UnitedStatesOfAmericaDollarsShare">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:DocumentFiscalPeriodFocus
      contextRef="C_e8a23ed1-dc46-41ff-aed6-0729f3fa1be5"
      id="F_f84a0c9c-4749-4ba5-ace3-8ae338440302">FY</dei:DocumentFiscalPeriodFocus>
    <dei:EntityCentralIndexKey
      contextRef="C_e8a23ed1-dc46-41ff-aed6-0729f3fa1be5"
      id="F_072d8b3e-2b83-4fce-ae39-e0b17aedcfd9">0001437226</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_e8a23ed1-dc46-41ff-aed6-0729f3fa1be5"
      id="F_33338ee7-9324-4cff-b4c7-78412298f42f">false</dei:AmendmentFlag>
    <dei:CurrentFiscalYearEndDate
      contextRef="C_e8a23ed1-dc46-41ff-aed6-0729f3fa1be5"
      id="F_c769db94-a657-421e-97f5-529cf78d7bcf">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:DocumentType
      contextRef="C_e8a23ed1-dc46-41ff-aed6-0729f3fa1be5"
      id="F_842b7f63-d55c-4727-9b54-3359f8f40a92">11-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_e8a23ed1-dc46-41ff-aed6-0729f3fa1be5"
      id="F_4ef8a04d-5470-416c-b9dc-f676cb98e21b">2025-12-31</dei:DocumentPeriodEndDate>
    <dei:DocumentFiscalYearFocus
      contextRef="C_e8a23ed1-dc46-41ff-aed6-0729f3fa1be5"
      id="F_eb2d9aff-35d6-47e5-98a8-17cf820db2ad">2025</dei:DocumentFiscalYearFocus>
    <dei:EntityRegistrantName
      contextRef="C_e8a23ed1-dc46-41ff-aed6-0729f3fa1be5"
      id="F_f642d924-7df0-4365-9ed8-f69dc76a9cc4">MASTECH DIGITAL, INC.</dei:EntityRegistrantName>
    <us-gaap-ebp:EmployeeBenefitPlanCash
      contextRef="C_e08574ce-1e61-4121-9fba-b161564db7a8"
      decimals="0"
      id="F_ceda2a5c-cdb1-410e-880b-388fc95081c0"
      unitRef="U_USD">22631</us-gaap-ebp:EmployeeBenefitPlanCash>
    <us-gaap-ebp:EmployeeBenefitPlanCash
      contextRef="C_0e5f03e8-da28-473c-92ce-444d7a42cb47"
      decimals="0"
      id="F_81f30011-6369-425e-b6a2-93aac3f31613"
      unitRef="U_USD">94529</us-gaap-ebp:EmployeeBenefitPlanCash>
    <us-gaap-ebp:EmployeeBenefitPlanAsset
      contextRef="C_e08574ce-1e61-4121-9fba-b161564db7a8"
      decimals="0"
      id="F_8b2e5dc7-b9d5-437a-8090-0de0eff17245"
      unitRef="U_USD">22631</us-gaap-ebp:EmployeeBenefitPlanAsset>
    <us-gaap-ebp:EmployeeBenefitPlanAsset
      contextRef="C_0e5f03e8-da28-473c-92ce-444d7a42cb47"
      decimals="0"
      id="F_a93bbfa3-1547-47b2-91e6-dd03b2b38dbc"
      unitRef="U_USD">94529</us-gaap-ebp:EmployeeBenefitPlanAsset>
    <us-gaap-ebp:EmployeeBenefitPlanLiabilityInvestmentPurchase
      contextRef="C_e08574ce-1e61-4121-9fba-b161564db7a8"
      decimals="0"
      id="F_f76b3fd1-f726-4a17-bd66-85a86b2be65a"
      unitRef="U_USD">21543</us-gaap-ebp:EmployeeBenefitPlanLiabilityInvestmentPurchase>
    <us-gaap-ebp:EmployeeBenefitPlanLiabilityInvestmentPurchase
      contextRef="C_0e5f03e8-da28-473c-92ce-444d7a42cb47"
      decimals="0"
      id="F_3798cd00-5707-41a3-9215-2137f8f35a81"
      unitRef="U_USD">87295</us-gaap-ebp:EmployeeBenefitPlanLiabilityInvestmentPurchase>
    <us-gaap-ebp:EmployeeBenefitPlanParticipantLiability
      contextRef="C_e08574ce-1e61-4121-9fba-b161564db7a8"
      decimals="0"
      id="F_994d6a57-b823-4989-8226-945ec2585d06"
      unitRef="U_USD">1088</us-gaap-ebp:EmployeeBenefitPlanParticipantLiability>
    <us-gaap-ebp:EmployeeBenefitPlanParticipantLiability
      contextRef="C_0e5f03e8-da28-473c-92ce-444d7a42cb47"
      decimals="0"
      id="F_f67a2263-e737-4d7f-b414-2ec692d3f8a0"
      unitRef="U_USD">7234</us-gaap-ebp:EmployeeBenefitPlanParticipantLiability>
    <us-gaap-ebp:EmployeeBenefitPlanLiability
      contextRef="C_e08574ce-1e61-4121-9fba-b161564db7a8"
      decimals="0"
      id="F_6a7cc0ec-a89b-4091-b083-e01021f8d313"
      unitRef="U_USD">22631</us-gaap-ebp:EmployeeBenefitPlanLiability>
    <us-gaap-ebp:EmployeeBenefitPlanLiability
      contextRef="C_0e5f03e8-da28-473c-92ce-444d7a42cb47"
      decimals="0"
      id="F_9389888b-6735-4dba-a606-04f3a9fe80bf"
      unitRef="U_USD">94529</us-gaap-ebp:EmployeeBenefitPlanLiability>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_e08574ce-1e61-4121-9fba-b161564db7a8"
      decimals="0"
      id="F_386e57d7-e108-4a04-b9df-6b606c7c3be6"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_0e5f03e8-da28-473c-92ce-444d7a42cb47"
      decimals="0"
      id="F_3936fdaf-14cc-41b7-9647-00d1952d0c36"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionRollover
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      decimals="0"
      id="F_5032d134-cde8-4140-bc26-a94a16be4c26"
      unitRef="U_USD">92613</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionRollover>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionRollover
      contextRef="C_b4a5e7bd-ebfb-45f5-967f-871d89f70fb4"
      decimals="0"
      id="F_75bed454-b004-4d9f-9c4e-bd6ffcc54bdc"
      unitRef="U_USD">230501</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseForParticipantContributionRollover>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncrease
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      decimals="0"
      id="F_31a65fb3-0cb0-418a-960e-0d1ed8471a09"
      unitRef="U_USD">92613</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncrease>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncrease
      contextRef="C_b4a5e7bd-ebfb-45f5-967f-871d89f70fb4"
      decimals="0"
      id="F_3c147b46-2370-4567-b26f-776bff4a2bf5"
      unitRef="U_USD">230501</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncrease>
    <mhh:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForCostOfSharesPurchased
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      decimals="0"
      id="F_3c2b2dad-0258-44dd-bd19-55e923566a1e"
      unitRef="U_USD">69983</mhh:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForCostOfSharesPurchased>
    <mhh:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForCostOfSharesPurchased
      contextRef="C_b4a5e7bd-ebfb-45f5-967f-871d89f70fb4"
      decimals="0"
      id="F_ca0c9ce8-2c9e-44d7-944a-4340d50653f2"
      unitRef="U_USD">135972</mhh:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForCostOfSharesPurchased>
    <mhh:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPayableToPurchaseShares
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      decimals="0"
      id="F_820ad603-db10-4388-9a30-d8d8b1e25416"
      unitRef="U_USD">21543</mhh:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPayableToPurchaseShares>
    <mhh:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPayableToPurchaseShares
      contextRef="C_b4a5e7bd-ebfb-45f5-967f-871d89f70fb4"
      decimals="0"
      id="F_2ae803c9-623b-461b-8fe6-f82392a80d44"
      unitRef="U_USD">87295</mhh:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPayableToPurchaseShares>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      decimals="0"
      id="F_075f7814-f1dc-48d6-b720-4ef40cf782fb"
      unitRef="U_USD">1087</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant
      contextRef="C_b4a5e7bd-ebfb-45f5-967f-871d89f70fb4"
      decimals="0"
      id="F_b6de9d19-6f64-4fe3-bfe3-3f571bacb716"
      unitRef="U_USD">7234</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecreaseForPaymentToParticipant>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecrease
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      decimals="0"
      id="F_8b2763cd-5554-4f01-942e-ab41ebe61e48"
      unitRef="U_USD">92613</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecrease>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecrease
      contextRef="C_b4a5e7bd-ebfb-45f5-967f-871d89f70fb4"
      decimals="0"
      id="F_e983540f-9d2b-491b-8fac-8c61e194da64"
      unitRef="U_USD">230501</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitDecrease>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecrease
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      decimals="0"
      id="F_97335430-99b4-48ec-9f62-e721503fd471"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecrease>
    <us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecrease
      contextRef="C_b4a5e7bd-ebfb-45f5-967f-871d89f70fb4"
      decimals="0"
      id="F_9e1ac47b-ce6a-4a7b-a6b7-1f6479d7e1bb"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanChangeInNetAssetAvailableForBenefitIncreaseDecrease>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_0e5f03e8-da28-473c-92ce-444d7a42cb47"
      decimals="0"
      id="F_607befe8-81fe-4c49-8ae8-e33b1bd33d7e"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_9530dea3-8c54-43c5-9a97-f8d9a6f16430"
      decimals="0"
      id="F_cb3eb69d-5ed7-4171-8e18-6c7de8830deb"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_e08574ce-1e61-4121-9fba-b161564db7a8"
      decimals="0"
      id="F_f96d2519-1b74-4f64-9b2f-7d3d5b3e5e34"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit
      contextRef="C_0e5f03e8-da28-473c-92ce-444d7a42cb47"
      decimals="0"
      id="F_f6a40362-c81e-411d-87da-c8b72248fbdb"
      unitRef="U_USD">0</us-gaap-ebp:EmployeeBenefitPlanNetAssetAvailableForBenefit>
    <us-gaap-ebp:EmployeeBenefitPlanDescriptionOfPlanTextBlock
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      id="F_8ca7dba1-7407-419d-8fd3-cc7ab4de6adb">&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Note 1 &#x2013; Description of the Plan&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;General&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;margin-right:3.491%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The Mastech Digital, Inc. 2019 Employee Stock Purchase Plan (the &#x201c;Plan&#x201d;) became effective on January 1, 2019. The Plan is intended to provide eligible employees of Mastech Digital, Inc. and participating subsidiaries (&#x201c;the Company&#x201d;) with an opportunity to purchase shares of common stock of the Company at a discount to market value.  Eligible employees are individuals who provide services on a full-time basis and who have continuous employment with the Company for two years or more, as of the first day of an offering period. Offering periods are semi-annual (January 1 through June 30; and July 1 through December 31). The Plan is intended to qualify as an employee stock purchase plan consistent with Section 423 of the Internal Revenue Code of 1986, as amended, (the &#x201c;Code&#x201d;).&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:0.2pt;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:11pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Contributions&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Eligible Plan participants (&#x201c;Participants&#x201d;) may make contributions to the Plan through payroll deductions (after-tax contributions) of at least &lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;1&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;%, but not more than &lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;15&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;% of their compensation earned for each payroll period within an offering period for the purpose of purchasing the Company&#x2019;s common stock (&#x201c;Shares&#x201d;).  Share purchases are subject to annual limitations of $&lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;25,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; for the calendar year, as measured by the fair market value of shares as of the first day of an offering period pursuant to the Internal Revenue Code and an annual maximum of shares purchased of &lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;3,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; shares.  Participants may change the amount of payroll deductions for subsequent offering periods by giving notice 15-days preceding the first day of a new offering period.  Additionally, a participant may discontinue payroll deductions at any time during an offering period by providing a termination form in accordance with rules established by the Company. Participant contributions are recorded in the period that the Participants&#x2019; payroll deductions are made. Participant contributions are not subject to vesting and they are fully vested at all times.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Share Purchases&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;margin-right:4.093%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The Plan allows Participants to purchase Shares at &lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;85&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;% of the lesser of: 1) the fair market value per share on the first day of the offering period (or if such date is not a trading day, then on the next trading day thereafter) or 2) the fair market value per share on the last day of the offering period (or if such date is not a trading day, then on the trading day immediately preceding the last day of the offering period).  Shares purchased under the Plan will be credited to a Participant&#x2019;s brokerage account under the Plan as soon as reasonably practicable following the last day of each offering period.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;margin-right:2.611%;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;margin-right:2.611%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;In 2025, participants purchased &lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;11,483&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; shares under the Plan during the offering period ending June 30, 2025 at a purchase price of $&lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;6.0945&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;; and purchased &lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;3,631&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; shares during the offering period ending December 31, 2025 at a purchase price of $&lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;5.9330&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; per share. In 2024, participants purchased &lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;21,324&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; shares under the Plan during the offering period ending June 30, 2024 at a purchase price of $&lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;6.3750&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;; and purchased &lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;13,531&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; shares during the offering period ending December 31, 2024 at a purchase price of $&lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;6.4515&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; per share.  The maximum number of shares that will be offered under the Plan is &lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;600,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.  As of December 31, 2025, there were &lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;416,945&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; shares available for future issuance.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:0.65pt;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Withdrawals and Holding Periods&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;margin-right:2.176%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;If a Participant&#x2019;s employment terminates for any reason during an offering period, all amounts credited to such Participant&#x2019;s account shall be returned to the Participant.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;margin-right:2.176%;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;margin-right:2.176%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The Company has established a mandatory one-year holding period with respect to the shares purchased pursuant to the Plan.  However, the holding period will not apply to a Participant who has terminated employment due to of death or disability.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:0.5pt;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Administration of the Plan&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The Plan is administered by a committee appointed by the Company's Board of Directors. Administrative expenses of the Plan are paid by the Company.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Amendment and Termination&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;margin-right:3.704%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The Company has the right under the Plan to amend, suspend or terminate the Plan at any time without notice, provided that all shares and payroll deductions during an offering period are distributed to the Participants upon any termination and no amendment will affect the Participant&#x2019;s right to receive such distributions.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;  &lt;/span&gt;&lt;/p&gt;</us-gaap-ebp:EmployeeBenefitPlanDescriptionOfPlanTextBlock>
    <us-gaap-ebp:EmployeeBenefitPlanParticipantContributionPretaxMaximumAnnualCompensationToTotalCompensationPercentage
      contextRef="C_3386db37-00b8-4a2b-8174-fa2f662565e5"
      decimals="2"
      id="F_4610518b-fe1f-4d41-bb2a-c163354609eb"
      unitRef="U_pure">0.01</us-gaap-ebp:EmployeeBenefitPlanParticipantContributionPretaxMaximumAnnualCompensationToTotalCompensationPercentage>
    <us-gaap-ebp:EmployeeBenefitPlanParticipantContributionPretaxMaximumAnnualCompensationToTotalCompensationPercentage
      contextRef="C_20f0fd0d-d235-4f97-9058-494e70abc104"
      decimals="2"
      id="F_71ba5613-c371-4db4-9415-7f7395286d39"
      unitRef="U_pure">0.15</us-gaap-ebp:EmployeeBenefitPlanParticipantContributionPretaxMaximumAnnualCompensationToTotalCompensationPercentage>
    <mhh:EmployeeBenefitPlanSharePurchaseAmount
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      decimals="0"
      id="F_bd36658d-22a1-4127-82a2-0676017e3b8b"
      unitRef="U_USD">25000</mhh:EmployeeBenefitPlanSharePurchaseAmount>
    <us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased
      contextRef="C_20f0fd0d-d235-4f97-9058-494e70abc104"
      decimals="0"
      id="F_82401b33-d0a8-4b4b-84e2-993f53266f37"
      unitRef="U_shares">3000</us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased>
    <us-gaap-ebp:EmployeeBenefitPlanEmployerContributionParticipantCompensationMatchedPercentage
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      decimals="2"
      id="F_1ad2a52c-ce83-483d-8c35-0ed9d8b8c0ad"
      unitRef="U_pure">0.85</us-gaap-ebp:EmployeeBenefitPlanEmployerContributionParticipantCompensationMatchedPercentage>
    <us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased
      contextRef="C_03e3b382-ec2b-45de-b6aa-a3c0b42f7418"
      decimals="0"
      id="F_2887b985-d933-4a4f-a32a-18902607b23f"
      unitRef="U_shares">11483</us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased>
    <mhh:EmployeeBenefitPlanPurchasePricePerShare
      contextRef="C_03e3b382-ec2b-45de-b6aa-a3c0b42f7418"
      decimals="4"
      id="F_a2023136-db1a-4d4f-898c-f1e5e51ad9af"
      unitRef="U_UnitedStatesOfAmericaDollarsShare">6.0945</mhh:EmployeeBenefitPlanPurchasePricePerShare>
    <us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      decimals="0"
      id="F_33a48fcd-f51b-474b-9e49-f9b52517b53f"
      unitRef="U_shares">3631</us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased>
    <mhh:EmployeeBenefitPlanPurchasePricePerShare
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      decimals="4"
      id="F_48556372-4796-4142-a951-0b77dfeedcc9"
      unitRef="U_UnitedStatesOfAmericaDollarsShare">5.933</mhh:EmployeeBenefitPlanPurchasePricePerShare>
    <us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased
      contextRef="C_bb55eca5-36f2-4969-93ba-6f94e006d315"
      decimals="0"
      id="F_4f262bee-2cd8-4939-8168-4d8ce5f6c505"
      unitRef="U_shares">21324</us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased>
    <mhh:EmployeeBenefitPlanPurchasePricePerShare
      contextRef="C_bb55eca5-36f2-4969-93ba-6f94e006d315"
      decimals="4"
      id="F_cbf60af3-be99-4627-9543-fdcb36934248"
      unitRef="U_UnitedStatesOfAmericaDollarsShare">6.375</mhh:EmployeeBenefitPlanPurchasePricePerShare>
    <us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased
      contextRef="C_b4a5e7bd-ebfb-45f5-967f-871d89f70fb4"
      decimals="0"
      id="F_f82fe2a2-40fc-418a-924f-43576ebc3e79"
      unitRef="U_shares">13531</us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased>
    <mhh:EmployeeBenefitPlanPurchasePricePerShare
      contextRef="C_b4a5e7bd-ebfb-45f5-967f-871d89f70fb4"
      decimals="4"
      id="F_2832c1ef-af61-4fc4-b4ba-fd2ca6620620"
      unitRef="U_UnitedStatesOfAmericaDollarsShare">6.4515</mhh:EmployeeBenefitPlanPurchasePricePerShare>
    <us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesSold
      contextRef="C_20f0fd0d-d235-4f97-9058-494e70abc104"
      decimals="0"
      id="F_21c2944a-ebd0-453d-9615-42b080aab1d6"
      unitRef="U_shares">600000</us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesSold>
    <mhh:EmployeeBenefitPlanSharesReservedForFutureIssuance
      contextRef="C_e08574ce-1e61-4121-9fba-b161564db7a8"
      decimals="0"
      id="F_95b9dd1d-6010-41a2-af9b-f66a2499ab3e"
      unitRef="U_UnitedStatesOfAmericaDollarsShare">416945</mhh:EmployeeBenefitPlanSharesReservedForFutureIssuance>
    <us-gaap-ebp:EmployeeBenefitPlanSummaryOfAccountingPolicyTextBlock
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      id="F_b68ecdd1-66eb-49b3-ae52-5b118bd70c7b">&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Note 2 &#x2013; Summary of Significant Accounting Policies&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;div style="font-size:9pt;font-family:Times New Roman;"&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Accounting Principles&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The financial statements and accompanying notes are prepared in accordance with accounting principles generally accepted in the United States of&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;America (&#x201c;U.S.&#x201d;).&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style="font-size:10pt;margin-top:0.65pt;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-indent:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-indent:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-indent:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;div style="font-size:9pt;font-family:Times New Roman;"&gt;&lt;p style="text-indent:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Use of Estimates&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.65pt;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The preparation of financial statements in conformity with U.S. generally accepted accounting principles requires the Plan administrator and the Company to make estimates that affect the amounts reported in the financial statements and accompanying notes. Actual results may differ from these estimates.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style="font-size:10pt;margin-top:0.65pt;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&#160;&lt;/p&gt;&lt;div style="font-size:9pt;font-family:Times New Roman;"&gt;&lt;p style="text-indent:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Payable to Purchase Shares&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;margin-right:4.907%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Payable to Purchase Shares represents cash contributed to the Plan in the offering period that began on July 1, 2025 and ended on December 31, 2025, that was used to purchase shares in January 2026.  Participants purchased, in the aggregate, &lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;3,631&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; shares in January 2026 at a purchase price of $&lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;5.9330&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; per share related to the final offering period ending December 31, 2025.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style="font-size:10pt;margin-top:0.5pt;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;div style="font-size:9pt;font-family:Times New Roman;"&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Payable to Participants&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;margin-right:2.38%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Payable to Participants primarily represents cash contributed to the Plan in amounts greater than the cost of the maximum number of shares allowed to be purchased in a fiscal year and contribution related to fractional shares which will be carried over to the next offering period or refunded at the request of the participant.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;  &lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</us-gaap-ebp:EmployeeBenefitPlanSummaryOfAccountingPolicyTextBlock>
    <us-gaap-ebp:EmployeeBenefitPlanBasisOfAccountingPolicyTextBlock
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      id="F_746b160a-8b98-430a-8bb2-fd5d94f4b346">&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Accounting Principles&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The financial statements and accompanying notes are prepared in accordance with accounting principles generally accepted in the United States of&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;America (&#x201c;U.S.&#x201d;).&lt;/span&gt;&lt;/p&gt;</us-gaap-ebp:EmployeeBenefitPlanBasisOfAccountingPolicyTextBlock>
    <us-gaap-ebp:EmployeeBenefitPlanUseOfEstimatePolicyTextBlock
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      id="F_a01053c0-e78c-4985-968d-c7d83c9cc851">&lt;p style="text-indent:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Use of Estimates&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.65pt;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The preparation of financial statements in conformity with U.S. generally accepted accounting principles requires the Plan administrator and the Company to make estimates that affect the amounts reported in the financial statements and accompanying notes. Actual results may differ from these estimates.&lt;/span&gt;&lt;/p&gt;</us-gaap-ebp:EmployeeBenefitPlanUseOfEstimatePolicyTextBlock>
    <us-gaap-ebp:EmployeeBenefitPlanContributionPolicyTextBlock
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      id="F_179abd51-b5e9-4800-9cfc-7bb746e83b9b">&lt;p style="text-indent:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Payable to Purchase Shares&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;margin-right:4.907%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Payable to Purchase Shares represents cash contributed to the Plan in the offering period that began on July 1, 2025 and ended on December 31, 2025, that was used to purchase shares in January 2026.  Participants purchased, in the aggregate, &lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;3,631&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; shares in January 2026 at a purchase price of $&lt;/span&gt;&lt;span style="font-size:9pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;5.9330&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; per share related to the final offering period ending December 31, 2025.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;</us-gaap-ebp:EmployeeBenefitPlanContributionPolicyTextBlock>
    <us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      decimals="0"
      id="F_0a111099-d7b4-4033-bf4f-935ae92e11ed"
      unitRef="U_shares">3631</us-gaap-ebp:EmployeeBenefitPlanInvestmentNumberOfSharesPurchased>
    <mhh:EmployeeBenefitPlanPurchasePricePerShare
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      decimals="4"
      id="F_a8d8f219-0bba-44fb-855f-666a237792dc"
      unitRef="U_UnitedStatesOfAmericaDollarsShare">5.933</mhh:EmployeeBenefitPlanPurchasePricePerShare>
    <us-gaap-ebp:EmployeeBenefitPlanPaymentToParticipantPolicyTextBlock
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      id="F_d02c5e59-87e2-4955-a0fd-58649d7c525d">&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Payable to Participants&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;margin-right:2.38%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Payable to Participants primarily represents cash contributed to the Plan in amounts greater than the cost of the maximum number of shares allowed to be purchased in a fiscal year and contribution related to fractional shares which will be carried over to the next offering period or refunded at the request of the participant.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;  &lt;/span&gt;&lt;/p&gt;</us-gaap-ebp:EmployeeBenefitPlanPaymentToParticipantPolicyTextBlock>
    <us-gaap-ebp:EmployeeBenefitPlanSubsequentEventTextBlock
      contextRef="C_c2d3837d-f67e-43e9-b0c0-ec8354fd8180"
      id="F_a0df136d-ac26-4299-bd57-ae3a3ada31c1">&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Note 3 &#x2013; Subsequent Events&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt;Termination of Employee Stock Purchase Plan&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:9pt;font-family:Times New Roman;font-style:italic;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:2.587%;font-size:10pt;margin-top:0.15pt;font-family:Times New Roman;margin-bottom:0;margin-right:2.38%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:9pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;On February 16, 2026, the Company&#x2019;s Board of Directors approved the termination of the Company&#x2019;s Employee Stock Purchase Plan. The termination will become effective on July 1, 2026, following completion of the current offering period ending June 30, 2026. Shares issuable under the current offering period will be issued in accordance with the terms of the plan, and no additional offering periods will commence thereafter.&lt;/span&gt;&lt;/p&gt;</us-gaap-ebp:EmployeeBenefitPlanSubsequentEventTextBlock>
</xbrl>
