/* F73.W8 — AdvancedFiltersSection: «редкие срезы» фильтра воронки (ответственный +
   контакт). Живёт внутри секции .fp-section--advanced FilterPopover. Premium
   slate/indigo, Lucide-иконки, никаких эмодзи. */

.afs { display: flex; flex-direction: column; gap: 14px; }

.afs-field { display: flex; flex-direction: column; gap: 6px; }

.afs-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.afs-label svg { width: 14px; height: 14px; display: block; color: #94a3b8; }

.afs-hint { font-size: 12px; color: #94a3b8; padding: 2px 0; }

/* --- Ответственный: чек-лист --- */
.afs-resp-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px;
  background: #ffffff;
}

.afs-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 150ms ease-out;
}
.afs-check:hover { background: #f8fafc; }
.afs-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #6366f1;
  cursor: pointer;
  flex: 0 0 auto;
}
.afs-check-name {
  font-size: 13px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.afs-check-pos {
  margin-left: auto;
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* --- Контакт: autocomplete --- */
.afs-contact { position: relative; display: flex; align-items: center; }

.afs-contact-input {
  width: 100%;
  height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.afs-contact-input::placeholder { color: #94a3b8; }
.afs-contact-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.afs-contact-clear {
  position: absolute;
  right: 6px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 6px;
  cursor: pointer;
  transition: background 150ms ease-out, color 150ms ease-out;
}
.afs-contact-clear:hover { background: #f1f5f9; color: #475569; }
.afs-contact-clear svg { width: 13px; height: 13px; display: block; }
.afs-contact-clear[hidden] { display: none; }

/* Dropdown — ВНУТРИ .afs-contact (не в body), чтобы клик не закрыл FilterPopover. */
.afs-contact-dd {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 4px;
}
.afs-contact-dd[hidden] { display: none; }

.afs-dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 150ms ease-out;
}
.afs-dd-item:hover { background: #eef2ff; }
.afs-dd-name {
  font-size: 13px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.afs-dd-meta {
  margin-left: auto;
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  flex: 0 0 auto;
}
.afs-dd-empty { padding: 8px; font-size: 12px; color: #94a3b8; }
