/* QConnect → Adaylar (prospects.js) ve Hunter.io kartları (hunter.js). */
.qc-tab-count { margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--accent, #2563eb); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; }
.pp-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp-toolbar select { max-width: 190px; }
/* Başlıktaki "Tüm kullanıcılar" seçimi (SuperUser): yanındaki düğmelerle aynı yükseklik, styles.css .date-filter select görünümü. */
#ppUserRow { display: inline-flex; }
#ppUserRow.hidden { display: none; }
#ppUser { height: 38px; min-width: 160px; max-width: 220px; padding: 0 30px 0 12px; border: 1px solid #e6e8f0; border-radius: 8px; outline: 0;
  color: #3d4152; font-size: 13px; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238c8fa1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  transition: border-color .15s, box-shadow .15s; }
#ppUser:focus { border-color: #988ef0; box-shadow: 0 0 0 3px #7162df14; }
.pp-status-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.pp-status-chips button small { margin-left: 4px; opacity: .7; }
.pp-batch-chip { display: inline-flex; gap: 6px; align-items: center; padding: 2px 10px; border: 1px solid var(--border, #d6dbe4); border-radius: 999px; background: var(--surface-2, #f3f6fb); font-size: 12px; cursor: pointer; }
.pp-batch-chip:hover { border-color: #b91c1c; }
.pp-table td { vertical-align: top; }
.pp-table tr[data-pp-row] { cursor: pointer; }
.pp-table tr[data-pp-row]:hover td { background: var(--row-hover, rgba(37, 99, 235, .04)); }
.pp-table tr.active td { background: rgba(37, 99, 235, .08); }
.pp-check { width: 28px; }
/* Uzun ad / ünvan / firma tabloyu genişletmesin: tek satır + "…", tamamı title'da */
.pp-person > b, .pp-person > small, .pp-company > a, .pp-company > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pp-person > b, .pp-person > small { max-width: 300px; }
.pp-company > a, .pp-company > span { max-width: 240px; }
.pp-person small, .pp-company small, .pp-owners { display: block; color: var(--muted, #6b7280); font-size: 12px; }
.pp-new-co { color: #047857 !important; }
.pp-co-amb { color: #b45309; }
.pp-line { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.pp-score { display: inline-block; padding: 0 5px; border-radius: 4px; background: #fef3c7; color: #92400e; font-size: 11px; }
.pp-src { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 3px; border-radius: 5px; background: #e5e7eb; color: #374151; font-size: 11px; font-weight: 700; vertical-align: middle; }
.pp-src-linkedin { background: #0a66c2; color: #fff; }
.pp-src-whatsapp { background: #25d366; color: #fff; }
.pp-src-hunter { background: #ff5722; color: #fff; }
.pp-crm { display: inline-block; font-size: 12.5px; }
.pp-crm.added, .pp-crm.linked { color: #047857; }
.pp-crm.possible { color: #b45309; }
.pp-verify-tried { color: #6b7280; font-size: 11px; white-space: nowrap; cursor: help; }
.pp-crm.none, .pp-crm.rejected { color: var(--muted, #6b7280); }
.pp-bulk { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; padding: 10px 14px;
  border: 1px solid var(--border, #d6dbe4); border-radius: 10px; background: var(--panel, #fff); box-shadow: 0 -4px 14px rgba(15, 23, 42, .08); }
.pp-bulk b { margin-right: auto; }

/* QConnect ile doğrula ve bağla: ilerleme kutusu */
#ppVerify { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
#ppVerify.hidden { display: none; }
.pp-verify { margin: 0 0 10px; padding: 10px 14px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; font-size: 13px; }
.pp-verify-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp-verify-head b { margin-right: auto; }
.pp-verify progress { width: 100%; height: 6px; margin: 8px 0 4px; }
.pp-verify ul { max-height: 180px; overflow: auto; margin: 6px 0 0; padding-left: 18px; }
.pp-verify li.linked { color: #047857; }
.pp-verify li.warn { color: #b45309; }
.pp-verify li.fail { color: #b91c1c; }
.pp-verify li.separated { color: #475569; }
.pp-src-qconnect-verify { background: #0a66c2; color: #fff; }

/* CRM'e ekle penceresi detay panelinin (z-index 60) önünde açılır */
#ppAddDialog { z-index: 70; }
/* Adaylardan açılan firma kartı (ve ondan açılan kişi / fırsat pencereleri) de detay panelinin önünde */
body:has(#ppDrawer:not(.hidden)) :is(#companyDialog, #contactDialog, #dealDialog) { z-index: 70; }

/* Detay paneli (sağdan) */
.pp-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-direction: column; width: min(520px, 100vw);
  border-left: 1px solid var(--border, #d6dbe4); background: var(--panel, #fff); box-shadow: -10px 0 30px rgba(15, 23, 42, .12); }
.pp-drawer-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 16px 18px 10px; border-bottom: 1px solid var(--border, #e5e7eb); }
.pp-drawer-head h2 { margin: 0; font-size: 18px; }
.pp-drawer-head .muted { font-size: 13px; }
.pp-sub2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 8px; font-size: 12px; }
.pp-sub2 .pp-src { margin-right: 0; }
.pp-sub2 .status-badge { padding: 2px 8px; font-size: 11px; line-height: 16px; }
/* Panel .dialog olmadığından ortak input stili burada (styles.css .dialog input ile aynı görünüm). */
.pp-drawer input:not([type=radio]):not([type=checkbox]):not(.tag-editor-input) { height: 32px; padding: 0 10px; border: 1px solid #e7e8ef; border-radius: 7px; outline: 0;
  color: #44485e; background: #fff; font-size: 13px; }
.pp-drawer input:not([type=radio]):not([type=checkbox]):not(.tag-editor-input):focus { border-color: #988ef0; box-shadow: 0 0 0 3px #7162df14; }
.pp-drawer input::placeholder { color: #a7a9b6; }
.pp-drawer input[type=number] { -moz-appearance: textfield; }
.pp-drawer input[type=number]::-webkit-inner-spin-button, .pp-drawer input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pp-drawer .small-button { height: 32px; padding: 0 12px; font-size: 12.5px; }
.pp-drawer-body { flex: 1; overflow-y: auto; padding: 12px 18px 18px; }
.pp-sec { padding: 10px 0; border-bottom: 1px dashed var(--border, #e5e7eb); }
.pp-sec:last-of-type { border-bottom: 0; }
.pp-sec h3 { margin: 0 0 8px; color: var(--muted, #6b7280); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.pp-f { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 3px 0; font-size: 13.5px; }
.pp-f-label { width: 92px; color: var(--muted, #6b7280); font-size: 12.5px; }
.pp-f-value { word-break: break-word; }
.pp-f input { flex: 1; min-width: 160px; }
.pp-warn { color: #b45309; font-size: 12px; }
.pp-radio { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 0; font-size: 13.5px; cursor: pointer; }
.pp-radio input[type=radio] { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; accent-color: var(--purple, #6857df); }
.pp-cmp { width: 100%; margin: 6px 0; border-collapse: collapse; font-size: 12.5px; }
.pp-cmp th, .pp-cmp td { padding: 3px 6px; border-bottom: 1px solid var(--border, #eef0f4); text-align: left; }
.pp-fill { color: #047857; }
.pp-actions-inline, .pp-link-other { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.pp-cs { position: relative; flex: 1 1 220px; min-width: 0; }
.pp-cs input { width: 100%; box-sizing: border-box; }
.pp-cs-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 2px); max-height: 280px; overflow-y: auto;
  background: var(--panel, #fff); border: 1px solid var(--line, #d8dce3); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.pp-cs-item { padding: 6px 10px; cursor: pointer; font-size: 13px; }
.pp-cs-item:hover, .pp-cs-item.active { background: var(--hover, #f1f3f8); }
.pp-cs-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-cs-empty { padding: 8px 10px; font-size: 13px; }
.pp-cs-picked { margin-top: 6px; font-size: 13px; }
.pp-drawer-head .icon-button { flex: 0 0 auto; }
.pp-fills, .pp-history, .pp-problems { margin: 0; padding-left: 16px; font-size: 13px; }
.pp-fills li, .pp-history li { padding: 3px 0; }
.pp-history { padding-left: 0; list-style: none; }
.pp-history li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.pp-history .pp-src { margin-right: 0; }
.pp-history .tag-row { display: inline-flex; margin-left: 4px; }
.pp-drawer-actions { position: sticky; bottom: -18px; display: flex; gap: 8px; margin: 10px -18px -18px; padding: 12px 18px; border-top: 1px solid var(--border, #e5e7eb); background: var(--panel, #fff); }
.pp-st-new { background: #dbeafe; color: #1e40af; }
.pp-st-added, .pp-st-linked { background: #d1fae5; color: #065f46; }
.pp-st-rejected { background: #f3f4f6; color: #6b7280; }
.pp-add-list { max-height: 260px; overflow-y: auto; margin: 8px 0; padding-left: 18px; font-size: 13px; }
.pp-dup { display: block; margin-left: 4px; color: #b45309; font-size: 12px; }

/* Hunter.io */
.hu-facts { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 0 0 8px; font-size: 13.5px; }
.hu-facts dt { color: var(--muted, #6b7280); }
.hu-facts dd { margin: 0; }
.hu-key-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.hu-key-form input { flex: 1; min-width: 220px; height: 39px; padding: 0 10px; border: 1px solid #e7e8ef; border-radius: 7px; outline: 0;
  color: #44485e; background: #fff; font-size: 13px; }
.hu-key-form input:focus { border-color: #988ef0; box-shadow: 0 0 0 3px #7162df14; }
.hu-key-form input::placeholder { color: #a7a9b6; }
.hu-key-form .button { height: 39px; }
.hu-card a { color: var(--purple, #6857df); text-decoration: none; }
.hu-card a:hover { text-decoration: underline; }
.hu-bar { display: inline-block; width: 90px; height: 7px; margin-right: 4px; overflow: hidden; border-radius: 4px; background: #e5e7eb; vertical-align: middle; }
.hu-bar span { display: block; height: 100%; background: #ff5722; }
.hu-history { margin-top: 8px; }
.hu-history summary { cursor: pointer; color: var(--muted, #6b7280); font-size: 13px; }
.hu-calls td { font-size: 12.5px; }
.hu-out { font-size: 12px; }
.hu-found, .hu-cached { color: #047857; }
.hu-error, .hu-claimed { color: #b91c1c; }
.hu-sub { margin: 16px 0 6px; font-size: 14px; }
.qc-tags-field { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qc-tags-field .tag-editor { flex: 1; min-width: 200px; }
.qc-pool-link { font-size: 12.5px; }

@media (max-width: 760px) {
  .pp-drawer { width: 100vw; }
  .pp-table thead { display: none; }
  .pp-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--border, #e5e7eb); }
  .pp-table td { display: block; padding: 2px 8px; border: 0; }
  .pp-check { float: left; width: auto; }
  .pp-line, .pp-person > b, .pp-person > small, .pp-company > a, .pp-company > span { max-width: none; }
}
.hu-card { margin-top: 16px; }
.qc-pool-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.lc-pool { display: block; margin-top: 3px; }
.lc-pool .tag-row { display: inline-flex; margin-right: 6px; }

/* Hunter.io e-posta bul (aday penceresi) */
.pp-hunter-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.pp-hunter-row input { flex: 1 1 140px; min-width: 120px; }
.pp-hunter small { display: block; font-size: 12px; }

/* Etiket süzgeci: birden çok seçim (açılır onay kutusu listesi) */
.pp-tagfilter { position: relative; }
.pp-tagfilter.hidden { display: none; }
/* Görünüm araç çubuğundaki select'lerle aynı (styles.css: .toolbar select) */
.pp-tagfilter-btn { height: 34px; min-width: 140px; max-width: 220px; padding: 0 28px 0 9px; border: 1px solid #e9eaf1; border-radius: 7px; color: #64687a;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-family: inherit; font-size: 12px; line-height: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.pp-tagfilter-btn.active { border-color: #988ef0; color: #5b4fd0; background-color: #f6f5ff; }
.pp-tagfilter-btn:focus-visible { outline: 0; border-color: #988ef0; box-shadow: 0 0 0 3px #7162df14; }
.pp-tagfilter-menu { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: 260px; padding: 8px; border: 1px solid #e6e8f0; border-radius: 10px;
  background: #fff; box-shadow: 0 10px 30px #1f23361f; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #3d4152; }
.pp-tagfilter-menu.hidden { display: none; }
.pp-tagfilter-menu input[type=search] { width: 100%; height: 30px; padding: 0 9px; border: 1px solid #e9eaf1; border-radius: 6px; font-family: inherit; font-size: 12px; box-sizing: border-box; outline: 0; }
.pp-tagfilter-menu input[type=search]:focus { border-color: #988ef0; }
.pp-tagfilter-mode { display: flex; gap: 12px; font-size: 11px; color: #6b7280; }
.pp-tagfilter-mode label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.pp-tagfilter-list { max-height: 260px; overflow: auto; display: flex; flex-direction: column; }
.pp-tagfilter-list label { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.pp-tagfilter-list label:hover { background: #f5f6fa; }
.pp-tagfilter-list label.hidden { display: none; }
.pp-tagfilter-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-tagfilter-menu .text-button { align-self: flex-start; }
