/* Smart Ticket Merge UI Styles */
.sandhu-auto-match-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-theme="dark"] .sandhu-auto-match-banner {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  border-color: #059669;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sandhu-match-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #166534;
}

[data-theme="dark"] .sandhu-match-header {
  color: #6ee7b7;
}

.sandhu-match-icon {
  font-size: 16px;
  line-height: 1;
}

.sandhu-match-body {
  font-size: 13px;
  color: #14532d;
  line-height: 1.4;
}

[data-theme="dark"] .sandhu-match-body {
  color: #a7f3d0;
}

.sandhu-match-hint {
  font-size: 12px;
  color: #15803d;
  opacity: 0.9;
}

[data-theme="dark"] .sandhu-match-hint {
  color: #34d399;
}

/* Suggested row highlight */
.sandhu-merge-suggested-row {
  background-color: #f0fdf4 !important;
  font-weight: 600;
}

[data-theme="dark"] .sandhu-merge-suggested-row {
  background-color: #064e3b !important;
}

/* Status Badges in Merge List */
.sandhu-merge-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-right: 6px;
}

.sandhu-merge-badge--open {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.sandhu-merge-badge--closed {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.sandhu-merge-badge--new {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.sandhu-merge-badge--pending {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.sandhu-merge-badge--mailbox {
  background-color: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

[data-theme="dark"] .sandhu-merge-badge--open {
  background-color: #064e3b;
  color: #6ee7b7;
  border-color: #047857;
}

[data-theme="dark"] .sandhu-merge-badge--closed {
  background-color: #334155;
  color: #cbd5e1;
  border-color: #475569;
}

[data-theme="dark"] .sandhu-merge-badge--new {
  background-color: #0c4a6e;
  color: #7dd3fc;
  border-color: #0284c7;
}

[data-theme="dark"] .sandhu-merge-badge--pending {
  background-color: #78350f;
  color: #fcd34d;
  border-color: #b45309;
}

[data-theme="dark"] .sandhu-merge-badge--mailbox {
  background-color: #4c1d95;
  color: #c4b5fd;
  border-color: #6d28d9;
}

/* Quick merge action button in ticket toolbar */
.sandhu-direct-merge-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.sandhu-direct-merge-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

[data-theme="dark"] .sandhu-direct-merge-btn {
  background: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
}

[data-theme="dark"] .sandhu-direct-merge-btn:hover {
  background: #334155;
  border-color: #64748b;
  color: #ffffff;
}
