XML 82 R47.htm IDEA: XBRL DOCUMENT v3.20.1
Business Combinations - Additional Information (Detail)
$ / shares in Units, shares in Millions
3 Months Ended 12 Months Ended
Jul. 13, 2017
USD ($)
Jul. 07, 2017
USD ($)
Agreement
$ / shares
shares
Dec. 31, 2019
USD ($)
Sep. 30, 2019
USD ($)
Jun. 30, 2019
USD ($)
Mar. 31, 2019
USD ($)
Dec. 31, 2018
USD ($)
Sep. 30, 2018
USD ($)
Jun. 30, 2018
USD ($)
Mar. 31, 2018
USD ($)
Dec. 31, 2019
USD ($)
Dec. 31, 2018
USD ($)
Dec. 31, 2017
USD ($)
Jul. 31, 2018
USD ($)
Apr. 20, 2018
USD ($)
Apr. 19, 2018
USD ($)
Apr. 19, 2017
USD ($)
Dec. 31, 2016
USD ($)
Business Acquisition [Line Items]                                    
Fair value of contingent consideration liability                         $ 17,125,000          
Contingent consideration liability             $ 6,069,000         $ 6,069,000 17,125,000         $ 0
Revolving credit availability     $ 13,000,000       9,000,000       $ 13,000,000 9,000,000            
Revenues     50,360,000 $ 49,543,000 $ 48,472,000 $ 45,199,000 44,645,000 $ 44,292,000 $ 44,894,000 $ 43,333,000 193,574,000 177,164,000 147,882,000          
Net income     2,274,000 $ 1,949,000 $ 5,958,000 $ 964,000 $ 874,000 $ 1,620,000 $ 2,817,000 $ 1,380,000 11,145,000 6,691,000 1,626,000          
PNC Bank, National Association [Member]                                    
Business Acquisition [Line Items]                                    
Credit agreement provides for total aggregate commitment $ 65,000,000                                  
Share price for purposes of calculation (in dollars per share) | $ / shares   $ 0.01                                
Gross proceeds from private placement 6,000,000                                  
Revolving Line of Credit [Member]                                    
Business Acquisition [Line Items]                                    
Credit agreement provides for total aggregate commitment     32,500,000               32,500,000       $ 32,500,000      
Revolving credit availability     22,500,000               22,500,000       22,500,000 $ 27,500,000 $ 27,500,000  
Revolving Line of Credit [Member] | Swing Loans [Member]                                    
Business Acquisition [Line Items]                                    
Credit agreement provides for total aggregate commitment     $ 5,000,000               $ 5,000,000       $ 5,000,000 $ 3,000,000 $ 3,000,000  
Term Loan Facility [Member] | PNC Bank, National Association [Member]                                    
Business Acquisition [Line Items]                                    
Term loan facility 30,500,000                                  
Delayed Draw Term Loan Facility [Member] | PNC Bank, National Association [Member]                                    
Business Acquisition [Line Items]                                    
Term loan facility 7,000,000                                  
Ashok Trivedi and Sunil Wadhwani [Member] | PNC Bank, National Association [Member]                                    
Business Acquisition [Line Items]                                    
Stock issued (in shares) | shares   1.7                                
Maximum [Member] | Revolving Line of Credit [Member] | PNC Bank, National Association [Member]                                    
Business Acquisition [Line Items]                                    
Revolving credit availability 27,500,000                                  
Revolving credit facility 37,500,000                                  
Info Trellis Inc [Member]                                    
Business Acquisition [Line Items]                                    
Date of acquisition                     Jul. 13, 2017              
Business acquisition, description                     On July 7, 2017, Mastech Digital, Inc., through its wholly-owned subsidiaries Mastech InfoTrellis, Inc., Mastech InfoTrellis Digital, Ltd., Mastech Digital Data, Inc. and Mastech Digital Private Limited (collectively, the “Company Entities”), entered into two Asset Purchase Agreements and a Share Purchase Agreement (collectively, the “Purchase Agreements”) to acquire substantially all of the assets comprising the consulting services business in the areas of master data management, data integration and big data (the “Acquired Business”) of InfoTrellis Inc., InfoTrellis, Inc. and 2291496 Ontario Inc., including all outstanding shares of InfoTrellis India Private Limited (collectively, “InfoTrellis”). The aforementioned transaction was closed on July 13, 2017.              
Cash consideration 35,750,000                                  
Working capital adjustments excluded (861,000)                                  
Contingent consideration in deferred cash payments 19,250,000                                  
Fair value of contingent consideration liability $ 17,125,000                                  
Contingent consideration liability                           $ 0        
Transaction costs related to acquisition                         2,000,000          
Reversal of transaction costs related to acquisition                     $ 110,000 $ 140,000            
Revenues                         9,200,000          
Net income                         $ 1,100,000          
Info Trellis Inc [Member] | Asset Purchase Agreements [Member]                                    
Business Acquisition [Line Items]                                    
Number of purchase agreement | Agreement   2                                
Info Trellis Inc [Member] | Share Purchase Agreement [Member]                                    
Business Acquisition [Line Items]                                    
Number of purchase agreement | Agreement   1                                
Info Trellis Inc [Member] | Actual Year 1 EBIT [Member]                                    
Business Acquisition [Line Items]                                    
EBIT set as milestone   $ 10,000,000                                
Info Trellis Inc [Member] | Actual Year 1 EBIT [Member] | Maximum [Member]                                    
Business Acquisition [Line Items]                                    
Fair value of contingent consideration liability   8,250,000                                
Info Trellis Inc [Member] | Actual Year 2 EBIT [Member]                                    
Business Acquisition [Line Items]                                    
EBIT set as milestone   10,700,000                                
Info Trellis Inc [Member] | Actual Year 2 EBIT [Member] | Maximum [Member]                                    
Business Acquisition [Line Items]                                    
Fair value of contingent consideration liability   $ 11,000,000