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_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
2false
4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse346262000346262USD$falsetruefalse | 2truefalsefalse386010000386010USD$falsetruefalse | xbrli: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
false2
3false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse32590003259USD$falsefalsefalse | 2truefalsefalse473000473USD$falsefalsefalse | xbrli: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.false2
4false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel| 1truefalsefalse-500000-500USD$falsefalsefalse | 2truefalsefalse-279000-279USD$falsefalsefalse | xbrli: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.false2
5false
4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel| 1truefalsefalse349021000349021USD$falsefalsefalse | 2truefalsefalse386204000386204USD$falsefalsefalse | xbrli: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
true2
6false
0truefalsetruefalsefalsefalsefalsefalsefalse| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | 3false
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$nanafalse0
7true
3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
8false
4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse3829500038295USD$falsefalsefalse | 2truefalsefalse4874100048741USD$falsefalsefalse | xbrli: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
false2
9false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse30003USD$falsefalsefalse | 2truefalsefalse1400014USD$falsefalsefalse | xbrli: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.false2
10false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel| 1truefalsefalse00USD$falsefalsefalse | 2truefalsefalse-1000-1USD$falsefalsefalse | xbrli: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.false2
11false
4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel| 1truefalsefalse3829800038298USD$falsefalsefalse | 2truefalsefalse4875400048754USD$falsefalsefalse | xbrli: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
true2
12false
0truefalsetruefalsefalsefalsefalsefalsefalse| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | 5false
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$nanafalse0
13true
3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
14false
4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse235628000235628USD$falsefalsefalse | 2truefalsefalse316709000316709USD$falsefalsefalse | xbrli: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
false2
15false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse169000169USD$falsefalsefalse | 2truefalsefalse402000402USD$falsefalsefalse | xbrli: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.false2
16false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel| 1truefalsefalse-482000-482USD$falsefalsefalse | 2truefalsefalse-211000-211USD$falsefalsefalse | xbrli: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.false2
17false
4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel| 1truefalsefalse235315000235315USD$falsefalsefalse | 2truefalsefalse316900000316900USD$falsefalsefalse | xbrli: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
true2
18false
0truefalsetruefalsefalsefalsefalsefalsefalse| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | 7false
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$nanafalse0
19true
3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
20false
4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse30000003000USD$falsefalsefalse | 2truefalsefalse30000003000USD$falsefalsefalse | xbrli: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
false2
21false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse29730002973USD$falsefalsefalse | 2truefalsefalse00USD$falsefalsefalse | xbrli: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.false2
22false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel| 1truefalsefalse00USD$falsefalsefalse | 2truefalsefalse-67000-67USD$falsefalsefalse | xbrli: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.false2
23false
4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel| 1truefalsefalse59730005973USD$falsefalsefalse | 2truefalsefalse29330002933USD$falsefalsefalse | xbrli: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
true2
24false
0truefalsetruefalsefalsefalsefalsefalsefalse| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | 9false
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$nanafalse0
25true
3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
26false
4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse6279100062791USD$falsefalsefalse | 2falsefalsefalse00falsefalsefalse | xbrli: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
false2
27false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse5300053USD$falsefalsefalse | 2falsefalsefalse00falsefalsefalse | xbrli: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.false2
28false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel| 1truefalsefalse00USD$falsefalsefalse | 2falsefalsefalse00falsefalsefalse | xbrli: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.false2
29false
4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel| 1truefalsefalse6284400062844USD$falsefalsefalse | 2falsefalsefalse00falsefalsefalse | xbrli: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
true2
30false
0truefalsetruefalsefalsefalsefalsefalsefalse| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | 10false
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$nanafalse0
31true
3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
32false
4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse65000006500USD$falsefalsefalse | 2truefalsefalse1751200017512USD$falsefalsefalse | xbrli: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
false2
33false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse00USD$falsefalsefalse | 2truefalsefalse50005USD$falsefalsefalse | xbrli: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.false2
34false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel| 1truefalsefalse-18000-18USD$falsefalsefalse | 2truefalsefalse00USD$falsefalsefalse | xbrli: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.false2
35false
4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel| 1truefalsefalse64820006482USD$falsefalsefalse | 2truefalsefalse1751700017517USD$falsefalsefalse | xbrli: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
true2
36false
0truefalsetruefalsefalsefalsefalsefalsefalse| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | 12false
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$nanafalse0
37true
3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
38false
4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse4800048USD$falsefalsefalse | 2truefalsefalse4800048USD$falsefalsefalse | xbrli: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
false2
39false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedGainAccumulatedInInvestmentsbmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse6100061USD$falsefalsefalse | 2truefalsefalse5200052USD$falsefalsefalse | xbrli: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.false2
40false
4bmrn_AvailableForSaleSecuritiesGrossUnrealizedLossAccumulatedInInvestmentsbmrn_falsecreditinstantfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel| 1truefalsefalse00USD$falsefalsefalse | 2truefalsefalse00USD$falsefalsefalse | xbrli: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.false2
41false
4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel| 1truefalsefalse109000109USD$falsetruefalse | 2truefalsefalse100000100USD$falsetruefalse | xbrli: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
true2
falseAmortized 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