/* V5.49.51 — default inquiry split layout preserved, user may switch to full width stacked. */
#app .le42-inquiry .le51-layout-buttons{display:flex;align-items:center;gap:6px;margin-left:auto;flex:0 0 auto;white-space:nowrap}
#app .le42-inquiry .le51-layout-buttons button{min-height:32px;padding:5px 10px;font-size:12px;border:1px solid #9eb6ce;border-radius:5px;background:#fff;color:#264c6e;font-weight:800;cursor:pointer}
#app .le42-inquiry .le51-layout-buttons button.le51-active{background:#135b9f;color:#fff;border-color:#135b9f}
#app .le42-inquiry.le51-layout-single .uy592-stagegrid{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;gap:12px!important}
#app .le42-inquiry.le51-layout-single .uy592-stagegrid>.uy590-panel.customer{grid-column:1!important;grid-row:auto!important;width:100%!important;min-width:0!important}
#app .le42-inquiry.le51-layout-single .le43-right-stack{grid-column:1!important;grid-row:auto!important;width:100%!important;min-width:0!important;gap:12px!important}
#app .le42-inquiry.le51-layout-single .le43-right-stack>.uy590-panel{min-width:0!important;width:100%!important}
/* Only the bank entry window loses its dark overlay. Other business popups are unchanged. */
#rpBankAccount5173.v5173-rightbg.le51-bank-window{position:fixed!important;inset:0!important;display:block!important;background:transparent!important;pointer-events:none!important;z-index:20200!important}
#rpBankAccount5173.le51-bank-window>.v5173-rightpanel{position:absolute!important;right:auto;bottom:auto;pointer-events:auto!important;display:block!important;box-sizing:border-box!important;min-width:min(400px,calc(100vw - 16px))!important;min-height:50px!important;max-width:calc(100vw - 8px)!important;max-height:calc(100vh - 8px)!important;resize:none!important;overflow:auto!important;background:#fff!important;border:1px solid #a0b9cf!important;border-radius:9px!important;box-shadow:0 11px 45px #14324e50!important;padding:12px!important}
#rpBankAccount5173.le51-bank-window .v5173-righthead{position:sticky;top:-12px;z-index:2;background:#f5f9fd;margin:-12px -12px 12px;padding:11px 13px;cursor:grab;user-select:none;border-radius:9px 9px 0 0;touch-action:none}
#rpBankAccount5173.le51-bank-window .v5173-righthead:active{cursor:grabbing}
#rpBankAccount5173.le51-bank-window .v5173-righthead h3{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#rpBankAccount5173.le51-bank-window .le51-bank-tools{display:flex;align-items:center;gap:5px;flex:0 0 auto}
#rpBankAccount5173.le51-bank-window .le51-bank-tools button{padding:4px 8px;min-width:30px}
#rpBankAccount5173.le51-minimized>.v5173-rightpanel{overflow:hidden!important}
#rpBankAccount5173.le51-minimized>.v5173-rightpanel>*:not(.v5173-righthead){display:none!important}
#rpBankAccount5173.le51-bank-window .le51-handle{position:absolute;z-index:6;touch-action:none;user-select:none}
#rpBankAccount5173.le51-bank-window .le51-handle-n{top:0;left:14px;right:14px;height:6px;cursor:n-resize}
#rpBankAccount5173.le51-bank-window .le51-handle-s{bottom:0;left:14px;right:14px;height:6px;cursor:s-resize}
#rpBankAccount5173.le51-bank-window .le51-handle-e{right:0;top:14px;bottom:14px;width:6px;cursor:e-resize}
#rpBankAccount5173.le51-bank-window .le51-handle-w{left:0;top:14px;bottom:14px;width:6px;cursor:w-resize}
#rpBankAccount5173.le51-bank-window .le51-handle-ne{right:0;top:0;width:13px;height:13px;cursor:ne-resize}
#rpBankAccount5173.le51-bank-window .le51-handle-nw{left:0;top:0;width:13px;height:13px;cursor:nw-resize}
#rpBankAccount5173.le51-bank-window .le51-handle-se{right:0;bottom:0;width:15px;height:15px;cursor:se-resize}
#rpBankAccount5173.le51-bank-window .le51-handle-sw{left:0;bottom:0;width:13px;height:13px;cursor:sw-resize}
#rpBankAccount5173.le51-bank-window .v5173-queuewrap,#rpBankAccount5173.le51-bank-window .le50-alloc-scroll{max-width:100%;overflow-x:auto}
/* Tax file preview uses the existing authenticated server download endpoint. */
#le51TaxPreviewDlg .le48-dialog{width:min(1050px,96vw)}
#le51TaxPreviewDlg .le51-filetools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
#le51TaxPreviewDlg .le51-filename{font-weight:800;flex:1 1 160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#le51TaxPreviewDlg .le51-previewbox{height:min(66vh,680px);background:#f0f3f7;border:1px solid #d8e1ea;overflow:auto;display:flex;justify-content:center;align-items:flex-start}
#le51TaxPreviewDlg .le51-previewbox img{display:block;width:100%;height:auto;object-fit:contain;flex-shrink:0}
#le51TaxPreviewDlg .le51-previewbox iframe{display:block;width:100%;height:100%;border:0;background:white}
#le51TaxPreviewDlg .le51-filehint{margin:10px 0 0;font-size:12px;color:#49627b}
@media(max-width:800px){#app .le42-inquiry .le51-layout-buttons{order:2;margin-left:0}#rpBankAccount5173.le51-bank-window .v5173-righthead h3{font-size:12px}}
