XML 73 R59.htm IDEA: XBRL DOCUMENT
v3.6.0.2

Note 10 - Long-term Debt (Details Textual) |  |  |  |  |  | 1 Months Ended | 3 Months Ended | 12 Months Ended |  |  |  |  |
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Nov. 17, 2016 USD ($) | Aug. 02, 2016 USD ($) shares | Mar. 24, 2016 USD ($) | Aug. 02, 2013 USD ($) $ / shares shares | Oct. 31, 2011 USD ($) | Dec. 31, 2016 USD ($) | Mar. 31, 2016 USD ($) | Dec. 31, 2016 USD ($) | Dec. 31, 2015 USD ($) | Nov. 16, 2016 USD ($) | Aug. 22, 2016 USD ($) | Aug. 21, 2016 USD ($) | May 23, 2016 USD ($) | Jul. 28, 2014 USD ($)
Debt Instrument, Annual Spending Limit for Capital Spending |  |  |  | $ 3,000,000 |  | $ 6,000,000 |  |  |  |  |  |  |  |  |
Payments of Debt Issuance Costs |  |  |  |  |  |  |  |  | $ 122,000 | $ 40,000 |  |  |  |  |
Lenders [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Warrant or Right, Exercised During Period | shares |  |  | 35,000 |  |  |  |  |  |  |  |  |  |  |  |
Proceeds from Warrant Exercises |  |  | $ 156,000 |  |  |  |  |  |  |  |  |  |  |  |
Term Loan [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Periodic Payment, Principal |  |  |  |  |  |  |  |  | 102,000 | 102,000 |  |  |  |  |
Long-term Debt | [1],[2],[3] |  |  |  |  |  | $ 5,030,000 |  | 5,030,000 | 6,514,000 |  |  |  |  |
Promissory Note Dated August 2, 2013 [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Periodic Payment, Principal |  |  |  |  |  |  |  |  | 125,000 | 125,000 |  |  |  |  |
Long-term Debt | [4],[5] |  |  |  |  |  |  |  |  | 950,000 |  |  |  |  |
Promissory Note Dated August 2, 2013 [Member] | Lenders [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Proceeds from Issuance of Long-term Debt |  |  |  |  | $ 3,000,000 |  |  |  |  |  |  |  |  |  |
Number of Shares Issued to Each Lender on Warrant | shares |  |  |  |  | 35,000 |  |  |  |  |  |  |  |  |  |
Class of Warrant or Right, Exercise Price of Warrants or Rights | $ / shares |  |  |  |  | $ 2.23 |  |  |  |  |  |  |  |  |  |
Number of Shares Received by each Lender | shares |  |  |  |  | 45,000 |  |  |  |  |  |  |  |  |  |
PNC Bank [Member] | Revolving Credit Facility [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Line of Credit Facility Reduction |  |  |  |  |  |  | 1,250,000 |  | 1,250,000 |  |  |  |  |  |
Line of Credit Facility, Current Borrowing Capacity |  |  |  |  |  |  | 1,748,000 |  | 1,748,000 |  |  |  |  |  |
Revised Loan Agreement [Member] | PNC Bank [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Payments of Debt Issuance Costs |  |  |  | $ 72,000 |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Termination Notice |  |  |  | 90 days |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Covenant, Fixed Charge Coverage Ratio |  |  |  |  |  |  |  | 1.15 |  |  |  |  |  |  |
Debt Instrument, Fee Amount |  |  |  |  |  |  |  |  |  |  |  | $ 25,000 |  |  |
Debt Instrument, Covenant Compliance, Minimum Tangible Adjusted Net Worth |  |  |  |  |  |  |  |  |  |  |  | $ 26,000,000 | $ 30,000,000 |  |
Revised Loan Agreement [Member] | PNC Bank [Member] | On or Before March 23, 2017 [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument Percentage of Total Finacing to be Paid Upon Early Retirement of Debt Obligations |  |  |  | 1.00% |  |  |  |  |  |  |  |  |  |  |
Revised Loan Agreement [Member] | PNC Bank [Member] | After March 23, 2017 But Prior to or on March 23, 2018 [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument Percentage of Total Finacing to be Paid Upon Early Retirement of Debt Obligations |  |  |  | 0.50% |  |  |  |  |  |  |  |  |  |  |
Revised Loan Agreement [Member] | PNC Bank [Member] | After March 23, 2018 But Prior to or on March 23, 2019 [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument Percentage of Total Finacing to be Paid Upon Early Retirement of Debt Obligations |  |  |  | 0.25% |  |  |  |  |  |  |  |  |  |  |
Revised Loan Agreement [Member] | PNC Bank [Member] | After March 23, 2019 [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument Percentage of Total Finacing to be Paid Upon Early Retirement of Debt Obligations |  |  |  | 0.00% |  |  |  |  |  |  |  |  |  |  |
Revised Loan Agreement [Member] | PNC Bank [Member] | Interest Expense [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Gain (Loss) on Extinguishment of Debt |  |  |  |  |  |  |  |  | $ (68,000) |  |  |  |  |  |
Revised Loan Agreement [Member] | PNC Bank [Member] | Selling, General and Administrative Expenses [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Fee Amount |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 5,000 |
Revised Loan Agreement [Member] | PNC Bank [Member] | Revolving Credit Facility [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Line of Credit Facility, Maximum Borrowing Capacity |  |  |  | $ 12,000,000 |  |  |  |  |  |  |  |  |  |  |
Release of Borrowing Reduction on Line of Credit |  |  |  | $ 1,000,000 |  |  |  |  |  |  |  |  |  |  |
Revised Loan Agreement [Member] | PNC Bank [Member] | Revolving Credit Facility [Member] | Prime Rate [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Basis Spread on Variable Rate |  |  |  | 1.75% |  |  |  |  |  |  |  |  |  |  |
Revised Loan Agreement [Member] | PNC Bank [Member] | Revolving Credit Facility [Member] | London Interbank Offered Rate (LIBOR) [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Basis Spread on Variable Rate |  |  |  | 2.75% |  |  |  |  |  |  |  |  |  |  |
Revised Loan Agreement [Member] | PNC Bank [Member] | Term Loan [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Periodic Payment, Principal |  |  |  | $ 101,600 |  |  |  | $ 190,000 |  |  |  |  |  |  |
Long-term Debt |  |  |  | $ 6,100,000 |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Term |  |  |  | 5 years |  |  |  |  |  |  |  |  |  |  |
Revised Loan Agreement [Member] | PNC Bank [Member] | Term Loan [Member] | Prime Rate [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Basis Spread on Variable Rate |  |  |  | 2.25% |  |  |  |  | 3.75% |  |  |  |  |  |
Revised Loan Agreement [Member] | PNC Bank [Member] | Term Loan [Member] | London Interbank Offered Rate (LIBOR) [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Basis Spread on Variable Rate |  |  |  | 3.25% |  |  |  |  |  |  |  |  |  |  |
Promissory Note Dated August 2, 2013 [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Unamortized Discount |  |  |  |  |  |  | 0 |  | $ 0 | 50,000 |  |  |  |  |
Term Loan [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Issuance Costs, Net |  |  |  |  |  |  | 151,000 |  | $ 151,000 | $ 152,000 |  |  |  |  |
Amended Loan Agreement [Member] | PNC Bank [Member] | Revolving Credit Facility [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Line of Credit Facility, Maximum Borrowing Capacity |  |  |  |  |  | $ 12,000,000 |  |  |  |  |  |  |  |  |
Amended Loan Agreement [Member] | PNC Bank [Member] | Revolving Credit Facility [Member] | Prime Rate [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Basis Spread on Variable Rate |  |  |  |  |  | 2.00% |  |  |  |  |  |  |  |  |
Amended Loan Agreement [Member] | PNC Bank [Member] | Revolving Credit Facility [Member] | London Interbank Offered Rate (LIBOR) [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Basis Spread on Variable Rate |  |  |  |  |  | 3.00% |  |  |  |  |  |  |  |  |
Amended Loan Agreement [Member] | PNC Bank [Member] | Term Loan [Member] | Prime Rate [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Basis Spread on Variable Rate |  |  |  |  |  | 2.50% |  |  |  |  |  |  |  |  |
Amended Loan Agreement [Member] | PNC Bank [Member] | Term Loan [Member] | London Interbank Offered Rate (LIBOR) [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Basis Spread on Variable Rate |  |  |  |  |  | 3.50% |  |  |  |  |  |  |  |  |
Amendment 4 [Member] | PNC Bank [Member] | Term Loan [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Periodic Payment, Principal |  |  |  |  |  | $ 190,000 |  |  |  |  |  |  |  |  |
Long-term Debt |  |  |  |  |  | $ 16,000,000 |  |  |  |  |  |  |  |  |
Debt Instrument, Term |  |  |  |  |  | 7 years |  |  |  |  |  |  |  |  |
Amendment 6 [Member] | PNC Bank [Member] | Revolving Credit Facility [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Line of Credit Facility Reduction |  |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 1,500,000
Amendment to the Revised Loan Agreement [Member] | PNC Bank [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Line of Credit Facility Reduction |  | $ 2,000,000 |  |  |  |  |  |  |  |  | $ 500,000 |  |  |  |
Debt Instrument, Covenant, Fixed Charge Coverage Ratio |  |  |  |  |  |  |  |  | 1.15 |  |  |  |  |  |
Debt Instrument, Fee Amount |  | 25,000 |  |  |  |  |  |  |  |  |  |  |  |  |
Line of Credit Facility Reduction, Additional Reduction |  | $ 750,000 |  |  |  |  | $ 750,000 |  |  |  |  |  |  |  |
Amendment to the Revised Loan Agreement [Member] | PNC Bank [Member] | Revolving Credit Facility [Member] | Prime Rate [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Basis Spread on Variable Rate |  | 2.00% |  |  |  |  |  |  |  |  |  |  |  |  |
Amendment to the Revised Loan Agreement [Member] | PNC Bank [Member] | Revolving Credit Facility [Member] | London Interbank Offered Rate (LIBOR) [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Basis Spread on Variable Rate |  | 3.00% |  |  |  |  |  |  |  |  |  |  |  |  |
Amendment to the Revised Loan Agreement [Member] | PNC Bank [Member] | Term Loan [Member] | Prime Rate [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Basis Spread on Variable Rate |  | 2.50% |  |  |  |  |  |  |  |  |  |  |  |  |
Amendment to the Revised Loan Agreement [Member] | PNC Bank [Member] | Term Loan [Member] | London Interbank Offered Rate (LIBOR) [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument, Basis Spread on Variable Rate |  | 3.50% |  |  |  |  |  |  |  |  |  |  |  |  |
[1] | Net of debt issuance costs of ($151,000) and ($152,000) at December 31, 2016 and December 31, 2015, respectively.
[2] | Our revolving credit facility is collateralized by our accounts receivable and our term loan is collateralized by our property, plant, and equipment.
[3] | See below "Revolving Credit and Term Loan Agreement" for monthly payment interest options. Prior to April 1, 2016, the monthly installment payment under the term loan was approximately $190,000.
[4] | Net of debt discount of ($50,000) at December 31, 2015. See "Promissory Notes" below for additional information.
[5] | Uncollateralized note.

X
- Definition The number of warrants or rights exercised during period. + References No definition available. + Details
Name: | pesi_ClassOfWarrantOrRightExercisedDuringPeriod
Namespace Prefix: | pesi_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition The maximum amount that can be drawn in a given year for capital spending. + References No definition available. + Details
Name: | pesi_DebtInstrumentAnnualSpendingLimitForCapitalSpending
Namespace Prefix: | pesi_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Represents the debt covenvant of minimum tangible adjusted net worth of the credit agreement. + References No definition available. + Details
Name: | pesi_DebtInstrumentCovenantComplianceMinimumTangibleAdjustedNetWorth
Namespace Prefix: | pesi_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Fixed charge coverage ratio required under the debt convenant. + References No definition available. + Details
Name: | pesi_DebtInstrumentCovenantFixedChargeCoverageRatio
Namespace Prefix: | pesi_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Upon early retirement of debt obligations, the percentage of total financing to be paid as a fee. + References No definition available. + Details
Name: | pesi_DebtInstrumentPercentageOfTotalFinacingToBePaidUponEarlyRetirementOfDebtObligations
Namespace Prefix: | pesi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of days' prior written notice upon payment in full of outstanding obligations to terminate agreement. + References No definition available. + Details
Name: | pesi_DebtInstrumentTerminationNotice
Namespace Prefix: | pesi_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Represents the amount of line of credit facility reduction of borrowing availability. + References No definition available. + Details
Name: | pesi_LineOfCreditFacilityReduction
Namespace Prefix: | pesi_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Represents the amount of additional borrowing reduction pursuant to an amendment of the debt agreement. + References No definition available. + Details
Name: | pesi_LineOfCreditFacilityReductionAdditionalReduction
Namespace Prefix: | pesi_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Represents the number of shares issued to each lender on warrant. + References No definition available. + Details
Name: | pesi_NumberOfSharesIssuedToEachLenderOnWarrant
Namespace Prefix: | pesi_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Represents the number of shares received by each lender. + References No definition available. + Details
Name: | pesi_NumberOfSharesReceivedByEachLender
Namespace Prefix: | pesi_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount released of the borrowing reduction on the line of credit. + References No definition available. + Details
Name: | pesi_ReleaseOfBorrowingReductionOnLineOfCredit
Namespace Prefix: | pesi_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(i)(4)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 + Details
Name: | us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
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 Amount of the fee that accompanies borrowing money under the debt instrument. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -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=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentFeeAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of the required periodic payments applied to principal. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -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=6877327&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, after accumulated amortization, of debt discount. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 1A -URI http://asc.fasb.org/extlink&oid=64930785&loc=d3e28541-108399 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=64930739&loc=d3e28878-108400 + Details
Name: | us-gaap_DebtInstrumentUnamortizedDiscount
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://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=64930785&loc=d3e28555-108399 Reference 2: http://www.xbrl.org/2003/role/presentationRef -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=6877327&loc=d3e13212-122682 + 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://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=49170532&loc=d3e12317-112629 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=66902209&loc=d3e3602-108585 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=49170532&loc=d3e12355-112629 + Details
Name: | us-gaap_GainsLossesOnExtinguishmentOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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://www.xbrl.org/2003/role/presentationRef -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=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity
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://www.xbrl.org/2003/role/presentationRef -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=6877327&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, 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/presentationRef -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=6879938&loc=d3e572229-122910 Reference 2: http://www.xbrl.org/2003/role/presentationRef -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=6876686&loc=d3e534808-122878 Reference 3: http://www.xbrl.org/2003/role/presentationRef -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=6877327&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 cash outflow paid to third parties in connection with debt origination, which will be amortized over the remaining maturity period of the associated long-term debt. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=66902209&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsOfDebtIssuanceCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash inflow from a debt initially having maturity due after one year or beyond the operating cycle, if longer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=66902209&loc=d3e3255-108585 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Financing Activities -URI http://asc.fasb.org/extlink&oid=6513228 + Details
Name: | us-gaap_ProceedsFromIssuanceOfLongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow associated with the amount received from holders exercising their stock warrants. + References No definition available. + Details
Name: | us-gaap_ProceedsFromWarrantExercises
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=pesi_LendersMember
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_LongtermDebtTypeAxis=pesi_PromissoryNoteDatedAugust22013Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=pesi_PNCBankMember
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_StatementScenarioAxis=pesi_OnOrBeforeMarch232017Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementScenarioAxis=pesi_AfterMarch232017ButPriorToOrOnMarch232018Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementScenarioAxis=pesi_AfterMarch232018ButPriorToOrOnMarch232019Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementScenarioAxis=pesi_AfterMarch232019Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_InterestExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_SellingGeneralAndAdministrativeExpensesMember
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_VariableRateAxis=us-gaap_LondonInterbankOfferedRateLIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=pesi_PromissoryNoteDatedAugust22013Member
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_DebtInstrumentAxis=pesi_AmendedLoanAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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