/* Counters must not inherit the sidebar icon's fixed 21px width. */
.badge.amber, .badge.pending, .pill.pending,
span[style*="background:#ffbf00"] {
  box-sizing: border-box;
  min-width: 38px;
  min-height: 32px;
  padding: 6px 12px !important;
  line-height: 1.4;
  border-radius: 7px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sidebar nav a:has(.badge),
.sidebar nav a:has(span[style*="background:#ffbf00"]),
.sidebar-admin a { flex-wrap: wrap; }
.sidebar nav a .badge,
.sidebar nav a span[style*="background:#ffbf00"],
.sidebar-admin a .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-width: 38px;
  min-height: 32px;
  padding: 6px 12px !important;
  margin-left: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.4;
}
