/* MBM Account V18.1 desktop workspace. MBM-owned visual treatment. */
.register-modes{display:flex;justify-content:flex-end;gap:6px;margin:12px 0 0}.register-modes a{padding:8px 16px;border:1px solid #cfd9e4;border-radius:6px;color:#22334a;text-decoration:none;background:#fff;font-weight:700}.register-modes a.active{background:#183a68;color:#fff;border-color:#183a68}
.mbm-select-search{width:100%;margin:0 0 5px;padding:9px 10px;border:1px solid #aebdcc;border-radius:6px;background:#fff;color:#172536;font:inherit}.mbm-select-search:focus{outline:2px solid #3aa64a44;border-color:#329b43}.mbm-dragging{cursor:grabbing!important;user-select:none!important}
@media(min-width:901px){
 html{overflow-y:auto;scroll-behavior:smooth}body{background:#f4f7fb!important;padding:78px 24px 36px 252px!important;color:#172536!important;min-height:100vh;height:auto;overflow-y:auto}
 .mbm-web-top{height:66px!important;grid-template-columns:238px minmax(260px,1fr) auto!important;border-bottom:1px solid #d9e2ec!important;box-shadow:0 2px 9px #10233b12!important}
 .mbm-web-brand{height:66px!important;background:#0b1c38!important;padding:0 22px!important}.mbm-web-brand img{width:36px!important;height:36px!important}.mbm-web-company{padding-left:24px!important}.mbm-web-company strong{font-size:15px!important}.mbm-web-status{padding-right:24px!important}
 .mbm-web-sidebar{top:66px!important;width:238px!important;background:#0b1c38!important;padding:12px 10px!important;overflow-y:auto!important}.mbm-web-sidebar nav{gap:2px!important}.mbm-web-sidebar a,.mbm-sidebar-create{min-height:38px;box-sizing:border-box;border:0;width:100%;display:flex;align-items:center;gap:11px;color:#dbe6f4;background:transparent;text-decoration:none;padding:9px 12px;border-radius:5px;font:600 12px/1.2 inherit;text-align:left;cursor:pointer}.mbm-web-sidebar a span,.mbm-sidebar-create span{width:22px;text-align:center;font-size:16px}.mbm-web-sidebar a:hover,.mbm-web-sidebar a.active,.mbm-sidebar-create:hover{background:#17345f!important;color:#fff!important}.mbm-web-sidebar a.active{box-shadow:inset 3px 0 #54bd59!important}.mbm-sidebar-create{color:#fff;background:#17345f;margin-bottom:3px}.mbm-web-create{border-top:1px solid #ffffff18;padding-top:7px}
 .shell,.shell>.main,.main,.mobile-live-home,.mobile-voucher-page,.mobile-ledger-page,.mobile-items-page,.mobile-reports-menu{max-width:1440px!important}
 .card,.tablewrap{border-radius:7px!important;border:1px solid #dce4ed!important;box-shadow:0 1px 4px #172b4d0b!important}.table th,.tally-report-table th{background:#eef3f8!important;color:#26384f!important}.table td,.table th{padding:10px 12px!important}.table a{color:#174f94;font-weight:650;text-decoration:none}.table a:hover{text-decoration:underline}
 .tally-report-titlebar{background:#fff!important;color:#172536!important;border:1px solid #dce4ed!important;border-radius:7px!important;box-shadow:0 1px 4px #172b4d0b!important}.tally-report-titlebar h2{color:#172536!important}.tally-report-titlebar .company,.tally-report-titlebar .period{color:#69798c!important}
 .tally-report-page>.tabs{border-radius:7px!important}.tally-report-page>.tabs a:hover,.tally-report-page>.tabs a.active{background:#e8f1fb!important;color:#164b88!important}
 .entry-sheet{display:block!important;position:fixed!important;inset:0!important;z-index:1300!important}.entry-sheet[hidden]{display:none!important}.entry-sheet-backdrop{position:absolute!important;inset:0!important;background:#07142699!important;border:0!important;width:100%!important;height:100%!important}.entry-sheet-panel{width:min(760px,90vw)!important;left:50%!important;right:auto!important;bottom:auto!important;top:50%!important;transform:translate(-50%,-50%)!important;border-radius:12px!important;box-shadow:0 24px 70px #06152b55!important}.entry-sheet-head{background:#0f2b52;color:#fff;border-radius:12px 12px 0 0}.entry-sheet-head button{color:#fff}.entry-sheet-grid.mobile-six-entry{grid-template-columns:repeat(5,minmax(0,1fr))!important}.entry-sheet-grid a span{background:#e9f5ea!important;color:#278b38!important}

 /* Desktop uses one layout only; this prevents the mobile + desktop duplicate seen in Ledger/Vouchers. */
 .mobile-ledger-page,.mobile-voucher-page,.mobile-items-page,.mobile-reports-menu{display:none!important}

 /* Dashboard */
 .mobile-live-home{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px!important;align-items:stretch!important}
 .mobile-live-home>section{margin:0!important;box-sizing:border-box;background:#fff!important;border:1px solid #dce4ed!important;border-radius:7px!important;box-shadow:0 1px 4px #172b4d0b!important}
 .live-alert-strip{grid-column:1/-1;min-height:48px;display:flex!important;align-items:center;justify-content:space-between;padding:0 16px;background:#edf6ff!important;color:#203247}.live-alert-strip a{background:#183a68;color:#fff;text-decoration:none;padding:8px 13px;border-radius:5px;font-size:12px;font-weight:750}
 .live-quick-reports{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(5,1fr)!important;padding:0!important;overflow:hidden}.live-quick-reports a{min-height:72px;display:flex!important;align-items:center;gap:10px;padding:12px 16px;color:#24364d!important;text-decoration:none!important;border-right:1px solid #e2e8ef;text-align:left!important}.live-quick-reports a:last-child{border-right:0}.live-quick-reports a span{width:34px;height:34px;display:grid;place-items:center;background:#edf4fb;color:#1c5795;border-radius:6px;font-size:18px}.live-quick-reports a b{font-size:12px;line-height:1.25}
 .live-period{grid-column:1/-1;min-height:52px;display:flex!important;align-items:center;justify-content:space-between;padding:0 18px}.live-period>a{font-size:28px;color:#193d6b;text-decoration:none}.live-period div{display:flex;align-items:center;gap:9px}.live-period div b{font-size:13px}.live-kpis{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}.live-kpis a{min-height:125px!important;display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:center;padding:18px!important;background:#fff!important;border:1px solid #dce4ed!important;border-radius:7px!important;color:#253850!important;text-decoration:none}.live-kpis .kicon{font-size:21px!important;color:#319b47!important}.live-kpis a>span:nth-child(2){font-size:12px;color:#6c7b8d;margin-top:8px}.live-kpis b{font-size:20px!important;margin-top:5px!important;color:#152a45}
 .dash-analysis-card,.dash-list-card{padding:0!important;overflow:hidden}.dash-analysis-card>header,.dash-list-card>header{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:1px solid #e3e9f0}.dash-analysis-card header span{color:#78879a;font-size:11px}.dash-analysis-card header a,.dash-list-card header a{font-size:11px;color:#17549a;text-decoration:none}.dash-monthly{grid-column:span 8}.dash-receivable{grid-column:span 4;display:flex;flex-direction:column}.dash-receivable>strong{font-size:28px;padding:24px 18px 5px;color:#163a67}.dash-receivable>span{padding:0 18px;color:#77869a;font-size:11px}.dash-open{margin:auto 18px 18px;padding:10px;background:#eaf3fc;color:#174f91;border-radius:5px;text-decoration:none;font-size:12px}.dash-chart{height:190px;display:flex;align-items:flex-end;justify-content:space-around;gap:8px;padding:20px 20px 8px}.dash-month{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.dash-bars{height:155px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px;border-bottom:1px solid #cfd9e5}.dash-bars i{display:block;width:min(18px,35%);min-height:2px}.dash-bars .sales,.dash-analysis-card footer .sales{background:#289d45}.dash-bars .receipt,.dash-analysis-card footer .receipt{background:#8bd4a0}.dash-month small{margin-top:5px;color:#748296}.dash-analysis-card footer{display:flex;gap:18px;padding:0 18px 13px;color:#748296;font-size:10px}.dash-analysis-card footer i{display:inline-block;width:9px;height:9px;margin-right:4px}.dash-list-card{grid-column:span 6}.dash-list-card>a{display:flex;align-items:center;gap:10px;padding:10px 15px;border-bottom:1px solid #edf1f5;color:#20344e;text-decoration:none}.dash-list-card>a:last-child{border-bottom:0}.dash-list-card em{width:24px;height:24px;border-radius:50%;background:#eaf3fc;display:grid;place-items:center;color:#1a5594;font-size:10px;font-style:normal}.dash-list-card>a>span{flex:1;min-width:0;font-size:12px}.dash-list-card>a>b{font-size:12px}.dash-list-card small{display:block;color:#7c8998;font-size:9px;margin-top:2px}

 /* Ledger: one clean report table, no duplicate upper mobile block. */
 body[data-tally-page="app"] .desktop-only.shell{display:block}.tally-filter .grid{align-items:end}.tally-filter select,.tally-filter input{min-height:38px}.tally-report-page .tablewrap{margin-top:12px}

 /* Sales/Purchase item entry: accounting rows stay in the form for Tally balancing but are hidden from the user. */
 .mbm-item-invoice-form .tally-modebar{display:none!important}.mbm-item-invoice-form #accountingArea{display:none!important}.mbm-item-invoice-form .tally-advanced-vch,.mbm-item-invoice-form .tally-voucher-flags{display:none!important}.mbm-item-invoice-form .tally-voucher-layout{grid-template-columns:minmax(0,1fr)!important;background:#fff;border:1px solid #dbe4ec;border-radius:7px;overflow:hidden}.mbm-item-invoice-form .tally-voucher-layout>.tally-rightbar,.mbm-item-invoice-form .tally-statusline{display:none!important}.mbm-item-invoice-form .tally-voucher-head{background:#1f9a43!important;color:#fff!important;padding:14px 18px}.mbm-item-invoice-form .tally-form-block{padding:16px 18px}.mbm-item-invoice-form .tally-item-meta{padding:10px 18px;background:#f3f8fc}.mbm-item-invoice-form .tally-entry-title{background:#edf3f8!important;color:#243850!important;text-align:left!important;padding:10px 18px!important}.mbm-item-invoice-form .tally-stock-table{padding:10px 14px 16px}.mbm-item-invoice-form .tally-voucher-actions{justify-content:flex-end;padding:14px 18px;background:#f7f9fc;border-top:1px solid #dce5ed}.mbm-item-invoice-form .tally-voucher-actions .btn{max-width:220px}.mbm-compact-tax-summary{margin:10px 18px;padding:12px 14px;background:#f7f9fc;border:1px solid #dce5ed;border-radius:6px}.mbm-compact-tax-summary>b{display:block;margin-bottom:8px;color:#263b55;font-size:12px}.mbm-compact-tax-summary label{display:grid;grid-template-columns:minmax(0,1fr) 160px 30px;align-items:center;gap:8px;padding:5px 0}.mbm-compact-tax-summary input{width:100%;padding:7px 9px;border:1px solid #cdd8e3;border-radius:5px;text-align:right}.mbm-compact-tax-summary small{color:#6e7d8e}

 /* Voucher view: Livekeeping-like summary, items, tax/ledger summary and actions. */
 .mbm-voucher-detail{display:block!important;max-width:1180px!important;margin:0 auto!important;background:transparent!important}.mbm-voucher-detail .mobile-detail-head{display:flex!important;align-items:center;gap:12px;min-height:72px;padding:0 18px;background:#fff;border:1px solid #dce4ed;border-radius:7px}.mbm-voucher-detail .mobile-detail-head>a:first-child{font-size:30px;text-decoration:none;color:#26384f}.mbm-voucher-detail .mobile-detail-head>div{flex:1}.mbm-voucher-detail .mobile-detail-head h2{margin:0;font-size:19px}.mbm-voucher-detail .mobile-detail-head span{font-size:11px;color:#748397}.mbm-voucher-detail .vd-edit{background:#183a68;color:#fff!important;border-radius:5px;padding:9px 15px!important;text-decoration:none}.mbm-voucher-detail .vd-party,.mbm-voucher-detail .vd-meta,.mbm-voucher-detail .vd-card,.mbm-voucher-detail .vd-total{background:#fff;border:1px solid #dce4ed;border-radius:7px;margin-top:12px}.mbm-voucher-detail .vd-party{padding:16px}.mbm-voucher-detail .vd-party small,.mbm-voucher-detail .vd-party span{display:block;color:#728196;font-size:11px}.mbm-voucher-detail .vd-party a{display:flex;justify-content:space-between;color:#174f94;text-decoration:none;font-size:17px;font-weight:700;margin:5px 0}.mbm-voucher-detail .vd-meta{display:grid!important;grid-template-columns:repeat(3,1fr)}.mbm-voucher-detail .vd-meta div{padding:14px;border-right:1px solid #e5ebf1}.mbm-voucher-detail .vd-meta div:last-child{border-right:0}.mbm-voucher-detail .vd-meta small{display:block;color:#7a8898;font-size:10px}.mbm-voucher-detail .vd-card h3{margin:0;padding:12px 16px;background:#eef3f8;border-bottom:1px solid #dce4ed;font-size:13px}.mbm-voucher-detail .vd-item,.mbm-voucher-detail .vd-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid #edf1f5;color:#20334b;text-decoration:none}.mbm-voucher-detail .vd-item:last-child,.mbm-voucher-detail .vd-line:last-child{border-bottom:0}.mbm-voucher-detail .vd-item small,.mbm-voucher-detail .vd-line small{display:block;color:#7b8999;font-size:10px;margin-top:3px}.mbm-voucher-detail .vd-total{display:flex;justify-content:space-between;padding:18px;font-size:19px}.mbm-voucher-detail .vd-actions{display:flex!important;justify-content:flex-end;gap:8px;padding:12px 0}.mbm-voucher-detail .vd-actions a{background:#183a68;color:#fff;text-decoration:none;padding:10px 14px;border-radius:5px;font-size:12px}.mbm-voucher-detail .vd-actions a:last-child{background:#289d45}
}
@media(max-width:900px){.register-modes{padding:0 10px}.register-modes a{flex:1;text-align:center}.mbm-select-search{font-size:16px}}
@media(max-width:900px){body[data-tally-page="voucher"],body[data-tally-page="inventory-voucher"],body[data-tally-page="mobile-entry"],body[data-tally-page="mobile-manage"]{overscroll-behavior-y:contain}}

.mbm-search-select{position:relative;min-width:0;width:100%}.mbm-search-select>input{width:100%;min-height:34px;border:1px solid #9aa9bd;background:#fff;padding:6px 9px;font:inherit;color:#111}.mbm-search-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.mbm-search-options{position:absolute;z-index:10050;top:100%;left:0;right:0;max-height:260px;overflow:auto;background:#fff;border:1px solid #657b98;box-shadow:0 8px 24px #0003}.mbm-search-options button{display:block;width:100%;border:0;border-bottom:1px solid #e3e7ec;background:#fff;padding:9px 10px;text-align:left;color:#111;font:inherit}.mbm-search-options button:hover,.mbm-search-options button:focus{background:#dbeafe;outline:0}
.mbm-item-invoice-form .stock-entry-head,.mbm-item-invoice-form .stockline{grid-template-columns:minmax(250px,1fr) 90px 110px 110px 44px}.mbm-item-invoice-form .stock-entry-head>*:nth-child(2),.mbm-item-invoice-form .stock-entry-head>*:nth-child(5),.mbm-item-invoice-form .stock-entry-head>*:nth-child(6),.mbm-item-invoice-form .stockline>*:nth-child(2),.mbm-item-invoice-form .stockline>*:nth-child(5),.mbm-item-invoice-form .stockline>*:nth-child(6){display:none}.mbm-item-invoice-form .stock-entry-head>*:nth-child(7){grid-column:4}.mbm-item-invoice-form .stock-entry-head>*:nth-child(8){grid-column:5}.mbm-item-invoice-form .stockline .stock-amount{font-weight:800;text-align:right;padding:8px 5px}.mbm-gst-auto-state{display:flex;gap:10px;align-items:center;padding:8px 10px;background:#eef6ff;border-bottom:1px solid #bed3ea;font-size:12px}.mbm-gst-auto-state b{color:#124d86}.mbm-gst-off .mbm-compact-tax-summary{display:none!important}
.gst-off .stax,.gst-off .mse-card:has(#taxMode),.gst-off .mse-bill-summary>div:nth-child(3){display:none!important}.gst-on #taxMode{pointer-events:none;background:#eef6ff}.gst-off .mbm-compact-tax-summary{display:none!important}
@media(max-width:700px){.mbm-search-select{position:relative;overflow:visible}.mbm-search-options{position:absolute;left:0;right:0;top:calc(100% + 2px);bottom:auto;width:100%;max-height:min(260px,36dvh);border-radius:6px}.mbm-item-invoice-form .stock-entry-head,.mbm-item-invoice-form .stockline{grid-template-columns:minmax(150px,1fr) 64px 82px 90px 38px}}

/* V18.6: MBM is permanently single-location. Location data may sync internally from Tally but is never user-selectable. */
select[name*="godown"],label:has(select[name*="godown"]),.field:has(select[name*="godown"]),a[href*="report=godown"],a[href*="tab=godowns"],.tally-inventory-header>span:nth-child(2),#bomTable th:nth-child(3),#bomTable td:nth-child(3){display:none!important}
