XML 60 R48.htm IDEA: XBRL DOCUMENT
v3.23.2

Long Term Debt (Details Narrative) - USD ($) |  |  |  | 6 Months Ended |  |
--- | --- | --- | --- | --- | --- | ---
Jul. 31, 2023 | May 04, 2021 | May 08, 2020 | Jun. 30, 2023 | Mar. 21, 2023 | Dec. 31, 2022
Line of Credit Facility [Line Items] |  |  |  |  |  |
Long term debt |  |  |  | $ 772,000 |  | $ 1,039,000
Debt instrument, borrowing capacity, amount |  | $ 1,000,000 |  |  |  |
Debt instrument, interest rate description |  |  |  | Pursuant to the Loan Agreement, as amended, payment of annual rate of interest due on the revolving credit is at prime (8.25% at June 30, 2023) plus 2% or Term Secured Overnight Finance Rate (“SOFR”) (as defined in the Loan Agreement, as amended) plus 3.00% plus an SOFR Adjustment applicable for an interest period selected by the Company and payment of annual rate of interest due on the term loan and the capital loan is at prime plus 2.50% or Term SOFR Rate plus 3.50% plus an SOFR Adjustment applicable for an interest period selected by the Company. A SOFR Adjustment rates of 0.10% and 0.15% are applicable for a one-month interest period and three-month period, respectively, that may be selected by the Company. |  |
Letters of credit outstanding, amount |  |  |  | $ 3,200,000 |  |
PNC Bank [Member] | Captail Line [Member] |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |
Long term debt |  | 524,000 |  |  |  |
Debt instrument periodic payment |  | $ 8,700 |  |  |  |
Loan Agreement [Member] | Lender [Member] |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |
Debt instrument, fee amount |  |  |  |  | $ 25,000 |
Loan Agreement [Member] | PNC Bank [Member] | Term Loan [Member] |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |
Long term debt |  |  | $ 1,742,000 |  |  |
Debt instrument periodic payment |  |  | $ 35,547 |  |  |
Amended Loan Agreement [Member] | Lender [Member] |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |
Debt instrument, description |  |  |  | reinstates the quarterly FCCR testing requirement starting in the second quarter of 2023 using a trailing twelve-month period (with no change to the minimum 1.15:1 ratio requirement for each quarter) |  |
Amended Loan Agreement [Member] | Subsequent Event [Member] |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |
Debt instrument, description | Pursuant to the July 31, 2023 Amendment, the Company has agreed to pay PNC 1.0% of the total financing under the Amended Loan Agreement in the event the Company pays off its obligations on or before July 31, 2024, and 0.5% of the total financing if the Company pays off its obligations after July 31, 2024, to and including July 31, 2025. No early termination fee shall apply if the Company pays off its obligations under the Amended Loan Agreement after July 31, 2025. |  |  |  |  |
Debt instrument, fee amount | $ 100,000 |  |  |  |  |
Revolving Credit Facility [Member] |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |
Line of credit facility, remaining borrowing capacity |  |  |  | $ 10,368,000 |  |
Letters of credit outstanding, amount |  |  |  | 3,200,000 |  |
Revolving Credit Facility [Member] | Lender [Member] |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |
Minimum borrowiing availabilty |  |  |  | $ 3,000,000 | 3,000,000 |
Revolving Credit Facility [Member] | PNC Bank [Member] | Revised Loan Agreement [Member] |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |
Minimum borrowiing availabilty |  |  |  |  | 12,500,000 |
Revolving Credit Facility [Member] | Loan Agreement [Member] | PNC Bank [Member] |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |
Debt instrument maturity date |  |  | May 15, 2024 |  |  |
Minimum borrowiing availabilty |  |  |  |  | 12,500,000 |
Revolving Credit Facility [Member] | Loan Agreement [Member] | PNC Bank [Member] | Subsequent Event [Member] |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |
Long term debt | $ 2,500,000 |  |  |  |  |
Revolving Credit Facility [Member] | Loan Agreement [Member] | PNC Bank [Member] | Extended Maturity [Member] |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |
Debt instrument maturity date |  |  | May 15, 2027 |  |  |
Revolving Credit Facility [Member] | Previous Loan Agreement [Member] | PNC Bank [Member] |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |
Minimum borrowiing availabilty |  |  | $ 18,000,000 |  | $ 18,000,000 |

X
- Definition Identification of the lender and information about a contractual promise to repay a short-term or long-term obligation, which includes borrowings under lines of credit, notes payable, commercial paper, bonds payable, debentures, and other contractual obligations for payment. This may include rationale for entering into the arrangement, significant terms of the arrangement, which may include amount, repayment terms, priority, collateral required, debt covenants, borrowing capacity, call features, participation rights, conversion provisions, sinking-fund requirements, voting rights, basis for conversion if convertible and remarketing provisions. The description may be provided for individual debt instruments, rational groupings of debt instruments, or by debt in total. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(19)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(13)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-1 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-1 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-3 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480848/942-470-50-3 + Details
Name: | us-gaap_DebtInstrumentDescription
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
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 -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_DebtInstrumentFeeAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Description of the interest rate as being fixed or variable, and, if variable, identification of the index or rate on which the interest rate is based and the number of points or percentage added to that index or rate to set the rate, and other pertinent information, such as frequency of rate resets. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_DebtInstrumentInterestRateTerms
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Date when the debt instrument is scheduled to be fully repaid, in YYYY-MM-DD format. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(2)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + 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 applied to principal. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_DebtInstrumentPeriodicPaymentPrincipal
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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 Amount of current borrowing capacity under the credit facility considering any current restrictions on the amount that could be borrowed (for example, borrowings may be limited by the amount of current assets), but without considering any amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(f)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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 -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + 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 -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69B -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69B Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69C -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69C Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1D -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1D Reference 5: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)(a)(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479440/944-210-S99-1 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-1 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (b)(3) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-4 + Details
Name: | us-gaap_LongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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

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

X
- Details
Name: | us-gaap_TypeOfArrangementAxis=PESI_LoanAgreementMember
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_DebtInstrumentAxis=PESI_TermLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

X
- Details
Name: | us-gaap_SubsequentEventTypeAxis=us-gaap_SubsequentEventMember
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_DebtInstrumentAxis=PESI_RevisedLoanAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LoanRestructuringModificationAxis=us-gaap_ExtendedMaturityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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