XML 49 R11.htm IDEA: XBRL DOCUMENT v3.21.2
Accounts Receivable and Allowance for Doubtful Accounts
6 Months Ended
Jun. 30, 2021
Receivables [Abstract]  
ACCOUNTS RECEIVABLE AND ALLOWANCE FOR DOUBTFUL ACCOUNTS ACCOUNTS RECEIVABLE AND ALLOWANCE FOR DOUBTFUL ACCOUNTS
Accounts receivable consists of the following (in thousands):
June 30, 2021December 31, 2020
Trade accounts receivable$182,015 $174,604 
Costs in excess of billings48,594 26,915 
Total accounts receivables230,609 201,519 
Less allowance for doubtful accounts and contract assets(5,294)(3,529)
Accounts receivable, net$225,315 $197,990 

Refer to Note 4 "Revenue" concerning the Company's costs in excess of billings.

The following table provides a roll-forward of the allowance for credit losses, for the six month period ended June 30, 2021, that is deducted from the amortized cost basis of accounts receivable to present the net amount expected to be collected.
Beginning balance as of January 1, 2021$3,529 
Bad debt expense, net of recoveries1,297 
Accounts written off against allowance and other adjustments468 
Ending balance as of June 30, 2021$5,294