/* Isolated review fixes. No document field order or business values change. */
.review-confirmation{width:min(460px,90vw);border:1px solid #b7c4d1;border-radius:10px;padding:22px;color:#19334c;background:white;box-shadow:0 12px 48px #102e4b40;font:16px Arial,sans-serif}
.review-confirmation::backdrop{background:#16314b55}
.review-confirmation h2{margin:0 0 12px;font-size:19px}
.review-confirmation p{line-height:1.8;overflow-wrap:anywhere}
.review-confirm-actions{display:flex;justify-content:flex-end;gap:16px;margin-top:20px}
.review-confirm-actions button{min-width:90px;min-height:36px}
.sales-register-main>.report-top-totals{position:static!important;inset:auto!important;flex-shrink:0;margin-top:8px;z-index:auto;clear:both}
.sales-register-main .table-wrap{margin-bottom:8px}
.vx-records-grid{min-width:0;overflow:auto}
.vx-records-grid th,.vx-records-grid td{min-width:64px;white-space:normal;line-height:1.5}
.vx-records-grid td:nth-child(2){min-width:180px}
.vx-report-tools{gap:8px}
#desktopToolbar .review-more-shortcut{display:none}
#desktopToolbar .review-more-shortcut>details>summary{min-height:40px;padding:8px 12px;cursor:pointer;white-space:nowrap}
#desktopToolbar:has(details[open]){z-index:1100!important}
.vn-desktop-navigation #desktopToolbar details[open]>.vx-dropdown{z-index:1101!important;overflow-y:auto}
.review-search-hint{font-size:12px;color:#52677d;line-height:1.5}
body.zace-desktop #content .review-search-hidden{display:none!important}
.review-trial-warnings{margin:4px 0;max-height:16vh;overflow:auto}
.review-trial-warnings summary{cursor:pointer;padding:4px 8px}
body.zace-desktop #modal .review-draft-actions [data-persistent-discard]{margin-inline-start:16px!important;padding-inline:14px!important;color:#872d27!important}
body.zace-desktop #modal .review-draft-actions [data-persistent-resume]{min-width:85px!important}
.review-search-suggestions{position:fixed;z-index:1800;direction:rtl;background:white;border:1px solid #9bafc3;border-radius:6px;padding:6px;max-height:50vh;overflow:auto;box-shadow:0 6px 18px #16314b33}
.review-search-suggestions button{display:block;width:100%;text-align:right;padding:9px 10px;border:0;background:white;color:#19334c;cursor:pointer;font:14px Arial}
.review-search-suggestions button:hover,.review-search-suggestions button.selected{background:#e6eff8}
@media(max-width:1250px){
 #desktopToolbar .vx-shortcut:nth-child(n+9):not(.review-more-shortcut){display:none!important}
 #desktopToolbar .review-more-shortcut{display:block!important}
}
@media(max-width:800px){#desktopToolbar .vx-shortcut:nth-child(n+5):not(.review-more-shortcut){display:none!important}}
@media print{.review-confirmation,#desktopToolbar .review-more-shortcut{display:none!important}}
@media screen{
body.zace-desktop #modal#modal[data-window-size="full"]:has(#chequeForm){position:fixed!important;left:0!important;top:0!important;bottom:0!important;right:var(--review-sidebar-width,0px)!important;transform:none!important;translate:none!important;margin:0!important;width:calc(100vw - var(--review-sidebar-width,0px))!important;max-width:100vw!important}
body.zace-desktop #modal#modal #chequeForm{overflow:auto!important;min-width:0!important}
body.zace-desktop #modal#modal #chequeForm :is(.ce-header,.ce-cheque-data){display:grid!important;position:static!important;inset:auto!important;grid-template-columns:repeat(auto-fit,minmax(min(218px,100%),1fr))!important;align-self:stretch!important;align-items:center;gap:7px 14px!important;box-sizing:border-box;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;padding:8px!important;margin:0!important;flex:none!important}
body.zace-desktop #modal#modal #chequeForm :is(.ce-header,.ce-cheque-data)>label:not([hidden]){position:static!important;inset:auto!important;grid-column:auto!important;grid-row:auto!important;width:auto!important;min-width:0!important;height:auto!important;min-height:30px;gap:6px!important}
body.zace-desktop #modal#modal #chequeForm :is(.ce-header,.ce-cheque-data) .vn-field-label{width:auto!important;min-width:65px;white-space:normal}
body.zace-desktop #modal#modal #chequeForm .ce-cheque-data{background:#edf3f8;border-block:1px solid #d3e0ec}
body.zace-desktop #modal#modal #chequeForm .ve-grid-wrap{width:100%;min-width:0;overflow:auto!important;flex:1 0 160px}
body.zace-desktop #modal#modal #chequeForm .ve-bottom,body.zace-desktop #modal#modal #chequeForm .ve-commandbar{flex-wrap:wrap!important;height:auto!important}
#desktopAccountForm .form-group:has([name=accountId]){flex:1 1 min(32rem,100%)!important;min-width:min(24rem,100%);max-width:100%}
#desktopAccountForm .form-group:has([name=accountId]) :is(select,.master-combo){width:100%!important;min-width:0!important}
body.zace-desktop #content .review-warehouse-list{width:100%;min-width:0;grid-column:1/-1}
body.zace-desktop #content .review-warehouse-list .table-wrap{width:100%!important;max-height:65vh!important;overflow:auto!important}
body.zace-desktop #content .review-warehouse-list table{width:100%!important;min-width:620px!important;table-layout:auto!important}
body.zace-desktop #content .review-warehouse-list :is(th,td):nth-child(2){min-width:20ch;padding-inline:10px!important;white-space:normal!important}
body.zace-desktop #content .review-warehouse-list .warehouse-balance{width:auto!important;max-width:100%;white-space:normal!important}
body.zace-desktop #content [data-tree-account]{font:15px/1.65 'Segoe UI',Tahoma,sans-serif!important;text-align:right!important;direction:rtl}
body.zace-desktop #content .page-head.rwc-caption .actions .btn:not(.rwc-close,.rwc-pin){width:auto!important;max-width:none!important;min-width:max-content!important;white-space:nowrap!important;height:auto!important;min-height:32px!important;padding:4px 9px!important}
body.zace-desktop #desktopToolbar .vx-shortcut[data-vn-icon=list] button{width:auto!important;min-width:84px!important}
body.zace-desktop #modal #tradeForm[data-trade-kind=sale_quote] .master-combo :is(input,button),body.zace-desktop #modal #tradeForm[data-trade-kind=sale_quote] select:not([hidden]){min-height:32px!important;line-height:1.45!important}
body.zace-desktop #modal #tradeForm :is([data-field=taxInvoiceType],[data-field=taxMode]) label{white-space:nowrap!important;word-break:normal!important}
#documentDrafts>div{display:flex;align-items:center;gap:14px;margin:5px 0;flex-wrap:wrap}
#documentDrafts>div button:last-child{border-color:#a8564c;color:#872d27;min-width:64px}
body.zace-desktop #toastStack{position:fixed!important;bottom:auto!important;top:64px!important;left:12px!important;right:auto!important;max-width:min(460px,90vw);pointer-events:none}
body.zace-desktop #content .empty-state>.empty-icon{position:static!important;display:block!important;margin:0 auto 12px!important;line-height:1.3}
body.zace-desktop #content .empty-state>h3{position:static!important;margin-block:5px!important}
#mainNav .vx-dropdown button:is([data-vx^="maintenance:"],[data-vx="import:replace"],[data-vx="dbtransfer:import"]){margin-block:4px!important;min-height:35px!important;border-block-start:1px solid #ced9e3!important}
}
