/* SAHNE · OKULUN YOKLAMASI (includes/scenes/school-attendance.php) — adımlar:
   s1 «Sınıf» açılır, 8-A'ya gelinir · s2 8-A seçilir: 7 ders saati sekmesi (etiket ✓ · ders · öğretmen · saat; 4 + 3) gelir ·
   s3 6. ders açılır: sayaçlar ileri sayar (18 · 1 · 0 · 0), liste gelir, Furkan Ceylan «Gelmedi» ·
   s4 satır kırmızılaşır: «Bugün 1., 3., 4. ve 5. derse gelmedi» · s5 Devamsızlık Raporu › Ders ders gelmeyenler (çapraz geçiş) ·
   s6 Furkan'ın günü ders saati ders saati dolar · s7 yoklaması alınmayan sınıf ve öğretmenler (sonuç ekranı)
   İskelet: s0–s2'de sekme/sayaç/satır yerleri, s5–s6'da rapor kartlarının içi metinsiz sönük çubuklarla tutulur; veri gelince
   aynı yerde çapraz geçişle dolar (sahne boş beyaz kalmaz, yükseklik adımda değişmez).
   Durum renkleri uygulamadaki gibi: Geldi yeşil · Gelmedi kırmızı · İzinli amber · Geç gök mavisi (admin-attendance.php:32-37). */
@property --sat-n { syntax: '<integer>'; inherits: false; initial-value: 0; }

.sat { container-type: inline-size;
  --sat-p: var(--ui-ok); --sat-p-soft: #f0faf4; --sat-p-line: #cdebd8;
  --sat-a: var(--ui-bad); --sat-a-soft: #fef4f3; --sat-a-line: #f6d2cd;
  --sat-e: #b45309; --sat-e-on: #92400e; --sat-e-soft: #fffaee; --sat-e-line: #f6e2b8;
  --sat-l: #0369a1; --sat-l-soft: #f2f9fe; --sat-l-line: #cde6f6;
  --sat-rose: #fff1f2; --sat-rose-ink: #be123c;
  --sat-amb-50: #fffbeb; --sat-amb-100: #fef3c7; --sat-amb-200: #fde68a; --sat-amb-300: #fcd34d; --sat-amb-ink: #451a03; --sat-amb-tx: #78350f;
  --sat-spring: cubic-bezier(.34, 1.56, .64, 1);
  --sat-sk: #e8ecf1; --sat-sk-bg: #f8f9fb; --sat-sk-line: #edf0f4;
  --sat-card: 0 1px 2px rgba(16, 37, 64, .05), inset 0 1px 0 rgba(255, 255, 255, .6); }
.sat-win { border-radius: 14px 14px 0 0; border-bottom: 0; }
.sat svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sat .ui-cur path { fill: #fff; stroke: #10213a; stroke-width: 1.4; }

/* ── üst şerit: yol + oturum ── */
.sat-bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--ui-line); background: var(--ui-bg); font-size: 11.5px; font-weight: 600; color: var(--ui-muted); white-space: nowrap; }
.sat-crumb { display: flex; align-items: center; min-width: 0; }
.sat-crumb i { font-style: normal; margin: 0 7px; opacity: .55; }
.sat-crumb__pg { display: inline-grid; color: var(--ui-text); font-weight: 800; }
.sat-crumb__pg > span { grid-area: 1 / 1; transition: opacity .35s var(--ui-ease); }
.sat-crumb__pg > span + span { opacity: 0; }
.sat-me { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sat-bell { position: relative; display: grid; place-items: center; width: 22px; height: 22px; color: var(--ui-muted); }
.sat-bell svg { width: 16px; height: 16px; stroke-width: 1.9; }
.sat-bell em { position: absolute; top: -5px; left: 12px; min-width: 16px; height: 14px; padding: 0 3px; border-radius: 7px; background: #dc2626; box-shadow: 0 0 0 2px #fff; color: #fff; font-style: normal; font-size: 10px; font-weight: 800; line-height: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.sat-av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; 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, .25); }
.sat-me__ad { color: var(--ui-text); font-weight: 800; margin-left: -2px; }

/* ── iki görünüm aynı hücrede: çapraz geçiş ── */
.sat-body { display: grid; }
.sat-v { grid-area: 1 / 1; min-width: 0; padding: 12px 14px 12px; transition: opacity .45s var(--ui-ease), transform .55s var(--ui-ease); }
.sat-v2 { display: flex; flex-direction: column; opacity: 0; transform: translateY(10px); }

/* ── süzgeç kartı ── */
.sat-flt { display: flex; align-items: flex-end; gap: 10px; padding: 8px 10px; border: 1px solid var(--ui-line); border-radius: 10px; background: #fff; box-shadow: var(--sat-card); }
.sat-fld { position: relative; display: flex; flex-direction: column; gap: 3px; }
.sat-fld small { font-size: 10px; line-height: 12px; font-weight: 800; letter-spacing: .05em; color: var(--ui-muted); }
.sat-fld--cls { flex: 1; min-width: 0; }
.sat-sel { position: relative; display: flex; align-items: center; height: 28px; padding: 0 28px 0 9px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-2); font-size: 12px; font-weight: 800; color: var(--ui-text); transition: box-shadow .25s var(--ui-ease); }
.sat-sel b { opacity: 0; transform: translateY(3px); transition: opacity .3s var(--ui-ease), transform .4s var(--ui-ease); white-space: nowrap; }
.sat-sel__v { position: absolute; right: 9px; top: 7px; width: 14px; height: 14px; color: var(--ui-muted); transition: transform .3s var(--ui-ease); }
.sat-date { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px 0 9px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-2); font-size: 12px; font-weight: 700; color: var(--ui-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sat-i { width: 13px; height: 13px; color: var(--ui-text-2); }
.sat-day { margin-left: auto; padding-bottom: 7px; font-size: 10.5px; font-weight: 700; color: var(--ui-muted); white-space: nowrap; }

/* açılır liste (yerel seçici: okul optgroup'u + şubeler) */
.sat-dd { position: absolute; z-index: 9; top: calc(100% + 4px); left: 0; width: min(100%, 240px); padding: 4px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--ui-line), 0 2px 4px rgba(16, 37, 64, .06), 0 16px 32px -12px rgba(16, 37, 64, .4);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top left; transition: opacity .2s var(--ui-ease), transform .3s var(--ui-ease); }
.sat-dd__sb { position: absolute; top: 30px; right: 3px; width: 3px; height: 34px; border-radius: 2px; background: rgba(16, 37, 64, .22); }
.sat-dd > span { position: relative; display: block; margin-right: 6px; padding: 0 8px 0 16px; height: 24px; line-height: 24px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--ui-text-2); white-space: nowrap; transition: background-color .2s var(--ui-ease), color .2s var(--ui-ease); }

/* ── ders saati sekmeleri ── */
.sat-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.sat-tab { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 6px 9px; border-radius: 9px; background: var(--sat-sk-bg); box-shadow: inset 0 0 0 1px var(--sat-sk-line), 0 1px 2px rgba(16, 37, 64, 0); line-height: 13px;
  transition: background-color .3s var(--ui-ease), box-shadow .3s var(--ui-ease); transition-delay: calc(var(--i) * 60ms + .3s); }
.sat-tab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--navy-soft), var(--navy)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 14px -8px rgba(16, 37, 64, .7); opacity: 0; transition: opacity .3s var(--ui-ease); }
.sat-tab > * { position: relative; }
.sat-tab > b { display: flex; align-items: center; gap: 3px; font-size: 11px; line-height: 14px; font-weight: 800; color: var(--ui-text); white-space: nowrap; }
.sat-tab__d, .sat-tab__s { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sat-tab > b, .sat-tab__d, .sat-tab__s { opacity: 0; translate: 0 4px; transition: opacity .3s var(--ui-ease), translate .5s var(--sat-spring), color .3s var(--ui-ease); transition-delay: calc(var(--i) * 60ms + .3s); }
.sat-tab__d { font-weight: 700; color: var(--ui-text-2); }
.sat-tab__s { font-weight: 600; color: var(--ui-muted); font-variant-numeric: tabular-nums; }
/* «yoklama alındı»: etiketin yanında metin renginde düz ✓ (uygulamada lucide check h-3 w-3) */
.sat-ok { flex: none; display: grid; width: 12px; height: 12px;
  opacity: 0; transform: scale(.3); transition: opacity .2s var(--ui-ease), transform .45s var(--sat-spring); transition-delay: calc(var(--k) * 100ms + .75s); }
.sat-ok svg { width: 12px; height: 12px; stroke-width: 2.4; }
/* iskelet: metinsiz sönük çubuklar, gerçek içerikle aynı kutuda; veri gelince söner */
.sat-sk { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .3s var(--ui-ease); }
.sat-sk i, .sat-skb { display: block; flex: none; border-radius: 4px; background: var(--sat-sk); }
.sat-tab > .sat-sk { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: inherit; transition-delay: calc(var(--i) * 60ms + .3s); }
.sat-tab .sat-sk i { height: 6px; width: 80%; }
.sat-tab .sat-sk i:first-child { width: 58%; height: 8px; margin-top: 3px; }
.sat-tab .sat-sk i:last-child { width: 44%; }
.sat-pt { position: absolute; width: 0; height: 0; z-index: 8; pointer-events: none; }
.sat-pt .ui-cur { left: -5px; top: -3px; transform: translate(18px, 16px); transform-origin: 5px 3px; }
.sat-rip { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 4px rgba(29, 79, 134, .4), inset 0 0 0 8px rgba(29, 79, 134, .12); opacity: 0; }
.sat-pt--sel { right: 34%; top: 15px; }
.sat-pt--opt { left: 62%; top: 15px; }
.sat-pt--tab { left: 58%; top: 34px; }

/* ── sayaç kartları ── */
.sat-cnts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.sat-cnt { position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 4px 5px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--sat-sk-line), var(--sat-card); background: var(--sat-sk-bg); color: var(--c);
  transition: background-color .35s var(--ui-ease), box-shadow .35s var(--ui-ease); transition-delay: calc(var(--i) * 60ms + .2s); }
.sat-cnt > .sat-sk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; transition-delay: calc(var(--i) * 60ms + .2s); }
.sat-cnt .sat-sk i { width: 46%; height: 6px; }
.sat-cnt .sat-sk i + i { width: 22%; height: 12px; border-radius: 5px; }
.sat-cnt--p { --c: var(--sat-p); --c-soft: var(--sat-p-soft); --c-line: var(--sat-p-line); }
.sat-cnt--a { --c: var(--sat-a); --c-soft: var(--sat-a-soft); --c-line: var(--sat-a-line); }
.sat-cnt--e { --c: var(--sat-e); --c-soft: var(--sat-e-soft); --c-line: var(--sat-e-line); }
.sat-cnt--l { --c: var(--sat-l); --c-soft: var(--sat-l-soft); --c-line: var(--sat-l-line); }
.sat-cnt small { font-size: 10px; line-height: 12px; font-weight: 800; letter-spacing: .06em; opacity: 0; transition: opacity .3s var(--ui-ease) calc(var(--i) * 60ms + .2s); }
.sat-cnt b { --sat-n: 0; counter-reset: satn var(--sat-n); font-size: 19px; line-height: 24px; font-weight: 800; font-variant-numeric: tabular-nums; opacity: 0;
  transition: --sat-n .85s cubic-bezier(.25, .8, .25, 1) .3s, opacity .3s var(--ui-ease) calc(var(--i) * 60ms + .2s); }
.sat-cnt b::after { content: counter(satn); }

/* ── öğrenci listesi ── */
/* «No | Ad» sıra seçici: uygulamada yalnız telefonda, tablo başlığının yerine (sm:hidden) */
.sat-sort { display: none; justify-content: flex-end; margin-top: 8px; }
.sat-sort > span { display: inline-flex; padding: 2px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line), var(--sat-card); }
.sat-sort b, .sat-sort span span { display: grid; place-items: center; min-width: 30px; height: 20px; padding: 0 8px; border-radius: 5px; font-size: 10.5px; font-weight: 800; color: var(--ui-muted); }
.sat-sort b { background: linear-gradient(180deg, var(--navy-soft), var(--navy)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.sat-tbl { position: relative; margin-top: 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line), var(--sat-card); overflow: hidden; }
.sat-th, .sat-tr { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 0 12px 0 10px; }
.sat-th { height: 26px; background: var(--ui-bg-2); border-bottom: 1px solid var(--ui-line); font-size: 10px; font-weight: 800; letter-spacing: .05em; color: var(--ui-muted); }
.sat-th__no { display: inline-flex; align-items: center; gap: 2px; color: var(--navy-soft); }
.sat-th__no svg { width: 10px; height: 10px; stroke-width: 2.6; }
.sat-th__st { width: 200px; text-align: center; }
.sat-tr { position: relative; min-height: 29px; padding-top: 3px; padding-bottom: 3px; border-top: 1px solid #edf0f4; background: #fff;
  transition: background-color .45s var(--ui-ease), min-height .4s var(--ui-ease); }
.sat-tr > .sat-no, .sat-tr > .sat-ad, .sat-tr > .sat-st { opacity: 0; translate: 0 4px; transition: opacity .3s var(--ui-ease), translate .45s var(--ui-ease); transition-delay: calc(var(--i) * 55ms + .3s); }
.sat-tr > .sat-sk { display: grid; grid-template-columns: inherit; align-items: center; column-gap: inherit; padding: inherit; transition-delay: calc(var(--i) * 55ms + .3s); }
.sat-tr .sat-sk > i { height: 7px; width: 20px; }
.sat-tr .sat-sk > i + i { height: 8px; width: var(--w); }
.sat-tr .sat-sk > .sat-sk__st { display: flex; gap: 4px; width: 200px; height: auto; background: none; }
.sat-sk__st i { flex: 1; height: 14px; border-radius: 5px; background: var(--sat-sk-bg); box-shadow: inset 0 0 0 1px var(--sat-sk-line); }
.sat-th + .sat-tr { border-top: 0; }
.sat-no { font-size: 11px; font-weight: 800; color: var(--ui-muted); font-variant-numeric: tabular-nums; }
.sat-ad { display: flex; flex-direction: column; min-width: 0; }
.sat-ad b { font-size: 12px; line-height: 16px; font-weight: 800; color: var(--ui-text); white-space: nowrap; }
.sat-gi { display: flex; align-items: center; gap: 4px; max-height: 0; font-size: 10.5px; line-height: 14px; font-weight: 700; color: var(--sat-rose-ink); white-space: nowrap;
  opacity: 0; transform: translateY(-3px); transition: opacity .35s var(--ui-ease), transform .45s var(--ui-ease), max-height .4s var(--ui-ease), margin .4s var(--ui-ease); }
.sat-gi svg { flex: none; width: 12px; height: 12px; stroke-width: 2.2; }
.sat-tr--yok { min-height: 29px; }
.sat-st { display: flex; gap: 4px; width: 200px; }
.sat-b { flex: 1; display: grid; place-items: center; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--ui-line-2); font-style: normal; font-size: 10px; font-weight: 800; color: var(--ui-text-2); white-space: nowrap; transition: background-color .3s var(--ui-ease), color .3s var(--ui-ease), box-shadow .3s var(--ui-ease); transition-delay: calc(var(--i) * 55ms + .45s); }
/* 145 satırı s4'te uzarken tablonun altındaki pay aynı ölçüde kapanır: sahne yüksekliği adımda değişmez */
.sat-tbl::after { content: ""; display: block; height: 15px; transition: height .4s var(--ui-ease); }
.sat.s4 .sat-tbl::after { height: 0; }
.sat-scroll { position: absolute; right: 3px; top: 30px; width: 3px; height: 58px; border-radius: 2px; background: rgba(16, 37, 64, .2); opacity: 0; transition: opacity .4s var(--ui-ease) .7s; }

/* ── RAPOR: Ders ders gelmeyenler ── */
.sat-rh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sat-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line), var(--sat-card); }
.sat-seg > * { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 11px; font-weight: 700; color: var(--ui-muted); white-space: nowrap; }
.sat-seg svg { width: 13px; height: 13px; stroke-width: 1.9; }
.sat-seg b { font-weight: 800; color: #fff; background: linear-gradient(180deg, var(--navy-soft), var(--navy)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 4px 10px -6px rgba(16, 37, 64, .7); }
.sat-dn { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.sat-dn__b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--ui-line-2); color: var(--ui-text-2); background: #fff; }
.sat-dn__b svg { width: 14px; height: 14px; }
.sat-dn__t { font-size: 11px; font-weight: 700; color: var(--ui-muted); white-space: nowrap; }
.sat-dn__t b { color: var(--ui-text); font-weight: 800; }
.sat-dn__c { display: none; }

.sat-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.sat-k { display: flex; flex-direction: column; min-width: 0; padding: 7px 9px 8px; border-radius: 10px; background: var(--k-bg); box-shadow: inset 0 0 0 1px var(--k-line), var(--sat-card);
  opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ui-ease), transform .5s var(--sat-spring); transition-delay: calc(var(--i) * 70ms + .25s); }
.sat-k small { display: flex; align-items: center; gap: 4px; font-size: 10px; line-height: 13px; font-weight: 800; color: var(--k-lbl); white-space: nowrap; }
.sat-k small svg { flex: none; width: 12px; height: 12px; stroke-width: 2.1; }
.sat-k b { margin-top: 2px; font-size: 13.5px; line-height: 18px; font-weight: 800; color: var(--k-val); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sat-k em { font-style: normal; font-size: 10px; line-height: 13px; font-weight: 700; color: var(--k-lbl); opacity: .85; white-space: nowrap; }
.sat-k--red { --k-bg: #fef4f3; --k-line: #f8c9c3; --k-lbl: #b91c1c; --k-val: #991b1b; }
.sat-k--sky { --k-bg: #fff; --k-line: var(--ui-line); --k-lbl: var(--ui-text-2); --k-val: var(--ui-text); }
.sat-k--sky small svg { color: var(--sat-l); }
.sat-k--sky em { color: var(--ui-muted); }
.sat-k--amber { --k-bg: #fffaeb; --k-line: #f8dc8c; --k-lbl: #92400e; --k-val: var(--sat-amb-tx); }

.sat-lg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 9px 0 0; font-size: 10px; line-height: 16px; font-weight: 700; color: var(--ui-muted); opacity: 0; transition: opacity .4s var(--ui-ease) .45s; }
.sat-lg > span { display: inline-flex; align-items: center; gap: 4px; }
.sat-c { display: inline-grid; place-items: center; min-width: 26px; height: 16px; padding: 0 3px; border-radius: 4px; font-style: normal; font-size: 10px; font-weight: 900; line-height: 1; }
.sat-c svg { width: 10px; height: 10px; stroke-width: 3; }
.sat-c--yok { background: #dc2626; color: #fff; }
.sat-c--izn { background: #fbbf24; color: var(--sat-amb-ink); }
.sat-c--gec { background: var(--sat-l); color: #fff; }
.sat-c--ok { background: #d1fae5; color: #065f46; }
.sat-c--yo { background: #e4e4e7; color: #3f3f46; }

.sat-gt { margin-top: 8px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line), var(--sat-card); overflow: hidden; }
.sat-gh, .sat-gr { display: grid; grid-template-columns: 34px minmax(0, 1fr) repeat(7, 34px) 50px; align-items: center; column-gap: 2px; padding: 0 8px; }
.sat-gh { height: 36px; background: var(--ui-bg-2); border-bottom: 1px solid var(--ui-line); font-size: 10px; font-weight: 800; letter-spacing: .05em; color: var(--ui-muted); opacity: 0; transition: opacity .35s var(--ui-ease) .4s; }
.sat-gs { display: flex; flex-direction: column; align-items: center; }
.sat-gh .sat-gs b { font-size: 11px; line-height: 13px; font-weight: 900; letter-spacing: 0; color: var(--ui-text); }
.sat-gh .sat-gs small { font-size: 10px; line-height: 12px; font-weight: 700; letter-spacing: 0; color: var(--ui-muted); font-variant-numeric: tabular-nums; }
.sat-gn { text-align: center; color: #b91c1c; }
.sat-gr { min-height: 40px; opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ui-ease), transform .45s var(--ui-ease); }
.sat-gr .sat-gc { font-size: 12px; font-weight: 900; color: var(--ui-text); }
.sat-gad { display: flex; align-items: center; flex-wrap: wrap; gap: 0 5px; min-width: 0; font-size: 12px; line-height: 16px; }
.sat-gad small { font-size: 11px; font-weight: 700; color: var(--ui-muted); font-variant-numeric: tabular-nums; }
.sat-gad b { font-weight: 800; color: var(--ui-text); white-space: nowrap; }
.sat-tg { display: inline-grid; place-items: center; height: 15px; padding: 0 4px; border-radius: 4px; background: #b91c1c; color: #fff; font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .03em; white-space: nowrap;
  opacity: 0; transform: scale(.6); transition: opacity .25s var(--ui-ease), transform .45s var(--sat-spring); transition-delay: 1.05s; }
.sat-gr .sat-c { min-width: 30px; height: 24px; border-radius: 6px; font-size: 10.5px; opacity: 0; transform: scale(.55); transition: opacity .2s var(--ui-ease), transform .45s var(--sat-spring); transition-delay: calc(var(--i) * 105ms + .2s); }
.sat-gr .sat-gn b { display: inline-block; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ui-ease) 1s, transform .4s var(--ui-ease) 1s; }

.sat-gcap { margin-top: 6px; font-size: 10px; line-height: 14px; font-weight: 700; color: var(--ui-muted); opacity: 0; transition: opacity .35s var(--ui-ease) .6s; }
/* kartlar raporun kalan yüksekliğini doldurur (yoklama ekranıyla aynı hücrede: altta boş bant kalmaz) */
.sat-miss { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; align-items: stretch; }
/* iki kart aynı boyda (uygulamada da aynı alt çizgide): kısa olanın içi boş uzar */
.sat-mc { display: flex; flex-direction: column; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--sat-amb-200), var(--sat-card); overflow: hidden;
  opacity: .7; transition: opacity .35s var(--ui-ease); transition-delay: calc(var(--i) * 120ms + .1s); }
.sat-mc__b { flex: 1; display: grid; align-content: start; }
.sat-mc__b > * { grid-area: 1 / 1; min-width: 0; }
.sat-mc__sk { transition: opacity .3s var(--ui-ease); transition-delay: calc(var(--i) * 120ms + .3s); }
.sat-mc__sk .sat-mi { opacity: 1; transform: none; }
.sat-mc__sk .sat-mi__h b { display: flex; align-items: center; height: 18px; }
.sat-mc__sk .sat-skb { width: 22px; height: 8px; }
.sat-mc__sk .sat-mi--cls > b { display: flex; align-items: center; height: 19px; }
.sat-mc__sk .sat-mi__h em { width: 66px; background: var(--sat-amb-50); }
.sat-mc__sk .sat-chips i { background: var(--sat-amb-50); box-shadow: inset 0 0 0 1px var(--sat-amb-100); }
.sat-mc header { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; padding: 6px 9px; background: var(--sat-amb-50); border-bottom: 1px solid var(--sat-amb-100); }
.sat-mc header b { font-size: 11.5px; font-weight: 800; color: var(--sat-amb-ink); white-space: nowrap; }
.sat-mc header em { margin-left: auto; border-radius: 4px; background: var(--sat-amb-100); font-style: normal; font-size: 10px; line-height: 14px; font-weight: 800; color: rgba(120, 53, 15, 0); white-space: nowrap;
  transition: color .3s var(--ui-ease), background-color .3s var(--ui-ease); transition-delay: calc(var(--i) * 120ms + .3s); }
.sat-mc__i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--sat-amb-100); color: #92400e; }
.sat-mc__i svg { width: 13px; height: 13px; stroke-width: 2; }
.sat-mi { padding: 6px 9px 7px; opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ui-ease), transform .45s var(--ui-ease); transition-delay: calc(var(--i) * 120ms + var(--j) * 110ms + .4s); }
.sat-mi + .sat-mi { border-top: 1px solid var(--sat-amb-100); }
.sat-mi--cls { display: flex; align-items: flex-start; gap: 10px; }
.sat-mi--cls > b { flex: none; width: 30px; font-size: 12px; line-height: 19px; font-weight: 900; color: var(--ui-text); }
.sat-mi__h { display: flex; align-items: center; gap: 8px; }
.sat-mi__h b { font-size: 11.5px; line-height: 18px; font-weight: 800; color: var(--ui-text); }
.sat-mi__h em { margin-left: auto; height: 17px; padding: 0 7px; border-radius: 999px; background: var(--sat-amb-100); font-style: normal; font-size: 10px; line-height: 17px; font-weight: 800; color: var(--sat-amb-tx); white-space: nowrap; }
.sat-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.sat-mi__h + .sat-chips { margin-top: 4px; }
.sat-chips i { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px var(--sat-amb-300); font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--sat-amb-ink); white-space: nowrap; }

/* ── ADIMLAR ── */
/* s0 → s1: imleç seçiciye gelir, tıklar; liste açılır, 8-A'nın üstüne gelinir */
.sat:not(.s1) .sat-pt--sel .ui-cur { opacity: 1; transform: none; transition-delay: .35s; }
.sat.s1:not(.s2) .sat-pt--sel .ui-cur { opacity: 0; transform: none; transition: opacity .2s var(--ui-ease) .4s; animation: sat-press .32s var(--ui-ease); }
.sat.s1:not(.s2) .sat-pt--sel .sat-rip { animation: sat-rip .6s ease-out .08s both; }
.sat.s1:not(.s2) .sat-sel { box-shadow: inset 0 0 0 1px var(--navy-soft), 0 0 0 3px rgba(29, 79, 134, .16); }
.sat.s1:not(.s2) .sat-sel__v { transform: rotate(180deg); }
.sat.s1:not(.s2) .sat-dd { opacity: 1; transform: none; transition-delay: .12s; }
.sat.s1:not(.s2) .sat-pt--opt .ui-cur { opacity: 1; transform: none; transition-delay: .5s; }
.sat.s1 .sat-dd__on { background: var(--navy-soft); color: #fff; transition-delay: .8s; }
/* s2: 8-A seçilir → ders saatleri gelir, alınanlara ✓; imleç 6. derse gider */
.sat.s2:not(.s3) .sat-pt--opt .ui-cur { opacity: 1; transform: none; animation: sat-press .3s var(--ui-ease); }
.sat.s2:not(.s3) .sat-pt--opt .sat-rip { animation: sat-rip .5s ease-out both; }
.sat.s2 .sat-dd { transition-delay: .22s; }
.sat.s2 .sat-dd__on { transition: none; }
.sat.s2 .sat-sel b { opacity: 1; transform: none; transition-delay: .22s; }
.sat.s2 .sat-ok { opacity: 1; transform: none; }
.sat.s2 .sat-tab { background-color: #fff; box-shadow: inset 0 0 0 1px var(--ui-line), 0 1px 2px rgba(16, 37, 64, .05); }
.sat.s2 .sat-tab > b, .sat.s2 .sat-tab__d, .sat.s2 .sat-tab__s { opacity: 1; translate: 0 0; }
.sat.s2 .sat-tab > .sat-sk { opacity: 0; }
.sat.s2:not(.s3) .sat-pt--tab .ui-cur { opacity: 1; transform: none; transition-delay: 1.1s; }
.sat.s2:not(.s3) .sat-tab--on { background-color: var(--ui-bg-2); transition-delay: 1.35s, calc(var(--i) * 60ms + .3s); }
/* s3: 6. ders açılır */
.sat.s3 .sat-tab, .sat.s3 .sat-tab > b, .sat.s3 .sat-tab__d, .sat.s3 .sat-tab__s { transition-delay: 0s; }
.sat.s3 .sat-ok { transition-delay: 0s; }
.sat.s3:not(.s4) .sat-pt--tab .ui-cur { opacity: 0; transform: none; transition: opacity .2s var(--ui-ease) .45s; animation: sat-press .32s var(--ui-ease); }
.sat.s3:not(.s4) .sat-pt--tab .sat-rip { animation: sat-rip .6s ease-out .06s both; }
.sat.s3 .sat-tab--on::before { opacity: 1; transition-delay: .1s; }
.sat.s3 .sat-tab--on > b { color: #fff; transition-delay: .1s; }
.sat.s3 .sat-tab--on .sat-tab__d { color: rgba(255, 255, 255, .9); transition-delay: .1s; }
.sat.s3 .sat-tab--on .sat-tab__s { color: rgba(255, 255, 255, .8); transition-delay: .1s; }
.sat.s3 .sat-cnt { background-color: var(--c-soft); box-shadow: inset 0 0 0 1px var(--c-line), var(--sat-card); }
.sat.s3 .sat-cnt small, .sat.s3 .sat-cnt b, .sat.s3 .sat-tr > .sat-no, .sat.s3 .sat-tr > .sat-ad, .sat.s3 .sat-tr > .sat-st { opacity: 1; translate: 0 0; }
.sat.s3 .sat-cnt > .sat-sk, .sat.s3 .sat-tr > .sat-sk { opacity: 0; }
.sat.s3 .sat-scroll { opacity: 1; }
.sat.s3 .sat-cnt--p b { --sat-n: 18; }
.sat.s3 .sat-cnt--a b { --sat-n: 1; }
.sat.s3 .sat-b--p.is-on { background: var(--sat-p); color: #fff; box-shadow: inset 0 0 0 1px var(--sat-p); }
.sat.s3 .sat-b--a.is-on { background: var(--sat-a); color: #fff; box-shadow: inset 0 0 0 1px var(--sat-a); }
/* s4: gelmeyenin satırı kırmızılaşır, gün içi önceki dersleri yazar */
.sat.s4 .sat-tr--yok { min-height: 44px; background: var(--sat-rose); transition-delay: 0s; }
.sat.s4 .sat-gi { max-height: 14px; margin-top: 2px; opacity: 1; transform: none; transition-delay: .15s; }
.sat.s4 .sat-cnt--a { box-shadow: inset 0 0 0 1px var(--sat-a), 0 0 0 3px rgba(194, 38, 29, .1); transition: box-shadow .4s var(--ui-ease) .3s; }
/* s5: Devamsızlık Raporu › Ders ders gelmeyenler (çapraz geçiş) */
.sat.s5 .sat-v1 { opacity: 0; transform: translateY(-8px) scale(.985); }
.sat.s5 .sat-v2 { opacity: 1; transform: none; transition-delay: .12s; }
.sat.s5 .sat-crumb__pg > span:first-child { opacity: 0; }
.sat.s5 .sat-crumb__pg > span + span { opacity: 1; transition-delay: .15s; }
.sat.s5 .sat-k { opacity: 1; transform: none; }
.sat.s5 .sat-lg, .sat.s5 .sat-gh, .sat.s5 .sat-gcap { opacity: 1; }
.sat.s5 .sat-gr { opacity: 1; transform: none; transition-delay: .5s; }
/* s6: Furkan'ın günü ders saati ders saati */
.sat.s6 .sat-gr .sat-c, .sat.s6 .sat-tg, .sat.s6 .sat-gr .sat-gn b { opacity: 1; transform: none; }
/* s7: yoklaması alınmayanlar — sonuç */
.sat.s7 .sat-mc, .sat.s7 .sat-mi { opacity: 1; transform: none; }
.sat.s7 .sat-mc header em { color: var(--sat-amb-tx); background-color: rgba(254, 243, 199, 0); }
.sat.s7 .sat-mc__sk { opacity: 0; }

@keyframes sat-press { 0%, 100% { scale: 1; } 45% { scale: .8; } }
@keyframes sat-rip { from { opacity: .9; transform: scale(.25); } to { opacity: 0; transform: scale(1.15); } }

/* ── GENİŞ KAP ── */
/* sekmeler iki sıra olduğu için liste kaydırılmış başlar (142–145); sahne yüksekliği 460 px dolayında kalır */
@container (min-width: 561px) {
  .sat-th + .sat-tr { display: none; }
  .sat-th + .sat-tr + .sat-tr { border-top: 0; }
  .sat-tab { padding: 5px 9px; }
  .sat-tab__d, .sat-tab__s { line-height: 13px; }
}

/* ── DAR KAPLAR ── */
/* 676'ya kadar kısa yol: rapordaki gün seçici «‹ tarih › Pazartesi · 8-A» tek satırda kalır (667'de iki satıra kırılmaz) */
@container (max-width: 676px) {
  .sat-crumb__x { display: none; }
  .sat-dn__o { display: none; }
  .sat-dn__c { display: inline; }
}
/* sekmelerde saat satırı gizli; liste ve sayaçlar sıkışır */
@container (max-width: 560px) {
  .sat-me__ad { display: none; }
  .sat-day { display: none; }
  .sat-v { padding: 10px 12px 12px; }
  .sat-tabs { gap: 5px; margin-top: 8px; }
  .sat-tab { padding: 6px 7px; }
  .sat-tab__s { display: none; }
  .sat-tab .sat-sk i:last-child { display: none; }
  .sat-cnts { gap: 6px; margin-top: 8px; }
  .sat-cnt { padding: 4px 4px; }
  .sat-cnt b { font-size: 17px; line-height: 21px; }
  .sat-tbl { margin-top: 8px; }
  .sat-tr, .sat-tr--yok { min-height: 28px; }
  .sat.s4 .sat-tr--yok { min-height: 42px; }
  .sat-tbl::after { height: 13px; }
  /* rapor üst satırı 521'de de tek satır: bölüm düğmesi + gün seçici sıkışır */
  .sat-rh { gap: 8px 6px; }
  .sat-seg > * { gap: 4px; padding: 0 7px; }
  .sat-dn { gap: 5px; }
  .sat-dn .sat-date { gap: 6px; }
  .sat-miss { grid-template-columns: minmax(0, 1fr); }
  .sat-mc--cls { display: none; }
}
/* raporun özet kartları ikiye, tablo telefondaki gibi (sınıf ve toplam sütunu yok, saat yalnız sıra no) */
@container (max-width: 520px) {
  .sat-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sat-k--x, .sat-lg { display: none; }
  .sat-gh, .sat-gr { grid-template-columns: minmax(0, 1fr) repeat(7, 24px); padding: 0 6px 0 8px; }
  .sat-gh { height: 28px; }
  .sat-gh .sat-gs small { display: none; }
  .sat-gc, .sat-gn { display: none; }
  .sat-gr { min-height: 46px; }
  .sat-gad { font-size: 11.5px; gap: 0 4px; }
  .sat-gad small { font-size: 10.5px; }
  .sat-gr .sat-c { min-width: 22px; width: 22px; height: 26px; font-size: 10px; padding: 0; }
}
/* 471–500: dört düğme yanında gün içi notu iki satıra sarar (düğmeye dayanmaz) */
@container (min-width: 471px) and (max-width: 500px) {
  .sat-gi { white-space: normal; align-items: flex-start; }
  .sat-gi svg { margin-top: 1px; }
  .sat.s4 .sat-tr--yok { min-height: 54px; }
  .sat.s4 .sat-gi { max-height: 28px; }
  .sat-tbl::after { height: 26px; }
}
/* TELEFON DÜZENİ (uygulama: tablo değil kart): başlık yerine «No | Ad», satır kart — üstte no + ad, altta dört eşit düğme;
   liste kaydırılmış (144–145) */
@container (max-width: 470px) {
  .sat-sort { display: flex; }
  .sat-th, .sat-th + .sat-tr, .sat-th + .sat-tr + .sat-tr, .sat-th + .sat-tr + .sat-tr + .sat-tr { display: none; }
  .sat-th + .sat-tr + .sat-tr + .sat-tr + .sat-tr { border-top: 0; }
  .sat-tbl { margin-top: 6px; }
  .sat-tr, .sat-tr--yok, .sat.s4 .sat-tr--yok { min-height: 0; }
  .sat-tr { grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto 24px; row-gap: 5px; column-gap: 6px; align-items: start; padding: 7px 10px 8px; }
  .sat-no { line-height: 16px; }
  .sat-st { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: auto; }
  .sat-b { height: 24px; font-size: 10.5px; }
  .sat-tr > .sat-sk { grid-template-rows: 16px 24px; row-gap: inherit; }
  .sat-tr .sat-sk > .sat-sk__st { grid-column: 1 / -1; width: auto; height: 24px; }
  .sat-sk__st i { height: 24px; }
  .sat-tbl::after { height: 16px; }
  .sat-scroll { top: 46px; height: 44px; }
  /* sekmeler üç sütun: «6. Ders (2/2) ✓» tek satıra sığar */
  .sat-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .sat-tab { padding: 5px 6px; }
}
@container (max-width: 400px) {
  .sat-bar { padding: 0 12px; }
  .sat-v { padding: 10px 10px 12px; }
  .sat-flt { gap: 8px; padding: 7px 8px; }
  .sat-th, .sat-tr { padding-left: 8px; padding-right: 10px; column-gap: 8px; }
  .sat-dn__t { font-size: 10.5px; }
}
@container (max-width: 335px) {
  /* raporda ad sütunu: gün sütunları 22 px, araları 3 px (ad «Yok» kutusuna yapışmaz) */
  .sat-gh, .sat-gr { grid-template-columns: minmax(0, 1fr) repeat(7, 22px); column-gap: 3px; }
}
