2.4.0.8145 - Disclosure - Amortized Cost Gross Unrealized Holding Gain or Loss and Fair Value of Available for Sale Security by Major Security Type (Detail)truefalseIn Thousands, unless otherwise specifiedfalse1false USDfalsefalse$eol_PE7265----1310-Q0007_STD_0_20130630_0http://www.sec.gov/CIK0001048477instant2013-06-30T00:00:000001-01-01T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$2false USDfalsefalse$eol_PE7265----1310-Q0007_STD_0_20121231_0http://www.sec.gov/CIK0001048477instant2012-12-31T00:00:000001-01-01T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$1true 3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse02false 4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse346262000346262USD$falsetruefalse2truefalsefalse386010000386010USD$falsetruefalsexbrli:monetaryItemTypemonetaryThis item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.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.2) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 false23false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse32590003259USD$falsefalsefalse2truefalsefalse473000473USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized gain before deducting pre-tax unrealized losses on investments in available-for-sale securities impacting investments.No definition available.false24false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel1truefalsefalse-500000-500USD$falsefalsefalse2truefalsefalse-279000-279USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized loss before deducting pre-tax unrealized gain on investments in available-for-sale securities impacting investments.No definition available.false25false 4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel1truefalsefalse349021000349021USD$falsefalsefalse2truefalsefalse386204000386204USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 25 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (aa) -URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562 true26false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3false USDtruefalse$eol_PE7265----1310-Q0007_STD_0_20130630_0_712705x709312http://www.sec.gov/CIK0001048477instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseCertificates of Depositus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_CertificatesOfDepositMemberus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse07true 3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse08false 4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse3829500038295USD$falsefalsefalse2truefalsefalse4874100048741USD$falsefalsefalsexbrli:monetaryItemTypemonetaryThis item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.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.2) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 false29false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse30003USD$falsefalsefalse2truefalsefalse1400014USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized gain before deducting pre-tax unrealized losses on investments in available-for-sale securities impacting investments.No definition available.false210false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel1truefalsefalse00USD$falsefalsefalse2truefalsefalse-1000-1USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized loss before deducting pre-tax unrealized gain on investments in available-for-sale securities impacting investments.No definition available.false211false 4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel1truefalsefalse3829800038298USD$falsefalsefalse2truefalsefalse4875400048754USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 25 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (aa) -URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562 true212false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse5false USDtruefalse$eol_PE7265----1310-Q0007_STD_0_20130630_0_712705x709118http://www.sec.gov/CIK0001048477instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseCorporate Debt Securitiesus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_DomesticCorporateDebtSecuritiesMemberus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse013true 3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse014false 4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse235628000235628USD$falsefalsefalse2truefalsefalse316709000316709USD$falsefalsefalsexbrli:monetaryItemTypemonetaryThis item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.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.2) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 false215false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse169000169USD$falsefalsefalse2truefalsefalse402000402USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized gain before deducting pre-tax unrealized losses on investments in available-for-sale securities impacting investments.No definition available.false216false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel1truefalsefalse-482000-482USD$falsefalsefalse2truefalsefalse-211000-211USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized loss before deducting pre-tax unrealized gain on investments in available-for-sale securities impacting investments.No definition available.false217false 4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel1truefalsefalse235315000235315USD$falsefalsefalse2truefalsefalse316900000316900USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 25 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (aa) -URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562 true218false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse7false USDtruefalse$eol_PE7265----1310-Q0007_STD_0_20130630_0_712705x711817http://www.sec.gov/CIK0001048477instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseCorporate Equity Securitiesus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_EquitySecuritiesMemberus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse019true 3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse020false 4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse30000003000USD$falsefalsefalse2truefalsefalse30000003000USD$falsefalsefalsexbrli:monetaryItemTypemonetaryThis item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.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.2) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 false221false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse29730002973USD$falsefalsefalse2truefalsefalse00USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized gain before deducting pre-tax unrealized losses on investments in available-for-sale securities impacting investments.No definition available.false222false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel1truefalsefalse00USD$falsefalsefalse2truefalsefalse-67000-67USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized loss before deducting pre-tax unrealized gain on investments in available-for-sale securities impacting investments.No definition available.false223false 4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel1truefalsefalse59730005973USD$falsefalsefalse2truefalsefalse29330002933USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 25 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (aa) -URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562 true224false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse9false USDtruefalse$eol_PE7265----1310-Q0007_STD_0_20130630_0_712705x712703http://www.sec.gov/CIK0001048477instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseCommercial Paperus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_CommercialPaperMemberus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse025true 3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse026false 4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse6279100062791USD$falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThis item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.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.2) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 false227false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse5300053USD$falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized gain before deducting pre-tax unrealized losses on investments in available-for-sale securities impacting investments.No definition available.false228false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel1truefalsefalse00USD$falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized loss before deducting pre-tax unrealized gain on investments in available-for-sale securities impacting investments.No definition available.false229false 4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel1truefalsefalse6284400062844USD$falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 25 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (aa) -URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562 true230false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse10false USDtruefalse$eol_PE7265----1310-Q0007_STD_0_20130630_0_712705x711515http://www.sec.gov/CIK0001048477instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseU.S. Government Agency Securitiesus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_USGovernmentAgenciesDebtSecuritiesMemberus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse031true 3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse032false 4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse65000006500USD$falsefalsefalse2truefalsefalse1751200017512USD$falsefalsefalsexbrli:monetaryItemTypemonetaryThis item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.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.2) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 false233false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse00USD$falsefalsefalse2truefalsefalse50005USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized gain before deducting pre-tax unrealized losses on investments in available-for-sale securities impacting investments.No definition available.false234false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel1truefalsefalse-18000-18USD$falsefalsefalse2truefalsefalse00USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized loss before deducting pre-tax unrealized gain on investments in available-for-sale securities impacting investments.No definition available.false235false 4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel1truefalsefalse64820006482USD$falsefalsefalse2truefalsefalse1751700017517USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 25 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (aa) -URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562 true236false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse12false USDtruefalse$eol_PE7265----1310-Q0007_STD_0_20130630_0_712705x734550http://www.sec.gov/CIK0001048477instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseGreek Government-Issued Bondsus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisxbrldihttp://xbrl.org/2006/xbrldibmrn_GreekGovernmentBondssMemberus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse037true 3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse038false 4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse4800048USD$falsefalsefalse2truefalsefalse4800048USD$falsefalsefalsexbrli:monetaryItemTypemonetaryThis item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.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.2) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 false239false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse6100061USD$falsefalsefalse2truefalsefalse5200052USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized gain before deducting pre-tax unrealized losses on investments in available-for-sale securities impacting investments.No definition available.false240false 4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel1truefalsefalse00USD$falsefalsefalse2truefalsefalse00USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of accumulated pre-tax unrealized loss before deducting pre-tax unrealized gain on investments in available-for-sale securities impacting investments.No definition available.false241false 4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel1truefalsefalse109000109USD$falsetruefalse2truefalsefalse100000100USD$falsetruefalsexbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 25 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (aa) -URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562 true2falseAmortized Cost Gross Unrealized Holding Gain or Loss and Fair Value of Available for Sale Security by Major Security Type (Detail) (USD $)ThousandsUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.biomarinpharm.com/taxonomy/role/DisclosureAmortizedCostGrossUnrealizedHoldingGainOrLossAndFairValueOfAvailableForSaleSecurityByMajorSecurityType241