/* SAHNE · TAHSİLAT TAKİBİ: KUYRUKTAN GÖRÜŞME → ÖDEME SÖZÜ (includes/scenes/collection.php) — adımlar:
   s1 «Görüşme yap» (Rıza Yılmaz) · s2 görüşme formu, «Kanal» açılır · s3 «WhatsApp» · s4 özet yazılır ·
   s5 taahhüt tutarı + tarihi · s6 «Kaydet» · s7 sayfa başı: yeşil ileti, satır listeden çıkar (7 → 6) ·
   s8 takip geçmişi: taahhüt bekliyor + görüşme */
.col { container-type: inline-size; --d: 0s; --col-st: 380px; --col-fh: 32px;
  --col-spring: cubic-bezier(.34, 1.56, .64, 1);
  --col-a50: #fffbeb; --col-a100: #fef3c7; --col-a200: #fde68a; --col-a300: #fcd34d; --col-a700: #b45309; --col-a800: #92400e;
  --col-s50: #f0f9ff; --col-s100: #e0f2fe; --col-s200: #bae6fd; --col-s300: #7dd3fc; --col-s700: #0369a1; --col-s800: #075985;
  --col-z100: #f4f4f5; --col-z300: #d4d4d8; --col-z500: #71717a; --col-z600: #52525b; --col-ink: #18181b; }
.col-win { border-radius: 14px; background: #f6f7f9; }
.col-i { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.col-x { display: inline-grid; }
.col-x > * { grid-area: 1 / 1; }

/* imleç: .col-hit tıklama noktasıdır; ok ucu tam orada, halka dalgası çevresinde */
.col-hit { position: absolute; z-index: 7; width: 0; height: 0; pointer-events: none; }
.col-hit .ui-cur { left: -5px; top: -3px; transform: translate(14px, 12px); transition: opacity .2s var(--ui-ease); }
.col-rip { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(29, 79, 134, .55); opacity: 0; }
@keyframes col-cur { 0% { opacity: 0; transform: translate(14px, 12px); } 36% { opacity: 1; transform: none; scale: 1; } 50% { scale: .8; } 62%, 100% { opacity: 1; transform: none; scale: 1; } }
@keyframes col-cur-out { 0% { opacity: 0; transform: translate(14px, 12px); } 32% { opacity: 1; transform: none; scale: 1; } 46% { scale: .8; } 58% { scale: 1; } 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes col-rip { 0% { opacity: 0; scale: .25; } 12% { opacity: .9; } 100% { opacity: 0; scale: 1.7; } }
@keyframes col-push { 50% { scale: .94; } }
@keyframes col-pop { 0% { scale: .5; } 60% { scale: 1.18; } 100% { scale: 1; } }
@keyframes col-ring { 0%, 100% { opacity: 0; } 12%, 84% { opacity: 1; } }
@keyframes col-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ── başlık bandı (kurum rengi) ── */
.col-band { display: flex; align-items: center; gap: 12px; margin: 12px 12px 0; padding: 10px 12px; border-radius: 12px; color: #fff;
  background: linear-gradient(120deg, var(--navy-night), var(--navy) 55%, var(--navy-soft));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(11, 36, 64, .18), 0 10px 20px -14px rgba(11, 36, 64, .7); }
.col-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.col-ico .col-i { width: 17px; height: 17px; stroke-width: 1.8; }
.col-ttl { flex: 1; min-width: 0; }
.col-ttl b { display: block; font-size: 15px; font-weight: 800; line-height: 20px; letter-spacing: -.01em; }
.col-ttl small { display: block; margin-top: 1px; font-size: 11px; font-weight: 600; line-height: 15px; color: rgba(255, 255, 255, .82); white-space: nowrap; }

/* ── sahne gövdesi: üç görünüm aynı hücrede (sayfa başı · form · sayfa sonu) ── */
.col-stage { position: relative; display: grid; height: var(--col-st); margin-top: 10px; overflow: hidden; }
.col-stage::after { content: ""; position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 18px; background: linear-gradient(rgba(246, 247, 249, 0), #f6f7f9); pointer-events: none; }
.col-v { grid-area: 1 / 1; min-width: 0; padding: 0 12px; transition: opacity .35s var(--ui-ease) var(--d), translate .55s var(--ui-ease) var(--d); }
.col-f { opacity: 0; translate: 0 28px; }
.col-t { opacity: 0; translate: 0 44px; }
.col.s2 .col-q { opacity: 0; translate: 0 -16px; transition-delay: .2s; }
.col.s2 .col-f { opacity: 1; translate: 0 0; transition-delay: .26s; }
.col.s7 .col-q { opacity: 1; translate: 0 0; transition-delay: .1s; }
.col.s7 .col-f { opacity: 0; translate: 0 28px; transition-delay: 0s; }
.col.s8 .col-q { opacity: 0; translate: 0 -44px; transition-delay: 0s; }
.col.s8 .col-t { opacity: 1; translate: 0 0; transition-delay: .12s; }
/* kaydırma çubuğu ipucu: sayfa başı → form → sayfa sonu */
.col-sb { position: absolute; z-index: 6; top: 6px; right: 3px; width: 4px; height: 54px; border-radius: 2px; background: rgba(16, 37, 64, .16); transition: translate .55s var(--ui-ease) .2s; }
.col.s2 .col-sb { translate: 0 150px; }
.col.s5 .col-sb { translate: 0 186px; }
.col.s7 .col-sb { translate: 0 0; transition-delay: .1s; }
.col.s8 .col-sb { translate: 0 calc(var(--col-st) - 66px); }

/* ── sayfa başı: ileti + süzgeç + iki liste ── */
.col-q__in { translate: 0 calc(-1 * (var(--col-fh) + 8px)); transition: translate .5s var(--ui-ease); }
.col.s7 .col-q__in { translate: 0 0; transition-delay: .5s; }
.col-flash { display: flex; align-items: center; gap: 8px; height: var(--col-fh); margin-bottom: 8px; padding: 0 12px; border-radius: 10px; background: #ecfdf5; box-shadow: inset 0 0 0 1px #a7f3d0;
  font-size: 11.5px; font-weight: 700; line-height: 15px; color: #047857; opacity: 0; scale: .985; transition: opacity .3s var(--ui-ease), scale .4s var(--ui-ease); }
.col-flash span { text-wrap: balance; }
.col.s7 .col-flash { opacity: 1; scale: 1; transition-delay: .62s; }
.col-seg { display: flex; gap: 6px; margin-bottom: 8px; }
.col-seg span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 9px; background: #fff; font-size: 11px; font-weight: 800; color: var(--col-z600); white-space: nowrap; box-shadow: inset 0 0 0 1px #e4e4e7; }
.col-seg .is-on { background: #eef3fa; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy-soft); }
.col-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.col-pn { border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--pn-b), 0 1px 2px rgba(16, 37, 64, .05), 0 8px 18px -14px rgba(16, 37, 64, .3); }
.col-pn--call { --pn-b: var(--col-a200); }
.col-pn--prom { --pn-b: var(--col-s200); }
.col-pn__h { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; }
.col-pn__h b { font-size: 12px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-pn--call .col-pn__h { background: var(--col-a50); box-shadow: inset 0 -1px 0 var(--col-a200); color: var(--col-a700); }
.col-pn--call .col-pn__h b { color: var(--col-a800); }
.col-pn--prom .col-pn__h { background: var(--col-s50); box-shadow: inset 0 -1px 0 var(--col-s200); color: var(--col-s700); }
.col-pn--prom .col-pn__h b { color: var(--col-s800); }
.col-cnt { vertical-align: top; }
.col-c6 { opacity: 0; }
.col.s7 .col-c7 { opacity: 0; transition: opacity .15s var(--ui-ease) 1.15s; }
.col.s7 .col-c6 { opacity: 1; animation: col-pop .45s var(--ui-ease) 1.15s both; }

.col-rw { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ui-ease), opacity .3s var(--ui-ease); }
.col-r { display: flex; align-items: center; gap: 10px; min-height: 0; padding: 8px 12px; overflow: hidden; box-shadow: inset 0 1px 0 var(--col-z100);
  transition: padding .45s var(--ui-ease), background-color .25s var(--ui-ease); }
.col-rw:first-of-type .col-r, .col-pn__h + .col-r { box-shadow: none; }
.col-r__t { flex: 1; min-width: 0; }
.col-r__t b { display: block; font-size: 12.5px; font-weight: 700; line-height: 17px; color: var(--col-ink); white-space: nowrap; }
.col-r__t small { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 700; line-height: 14px; color: var(--col-z500); font-variant-numeric: tabular-nums; }
.col-r--p .col-r__t small > span { white-space: nowrap; }
.col-go { position: relative; flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--col-a50); font-size: 11px; font-weight: 800; color: var(--col-a700); white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--col-a300), 0 1px 1px rgba(146, 64, 14, .06); }
.col-go .col-hit { right: 22px; bottom: 7px; }
.col.s1:not(.s2) .col-rw--rz .col-r { background: #fffcf2; transition-delay: .4s; }
.col.s1:not(.s2) .col-rw--rz .col-go { background: var(--col-a100); animation: col-push .3s var(--ui-ease) .4s; transition: background-color .2s var(--ui-ease) .4s; }
.col.s1:not(.s2) .col-hit--go .ui-cur { animation: col-cur .9s var(--ui-ease) both; }
.col.s1:not(.s2) .col-hit--go .col-rip { animation: col-rip .55s ease-out .4s both; }
/* kayıttan sonra: en son görüşmesinde sonraki gün yok → listeden çıkar */
.col.s7 .col-rw--rz { grid-template-rows: 0fr; opacity: 0; transition-delay: 1s, .9s; }
.col.s7 .col-rw--rz .col-r { padding-top: 0; padding-bottom: 0; transition-delay: 1s; }

.col-r--p { gap: 8px; }
.col-pb { flex: none; display: flex; gap: 4px; }
.col-pb > span { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.col-ok { background: #ecfdf5; color: #047857; box-shadow: inset 0 0 0 1px #6ee7b7; }
.col-no { background: #fef2f2; color: #b91c1c; box-shadow: inset 0 0 0 1px #fca5a5; }

/* ── görüşme formu ── */
.col-f__in { transition: translate .55s var(--ui-ease); }
.col-card { position: relative; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--ui-line), 0 1px 2px rgba(16, 37, 64, .05), 0 10px 22px -16px rgba(16, 37, 64, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.col-card__h { display: flex; align-items: center; height: 36px; padding: 0 14px; box-shadow: inset 0 -1px 0 var(--col-z100); }
.col-card__h b { font-size: 12.5px; font-weight: 800; color: var(--col-ink); white-space: nowrap; }
.col-fg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 10px; padding: 11px 14px 14px; }
.col-fl { position: relative; min-width: 0; }
.col-fl--ogr, .col-fl--ozet, .col-fl--not { grid-column: 1 / -1; }
.col-fl--tut, .col-fl--btn { grid-column: 1; }
.col-lb { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 800; line-height: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--col-z500); white-space: nowrap; }
.col-ogr { display: flex; align-items: center; gap: 5px; height: 18px; font-size: 12px; font-weight: 700; color: var(--navy-soft); white-space: nowrap; }
.col-ogr .col-i { width: 13px; height: 13px; stroke-width: 2.6; }
.col-ogr u { margin-left: 5px; font-size: 10.5px; font-weight: 800; color: var(--col-z500); text-underline-offset: 2px; }
.col-in { position: relative; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 9px; background: #fff; font-size: 11.5px; font-weight: 700; color: var(--col-ink); white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--col-z300), 0 1px 1px rgba(16, 37, 64, .03); }
.col-in::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--navy-soft), 0 0 0 3px rgba(29, 79, 134, .16); opacity: 0; transition: opacity .2s var(--ui-ease); pointer-events: none; }
.col-in--sky { background: var(--col-s50); box-shadow: inset 0 0 0 1px var(--col-s300); }
.col-in--area { height: 40px; }
.col-in .col-x { min-width: 0; }
.col-chev { width: 13px; height: 13px; margin-left: auto; color: var(--col-z600); }
.col-cal { width: 13px; height: 13px; margin-left: auto; color: #3f3f46; }
.col-mut { color: var(--col-z500); font-weight: 600; }
.col-in--date { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.col-in--sel .col-hit { right: 34px; bottom: 9px; }

/* kanal: açılan liste (uygulamanın kanal seçenekleri) */
.col-dd { position: absolute; z-index: 9; left: 0; right: 0; top: 50px; padding: 4px; border-radius: 9px; background: #fff;
  box-shadow: 0 0 0 1px rgba(16, 37, 64, .12), 0 2px 4px rgba(16, 37, 64, .08), 0 16px 30px -12px rgba(16, 37, 64, .45);
  opacity: 0; translate: 0 -4px; scale: .98; transform-origin: top; transition: opacity .18s var(--ui-ease), translate .25s var(--ui-ease), scale .25s var(--ui-ease); pointer-events: none; }
.col-dd__o { position: relative; display: flex; align-items: center; height: 23px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; color: var(--col-ink); white-space: nowrap; transition: background-color .15s var(--ui-ease), color .15s var(--ui-ease); }
.col-dd__o--wa .col-hit { left: 46px; top: 13px; }
.col.s2 .col-dd { opacity: 1; translate: 0 0; scale: 1; transition-delay: .86s; }
.col.s3 .col-dd { opacity: 0; translate: 0 -4px; transition-delay: .52s; }
.col.s2:not(.s3) .col-dd__o--tel, .col.s3 .col-dd__o--wa { background: #e8eef7; color: var(--navy); }
.col.s3 .col-dd__o--wa { transition-delay: .18s; }
.col.s2:not(.s3) .col-hit--kanal .ui-cur { animation: col-cur .9s var(--ui-ease) .3s both; }
.col.s2:not(.s3) .col-hit--kanal .col-rip { animation: col-rip .55s ease-out .74s both; }
.col.s3:not(.s4) .col-hit--wa .ui-cur { animation: col-cur-out .85s var(--ui-ease) both; }
.col.s3:not(.s4) .col-hit--wa .col-rip { animation: col-rip .5s ease-out .36s both; }
.col-kv2 { opacity: 0; }
.col.s3 .col-kv1 { opacity: 0; transition: opacity .15s var(--ui-ease) .52s; }
.col.s3 .col-kv2 { opacity: 1; transition: opacity .2s var(--ui-ease) .56s; }
.col.s2:not(.s4) .col-fl--kanal .col-in::after { opacity: 1; transition-delay: .74s; }

/* özet: yazılır (karakter karakter açılır) */
.col-in--txt { display: grid; align-items: center; height: auto; min-height: 30px; padding: 7px 10px; line-height: 16px; white-space: normal; }
.col-in--txt > * { grid-area: 1 / 1; min-width: 0; }
.col-ph { font-weight: 500; color: #a1a1aa; white-space: nowrap; transition: opacity .1s linear; }
.col.s4 .col-ph { opacity: 0; transition-delay: .14s; }
.col-tw { display: inline-block; vertical-align: top; max-width: 0; overflow: hidden; white-space: nowrap; }
.col-tw--1 { transition: max-width .58s steps(28) .16s; }
.col-tw--2 { transition: max-width .5s steps(23) .74s; }
.col.s4 .col-tw--1 { max-width: 190px; }
.col.s4 .col-tw--2 { max-width: 160px; }
.col-caret { display: inline-block; vertical-align: top; width: 1px; height: 15px; margin: 1px 0 0 1px; background: var(--col-ink); opacity: 0; }
.col.s4:not(.s5) .col-in--txt .col-caret { opacity: 1; animation: col-blink 1s steps(1) 1.3s infinite; }
.col.s4:not(.s5) .col-fl--ozet .col-in::after { opacity: 1; }

/* taahhüt tutarı + tarihi */
.col-in--num { font: 600 11.5px/16px ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: 0; }
.col-tw--n { transition: max-width .42s steps(5) .14s; }
.col.s5 .col-tw--n { max-width: 44px; }
.col-caret--n { height: 14px; margin-top: 0; }
.col.s5:not(.s6) .col-in--num .col-caret { opacity: 1; animation: col-ring .7s linear both; }
.col.s5:not(.s6) .col-fl--tut .col-in::after { animation: col-ring .72s var(--ui-ease) both; }
.col.s5:not(.s6) .col-fl--tar .col-in::after { opacity: 1; transition-delay: .7s; }
/* tarih alanı bölüm bölüm dolar: gg.aa.yyyy → 31.aa.yyyy → 31.10.yyyy → 31.10.2026 */
.col-dt > * { opacity: 0; white-space: nowrap; }
.col-dt > :first-child { opacity: 1; }
.col.s5 .col-dt > * { opacity: 1; transition: opacity 0s linear calc(.8s + var(--k) * .2s); }
.col.s5 .col-dt > :not(:last-child) { opacity: 0; transition: opacity 0s linear calc(.8s + var(--k, -1) * .2s + .2s); }

/* Kaydet */
.col-save { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 16px 0 14px; border-radius: 10px; font-size: 12px; font-weight: 800; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(16, 37, 64, .2), 0 6px 14px -8px rgba(20, 61, 107, .75); }
.col-save .col-hit { right: 18px; bottom: 9px; }
.col.s6:not(.s7) .col-save { animation: col-push .3s var(--ui-ease) .38s; }
.col.s6:not(.s7) .col-hit--save .ui-cur { animation: col-cur .8s var(--ui-ease) both; }
.col.s6:not(.s7) .col-hit--save .col-rip { animation: col-rip .5s ease-out .38s both; }

/* ── sayfa sonu: formun altı + takip geçmişi ── */
.col-tail { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: -14px; padding: 20px 14px 14px; }
.col-tail .col-fl { align-self: stretch; }
.col-tl { margin-top: 10px; overflow: hidden; }
.col-ev { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; box-shadow: inset 0 1px 0 var(--col-z100);
  opacity: 0; translate: 0 -6px; transition: opacity .3s var(--ui-ease) calc(.5s + var(--i) * 120ms), translate .4s var(--ui-ease) calc(.5s + var(--i) * 120ms); }
.col-card__h + .col-ev { box-shadow: none; }
.col.s8 .col-ev { opacity: 1; translate: 0 0; }
.col-ev__ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; background: var(--col-s100); color: var(--col-s700); }
.col-ev__ic .col-i { width: 13px; height: 13px; }
.col-ev__ic--p { background: var(--col-a100); color: var(--col-a700); }
.col.s8 .col-ev--new .col-ev__ic { animation: col-pop .45s var(--ui-ease) calc(.55s + var(--i) * 120ms) both; }
.col-ev__t { flex: 1; min-width: 0; }
.col-ev__t b { display: block; font-size: 12px; font-weight: 700; line-height: 16px; color: var(--col-ink); font-variant-numeric: tabular-nums; }
.col-ev__t b em { font-style: normal; color: var(--col-z500); }
.col-ev__m { display: block; margin-top: 1px; font-size: 11px; font-weight: 500; line-height: 15px; color: var(--col-z600); text-wrap: pretty; }
.col-ev__t small { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; line-height: 13px; color: var(--col-z600); font-variant-numeric: tabular-nums; }

/* ── DAR KAPLAR ── */
@container (max-width: 600px) {
  .col-stage { --col-fh: 46px; }
  .col-ttl small { display: none; }
  .col-grid { grid-template-columns: minmax(0, 1fr); }
  .col-flash { align-items: center; }
  .col-fg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-fl--next { grid-column: 1; }
  .col-fl--tar { grid-column: 2; }
  .col.s5 .col-f__in { translate: 0 var(--col-fs, -84px); }
  /* :not(.s7) — motor sınıfları biriktirir; s7/s8 üstteki genel kurallara (başa · sona) kalsın */
  .col.s2:not(.s7) .col-sb { translate: 0 120px; }
  .col.s5:not(.s7) .col-sb { translate: 0 190px; }
}
@container (max-width: 470px) {
  .col-band { margin: 10px 10px 0; padding: 9px 11px; gap: 10px; }
  .col-ico { width: 30px; height: 30px; border-radius: 9px; }
  .col-ico .col-i { width: 15px; height: 15px; }
  .col-ttl b { font-size: 14px; }
  .col-v { padding: 0 10px; }
  .col-flash { padding: 0 10px; font-size: 11px; }
  .col-sum { display: none; }
  .col-r { padding: 8px 10px; }
  .col-pn__h { padding: 0 10px; }
  .col-card__h { padding: 0 12px; }
  .col-fg { gap: 9px 8px; padding: 10px 12px 12px; }
  .col-in { padding: 0 8px; }
  .col-in--txt { padding: 7px 8px; }
  .col-lb { letter-spacing: .03em; }
  .col-ev { padding: 9px 12px; }
  .col-tail { padding: 20px 12px 12px; }
}
@container (max-width: 400px) {
  .col-tw--1 { display: block; }
}
