/* =========================================================
   clicks'us TeklifVer — Sidebar Layout
   Kurumsal: #2F6DB5 (marka mavi) / #1a2332 (sidebar koyu)
   ========================================================= */

:root {
  --blue:        #2F6DB5;
  --blue-dark:   #235da0;
  --blue-deep:   #1A3A6B;
  --blue-light:  #EBF2FA;
  --blue-soft:   rgba(47,109,181,.11);

  --sidebar-bg:  #1a2332;
  --sidebar-w:   220px;
  --topbar-h:    60px;

  --bg:          #f0f3f7;
  --card-bg:     #ffffff;
  --border:      #dde3ec;
  --text:        #1a2332;
  --text-muted:  #6b7c96;
  --gray-line:   #CCCCCC;
  --radius:      10px;
  --radius-sm:   7px;
  --shadow:      0 1px 6px rgba(26,35,50,.08);
  --shadow-md:   0 4px 20px rgba(26,35,50,.12);
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

/* ── App wrapper ──────────────────────────────────── */
.app-wrap {
  display: flex;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════ */
.cv-sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform .28s ease;
  overflow-y: auto;
  overflow-x: hidden;
}
.cv-sidebar::-webkit-scrollbar { width: 3px; }
.cv-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); }

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
  flex-shrink: 0;
}
.s-logo-icon {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  flex-shrink: 0;
}
.s-brand {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.2px;
  line-height: 1.1;
}
.s-tagline {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: .9;
}

/* Nav section label */
.sidebar-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.3);
  padding: 18px 18px 6px;
}

/* Nav items */
.sidebar-nav {
  padding: 8px 10px;
  flex: 1;
}
.s-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  color: rgba(255,255,255,.65);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .15s;
  margin-bottom: 2px;
  text-decoration: none;
  cursor: pointer;
}
.s-nav-item i {
  font-size: 16px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.s-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  text-decoration: none;
}
.s-nav-item.active {
  color: #fff;
  background: var(--blue);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(47,109,181,.4);
}

/* CTA button */
.sidebar-cta {
  padding: 14px 12px;
  flex-shrink: 0;
}
.btn-sidebar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  transition: background .15s, transform .1s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-sidebar-cta:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Sidebar footer */
.sidebar-foot {
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.sidebar-foot-text {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  text-align: center;
}

/* Sidebar: Kullanıcı bilgisi */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.sidebar-user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 12px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 10px; color: rgba(255,255,255,.4);
}
.sidebar-user-logout {
  color: rgba(255,255,255,.35);
  font-size: 16px;
  padding: 4px;
  border-radius: 5px;
  transition: color .15s, background .15s;
  text-decoration: none;
  flex-shrink: 0;
}
.sidebar-user-logout:hover {
  color: #fff;
  background: rgba(220,53,69,.3);
}

/* Topbar: Kullanıcı dropdown butonu */
.topbar-user-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-family: 'Inter', sans-serif;
}
.topbar-user-btn:hover {
  background: var(--blue-light);
  border-color: var(--blue);
}
.topbar-user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}

/* Kullanıcı listesi avatar */
.kullanici-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1039;
}
.sidebar-overlay.show { display: block; }

/* ═══════════════════════════════════════════════════
   MAIN AREA
   ═══════════════════════════════════════════════════ */
.cv-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.cv-topbar {
  height: var(--topbar-h);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.topbar-toggle {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  padding: 4px;
  cursor: pointer;
  display: none;
  line-height: 1;
}
.topbar-title {
  flex: 1;
  min-width: 0;
}
.topbar-title h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-title .topbar-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Page content */
.cv-page-content {
  flex: 1;
  padding: 24px;
  /* overflow-x intentionally NOT hidden — kanban board needs horizontal scroll */
  overflow-x: visible;
  min-width: 0;
}

/* ═══════════════════════════════════════════════════
   SECTION CARD (like the reference)
   ═══════════════════════════════════════════════════ */
.cv-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}
.cv-section-header {
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cv-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin: 0;
}
.cv-section-body { padding: 20px; }
.cv-section-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: #fafbfd;
}

/* ── CV Card (legacy compat) ──────────────────────── */
.cv-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cv-card-header {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  background: #fafbfd;
  font-size: 13.5px;
}
.cv-card-body { padding: 18px 20px; }
.cv-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: #fafbfd;
}

/* ═══════════════════════════════════════════════════
   RING CHARTS (SVG donut)
   ═══════════════════════════════════════════════════ */
.ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ring-container {
  position: relative;
  width: 120px; height: 120px;
  flex-shrink: 0;
}
.ring-svg {
  width: 120px; height: 120px;
  transform: rotate(-90deg);
}
.ring-svg .ring-bg {
  fill: none;
  stroke: #eaeef5;
  stroke-width: 7;
}
.ring-svg .ring-fill {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dasharray .7s ease;
}
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}
.ring-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.ring-val-sm { font-size: 11px; }
.ring-label-top {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}
.ring-desc {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ═══════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════ */
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .18s, box-shadow .18s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  margin-bottom: 10px;
}
.stat-value {
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
}
.stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Soft Backgrounds ─────────────────────────────── */
.bg-blue-soft    { background: rgba(47,109,181,.1); }
.bg-orange-soft  { background: rgba(47,109,181,.1); }
.bg-primary-soft { background: rgba(47,109,181,.1); }
.bg-success-soft { background: rgba(25,135,84,.1); }
.bg-warning-soft { background: rgba(255,193,7,.12); }
.bg-info-soft    { background: rgba(13,202,240,.1); }
.bg-danger-soft  { background: rgba(220,53,69,.1); }

.text-orange, .text-blue { color: var(--blue) !important; }

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn-orange, .btn-blue {
  background: var(--blue);
  color: #fff !important;
  border: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all .18s;
}
.btn-orange:hover, .btn-blue:hover {
  background: var(--blue-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47,109,181,.35);
}
.btn-orange:active, .btn-blue:active { transform: translateY(0); }

.btn-xs {
  padding: .18rem .42rem;
  font-size: .73rem;
  line-height: 1.4;
  border-radius: 5px;
}

/* Bootstrap primary override */
.btn-outline-primary {
  --bs-btn-color: var(--blue);
  --bs-btn-border-color: var(--blue);
  --bs-btn-hover-bg: var(--blue);
  --bs-btn-hover-border-color: var(--blue);
}
.btn-primary {
  --bs-btn-bg: var(--blue);
  --bs-btn-border-color: var(--blue);
  --bs-btn-hover-bg: var(--blue-dark);
}

/* ═══════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════ */
.cv-table { font-size: 13px; margin-bottom: 0; }
.cv-table thead th {
  background: #f4f6fb;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--border);
  padding: 9px 14px;
  white-space: nowrap;
}
.cv-table tbody td {
  padding: 10px 14px;
  vertical-align: middle;
  border-color: var(--border);
}
.cv-table tbody tr:hover td { background: var(--blue-light); }

/* ═══════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════ */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: #ccd5e2;
  font-size: 13.5px;
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,109,181,.13);
}
.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #3d4f66;
  margin-bottom: .3rem;
}
.form-check-input:checked {
  background-color: var(--blue);
  border-color: var(--blue);
}
.input-group-text {
  background: #f0f4fa;
  border-color: #ccd5e2;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   MISC
   ═══════════════════════════════════════════════════ */
.badge { font-weight: 500; font-size: 11px; padding: .3em .6em; }
.progress { border-radius: 10px; }
.progress-bar { background: var(--blue); }
.dropdown-menu {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  font-size: 13px;
}
.dropdown-item { padding: .4rem 1rem; }
.dropdown-item:hover { background: var(--blue-light); }
.alert { border-radius: var(--radius-sm); font-size: 13px; }
.toast { font-size: 13px; min-width: 220px; }

.hizmet-card {
  cursor: pointer;
  transition: all .14s;
  border-color: var(--border) !important;
}
.hizmet-card:hover {
  background: var(--blue-light) !important;
  border-color: var(--blue) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(47,109,181,.15);
}
.border-orange-dashed { border: 2px dashed var(--blue) !important; background: #f3f7fd; }

/* Brand divider (2-tone) */
.brand-divider { width:100%; height:3px; display:flex; }
.brand-divider .d-blue { background: var(--blue); width:18%; }
.brand-divider .d-gray { background: var(--gray-line); flex:1; }

/* ── Kalem inputs ─────────────────────────────────── */
#kalemlerBody .form-control-sm { font-size: 12px; padding: .22rem .4rem; }

/* ── Footer ───────────────────────────────────────── */
.cv-footer {
  background: var(--card-bg);
  font-size: 11.5px;
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #b8c8dd; border-radius: 3px; }

/* ══════════════════════════════════════════════════
   MOBILE / RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .cv-sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
  }
  .cv-sidebar.sidebar-open {
    transform: translateX(0);
  }
  .cv-main {
    margin-left: 0;
  }
  .topbar-toggle { display: block; }
  .cv-page-content { padding: 16px; }
}

@media (max-width: 575.98px) {
  .ring-container { width: 100px; height: 100px; }
  .ring-svg { width: 100px; height: 100px; }
  .ring-val { font-size: 13px; }
  .stat-value { font-size: 18px; }
  .cv-topbar { padding: 0 14px; }
  .cv-page-content { padding: 12px; }
}

/* ── Animations ───────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cv-card, .cv-section, .stat-card { animation: fadeInUp .22s ease both; }

/* ═══════════════════════════════════════════════════
   PIPELINE / KANBAN
   ═══════════════════════════════════════════════════ */

/* Wrapper card */
.pipeline-wrapper {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: visible; /* must NOT be hidden — board needs horizontal scroll */
}

/* Topbar */
.pipeline-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
}
.pipeline-topbar-left  { display: flex; align-items: center; gap: 10px; }
.pipeline-topbar-right { display: flex; align-items: center; gap: 8px; }
.pipeline-topbar-title {
  font-size: 14px; font-weight: 700; color: var(--blue);
}
.pipeline-topbar-meta {
  font-size: 12px; color: var(--text-muted);
  background: #f2f5fa; border-radius: 20px; padding: 2px 11px;
}

/* ── Board (yatay scroll konteyner) ─────────────── */
.pipeline-board {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  min-height: 520px;
  background: #f0f3f8;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  -webkit-align-items: stretch;
  align-items: stretch;
  /* bottom radius for wrapper */
  border-radius: 0 0 var(--radius) var(--radius);
}
.pipeline-board::-webkit-scrollbar        { height: 6px; }
.pipeline-board::-webkit-scrollbar-track  { background: #e4e9f2; }
.pipeline-board::-webkit-scrollbar-thumb  { background: #b8c8dd; border-radius: 3px; }

/* ── Column ──────────────────────────────────────── */
.pipeline-col {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 250px;
  flex: 0 0 250px;
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  background: #f0f3f8;
  border-right: 1px solid #dde4ee;
}
.pipeline-col:last-child { border-right: none; }

/* Column header */
.pipeline-col-head {
  padding: 0 12px 10px;
  background: #f0f3f8;
  flex-shrink: 0;
}
.pipeline-col-head-bar {
  height: 3px;
  background: var(--col-color, #aaa);
  margin-bottom: 10px;
  margin-left: -12px;
  margin-right: -12px;
}
.pipeline-col-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}
.pipeline-col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .9px;
  color: #6b7c96;
  text-transform: uppercase;
}
.pipeline-col-count {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--col-color, #aaa);
  border-radius: 10px;
  padding: 1px 8px;
  min-width: 20px;
  text-align: center;
  line-height: 1.6;
}
.pipeline-col-sum {
  font-size: 10.5px; color: var(--text-muted); margin-top: 3px;
}

/* ── Cards scroll area ───────────────────────────── */
.pipeline-cards {
  flex: 1;
  padding: 6px 8px 8px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 40px;
  transition: background .15s;
}
.pipeline-cards::-webkit-scrollbar       { width: 3px; }
.pipeline-cards::-webkit-scrollbar-thumb { background: #c8d4e3; border-radius: 2px; }

.pipeline-cards.pipeline-drop-target {
  background: #dce8f8;
  outline: 2px dashed var(--blue);
  outline-offset: -3px;
  border-radius: 6px;
}

/* ── PCARD ───────────────────────────────────────── */
.pcard {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e0e8f4;
  border-top: 3px solid transparent;   /* renkli üst çizgi hover'da açılır */
  padding: 11px 13px 10px;
  margin-bottom: 8px;
  cursor: grab;
  transition: box-shadow .18s, transform .14s, opacity .2s, border-top-color .18s;
  user-select: none;
  box-sizing: border-box;
  width: 100%;
  box-shadow: 0 1px 4px rgba(26,35,50,.07), 0 0 0 0 rgba(47,109,181,0);
  position: relative;
}
.pcard:last-of-type { margin-bottom: 0; }
.pcard:hover {
  box-shadow: 0 6px 18px rgba(47,109,181,.14), 0 1px 4px rgba(26,35,50,.06);
  transform: translateY(-2px);
  border-color: #c5d8ef;
  border-top-color: #2F6DB5;
}
.pcard:active {
  cursor: grabbing;
}
.pcard.dragging {
  opacity: .45;
  transform: rotate(2deg) scale(.95);
  cursor: grabbing;
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
}

/* Sol renkli aksent çizgisi */
.pcard::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--pcard-accent, #2F6DB5);
  opacity: 0;
  transition: opacity .18s;
}
.pcard:hover::before { opacity: 1; }

/* Üst: avatar + isim + tarih */
.pcard-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  min-width: 0;
}
.pcard-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  letter-spacing: -.5px;
}
.pcard-name {
  font-size: 11.5px;
  font-weight: 500;
  color: #7a8fa8;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard-date {
  font-size: 10px;
  color: #a8bbd0;
  flex-shrink: 0;
  white-space: nowrap;
  background: #f2f6fb;
  border-radius: 4px;
  padding: 1px 5px;
}
.pcard-date--past {
  color: #dc3545;
  background: #fff0f0;
  font-weight: 600;
}

/* Başlık */
.pcard-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e4d8c;
  line-height: 1.35;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard:hover .pcard-title { color: #2F6DB5; }

.pcard-company {
  font-size: 10.5px;
  font-weight: 500;
  color: #a8bbd0;
  margin-bottom: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}
.pcard-company::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a8bbd0'%3E%3Cpath d='M14.763.075A.5.5 0 0 1 15 .5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V14h-1v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V10a.5.5 0 0 1 .342-.474L6 7.64V4.5a.5.5 0 0 1 .276-.447l8-4a.5.5 0 0 1 .487.022zM6 8.694 1 10.36V15h5V8.694zM7 15h2v-1.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V15h2V1.309l-7 3.5V15z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  opacity: .7;
}

/* Ayırıcı çizgi */
.pcard-divider {
  height: 1px;
  background: linear-gradient(to right, #edf1f8, transparent);
  margin: 0 0 8px;
}

/* Alt: fiyat + badge + nokta */
.pcard-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}
.pcard-bottom-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}
.pcard-price {
  font-size: 11.5px;
  font-weight: 700;
  color: #2d4a6b;
  white-space: nowrap;
  background: #eef4fc;
  border-radius: 5px;
  padding: 2px 7px;
}
.pcard-badge {
  font-size: 9px;
  font-weight: 700;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .2px;
}
.pcard-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
  box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 0 3px currentColor;
}

/* Ekle butonu */
.pcard-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 0;
  margin-top: 6px;
  border-radius: 7px;
  border: 1.5px dashed #c8d4e3;
  color: #9bafc7;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
}
.pcard-add:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #eef4fc;
}

/* Boş mesaj */
.pipeline-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 6px;
  pointer-events: none;
  color: var(--text-muted);
}

/* Badge purple */
.bg-purple { background-color: #6f42c1 !important; }
.asama-badge { font-weight: 500; }

/* ═══════════════════════════════════════════════════
   ACTIVITY TIMELINE
   ═══════════════════════════════════════════════════ */
.timeline { padding: 0; }
.timeline-item {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  animation: fadeInUp .2s ease both;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.timeline-body { flex: 1; min-width: 0; }
.timeline-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.timeline-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}
.timeline-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════
   CUSTOMER CARDS
   ═══════════════════════════════════════════════════ */
.musteri-card {
  height: 100%;
  transition: transform .15s, box-shadow .15s;
}
.musteri-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.musteri-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.musteri-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}
.musteri-meta-item i { font-size: 12px; flex-shrink: 0; }
.musteri-meta-item a { color: var(--blue); text-decoration: none; }
.musteri-meta-item a:hover { text-decoration: underline; }
