/* QConnect sekmeleri (qconnect-tabs.js) ve WhatsApp grup üyesi çekimi (wa-groups.js). */
.qc-tab { display: inline-flex; align-items: center; gap: 7px; }
.qc-tab-icon { flex: 0 0 18px; width: 18px; height: 18px; }
.offer-tab.qc-tab:not(.active) .qc-tab-icon { opacity: .85; }
.qc-pane-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.qc-pane-heading > p { max-width: 820px; margin: 0; }
.qc-pane-heading .heading-actions { flex-shrink: 0; align-items: center; }

.wg-layout { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.wg-groups { display: flex; flex-direction: column; padding: 14px; position: sticky; top: 12px; max-height: calc(100vh - 140px); }
.wg-groups-head { display: flex; gap: 10px; align-items: center; }
.wg-groups-head .search-box { flex: 1; max-width: none; min-width: 0; height: 36px; }
.wg-groups-head .ua-toggle { white-space: nowrap; font-size: 12px; }
.wg-count { margin: 10px 2px 6px; }
.wg-group-list { overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.wg-group { display: block; width: 100%; padding: 8px 10px; margin: 0 0 2px; border: 0; border-radius: 8px; background: transparent;
  color: inherit; text-align: left; cursor: pointer; font: inherit; }
.wg-group:hover { background: #f6f6fb; }
.wg-group.active { background: #f0efff; box-shadow: inset 3px 0 0 #6555d8; }
.wg-group-name { display: block; overflow: hidden; color: #303449; font-weight: 600; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.wg-group-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; color: #8a8ea2; font-size: 11px; }
.wg-pulled { color: #36a477; }
.wg-role { display: inline-block; padding: 1px 7px; border-radius: 6px; background: #f0efff; color: #5b4ccc; font-size: 11px; }

.wg-detail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wg-detail-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.wg-title { min-width: 0; }
.wg-title h2 { margin: 0 0 4px; }
.wg-title p { margin: 0; }
.wg-actions { display: flex; gap: 6px; align-items: center; }
.wg-select { height: 34px; max-width: 230px; padding: 0 9px; border: 1px solid #e9eaf1; border-radius: 7px; outline: 0; color: #64687a; background: #fff; font-size: 12px; }
.wg-actions .icon-button { font-size: 16px; }
.wg-actions .icon-button:hover { color: #d04848; background: #fdf0f0; }
.wg-description { margin: 12px 0 0; max-height: 64px; overflow: auto; white-space: pre-line; line-height: 1.5; }

.wg-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.wg-stat { display: flex; gap: 10px; align-items: flex-start; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfbfd; }
.wg-stat-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.wg-stat-icon.purple { color: #6555d8; background: #f0efff; }
.wg-stat-icon.blue { color: #4f8be3; background: #eaf3ff; }
.wg-stat-icon.orange { color: #e29256; background: #fff2e8; }
.wg-stat-icon.green { color: #36a477; background: #e8f8f0; }
.wg-stat > div { min-width: 0; }
.wg-stat-label { color: #999cad; font-size: 10px; font-weight: 700; letter-spacing: .4px; line-height: 1.3; }
.wg-stat-value { margin: 2px 0 1px; color: #303449; font: 700 19px Manrope, sans-serif; white-space: nowrap; }
.wg-stat-note { color: #999cad; font-size: 11px; line-height: 1.3; }

.wg-toolbar { flex-wrap: nowrap; }
.wg-toolbar .search-box { flex: 1 1 auto; max-width: none; height: 36px; }
.wg-toolbar select { height: 36px; min-width: 170px; }

.wg-table td { vertical-align: middle; }
.wg-phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wg-hidden { color: #8a8ea2; white-space: nowrap; font-size: 12px; }
.wg-name b { display: block; }
.wg-alt { display: block; color: #8a8ea2; font-size: 11px; }
.wg-src { display: inline-block; padding: 1px 6px; border-radius: 6px; font-size: 11px; background: rgba(127, 127, 127, .12); }
.wg-src-contact { background: rgba(47, 138, 87, .13); color: #2f8a57; }
.wg-src-business { background: rgba(214, 137, 16, .14); color: #a86a08; }
.wg-src-profile { background: rgba(99, 102, 241, .12); color: #4b4fc4; }
.wg-badges { white-space: nowrap; }
.wg-tag { display: inline-block; padding: 1px 6px; margin-left: 4px; border-radius: 6px; font-size: 11px; background: rgba(127, 127, 127, .14); }
.wg-new { background: rgba(47, 138, 87, .15); color: #2f8a57; }
.wg-left { background: rgba(200, 60, 60, .13); color: #b23b3b; }

@media (max-width: 760px) {
  .qc-pane-heading { flex-direction: column; }
  .wg-layout { grid-template-columns: 1fr; }
  .wg-groups { position: static; max-height: 320px; }
  .wg-actions { flex-wrap: wrap; }
  .wg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wg-toolbar { flex-wrap: wrap; }
  .wg-toolbar select { flex: 1; }
}
@media (min-width: 761px) and (max-width: 1250px) {
  .wg-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Grup listesi: sıralama, durum ve hızlı filtreler */
.wg-group-sorts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.wg-group-sorts .wg-select { width: 100%; max-width: none; }
.wg-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.wg-chip { padding: 4px 10px; border: 1px solid #e3e4ee; border-radius: 14px; color: #64687a; background: #fff; font-size: 11px; cursor: pointer; }
.wg-chip:hover { border-color: #c9c4f6; }
.wg-chip.active { border-color: #6555d8; color: #5b4ccc; background: #f0efff; }
.wg-count { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wg-count .text-button { font-size: 11px; }
.wg-activity { color: #8a8ea2; }

/* Üye tablosu: Detay getir */
.wg-usage { color: #999cad; font-size: 11px; white-space: nowrap; }
.wg-detail-col { width: 1%; text-align: right; white-space: nowrap; }
.wg-detail-btn { padding: 3px 9px; border: 1px solid #e3e4ee; border-radius: 7px; color: #5b4ccc; background: #fff; font-size: 11px; cursor: pointer; white-space: nowrap; }
.wg-detail-btn:hover:not([disabled]) { border-color: #6555d8; background: #f6f5ff; }
.wg-detail-btn.has { color: #36a477; border-color: #cdeedd; }
.wg-detail-btn.open { background: #e8f8f0; }
.wg-detail-btn[disabled] { opacity: .6; cursor: wait; }
.wg-table tr.wg-open td { border-bottom-color: transparent; }
.wg-detail-row td { padding-top: 0; background: #fbfbfd; white-space: normal; }
.wg-d { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.wg-d-line { display: flex; gap: 12px; padding: 3px 0; font-size: 12px; color: #4a4e63; }
.wg-d-label { flex: 0 0 72px; color: #999cad; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding-top: 2px; }
.wg-d-parts { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.wg-d-parts a { color: #5b4ccc; text-decoration: none; }
.wg-d-parts a:hover { text-decoration: underline; }
.wg-d-desc { white-space: pre-line; }
.wg-d-error { margin-top: 4px; color: #b23b3b; font-size: 11px; }
.wg-d-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: #999cad; font-size: 11px; }
