/* ── TEMA ─────────────────────────────────────── */
body          { background: #F8FAFC !important; }
.page-wrapper { background: #F8FAFC; }

/* ── KART / PANEL ─────────────────────────────── */
.cr-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: none;
}

/* ── TOOLBAR ──────────────────────────────────── */
.cr-toolbar {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: .85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}
.cr-toolbar-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0;
}
.cr-sort-select {
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  padding: .4rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
  background: #F8FAFC;
  outline: none;
  cursor: pointer;
  transition: border-color .18s;
}
.cr-sort-select:focus { border-color: #4F46E5; }
.cr-count-badge {
  margin-left: auto;
  background: #EEF2FF;
  color: #4F46E5;
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .82rem;
  font-weight: 700;
}

/* ── TABLO ────────────────────────────────────── */
.cr-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}
.cr-table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
}
.cr-table thead tr {
  background: #F8FAFC;
}
.cr-table thead th {
  padding: .75rem 1rem;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748B;
  border-bottom: 2px solid #E2E8F0;
  white-space: nowrap;
}
.cr-table thead th:first-child { border-radius: 14px 0 0 0; }
.cr-table thead th:last-child  { border-radius: 0 14px 0 0; }
.cr-table tbody tr {
  transition: background .12s;
}
.cr-table tbody tr:hover { background: #F8FAFC; }
.cr-table tbody td {
  padding: .9rem 1rem;
  font-size: .875rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}
.cr-table tbody tr:last-child td { border-bottom: none; }

/* ── MÜŞTERİ HÜCRE ────────────────────────────── */
.cr-name      { font-weight: 700; color: #1E293B; font-size: .9rem; }
.cr-phone     { font-size: .78rem; color: #94A3B8; margin-top: .1rem; }
.cr-avatar {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4F46E5, #818CF8);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── SEGMENT BADGE ────────────────────────────── */
.cr-seg {
  display: inline-block;
  border-radius: 20px;
  padding: .2rem .65rem;
  font-size: .73rem;
  font-weight: 700;
  margin: .1rem .15rem;
  white-space: nowrap;
}

/* ── LOAD MORE ────────────────────────────────── */
.cr-load-more {
  display: block;
  width: 100%;
  padding: .75rem;
  border: 1.5px dashed #C7D2FE;
  border-radius: 12px;
  background: #FAFBFF;
  color: #4F46E5;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all .18s;
  outline: none;
  margin-top: 1rem;
}
.cr-load-more:hover:not(:disabled) {
  background: #EEF2FF;
  border-color: #4F46E5;
}
.cr-load-more:disabled { opacity: .6; cursor: not-allowed; }

/* ── SKELETON ─────────────────────────────────── */
.cr-skeleton-row td { padding: .9rem 1rem; border-bottom: 1px solid #F1F5F9; }
.sk {
  display: inline-block;
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: sk-anim 1.4s infinite;
  border-radius: 6px;
  height: 14px;
}
@keyframes sk-anim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── MOBİL KARTLAR ────────────────────────────── */
.cr-mob-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1rem;
  margin-bottom: .75rem;
}

/* ── SPINNER (inline) ─────────────────────────── */
.cr-spin {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(79,70,229,.25);
  border-top-color: #4F46E5;
  border-radius: 50%;
  animation: cr-spin .65s linear infinite;
  vertical-align: middle;
  margin-right: .4rem;
}
@keyframes cr-spin { to { transform: rotate(360deg); } }

/* ── BOŞ DURUM ────────────────────────────────── */
.cr-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.cr-empty-icon { font-size: 3rem; color: #E2E8F0; margin-bottom: .75rem; }

/* ── GENEL BAKIŞ KARTLARI ────────────────────────────── */
.cr-ov-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  height: 100%;
}
.cr-ov-icon {
  width: 46px; height: 46px; min-width: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.cr-ov-label { font-size:.72rem; font-weight:700; color:#94A3B8; text-transform:uppercase; letter-spacing:.04em; }
.cr-ov-val   { font-size:1.45rem; font-weight:900; color:#0F172A; line-height:1.15; }
.cr-ov-sub   { font-size:.75rem; color:#94A3B8; }
/* ── SEGMENT BAR ──────────────────────────────────────── */
.cr-seg-bar-row   { margin-bottom:.55rem; }
.cr-seg-bar-label { display:flex; justify-content:space-between; font-size:.8rem; font-weight:600; color:#374151; margin-bottom:.2rem; }
.cr-seg-bar-track { background:#F1F5F9; border-radius:99px; height:8px; overflow:hidden; }
.cr-seg-bar-fill  { height:100%; border-radius:99px; transition:width .5s ease; }
/* ── KAMPANYA ÖNERİSİ BADGE ──────────────────────────── */
.cr-tip { display:inline-flex; align-items:center; gap:.3rem; border-radius:8px; padding:.28rem .65rem; font-size:.75rem; font-weight:700; white-space:nowrap; line-height:1.3; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 767px) {
  .cr-table-desktop { display: none; }
  .cr-cards-mobile  { display: block; }
}
@media (min-width: 768px) {
  .cr-table-desktop { display: block; }
  .cr-cards-mobile  { display: none; }
}
