XML 91 R70.htm IDEA: XBRL DOCUMENT
v3.21.1

Long Term Debt (Details Narrative) - USD ($) |  |  |  |  | 9 Months Ended | 12 Months Ended
--- | --- | --- | --- | --- | --- | ---
May 08, 2020 | Apr. 14, 2020 | Apr. 02, 2019 | Oct. 31, 2011 | Sep. 30, 2020 | Dec. 31, 2020 | Dec. 31, 2019
Long-term debt |  |  |  |  |  |  | $ 6,729,000 | $ 3,880,000
Fixed charge coverage ratio |  | Upon the achievement of a FCCR of greater than 1.25:1 |  |  |  |  |  |
Loss on extinguishment of debt |  |  |  |  |  |  | (27,000) |
Letters of credit outstanding, amount |  |  |  |  |  |  | 3,026,000 |
Debt discount and debt issuance costs |  |  |  |  |  |  | 0 | (248,000)
Repayments of loan debt |  |  |  |  |  |  | 1,980,000 |
Current portion of long term debt | [1] |  |  |  |  |  | 3,595,000 | 1,300,000
Debt issuance costs |  |  |  |  |  |  | 105,000 | 340,000
New Loan Agreement [Member] |  |  |  |  |  |  |  |
Debt instrument maturity date |  | May 15, 2024 |  |  |  |  |  |
Fixed charge coverage ratio |  | The New Loan Agreement requires the Company to meet certain customary financial covenants, including, among other things, a minimum Tangible Adjusted Net Worth requirement of $27,000,000 at all times; maximum capital spending of $6,000,000 annually; and a minimum FCCR requirement of 1.15:1. |  |  |  |  |  |
Indirect cost including legal fees |  | $ 35,000 |  |  |  |  |  |
Loss on extinguishment of debt |  | 27,000 |  |  |  |  |  |
New Loan Agreement [Member] | Lender [Member] |  |  |  |  |  |  |  |
Debt instrument fees |  | $ 50,000 |  |  |  |  |  |
Loan and Securities Purchase Agreement, Promissory Note and Subordination Agreement [Member] |  |  |  |  |  |  |  |
Long-term debt |  |  |  | $ 2,500,000 |  |  |  |
Debt instrument, interest rate, stated percentage |  |  |  | 4.00% |  |  |  |
Debt instrument, first required interest payment |  |  |  | May 01, 2019 |  |  |  |
Debt instrument, periodic payment, principal |  |  |  | $ 208,333 |  |  |  |
Warrants to purchase share of common stock |  |  |  | 60,000 |  |  |  |
Warrants exercise price |  |  |  | $ 3.51 |  |  |  |
Debt discount and debt issuance costs |  |  |  | $ 398,000 |  |  |  |
Loan and Securities Purchase Agreement, Promissory Note and Subordination Agreement [Member] | Private Placement [Member] |  |  |  |  |  |  |  |
Warrants to purchase share of common stock |  |  |  | 60,000 |  |  |  |
Shares issued to lender |  |  |  | 75,000 |  |  |  |
London Interbank Offered Rate (LIBOR) [Member] |  |  |  |  |  |  |  |
Debt Instrument, basis spread on variable rate |  | 0.75% |  |  |  |  |  |
Term Loan [Member] |  |  |  |  |  |  |  |
Long-term debt | [2],[3] |  |  |  |  |  | $ 1,388,000 | $ 1,827,000
Term Loan [Member] | Prime [Member] | New Loan Agreement [Member] |  |  |  |  |  |  |  |
Debt Instrument, basis spread on variable rate |  | 3.00% |  |  |  |  |  |
Term Loan [Member] | Prime [Member] | Upon the achievement of a FCCR of greater than 1.25:1 [Member] |  |  |  |  |  |  |  |
Debt Instrument, basis spread on variable rate |  | 2.50% |  |  |  |  |  |
Term Loan [Member] | London Interbank Offered Rate (LIBOR) [Member] | New Loan Agreement [Member] |  |  |  |  |  |  |  |
Debt Instrument, basis spread on variable rate |  | 4.00% |  |  |  |  |  |
Term Loan [Member] | London Interbank Offered Rate (LIBOR) [Member] | Upon the achievement of a FCCR of greater than 1.25:1 [Member] |  |  |  |  |  |  |  |
Debt Instrument, basis spread on variable rate |  | 3.50% |  |  |  |  |  |
PNC Bank [Member] | New Loan Agreement [Member] | On or Before May 7, 2021 [Member] |  |  |  |  |  |  |  |
Financing fee percentage |  | 1.00% |  |  |  |  |  |
PNC Bank [Member] | New Loan Agreement [Member] | After May 7, 2021 But Prior to or On May 7, 2022 [Member] |  |  |  |  |  |  |  |
Financing fee percentage |  | 0.50% |  |  |  |  |  |
Revised Loan Agreement [Member] | PNC Bank [Member] | Term Loan [Member] |  |  |  |  |  |  |  |
Long-term debt |  |  |  |  | $ 6,100,000 |  |  |
Term Loan Agreement [Member] | Prime [Member] |  |  |  |  |  |  |  |
Debt Instrument, basis spread on variable rate |  |  |  |  |  |  | 2.50% |
Paycheck Protection Program Loan [Member] |  |  |  |  |  |  |  |
Long-term debt |  |  | $ 5,666,000 |  |  |  | $ 5,318,000 |
Debt term |  |  | 2 years |  |  |  |  |
Debt interest rate |  |  | 1.00% |  |  |  |  |
Current portion of long term debt |  |  |  |  |  |  | 3,191,000 |
Paycheck Protection Program Loan [Member] | Lender [Member] |  |  |  |  |  |  |  |
Loan amount |  |  | $ 5,666,000 |  |  |  |  |
Repayments of loan debt |  |  |  |  |  | $ 348,000 |  |
Debt term |  |  | 5 years |  |  |  |  |
Revolving Credit Facility [Member] |  |  |  |  |  |  |  |
Line of credit facility, remaining borrowing capacity |  |  |  |  |  |  | 14,220,000 |
Letters of credit outstanding, amount |  |  |  |  |  |  | 3,026,000 |
Debt issuance costs |  |  |  |  |  |  | $ 105,000 |
Revolving Credit Facility [Member] | Prime [Member] |  |  |  |  |  |  |  |
Debt Instrument, basis spread on variable rate |  |  |  |  |  |  | 3.25% |
Revolving Credit Facility [Member] | Prime [Member] | New Loan Agreement [Member] |  |  |  |  |  |  |  |
Debt Instrument, basis spread on variable rate |  | 2.50% |  |  |  |  |  |
Revolving Credit Facility [Member] | Prime [Member] | Upon the achievement of a FCCR of greater than 1.25:1 [Member] |  |  |  |  |  |  |  |
Debt Instrument, basis spread on variable rate |  | 2.00% |  |  |  |  |  |
Revolving Credit Facility [Member] | Plus [Member] |  |  |  |  |  |  |  |
Debt Instrument, basis spread on variable rate |  |  |  |  |  |  | 2.00% |
Revolving Credit Facility [Member] | London Interbank Offered Rate (LIBOR) [Member] | New Loan Agreement [Member] |  |  |  |  |  |  |  |
Debt Instrument, basis spread on variable rate |  | 3.50% |  |  |  |  |  |
Fixed charge coverage ratio |  | The Company can only elect to use the LIBOR interest payment option after it becomes compliant with meeting the minimum FCCR of 1.15:1 |  |  |  |  |  |
Revolving Credit Facility [Member] | London Interbank Offered Rate (LIBOR) [Member] | Upon the achievement of a FCCR of greater than 1.25:1 [Member] |  |  |  |  |  |  |  |
Debt Instrument, basis spread on variable rate |  | 3.00% |  |  |  |  |  |
Revolving Credit Facility [Member] | Revised Loan Agreement [Member] | PNC Bank [Member] |  |  |  |  |  |  |  |
Line of credit facility, maximum borrowing capacity |  |  |  |  | $ 12,000,000 |  |  |
Debt instrument maturity date |  |  |  |  | Mar. 24, 2021 |  |  |
Revolving Credit Facility [Member] | Term Loan Agreement [Member] |  |  |  |  |  |  |  |
Long-term debt |  | $ 1,741,818 |  |  |  |  |  |
Annual rate of interest description |  |  |  |  |  |  | Payment of annual rate of interest due on the revolving credit under the Revised Loan Agreement was at prime (3.25 at December 31, 2020) plus 2% and the term loan at prime plus 2.5%. |
Monthly installments |  | 35,547 |  |  |  |  |  |
Revolving Credit Facility [Member] | Term Loan Agreement [Member] | Maximum [Member] |  |  |  |  |  |  |  |
Line of credit facility |  | $ 18,000,000 |  |  |  |  |  |
[1] | Net of debt discount/debt issuance costs of ($0) and ($248,000) at December 31, 2020 and December 31, 2019, respectively. The Promissory Note provided for prepayment of principal over the term of the Note without penalty. In 2019, the Company made total prepayment of principal of $520,000 which was reflected in the current portion of the debt. In 2020, the outstanding principal balance of $1,980,000 was paid-in-full of which of which $416,000 was prepaid.
[2] | Net of debt issuance costs of ($105,000) and ($92,000) at December 31, 2020 and December 31, 2019, respectively.
[3] | Our revolving credit facility is collateralized by our accounts receivable and our term loan is collateralized by our property, plant, and equipment. Effective July 1, 2019, monthly installment principal payment on the Term Loan was amended to approximately $35,500 from approximately $101,600. See "Revolving Credit and Term Loan Agreement" below for terms of the Company's credit facility prior to the New Loan Agreement dated May 8, 2020.

X
- Definition Annual rate of interest description. + References No definition available. + Details
Name: | PESI_AnnualRateOfInterestDescription
Namespace Prefix: | PESI_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Financing fee percentage. + References No definition available. + Details
Name: | PESI_FinancingFeePercentage
Namespace Prefix: | PESI_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Indirect cost inccured resulting from loan agreement, including legal fees. + References No definition available. + Details
Name: | PESI_IndirectCostIncludingLegalFees
Namespace Prefix: | PESI_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Exercise price per share or per unit of warrants or rights outstanding. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=109259400&loc=d3e21475-112644 + Details
Name: | us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of securities into which the class of warrant or right may be converted. For example, but not limited to, 500,000 warrants may be converted into 1,000,000 shares. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=109259400&loc=d3e21475-112644 + Details
Name: | us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Description of minimum financial levels (for example, tangible net worth and working capital) and achievement of certain financial ratios (for example, working capital ratio and debt service coverage ratio), and adherence to certain clauses which generally require or restrict certain actions (for example, entering into a debt arrangement with equal or greater seniority, and selling or discontinuing a certain business segment or material subsidiary) to be in compliance with the covenant clauses of the debt agreement. May also include a discussion of the adverse consequences that would result if the entity violates or fails to satisfy the covenants. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (g) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentCovenantDescription
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Date the debt agreement requires the first payment to be made, in CCYY-MM-DD format. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentDateOfFirstRequiredPayment1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of the fee that accompanies borrowing money under the debt instrument. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentFeeAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The average effective interest rate during the reporting period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=119993939&loc=d3e28551-108399 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateDuringPeriod
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Date when the debt instrument is scheduled to be fully repaid, in CCYY-MM-DD format. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(2)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (bbb)(2) -URI http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258 + Details
Name: | us-gaap_DebtInstrumentMaturityDate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of the required periodic payments including both interest and principal payments. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentPeriodicPayment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of the required periodic payments applied to principal. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentPeriodicPaymentPrincipal
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Period of time between issuance and maturity of debt instrument, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentTerm
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of unamortized debt discount (premium) and debt issuance costs. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b)(2) -URI http://asc.fasb.org/extlink&oid=120520924&loc=SL6031897-161870 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=119993939&loc=d3e28555-108399 + Details
Name: | us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.17) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=119993939&loc=d3e28555-108399 + Details
Name: | us-gaap_DeferredFinanceCostsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Difference between the fair value of payments made and the carrying amount of debt which is extinguished prior to maturity. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=117329964&loc=d3e12355-112629 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=117329964&loc=d3e12317-112629 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585 + Details
Name: | us-gaap_GainsLossesOnExtinguishmentOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The total amount of the contingent obligation under letters of credit outstanding as of the reporting date. + References No definition available. + Details
Name: | us-gaap_LettersOfCreditOutstandingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(16)) -URI http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910 + Details
Name: | us-gaap_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Including the current and noncurrent portions, aggregate carrying value as of the balance sheet date of loans payable (with maturities initially due after one year or beyond the operating cycle if longer). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(16)(a)(2)) -URI http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910 + Details
Name: | us-gaap_LoansPayable
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b)(3) -URI http://asc.fasb.org/extlink&oid=120520924&loc=SL6031897-161870 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)) -URI http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt, classified as current. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19,20) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LongTermDebtCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The cash outflow during the period from the repayment of aggregate short-term and long-term debt. Excludes payment of capital lease obligations. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3291-108585 + Details
Name: | us-gaap_RepaymentsOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Number of new stock issued during the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesNewIssues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_TypeOfArrangementAxis=PESI_NewLoanAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_TitleOfIndividualAxis=PESI_LenderMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TypeOfArrangementAxis=PESI_LoanAndSecuritiesPurchaseAgreementPromissoryNoteAndSubordinationAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=us-gaap_PrivatePlacementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_LondonInterbankOfferedRateLIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=PESI_TermLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_PrimeRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TypeOfArrangementAxis=PESI_UponAchievementOfAFCCROfGreaterThanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=PESI_PNCBankMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=PESI_OnorBeforeMaySevenTwoThousandAndTwentyOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=PESI_AfterMaySevenTwoThousandAndTwentyButPriortoorOnMaySevenTwoThousandTwentyTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=PESI_RevisedLoanAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=PESI_TermLoanAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=PESI_PaycheckProtectionProgramLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=PESI_PlusMember
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: |