/* SAHNE · NÖBET ÇİZELGESİ (includes/scenes/duty-roster.php) — adımlar (her adımda tek odak hareketi):
   s1 Çarşamba «+ personel» açılır, Aslı Kurt · s2 seçilir → «Kaydedilemedi» (aynı saatte Bahçe nöbeti) ·
   s3 «Tamam» → pencere kapanır · s4 seçici yeniden açılır → Barış Varol · s5 anında kaydedilir, «2 kişi» ·
   s6 «4. Denetim ve yayın» · s7 «Yayınla» → onay · s8 yayımlandı (sayfa yenilenir): ileti, sürüm şeridi, kilitli tablo ·
   s9 Barış Varol'un telefonuna bildirim.
   Katmanlar aynı hücrede üst üste durur (yükseklik adımdan adıma değişmez); geçişler opacity + translate. */
.dty { container-type: inline-size; --d: 0s; --stH: 334px; --row: 21px; --dd-w: 226px; --dd-n: 8;
  --dty-ok: #047857; --dty-ok-soft: #dcf3e4; --dty-ok-ink: #166534;
  --dty-chip: #e6eef8; --dty-spring: cubic-bezier(.34, 1.56, .64, 1); }
.dty.s1 { --d: .45s; } .dty.s2 { --d: .3s; } .dty.s3 { --d: .4s; } .dty.s4 { --d: .4s; } .dty.s5 { --d: .8s; } .dty.s6 { --d: .45s; } .dty.s7 { --d: .55s; } .dty.s8 { --d: .6s; } .dty.s9 { --d: 0s; }
.dty-win { position: relative; padding-bottom: 10px; }
.dty-i { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* çapraz geçiş: iki metin aynı hücrede (a0 → a1 yayından sonra) */
.dty-x { display: inline-grid; min-width: 0; vertical-align: top; }
.dty-x > * { grid-area: 1 / 1; min-width: 0; transition: opacity .3s var(--ui-ease) var(--d), translate .35s var(--ui-ease) var(--d); }
.dty-a1, .dty-n1, .dty-k1, .dty-va, .dty-vb { opacity: 0; translate: 0 4px; }
.dty.s8 .dty-band .dty-a0 { opacity: 0; translate: 0 -4px; }
.dty.s8 .dty-band .dty-a1 { opacity: 1; translate: 0 0; transition-delay: .8s; }
/* yayımlanmış sayfanın sürüm şeridi baştan a1 (taslak sayfasınınki a0): ikisi de aynı yükseklikte */
.dty-vs--l .dty-a0 { opacity: 0; }
.dty-vs--l .dty-a1 { opacity: 1; translate: 0 0; }
.dty.s6 .dty-n0 { opacity: 0; translate: 0 -4px; }
.dty.s6 .dty-n1 { opacity: 1; translate: 0 0; }
.dty.s5 .dty-k0 { opacity: 0; translate: 0 -4px; }
.dty.s5 .dty-k1 { opacity: 1; translate: 0 0; }

/* imleç: .dty-hit tıklama noktasıdır; ok ucu tam orada, halka dalgası çevresinde */
.dty-hit { position: absolute; z-index: 9; width: 0; height: 0; pointer-events: none; }
.dty-hit .ui-cur { left: -5px; top: -3px; transform: translate(14px, 12px); transition: opacity .2s var(--ui-ease); }
.dty-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 dty-cur { 0% { opacity: 0; transform: translate(14px, 12px); } 34% { opacity: 1; transform: none; scale: 1; } 50% { scale: .8; } 64%, 100% { opacity: 1; transform: none; scale: 1; } }
@keyframes dty-cur-out { 0% { opacity: 0; transform: translate(14px, 12px); } 30% { opacity: 1; transform: none; scale: 1; } 44% { scale: .8; } 56% { scale: 1; } 76% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes dty-cur-in { 0% { opacity: 0; transform: translate(14px, 12px); } 100% { opacity: 1; transform: none; } }
@keyframes dty-cur-press { 0% { opacity: 1; transform: none; scale: 1; } 25% { scale: .8; } 45% { scale: 1; opacity: 1; } 100% { opacity: 0; transform: none; } }
@keyframes dty-rip { 0% { opacity: 0; scale: .25; } 12% { opacity: .9; } 100% { opacity: 0; scale: 1.7; } }
@keyframes dty-push { 50% { scale: .95; } }

/* ── başlık bandı (sayfa başlığı: çizelge adı + açıklama + eylemler) ── */
.dty-band { display: flex; align-items: center; gap: 12px; margin: 10px 10px 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); }
.dty-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); }
.dty-ico .dty-i { width: 18px; height: 18px; stroke-width: 1.8; }
.dty-ttl { flex: 1; min-width: 0; }
.dty-ttl > b { display: block; font-size: 14.5px; line-height: 19px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.dty-nw { white-space: nowrap; }
.dty-ttl small { display: grid; margin-top: 2px; font-size: 11px; line-height: 15px; font-weight: 600; color: rgba(255, 255, 255, .84); font-variant-numeric: tabular-nums; }
.dty-acts { flex: none; display: flex; gap: 6px; }
.dty-bb { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 11px; font-weight: 800; white-space: nowrap;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
.dty-bb .dty-i { width: 13px; height: 13px; }
/* geniş kapta: başlık + eylemler bir satırda, açıklama altta bütün genişlikte (yayın sonrası uzun açıklama tek satıra sığar) */
@container (width > 600px) {
  .dty-band { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 8px 12px 9px; }
  .dty-ico { grid-row: 1 / 3; }
  .dty-ttl { display: contents; }
  .dty-ttl > b { grid-area: 1 / 2; }
  .dty-ttl small { grid-area: 2 / 2 / 3 / 4; margin-top: 0; }
  .dty-acts { grid-area: 1 / 3; }
  .dty-bb { height: 24px; padding: 0 9px; border-radius: 7px; }
}

/* ── sürüm şeridi (taslak ve yayımlanmış sayfada birer kopya) ── */
.dty-vs { display: flex; gap: 6px; padding: 0 14px; }
.dty-v { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 5px 10px 6px; border-radius: 10px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--ui-line-2), 0 1px 2px rgba(16, 37, 64, .04); }
.dty-v b { display: block; font-size: 11px; line-height: 14px; font-weight: 800; color: var(--ui-text); white-space: nowrap; }
.dty-v small { display: grid; font-size: 10px; line-height: 13px; font-weight: 700; color: var(--ui-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dty-v small > * { display: block; }
.dty-vx > * { display: flex; flex-direction: column; justify-content: center; }
.dty-v--sel { background: #eef4fb; box-shadow: inset 0 0 0 1.5px var(--navy-soft), 0 1px 2px rgba(16, 37, 64, .06); }
.dty-v--sel b { color: var(--navy); }
.dty-v:not(.dty-v--sel) .dty-a1 { border-radius: 4px; }
.dty.s8 .dty-vs--l .dty-v:not(.dty-v--sel) .dty-a1 { animation: dty-isaret 1.6s ease-out 1.15s both; }
@keyframes dty-isaret { 0% { background-color: rgba(255, 182, 39, 0); } 20% { background-color: rgba(255, 182, 39, .38); } 100% { background-color: rgba(255, 182, 39, 0); } }

/* ── gövde: taslak sayfası (sürüm şeridi + sekmeler) ve yayımlanmış sayfa aynı kutuda ──
   taslak katmanı akışta (yüksekliği o belirler), yayımlanmış katman üstüne oturur */
.dty-stage { position: relative; margin-top: 8px; padding: 2px 0; overflow: hidden; }
.dty-p { min-width: 0; }
.dty-draft { transition: opacity .3s var(--ui-ease) var(--d), translate .4s var(--ui-ease) var(--d); }
.dty-db { display: flex; flex-direction: column; height: var(--stH); margin-top: 10px; }
.dty.s8 .dty-draft { opacity: 0; translate: 0 -6px; }
.dty-lock { position: absolute; inset: 2px 0; display: flex; flex-direction: column; opacity: 0; translate: 0 10px; padding: 0 14px; transition: opacity .35s var(--ui-ease) .2s, translate .5s var(--ui-ease) .2s; }
.dty.s8 .dty-lock { opacity: 1; translate: 0 0; transition-delay: .72s; }
.dty-lock > .dty-vs { flex: none; margin-top: 8px; padding: 0; }

/* sekme şeridi (segmentTabs) */
.dty-tabs { flex: none; display: flex; gap: 3px; margin: 0 14px; padding: 3px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-2); }
.dty-tab { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; font-size: 11.5px; font-weight: 800; color: #52525b; white-space: nowrap;
  transition: background-color .3s var(--ui-ease) var(--d), color .3s var(--ui-ease) var(--d), box-shadow .3s var(--ui-ease) var(--d); }
.dty-tab i { display: inline-grid; place-items: center; min-width: 20px; height: 16px; padding: 0 5px; border-radius: 999px; background: #f1f2f4; color: #3f3f46; font-style: normal; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--ui-ease) var(--d), color .3s var(--ui-ease) var(--d); }
.dty-tab i > * { display: block; }
.dty:not(.s6) .dty-tab--3, .dty.s6 .dty-tab--4 { background: var(--navy); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 2px 6px -3px rgba(20, 61, 107, .7); }
.dty:not(.s6) .dty-tab--3 i { background: var(--navy-night); color: #fff; }
.dty-tab--4 .dty-hit { left: 62%; top: 17px; }
.dty.s6:not(.s7) .dty-hit--tab .ui-cur { animation: dty-cur-out .9s var(--ui-ease) both; }
.dty.s6:not(.s7) .dty-hit--tab .dty-rip { animation: dty-rip .55s ease-out .32s both; }

/* iki sekme paneli aynı hücrede */
.dty-dx { display: grid; flex: 1 1 0; min-height: 0; }
.dty-asg, .dty-pub { grid-area: 1 / 1; min-width: 0; padding: 8px 14px 0; transition: opacity .3s var(--ui-ease) var(--d), translate .4s var(--ui-ease) var(--d); }
.dty.s6 .dty-asg { opacity: 0; translate: -8px 0; }
.dty-pub { opacity: 0; translate: 8px 0; }
.dty.s6 .dty-pub { opacity: 1; translate: 0 0; }

/* değişiklik taslağı şeridi (sky) */
.dty-note { display: flex; align-items: flex-start; gap: 7px; padding: 6px 10px; border-radius: 10px; background: #f0f8fe; box-shadow: inset 0 0 0 1px #c3e3f7; font-size: 10.5px; line-height: 14px; font-weight: 600; color: #0c4a6e; text-wrap: pretty; }
.dty-note b { font-weight: 800; }
.dty-note .dty-i { width: 13px; height: 13px; margin-top: 1px; color: #0369a1; }

/* görevlendirme: solda yerler, sağda seçili yerin saat aralığı */
.dty-cols { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 12px; margin-top: 8px; }
.dty-yer { min-width: 0; }
.dty-lbl { display: block; height: 18px; font-size: 10px; line-height: 18px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #52525b; }
.dty-yl { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.dty-y { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 22px; padding: 0 5px 0 9px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-2); }
.dty-y b { min-width: 0; font-size: 11px; font-weight: 800; color: #27272a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dty-y em { flex: none; height: 15px; padding: 0 6px; border-radius: 999px; background: var(--dty-ok-soft); color: var(--dty-ok-ink); font-style: normal; font-size: 10px; font-weight: 800; line-height: 15px; }
.dty-y--sel { background: var(--navy); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 3px 8px -4px rgba(20, 61, 107, .7); }
.dty-y--sel b { color: #fff; }
.dty-y--sel em { background: var(--navy-night); color: #fff; }

.dty-sl { min-width: 0; }
.dty-slh { height: 18px; font-size: 12.5px; line-height: 18px; font-weight: 800; letter-spacing: -.005em; color: var(--ui-text); white-space: nowrap; }
.dty-card { margin-top: 4px; 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 -18px rgba(16, 37, 64, .35); }
.dty-sum { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-bottom: 1px solid #eef0f3; }
.dty-sum > .dty-i:first-child { color: var(--navy-soft); }
.dty-sum__t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.dty-sum__t b { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dty-sum__t small { font-size: 10.5px; font-weight: 700; color: #52525b; white-space: nowrap; }
.dty-sum em { height: 16px; padding: 0 7px; border-radius: 999px; background: var(--dty-ok-soft); color: var(--dty-ok-ink); font-style: normal; font-size: 10px; font-weight: 800; line-height: 16px; }
.dty-sum .dty-ok { width: 14px; height: 14px; color: #71717a; rotate: 180deg; }
.dty-days { display: flex; flex-direction: column; gap: 4px; padding: 6px; }

/* gün hücresi (duty-roster-day.php) — tek satıra sıkıştırılmış: gün · kişi | çipler | + personel */
.dty-g { position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; min-height: 30px; padding: 3px 4px 3px 9px; border-radius: 9px; background: #f6f7f9;
  transition: opacity .2s var(--ui-ease); }
.dty-g__d { display: flex; flex-direction: column; line-height: 12px; }
.dty-g__d b { font-size: 11px; line-height: 13px; font-weight: 900; color: #18181b; }
.dty-g__d small { display: grid; font-size: 10px; line-height: 12px; font-weight: 700; color: #52525b; white-space: nowrap; }
.dty-g__c { position: relative; display: flex; flex-wrap: wrap; align-items: center; min-width: 0; row-gap: 4px; }
.dty-chip { display: inline-flex; align-items: center; gap: 1px; max-width: 132px; height: 22px; margin-right: 5px; padding: 0 2px 0 8px; border-radius: 7px; background: var(--dty-chip); color: var(--navy); font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(29, 79, 134, .08); }
.dty-chip > span { min-width: 0; overflow: hidden; }
.dty-chip .dty-i { width: 16px; height: 16px; padding: 3px; color: var(--navy-soft); stroke-width: 2.4; }
/* yeni çip (Barış Varol): s5'te sıfır genişlikten açılır, Sena Ünal sağa kayar */
.dty-chip--new { max-width: 0; margin-right: 0; padding: 0; opacity: 0; scale: .8;
  transition: max-width .45s var(--ui-ease) var(--d), margin-right .45s var(--ui-ease) var(--d), padding .45s var(--ui-ease) var(--d), opacity .3s var(--ui-ease) calc(var(--d) + .08s), scale .45s var(--dty-spring) calc(var(--d) + .08s); }
.dty.s5 .dty-chip--new { max-width: 132px; margin-right: 5px; padding: 0 2px 0 8px; opacity: 1; scale: 1; }
/* «… kaydediliyor…» (dl-durum) */
.dty-st { position: absolute; right: 0; top: 50%; translate: 0 -50%; padding-left: 8px; font-size: 10.5px; font-weight: 700; color: #52525b; white-space: nowrap; opacity: 0;
  background: linear-gradient(90deg, rgba(246, 247, 249, 0), #f6f7f9 8px); }
/* «+ personel» seçicisi (kesikli kenar) */
.dty-sel { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 26px; min-width: 104px; padding: 0 7px 0 9px; border-radius: 8px; background: #fff; color: #3f3f46; font-size: 11px; font-weight: 700; white-space: nowrap;
  border: 1px dashed #b6bfcc; transition: border-color .2s var(--ui-ease), box-shadow .2s var(--ui-ease); }
.dty-sel__v { flex: 1; min-width: 0; }
.dty-sel > .dty-i { width: 12px; height: 12px; color: #71717a; }
.dty-sel .dty-hit--sel { right: 30px; bottom: 9px; }

/* yerel <select> penceresi — aşağıda yer yok: seçicinin ÜSTÜNE açılır */
.dty-dd { position: absolute; z-index: 8; right: -1px; bottom: calc(100% + 3px); width: var(--dd-w); padding: 3px 0; border-radius: 6px; background: #fff; opacity: 0; translate: 0 4px; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .16), 0 2px 4px rgba(0, 0, 0, .1), 0 14px 28px -10px rgba(16, 37, 64, .45);
  transition: opacity .14s var(--ui-ease), translate .2s var(--ui-ease); }
.dty-dd__vp { display: block; height: calc(var(--dd-n) * var(--row)); margin-right: 9px; overflow: hidden; }
.dty-dd__ls { display: block; translate: 0 0; transition: translate 0s linear .4s; }
.dty-o { position: relative; display: block; height: var(--row); padding: 0 10px 0 22px; font-size: 11px; line-height: var(--row); font-weight: 500; color: #18181b; white-space: nowrap; transition: background-color .12s linear, color .12s linear; }
.dty-o--ph { padding-left: 10px; }
.dty-o--grp { padding-left: 10px; font-weight: 800; color: #27272a; }
.dty-o .dty-hit { left: 58%; top: 12px; }
.dty-dd__sb { position: absolute; top: 4px; right: 3px; bottom: 4px; width: 5px; border-radius: 3px; background: #f1f2f4; }
.dty-dd__sb i { position: absolute; left: 0; right: 0; top: 0; height: 22%; border-radius: 3px; background: #b4bac4; transition: translate 0s linear .4s; }

/* ── 4. DENETİM VE YAYIN ── */
.dty-pr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.dty-box { display: block; padding: 7px 11px 8px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line), 0 1px 2px rgba(16, 37, 64, .04);
  opacity: 0; translate: 0 6px; transition: opacity .3s var(--ui-ease) calc(.5s + var(--i) * 80ms), translate .4s var(--ui-ease) calc(.5s + var(--i) * 80ms); }
.dty.s6 .dty-box { opacity: 1; translate: 0 0; }
/* ızgara (.dty-pr) içindeki iki kutu aynı üst kenarda başlar: boşluk yalnız alt alta duran kutular arasında */
.dty-pub > .dty-box + .dty-box, .dty-pr + .dty-box { margin-top: 8px; }
.dty-box > b { display: block; font-size: 12px; line-height: 16px; font-weight: 900; color: var(--ui-text); }
.dty-box .dty-li { display: block; margin-top: 2px; font-size: 11px; line-height: 15px; font-weight: 700; color: var(--ui-text-2); }
.dty-box .dty-li strong { font-weight: 800; color: var(--ui-text); }
.dty-box small { display: block; margin-top: 4px; font-size: 10px; line-height: 13px; font-weight: 700; color: #52525b; text-wrap: pretty; }
.dty-box--warn { background: #fffbeb; box-shadow: inset 0 0 0 1px #fde68a; }
.dty-box--warn .dty-cap { display: block; font-size: 10px; line-height: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #78350f; }
.dty-box--warn .dty-li { color: #78350f; padding-left: 10px; position: relative; }
.dty-box--warn .dty-li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.dty-okl { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 11px; line-height: 15px; font-weight: 700; color: var(--dty-ok-ink); }
.dty-okl .dty-i { width: 13px; height: 13px; color: var(--dty-ok); }
/* kişi başı haftalık nöbet: 2 sütun, ad · «N/hafta» (uygulamada 31 kişi; ilk 3 satır) */
.dty-yk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 6px; margin-top: 5px; }
.dty-yk > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 20px; padding: 0 9px; border-radius: 7px; background: #f6f7f9; }
.dty-yk b { min-width: 0; font-size: 11px; font-weight: 700; color: var(--ui-text); white-space: nowrap; }
.dty-yk em { flex: none; font-style: normal; font-size: 10px; font-weight: 800; color: #3f3f46; font-variant-numeric: tabular-nums; }
.dty-box--go { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 11px; font-size: 11px; line-height: 15px; font-weight: 700; color: var(--ui-text-2); }
.dty-btn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 9px; background: var(--dty-ok); color: #fff; font-size: 11.5px; font-weight: 800; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(4, 120, 87, .3), 0 6px 12px -8px rgba(4, 120, 87, .8); }
.dty-btn .dty-i { width: 13px; height: 13px; }
.dty-btn .dty-hit { right: 20px; bottom: 9px; }
.dty.s7 .dty-btn { animation: dty-push .3s var(--ui-ease) .4s; }
.dty.s7:not(.s8) .dty-hit--pub .ui-cur { animation: dty-cur .85s var(--ui-ease) both; }
.dty.s7:not(.s8) .dty-hit--pub .dty-rip { animation: dty-rip .55s ease-out .4s both; }

/* ── YAYIMLANMIŞ SÜRÜM (başlık → ileti → sürüm şeridi → kilit şeridi → haftalık tablo) ── */
.dty-flash { flex: none; padding: 7px 11px; border-radius: 10px; background: #ecfdf5; box-shadow: inset 0 0 0 1px #a7f3d0; font-size: 11px; line-height: 15px; font-weight: 800; color: #065f46; text-wrap: pretty;
  translate: 0 -6px; transition: translate .5s var(--dty-spring) .8s; }
.dty.s8 .dty-flash { translate: 0 0; }
.dty-lk { flex: none; display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 7px 11px 8px; border-radius: 10px; background: #f6f7f9; box-shadow: inset 0 0 0 1px var(--ui-line); }
.dty-lk > .dty-i { width: 13px; height: 13px; margin-top: 1px; color: #3f3f46; stroke-width: 2.2; }
.dty-lk > span { min-width: 0; }
.dty-lk b { display: block; font-size: 11px; line-height: 15px; font-weight: 800; color: #27272a; text-wrap: pretty; }
.dty-lk small { display: block; margin-top: 2px; font-size: 10.5px; line-height: 14px; font-weight: 700; color: #3f3f46; }
/* haftalık tablo (duty-roster-week.php) — satır = yer × saat aralığı, sütun = gün */
/* sığmayan satır yarım kalmaz: sütun yönlü sarma onu görünmeyen ikinci sütuna atar; kartın alt kenarı sahne altında (tablo sürer) */
.dty-wk { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; margin: 8px 0 -2px; border-radius: 12px 12px 0 0; background: #fff;
  box-shadow: inset 0 0 0 1px var(--ui-line); overflow: hidden; }
.dty-wk > .dty-wr { flex: none; width: 100%; }
.dty-wr { display: grid; grid-template-columns: 168px repeat(5, minmax(0, 1fr)); align-items: start; min-height: 36px; border-top: 1px solid #f1f1f3;
  opacity: 0; translate: 0 5px; transition: opacity .3s var(--ui-ease) calc(.95s + var(--i) * 60ms), translate .35s var(--ui-ease) calc(.95s + var(--i) * 60ms); }
.dty.s8 .dty-wr { opacity: 1; translate: 0 0; }
.dty-wr > * { min-width: 0; padding: 4px 8px; }
.dty-wr--h { min-height: 24px; align-items: center; border-top: 0; background: #f6f7f9; font-size: 10.5px; font-weight: 800; color: #52525b; opacity: 1; translate: 0 0; }
.dty-wr--h > * { padding-top: 0; padding-bottom: 0; line-height: 24px; }
.dty-wr__y { padding-left: 10px; }
.dty-wr > .dty-c { padding-left: 5px; padding-right: 5px; }
.dty-wr__y b { display: block; font-size: 11.5px; line-height: 14px; font-weight: 900; color: #18181b; white-space: nowrap; }
.dty-wr__y small { display: block; margin-top: 1px; font-size: 10px; line-height: 13px; font-weight: 700; color: #52525b; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dty-wr .dty-c b { display: block; font-size: 10.5px; line-height: 14px; font-weight: 700; color: #27272a; white-space: nowrap; }
.dty-wr .dty-c b:first-child { margin-top: 0; }

/* ── SweetAlert2 pencereleri (appAlert / appConfirm) ── */
.dty-sw { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .2s var(--ui-ease); }
.dty-sw__c { position: relative; display: flex; flex-direction: column; align-items: center; width: min(312px, 100%); padding: 18px 18px 16px; border-radius: 10px; background: #fff; text-align: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 2px 6px rgba(0, 0, 0, .08), 0 24px 44px -18px rgba(0, 0, 0, .5); scale: .7; transition: scale .3s var(--ui-ease); }
.dty-sw__i { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; }
.dty-sw__i--err { box-shadow: inset 0 0 0 2.5px #f27474; }
.dty-sw__i--err i { position: absolute; left: 50%; top: 50%; width: 24px; height: 3px; margin: -1.5px 0 0 -12px; border-radius: 2px; background: #f27474; rotate: 45deg; }
.dty-sw__i--err i + i { rotate: -45deg; }
.dty-sw__i--q { box-shadow: inset 0 0 0 2.5px #c9dae1; color: #87adbd; font-size: 27px; font-weight: 600; line-height: 1; }
.dty-sw__t { margin-top: 12px; font-size: 17px; line-height: 21px; font-weight: 700; color: #18181b; }
.dty-sw__m { margin-top: 8px; font-size: 11.5px; line-height: 16px; font-weight: 500; color: #545454; text-wrap: pretty; }
.dty-sw__b { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dty-sb { position: relative; display: inline-grid; place-items: center; height: 30px; padding: 0 15px; border-radius: 6px; color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.dty-sb--red { background: #dc2626; } .dty-sb--grey { background: #71717a; } .dty-sb--dark { background: #18181b; }
.dty-sb .dty-hit { left: 58%; top: 19px; }
@keyframes dty-sw-show { 0% { scale: .7; } 45% { scale: 1.05; } 80% { scale: .95; } 100% { scale: 1; } }
@keyframes dty-sw-x { 0% { scale: .4; opacity: 0; } 50% { scale: .4; opacity: 0; } 80% { scale: 1.15; } 100% { scale: 1; opacity: 1; } }

/* ── nöbeti değişen öğretmenin telefonu ── */
.dty-phw { position: absolute; z-index: 30; inset: 0; overflow: hidden; border-radius: var(--ui-radius); pointer-events: none; background: rgba(12, 24, 44, 0); transition: background-color .5s var(--ui-ease); }
/* telefon gelince (s9) sayfa hafifçe söner: odak bildirimde, telefonun üstüne bindiği şerit bilerek arkada kalır */
.dty-ph { position: absolute; right: 22px; bottom: 18px; width: 186px; padding-top: 14px; opacity: 0; translate: 0 34px; rotate: 2deg;
  transition: opacity .3s var(--ui-ease), translate .7s var(--dty-spring), rotate .7s var(--ui-ease); }
.dty-ph__sc { position: relative; display: block; height: 262px; border-radius: 28px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 60% at 20% 0%, rgba(255, 182, 39, .28), rgba(255, 182, 39, 0) 60%), radial-gradient(90% 70% at 100% 100%, rgba(77, 140, 214, .45), rgba(77, 140, 214, 0) 70%), linear-gradient(170deg, #1d4f86 0%, #143d6b 45%, #0b2340 100%);
  box-shadow: 0 0 0 5px #0b1526, 0 0 0 6px #2b3a50, 0 4px 8px rgba(11, 21, 38, .2), 0 30px 50px -18px rgba(11, 21, 38, .65); }
.dty-ph__sb { position: absolute; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 14px 0 20px; }
.dty-ph__sb > b { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dty-ph__isl { position: absolute; left: 50%; top: 7px; width: 56px; height: 16px; margin-left: -28px; border-radius: 999px; background: #05070b; }
.dty-ph__sbi { display: flex; align-items: center; gap: 3px; }
.dty-ph__sbi .dty-i { width: 12px; height: 12px; stroke-width: 2.4; }
.dty-ph__sbi .dty-bat { width: 17px; height: 13px; }
.dty-ph__lk { position: absolute; left: 0; right: 0; top: 30px; display: flex; justify-content: center; }
.dty-ph__lk .dty-i { width: 12px; height: 12px; opacity: .9; }
.dty-ph__date { position: absolute; left: 0; right: 0; top: 45px; text-align: center; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .01em; color: rgba(255, 255, 255, .9); }
.dty-ph__clk { position: absolute; left: 0; right: 0; top: 58px; text-align: center; font-size: 38px; line-height: 40px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dty-nt { position: absolute; left: 8px; right: 8px; top: 106px; display: block; padding: 8px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .9); color: var(--ui-text-2);
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 10px 24px -12px rgba(5, 12, 25, .6), inset 0 1px 0 rgba(255, 255, 255, .7);
  opacity: 0; translate: 0 -16px; scale: .96; transition: opacity .3s var(--ui-ease), translate .6s var(--dty-spring), scale .6s var(--dty-spring); }
.dty-nt__h { display: flex; align-items: center; gap: 6px; height: 18px; }
.dty-nt__h img { width: 18px; height: 18px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(16, 37, 64, .1); }
.dty-nt__h span { flex: 1; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #52525b; }
.dty-nt__h em { font-style: normal; font-size: 10px; font-weight: 600; color: #71717a; }
.dty-nt > b { display: block; margin-top: 5px; font-size: 11.5px; line-height: 15px; font-weight: 800; color: var(--ui-text); }
.dty-nt__m { display: block; margin-top: 1px; font-size: 10.5px; line-height: 14px; font-weight: 500; color: #3d4a5c; }
.dty-ph__home { position: absolute; left: 50%; bottom: 7px; width: 70px; height: 4px; margin-left: -35px; border-radius: 3px; background: rgba(255, 255, 255, .85); }
.dty-ph__tag { position: absolute; left: 50%; top: 2px; translate: -50% 0; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 9px 0 7px; border-radius: 999px; background: var(--sun); color: var(--sun-ink, #2a1c00);
  font-size: 10px; font-weight: 800; white-space: nowrap; box-shadow: 0 0 0 1.5px #fff, 0 4px 10px -4px rgba(16, 37, 64, .45); opacity: 0; scale: .7; transition: opacity .3s var(--ui-ease), scale .45s var(--dty-spring); }
.dty-ph__tag .dty-i { width: 11px; height: 11px; stroke-width: 2.4; }

/* ══ ADIMLAR ══ */
/* s1: Çarşamba «+ personel» açılır (liste başta, sonra Aslı Kurt'a kayar) */
.dty.s1:not(.s2) .dty-hit--sel .ui-cur { animation: dty-cur-out .75s var(--ui-ease) both; }
.dty.s1:not(.s2) .dty-hit--sel .dty-rip { animation: dty-rip .5s ease-out .3s both; }
.dty.s1:not(.s2) .dty-g--car .dty-sel, .dty.s4:not(.s5) .dty-g--car .dty-sel { border-style: solid; border-color: var(--navy-soft); box-shadow: 0 0 0 3px rgba(29, 79, 134, .14); }
.dty.s1:not(.s2) .dty-dd { opacity: 1; translate: 0 0; transition-delay: .42s; }
.dty.s1:not(.s2) .dty-dd__ls { translate: 0 calc(-5 * var(--row)); transition: translate .4s cubic-bezier(.3, .1, .2, 1) .7s; }
.dty.s1:not(.s2) .dty-dd__sb i { translate: 0 145%; transition: translate .4s cubic-bezier(.3, .1, .2, 1) .7s; }
.dty.s1:not(.s3) .dty-o--ak { background: #1a6ad6; color: #fff; transition-delay: 1.12s; }
.dty.s2 .dty-o--ak { transition-delay: 0s; }
.dty.s1:not(.s2) .dty-hit--ak .ui-cur { animation: dty-cur-in .3s var(--ui-ease) 1s both; }
/* s2: Aslı Kurt seçilir → kaydediliyor… → «Kaydedilemedi» */
.dty.s2:not(.s3) .dty-hit--ak .ui-cur { animation: dty-cur-press .45s var(--ui-ease) both; }
.dty.s2:not(.s3) .dty-hit--ak .dty-rip { animation: dty-rip .5s ease-out .08s both; }
.dty.s2:not(.s3) .dty-dd { transition-delay: .26s; }
.dty.s2:not(.s3) .dty-g--car { animation: dty-kayit 1.9s linear both; }
.dty.s2:not(.s3) .dty-g--car .dty-v0 { animation: dty-v0 1.9s linear both; }
.dty.s2:not(.s3) .dty-va, .dty.s2:not(.s3) .dty-st--a { animation: dty-vx 1.9s linear both; }
@keyframes dty-kayit { 0%, 15% { opacity: 1; } 18%, 50% { opacity: .6; } 53%, 100% { opacity: 1; } }
@keyframes dty-v0 { 0%, 15% { opacity: 1; translate: 0 0; } 18%, 50% { opacity: 0; translate: 0 -4px; } 53%, 100% { opacity: 1; translate: 0 0; } }
@keyframes dty-vx { 0%, 15% { opacity: 0; translate: 0 4px; } 18%, 50% { opacity: 1; translate: 0 0; } 53%, 100% { opacity: 0; translate: 0 0; } }
.dty.s2:not(.s3) .dty-sw--err { opacity: 1; transition-delay: 1s; }
.dty.s2:not(.s3) .dty-sw--err .dty-sw__c { animation: dty-sw-show .4s var(--ui-ease) 1s both; }
.dty.s2:not(.s3) .dty-sw__i--err i { animation: dty-sw-x .5s var(--ui-ease) 1.1s both; }
/* s3: «Tamam» → pencere kapanır (tek odak: pencere) */
.dty.s3:not(.s4) .dty-hit--tamam .ui-cur { animation: dty-cur-out .6s var(--ui-ease) both; }
.dty.s3:not(.s4) .dty-hit--tamam .dty-rip { animation: dty-rip .45s ease-out .2s both; }
.dty.s3:not(.s4) .dty-sb--red { animation: dty-push .25s var(--ui-ease) .2s; }
.dty.s3:not(.s4) .dty-sw--err { transition-delay: .32s; }
.dty.s3:not(.s4) .dty-sw--err .dty-sw__c { scale: 1; }
/* s4: seçici yeniden açılır → Barış Varol (s1 ile aynı zamanlama) */
.dty.s4:not(.s5) .dty-hit--sel .ui-cur { animation: dty-cur-out .75s var(--ui-ease) both; }
.dty.s4:not(.s5) .dty-hit--sel .dty-rip { animation: dty-rip .5s ease-out .3s both; }
.dty.s4:not(.s5) .dty-dd { opacity: 1; translate: 0 0; transition-delay: .42s; }
.dty.s4:not(.s5) .dty-dd__ls { translate: 0 calc(-5 * var(--row)); transition: translate .4s cubic-bezier(.3, .1, .2, 1) .7s; }
.dty.s4:not(.s5) .dty-dd__sb i { translate: 0 145%; transition: translate .4s cubic-bezier(.3, .1, .2, 1) .7s; }
.dty.s4:not(.s6) .dty-o--bv { background: #1a6ad6; color: #fff; transition-delay: 1.12s; }
.dty.s5 .dty-o--bv { transition-delay: 0s; }
.dty.s4:not(.s5) .dty-hit--bv .ui-cur { animation: dty-cur-in .3s var(--ui-ease) 1s both; }
/* s5: Barış Varol seçilir, anında kaydedilir → çip + «2 kişi» */
.dty.s5:not(.s6) .dty-hit--bv .ui-cur { animation: dty-cur-press .45s var(--ui-ease) both; }
.dty.s5:not(.s6) .dty-hit--bv .dty-rip { animation: dty-rip .5s ease-out .08s both; }
.dty.s5:not(.s6) .dty-dd { transition-delay: .26s; }
.dty.s5:not(.s6) .dty-g--car { animation: dty-kayit4 1.3s linear both; }
.dty.s5:not(.s6) .dty-g--car .dty-v0 { animation: dty-v04 1.3s linear both; }
.dty.s5:not(.s6) .dty-vb, .dty.s5:not(.s6) .dty-st--b { animation: dty-vx4 1.3s linear both; }
@keyframes dty-kayit4 { 0%, 20% { opacity: 1; } 24%, 58% { opacity: .6; } 62%, 100% { opacity: 1; } }
@keyframes dty-v04 { 0%, 20% { opacity: 1; translate: 0 0; } 24%, 58% { opacity: 0; translate: 0 -4px; } 62%, 100% { opacity: 1; translate: 0 0; } }
@keyframes dty-vx4 { 0%, 20% { opacity: 0; translate: 0 4px; } 24%, 58% { opacity: 1; translate: 0 0; } 62%, 100% { opacity: 0; translate: 0 0; } }
/* s7: «Yayınla» → onay penceresi */
.dty.s7:not(.s8) .dty-sw--ask { opacity: 1; transition-delay: .55s; }
.dty.s7:not(.s8) .dty-sw--ask .dty-sw__c { animation: dty-sw-show .4s var(--ui-ease) .55s both; }
/* s8: onaylanır → yayımlandı */
.dty.s8 .dty-sw--ask { opacity: 0; transition-delay: .42s; }
.dty.s8:not(.s9) .dty-sw--ask .dty-sw__c { scale: 1; }
.dty.s8:not(.s9) .dty-hit--onay .ui-cur { animation: dty-cur-out .62s var(--ui-ease) both; }
.dty.s8:not(.s9) .dty-hit--onay .dty-rip { animation: dty-rip .45s ease-out .2s both; }
.dty.s8:not(.s9) .dty-sb--dark { animation: dty-push .25s var(--ui-ease) .2s; }
/* s9: Barış Varol'un telefonu */
.dty.s9 .dty-phw { background: rgba(12, 24, 44, .16); }
.dty.s9 .dty-ph { opacity: 1; translate: 0 0; rotate: 0deg; transition-delay: .1s; }
.dty.s9 .dty-nt { opacity: 1; translate: 0 0; scale: 1; transition-delay: .65s; }
.dty.s9 .dty-ph__tag { opacity: 1; scale: 1; transition-delay: 1.05s; }

/* ══ DAR KAPLAR ══ */
/* tablo telefondaki gibi yana kayar (ilk sütun yapışık): sığmayan gün sütunu kaydırmanın ötesinde kalır */
@container (max-width: 660px) {
  .dty-wr .dty-c4 { display: none; }
  .dty-wr { grid-template-columns: 168px repeat(4, minmax(0, 1fr)); }
}
@container (max-width: 600px) {
  .dty-win { --stH: 312px; }
  .dty-acts, .dty-ico, .dty-note, .dty-yer, .dty-tab--1 { display: none; }
  /* denetim sekmesi: kişi başı nöbetin ilk satırı (2 kişi) sığar; kutular 1 px sıkı */
  .dty-box { padding-top: 6px; }
  .dty-yk { margin-top: 4px; }
  .dty-yk > span:nth-child(n+3) { display: none; }
  /* sol yer listesi telefonda ekranın üstünde kalır: seçili yer başlıktan okunur */
  .dty-cols { display: block; margin-top: 0; }
  .dty-slh { margin-top: 2px; }
  .dty-wr .dty-c0, .dty-wr .dty-c4 { display: none; }
  .dty-wr { grid-template-columns: 166px repeat(3, minmax(0, 1fr)); }
  .dty-lk small { display: none; }
  /* telefon alttan yükselir; gövdesi sahnenin alt kenarında kalır, saat ve bildirim görünür */
  .dty-ph { right: 16px; width: 190px; }
  .dty-ph__sc { height: 300px; }
  /* dar kapta kilit ekranı saati yok: bildirim durum çubuğunun hemen altında (heads-up), telefonun alt yarısı sahne dışında */
  .dty-ph { bottom: -92px; }
  .dty-ph__lk, .dty-ph__date, .dty-ph__clk { display: none; }
  .dty-nt { top: 32px; }
}
@container (max-width: 470px) {
  .dty-win { --stH: 306px; --dd-w: 216px; --row: 20px; }
  .dty-band { margin: 10px 10px 0; padding: 9px 11px; }
  .dty-ttl > b { font-size: 13.5px; }
  .dty-ttl small { font-size: 10.5px; line-height: 14px; }
  .dty-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0 10px; }
  .dty-stage { margin-top: 6px; }
  .dty-v { padding: 5px 8px 6px; }
  .dty-v b { white-space: normal; font-size: 10.5px; text-wrap: balance; }
  .dty-tabs { margin: 0 10px; }
  .dty-tab--2 { display: none; }
  .dty-tab { padding: 0 8px; font-size: 11px; }
  .dty-asg, .dty-pub { padding: 8px 10px 0; }
  .dty-days { padding: 5px; }
  .dty-g { grid-template-columns: 62px minmax(0, 1fr) auto; column-gap: 6px; min-height: 28px; padding: 3px 4px 3px 7px; }
  .dty-chip { height: 20px; padding: 0 1px 0 6px; font-size: 10.5px; margin-right: 4px; }
  /* dar kapta iki çip yan yana sığmaz: Çarşamba çipleri alt alta durur, yeni çip (Barış Varol) sıfır yükseklikten açılır,
     satır geçişle büyür (Sena Ünal tek karede alt satıra atlamaz, alttaki günler sıçramaz) */
  .dty-g--car .dty-g__c { flex-direction: column; align-items: flex-start; row-gap: 0; }
  .dty-chip--new { max-width: 132px; max-height: 0; padding: 0 1px 0 6px; margin: 0;
    transition: max-height .5s cubic-bezier(.3, .1, .2, 1) var(--d), margin-bottom .5s cubic-bezier(.3, .1, .2, 1) var(--d), opacity .3s var(--ui-ease) calc(var(--d) + .08s), scale .45s var(--dty-spring) calc(var(--d) + .08s); }
  .dty.s5 .dty-chip--new { max-height: 20px; margin: 0 0 4px; padding: 0 1px 0 6px; }
  .dty-chip .dty-i { width: 15px; height: 15px; }
  .dty-sel { height: 24px; min-width: 0; padding: 0 5px 0 7px; font-size: 10.5px; }
  .dty-sel .dty-hit--sel { right: 22px; }
  .dty-st { display: none; }
  .dty-o { font-size: 10.5px; padding-left: 18px; }
  .dty-pr { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dty-box--bos, .dty-box--yuk { display: none; }
  .dty-box--go { flex-wrap: wrap; row-gap: 6px; }
  .dty-lock { padding: 0 10px; }
  .dty-lk__a { display: none; }
  .dty-wr { grid-template-columns: 118px repeat(2, minmax(0, 1fr)); }
  .dty-wr .dty-c1 { display: none; }
  /* kalıcı sıkıştırma: ilk iki yer satırı çizilmez, değişen Yemekhane satırı başlığın altında görünür */
  .dty-wk > .dty-wr:nth-child(2), .dty-wk > .dty-wr:nth-child(3) { display: none; }
  .dty-wr__y { padding-left: 8px; box-shadow: 6px 0 8px -6px rgba(16, 37, 64, .25); }
  .dty-wr__y small { white-space: normal; }
  .dty-wr > * { padding: 5px 6px; }
  .dty-ph { right: 12px; width: 184px; }
  .dty-sw { padding: 12px; }
  .dty-sw__c { padding: 16px 14px 14px; }
  .dty-sw__m { font-size: 11px; line-height: 15px; }
}
