XML 93 R80.htm IDEA: XBRL DOCUMENT
v3.22.0.1

EQUITY COMPENSATION PLANS AND STOCK-BASED COMPENSATION - Additional Information (Detail) - USD ($) $ / shares in Units, shares in Millions |  | 1 Months Ended | 12 Months Ended
--- | --- | --- | ---
Sep. 19, 2019 | Mar. 31, 2020 | Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Share based awards, authorized (in shares) |  |  | 44.5 |  |
Span of offering period, in years |  |  | 24 months |  |
Stock-based compensation expense capitalized to inventory |  |  | $ 20,000,000 | $ 20,100,000 | $ 20,300,000
Weighted-average fair value per option granted (in dollars per share) |  |  | $ 31.61 | $ 27.47 | $ 36.84
Total intrinsic value of options exercised |  |  | $ 40,700,000 | $ 71,900,000 | $ 32,500,000
Net tax benefit from stock options exercised |  |  | $ 500,000 |  |
Employee Stock Purchase Plan |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Share based awards, authorized (in shares) |  |  | 7.0 |  |
Shares reserved for future issuance (in shares) |  |  | 3.1 |  |
Options to purchase shares of common stock, percentage |  |  | 85.00% |  |
Span of offering period, in years |  |  | 2 years |  |
Maximum percentage of qualified compensation to be used for purchase |  |  | 10.00% |  |
Maximum payroll deductions |  |  | $ 25,000 |  |
Shares issued under the employee stock purchase plan (in shares) |  |  | 0.3 |  |
Unrecognized compensation cost related to unvested awards |  |  | $ 17,000,000 |  |
Unrecognized compensation cost expected to recognized over weighted average period, in years |  |  | 1 year 4 months 24 days |  |
Stock Option |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Unrecognized compensation cost related to unvested awards |  |  | $ 31,300,000 |  |
Unrecognized compensation cost expected to recognized over weighted average period, in years |  |  | 2 years 6 months |  |
Restricted Stock With Service Based Vesting Conditions |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Weighted-average fair value per RSU granted (in dollars per share) |  |  | $ 78.46 | $ 77.13 | $ 91.28
The total intrinsic value of restricted stock vested and released |  |  | $ 117,200,000 | $ 109,900,000 | $ 101,000,000
Unrecognized compensation cost related to unvested awards |  |  | $ 250,600,000 |  |
Unrecognized compensation cost expected to recognized over weighted average period, in years |  |  | 2 years 7 months 6 days |  |
Restricted Stock Unit Awards with Performance-Based Vesting Conditions |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Weighted-average fair value per RSU granted (in dollars per share) |  |  | $ 0 |  | $ 94.53
Unrecognized compensation cost related to unvested awards |  |  | $ 400,000 |  |
Unrecognized compensation cost expected to recognized over weighted average period, in years |  |  | 3 months |  |
Award vesting service period |  |  | 3 years |  |
Percentage of threshold achievement |  |  | 75.00% |  |
Percentage of ceiling achievement |  |  | 125.00% |  |
Restricted Stock Unit Awards with Performance-Based Vesting Conditions | Minimum |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Percentage of, number of shares may earned |  |  | 50.00% |  |
Restricted Stock Unit Awards with Performance-Based Vesting Conditions | Maximum |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Percentage of, number of shares may earned |  |  | 200.00% |  |
Unvested RSUs | Independent Director | Common Stock |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Vesting period, years | 1 year |  |  |  |
Initial equity grant value | $ 400,000 |  |  |  |
Average closing price of common stock, trailing period | 3 months |  |  |  |
Restricted Stock Unit Awards with non-Revenue based Performance Conditions |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Weighted-average fair value per RSU granted (in dollars per share) |  |  | $ 78.09 | $ 84.17 | 81.00
Unrecognized compensation cost expected to recognized over weighted average period, in years |  |  | 1 year 8 months 12 days |  |
Award vesting service period |  | 3 years |  |  |
Restricted Stock Unit Awards with non-Revenue based Performance Conditions | Minimum |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Shares earned range |  | 50.00% |  |  |
Restricted Stock Unit Awards with non-Revenue based Performance Conditions | Maximum |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Shares earned range |  | 200.00% |  |  |
Restricted Stock Unit Awards with non-Revenue based Performance Conditions, Probable Of Vesting |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Unrecognized compensation cost related to unvested awards |  |  | $ 10,900,000 |  |
Restricted Stock Unit Awards with non-Revenue based Performance Conditions, Not Probable Of Vesting |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Unrecognized compensation cost related to unvested awards |  |  | $ 10,600,000 |  |
March 2019 Base Restricted Stock Unit Awards With Market Conditions |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Weighted-average fair value per RSU granted (in dollars per share) |  |  | $ 117.52 |  | $ 143.92
Unrecognized compensation cost related to unvested awards |  |  | $ 14,900,000 |  |
Unrecognized compensation cost expected to recognized over weighted average period, in years |  |  | 1 year 10 months 24 days |  |
Award vesting service period |  |  | 3 years |  |
Ceiling achievement level |  |  | 100.00% |  |
March 2019 Base Restricted Stock Unit Awards With Market Conditions | Minimum |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Weighted-average fair value per RSU granted (in dollars per share) |  |  |  | 112.12 |
Shares earned range |  |  | 0.00% |  |
Annual shareholder return multiplier |  |  | 50.00% |  |
March 2019 Base Restricted Stock Unit Awards With Market Conditions | Maximum |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Weighted-average fair value per RSU granted (in dollars per share) |  |  |  | $ 217.65 |
Shares earned range |  |  | 200.00% |  |
2017 Equity Incentive Plan |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Shares reserved for future issuance (in shares) |  |  | 29.6 |  |
2017 Equity Incentive Plan | Stock Option |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Vesting period, years |  |  | 4 years |  |
Initial time period vesting requirements |  |  | 12 months |  |
Contractual term of stock option awards, years |  |  | 10 years |  |
2017 Equity Incentive Plan | Restricted Stock With Service Based Vesting Conditions |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Vesting period, years |  |  | 4 years |  |
2017 Equity Incentive Plan | Restricted Stock Unit Awards with Performance-Based Vesting Conditions |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Initial time period vesting requirements |  |  | 3 years |  |

X
- Definition Annual Shareholder Return Multiplier On Absolute Basis, Percentage + References No definition available. + Details
Name: | bmrn_AnnualShareholderReturnMultiplierOnAbsoluteBasisPercentage
Namespace Prefix: | bmrn_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Average closing price trailing period. + References No definition available. + Details
Name: | bmrn_AverageClosingPriceTrailingPeriod
Namespace Prefix: | bmrn_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value inputs revenue multiple ceiling achievement percentage. + References No definition available. + Details
Name: | bmrn_FairValueInputsRevenueMultipleCeilingAchievementPercentage
Namespace Prefix: | bmrn_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value inputs revenue multiple threshold achievement percentage. + References No definition available. + Details
Name: | bmrn_FairValueInputsRevenueMultipleThresholdAchievementPercentage
Namespace Prefix: | bmrn_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum payroll deductions. + References No definition available. + Details
Name: | bmrn_MaximumPayrollDeductions
Namespace Prefix: | bmrn_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Share Based Compensation Arrangement By Share Based Payment Award, Annual Performance Metric, Percentage + References No definition available. + Details
Name: | bmrn_ShareBasedCompensationArrangementByShareBasedPaymentAwardAnnualPerformanceMetricPercentage
Namespace Prefix: | bmrn_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Share based compensation arrangement by share based payment award initial time period vesting requirement. + References No definition available. + Details
Name: | bmrn_ShareBasedCompensationArrangementByShareBasedPaymentAwardInitialTimePeriodVestingRequirement
Namespace Prefix: | bmrn_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Share based compensation arrangement by share based payment award performance percentage. + References No definition available. + Details
Name: | bmrn_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerformancePercentage
Namespace Prefix: | bmrn_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Share Based Compensation Arrangement By Share Based Payments, Annual Target Ceiling, Base Percentage + References No definition available. + Details
Name: | bmrn_ShareBasedCompensationArrangementByShareBasedPaymentsAnnualTargetCeilingBasePercentage
Namespace Prefix: | bmrn_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Span of offering period. + References No definition available. + Details
Name: | bmrn_SpanOfOfferingPeriod
Namespace Prefix: | bmrn_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cost capitalized for award under share-based payment arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (h)(1)(ii) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of cost not yet recognized for nonvested award under share-based payment arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (i) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (i) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of tax benefit from exercise of option under share-based payment arrangement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2A -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120381028&loc=SL79508275-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromExerciseOfStockOptions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Estimated period over which an employee is required to provide service in exchange for the equity-based payment award, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The weighted average fair value at grant date for nonvested equity-based awards issued during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(2)(iii)(1) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The highest percentage of annual salary that an employee is permitted to utilize with respect to the plan. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of shares authorized for issuance under share-based payment arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The difference between the maximum number of shares (or other type of equity) authorized for issuance under the plan (including the effects of amendments and adjustments), and the sum of: 1) the number of shares (or other type of equity) already issued upon exercise of options or other equity-based awards under the plan; and 2) shares (or other type of equity) reserved for issuance on granting of outstanding awards, net of cancellations and forfeitures, if applicable. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of accumulated difference between fair value of underlying shares on dates of exercise and exercise price on options exercised (or share units converted) into shares. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (d)(2) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The weighted average grant-date fair value of options granted during the reporting period as calculated by applying the disclosed option pricing methodology. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (d)(1) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Intrinsic value of vested award under share-based payment arrangement. Excludes share and unit options. + References No definition available. + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueVested
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Period from grant date that an equity-based award expires, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Purchase price of common stock expressed as a percentage of its fair value. + References No definition available. + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Value, before forfeiture, of shares granted under share-based payment arrangement. Excludes employee stock ownership plan (ESOP). + References No definition available. + Details
Name: | us-gaap_StockGrantedDuringPeriodValueSharebasedCompensationGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Number, after forfeiture, of shares or units issued under share-based payment arrangement. Excludes shares or units issued under employee stock ownership plan (ESOP). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=123467817&loc=d3e21463-112644 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770 Reference 3: 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(28)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 4: 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(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=us-gaap_EmployeeStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_EmployeeStockOptionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=bmrn_RestrictedStockWithServiceBasedVestingConditionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=bmrn_TwoThousandNineteenBaseRestrictedStockUnitAwardsWithRevenueBasedVestingConditionsMember
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: |

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_RestrictedStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_TitleOfIndividualAxis=bmrn_IndependentDirectorMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_CommonStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=bmrn_TwoThousandTwentyBaseRestrictedStockUnitAwardsWithNonRevenueBasedVestingConditionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=bmrn_TwoThousandTwentyBaseRestrictedStockUnitAwardsWithNonRevenueBasedVestingConditionsProbableOfVestingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=bmrn_TwoThousandTwentyBaseRestrictedStockUnitAwardsWithNonRevenueBasedVestingConditionsNotProbableOfVestingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=bmrn_TwoThousandNineteenBaseRestrictedStockUnitAwardsWithMarketConditionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PlanNameAxis=bmrn_TwoThousandSeventeenEquityIncentivePlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |