XML 53 R38.htm IDEA: XBRL DOCUMENT
v3.20.4

Leases (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2020
Leases |
Schedule of operating leased assets and liabilities | ​
​ | ​ | ​ | ​ | ​ | ​ | ​
December 31, |  |  | 2020 |  | 2019
(in thousands) | ​ | ​ | ​ | ​ | ​ | ​
Assets: |  |  |  |  | ​ |
Operating lease right-of-use assets | ​ | $ | 27,270 | ​ | $ | 33,850
​ | ​ | ​ | ​ | ​ | ​ | ​
Liabilities: | ​ | ​ | ​ | ​ |  |
Current portion of operating leases | ​ | $ | 9,192 | ​ | $ | 10,625
Long-term operating lease liabilities | ​ | ​ | 21,090 | ​ |  | 28,378
Total lease liabilities | ​ | $ | 30,282 | ​ | $ | 39,003
Schedule of operating lease expense | ​
​ | ​ | ​ | ​ | ​ | ​ | ​
Year ended December 31, |  | 2020 | ​ | 2019
(in thousands) | ​ | ​ | ​ | ​ | ​ | ​
Operating lease cost | ​ | $ | 8,373 | ​ | $ | 14,109
Short-term lease cost | ​ | ​ | 2,577 | ​ |  | 7,254
Variable lease cost | ​ | ​ | 624 | ​ |  | 521
Sublease income | ​ | ​ | (295) | ​ |  | (72)
Total lease cost | ​ | $ | 11,279 | ​ | $ | 21,812
Schedule of lease cost | ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Other information: |  | ​ | ​ | ​ |  | ​ |
As of December 31, | ​ | 2020 | ​ | 2019 | ​
Cash paid for amounts included in the measurement of lease liabilities – operating leases (in thousands) | ​ | $ | 11,922 | ​ | $ | 12,863 | ​
ROU assets obtained in exchange for operating lease liabilities (in thousands) | ​ | $ | 3,202 | ​ | $ | 7,992 | ​
Weighted average remaining lease term – operating leases (years) | ​ | ​ | 5.2 | ​ |  | 5.5 | ​
Weighted average discount rate – operating leases | ​ | ​ | 2.82 | % |  | 3.58 | %
Schedule of maturity of lease liabilities | ​
​ | ​ | ​ | ​ | ​ | ​ | ​
As of December 31, |  | 2020 |  | 2019
(in thousands) | ​ | ​ | ​ | ​ | ​ | ​
2020 | ​ | $ | — | ​ | $ | 12,091
2021 |  | ​ | 9,911 |  | ​ | 9,623
2022 |  | ​ | 6,889 |  | ​ | 6,608
2023 |  | ​ | 4,135 |  | ​ | 4,153
2024 |  | ​ | 3,127 |  | ​ | 3,078
2025 |  | ​ | 2,181 |  | ​ | _
Thereafter |  | ​ | 6,404 |  | ​ | 9,132
Total lease payments |  | ​ | 32,647 |  | ​ | 44,685
Less: Amounts representing interest |  | ​ | (2,365) |  | ​ | (5,682)
Present value of lease liabilities | ​ | $ | 30,282 | ​ | $ | 39,003

X
- Definition Tabular disclosure of schedule of operating lease expense. + References No definition available. + Details
Name: | res_ScheduleOfOperatingLeaseExpenseTableTextBlock
Namespace Prefix: | res_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of schedule of operating leased assets and liabilities. + References No definition available. + Details
Name: | res_ScheduleOfOperatingLeasedAssetsAndLiabilitiesTableTextBlock
Namespace Prefix: | res_
Data Type: | nonnum: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 -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980 + Details
Name: | us-gaap_LeaseCostTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum: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 -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=121609121&loc=SL77918701-209980 + Details
Name: | us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration