XML 110 R97.htm IDEA: XBRL DOCUMENT
v3.22.0.1

NET INCOME (LOSS) PER COMMON SHARE - Additional Information (Detail) - USD ($) $ / shares in Units, $ in Thousands |  | 12 Months Ended
--- | --- | ---
Oct. 15, 2020 | Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019
Earnings Per Share [Line Items] |  |  |  |
Debt conversion, principal cash settlement amount |  | $ 0 | $ 374,991 | $ 0
Convertible Senior Notes Due 2020 |  |  |  |
Earnings Per Share [Line Items] |  |  |  |
Debt instrument, interest rate, stated percentage, per annum | 1.50% |  |  |
Debt conversion, principal cash settlement amount | $ 375,000 |  |  |
Debt instrument, convertible, conversion price, per share (in dollars per share) |  |  | $ 94.15 | $ 94.15

X
- Definition Earnings per share line Items. + References No definition available. + Details
Name: | bmrn_EarningsPerShareLineItems
Namespace Prefix: | bmrn_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The price per share of the conversion feature embedded in the debt instrument. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 5 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123466204&loc=SL6031898-161870 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 1B -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611 + Details
Name: | us-gaap_DebtInstrumentConvertibleConversionPrice1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 1B -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The cash outflow from the repayment of a long-term debt instrument which can be exchanged for a specified amount of another security, typically the entity's common stock, at the option of the issuer or the holder. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123570139&loc=d3e3291-108585 + Details
Name: | us-gaap_RepaymentsOfConvertibleDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_DebtInstrumentAxis=bmrn_ConvertibleSeniorNotesDueTwentyTwentyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |