/* contact-dupes.css — the duplicate queue.
 *
 * Built to be read before anything is pressed: the evidence is the loud part,
 * the button is not. A merge deletes a record, and the screen should feel like
 * that.
 */
.crm-dupe__open {
  margin-inline-start: 12px;
  border: 1px solid var(--border-weak, #dfe3da);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.crm-dupe__open:hover { border-color: #606a76; }

.crm-dupe__scrim {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 12, 10, .4);
  display: flex;
  justify-content: flex-end;
}

.crm-dupe__panel {
  width: min(560px, 100%);
  height: 100%;
  background: #ffffff;
  border-inline-start: 1px solid #e8ebe4;
  display: flex;
  flex-direction: column;
  color: #1d1b1c;
}

.dark .crm-dupe__panel { background: #1b1e23; border-color: rgba(255, 255, 255, .12); color: #e6e9e2; }

.crm-dupe__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid #e8ebe4;
}

.dark .crm-dupe__head { border-color: rgba(255, 255, 255, .12); }
.crm-dupe__title { font-size: 16px; font-weight: 700; }

.crm-dupe__x {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: .6;
}

.crm-dupe__x:hover { opacity: 1; }

.crm-dupe__body { flex: 1; overflow-y: auto; padding: 16px 18px 26px; display: flex; flex-direction: column; gap: 14px; }
.crm-dupe__note { font-size: 12.5px; line-height: 1.6; opacity: .75; }

.crm-dupe__group {
  border: 1px solid #e8ebe4;
  border-radius: 8px;
  padding: 13px 14px;
}

.dark .crm-dupe__group { border-color: rgba(255, 255, 255, .12); }
.crm-dupe__group.is-done { opacity: .5; }

.crm-dupe__gtop { display: flex; align-items: center; gap: 9px; }
.crm-dupe__gval { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* How sure the finder is, said in a word rather than a score nobody can read. */
.crm-dupe__sure {
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
}

.crm-dupe__sure.is-high { background: rgba(18, 161, 80, .14); color: #12a150; }
.crm-dupe__sure.is-medium { background: rgba(180, 83, 9, .14); color: #b45309; }
.crm-dupe__sure.is-low { background: rgba(107, 114, 128, .16); color: #6b7280; }

.crm-dupe__why { margin: 9px 0 4px; padding-inline-start: 18px; font-size: 12.5px; line-height: 1.6; opacity: .8; }

.crm-dupe__c {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed #e8ebe4;
}

.dark .crm-dupe__c { border-color: rgba(255, 255, 255, .1); }
.crm-dupe__c input { margin-top: 3px; accent-color: #12a150; flex-shrink: 0; }
.crm-dupe__cb { min-width: 0; flex: 1; }
.crm-dupe__cn { display: flex; align-items: baseline; gap: 7px; }
.crm-dupe__cname { font-size: 13.5px; font-weight: 600; }
.crm-dupe__cid { font-size: 11px; opacity: .5; }
.crm-dupe__cmeta { font-size: 12px; opacity: .65; margin-top: 2px; }

/* The record that survives, marked while you are choosing rather than after. */
.crm-dupe__c.is-keeping .crm-dupe__cname::after {
  content: ' — kept';
  font-size: 11px;
  font-weight: 700;
  color: #12a150;
}

/* Where they reached us before. */
.crm-dupe__seen { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

.crm-dupe__ch {
  font-size: 11.5px;
  border: 1px solid #e8ebe4;
  border-radius: 8px;
  padding: 2px 8px;
  background: #fafbf8;
}

.dark .crm-dupe__ch { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.crm-dupe__none { font-size: 11.5px; opacity: .5; }

.crm-dupe__act { margin-top: 11px; }

.crm-dupe__merge {
  border: 1px solid #b91c1c;
  background: transparent;
  color: #b91c1c;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.crm-dupe__merge:hover { background: rgba(185, 28, 28, .08); }
.crm-dupe__merge:disabled { opacity: .45; cursor: default; }
.crm-dupe__done { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #12a150; }

.crm-dupe__crowd {
  border: 1px solid #b45309;
  border-radius: 8px;
  padding: 12px 14px;
  color: #b45309;
}

.crm-dupe__crowdt { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.crm-dupe__crowd .crm-dupe__note { color: inherit; opacity: .85; }
.crm-dupe__crowdr { font-size: 12.5px; margin-top: 5px; font-variant-numeric: tabular-nums; }
