/* MBM Account V18 FINAL: viewport-safe responsive containment */
html,body{width:100%;max-width:100%;overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
img,svg,video,canvas,iframe{max-width:100%;height:auto}
body>*,.shell,.main,main,.card,.tablewrap,.tally-report-wrap,.tally-report-page,.prime-workspace,.report-shell,.mobile-live-home,.mobile-voucher-page,.mobile-ledger-page,.mobile-items-page,.mobile-reports-menu,.mobile-business-page,.mobile-simple-entry{min-width:0;max-width:100%}
input,select,textarea,button{min-width:0;max-width:100%}
.grid>*,.grid2>*,.row>*,.tally-form-row>*,.entrygrid>*,.mobile-voucher-row>*,.mobile-ledger-row>*,.mobile-bank-row>*,.mse-meta>*,.mse-item-row>*,.mse-raw-row>*,.mbiz-two>*,.recipe-line>*,.report-menu-layout>*,.report-favourites>*{min-width:0}
html,body{min-height:100%;height:auto!important;overflow-x:hidden;overflow-y:auto!important;overscroll-behavior-y:auto;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch}body>*{touch-action:pan-y pinch-zoom}.mobile-simple-entry,.mobile-simple-entry form,.money-entry,.money-entry form,.se,.se form{height:auto!important;max-height:none!important;overflow:visible!important;touch-action:pan-y pinch-zoom;scroll-behavior:smooth}.mobile-simple-entry{padding-bottom:calc(110px + env(safe-area-inset-bottom))!important}.mbm-search-options{max-height:min(320px,42dvh)!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.mbm-search-select{scroll-margin-bottom:46dvh}
.tablewrap,.tally-report-wrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.tablewrap table,.tally-report-wrap table{max-width:none}
.pagehead,.tally-pagehead,.mobile-page-title,.mobile-detail-head,.mbiz-head,.mse-head{max-width:100%}
.pagehead h1,.pagehead h2,.pagehead h3,.tally-pagehead h2,.mobile-page-title h1,.mobile-detail-head h2,.mbiz-head h2,.mse-head h2{min-width:0;overflow-wrap:anywhere}
@media(max-width:900px){body{position:relative}.desktop-tally-top,.desktop-global-actions,.mbm-web-top,.mbm-web-sidebar,.keys{display:none!important}.shell,.shell>.main,.main,main{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}.card{max-width:calc(100% - 16px);margin-left:8px!important;margin-right:8px!important}.tally-report-page .card,.mobile-business-page .card,.mobile-simple-entry .card{max-width:100%;margin-left:0!important;margin-right:0!important}.tablewrap,.tally-report-wrap{margin-left:0!important;margin-right:0!important}.tally-report-page .table,.prime-workspace .table,.tally-report-table{width:max-content;min-width:100%;max-width:none}.prime-tabs,.tally-report-page>.tabs,.tally-bank-toolbar{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.mobile-appbar,.mobile-bottom-nav,.mse-save,.mbiz-save{width:100%;max-width:100%}.mobile-voucher-row,.mobile-ledger-row,.mobile-item-link article,.vd-item,.vd-line{max-width:100%}.mobile-voucher-row b,.mobile-ledger-row b,.mobile-item-link b,.vd-item span,.vd-line span{overflow:hidden;text-overflow:ellipsis}.report-menu-layout{display:grid!important;grid-template-columns:minmax(86px,28%) minmax(0,1fr)!important;width:100%;max-width:100%}.report-categories{width:auto!important;min-width:0!important}.report-favourites{min-width:0!important;grid-template-columns:1fr!important}.mse-item-row,.mse-raw-row,.recipe-line{width:100%;max-width:100%}.mse-amount-card input{max-width:75vw}.vd-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:901px) and (max-width:1100px){.mbm-web-sidebar{width:180px}.mbm-web-sidebar a{gap:7px;padding:9px 7px;font-size:11px}.mbm-web-sidebar a span{width:20px;font-size:15px}.mbm-web-top{grid-template-columns:180px minmax(0,1fr) auto}.report-favourites{grid-template-columns:1fr!important}.live-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}.prime-master-grid,.prime-two-report{grid-template-columns:1fr}.invoice-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.saved-invoice-actions{display:flex;flex-wrap:wrap;gap:7px;padding:8px;background:#eef8f0;border:1px solid #b9ddbf;margin-bottom:8px}.saved-invoice-actions .btn{margin:0}
@media(max-width:900px){.saved-invoice-actions{position:sticky;top:0;z-index:65}.saved-invoice-actions .btn{flex:1 1 105px;text-align:center}.vd-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}}
