/* Keep attention counts readable in both the full sidebar and its compact rail. */
.app-shell .sidebar .nav-item,
.app-shell .sidebar .nav-group-toggle { position:relative; }
.app-shell .sidebar .nav-item > :is(.attention-count,.nav-notification-count,.request-count-badge),
.app-shell .sidebar .nav-group-toggle > .attention-count {
  position:static;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  align-self:center;
  flex:0 0 auto;
  width:auto;
  min-width:22px;
  max-width:none;
  height:22px;
  min-height:22px;
  padding:0 6px;
  margin:0 0 0 auto;
  border:0;
  border-radius:999px;
  background:#c91f35!important;
  color:#fff!important;
  font:700 11px/1 var(--font,'Inter',Arial,sans-serif);
  font-variant-numeric:tabular-nums;
  letter-spacing:0;
  text-transform:none;
  text-align:center;
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
  clip-path:none;
  opacity:1;
  transform:none;
  animation:none!important;
  transition:none;
  box-shadow:none;
  pointer-events:none;
}
.app-shell .sidebar .nav-group-toggle > .attention-count { margin-left:0; }
.app-shell .sidebar .nav-group-toggle > .nav-group-chevron { flex-shrink:0; }
.app-shell .sidebar .nav-group-toggle[aria-expanded="false"]:has(> .attention-count:not([hidden])) > .nav-group-chevron { margin-left:0; }
.app-shell .sidebar .request-count-badge > b { color:#fff; font:inherit; animation:none!important; }
.app-shell .sidebar :is(.attention-count,.nav-notification-count,.request-count-badge)[hidden] { display:none!important; }

.app-shell.sidebar-collapsed .sidebar .nav-item > :is(.attention-count,.nav-notification-count,.request-count-badge),
.app-shell.sidebar-collapsed .sidebar .nav-group-toggle > .attention-count {
  position:absolute;
  z-index:1;
  top:0;
  right:0;
  min-width:19px;
  height:19px;
  min-height:19px;
  padding:0 4px;
  font-size:10px;
  margin:0;
}
.app-shell.sidebar-collapsed .sidebar .nav-group-toggle[aria-expanded="false"]:has(> .attention-count:not([hidden])) > .nav-group-chevron { visibility:hidden; }
@media(max-width:1180px) {
  .app-shell:not(.sidebar-expanded) .sidebar .nav-item > :is(.attention-count,.nav-notification-count,.request-count-badge),
  .app-shell:not(.sidebar-expanded) .sidebar .nav-group-toggle > .attention-count {
    position:absolute;
    z-index:1;
    top:0;
    right:0;
    min-width:19px;
    height:19px;
    min-height:19px;
    padding:0 4px;
    font-size:10px;
    margin:0;
  }
  .app-shell:not(.sidebar-expanded) .sidebar .nav-group-toggle[aria-expanded="false"]:has(> .attention-count:not([hidden])) > .nav-group-chevron { visibility:hidden; }
}

/* The expanded group exposes its own item badges, so avoid repeating the total. */
.app-shell .sidebar .nav-group-toggle[aria-expanded="true"] > .attention-count { display:none!important; }
.app-shell .sidebar .nav-group-toggle[aria-expanded="true"] > .nav-group-chevron { margin-left:auto; visibility:visible; }
