XML 96 R77.htm IDEA: XBRL DOCUMENT
v3.25.0.1

Income Taxes - Summary of reconciliation between federal statutory rate and effective tax rate (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Tax reconciliation (amount) |  |  |
Federal statutory rate | $ 23,688 | $ 53,811 | $ 60,823
State income taxes, net of federal benefit | 2,491 | 5,401 | 5,148
Tax credits | (1,036) | (703) | (424)
Change in unrecognized tax benefits | (1,637) | 251 | 144
Non-deductible expenses | 1,833 | 2,154 | 2,254
Cross-border tax laws | (315) | (256) | (250)
Change in valuation allowance |  |  | (174)
Interest related to tax matters | (2,189) | (1,757) | (1,306)
Other | (787) | 1,394 | 4,189
Total income tax provision | $ 21,358 | $ 61,130 | $ 71,269
Tax reconciliation (rate) |  |  |
Federal statutory rate | 21.00% | 21.00% | 21.00%
State income taxes, net of federal benefit | 2.20% | 2.10% | 1.80%
Tax credits | (0.90%) | (0.30%) | (0.10%)
Change in unrecognized tax benefits | (1.50%) | 0.10% |
Non-deductible expenses | 1.60% | 0.90% | 0.80%
Cross-border tax laws | (0.30%) | (0.10%) | (0.10%)
Change in valuation allowance |  |  | (0.10%)
Interest related to tax matters | (1.90%) | (0.70%) | (0.50%)
Other | (0.70%) | 0.60% | 1.50%
Effective tax rate | 18.90% | 23.90% | 24.60%
Canada | Canada |  |  |
Tax reconciliation (amount) |  |  |
Other | $ 61 | $ (500) | $ (541)
Other foreign jurisdiction | $ (1,187) | $ 614 | $ 573
Tax reconciliation (rate) |  |  |
Other | 0.10% | (0.20%) | (0.20%)
Other foreign jurisdiction | (1.10%) | 0.20% | 0.20%
Other foreign jurisdiction | Other foreign jurisdiction |  |  |
Tax reconciliation (amount) |  |  |
Other foreign jurisdiction | $ 436 | $ 721 | $ 833
Tax reconciliation (rate) |  |  |
Other foreign jurisdiction | 0.40% | 0.30% | 0.30%

X
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to change in unrecognized tax benefits. + References No definition available. + Details
Name: | res_EffectiveIncomeTaxRateReconciliationChangeInUnrecognizedTaxBenefits
Namespace Prefix: | res_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to changes in unrecognized tax benefits. + References No definition available. + Details
Name: | res_EffectiveIncomeTaxRateReconciliationChangeInUnrecognizedTaxBenefitsPercent
Namespace Prefix: | res_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to foreign income tax expense (benefit) regarding income or expense other than change in valuation allowance. + References No definition available. + Details
Name: | res_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferentialOtherThanChangeInValuationAllowance
Namespace Prefix: | res_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations applicable to statutory income tax expense (benefit) outside of the country of domicile regarding expense or income other than change in valuation allowance. + References No definition available. + Details
Name: | res_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferentialOtherThanChangeInValuationAllowance3
Namespace Prefix: | res_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to interest related to tax matters. + References No definition available. + Details
Name: | res_EffectiveIncomeTaxRateReconciliationInterestRelatedToTaxMatters
Namespace Prefix: | res_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to interest related to tax matters. + References No definition available. + Details
Name: | res_EffectiveIncomeTaxRateReconciliationInterestRelatedToTaxMattersPercent
Namespace Prefix: | res_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 231 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-231 + Details
Name: | us-gaap_EffectiveIncomeTaxRateContinuingOperations
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of domestic federal statutory tax rate applicable to pretax income (loss). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 231 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-231 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 6.I.1.Q1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479360/740-10-S99-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(h)(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480678/235-10-S99-1 + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to changes in the valuation allowance for deferred tax assets. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 231 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-231 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (a)(6) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(h)(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480678/235-10-S99-1 + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of reported income tax expense (benefit) from difference to expected income tax expense (benefit) computed by applying statutory federal (national) income tax rate to pretax income (loss) from continuing operation, attributable to cross-border tax law. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (a)(4) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage of reported income tax expense (benefit) from difference to expected income tax expense (benefit) computed by applying statutory federal (national) income tax rate to pretax income (loss) from continuing operation, attributable to cross-border tax law. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (a)(4) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectPercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations applicable to statutory income tax expense (benefit) outside of the country of domicile. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 231 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-231 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (a)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 5: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(h)(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480678/235-10-S99-1 + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to nondeductible expenses. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (a)(7) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(h)(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480678/235-10-S99-1 + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpense
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to other adjustments. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 231 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-231 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Subparagraph (b)(3) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(h)(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480678/235-10-S99-1 + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations applicable to state and local income tax expense (benefit), net of federal tax expense (benefit). + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 231 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-231 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(h)(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480678/235-10-S99-1 + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to tax credits. Including, but not limited to, research credit, foreign tax credit, investment tax credit, and other tax credits. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (a)(5) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(h)(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480678/235-10-S99-1 + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 270 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482964/270-10-50-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 32 -Subparagraph (ee) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-32 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 231 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-231 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 250 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 9 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483443/250-10-50-9 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 6.I.7) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479360/740-10-S99-1 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 250 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483443/250-10-50-8 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-10 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 22 -Subparagraph (h) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-22 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(9)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477250/944-220-S99-1 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Subparagraph (a) -SubTopic 20 -Topic 740 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482659/740-20-45-2 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(h)) -SubTopic 10 -Topic 235 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480678/235-10-S99-1 + Details
Name: | us-gaap_IncomeTaxExpenseBenefit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to increase (decrease) in the valuation allowance for deferred tax assets. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 231 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-231 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (a)(6) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 + Details
Name: | us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to foreign income tax expense (benefit). + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 231 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-231 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (a)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 + Details
Name: | us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of income tax expense or benefit for the period computed by applying the domestic federal statutory tax rates to pretax income from continuing operations. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 231 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-231 + Details
Name: | us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to nondeductible expenses. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (a)(7) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 + Details
Name: | us-gaap_IncomeTaxReconciliationNondeductibleExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to other adjustments. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 231 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-231 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Subparagraph (b)(3) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 + Details
Name: | us-gaap_IncomeTaxReconciliationOtherAdjustments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to state and local income tax expense (benefit). + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 231 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482663/740-10-55-231 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 + Details
Name: | us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to tax credits. Including, but not limited to, research credit, foreign tax credit, investment tax credit, and other tax credits. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12A -Subparagraph (a)(5) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12A Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-12 + Details
Name: | us-gaap_IncomeTaxReconciliationTaxCredits
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=stpr_CA
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=country_CA
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeTaxAuthorityAxis=us-gaap_ForeignTaxJurisdictionOtherMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=res_OtherForeignJurisdictionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |