/* Allsellers — Telegram Mini App scroll unlock */
html.tg-webapp,
html.tg-webapp body {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: static !important;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* Admin shell: body is flex + inner flex-1 overflow-y-auto — that pane never
   gets a fixed height inside Telegram, so scrolling dies. Document-scroll instead. */
html.tg-webapp body.min-h-screen.flex {
  display: block !important;
  min-height: 100% !important;
}

html.tg-webapp aside.fixed {
  /* keep drawer, but don't pin height to a broken viewport */
}

html.tg-webapp main.flex-1 {
  display: block !important;
  min-height: 0 !important;
  width: 100%;
}

html.tg-webapp .flex-1.overflow-y-auto,
html.tg-webapp main .overflow-y-auto {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

html.tg-webapp header.sticky {
  position: sticky;
  top: 0;
}

/* Seller portal */
html.tg-webapp body.min-h-screen {
  min-height: 100% !important;
}
