.menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  color: rgb(82 82 91);
  transition: all 0.2s ease;
}

.menu-link svg {
  color: rgb(113 113 122);
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu-link span {
  line-height: 1.2;
}

.menu-link:hover {
  background: rgb(244 244 245);
  color: rgb(24 24 27);
}

.menu-link:hover svg {
  color: rgb(24 24 27);
  transform: translateX(1px);
}

.active-menu-link {
  background: rgb(244 244 245);
  color: rgb(24 24 27);
  box-shadow: inset 0 0 0 1px rgb(228 228 231);
}

.active-menu-link svg {
  color: rgb(24 24 27);
}

.submenu-link {
  display: block;
  border-radius: 0.75rem;
  padding: 0.48rem 0.7rem;
  color: rgb(113 113 122);
  font-weight: 500;
  transition: all 0.2s ease;
}

.submenu-link:hover {
  background: rgb(244 244 245);
  color: rgb(24 24 27);
}

#albumsToggle[aria-expanded="false"] + #albumsChildren {
  display: none;
}

.active-submenu-link {
  background: rgb(244 244 245);
  color: rgb(24 24 27);
  box-shadow: inset 0 0 0 1px rgb(228 228 231);
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 16.5rem;
  border-radius: 0.9rem;
  background: rgb(255 255 255);
  padding: 0.4rem 0.55rem;
  transition: all 0.2s ease;
}

.profile-pill:hover {
  background: rgb(250 250 250);
}

.profile-avatar {
  height: 2rem;
  width: 2rem;
  border-radius: 999px;
  object-fit: cover;
}

.profile-name,
.profile-role {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgb(24 24 27);
  line-height: 1.1;
}

.profile-role {
  margin-top: 0.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgb(113 113 122);
  line-height: 1.1;
}

.btn-soft {
  border-radius: 0.75rem;
  border: 1px solid rgb(212 212 216);
  background: rgb(255 255 255);
  padding: 0.58rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(39 39 42);
  transition: all 0.2s ease;
}

.btn-soft:hover {
  border-color: rgb(161 161 170);
  background: rgb(250 250 250);
}

.btn-soft-sm {
  border-radius: 0.7rem;
  border: 1px solid rgb(212 212 216);
  background: rgb(255 255 255);
  padding: 0.46rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(39 39 42);
  transition: all 0.2s ease;
}

.btn-soft-sm:hover {
  border-color: rgb(161 161 170);
  background: rgb(250 250 250);
}

.btn-primary {
  border-radius: 0.75rem;
  border: 1px solid rgb(24 24 27);
  background: rgb(24 24 27);
  padding: 0.58rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(255 255 255);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: rgb(39 39 42);
}

.btn-primary-sm {
  border-radius: 0.7rem;
  border: 1px solid rgb(24 24 27);
  background: rgb(24 24 27);
  padding: 0.46rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(255 255 255);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  transition: all 0.2s ease;
}

.btn-primary-sm:hover {
  background: rgb(39 39 42);
}

.metric-card {
  border: 1px solid rgb(228 228 231);
  border-radius: 1rem;
  background: rgb(255 255 255);
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.metric-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(113 113 122);
  font-weight: 700;
}

.metric-value {
  margin-top: 0.35rem;
  font-size: 1.75rem;
  line-height: 2rem;
  font-weight: 800;
  color: rgb(24 24 27);
}

.metric-delta {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.panel {
  border: 1px solid rgb(228 228 231);
  border-radius: 1.15rem;
  background: rgb(255 255 255);
  padding: 1.2rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel-title {
  font-size: 1rem;
  font-weight: 800;
  color: rgb(24 24 27);
}

.chip {
  border-radius: 999px;
  border: 1px solid rgb(212 212 216);
  background: rgb(255 255 255);
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(82 82 91);
  font-weight: 700;
}

.review-item {
  border-radius: 0.9rem;
  border: 1px solid rgb(228 228 231);
  background: rgb(250 250 250);
  padding: 0.85rem;
}

.stream-card {
  border-radius: 0.9rem;
  border: 1px solid rgb(228 228 231);
  background: rgb(255 255 255);
  padding: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.73rem;
  font-weight: 700;
}

.badge-success {
  background: rgb(236 253 245);
  color: rgb(6 95 70);
}

.badge-warning {
  background: rgb(254 249 195);
  color: rgb(133 77 14);
}

.badge-neutral {
  background: rgb(244 244 245);
  color: rgb(63 63 70);
}

.badge-danger {
  background: rgb(254 242 242);
  color: rgb(185 28 28);
}

@media (max-width: 640px) {
  .btn-soft,
  .btn-primary {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .profile-pill {
    max-width: 12rem;
  }

  .profile-role {
    display: none;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  #contractPrintArea,
  #contractPrintArea *,
  #billPrintArea,
  #billPrintArea * {
    visibility: visible !important;
  }

  #contractPrintArea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    min-height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  #billPrintArea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    min-height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  @page {
    size: auto;
    margin: 12mm;
  }
}

.menu-wrapper {
  overflow: visible !important;
  z-index: 50;
}
