/* En PWA/móvil el editor de tandas funciona como una pantalla del panel. */
@media (max-width:768px), (pointer:coarse) and (max-device-width:1024px) {
  html:has(.t360-edit-form), body:has(.t360-edit-form) { width:100%; height:100%; overflow:hidden!important; }
  .fixed.inset-0:has(.t360-edit-form) {
    position:fixed!important; inset:0!important; width:100vw!important; height:100dvh!important;
    max-width:100vw!important; max-height:100dvh!important; padding:0!important;
    align-items:stretch!important; justify-content:stretch!important; overflow:hidden!important;
  }
  .fixed.inset-0:has(.t360-edit-form) > .relative {
    box-sizing:border-box!important; width:100vw!important; min-width:0!important; max-width:100vw!important;
    height:100dvh!important; min-height:100dvh!important; max-height:100dvh!important;
    margin:0!important; border:0!important; border-radius:0!important; overflow:hidden!important;
    padding-bottom:env(safe-area-inset-bottom,0px)!important;
  }
  .fixed.inset-0:has(.t360-edit-form) > .relative > div:first-child {
    box-sizing:border-box!important; flex:0 0 auto!important; min-height:64px!important; height:auto!important;
    padding:12px 16px!important; padding-top:calc(12px + env(safe-area-inset-top,0px))!important;
  }
  .fixed.inset-0:has(.t360-edit-form) > .relative > div:first-child h3 {
    min-width:0!important; font-size:18px!important; line-height:1.25!important; overflow-wrap:anywhere!important;
  }
  .fixed.inset-0:has(.t360-edit-form) .t360-edit-form {
    box-sizing:border-box!important; flex:1 1 auto!important; min-height:0!important; width:100%!important;
    max-width:100%!important; padding:16px!important; overflow-x:hidden!important; overflow-y:auto!important;
    overscroll-behavior:contain; -webkit-overflow-scrolling:touch; scrollbar-width:none!important; -ms-overflow-style:none!important;
  }
  .fixed.inset-0:has(.t360-edit-form) .t360-edit-form * { box-sizing:border-box; min-width:0!important; max-width:100%; }
  .fixed.inset-0:has(.t360-edit-form) .t360-edit-form .grid.grid-cols-2 { grid-template-columns:minmax(0,1fr)!important; }
  .fixed.inset-0:has(.t360-edit-form) .t360-edit-form input,
  .fixed.inset-0:has(.t360-edit-form) .t360-edit-form select,
  .fixed.inset-0:has(.t360-edit-form) .t360-edit-form textarea { width:100%!important; min-width:0!important; }
  .fixed.inset-0:has(.t360-edit-form) .t360-edit-form [class*="rounded-full"] { max-width:100%; }
  .fixed.inset-0:has(.t360-edit-form) > .relative > div:last-child {
    box-sizing:border-box!important; flex:0 0 auto!important; width:100%!important; max-width:100%!important;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))!important;
  }
  .fixed.inset-0:has(.t360-edit-form) > .relative > div:last-child button {
    box-sizing:border-box!important; min-width:0!important; min-height:48px!important; font-size:13px!important;
  }
}

@media (max-width:768px), (pointer:coarse) and (max-device-width:1024px) {
  .fixed.inset-0:has(.t360-edit-form) .t360-edit-form::-webkit-scrollbar { display:none!important; width:0!important; height:0!important; }
  .fixed.inset-0:has(.t360-edit-form) { scrollbar-width:none!important; -ms-overflow-style:none!important; }
  .fixed.inset-0:has(.t360-edit-form)::-webkit-scrollbar,
  .fixed.inset-0:has(.t360-edit-form) > .relative::-webkit-scrollbar { display:none!important; width:0!important; height:0!important; }
}
