XML 70 R51.htm IDEA: XBRL DOCUMENT
v3.25.0.1

Leases (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2024
Leases. |
Schedule of assets and liabilities related to operating leases | ​
​ | ​ | ​ | ​ | ​ | ​ | ​
December 31, |  | 2024 |  | 2023
(in thousands) | ​ | ​ | ​ | ​ | ​ | ​
Assets: |  |  |  |  | ​ |
Operating lease right-of-use assets | ​ | $ | 27,465 | ​ | $ | 24,537
Finance lease right-of-use assets | ​ | ​ | 4,400 | ​ | ​ | 1,036
Total lease assets | ​ | $ | 31,865 | ​ | $ | 25,573
​ | ​ | ​ | ​ | ​ | ​ | ​
Liabilities: | ​ | ​ | ​ | ​ | ​ | ​
Current portion of operating leases | ​ | $ | 7,108 | ​ | $ | 7,367
Current portion of finance lease liabilities and finance obligations | ​ | ​ | 3,522 | ​ | ​ | 375
Long-term finance lease liabilities | ​ | ​ | 559 | ​ | ​ | 819
Long-term operating lease liabilities | ​ | ​ | 21,724 | ​ | ​ | 18,600
Total lease liabilities | ​ | $ | 32,913 | ​ | $ | 27,161
Schedule of lease cost | ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Year ended December 31, |  | 2024 | ​ | 2023 | ​ | 2022
(in thousands) | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Finance lease cost | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Amortization of leased assets | ​ | $ | 265 | ​ | $ | 129 | ​ | $ | 3,390
Interest on lease liabilities | ​ | ​ | 174 | ​ | ​ | 48 | ​ | ​ | 283
Total finance lease cost | ​ | $ | 439 | ​ | $ | 177 | ​ | $ | 3,673
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Operating lease cost | ​ | $ | 17,206 | ​ | $ | 15,096 | ​ | $ | 9,615
Short-term lease cost | ​ | ​ | 2,289 | ​ |  | 1,862 | ​ |  | 9,192
Variable lease cost | ​ | ​ | 855 | ​ |  | 774 | ​ |  | 647
Sublease income | ​ | ​ | (1,943) | ​ |  | (1,400) | ​ |  | (1,021)
Total operating lease cost | ​ | $ | 18,407 | ​ | $ | 16,332 | ​ | $ | 18,433
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Total lease cost | ​ | $ | 18,846 | ​ | $ | 16,509 | ​ | $ | 22,106
Schedule of other information of leases | ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
As of December 31, | ​ | 2024 | ​ | 2023 | ​
Cash paid for amounts included in the measurement of lease liabilities – operating leases (in thousands) | ​ | $ | 12,230 | ​ | $ | 12,475 | ​
Cash paid for amounts included in the measurement of lease liabilities – finance lease and finance obligations (in thousands) | ​ | $ | 799 | ​ | $ | 515 | ​
ROU assets obtained in exchange for operating lease liabilities (in thousands) | ​ | $ | 15,094 | ​ | $ | 8,151 | ​
ROU assets obtained in exchange for finance lease liabilities (in thousands) | ​ | $ | 3,622 | ​ | $ | 1,036 | ​
Weighted average remaining lease term – finance lease (years) | ​ | ​ | 3.00 | ​ | ​ | 4.00 | ​
Weighted average remaining lease term – operating leases (years) | ​ | ​ | 5.96 | ​ | ​ | 5.06 | ​
Weighted average discount rate – finance lease | ​ | ​ | 2.3 | % | ​ | 2.3 | %
Weighted average discount rate – operating leases | ​ | ​ | 4.57 | % | ​ | 4.42 | %
Schedule of maturity of operating lease liabilities and finance obligations | ​
​ | ​ | ​ | ​ | ​ | ​ | ​
As of December 31, |  | ​ | 2024
(in thousands) | ​ | ​ | Operating | ​ | ​ | Finance
2025 |  | $ | 8,231 |  | ​ | 4,095
2026 |  | ​ | 7,216 |  | ​ | 283
2027 |  | ​ | 4,733 |  | ​ | 288
2028 |  | ​ | 3,036 |  | ​ | —
2029 |  | ​ | 2,040 |  | ​ | —
Thereafter |  | ​ | 7,784 |  | ​ | —
Total lease payments |  | ​ | 33,040 |  | ​ | 4,666
Less: Amounts representing interest |  | ​ | (4,208) |  | ​ | (585)
Present value of lease liabilities | ​ | $ | 28,832 | ​ | $ | 4,081
​
Schedule of maturity of finance lease liabilities and finance obligations | ​
​ | ​ | ​ | ​ | ​ | ​ | ​
As of December 31, |  | ​ | 2024
(in thousands) | ​ | ​ | Operating | ​ | ​ | Finance
2025 |  | $ | 8,231 |  | ​ | 4,095
2026 |  | ​ | 7,216 |  | ​ | 283
2027 |  | ​ | 4,733 |  | ​ | 288
2028 |  | ​ | 3,036 |  | ​ | —
2029 |  | ​ | 2,040 |  | ​ | —
Thereafter |  | ​ | 7,784 |  | ​ | —
Total lease payments |  | ​ | 33,040 |  | ​ | 4,666
Less: Amounts representing interest |  | ​ | (4,208) |  | ​ | (585)
Present value of lease liabilities | ​ | $ | 28,832 | ​ | $ | 4,081
​

X
- Definition Tabular disclosure of assets and liabilities related to operating leases. + References No definition available. + Details
Name: | res_AssetsAndLiabilitiesRelatedToOperatingLeasesTableTextBlock
Namespace Prefix: | res_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of aging analysis for financing receivable. + References No definition available. + Details
Name: | res_ScheduleOfOtherInformationOfLeasesTableTextBlock
Namespace Prefix: | res_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of undiscounted cash flows of finance lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to finance lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147478964/842-20-50-6 + Details
Name: | us-gaap_FinanceLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org/1943274/2147478964/842-20-50-4 + Details
Name: | us-gaap_LeaseCostTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147478964/842-20-50-6 + Details
Name: | us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration