/* Small/short viewports scroll naturally. Pagination still limits record count.
   Do not shrink the table to zero when filters, messages or keyboards take space. */
@media (max-width:760px), (max-height:500px) {
  html { overflow-y:auto; }
  body.staff-page,body.public-page { height:auto;min-height:100dvh;overflow:visible; }
  .staff-page>main,.public-page main { flex:none;min-height:auto; }
  .staff-page .dashboard { height:auto;min-height:0; }
  #masterPanel,#accessPanel,.staff-page .workspace { flex:none;min-height:0; }
  .staff-page .table-wrap { flex:none;min-height:0;max-height:none;overflow:hidden;overscroll-behavior:auto; }
  .staff-page .pagination { flex-wrap:wrap; }
  .public-page main>section { flex:none;min-height:auto; }
  .activation-shell,.loading-view { height:auto;min-height:0; }
  .loading-view { padding:40px 15px; }
  .modal { max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain; }
}
@media (max-height:500px) and (min-width:761px) {
  .section-nav { overflow-y:auto; }
}
