.staff-customer-leads-open-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.staff-customer-leads-open-btn:hover {
  background: #dbeafe;
}

.staff-customer-leads-open-btn__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.staff-customer-leads-dialog {
  width: min(44rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: none;
  border-radius: 14px;
  overflow: hidden;
}

.staff-customer-leads-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.staff-customer-leads-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.staff-customer-leads-dialog__title {
  margin: 0;
  font-size: 1rem;
}

.staff-customer-leads-dialog__body {
  padding: 0.85rem 1rem 1rem;
  overflow: auto;
  max-height: calc(100vh - 7rem);
}

.staff-customer-leads-hint {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
}

.staff-customer-leads-empty,
.staff-customer-leads-detail-empty {
  margin: 0;
  padding: 1rem;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.88rem;
}

.staff-customer-leads-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.staff-customer-leads-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: stretch;
}

.staff-customer-leads-item__open {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.staff-customer-leads-item--unread .staff-customer-leads-item__open {
  border-color: #93c5fd;
  background: #f0f9ff;
}

.staff-customer-leads-item__open:hover {
  border-color: #60a5fa;
}

.staff-customer-leads-item__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.staff-customer-leads-item__contact {
  font-size: 0.9rem;
  color: #0f172a;
}

.staff-customer-leads-item__badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.staff-customer-leads-item__address {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #334155;
}

.staff-customer-leads-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
}

.staff-customer-leads-item__delete {
  align-self: center;
}

.staff-customer-leads-detail {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #f8fbff;
}

.staff-customer-leads-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.staff-customer-leads-detail__badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1f4e79;
  background: #cde4f5;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
}

.staff-customer-leads-detail__time {
  font-size: 0.75rem;
  color: #64748b;
}

.staff-customer-leads-detail__contact {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: #1f4e79;
}

.staff-customer-leads-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  margin: 0;
}

.staff-customer-leads-detail__grid div {
  margin: 0;
}

.staff-customer-leads-detail__grid dt {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
}

.staff-customer-leads-detail__grid dd {
  margin: 0.1rem 0 0;
  font-size: 0.84rem;
  color: #0f172a;
}

.staff-customer-leads-detail__marketing {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: #1e7145;
}

.staff-customer-leads-detail__actions {
  margin-top: 0.75rem;
}

.staff-lead-banner-actions {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

@media (max-width: 640px) {
  .staff-customer-leads-detail__grid {
    grid-template-columns: 1fr;
  }
}

.quote-request-compact {
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
  border: 1px solid rgba(191, 219, 254, 0.55);
  border-radius: var(--radius-xl, 16px);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--crd-shadow-ambient, 0 24px 48px -12px rgba(15, 23, 42, 0.08));
}

.quote-request-compact .quote-request-desc {
  margin-bottom: var(--space-lg);
}
