XML 36 R29.htm IDEA: XBRL DOCUMENT
v3.25.3

Revenue from Contracts with Customers - Additional Information (Detail) - Agreement | 3 Months Ended | 9 Months Ended
--- | --- | ---
Sep. 30, 2025 | Sep. 30, 2024 | Sep. 30, 2025 | Sep. 30, 2024
Sales Revenue Net [Member] | Fidelity, CGI and Populus [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Number of customers | 3 | 2 | 3 |
Sales Revenue Net [Member] | Revenue from Rights Concentration Risk [Member] | Minimum [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Percentage of total accounts receivable | 10.00% |  | 10.00% | 10.00%
Sales Revenue Net [Member] | Revenue from Rights Concentration Risk [Member] | CGI [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Percentage of total accounts receivable | 10.40% | 14.00% | 11.10% | 15.40%
Sales Revenue Net [Member] | Revenue from Rights Concentration Risk [Member] | Allegis [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Percentage of total accounts receivable |  | 11.70% |  | 10.60%
Sales Revenue Net [Member] | Revenue from Rights Concentration Risk [Member] | Fidelity [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Percentage of total accounts receivable | 18.10% |  | 15.40% |
Sales Revenue Net [Member] | Revenue from Rights Concentration Risk [Member] | Populus [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Percentage of total accounts receivable | 12.70% |  | 12.30% |
Top Ten Customers [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue percentage of total revenue | 59.00% | 56.00% | 58.00% | 54.00%
Data and Analytics Services [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Percent of revenue from services |  |  | 100.00% |

X
- Definition Customer percentage of revenue. + References No definition available. + Details
Name: | mhh_CustomerPercentageOfRevenue
Namespace Prefix: | mhh_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of customers accounted for revenues. + References No definition available. + Details
Name: | mhh_NumberOfCustomersAccountedForRevenues
Namespace Prefix: | mhh_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Revenue percentage to aggregate revenue. + References No definition available. + Details
Name: | mhh_RevenuePercentageToAggregateRevenue
Namespace Prefix: | mhh_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition For an entity that discloses a concentration risk in relation to quantitative amount, which serves as the "benchmark" (or denominator) in the equation, this concept represents the concentration percentage derived from the division. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 42 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-42 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 275 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 18 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482861/275-10-50-18 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 275 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 18 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482861/275-10-50-18 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 275 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 20 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482861/275-10-50-20 Reference 5: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 275 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 18 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482861/275-10-50-18 Reference 6: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 275 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 18 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482861/275-10-50-18 Reference 7: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 275 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 18 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482861/275-10-50-18 + Details
Name: | us-gaap_ConcentrationRiskPercentage1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
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 Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 7 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479806/606-10-50-7 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479806/606-10-50-5 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 91 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479777/606-10-55-91 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 91 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479777/606-10-55-91 Reference 5: http://www.xbrl.org/2003/role/exampleRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 91 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479777/606-10-55-91 Reference 6: http://www.xbrl.org/2003/role/exampleRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 91 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479777/606-10-55-91 Reference 7: http://www.xbrl.org/2003/role/exampleRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 91 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479777/606-10-55-91 Reference 8: http://www.xbrl.org/2003/role/exampleRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 91 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479777/606-10-55-91 Reference 9: http://www.xbrl.org/2003/role/exampleRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 91 -Subparagraph (g) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479777/606-10-55-91 + Details
Name: | us-gaap_DisaggregationOfRevenueLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_ConcentrationRiskByBenchmarkAxis=us-gaap_SalesRevenueNetMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=mhh_FidelityCgiAndPopulusMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByTypeAxis=us-gaap_RevenueFromRightsConcentrationRiskMember
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_MajorCustomersAxis=mhh_CgiMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=mhh_AllegisMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=mhh_FidelityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=mhh_PopulusMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByBenchmarkAxis=mhh_TopTenCustomersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=mhh_DataAndAnalyticsServicesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |