/* Independent scrolling keeps report titles and column headings in view. */
.table-wrap{max-height:60vh;overflow:auto;position:relative;scrollbar-gutter:stable}
.table-wrap thead{position:sticky;top:0;z-index:4;background:#2469b1}
.table-wrap thead th{background:#2469b1;color:white}
.table-wrap table{border-collapse:separate;border-spacing:0}
.modal .detail-title,.modal-content>h2:first-child{position:sticky;top:-12px;z-index:8;background:#eeecdb;padding:8px;margin-bottom:12px;box-shadow:0 2px 0 #999}
.modal-content>h2:first-child{background:#0754d6;color:white}
.modal .detail-title h2{position:static;margin:0 0 6px}
.modal .eyebrow{color:#0754d6}.modal-close{z-index:12}
.customer-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end;padding:10px;background:#e2e9f1}
.customer-filters label{display:grid;gap:4px}.customer-filters select{min-width:165px}
.invoice-analysis{padding:10px;border:1px solid #9aaac1;background:#eff6ff;margin:8px 0;color:#132e55}
.invoice-analysis p{margin:5px 0}.invoice-analysis output,.line-profit{font-weight:bold;color:#075830;display:block;margin:5px 0}
.profit-amount{color:#0754a8;background:transparent;border:0;border-bottom:1px dotted #0754a8;cursor:pointer;font:inherit;padding:3px}
.stock-cell{background:#eef8ec;color:#17542a;min-width:90px}.stock-cell small{display:block}
.line-profit[hidden]{display:none!important}.analysis-note{font-size:12px;font-weight:normal}
@media(min-width:1000px){
 #mainNav{overflow:visible!important;padding-left:82px;position:relative;z-index:70}
 .sidebar{z-index:70}.nav-group[open]{z-index:75}.nav-dropdown{z-index:80;max-height:calc(100vh - 100px);overflow-y:auto}
 #desktopToolbar{position:fixed;top:54px;left:0;bottom:25px;right:auto;width:76px;display:flex;flex-direction:column;overflow-y:auto;gap:2px;padding:5px 3px;border:1px solid #8595a8;background:#e8edf4;z-index:50}
 #desktopToolbar button{display:grid;flex-shrink:0;min-width:0;width:100%;min-height:57px;padding:4px;border:0;border-bottom:1px solid #b7c6d5;gap:2px;font-size:11px}
 #desktopToolbar svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:#085794}
 #desktopToolbar button[data-page="sales"] svg,#desktopToolbar button[data-page="receipts"] svg{color:#187746}
 #desktopToolbar button[data-page="purchases"] svg,#desktopToolbar button[data-page="supplier-payments"] svg{color:#aa5b10}
 .main-shell{padding-top:56px;margin-left:80px;width:calc(100% - 80px)}
 .content.desktop-report{padding-right:8px}.window-tools{position:static;width:auto;display:flex;flex-direction:row;justify-content:flex-start;gap:5px;margin:0 0 8px;flex-wrap:wrap}
 .window-tools button{min-height:29px}.window-tools kbd{display:inline;margin-inline-start:6px}
 .page-head{position:sticky;top:56px;z-index:9}.content{overflow:visible}
}
@media print{.table-wrap{max-height:none!important;overflow:visible!important;display:block}.table-wrap thead{position:static;display:table-header-group}.modal .detail-title,.modal-content>h2:first-child,.page-head{position:static!important}.main-shell{margin:0!important;width:100%!important}.invoice-analysis,.line-profit,.stock-cell,.stock-heading{display:none!important}.profit-amount{border:0;color:inherit}.table-wrap tr{break-inside:avoid}}

#desktopToolbar button .shortcut-label{font-size:11px;line-height:16px;color:#173b58}
.stock-cell{font-size:12px}.profit-amount,.line-profit{white-space:nowrap}

@media print{#printArea .profit-amount{display:inline!important;padding:0;color:inherit;border:0;font:inherit}}
