/* Phone scrolling only; retain the desktop layout and mouse-wheel fix. */
@media(max-width:820px), (max-width:1024px) and (pointer:coarse){
 html{height:auto!important;min-height:100%;overflow-y:auto!important;touch-action:auto!important}
 body{height:auto!important;min-height:100%;touch-action:auto!important}
 body:not(.v1058-modal-lock):not(.v1056-modal-open):not(.mobile-drawer-open){overflow-y:visible!important;overflow-x:clip!important}
 #app,.workspace,#main{height:auto!important;max-height:none!important;overflow:visible!important;touch-action:auto!important;min-width:0}
 #main{padding-bottom:calc(110px + env(safe-area-inset-bottom))!important}
 #main .call-actions,.modal-body .call-actions,.modal-body .v1049-sticky-actions{position:static!important;bottom:auto!important}
 .table-wrap,.dash-table-wrap,.followup-table-wrap,.v1042-table-wrap{overscroll-behavior-y:auto!important;touch-action:auto!important;-webkit-overflow-scrolling:touch}
 .table-wrap:has(.v1043-card-table){overflow:visible!important;max-height:none!important}
 .queue{overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-y:auto!important}
 #admin-modal:not(.hidden),#customer-modal:not(.hidden){top:var(--ad4-visible-top,0px)!important;bottom:auto!important;height:var(--ad4-visible-height,100dvh)!important;box-sizing:border-box;touch-action:auto!important}
 #admin-modal .admin-modal,#customer-modal .customer-modal{height:auto!important;max-height:calc(var(--ad4-visible-height,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;min-height:0!important}
 #admin-modal #admin-modal-body,#customer-modal #modal-body{overflow-y:auto!important;min-height:0!important;touch-action:auto!important;overscroll-behavior-y:contain!important;padding-bottom:calc(56px + env(safe-area-inset-bottom))!important;scroll-padding-block:16px 60px}
 .modal-body .v1047-detail-tabs,.modal-body .v1044-detail-tabs{position:relative!important;top:auto!important;overflow-x:auto!important;touch-action:auto!important}
 .modal-body input,.modal-body textarea,.modal-body select{scroll-margin-block:18px 70px}
 .notification-panel,.user-menu{max-height:calc(var(--ad4-visible-height,100dvh) - 90px)!important;overflow-y:auto!important;touch-action:auto!important}
 #sidebar{overflow-y:auto!important;touch-action:auto!important}
 .modal-body,.queue,.table-wrap{scrollbar-width:thin;scrollbar-color:#8ca5be #edf3f8}
 .modal-body::-webkit-scrollbar,.queue::-webkit-scrollbar,.table-wrap::-webkit-scrollbar{width:6px;height:6px}
 .modal-body::-webkit-scrollbar-thumb,.queue::-webkit-scrollbar-thumb,.table-wrap::-webkit-scrollbar-thumb{background:#8ca5be;border-radius:8px}
}
