XML 38 R29.htm IDEA: XBRL DOCUMENT
v3.22.2

Financial Instruments - Schedule of Cash, Cash Equivalents and Available-for-Sale Securities by Significant Investment Category (Detail) - USD ($) $ in Thousands | 6 Months Ended | 12 Months Ended
--- | --- | ---
Jun. 30, 2022 | Dec. 31, 2021
Schedule of Available-for-sale Securities [Line Items] |  |  |
Amortized Cost | $ 1,537,944 | $ 1,523,467 |
Gross Unrealized Gains | 150 | 719 |
Gross Unrealized Losses | (15,844) | (2,518) |
Aggregate Fair Value | 1,522,250 | 1,521,668 |
Cash and Cash Equivalents | 619,802 | 587,276 | [1]
Short-term Marketable Securities | 489,945 | 426,599 | [1]
Long-term Marketable Securities | 412,503 | 507,793 | [1]
Level 1: | Cash |  |  |
Schedule of Available-for-sale Securities [Line Items] |  |  |
Cash | 355,318 | 301,177 |
Gross Unrealized Gains | 0 | 0 |
Gross Unrealized Losses | 0 | 0 |
Aggregate Fair Value | 355,318 | 301,177 |
Cash and Cash Equivalents | 355,318 | 301,177 |
Short-term Marketable Securities | 0 | 0 |
Long-term Marketable Securities | 0 | 0 |
Level 2: |  |  |
Schedule of Available-for-sale Securities [Line Items] |  |  |
Amortized Cost | 1,182,626 | 1,222,290 |
Gross Unrealized Gains | 150 | 719 |
Gross Unrealized Losses | (15,844) | (2,518) |
Aggregate Fair Value | 1,166,932 | 1,220,491 |
Cash and Cash Equivalents | 264,484 | 286,099 |
Short-term Marketable Securities | 489,945 | 426,599 |
Long-term Marketable Securities | 412,503 | 507,793 |
Level 2: | Money market instruments |  |  |
Schedule of Available-for-sale Securities [Line Items] |  |  |
Amortized Cost | 264,484 | 285,099 |
Gross Unrealized Gains | 0 | 0 |
Gross Unrealized Losses | 0 | 0 |
Aggregate Fair Value | 264,484 | 285,099 |
Cash and Cash Equivalents | 264,484 | 285,099 |
Short-term Marketable Securities | 0 | 0 |
Long-term Marketable Securities | 0 | 0 |
Level 2: | Corporate debt securities |  |  |
Schedule of Available-for-sale Securities [Line Items] |  |  |
Amortized Cost | 560,401 | 584,000 |
Gross Unrealized Gains | 3 | 386 |
Gross Unrealized Losses | (12,450) | (2,086) |
Aggregate Fair Value | 547,954 | 582,300 |
Cash and Cash Equivalents | 0 | 0 |
Short-term Marketable Securities | 273,400 | 200,304 |
Long-term Marketable Securities | 274,554 | 381,996 |
Level 2: | U.S. government agency securities |  |  |
Schedule of Available-for-sale Securities [Line Items] |  |  |
Amortized Cost | 263,184 | 224,774 |
Gross Unrealized Gains | 15 | 182 |
Gross Unrealized Losses | (2,734) | (325) |
Aggregate Fair Value | 260,465 | 224,631 |
Cash and Cash Equivalents | 0 | 0 |
Short-term Marketable Securities | 180,952 | 146,421 |
Long-term Marketable Securities | 79,513 | 78,210 |
Level 2: | Commercial paper |  |  |
Schedule of Available-for-sale Securities [Line Items] |  |  |
Amortized Cost | 33,107 | 68,384 |
Gross Unrealized Gains | 0 | 0 |
Gross Unrealized Losses | (23) | 0 |
Aggregate Fair Value | 33,084 | 68,384 |
Cash and Cash Equivalents | 0 | 1,000 |
Short-term Marketable Securities | 33,084 | 67,384 |
Long-term Marketable Securities | 0 | 0 |
Level 2: | Asset-backed securities |  |  |
Schedule of Available-for-sale Securities [Line Items] |  |  |
Amortized Cost | 58,888 | 56,936 |
Gross Unrealized Gains | 8 | 10 |
Gross Unrealized Losses | (633) | (95) |
Aggregate Fair Value | 58,263 | 56,851 |
Cash and Cash Equivalents | 0 | 0 |
Short-term Marketable Securities | 0 | 9,451 |
Long-term Marketable Securities | 58,263 | 47,400 |
Level 2: | Foreign and other |  |  |
Schedule of Available-for-sale Securities [Line Items] |  |  |
Amortized Cost | 2,562 | 3,097 |
Gross Unrealized Gains | 124 | 141 |
Gross Unrealized Losses | (4) | (12) |
Aggregate Fair Value | 2,682 | 3,226 |
Cash and Cash Equivalents | 0 | 0 |
Short-term Marketable Securities | 2,509 | 3,039 |
Long-term Marketable Securities | $ 173 | $ 187 |
Minimum |  |  |
Schedule of Available-for-sale Securities [Line Items] |  |  |
Long term marketable securities maturity period | 1 year | 1 year |
Maximum |  |  |
Schedule of Available-for-sale Securities [Line Items] |  |  |
Short term marketable securities maturity period | 1 year | 1 year |
Long term marketable securities maturity period | 5 years | 5 years |
[1] | (1)December 31, 2021 balances were derived from the audited Consolidated Financial Statements included in the Company’s Annual Report on Form 10-K for the year ended December 31, 2021, filed with the SEC on February 25, 2022.

X
- Definition Long-term marketable securities maturity period. + References No definition available. + Details
Name: | bmrn_LongTermMarketableSecuritiesMaturityPeriod
Namespace Prefix: | bmrn_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Schedule of cash, cash equivalents and available-for-sale securities. + References No definition available. + Details
Name: | bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems
Namespace Prefix: | bmrn_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Short-term marketable securities maturity period. + References No definition available. + Details
Name: | bmrn_ShortTermMarketableSecuritiesMaturityPeriod
Namespace Prefix: | bmrn_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, before tax, of unrealized loss in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(6)) -URI https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=124260329&loc=d3e26610-111562 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (aa) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleSecuritiesDebtSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), classified as current. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 2 -URI https://asc.fasb.org/extlink&oid=124260329&loc=d3e26626-111562 + Details
Name: | us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), classified as noncurrent. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(12)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 2 -URI https://asc.fasb.org/extlink&oid=124260329&loc=d3e26626-111562 + Details
Name: | us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Excludes cash and cash equivalents within disposal group and discontinued operation. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 946 -SubTopic 210 -Section 45 -Paragraph 20 -URI https://asc.fasb.org/extlink&oid=118262064&loc=SL116631418-115840 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 852 -SubTopic 10 -Section 55 -Paragraph 10 -URI https://asc.fasb.org/extlink&oid=84165509&loc=d3e56426-112766 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 946 -SubTopic 210 -Section 45 -Paragraph 21 -URI https://asc.fasb.org/extlink&oid=118262064&loc=SL116631419-115840 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(1)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_Cash
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3044-108585 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(1)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_CashAndCashEquivalentsAtCarryingValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InvestmentTypeAxis=us-gaap_CashMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InvestmentTypeAxis=us-gaap_MoneyMarketFundsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InvestmentTypeAxis=us-gaap_CorporateDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InvestmentTypeAxis=us-gaap_USGovernmentAgenciesDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InvestmentTypeAxis=us-gaap_CommercialPaperMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InvestmentTypeAxis=us-gaap_AssetBackedSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InvestmentTypeAxis=bmrn_ForeignGovernmentAndOtherDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |