/* enrich-v2.css - redesigned enrichment modal */

.en2-modal .en2-card {
  width: min(1400px, 98vw);
  max-height: 96vh;
  overflow: hidden;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.en2-root {
  padding: 18px 22px;
  overflow-y: auto;
}
.en2-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.en2-eyebrow {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted,#6b7280);
}
.en2-head h2 {
  margin: 4px 0 8px;
  font-size: 1.4rem;
}
.en2-close {
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted,#6b7280);
}
.en2-summary {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.en2-summary-label {
  display: block;
  font-size: .78rem;
  color: var(--muted,#6b7280);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.en2-summary-value {
  font-weight: 600;
}
.en2-filter-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
  align-items: center;
}
.en2-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.en2-filter {
  border: 1px solid var(--border,#374151);
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  color: var(--muted,#6b7280);
}
.en2-filter.is-active {
  background: var(--accent,#2563eb);
  color: #fff;
  border-color: transparent;
}
.en2-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border,#374151);
  border-radius: 999px;
  padding: 4px 16px;
  cursor: pointer;
  font-size: .85rem;
}
.en2-switch input {
  pointer-events: none;
}
.en2-section {
  margin-bottom: 24px;
}
.en2-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.en2-section-head h3 {
  margin: 0;
  font-size: 1.1rem;
}
.en2-count {
  color: var(--muted,#6b7280);
  font-size: .85rem;
}
.en2-section-actions {
  display: flex;
}
.en2-chip {
  border: 1px solid var(--border,#374151);
  background: transparent;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.en2-chip.is-on {
  background: var(--accent,#2563eb);
  color: #fff;
  border-color: transparent;
}
.en2-table-wrap {
  max-height: 52vh;
  overflow: auto;
}
.en2-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.en2-table th:nth-child(1),
.en2-table td.en2-cell-toggle {
  width: 38px;
  min-width: 30px;
}
.en2-table th:nth-child(2),
.en2-table td.en2-cell-import {
  width: 260px;
}
.en2-table th:nth-child(3),
.en2-table td.en2-cell-direction {
  width: 120px;
  min-width: 100px;
}
.en2-table th:nth-child(4),
.en2-table td.en2-cell-crm {
  width: 260px;
}
.en2-table th:nth-child(5),
.en2-table td.en2-cell-remove {
  width: 70px;
  min-width: 60px;
}
.en2-table th,
.en2-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border,#374151);
  vertical-align: top;
}
.en2-row.is-inactive {
  opacity: .55;
}
.en2-field-label {
  font-size: .82rem;
  color: var(--muted,#6b7280);
  margin-bottom: 2px;
}
.en2-field-value.is-highlight {
  background: rgba(37, 99, 235, .12);
  border-radius: 6px;
  padding: 4px 6px;
}
.en2-row-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border,#374151);
  background: transparent;
  cursor: pointer;
}
.en2-row-toggle[data-on="1"] {
  background: var(--accent,#2563eb);
  border-color: transparent;
}
.en2-row-toggle[data-on="1"] span {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
}
.en2-direction {
  display: inline-flex;
  border: 1px solid var(--border,#374151);
  border-radius: 12px;
  overflow: hidden;
}
.en2-direction button {
  border: 0;
  background: transparent;
  padding: 4px 12px;
  cursor: pointer;
  font-weight: 600;
}
.en2-direction button.is-active {
  background: var(--accent,#2563eb);
  color: #fff;
}
.en2-remove {
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted,#6b7280);
}
.en2-meta-row {
  background: rgba(15,23,42,.4);
  font-size: .85rem;
}
.en2-meta-row td {
  padding: 8px 12px;
  color: var(--muted,#9ca3af);
}
.en2-meta-pair {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.en2-banner {
  padding: 10px 16px;
  border-radius: 10px;
  margin: 12px 0;
}
.en2-banner.is-info { background: rgba(37,99,235,.12); color: var(--accent,#2563eb); }
.en2-banner.is-warn { background: rgba(251,191,36,.15); color: #d97706; }
.en2-banner.is-error { background: rgba(239,68,68,.15); color: #ef4444; }
.en2-empty,
.en2-muted,
.en2-loading,
.en2-error {
  padding: 14px;
  border-radius: 10px;
  background: rgba(15,23,42,.35);
  color: var(--muted,#9ca3af);
}
.en2-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.en2-empty-info {
  border: 1px solid var(--border,#374151);
  background: transparent;
  color: var(--accent,#2563eb);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: .8rem;
  cursor: pointer;
}
.en2-empty-info:hover {
  background: rgba(37,99,235,.15);
}
.en2-error {
  color: #ef4444;
}
.en2-error button {
  margin-left: 12px;
}
.en2-placeholder {
  color: var(--muted,#6b7280);
}
.en2-table.is-locked {
  opacity: .65;
}
.en2-table.is-locked button {
  cursor: not-allowed;
}
.en2-locked-hint {
  margin-bottom: 8px;
  color: var(--muted,#9ca3af);
  font-size: .85rem;
}
.en2-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border,#374151);
}
.en2-foot-actions {
  display: flex;
  gap: 12px;
}
.en2-pending {
  color: var(--muted,#6b7280);
}

.en2-resizer {
  position: absolute;
  width: 18px;
  height: 18px;
  right: 10px;
  bottom: 10px;
  border-right: 2px solid var(--border,#374151);
  border-bottom: 2px solid var(--border,#374151);
  cursor: se-resize;
  opacity: .55;
}
