.crm-fav-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 0.4rem;
  background: transparent;
  color: #64748b;
  line-height: 1;
  cursor: pointer;
}

.crm-fav-glyph {
  font-size: 1.15rem;
  line-height: 1;
}

.crm-fav-star:hover,
.crm-fav-star:focus-visible {
  color: #2563eb;
  border-color: #2563eb;
  outline: none;
}

.crm-fav-star.is-on {
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.5);
  background: rgba(251, 191, 36, 0.18);
}

.crm-fav-title-row {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  min-width: 0;
}

.crm-fav-title-row > h1 {
  min-width: 0;
}

[data-bs-theme="dark"] .crm-fav-star {
  color: #e8ecf4;
  border-color: rgba(147, 197, 253, 0.4);
  background: rgba(96, 165, 250, 0.08);
}

[data-bs-theme="dark"] .crm-fav-star:hover,
[data-bs-theme="dark"] .crm-fav-star:focus-visible {
  color: #93c5fd;
  border-color: #93c5fd;
}

[data-bs-theme="dark"] .crm-fav-star.is-on {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.16);
}

.crm-fav-nav .sub-menu {
  max-height: 16rem;
  overflow-y: auto;
}

.crm-fav-nav .crm-fav-item {
  position: relative;
}

#sidebar-menu .crm-fav-nav a.crm-fav-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  height: auto;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  padding-right: 1.85rem;
  line-height: 1.2;
}

#sidebar-menu .crm-fav-nav .crm-fav-kind {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

#sidebar-menu .crm-fav-nav .crm-fav-title {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-fav-nav .crm-fav-drop {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  color: var(--crm-shell-chrome-text-muted, rgba(255, 255, 255, 0.7));
  cursor: pointer;
}

.crm-fav-nav .crm-fav-drop:hover,
.crm-fav-nav .crm-fav-drop:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.crm-fav-nav .crm-fav-empty > a {
  opacity: 0.75;
  pointer-events: none;
}

.crm-fav-nav .crm-fav-empty[hidden] {
  display: none !important;
}
