XML 106 R93.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Leases - Narrative (Detail) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019
Lessee, Lease, Description [Line Items] |  |  |
Right of use (ROU) assets finance lease | $ 34,284 | $ 50,083 |
Finance Lease, Right-of-Use Asset, Statement of Financial Position [Extensible List] | Other assets, net of allowance for credit losses of $3,134 and $3,711 as of December 31, 2020 and 2021, respectively | Other assets, net of allowance for credit losses of $3,134 and $3,711 as of December 31, 2020 and 2021, respectively |
Operating lease cost | $ 81,637 | $ 88,596 | $ 74,436
Operating lease right of use asset impairment charge | 0 | 16,322 | 0
Operating lease, impairment loss | 0 | 18,084 | 0
Restructuring charges |  |  |
Lessee, Lease, Description [Line Items] |  |  |
Operating lease, impairment loss |  | 8,482 |
Effect of reclassification of foreign exchange (gains) losses |  |  |
Lessee, Lease, Description [Line Items] |  |  |
Operating lease cost | $ (333) | $ 161 | $ (105)
Maximum |  |  |
Lessee, Lease, Description [Line Items] |  |  |
Lease renewal term | 10 years |  |

X
- Definition Operating and finance lease renewal term. + References No definition available. + Details
Name: | g_OperatingAndFinanceLeaseRenewalTerm
Namespace Prefix: | g_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Operating Lease Right Of Use Asset Impairment Charge + References No definition available. + Details
Name: | g_OperatingLeaseRightOfUseAssetImpairmentCharge
Namespace Prefix: | g_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount, after accumulated amortization, of right-of-use asset from finance lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 45 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977 + Details
Name: | us-gaap_FinanceLeaseRightOfUseAsset
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Indicates line item in statement of financial position that includes finance lease right-of-use asset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=123391704&loc=SL77918631-209977 + Details
Name: | us-gaap_FinanceLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList
Namespace Prefix: | us-gaap_
Data Type: | enum2:enumerationSetItemType
Balance Type: | na
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_LesseeLeaseDescriptionLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of single lease cost, calculated by allocation of remaining cost of lease over remaining lease term. Includes, but is not limited to, single lease cost, after impairment of right-of-use asset, calculated by amortization of remaining right-of-use asset and accretion of lease liability. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 55 -Paragraph 53 -URI http://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980 + Details
Name: | us-gaap_OperatingLeaseCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of loss from impairment of right-of-use asset from operating lease. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 25 -Paragraph 6 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=123399704&loc=SL77918431-209957 + Details
Name: | us-gaap_OperatingLeaseImpairmentLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_RestructuringChargesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_MajorPropertyClassAxis=g_EffectOfReclassificationOfForeignExchangeGainsLossesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |