2.4.0.80050 - Disclosure - 6. Accounts Receivable (Details)truefalsefalse1false USDfalsefalse$AsOf2013-06-30http://www.sec.gov/CIK0001024126instant2013-06-30T00:00:000001-01-01T00:00:00USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$2false USDfalsefalse$AsOf2012-12-31http://www.sec.gov/CIK0001024126instant2012-12-31T00:00:000001-01-01T00:00:00USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$1true 2us-gaap_AccountsReceivableNetAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse02false 3us-gaap_AccountsReceivableGrossCurrentus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalse1truefalsefalse2573808125738081USD$falsetruefalse2truefalsefalse3572348835723488USD$falsetruefalsexbrli:monetaryItemTypemonetaryAmounts due from customers or clients, within one year of the balance sheet date (or the normal operating cycle, whichever is longer) for goods or services (including trade receivables) that have been delivered or sold in the normal course of business.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.3) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 3 -Subparagraph a, b -Article 5 false23false 3PTX_AllowanceForPromptPayDiscountsPTX_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsefalse1truefalsefalse-542559-542559falsefalsefalse2truefalsefalse-727714-727714falsefalsefalsexbrli:monetaryItemTypemonetaryCustom Element.No definition available.false24false 3PTX_TradeReceivablesNetOfPromptPayDiscountsPTX_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalse1truefalsefalse2519552225195522falsefalsefalse2truefalsefalse3495654334956543falsefalsefalsexbrli:monetaryItemTypemonetaryCustom Element.No definition available.false25false 3us-gaap_AccountsAndOtherReceivablesNetCurrentus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalse1truefalsefalse19782701978270falsefalsefalse2truefalsefalse16905441690544falsefalsefalsexbrli:monetaryItemTypemonetaryAmount due from customers, clients, or other third-parties, or arising from transactions not separately disclosed, within one year of the balance sheet date (or the normal operating cycle, whichever is longer), net of allowances established for the purpose of reducing such receivables to an amount that approximates their net realizable value.No definition available.false26false 3us-gaap_AllowanceForDoubtfulAccountsReceivableus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalse1truefalsefalse-484031-484031falsefalsefalse2truefalsefalse-39231-39231falsefalsefalsexbrli:monetaryItemTypemonetaryFor an unclassified balance sheet, a valuation allowance for receivables due a company that are expected to be uncollectible.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 4 -Article 5 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=28368275&loc=d3e5074-111524 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.4) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 false27false 3us-gaap_AccountsReceivableNetus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalse1truefalsefalse2668976126689761USD$falsetruefalse2truefalsefalse3664708736647087USD$falsetruefalsexbrli:monetaryItemTypemonetaryFor an unclassified balance sheet, the amount due from customers or clients for goods or services that have been delivered or sold in the normal course of business, reduced to their estimated net realizable fair value by an allowance established by the entity of the amount it deems uncertain of collection.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 3 -Article 5 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.9) -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 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03.5) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 false2false6. Accounts Receivable (Details) (USD $)NoRoundingUnKnownUnKnownUnKnowntruefalsefalseSheethttp://pernixtx.com/role/AccountsReceivableDetails27