/* SAHNE · KASA DEFTERİ: GÜN SONU SAYIMI → DÜZELTME HAREKETİ (includes/scenes/cashbook.php) — adımlar:
   s0 Merkez Kampüs Kasası defteri · s1 «Sayım» düğmesi · s2 sayım ekranı, «Sayılan tutar» kutusu · s3 tutar yazılır, fark
   anında görünür · s4 «Sayımı kaydet» · s5 sayfa yenilenir, «Başarılı» penceresi · s6 «Tamam» → son sayımlar ·
   s7 defter: «Gün sonu sayımı: kasada eksik çıktı» satırı düşer, güncel bakiye 552.197,47 ₺ */
@property --csb-a { syntax: '<integer>'; inherits: false; initial-value: 0; }

.csb { container-type: inline-size; --d: 0s;
  --csb-ok: #047857; --csb-ok-ink: #065f46; --csb-bad: #b91c1c; --csb-amber: #92400e;
  --csb-z: #18181b; --csb-z2: #3f3f46; --csb-z3: #52525b; --csb-z4: #71717a; --csb-zl: #e4e4e7; --csb-zl2: #f1f1f3;
  --csb-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --csb-spring: cubic-bezier(.34, 1.56, .64, 1); }
.csb.s3 { --d: 1.05s; } .csb.s4 { --d: 0s; } .csb.s5 { --d: .1s; } .csb.s6 { --d: 0s; } .csb.s7 { --d: .95s; }
.csb-i { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* kap sorgusu kökün kendisini değil torunlarını biçimler: ölçü değişkenleri pencerede */
.csb-win { --csb-h: 456px; --csb-cols: 62px minmax(0, 1fr) 72px 64px 80px 102px; position: relative; display: flex; flex-direction: column; height: var(--csb-h); }

/* çapraz geçiş: katmanlar aynı ızgara hücresinde üst üste */
.csb-x { display: inline-grid; min-width: 0; vertical-align: top; }
.csb-x > * { grid-area: 1 / 1; min-width: 0; }
.csb [class*="on-"] { opacity: 0; transform: translateY(3px); transition: opacity .3s var(--ui-ease) var(--d), transform .35s var(--ui-ease) var(--d); }
.csb:not(.s5) .on-0-5, .csb.s5 .on-5, .csb.s3:not(.s5) .on-3-5, .csb:not(.s7) .on-0-7, .csb.s7 .on-7 { opacity: 1; transform: none; }

/* iki ekran: defter (vl) ↔ sayım (vc) */
.csb-vl, .csb-vc { transition: opacity .32s var(--ui-ease) .04s, translate .45s var(--ui-ease) .04s; }
.csb-vc { opacity: 0; }
.csb.s2:not(.s7) .csb-vc { opacity: 1; }
.csb.s2:not(.s7) .csb-vl { opacity: 0; }
.csb-scr.csb-vc { translate: 0 10px; }
.csb.s2:not(.s7) .csb-scr.csb-vc { translate: 0 0; }
.csb.s2:not(.s7) .csb-scr.csb-vl { translate: 0 -6px; }

/* imleç: .csb-hit tıklama noktası; ok ucu tam orada */
.csb-hit { position: absolute; z-index: 7; width: 0; height: 0; pointer-events: none; }
.csb-hit .ui-cur { left: -5px; top: -3px; transform: translate(14px, 12px); transition: opacity .2s var(--ui-ease); }
.csb-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 csb-cur { 0% { opacity: 0; transform: translate(14px, 12px); } 34% { opacity: 1; transform: none; scale: 1; } 48% { scale: .8; } 62%, 100% { opacity: 1; transform: none; scale: 1; } }
@keyframes csb-cur-out { 0% { opacity: 0; transform: translate(14px, 12px); } 30% { opacity: 1; transform: none; scale: 1; } 42% { scale: .8; } 54% { scale: 1; } 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes csb-rip { 0% { opacity: 0; scale: .25; } 12% { opacity: .9; } 100% { opacity: 0; scale: 1.7; } }
@keyframes csb-push { 50% { scale: .95; } }
@keyframes csb-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes csb-reload { 0% { opacity: 1; } 35% { opacity: .35; } 100% { opacity: 1; } }
@keyframes csb-show { 0% { opacity: 0; scale: .7; } 45% { opacity: 1; scale: 1.05; } 80% { scale: .97; } 100% { opacity: 1; scale: 1; } }

/* ── üst çubuk (uygulama kabuğu) ── */
.csb-top { flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--ui-line); background: #fff; }
.csb-crumb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--csb-z3); white-space: nowrap; }
.csb-crumb__s { width: 12px; height: 12px; color: #a1a1aa; }
.csb-crumb b { font-weight: 800; color: var(--csb-z); }
.csb-tico { position: relative; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--csb-z3); }
.csb-tico .csb-i { width: 15px; height: 15px; stroke-width: 1.9; }
.csb-tico--bell i { position: absolute; top: 0; right: -2px; display: grid; place-items: center; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: #dc2626; box-shadow: 0 0 0 2px #fff;
  font-style: normal; font-size: 10px; font-weight: 800; line-height: 1; color: #fff; }
.csb-me { flex: none; display: flex; align-items: center; gap: 7px; margin-left: 4px; }
.csb-av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--navy-soft), var(--navy)); color: #fff; font-size: 11px; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.csb-me__n { font-size: 11.5px; font-weight: 800; color: var(--csb-z); white-space: nowrap; }

/* ── sahne gövdesi: iki ekran aynı hücrede ── */
.csb-stage { position: relative; flex: 1; min-height: 0; display: grid; background: #f7f8fa; }
.csb-scr { grid-area: 1 / 1; min-width: 0; min-height: 0; overflow: hidden; padding: 12px 12px 0; }
.csb-card { border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ui-line), 0 1px 2px rgba(16, 37, 64, .05), 0 8px 20px -16px rgba(16, 37, 64, .3); }

/* ════ KASA DEFTERİ ════ */
.csb-led { display: flex; flex-direction: column; gap: 10px; }
.csb-head { flex: none; }
.csb-band { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px 14px 0 0; 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); }
.csb-bico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.csb-bico .csb-i { width: 17px; height: 17px; stroke-width: 1.8; }
.csb-bt { flex: 1; min-width: 0; }
.csb-bt__h { display: flex; align-items: center; gap: 6px; }
.csb-bt__h b { font-size: 15px; font-weight: 800; line-height: 20px; letter-spacing: -.015em; white-space: nowrap; }
.csb-bt__q { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); stroke-width: 2; }
.csb-bt small { display: block; margin-top: 1px; font-size: 11px; font-weight: 600; line-height: 15px; color: rgba(255, 255, 255, .8); }
.csb-bacts { flex: none; display: flex; gap: 6px; }
.csb-bbtn { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: background-color .25s var(--ui-ease) .35s; }
.csb-bbtn .csb-i { width: 13px; height: 13px; }
.csb-bbtn--s .csb-hit { right: 18px; bottom: 9px; }
.csb.s1:not(.s2) .csb-bbtn--s { background: rgba(255, 255, 255, .22); animation: csb-push .3s var(--ui-ease) .36s; }
.csb.s1:not(.s2) .csb-hit--say .ui-cur { animation: csb-cur-out .95s var(--ui-ease) both; }
.csb.s1:not(.s2) .csb-hit--say .csb-rip { animation: csb-rip .55s ease-out .38s both; }

/* süzgeç: masaüstünde çizilmez (sadeleştirme) · telefonda «Filtrele ②» satırı (DAR KAPLAR ≤470) */
.csb-flt { display: none; }
/* özet: dört sayı (sm+) · telefonda tek bakiye satırı */
.csb-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px 10px 0; }
.csb-tile { min-width: 0; padding: 5px 9px 6px; border-radius: 10px; background: #fafafa; box-shadow: inset 0 0 0 1px var(--csb-zl); }
.csb-tile small { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; line-height: 13px; color: var(--csb-z3); white-space: nowrap; }
.csb-tile small .csb-i { width: 12px; height: 12px; color: var(--csb-z4); }
.csb-tile small .csb-sky { color: #0369a1; }
.csb-tile__v { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; line-height: 18px; white-space: nowrap; }
.csb-tile__v b { font-size: 13.5px; font-weight: 900; letter-spacing: -.01em; color: var(--csb-z); font-variant-numeric: tabular-nums; }
.csb-tile__v em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--csb-z3); }
.csb-tile--ok { background: #ecfdf5; box-shadow: inset 0 0 0 1px #a7f3d0; }
.csb-tile--ok small, .csb-tile--ok em { color: var(--csb-ok-ink); }
.csb-tile--ok small .csb-i { color: var(--csb-ok); }
.csb-tile--ok b { color: #064e3b; }
.csb-pill { display: none; }
.csb-n { --csb-a: 347; counter-reset: csb-a var(--csb-a); font-variant-numeric: tabular-nums; transition: --csb-a .9s var(--ui-ease) 1s; }
.csb-n::after { content: counter(csb-a); }
.csb.s7 .csb-n { --csb-a: 197; }
.csb-tut { display: flex; align-items: center; gap: 5px; padding: 6px 12px 8px; font-size: 10.5px; font-weight: 700; line-height: 14px; color: var(--csb-ok); white-space: nowrap; }
.csb-tut .csb-i { width: 13px; height: 13px; }

/* defter tablosu: en yeni satır en altta (kasaDefter tarih + kimlik sırası); eski satırlar üstten kayar */
.csb-tbl { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 14px 14px 0 0; }
.csb-th { flex: none; display: grid; grid-template-columns: var(--csb-cols); column-gap: 7px; align-items: center; height: 26px; padding: 0 12px; border-radius: 14px 14px 0 0;
  background: #fafafa; border-bottom: 1px solid var(--csb-zl); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--csb-z3); }
.csb-r { text-align: right; }
/* kesik satır yok (maske de yok): masaüstünde liste ÜSTTEN dizilir ve yalnız tam sığan beş satır basılır (Fatma → Osman,
   561–800 arası en dar hâlde 214 px ≤ 217 px kap); s7'de en üstteki satır kapanıp söner, sayımın satırı altta açılır →
   satır kayar ama hiçbir genişlikte yarım satır ya da hayalet kalmaz, boşluk yalnız listenin altında. Telefonda (≤560)
   kart akışı alttan dizilir; ölçü orada (DAR KAPLAR). */
.csb-rows { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; }
.csb-tr { flex: none; display: grid; grid-template-rows: 1fr; }
.csb-tr__in { min-height: 0; overflow: hidden; }
.csb-tr:first-child { transition: grid-template-rows .6s var(--ui-ease) .55s, opacity .3s var(--ui-ease) .55s; }
.csb.s7 .csb-tr:first-child { grid-template-rows: 0fr; opacity: 0; }
/* ayraç satırın ALTINDA: ilk satır sütun başlığının çizgisine ikinci çizgi eklemez */
.csb-tr__g { display: grid; grid-template-columns: var(--csb-cols); column-gap: 7px; align-items: center; min-height: 32px; padding: 5px 12px; border-bottom: 1px solid var(--csb-zl2); font-variant-numeric: tabular-nums; }
.csb-tr__g > * { min-width: 0; }
.csb-c-dt { font-size: 11px; font-weight: 700; color: var(--csb-z); white-space: nowrap; }
.csb-c-ac { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; line-height: 15px; }
.csb-c-ac b { font-size: 11px; font-weight: 700; color: var(--csb-z); }
.csb-nw { white-space: nowrap; } /* dönem adı «2026-2027» tire yerinden bölünmez */
.csb-c-ac em { flex: none; height: 16px; padding: 0 5px; border-radius: 4px; background: #f4f4f5; font-style: normal; font-size: 10px; font-weight: 700; line-height: 16px; color: var(--csb-z2); }
.csb-c-in, .csb-c-out, .csb-c-bal { font-family: var(--csb-mono); font-size: 11px; text-align: right; white-space: nowrap; letter-spacing: -.02em; }
.csb-c-in { color: var(--csb-ok); } .csb-c-out { color: var(--csb-bad); }
.csb-c-bal { font-weight: 800; color: var(--csb-z); }
.csb-act { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 10.5px; font-weight: 800; white-space: nowrap; color: var(--csb-bad); }
.csb-act .csb-i { width: 12px; height: 12px; stroke-width: 2.2; }
.csb-act--z { color: var(--csb-z2); }
.csb-c-meta, .csb-c-amt { display: none; }
/* sayımın yazdığı satır: kapalıyken 0 yükseklik, s7'de açılır ve üstteki satırları yukarı iter */
.csb-tr--new { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--ui-ease) .55s, opacity .35s var(--ui-ease) .8s; }
.csb.s7 .csb-tr--new { grid-template-rows: 1fr; opacity: 1; }
.csb-tr--new .csb-tr__g { background: #f3f7fc; box-shadow: inset 3px 0 0 var(--navy-soft); }

/* ════ GÜN SONU KASA SAYIMI ════ */
.csb-ph { display: flex; align-items: flex-start; gap: 12px; }
.csb-ph__t { flex: 1; min-width: 0; }
.csb-ph__h { display: flex; align-items: center; gap: 7px; }
.csb-ph__h b { font-size: 17px; font-weight: 800; line-height: 22px; letter-spacing: -.02em; color: var(--csb-z); white-space: nowrap; }
.csb-ph__q { width: 19px; height: 19px; padding: 2px; border-radius: 50%; color: var(--navy-soft); background: var(--ui-primary-soft); box-shadow: inset 0 0 0 1px #c9d8ea; stroke-width: 2.1; }
.csb-ph small { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; line-height: 14px; color: var(--csb-z3); }
.csb-btn2 { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 8px; background: #fff; font-size: 11.5px; font-weight: 700; color: var(--csb-z); white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--csb-zl), 0 1px 2px rgba(16, 37, 64, .06); }
.csb-btn2 .csb-i { width: 13px; height: 13px; color: var(--csb-z3); }
.csb-cg { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); align-items: start; gap: 10px; margin-top: 10px; }
.csb-form { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border-radius: 14px; background: #f3f7fc;
  box-shadow: inset 0 0 0 1px #c9d8ea, inset 0 1px 0 rgba(255, 255, 255, .6); }
.csb-form__h { font-size: 11.5px; font-weight: 800; line-height: 15px; color: var(--navy); }
.csb-f { display: block; min-width: 0; }
.csb-lbl { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 700; line-height: 14px; color: var(--csb-z2); white-space: nowrap; }
.csb-lbl small { font-size: 10px; font-weight: 500; color: var(--csb-z4); }
.csb-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: #fff;
  font-size: 11.5px; font-weight: 700; color: var(--csb-z); white-space: nowrap;
  box-shadow: inset 0 0 0 1px #d4d4d8, 0 1px 1px rgba(16, 37, 64, .03); transition: box-shadow .3s var(--ui-ease); }
.csb-in .csb-i { width: 13px; height: 13px; color: var(--csb-z2); }
.csb-in--dt span { font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.csb-f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.csb-hint { display: block; margin-top: 3px; font-size: 10px; font-weight: 700; line-height: 13px; color: var(--csb-z3); white-space: nowrap; }
.csb-amt { flex: 1; font-family: var(--csb-mono); font-size: 12.5px; font-weight: 500; }
.csb-amt > span { display: flex; align-items: center; }
.csb-typed { display: inline-block; width: 0; overflow: hidden; white-space: nowrap; line-height: 16px; }
.csb.s3 .csb-typed { width: 9ch; transition: width .95s steps(9, end) .1s; }
.csb-caret { display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; border-radius: 1px; background: var(--navy-soft); opacity: 0; }
.csb.s2:not(.s4) .csb-caret { animation: csb-blink 1.05s step-end .5s infinite; }
.csb.s2 .csb-in--amt { box-shadow: inset 0 0 0 1px var(--navy-soft), 0 0 0 3px rgba(29, 79, 134, .15); transition-delay: .45s; }
.csb.s5 .csb-in--amt { box-shadow: inset 0 0 0 1px #d4d4d8, 0 1px 1px rgba(16, 37, 64, .03); transition-delay: .05s; }
.csb-in--amt .csb-hit { right: 30px; bottom: 9px; }
.csb.s2:not(.s3) .csb-hit--amt .ui-cur { animation: csb-cur-out 1.1s var(--ui-ease) both; }
.csb.s2:not(.s3) .csb-hit--amt .csb-rip { animation: csb-rip .55s ease-out .44s both; }
.csb-fark { display: block; min-height: 46px; padding: 7px 10px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--csb-zl);
  font-size: 11px; font-weight: 700; line-height: 16px; color: var(--csb-z3); }
.csb-fark__v { margin: 0 2px; font-family: var(--csb-mono); font-size: 11.5px; font-weight: 800; color: var(--csb-z); letter-spacing: -.02em; }
.csb-fark__v > * { white-space: nowrap; }
.csb-fark__m { color: var(--csb-amber); }
.csb-btn { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 9px; font-size: 11.5px; 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); }
.csb-btn .csb-i { width: 13px; height: 13px; }
.csb-btn .csb-hit { right: 28px; bottom: 9px; }
/* uygulama gönderince yalnız btn.disabled = true yapar; düğmenin görünüşü değişmez → yalnız basma */
.csb.s4:not(.s5) .csb-btn { animation: csb-push .3s var(--ui-ease) .38s; }
.csb.s4:not(.s5) .csb-hit--kay .ui-cur { animation: csb-cur-out .95s var(--ui-ease) both; }
.csb.s4:not(.s5) .csb-hit--kay .csb-rip { animation: csb-rip .55s ease-out .4s both; }
.csb.s5:not(.s6) .csb-cg { animation: csb-reload .45s ease .05s; }

.csb-son { padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--csb-zl), 0 1px 2px rgba(16, 37, 64, .05), inset 0 1px 0 rgba(255, 255, 255, .6); }
.csb-son__h { display: block; margin-bottom: 7px; font-size: 11.5px; font-weight: 800; line-height: 15px; color: var(--csb-z); }
.csb-son .csb-x { display: grid; }
.csb-empty { display: grid; place-items: center; padding: 10px 8px; border-radius: 10px; border: 1.5px dashed #d4d4d8; text-align: center; font-size: 10.5px; font-weight: 700; line-height: 14px; color: var(--csb-z4); }
.csb-si { display: block; padding: 6px 9px 7px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--csb-zl2); transition: box-shadow .3s var(--ui-ease) .75s, background-color .3s var(--ui-ease) .75s; }
.csb.s6 .csb-si { background: #f8fafd; box-shadow: inset 0 0 0 1.5px #c9d8ea; }
.csb-si__r { display: flex; align-items: center; justify-content: space-between; gap: 6px; line-height: 16px; }
.csb-si__r b { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--csb-z); }
.csb-si__r em { font-style: normal; font-family: var(--csb-mono); font-size: 11px; font-weight: 800; color: var(--csb-bad); white-space: nowrap; letter-spacing: -.02em; }
.csb-si small { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; line-height: 13px; color: var(--csb-z3); font-variant-numeric: tabular-nums; }

/* ── «Başarılı» penceresi ── */
.csb-mod { position: absolute; z-index: 20; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(9, 16, 28, .42); opacity: 0; pointer-events: none; transition: opacity .25s var(--ui-ease); }
.csb.s5:not(.s6) .csb-mod { opacity: 1; transition-delay: .32s; }
.csb.s6 .csb-mod { transition-delay: .5s; }
.csb-pop { display: flex; flex-direction: column; align-items: center; width: min(300px, 100%); padding: 18px 18px 16px; border-radius: 14px; background: #fff; text-align: center;
  box-shadow: 0 0 0 1px rgba(16, 37, 64, .06), 0 2px 6px rgba(16, 37, 64, .1), 0 24px 48px -16px rgba(9, 16, 28, .55); transition: scale .25s var(--ui-ease) .5s; }
.csb.s5:not(.s6) .csb-pop { animation: csb-show .45s var(--ui-ease) .32s both; }
.csb.s6 .csb-pop { scale: .94; }
.csb-sic { width: 52px; height: 52px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.csb-sic__r { stroke: rgba(165, 220, 134, .35); stroke-width: 3; }
.csb-sic__c { stroke: #a5dc86; stroke-width: 4; stroke-dasharray: 36; stroke-dashoffset: 36; transition: stroke-dashoffset .4s var(--ui-ease); }
.csb.s5 .csb-sic__c { stroke-dashoffset: 0; transition-delay: .78s; }
.csb-pop > b { margin-top: 8px; font-size: 16px; font-weight: 800; line-height: 20px; color: var(--csb-z); }
.csb-pop__t { margin-top: 4px; font-size: 11.5px; font-weight: 600; line-height: 16px; color: var(--csb-z2); text-wrap: balance; }
.csb-okb { position: relative; margin-top: 12px; display: inline-flex; align-items: center; height: 30px; padding: 0 20px; border-radius: 8px; background: #18181b; font-size: 11.5px; font-weight: 700; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 10px -6px rgba(0, 0, 0, .6); }
.csb-okb .csb-hit { right: 18px; bottom: 9px; }
.csb.s6 .csb-okb { animation: csb-push .3s var(--ui-ease) .36s; }
.csb.s6:not(.s7) .csb-hit--tmm .ui-cur { animation: csb-cur-out .9s var(--ui-ease) both; }
.csb.s6:not(.s7) .csb-hit--tmm .csb-rip { animation: csb-rip .55s ease-out .38s both; }

/* ── DAR KAPLAR ── */
@container (max-width: 700px) {
  .csb-tile__v em { display: none; }
}
@container (max-width: 660px) {
  .csb-win { --csb-cols: 62px minmax(0, 1fr) 72px 64px 80px; }
  .csb-c-is { display: none; }
}
/* telefon düzeni: defter kart akışı, tek bakiye satırı, tek sütun form */
@container (max-width: 560px) {
  /* sayım ekranı gövde başlığı düşünce 405 px ister; defterde ilk kart tam görünür (480: s0 Ceren 5:52, s7 Kübra 5:52) */
  .csb-win { --csb-h: 450px; }
  .csb-me__n, .csb-bbtn--k, .csb-tut, .csb-tile { display: none; }
  .csb-band { padding: 10px 12px; }
  /* lg altında sayfa adı yalnız üst çubukta: bantta başlık yok (admin-kasa.php:206–207, h1 telefonda gizli) */
  .csb-bt__h { display: none; }
  .csb-bt small { margin-top: 0; font-size: 10.5px; line-height: 14px; }
  /* «Filtrele ②» (admin-kasa.php:211–215 data-mfilter-force → footer.php:1618–1627 tetik, mobile.css:580–601): lg altında
     form yaprağa iner, bantla özet arasında tetik kalır; rozet 2 = dolu Başlangıç + Bitiş (activeCount, footer.php:1693–1707).
     Rozet uygulamada indigo-600; sahnede kurum laciverti. Satır 46 px → defterin ilk kartı tam görünür, maske gerekmez */
  .csb-flt { display: block; padding: 8px 10px 0; }
  .csb-flt__b { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px; border-radius: 11px; background: #fff;
    box-shadow: inset 0 0 0 1px var(--csb-zl), 0 1px 2px rgba(24, 24, 27, .05); font-size: 12px; font-weight: 800; line-height: 16px; color: var(--csb-z2); }
  .csb-flt__b > .csb-i { width: 15px; height: 15px; stroke-width: 2.2; }
  .csb-flt__b i { display: grid; place-items: center; min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px; border-radius: 10px;
    background: var(--navy-soft); font-style: normal; font-size: 10.5px; font-weight: 900; line-height: 1; color: #fff; }
  .csb-flt__b .csb-flt__c { width: 14px; height: 14px; opacity: .45; }
  .csb-sum { display: block; padding: 8px 10px 10px; }
  .csb-pill { display: flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 6px 4px 10px; border-radius: 10px; background: #ecfdf5; box-shadow: inset 0 0 0 1px #a7f3d0; white-space: nowrap; }
  .csb-pill > .csb-i { width: 13px; height: 13px; color: var(--csb-ok); }
  .csb-pill > span:not(.csb-pill__c) { font-size: 10.5px; font-weight: 700; color: var(--csb-ok-ink); }
  .csb-pill > b { font-size: 13px; font-weight: 900; color: #064e3b; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
  .csb-pill > em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--csb-ok-ink); }
  .csb-pill__c { display: grid; place-items: center; width: 22px; height: 22px; margin-left: auto; border-radius: 50%; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px rgba(24, 24, 27, .1); color: var(--csb-z2); }
  .csb-pill__c .csb-i { width: 13px; height: 13px; }
  .csb-tbl { background: none; box-shadow: none; border-radius: 0; }
  .csb-th { display: none; }
  /* kartlar alttan dizilir (en yeni en altta); üstte taşan kart kabın tamamen dışında kalır: s0 Ceren 5:52, s7 Kübra 5:52 */
  .csb-rows { justify-content: flex-end; padding-bottom: 10px; }
  .csb.s7 .csb-tr:first-child { grid-template-rows: 1fr; opacity: 1; }
  .csb-tr__g { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ac amt" "meta bal"; column-gap: 10px; row-gap: 1px; align-items: start;
    margin-top: 6px; padding: 7px 10px 8px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--csb-zl), 0 1px 2px rgba(16, 37, 64, .04); }
  .csb-c-dt, .csb-c-in, .csb-c-out, .csb-c-is, .csb-c-ac em { display: none; }
  /* açıklama 320 px'te sarar: uzun satırlar (Fatma, Furkan) kap genişliğine göre bir/iki satır arasında gidip gelip kartları
     kaydırıyordu (ilk kart yarım) → kart yükseklikleri 330–560 arasında sabit, ilk kart her genişlikte tam */
  .csb-c-ac { grid-area: ac; display: block; max-width: 320px; }
  .csb-c-ac b { font-size: 11.5px; font-weight: 800; line-height: 15px; }
  .csb-c-meta { grid-area: meta; display: block; font-size: 10px; font-weight: 700; line-height: 14px; color: var(--csb-z3); }
  .csb-c-amt { grid-area: amt; display: block; font-family: var(--csb-mono); font-size: 11.5px; font-weight: 800; line-height: 15px; text-align: right; white-space: nowrap; letter-spacing: -.02em; }
  .csb-c-amt--in { color: var(--csb-ok); } .csb-c-amt--out { color: var(--csb-bad); }
  .csb-c-bal { grid-area: bal; font-size: 10.5px; font-weight: 600; line-height: 14px; color: var(--csb-z3); }
  .csb-tr--new .csb-tr__g { background: #f3f7fc; box-shadow: 0 0 0 1px #c9d8ea, inset 3px 0 0 var(--navy-soft); }
  /* sayım ekranının gövde başlığı da lg altında yok (page-header.php:387, mobile-navbar.css:20/50 `main .page-header`) */
  .csb-ph { display: none; }
  .csb-cg { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 0; }
  .csb-f--not { display: none; }
  .csb-son { padding: 8px 10px; }
  .csb-son__h { margin-bottom: 5px; }
  .csb-empty { padding: 7px 8px; }
}
@container (max-width: 470px) {
  .csb-win { --csb-h: 442px; }
  .csb-top { padding-left: 12px; }
  .csb-crumb__0, .csb-crumb__s, .csb-tico:not(.csb-tico--bell) { display: none; }
  .csb-scr { padding: 10px 10px 0; }
  /* telefonda bant simgesi yok (design-language.php:117 `hidden sm:grid`) */
  .csb-bico { display: none; }
  .csb-pill > em { display: none; }
  .csb-form { padding: 9px 10px 10px; gap: 7px; }
  .csb-f2 { gap: 8px; }
  .csb-in { padding: 0 8px; }
  .csb-hint { white-space: normal; }
  .csb-fark { min-height: 62px; padding: 6px 9px; }
  .csb-pop { padding: 16px 14px 14px; }
  .csb-pop > b { font-size: 15px; }
}
