/* EFLİS — mobil düzeltmeleri (2026-10-12). En son yüklenen katmandır; masaüstü düzenine dokunmaz.
   Canlı sitede 375 px telefon görünümünde denendi. */

/* Yan menü (☰) açıkken arkadaki sayfa kaymasın */
body.ef-shell-open{overflow:hidden}

@media (max-width:760px){
  /* Sabit (fixed) arka plan fotoğrafı iOS'ta çalışmıyor, Android'de kaydırmayı yavaşlatıyor */
  html body,html body #applicationScreen,html body.efl-system-hub #applicationScreen{background-attachment:scroll!important}

  /* Üst bar: dokunma alanları en az 44 px (önceden 34–36 px), yazılar okunur boyutta (önceden 9–10,5 px) */
  html body #applicationScreen #eflis-main-header-87a #eflTopActions button,
  html body #applicationScreen #eflis-main-header-87a #eflisShellMenuBtn{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
  html body #applicationScreen #eflis-main-header-87a #eflis-location-87a{font-size:12px!important}
  html body #applicationScreen #eflis-main-header-87a #eflis-role-87a{font-size:11px!important}

  /* Bulanıklaştırma (blur) telefonda kaydırmayı yavaşlatır: üst bar ve Ana Menü panelinde kapalı */
  html body #applicationScreen>.app-header,
  html body.efl-system-hub .efl-hub-panel{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

  /* Ana Menü: EFLİ + günün menüsü kutusu kartların üstünde yüzmez; kartların üstünde düzenli bir şerit olur
     (önceden 250×361 px sabit kutu ekranın sağ altını kapatıyordu) */
  html body.efl-system-hub .efl-hub{flex-direction:column!important}
  html body.efl-system-hub #eflisCombinedAssistant.efli-v2{position:relative!important;inset:auto!important;order:-1;width:auto!important;height:auto!important;max-width:none!important;margin:0 0 12px!important;transform:none!important;align-self:stretch}
  html body.efl-system-hub #eflisCombinedAssistant.efli-v2 .efli-stage{display:grid!important;grid-template-columns:64px 1fr!important;grid-template-areas:"fig menu" "fig bubble" "btn bubble"!important;grid-template-rows:auto auto auto;align-items:center;gap:6px 10px!important;width:auto!important;height:auto!important;padding:10px 12px!important;border-radius:18px;background:rgba(255,255,255,.92);box-shadow:0 8px 24px rgba(15,63,99,.12)}
  html body.efl-system-hub #eflisCombinedAssistant.efli-v2 .efli-figure{grid-area:fig;align-self:start;width:64px!important;height:auto!important;max-height:96px;position:relative!important;inset:auto!important;transform:none!important}
  html body.efl-system-hub #eflisCombinedAssistant.efli-v2 .efli-figure img{width:64px!important;height:auto!important;max-height:96px;object-fit:contain}
  html body.efl-system-hub #eflisCombinedAssistant.efli-v2 .efli-menu-zone{grid-area:menu;width:auto!important;position:relative!important;inset:auto!important}
  html body.efl-system-hub #eflisCombinedAssistant.efli-v2 .efli-bubble{grid-area:bubble;width:auto!important;position:relative!important;inset:auto!important;margin:0!important}
  html body.efl-system-hub #eflisCombinedAssistant.efli-v2 .efli-ask-btn{grid-area:btn;position:relative!important;inset:auto!important;justify-self:center;margin:0!important}

  /* Veli: birden çok çocuk seçimi — iPhone'da dokununca yakınlaşmasın (16 px), dokunma alanı 40 px */
  html:root body #eflis-parent-header .parent-student-select select{font-size:16px!important;height:40px!important}
}

/* ---- Açılan pencereler (2026-10-12): her ekran boyunda ekrana sığar ----
   Pencere kutusu ekranın yüksekliğini ve genişliğini aşmaz; içerik uzunsa kutunun içinde kayar.
   Telefonda adres çubuğu açılıp kapanınca da (dvh) taşmaz. Üst bar pencerenin üstünü örtmez. */
#modal.modal{z-index:2147483000!important}
.printmodal{z-index:2147483001!important}
.modal,.at-modal,.abs-modal,.sp-modal,.efl-modal,.eflis-ann-modal,.duty-modal,#efl-password-change-modal{padding:12px!important;box-sizing:border-box}
.modal-card,.at-dialog,.abs-dialog,.sp-dialog,.efl-modal-box,.eflis-ann-dialog,.duty-modalbox,#efl-password-change-modal>div{
  box-sizing:border-box;max-width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px)!important;overflow:auto!important;overscroll-behavior:contain}
@supports (height:1dvh){
  .modal-card,.at-dialog,.abs-dialog,.sp-dialog,.efl-modal-box,.eflis-ann-dialog,.duty-modalbox,#efl-password-change-modal>div{max-height:calc(100dvh - 24px)!important}
}
/* Kulüp toplantısı vb. uzun formlar: düğmeler pencerenin altında hep görünür */
.modal-card .actions:last-child{position:sticky;bottom:-24px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 30%);padding:14px 0 6px;margin-bottom:-6px;z-index:2}
@media(max-width:620px){
  .modal-card,.at-dialog,.abs-dialog,.sp-dialog,.efl-modal-box,.eflis-ann-dialog{padding:16px 14px!important;border-radius:16px!important}
  .modal,.at-modal,.abs-modal,.sp-modal,.efl-modal,.eflis-ann-modal{padding:8px!important;align-items:center}
}
