XML 65 R54.htm IDEA: XBRL DOCUMENT
v3.20.2

Long Term Debt (Details Narrative) - USD ($) |  |  |  |  | 3 Months Ended | 9 Months Ended | 12 Months Ended
--- | --- | --- | --- | --- | --- | --- | ---
May 08, 2020 | Apr. 14, 2020 | Apr. 02, 2019 | Oct. 31, 2011 | Sep. 30, 2020 | Sep. 30, 2019 | Sep. 30, 2020 | Sep. 30, 2019 | Dec. 31, 2019
Long-term debt |  |  |  |  |  | $ 7,254,000 |  | $ 7,254,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) |  |
Line of credit facility, remaining borrowing capacity |  |  |  |  |  | 16,404,000 |  | 16,404,000 |  |
Letters of credit outstanding, amount |  |  |  |  |  | 3,026,000 |  | 3,026,000 |  |
Prepayments in principal amount |  |  |  |  |  |  |  | 416,000 |  | 520,000
Debt discount and debt issuance costs |  |  |  |  |  | (99,000) |  | (99,000) |  | (248,000)
Repayments of loan debt |  |  |  |  |  |  |  | 1,457,000 |  |
New Loan Agreement [Member] |  |  |  |  |  |  |  |  |  |
Debt instrument maturity date |  | May 15, 2024 |  |  |  |  |  |  |  |
Minimum tangible adjusted net worth requirement |  | $ 27,000,000 |  |  |  |  |  |  |  |
Fixed charge coverage ratio |  | 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 |  |  |  |  |  |  |  |
New Loan Agreement [Member] | Maximum [Member] |  |  |  |  |  |  |  |  |  |
Capital spending maximum |  | $ 6,000,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 |  |  |  |  |  |
Prepayments in principal amount |  |  |  | $ 936,000 |  |  |  |  |  |
Warrants to purchase share of common stock |  |  |  | 60,000 |  |  |  |  |  |
Warrants exercise price |  |  |  | $ 3.51 |  |  |  |  |  |
Debt discount and debt issuance costs |  |  |  | $ 398,000 |  |  |  |  |  |
Common stock, minimum closing bid price per share |  |  |  | $ 3.51 |  |  |  |  |  |
Common stock issued percentage |  |  |  | 14.90% |  |  |  |  |  |
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 | [1],[2] |  |  |  |  | 1,487,000 |  | $ 1,487,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] | Lender [Member] |  |  |  |  |  |  |  |  |  |
Debt instrument, interest rate, stated percentage |  |  | 1.00% |  |  |  |  |  |  |
Loan amount |  |  | $ 5,666,000 |  |  |  |  |  |  |
Repayments of loan debt |  |  | $ 348,000 |  |  |  |  |  |  |
Revolving Credit Facility [Member] |  |  |  |  |  |  |  |  |  |
Line of credit facility, remaining borrowing capacity |  |  |  |  |  | 16,404,000 |  | $ 16,404,000 |  |
Letters of credit outstanding, amount |  |  |  |  |  | 3,026,000 |  | $ 3,026,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 |  | $ 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 September 30, 2020) plus 2% and the term loan at prime plus 2.5%. |  |
Monthly installments |  |  |  |  |  |  |  | $ 35,547 |  |
[1] | Net of debt issuance costs of ($113,000) and ($92,000) at September 30, 2020 and December 31, 2019, respectively.
[2] | 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 Common stock minimum closing bid price per share. + References No definition available. + Details
Name: | PESI_CommonStockMinimumClosingBidPricePerShare
Namespace Prefix: | PESI_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

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 Prepayments in principal amount. + References No definition available. + Details
Name: | PESI_PrepaymentsInPrincipalAmount
Namespace Prefix: | PESI_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of total capital as defined by regulatory framework. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 948 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=6490092&loc=d3e47304-110998 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 505 -Section 50 -Paragraph 1 -Subparagraph (c)(1) -URI http://asc.fasb.org/extlink&oid=117337116&loc=SL5958568-112826 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 948 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (c)(1) -URI http://asc.fasb.org/extlink&oid=6490092&loc=d3e47080-110998 + Details
Name: | us-gaap_Capital
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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 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 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 The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571 + Details
Name: | us-gaap_EquityMethodInvestmentOwnershipPercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
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 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 The lowest amount of net worth (total assets minus total liabilities) required by secondary market investors or state-imposed regulatory mandates. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 948 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=6490092&loc=d3e47304-110998 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 948 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (c)(a) -URI http://asc.fasb.org/extlink&oid=6490092&loc=d3e47080-110998 + Details
Name: | us-gaap_MinimumNetWorthRequiredForCompliance
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: | srt_RangeAxis=srt_MaximumMember
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: |