XML 60 R46.htm IDEA: XBRL DOCUMENT v3.23.1
Business Combinations - Additional Information (Detail) - USD ($)
12 Months Ended
Oct. 01, 2020
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Business Acquisition [Line Items]        
Increase in Credit Facility $ 15,000,000      
Revenues   $ 242,238,000 $ 222,012,000 $ 194,101,000
Net income (loss)   $ 8,712,000 12,221,000 9,861,000
Revolving Line of Credit [Member]        
Business Acquisition [Line Items]        
Credit agreement provides for total aggregate commitment 30,000,000      
Term Loan Facility [Member]        
Business Acquisition [Line Items]        
Credit agreement provides for total aggregate commitment 17,500,000      
Maximum [Member] | Revolving Line of Credit [Member]        
Business Acquisition [Line Items]        
Increase in Credit Facility 7,500,000      
Maximum [Member] | Term Loan Facility [Member]        
Business Acquisition [Line Items]        
Increase in Credit Facility 10,000,000      
Amber Leaf Partners Inc [Member]        
Business Acquisition [Line Items]        
Business acquisition, description   On October 1, 2020, Mastech Digital, Inc., through its wholly-owned subsidiary Mastech Digital Data, Inc., acquired all of the outstanding shares of AmberLeaf Partners, Inc. (“AmberLeaf”). Under the terms of the Share Purchase Agreement executed in connection with the AmberLeaf acquisition (the “Purchase Agreement”)    
Cash consideration 9,664,000      
Contingent consideration in deferred cash payments $ 4,500,000      
Transaction costs related to acquisition     $ 140,000,000 650,000
Write off of Deferred Finance Costs       185,000
Revenues       2,400,000
Net income (loss)       $ (400,000)