Income Taxes (Tables)
   | 
12 Months Ended | 
Dec. 31, 2022  | 
| Income Tax Disclosure [Abstract] | 
 
 | 
| Schedule of Components of Income Tax Provision (Benefit) | 
The components of income tax provision (benefit) attributable to the Company for the year ended December 31, 2022, 2021 and 2020, respectively, are as follows (in thousands):
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
 | 
Year Ended December 31, | 
 
 | 
 | 
2022 | 
 | 
2021 | 
 | 
2020 | 
 
| U.S. current income tax expense (benefit) | 
 | 
$ | 
61  | 
 | 
 | 
$ | 
290  | 
 | 
 | 
$ | 
(6,931) | 
 | 
 
| U.S. deferred income tax benefit | 
 | 
(207) | 
 | 
 | 
(23,740) | 
 | 
 | 
(12,330) | 
 | 
 
| Foreign current income tax expense | 
 | 
5,846  | 
 | 
 | 
8,852  | 
 | 
 | 
6,948  | 
 | 
 
| Foreign deferred income tax expense (benefit) | 
 | 
7,907  | 
 | 
 | 
(8,265) | 
 | 
 | 
144  | 
 | 
 
| Total | 
 | 
$ | 
13,607  | 
 | 
 | 
$ | 
(22,863) | 
 | 
 | 
$ | 
(12,169) | 
 | 
 
 
 | 
| Schedule of Effective Income Tax Rate Reconciliation | 
A reconciliation of the statutory federal income tax amount to the recorded expense is as follows (in thousands):
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
 | 
Year Ended December 31, | 
 
 | 
 | 
2022 | 
 | 
2021 | 
 | 
2020 | 
 
| Income (loss) before income taxes | 
 | 
$ | 
12,988  | 
 | 
 | 
$ | 
(124,293) | 
 | 
 | 
$ | 
(119,776) | 
 | 
 
| Statutory income tax rate | 
 | 
21  | 
% | 
 | 
21  | 
% | 
 | 
21  | 
% | 
 
| Expected income tax expense (benefit) | 
 | 
2,727  | 
 | 
 | 
(26,102) | 
 | 
 | 
(25,153) | 
 | 
 
| Change in tax rate | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
(161) | 
 | 
 
| Interest and penalties | 
 | 
1,677  | 
 | 
 | 
1,043  | 
 | 
 | 
—  | 
 | 
 
| Foreign income tax rate differential | 
 | 
4,311  | 
 | 
 | 
(282) | 
 | 
 | 
2,556  | 
 | 
 
| Foreign earnings (loss) not in reported income | 
 | 
1,565  | 
 | 
 | 
(336) | 
 | 
 | 
3,252  | 
 | 
 
| Foreign tax credits | 
 | 
(3,646) | 
 | 
 | 
(7,749) | 
 | 
 | 
(7,133) | 
 | 
 
| Withholding taxes | 
 | 
1,677  | 
 | 
 | 
(49) | 
 | 
 | 
1,019  | 
 | 
 
| Goodwill impairment | 
 | 
—  | 
 | 
 | 
52  | 
 | 
 | 
11,544  | 
 | 
 
| Other permanent differences | 
 | 
322  | 
 | 
 | 
426  | 
 | 
 | 
1,290  | 
 | 
 
| State tax benefit | 
 | 
(1,129) | 
 | 
 | 
(2,449) | 
 | 
 | 
(1,664) | 
 | 
 
| CARES act | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
(2,378) | 
 | 
 
| Return to provision | 
 | 
(116) | 
 | 
 | 
390  | 
 | 
 | 
894  | 
 | 
 
| Change in valuation allowance | 
 | 
6,219  | 
 | 
 | 
12,193  | 
 | 
 | 
3,765  | 
 | 
 
| Total | 
 | 
$ | 
13,607  | 
 | 
 | 
$ | 
(22,863) | 
 | 
 | 
$ | 
(12,169) | 
 | 
 
 
 | 
| Schedule of Deferred Tax Assets and Liabilities | 
Deferred tax liabilities attributable to the Company consisted of the following (in thousands):
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
 | 
Year Ended December 31, | 
 
 | 
 | 
2022 | 
 | 
2021 | 
 
| Deferred tax assets: | 
 | 
 | 
 | 
 | 
 
| Allowance for doubtful accounts | 
 | 
$ | 
598  | 
 | 
 | 
$ | 
1,241  | 
 | 
 
| Lease asset | 
 | 
4,287  | 
 | 
 | 
4,432  | 
 | 
 
| Intangible assets | 
 | 
952  | 
 | 
 | 
1,070  | 
 | 
 
| Accrued liabilities | 
 | 
926  | 
 | 
 | 
12,833  | 
 | 
 
| Net operating loss carryover | 
 | 
9,674  | 
 | 
 | 
13,447  | 
 | 
 
| Foreign tax credits | 
 | 
86,311  | 
 | 
 | 
83,780  | 
 | 
 
| Other | 
 | 
1,396  | 
 | 
 | 
1,652  | 
 | 
 
| Valuation allowance | 
 | 
(78,298) | 
 | 
 | 
(71,612) | 
 | 
 
| Deferred tax assets | 
 | 
25,846  | 
 | 
 | 
46,843  | 
 | 
 
 | 
 | 
 | 
 | 
 | 
 
| Deferred tax liabilities: | 
 | 
 | 
 | 
 | 
 
| Property and equipment | 
 | 
$ | 
(18,989) | 
 | 
 | 
$ | 
(28,126) | 
 | 
 
 | 
 | 
 | 
 | 
 | 
 
| Lease liability | 
 | 
(4,057) | 
 | 
 | 
(4,392) | 
 | 
 
| Other | 
 | 
(3,271) | 
 | 
 | 
(7,096) | 
 | 
 
| Deferred tax liabilities | 
 | 
(26,317) | 
 | 
 | 
(39,614) | 
 | 
 
| Net deferred tax (liability) asset  | 
 | 
$ | 
(471) | 
 | 
 | 
$ | 
7,229  | 
 | 
 
 | 
 | 
 | 
 | 
 | 
 
| Reflected in accompanying balance sheet as: | 
 | 
 | 
 | 
 | 
 
| Deferred income tax asset | 
 | 
$ | 
—  | 
 | 
 | 
$ | 
8,094  | 
 | 
 
| Deferred income tax liability | 
 | 
(471) | 
 | 
 | 
(865) | 
 | 
 
| Total | 
 | 
$ | 
(471) | 
 | 
 | 
$ | 
7,229  | 
 | 
 
 
 |