/* the press ripple stays inside its button */
.bec-rip-clip{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none}
/* A touch left a big grey patch (owner, 2026-10-11): the phone's own grey tap box over the whole button, and the
   ripple in the text colour spreading over a full-width bar. No grey tap box; the ripple is a small soft glow in the
   brand blue (white on the navy bars); a hover background never sticks after a tap. */
html{-webkit-tap-highlight-color:transparent}
button .bec-rip{background:radial-gradient(circle,rgba(108,134,255,.32) 0%,rgba(108,134,255,.14) 45%,rgba(108,134,255,0) 70%)!important;opacity:1!important;animation:becRipSoft .5s ease-out forwards!important}
:is(#appContent>header,#appContent nav,.bec-dock) button .bec-rip{background:radial-gradient(circle,rgba(255,255,255,.38) 0%,rgba(255,255,255,.14) 45%,rgba(255,255,255,0) 70%)!important}
@keyframes becRipSoft{from{transform:scale(.2);opacity:1}to{transform:scale(1.6);opacity:0}}
@media (hover:none){.dash-fold-bar:hover{background:transparent}.quick-actions .qa-row:hover{background:transparent!important}}
/* touch screens (phones, tablets): no moving blurred background — it is heavy on their memory */
@media (hover:none){.bec-mesh{display:none!important}}
@media(max-width:760px),(max-height:500px) and (max-width:1000px){
 /* steadiness: the page itself never moves or bounces (no pull-to-refresh), only the content area scrolls */
 html,body{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
 body{background:radial-gradient(520px 260px at 100% 0%,rgba(43,52,132,.07),transparent 70%),var(--bg)}
 /* light on memory: the moving blurred background and the glass blur are for computers only */
 .bec-mesh{display:none!important}
 .v40-kpi,.bec-toast,.cmdk,.cmdk-card,.bec-dialog,.login-right,.login-feature,.bec-dock{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
 .v40-kpi,.bec-toast,.cmdk-card{background:var(--card-bg)!important}
 .login-right{background:rgba(27,34,84,.94)!important}
 .kdot.r,.login-left,.login-right{animation:none!important}
 .v40-kpi:hover{transform:none;box-shadow:none}
 .v40-kpi::after{display:none}
 /* an open window holds the swipe: it scrolls inside, the page behind it stays still */
 html.bec-locked #appContent>.wrap{overflow:hidden!important}
 :is(.review-modal,.orders-modal,.limits-modal,.pr-modal,.proc-modal,.gr-modal,.rep-modal,.modal,.po-mgmt,.v61-modal,.v62-modal,.v63-modal,.v65-modal,.v70-modal,.cmdk,.bec-dialog){overscroll-behavior:contain;touch-action:pan-y}
 :is(.review-modal,.orders-modal,.limits-modal,.pr-modal,.proc-modal,.gr-modal,.rep-modal,.modal,.po-mgmt,.v61-modal,.v62-modal,.v63-modal,.v65-modal,.v70-modal)>:first-child{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:14px 14px calc(16px + env(safe-area-inset-bottom))!important}
 /* nothing wider than the screen */
 select,input,textarea{max-width:100%}
 label{min-width:0}
 .po-filters{gap:8px!important}
 .po-filters>label{display:flex;flex-wrap:wrap;align-items:center;gap:6px;max-width:100%;flex:1 1 100%}
 .po-filters>label>select,.po-filters>label>input{flex:1 1 160px;min-width:0}
 input[type=file]{font-size:13px!important;max-width:100%;width:100%}
 .cmdk-input{gap:8px;padding-inline:12px!important}
 .cmdk-input input{min-width:0;flex:1 1 auto}
 .cmdk-input button{flex:0 0 auto;margin:0}
 /* text boxes at 16px: Safari never zooms the page when you tap one */
 input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-size:16px!important}
 /* compact sizes, like the 2026 phone apps */
 body{font-size:14px}
 #appContent>header{padding:calc(env(safe-area-inset-top) + 6px) 12px 6px!important}
 #appContent>header .icon-btn,#appContent>header .logout-btn{min-width:34px;height:34px;padding:5px 8px!important;font-size:12px!important;font-weight:500}
 .hdr-logo{height:22px!important}
 .wrap{padding:12px 12px 20px!important}
 #dash:before{font-size:20px!important;margin:0!important}
 #dash:after{font-size:12px!important;font-weight:500;margin-bottom:12px!important;line-height:1.6}
 .dash-fold{margin:0 0 8px!important;border-radius:14px!important}
 .dash-fold-bar{padding:10px 12px!important;font-size:13.5px!important}
 .dash-fold-n{min-width:22px!important;height:22px!important;font-size:12px!important;font-weight:500;padding:0 7px!important}
 .v40-kpis{gap:8px!important}
 .v40-kpi{padding:11px 12px!important;border-radius:14px!important;min-height:0!important}
 .v40-kpi-label{font-size:11.5px!important;font-weight:500}
 .v40-kpi-value{font-size:24px!important;margin-top:2px!important}
 .v40-kpi-sub{font-size:11px!important;font-weight:500}
 .dashboard-actions .hint{font-size:11.5px!important;font-weight:500}
 .dash-cat-tabs{padding:4px!important;gap:4px!important;margin:10px 0 12px!important;border-radius:12px!important}
 .dash-cat-tabs button{padding:7px 9px!important;font-size:12px!important;font-weight:500;border-radius:9px!important}
 .dash-recv-bar{padding:10px 12px!important;gap:8px!important}
 .qa-group-title{font-size:11.5px!important;font-weight:500;margin:12px 4px 6px!important}
 .quick-actions .qa-row{padding:9px 12px!important;min-height:46px;gap:10px!important}
 .qa-label{font-size:14px!important;font-weight:600!important}
 .qa-icon{width:28px!important;height:28px!important;border-radius:8px!important}
 .qa-icon .aic{width:16px!important;height:16px!important}
 .qa-list{border-radius:14px!important}
 .panel{padding:14px!important;border-radius:14px!important}
 .panel h3{font-size:15.5px!important;padding-bottom:10px!important}
 /* windows */
 .po-mgmt-head{margin-bottom:10px!important;gap:8px!important}
 .po-mgmt-head h3{font-size:16.5px!important;line-height:1.4}
 .po-mgmt-head small{font-size:12px!important;font-weight:500;line-height:1.6}
 .po-kpis{gap:8px!important;margin-bottom:10px!important}
 .po-kpi{padding:9px 10px!important;font-size:12px!important;font-weight:500}
 .po-kpi b{font-size:18px!important}
 .po-mgmt th,.po-mgmt td{font-size:12.5px!important;font-weight:500}
 table.m-cards>tbody>tr,table.m-cards>tfoot>tr{padding:2px 12px!important;border-radius:12px!important}
 table.m-cards>tbody>tr>td{padding:6px 0!important;font-size:13px!important}
 #appContent nav{padding:4px 2px calc(4px + env(safe-area-inset-bottom))!important}
 #appContent nav button{font-size:10px!important;font-weight:500;padding:3px 2px!important;gap:2px!important}
 #appContent nav button .aic{width:20px!important;height:20px!important;padding:3px 9px!important}
 .v59-pending-banner{padding:10px 12px!important;margin-bottom:10px!important;border-radius:14px!important}
 .v59-pending-number{font-size:22px!important}
 .v59-pending-sub{font-size:11.5px!important;font-weight:500}
 .v59-pending-banner button{padding:8px 12px!important;font-size:13px!important}
 .bs-chip{font-size:12px!important;font-weight:500;padding:4px 10px!important}
 .bec-toast-wrap{left:12px!important;right:12px!important;bottom:calc(76px + env(safe-area-inset-bottom))!important}
 .bec-toast{min-width:0!important;max-width:none!important;width:100%}
}
