2.4.0.80060 - Disclosure - 11. Debt (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$1false 4us-gaap_LongTermDebtAndCapitalLeaseObligationsus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalse1truefalsefalse2488609424886094USD$falsetruefalse2truefalsefalse4363607643636076USD$falsetruefalsexbrli:monetaryItemTypemonetaryAmount of long-term debt and capital lease obligation due after one year or beyond the normal operating cycle, if longer.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 22 -Article 5 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.22) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Staff Accounting Bulletin (SAB) -Number Topic 6 -Section H false22false 4us-gaap_LongTermDebtCurrentus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalse1truefalsefalse1847178718471787USD$falsefalsefalse2truefalsefalse22865132286513USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of long-term debt, after unamortized discount or premium, scheduled to be repaid within one year or the normal operating cycle, if longer. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations.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,20) -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 02 -Paragraph 20 -Article 5 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 19 -Article 5 false23false 4us-gaap_LongTermDebtus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalse1truefalsefalse64143076414307USD$falsefalsefalse2truefalsefalse4134956341349563USD$falsefalsefalsexbrli:monetaryItemTypemonetaryCarrying amount of long-term debt, net of unamortized discount or premium, including current and noncurrent amounts. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 16 -Article 7 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.22) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: 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 4: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 16 -Article 9 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 20, 22 -Article 5 Reference 6: 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.16) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 false24false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3false USDtruefalse$AsOf2013-06-30_AmountsOutstandingUnderCreditFacilityMidCapFundingMemberhttp://www.sec.gov/CIK0001024126instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseAmounts outstanding under the Credit Facility & MidCap Funding V, LLC [Member]us-gaap_LongtermDebtTypeAxisxbrldihttp://xbrl.org/2006/xbrldiPTX_AmountsOutstandingUnderCreditFacilityMidCapFundingMemberus-gaap_LongtermDebtTypeAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse05false 4us-gaap_LongTermDebtAndCapitalLeaseObligationsus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalse1truefalsefalse2336080923360809USD$falsefalsefalse2truefalsefalse4200000042000000USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of long-term debt and capital lease obligation due after one year or beyond the normal operating cycle, if longer.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 22 -Article 5 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.22) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Staff Accounting Bulletin (SAB) -Number Topic 6 -Section H false26false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse5false USDtruefalse$AsOf2013-06-30_StancorpMortgageMemberhttp://www.sec.gov/CIK0001024126instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseStancorp Mortgage [Member]us-gaap_LongtermDebtTypeAxisxbrldihttp://xbrl.org/2006/xbrldiPTX_StancorpMortgageMemberus-gaap_LongtermDebtTypeAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse07false 4us-gaap_LongTermDebtAndCapitalLeaseObligationsus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalse1truefalsefalse15161981516198USD$falsefalsefalse2truefalsefalse15807481580748USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of long-term debt and capital lease obligation due after one year or beyond the normal operating cycle, if longer.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 22 -Article 5 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.22) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Staff Accounting Bulletin (SAB) -Number Topic 6 -Section H false28false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse7false USDtruefalse$AsOf2013-06-30_CapitalLeaseObligationsMemberhttp://www.sec.gov/CIK0001024126instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseCapital leases [Member]us-gaap_LongtermDebtTypeAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_CapitalLeaseObligationsMemberus-gaap_LongtermDebtTypeAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse09false 4us-gaap_LongTermDebtAndCapitalLeaseObligationsus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalse1truefalsefalse90879087USD$falsetruefalse2truefalsefalse5532855328USD$falsetruefalsexbrli:monetaryItemTypemonetaryAmount of long-term debt and capital lease obligation due after one year or beyond the normal operating cycle, if longer.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 22 -Article 5 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.22) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Staff Accounting Bulletin (SAB) -Number Topic 6 -Section H false2false11. Debt (Details) (USD $)NoRoundingUnKnownUnKnownUnKnowntruefalsefalseSheethttp://pernixtx.com/role/DebtDetails29