XML 63 R45.htm IDEA: XBRL DOCUMENT
v3.20.1

Revenue from Contracts with Customers - Summary of Disaggregation of Our Revenues by Contract Type and Operating Segment (Detail) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2019 | Dec. 31, 2018 | Dec. 31, 2017
Disaggregation of Revenue [Line Items] |  |  |
Revenues by contract type and operating segment | $ 193,574 | $ 177,164 | $ 147,882
Data and Analytics Services [Member] |  |  |
Disaggregation of Revenue [Line Items] |  |  |
Revenues by contract type and operating segment | 26,663 | 23,803 | 9,185
Data and Analytics Services [Member] | Time-and-Material Contract [Member] |  |  |
Disaggregation of Revenue [Line Items] |  |  |
Revenues by contract type and operating segment | 18,732 | 18,919 | 7,755
Data and Analytics Services [Member] | Fixed-Price Contract [Member] |  |  |
Disaggregation of Revenue [Line Items] |  |  |
Revenues by contract type and operating segment | 7,931 | 4,884 | 1,430
IT Staffing Services [Member] |  |  |
Disaggregation of Revenue [Line Items] |  |  |
Revenues by contract type and operating segment | 166,911 | 153,361 | 138,697
IT Staffing Services [Member] | Time-and-Material Contract [Member] |  |  |
Disaggregation of Revenue [Line Items] |  |  |
Revenues by contract type and operating segment | $ 166,911 | $ 153,361 | 138,594
IT Staffing Services [Member] | Fixed-Price Contract [Member] |  |  |
Disaggregation of Revenue [Line Items] |  |  |
Revenues by contract type and operating segment |  |  | $ 103

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
- Definition Amount, excluding tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value added and excise. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=118956577&loc=SL49130543-203045 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=118956577&loc=SL49130545-203045 + Details
Name: | us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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

X
- Details
Name: | us-gaap_ContractWithCustomerBasisOfPricingAxis=us-gaap_TimeAndMaterialsContractMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ContractWithCustomerBasisOfPricingAxis=us-gaap_FixedPriceContractMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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