#nsCutModule .ns-report-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0;border-bottom:1px solid var(--line,#d7dfd9);padding-bottom:10px}#nsCutModule .ns-report-tabs button{min-height:44px;padding:10px 18px;border:1px solid #bdd0c4;border-radius:9px;background:#fff;color:#244d38}#nsCutModule .ns-report-tabs [aria-selected=true]{background:#245d46;color:white}#nsCutModule [role=tabpanel]{width:100%;min-width:0}#nsCutModule [hidden]{display:none!important}#nsCutModule .ns-cut-lookup-body{display:block}#nsCutModule .ns-report-filters{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));align-items:end;gap:12px}#nsCutModule .ns-report-filters label{display:grid;gap:5px;font-size:12px}#nsCutModule .ns-report-filters input,#nsCutModule .ns-report-filters select{box-sizing:border-box;width:100%;min-height:40px;border:1px solid #c8d5cd;border-radius:8px;padding:8px;background:white}#nsCutModule .ns-report-totals{display:grid;grid-template-columns:repeat(5,minmax(135px,1fr));gap:10px;margin:15px 0}#nsCutModule .ns-report-totals article{display:grid;gap:5px;padding:12px;background:#f4f8f5;border:1px solid #d8e4db;border-radius:10px}#nsCutModule .ns-report-totals b{font-size:16px}#nsCutModule .ns-report-totals small{font-size:11px;color:#647168}#nsCutModule .ns-report-net{background:#e5f3e8!important}#nsCutModule .ns-doc-state{display:inline-block;white-space:nowrap;padding:4px 8px;border-radius:12px;background:#f0efe8;font-size:12px}#nsCutModule .ns-doc-state.cancelled{background:#ffe9e9;color:#9d2f2f}#nsCutModule .ns-doc-state.active{background:#e1f1e4;color:#255f3a}#nsCutModule .ns-report-warning{color:#805d20;background:#fff6dd;padding:10px;border-radius:8px}#nsCutModule .ns-report-warning:empty{display:none}#nsReportError{color:#805020}#nsCutModule .ns-report-pages{display:flex;justify-content:flex-end;gap:8px}#nsCutModule .ns-report-pages button{padding:8px 14px;min-height:40px}#nsCutModule .ns-cut-dashboard-table{max-height:65vh;overflow:auto}#nsCutModule .ns-cut-dashboard-table th{position:sticky;top:0;background:#f3f0e7;z-index:1}@media(max-width:1100px){#nsCutModule .ns-report-filters{grid-template-columns:repeat(3,minmax(145px,1fr))}#nsCutModule .ns-report-totals{grid-template-columns:repeat(3,minmax(130px,1fr))}}@media(max-width:720px){#nsCutModule .ns-report-filters,#nsCutModule .ns-report-totals{grid-template-columns:repeat(2,minmax(0,1fr))}#nsCutModule .ns-report-tabs button{flex:1;padding:8px}#nsCutModule .top-actions{display:flex;flex-wrap:wrap}}

.ns-finance-dialog{box-sizing:border-box;width:min(960px,94vw);max-height:90vh;overflow:auto;border:1px solid #c7d5ca;border-radius:14px;padding:20px;color:#244d38;background:#fff}.ns-finance-dialog::backdrop{background:#17342788}.ns-finance-dialog header{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #d8e4db}.ns-finance-dialog h2{font-size:18px}.ns-finance-dialog button{min-width:42px;min-height:42px;border-radius:8px;border:1px solid #c7d5ca;background:#f2f7f3}.ns-finance-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ns-finance-values>div{display:flex;justify-content:space-between;gap:12px;padding:10px;background:#f4f8f5;border-radius:8px}.ns-finance-values dt{font-size:12px}.ns-finance-values dd{margin:0;text-align:right;font-weight:600;white-space:nowrap}.ns-finance-table{overflow:auto}.ns-finance-table table{width:100%;font-size:12px;border-collapse:collapse}.ns-finance-table td,.ns-finance-table th{padding:9px;border-bottom:1px solid #d8e4db;text-align:left;white-space:nowrap}.ns-finance-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.ns-finance-result{padding:12px;border:1px solid #dfd7b9;background:#fff9e9;border-radius:9px}.ns-finance-dialog footer{margin-top:14px;font-size:12px;color:#647168}@media(max-width:800px){.ns-finance-values{grid-template-columns:1fr}.ns-finance-dialog{padding:14px}}

/* Sales header only: existing controls/counters are moved without changing report logic. */
#nsReportSales .ns-header-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:14px;margin:8px 0 14px;align-items:stretch}
#nsReportSales .ns-header-card{box-sizing:border-box;min-width:0;padding:12px 14px;background:#fff;border:1px solid #e2ddd3;border-radius:14px;box-shadow:0 2px 8px #816a4210;color:#29251e}
#nsReportSales .ns-header-card>header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:13px}
#nsReportSales .ns-header-card h2{display:flex;align-items:center;gap:9px;margin:0;font-size:13px;line-height:1.3;color:#29251e}
#nsReportSales .ns-header-step{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:linear-gradient(135deg,#cfad69,#a47b31);color:#fff;font-size:13px;flex:none}
#nsReportSales .ns-header-card header small{font-size:7px;color:#77716a}
#nsReportSales .ns-header-card label{display:grid;gap:6px;min-width:0;font-size:8px;color:#605a51}
#nsReportSales .ns-filter-main>label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#nsReportSales .ns-header-card input,#nsReportSales .ns-header-card select{box-sizing:border-box;width:100%;min-width:0;height:34px;padding:5px 8px;background:#fff;border:1px solid #d6d9dc;border-radius:8px;color:#444;font-size:9px}
#nsReportSales .ns-filter-main input{height:38px;font-size:10px;background:#fcfcfc;padding-left:14px}
#nsReportSales .ns-filter-status-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:13px 0}
#nsReportSales .ns-filter-extra{border:1px solid #eee3cc;border-radius:9px;background:#fffaf1;margin:0}
#nsReportSales summary{cursor:pointer;font-size:9px;font-weight:600;padding:10px 12px}
#nsReportSales .ns-filter-extra-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:3px 12px 12px}
#nsReportSales .ns-filter-actions{display:flex;justify-content:space-between;gap:12px;margin-top:13px}
#nsReportSales .ns-filter-actions button{min-height:38px;padding:8px 17px;border-radius:8px;font-size:9px;cursor:pointer}
#nsReportSales #nsReportReset{border:1px solid #e5c6bd;background:#fff;color:#a24d3e}
#nsReportSales .ns-header-search{border:1px solid #a17b38;background:linear-gradient(135deg,#c39a50,#a17c38);color:#fff;font-weight:600}
#nsReportSales .ns-header-refresh button{min-height:29px;padding:4px 9px;font-size:7px;border:1px solid #e5dfd4;background:#fffaf1;border-radius:7px;color:#786547}
#nsReportSales .ns-stat-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#nsReportSales .ns-stat-counts article{display:grid;gap:3px;min-width:0;padding:10px 12px;border:1px solid #e5e3df;border-left:3px solid #a9a18d;border-radius:10px;background:#f7f7f6}
#nsReportSales .ns-stat-counts article.normal{border-left-color:#269c66;background:#f0f9f2}
#nsReportSales .ns-stat-counts article.cancelled{border-left-color:#d95863;background:#fff2f2}
#nsReportSales .ns-stat-counts article>span{font-size:8px;font-weight:600}
#nsReportSales .ns-stat-counts article>b{font-size:23px;line-height:1.15;color:#29251e}
#nsReportSales .ns-stat-counts article>small{font-size:7px;color:#78736c}
#nsReportSales .ns-summary-card h3{font-size:9px;margin:14px 0 8px}
#nsReportSales .ns-summary-card h3 small{font-size:7px;font-weight:400;color:#77716a}
#nsReportSales .ns-stat-amounts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#nsReportSales .ns-stat-amounts article{display:grid;gap:6px;padding:11px 12px;border-radius:10px;background:#f0f8f1;min-width:0}
#nsReportSales .ns-stat-amounts article.cancelled{background:#fff0f1}
#nsReportSales .ns-stat-amounts span{font-size:8px}
#nsReportSales .ns-stat-amounts b{font-size:clamp(10px,calc(1.55vw - 4px),20px);color:#238053;overflow-wrap:anywhere}
#nsReportSales .ns-stat-amounts .cancelled b{color:#c34856}
#nsReportSales .ns-header-note{margin:8px 0 10px;padding:8px 10px;font-size:7px;line-height:1.4;background:#fff5da;color:#896825;border-radius:8px}
#nsReportSales .ns-summary-extra{border:1px solid #dddfe2;border-radius:8px;background:#fff}
#nsReportSales .ns-summary-extra-content{padding:0 10px 10px}
#nsReportSales .ns-summary-extra .ns-cut-dashboard-summary{display:flex;flex-wrap:wrap;gap:8px;margin:0}
#nsReportSales .ns-summary-extra .ns-cut-dashboard-summary article{display:flex;align-items:center;gap:6px;padding:4px 7px;background:#faf9f6;border:0;box-shadow:none;font-size:7px}
#nsReportSales .ns-summary-extra .ns-cut-dashboard-summary article b{font-size:9px}
#nsReportSales .ns-summary-extra .ns-report-totals{grid-template-columns:1fr 1fr;gap:7px;margin:10px 0 0}
#nsReportSales .ns-summary-extra .ns-report-totals article{padding:8px;font-size:7px}
#nsReportSales .ns-summary-extra .ns-report-totals b{font-size:9px}
#nsReportSales .ns-summary-extra .ns-report-warning,#nsReportSales .ns-summary-extra #nsReportCoverage{font-size:7px;line-height:1.5;margin-bottom:0}
@media(max-width:1250px){#nsReportSales .ns-filter-extra-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#nsReportSales .ns-header-card{padding:13px}#nsReportSales .ns-header-layout{gap:12px}}
@media(max-width:860px){#nsReportSales .ns-header-layout{grid-template-columns:1fr}#nsReportSales .ns-filter-extra-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:550px){#nsReportSales .ns-filter-extra-grid{grid-template-columns:1fr 1fr}#nsReportSales .ns-stat-counts{gap:6px}#nsReportSales .ns-stat-counts article{padding:9px}#nsReportSales .ns-stat-counts article>b{font-size:20px}}

#nsReportSales .ns-cut-dashboard{padding-top:0}#nsReportSales .ns-header-layout{margin-top:0}#nsReportSales #nsReportError:empty{display:none}
#nsReportSales .ns-stat-counts article>b{font-size:clamp(16px,calc(1.8vw - 4px),23px)}

/* Compact sales-header height; font sizes and report behavior unchanged. */
#nsReportSales .ns-header-card{padding:10px 12px}
#nsReportSales .ns-header-card>header{margin-bottom:8px}
#nsReportSales .ns-header-step{width:24px;height:24px}
#nsReportSales .ns-header-card label{gap:3px}
#nsReportSales .ns-header-card input,#nsReportSales .ns-header-card select{height:30px;padding:3px 8px}
#nsReportSales .ns-filter-main input{height:32px}
#nsReportSales .ns-filter-status-grid{gap:10px;margin:8px 0}
#nsReportSales summary{padding:7px 10px}
#nsReportSales .ns-filter-extra-grid{gap:7px;padding:2px 10px 8px}
#nsReportSales .ns-filter-actions{margin-top:8px}
#nsReportSales .ns-filter-actions button{min-height:30px;padding:4px 13px}
#nsReportSales .ns-stat-counts article{gap:2px;padding:7px 9px}
#nsReportSales .ns-summary-card h3{margin:8px 0 5px}
#nsReportSales .ns-stat-amounts article{gap:3px;padding:7px 9px}
#nsReportSales .ns-header-note{margin:5px 0 7px;padding:5px 8px}

/* Use full workspace width only while the NS module is visible. */
.workspace:has(#nsCutModule:not([hidden])){max-width:none;width:100%;box-sizing:border-box;padding-left:10px;padding-right:10px}
#nsCutModule{box-sizing:border-box;width:100%;max-width:none;padding-left:0;padding-right:0}
#nsCutModule .ns-cut-lookup-body{padding-left:12px;padding-right:12px}
@media(max-width:720px){.workspace:has(#nsCutModule:not([hidden])){padding-left:6px;padding-right:6px}#nsCutModule .ns-cut-lookup-body{padding-left:8px;padding-right:8px}}

/* Outer pink gutter: expand NS card to the workspace edges. */
.workspace:has(#nsCutModule:not([hidden])){max-width:none!important;padding-inline:4px!important}
#nsCutModule{padding-inline:0!important;margin-inline:0!important}
#nsCutModule .ns-cut-page-card{width:100%;max-width:none;box-sizing:border-box;margin-inline:0}
body:has(>main.workspace>#nsCutModule){padding-inline:4px}

/* Unified NS detail popup: presentation only. */
.ns-unified-detail{width:min(1120px,96vw)}
.ns-unified-detail [hidden]{display:none!important}
.ns-unified-detail .ns-detail-tabs{display:flex;gap:8px;margin:12px 0;border-bottom:1px solid #e0d9ca;padding-bottom:9px}
.ns-unified-detail .ns-detail-tabs button{padding:7px 14px;min-height:38px;color:#315443;background:#fff}
.ns-unified-detail .ns-detail-tabs [aria-selected=true]{background:#245d46;color:#fff;border-color:#245d46}
.ns-unified-detail .ns-cut-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.ns-unified-detail .ns-cut-meta>div{display:grid;gap:4px;padding:10px;background:#f7f5ef;border-radius:8px}
.ns-unified-detail .ns-cut-meta span{font-size:12px;color:#736b5d}
.ns-unified-detail .table-wrap{max-width:100%;overflow:auto;max-height:34vh}
.ns-unified-detail .ns-cut-comparison footer{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ns-unified-detail .ns-cut-comparison footer button{padding:7px 12px}
#nsReportSales .ns-finance-badge{display:block;font-size:11px;white-space:normal;margin-top:4px;color:#476651}
#nsReportSales .ns-finance-badge.difference{color:#a73737}
#nsReportSales .ns-finance-badge.unverifiable{color:#8a682a}
@media(max-width:700px){.ns-unified-detail{padding:12px}.ns-unified-detail .ns-cut-meta{grid-template-columns:1fr}.ns-unified-detail .ns-detail-tabs button{flex:1;padding:6px;font-size:12px}}
