/* Contadores numéricos: nunca deben recortar cifras de 2, 3 o más dígitos. */
#notification-count,
#catalog-product-count,
#catalog-service-count,
#saved-count,
#bulk-delete-products span,
.secondary.mini > span {
  box-sizing: border-box;
  width: auto;
  max-width: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

#notification-count {
  right: -10px;
  top: -8px;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  place-items: center;
  font-size: 9px;
  letter-spacing: -.02em;
  z-index: 2;
}

.catalog-section-tabs button strong {
  min-width: 34px;
  width: auto;
  height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  justify-self: end;
  font-size: 14px;
  letter-spacing: -.03em;
}

#saved-count,
.secondary.mini > span {
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
}

#bulk-delete-products span {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  padding: 2px 6px;
  place-items: center;
  border-radius: 999px;
}

.badge,
.role-badge,
.abc-badge,
.inventory-out,
.inventory-critical,
.inventory-healthy,
.inventory-excess {
  max-width: 100%;
  line-height: 1.15;
}

.summary-card strong,
.customer-kpi strong,
.quotation-kpi strong,
.forecast-value strong,
.abc-class-totals b {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 800px) {
  #notification-count {
    right: -7px;
    top: -7px;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-width: 1.5px;
    font-size: 8px;
  }

  .catalog-section-tabs button {
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
  }
  .catalog-section-tabs button strong {
    min-width: 30px;
    height: 28px;
    padding: 0 7px;
    font-size: 12px;
  }

  .summary-card strong,
  .customer-kpi strong,
  .quotation-kpi strong {
    font-size: clamp(14px, 4.4vw, 17px);
  }
}

@media (max-width: 360px) {
  .catalog-section-tabs button strong {
    padding-inline: 6px;
    font-size: 11px;
  }
}
