XML 41 R31.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Revenue from Contracts with Customers - Additional Information (Detail) - Agreement | 3 Months Ended | 6 Months Ended
--- | --- | ---
Jun. 30, 2022 | Jun. 30, 2021 | Jun. 30, 2022 | Jun. 30, 2021
Disaggregation of Revenue [Line Items] |  |  |  |
Percentage of billing expense revenues |  |  | 2.00% |
Sales Revenue Net [Member] | Revenue from Rights Concentration Risk [Member] | CGI [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Percentage of total revenues | 22.30% | 14.80% | 20.10% | 14.90%
Number of customers | 1 | 1 | 1 | 1
Top Ten Customers [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue percentage of total revenue | 52.00% | 48.00% | 52.00% | 48.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 Maximum percentage of billable expenses on revenue from customer. + References No definition available. + Details
Name: | mhh_MaximumPercentageOfBillableExpensesOnRevenueFromCustomer
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 -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 42 -URI https://asc.fasb.org/extlink&oid=126901519&loc=d3e9054-108599 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 18 -URI https://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 20 -URI https://asc.fasb.org/extlink&oid=123594938&loc=d3e13531-108611 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 21 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=123594938&loc=d3e13537-108611 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 20 -URI https://asc.fasb.org/extlink&oid=99393423&loc=d3e6404-108592 + 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 No definition available. + 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: | us-gaap_ConcentrationRiskByTypeAxis=us-gaap_RevenueFromRightsConcentrationRiskMember
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: | 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: |