:root {
  /* Novawood Panel ile aynı renkler */
  --bg: #f3f5f7; --card: #ffffff; --text: #1f3a52; --muted: #6b7f95; --line: #dbe4ec;
  --brand: #4a6683; --brand-d: #3b5269; --navy: #1f3a52;
  --tint: #dde8f1; --cream: #faf9f6; --soft: #f0f4f8;
  --danger: #b42318; --ok: #1c8a2e;
}
* { box-sizing: border-box; margin: 0; }
body { font-family: system-ui, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

/* Üst çubuk */
.topbar { background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 12px; flex-wrap: wrap; }
.topbar .brand { display: flex; align-items: center; border: 0; padding: 0; }
.topbar .brand:hover { background: transparent; }
.topbar .brand img { height: 34px; width: auto; display: block; }
.topbar .appname { font-weight: 700; margin-left: 12px; font-size: 15px; letter-spacing: .3px; }
.logo-band { background: var(--brand); margin: -32px -32px 24px; padding: 22px 28px; border-radius: 14px 14px 0 0; text-align: center; }
.logo-band img { height: 44px; max-width: 100%; width: auto; }
.topbar nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topbar a, .topbar button { color: #fff; text-decoration: none; background: transparent; border: 1px solid #ffffff55; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.topbar a:hover, .topbar button:hover { background: #ffffff22; }
.topbar a.on { background: #ffffff2e; border-color: #ffffffaa; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px; }

/* Sol menü + içerik yerleşimi */
/* Menü pencerenin tam sol kenarına yaslanır, sayfa yüksekliği boyunca uzanır */
.layout { display: flex; align-items: stretch; min-height: calc(100vh - 46px); }
.layout .wrap { flex: 1; min-width: 0; max-width: 1400px; margin: 0; }
.side { width: 272px; flex: none; background: var(--card); border-right: 1px solid var(--line); padding: 10px 8px; }
/* Menü ekranda sabit kalır; kullanıcı kutusu her zaman altta görünür (78px = üst çubuk + boşluk) */
.side-in { display: flex; flex-direction: column; position: sticky; top: 10px; height: calc(100vh - 78px); min-height: 260px; }
.side nav { display: grid; grid-template-columns: minmax(0, 1fr); overflow-x: hidden; gap: 1px; align-content: start; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.side-user { flex: none; margin-top: 8px; padding: 10px 12px; border-radius: 9px; background: var(--brand); color: #fff; line-height: 1.3; overflow-wrap: anywhere; }
.side-user b { display: block; font-size: 14px; }
.side-user span { display: block; font-size: 12.5px; opacity: .85; }
.mtitle { font-size: 11px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--muted); margin: 2px 0 8px 10px; }
.mitem { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 7px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.2; }
.mitem .mic { width: 20px; flex: none; text-align: center; font-size: 16px; }
.mitem > span:not(.mic):not(.tag):not(.chev) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.mitem:hover { background: var(--soft); }
.mitem.on { background: var(--brand); color: #fff; }
.mitem.soon { color: var(--muted); font-weight: 500; cursor: default; }
.mitem .tag { margin-left: auto; font-size: 10.5px; padding: 1px 7px; flex: none; }
/* Alt modüllü grup (Tanımlar > Cari Tanımları) */
button.mitem { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; }
button.mitem:hover { background: var(--soft); }
.mgroup .chev { margin-left: auto; font-size: 11px; color: var(--muted); transition: transform .15s; }
.mgroup.collapsed .chev { transform: rotate(-90deg); }
.mgroup.has-on { color: var(--brand-d); }
.msub { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 1px; margin: 1px 0 4px 19px; padding-left: 7px; border-left: 2px solid var(--line); }
.msub.closed { display: none; }
.mitem.sub { font-size: 13px; font-weight: 500; padding: 4px 9px; margin: 0; }   /* "sub" sayfa açıklaması sınıfıyla çakışır: alt boşluk sıfırlanır */
.mitem.sub .mic { width: 18px; font-size: 14px; }
.mitem.sub.on { font-weight: 600; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
h2 { font-size: 22px; margin-bottom: 4px; }
.sub { color: var(--muted); margin-bottom: 22px; }
.back { display: inline-block; margin-bottom: 10px; font-size: 14px; text-decoration: none; }
.section-title { font-size: 16px; margin: 26px 0 10px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 40px; text-align: center; color: var(--muted); }

/* Giriş / şifre kutusu */
.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 32px; width: 100%; max-width: 380px; box-shadow: 0 8px 28px #0000000f; }
.box h1 { font-size: 22px; color: var(--navy); margin-bottom: 4px; }
.box .sub { margin-bottom: 20px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #4a668344; border-color: var(--brand); }
.btn { background: var(--brand); color: #fff; border: 0; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn:hover { background: var(--brand-d); }
.btn.full { width: 100%; margin-top: 18px; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.linkrow { margin: 16px 0 0; font-size: 14px; text-align: center; }
a { color: var(--brand); }
.msg { margin-top: 12px; font-size: 14px; min-height: 18px; }
.msg.err { color: var(--danger); } .msg.ok { color: var(--ok); }

/* Sekmeler (Panel'deki Yönetim ekranıyla aynı) */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 600; }
.tab.on { color: var(--brand); border-color: var(--brand); }
ul.notes { margin: 0; padding: 16px 20px 16px 38px; display: grid; gap: 6px; font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); margin: 12px 0 0; }
.check input { width: auto; }

/* Liste araçları */
.bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input[type=search] { width: 280px; max-width: 100%; }
.filters select { width: auto; min-width: 150px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .3px; border-bottom: 0; white-space: nowrap; }
tbody tr:nth-child(odd) { background: var(--cream); }
tbody tr:nth-child(even) { background: var(--tint); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.wrapnote { max-width: 320px; color: var(--muted); }
td a.name { font-weight: 600; text-decoration: none; }
td a.name:hover { text-decoration: underline; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; background: #fff; color: var(--brand-d); border: 1px solid #b9c9d9; margin: 1px 3px 1px 0; }
.tag.off { background: #eceff2; color: #7a8794; border-color: #d5dbe1; }
.tag.adm { background: #f6e9cf; color: #8a5a14; border-color: #e6cf9f; }
.tag.ok { background: #e3f4e6; color: #1c6b2a; border-color: #b6dfbd; }
.row-actions { display: flex; gap: 6px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 14px; gap: 8px; flex-wrap: wrap; }
.pager .btns { display: flex; gap: 6px; }
.btn[disabled] { opacity: .45; cursor: default; }

/* Cari kartı */
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stat .k { color: var(--muted); font-size: 13px; }
.stat .v { font-size: 22px; font-weight: 700; margin-top: 4px; color: var(--navy); }
.info { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 24px; padding: 20px; }
.info dt { font-size: 12px; color: var(--muted); }
.info dd { margin: 2px 0 0; font-size: 15px; word-break: break-word; }
.info .wide { grid-column: 1 / -1; white-space: pre-wrap; }

/* Pencere */
.modal-bg { position: fixed; inset: 0; background: #0006; display: grid; place-items: center; padding: 16px; z-index: 50; } /* yan panellerin (z 41) üstünde: panelden açılan pencere altta kalmasın */
.modal { background: #fff; border-radius: 14px; padding: 24px; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; }
.modal.wide { max-width: 760px; }
.modal.xl { max-width: 940px; }
/* Cari formu */
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.form2 input + input, .form2 input + .narrow, .form2 select + input { margin-top: 8px; }
.narrow { max-width: 110px; margin-top: 8px; }
.stars { display: flex; gap: 2px; }
.star { background: none; border: 0; font-size: 28px; line-height: 1; color: #cbd5e1; cursor: pointer; padding: 0 2px; }
.star.on { color: #f5b301; }
.owners-box { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; max-height: 176px; overflow-y: auto; background: #fff; }
.owners-box .check { margin: 7px 0; }
.sect { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; }
.sect-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rowbox { border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px 10px; margin-top: 10px; background: var(--soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.rowfoot { justify-content: space-between; align-items: center; margin-top: 8px; }
.rowbox.dim { opacity: .6; border-style: dashed; }
tr.inactive-row td { color: var(--muted); font-style: italic; }
.btn.dash { background: var(--soft); color: var(--brand-d); border: 1px dashed #9db3c7; margin-top: 12px; }
.btn.dash:hover { background: var(--tint); }
.stars-view { color: #f5b301; letter-spacing: 2px; font-size: 18px; }
.stars-view .off { color: #cbd5e1; }
.stars-view.small { font-size: 12px; letter-spacing: 1px; }

/* Harita (cari kartı ve Müşteri Haritası) */
.bigmap { height: calc(100vh - 330px); min-height: 440px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); }
.bigmap.card-map { height: 340px; min-height: 0; }
.mapwrap { position: relative; margin-bottom: 10px; z-index: 0; isolation: isolate; } /* Leaflet panelleri (z-index 400-1000) açılır pencerelerin üstüne taşmasın */
.leaflet-container { z-index: 0; }
.mapempty { position: absolute; inset: 0; display: grid; place-items: center; background: #ffffffd9; color: var(--muted); text-align: center; padding: 24px; z-index: 500; border-radius: 12px; }
.bigmap.placing, .bigmap.placing .leaflet-grab { cursor: crosshair !important; }
.bigmap.placing { outline: 3px solid #d4a017; }
.geoinfo { font-size: 13px; color: var(--muted); margin: -2px 0 10px; }
.mapcounts { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 4px; font-size: 14px; }
.mapcounts .cnt.warn { color: #b25e09; text-decoration: none; }
.mapcounts .cnt.warn:hover { text-decoration: underline; }
.maplegend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; align-items: center; }
.maplegend .lg { display: inline-flex; align-items: center; gap: 6px; }
.maplegend .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px #c5d0db; }
.maplegend .dot.ring { background: #fff; border-color: #d4a017; }
.grp { background: var(--brand); color: #fff; border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; box-shadow: 0 1px 6px #0004; }
.grp.gold { border-color: #d4a017; }
.grp.mini { width: 22px; height: 22px; font-size: 11px; display: inline-grid; border-width: 2px; }
.pop .name { font-weight: 700; }
.poplist { margin: 6px 0 0 16px; padding: 0; max-height: 180px; overflow-y: auto; }

/* Cari panosu (Tanımlar > Cari Tanımları): özetler + liste. Küçük ekranda tek sütun, çok geniş ekranda iki sütun. */
.layout .wrap.wide { max-width: none; }
.dash { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "kpi" "list" "charts"; }
.dash > .kpis { grid-area: kpi; } .dash > .charts { grid-area: charts; } .dash > .listcard { grid-area: list; min-width: 0; }
@media (min-width: 1360px) {   /* 1366 px'lik dizüstü ekranlardan itibaren özet solda, liste sağda */
  .dash { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "kpi list" "charts list"; align-items: start; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; align-content: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head .ic { font-size: 18px; }
.card-head h3 { font-size: 16px; color: var(--navy); flex: 1; min-width: 120px; }
.kpi { border-radius: 12px; padding: 14px 10px; text-align: center; border: 1px solid var(--line); background: var(--card); }
.kpi .ico { font-size: 22px; line-height: 1; }
.kpi .num { font-size: 30px; font-weight: 700; color: var(--navy); margin: 4px 0 2px; line-height: 1.1; }
.kpi .lab { font-size: 13px; font-weight: 600; }
.k-blue { background: #eef4fb; } .k-blue .lab { color: #2d5f9a; }
.k-green { background: #eef7f0; } .k-green .lab { color: #1c8a2e; }
.k-orange { background: #fdf3e8; } .k-orange .lab { color: #c46a12; }
.k-purple { background: #f3effa; } .k-purple .lab { color: #6b4fa8; }
.sub.tight { margin: -6px 0 10px; font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 8px; }
.empty.small { padding: 18px; font-size: 14px; }

/* Çubuk grafik ve halka */
.barrow { display: grid; grid-template-columns: minmax(70px, 130px) 1fr 44px; gap: 10px; align-items: center; width: 100%; padding: 5px 0; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.barrow.static { cursor: default; }
.barrow:hover:not(.static) .lbl { text-decoration: underline; }
.barrow .lbl { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bartrack { height: 14px; background: var(--soft); border-radius: 7px; overflow: hidden; }
.barfill { height: 100%; width: 0; background: var(--brand); border-radius: 7px; }
.barfill.gray { background: #b9c4cf; }
.barval { font-size: 13px; font-weight: 700; text-align: right; }
.scrollbox { max-height: 300px; overflow-y: auto; padding-right: 6px; }
.donutwrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: none; }
.donut-num { font-size: 26px; font-weight: 700; fill: var(--navy); }
.donut-lab { font-size: 12px; fill: var(--muted); }
.legend { display: grid; gap: 6px; flex: 1; min-width: 150px; }
.legrow { display: grid; grid-template-columns: 12px 1fr auto 44px; gap: 8px; align-items: center; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; padding: 4px 0; text-align: left; }
.legrow:hover .lbl { text-decoration: underline; }
.legrow .dot { width: 11px; height: 11px; border-radius: 50%; }
.legrow .v { font-weight: 700; } .legrow .p { color: var(--muted); font-size: 12px; text-align: right; }
.panel.flat { border: 0; border-radius: 0; background: none; }
.bigcount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.bigcount .num { font-size: 36px; font-weight: 700; color: #b8860b; line-height: 1; }
.bigcount .cap { color: var(--muted); font-size: 14px; }
.starlist { list-style: none; padding: 0; display: grid; gap: 0; }
.starlist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.starlist li:first-child { border-top: 0; }
.ticks { list-style: none; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }

/* Liste kartı */
.lfilters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.lfilters input[type=search] { flex: 1 1 220px; min-width: 160px; width: auto; }
.lfilters select { flex: 0 1 auto; width: auto; min-width: 130px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips:not(:empty) { margin: 4px 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--tint); border-radius: 99px; padding: 3px 4px 3px 11px; font-size: 13px; }
.chip button { border: 0; background: none; cursor: pointer; font-size: 12px; color: var(--muted); padding: 2px 6px; }
.subline { font-size: 12px; color: var(--muted); margin-top: 2px; }
.iconbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: #fff; font-size: 15px; }
.iconbtn:hover { background: var(--soft); }
.pager select { width: auto; padding: 5px 8px; font-size: 13px; }
.pager .btns { align-items: center; flex-wrap: wrap; }
.pager .btn.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.modal h3 { margin-bottom: 6px; }
.matrix { margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.matrix table { font-size: 13px; }
.matrix td, .matrix th { padding: 7px 10px; }
.matrix select { padding: 6px 8px; font-size: 13px; }
.matrix select:disabled { background: var(--soft); color: var(--muted); }
.matrix tbody tr.ma-pgrp td { background: var(--soft); color: var(--navy); font-weight: 700; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; padding-top: 9px; padding-bottom: 9px; }
.modal .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.modal .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

@media (max-width: 640px) {
  .topbar { padding: 10px 14px; } .wrap { padding: 18px 14px; }
  .modal .two, .form2, .grid2 { grid-template-columns: 1fr; }
}

/* Ülke / Şehir Sorumluları */
.tagx { border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 0 0 2px; opacity: .6; }
.tagx:hover { opacity: 1; color: #b3261e; }
.owners-box.tall { max-height: 240px; overflow-y: auto; }
.check.inl { margin: 0; }
.tag small { color: inherit; opacity: .8; }
.terr .r { text-align: right; white-space: nowrap; }
.terr-people { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.terr-people select { width: auto; min-width: 120px; padding: 4px 8px; font-size: 13px; }
.hist-row { border-left: 3px solid var(--line); padding: 2px 0 2px 14px; margin: 14px 0; }
.hist-dates { font-weight: 600; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin: 12px 0; font-size: 13px; }

/* Yönetici Ekranı: bölümler solda dikey liste */
.ylayout { display: flex; gap: 22px; align-items: flex-start; }
.ylayout > #view { flex: 1; min-width: 0; }
.tabs.vtabs { flex: 0 0 190px; flex-direction: column; gap: 2px; border-bottom: 0; border-right: 1px solid var(--line); padding-right: 12px; margin-bottom: 0; position: sticky; top: 12px; }
.vtabs .tab { text-align: left; border-bottom: 0; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; padding: 10px 14px; }
.vtabs .tab:hover { background: var(--tint); }
.vtabs .tab.on { border-left-color: var(--brand); background: var(--tint); }
@media (max-width: 760px) {
  .ylayout { flex-direction: column; gap: 0; }
  .tabs.vtabs { flex: none; flex-direction: row; flex-wrap: wrap; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 4px; margin-bottom: 14px; position: static; }
  .vtabs .tab { border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; }
  .vtabs .tab.on { border-bottom-color: var(--brand); }
}

/* Satış Hedefleri */
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.tcard-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: var(--soft); border-bottom: 1px solid var(--line); }
.tcard-h .nm { font-weight: 700; font-size: 15px; }
.tcard-h .tot { font-weight: 700; color: var(--brand); white-space: nowrap; }
.tcard-h .tot small { color: var(--muted); font-weight: 500; margin-right: 6px; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) 210px 84px; gap: 12px; align-items: center; padding: 9px 18px; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: #f8fafc; }
.trow .who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.trow .who b { font-weight: 600; }
.trow input.amt { width: 100%; max-width: none; text-align: right; }
.trow .act { text-align: right; }
.thead { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #fff; }
.tgrand { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 4px 4px 14px; font-size: 16px; font-weight: 700; }
.tgrand span:last-child { color: var(--brand); }
.msg.ok { color: #1c6b2a; }
@media (max-width: 640px) { .trow { grid-template-columns: minmax(0, 1fr) 130px 70px; padding: 9px 12px; } }





/* Müşteri Eşleştirme */
.cm-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.cm-card h3 { margin: 0 0 14px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.cm-badge { background: var(--brand); color: #fff; border-radius: 99px; font-size: 12px; padding: 1px 9px; font-weight: 700; }
.cm-badge:empty { display: none; }
.cm-msg { min-height: 0; }
.cm-msg.ok, .cm-msg.err { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.cm-msg.ok { background: #e3f4e6; color: #1c6b2a; border: 1px solid #b6dfbd; } .cm-msg.err { background: #fdecec; color: #9b1c1c; border: 1px solid #f3c1c1; }
.cm-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.cm-tools select { width: auto; } .cm-in { max-width: 100%; } .cm-in.grow { flex: 1; min-width: 240px; } .cm-in.wide { width: 100%; }
table.cm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.cm-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 9px 12px; border-bottom: 2px solid var(--line); background: #fff; position: sticky; top: 0; }
table.cm-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cm-table tbody tr, table.cm-table tbody tr:nth-child(even) { background: #fff; }
table.cm-table tbody tr:hover { background: #f8fafc; }
table.cm-table tbody tr.on { background: #eaf2fb !important; }
table.cm-table tbody tr.dim { opacity: .6; }
table.cm-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.cm-table .r { text-align: right; white-space: nowrap; }
table.cm-table .chk { width: 38px; } table.cm-table input[type=checkbox] { width: auto; }
table.cm-table.slim td { padding: 7px 12px; }
.cm-name { font-weight: 600; } .cm-code { font-size: 12px; color: var(--muted); }
.cm-pill { display: inline-block; background: #fff7e6; border: 1px solid #f0d9a0; color: #8a5a14; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cm-chip { background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: 12px; }
.cm-tray { margin-top: 14px; position: sticky; bottom: 0; background: #fff; border-top: 2px solid var(--brand); padding-top: 12px; }
.cm-sel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px) auto auto; gap: 12px; align-items: center; }
.cm-seltxt { min-width: 0; }
.cm-hint { color: var(--muted); font-size: 13px; padding: 6px 2px; }
.cm-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cm-groups > .empty { grid-column: 1 / -1; }
.cm-group { border: 1px solid var(--line); border-radius: 12px; }
.cm-gh { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--soft); padding: 11px 16px; border-bottom: 1px solid var(--line); border-radius: 11px 11px 0 0; }
.cm-gn { font-weight: 800; font-size: 15px; } .cm-gm { color: var(--muted); font-size: 12px; margin-left: 10px; } .cm-gt { font-weight: 800; color: var(--brand); }
.cm-add { position: relative; padding: 10px 16px 14px; }
.cm-drop { position: absolute; left: 16px; right: 16px; top: 100%; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px #0002; }
.cm-drop:empty { display: none; }
.cm-opt { display: block; width: 100%; text-align: left; background: #fff; border: 0; padding: 9px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.cm-opt:hover { background: var(--tint); }
@media (max-width: 900px) { .cm-sel { grid-template-columns: 1fr; } .cm-groups { grid-template-columns: 1fr; } }

/* Ülke Bazlı Satış Raporu */
.cs-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.cs-side { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; position: sticky; top: 12px; }
.cs-side input { width: 100%; box-sizing: border-box; margin-bottom: 10px; }
.cs-sidebar-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cs-sidebar-tools select { width: auto; font-size: 13px; padding: 5px 8px; }
.cs-list { max-height: calc(100vh - 250px); min-height: 420px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.cs-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm amt" "bar sh"; gap: 2px 10px; align-items: center; width: 100%; text-align: left; background: #fff; border: 0; border-radius: 10px; padding: 9px 10px; cursor: pointer; }
.cs-item:hover { background: #f3f7fc; }
.cs-item.on { background: linear-gradient(135deg, #2f6fe4, #1d3f8f); color: #fff; }
.cs-item .nm { grid-area: nm; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-item .amt { grid-area: amt; font-size: 12px; font-weight: 700; color: var(--brand); } .cs-item.on .amt { color: #fff; }
.cs-item .bar { grid-area: bar; display: block; height: 5px; background: #e8edf3; border-radius: 99px; overflow: hidden; } .cs-item.on .bar { background: #ffffff40; }
.cs-item .bar i { display: block; height: 100%; background: #3b82f6; border-radius: 99px; } .cs-item.on .bar i { background: #fff; }
.cs-item .sh { grid-area: sh; font-size: 11px; color: var(--muted); text-align: right; } .cs-item.on .sh { color: #ffffffcc; }
.cs-detail { min-width: 0; }
.cs-placeholder { background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 80px 20px; text-align: center; color: var(--muted); }
.cs-placeholder .ic { font-size: 44px; margin-bottom: 8px; }
.cs-head { background: linear-gradient(135deg, #1d3f8f, #2f6fe4); color: #fff; border-radius: 14px; padding: 18px 22px; margin-bottom: 14px; }
.cs-head h3 { margin: 2px 0 0; font-size: 26px; color: #fff; } .cs-eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; font-weight: 700; }
.cs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.cs-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; border-top: 4px solid #94a3b8; }
.cs-stat.good { border-top-color: #0f9d58; } .cs-stat.low { border-top-color: #dc2626; }
.cs-stat .k { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cs-stat .v { font-size: 20px; font-weight: 800; margin: 5px 0 2px; } .cs-stat .s { font-size: 12px; color: var(--muted); }
.cs-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.cs-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; margin-bottom: 14px; }
.cs-two .cs-card { margin-bottom: 0; }
.cs-card h4 { margin: 0 0 12px; font-size: 15px; }
.cs-chart { width: 100%; height: auto; display: block; }
.cs-chart .ax { font-size: 10px; fill: #94a3b8; } .cs-chart .val { font-size: 11px; font-weight: 700; fill: #1e3a8a; } .cs-chart .yr { font-size: 12px; font-weight: 700; fill: #475569; }
.cs-chart .up { font-size: 10px; fill: #15803d; font-weight: 700; } .cs-chart .down { font-size: 10px; fill: #b91c1c; font-weight: 700; }
table.cs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.cs-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 9px 10px; border-bottom: 2px solid var(--line); background: #fff; white-space: nowrap; position: sticky; top: 0; }
table.cs-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cs-table tbody tr, table.cs-table tbody tr:nth-child(even) { background: #fff; }
table.cs-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } table.cs-table .z { color: #b8c2cf; }
table.cs-table .nm { font-weight: 600; } table.cs-table .strong { font-weight: 800; }
table.cs-table tr.tot td { font-weight: 800; border-top: 2px solid var(--line); background: var(--soft); }
table.cs-table.pivot tr.cust td { background: #f1f5f9; border-top: 2px solid #e2e8f0; }
table.cs-table.pivot tr.sp td { color: #475569; } table.cs-table.pivot td.ind { padding-left: 38px; }
table.cs-table.pivot tr.sp:hover td { background: #f8fafc; }
.cs-tg { border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--brand); width: 22px; padding: 0; margin-right: 4px; }
.cs-table .cnt { color: var(--muted); font-size: 11px; margin-left: 10px; font-weight: 500; }
.cs-table .alias { font-size: 11px; color: #94a3b8; font-weight: 400; margin-top: 1px; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; margin-left: auto; cursor: help; }
.cs-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.cs-other { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-weight: 400; }
.cs-other .lbl { font-size: 11px; color: var(--muted); }
.cs-oc { background: #fff7e6; border: 1px solid #f0d9a0; color: #8a5a14; border-radius: 99px; padding: 1px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.cs-table .alias.other { color: #b4730a; }
@media (max-width: 1100px) { .cs-layout { grid-template-columns: 1fr; } .cs-side { position: static; } .cs-list { min-height: 0; max-height: 280px; } .cs-two { grid-template-columns: 1fr; } .cs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Şehir haritası */
.cs-mapcard { margin-bottom: 0; min-width: 0; }
.cs-toprow { margin-bottom: 18px; align-items: stretch; }
.cs-toprow .cs-side { position: static; display: flex; flex-direction: column; }
.cs-toprow .cs-list { flex: 1; min-height: 0; max-height: 470px; }
.cs-toprow .cs-map { height: 400px; }
.cs-maphead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.cs-maphead h4 { margin: 0 0 3px; font-size: 16px; } .cs-mapsub { font-size: 12px; color: var(--muted); }
.cs-maptools { display: flex; gap: 8px; align-items: center; } .cs-maptools select { width: auto; }
.cs-mapchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cs-chip { background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; font-size: 12px; font-weight: 600; }
.cs-chip.best { background: #fff7e6; border-color: #f0d9a0; color: #8a5a14; } .cs-chip.muted { color: var(--muted); font-weight: 500; }
.cs-map { height: 540px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); }
.leaflet-tooltip.cs-num { background: transparent; border: 0; box-shadow: none; color: #0f172a; font-weight: 700; font-size: 11px; text-align: center; padding: 0; line-height: 1.15; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 4px #fff, 0 0 4px #fff; }
.leaflet-tooltip.cs-num::before { display: none; }
.leaflet-tooltip.cs-num.best { font-size: 13px; color: #92400e; }
.leaflet-tooltip.cs-num.pin { background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 1px 6px; box-shadow: 0 1px 4px #0003; text-shadow: none; color: #1e3a8a; }
.leaflet-tooltip.cs-num.pin.best { border-color: #f59e0b; color: #92400e; }
.cs-map:not(.z-near) .cs-num.low { display: none; }
.cs-pin i { display: block; width: 22px; height: 22px; margin: 2px 2px 0; border-radius: 50% 50% 50% 0; background: #2563eb; border: 2px solid #fff; box-shadow: 0 2px 5px #0006; transform: rotate(-45deg); }
.cs-pin.b1 i { background: #f59e0b; } .cs-pin.b2 i { background: #1d3f8f; } .cs-pin.b3 i { background: #2f6fe4; } .cs-pin.b4 i { background: #7aa7f0; width: 18px; height: 18px; margin: 6px 4px 0; }
@media (max-width: 1100px) { .cs-toprow .cs-list { max-height: 240px; } }
@media (max-width: 760px) { .cs-toprow .cs-map { height: 340px; } }

/* Müşteri Kaybı Riski */
.rk-bar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.rk-dseg { display: inline-flex; gap: 2px; background: #eef2f7; border-radius: 12px; padding: 4px; }
.dseg { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; border-radius: 9px; padding: 7px 13px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: #52627a; transition: background .15s, color .15s, box-shadow .15s; }
.dseg:hover { color: #1e293b; background: #e2e8f0; }
.dseg .dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; flex: none; } .dseg.dis .dot { background: #6d4bd1; } .dseg.ic .dot { background: #c46a12; }
.dseg .ct { font-size: 11px; font-weight: 700; background: #dde4ee; color: #475569; border-radius: 99px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.dseg.on { background: #fff; color: #0f172a; box-shadow: 0 1px 4px #0f172a26, 0 0 0 1px #d6deea; } .dseg.on .ct { background: var(--brand); color: #fff; }
.dseg.dis.on { color: #4c2fa8; } .dseg.dis.on .ct { background: #6d4bd1; } .dseg.ic.on { color: #9a4f0b; } .dseg.ic.on .ct { background: #c46a12; }
.rk-bar input.grow { flex: 1; min-width: 240px; } .rk-bar select { width: auto; }
@media (max-width: 1320px) { table.rk-table th, table.rk-table td { padding-left: 5px; padding-right: 5px; } table.rk-table td.num b { font-size: 12px; } }
.rk-kpi.sum.new { background: linear-gradient(135deg, #14532d, #16a34a); border-color: #14532d; border-top-color: #f59e0b; }
.rk-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.rk-kpi { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; border-top: 5px solid #94a3b8; cursor: pointer; font: inherit; color: inherit; }
.rk-kpi.sum { cursor: default; background: linear-gradient(135deg, #1d3f8f, #2f6fe4); color: #fff; border-color: #1d3f8f; border-top-color: #f59e0b; }
.rk-kpi.hi { border-top-color: #dc2626; } .rk-kpi.mid { border-top-color: #f59e0b; } .rk-kpi.lo { border-top-color: #94a3b8; } .rk-kpi.ok { border-top-color: #16a34a; }
.rk-kpi:not(.sum):hover { box-shadow: 0 4px 14px #0f172a1a; } .rk-kpi.on { box-shadow: 0 0 0 2px var(--brand); background: #f3f8ff; }
.rk-kpi .k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } .rk-kpi.sum .k { color: #ffffffcc; }
.rk-kpi .v { font-size: 28px; font-weight: 800; margin: 4px 0 2px; } .rk-kpi .v small { font-size: 13px; font-weight: 600; color: var(--muted); } .rk-kpi.sum .v small { color: #ffffffcc; }
.rk-kpi .s { font-size: 12px; font-weight: 600; } .rk-kpi .h { font-size: 11px; color: var(--muted); margin-top: 2px; } .rk-kpi.sum .h { color: #ffffffcc; }
.rk-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 4px 12px; }
table.rk-table { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
table.rk-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 9px 7px; border-bottom: 2px solid var(--line); background: #fff; position: sticky; top: 0; white-space: nowrap; }
table.rk-table td { padding: 9px 7px; border-bottom: 1px solid var(--line); vertical-align: top; overflow: hidden; }
table.rk-table tbody tr, table.rk-table tbody tr:nth-child(even) { background: #fff; }
table.rk-table tbody tr:hover { background: #f8fafc; }
table.rk-table tr.st-hi td:first-child { box-shadow: inset 4px 0 0 #dc2626; } table.rk-table tr.st-mid td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
table.rk-table tr.st-lo td:first-child { box-shadow: inset 4px 0 0 #94a3b8; } table.rk-table tr.st-ok td:first-child { box-shadow: inset 4px 0 0 #16a34a; }
table.rk-table tr.st-hi { background: #fff5f5; } table.rk-table tr.st-ok { background: #f6fdf8; }
table.rk-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } table.rk-table .c { text-align: center; } table.rk-table .z { color: #b8c2cf; }
table.rk-table .strong { font-weight: 800; } table.rk-table th.cur, table.rk-table td.cur { background: #eef4ff; }
table.rk-table .ln { font-size: 10.5px; color: #64748b; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: help; }
table.rk-table .sub2 { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.rk-table th.stc { width: 104px; } table.rk-table th.who { width: 27%; } table.rk-table th.tot { width: 96px; }
table.rk-table .nm { display: flex; align-items: center; gap: 6px; min-width: 0; } table.rk-table .nm .rk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } table.rk-table .nm .rk-chat { flex: none; }
table.rk-table td.num b { font-size: 12.5px; }
table.rk-table .stc { white-space: nowrap; } table.rk-table .num { white-space: nowrap; }
.rk-badge { display: inline-block; border-radius: 99px; padding: 3px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.rk-badge.hi { background: #fee2e2; color: #991b1b; } .rk-badge.mid { background: #fef3c7; color: #92400e; } .rk-badge.lo { background: #e8edf3; color: #475569; } .rk-badge.ok { background: #dcfce7; color: #166534; }
.rk-dept { display: inline-block; border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 700; color: #fff; } .rk-dept.dis { background: #6d4bd1; } .rk-dept.ic { background: #c46a12; }
.rk-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--brand); cursor: pointer; text-align: left; } .rk-name:hover { text-decoration: underline; }
.rk-chat { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; cursor: pointer; font: inherit; font-size: 12px; color: var(--muted); }
.rk-chat.has { border-color: var(--brand); color: var(--brand); font-weight: 700; background: #f3f8ff; } .rk-chat:hover { border-color: var(--brand); }
.rk-shade { position: fixed; inset: 0; background: #0f172a66; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; } .rk-shade.open { opacity: 1; pointer-events: auto; }
.rk-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100vw; background: #fff; box-shadow: -8px 0 30px #0f172a33; transform: translateX(105%); transition: transform .22s; z-index: 41; display: flex; flex-direction: column; }
.rk-drawer.open { transform: none; }
.rk-dhead { display: flex; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #1d3f8f, #2f6fe4); color: #fff; }
.rk-dhead h3 { margin: 2px 0 6px; color: #fff; font-size: 18px; } .cs-eyebrow2 { font-size: 11px; letter-spacing: .12em; opacity: .8; font-weight: 700; }
.rk-dmeta { font-size: 12px; opacity: .95; } .rk-dmeta .rk-badge { font-size: 11px; padding: 1px 9px; }
.rk-close { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; align-self: flex-start; }
.rk-thread { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: #f6f8fb; }
.rk-first { color: var(--muted); text-align: center; padding: 30px 10px; font-size: 13px; }
.rk-msg { display: flex; gap: 9px; align-items: flex-start; max-width: 92%; } .rk-msg.mine { margin-left: auto; flex-direction: row-reverse; }
.rk-msg .av { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #cbd5e1; color: #334155; display: grid; place-items: center; font-size: 12px; font-weight: 800; } .rk-msg.mine .av { background: var(--brand); color: #fff; }
.rk-msg .bub { background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 8px 12px; min-width: 0; } .rk-msg.mine .bub { background: #e7f0ff; border-color: #bcd3f7; border-radius: 14px 4px 14px 14px; }
.rk-msg .mh { display: flex; gap: 8px; align-items: baseline; font-size: 12px; } .rk-msg .mh span { color: var(--muted); font-size: 11px; } .rk-msg .x { margin-left: auto; background: none; border: 0; color: #b3261e; cursor: pointer; font-size: 16px; line-height: 1; }
.rk-msg .mb { white-space: pre-wrap; word-break: break-word; font-size: 14px; margin-top: 3px; }
.rk-comp { border-top: 1px solid var(--line); padding: 12px 18px 14px; background: #fff; } .rk-comp textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.rk-compbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
@media (max-width: 1400px) { .rk-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .rk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* E-posta kayıtları (Yönetici Ekranı) */
.ml-st { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #e2e8f0; color: #475569; }
.ml-st.ok { background: #dcfce7; color: #166534; } .ml-st.err { background: #fee2e2; color: #991b1b; } .ml-st.skip { background: #fef3c7; color: #92400e; }
.ml-table td { vertical-align: top; } .ml-table .nowrap { white-space: nowrap; } .ml-why { color: #991b1b; font-size: 12.5px; max-width: 360px; overflow-wrap: anywhere; }
/* Bildirim zili */
.bell-wrap { position: relative; display: inline-block; }
.topbar button.bell { position: relative; font-size: 16px; padding: 4px 10px; line-height: 1.3; }
.bell-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box; }
.bell-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 380px; max-width: calc(100vw - 24px); background: #fff; color: var(--text, #1f3a52); border: 1px solid #dbe4ec; border-radius: 12px; box-shadow: 0 12px 32px #0f172a33; z-index: 50; overflow: hidden; text-align: left; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #e5ebf1; }
.topbar .bell-panel button { color: inherit; border: 0; }
.topbar .bell-panel button:hover { background: #f3f6f9; }
.topbar .bell-panel .bell-all { color: #3b6a9a; font-size: 12.5px; padding: 3px 8px; border-radius: 6px; }
.bell-list { max-height: 420px; overflow: auto; }
.topbar .bell-panel .bell-item { display: block; width: 100%; text-align: left; padding: 11px 14px; border-bottom: 1px solid #eef2f6; border-radius: 0; font-size: 13.5px; background: #fff; }
.bell-item.new { background: #eef5fc; box-shadow: inset 3px 0 0 #3b82c4; }
.bell-item .bt { display: flex; justify-content: space-between; gap: 10px; } .bell-item .bt span { color: #7a8ca0; font-size: 11.5px; white-space: nowrap; }
.bell-item .bb { margin-top: 4px; color: #334e68; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 7.2em; overflow: hidden; }
.bell-empty { padding: 22px; text-align: center; color: #7a8ca0; }
/* Bilgi Paylaşımı */
.kn-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; } .kn-top .sub { margin: 0; max-width: 760px; }
.kn-list { display: flex; flex-direction: column; gap: 10px; max-width: 1000px; }
.kn-row { display: flex; gap: 14px; align-items: stretch; text-align: left; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: inherit; }
.kn-row:hover { border-color: #9db4cb; box-shadow: 0 2px 10px #4a668326; }
.kn-th { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: #eef2f6; } .kn-th.empty { display: grid; place-items: center; font-size: 24px; }
.kn-main { flex: 1; min-width: 0; } .kn-title { font-weight: 700; font-size: 15.5px; color: #1f3a52; }
.kn-prev { color: #52627a; font-size: 13.5px; margin-top: 2px; overflow-wrap: anywhere; } .kn-lk { color: #3b6a9a; font-size: 12.5px; }
.kn-meta { color: #7a8ca0; font-size: 12.5px; margin-top: 4px; } .kn-share-line { margin-top: 6px; font-size: 12.5px; color: #52627a; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kn-stats { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 1px; min-width: 110px; color: #7a8ca0; font-size: 12px; } .kn-stats b { font-size: 20px; color: #1f3a52; } .kn-act { margin-top: 4px; text-align: right; }
.kn-aud { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.kn-aud.kn-co { background: #e0ecf8; color: #1e4a7a; } .kn-aud.kn-dp { background: #e7f5ea; color: #1d6b34; } .kn-aud.kn-mg { background: #fdeccf; color: #8a4b08; }
.kn-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-top: 12px; max-width: 900px; } .kn-h { margin: 0 0 10px; color: #1f3a52; }
.kn-sharebox { background: #f4f8fb; border: 1px solid #dbe4ec; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px; }
.kn-people { margin-top: 6px; } .kn-people summary { cursor: pointer; color: #3b6a9a; font-size: 13px; }
.kn-people ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 14px; } .kn-people li { font-size: 13px; display: flex; flex-direction: column; } .kn-people li span { color: #7a8ca0; font-size: 11.5px; }
.kn-note2 { margin-top: 6px; font-size: 12.5px; color: #7a8ca0; }
.kn-notebox { border: 1px solid #e5ebf1; border-radius: 10px; padding: 10px 14px; margin: 10px 0; } .kn-nh { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; } .kn-nh span { color: #7a8ca0; }
.kn-nb { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; } .kn-nl { display: block; margin-top: 6px; overflow-wrap: anywhere; font-size: 13.5px; }
.kn-media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .kn-mi { max-width: 260px; max-height: 200px; border-radius: 8px; border: 1px solid #dbe4ec; background: #000; object-fit: cover; cursor: zoom-in; } video.kn-mi { cursor: default; max-width: 360px; }
.kn-lb { position: fixed; inset: 0; background: #000c; display: grid; place-items: center; z-index: 60; cursor: zoom-out; } .kn-lb img { max-width: 94vw; max-height: 92vh; border-radius: 6px; }
.kn-ct { margin: 18px 0 4px; color: #1f3a52; } .kn-comp { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 6px; } .kn-comp textarea, .kn-comp input[type=url] { width: 100%; box-sizing: border-box; }
.kn-acts { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.kn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .kn-chip { background: #eef2f6; border-radius: 99px; padding: 3px 10px; font-size: 12.5px; } .kn-chip button { border: 0; background: transparent; cursor: pointer; color: #991b1b; font-size: 15px; padding: 0 2px; }
.kn-opts { display: flex; flex-direction: column; gap: 8px; } .kn-opt { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: #1f3a52; font-size: 14px; } .kn-opt:has(input:checked) { border-color: #3b6a9a; background: #eef5fc; } .kn-opt.off { opacity: .55; cursor: not-allowed; }
.kn-opt .ot { font-weight: 700; } .kn-opt .od { color: #52627a; font-size: 12.5px; margin-top: 2px; }
.kn-sum { margin-top: 10px; padding: 9px 12px; background: #fff8e6; border: 1px solid #f1dfae; border-radius: 8px; font-size: 13px; color: #5c4a14; }
@media (max-width: 700px) { .kn-row { flex-wrap: wrap; } .kn-stats { flex-direction: row; align-items: center; gap: 6px; min-width: 0; } }
/* Pazar Araştırması */
.mr-search { max-width: 320px; margin-bottom: 14px; }
.mr-group { margin-bottom: 12px; max-width: 1000px; } .mr-gt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #eef2f6; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; font-weight: 700; color: #1f3a52; }
.mr-gc { background: #fff; border-radius: 99px; padding: 1px 9px; font-size: 12px; } .mr-chev { margin-left: auto; color: #7a8ca0; }
.mr-mine { background: #dcfce7; color: #166534; font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 99px; }
.mr-viewers { margin: 10px 0; } .mr-del { border: 0; background: transparent; color: #991b1b; cursor: pointer; font-size: 12.5px; margin-left: 10px; text-decoration: underline; }
.rt-bar { display: flex; gap: 6px; margin: 4px 0; } .rt-btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; min-width: 32px; padding: 4px 8px; cursor: pointer; font-size: 13px; } .rt-btn:hover { background: var(--soft); } .rt-btn.rt-b { font-weight: 800; }
.rt-hint { font-size: 12px; color: #7a8ca0; margin-bottom: 4px; }
.rt-editor { min-height: 110px; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; outline: none; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; } .rt-editor:focus { border-color: var(--brand); box-shadow: 0 0 0 2px #4a668333; }
.rt-editor:empty::before { content: attr(data-placeholder); color: #9aa8b8; }
.rt-g { color: #047857; } .rt-r { color: #b91c1c; } .rt-o { color: #c2410c; } .rt-editor font[color="#047857"] { color: #047857; } .rt-editor font[color="#b91c1c"] { color: #b91c1c; } .rt-editor font[color="#c2410c"] { color: #c2410c; }
.rt-show { white-space: pre-wrap; }
/* Pazar Araştırması: geniş ekran düzeni */
.mr .kn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; max-width: none; }
.mr .kn-row { align-items: center; box-shadow: 0 1px 3px #4a66831a; }
.mr .kn-th { width: 52px; height: 52px; } .mr .kn-th.empty { background: #e8eff6; }
.mr .kn-stats { min-width: 92px; } .mr .kn-act { font-size: 11px; text-align: right; }
.mr .mr-group { max-width: none; } .mr .mr-search { max-width: 420px; } .mr .sub { max-width: none; }
.mr .kn-card { max-width: none; }
.mr-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; margin-top: 12px; } .mr-detail .kn-card { margin-top: 0; }
.mr-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }
.mr-sh { margin: 0 0 10px; color: #1f3a52; } .mr-info { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #eef2f6; font-size: 13.5px; } .mr-info span { color: #7a8ca0; } .mr-info b { text-align: right; color: #1f3a52; }
.mr-pdf { width: 100%; margin-top: 12px; }
.mr-vlist { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: 6px; } .mr-vlist li { display: flex; flex-direction: column; font-size: 13px; } .mr-vlist li span { color: #7a8ca0; font-size: 11.5px; }
.mr .kn-people ul { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 1000px) { .mr-detail { grid-template-columns: 1fr; } .mr-side { position: static; } }
@media (max-width: 480px) { .mr .kn-list { grid-template-columns: 1fr; } }
/* Aktiviteler */
.ac-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ac-tabs { display: inline-flex; background: #eef2f7; border-radius: 12px; padding: 4px; gap: 2px; }
.ac-tab { border: 0; background: transparent; border-radius: 9px; padding: 8px 18px; font-size: 14px; font-weight: 600; color: #52627a; cursor: pointer; } .ac-tab.on { background: #fff; color: #0f172a; box-shadow: 0 1px 4px #0f172a26; }
.ac-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .ac-tools select { width: auto; }
.ac-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.ac-kpi { background: #fff; border: 1px solid var(--line); border-left: 4px solid #94a3b8; border-radius: 12px; padding: 12px 16px; display: flex; align-items: baseline; gap: 10px; } .ac-kpi b { font-size: 26px; color: #1f3a52; } .ac-kpi span { color: #52627a; font-size: 13px; }
.ac-kpi.k-late { border-left-color: #dc2626; } .ac-kpi.k-late b { color: #b91c1c; } .ac-kpi.k-today { border-left-color: #3b82c4; } .ac-kpi.k-fu { border-left-color: #d97706; } .ac-kpi.k-done { border-left-color: #16a34a; }
.ac-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; } .ac-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ac-sec { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .ac-sh { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; background: #f4f8fb; border-bottom: 1px solid var(--line); color: #1f3a52; }
.ac-cnt { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 0 9px; font-size: 12px; font-weight: 700; }
.ac-sec.sec-late .ac-sh { background: #fef2f2; color: #991b1b; } .ac-sec.sec-fu .ac-sh { background: #fffbeb; color: #92400e; } .ac-sec.sec-today .ac-sh { background: #eef5fc; }
.ac-empty { padding: 18px 16px; color: #7a8ca0; font-size: 13.5px; }
.ac-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #eef2f6; cursor: pointer; } .ac-row:last-child { border-bottom: 0; } .ac-row:hover { background: #f8fbfd; } .ac-row.done { opacity: .75; } .ac-row.cancelled { opacity: .5; text-decoration: line-through; }
.ac-ic { width: 38px; height: 38px; border-radius: 10px; background: #eef2f7; display: grid; place-items: center; font-size: 19px; flex: none; }
.ac-rm { flex: 1; min-width: 0; } .ac-t { font-weight: 700; color: #1f3a52; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .ac-s { color: #7a8ca0; font-size: 12.5px; margin-top: 1px; } .ac-sj { color: #334e68; font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-when { text-align: right; flex: none; min-width: 78px; } .ac-when b { display: block; font-size: 13px; color: #1f3a52; } .ac-when span { font-size: 11.5px; color: #7a8ca0; } .ac-when.late b { color: #b91c1c; }
.ac-ra { display: flex; gap: 6px; flex: none; } .btn.ac-sm { padding: 5px 11px; font-size: 12.5px; }
.ac-st { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; } .st-pl { background: #e0ecf8; color: #1e4a7a; } .st-po { background: #fef3c7; color: #92400e; } .st-dn { background: #dcfce7; color: #166534; } .st-ca { background: #e5e7eb; color: #4b5563; }
.ac-oc { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #e5e7eb; color: #374151; } .ac-oc.oc-good { background: #dcfce7; color: #166534; } .ac-oc.oc-bad { background: #fee2e2; color: #991b1b; } .ac-oc.oc-neutral { background: #e9eef5; color: #3b5876; }
.ac-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; } .ac-bar input.grow { flex: 1; min-width: 220px; } .ac-bar select, .ac-bar input[type=date] { width: auto; } .ac-dl { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.ac-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; table-layout: fixed; } .ac-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #7a8ca0; padding: 10px 12px; background: #f4f8fb; border-bottom: 1px solid var(--line); }
.ac-table td { padding: 10px 12px; border-bottom: 1px solid #eef2f6; vertical-align: top; font-size: 13.5px; overflow-wrap: anywhere; } .ac-table tbody tr { cursor: pointer; } .ac-table tbody tr:hover { background: #f8fbfd; } .ac-table th:nth-child(1) { width: 96px; } .ac-table th:nth-child(2) { width: 150px; } .ac-table th:nth-child(5), .ac-table th:nth-child(6) { width: 130px; } .ac-table th:nth-child(7) { width: 130px; } .nw { white-space: nowrap; } .ac-mini { font-size: 12px; color: #7a8ca0; }
.ac-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: #52627a; font-size: 13px; } .ac-pg { margin: 0 10px; }
.modal.wide.ac-modal { max-width: 1120px; width: calc(100vw - 32px); } .modal.wide.ac-modal.ac-small { max-width: 560px; width: auto; }
.ac-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 30px; align-items: start; } .ac-two > .msg { grid-column: 1 / -1; } .ac-two > .ac-r2 { grid-column: 1 / -1; } .ac-r2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 30px; align-items: start; } .ac-r2 .ac-ns { margin-top: 28px; } .ac-r2 .ac-ns-row { grid-template-columns: 1fr; }
@media (max-width: 900px) { .ac-r2 { grid-template-columns: 1fr; } .ac-r2 .ac-ns { margin-top: 10px; } }
.ac-two .ac-prow { grid-template-columns: 1fr 1fr 70px 1fr 70px 32px; } .ac-two .ac-prow > input:first-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .ac-two { grid-template-columns: 1fr; } } .ac-form h4 { margin: 18px 0 6px; color: #1f3a52; } .ac-f label, .ac-form > label { display: block; } .ac-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .ac-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ac-form input[type=text], .ac-form input[type=date], .ac-form input[type=time], .ac-form input[type=number], .ac-form input[type=search], .ac-form select, .ac-form textarea { width: 100%; box-sizing: border-box; }
.ac-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 4px; } .ac-type { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 11px; font-size: 13px; font-weight: 600; cursor: pointer; color: #1f3a52; text-align: left; } .ac-type:hover { background: var(--soft); } .ac-type.on { border-color: #3b6a9a; background: #eef5fc; box-shadow: 0 0 0 1px #3b6a9a; }
.ac-acc { position: relative; } .ac-chosen { display: flex; align-items: center; justify-content: space-between; border: 1px solid #3b6a9a; background: #eef5fc; border-radius: 8px; padding: 8px 12px; } .ac-chosen button { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: #52627a; }
.ac-dd { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px #0f172a33; max-height: 280px; overflow: auto; margin-top: 4px; } .ac-dd-i { display: flex; flex-direction: column; width: 100%; text-align: left; border: 0; background: #fff; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #eef2f6; } .ac-dd-i:hover { background: #f3f8fc; } .ac-dd-i span { color: #7a8ca0; font-size: 12px; } .ac-dd-e { padding: 12px; color: #7a8ca0; font-size: 13px; }
.ac-det { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; } .ac-det summary { cursor: pointer; font-weight: 600; color: #3b6a9a; font-size: 13.5px; } .ac-prows, .ac-prods { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; } .ac-prow { display: grid; grid-template-columns: 2fr 1fr 1fr 80px 1fr 80px 32px; gap: 6px; align-items: center; } .ac-x { border: 0; background: transparent; color: #991b1b; font-size: 18px; cursor: pointer; } .ac-addp { margin-top: 4px; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; } .ac-chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; color: #334e68; } .ac-chip:hover { background: var(--soft); } .ac-chip.on { color: #fff; border-color: transparent; background: #4a6683; } .ac-chip.on.oc-good { background: #16a34a; } .ac-chip.on.oc-bad { background: #dc2626; }
.ac-hint { font-size: 12.5px; color: #92400e; min-height: 4px; margin-top: 4px; } .ac-result { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; } .ac-ns { margin-top: 10px; background: #f8fbfd; border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px 12px; } .ac-ns-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.ac-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .ac-q { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 3px 11px; font-size: 12px; cursor: pointer; color: #3b6a9a; } .ac-q:hover { background: #eef5fc; }
.ac-shade { position: fixed; inset: 0; background: #0f172a55; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; } .ac-shade.open { opacity: 1; pointer-events: auto; }
.ac-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: #fff; z-index: 41; transform: translateX(105%); transition: transform .22s; box-shadow: -10px 0 30px #0f172a33; display: flex; flex-direction: column; } .ac-drawer.open { transform: none; }
.ac-dh { display: flex; justify-content: space-between; gap: 10px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); } .ac-dt { font-size: 13px; color: #7a8ca0; font-weight: 700; } .ac-ds { font-size: 19px; font-weight: 800; color: #1f3a52; margin: 2px 0 8px; } .ac-dc { display: flex; gap: 6px; flex-wrap: wrap; } .ac-dx { border: 0; background: transparent; font-size: 26px; cursor: pointer; color: #52627a; align-self: flex-start; }
.ac-db { flex: 1; overflow: auto; padding: 14px 20px; } .ac-dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 8px; } .ac-di { display: flex; flex-direction: column; } .ac-di span { font-size: 11.5px; color: #7a8ca0; text-transform: uppercase; letter-spacing: .3px; } .ac-di b { color: #1f3a52; font-size: 14px; }
.ac-note { white-space: pre-wrap; color: #334e68; } .ac-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 12px 0; background: #fafcfe; } .ac-bt { font-size: 12px; font-weight: 700; color: #7a8ca0; text-transform: uppercase; margin-bottom: 4px; } .ac-box.ns { background: #fffbeb; border-color: #f1dfae; } .ac-box.ns.late { background: #fef2f2; border-color: #f5c2c2; } .ac-box.ns.done { background: #f0fdf4; border-color: #bbf7d0; }
.ac-pt { width: 100%; border-collapse: collapse; font-size: 13px; } .ac-pt th { text-align: left; color: #7a8ca0; font-size: 11.5px; padding: 3px 6px; } .ac-pt td { padding: 4px 6px; border-top: 1px solid #eef2f6; } .ac-rs { font-size: 13px; padding: 3px 0; } .ac-rs span { color: #7a8ca0; font-size: 11.5px; margin-left: 8px; }
.ac-df { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); background: #f8fbfd; }
@media (max-width: 1000px) { .ac-cols { grid-template-columns: 1fr; } .ac-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ac-grid2, .ac-grid3, .ac-ns-row { grid-template-columns: 1fr; } .ac-prow { grid-template-columns: 1fr 1fr; } .ac-row { flex-wrap: wrap; } .ac-ra { width: 100%; } .ac-table th:nth-child(n+4), .ac-table td:nth-child(n+4) { display: none; } }
.cal-ns.done { color: #166534; }
/* Aktiviteler: proje tutar geçmişi */
.ac-link { border: 0; background: none; color: #3b6a9a; cursor: pointer; text-decoration: underline; padding: 0; font-size: 12px; }
.ac-hsum { font-size: 14px; margin-bottom: 8px; color: #1f3a52; } .ac-hrow { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; padding: 8px 6px; border-top: 1px solid #eef2f6; font-size: 13px; align-items: center; }
.ac-hrow.cur { background: #eef5fc; border-radius: 6px; } .ac-hrow.plan { opacity: .6; } .ac-hd { color: #52627a; white-space: nowrap; } .ac-hamt { font-weight: 700; color: #1f3a52; text-align: right; white-space: nowrap; }
.ac-delta { font-style: normal; font-size: 11.5px; font-weight: 700; margin-left: 8px; } .ac-delta.up { color: #166534; } .ac-delta.down { color: #b91c1c; }
/* Aktiviteler: hızlı ekleme */
.ac-chosen[hidden], .ac-selrow[hidden], .ac-dd[hidden], .ac-f[hidden] { display: none !important; }
.ac-selrow { display: flex; gap: 6px; align-items: stretch; } .ac-selrow select, .ac-selrow input { flex: 1; min-width: 0; }
.ac-plus { flex: none; width: 40px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 22px; line-height: 1; cursor: pointer; color: #3b6a9a; font-weight: 700; } .ac-plus:hover:not(:disabled) { background: #eef5fc; border-color: #3b6a9a; } .ac-plus:disabled { opacity: .4; cursor: not-allowed; }
.modal-bg.sub { z-index: 60; } .ac-small { max-width: 560px; }
.ac-dd-h { padding: 8px 12px; font-size: 11.5px; font-weight: 700; color: #7a8ca0; text-transform: uppercase; letter-spacing: .4px; background: #f8fbfd; border-bottom: 1px solid #eef2f6; position: sticky; top: 0; }
.ac-dd-new { display: block; width: 100%; text-align: left; border: 0; background: #eef5fc; color: #1e4a7a; font-weight: 700; padding: 10px 12px; cursor: pointer; position: sticky; bottom: 0; border-top: 1px solid #cfe0f1; } .ac-dd-new:hover { background: #dcebf8; }
/* Aktiviteler: gecikmeler */
.ac-llist { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; } .ac-lrow { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #fecaca; border-left: 4px solid #dc2626; background: #fff8f8; border-radius: 10px; padding: 10px 12px; } .ac-lw { text-align: right; flex: none; }
.cal-card.cs-fu.late, .cal-card.late.cs-fu { border-left-color: #dc2626; }
.ac-kpi.click { cursor: pointer; } .ac-kpi.click:hover { box-shadow: 0 2px 10px #4a668326; }
.cs-late { background: #fecaca; color: #991b1b; font-weight: 700; } .cal-cell.late { border-color: #f87171; background: #fff5f5; box-shadow: inset 0 3px 0 #dc2626; } .cal-cell.late.sel { background: #fee2e2; border-color: #dc2626; }
.cal-card.late { border-left-color: #dc2626; background: #fff5f5; } .ac-late { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #dc2626; color: #fff; }
.cal-lateout { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 7px 12px; font-size: 13px; margin-bottom: 10px; }
.cal-lj { border: 1px solid #fca5a5; background: #fff; color: #991b1b; border-radius: 99px; padding: 2px 10px; font-size: 12px; cursor: pointer; font-weight: 600; } .cal-lj:hover { background: #fee2e2; }
/* Aktiviteler: takvim */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 16px; align-items: start; }
.cal-panel, .cal-detail { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .cal-head h3 { flex: 1; text-align: center; margin: 0; font-size: 18px; color: #1f3a52; } .cal-tdy { margin-left: 4px; }
.cal-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; } .cal-wd span { text-align: center; font-size: 12px; font-weight: 700; color: #7a8ca0; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { min-height: 104px; border: 1px solid #e5ebf1; border-radius: 10px; padding: 6px 7px; cursor: pointer; background: #fff; display: flex; flex-direction: column; gap: 3px; overflow: hidden; } .cal-cell.empty { border: 0; background: transparent; cursor: default; }
.cal-cell:hover { border-color: #9db4cb; } .cal-cell.wk { background: #f8fafc; } .cal-cell.hol { background: #fff5f5; } .cal-cell.today { border-color: #3b82c4; box-shadow: inset 0 0 0 1px #3b82c4; } .cal-cell.sel { background: #eef5fc; border-color: #3b6a9a; box-shadow: 0 0 0 2px #3b6a9a55; }
.cal-dn { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #1f3a52; } .cal-dn span { flex: none; } .cal-hd { color: #dc2626; font-size: 9px; font-style: normal; }
.cal-add { margin-left: auto; border: 0; background: #4a6683; color: #fff; width: 20px; height: 20px; line-height: 18px; border-radius: 50%; font-size: 15px; cursor: pointer; opacity: 0; transition: opacity .12s; padding: 0; } .cal-cell:hover .cal-add, .cal-cell.sel .cal-add { opacity: 1; }
.cal-chip { font-size: 11.5px; padding: 2px 6px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .cal-more { font-size: 11px; color: #7a8ca0; }
.cs-planned { background: #dbeafe; color: #1e40af; } .cs-postponed { background: #ffedd5; color: #9a3412; } .cs-done { background: #dcfce7; color: #166534; } .cs-cancelled { background: #fee2e2; color: #991b1b; text-decoration: line-through; } .cs-fu { background: #fef3c7; color: #92400e; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: #52627a; } .cal-legend span { display: inline-flex; align-items: center; gap: 5px; } .cal-lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; text-decoration: none; } .ac-hint-g { font-size: 12px; color: #7a8ca0; margin-top: 8px; }
.cal-dh { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; } .cal-dh h3 { margin: 0; font-size: 20px; color: #1f3a52; } .cal-hol { background: #fff5f5; border: 1px solid #fecaca; color: #991b1b; border-radius: 8px; padding: 7px 12px; font-size: 13px; margin-bottom: 10px; }
.cal-card { border: 1px solid var(--line); border-left: 4px solid #94a3b8; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; } .cal-card.cs-planned { border-left-color: #2563eb; background: #fff; color: inherit; text-decoration: none; } .cal-card.cs-postponed { border-left-color: #ea580c; background: #fff; color: inherit; } .cal-card.cs-done { border-left-color: #16a34a; background: #fff; color: inherit; } .cal-card.cs-cancelled { border-left-color: #dc2626; background: #fff; color: inherit; opacity: .6; text-decoration: none; } .cal-card.cs-fu { border-left-color: #d97706; background: #fffdf5; color: inherit; }
.cal-ct { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: #1f3a52; } .cal-ic { font-size: 18px; } .cal-tm { margin-left: auto; font-size: 12px; color: #7a8ca0; } .cal-sj { color: #334e68; font-size: 13.5px; margin-top: 3px; } .cal-res { font-size: 13px; color: #52627a; margin-top: 6px; max-height: 4.6em; overflow: hidden; }
.cal-ns { font-size: 12.5px; color: #92400e; margin-top: 5px; } .cal-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; } .cal-fuh { font-size: 12px; font-weight: 700; color: #92400e; text-transform: uppercase; letter-spacing: .4px; margin: 14px 0 8px; }
@media (max-width: 1100px) { .cal-layout { grid-template-columns: 1fr; } } @media (max-width: 640px) { .cal-cell { min-height: 58px; padding: 4px; } .cal-chip { font-size: 0; padding: 0; width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 2px; } .cal-more { display: none; } .cal-add { display: none; } }
/* Dashboard */
.db-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; } .db-head h2 { margin: 0; } .db-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .db-tools select { width: auto; } .db-yl { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.db-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.db-kpi { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; position: relative; overflow: hidden; box-shadow: 0 1px 3px #4a66831a; } .db-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, #94a3b8); }
.db-ki { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 25px; background: var(--bg, #eef2f7); flex: none; } .db-kb { min-width: 0; }
.db-kl { font-size: 12.5px; font-weight: 700; color: #52627a; text-transform: uppercase; letter-spacing: .4px; } .db-kv { font-size: 30px; font-weight: 800; color: var(--c, #1f3a52); line-height: 1.15; margin: 2px 0; white-space: nowrap; } .db-kf { font-size: 12px; color: #7a8ca0; } .db-kc { font-size: 12.5px; color: #52627a; margin-top: 4px; } .db-kc span { color: #7a8ca0; }
.db-kpi.k-disc { --c: #4a6683; --bg: #eaf0f6; } .db-kpi.k-act { --c: #d97706; --bg: #fef3c7; } .db-kpi.k-won { --c: #16a34a; --bg: #dcfce7; } .db-kpi.k-lost { --c: #dc2626; --bg: #fee2e2; }
.db-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 1px 3px #4a66831a; } .db-ch { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; color: #1f3a52; font-size: 15px; } .db-ch.wrap { flex-wrap: wrap; } .db-chr { display: flex; gap: 12px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.db-chip { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 99px; background: #e5e7eb; } .db-chip.ok { background: #dcfce7; color: #166534; } .db-chip.bad { background: #fee2e2; color: #991b1b; }
.db-bar { display: flex; height: 18px; border-radius: 99px; overflow: hidden; background: #eef2f6; gap: 2px; } .db-seg { min-width: 6px; } .sg-act, .db-leg i.sg-act { background: #f59e0b; } .sg-won, .db-leg i.sg-won { background: #16a34a; } .sg-lost, .db-leg i.sg-lost { background: #dc2626; } .sg-oth, .db-leg i.sg-oth { background: #94a3b8; }
.db-leg { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: #52627a; } .db-leg span { display: inline-flex; align-items: center; gap: 6px; } .db-leg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.db-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; } .db-lists .db-card { margin-bottom: 14px; padding: 0; overflow: hidden; }
.db-lh { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f4f8fb; border-bottom: 1px solid var(--line); color: #1f3a52; } .db-list.dl-late .db-lh { background: #fef2f2; color: #991b1b; } .db-list.dl-today .db-lh { background: #eef5fc; } .db-list.dl-up .db-lh { background: #f0fdf4; color: #166534; }
.db-cnt { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 0 9px; font-size: 12px; font-weight: 700; color: #1f3a52; } .db-lb { max-height: 440px; overflow: auto; }
.db-row { display: flex; align-items: center; gap: 11px; padding: 10px 16px; border-bottom: 1px solid #eef2f6; cursor: pointer; } .db-row:last-child { border-bottom: 0; } .db-row:hover { background: #f8fbfd; } .db-row.late { background: #fff8f8; }
.db-ri { width: 34px; height: 34px; border-radius: 9px; background: #eef2f7; display: grid; place-items: center; font-size: 17px; flex: none; } .db-rm { flex: 1; min-width: 0; } .db-rt { font-weight: 700; color: #1f3a52; font-size: 13.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .db-rs { color: #7a8ca0; font-size: 12px; } .db-rj { color: #334e68; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-rw { text-align: right; flex: none; } .db-rw b { display: block; font-size: 12.5px; color: #1f3a52; } .db-rw span { font-size: 11px; color: #7a8ca0; } .db-rw.late b { color: #b91c1c; } .db-empty { padding: 20px 16px; color: #7a8ca0; font-size: 13.5px; }
.db-sums { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .db-sc { display: inline-flex; flex-direction: column; border-radius: 10px; padding: 6px 14px; font-size: 12.5px; background: #eef2f7; color: #334e68; } .db-sc small { font-weight: 700; font-size: 11.5px; }
.db-sc.s-act { background: #fef3c7; color: #92400e; } .db-sc.s-won { background: #dcfce7; color: #166534; } .db-sc.s-lost { background: #fee2e2; color: #991b1b; } .db-sc.s-pas { background: #e5e7eb; color: #4b5563; }
.db-search { width: 240px; } .db-tscroll { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.db-table { width: 100%; border-collapse: collapse; font-size: 13px; } .db-table th { text-align: left; position: sticky; top: 0; background: #f4f8fb; color: #7a8ca0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .3px; padding: 9px 11px; border-bottom: 1px solid var(--line); z-index: 1; } .db-table td { padding: 9px 11px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
.db-ptable tbody tr:hover { background: #f8fbfd; } .db-ptable tr.pr-passive, .db-ptable tr.pr-lost { opacity: .85; } .db-ptable tr.pr-won td:first-child { box-shadow: inset 3px 0 0 #16a34a; } .db-ptable tr.pr-lost td:first-child { box-shadow: inset 3px 0 0 #dc2626; } .db-ptable tr.pr-ongoing td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.db-pst { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; } .pst-ongoing { background: #fef3c7; color: #92400e; } .pst-won, .pst-pos { background: #dcfce7; color: #166534; } .pst-lost, .pst-neg { background: #fee2e2; color: #991b1b; } .pst-pas { background: #e5e7eb; color: #4b5563; }
@media (max-width: 1200px) { .db-kpis { grid-template-columns: repeat(2, 1fr); } .db-lists { grid-template-columns: 1fr; } } @media (max-width: 640px) { .db-kpis { grid-template-columns: 1fr; } .db-search { width: 100%; } .db-kv { font-size: 26px; } }
.db-toolrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; } .db-toolrow .db-sums { margin: 0; } .db-chr { margin-left: auto; justify-content: flex-end; }
.db-kx { margin-top: 8px; font-size: 12px; color: #52627a; } .db-kpbar { height: 6px; border-radius: 99px; background: #eef2f6; overflow: hidden; margin-bottom: 4px; } .db-kpbar i { display: block; height: 100%; border-radius: 99px; background: var(--c, #94a3b8); }
.ac-rem { margin: 4px 0 8px; padding: 10px 12px; background: #fffdf5; border: 1px solid #f1dfae; border-radius: 10px; } .ac-rem label { margin-top: 0; }
.db-hero { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 14px; align-items: stretch; margin-bottom: 14px; } .db-hero .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.db-rem { padding: 0; overflow: hidden; margin: 0; display: flex; flex-direction: column; } .db-rem .db-lh { background: #fffbeb; color: #92400e; } .db-rem .db-lb { max-height: 330px; } .db-rw.soon b { color: #b45309; }
@media (max-width: 1200px) { .db-hero { grid-template-columns: 1fr; } }
.db-rg-hint { margin-left: auto; font-size: 12px; color: #7a8ca0; font-weight: 400; }
.db-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-bottom: 14px; }
.db-topc { border: 1px solid #e3eaf1; border-top: 3px solid #3b82c4; border-radius: 10px; padding: 10px 12px; background: #fff; } .db-topc.won { border-top-color: #16a34a; } .db-topc.lost { border-top-color: #dc2626; } .db-topc.proj { border-top-color: #d97706; }
.db-topt { font-size: 12px; font-weight: 700; color: #52627a; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.db-topr { display: grid; grid-template-columns: 20px 1fr auto; gap: 2px 8px; align-items: baseline; padding: 4px 0; border-top: 1px dashed #edf1f5; } .db-topr:first-of-type { border-top: 0; }
.db-rk { font-weight: 700; color: #94a3b8; } .db-tl { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .db-tv { font-size: 12.5px; color: #3b4a5e; white-space: nowrap; } .db-tw { grid-column: 2 / 4; font-size: 11.5px; color: #7a8ca0; }
.db-tscroll.rg { max-height: 380px; overflow: auto; } .rg-bar { display: inline-block; width: 70px; height: 6px; border-radius: 99px; background: #eef2f6; overflow: hidden; vertical-align: middle; margin-right: 8px; } .rg-bar i { display: block; height: 100%; background: #3b82c4; border-radius: 99px; }
.rg-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 600; } .rg-tag.out { background: #fef3c7; color: #92400e; } .rg-tag.none { background: #eef2f6; color: #64748b; } .rg-tag.plan { background: #dbeafe; color: #1d4ed8; }
.rg-empty { opacity: .65; } td.rg-act b { color: #b45309; } td.rg-lost b { color: #b91c1c; } td.rg-won b { color: #15803d; } td.rg-act small, td.rg-lost small, td.rg-won small { display: block; font-size: 11px; color: #7a8ca0; }
.db-travel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; margin-bottom: 14px; border: 1px solid #cfe0f1; border-left: 4px solid #3b82c4; border-radius: 10px; background: #f4f9fe; color: #1f3a52; text-decoration: none; } .db-travel:hover { background: #eaf3fc; }
.db-ti { font-size: 18px; } .db-tp { font-weight: 600; } .db-td { color: #52627a; font-size: 13px; } .db-tw { margin-left: auto; padding: 2px 12px; border-radius: 99px; background: #dbeafe; color: #1d4ed8; font-weight: 700; font-size: 12.5px; } .db-tw.on { background: #dcfce7; color: #15803d; }
/* Seyahatler */
.sy-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; } .sy-tabs button { border: 1px solid #d5dee8; background: #fff; border-radius: 99px; padding: 7px 16px; font-weight: 600; color: #4a6683; cursor: pointer; } .sy-tabs button.on { background: #4a6683; color: #fff; border-color: #4a6683; }
.sy-badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef2f6; color: #52627a; } .sy-badge.pending { background: #fef3c7; color: #92400e; } .sy-badge.approved { background: #dcfce7; color: #15803d; } .sy-badge.rejected { background: #fee2e2; color: #b91c1c; } .sy-badge.cancelled { background: #e5e7eb; color: #6b7280; } .sy-badge.completed { background: #dbeafe; color: #1d4ed8; } .sy-badge.draft { background: #f1f5f9; color: #64748b; }
.sy-sub { font-size: 12px; color: #7a8ca0; } .sy-sub.rej { color: #b91c1c; } .sy-fl { margin-left: auto; } .sy-new { margin-left: auto; }
.sy-acts { display: flex; flex-wrap: wrap; gap: 6px; } .btn.sy-sm { padding: 4px 10px; font-size: 12.5px; } .btn.sy-danger { color: #b91c1c; border-color: #fecaca; }
.sy-unread { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #dc2626; color: #fff; font-size: 11px; font-style: normal; line-height: 18px; text-align: center; }
.sy-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 10px; border: 1px solid #dbe4ec; border-left: 4px solid #3b82c4; border-radius: 10px; background: #f4f8fc; } .sy-banner.on { border-left-color: #16a34a; background: #f2fbf5; } .sy-bl { font-size: 12px; font-weight: 700; color: #52627a; text-transform: uppercase; letter-spacing: .03em; }
.modal.xl.sy-modal { max-width: 1100px; } .sy-form h4, .sy-detail h4, .sy-journal h4 { margin: 18px 0 6px; color: #1f3a52; } .sy-hint { font-size: 12px; color: #7a8ca0; margin-bottom: 4px; }
.sy-row { position: relative; padding: 10px 34px 10px 10px; margin-bottom: 8px; border: 1px solid #e3eaf1; border-radius: 10px; background: #fafcfe; }
.sy-g2, .sy-g3, .sy-g4, .sy-g5 { display: grid; gap: 8px; margin-bottom: 6px; } .sy-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sy-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sy-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sy-g5 { grid-template-columns: 1.1fr 1fr 130px 130px 1.6fr; }
.sy-form input, .sy-form select, .sy-form textarea, .sy-journal input, .sy-journal textarea { width: 100%; box-sizing: border-box; } .sy-f label { display: block; font-size: 12px; margin-bottom: 2px; }
.sy-rm, .sy-x2 { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: #b91c1c; font-size: 16px; cursor: pointer; } .sy-x2 { position: static; margin-left: 8px; }
.sy-contacts { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 2px 0 6px; } .sy-cl { font-size: 12px; font-weight: 700; color: #52627a; }
.sy-picker { position: relative; } .sy-chip { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border: 1px solid #cbd6e2; border-radius: 8px; background: #fff; } .sy-chip[hidden], .sy-picker input[hidden] { display: none; }
.sy-dd { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid #cbd6e2; border-radius: 8px; box-shadow: 0 8px 24px rgba(31, 58, 82, .15); max-height: 240px; overflow: auto; } .sy-dd[hidden] { display: none; }
.sy-opt { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: #fff; cursor: pointer; } .sy-opt:hover { background: #eef5fc; } .sy-opt span { color: #7a8ca0; font-size: 12px; } .sy-none { padding: 10px; color: #7a8ca0; }
.sy-total { margin: 10px 0; font-weight: 700; color: #1f3a52; text-align: right; }
.sy-dh { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; } .sy-list { margin: 0; padding-left: 18px; } .sy-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 16px; margin-bottom: 8px; }
.sy-info { display: flex; flex-direction: column; font-size: 13px; } .sy-info span { font-size: 11.5px; color: #7a8ca0; } .sy-cost { max-width: 360px; } .sy-cost tr.tot td { font-weight: 700; border-top: 2px solid #cbd6e2; }
.sy-thread { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; } .sy-msg { max-width: 82%; padding: 8px 12px; border-radius: 10px; background: #f1f5f9; } .sy-msg.me { align-self: flex-end; background: #e6f1fb; } .sy-mh { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; color: #52627a; margin-bottom: 2px; }
.sy-vcard { padding: 12px 14px; margin-bottom: 12px; border: 1px solid #dbe4ec; border-left: 4px solid #4a6683; border-radius: 10px; background: #fff; } .sy-vcard.extra { border-left-color: #d97706; } .sy-vh { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; } .sy-vcard label { font-size: 12px; font-weight: 700; color: #52627a; margin-top: 8px; display: block; }
.sy-vb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; } .sy-flash { color: #15803d; font-weight: 600; font-size: 13px; } .sy-pre { white-space: pre-wrap; } .sy-rep { margin: 8px 0; }
.sy-extra { margin: 6px 0 12px; padding: 8px 12px; border: 1px dashed #cbd6e2; border-radius: 10px; } .sy-extra summary { cursor: pointer; font-weight: 600; color: #4a6683; }
.sy-media { margin-top: 8px; } .sy-mi { position: relative; display: inline-block; } .sy-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .65); color: #fff; cursor: pointer; line-height: 24px; padding: 0; }
@media (max-width: 800px) { .sy-g2, .sy-g3, .sy-g4, .sy-g5 { grid-template-columns: 1fr; } .sy-msg { max-width: 100%; } }
/* Seyahat formu ve günlüğü (eski CRM düzeni) */
.modal.xl.sy-modal { max-width: 980px; }
.sy-sec { margin-bottom: 18px; padding: 18px 20px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(17, 24, 39, .05); }
.sy-sec h3 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #3b5878; display: flex; align-items: center; gap: 8px; }
.sy-form label { font-size: 12px; margin-top: 4px; display: block; } .sy-form textarea, .sy-form select, .sy-form input[type="text"], .sy-form input[type="date"], .sy-journal textarea { width: 100%; box-sizing: border-box; }
.sy-note { margin: -6px 0 14px; }
.sy-drow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; gap: 10px; align-items: start; padding: 12px; margin-bottom: 10px; background: #fff; border: 1px solid #d5e0ec; border-left: 4px solid #4a6683; border-radius: 8px; box-shadow: 0 1px 2px rgba(17, 24, 39, .04); }
.sy-col { display: flex; flex-direction: column; gap: 10px; } .sy-drow .sy-wide { grid-column: 1 / 3; } .sy-drow .sy-rm2 { grid-column: 3; grid-row: 1; }
.sy-rm2 { background: #fee2e2; color: #b91c1c; border: 0; border-radius: 8px; width: 30px; height: 38px; font-size: 18px; cursor: pointer; }
.sy-warn { grid-column: 1 / -1; display: none; margin-top: 6px; padding: 6px 10px; border-radius: 6px; background: #fee2e2; color: #b91c1c; font-size: 12.5px; font-weight: 700; } .sy-warn.active { display: block; } .sy-sec > .sy-warn { margin-top: 10px; }
.sy-vrow2 { position: relative; padding-right: 46px !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; padding: 12px; margin-bottom: 10px; background: #fff; border: 1px solid #e5e7eb; border-left: 4px solid #0f766e; border-radius: 8px; box-shadow: 0 1px 2px rgba(17, 24, 39, .04); }
.sy-vrow2 .sy-ctc { grid-column: 1 / 4; } .sy-vrow2 .sy-rm2 { position: absolute; top: 12px; right: 10px; } .sy-vrow2 .sy-warn { grid-column: 1 / 4; }
.sy-ctc .sy-contacts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0; } .sy-addrow { border: 1px dashed #9db3c9; background: #f6f9fc; color: #3b6a9a; border-radius: 8px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; margin-top: 2px; } .sy-addrow:disabled { opacity: .5; cursor: default; }
.sy-selrow { display: flex; gap: 6px; align-items: flex-start; } .sy-selrow .sy-picker { flex: 1; min-width: 0; } .sy-plus { flex: none; width: 40px; height: 38px; border: 1px solid #cbd6e2; background: #fff; border-radius: 8px; font-size: 22px; line-height: 1; cursor: pointer; color: #3b6a9a; font-weight: 700; }
.sy-costrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 18px; } .sy-costrow .sy-sec { margin-bottom: 0; }
.sy-totalbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 16px; padding: 14px 20px; background: #1f3a52; border-radius: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #d1d9e2; } .sy-totalbar strong { color: #fbbf24; font-size: 22px; letter-spacing: normal; text-transform: none; font-weight: 800; }
.sy-tdhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; } .sy-tdtitle { font-size: 20px; font-weight: 800; color: #1f3a52; } .sy-hact { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sy-day { margin-top: 16px; } .sy-day > h4 { margin: 0 0 8px; padding: 6px 12px; background: #e8eef5; color: #1f3a52; border-radius: 8px; font-size: 13.5px; }
.sy-visit { padding: 12px 14px; margin-bottom: 10px; border: 1px solid #e5e7eb; border-left: 4px solid #4a6683; border-radius: 8px; background: #fff; } .sy-visit label { font-size: 12px; font-weight: 700; color: #52627a; margin-top: 10px; display: block; } .sy-vhead { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sy-people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; } .sy-people .sy-contacts { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.sy-jact { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; } .sy-upl { margin: 0; cursor: pointer; display: inline-block; } .btn.sy-save { background: #0f766e; border-color: #0f766e; }
.sy-status { font-size: 12.5px; color: #6b7280; } .sy-status.saved { color: #047857; font-weight: 800; background: #d1fae5; padding: 4px 10px; border-radius: 6px; } .sy-status.error { color: #b91c1c; font-weight: 800; background: #fee2e2; padding: 4px 10px; border-radius: 6px; }
.sy-jl { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #6b7280; margin-top: 8px; } .sy-read { white-space: pre-wrap; margin: 2px 0 6px; }
.sy-mgrid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; } .sy-mitem { position: relative; width: 200px; } .sy-mitem img, .sy-mitem video { width: 200px; height: 140px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb; background: #000; } .sy-mitem img { cursor: zoom-in; } .sy-mname { font-size: 11px; color: #6b7280; margin-top: 3px; word-break: break-all; } .sy-mname span { color: #9ca3af; }
.sy-mdel { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(15, 23, 42, .7); color: #fff; border: 0; cursor: pointer; line-height: 22px; padding: 0; font-size: 16px; }
.sy-jpanel { margin-top: 18px; padding: 14px 16px; background: #f6f9fc; border: 1px solid #d5e0ec; border-radius: 10px; } .sy-jpanel h4 { margin: 0 0 8px; color: #1f3a52; } .sy-jpanel.msgs { background: #f0f9ff; border-color: #bae6fd; } .sy-jpanel.msgs h4 { color: #0369a1; }
.sy-msgs { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; } .sy-jmsg { max-width: 85%; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid #e5e7eb; } .sy-jmsg.mine { align-self: flex-end; background: #dbeafe; border-color: #bfdbfe; }
.sy-jmeta { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #6b7280; margin-bottom: 2px; } .sy-jtext { white-space: pre-wrap; font-size: 13.5px; color: #111827; } .sy-empty { padding: 14px 0; }
.sy-gallery { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; } .sy-gallery img { max-width: 88vw; max-height: 88vh; border-radius: 6px; }
.sy-gx, .sy-gp, .sy-gn { position: absolute; border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 28px; line-height: 44px; } .sy-gx { top: 16px; right: 20px; } .sy-gp { left: 18px; top: 50%; } .sy-gn { right: 18px; top: 50%; } .sy-gcount { position: absolute; bottom: 16px; color: #e5e7eb; font-size: 13px; }
@media (max-width: 900px) { .sy-costrow, .sy-people, .sy-vrow2 { grid-template-columns: 1fr; } .sy-vrow2 .sy-ctc, .sy-vrow2 .sy-warn { grid-column: auto; } .sy-drow { grid-template-columns: 1fr 34px; } .sy-drow .sy-wide { grid-column: 1 / 3; } }
.sy-clist { border: 1px solid #dbe4ec; border-radius: 8px; overflow: hidden; background: #fff; } .sy-clist .sy-crow { display: grid; grid-template-columns: 22px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; margin: 0; padding: 7px 12px; border-bottom: 1px solid #eef2f6; font-size: 13px; cursor: pointer; } .sy-clist .sy-crow:last-child { border-bottom: 0; } .sy-clist .sy-crow:hover { background: #f4f8fc; }
.sy-crow input { margin: 0; } .sy-crow .cn { font-weight: 600; color: #1f3a52; } .sy-crow .ct { color: #7a8ca0; font-size: 12px; } .sy-crow .cp { color: #52627a; font-size: 12.5px; white-space: nowrap; }
.sy-vrow2 .sy-ctc .sy-contacts, .sy-people .sy-contacts { display: block; } .sy-mapbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; } .sy-map { height: 480px; border-radius: 10px; border: 1px solid #dbe4ec; overflow: hidden; } .sy-mapinfo { margin-bottom: 8px; }
.cal-chip.cs-trip { background: #ede9fe; color: #5b21b6; border-left: 3px solid #7c3aed; } .cal-chip.cs-trip.pend { background: #fef3c7; color: #92400e; border-left-color: #d97706; } .cal-lg.cs-trip { background: #7c3aed; }
.cal-card.trip { border-left: 5px solid #7c3aed; background: #f5f3ff; } .cal-card.trip.pending { border-left-color: #d97706; background: #fffbeb; } .cal-card.trip.done { border-left-color: #15803d; background: #f0fdf4; }
@media (max-width: 700px) { .sy-clist .sy-crow { grid-template-columns: 22px 1fr; } .sy-crow .ct, .sy-crow .cp { grid-column: 2; } }
.sy-topbar { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; } .sy-topbar .sy-new { margin-left: auto; } .sy-gsub { margin-left: 10px; font-weight: 400; }
.sy-group { border-top: 4px solid #cbd6e2; margin-bottom: 14px; } .sy-group.draft { border-top-color: #64748b; } .sy-group.pending { border-top-color: #d97706; } .sy-group.upcoming { border-top-color: #3b82c4; } .sy-group.overdue { border-top-color: #dc2626; } .sy-group.done { border-top-color: #16a34a; } .sy-group.closed { border-top-color: #94a3b8; }
.sy-costs { border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 14px; } .sy-trow { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; } .sy-trow span { color: #6b7280; } .sy-trow.tot { border-bottom: 0; font-size: 15px; } .sy-trow.tot span { color: #1f3a52; font-weight: 700; }
.sy-decision { color: #4b5563; font-size: 13px; } .sy-decide { margin-top: 14px; padding: 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; } .sy-decide .acts { margin-top: 10px; display: flex; justify-content: flex-end; gap: 8px; } .sy-decide input, .sy-decide textarea { width: 100%; box-sizing: border-box; }
.sy-nthread { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; } .sy-note2 { padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fafafa; } .sy-nh { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: #6b7280; margin-bottom: 3px; } .sy-nm { font-size: 13.5px; color: #111827; white-space: pre-wrap; } .sy-changes { margin: 4px 0 0; padding-left: 18px; } .sy-changes li { margin-bottom: 2px; }
.sy-cline { margin-bottom: 6px; } .sy-cline:last-child { margin-bottom: 0; } .sy-detail .sy-pre { white-space: pre-wrap; word-break: break-word; }
/* Yazdırma / PDF: eski CRM'deki resmi form düzeni */
#print-root { display: none; }
@page { size: A4; margin: 16mm 0 20mm 0; @bottom-left { content: "Novawood CRM"; font-size: 9px; color: #6b7280; font-family: Arial, sans-serif; padding-left: 18mm; } @bottom-right { content: "Sayfa " counter(page) " / " counter(pages); font-size: 9px; color: #6b7280; font-family: Arial, sans-serif; padding-right: 18mm; } }
@page :first { margin-top: 0; }
.pv .pv-h2, .pv h2 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #3b5269; margin: 20px 0 8px; break-after: avoid; } .pv .note-link { margin-top: 6px; color: #3b6a9a; word-break: break-all; } .pv .note-msg.rt-show { white-space: pre-wrap; }
.pv { font-family: "Segoe UI", Arial, sans-serif; color: #111827; padding: 0 18mm; font-size: 13px; line-height: 1.5; -webkit-print-color-adjust: exact; print-color-adjust: exact; background: #fff; }
.pv * { box-sizing: border-box; }
.pv-top { display: flex; justify-content: space-between; align-items: center; background: var(--brand); padding: 16px 18mm; margin: 0 -18mm; } .pv-top img { height: 30px; } .pv-top .doc { color: #fff; font-weight: 700; letter-spacing: .14em; font-size: 12px; }
.pv-accent { height: 4px; background: linear-gradient(90deg, #4b5563, #d1d5db); margin: 0 -18mm 20px; }
.pv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; } .pv-head h1 { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: #111827; } .pv-head .meta div { margin: 2px 0; } .pv-head .k, .pv .k { color: #6b7280; }
.pv-head .status { text-align: right; } .pv-head .status .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; } .pv-head .status .val { font-size: 18px; font-weight: 800; margin-top: 2px; }
.pv-hr, .pv-head + hr { border: 0; border-top: 2px solid #dbe4ec; margin: 18px 0; } .pv hr { border: 0; border-top: 2px solid #dbe4ec; margin: 18px 0; } .pv h2 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #3b5269; margin: 0 0 8px; break-after: avoid; }
.pv table { width: 100%; border-collapse: collapse; table-layout: fixed; } .pv thead th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: #4b5563; background: #eef2f6; padding: 8px 10px; border-bottom: 2px solid #cbd6e2; }
.pv tbody td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; vertical-align: top; word-break: break-word; } .pv tbody tr { break-inside: avoid; page-break-inside: avoid; } .pv table:not(.visits):not(.cost) tbody tr:nth-child(even) td { background: #fafafa; } .pv .pre { white-space: pre-wrap; }
.pv th.w9 { width: 9%; } .pv th.w13 { width: 13%; } .pv th.w18 { width: 18%; } .pv th.w21 { width: 21%; } .pv th.w24 { width: 24%; } .pv th.w32 { width: 32%; } .pv .sub { font-size: 10.5px; color: #6b7280; }
.pv table.visits tbody.v-group { break-inside: avoid; page-break-inside: avoid; } .pv table.visits tbody.v-group.alt td { background: #fafafa; } .pv table.visits .v-row td { border-bottom: none; padding-bottom: 2px; } .pv table.visits .note-row td { font-size: 10.5px; color: #6b7280; padding: 0 10px 7px 10px; } .pv .note-label { color: #4a6683; font-weight: 700; }
.pv table.cost th.k { width: 27%; text-align: left; font-size: 12px; color: #374151; background: #f9fafb; padding: 9px 10px; border-bottom: 1px solid #e5e7eb; vertical-align: top; } .pv table.cost td { padding: 9px 10px; border-bottom: 1px solid #e5e7eb; } .pv .sep { color: #9ca3af; margin: 0 8px; }
.pv .total { display: flex; justify-content: flex-end; margin-top: 12px; } .pv .total div { background: #eef2f6; border: 1px solid #b8c7d6; border-radius: 8px; padding: 8px 18px; font-size: 15px; } .pv .total strong { color: #3b5269; font-size: 19px; margin-left: 8px; }
.pv .decision { margin-top: 16px; padding: 10px 14px; border: 1px solid #e5e7eb; border-left: 4px solid #6b7280; border-radius: 6px; background: #fafafa; break-inside: avoid; } .pv .decision .gap { margin-left: 26px; } .pv .decision div { margin: 2px 0; }
.pv .note-item { padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fafafa; margin-bottom: 8px; break-inside: avoid; } .pv .note-head { font-size: 11.5px; color: #6b7280; margin-bottom: 3px; } .pv .note-msg { white-space: pre-wrap; } .pv .sy-changes { margin: 4px 0 0; padding-left: 18px; }
.pv .sign { display: flex; justify-content: space-between; gap: 60px; margin-top: 56px; break-inside: avoid; } .pv .sign div { width: 44%; border-top: 1px solid #6b7280; padding-top: 6px; color: #374151; font-size: 12px; } .pv .sign .r { text-align: right; } .pv section { break-inside: avoid; page-break-inside: avoid; }
.pv .muted { color: #9ca3af; } .pv .tag { display: inline-block; font-size: 10px; font-weight: 700; color: #b45309; background: #fef3c7; padding: 1px 8px; border-radius: 999px; }
.pv .stats { display: flex; gap: 10px; } .pv .stat { flex: 1; border: 1px solid #e5e7eb; border-top: 3px solid #4a6683; border-radius: 8px; padding: 8px 10px; text-align: center; } .pv .stat b { display: block; font-size: 20px; color: #3b5269; } .pv .stat span { font-size: 10.5px; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.pv .day { margin-top: 18px; } .pv .day.long, .pv .visit.long { break-inside: auto; page-break-inside: auto; } .pv .day-head { display: flex; justify-content: space-between; align-items: center; background: #eef2f6; border-left: 5px solid #4a6683; padding: 7px 12px; border-radius: 0 6px 6px 0; margin-bottom: 6px; break-after: avoid; } .pv .day-no { font-weight: 800; color: #3b5269; font-size: 13px; } .pv .day-date { color: #4b5563; font-weight: 600; }
.pv .visit { margin-top: 10px; padding: 10px 12px; border: 1px solid #e5e7eb; border-left: 4px solid #7f97b0; border-radius: 6px; break-inside: avoid; } .pv .visit-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; break-after: avoid; } .pv .v-customer { font-size: 15px; font-weight: 800; } .pv .v-place { font-size: 12px; color: #6b7280; }
.pv .v-info { display: flex; gap: 20px; margin-bottom: 8px; } .pv .v-info > div { flex: 1; } .pv .lbl { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin-bottom: 2px; } .pv .v-notes { padding: 10px 12px; background: #f4f7fa; border-radius: 6px; } .pv .notes-text { font-size: 13.5px; line-height: 1.6; }
.pv .media { margin-top: 10px; break-inside: avoid; } .pv .media-title { font-size: 10.5px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; } .pv .photos { display: flex; flex-wrap: wrap; gap: 8px; } .pv .ph { width: calc(33.333% - 6px); height: 135px; border-radius: 6px; overflow: hidden; border: 1px solid #e5e7eb; break-inside: avoid; } .pv .ph img { width: 100%; height: 100%; object-fit: cover; display: block; } .pv .video { font-size: 11.5px; color: #4b5563; margin-top: 6px; }
.pv .summary { padding: 12px 16px; background: #f4f7fa; border: 1px solid #cbd6e2; border-left: 4px solid #4a6683; border-radius: 6px; } .pv .summary p { white-space: pre-wrap; margin: 4px 0 0; }
@media print { body.printing > *:not(#print-root) { display: none !important; } body.printing #print-root { display: block !important; } body.printing { background: #fff; margin: 0; } }
/* Kronoloji raporları */
.tl-gtop { display: flex; justify-content: flex-end; margin-bottom: 8px; } .tl-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; } .tl-f { min-width: 180px; } .tl-f.tl-fw { flex: 1; min-width: 260px; } .tl-f label { display: block; font-size: 12px; margin-bottom: 3px; } .tl-f input, .tl-f select { width: 100%; box-sizing: border-box; } .tl-results { margin-top: 14px; }
.tl-gbtn.unread, .tl-tbtn.unread { border-color: #fca5a5; background: #fee2e2; color: #b91c1c; }
.tl-line { position: relative; padding: 20px 0; } .tl-line::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #cbd6e2; border-radius: 3px; }
.tl-node { position: relative; width: 50%; padding: 0 32px 28px; box-sizing: border-box; } .tl-node.l { left: 0; text-align: right; } .tl-node.r { left: 50%; text-align: left; }
.tl-dot { position: absolute; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #4a6683; border: 3px solid #fff; box-shadow: 0 0 0 2px #4a6683; } .tl-node.l .tl-dot { right: -8px; } .tl-node.r .tl-dot { left: -8px; }
.tl-card { display: inline-block; background: #fafcfe; border: 1px solid #dbe4ec; border-radius: 10px; padding: 12px 14px; max-width: 480px; width: 100%; box-sizing: border-box; text-align: left; } .tl-date { font-weight: 700; font-size: 12.5px; color: #3b5269; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.tl-entry { display: flex; gap: 8px; padding: 6px 0; border-top: 1px solid #eef2f6; } .tl-entry:first-of-type { border-top: 0; padding-top: 0; } .tl-ic { font-size: 16px; line-height: 1.4; flex-shrink: 0; } .tl-et { font-weight: 600; font-size: 13.5px; color: #111827; } .tl-ed { font-size: 12.5px; color: #52627a; margin-top: 2px; }
.tl-entry.leave .tl-et { color: #92650f; } .tl-entry.cancelled .tl-et { color: #b91c1c; } .tl-entry.done .tl-et { color: #15803d; } .tl-entry.travel .tl-et, .tl-entry.visit .tl-et { color: #1d4ed8; } .tl-entry.market .tl-et, .tl-entry.knowledge .tl-et { color: #3b5269; }
.tl-dl { margin: 0; padding-left: 16px; } .tl-dl li { margin: 1px 0; } .tl-note { margin-top: 4px; white-space: pre-wrap; } .tl-out { padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: #eef2f6; color: #52627a; } .tl-out.good { background: #dcfce7; color: #15803d; } .tl-out.bad { background: #fee2e2; color: #b91c1c; }
.tl-eact { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; } .tl-tw { margin-top: 6px; } .tl-thread { padding: 8px; border: 1px solid #e3eaf1; border-radius: 8px; background: #fff; } .tl-thread textarea { width: 100%; box-sizing: border-box; } .tl-send { display: flex; justify-content: flex-end; margin-top: 6px; }
.tl-msgs { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; } .tl-msg { max-width: 88%; padding: 7px 11px; border-radius: 10px; background: #f1f5f9; border: 1px solid #e5e7eb; } .tl-msg.mine { align-self: flex-end; background: #dbeafe; border-color: #bfdbfe; } .tl-mm { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #6b7280; margin-bottom: 2px; } .tl-mt { white-space: pre-wrap; font-size: 13px; color: #111827; }
@media (max-width: 800px) { .tl-line::before { left: 10px; margin-left: 0; } .tl-node, .tl-node.l, .tl-node.r { width: 100%; left: 0; text-align: left; padding: 0 0 24px 34px; } .tl-node.l .tl-dot, .tl-node.r .tl-dot { left: 2px; right: auto; } .tl-card { max-width: 100%; } }
/* Lojistik */
.lj-tools { margin-left: auto; display: flex; gap: 8px; } .lj-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; } .db-kc2 { border: 1px solid #dbe4ec; border-radius: 10px; padding: 10px 14px; background: #fff; } .db-kc2 b { display: block; font-size: 24px; color: #1f3a52; } .db-kc2 span { font-size: 12px; color: #52627a; } .db-kc2.ok b { color: #16a34a; } .db-kc2.blue b { color: #2563eb; } .db-kc2.warn b { color: #b45309; }
.lj-table tr.late td { background: #fef2f2; } .lj-table tr.soon td { background: #fffbeb; } .lj-table tr.done td { background: #f0fdf4; } .lj-warn { color: #b91c1c; } .lj-rev { color: #b45309; } .lj-acts { display: flex; flex-direction: column; gap: 4px; } .lj-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 10px; }
.lj-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; } .lj-form .sy-f input, .lj-form .sy-f select, .lj-form .sy-f textarea { width: 100%; box-sizing: border-box; } .lj-form .msg { grid-column: 1 / -1; } .lj-form [hidden] { display: none; }
.lj-chat { max-height: 320px; } .lj-chat + textarea { width: 100%; box-sizing: border-box; }
.lj-files { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; } .lj-file { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #e3eaf1; border-radius: 8px; background: #fafcfe; } .lj-fa { display: flex; gap: 6px; } .lj-upl { display: flex; gap: 8px; align-items: center; }
.lj-line { display: grid; grid-template-columns: 1fr 2fr auto auto; gap: 8px; align-items: center; margin-bottom: 6px; } .lj-line.add { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #cbd6e2; } .lj-line input[type="text"] { width: 100%; box-sizing: border-box; }
.lj-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1f3a52; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; z-index: 9999; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); max-width: 90vw; }
.bl-wrap { overflow-x: auto; } .bl-table { font-size: 12px; min-width: 1250px; } .bl-table th, .bl-table td { padding: 6px 7px; white-space: nowrap; } .bl-table td.r { text-align: right; } .bl-th { cursor: pointer; user-select: none; } .bl-table input, .bl-table select { width: 100%; min-width: 70px; box-sizing: border-box; padding: 4px; font-size: 12px; } .bl-table input[type="date"] { min-width: 112px; }
.bl-edit td { background: #fffdf0; } .bl-overdue td { background: #fef2f2; } .bl-sec { font-weight: 700; padding: 8px 10px !important; background: #eef2f6; color: #3b5269; } .bl-sec.urg { background: #fee2e2; color: #b91c1c; } .bl-acts { display: flex; gap: 4px; } .bl-cnt { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; background: #eef2f6; font-size: 11px; } .sy-tabs .on .bl-cnt { background: #fff; color: #4a6683; }
.bl-ok { color: #15803d; } .bl-late { color: #b91c1c; } .bl-soon { color: #b45309; }
.nm-yearbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .nm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.nm-kpi { border: 1px solid #dbe4ec; border-radius: 10px; padding: 12px 14px; background: #fff; } .nm-kpi.over { border-color: #fca5a5; background: #fff7f7; } .nm-kr { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 2px; } .nm-kr span { color: #6b7280; } .nm-kr b.blue, .nm-kr b.blue { color: #2563eb; } .nm-kr b.bad { color: #dc2626; } .nm-kp { font-size: 13px; color: #64748b; margin-top: 4px; } .nm-kp.bad { color: #dc2626; font-weight: 700; } .nm-kl { margin-top: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #52627a; }
.nm-bar { height: 6px; background: #e5e9ef; border-radius: 99px; overflow: hidden; margin-top: 6px; } .nm-bar i { display: block; height: 100%; border-radius: 99px; }
.nm-monthly { min-width: 1100px; font-size: 12px; } .nm-monthly th, .nm-monthly td { padding: 6px; text-align: center; vertical-align: top; } .nm-monthly .nm-sp { text-align: left; font-weight: 700; } .nm-monthly .cur { background: #eef5fc; } .nm-total td { background: #f4f7fa; }
.nm-cell { font-size: 11.5px; line-height: 1.4; } .nm-cell.over .nm-g { color: #dc2626; } .nm-h { color: #6b7280; } .nm-g { font-weight: 600; } .nm-pc { color: #475569; } .nm-pc.bad { color: #dc2626; font-weight: 700; } .nm-pill { display: inline-block; padding: 1px 10px; border-radius: 99px; color: #fff; font-weight: 700; }
@media (max-width: 800px) { .lj-form { grid-template-columns: 1fr; } .lj-line { grid-template-columns: 1fr; } }
.lj-copy { position: fixed; left: -9999px; top: 0; }
/* Blue Lake ekranları: eski CRM'deki görünüm (koyu lacivert başlıklar, altın sol çizgili kartlar, gri hap sekmeler) */
.old-tabs { gap: 8px; margin: 12px 0; } .old-tabs button { background: #f3f4f6; color: #374151; border: none; padding: 7px 14px; font-size: 12.5px; font-weight: 600; border-radius: 999px; } .old-tabs button:hover { background: #e5e7eb; } .old-tabs button.on { background: #141414; color: #fff; border: none; } .old-tabs .bl-cnt { background: transparent; opacity: .75; font-weight: 700; padding: 0 2px; } .sy-tabs.old-tabs .on .bl-cnt { background: transparent; color: #fff; }
.bl-wrap { max-height: 600px; overflow: auto; } .bl-table { font-size: 11px; border-collapse: separate; border-spacing: 0; min-width: 1250px; } .bl-table th, .bl-table td { border: 1px solid #d7dbe0; padding: 4px 6px; background: #fff; }
.bl-table thead th { background: #334155; color: #fff; font-weight: 700; font-size: 10.5px; position: sticky; top: 0; z-index: 2; text-transform: none; letter-spacing: 0; } .bl-table thead th.bl-th:hover { background: #475569; }
.bl-table tbody tr:nth-child(even) td { background: #fafbfc; } .bl-table tbody tr.bl-overdue td { background: #fef2f2; } .bl-table tbody tr.bl-edit td { background: #fffbea; }
.bl-sec { background: #f3f4f6 !important; color: #374151; text-align: center; font-size: 11px; } .bl-sec.urg { background: #fee2e2 !important; color: #991b1b; }
.nm-yearbar { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 4px 10px; background: #fff; border: 1px solid #eef0f2; border-radius: 8px; border-left: 3px solid #d9a441; } .nm-yearbar .yl { font-size: 12px; font-weight: 700; color: #475569; } .nm-yearbar select { width: 72px; padding: 2px 6px; font-size: 13px; font-weight: 600; color: #1e293b; border: 1px solid #cbd5e1; border-radius: 6px; }
.nm-kpis { gap: 12px; margin-bottom: 18px; } .nm-kpi { background: #fff; border-radius: 10px; padding: 13px 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); border: 1px solid #eef0f2; border-left: 3px solid #d9a441; display: flex; flex-direction: column; gap: 4px; } .nm-kpi.over { background: #fef2f2; border-color: #fca5a5; border-left-color: #dc2626; }
.nm-kr { align-items: baseline; margin: 0; } .nm-kr span { font-size: 11px; color: #8792a2; font-weight: 600; } .nm-kr b { font-size: 16px; font-weight: 800; color: #111827; } .nm-kr b.blue { color: #2563eb; } .nm-kr b.bad { color: #dc2626; } .nm-kp { font-size: 11.5px; font-weight: 700; margin: 0; } .nm-kl { font-size: 12px; color: #6b7280; font-weight: 600; text-transform: none; letter-spacing: 0; margin: 0; }
.nm-bar { height: 6px; background: #eef0f2; margin-top: 2px; border-radius: 4px; } .nm-bar i { border-radius: 4px; }
.nm-monthly { border-collapse: collapse; table-layout: fixed; width: 100%; min-width: 1000px; font-size: 12px; } .nm-monthly th, .nm-monthly td { border: 1px solid #e2e8f0; padding: 5px; vertical-align: top; background: #fff; } .nm-monthly thead th { background: #334155; color: #fff; font-size: 11.5px; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.nm-monthly thead th:first-child { background: #1e293b; width: 70px; } .nm-monthly .nm-sp { background: #eef2f7; text-align: center; vertical-align: middle; color: #1e293b; width: 70px; white-space: nowrap; } .nm-monthly thead th.cur { background: #2563eb; } .nm-monthly td.cur { background: #eff6ff; }
.nm-monthly tr.nm-total td { background: #475569; border-top: 2px solid #334155; } .nm-monthly tr.nm-total td.cur { background: #334155; } .nm-monthly tr.nm-total .nm-sp { background: #1e293b; color: #fff; } .nm-monthly tr.nm-total .nm-h { color: #e2e8f0; } .nm-monthly tr.nm-total .nm-g { color: #fff; }
.nm-monthly .nm-bar { background: rgba(255, 255, 255, .35); height: 5px; border-radius: 3px; margin-top: 3px; } .nm-cell { text-align: center; line-height: 1.5; } .nm-h { font-size: 10.5px; color: #64748b; } .nm-g { font-size: 11.5px; font-weight: 600; color: #1e293b; } .nm-pc { font-size: 11.5px; } .nm-cell.over { background: #fef2f2; margin: -5px; padding: 5px; } .nm-monthly tr.nm-total .nm-cell.over { background: transparent; margin: 0; padding: 0; } .nm-pill { font-size: 11px; padding: 1px 7px; border-radius: 9px; }
/* Haberler */
.nw-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; } .nw-filters select { min-width: 190px; } .nw-group { margin-bottom: 8px; } .nw-gh { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 14px; border: 1px solid #dbe4ec; border-radius: 10px; background: #f4f7fa; cursor: pointer; font-size: 14px; color: #1f3a52; } .nw-gh:hover { background: #eaf0f6; } .nw-gh .chev { width: 14px; color: #4a6683; } .nw-gc { margin-left: auto; font-size: 12px; color: #52627a; }
.nw-gb { display: grid; gap: 10px; padding: 10px 0 4px; } .nw-card { border: 1px solid #e3eaf1; border-left: 4px solid #4a6683; border-radius: 10px; padding: 12px 16px; background: #fff; } .nw-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .nw-badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; } .nw-badge.cat { background: #e0ecf8; color: #1d4e89; } .nw-badge.reg { background: #fef3c7; color: #92400e; } .nw-date { margin-left: auto; font-size: 12px; color: #7a8ca0; }
.nw-title { margin: 4px 0 6px; font-size: 16px; color: #1f3a52; } .nw-body { white-space: pre-wrap; color: #334e68; line-height: 1.55; } .nw-src { display: inline-block; margin-top: 8px; font-size: 12.5px; color: #1d6fb8; word-break: break-all; } .nw-src.plain { color: #7a8ca0; } .nw-acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.nw-form .sy-f input, .nw-form .sy-f textarea, .nw-form .sy-f select { width: 100%; box-sizing: border-box; } .nw-prio { margin-top: 8px; font-size: 12.5px; color: #52627a; } .nw-prio a { color: #1d6fb8; } .news-badge-menu { background: #dc2626; color: #fff; }
/* Proje geçmişi: yatay zaman çizelgesi */
.modal.wide.xl.ptl-modal { max-width: 1240px; width: calc(100vw - 32px); }
.ptl-sum { font-size: 14px; color: #1f3a52; margin: 6px 0 12px; } .ptl-scroll { overflow-x: auto; padding-bottom: 12px; } .ptl-track { display: flex; align-items: flex-start; min-width: max-content; padding: 4px 2px 12px; }
.ptl-node { display: flex; flex-direction: column; align-items: center; width: 250px; flex-shrink: 0; }
.ptl-date { font-size: 11.5px; font-weight: 700; color: #6b7280; letter-spacing: .03em; margin-bottom: 8px; }
.ptl-dot { width: 14px; height: 14px; border-radius: 50%; margin-bottom: 10px; border: 3px solid #fff; box-shadow: 0 0 0 1px #e5e7eb; flex-shrink: 0; background: #9ca3af; } .ptl-dot.d-planned { background: #2563eb; } .ptl-dot.d-postponed { background: #ea580c; } .ptl-dot.d-done { background: #16a34a; } .ptl-dot.d-cancelled { background: #dc2626; } .ptl-dot.d-start { background: #6b7280; }
.ptl-card { background: #fafafa; border: 1px solid #eef0f2; border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box; font-size: 12px; color: #374151; }
.ptl-title { font-weight: 700; color: #111827; font-size: 13px; margin-bottom: 4px; } .ptl-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; } .ptl-topic { font-weight: 600; color: #1f2937; margin-bottom: 6px; } .ptl-sub { color: #6b7280; font-size: 11.5px; margin-bottom: 6px; line-height: 1.5; }
.ptl-notes { font-size: 12px; color: #374151; border-top: 1px solid #eef0f2; padding-top: 6px; margin-top: 6px; overflow-wrap: anywhere; } .ptl-nl { font-size: 10.5px; font-weight: 700; color: #9ca3af; text-transform: uppercase; margin-bottom: 2px; } .ptl-next { color: #92400e; }
.ptl-arrow { font-size: 20px; color: #d1d5db; flex-shrink: 0; align-self: center; margin: 0 6px; padding-top: 36px; }
.ptl-resched { margin: 6px 0; padding: 6px 8px; background: #fff7ed; border: 1px solid #fdba74; border-left: 4px solid #ea580c; border-radius: 6px; font-size: 11.5px; line-height: 1.45; color: #9a3412; } .ptl-resched b { color: #7c2d12; }
/* Satış Hedef Raporu (eski CRM ekranıyla aynı görünüm) */
.st-page { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.st-page .card-header { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.st-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-controls select { width: auto; }
.btn-secondary { display: inline-block; background: #fff; color: var(--brand); border: 1px solid var(--brand); border-radius: 8px; padding: 9px 16px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 14px; }
.btn-secondary:hover { background: var(--tint); }
.screen-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.screen-tab { background: none; border: 0; padding: 10px 16px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 600; }
.screen-tab.active { color: var(--brand); border-color: var(--brand); }
.empty-state { color: var(--muted); text-align: center; padding: 20px 8px; }
.st-pad { padding: 12px; }
.st-split { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.st-left { width: 260px; flex-shrink: 0; }
.st-left input { width: 100%; margin-bottom: 10px; box-sizing: border-box; }
.st-list { max-height: calc(100vh - 320px); min-height: 480px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.st-right { flex: 1; min-width: 480px; }
.st-plasiyer-item { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #eef1f5; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.st-plasiyer-item:hover { background: #f8fafc; }
.st-plasiyer-item.active { background: #2563eb; color: #fff; font-weight: 600; }
.st-dept-chip { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; color: #fff; flex-shrink: 0; }
.st-chip-dis { background: #7c3aed; } .st-chip-ic { background: #b45309; }
.st-plasiyer-item.active .st-dept-chip { background: rgba(255, 255, 255, 0.3); }
.st-dept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.st-dept-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; min-width: 0; }
.st-h-dis { color: #7c3aed; margin-top: 0; } .st-h-ic { color: #b45309; margin-top: 0; }
.st-block { min-width: 0; }
.st-block h4 { margin: 20px 0 10px; }
.st-caption { text-align: center; font-weight: 700; font-style: italic; color: #c00000; margin: 20px 0 6px; font-size: 11px; }
.st-mapgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.st-map { height: 420px; border-radius: 10px; border: 1px solid #e2e8f0; background: var(--soft); }
.st-side-t { font-weight: 700; font-size: 13px; margin: 0 0 8px; }
.st-srow { display: grid; grid-template-columns: minmax(60px, 32%) 1fr 92px 34px; gap: 8px; align-items: center; font-size: 12px; margin-bottom: 6px; }
.st-sn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-sb { display: block; height: 9px; background: #e8edf3; border-radius: 99px; overflow: hidden; }
.st-sb i { display: block; height: 100%; border-radius: 99px; }
.st-sv { text-align: right; font-weight: 600; white-space: nowrap; } .st-sp { text-align: right; color: var(--muted); }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; margin-bottom: 8px; }
.st-legend span { display: inline-flex; align-items: center; gap: 5px; }
.st-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.st-note { color: var(--muted); font-size: 12px; }
.st-choose-box { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.st-choose { width: 100%; }
#stPrintArea { display: none; }
body.st-printing #stPrintArea { display: block; position: absolute; left: -99999px; top: 0; width: 297mm; box-sizing: border-box; padding: 0 18mm 10mm; background: #fff; color: #111827; font-family: "Segoe UI", Arial, sans-serif; font-size: 12.5px; line-height: 1.5; }
#stPrintArea .st-block, #stPrintArea svg { break-inside: avoid; page-break-inside: avoid; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff; margin: 0; }
  body.st-printing > *:not(#stPrintArea) { display: none !important; }
  body.st-printing #stPrintArea { position: static; left: auto; }
}
@media (max-width: 700px) { .bell-panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; max-width: none; } }

.fin-dash-card {
  background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 4px 16px rgba(17,24,39,0.07); border: 1px solid #eef0f2;
}
.fin-dash-card h3 { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: #111827; text-transform: uppercase; letter-spacing: 0.05em; }
.fin-kpi-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 2px;
  border-bottom: 1px solid #f1f3f5; transition: background 0.15s;
}
.fin-kpi-row:last-child { border-bottom: none; }
.fin-kpi-row:hover { background: #fafbfc; }
.fin-kpi-icon {
  width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.fin-kpi-icon.try { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0369a1; }
.fin-kpi-icon.eur { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #6d28d9; }
.fin-kpi-icon.usd { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }
.fin-kpi-icon.gun { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.fin-kpi-label { flex: 1; font-size: 13px; font-weight: 600; color: #5b6472; }
.fin-kpi-value { font-size: 18px; font-weight: 800; color: #111827; letter-spacing: -0.01em; white-space: nowrap; }
.fin-dash-empty { color: #9aa1ac; font-size: 13.5px; padding: 30px 0; text-align: center; }
/* Müşteri Borç Detay Listesi: genel .data-table yüzdelik sütun genişlikleri (6 sütun için tasarlanmış)
   çok sütunlu bu tabloya uygulanınca sütunlar birbirine giriyordu - genişliği tamamen içeriğe bırak. */
.fin-risk-table.data-table { width: 100% !important; table-layout: auto !important; font-size: 11px; }
.fin-risk-table.data-table th:nth-child(n) { width: auto !important; }
.fin-risk-table.data-table th, .fin-risk-table.data-table td { white-space: nowrap; padding: 4px 3px; }
.fin-risk-table.data-table th.fin-col-musteri, .fin-risk-table.data-table td.fin-col-musteri { width: 160px; min-width: 160px; max-width: 160px; white-space: normal; line-height: 1.2; }
.fin-risk-table.data-table th.fin-col-borc, .fin-risk-table.data-table td.fin-col-borc { width: 150px; min-width: 150px; max-width: 150px; white-space: normal; line-height: 1.2; }
.fin-risk-table.data-table th { font-size: 9px; padding: 5px 3px; }
.fin-risk-table.data-table .cell-val, .fin-risk-table.data-table td, .fin-risk-table.data-table th { letter-spacing: -0.01em; }
.fin-risk-table.data-table thead th { background: #fff; }
.fin-risk-table.data-table thead th.fin-col-gecmis { background: #fee2e2; }
.fin-risk-table.data-table thead th.fin-col-gelmemis { background: #dcfce7; }
.fin-risk-table.data-table tbody td.fin-col-gecmis,
.fin-risk-table.data-table tfoot td.fin-col-gecmis { background: #fef2f2; }
.fin-risk-table.data-table tbody td.fin-col-gelmemis,
.fin-risk-table.data-table tfoot td.fin-col-gelmemis { background: #f0fdf4; }
.fin-risk-table.data-table tbody td.fin-col-gecmis.fin-col-toplam,
.fin-risk-table.data-table tfoot td.fin-col-gecmis.fin-col-toplam { background: #fecaca; }
.fin-risk-table.data-table tbody td.fin-col-gelmemis.fin-col-toplam,
.fin-risk-table.data-table tfoot td.fin-col-gelmemis.fin-col-toplam { background: #bbf7d0; }
.fin-risk-table.data-table .fin-col-sep-left { border-left: 2px solid #e3e6ea; }
.fin-risk-table.data-table tbody tr:hover td.fin-col-gecmis { background: #fde4e4; }
.fin-risk-table.data-table tbody tr:hover td.fin-col-gelmemis { background: #e3fbe9; }

/* Açık Fatura Detayı tablosu: aynı nedenle genişlik içeriğe bırakılır. */
.fin-invoice-table.data-table { width: 100% !important; table-layout: auto !important; font-size: 12px; }
.fin-invoice-table.data-table th:nth-child(n) { width: auto !important; }
.fin-invoice-table.data-table th, .fin-invoice-table.data-table td { white-space: nowrap; padding: 7px 10px; }
.fin-invoice-table.data-table td:nth-child(1) { white-space: normal; max-width: 220px; }
.fin-invoice-table.data-table thead th { background: #fff; }

/* Finans İşlemleri (eski CRM'den taşındı) */
.fin-page .data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fin-page .data-table th, .fin-page .data-table td { text-align: left; padding: 12px; border-bottom: 1px solid #f0f1f3; background: transparent; }
.fin-page .data-table th { color: #6b7280; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fin-page .data-table tbody tr:hover { background: #fafafa; }
.fin-page .dash-row-clickable { cursor: pointer; } .fin-page .dash-row-clickable:hover { background: #fdfaf3 !important; }
.fin-page .action-btn { display: inline-flex; align-items: center; padding: 8px 16px; font-size: 13px; font-weight: 600; border-radius: 8px; border: 0; cursor: pointer; background: var(--brand); color: #fff; white-space: nowrap; }
.fin-page .action-btn:hover { filter: brightness(1.1); }
.fin-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto; }
.fin-overlay.hidden { display: none; }
.fin-modal { position: relative; background: #fff; border-radius: 14px; padding: 24px 28px; width: min(1100px, 100%); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.fin-modal h2 { margin: 0 0 14px; font-size: 18px; } .fin-modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; font-size: 26px; cursor: pointer; color: #6b7280; line-height: 1; }


#travelModal.modal-overlay { z-index: 55; }

#travelDetailModal.modal-overlay { z-index: 56; }

#travelJournalModal.modal-overlay { z-index: 57; }

#travelCityMapModal.modal-overlay { z-index: 58; }


.deneme-header-baslik-band:empty { display: none; }

.deneme-header-baslik-band { margin-top: 14px; padding: 16px 16px 12px; background: linear-gradient(180deg, #f4f8fb, #eef4f8); border-radius: 10px; text-align: center; }

.deneme-header-baslik-ana { font-size: 24px; font-weight: 800; color: #2c4a66; letter-spacing: 0.2px; margin-bottom: 6px; }

.deneme-header-baslik-tarih { font-size: 12px; font-weight: 500; color: #8792a2; text-align: right; padding-right: 2px; padding-bottom: 4px; border-bottom: 2px solid #c7d3dd; }
.deneme-personel-picker { position: relative; width: 420px; max-width: 100%; }

.deneme-personel-bar-icon { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(124,58,237,0.12); font-size: 13px; flex-shrink: 0; }

.deneme-personel-bar-label { font-weight: 600; flex: 1; }

.deneme-personel-bar-chevron { font-size: 11px; color: #9ca3af; transition: transform .15s; }

.deneme-personel-bar.open .deneme-personel-bar-chevron { transform: rotate(180deg); }

.deneme-personel-all-row { display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 9px 10px; font-weight: 700; color: #1e3a8a; cursor: pointer; border-bottom: 1px solid #eef0f2; margin-bottom: 2px; text-align: left; }

.deneme-personel-all-row:hover { background: #f8fafc; }

.deneme-personel-list { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; }

.deneme-personel-item { display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 9px 10px; font-size: 14px; color: #111827; cursor: pointer; border-radius: 6px; text-align: left; }

.deneme-personel-item:hover { background: #f1f5f9; }

.deneme-personel-all-row input, .deneme-personel-item input { width: 15px; height: 15px; flex: 0 0 15px; }

.deneme-personel-all-row span, .deneme-personel-item span { flex: 0 0 auto; width: auto; }

.deneme-personel-role { color: #6b7280; font-size: 11.5px; }


.deneme-hedef-card { margin-top: 18px; }

.dht-scroll { overflow-x: auto; border-radius: 14px; box-shadow: 0 4px 18px rgba(79,110,140,0.14); }

.deneme-hedef-table { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }

.deneme-hedef-table thead th {
  background: #4a6683;
  color: #fff;
  padding: 9px 8px;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

.deneme-hedef-table thead th.dht-name-col { text-align: left; border-radius: 14px 0 0 0; }

.deneme-hedef-table thead th:last-child { border-radius: 0 14px 0 0; }

.deneme-hedef-table tbody td { padding: 7px 8px; border-bottom: 1px solid #edf1f5; vertical-align: top; background: #faf9f6; transition: background .12s; }

.deneme-hedef-table tbody tr:nth-child(even) td { background: #dce7f0; }

.deneme-hedef-table tbody tr:not(.dht-total-row):hover td { background: #c9dbe9; }

.deneme-hedef-table .dht-name-cell { font-weight: 700; color: #2c4a66; white-space: nowrap; }

.deneme-hedef-table .dht-year-cell { text-align: center; min-width: 100px; }
.deneme-hedef-table.dht-aligned { table-layout: fixed; }

.deneme-hedef-table.dht-aligned .dht-name-col, .deneme-hedef-table.dht-aligned .dht-name-cell { width: 170px; overflow: hidden; text-overflow: ellipsis; }

.deneme-hedef-table .dht-gerceklesen { font-weight: 800; font-size: 14px; color: #2c4a66; }

.deneme-hedef-table .dht-hedef { font-size: 11px; color: #70808f; margin-top: 1px; }

.deneme-hedef-table .dht-hedef-other { opacity: .7; font-style: italic; }

.deneme-hedef-table .dht-bar-wrap { background: rgba(74,102,131,0.18); border-radius: 999px; height: 4px; margin: 5px auto 3px; overflow: hidden; max-width: 90px; }

.deneme-hedef-table .dht-bar-fill { height: 100%; border-radius: 999px; transition: width .2s; }

.deneme-hedef-table .dht-pct { font-size: 10.5px; font-weight: 700; }

.deneme-hedef-table .dht-total-row td {
  background: #4a6683 !important;
  border-bottom: none;
  padding-top: 9px;
  padding-bottom: 9px;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.deneme-hedef-table .dht-total-row td:first-child { border-radius: 0 0 0 14px; }

.deneme-hedef-table .dht-total-row td:last-child { border-radius: 0 0 14px 0; }

.deneme-hedef-table .dht-total-row .dht-name-cell { font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px; }

.deneme-hedef-table .dht-total-row .dht-gerceklesen { font-size: 17px; color: #fff; }

.deneme-hedef-table .dht-total-row .dht-hedef { color: #cfe0ef; }

.deneme-hedef-table .dht-total-row .dht-bar-wrap { background: rgba(255,255,255,0.25); }
/* TOPLAM satırının altındaki, tablonun KENDİ sütunlarıyla hizalı grafik satırı - her yıl hücresi kendi
   mini çubuk grafiğini, üstünde rakamını, altında başarı yüzdesini ve yıl etiketini taşır. */
.deneme-hedef-table .dht-chart-row td { background: #fafbfc; border-top: 2px solid #e5e9ed; padding-top: 12px; padding-bottom: 10px; }

.dht-chart-cell { text-align: center; vertical-align: bottom; }

.dht-chart-bars {
  display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 110px; margin-bottom: 0;
  border-bottom: 2px solid #94a3b8; padding-bottom: 2px;
}

.dht-chart-bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 48px; }

.dht-chart-colname { font-size: 7.5px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.02em; white-space: normal; line-height: 1.15; text-align: center; margin-bottom: 2px; }

.dht-chart-value { font-size: 9px; font-weight: 700; color: #6b7280; margin-bottom: 3px; white-space: nowrap; }

.dht-chart-bar { width: 18px; border-radius: 4px 4px 2px 2px; transition: height 0.2s, transform 0.15s; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }

.dht-chart-bar:hover { transform: scaleX(1.18); }

.dht-chart-bar-hedef { background: linear-gradient(180deg, #e2e8f0, #cbd5e1); }

.dht-chart-bar-gerc { box-shadow: 0 2px 5px rgba(0,0,0,0.15); }

.dht-chart-pct { font-size: 14px; font-weight: 800; margin-top: 8px; }

.dht-chart-year {
  display: inline-block; font-size: 10px; font-weight: 700; color: #475569; margin-top: 6px;
  background: #eef2f6; padding: 2px 10px; border-radius: 999px;
}
.dym-firma-table, .dym-firma-table-ek { width: auto; border-collapse: collapse; margin-top: 3px; background: rgba(74,102,131,0.07) !important; border-radius: 5px; }

.dym-firma-table { display: none; }
.dym-firma-popover { display: none; }

.dym-firma-popover .dym-firma-table { display: table; margin-top: 0; }

.dym-firma-popover.dym-firma-table-floating {
  display: block !important;
  position: fixed;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17,24,39,0.18);
  border: 1px solid #d7dee6;
  border-radius: 6px;
  z-index: 500;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  padding: 2px;
}

.deneme-hedef-table .dym-firma-table td,
.deneme-hedef-table .dym-firma-table-ek td { padding: 2px 5px; font-size: 11px; color: #4a6683; border: none !important; border-bottom: 1px solid rgba(74,102,131,0.14) !important; background: none !important; vertical-align: top; }

.dym-firma-table tr:last-child td, .dym-firma-table-ek tr:last-child td { border-bottom: none !important; }

.dym-firma-ad { text-align: left; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: help; font-weight: 600; color: #2c4a66; }

.dym-firma-tutar { text-align: right; white-space: nowrap; }

.dym-firma-pct { text-align: right; white-space: nowrap; color: #70808f; }

.dym-firma-more { font-style: italic; color: #70808f !important; }

.dym-firma-sonraki { text-align: left; white-space: nowrap; padding-left: 10px !important; border-left: 1px solid rgba(74,102,131,0.14); }

.dym-sonraki-item.sifir { color: #dc2626; font-weight: 600; }

.dym-hover-trigger { cursor: pointer; border-bottom: 1px dashed rgba(44,74,102,0.45); }

.dym-ek-card-print { display: none; }

.dym-toplam-badge { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 6px; background: rgba(74,102,131,0.14); font-weight: 700; font-size: 11px; color: #2c4a66; text-align: center; }


.dym-risk-badge { display: block; width: fit-content; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: #fde8e8; color: #b91c1c; font-weight: 700; font-size: 10.5px; white-space: nowrap; }
.deneme-print-title { display: none; text-align: center; }

.deneme-print-title h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: 0.3px; color: #2c4a66; }

.deneme-print-title .deneme-print-tarih { text-align: right; padding-right: 4px; font-size: 12px; color: #6b7280; padding-bottom: 14px; border-bottom: 2px solid #c7d3dd; }


.dym-search-wrap { max-width: 320px; margin-bottom: 14px; }

.dym-search-wrap input { margin: 0; border: 1px solid #c7d3dd; }

.deneme-ulke-scroll { max-height: 900px; overflow-y: auto; }

.deneme-ulke-scroll thead th { position: sticky; top: 0; z-index: 5; }

.deneme-ulke-scroll tr.dht-total-row td { position: sticky; bottom: 0; z-index: 4; }

.deneme-ulke-sorumlu-row td { background: #eef3e9 !important; }


.dht-musteri-link { color: #2c4a66; font-weight: 700; text-decoration: none; border-bottom: 1px dashed #9ab0c2; cursor: pointer; }

.dht-musteri-link:hover { color: #4a6683; border-bottom-color: #4a6683; }


.dmd-section { margin-bottom: 26px; }

.dmd-section:last-child { margin-bottom: 0; }

.dmd-section h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #2c4a66; }

.dmd-trend-svg { width: 100%; height: auto; max-height: 240px; }

.dmd-agac-chart-label { font-size: 12px; font-weight: 700; color: #5a6b7a; margin: 16px 0 4px; text-transform: uppercase; letter-spacing: 0.03em; }

.dmd-legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.dmd-agac-renk-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: middle; }

.dmd-gidisat { font-weight: 700; font-size: 12.5px; }

.dmd-gidisat-up { color: #16a34a; }

.dmd-gidisat-down { color: #dc2626; }

.dmd-odeme-not { font-size: 12px; color: #6b7280; margin: 0 0 10px; }

.dmd-fatura-scroll { max-height: 280px; overflow-y: auto; }

.dmd-fatura-scroll thead th { position: sticky; top: 0; z-index: 2; }

.dmd-doviz-bolum { margin-bottom: 18px; }

.dmd-doviz-ayrac { border: none; border-top: 1px solid #eef0f2; margin: 22px 0; }

.dmd-odeme-baslik-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.dmd-odeme-badge { display: inline-flex; align-items: baseline; gap: 6px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 999px; padding: 5px 14px; white-space: nowrap; font-size: 11px; font-weight: 600; color: #7f1d1d; }

.dmd-odeme-badge strong { font-size: 15px; font-weight: 800; color: #b91c1c; }

.dmd-aylik-svg { width: 100%; height: 300px; }

.dmd-aylik-legend { display: flex; gap: 16px; font-size: 11px; color: #6b7280; margin-top: 4px; }

.dmd-aylik-legend .dmd-legend-dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 4px; vertical-align: middle; }

.deneme-ulke-section-row td { background: #eef2f6 !important; color: #4a6683; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; padding: 7px 10px !important; border-bottom: 1px solid #d9e2ea; }

.comp-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }

.comp-section-head h3 { margin: 0; }


.comp-year-tabs { display: flex; gap: 4px; background: #eef2f6; padding: 3px; border-radius: 999px; }


.comp-mini-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(79,110,140,0.1); }

.comp-mini-table thead th { background: #4a6683; color: #fff; padding: 9px 12px; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; text-align: left; }

.comp-mini-table tbody td { padding: 9px 12px; border-bottom: 1px solid #edf1f5; background: #faf9f6; }

.comp-mini-table tbody tr:nth-child(even) td { background: #dce7f0; }

.comp-mini-table tbody tr:hover td { background: #c9dbe9; }

.comp-mini-table input[type="number"] { width: 110px; margin: 0; text-align: right; border: 1px solid #c7d3dd; padding: 5px 8px; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-overlay.hidden { display: none; }

#quickContactModal.modal-overlay { z-index: 65; }

#customerModal.modal-overlay { z-index: 60; }

#quickProjectModal.modal-overlay { z-index: 70; }

#projectHistoryModal.modal-overlay { z-index: 80; }


.modal-close-btn {
  position: sticky;
  top: 16px;
  margin: -12px -12px -30px auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.modal-close-btn:hover { background: #fecaca; }
.algo-info-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 50%; background: #e2e8f0; color: #475569; font-size: 12px; font-weight: 700;
  cursor: pointer; margin-left: 8px; vertical-align: middle; border: none; font-style: italic; font-family: Georgia, serif;
}

.algo-info-btn:hover { background: #cbd5e1; }


.modal-wide {
  max-width: 1120px;
  width: 95vw;
  padding: 34px 40px;
}


.modal-wide label {
  font-size: 13.5px;
  margin: 16px 0 7px;
}


.modal-wide input,
.modal-wide select,
.modal-wide textarea {
  font-size: 14.5px;
  padding: 11px 13px;
}


.modal-wide h2 {
  font-size: 20px;
  margin-bottom: 4px;
}
@media (max-width: 900px){

  .deneme-personel-picker { width: 100%; }

  .modal-overlay { align-items: flex-start; }
}
@media (max-height: 500px) and (max-width: 1000px){

  .modal.modal-wide, .modal { padding: 10px 14px 0; }

  .modal-close-btn { top: 6px; right: 8px; width: 32px; height: 32px; }
}


.kn-detail-modal .modal-close-btn { z-index: 5; }

/* Dış / İç Ticaret Analizi (eski CRM'den taşındı) */
.an-page .card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(17,24,39,.05); margin-bottom: 0; }
.an-page .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.an-page .card-header h2 { margin: 0; font-size: 16px; color: #111827; }
.an-page .empty-state { text-align: center; color: #9ca3af; padding: 30px 0; }
.an-page .btn-secondary { background: #eceef1; color: #374151; padding: 10px 18px; border: 0; border-radius: 8px; cursor: pointer; font-weight: 600; }
.an-page .btn-secondary:hover { background: #e0e3e7; }
.an-page .deneme-print-title { display: none; }
.an-page table { font-size: inherit; }

@media print {
  .sidebar, .topbar, .an-page > h2, .an-page > .sub, .deneme-print-btn, .deneme-header-card, #denemeTopMusteriLimitTabs, #icDenemeTopMusteriLimitTabs { display: none !important; }
  .an-page .deneme-print-title { display: block; margin-bottom: 16px; }
  .an-page .card { box-shadow: none; border: 1px solid #d7dee6; break-inside: avoid; margin: 14px 0 10px; }
  .dht-scroll, .deneme-ulke-scroll, .dmd-fatura-scroll { overflow: visible !important; max-height: none !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
.fin-modal-narrow { width: min(560px, 100%); } .fin-modal-actions { display: flex; justify-content: flex-end; margin-top: 18px; }

/* Analiz: personel filtresi (açılır liste) ve yıl/adet sekmeleri */
.deneme-personel-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; cursor: pointer; font-size: 13.5px; color: #111827; user-select: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.deneme-personel-bar:hover { border-color: #c7cdd6; background: #fff; }
.deneme-personel-bar.open { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); background: #fff; border-radius: 10px 10px 0 0; }
.deneme-personel-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; background: #fff; border: 1px solid #2563eb; border-top: none; border-radius: 0 0 10px 10px; box-shadow: 0 10px 24px rgba(0,0,0,0.1); padding: 6px 4px; }
.deneme-personel-panel.open { display: block; }
.dym-sonraki-item { font-size: 10px; color: #70808f; }
.comp-year-tab { border: none; background: transparent; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #5a6b7a; cursor: pointer; transition: background .12s, color .12s; }
.comp-year-tab:hover { color: #2c4a66; }
.comp-year-tab.active { background: #4a6683; color: #fff; box-shadow: 0 2px 6px rgba(74,102,131,0.35); }

/* Müşteri Kaybı Riski: aktivite bağlantısı */
.rk-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 3px; font-size: 12px; } .rk-act { color: #1d6fb8; text-decoration: none; } .rk-act:hover { text-decoration: underline; } .rk-noact { color: #9ca3af; } .rk-plan { color: #2c4a66; font-weight: 600; text-decoration: none; } .rk-plan:hover { text-decoration: underline; }
a.btn { text-decoration: none; display: inline-block; }

/* Aktivite detayında yazışma */
.ac-talk-h { border: 0; background: transparent; padding: 0; font-weight: 700; cursor: pointer; color: #2c4a66; font-size: 13px; width: 100%; text-align: left; } .ac-talk-b { margin-top: 8px; } .ac-talk-b.hidden { display: none; } .ac-talk-list { max-height: 180px; overflow-y: auto; } .ac-talk-in { display: flex; gap: 8px; align-items: flex-end; margin-top: 6px; } .ac-talk-in textarea { flex: 1; resize: vertical; }

.ac-plus[hidden], .sy-plus[hidden], .sy-addrow[hidden] { display: none !important; }

/* Müşteri Kaybı Riski: satışçı bazında yeni müşteri katkısı */
.rk-cover { margin-top: 6px; padding-top: 6px; border-top: 1px solid #ffffff55; font-size: 13px; font-weight: 800; }
.rk-reps { margin-bottom: 16px; } .rk-reps-h { border: 0; background: transparent; width: 100%; text-align: left; font: inherit; font-weight: 800; color: #1f3a52; cursor: pointer; padding: 4px 0; }
table.rk-reps-t { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; } .rk-reps-t th { font-size: 11px; white-space: normal; } .rk-reps-t th, .rk-reps-t td { padding: 7px 10px; } .rk-reps-t td.num, .rk-reps-t th.num { text-align: right; white-space: nowrap; } .rk-reps-t th.num { white-space: normal; } .rk-reps-t tr.tot td { font-weight: 800; border-top: 2px solid var(--line); }
.rk-cv { display: inline-block; padding: 1px 8px; border-radius: 99px; font-weight: 700; } .rk-cv.ok { background: #dcfce7; color: #15803d; } .rk-cv.mid { background: #fef3c7; color: #92400e; } .rk-cv.lo { background: #fee2e2; color: #b91c1c; }
.rk-reps-n { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }

.rk-kpi .v { font-size: 24px; white-space: nowrap; }

/* Müşteri Kaybı Riski: KPI müşteri listesi penceresi */
.rk-kpi.sum.click { cursor: pointer; text-align: left; } .rk-kpi.sum.click:hover { filter: brightness(1.08); box-shadow: 0 6px 18px #0f172a40; } .rk-more { margin-top: 8px; font-size: 12px; font-weight: 800; text-decoration: underline; }
.modal.rk-pop { width: min(1000px, 96vw); max-width: 96vw; max-height: 90vh; display: flex; flex-direction: column; } .rk-pop-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .rk-pop-h h3 { margin: 0 0 2px; } .rk-pop-h p { margin: 0; color: var(--muted); font-weight: 600; }
.rk-pop-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; } .rk-pop-f { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; } .rk-pop-f input[type=search] { flex: 1; min-width: 220px; }
.rk-pop-body { overflow: auto; min-height: 120px; } table.rk-pop-t { width: 100%; border-collapse: collapse; font-size: 13px; } .rk-pop-t th { position: sticky; top: 0; z-index: 1; font-size: 11px; } .rk-pop-t th, .rk-pop-t td { padding: 7px 10px; } .rk-pop-t th.num, .rk-pop-t td.num { text-align: right; white-space: nowrap; } .rk-pop-t .nm { font-weight: 600; } .rk-pop-t .sub2 { font-size: 11.5px; color: var(--muted); }
.rk-pop-t tr.imp-top td { background: #fee2e2; } .rk-pop-t tr.imp-top .nm { font-weight: 800; font-size: 14px; } .rk-pop-t tr.imp-top td:first-child { box-shadow: inset 4px 0 0 #dc2626; } .rk-pop-t tr.imp-mid td { background: #fef9c3; } .rk-pop-t tr.imp-mid .nm { font-weight: 700; } .rk-pop-t tr.imp-mid td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
.rk-imp { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; } .rk-pop-t .rk-imp { margin-left: 8px; } .rk-imp.top { background: #dc2626; color: #fff; } .rk-imp.mid { background: #f59e0b; color: #fff; }

/* Aktiviteler: Ekibim Nerede? */
.wh { max-height: 60vh; overflow-y: auto; } .wh-sec h4 { margin: 10px 0 6px; font-size: 13px; color: #2c4a66; text-transform: uppercase; letter-spacing: .04em; }
.wh-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-left: 4px solid #f59e0b; border-radius: 10px; margin-bottom: 6px; } .wh-row.travel { border-left-color: #2563eb; }
.wh-ic { font-size: 20px; flex: none; } .wh-m { flex: 1; min-width: 0; } .wh-s { font-size: 12.5px; color: var(--muted); } .wh-dep { margin-left: 8px; font-size: 11px; padding: 0 7px; border-radius: 99px; background: #eef2f6; }
.wh-d { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* Sorumlu olunmayan departman carisi işareti */
.ac-notmine { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #fef3c7; color: #92400e; white-space: nowrap; } .ac-dd-i .ac-notmine { margin-left: 8px; }
.ac-notmine-b { font-size: 12.5px; padding: 7px 10px; border-radius: 8px; background: #fef3c7; color: #92400e; margin: 4px 0; } .ac-notmine-b[hidden] { display: none; }
.cari-notmine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #fef3c7; color: #92400e; font-weight: 600; margin-bottom: 14px; }

/* Seyahat planı şehir haritası: liste + sırayla ziyarete ekleme */
.sy-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; } .sy-legend i, .sy-mrow > i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; flex: none; } i.mine { background: #2563eb; } i.other { background: #f59e0b; }
.sy-mapgrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 12px; } .sy-mside { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .sy-mlist { height: 440px; overflow-y: auto; } .sy-mlist h4 { margin: 8px 0 6px; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.sy-mrow { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 5px; cursor: pointer; } .sy-mrow:hover { background: var(--soft); } .sy-mrow > i { margin: 0; } .sy-mrow.added { background: #ecfdf5; border-color: #86efac; } .sy-mn { flex: 1; min-width: 0; font-size: 13px; }
.sy-added { font-size: 12px; font-weight: 800; color: #15803d; white-space: nowrap; } .sy-ord { background: transparent; border: 0; box-shadow: none; color: #fff; font-weight: 800; padding: 0; } .sy-ord::before { display: none; }
@media (max-width: 900px) { .sy-mapgrid { grid-template-columns: 1fr; } .sy-mlist { height: 260px; } }

/* Seyahat haritası: eklendiğini belli eden bildirim ve seçilenler şeridi */
.sy-legend i.done { background: #16a34a; }
.sy-picked { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border: 1px solid #86efac; background: #f0fdf4; border-radius: 10px; margin: 6px 0; font-size: 13px; max-height: 92px; overflow-y: auto; }
.sy-pchip { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid #86efac; border-radius: 99px; padding: 2px 4px 2px 3px; } .sy-pchip i { font-style: normal; font-weight: 800; background: #16a34a; color: #fff; border-radius: 50%; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; } .sy-pchip button { border: 0; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; color: #64748b; }
.sy-flash { height: 0; overflow: hidden; font-weight: 800; font-size: 13.5px; border-radius: 8px; background: #16a34a; color: #fff; } .sy-flash.show { height: auto; padding: 8px 12px; margin-bottom: 6px; } .sy-flash.out { background: #64748b; }
.sy-mrow.added { border-width: 2px; border-color: #16a34a; }

.sy-legend i.planned { background: #fff; border: 3px solid #7c3aed; } .sy-plan { font-size: 11.5px; font-weight: 700; color: #6d28d9; }

/* Fatura önizlemesi: eksik sütun uyarısı */
.inv-warn { border: 2px solid #dc2626; background: #fef2f2; color: #991b1b; border-radius: 10px; padding: 12px 14px; margin: 8px 0 12px; display: grid; gap: 6px; }

/* Müşteri Analiz Raporu (ma-) */
.ma-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.ma-field { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12px; color: var(--muted); min-width: 0; }
.ma-field input, .ma-field select { margin: 0; width: 100%; padding: 7px 10px; font-size: 14px; }
.ma-field.cust { flex: 2 1 260px; } .ma-field.name { flex: 2 1 220px; } .ma-field.small { flex: 0 1 120px; }
.ma-combo { position: relative; }
.ma-drop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 2px); max-height: 264px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.ma-opt { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 6px 10px; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--text); }
.ma-opt:hover, .ma-opt.on { background: var(--soft); } .ma-opt span { margin-left: 8px; font-size: 12px; color: var(--muted); }
.ma-none { padding: 8px 10px; font-size: 13px; color: var(--muted); }
.ma-sheet { max-width: 210mm; border: 1px solid var(--line); border-radius: 8px; padding-bottom: 24px; overflow-x: auto; }
.pv .ma-block { margin-top: 18px; break-inside: avoid; page-break-inside: avoid; }
.pv .ma-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; } .pv .ma-head h2 { margin-bottom: 6px; } .pv .ma-head b { font-size: 12.5px; color: #175e83; }
.pv .ma-chart { display: block; width: 100%; height: auto; }
.pv .ma-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; break-inside: avoid; page-break-inside: avoid; }
.pv table.ma-t { table-layout: auto; font-size: 11px; line-height: 1.35; }
.pv table.ma-t thead th { padding: 5px 6px; font-size: 10px; letter-spacing: 0; text-transform: none; }
.pv table.ma-t tbody td { padding: 5px 6px; word-break: normal; overflow-wrap: anywhere; }
.pv table.ma-t th.r, .pv table.ma-t td.r { text-align: right; white-space: nowrap; overflow-wrap: normal; }
.pv table.ma-t tr.ma-sum td { font-weight: 700; background: #eef2f6; border-top: 2px solid #cbd6e2; }
.pv .ma-donut { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; } .pv .ma-donut > svg { flex: none; }
.pv .ma-dlegend { font-size: 11px; display: grid; gap: 4px; min-width: 0; } .pv .ma-dlegend div { display: flex; align-items: center; gap: 6px; } .pv .ma-dlegend svg { flex: none; }
.pv .ma-note { font-size: 10.5px; color: #6b7280; margin-top: 6px; } .pv .ma-foot { margin-top: 18px; border-top: 1px solid #e5e7eb; padding-top: 8px; }
.pv .ma-hdr { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr) 170px; align-items: center; column-gap: 12px; background: var(--brand); color: #fff; margin: 0 -18mm; padding: 22px 6mm 20px; }
.pv .ma-logo { justify-self: start; } .pv .ma-logo img { display: block; height: 34px; width: auto; }
.pv .ma-period { position: absolute; bottom: 6px; right: 6mm; font-size: 9px; white-space: nowrap; opacity: .92; }
.pv .ma-hdr h1 { margin: 0; text-align: center; font-size: 19px; line-height: 1.3; font-weight: 800; color: #fff; }
.pv .ma-hdr::after { content: ""; }   /* sağda logo sütunu kadar boşluk: başlık sayfanın ortasında kalır */
.pv .ma-date { position: absolute; top: 6px; right: 6mm; font-size: 9px; opacity: .92; }
@media screen and (max-width: 860px) { .ma-sheet { padding-left: 12px; padding-right: 12px; } .ma-sheet .pv-top, .ma-sheet .pv-accent { margin-left: -12px; margin-right: -12px; } .ma-sheet .pv-top { padding-left: 12px; padding-right: 12px; } .ma-sheet .ma-two { grid-template-columns: minmax(0, 1fr); } .ma-sheet .ma-hdr { margin: 0 -12px; padding: 22px 10px 24px; grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 8px; } .ma-sheet .ma-hdr::after { display: none; } .ma-sheet .ma-date, .ma-sheet .ma-period { right: 10px; } .ma-sheet .ma-hdr h1 { font-size: 16px; } }
/* müşteriye giden PDF'in alt bilgisi: "CRM" ibaresi yok, dili raporla aynı */
@page maEn { size: A4; margin: 0 0 18mm 0; @bottom-left { content: "Novawood"; font-size: 9px; color: #6b7280; font-family: Arial, sans-serif; padding-left: 18mm; } @bottom-right { content: "Page " counter(page) " / " counter(pages); font-size: 9px; color: #6b7280; font-family: Arial, sans-serif; padding-right: 18mm; } }
@page maTr { size: A4; margin: 0 0 18mm 0; @bottom-left { content: "Novawood"; font-size: 9px; color: #6b7280; font-family: Arial, sans-serif; padding-left: 18mm; } @bottom-right { content: "Sayfa " counter(page) " / " counter(pages); font-size: 9px; color: #6b7280; font-family: Arial, sans-serif; padding-right: 18mm; } }
@page maEn:first { margin-top: 0; }
@page maTr:first { margin-top: 0; }
body.ma-print-en { page: maEn; }
body.ma-print-tr { page: maTr; }
.pv.ma-doc h2 { text-transform: none; letter-spacing: 0; font-size: 13.5px; }   /* m³ büyük harfe çevrilmesin */
.pv .ma-split-wrap { margin-top: 22px; break-inside: avoid; page-break-inside: avoid; } .pv .ma-split-wrap > h2 { margin-bottom: 8px; }
.pv .ma-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pv table.ma-t tr.ma-subt td { font-weight: 700; background: #eef2f6; border-bottom: 1px solid #cbd6e2; }
.pv table.ma-t tr.ma-grand td { font-weight: 800; color: #b4530f; background: #fdf1e7; border-top: 2px solid #e97132; }
.pv .ma-hbar { margin-top: 14px; }
@media screen and (max-width: 860px) { .ma-sheet .ma-split { grid-template-columns: minmax(0, 1fr); } }
.pv .ma-trend { margin-top: 22px; break-inside: avoid; page-break-inside: avoid; } .pv .ma-trend h2 { margin-bottom: 6px; }
.pv .ma-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 11px; color: #374151; margin-bottom: 4px; } .pv .ma-leg { display: inline-flex; align-items: center; gap: 5px; } .pv .ma-until { margin-left: auto; color: #6b7280; }
.pv .ma-hdr h1.long { font-size: 15.5px; }
.pv .ma-summary { margin-top: 14px; } .pv .ma-summary h2 { margin-bottom: 6px; } .pv .ma-keep { break-inside: avoid; page-break-inside: avoid; }
.pv .ma-matrix { margin-top: 6px; break-inside: avoid; page-break-inside: avoid; } .pv .ma-matrix h3 { font-size: 11.5px; color: #175e83; margin: 0 0 4px; }
.pv table.ma-m { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 10px; line-height: 1.2; }
.pv table.ma-m.tight { font-size: 8.5px; }
.pv table.ma-m thead th { background: var(--brand); color: #fff; font-size: 10px; letter-spacing: 0; text-transform: none; text-align: right; padding: 3px 5px; border: 0; }
.pv table.ma-m thead th.first { width: 16%; text-align: left; } .pv table.ma-m thead th.tot { width: 14%; }
.pv table.ma-m tbody td { text-align: right; padding: 1px 5px; border-bottom: 1px solid #e5e7eb; white-space: nowrap; vertical-align: middle; background: #fff; }
.pv table.ma-m tbody td.first { text-align: left; font-weight: 700; white-space: normal; word-break: normal; }
.pv table.ma-m tbody td.tot { background: #eef2f6; font-weight: 700; }
.pv table.ma-m tbody tr.sum td { background: #e3e9f0; font-weight: 800; border-top: 2px solid var(--brand); }
.pv table.ma-m em { display: block; font-style: normal; font-size: 8.5px; font-weight: 600; color: #b4530f; } .pv table.ma-m .ma-zero { color: #9ca3af; }
@media screen and (max-width: 860px) { .ma-sheet .ma-matrix { overflow-x: auto; } .ma-sheet table.ma-m { min-width: 560px; } }
.pv .ma-summary + .ma-foot { margin-top: 8px; padding-top: 4px; break-before: avoid; }
.pv .ma-prices { margin-top: 18px; } .pv .ma-prices h2 { margin-bottom: 6px; break-after: avoid; }
.pv table.ma-p thead th { vertical-align: bottom; } .pv table.ma-p thead th.first { width: 17%; } .pv table.ma-p thead th.size { width: 12%; text-align: center; white-space: normal; } .pv table.ma-p thead th.qty { width: 12%; } .pv table.ma-p thead th.tot { width: 13%; }
.pv table.ma-p tbody td { padding: 3px 4px; } .pv table.ma-p tbody td.first { font-weight: 600; } .pv table.ma-p tbody td.size { text-align: center; font-weight: 700; }
.pv table.ma-p tbody tr { break-inside: avoid; page-break-inside: avoid; }
.pv table.ma-p tbody tr.ma-pgrp td { text-align: left; font-weight: 800; color: #175e83; background: #e3e9f0; break-after: avoid; }
@media screen and (max-width: 860px) { .ma-sheet .ma-prices { overflow-x: auto; } }
/* sayfa iskeleti: başlık her basılı sayfada yinelenir (genel .pv tablo stilleri bu iskelete uygulanmaz) */
.pv table.ma-pages { width: 100%; table-layout: fixed; border-collapse: collapse; }
.pv table.ma-pages > thead > tr > td, .pv table.ma-pages > tbody > tr > td { padding: 0; border: 0; background: transparent; word-break: normal; }
.pv table.ma-pages > tbody > tr { break-inside: auto; page-break-inside: auto; }
.pv table.ma-pages > thead { display: table-header-group; }
.pv table.ma-pages .pv-accent { margin-bottom: 14px; }
.pv .ma-letter { white-space: pre-wrap; font-size: 11.5px; line-height: 1.5; padding: 10px 14px; background: #f4f7fa; border-left: 4px solid #175e83; border-radius: 6px; break-inside: avoid; }
.ma-checks { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 8px; }
.ma-check { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-weight: 400; cursor: pointer; } .ma-check input { width: auto; margin: 0; }
.ma-bar textarea { flex: 1 0 100%; width: 100%; resize: vertical; font-size: 12.5px; margin: 0; }
.pv table.ma-pages > tbody > tr, .pv table.ma-pages > thead > tr { background: transparent; }
.pv .ma-letter { margin: 0 -12mm; }   /* yazı kutusu başlık bandıyla aynı kenar boşluğunda (6mm) */
@media screen and (max-width: 860px) { .ma-sheet .ma-letter { margin: 0 -6px; } }
/* boş / tek satırlık son sayfa çıkmasın: dipnot önceki içerikle kalır, çıktının altında boşluk bırakılmaz */
.pv .ma-foot { break-before: avoid; page-break-before: avoid; }
@media print { body.ma-print-en, body.ma-print-tr { min-height: 0; height: auto; } body.ma-print-en #print-root .pv, body.ma-print-tr #print-root .pv { padding-bottom: 0; margin-bottom: 0; } }
/* rapor sıkı yerleşim: teşekkür yazısıyla birlikte de gereksiz sayfa çıkmasın */
.pv .ma-block { margin-top: 10px; } .pv .ma-two { margin-top: 10px; } .pv .ma-split-wrap { margin-top: 12px; } .pv .ma-trend { margin-top: 12px; } .pv .ma-prices { margin-top: 12px; }
.pv .ma-donut { margin-top: 8px; } .pv table.ma-t tbody td { padding: 3px 6px; } .pv table.ma-t thead th { padding: 4px 6px; }
.pv table.ma-p tbody td { padding: 1.5px 4px; }
.pv .ma-letter { font-size: 11px; line-height: 1.4; padding: 8px 14px; }
.pv .ma-foot { margin-top: 10px; padding-top: 5px; }

/* ================= TELEFON / TABLET ================= */
.menu-btn, .menu-close, .menu-shade { display: none; }
@media screen and (max-width: 860px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  /* üst çubuk sabit: menü düğmesi, logo, bildirimler */
  .topbar { position: sticky; top: 0; z-index: 9; flex-wrap: nowrap; padding: 8px 10px; gap: 8px; }
  .topbar .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; font-size: 22px; line-height: 1; padding: 0; }
  .topbar .brand-wrap { flex: 1; min-width: 0; } .topbar .brand img { height: 28px; }
  .topbar nav { flex-wrap: nowrap; gap: 6px; } .topbar nav > a, .topbar nav > button { padding: 8px 10px; }
  /* sol menü: ekranın solundan kayarak açılır */
  .layout { display: block; min-height: 0; }
  .layout .wrap { padding: 14px 12px 28px; }
  .side { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); z-index: 1500; padding: 10px 8px; border-right: 1px solid var(--line); background: var(--card); transform: translateX(-102%); transition: transform .22s ease; visibility: hidden; overscroll-behavior: contain; }
  body.menu-open .side { transform: none; visibility: visible; box-shadow: 8px 0 30px #0f172a55; }
  .side-in { position: static; height: 100%; min-height: 0; }
  .side .mtitle { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin: 0 0 8px 8px; }
  .menu-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 17px; cursor: pointer; color: var(--text); }
  .side nav { -webkit-overflow-scrolling: touch; }
  .side .mitem { padding: 11px 10px; font-size: 15px; } .side .mitem.sub { padding: 10px 9px; font-size: 14.5px; }
  .menu-shade { display: block; position: fixed; inset: 0; background: #0f172a66; z-index: 1400; opacity: 0; pointer-events: none; transition: opacity .22s ease; }
  body.menu-open .menu-shade { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }

  /* dokunma: yazı alanlarında 16px (telefon sayfayı kendiliğinden büyütmesin), düğmeler rahat basılsın */
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
  .btn { min-height: 40px; } .btn.sm, .btn.ac-sm { min-height: 34px; }
  input[type=checkbox], input[type=radio] { min-width: 18px; min-height: 18px; }

  /* genel yerleşim */
  h2 { font-size: 19px; } .wrap > .sub, .wrap > p.sub { font-size: 13px; margin-bottom: 12px; line-height: 1.45; }
  .db-head, .ac-top { flex-direction: column; align-items: stretch; }
  .db-tools, .ac-tools { width: 100%; min-width: 0; } .db-tools > select, .ac-tools > select { width: 100%; max-width: 100%; min-width: 0; }
  .ac-tabs { max-width: 100%; overflow-x: auto; }

  /* açılır pencereler tam ekrana yakın; yan paneller tam genişlik */
  .modal-bg { padding: 8px; align-items: start; overflow-y: auto; }
  .modal-bg > .modal, .modal.wide, .modal.xl, .modal.wide.ac-modal, .modal.wide.xl.ptl-modal, .modal.rk-pop { width: 100%; max-width: 100%; max-height: calc(100dvh - 16px); padding: 16px 12px; }
  .modal .two { grid-template-columns: 1fr; }
  .modal .acts { position: sticky; bottom: -16px; background: #fff; padding: 10px 0; margin-top: 12px; flex-wrap: wrap; }
  .modal table { display: block; max-width: 100%; overflow-x: auto; }
  .ac-drawer, .rk-drawer { width: 100vw; max-width: 100vw; }
  .modal.modal-wide { width: 100% !important; max-width: 100% !important; }

  /* geniş tablolar kendi içinde yana kayar, sayfa kaymaz */
  .cm-table, table.rk-reps-t { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* liste satırları (Bilgi Paylaşımı, Pazar Araştırması): sayılar alta iner */
  .kn-row, .mr .kn-row { flex-wrap: wrap; align-items: flex-start; }
  .kn-row .kn-main { flex: 1 1 0; min-width: 170px; }
  .kn-row .kn-stats, .mr .kn-stats { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; flex: 1 1 100%; min-width: 0; gap: 6px; }
  .kn-row .kn-act { margin: 0 0 0 auto; }
  .kn-list { grid-template-columns: minmax(0, 1fr) !important; }

  /* Satış Hedef Raporu: kişi listesi üstte, rapor altta */
  .st-split { flex-direction: column; align-items: stretch; } .st-left { width: 100%; } .st-right { min-width: 0; width: 100%; overflow-x: auto; }
  .st-list { max-height: 240px; overflow-y: auto; }

  /* Müşteri Kaybı Riski */
  .rk-dseg { display: flex; width: 100%; overflow-x: auto; } .rk-bar > select, .rk-bar > input { width: 100%; }

  /* süzgeç satırları */
  .lfilters > select, .lfilters > input[type=search], .cm-tools > select, .cm-tools > input, .ac-bar > select, .ac-bar > input { flex: 1 1 140px; min-width: 0; max-width: 100%; }
  .lfilters > input[type=search], .cm-tools > input[type=search], .ac-bar > input[type=search] { flex-basis: 100%; }

  .sy-tabs { flex-wrap: wrap; }
  .leaflet-container { max-width: 100%; }
}
/* seyahat formu: tarih sütunu dar silme sütununa düşmesin */
@media screen and (max-width: 900px) { .sy-drow .sy-col { grid-column: 1; } .sy-drow .sy-rm2 { grid-column: 2; grid-row: 1; } .sy-drow .sy-wide { grid-column: 1 / 3; } }

/* ===== MOBİL: SABİT KAYDIRILAN TABLOLAR VE AÇILIR PENCERELER ===== */
@media screen and (max-width: 860px) {
  /* tablo kutusu yerinde durur; içi yukarı-aşağı ve sağa-sola sürüklenir, sürükleme sayfaya taşmaz */
  .db-tscroll, .db-tscroll.rg, .db-tscroll.bl-wrap, .fin-page .fin-kaydir { max-height: 62vh !important; max-height: 62dvh !important; overflow: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  /* başlık satırı ve ilk sütun sabit kalır */
  .db-tscroll thead th, .fin-page .fin-kaydir thead th { position: sticky; top: 0; z-index: 2; }
  .fin-page .fin-kaydir thead th { background-color: #fff; }
  .fin-page .fin-kaydir thead th.fin-col-gecmis { background-color: #fee2e2; } .fin-page .fin-kaydir thead th.fin-col-gelmemis { background-color: #dcfce7; }
  .db-tscroll tbody td:first-child:not([colspan]), .fin-page .fin-kaydir table:not(.fin-risk-table) tbody td:first-child:not([colspan]), .fin-page .fin-kaydir .fin-risk-table tbody td.fin-col-musteri { position: sticky; left: 0; z-index: 1; background-color: #fff; }
  .db-tscroll thead th:first-child:not([colspan]), .fin-page .fin-kaydir thead tr:first-child th:first-child { left: 0; z-index: 3; }
  .db-tscroll:not(.bl-wrap) tbody td:first-child:not([colspan]) { min-width: 96px; max-width: 132px; white-space: normal; overflow-wrap: anywhere; }
  .fin-page .fin-risk-table.data-table th.fin-col-musteri, .fin-page .fin-risk-table.data-table td.fin-col-musteri { width: 118px; min-width: 118px; max-width: 118px; }
  .fin-page .fin-kaydir table:not(.fin-risk-table) tbody td:first-child:not([colspan]) { max-width: 140px; white-space: normal; }

  /* finans borç listesi: köşe başlığı üstte kalsın; toplam satırları telefonda kutunun altına yapışıp yer kaplamasın */
  .fin-page .fin-kaydir thead tr:first-child th:first-child { z-index: 4 !important; }
  .fin-page .fin-risk-table tfoot { position: static !important; }

  /* açılır pencere yerinde sabit: arkadaki sayfa kaymaz, pencere sağa-sola oynamaz, yalnız içi aşağı-yukarı kayar */
  html:has(.modal-bg), html:has(.modal-bg) body, html:has(.fin-overlay:not(.hidden)) body { overflow: hidden; overscroll-behavior: none; }
  .modal-bg { overflow: hidden; overscroll-behavior: contain; }
  .modal-bg > .modal { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; min-width: 0; }
  .modal-bg > .modal.ac-modal:not(.ac-small) { height: calc(100vh - 16px); height: calc(100dvh - 16px); }
  /* iPhone tarih/saat kutuları kendi genişliğini dayatıp pencereyi taşırmasın */
  .modal input[type=date], .modal input[type=time], .ac-bar input[type=date] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background-color: #fff; color: var(--text); }
  .modal .ac-form, .modal .ac-form > *, .modal .two > * { min-width: 0; }
  /* "Tüm Aktiviteler" tarih aralığı sayfayı yana taşırıyordu */
  .ac-dl { flex-wrap: wrap; max-width: 100%; } .ac-dl input { flex: 1 1 130px; min-width: 0; }
}

.ma-pdfbox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }

/* ===== AÇILIR PENCERELER: kaydırınca da yerinde duran kırmızı kapatma düğmesi ===== */
.px-wrap { position: sticky; top: 0; height: 0; z-index: 30; flex: none; }
.px-btn { position: absolute; top: -14px; right: -12px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; background: #dc2626; color: #fff; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px #00000040; padding: 0; }
.px-btn:hover { background: #b91c1c; }
.modal.has-px > h3, .fin-modal.has-px > h2 { padding-right: 40px; }
.fin-modal.has-px > .fin-modal-close { display: none; }
.ac-dx, .rk-close, .sy-gx { background: #dc2626 !important; color: #fff !important; border: 2px solid #fff !important; border-radius: 50% !important; width: 38px; height: 38px; flex: none; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px #00000040; }
@media screen and (max-width: 860px) { .px-btn { top: -8px; right: -4px; } }
.kn-lb::after { content: "✕"; position: fixed; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: #dc2626; color: #fff; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; cursor: pointer; }
.rk-pop.has-px .rk-pop-h > button { display: none; } .rk-pop.has-px .rk-pop-h { padding-right: 40px; }
