Derivatives and Hedge Accounting - Summary of Effect of Foreign Currency Exchange Contracts (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2023 |
Jun. 30, 2022 |
Jun. 30, 2023 |
Jun. 30, 2022 |
|
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Unrealized gain/(loss) recognized in AOCI | $ 8,851 | $ (14,632) | $ 16,145 | $ (15,149) |
| Gain/(loss) recognized in unaudited consolidated statements of income | 324 | 1,423 | 429 | 3,179 |
| Cash flow hedge | Derivatives in cash flow hedging relationships | ||||
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Unrealized gain/(loss) recognized in AOCI | 8,851 | (14,632) | 16,145 | (15,149) |
| Fair value hedge | Gain/ (loss) on foreign currency exchange contracts | Derivatives not designated as hedging instruments | ||||
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Gain/(loss) recognized in unaudited consolidated statements of income | $ (370) | $ (5,457) | $ 2,158 | $ (6,356) |