@font-face{font-family:App;src:local('Segoe UI')}*{box-sizing:border-box}body{margin:0;background:#f5f6f2;color:#263a33;font:14px/1.5 App,'Segoe UI',Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:#227153}button{border:1px solid #dbe2dc;background:white;border-radius:8px;padding:9px 15px;color:#284437;font-weight:600}button:hover{background:#f0f5ef;border-color:#b4c6b9}.primary{background:#205f46;color:#fff;border-color:#205f46}.primary:hover{background:#164a35;color:white}.danger{color:#a23b33}.ghost{background:transparent;border-color:transparent}.small{padding:5px 9px;font-size:12px}.layout{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid #e4e8df;padding:28px 18px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:238px;z-index:10}.brand{display:flex;align-items:center;gap:10px;margin:0 10px 35px}.brandmark{width:39px;height:42px;background:transparent url('/pwa/icons/logo.svg?v=50f25727243e') center/contain no-repeat;color:#fff;border-radius:0;display:grid;place-items:center;font-family:Georgia,serif;font-size:25px}.brand strong{display:block;font-size:17px;letter-spacing:-.5px}.brand small{font-size:10px;letter-spacing:1.7px;text-transform:uppercase;color:#8c968c}.navlabel{font-size:10px;letter-spacing:1.5px;color:#a0a89e;margin:16px 14px 10px;font-weight:700}nav{display:grid;gap:5px}nav button{text-align:left;border:0;background:none;font-weight:500;padding:11px 14px;display:flex;align-items:center;gap:12px;font-size:13px}nav button.active{background:#eaf2e8;color:#255d44;font-weight:700}nav .icon{font-size:17px;width:20px;text-align:center;opacity:.8}.sidebar-footer{margin-top:auto;border-top:1px solid #e8ece5;padding:20px 10px 0;font-size:12px;color:#859186}.avatar{background:#eadfce;color:#735c3f;border-radius:50%;width:31px;height:31px;display:grid;place-items:center;font-weight:700}.userbox{display:flex;gap:9px;align-items:center;margin-top:18px}.workspace{grid-column:2;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #e4e8df;padding:17px 38px;min-height:73px}.crumb{color:#929c92;font-size:12px}.crumb strong{color:#475c4d;font-weight:500}.top-actions{display:flex;align-items:center;gap:13px}.status{font-size:11px;border-radius:20px;padding:5px 9px;display:inline-flex;align-items:center;gap:5px;background:#f3f3ec;color:#7c816c;white-space:nowrap}.dot{width:6px;height:6px;border-radius:50%;background:#c1a46c}.status.ok{background:#e9f4e9;color:#32734b}.status.ok .dot{background:#4a9361}.badge{display:inline-block;border-radius:5px;padding:3px 7px;background:#edf3e9;color:#3e6d48;font-size:11px;font-weight:600}.badge.warn{background:#fbf1df;color:#96742e}.badge.neutral{background:#eef0ee;color:#718077}.badge.demo{background:#e7e9f8;color:#62639a}main{padding:31px 38px 48px;max-width:1660px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:26px;gap:15px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.6px;color:#87947f;margin:0 0 6px}.page-head h1{font-size:27px;letter-spacing:-.7px;font-weight:650;margin:0 0 5px;line-height:1.25}.subtle{color:#869183}.muted{color:#7e8b80;font-size:12px}h2{font-size:16px;letter-spacing:-.2px;margin:0 0 16px}h3{font-size:14px;margin:0 0 10px}p{margin:0 0 12px}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.card{background:white;border:1px solid #e2e7de;border-radius:12px;padding:20px;min-width:0}.metric-label{font-size:12px;color:#778778;display:flex;justify-content:space-between;align-items:center}.metric-icon{height:30px;width:30px;display:grid;place-items:center;background:#f1f5ed;border-radius:7px;color:#7b946f;font-size:16px}.metric-value{font-size:29px;letter-spacing:-.7px;font-weight:650;margin:17px 0 10px;line-height:1.1}.metric-value small{font-size:13px;font-weight:400;color:#8a9789;margin-left:3px}.metric-footer{font-size:11px;color:#929a8c}.featured{background:#214f3c;border-color:#214f3c;color:#fff}.featured .metric-label,.featured .metric-value small,.featured .metric-footer{color:#c1d5c1}.featured .metric-icon{background:#38624d;color:#dce9d6}.grid-two{display:grid;grid-template-columns:1.45fr 1fr;gap:21px;margin-bottom:22px}.grid-equal{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{background:white;border:1px solid #e2e7de;border-radius:12px;padding:23px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.panel-head h2{margin:0}.notice{border:1px solid #e7dfc6;background:#fcf8ed;border-radius:9px;padding:14px 17px;margin:15px 0;display:flex;gap:11px;font-size:12px;color:#7c6a3b}.notice.blue{background:#f0f4f2;border-color:#dce7df;color:#4e705c}.notice strong{display:block;margin-bottom:3px;font-size:13px}.empty{padding:36px 15px;text-align:center;color:#83907e}.empty .empty-icon{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#f0f4ed;color:#8eaa80;font-size:25px;margin-bottom:12px}.empty h3{color:#51654f}.empty p{max-width:370px;margin:0 auto 16px;font-size:12px}.category-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0f2ed;padding:11px 0;font-size:12px}.category-row:last-child{border:0}.catname{display:flex;align-items:center;gap:10px}.square{width:9px;height:9px;border-radius:2px;background:#547c55}.bar{height:7px;background:#eff2eb;border-radius:6px;overflow:hidden;margin-top:6px}.bar>span{height:100%;display:block;background:#80a573;border-radius:6px}.check-list{list-style:none;padding:0;margin:0}.check-list li{display:flex;gap:10px;align-items:flex-start;font-size:12px;padding:9px 0;border-bottom:1px solid #f1f3ee}.checkmark{display:grid;place-items:center;color:#b2995a;border-radius:50%;background:#faf4e3;width:21px;height:21px;flex:none;font-size:12px}.checkmark.done{background:#eaf3e6;color:#598a4c}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;font-weight:500;font-size:11px;color:#8a9788;background:#fafbf8;padding:11px 12px;border-bottom:1px solid #e7ebe3}td{padding:13px 12px;border-bottom:1px solid #edf0e9;font-size:12px}tr:last-child td{border:0}.num{text-align:right;font-variant-numeric:tabular-nums}.table-link{border:0;background:none;padding:0;color:#35694e;font-weight:600}.document-name{font-weight:600;color:#364f3e}.document-sub{font-size:10px;color:#95a08e;margin-top:3px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}.search{max-width:280px;width:100%}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:5px;min-width:0}.field>span{font-size:11px;font-weight:600;color:#6d7e6e}.field.wide{grid-column:1/-1}input,select,textarea{width:100%;border:1px solid #dbe2d6;border-radius:7px;background:#fff;padding:9px 10px;color:#314b3a;min-height:38px}textarea{min-height:90px;resize:vertical}input[type=checkbox]{width:16px;height:16px;min-height:auto;accent-color:#32674c}input[type=month]{max-width:170px;font-size:12px}label.check{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:#65765e;margin:12px 0}.help{font-size:11px;color:#96a18e;margin-top:5px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px;padding-top:18px;border-top:1px solid #e8ece2}.error{white-space:pre-line;color:#a53c32;background:#fff0ea;border:1px solid #eed5cb;border-radius:8px;padding:11px 14px;margin:13px 0;font-size:12px}.success{color:#39734f;background:#edf5e9;padding:11px 14px;border-radius:8px}.loading{padding:70px;text-align:center;color:#809376}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.auth-art{background:#204e3b;padding:65px;display:flex;flex-direction:column;justify-content:center;color:#eff5e9;position:relative;overflow:hidden}.auth-art:after{content:'';width:520px;height:520px;border:1px solid #3c6650;border-radius:50%;position:absolute;bottom:-200px;right:-150px;box-shadow:0 0 0 75px #285640,0 0 0 76px #3c6650}.auth-art h1{font:40px/1.25 Georgia,serif;max-width:390px;z-index:1}.auth-art p{color:#bbceb6;max-width:360px;margin-top:18px;z-index:1}.auth-form{display:grid;place-items:center;padding:35px}.auth-inner{max-width:370px;width:100%}.auth-inner h2{font-size:25px;margin-top:25px}.auth-inner form{display:grid;gap:17px;margin-top:25px}.modal-backdrop{position:fixed;inset:0;background:#142a225e;z-index:100;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:28px}.modal{background:#f8f9f5;border:1px solid #dce4d6;border-radius:14px;box-shadow:0 25px 100px #13291f30;width:min(1180px,100%);max-height:calc(100vh - 56px);display:flex;flex-direction:column}.modal.narrow{width:min(670px,100%)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:19px 25px;background:white;border-radius:14px 14px 0 0;border-bottom:1px solid #e3e9dc}.modal-header h2{margin:0;font-size:18px}.modal-content{overflow:auto;padding:24px}.modal-content.split{display:grid;grid-template-columns:35% 1fr;gap:22px}.preview{background:#f0f2eb;border:1px solid #dfe5d9;border-radius:10px;min-height:370px;padding:12px}.preview iframe{width:100%;height:450px;border:0;background:white}.preview img{width:100%;max-height:500px;object-fit:contain}.preview pre,.ocr-text{white-space:pre-wrap;word-break:break-word;font-size:11px;max-height:360px;overflow:auto;background:#fff;padding:12px;border-radius:7px}.line-card{border:1px solid #e0e6d9;border-radius:9px;padding:15px;margin-top:12px;background:white}.line-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.line-head strong{font-size:12px}.line-card .form-grid{gap:10px}.line-card input,.line-card select{font-size:12px;padding:7px}.line-card .form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}details{border-top:1px solid #e8ecdf;margin-top:13px;padding-top:9px}summary{font-size:12px;color:#728566;cursor:pointer;margin-bottom:10px}.tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:23px}.tabs button{font-size:12px}.tabs button.active{background:#e6efdf;color:#356349;border-color:#d6e2cc}.subsection{margin-top:24px}.link-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ecf0e7;padding:13px 0}.metric-inline{font-size:23px;font-weight:650}.hint-count{font-size:11px;color:#809471}#toast{position:fixed;bottom:22px;right:22px;max-width:440px;background:#264f3b;color:white;padding:12px 20px;border-radius:9px;box-shadow:0 6px 30px #1b342c30;z-index:250;display:none;white-space:pre-line}#toast.show{display:block}footer{font-size:10px;color:#a0aa98;margin-top:30px;display:flex;justify-content:space-between}.demo-strip{background:#eeedf9;color:#67618e;padding:7px 25px;text-align:center;font-size:11px}.ring{width:100px;height:100px;border:9px solid #ecf0e5;border-top-color:#789e66;border-radius:50%;display:grid;place-items:center;flex:none;font-size:23px;font-weight:600}.progress-block{display:flex;align-items:center;gap:25px;margin:15px 0 20px}.item-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.item-card{text-align:left;padding:19px;border-radius:10px;display:flex;flex-direction:column;gap:8px;font-weight:400}.item-card strong{font-size:14px}.item-code{font-size:10px;letter-spacing:.6px;color:#9aa58e}.cost-equation{border-left:3px solid #8bad79;padding:10px 15px;background:#f4f7ef;font-size:12px;color:#6f805f}.amount-positive{color:#336d49}.amount-negative{color:#a26445}
@media(min-width:1500px){main{padding:38px 50px}.topbar{padding:18px 50px}}
@media(max-width:1100px){.layout{grid-template-columns:205px 1fr}.sidebar{width:205px;padding:22px 12px}.brand{margin-left:7px}.brand strong{font-size:15px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}main{padding:25px}.topbar{padding:16px 25px}.grid-two{grid-template-columns:1fr}.modal-content.split{grid-template-columns:1fr}.preview{min-height:150px}.preview iframe{height:300px}}
@media(max-width:720px){.layout{display:block}.sidebar{position:static;width:100%;padding:14px 15px}.brand{margin:0 0 12px}.navlabel,.sidebar-footer{display:none}nav{display:flex;overflow:auto;gap:3px}nav button{white-space:nowrap;padding:8px 10px;font-size:11px}nav .icon{display:none}.topbar{padding:12px 17px;min-height:55px}.crumb{display:none}.top-actions{justify-content:space-between;width:100%}main{padding:22px 17px}.page-head{flex-wrap:wrap}.page-head h1{font-size:23px}.cards{gap:10px}.card{padding:15px}.metric-value{font-size:24px}.grid-equal{grid-template-columns:1fr}.panel{padding:17px}.form-grid.three{grid-template-columns:1fr 1fr}.modal-backdrop{padding:8px}.modal{max-height:calc(100dvh - 16px)}.modal-header{padding:15px}.modal-content{padding:15px}.modal-content.split{gap:15px}.auth{grid-template-columns:1fr}.auth-art{padding:30px;min-height:200px}.auth-art h1{font-size:27px}.auth-art p{font-size:12px}.auth-form{padding:25px}.form-grid{gap:12px}.toolbar{flex-wrap:wrap}footer{display:block}.metric-footer{font-size:10px}.line-card .form-grid.three{grid-template-columns:1fr 1fr}.metric-label{font-size:11px}.metric-icon{display:none}}

.cash-description{white-space:normal;min-width:180px;max-width:400px}.cash-filter{margin-bottom:20px}
/* Simple document lines and monthly payroll; original records remain readable. */
.payroll-total{display:flex;justify-content:space-between;gap:20px;margin:24px 0 12px;padding:20px;background:#edf5ef;border-radius:12px;align-items:center}
.payroll-total output{font-size:24px;font-weight:700;color:#194f3c;text-align:right}
.legacy-payroll{margin:16px 0}.legacy-payroll>div{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid #e5e9e5}.legacy-payroll dd{margin:0;font-weight:600}
.line-warning{display:block}.line-warning button{margin-top:8px}.conversion{margin-top:12px}.mapping-note{background:#f4f7f5;padding:10px;border-radius:8px}
.modal .help{color:#67786b}
@media(min-width:1101px){.ranking-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}

.item-card[hidden],#item-no-results[hidden]{display:none!important}

.profit-estimate{background:#eaf3ff;border-color:#bdd7f4;color:#235783}
.profit-complete{background:#e8f5eb;border-color:#bbddc5;color:#245e3a}
.profit-value{padding:10px 12px;border-radius:8px;min-width:155px;display:inline-flex;flex-direction:column;gap:4px;border-width:1px;border-style:solid}
.profit-value span{font-size:10px}
.profit-details{text-align:left;min-width:190px;max-width:460px}
.ranking-gaps{padding:0;list-style:none}
.ranking-gaps li{padding:10px 0;border-bottom:1px solid #dbe4dd}
.ranking-gaps p{margin-bottom:7px}
.ranking-gaps button{white-space:normal}
.ranking-total-gaps{background:#f0f6ff;border:1px solid #d5e4f4;border-radius:9px;padding:12px 18px}
.ranking-total-gaps[open]{max-height:500px;overflow:auto}
.ranking-legend{color:#627a71}
.profit-details{white-space:normal;width:240px;max-width:240px}
.ranking-cards .profit-value{display:flex;border:0;padding:0;background:transparent}
.ranking-cards .profit-value strong{font-size:30px;line-height:1.3;margin:12px 0 4px}
.ranking-cards .profit-value span{font-size:11px}
#price-notices{margin:15px 32px 0;padding:12px 16px;background:#fff3da;border:1px solid #eed498;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}
#price-notices[hidden],[data-recipe-pane][hidden]{display:none!important}
.recipe-source{gap:18px;align-items:flex-start;flex-wrap:wrap}.recipe-source>span{max-width:70%;overflow-wrap:anywhere}
.recipe-source button{white-space:normal;text-align:right}
.profit-details{max-width:240px}#recipe-form .check{margin-top:18px}
@media(max-width:720px){#price-notices{margin:10px 17px 0;flex-wrap:wrap}.recipe-source>span{max-width:100%}}

.sales-trend-details{min-width:105px;text-align:left}
.sales-trend-details>summary{list-style:none;cursor:pointer}
.sales-trend-details>summary::-webkit-details-marker{display:none}
.sales-trend{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:6px;font-size:12px;font-weight:600;white-space:nowrap;background:#eef0ee;color:#58655e;border:1px solid #d7dfd9}
.sales-trend-arrow{font-size:21px;line-height:1}
.sales-trend-up{color:#17623e;background:#eaf5ee;border-color:#b8d9c6}
.sales-trend-down{color:#a32727;background:#fff0ef;border-color:#efc2bf}
.sales-trend-details>summary:hover .sales-trend{text-decoration:underline}
.sales-trend-breakdown{white-space:normal;width:220px;font-size:12px;padding-top:12px}
.sales-trend-breakdown p{margin-top:8px}
.ranking-trend-legend{line-height:1.8}

.sales-search-bar{display:flex;gap:18px;align-items:end;flex-wrap:wrap;margin-bottom:18px}
.sales-search-bar .field{min-width:220px;max-width:420px;flex:1}
.sales-search-bar [data-search-count]{padding-bottom:10px}
[data-filter-section] tr[hidden],[data-search-empty][hidden]{display:none!important}
.sales-range-presets{margin-bottom:18px}.sales-range-grid{grid-template-columns:repeat(4,minmax(145px,1fr));margin-bottom:18px}
.customer-link{text-align:left;white-space:normal;max-width:420px}
.sidebar{overflow-y:auto}.sidebar nav button{flex-shrink:0}
@media(max-width:1000px){.sales-range-grid{grid-template-columns:repeat(2,minmax(145px,1fr))}}
@media(max-width:560px){.sales-range-grid{grid-template-columns:1fr}}

.web-test-banner{position:relative;z-index:10000;background:#fff0b3;color:#513b00;padding:12px 20px;text-align:center;border-bottom:2px solid #c58b00;font-size:14px}.web-test-banner strong{letter-spacing:.08em}.layout{min-height:calc(100vh - 46px)}

.commercial-trend{white-space:nowrap;font-weight:600}.commercial-trend.up{color:#227450}.commercial-trend.down{color:#b0392e}.commercial-trend.flat,.commercial-trend.unavailable{color:#6a786e}

@media(min-width:721px){.layout>.sidebar{top:46px;overflow-y:auto;overflow-x:hidden}.sidebar>.brand,.sidebar>.navlabel,.sidebar>nav,.sidebar>.sidebar-footer{flex-shrink:0}.sidebar .userbox{flex-wrap:wrap}}

.commercial-app .table-wrap table{min-width:620px;width:100%}.commercial-app th:first-child,.commercial-app td:first-child{white-space:normal;max-width:330px;overflow-wrap:anywhere}.commercial-app td{font-size:13px}

/* Physical returns: opposite color semantics from sales growth. */
.return-trend{font-weight:700;white-space:nowrap}.return-trend.up{color:#b42318}.return-trend.down{color:#187447}.return-trend.flat,.return-trend.unavailable{color:#68756f}
.return-summary{display:flex;flex-wrap:wrap;gap:24px;padding:20px 24px;margin:16px 0;background:#edf3ee;border:1px solid #dbe4dc;border-radius:12px}
.return-mode{border:1px solid #dbe4dc;border-radius:10px;margin:18px 0;padding:16px;display:flex;gap:18px;flex-wrap:wrap}.return-mode input{width:auto;display:inline-block}
.return-modal input[data-allocation]{width:100px;min-width:76px}.return-modal .table-wrap table,#returns-root .table-wrap table{min-width:600px;width:100%}
.return-modal td:first-child,#returns-root td:first-child{white-space:normal;max-width:330px}.return-history{margin:16px 0}.return-history pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:280px;overflow:auto;padding:16px;background:#f4f6f3}

.mfa-qr{display:block;max-width:280px;width:100%;image-rendering:pixelated;margin:16px 0}.mfa-codes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:2;padding:20px;background:#f3f6f2;border:1px solid #d9e3d7;border-radius:12px}

#pwa-toolbar{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:3000;display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:calc(100vw - 24px);width:max-content;padding:12px 16px;border:1px solid #bacfbe;border-radius:12px;background:#f3faf4;box-shadow:0 4px 24px #143e3026;color:#194f3c;font-size:14px}#pwa-toolbar[hidden]{display:none}#pwa-message{max-width:680px}#pwa-toolbar.pwa-offline{background:#fff6e7;border-color:#dbb16b;color:#6f430e}#pwa-toolbar button{white-space:normal}#pwa-toolbar button[hidden]{display:none}

/* Keep the connection notice clear of the save buttons. */
.pwa-status-visible .modal-content{padding-bottom:115px}
.pwa-status-visible .workspace{padding-bottom:95px}
@media(max-width:650px){.pwa-status-visible .modal-content{padding-bottom:160px}.pwa-status-visible .workspace{padding-bottom:145px}}

.pwa-status-visible .sidebar{padding-bottom:110px}
@media(max-width:650px){.pwa-status-visible .sidebar{padding-bottom:160px}}
