.receipt-card{padding:16px;margin:12px 0;border:1px solid #e2e8f0;border-radius:12px;background:white;overflow-wrap:anywhere}.receipt-card h2,.receipt-card h3{margin:0 0 10px}.receipt-card p{margin:8px 0}.receipt-address{font-size:17px;font-weight:600}.receipt-img{width:72px;height:72px;object-fit:contain;float:right}.receipt-photo{max-width:100%;max-height:320px}.receipt-card input[type=number]{width:95px;padding:10px;font-size:18px}.receipt-check{display:block;padding:14px;line-height:1.8}.receipt-form .actbar{position:sticky;bottom:0;background:white;padding:12px;z-index:2}.mobile-menu{margin:6px}#erp-mobile-switch{position:fixed;bottom:4px;right:8px;z-index:80}#erp-mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;z-index:80;padding:8px 4px calc(8px + env(safe-area-inset-bottom));background:white;border-top:1px solid #ddd}#erp-mobile-nav button{flex:1;background:none;border:0;min-height:42px;color:#2563eb}.mobile-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mobile-grid button{padding:28px 8px;background:white;border:1px solid #dbeafe;border-radius:12px;font-size:17px;color:#1d4ed8}
@media(max-width:720px){body.erp-mobile .sidebar,body.erp-mobile .tabbar,body.erp-mobile .topbar,body.erp-mobile #pwaBar{display:none!important}body.erp-mobile .layout{display:block!important;height:100dvh!important;padding:0!important}body.erp-mobile #main{padding:12px 12px 100px!important;overflow:auto!important;height:100dvh;box-sizing:border-box}body.erp-mobile .main-wrap,body.erp-mobile .main-area{width:100%!important;margin:0!important}body.erp-mobile .tbl{min-width:0!important;width:100%!important;display:block}body.erp-mobile .tbl thead{display:none}body.erp-mobile .tbl tbody{display:block}body.erp-mobile .tbl tbody tr{display:block;border:1px solid #e2e8f0;border-radius:10px;margin:10px 0;padding:8px;background:white}body.erp-mobile .tbl td{display:flex!important;justify-content:space-between;gap:12px;white-space:normal!important;word-break:break-word;border:0!important;padding:6px!important}body.erp-mobile .tbl td:before{content:attr(data-label);color:#64748b;min-width:78px}body.erp-mobile .tbl tr[style*="display: none"]{display:none!important}body.erp-mobile .filters{display:flex;flex-wrap:wrap}body.erp-mobile .filters .f-item{flex:1 1 130px;min-width:0}body.erp-mobile input,body.erp-mobile select,body.erp-mobile textarea{font-size:16px!important;max-width:100%;box-sizing:border-box}body.erp-mobile .grid2,body.erp-mobile .grid3,body.erp-mobile .frow{display:flex;flex-direction:column}body.erp-mobile .fcol{width:100%;min-width:0!important}body.erp-mobile .drawer{width:100vw!important}body.erp-mobile .receipt-card{padding:12px}body.erp-mobile .scan-wrap{max-width:100%}}

.phone-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.phone-network{font-size:13px;color:#64748b}body.erp-mobile #main{padding-top:max(12px,env(safe-area-inset-top))!important}#erp-phone-tools{margin-top:0}body.erp-mobile .scan-wrap video{max-height:40dvh}

/* Receipt contents scroll independently; verification and submit remain visible. */
.receipt-scroll{display:contents}
.receipt-continue{display:flex;gap:8px;align-items:center;flex:1 0 100%;font-size:13px;line-height:1.5;padding:2px 0}
@media(max-width:720px){
 .mask{z-index:109}
 .drawer{z-index:110;top:var(--erp-dialog-top,0px);height:100vh;height:var(--erp-dialog-height,100dvh);max-height:var(--erp-dialog-height,100dvh);overflow:hidden;box-sizing:border-box}
 .drawer-hd{flex:0 0 auto;min-height:0;padding-top:max(12px,env(safe-area-inset-top));box-sizing:border-box}
 .drawer-bd{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-y;box-sizing:border-box}
 body.erp-drawer-open #erp-mobile-nav,body.erp-drawer-open #erp-mobile-switch{display:none!important}
 .toast{z-index:160}
 .drawer.has-receipt-form .drawer-bd{display:flex;flex-direction:column;overflow:hidden;padding:0}
 .drawer.has-receipt-form .receipt-form{display:flex;flex-direction:column;flex:1 1 0;min-height:0;min-width:0;overflow:hidden;margin:0}
 .drawer .receipt-form{ -webkit-text-size-adjust:100%;text-size-adjust:100%}
 .drawer .receipt-form input[type=number]{font-size:18px!important;line-height:1.4;min-height:48px;min-width:100px;scroll-margin-block:16px}
 .drawer.has-receipt-form .receipt-scroll{display:block;flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding:12px;scroll-padding-block:16px;box-sizing:border-box}
 .drawer.has-receipt-form .receipt-check{flex:0 0 auto;margin:0;border-top:1px solid #e2e8f0;padding:8px 12px;background:#fff;font-size:14px;line-height:1.5}
 .drawer.has-receipt-form .receipt-form>.actbar{position:static;flex:0 0 auto;flex-wrap:wrap;z-index:auto;margin:0;border-radius:0;padding:10px 12px max(10px,env(safe-area-inset-bottom));background:#fff}
 .drawer.has-receipt-form .actbar .btn{min-height:44px;white-space:normal}
 .drawer.has-receipt-form .actbar [type=submit]{flex:1}
 .drawer.has-receipt-form #live-error{flex:0 0 auto;max-height:20vh;overflow:auto;margin:0;padding:8px 12px;box-sizing:border-box}
}
