XML 61 R46.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Leases (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2023
Leases. |
Schedule of assets and liabilities related to operating leases | ​
​ | ​ | ​ | ​ | ​ | ​ | ​
December 31, |  | 2023 |  | 2022
(in thousands) | ​ | ​ | ​ | ​ | ​ | ​
Assets: |  |  |  |  | ​ |
Operating lease right-of-use assets | ​ | $ | 24,537 | ​ | $ | 28,864
Finance lease right-of-use assets | ​ | ​ | 1,036 | ​ | ​ | —
Total lease assets | ​ | $ | 25,573 | ​ | $ | 28,864
​ | ​ | ​ | ​ | ​ | ​ | ​
Liabilities: | ​ | ​ | ​ | ​ | ​ | ​
Current portion of operating leases | ​ | $ | 7,367 | ​ | $ | 10,728
Current portion of finance lease liabilities and finance obligations | ​ | ​ | 375 | ​ | ​ | —
Long-term finance lease liabilities | ​ | ​ | 819 | ​ | ​ | —
Long-term operating lease liabilities | ​ | ​ | 18,600 | ​ | ​ | 19,517
Total lease liabilities | ​ | $ | 27,161 | ​ | $ | 19,517
Schedule of lease cost | ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Year ended December 31, |  | 2023 | ​ | 2022 | ​ | 2021
(in thousands) | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Finance lease cost | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Amortization of leased assets | ​ | $ | 129 | ​ | $ | 3,390 | ​ | $ | 1,452
Interest on lease liabilities | ​ | ​ | 13 | ​ | ​ | 283 | ​ | ​ | 116
Total finance lease cost | ​ | $ | 142 | ​ | $ | 3,673 | ​ | $ | 1,568
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Interest on finance obligation | ​ | $ | 35 | ​ | $ | — | ​ | $ | —
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Operating lease cost | ​ | $ | 15,096 | ​ | $ | 9,615 | ​ | $ | 7,580
Short-term lease cost | ​ | ​ | 1,862 | ​ |  | 9,192 | ​ |  | 3,626
Variable lease cost | ​ | ​ | 774 | ​ |  | 647 | ​ |  | 772
Sublease income | ​ | ​ | (1,400) | ​ |  | (1,021) | ​ |  | (831)
Total operating lease cost | ​ | $ | 16,332 | ​ | $ | 18,433 | ​ | $ | 11,147
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Total lease cost | ​ | $ | 16,509 | ​ | $ | 22,106 | ​ | $ | 12,715
Schedule of other information of leases | ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Year ended December 31, |  | 2023 | ​ | 2022 | ​ | 2021
(in thousands) | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Finance lease cost | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Amortization of leased assets | ​ | $ | 129 | ​ | $ | 3,390 | ​ | $ | 1,452
Interest on lease liabilities | ​ | ​ | 13 | ​ | ​ | 283 | ​ | ​ | 116
Total finance lease cost | ​ | $ | 142 | ​ | $ | 3,673 | ​ | $ | 1,568
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Interest on finance obligation | ​ | $ | 35 | ​ | $ | — | ​ | $ | —
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Operating lease cost | ​ | $ | 15,096 | ​ | $ | 9,615 | ​ | $ | 7,580
Short-term lease cost | ​ | ​ | 1,862 | ​ |  | 9,192 | ​ |  | 3,626
Variable lease cost | ​ | ​ | 774 | ​ |  | 647 | ​ |  | 772
Sublease income | ​ | ​ | (1,400) | ​ |  | (1,021) | ​ |  | (831)
Total operating lease cost | ​ | $ | 16,332 | ​ | $ | 18,433 | ​ | $ | 11,147
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Total lease cost | ​ | $ | 16,509 | ​ | $ | 22,106 | ​ | $ | 12,715
​ Other Information:
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
As of December 31, | ​ | 2023 | ​ | 2022 | ​
Cash paid for amounts included in the measurement of lease liabilities – operating leases (in thousands) | ​ | $ | 12,475 | ​ | $ | 8,742 | ​
Cash paid for amounts included in the measurement of lease liabilities – finance lease and finance obligations (in thousands) | ​ | $ | 515 | ​ | $ | — | ​
ROU assets obtained in exchange for operating lease liabilities (in thousands) | ​ | $ | 8,151 | ​ | $ | 12,882 | ​
Weighted average remaining lease term – finance lease (years) | ​ | ​ | 4.00 | ​ | ​ | — | ​
Weighted average remaining lease term – operating leases (years) | ​ | ​ | 5.06 | ​ | ​ | 5.14 | ​
Weighted average remaining term – finance obligations (months) | ​ | ​ | 8.00 | ​ | ​ | — | ​
Weighted average discount rate – finance lease | ​ | ​ | 2.3 | % | ​ | — | %
Weighted average discount rate – operating leases | ​ | ​ | 4.42 | % | ​ | 3.93 | %
Weighted average discount rate – finance obligations | ​ | ​ | 8.40 | % | ​ | — | %
Schedule of maturity of lease liabilities and finance obligations | ​
​ | ​ | ​ | ​ | ​
As of December 31, |  | 2023 |
(in thousands) | ​ | ​ | ​ | ​
2024 |  | $ | 9,197 |
2025 |  | ​ | 5,856 |
2026 |  | ​ | 4,957 |
2027 |  | ​ | 3,863 |
2028 |  | ​ | 2,291 |
Thereafter |  | ​ | 4,487 |
Total lease payments |  | ​ | 30,651 |
Less: Amounts representing interest |  | ​ | (3,490) |
Present value of lease liabilities | ​ | $ | 27,161 | ​
​

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 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