#rr-leads-shell {
  position: fixed;
  top: 0;
  left: 248px;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: #f8fafc;
  overflow: auto;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #0f172a;
}

#rr-leads-shell.rr-leads-mobile {
  left: 0;
}

.rr-leads-wrap {
  max-width: 100%;
  padding: 24px 28px 48px;
}

.rr-leads-header h1 {
  margin: 0 0 4px;
  font-size: 1.65rem;
  font-weight: 700;
}

.rr-leads-header p {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 0.9rem;
}

.rr-leads-sync-badge {
  display: inline-block;
  margin-left: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #16a34a;
  vertical-align: middle;
}

.rr-leads-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.rr-leads-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rr-leads-card strong {
  display: block;
  font-size: 1.35rem;
  color: #1d4ed8;
}

.rr-leads-card span {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rr-leads-filters {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.rr-leads-filters label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rr-leads-filters select,
.rr-leads-filters input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.875rem;
  background: #fff;
}

.rr-leads-filters .rr-span-2 {
  grid-column: span 2;
}

.rr-leads-filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.rr-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.rr-btn-primary {
  background: #1f93ff;
  color: #fff;
}

.rr-btn-ghost {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.rr-btn-dark {
  background: #0f172a;
  color: #fff;
}

.rr-leads-table-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: auto;
}

.rr-leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.rr-leads-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid #e2e8f0;
}

.rr-leads-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.rr-leads-table tr:hover td {
  background: #f8fafc;
}

.rr-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.rr-status-new {
  background: #dbeafe;
  color: #1d4ed8;
}
.rr-status-qualifying {
  background: #ffedd5;
  color: #c2410c;
}
.rr-status-in_progress {
  background: #ede9fe;
  color: #6d28d9;
}
.rr-status-hot {
  background: #fee2e2;
  color: #b91c1c;
}
.rr-status-converted {
  background: #dcfce7;
  color: #15803d;
}
.rr-status-lost {
  background: #f1f5f9;
  color: #64748b;
}

.rr-leads-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #64748b;
}

.rr-leads-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1400;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.rr-leads-drawer {
  width: min(480px, 100%);
  background: #fff;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.12);
  padding: 20px 22px 32px;
  overflow: auto;
}

.rr-leads-drawer h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.rr-leads-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  margin: 12px 0 4px;
}

.rr-leads-form input,
.rr-leads-form select,
.rr-leads-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.875rem;
}

.rr-leads-form input:read-only {
  background: #f8fafc;
  color: #64748b;
}

.rr-leads-activity {
  margin-top: 20px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

.rr-leads-activity li {
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: #334155;
}

.rr-leads-loading {
  padding: 48px;
  text-align: center;
  color: #64748b;
}

a.rr-link {
  color: #1f93ff;
  text-decoration: none;
  font-weight: 600;
}

#rr-nav-leads-row a#rr-nav-leads-link {
  text-decoration: none;
  color: inherit;
  width: 100%;
}

#rr-nav-leads-row.Mui-selected {
  background-color: rgba(31, 147, 255, 0.08);
}