/* MudBlazor positions badges with physical `left`/`right` insets and ships no RTL
   overrides, so anything that relies on Origin lands mirrored under an RTL provider. */

/* A tab badge hangs off a zero-width anchor placed after the label, so the
   built-in `right` origin grows the badge back over the title in RTL. */
[dir="rtl"] .mud-tab-badge > .mud-badge-wrapper > .mud-badge.mud-badge-top.right {
    inset: auto calc(100% - 4px) calc(100% - 4px) auto;
}

[dir="rtl"] .mud-tab-badge > .mud-badge-wrapper > .mud-badge.mud-badge-top.right.mud-badge-overlap {
    inset: auto calc(100% - 12px) calc(100% - 12px) auto;
}

/* `.mud-tab-badge` keeps a physical margin-left next to its logical one, which in
   RTL applies on top of the mirrored margin instead of replacing it. */
[dir="rtl"] .mud-tab-badge {
    margin-left: 0;
}
