| Schedule of Discontinued Operations | 
 The components of (loss) income from discontinued operations, net of tax for the three months ended March 31, 2024 and 2023, consist of the following (in thousands): 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
 | 
 | 
 | 
For the three months ended March 31, | 
 
 | 
 | 
 | 
 | 
 | 
 | 
2024 | 
 | 
2023 | 
 
| Revenues | 
 | 
 | 
 | 
 | 
 | 
$ | 
26,268  | 
 | 
 | 
$ | 
66,846  | 
 | 
 
Costs and operating expenses  | 
 | 
 | 
 | 
 | 
 | 
34,629  | 
 | 
 | 
65,689  | 
 | 
 
| (Loss) income from discontinued operations | 
 | 
 | 
 | 
 | 
 | 
(8,361) | 
 | 
 | 
1,158  | 
 | 
 
| Other FDS impairment | 
 | 
 | 
 | 
 | 
 | 
4,204  | 
 | 
 | 
—  | 
 | 
 
| Loss on the sale of discontinued operations | 
 | 
 | 
 | 
 | 
 | 
12,663  | 
 | 
 | 
—  | 
 | 
 
| Total (loss) income before income taxes | 
 | 
 | 
 | 
 | 
 | 
(25,228) | 
 | 
 | 
1,158  | 
 | 
 
| Provision for income taxes | 
 | 
 | 
 | 
 | 
 | 
(6,517) | 
 | 
 | 
160  | 
 | 
 
| (Loss) income from discontinued operations, net of tax | 
 | 
 | 
 | 
 | 
 | 
$ | 
(18,711) | 
 | 
 | 
$ | 
997  | 
 | 
 
  
The assets and liabilities reported as held-for-sale consist of the following (in thousands): 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
 | 
 | 
 | 
December 31, | 
 
 | 
 | 
 | 
2023 | 
 
| Assets | 
 | 
 | 
 | 
 
 | 
Cash and cash equivalents | 
 | 
 | 
$ | 
162  | 
 | 
 
 | 
Receivables, net  | 
 | 
 | 
10,805  | 
 | 
 
 | 
Contract assets | 
 | 
 | 
25,109  | 
 | 
 
 | 
Inventories | 
 | 
 | 
472  | 
 | 
 
 | 
Other current assets | 
 | 
 | 
6,154  | 
 | 
 
 | 
Property and equipment, net | 
 | 
 | 
6,102  | 
 | 
 
 | 
Intangible assets, net | 
 | 
 | 
3,505  | 
 | 
 
 | 
Goodwill | 
 | 
 | 
31,575  | 
 | 
 
 | 
Operating lease right-of-use assets | 
 | 
 | 
9,097  | 
 | 
 
 | 
Other assets | 
 | 
 | 
21  | 
 | 
 
 | 
    Total assets held-for-sale | 
 | 
 | 
$ | 
93,002  | 
 | 
 
| Liabilities | 
 | 
 | 
 | 
 
 | 
Accounts payable | 
 | 
 | 
$ | 
20,893  | 
 | 
 
 | 
Accrued expenses and other current liabilities | 
 | 
 | 
19,537  | 
 | 
 
 | 
Long-term operating lease obligations | 
 | 
 | 
8,942  | 
 | 
 
 | 
Deferred tax liabilities | 
 | 
 | 
4,019  | 
 | 
 
 | 
    Total liabilities held-for-sale | 
 | 
 | 
$ | 
53,391  | 
 | 
 
  
  
Selected financial information related to cash flows from discontinued operations is as follows (in thousands): 
  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
 | 
For the three months ended March 31, | 
 
 | 
 | 
2024 | 
 | 
2023 | 
 
| Depreciation and amortization | 
 | 
$ | 
150  | 
 | 
 | 
$ | 
794  | 
 | 
 
| Purchases of property and equipment | 
 | 
$ | 
—  | 
 | 
 | 
$ | 
25  | 
 | 
 
  
 |