:root {
  --navy: #1a3a5c; --navy-d: #122a44; --gold: #c9a227;
  --bg: #f3f5f8; --card: #ffffff; --line: #e3e8ef;
  --text: #1d2733; --muted: #67737f;
  --red: #d33c3c; --orange: #e08a1e; --green: #2e9e5b; --blue: #2a6fb0; --purple: #7a4fb5;
  --wa: #25d366;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; }
a { color: inherit; text-decoration: none; }

.app { display: flex; min-height: 100vh; }

/* ---- Kenar menü ---- */
.sidebar { width: 240px; background: var(--navy); color: #dbe4ee; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; overflow-y: auto; transition: transform .2s; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; font-weight: 700; font-size: 18px; color: #fff; }
.brand.center { justify-content: center; margin-bottom: 12px; color: var(--navy); }
.brand-logo { background: var(--gold); color: var(--navy-d); width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex: none; }
.sidebar nav { flex: 1; padding: 6px 8px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; margin: 2px 0; font-size: 14px; }
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.active { background: var(--gold); color: var(--navy-d); font-weight: 600; }
.nav-ico { width: 20px; text-align: center; }
.sidebar-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.user-chip { font-size: 13px; }
.user-chip small { color: #9fb2c6; }

.main { flex: 1; margin-left: 240px; padding-bottom: 90px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.topbar h1 { font-size: 19px; margin: 0; flex: 1; }
.topbar-date { color: var(--muted); font-size: 13px; }
.menu-btn { display: none; background: none; border: none; font-size: 22px; cursor: pointer; padding: 4px 8px; }
.content { padding: 18px 22px; max-width: 1100px; }

/* ---- Kartlar ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.card h3 { margin: 0 0 10px; font-size: 16px; }
.card-list .row-card, .row-card { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.row-main { min-width: 0; }
.row-side { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.price.big { font-size: 20px; }
.strong { font-weight: 600; }
.link { color: var(--blue); }
.link:hover { text-decoration: underline; }
.muted-link { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 14px; }
.center { text-align: center; }

/* ---- Görev kartı ---- */
.task-card.overdue, .row-card.overdue { border-left: 4px solid var(--red); }
.task-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-icon { font-size: 18px; }
.task-title { font-weight: 600; flex: 1; min-width: 150px; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; margin: 8px 0; align-items: center; }
.task-note { width: 100%; }
.task-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.inline { display: inline; }

.job-section { margin-bottom: 22px; }
.job-section h2 { font-size: 16px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.job-section .count { background: var(--line); border-radius: 20px; padding: 1px 9px; font-size: 13px; font-weight: 600; }
.sec-overdue h2 { color: var(--red); }
.sec-passive h2 { color: var(--orange); }
.counter { font-weight: 400; color: var(--muted); }

/* ---- Rozetler / butonlar ---- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-red { background: #fbe3e3; color: var(--red); }
.b-orange { background: #fcefd9; color: #a8650a; }
.b-green { background: #def3e5; color: #1d7a42; }
.b-blue { background: #e0ecf7; color: var(--blue); }
.b-purple { background: #ece2f8; color: var(--purple); }
.b-gray { background: #e9edf1; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 9px 14px; font-size: 14px; cursor: pointer; min-height: 38px; font-family: inherit; }
.btn:hover { background: #f5f7fa; }
.btn-sm { padding: 6px 11px; min-height: 32px; font-size: 13px; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-d); }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: #25824a; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #b32f2f; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; font-weight: 600; }
.btn-wa:hover { background: #1fb858; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- Formlar ---- */
.input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 15px; font-family: inherit; background: #fff; min-height: 40px; }
.input:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
textarea.input { min-height: auto; resize: vertical; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
label .input, label select, label div { margin-top: 4px; font-weight: 400; color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .span2 { grid-column: span 2; }
.check { display: flex; align-items: center; gap: 7px; font-weight: 400; color: var(--text); font-size: 14px; }
.check.inline { display: inline-flex; margin-right: 14px; }
.check input { width: 18px; height: 18px; }
fieldset { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
legend { font-size: 13px; color: var(--muted); padding: 0 6px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form .input { width: auto; flex: 1; min-width: 140px; }
.inline-input { width: auto; display: inline-block; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: flex-end; }
.filter-bar .input { width: auto; min-width: 130px; }
.msg-edit { font-size: 15px; line-height: 1.5; }
.temp-row { display: flex; flex-wrap: wrap; gap: 4px; }
.tpl-form { margin-bottom: 12px; }
.tpl-head { margin-bottom: 6px; }

/* ---- Mesaj şablonu paneli ---- */
.tpl-card { border-left: 4px solid var(--gold); }
.var-bar { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 10px 0 6px; }
.var-btn { background: #f3eeda; border-color: #e6d9a8; color: #7a5e10; font-size: 12px; padding: 4px 9px; min-height: 28px; }
.var-btn:hover { background: #ece0bc; }
.tpl-body { font-size: 14px; line-height: 1.5; font-family: inherit; }
.tpl-preview-wrap { margin: 10px 0; }
.wa-preview { background: #d9fdd3; border-radius: 10px 10px 10px 2px; padding: 10px 13px; margin-top: 5px; white-space: pre-wrap; font-size: 14px; line-height: 1.5; max-width: 480px; box-shadow: 0 1px 1px rgba(0,0,0,.08); color: #111; }
details summary { cursor: pointer; padding: 4px 0; }
details[open] summary { margin-bottom: 8px; }

/* ---- Tablolar ---- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 10px 12px; background: #f6f8fa; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }

/* ---- Sekmeler (CSS-only) ---- */
.tabs { margin-top: 6px; }
.tabs > input { display: none; }
.tabs > label { display: inline-block; padding: 9px 16px; cursor: pointer; border: 1px solid var(--line); border-bottom: none; border-radius: 9px 9px 0 0; background: #eef1f5; margin-right: 4px; margin-bottom: 0; font-size: 14px; color: var(--muted); }
.tabs .tab-content { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 16px; }
#tab1:checked ~ label[for="tab1"], #tab2:checked ~ label[for="tab2"], #tab3:checked ~ label[for="tab3"], #tab4:checked ~ label[for="tab4"] { background: var(--card); color: var(--text); font-weight: 600; border-bottom: 1px solid var(--card); position: relative; z-index: 1; }
#tab1:checked ~ .tab1, #tab2:checked ~ .tab2, #tab3:checked ~ .tab3, #tab4:checked ~ .tab4 { display: block; }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.kv span { display: block; font-size: 12px; color: var(--muted); }
.kv b { font-size: 14px; }

/* ---- Etkileşim akışı ---- */
.act-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.act-row:last-child { border-bottom: none; }
.act-icon { font-size: 18px; flex: none; }
.act-msg { background: #f1f6ee; border-radius: 9px; padding: 8px 11px; margin: 6px 0; white-space: pre-wrap; font-size: 14px; }

/* ---- Dashboard ---- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.dash-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; transition: box-shadow .15s; }
.dash-box:hover { box-shadow: 0 3px 12px rgba(20,40,70,.12); }
.dash-num { font-size: 28px; font-weight: 800; color: var(--navy); }
.dash-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.bar-row { display: flex; align-items: center; gap: 8px; margin: 7px 0; }
.bar-label { width: 110px; font-size: 13px; color: var(--muted); flex: none; }
.bar { background: var(--navy); color: #fff; border-radius: 6px; padding: 4px 9px; font-size: 13px; font-weight: 600; min-width: 28px; }

/* ---- Sahibinden tarzı ilan tablosu ---- */
.listings-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lt-head, .lt-row {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) 80px 64px 130px 110px 130px;
  align-items: center; gap: 10px; padding: 8px 12px;
}
.lt-head { background: #f6f8fa; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; border-bottom: 1px solid var(--line); }
.lt-row { border-bottom: 1px solid var(--line); color: var(--text); transition: background .12s; }
.lt-row:last-child { border-bottom: none; }
.lt-row:hover { background: #fafbe9; }
.lt-thumb { width: 48px; height: 48px; border-radius: 8px; background: linear-gradient(135deg,#e8eef5,#d6e0ec); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.lt-title { min-width: 0; }
.lt-title b { display: block; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lt-title small { color: var(--muted); font-size: 12px; }
.lt-m2, .lt-oda { text-align: center; font-size: 14px; }
.lt-price { font-weight: 700; color: #c0392b; font-size: 14px; text-align: right; }
.lt-exp { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lt-loc { font-size: 13px; }
.lt-loc small { display: block; color: var(--muted); }
.exp-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.exp-red { background: #fbe3e3; color: var(--red); }
.exp-orange { background: #fcefd9; color: #a8650a; }
.exp-green { background: #def3e5; color: #1d7a42; }
.exp-over { background: #4a4a4a; color: #fff; }
.exp-passive { background: var(--red); color: #fff; padding: 2px 9px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.exp-date { font-size: 11px; color: var(--muted); }
.exp-none { color: var(--line); }

@media (max-width: 900px) {
  .lt-head { display: none; }
  .lt-row {
    grid-template-columns: 48px 1fr auto;
    grid-template-areas: "img title title" "img meta price";
    row-gap: 4px; padding: 12px;
  }
  .lt-img { grid-area: img; }
  .lt-title { grid-area: title; }
  .lt-price { grid-area: price; align-self: end; text-align: right; }
  .lt-m2, .lt-oda, .lt-exp, .lt-loc { grid-area: meta; text-align: left; font-size: 12px; color: var(--muted); flex-direction: row; }
  /* mobilde m²/oda/konumu tek satıra etiketle göster, düşmesine kalanı öne çıkar */
  .lt-m2::before { content: attr(data-label) " "; }
  .lt-oda { display: none; }
  .lt-loc { display: none; }
  .lt-m2, .lt-exp { display: inline-flex; gap: 4px; margin-right: 10px; }
  .lt-exp::before { content: "⏳ "; }
}

/* ---- Kullanıcı düzenleme satırı ---- */
.user-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fbfcfd; }
.user-row-head { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.user-row .task-actions { margin-top: 10px; }

/* ---- Diğer ---- */
.flash { padding: 11px 16px; margin: 12px 22px 0; border-radius: 10px; font-size: 14px; }
.flash.ok { background: #def3e5; color: #1d7a42; }
.flash.err { background: #fbe3e3; color: var(--red); }
.flash.warn { background: #fcefd9; color: #a8650a; margin: 0 0 12px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-emoji { font-size: 44px; margin-bottom: 8px; }
.pagination { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 16px 0; color: var(--muted); font-size: 14px; }
.detail-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.detail-head h2 { margin: 0 0 6px; font-size: 19px; }
.detail-head .actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.counter-card { background: #e9f3e9; border-color: #cbe5cd; font-size: 15px; }

.dropdown { position: relative; display: inline-block; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 6px 18px rgba(0,0,0,.12); z-index: 20; min-width: 120px; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 9px 14px; font-size: 14px; }
.dropdown-menu a:hover { background: #f3f5f8; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 10px; font-weight: 600; }
.quick-item span { font-size: 30px; }

/* ---- Giriş ---- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--navy); }
.login-box { background: #fff; border-radius: 16px; padding: 30px 28px; width: 100%; max-width: 380px; margin: 16px; }
.login-box label { margin-top: 12px; }
.login-box .btn { margin-top: 18px; }
.login-box .flash { margin: 10px 0 0; }

/* ---- Mobil alt menü ---- */
.bottom-nav { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); width: 260px; }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 45; }
  .main { margin-left: 0; }
  .menu-btn { display: block; }
  .topbar-date { display: none; }
  .content { padding: 14px; }
  .form-grid, .grid-2 { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
  .table-wrap { font-size: 13px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line); z-index: 60; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px 6px; font-size: 11px; color: var(--muted); min-height: 44px; }
  .bottom-nav a span { font-size: 19px; }
  .bottom-nav a.active { color: var(--navy); font-weight: 700; }
  .bottom-nav .add-btn span { background: var(--gold); color: var(--navy-d); width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-top: -14px; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
  .row-card { flex-direction: column; }
  .row-side { flex-direction: row; align-items: center; }
}

/* Otomatik doldurulan alan vurgusu */
.input.auto-filled { background: #fffceb; border-color: #e9c84a; }

/* ===== Gelen Arama: taşınmaz talep formu (Faz 3 - Parça 1) ===== */
.field-block { margin-top: 4px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opt { position: relative; display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid var(--line);
  border-radius: 9px; cursor: pointer; font-size: 14px; background: #fff; user-select: none; transition: .12s; }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg-opt:hover { border-color: var(--navy); }
.seg-opt:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
.loc-block { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mah-wrap { display: block; margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #eef3f9; color: var(--navy);
  border: 1px solid #d6e2ef; border-radius: 16px; padding: 4px 6px 4px 12px; font-size: 13px; }
.chip-x { border: none; background: #d6e2ef; color: var(--navy); width: 18px; height: 18px; border-radius: 50%;
  cursor: pointer; line-height: 1; font-size: 14px; display: flex; align-items: center; justify-content: center; padding: 0; }
.chip-x:hover { background: var(--red); color: #fff; }
.detail-sec { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fafbfc; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.drow { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 10px; }
.dlabel { font-size: 14px; color: var(--text); }
@media (max-width: 640px) {
  .loc-grid { grid-template-columns: 1fr; }
  .drow { grid-template-columns: 120px 1fr; gap: 8px; }
  .dlabel { font-size: 13px; }
}

/* Sayfa üstü aksiyon butonları (örn. Excel İçe Aktar) */
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* Merak Edilen Portföy (ilk kez pasif görülen ilan) — pembe vurgu */
.badge.b-pink { background: #fce4ef; color: #b3206b; }
.lt-row--interesting { background: #fdeef5; }
.lt-row--interesting:hover { background: #fbe0ec; }
.lt-row--interesting .lt-title b::after { content: ''; }

/* İçe aktarma sonuç özeti */
.import-summary { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.sum-row:last-child { border-bottom: none; }
.sum-label { color: var(--text); }
.sum-val { font-weight: 700; font-size: 18px; color: var(--navy); }
.sum-big { background: #f3f7fc; }
.sum-big .sum-val { font-size: 24px; color: var(--green); }
.sum-note { padding: 8px 14px; background: #fff8ec; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }

/* İçe aktarma: fiyat değişim oku (eski → yeni arasında) */
.price-change { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-arrow { font-size: 14px; line-height: 1; }
.price-up { color: var(--green); }
.price-down { color: var(--red); }

/* Pasiften aktife dönen (açık mavi) + lejant */
.badge.b-cyan { background: #d8eefb; color: #156a9e; }
.lt-row--reactivated { background: #eef7fd; }
.lt-row--reactivated:hover { background: #e1f0fa; }
.legend { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; color: var(--muted); font-size: 13px; line-height: 1.7; }
.legend-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; margin-right: 4px; border: 1px solid rgba(0,0,0,.08); }
.legend-pink { background: #fdeef5; }
.legend-blue { background: #eef7fd; }

/* Görev filtreleri (kişi + zaman chip'leri) */
.task-filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.ff-label { font-size: 12px; font-weight: 600; color: var(--muted); margin: 6px 0 4px; }
.fchips { display: flex; flex-wrap: wrap; gap: 7px; }
.fchip { display: inline-flex; align-items: center; padding: 6px 13px; border: 1px solid var(--line); border-radius: 16px;
  font-size: 13px; color: var(--text); background: #fff; text-decoration: none; transition: .12s; }
.fchip:hover { border-color: var(--navy); }
.fchip-on { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }

/* Bildirim zili (üst çubuk) */
.topbar-bell { position: relative; font-size: 20px; text-decoration: none; margin-left: 10px; line-height: 1; }
.bell-badge { position: absolute; top: -7px; right: -9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
/* Bildirim kartları */
.notif-card { border-left: 4px solid var(--orange); }
.notif-card.notif-overdue { border-left-color: var(--red); }
.notif-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.notif-when { color: var(--muted); font-size: 13px; font-weight: 400; }
.notif-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; margin: 8px 0; }
.notif-note { flex-basis: 100%; }
.notif-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dm-btn { display: block; width: 100%; text-align: left; border: none; background: none; padding: 8px 14px; cursor: pointer; font-size: 14px; color: var(--text); }
.dm-btn:hover { background: #f0f4f8; }

/* Revy ilan satırında takip durumu (ilk mesaj / arama / sonraki takip) */
.lt-follow { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lt-follow span { font-size: 12px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.fl-done { background: #e7f6ee; color: #1f7a45; }
.fl-next { background: #e8f1fb; color: #1d5fa0; }

/* Yönetici paneli — dönüşüm hunisi */
.funnel { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.funnel-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 20px; text-align: center; min-width: 130px; }
.funnel-step .fn { display: block; font-size: 28px; font-weight: 700; color: var(--navy); }
.funnel-step .fl { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.funnel-step .fl small { display: block; font-size: 11px; font-weight: 600; color: var(--orange); }
.fn-last { border-color: var(--navy); background: #eef3fa; }
.funnel-arrow { color: var(--muted); font-size: 18px; }
/* Aktivite bar chart */
.act-bar-chart { display: flex; align-items: flex-end; gap: 10px; padding: 12px 0; }
.act-bar-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.act-bar { width: 100%; background: var(--navy); border-radius: 4px 4px 0 0; min-height: 4px;
  display: flex; align-items: flex-start; justify-content: center; color: #fff; font-size: 11px; font-weight: 600; padding-top: 3px; }
.act-bar-label { font-size: 11px; color: var(--muted); }

/* ---- Portföy sonuçlandırma (Satıldı/Kiralandı) + arşiv özet kartı ---- */
.result-summary { border-radius: 12px; padding: 16px; margin-bottom: 14px; color: #fff; }
.result-summary.rs-done { background: linear-gradient(135deg, #15803d, #166534); }
.result-summary.rs-cancel { background: linear-gradient(135deg, #6b7280, #4b5563); }
.rs-top { display: flex; align-items: center; gap: 12px; }
.rs-icon { font-size: 30px; line-height: 1; }
.rs-title { font-size: 20px; font-weight: 700; }
.rs-sub { opacity: .9; font-size: 13px; margin-top: 2px; }
.rs-grid { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.rs-item .rs-lbl { font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .03em; }
.rs-item .rs-val { font-size: 17px; font-weight: 700; }
.rs-item .rs-val.muted { opacity: .75; font-weight: 600; }
.rs-note { margin-top: 12px; background: rgba(255,255,255,.15); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.result-summary .btn-ghost { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.3); }

.result-form summary { cursor: pointer; }
.result-row { text-decoration: none; border-left: 4px solid var(--green, #15803d); }
.result-row.rs-cancel { border-left-color: #9ca3af; }

/* ---- Portföy medya linkleri (Drive/Photos klasör linki — dosya sunucuda değil) ---- */
.media-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; align-items: end; }
.media-row > label { margin: 0; }
.media-link { display: flex; gap: 6px; align-items: center; }
.media-link .input { flex: 1; min-width: 0; }
@media (max-width: 640px) { .media-row { grid-template-columns: 1fr; } }

/* ---- Yer Göstermeler (B16) ---- */
.showing-card.sh-cancel { opacity: .65; }
.sh-result { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sh-result .input { flex: 1 1 140px; min-width: 0; }
.sh-result select.input { flex: 0 0 auto; }

/* ---- Form buton sırası ---- */
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 0 0 auto; }

/* ---- Revy ilan satırı durum kutucukları (Mesaj/Arama/Randevu/Takip/Olumsuz) ---- */
.lt-flags { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 7px; }
.flag-item { display: inline-flex; align-items: center; gap: 5px; }
.flag-box { width: 19px; height: 19px; border: 1.5px solid var(--line); border-radius: 5px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1;
  cursor: pointer; color: #fff; transition: background .12s, border-color .12s; user-select: none; }
.flag-box:hover { border-color: var(--navy); }
.flag-box.fb-on.fb-green { background: #16a34a; border-color: #16a34a; }
.flag-box.fb-on.fb-orange { background: #f59e0b; border-color: #f59e0b; border-radius: 50%; }
.flag-box.fb-on.fb-red { background: #dc2626; border-color: #dc2626; }
.flag-lbl { font-size: 11px; color: var(--muted); }

/* ---- Topbar geri butonu ---- */
.topbar-back { background: var(--card, #fff); border: 1px solid var(--line); color: var(--navy, #1e293b);
  width: 34px; height: 34px; border-radius: 8px; font-size: 19px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: background .12s; }
.topbar-back:hover { background: var(--bg, #f1f5f9); }

/* ---- Yayın tarihini elle düzelt ---- */
.pubdate-fix { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; width: 100%; }
.pubdate-fix summary { cursor: pointer; font-size: 13px; }
.pubdate-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.pubdate-form .input { width: auto; }

/* ---- Dürüst etiket (yeniden yayınlanmış / tarih belirsiz) + yayın tarihi onay tiki ---- */
.exp-badge.exp-unknown { background: #6b7280; color: #fff; }
.lt-verify { display: inline-block; margin-top: 5px; }
.lt-verify .flag-lbl { font-size: 10px; }
.dverify-row { display: flex; align-items: center; gap: 6px; }

/* ---- Yayın tarihi onay durumu: onaylı değil → kırmızı, onaylı → beyaz ---- */
.lt-exp.dv-no { background: #fee2e2; box-shadow: inset 4px 0 0 #dc2626; border-radius: 6px; }
.lt-exp.dv-no .exp-date { color: #991b1b; font-weight: 600; }
.lt-exp.dv-ok { background: #fff; }
.lt-exp.dv-ok .exp-date { color: #111827; }

/* ---- Potansiyel Portföyler (B13) pipeline ---- */
.pp-pipeline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.pp-stage-chip { display: flex; flex-direction: column; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 14px; min-width: 90px; }
.pp-stage-chip b { font-size: 20px; color: var(--navy); }
.pp-stage-lbl { font-size: 11px; color: var(--muted); text-align: center; }
.pp-arrow { color: var(--muted); font-size: 18px; }
.pp-card .pp-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pp-advance { display: flex; gap: 4px; }
.pp-advance .input { width: auto; font-size: 13px; padding: 4px 6px; }
@media (max-width: 640px) { .pp-card .pp-actions { width: 100%; margin-top: 8px; } }

/* ---- Tamamlanan görev etiketi (buton değil, durum) ---- */
.task-done-tag { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: #15803d; padding: 4px 6px; }

/* Sosyal medya ikon etiketi (Ayarlar) */
.soc-ico { display:inline-flex; vertical-align:middle; margin-right:5px; color:#64748b; }
.soc-ico svg { display:block; }
