/* R77 — one Android-style, QR-first entry for manager + teacher on mobile. */
@media(max-width:760px){
 #content.attendance-qr-root,#mobile-content.attendance-qr-root{
  min-width:0;overflow:visible!important;padding-top:0!important;
 }
 .attendance-qr-root > .page-head{display:none!important}
 .attendance-qr-root > .attendance-qr-hero{
  position:static;z-index:auto;
  display:grid;gap:13px;
  padding:17px 15px 15px;
  margin:0 0 13px;
  border:1px solid #dbe7ed;
  border-radius:18px;
  background:#fff;
  box-shadow:0 7px 22px rgba(27,65,91,.075);
  color:#142f46;direction:rtl;
 }
 .attendance-qr-root .attendance-qr-hero-intro{
  display:grid;gap:8px;text-align:right;min-width:0;
 }
 .attendance-qr-root .attendance-qr-hero-intro h2{
  margin:0;font-size:17px;font-weight:850;line-height:1.5;color:#0a2942;
 }
 .attendance-qr-root .attendance-qr-hero-intro p{
  margin:0;color:#50687f;font-size:12px;line-height:1.85;
 }
 .attendance-qr-root > .attendance-qr-hero > .attendance-qr-trigger{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  min-height:55px!important;
  padding:12px 15px!important;margin:0!important;
  border:1px solid #0d2548!important;border-radius:12px!important;
  background:#0c2447!important;color:#fff!important;
  font-size:15px!important;font-weight:850!important;
  text-align:center!important;white-space:normal!important;
  box-shadow:0 3px 8px rgba(9,36,73,.14);
 }
 .attendance-qr-root > .attendance-qr-hero > .attendance-qr-trigger:hover{
  background:#163b68!important;color:#fff!important;
 }
 .attendance-qr-root > .attendance-qr-hero > .attendance-qr-trigger:focus-visible{
  outline:3px solid #5cc7dc!important;outline-offset:3px!important;
 }
 .attendance-qr-root .attendance-qr-photo{
  display:flex!important;position:relative;justify-content:center;align-items:center;
  flex-wrap:wrap;gap:3px 8px;min-height:55px;width:100%;
  padding:10px;border:1px solid #d6e3ee;border-radius:12px;
  background:#fafcff;text-align:center;color:#233e5b;
  cursor:pointer;
 }
 .attendance-qr-root .attendance-qr-photo > span{
  display:block;width:100%;font-size:13px;font-weight:800;
 }
 .attendance-qr-root .attendance-qr-photo > small{
  display:block;width:100%;font-size:10px;color:#768b9f;
 }
 .attendance-qr-root .attendance-qr-photo > input[type=file]{
  position:absolute!important;inset:0!important;
  opacity:0!important;width:100%!important;height:100%!important;
  cursor:pointer!important;
 }
 .attendance-qr-root .attendance-qr-photo:focus-within{
  outline:2px solid #2e9cb5;outline-offset:2px;
 }
 .attendance-qr-root > .attendance-qr-hero .teacher-presence-preview{
  min-width:0;width:100%;
  margin:0;
 }
 .attendance-qr-root > .attendance-qr-hero .teacher-presence-preview[hidden]{
  display:none!important;
 }
 .attendance-qr-root > .teacher-presence-dashboard{
  margin-top:0!important;
 }
 .attendance-qr-root > .staff-hub-root{
  margin-top:0!important;
 }
 .attendance-qr-root .teacher-presence-tiles{
  margin-top:0!important;
 }
 .attendance-qr-root .teacher-presence-tile{
  box-shadow:0 3px 12px rgba(14,46,77,.08)!important;
 }
 .attendance-qr-root .attendance-qr-legacy{
  margin-top:15px;padding:12px;border:1px solid #dbe4ed;border-radius:12px;
  background:#fff;font-size:12px;color:#38516a;
 }
 .attendance-qr-root .attendance-qr-legacy > summary{
  font-weight:800;cursor:pointer;
 }
 .attendance-qr-root .attendance-qr-legacy:not([open]) > :not(summary){
  display:none!important;
 }
}
@media(prefers-reduced-motion:reduce){
 .attendance-qr-root .attendance-qr-hero{
  scroll-behavior:auto!important;
 }
}
