/* ============================================================
   ETSO Seçim Takip Sistemi - Mobil öncelikli stil dosyası
   ============================================================ */
:root {
  --primary: #c1121f;        /* kampanya kırmızısı */
  --primary-dark: #8f0d16;
  --primary-light: #fdeaea;
  --menu: #2b2f36;           /* antrasit menü */
  --menu-dark: #1e2126;
  --menu-text: #b9c0c9;
  --accent: #1e3a8a;
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --green: #15803d;
  --green-soft: #dcfce7;
  --lime: #65a30d;
  --lime-soft: #ecfccb;
  --yellow: #ca8a04;
  --yellow-soft: #fef9c3;
  --orange: #ea580c;
  --orange-soft: #ffedd5;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --gray-soft: #f3f4f6;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --tap: 44px; /* minimum dokunma alanı */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* hidden özniteliği her zaman gizlesin (display:flex/grid gibi kurallar onu ezmesin) */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  padding-bottom: calc(64px + env(safe-area-inset-bottom)); /* alt nav payı */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

a { color: var(--primary); text-decoration: none; }
h1 { font-size: 1.35rem; margin: 0 0 .75rem; }
h2 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }

/* ---------- Üst çubuk (mobil) ---------- */
.topbar {
  background: var(--menu);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.brand { display: flex; align-items: center; gap: 9px; color: #fff; }
.brand-badge {
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  border-radius: 8px;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex: none;
}
.brand-badge-lg { width: 54px; height: 54px; font-size: 1.4rem; margin: 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; }
.brand-text small { font-weight: 400; opacity: .82; font-size: .68rem; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-chip { font-size: .8rem; opacity: .9; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-logo { height: 40px; width: auto; }

/* ---------- Sol menü (masaüstü) ---------- */
.sidebar { display: none; }
@media (min-width: 900px) {
  .topbar { display: none; }
  body { padding-left: 236px; }
  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 236px;
    background: linear-gradient(180deg, var(--menu) 0%, var(--menu-dark) 100%);
    color: #fff;
    z-index: 60;
    padding: 16px 12px;
    overflow-y: auto;
  }
  .side-brand {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    color: #fff;
    padding: 4px 2px 14px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    margin-bottom: 12px;
  }
  .side-logo { max-width: 100%; height: auto; }
  .sidenav { display: flex; flex-direction: column; gap: 2px; }
  .sidenav a {
    color: var(--menu-text);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 500;
    display: flex; align-items: center; gap: 10px;
  }
  .sidenav a:hover { background: rgba(255,255,255,.09); color: #fff; }
  .sidenav a.active { background: var(--primary); color: #fff; font-weight: 700; }
  .sn-icon { width: 20px; text-align: center; flex: none; }
  .side-sep {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
    color: rgba(255,255,255,.55); padding: 12px 12px 4px; font-weight: 700;
  }
  .side-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.18); padding-top: 10px; }
  .side-user { display: flex; flex-direction: column; padding: 0 6px 8px; line-height: 1.25; }
  .side-user small { color: rgba(255,255,255,.7); font-size: .74rem; }
}

/* ---------- Alt gezinme (mobil) ---------- */
.bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--menu);
  border-top: 1px solid var(--menu-dark);
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  min-height: 58px;
  color: var(--menu-text);
  font-size: .68rem;
  font-weight: 600;
}
.bottomnav a.active { color: #fff; }
.bn-icon { display: inline-flex; line-height: 1; }
.sn-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; flex: none; }
@media (min-width: 900px) { .bottomnav { display: none; } }

/* ---------- Konteyner (tam ekran) ---------- */
.container { max-width: none; margin: 0; padding: 14px; }
@media (min-width: 900px) { .container { padding: 22px 26px; } }

/* ---------- Kartlar ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  padding: 16px;
  margin-bottom: 14px;
}
.card-title { font-weight: 700; margin: 0 0 12px; font-size: .98rem; display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.ct-ic { display: inline-flex; align-items: center; gap: 8px; }
.ct-ic .ico { color: var(--muted); }

/* ---------- Flash ---------- */
.flash {
  padding: 11px 14px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: .9rem;
  font-weight: 500;
}
.flash-success { background: var(--green-soft); color: var(--green); }
.flash-error { background: var(--red-soft); color: var(--red); }
.flash-info { background: var(--primary-light); color: var(--primary); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 15px;
  min-height: var(--tap);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-success { background: var(--green); color: #fff; border-color: var(--green); }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(255,255,255,.4); }
.btn-sm { padding: 5px 10px; min-height: 34px; font-size: .8rem; }
.btn-lg { padding: 13px 20px; font-size: 1rem; }
.btn-block { width: 100%; }
.inline { display: inline; }

/* ---------- Formlar ---------- */
label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number],
input[type=date], input[type=datetime-local], input[type=tel], select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .95rem;
  margin-top: 4px;
  background: #fff;
  color: var(--text);
  min-height: var(--tap);
  font-family: inherit;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 0;
  border-color: var(--primary);
}
.form-row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
  .form-row-4 { grid-template-columns: repeat(2, 1fr); }
}
.form-row-4 { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .form-row-4 { grid-template-columns: repeat(4, 1fr); } }
.form-row-5 { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px)  { .form-row-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .form-row-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .form-row-5 { grid-template-columns: repeat(5, 1fr); } }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.field-hint { font-weight: 400; color: var(--muted); font-size: .78rem; }

/* ---------- Giriş sayfası ---------- */
.login-body {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 60%, #101f4d 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.login-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  padding: 26px 22px;
  width: 100%;
  max-width: 400px;
}
.login-brand { text-align: center; margin-bottom: 18px; }
.login-brand h1 { margin: 10px 0 2px; font-size: 1.45rem; }
.login-brand p { margin: 0; color: var(--muted); font-size: .85rem; }
.kvkk-note {
  margin-top: 16px;
  font-size: .72rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  line-height: 1.5;
}

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; background: #fff; }
.tbl th, .tbl td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl th { font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.tbl tr:hover td { background: #fafbff; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Rozetler ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
}
/* Oy durumu kategorileri (6) */
.vs-bizde    { background: #dcfce7; color: #15803d; }  /* yeşil  - Kesin Bizde */
.vs-ortada   { background: #fef9c3; color: #a16207; }  /* sarı   - Ortada */
.vs-karsi    { background: #fee2e2; color: #dc2626; }  /* kırmızı- Karşı Tarafta */
.vs-kurumsal { background: #dbeafe; color: #1d4ed8; }  /* mavi   - Kurumsallar */
.vs-oy-yok   { background: #fce7f3; color: #be185d; }  /* pembe  - Oy Kullanmayacaklar */
.vs-askida   { background: #ffedd5; color: #c2410c; }  /* turuncu- Askıda */
.badge-visit-0 { background: var(--red-soft); color: var(--red); }
.badge-visit-1 { background: var(--yellow-soft); color: var(--yellow); }
.badge-visit-2 { background: var(--green-soft); color: var(--green); }
.badge-tag { background: var(--primary-light); color: var(--primary); }
.badge-gray { background: var(--gray-soft); color: var(--muted); }
.badge-etki { background: #fdf4ff; color: #a21caf; }

/* ---------- Durum ışıkları (dashboard) ---------- */
.light { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; }
.light-green { background: #22c55e; box-shadow: 0 0 6px #22c55e88; }
.light-yellow { background: #eab308; box-shadow: 0 0 6px #eab30888; }
.light-red { background: #ef4444; box-shadow: 0 0 6px #ef444488; }

/* ---------- İstatistik kartları ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .stat-grid { grid-template-columns: repeat(6, 1fr); } }
.stat {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  border-left: 4px solid var(--border);
}
.stat .stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .stat-label { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Yatay çubuk grafik ---------- */
.hbar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--gray-soft); }
.hbar > div { height: 100%; min-width: 0; transition: width .25s; }
.hbar-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: .74rem; color: var(--muted); margin-top: 8px; }
.hbar-legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; vertical-align: -1px; margin-right: 4px; }

/* ---------- Arama + filtre ---------- */
.searchbar { position: relative; margin-bottom: 10px; }
.searchbar input { padding-left: 38px; font-size: 1rem; }
.searchbar::before {
  content: "⌕";
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--muted);
}
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Firma liste kartları (mobil) ---------- */
.firm-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  margin-bottom: 8px;
  color: var(--text);
}
.firm-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.firm-card .firm-name { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.firm-card .firm-sub { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.firm-card .firm-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }

/* ---------- Detay sayfası ---------- */
.detail-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .detail-grid { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 4px 10px; font-size: .88rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
.phone-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.phone-row:last-child { border-bottom: none; }
.phone-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.btn-call { background: var(--green); color: #fff; border-color: var(--green); }
.btn-wa { background: #16a34a; color: #fff; border-color: #16a34a; }
.rep-block { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
.rep-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rep-name { font-weight: 700; }

/* ---------- Zaman çizelgesi ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 9px 0 9px 18px; border-left: 2px solid var(--border); position: relative; margin-left: 6px; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 14px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff;
}
.timeline .tl-meta { font-size: .74rem; color: var(--muted); }

/* ---------- Sayfalama ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin: 14px 0; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; min-height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: .85rem; padding: 0 8px;
}
.pager .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Hata sayfası ---------- */
.error-page { text-align: center; padding: 60px 20px; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--border); }

/* ---------- Yardımcılar ---------- */
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.right { text-align: right; }
.center { text-align: center; }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }
.hide-mobile { display: none; }
@media (min-width: 900px) { .hide-mobile { display: revert; } .hide-desktop { display: none; } }

/* ============================================================
   Kurumsal bileşenler (Genel Bakış ve genel kullanım)
   ============================================================ */

/* Sayfa başlığı */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.page-head h1 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; }
.page-sub { margin: 3px 0 0; color: var(--muted); font-size: .84rem; }
.page-actions { display: flex; gap: 8px; }

/* SVG ikonlar */
.ico { vertical-align: -3px; flex: none; }
.btn .ico { vertical-align: -2px; }

/* KPI kartları */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 700px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1500px) { .kpi-grid { grid-template-columns: repeat(6, 1fr); } }
/* 7 kartlı KPI ızgarası (Toplam + 6 kategori) */
@media (min-width: 1000px) { .kpi-grid-7 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .kpi-grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1300px) { .kpi-grid-6 { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1450px) { .kpi-grid-7 { grid-template-columns: repeat(7, 1fr); } }
.kpi {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
  padding: 18px 18px 16px 21px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
/* Sol renk şeridi */
.kpi::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--kc, var(--border));
  border-radius: 14px 0 0 14px;
}
a.kpi { color: inherit; text-decoration: none; cursor: pointer; }
.kpi:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .11); border-color: var(--kc, #d7dbe0); transform: translateY(-1px); }
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kpi-label {
  font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
  padding-top: 8px;
  min-width: 0; overflow-wrap: anywhere;   /* uzun etiket ikonu dışarı itmesin */
  min-height: 2.6em;                        /* 1 veya 2 satır fark etmesin: rakamlar hep aynı hizada */
  display: flex; align-items: flex-start;
}
.kpi-ic {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--kcs, var(--gray-soft)); color: var(--kc, var(--muted));
}
.kpi-ic .ico { width: 21px; height: 21px; }
.kpi-value {
  font-size: 2.15rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--text);
}
.kpi-sub { margin-top: auto; }   /* alt açıklama kartın altına yaslansın (bar olsun olmasın hizalı) */
@media (max-width: 560px) {
  .kpi { padding: 13px 12px 12px 15px; gap: 6px; }
  .kpi-value { font-size: 1.6rem; }
  /* Dar ekranda etiketi küçült ve ikonu ufalt ki taşma/kırpılma olmasın */
  .kpi-label { font-size: .63rem; letter-spacing: .03em; padding-top: 4px; }
  .kpi-ic { width: 30px; height: 30px; border-radius: 9px; }
  .kpi-ic .ico { width: 17px; height: 17px; }
  .kpi-sub { font-size: .7rem; }
  .kpi::before { width: 4px; }
}
.kpi-bar { height: 6px; border-radius: 99px; background: var(--gray-soft); overflow: hidden; }
.kpi-bar i { display: block; height: 100%; min-width: 3px; background: var(--kc, var(--primary)); border-radius: 99px; }
.kpi-sub { font-size: .8rem; color: var(--muted); }

/* Durum pill'i */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 4px 11px;
  font-size: .74rem; font-weight: 700; white-space: nowrap;
}
.pill .light { width: 8px; height: 8px; box-shadow: none; }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-yellow { background: var(--yellow-soft); color: #a16207; }
.pill-red { background: var(--red-soft); color: var(--red); }

/* Genel dağılım bandı */
.band-wrap { position: relative; }
.band { height: 30px; border-radius: 8px; }
.band-marker {
  position: absolute; top: -4px; bottom: -4px; left: 50%;
  border-left: 2px dashed #475569; opacity: .55;
}

/* Tablo içi mini bar ve ilerleme çubuğu */
.minibar { height: 8px; border-radius: 99px; min-width: 120px; }
.prog-wrap { display: flex; align-items: center; gap: 8px; }
.prog { flex: 1; height: 6px; border-radius: 99px; background: var(--gray-soft); overflow: hidden; min-width: 56px; }
.prog i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.prog-txt { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; width: 34px; text-align: right; }

/* Kurumsal tablo */
.tbl-pro th {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.tbl-pro td { padding: 10px; }
.tbl-pro tr.row-link { cursor: pointer; transition: background .15s; }
.tbl-pro tr.row-link:hover td { background: #f8fafc; }

/* İki katmanlı gruplu başlık */
.thg { text-align: center !important; border-bottom: none !important; padding-bottom: 4px; }
.thg-bize { background: var(--green-soft) !important; color: var(--green) !important; }
.thg-karsi { background: var(--red-soft) !important; color: var(--red) !important; }
.th-sub th { border-top: none; padding-top: 4px; font-size: .68rem; }
.th-sub th:nth-child(1), .th-sub th:nth-child(2) { background: var(--green-soft); color: var(--green); }
.th-sub th:nth-child(3), .th-sub th:nth-child(4) { background: var(--red-soft); color: var(--red); }
.th-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: .66rem; }

/* Sıfır değerler soluk görünür, dolu hücreler öne çıkar */
.tbl .zero { color: #cbd5e1; font-weight: 400; }

/* Toplam satırı */
.row-total td {
  background: #f8fafc;
  border-top: 2px solid var(--border);
  border-bottom: none;
  font-variant-numeric: tabular-nums;
}

/* Plan listesi */
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.plan-list li:last-child { border-bottom: none; }
.plan-list li.done { color: var(--muted); }
.plan-list li.done > span:last-child { text-decoration: line-through; }
.plan-list li.done .badge { text-decoration: none; }
.plan-check {
  width: 20px; height: 20px; border-radius: 6px; flex: none; margin-top: 1px;
  border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; color: #fff;
}
.plan-list li.done .plan-check { background: var(--green); border-color: var(--green); }

/* Simülasyon */
.sim-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
input[type=range] { accent-color: var(--primary); min-height: auto; height: 28px; cursor: pointer; }
.sim-val { width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.check-inline {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: .86rem; margin: 0; cursor: pointer;
}
.check-inline input { width: auto; min-height: auto; margin: 0; accent-color: var(--primary); cursor: pointer; }
.sim-callout {
  margin-top: 12px; padding: 11px 14px; border-radius: 10px;
  font-size: .95rem; border: 1px solid transparent;
}
.sim-callout strong { font-size: 1.1rem; }
.sc-green { background: var(--green-soft); color: var(--green); border-color: #bbe7c9; }
.sc-yellow { background: var(--yellow-soft); color: #a16207; border-color: #f0e1a0; }
.sc-red { background: var(--red-soft); color: var(--red); border-color: #f5c6c6; }

/* Genel arama tetikleyicileri */
.side-search {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: var(--menu-text); border-radius: 9px; padding: 9px 11px; margin-bottom: 10px;
  cursor: pointer; font-size: .9rem; font-weight: 500;
}
.side-search:hover { background: rgba(255,255,255,.14); color: #fff; }
.side-search kbd { margin-left: auto; font-size: .6rem; background: rgba(255,255,255,.14); border-radius: 4px; padding: 2px 5px; font-family: inherit; }
.top-search { background: none; border: none; color: #fff; padding: 6px; cursor: pointer; display: inline-flex; align-items: center; }

/* "Oy kullanamaz" (üyelik süresi şartı) rozeti */
.badge-oysuz { background: #ede9fe; color: #6d28d9; }

/* Grup raporu — durum özeti */
.grup-ozet { border-left: 4px solid var(--primary); }
.grup-ozet-sol { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.grup-ozet-metin { flex: 1; min-width: 260px; font-size: .95rem; line-height: 1.5; }
.grup-ozet-metin strong { font-size: 1.05rem; }

/* Plan: seçilen firma çipleri (çoklu firma bağlama) */
.secilen-firmalar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.secilen-firmalar > .small { flex-basis: 100%; }
.firma-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 999px; padding: 5px 6px 5px 12px;
  font-size: .8rem; font-weight: 600; max-width: 100%;
}
.firma-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.firma-chip-x {
  background: rgba(0,0,0,.08); border: none; color: inherit; cursor: pointer;
  border-radius: 50%; width: 20px; height: 20px; flex: none; font-size: .7rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.firma-chip-x:hover { background: var(--primary); color: #fff; }

/* Plan maddesi düzenleme formu */
.plan-duzenle {
  margin-top: 10px; padding: 12px; border-radius: 10px;
  background: var(--bg); border: 1px dashed var(--border);
}

/* Haftalık plan ızgarası */
.hafta-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px)  { .hafta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .hafta-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1600px) { .hafta-grid { grid-template-columns: repeat(7, 1fr); } }
.hafta-gun { display: flex; flex-direction: column; padding: 13px 14px; margin-bottom: 0; }
.hafta-gun.bugun { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.hafta-gun-bas { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.hafta-gun-bas .badge { margin-left: 6px; }
.hafta-gun .plan-list2 { flex: 1; }
.hafta-gun .pl-title { font-size: .84rem; }
.pl-check-btn { cursor: pointer; background: none; padding: 0; }
.pl-check-btn:hover { border-color: var(--green); }

/* PWA: Ana Ekrana Ekle şeridi */
.pwa-install {
  position: fixed; z-index: 90;
  left: 12px; right: 12px; bottom: calc(66px + env(safe-area-inset-bottom));
  background: var(--menu); color: #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 14px;
}
@media (min-width: 900px) { .pwa-install { left: auto; right: 20px; bottom: 20px; max-width: 400px; } }
.pwa-install-ic { flex: none; color: #fff; display: inline-flex; opacity: .9; }
.pwa-install-txt { flex: 1; font-size: .86rem; line-height: 1.3; }
.pwa-install-txt b { font-weight: 700; }
.pwa-install .btn { flex: none; }
.pwa-install-x { background: none; border: none; color: rgba(255,255,255,.65); font-size: .95rem; cursor: pointer; padding: 4px 6px; flex: none; }
.pwa-install-x:hover { color: #fff; }

/* Ctrl+K komut paleti */
.cmdk-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,.5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 11vh 16px 16px;
}
.cmdk-box {
  width: 100%; max-width: 560px; background: var(--card); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden;
  display: flex; flex-direction: column; max-height: 72vh;
}
.cmdk-inputwrap { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cmdk-icon { color: var(--muted); display: inline-flex; }
#cmdk-input { flex: 1; border: none; outline: none; font-size: 1.05rem; background: transparent; color: var(--text); padding: 0; min-height: auto; }
.cmdk-esc { font-size: .6rem; color: var(--muted); background: var(--gray-soft); border-radius: 4px; padding: 3px 6px; font-family: inherit; }
.cmdk-results { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.cmdk-item { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.cmdk-item.active, .cmdk-item:hover { background: var(--primary-light); }
.cmdk-item-main { font-weight: 600; font-size: .92rem; }
.cmdk-item-sub { font-size: .74rem; color: var(--muted); }
.cmdk-hint { padding: 9px 16px; border-top: 1px solid var(--border); font-size: .74rem; color: var(--muted); }
.cmdk-hint kbd { background: var(--gray-soft); border-radius: 4px; padding: 1px 5px; font-family: inherit; font-size: .68rem; margin: 0 1px; }

/* Giriş: beni hatırla */
.login-remember {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 500; color: var(--muted);
  margin: -2px 0 4px; cursor: pointer;
}
.login-remember input { width: auto; min-height: auto; margin: 0; accent-color: var(--primary); cursor: pointer; }

/* Mobil menü sayfası */
.menu-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
.menu-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  min-height: 60px;
}
.menu-item:hover { border-color: #d7dbe0; box-shadow: 0 4px 12px rgba(16, 24, 40, .09); }
.menu-item .feed-ic { width: 38px; height: 38px; }
.menu-item strong { display: block; }

/* ---- Dashboard iki kolonlu düzen ---- */
.dash-cols { display: flex; flex-direction: column; gap: 14px; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash-side { order: -1; }                 /* mobilde: günlük eylem kartları önce */
.dash-main > *, .dash-side > * { margin-bottom: 0; }
@media (min-width: 1280px) {
  .dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; }
  .dash-side { order: 0; position: sticky; top: 14px; }
}
.side-card { padding: 15px 16px; }

/* Sidebar boş durumu */
.side-empty { text-align: center; padding: 14px 0 6px; color: var(--muted); }
.side-empty .ico { color: var(--border); }
.side-empty p { margin: 6px 0 10px; font-size: .86rem; }

/* Bugünün Planı — sadeleştirilmiş */
.plan-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.plan-progress-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--gray-soft); overflow: hidden; }
.plan-progress-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .3s; }
.plan-progress-txt { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.plan-progress-txt b { color: var(--text); font-size: .95rem; }
.plan-list2 { list-style: none; margin: 0; padding: 0; }
.plan-list2 li { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; border-bottom: 1px solid #f1f3f5; }
.plan-list2 li:last-child { border-bottom: none; padding-bottom: 0; }
.pl-check {
  width: 20px; height: 20px; border-radius: 50%; flex: none; margin-top: 1px;
  border: 2px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; color: #fff;
}
.plan-list2 li.done .pl-check { background: var(--green); border-color: var(--green); }
.pl-body { min-width: 0; flex: 1; }
.pl-title { display: block; font-weight: 600; font-size: .88rem; line-height: 1.3; }
.plan-list2 li.done .pl-title { color: var(--muted); text-decoration: line-through; }
.pl-sub { display: block; font-size: .77rem; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-who {
  flex: none; align-self: center; white-space: nowrap;
  font-size: .68rem; font-weight: 700; color: var(--muted);
  background: var(--gray-soft); border-radius: 99px; padding: 3px 9px;
}

/* Kayan oylar + trend */
.kayan-card { border-left: 4px solid var(--red); }
.trend-wrap { overflow-x: auto; }
.trend-svg { width: 100%; height: auto; min-width: 420px; display: block; }

/* Öncelikli hedef kartları */
.hedef-card { padding: 13px 15px; }
.hedef-sira {
  width: 26px; height: 26px; border-radius: 50%; flex: none; margin-top: 1px;
  background: var(--menu); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .74rem; font-weight: 800;
}
.hedef-puan {
  flex: none;
  background: var(--primary-light); color: var(--primary);
  border-radius: 10px; padding: 6px 12px;
  font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums;
}

/* Hızlı ziyaret seçenekleri (büyük dokunma alanları) */
.quick-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-opt {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 14px; margin: 0; cursor: pointer;
  font-weight: 600; min-height: var(--tap);
  transition: border-color .15s, background .15s;
}
.quick-opt input { width: auto; min-height: auto; margin: 0; accent-color: var(--primary); }
.quick-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }

/* Aktivite akışı */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1f3f5; }
.feed li:last-child { border-bottom: none; }
.feed-ic {
  width: 28px; height: 28px; border-radius: 8px; flex: none; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fcs, var(--gray-soft)); color: var(--fc, var(--muted));
}
.feed-body { min-width: 0; font-size: .88rem; }
.feed-body a { font-weight: 600; }
.feed-meta { display: block; font-size: .74rem; color: var(--muted); margin-top: 1px; }

/* Erişilebilirlik: klavye odağı ve azaltılmış hareket */
a:focus-visible, button:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Yazdırma ---------- */
@media print {
  body { background: #fff; padding: 0; font-size: 11pt; }
  .topbar, .bottomnav, .no-print, .flash { display: none !important; }
  .container { max-width: none; padding: 0; }
  .card { box-shadow: none; border: none; padding: 0; }
  a { color: inherit; }
  .tbl th, .tbl td { padding: 5px 6px; }
}

/* Filtre çip satırları (ilçe / meslek grubu) */
.filtre-satir { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.filtre-adi {
  flex: none; width: 42px; font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.filtre-satir .chips { flex: 1; min-width: 0; margin: 0; }
.chip b { font-weight: 700; font-size: .72rem; margin-left: 5px; opacity: .5; }
.chip.active b { opacity: .8; }
.chip-bos { opacity: .45; }
@media (max-width: 520px) {
  .filtre-adi { width: 32px; font-size: .6rem; }
  .chip b { font-size: .68rem; margin-left: 4px; }
}
/* Genel Bakış ilçe çiplerinde "Tümü/Merkez/İlçeler" ile tek tek ilçeleri ayıran çizgi */
.cip-ayrac { flex: none; width: 1px; background: var(--border); margin: 5px 3px; align-self: stretch; }

/* ---------- Çoklu Oy Sahipleri ---------- */
.kpi-mini {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px;
}
.kpi-mini > div {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 8px; text-align: center; box-shadow: var(--shadow);
}
.km-n { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.km-l { display: block; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 2px; }

.coklu-kart { padding: 14px 16px; }
.ck-bas { display: flex; align-items: flex-start; gap: 12px; }
.ck-ad { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.ck-oy {
  flex: none; min-width: 62px; text-align: center; border-radius: var(--radius);
  background: var(--primary-light); color: var(--primary); padding: 6px 8px;
}
.ck-oy-n { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.05; }
.ck-oy-l { display: block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.badge-tel { background: #e0f2fe; color: #0369a1; }

.ck-firmalar { margin-top: 10px; border-top: 1px solid var(--border); }
.ck-firma {
  display: grid; grid-template-columns: 1fr 190px auto; align-items: center; gap: 10px;
  padding: 9px 2px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none;
}
.ck-firma:last-child { border-bottom: none; }
.ck-firma:hover { background: var(--gray-soft); }
.ck-firma-ad { font-weight: 600; font-size: .9rem; }
.ck-firma-alt { font-size: .8rem; color: var(--muted); }
.ck-firma-rozet { display: flex; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }

@media (max-width: 720px) {
  .kpi-mini { grid-template-columns: repeat(3, 1fr); }
  .ck-firma { grid-template-columns: 1fr; gap: 3px; padding: 10px 2px; }
  .ck-firma-rozet { justify-content: flex-start; margin-top: 3px; }
  .ck-oy { min-width: 54px; }
}
@media print {
  .coklu-kart { break-inside: avoid; box-shadow: none; }
  .ck-firma:hover { background: none; }
}

/* Çoklu oy: yanlış eşleşmeyi listeden çıkarma */
.btn-cikar { border-color: #fecaca; color: #b91c1c; }
.btn-cikar:hover { background: #fee2e2; border-color: #fca5a5; }
.badge-haric { background: #e5e7eb; color: #4b5563; }
.ck-firma-haric { opacity: .6; }
.ck-firma-haric .ck-firma-ad { text-decoration: line-through; }


/* ---------- Meclis koltuk projeksiyonu ---------- */
.koltuk-aciklama { font-size: .9rem; line-height: 1.6; color: var(--text); margin: 2px 0 14px; }

.koltuk-sayilar { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.ks { border-radius: var(--radius); padding: 12px 10px; text-align: center; border: 1px solid transparent; }
.ks-n { display: block; font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.ks-l { display: block; font-size: .74rem; font-weight: 700; line-height: 1.3; margin-top: 5px; opacity: .85; }
.ks-yesil { background: var(--green-soft); color: var(--green); }
.ks-sari { background: var(--yellow-soft); color: #a16207; }
.ks-kirmizi { background: var(--red-soft); color: var(--red); }
.ks-hedef { background: var(--primary-light); color: var(--primary); border-color: #f8caca; }

.ko-olcek { margin: 18px 0 6px; }
.ko-bar { position: relative; display: flex; height: 34px; border-radius: 8px; overflow: visible; background: var(--gray-soft); }
.ko-dilim {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .95rem; min-width: 24px;
}
.ko-dilim:first-child { border-radius: 8px 0 0 8px; }
.ko-dilim:last-of-type { border-radius: 0 8px 8px 0; }
.ko-yesil { background: #15803d; }
.ko-sari { background: #ca8a04; }
.ko-kirmizi { background: #dc2626; }
.ko-esik { position: absolute; left: 50%; top: -22px; bottom: -6px; width: 0; }
.ko-esik i { position: absolute; top: 20px; bottom: 0; left: -1.5px; width: 3px; background: var(--text); }
.ko-esik b {
  position: absolute; top: 0; left: 0; transform: translateX(-50%);
  background: var(--text); color: #fff; font-size: .64rem; font-weight: 800;
  letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.ko-eksen { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 10px; }

.ko-kutular { display: grid; gap: 10px; margin-top: 14px; }
.ko-kutu { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.ko-kutu-bas { font-size: .86rem; margin-bottom: 8px; }
.ko-gruplar { display: flex; flex-wrap: wrap; gap: 6px; }
.gk {
  display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
  border-radius: 999px; padding: 5px 10px; font-size: .8rem; font-weight: 600; border: 1px solid;
}
.gk b { font-weight: 800; font-size: .74rem; padding: 0 5px; border-radius: 999px; background: rgba(0,0,0,.12); }
.gk-yesil { background: var(--green-soft); color: var(--green); border-color: #bbf7d0; }
.gk-sari { background: var(--yellow-soft); color: #a16207; border-color: #fde68a; }
.gk-kirmizi { background: var(--red-soft); color: var(--red); border-color: #fecaca; }

.ko-yol { margin-top: 16px; border-top: 2px solid var(--border); padding-top: 14px; }
.ko-yol-bas { font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.ko-yol-tablo { font-size: .9rem; }

.koltuk-rozet {
  display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 999px;
  font-size: .76rem; font-weight: 800; color: #fff; text-align: center;
}
.koltuk-green { background: #15803d; }
.koltuk-yellow { background: #ca8a04; }
.koltuk-red { background: #dc2626; }
.sim-alt { display: block; font-size: .78rem; font-weight: 600; opacity: .85; margin-top: 2px; }

@media (max-width: 600px) {
  .koltuk-aciklama { font-size: .85rem; }
  .ks-n { font-size: 1.7rem; }
  .ks-l { font-size: .68rem; }
  .ko-dilim { font-size: .82rem; }
  .ko-esik b { font-size: .58rem; padding: 2px 6px; }
}

/* Ayarlar — meclis üye sayısı ızgarası */
.meclis-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.meclis-grid label { font-size: .76rem; font-weight: 600; color: var(--muted); }
.meclis-grid input { text-align: center; font-weight: 700; }
@media (max-width: 900px) { .meclis-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .meclis-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Toplantı Modu ---------- */
.tm-serit {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--primary); color: #fff; padding: 9px 14px;
  border-radius: 8px; margin: 0 0 12px; font-size: .86rem;
}
.tm-nokta { width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: none; animation: tm-yanip 1.6s infinite; }
@keyframes tm-yanip { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
.tm-metin { flex: 1; min-width: 180px; }
.tm-cikis {
  background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.45);
  border-radius: 6px; padding: 5px 12px; font-size: .8rem; font-weight: 700; cursor: pointer;
}
.tm-cikis:hover { background: rgba(255,255,255,.3); }
.sn-tm { background: var(--primary) !important; color: #fff !important; font-weight: 700; }

/* Menü alt imzası */
.side-imza { margin-top: 10px; padding: 0 4px; font-size: .68rem; line-height: 1.45; color: rgba(255,255,255,.5); text-align: center; }
.side-imza a { color: rgba(255,255,255,.72); text-decoration: none; white-space: nowrap; }
.side-imza a:hover { color: #fff; text-decoration: underline; }
.side-kalp { color: #f43f5e; }

/* ---------- Daraltılabilir sol menü ---------- */
.side-toggle { display: none; }
.side-mini { display: none; }
.side-cikis { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media (min-width: 900px) {
  body { transition: padding-left .18s ease; }
  .sidebar { transition: width .18s ease, padding .18s ease; }
  .side-toggle {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 26px; left: 224px; z-index: 70;
    width: 24px; height: 24px; padding: 0; border-radius: 50%;
    border: 1px solid var(--border); background: #fff; color: var(--text);
    box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: pointer;
    transition: left .18s ease, background .12s;
  }
  .side-toggle:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
  .side-toggle svg { transition: transform .18s ease; }

  body.menu-dar { padding-left: 68px; }
  body.menu-dar .sidebar { width: 68px; padding: 16px 10px; }
  body.menu-dar .side-toggle { left: 56px; }
  body.menu-dar .side-toggle svg { transform: rotate(180deg); }
  body.menu-dar .sn-yz,
  body.menu-dar .side-sep,
  body.menu-dar .side-user,
  body.menu-dar .side-search kbd,
  body.menu-dar .sn-tm b,
  body.menu-dar .side-logo,
  body.menu-dar .side-brand .brand-text,
  body.menu-dar .side-brand > .brand-badge:not(.side-mini) { display: none; }
  body.menu-dar .side-mini { display: inline-flex; }
  body.menu-dar .side-brand { padding-bottom: 12px; }
  body.menu-dar .sidenav a,
  body.menu-dar .side-search { justify-content: center; padding-left: 0; padding-right: 0; gap: 0; }
  body.menu-dar .side-sep + a { margin-top: 10px; }
  body.menu-dar .side-cikis { padding-left: 0; padding-right: 0; }
  body.menu-dar .side-imza a { font-size: 0; }
  body.menu-dar .side-imza .side-kalp { font-size: .9rem; }
  /* Hızlı Tablo tam ekranında düğme de gizlenir */
  body.hz-tam .side-toggle { display: none !important; }
}
.sn-tm b { background: rgba(255,255,255,.25); border-radius: 4px; padding: 0 5px; font-size: .72rem; }

.tm-aktif-kart { border: 2px solid var(--primary); background: var(--primary-light); }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.tm-kutu {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 14px 8px; cursor: pointer; color: var(--text); transition: .12s; user-select: none;
}
.tm-kutu:hover { border-color: var(--primary); }
.tm-kutu input { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.tm-kutu-secili { background: var(--primary-light); border-color: var(--primary); }
.tm-kutu-secili .tm-no { color: var(--primary); }
.tm-btn {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 8px; cursor: pointer; color: var(--text); transition: .12s;
}
.tm-btn:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.tm-btn-aktif { background: var(--primary); color: #fff; border-color: var(--primary); }
.tm-no { font-size: 1.7rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.tm-ad { font-size: .72rem; font-weight: 600; opacity: .8; }
.tm-adet { font-size: .72rem; opacity: .65; margin-top: 3px; }
@media print { .tm-serit { display: none } }
.tm-degis {
  background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.45);
  border-radius: 6px; padding: 5px 12px; font-size: .8rem; font-weight: 700; text-decoration: none;
}
.tm-degis:hover { background: rgba(255,255,255,.3); }


/* Referans arama kutusu (üye listesi filtresi) */
.ref-ara { position: relative; }
.ref-ara input { padding-right: 30px; }
.ref-temizle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted); font-size: .95rem; cursor: pointer;
  padding: 4px 6px; line-height: 1;
}
.ref-temizle:hover { color: var(--text); }
.ref-liste {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: 280px; overflow-y: auto; padding: 4px;
}
.ref-satir {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; background: none; border: 0; border-radius: 6px; cursor: pointer;
  padding: 8px 10px; font-size: .86rem; color: var(--text); text-align: left; min-height: 36px;
}
.ref-satir:hover, .ref-satir-acik { background: var(--primary-light); color: var(--primary); }
.ref-satir b { font-size: .74rem; font-weight: 700; color: var(--muted); flex: none; }
.ref-satir:hover b, .ref-satir-acik b { color: var(--primary); }
.ref-not { font-size: .74rem; color: var(--muted); padding: 6px 10px; }
.ref-kisayol { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 5px; font-size: .76rem; }
.ref-kisayol a { color: var(--muted); text-decoration: none; }
.ref-kisayol a:hover { color: var(--primary); text-decoration: underline; }
.ref-etkin { color: var(--primary) !important; font-weight: 700; }

/* ---------- Hızlı Tablo (Excel benzeri düzenleme) ---------- */
/* --hz-olcek: bu sayfaya özel yazı büyütme/küçültme çarpanı (toplantıda TV'ye
   yansıtmak için). Sayfa açılırken localStorage'dan okunup :root'a yazılır;
   aşağıdaki tüm ölçüler ona göre hesaplanır. Varsayılan 1 = normal boyut. */
:root { --hz-olcek: 1; }
.hizli-sar { max-height: calc(100vh - 260px); overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); }
/* Sütun genişlikleri sabit; sığmayan metin KIRPILMAZ, alt satıra sarar.
   Dar ekranda tablo yatay kayar (.hizli-sar overflow:auto). */
table.hizli-tablo { font-size: calc(.84rem * var(--hz-olcek)); table-layout: fixed; min-width: calc(1140px * var(--hz-olcek)); }
.hizli-tablo thead th { font-size: calc(.74rem * var(--hz-olcek)); }
.hizli-tablo thead th { position: sticky; top: 0; z-index: 5; background: var(--menu); color: #fff; }
.hizli-tablo td {
  padding: 5px 8px; vertical-align: top;
  white-space: normal; overflow-wrap: anywhere; word-break: normal;
}
/* Satır yükseklikleri içeriğe göre değiştiği için göz takibini kolaylaştıran şerit + belirgin vurgu */
.hizli-tablo tbody tr:nth-child(even) td { background: #fafafb; }
.hizli-tablo tbody tr:hover td { background: var(--primary-light); }
/* Firma no ve grup numarası asla iki satıra bölünmez */
.hizli-tablo td.num { white-space: nowrap; }
/* Rozetler bu tabloda sarabilsin (.badge kuralındaki nowrap'i ez) */
.hizli-tablo .badge { white-space: normal; }
.hz-unvan { line-height: 1.35; }
.hz-unvan a { font-weight: 600; color: var(--text); text-decoration: none; }
.hz-unvan a:hover { color: var(--primary); text-decoration: underline; }
.hz-rozet { margin-left: 6px; font-size: calc(.62rem * var(--hz-olcek)); }
.hz-kucuk { font-size: calc(.78rem * var(--hz-olcek)); color: var(--muted); line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }

.hz-oy, .hz-ref {
  width: 100%; min-height: calc(30px * var(--hz-olcek)); padding: 3px 6px;
  font-size: calc(.8rem * var(--hz-olcek));
  border: 1px solid transparent; border-radius: 5px; background: transparent; color: inherit;
}
/* Referans alanı çok satırlı: uzun isim listeleri kesilmeden sarar, kutu içeriğe göre uzar */
.hz-ref {
  display: block; font-family: inherit; line-height: 1.35;
  resize: none; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere;
}
.hz-ref:hover, .hz-oy:hover { border-color: var(--border); background: #fff; }
.hz-ref:focus, .hz-oy:focus { border-color: var(--primary); background: #fff; outline: none; box-shadow: 0 0 0 2px var(--primary-light); }
.hz-oy { font-weight: 700; cursor: pointer; }
.hz-oy.vs-bizde { color: #15803d; } .hz-oy.vs-ortada { color: #a16207; }
.hz-oy.vs-karsi { color: #dc2626; } .hz-oy.vs-kurumsal { color: #2563eb; }
.hz-oy.vs-oy-yok { color: #be185d; } .hz-oy.vs-askida { color: #ea580c; }
/* Referans hücresi: aramalı açılır liste + "yeni ekle" düğmesi */
.hz-ref-hucre { display: flex; align-items: flex-start; gap: 2px; }
.hz-ref-hucre .hz-ref { flex: 1 1 auto; min-width: 0; }
.hz-ekle {
  flex: none; width: calc(24px * var(--hz-olcek)); height: calc(24px * var(--hz-olcek));
  padding: 0; line-height: 1;
  border: 1px solid var(--border); border-radius: 5px; background: #fff;
  color: var(--muted); font-size: calc(1rem * var(--hz-olcek)); font-weight: 700; cursor: pointer;
  opacity: 0; transition: opacity .12s;
}
.hz-ref-hucre:hover .hz-ekle, .hz-ref:focus + .hz-ekle { opacity: 1; }
.hz-ekle:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.hz-oneri {
  position: fixed; z-index: 120;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.16); max-height: 260px; overflow-y: auto; padding: 4px;
}
.hz-oneri .ref-satir { min-height: 32px; padding: 6px 10px; font-size: calc(.82rem * var(--hz-olcek)); }
.ref-satir-yeni { color: var(--primary); font-weight: 700; }
/* Öneri satırlarında uzun isimler de tam görünsün */
.ref-satir { white-space: normal; overflow-wrap: anywhere; }
.ref-satir > span { min-width: 0; flex: 1 1 auto; }
.hz-oneri .ref-satir { align-items: flex-start; }

.hz-bekliyor { opacity: .5; }
.hz-tamam { border-color: #15803d !important; background: var(--green-soft) !important; }
.hz-hata { border-color: var(--red) !important; background: var(--red-soft) !important; }

.tbl-kaydet {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  padding: 9px 16px; border-radius: 999px; font-size: .84rem; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.tbl-ok { background: var(--green); color: #fff; }
.tbl-hata { background: var(--red); color: #fff; }
@media (max-width: 900px) { .hizli-sar { max-height: calc(100vh - 300px); } table.hizli-tablo { font-size: calc(.8rem * var(--hz-olcek)); } }
@media (hover: none) { .hz-ekle { opacity: 1; } }

/* Hızlı Tablo özet kartları — süzgeç çubuğu gibi çalışır */
.hz-kpi { margin-bottom: 12px; }
/* Kartlar eşit yükseklikte dursun: sayı satırı altta hizalanır */
.hz-kpi .kpi { display: flex; flex-direction: column; }
.hz-kpi .kpi-value { margin-top: auto; }
.hz-kpi .kpi { padding: 10px 12px; }
.hz-kpi .kpi-value { font-size: 1.5rem; }
.hz-kpi .kpi-etkin { border-color: var(--kc); box-shadow: 0 0 0 2px var(--kcs); }
@media (max-width: 700px) { .hz-kpi .kpi-value { font-size: 1.25rem; } }

/* Üye detayında tek tıkla ziyaret kutusu (Durum notunun altında) */
.detay-ziyaret { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.dz-bas { font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.dz-icerik { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dz-not { margin-top: 8px; line-height: 1.5; }

/* Yumuşak yükleme sırasında içerik hafifçe soluklaşır */
body.hz-yukleniyor main { opacity: .55; transition: opacity .15s; pointer-events: none; }

/* Hızlı Tablo tam ekran modu — sol menü ve alt gezinme gizlenir */
body.hz-tam .sidebar,
body.hz-tam .topbar,
body.hz-tam .bottomnav { display: none !important; }
body.hz-tam { padding-left: 0 !important; padding-bottom: 0 !important; }
body.hz-tam .container { padding: 10px 14px 0; }
body.hz-tam .hz-kpi { margin-bottom: 8px; }
body.hz-tam .hz-kpi .kpi { padding: 8px 10px; }
body.hz-tam .hz-kpi .kpi-value { font-size: 1.3rem; }
body.hz-tam .hz-yardim { display: none; }
/* Tabloya kalan bütün dikey alan verilir (menü ve yardım gizli olduğu için
   normal moddan daha fazla yer kalır) */
body.hz-tam .hizli-sar { max-height: calc(100vh - 215px); }
@media (max-width: 900px) { body.hz-tam .hizli-sar { max-height: calc(100vh - 235px); } }

/* Sütun süzgecinde çoklu seçim kutusu */
.hz-cok { position: relative; }
.hz-cok-dug {
  width: 100%; min-height: calc(26px * var(--hz-olcek)); padding: 2px 6px;
  font-size: calc(.74rem * var(--hz-olcek)); font-family: inherit; font-weight: 500;
  border: 1px solid var(--border); border-radius: 5px; background: #fff; color: var(--text);
  cursor: pointer; text-align: left; text-transform: none; letter-spacing: normal;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hz-cok-dug::after { content: ' ▾'; color: var(--muted); }
.hz-cok-dug:hover { border-color: var(--primary); }
.hz-cok-dolu { border-color: var(--primary); color: var(--primary); font-weight: 700; }
.hz-cok-panel {
  position: fixed; z-index: 130; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.16); padding: 6px;
}
.hz-cok-panel label {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 8px;
  border-radius: 6px; font-size: .82rem; font-weight: 500; cursor: pointer;
  text-transform: none; letter-spacing: normal; white-space: normal;
}
.hz-cok-panel label:hover { background: var(--primary-light); }
.hz-cok-panel input[type=checkbox] { width: 16px; height: 16px; flex: none; margin: 0; accent-color: var(--primary); }
.hz-cok-alt { display: flex; gap: 6px; padding: 6px 4px 2px; border-top: 1px solid var(--border); margin-top: 4px; }
/* Aramalı referans paneli: arama kutusu ve "Tümünü seç" üstte sabit, liste kayar */
.hz-cok-ref .hz-cok-panel { display: flex; flex-direction: column; padding: 0; }
.hz-cok-ref .hz-cok-panel[hidden] { display: none; }
.hz-cok-ust { padding: 8px 8px 6px; border-bottom: 1px solid var(--border); flex: none; }
.hz-cok-ara {
  width: 100%; padding: 7px 9px; font-size: .84rem; font-family: inherit;
  border: 1px solid var(--border); border-radius: 6px; text-transform: none; letter-spacing: normal;
}
.hz-cok-ara:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px var(--primary-light); }
.hz-cok-ozet { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.hz-cok-hepsi {
  border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--primary);
  font-size: .74rem; font-weight: 700; padding: 3px 10px; cursor: pointer;
}
.hz-cok-hepsi:hover { background: var(--primary-light); }
.hz-cok-sayac { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hz-cok-liste { overflow-y: auto; flex: 1 1 auto; padding: 4px 6px; }
.hz-cok-liste label b { margin-left: auto; font-size: .72rem; color: var(--muted); font-weight: 700; flex: none; }
.hz-cok-liste label span { min-width: 0; overflow-wrap: anywhere; }
.hz-cok-ref .hz-cok-alt { flex: none; padding: 6px 8px 8px; margin: 0; }
.hz-cok-alt button {
  flex: 1; padding: 6px 8px; font-size: .78rem; font-weight: 700; cursor: pointer;
  border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text);
}
.hz-cok-uygula { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.hz-cok-alt button:hover { filter: brightness(.96); }
.btn-temizle { border-color: #fecaca; color: #b91c1c; }
.btn-temizle:hover { background: #fee2e2; }

/* Sütun süzgeci satırı — başlıkların hemen altında yapışık durur */
.hizli-tablo thead tr.hz-suz th {
  top: var(--hz-bas, 34px); background: #f8fafc; color: var(--text);
  padding: 4px 5px; border-bottom: 1px solid var(--border); z-index: 4;
}
.hz-suz input, .hz-suz select {
  width: 100%; min-height: calc(26px * var(--hz-olcek)); padding: 2px 5px;
  font-size: calc(.74rem * var(--hz-olcek)); font-weight: 500; font-family: inherit;
  border: 1px solid var(--border); border-radius: 5px; background: #fff; color: var(--text);
  text-transform: none; letter-spacing: normal;
}
.hz-suz select { cursor: pointer; }
.hz-suz input:focus, .hz-suz select:focus {
  border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px var(--primary-light);
}
/* Süzgeci dolu olan sütun belli olsun */
.hz-suz input:not(:placeholder-shown), .hz-suz select:valid:not([value=""]) { border-color: var(--primary); }

/* Hızlı Tablo yardım metni: normalde katlı durur, ekranı doldurmaz */
.hz-yardim { margin: 0 0 12px; font-size: .82rem; color: var(--muted); }
.hz-yardim > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-weight: 600; padding: 4px 0;
}
.hz-yardim > summary::-webkit-details-marker { display: none; }
.hz-yardim > summary::before { content: '?'; display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border); font-size: .7rem; font-weight: 800; }
.hz-yardim > summary:hover { color: var(--primary); }
.hz-yardim[open] > summary { color: var(--text); }
.hz-yardim > div { padding: 8px 0 2px; line-height: 1.55; max-width: 90ch; }

/* Tek tıkla ziyaret düğmesi (üye listesi + Hızlı Tablo) */
.hz-ziy {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff;
  color: var(--muted); cursor: pointer; white-space: nowrap;
  padding: 0 calc(10px * var(--hz-olcek)); min-height: calc(28px * var(--hz-olcek));
  font-size: calc(.74rem * var(--hz-olcek)); font-weight: 700; line-height: 1;
  transition: background .12s, color .12s, border-color .12s;
}
.hz-ziy .hz-ziy-im { font-size: 1.05em; opacity: .55; }
.hz-ziy:hover:not(:disabled) { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.hz-ziy:hover .hz-ziy-im { opacity: 1; }
.hz-ziy-var { border-color: #86efac; background: var(--green-soft); color: var(--green); }
.hz-ziy-var .hz-ziy-im { opacity: 1; }
.hz-ziy-yeni { animation: hzZiyParla .6s ease; }
@keyframes hzZiyParla { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
/* Üye listesi kartında sağ üstte durur */
.firm-card-sar { position: relative; }
.firm-card-sar .hz-ziy { position: absolute; top: 10px; right: 12px; z-index: 2; }
.firm-card-ziy { padding-right: 116px; }
@media (max-width: 520px) {
  .firm-card-sar .hz-ziy { top: 8px; right: 8px; }
  .firm-card-ziy { padding-right: 104px; }
}
.tbl-bilgi { background: var(--menu); color: #fff; }

/* Yazı boyutu kontrolü (yalnızca Hızlı Tablo) */
.hz-zoom { display: inline-flex; align-items: stretch; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.hz-zoom button {
  border: 0; background: none; cursor: pointer; color: var(--text);
  font-weight: 700; font-size: .82rem; padding: 0 11px; min-height: 34px; line-height: 1;
}
.hz-zoom button + button { border-left: 1px solid var(--border); }
.hz-zoom button:hover:not(:disabled) { background: var(--primary-light); color: var(--primary); }
.hz-zoom button:disabled { color: #cbd5e1; cursor: default; }
.hz-zoom .hz-zoom-deger { min-width: 56px; font-variant-numeric: tabular-nums; color: var(--muted); }
.hz-zoom .hz-zoom-deger.hz-zoom-degisik { color: var(--primary); }

/* Yazdırma: ekrandaki kaydırma/karartma kutuları kâğıtta metni kesmesin */
@media print {
  .hizli-sar { max-height: none; overflow: visible; border: 0; }
  table.hizli-tablo { min-width: 0; table-layout: auto; font-size: 9pt; }
  .hizli-tablo tbody tr:nth-child(even) td { background: none; }
  .hz-ekle, .hz-oneri, .tbl-kaydet { display: none !important; }
  .hz-ref { display: none !important; }
  .hz-ref-basili { display: block !important; }
  .hizli-tablo tr, .hizli-tablo td { break-inside: avoid; }
}
/* Referansın yazdırma karşılığı: ekranda gizli, kâğıtta tam metin */
.hz-ref-basili { display: none; }

/* ---------- Kayıt Geçmişi: okunur "Ne oldu?" sütunu ---------- */
.kg-tablo td { vertical-align: top; }
.kg-tur { font-size: .72rem; color: var(--muted); margin-top: 3px; }
.kg-ne { min-width: 260px; }
.kg-firma { font-weight: 700; font-size: .88rem; margin-bottom: 2px; }
.kg-firma a { color: var(--text); }
.kg-firma a:hover { color: var(--primary); text-decoration: underline; }
.kg-metin { font-size: .86rem; line-height: 1.45; }
.kg-metin strong { font-weight: 700; }
.kg-git { font-size: .78rem; font-weight: 700; white-space: nowrap; margin-left: 4px; }

/* ---------- Ziyaret Planı ---------- */
.zp-bolum { font-size: 1rem; margin: 20px 0 10px; }
.zp-bolum .muted { font-weight: 500; }
.zp-kartlar { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .zp-kartlar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .zp-kartlar { grid-template-columns: repeat(3, 1fr); } }
.zp-kart {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 13px 15px; box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; transition: transform .1s, box-shadow .1s;
}
.zp-kart:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.zp-kart-bitti { border-left-color: var(--green); }
.zp-kart-gec { border-left-color: var(--orange); }
.zp-kart-ust { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.zp-kart-tarih { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.zp-kart-ad { font-size: 1rem; line-height: 1.3; }
.zp-kart-kim, .zp-kart-not { font-size: .8rem; color: var(--muted); }
.zp-kart-not { font-style: italic; }
.zp-kart-say { font-size: .82rem; }
.zp-ilerleme { display: block; height: 7px; border-radius: 99px; background: var(--gray-soft); overflow: hidden; margin-top: 4px; }
.zp-ilerleme > span { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .35s ease; }
.zp-ilerleme-buyuk { height: 12px; margin-top: 10px; }
.zp-bos-kart { text-align: center; padding: 34px 16px; }
.zp-bos-kart strong { display: block; font-size: 1.05rem; margin-top: 8px; }
.zp-bos-ikon { color: var(--primary); }

/* Yeni plan formu */
.zp-tarih-cip { margin-top: 6px; }
.zp-tarih-cip .chip { font-family: inherit; }
.zp-alt-cubuk {
  position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 -2px 12px rgba(0,0,0,.08); padding: 10px 14px; margin-top: 12px;
}
@media (min-width: 900px) { .zp-alt-cubuk { bottom: 12px; } }
.zp-alt-bilgi { font-size: .92rem; }

/* Üye seçici */
.zp-suz { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; align-items: center; margin-bottom: 10px; }
.zp-suz .zp-ara { grid-column: 1 / -1; }
@media (min-width: 1250px) { .zp-suz { grid-template-columns: 2fr 1fr 1fr 1fr auto; } .zp-suz .zp-ara { grid-column: auto; } }
.zp-suz input, .zp-suz select { margin-top: 0; }
.zp-onay { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; white-space: nowrap; cursor: pointer; }
.zp-onay input { width: 18px; height: 18px; accent-color: var(--primary); }
.zp-iki { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 1200px) { .zp-iki { grid-template-columns: 1fr 1fr; } }
.zp-kutu { border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; }
.zp-kutu-bas {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--gray-soft);
  border-radius: var(--radius) var(--radius) 0 0; min-height: 50px; flex-wrap: wrap;
}
.zp-say { display: inline-block; min-width: 24px; text-align: center; background: var(--primary); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: .78rem; margin-left: 4px; }
.zp-sonuc, .zp-sepet { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.zp-sepet { counter-reset: zps; }
.zp-satir-s { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--border); cursor: pointer; }
.zp-satir-s:last-child { border-bottom: 0; }
.zp-sonuc .zp-satir-s:hover { background: var(--green-soft); }
.zp-sepet .zp-satir-s { cursor: default; }
.zp-sepet .zp-satir-s::before {
  counter-increment: zps; content: counter(zps);
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-light); color: var(--primary);
  font-size: .74rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.zp-ad { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zp-ad strong { font-size: .86rem; line-height: 1.3; }
.zp-alt { font-size: .76rem; color: var(--muted); }
.zp-pasif { opacity: .55; cursor: default; }
.zp-pasif:hover { background: none !important; }
.zp-etiket { font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.zp-ekle, .zp-mini {
  flex: none; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer; color: var(--green); font-family: inherit;
}
.zp-ekle:hover { background: var(--green); border-color: var(--green); color: #fff; }
.zp-mini { width: 30px; height: 30px; font-size: .85rem; color: var(--muted); }
.zp-mini:hover:not(:disabled) { background: var(--gray-soft); color: var(--text); }
.zp-mini:disabled { opacity: .3; cursor: default; }
.zp-mini-sil:hover:not(:disabled) { background: var(--red-soft); color: var(--red); border-color: #fecaca; }
.zp-bos { padding: 14px; margin: 0; text-align: center; }

/* Plan detayı */
.zp-geri { display: inline-block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.zp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 8px 0; font-size: .86rem; color: var(--muted); }
.zp-meta span { display: inline-flex; align-items: center; gap: 5px; }
.zp-meta strong { color: var(--text); }
.zp-aciklama { background: var(--yellow-soft); border-radius: 8px; padding: 8px 12px; font-size: .88rem; margin: 6px 0 10px; }
.zp-ozet-ust { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.zp-ozet-sayi { font-size: 1.05rem; }
.zp-ozet-sayi b { font-size: 1.6rem; color: var(--green); }
.zp-hepsi-tamam { color: var(--green); font-weight: 700; margin: 8px 0 0; }
@keyframes zpParla { 0%, 100% { box-shadow: 0 0 0 0 rgba(21,128,61,.45); } 50% { box-shadow: 0 0 0 7px rgba(21,128,61,0); } }
.zp-parla { animation: zpParla 1.6s ease-in-out infinite; }
.zp-suzgec { margin: 4px 0 8px; }
.zp-suzgec .chip { font-family: inherit; }
.zp-uyeler { display: flex; flex-direction: column; gap: 8px; }
.zp-uye {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: var(--shadow); transition: background .25s, border-color .25s;
}
.zp-edildi { background: #f0fdf4; border-color: #bbf7d0; }
.zp-yeni { animation: zpYeni 1.2s ease; }
@keyframes zpYeni { 0% { background: #bbf7d0; } 100% { background: #f0fdf4; } }
.zp-sira {
  flex: none; width: 32px; height: 32px; border-radius: 50%; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-soft); color: var(--muted); font-weight: 800; font-size: .85rem;
}
.zp-sira-tik { display: none; }
.zp-edildi .zp-sira { background: var(--green); color: #fff; }
.zp-edildi .zp-sira-no { display: none; }
.zp-edildi .zp-sira-tik { display: inline; }
.zp-uye-govde { flex: 1; min-width: 0; }
.zp-uye-ad { font-weight: 700; font-size: .98rem; color: var(--text); line-height: 1.3; }
.zp-uye-ad:hover { color: var(--primary); }
.zp-uye .zp-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; }
.zp-adres { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.zp-tel { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; font-size: .82rem; }
.zp-tel a { font-weight: 600; white-space: nowrap; }
.zp-isaret-bilgi { font-size: .78rem; font-weight: 700; color: var(--green); margin-top: 5px; }
.zp-uye-dug { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.zp-isaretle {
  min-height: var(--tap); padding: 0 16px; border-radius: 10px; border: 2px solid var(--green);
  background: #fff; color: var(--green); font-weight: 800; font-size: .9rem; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.zp-isaretle:hover:not(:disabled) { background: var(--green); color: #fff; }
.zp-isaretle.zp-bekliyor { opacity: .6; cursor: progress; }
.zp-geri-al, .zp-cikar {
  border: 1px solid var(--border); background: #fff; color: var(--muted); border-radius: 8px;
  padding: 5px 12px; font-size: .78rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.zp-geri-al:hover { color: var(--text); background: var(--gray-soft); }
.zp-cikar:hover { color: var(--red); background: var(--red-soft); border-color: #fecaca; }
.zp-kagit { display: none; }
.zp-ekle-kutu { margin-top: 14px; }
.zp-ekle-kutu > summary { cursor: pointer; list-style: none; color: var(--primary); }
.zp-ekle-kutu > summary::-webkit-details-marker { display: none; }
.zp-ekle-kutu[open] > summary { margin-bottom: 12px; }
@media (max-width: 599px) {
  .zp-uye { flex-wrap: wrap; }
  .zp-uye-dug { flex-basis: 100%; flex-direction: row; justify-content: flex-end; }
  .zp-isaretle { flex: 1; }
}
@media print {
  .sidebar, .side-toggle { display: none !important; }
  body, body.menu-dar { padding-left: 0 !important; }
  .zp-ozet .zp-ilerleme, .zp-hepsi-tamam { display: none !important; }
  .zp-uye { box-shadow: none; break-inside: avoid; padding: 6px 0; border: 0; border-bottom: 1px solid #ccc; border-radius: 0; background: none !important; }
  .zp-uye[hidden] { display: flex !important; }
  .zp-kagit { display: block; font-size: 20pt; line-height: 1; flex: none; }
  .zp-uye-ad { color: #000; }
}
