/* SEGaza V3.0.10 — student mobile scan UX */
.student-mobile-more{display:none}
.student-row-meta{display:flex;align-items:center;gap:5px;margin-top:3px;min-width:0}
.student-primary-cell .initiative-pill{max-width:165px;overflow:hidden;text-overflow:ellipsis}

@media(max-width:760px){
  /* Narrow, persistent toolbar: title + More stays visible while browsing students. */
  #view-students .section-head{
    position:sticky!important;top:64px!important;z-index:34!important;
    min-height:54px!important;padding:8px 10px!important;margin:0 0 7px!important;
    background:rgba(255,255,255,.97)!important;backdrop-filter:blur(12px)!important;
    border:1px solid #e3e9f1!important;border-radius:13px!important;
    box-shadow:0 7px 20px rgba(23,54,83,.08)!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;
  }
  #view-students .section-head>div:first-child{min-width:0!important}
  #view-students .section-head small,#view-students .section-head .section-note{display:none!important}
  #view-students .section-head h3{margin:0!important;font-size:17px!important;line-height:1.25!important;white-space:nowrap!important}
  #view-students .student-mobile-more{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;padding:7px 12px!important;font-size:12.5px!important;flex:0 0 auto!important}
  #view-students .section-head>.actions{display:none!important;position:absolute!important;top:calc(100% + 6px)!important;left:0!important;right:0!important;background:#fff!important;border:1px solid #e1e8f0!important;border-radius:13px!important;padding:8px!important;box-shadow:0 18px 38px rgba(16,45,72,.17)!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;z-index:45!important}
  #view-students .section-head.ux-mobile-actions-open>.actions{display:grid!important}
  #view-students .section-head>.actions .btn{width:100%!important;min-height:40px!important;font-size:12px!important;margin:0!important}

  /* Filters remain reachable just under the sticky student toolbar. */
  #view-students .filters{top:124px!important;z-index:30!important}
  #view-students #studentBulkBar:not(.ux-no-selection){top:196px!important;z-index:29!important}

  #view-students .table-scroll{max-height:calc(100dvh - 292px)!important}
  #view-students .ux-responsive-table{min-width:930px!important;width:930px!important}
  #view-students .ux-responsive-table td,#view-students .ux-responsive-table th{padding:7px 8px!important;font-size:12.5px!important}

  /* Fixed scanning zone: select + student name + grade. */
  #view-students #studentsTable tr>td:nth-child(1),
  #view-students table thead th:nth-child(1){
    position:sticky!important;right:0!important;left:auto!important;
    width:46px!important;min-width:46px!important;max-width:46px!important;
    background:#fff!important;z-index:25!important;border-left:1px solid #e2e8f0!important;
  }
  #view-students table thead th:nth-child(1){background:#eef3f8!important;z-index:38!important}

  #view-students #studentsTable tr>td:nth-child(2),
  #view-students table thead th:nth-child(2){
    position:sticky!important;right:46px!important;left:auto!important;
    width:190px!important;min-width:190px!important;max-width:190px!important;
    background:#fff!important;z-index:24!important;border-left:1px solid #e2e8f0!important;
  }
  #view-students table thead th:nth-child(2){background:#eef3f8!important;z-index:37!important}

  #view-students #studentsTable tr>td:nth-child(3),
  #view-students table thead th:nth-child(3){
    position:sticky!important;right:236px!important;left:auto!important;
    width:78px!important;min-width:78px!important;max-width:78px!important;
    background:#fff!important;z-index:23!important;border-left:1px solid #e2e8f0!important;text-align:center!important;
  }
  #view-students table thead th:nth-child(3){background:#eef3f8!important;z-index:36!important}
  #view-students #studentsTable tr:nth-child(even)>td:nth-child(1),
  #view-students #studentsTable tr:nth-child(even)>td:nth-child(2),
  #view-students #studentsTable tr:nth-child(even)>td:nth-child(3){background:#f8fafc!important}

  #view-students .student-primary-cell{padding-top:6px!important;padding-bottom:6px!important}
  #view-students .student-primary-cell .student-name-with-signals{display:flex!important;align-items:center!important;gap:4px!important;min-width:0!important}
  #view-students .student-primary-cell b{display:block!important;max-width:150px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:13px!important;line-height:1.3!important;color:#173653!important}
  #view-students .student-row-meta{margin-top:3px!important;min-height:19px!important}
  #view-students .student-primary-cell .initiative-pill{display:inline-flex!important;max-width:150px!important;font-size:9.5px!important;padding:2px 6px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  #view-students .student-grade-cell b{font-size:12px!important;color:#24445f!important}

  /* Remaining details slide horizontally after the fixed identity zone. */
  #view-students #studentsTable tr>td:nth-child(n+4){position:relative!important;right:auto!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;background:inherit!important}
  #view-students table thead th:nth-child(n+4){position:sticky!important;right:auto!important;left:auto!important;top:0!important;background:#f4f7fb!important;z-index:13!important}
  #view-students #studentsTable tr>td:nth-child(4){min-width:112px!important}
  #view-students #studentsTable tr>td:nth-child(5){min-width:118px!important}
  #view-students #studentsTable tr>td:nth-child(6){min-width:105px!important}
  #view-students #studentsTable tr>td:nth-child(7){min-width:105px!important}
  #view-students #studentsTable tr>td:nth-child(8){min-width:82px!important}
  #view-students #studentsTable tr>td:nth-child(9){min-width:128px!important}

  #view-students:after{content:'الاسم والصف ثابتان — اسحب أفقيًا لباقي البيانات والإجراءات'!important}
}
