/* 1.9.9: ترتيب واجهة الجوال — رأس وشريط يوم مضغوطان، وتنقل بلا شريط تمرير ظاهر */
.nv-row,.nv-sub,.db-cards{scrollbar-width:none;-ms-overflow-style:none}
.nv-row::-webkit-scrollbar,.nv-sub::-webkit-scrollbar,.db-cards::-webkit-scrollbar{display:none}
@media (max-width:640px){
  .top .top-in{padding-block:8px;gap:8px;align-items:center}
  .top .logo-btn{width:40px;height:40px;flex:none}
  .top .logo-btn .logo{width:40px;height:32px;object-fit:contain}
  .top .top-title{min-width:0}
  .top .top-title b{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top .top-title span{display:block;font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top .top-wave{height:8px}
  #daybar .db-in{padding-block:6px}
  #daybar .db-cards{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:2px}
  #daybar .db-card{flex:0 0 auto;min-width:168px;padding:6px 10px;scroll-snap-align:start}
  #pagebar .navbar{padding:8px;gap:6px}
  #pagebar .nv,#pagebar .tab{white-space:nowrap;flex:none}
  #pagebar .nv-row,#pagebar .nv-sub{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 22px),transparent)}
}
/* 1.9.12: ملف الطالب */
.sf-back{margin-bottom:10px}
.sf-sum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:4px 0 14px;font-size:.9rem}
.sf-sum .sf-t{border:1px solid var(--line,#8884);border-radius:12px;padding:10px 6px;text-align:center;display:flex;flex-direction:column;gap:2px}
.sf-sum .sf-t b{font-size:1.25rem}
.sf-sum .sf-t small{opacity:.75;font-size:.75rem}
.sf-sum .sf-none{grid-column:1/-1;margin:0;opacity:.8}
@media (max-width:480px){.sf-sum{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 1.9.13: صفحة ولي الأمر */
#leaveForm[hidden]{display:none}
.student-card .sf-leave{grid-column:1/-1;justify-self:start;position:relative;z-index:1}
@media (max-width:640px){
  .student-card{padding:14px;gap:10px 12px}
  .student-card .av{width:46px;height:46px;font-size:18px}
  .student-card h1{font-size:1.1rem}
  .home-box .stats.tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .stat.tile{padding:10px 8px}
  .stat.tile .ti{width:26px;height:26px;margin-bottom:2px}
  .stat.tile .ti svg{width:16px;height:16px}
  .stat.tile small{font-size:11.5px}
  .stat.tile b{font-size:19px}
  .stat.tile em{font-size:11px;line-height:1.3}
}
