@font-face{font-family:LocalUI;src:local("Microsoft YaHei UI")}*{box-sizing:border-box}body{margin:0;color:#243d38;background:#f5f6f3;font-family:Inter,LocalUI,"Microsoft YaHei",system-ui,sans-serif;font-size:14px;line-height:1.6}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button,a{touch-action:manipulation}button{cursor:pointer}a{color:#236c58;text-decoration:none}button:disabled{opacity:.5;cursor:wait}input,select{border:1px solid #dce2dc;border-radius:9px;padding:10px 12px;background:#fff;min-width:0;width:100%;color:#263d37}input:focus,select:focus{outline:2px solid #80af98;border-color:transparent}input[type=checkbox]{width:17px;height:17px;accent-color:#1b6a52;flex:none}h1,h2,h3,p{margin:0}h1{font-size:29px;line-height:1.4;letter-spacing:-.8px;font-weight:650}h2{font-size:19px;letter-spacing:-.3px}h3{font-size:15px}small,.muted{color:#78867e}.muted{font-size:13px}small{font-size:12px}.boot{display:grid;place-items:center;min-height:100vh}.layout{display:flex;min-height:100vh}.sidebar{width:218px;position:fixed;inset:0 auto 0 0;background:#fcfdfb;border-right:1px solid #e2e7df;padding:28px 17px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:12px;padding:0 12px 35px}.mark{display:grid;place-items:center;width:39px;height:39px;background:#17594d;color:#d8f0c4;border-radius:12px;font-size:23px;font-weight:700}.brand strong{font-size:24px;letter-spacing:2px}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:-4px}.nav-title{font-size:11px;color:#98a298;padding:12px;letter-spacing:2px}.nav{display:flex;align-items:center;gap:12px;width:100%;border:0;text-align:left;background:none;color:#6b7e75;border-radius:10px;padding:12px 14px;margin-bottom:7px;font-weight:500}.nav:hover{background:#f0f4ed}.nav.active{background:#e7efe2;color:#245a40;font-weight:650}.icon{width:20px;height:20px;display:inline-flex;flex:none}.icon svg{width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.local-card{margin-top:auto;background:#f2f5ee;border:1px solid #e3e9dd;border-radius:12px;padding:14px;font-size:11px;color:#70816f}.dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:#63a76a;margin-right:7px}.profile{display:flex;align-items:center;gap:9px;border-top:1px solid #e3e7e0;padding:19px 5px 0;margin-top:21px}.avatar{width:34px;height:34px;background:#eee7d6;border-radius:50%;color:#756341;display:grid;place-items:center;font-weight:600}.profile .names{flex:1;min-width:0}.names strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.logout{border:0;background:none;color:#8a958c;font-size:12px;padding:5px}.main{margin-left:218px;width:calc(100% - 218px)}.topbar{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border-bottom:1px solid #e4e8e0;background:#fafbf8}.breadcrumbs{color:#7b8880;font-size:12px}.breadcrumbs b{color:#394e43;font-weight:500}.pill{display:inline-flex;align-items:center;border-radius:100px;font-size:11px;padding:5px 11px;background:#edf3e8;color:#54724d;white-space:nowrap}.content{max-width:1440px;margin:auto;padding:35px 40px 50px}.heading{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:26px}.heading p{margin-top:8px;color:#7d8a80;font-size:13px}.eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:2px;color:#99a594;margin-bottom:7px}.btn{border:1px solid #dce3d9;border-radius:9px;padding:10px 16px;font-weight:600;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#43614f;background:#fff;min-height:39px;white-space:nowrap}.btn:hover{background:#f4f7f0}.btn.primary{background:#1b5e4e;border-color:#1b5e4e;color:#fff;box-shadow:0 3px 8px #163c2920}.btn.primary:hover{background:#174e42}.btn.ghost{background:transparent;border-color:transparent}.btn.small{padding:7px 10px;min-height:31px;font-size:11px}.btn.danger{color:#b54c47;border-color:#e6cbc7}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.card{background:#fff;border:1px solid #e1e7dd;border-radius:15px;padding:24px;box-shadow:0 3px 5px #142a1602}.card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;gap:15px}.card-head p{color:#879083;margin-top:4px;font-size:12px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:25px}.stat{background:#fff;border:1px solid #e1e7dd;border-radius:13px;padding:21px;position:relative;overflow:hidden}.stat.featured{background:#eaf0df;border-color:#d7e3c6}.stat-label{color:#819071;font-size:12px;margin-bottom:14px}.stat-value{font-size:27px;letter-spacing:-1px;font-weight:650;white-space:nowrap;line-height:1.2;font-variant-numeric:tabular-nums}.stat-value small{font-size:14px;font-weight:500;margin-right:4px}.stat-foot{font-size:11px;color:#91a08b;margin-top:12px}.positive{color:#26715c}.negative{color:#bd5f51}.neutral{color:#5d6b64}.intro-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;margin-bottom:25px}.start-card{background:#173f36;color:#f5f8ee;position:relative;overflow:hidden;min-height:190px}.start-card p{color:#a5bcb0;margin:10px 0 22px;font-size:12px;max-width:400px}.start-card h2{font-size:23px;font-weight:500}.start-card .btn{background:#dbe9c8;border:0;color:#244d36}.intro-pattern{position:absolute;right:24px;top:25px;width:130px;height:130px;opacity:.12;border:1px solid #d7edc7;border-radius:50%;pointer-events:none}.intro-pattern:before{content:'';position:absolute;inset:20px;border:1px solid #d7edc7;border-radius:50%}.intro-pattern:after{content:'';position:absolute;inset:40px;border:1px solid #d7edc7;border-radius:50%}.how-list{display:flex;gap:13px;margin-top:16px;align-items:center;font-size:12px;color:#6b7c6b}.step-dot{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;color:#6a875e;background:#f1f5e9;font-size:11px;font-weight:600}.table-wrap{overflow:auto;border:1px solid #e8ece4;border-radius:10px;width:100%}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{text-align:left;background:#f8faf5;color:#87917f;font-size:11px;font-weight:500;padding:13px 15px;border-bottom:1px solid #e6ebdf}td{padding:14px 15px;border-bottom:1px solid #f0f2ed;color:#566a5b;max-width:330px;overflow:hidden;text-overflow:ellipsis}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdf8}td.number,th.number{text-align:right;font-variant-numeric:tabular-nums}td.strong{font-weight:650;color:#354e3e}.badge{display:inline-block;border-radius:5px;font-size:10px;padding:3px 7px;background:#edf4e9;color:#608251}.badge.warn{background:#fff4df;color:#a6813e}.badge.bad{background:#fbeee9;color:#b36650}.badge.gray{background:#f1f2ef;color:#8b9488}.empty{padding:47px 20px;text-align:center;color:#94a08e}.empty .icon{width:38px;height:38px;margin-bottom:12px;color:#a5b39b}.empty h3{color:#657660;margin-bottom:6px}.page-footer{margin-top:24px;display:flex;justify-content:space-between;color:#9ba595;font-size:10px}.wizard-steps{display:flex;align-items:center;background:#fff;border:1px solid #e1e7dd;border-radius:12px;padding:18px 25px;margin-bottom:23px;gap:20px}.wizard-step{display:flex;align-items:center;gap:10px;color:#a4aea0;font-size:12px}.wizard-step i{font-style:normal;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#f0f3ed;font-size:11px}.wizard-step.active{color:#315e42;font-weight:650}.wizard-step.active i{background:#1c6450;color:#fff}.wizard-step.done i{background:#dbe8cc;color:#496b37}.step-line{height:1px;background:#e3e8dc;flex:1;max-width:110px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field label{display:block;font-size:12px;color:#65785f;margin-bottom:7px}.field small{display:block;margin-top:6px;font-size:10px}.field.inline{display:flex;align-items:end;gap:9px}.field.inline>div{flex:1}.spaced{margin-top:22px}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:23px}.upload{border:1px dashed #c9d8bd;border-radius:13px;padding:29px 20px;text-align:center;background:#fbfdf8;display:block;cursor:pointer;transition:.2s}.upload:hover,.upload.drag{background:#f0f6e9;border-color:#85a36f}.upload .icon{width:32px;height:32px;color:#789565;margin-bottom:10px}.upload strong{display:block;color:#55704b;font-size:13px}.upload p{font-size:11px;color:#95a18d;margin-top:6px}.file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.file-loaded{background:#f0f6ea;border:1px solid #dce9cf;padding:13px;border-radius:10px;margin-top:14px;color:#60844e;font-size:12px;overflow-wrap:anywhere}.success-line{display:flex;align-items:center;gap:8px}.info{background:#f3f6ee;border:1px solid #e1e8d7;border-radius:10px;color:#78896c;padding:12px 15px;font-size:12px;line-height:1.8}.warning{background:#fff8eb;border:1px solid #efdfbe;color:#9a7a40;border-radius:10px;padding:13px 16px;font-size:12px;line-height:1.9}.error-box{color:#b25a4d;background:#fff0eb;padding:12px 15px;border-radius:9px;font-size:12px}.bottom-actions{display:flex;justify-content:space-between;align-items:center;margin-top:24px}.cost-config{margin-top:17px;padding-top:17px;border-top:1px solid #e7eddf}.cost-config .form-grid{gap:10px}.cost-config input,.cost-config select{padding:7px 9px;font-size:12px}.check-line{display:flex;align-items:flex-start;gap:9px;color:#6c7a61;font-size:12px;margin-top:17px;cursor:pointer}.check-line input{margin-top:3px}.rate-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:15px}.section-divider{height:1px;background:#e9ede4;margin:25px 0}.match-controls{display:flex;justify-content:space-between;align-items:center;margin:18px 0;gap:10px}.search{max-width:290px;font-size:12px;padding:9px 12px}.cost-input{width:100px;padding:6px 9px;font-size:12px;text-align:right}.tabs{display:flex;gap:21px;border-bottom:1px solid #e4e9de;overflow:auto;margin-bottom:20px}.tab{border:0;background:none;padding:13px 0;white-space:nowrap;color:#8a9781;font-size:12px;border-bottom:2px solid transparent}.tab.active{color:#2b6345;border-bottom-color:#2b6345;font-weight:650}.pager{display:flex;align-items:center;justify-content:space-between;margin-top:17px;color:#92a088;font-size:11px}.report-top{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-bottom:24px}.ledger-row{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid #f0f3eb;font-size:12px;color:#7b8b70}.ledger-row b{font-variant-numeric:tabular-nums;font-weight:500;color:#4d6553}.ledger-row.subtotal{color:#4e6e45;font-weight:600;background:#f6f8f0;margin:6px -12px;padding:12px;border-radius:7px;border:0}.ledger-row.total{font-weight:650;border-top:1px solid #dfe7d6;border-bottom:0;margin-top:6px;font-size:14px;padding-top:16px}.ledger-row.total b{font-size:18px;font-weight:650}.ratio-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.ratio{background:#f7f8f3;border-radius:10px;padding:17px 14px}.ratio span{display:block;color:#849377;font-size:11px}.ratio strong{font-size:27px;font-weight:600;display:block;margin:7px 0;letter-spacing:-.8px}.ratio small{font-size:10px;line-height:1.5;display:block}.scope-list{font-size:12px;color:#849375;line-height:2.3}.scope-list b{color:#567044;font-weight:500}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#f6f7f1}.auth-art{background:#173f36;color:#eef4e7;padding:65px 12%;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-art .brand{padding:0;margin-bottom:70px}.auth-art .brand small{color:#9eb9a5}.auth-art h1{font-size:40px;line-height:1.5;letter-spacing:-1px;max-width:450px;font-weight:500}.auth-art p{color:#a3b6a2;max-width:370px;margin:24px 0;font-size:13px;line-height:2}.auth-art .eyebrow{color:#779b80}.auth-graphic{display:flex;align-items:end;gap:15px;margin-top:40px;height:100px}.auth-graphic i{width:32px;background:#50775b;border-radius:6px 6px 0 0}.auth-graphic i:nth-child(2){height:60%;background:#8aa977}.auth-graphic i:nth-child(3){height:90%;background:#bdd39d}.auth-graphic i:nth-child(4){height:75%}.auth-graphic i:nth-child(1){height:35%}.auth-main{display:grid;place-items:center;padding:40px}.auth-form{width:100%;max-width:360px}.auth-form h2{font-size:25px;margin-bottom:8px}.auth-form .field{margin-top:20px}.auth-form .btn{width:100%;margin-top:26px}.auth-foot{font-size:11px;color:#96a18b;line-height:1.8;margin-top:23px}dialog{border:1px solid #dce4d3;border-radius:17px;padding:27px;width:480px;max-width:95vw;color:#334e3a;box-shadow:0 15px 100px #102c2420}dialog::backdrop{background:#183c3250;backdrop-filter:blur(2px)}dialog .field{margin-top:17px}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);padding:12px 22px;border-radius:10px;background:#264d3f;color:#fff;box-shadow:0 5px 25px #19332220;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90vw}#toast.show{opacity:1}#toast.error{background:#95594d}.busy{display:inline-block;width:15px;height:15px;border:2px solid #b6cbbb;border-top-color:transparent;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.hidden{display:none!important}.truncate{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.help-block{font-size:13px;line-height:2;color:#6e8068}.help-block ol{padding-left:21px}.help-block li{margin-bottom:10px}.help-block code{background:#eff3e8;border-radius:4px;padding:2px 5px}.section-stack>.card{margin-bottom:20px}.preview{max-height:180px;margin-top:15px}.preview th,.preview td{padding:6px 9px;font-size:10px;max-width:170px}.settings-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:20px}.summary-strip{display:flex;gap:20px;flex-wrap:wrap;margin:16px 0;font-size:11px;color:#8b977e}.summary-strip strong{color:#4a7047;font-size:17px;margin-right:3px}.admin-note{font-size:11px;color:#9a947f;margin-bottom:15px}.clickable{cursor:pointer}.icon-btn{background:transparent;border:0;padding:2px;color:inherit}.help-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}@media(max-width:1150px){.sidebar{width:185px}.main{margin-left:185px;width:calc(100% - 185px)}.content{padding:27px}.topbar{padding:0 27px}.stats{gap:11px}.stat{padding:17px}.stat-value{font-size:22px}.settings-grid{grid-template-columns:1fr}.intro-grid{grid-template-columns:1.3fr 1fr}.start-card .intro-pattern{display:none}}@media(max-width:800px){.sidebar{width:68px;padding:23px 8px}.brand{padding:0 5px 25px}.brand div:last-child,.nav span:not(.icon),.nav-title,.local-card,.profile .names,.logout{display:none}.nav{padding:12px 15px}.profile{padding:15px 5px 0}.main{margin-left:68px;width:calc(100% - 68px)}.content{padding:22px 17px}.topbar{padding:0 18px;height:60px}.stats{grid-template-columns:repeat(2,1fr)}.intro-grid,.upload-grid,.report-top,.help-pair{grid-template-columns:1fr}.heading{align-items:flex-start}h1{font-size:23px}.heading .btn{padding:9px 12px}.auth-shell{grid-template-columns:1fr}.auth-art{display:none}.auth-main{padding:25px;min-height:100vh}.wizard-steps{gap:10px;padding:15px}.wizard-step{font-size:10px;gap:7px}.step-line{min-width:10px}.form-grid.three{grid-template-columns:1fr 1fr}.card{padding:20px}.page-footer{display:none}}@media print{.sidebar,.topbar,.heading .actions,.bottom-actions,.tabs,.match-controls,.pager{display:none}.main{margin:0;width:100%}.content{padding:0}.card,.stat{break-inside:avoid}.stats{grid-template-columns:repeat(4,1fr)}body{background:white}}

input[readonly],select:disabled{background:#f0f3eb;color:#567044;cursor:default}

.upload.upload-compact{padding:20px 15px;min-height:0}.cost-match-summary{border-top:1px solid #dce5d3;margin-top:12px;padding-top:2px}.sku-chips{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 15px}.missing-sku-list{font-size:12px;overflow-wrap:anywhere}.sku-chips .badge{user-select:text}

.sku-chips:has(.missing-cost-row){display:block}.missing-cost-row{display:grid;grid-template-columns:minmax(90px,1fr) minmax(75px,110px) auto;align-items:center;gap:8px;margin:8px 0}.missing-cost-row input{padding:6px 8px}.missing-cost-row .strong{overflow-wrap:anywhere}
.help-quickstart{margin-bottom:20px}.help-quickstart ol{margin:14px 0 20px}.help-table table{white-space:normal;table-layout:fixed}.help-table th:first-child{width:34%}.help-table td,.help-table th{white-space:normal;max-width:none;overflow:visible;vertical-align:top;line-height:1.8}.help-block ul{padding-left:21px}.help-block .info,.help-block .warning{line-height:1.85}.help-faq{border-top:1px solid #e6ebdf;padding:14px 0}.help-faq:first-of-type{margin-top:12px}.help-faq summary{cursor:pointer;color:#365e4c;font-weight:600}.help-faq p{margin-top:9px}.help-quickstart .actions{margin-top:18px}

.return-ratio{grid-column:1/-1}.return-ratio strong{color:#365e4c}.return-ratio small{line-height:1.8}
.history-filter{margin-bottom:20px}.history-filter .search{flex:1;min-width:190px}.history-cards{display:grid;gap:20px}.history-record{background:#fff;border:1px solid #e1e7dd;border-radius:14px;padding:23px}.history-record-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.history-record-head h3{font-size:19px}.history-record-head h3 .pill{vertical-align:middle;margin-left:6px}.history-record-head p{font-size:12px;color:#7d8a80;margin-top:8px;line-height:1.8}.history-profit{text-align:right;display:grid;justify-items:end;gap:5px}.history-profit>span{font-size:12px;color:#78867e}.history-profit>strong{font-size:25px;white-space:nowrap;font-variant-numeric:tabular-nums}.history-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-top:1px solid #e8ece4;border-bottom:1px solid #e8ece4;padding:13px 0;gap:16px 13px}.history-metric{min-width:0}.history-metric>span{display:block;color:#7b8b76;font-size:11px;margin-bottom:5px}.history-metric>b{display:block;font-size:15px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.history-metric>small{display:block;font-size:10px;margin-top:3px}.history-return-line{display:block;line-height:1.7;overflow-wrap:anywhere}.history-status{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:15px 0 4px;font-size:11px;color:#7a8876}.review-summary{margin-top:14px}.review-rules{font-size:11px;color:#849078;margin-bottom:10px}.review-note{display:flex;gap:12px;padding:10px 12px;margin-top:7px;border-radius:8px;font-size:12px;line-height:1.8;background:#f3f6ef}.review-note>b{flex:0 0 118px;color:#365e4c}.review-note>span{color:#687d62}.review-note.high{background:#fff4ee}.review-note.high>b{color:#af5f3e}.review-note.pending{background:#fff9ed}.review-note.pending>b{color:#9d7b37}dialog{max-height:90vh;overflow-y:auto}@media(max-width:1150px){.history-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:800px){.history-record{padding:17px}.history-record-head{flex-wrap:wrap}.history-profit{text-align:left;justify-items:start}.history-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.review-note{display:block}.review-note>b{display:block}.history-record-head h3{font-size:17px}}
.return-stages{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.return-stages>div{padding:16px;background:#f6f8f3;border:1px solid var(--line,#e4e9df);border-radius:12px;min-width:0}.return-stages span,.return-stages b,.return-stages small{display:block}.return-stages b{font-size:24px;color:var(--ink,#173c38);margin:7px 0}.return-stages small{font-size:12px;line-height:1.7;color:#748679}.missing-panel{margin-bottom:24px}.missing-inline{border-top:1px solid #e8ece4;margin-top:20px;padding-top:20px}.missing-sku-list{display:flex;flex-wrap:wrap;gap:10px}.missing-sku{display:flex;flex-direction:column;gap:5px;padding:12px 16px;border:1px solid #efdcb6;background:#fff9ed;border-radius:10px;overflow-wrap:anywhere}.missing-sku small{color:#9a7846;font-size:12px}.missing-sku.saved{background:#f1f6ec;border-color:#dbe8d1}.missing-sku.saved small{color:#718765}.missing-panel .card-head,.missing-inline .card-head{flex-wrap:wrap;gap:14px}.missing-panel .actions,.missing-inline .actions{flex-wrap:wrap}.missing-inline .card-head p{margin-top:5px}.return-ratio .return-stages b{font-size:23px}@media(max-width:650px){.return-stages{grid-template-columns:1fr}.missing-sku{max-width:100%}}

.history-store-group{min-width:0}.history-batch-label{font-size:11px;color:#7b8b76;margin-bottom:8px}.history-older{margin-top:10px;border:1px solid #e1e7dd;border-radius:12px;background:#f8faf6}.history-older>summary{padding:15px 19px;cursor:pointer;color:#285e4f;font-size:13px;font-weight:600}.history-older>summary:hover{background:#edf3e8;border-radius:12px}.history-older>summary:focus-visible{outline:2px solid #307361;outline-offset:2px;border-radius:12px}.history-older>summary>small{display:inline-block;margin-left:14px;font-size:11px;font-weight:400;color:#7b8b76}.history-older>.history-cards{padding:0 14px 14px;gap:14px}.history-collapse-label{display:none}.history-older[open]>summary .history-expand-label{display:none}.history-older[open]>summary .history-collapse-label{display:inline}@media(max-width:800px){.history-older>summary{padding:13px}.history-older>summary>small{display:block;margin:5px 0 0 16px}.history-older>.history-cards{padding:0 8px 8px}}

.history-metric>.history-change,.history-profit>.history-change{display:block;font-size:10px;line-height:1.65;font-weight:400;color:#78867e;margin:4px 0 0}.history-profit>.history-change.positive{color:#24705c}.history-profit>.history-change.negative{color:#c45f4d}.history-comparison{margin-top:16px;padding:15px 17px;background:#f3f7f1;border:1px solid #e4ebde;border-radius:10px}.history-comparison-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-comparison-head>b{font-size:13px;color:#285e4f}.history-comparison>small{display:block;color:#7b8b76;font-size:11px;line-height:1.8}.history-comparison>p{margin:8px 0;font-size:12px;line-height:1.9;color:#426653}.empty-comparison{font-size:11px;color:#7b8b76}

.history-loss-trend{display:grid;gap:3px;max-width:330px;font-size:11px;line-height:1.65;color:#78867e}.history-loss-trend>b{font-size:12px;font-weight:600}.history-loss-trend .positive,.history-metric>.history-change.positive,.history-trend-verdict.positive{color:#24705c}.history-loss-trend .negative,.history-metric>.history-change.negative,.history-trend-verdict.negative{color:#c45f4d}.history-trend-verdict{font-size:13px;font-weight:600;margin-top:10px;color:#617466}.history-comparison>.history-amount-note{margin:8px 0;padding-top:8px;border-top:1px solid #e4ebde}.history-threshold-note{font-size:11px;line-height:1.8;color:#7b8b76;margin-top:18px}

.history-previous-value{display:inline-block;font-size:11px;font-weight:400;color:#7b8b76;line-height:1.7;margin-left:4px;white-space:nowrap}
/* Compact overview: preserve all headline metrics, disclose supporting detail on demand. */
.content:has(>.history-page),.content:has(>.overview-page){max-width:1720px;padding:18px 24px 20px}
.layout:has(.history-page) .topbar,.layout:has(.overview-page) .topbar{height:48px;padding:0 24px}
.history-page .heading,.overview-page .heading{margin-bottom:12px;gap:14px}
.history-page .heading h1,.overview-page .heading h1{font-size:24px}
.history-page .heading p,.overview-page .heading p{font-size:12px;margin-top:3px}
.history-page .eyebrow{display:none}
.history-filter{display:flex;align-items:center;gap:16px;padding:10px 14px;margin-bottom:12px;box-shadow:none}
.history-filter>.actions{flex:1}.history-filter .search{max-width:280px;padding:7px 10px}
.history-formula{position:relative;flex:none;font-size:11px;color:#647c6a}
.history-formula>summary{cursor:pointer;white-space:nowrap}
.history-formula>p{position:absolute;right:0;top:25px;width:350px;max-width:75vw;padding:14px;background:#fff;border:1px solid #dce5d5;border-radius:9px;box-shadow:0 5px 18px #173f3614;z-index:3;font-size:12px;line-height:1.8}
.history-cards{gap:14px}.history-record{padding:14px 16px;border-radius:12px}
.history-record-head{display:grid;grid-template-columns:minmax(230px,1fr) auto minmax(200px,auto) auto;gap:18px;align-items:center;margin-bottom:12px}
.history-record-head>*{min-width:0}.history-record-head h3{font-size:18px}.history-batch-label{font-size:10px;margin-bottom:2px}
.history-record-head p{font-size:11px;line-height:1.6;margin-top:4px}
.history-profit{text-align:left;justify-items:start;gap:2px}.history-profit>span{font-size:11px}.history-profit>strong{font-size:25px}
.history-head-trend{border-left:1px solid #e4ebde;padding-left:16px}.history-loss-trend{gap:1px;font-size:10px;line-height:1.6}.history-loss-trend>b{font-size:11px}
.history-metrics{grid-template-columns:repeat(6,minmax(0,1fr));padding:9px 0;gap:8px 10px}
.history-metric{padding:5px 7px}.history-metric:nth-child(-n+6){background:#f7f9f4;border-radius:7px}
.history-metric>span{font-size:11px;margin-bottom:3px}.history-metric>b{font-size:16px;line-height:1.5}
.history-metric>.history-change{font-size:10px;line-height:1.55;margin:3px 0 0}.history-metric>small{font-size:10px;line-height:1.55;margin-top:3px}.history-return-line{line-height:1.55}
.history-status{padding:7px 0 0;gap:10px;font-size:10px}
.history-comparison{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 14px;margin-top:9px;padding:9px 12px}
.history-comparison-brief{flex:1;display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 8px;font-size:11px;line-height:1.7;color:#486c57}
.history-comparison-brief>b{color:#285e4f;white-space:nowrap}.comparison-context{font-size:10px;color:#6c8262;background:#e9f0e3;padding:1px 6px;border-radius:4px;white-space:nowrap}
.history-explanation{font-size:11px;color:#708268}.history-explanation>summary{cursor:pointer;white-space:nowrap}
.history-explanation[open]{flex-basis:100%}.history-explanation .history-comparison-head{margin-top:9px}
.history-explanation>small{display:block;color:#7b8b76;font-size:11px;line-height:1.8}.history-explanation>p{font-size:12px;line-height:1.8;margin:8px 0}
.history-explanation>.history-amount-note{margin:8px 0;padding-top:8px;border-top:1px solid #e4ebde}
.history-extras{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:9px}.history-extras:empty{display:none}
.history-extra{border:1px solid #e4e9df;border-radius:8px;background:#fbfcf9;padding:8px 11px;min-width:0;align-self:start}
.history-extra>summary{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:3px 8px;cursor:pointer;list-style:none}
.history-extra>summary::-webkit-details-marker{display:none}.history-extra>summary>b{font-size:11px;color:#426653}
.history-extra>summary>b:before{content:'▸ ';color:#6c8860}.history-extra[open]>summary>b:before{content:'▾ '}
.history-extra-preview{grid-row:2;grid-column:1/-1;font-size:10px;color:#7b8b76;overflow-wrap:anywhere;line-height:1.6}
.history-extra>summary>small{grid-row:1;grid-column:2;font-size:10px;color:#7b8b76}
.history-extra[open]{grid-column:1/-1}.history-extra .missing-inline{margin-top:10px;padding-top:10px}.history-extra .card-head{margin-bottom:10px}
.history-extra .missing-sku{padding:7px 10px}.history-extra .missing-sku small{font-size:11px}.history-extra .spaced{margin-top:10px}
.history-extra .review-summary{margin-top:8px}.history-extra .history-threshold-note{margin-top:10px}
.history-older{margin-top:7px}.history-older>summary{padding:9px 14px;font-size:12px}.history-older>summary>small{font-size:10px}
.overview-stats{gap:12px;margin-bottom:12px}.overview-stats .stat{padding:10px 14px}.overview-stats .stat-label{font-size:11px;margin-bottom:4px}
.overview-stats .stat-value{font-size:22px}.overview-stats .stat-foot{font-size:10px;margin-top:4px}
.overview-recent>.card-head{align-items:center;margin-bottom:8px}.overview-recent>.card-head h2{font-size:17px}
.content:has(>.history-page)>.page-footer,.content:has(>.overview-page)>.page-footer{margin-top:12px}
@media(min-width:801px) and (max-width:1200px){
 .history-record-head{grid-template-columns:minmax(190px,1fr) auto minmax(175px,auto);gap:12px}.history-head-actions{grid-column:3;justify-self:end;margin-top:-5px}.history-head-trend{grid-column:3;grid-row:1}.history-identity,.history-profit{grid-row:1/3}
 .history-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.history-metric:nth-child(-n+6){background:transparent}.history-metric:nth-child(-n+4){background:#f7f9f4}
}
@media(max-width:800px){
 .content:has(>.history-page),.content:has(>.overview-page){padding:14px 12px}.history-page .heading h1,.overview-page .heading h1{font-size:21px}
 .history-page .heading p,.overview-page .heading p{font-size:11px}.history-filter{gap:8px;padding:9px 10px;flex-wrap:wrap}.history-filter>.actions{gap:6px}
 .history-filter .search{min-width:160px}.history-filter .btn{padding:7px 9px;font-size:11px;min-height:33px}.history-filter .muted{font-size:11px}
 .history-record{padding:12px}.history-record-head{grid-template-columns:1fr auto;gap:8px 12px;align-items:start}
 .history-identity{grid-row:1;grid-column:1}.history-head-actions{grid-row:1;grid-column:2;justify-self:end}.history-profit{grid-row:2;grid-column:1}.history-head-trend{grid-row:2;grid-column:2;padding-left:10px}
 .history-record-head p{font-size:10px}.history-record-head h3{font-size:17px}.history-profit>strong{font-size:23px}
 .history-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.history-metric{padding:5px}.history-metric>b{font-size:15px}
 .history-previous-value{font-size:10px;margin-left:2px}.history-extras{grid-template-columns:1fr}.history-extra[open]{grid-column:auto}
 .history-older>summary>small{display:inline-block;margin:0 0 0 8px}.overview-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.overview-stats .stat{padding:8px}.overview-stats .stat-value{font-size:18px}.overview-stats .stat-foot{display:none}
}
@media(max-width:520px){
 .history-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.history-record-head{gap:9px}.history-head-trend{max-width:170px}.history-loss-trend>b{font-size:10px}.history-profit>strong{font-size:20px}.history-page .heading,.overview-page .heading{flex-wrap:wrap}.overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.history-identity p{overflow-wrap:anywhere}
}
/* Fit a complete store overview on a standard laptop without reducing the data text. */
.content:has(>.history-page),.content:has(>.overview-page){padding-top:14px;padding-bottom:12px}
.layout:has(.history-page) .topbar,.layout:has(.overview-page) .topbar{height:44px}
.history-page .heading,.overview-page .heading{margin-bottom:8px}
.history-page .heading h1,.overview-page .heading h1{font-size:22px;line-height:1.3}
.history-page .heading p,.overview-page .heading p{line-height:1.5;margin-top:2px}
.history-filter{padding:8px 12px}.history-filter .btn{min-height:33px;padding:6px 10px}
.history-batch-inline{font-size:10px;font-weight:400;letter-spacing:0;color:#82917b;white-space:nowrap;margin-left:8px}
.overview-stats{margin-bottom:10px}.overview-stats .stat{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-radius:9px}
.overview-stats .stat-label{font-size:10px;margin:0}.overview-stats .stat-value{font-size:20px;letter-spacing:-.5px}.overview-stats .stat-foot{display:none}
.overview-recent>.card-head{margin-bottom:6px}.overview-recent>.card-head .btn{min-height:27px;padding:4px 8px}
.content:has(>.history-page)>.page-footer,.content:has(>.overview-page)>.page-footer{display:none}
@media(max-width:800px){.overview-stats .stat{display:block;padding:7px 8px}.overview-stats .stat-value{font-size:18px;margin-top:3px}.history-batch-inline{display:inline-block;font-size:9px;margin-left:5px}}
/* Keep the operating diagnosis fully visible, next to the comparison summary. */
.history-analysis-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:12px;margin-top:10px;align-items:start}
.history-analysis-grid>.history-comparison{display:block;margin:0;padding:10px 12px}
.history-comparison-head{gap:8px}.history-comparison-head>b{font-size:12px}.history-comparison-head .btn{padding:3px 6px;min-height:25px;font-size:10px}
.history-analysis-grid>.history-comparison>small{font-size:10px;line-height:1.7}.history-analysis-grid>.history-comparison>p{font-size:11px;line-height:1.8;margin:5px 0}
.history-analysis-grid .history-trend-verdict{font-size:12px;margin-top:7px}.history-analysis-grid .history-amount-note{margin:6px 0;padding-top:6px}
.history-review{padding:10px 12px;background:#fbfcf9;border:1px solid #e4e9df;border-radius:10px;min-width:0}
.history-review>h3{font-size:12px;color:#285e4f}.history-review .history-threshold-note{font-size:10px;line-height:1.7;margin:3px 0 0}
.history-review .review-summary{margin-top:5px}.history-review .review-rules{font-size:10px;line-height:1.7;margin-bottom:4px}
.history-review .review-note{display:block;font-size:10px;line-height:1.75;margin-top:4px;padding:5px 8px;border-radius:6px}
.history-review .review-note>b{display:inline;margin-right:8px}.history-review .review-note>span{display:inline}
.history-extras{display:block}.history-extra>summary{grid-template-columns:auto 1fr auto;gap:6px 12px}.history-extra-preview{grid-row:1;grid-column:2}.history-extra>summary>small{grid-row:1;grid-column:3}
@media(max-width:1000px){.history-analysis-grid{grid-template-columns:1fr}.history-review .review-note{font-size:11px}.history-analysis-grid>.history-comparison>small{font-size:11px}}
@media(max-width:520px){.history-extra>summary{grid-template-columns:1fr auto}.history-extra-preview{grid-row:2;grid-column:1/-1}.history-extra>summary>small{grid-column:2}}
/* Cost follow-up sits beside the comparison; all operating alerts stay visible below. */
.history-analysis-grid>.history-extras{margin-top:0}.history-analysis-grid:not(:has(.history-extras)){grid-template-columns:1fr}
.history-record>.history-review{margin-top:10px}.history-record>.history-review .review-summary{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px}
.history-record>.history-review .review-rules{grid-column:1/-1;margin-bottom:0}.history-record>.history-review .review-note{margin-top:0;font-size:11px;line-height:1.7;padding:7px 9px}
.history-analysis-grid .history-extra>summary{grid-template-columns:1fr auto}.history-analysis-grid .history-extra-preview{grid-column:1/-1;grid-row:2}.history-analysis-grid .history-extra>summary>small{grid-column:2}
@media(max-width:800px){.history-record>.history-review .review-summary{grid-template-columns:1fr}}
.cost-collapse-label{display:none}.history-extra[open]>summary .cost-expand-label{display:none}.history-extra[open]>summary .cost-collapse-label{display:inline}
.history-analysis-grid .history-extra .card-head{display:block}.history-analysis-grid .history-extra .card-head .actions{margin-top:8px;gap:5px}.history-analysis-grid .history-extra .btn{padding:5px 7px;min-height:28px;font-size:10px}
/* Manager overview: compact filters and scan table above full, visible diagnoses. */
.manager-filter{padding:12px 14px;margin-bottom:10px;box-shadow:none}
.manager-filter-grid{display:grid;grid-template-columns:minmax(410px,2.8fr) repeat(4,minmax(105px,1fr)) minmax(130px,1.15fr) auto;gap:10px;align-items:end}
.manager-date{display:grid;grid-template-columns:110px repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.manager-filter .field,.manager-view-bar .field{margin:0;min-width:0}.manager-filter label,.manager-view-bar label{font-size:11px;margin-bottom:4px}
.manager-filter input,.manager-filter select,.manager-view-bar select{padding:7px 8px;min-height:34px;font-size:12px;width:100%;min-width:0}
.manager-filter-actions{display:flex;gap:6px}.manager-filter .btn{padding:7px 10px;min-height:34px;font-size:12px}
.manager-filter-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;color:#7b8b76;font-size:11px;line-height:1.6}
.manager-filter-foot .btn{min-height:24px;padding:3px 8px;font-size:10px;white-space:nowrap}
.manager-financial-summary{margin:12px 0 14px;padding:12px 14px;background:#fff;border:1px solid #e1e7dd;border-radius:12px}
.manager-type-actions{display:flex;gap:8px;align-items:center}.store-type-manager-dialog{width:min(640px,calc(100vw - 32px));max-width:640px}.store-type-manager .card-head{align-items:flex-start;gap:16px}.store-type-manager h2{font-size:20px}.store-type-manager .card-head p{font-size:12px;line-height:1.6;margin-top:7px}.type-manager-add{display:flex;align-items:flex-end;gap:10px;margin:20px 0 14px}.type-manager-add .field{flex:1}.type-manager-add .btn{flex:none}.type-manager-list{display:grid;gap:8px}.type-manager-row{border:1px solid #e0e7dd;border-radius:9px;padding:10px 12px}.type-manager-row-main{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.type-manager-row-main>b{font-size:14px;overflow-wrap:anywhere}.type-manager-row-main>span{font-size:12px;color:#7b8b76}.type-manager-row-main>.actions{margin-left:auto}.type-manager-edit{margin-top:12px;border-top:1px solid #e5ebdf;padding-top:12px;display:grid;gap:10px}.type-manager-edit p,.type-manager-edit small{font-size:12px;line-height:1.6}.type-manager-edit small{color:#7b8b76}.type-manager-edit .field{margin:0}@media(max-width:520px){.type-manager-add{flex-wrap:wrap}.type-manager-add .field{flex-basis:100%}.store-type-manager-dialog{padding:18px}}
.manager-financial-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.manager-financial-head h2{font-size:15px;display:flex;align-items:center;gap:8px}.manager-financial-head>span{font-size:11px;color:#687e70}.manager-financial-head>small{margin-left:auto;font-size:11px}
.manager-financial-scope{display:flex;gap:6px;flex-wrap:wrap;margin:-2px 0 9px}.manager-financial-scope span{background:#f1f5ee;border-radius:5px;color:#55715c;padding:2px 7px;font-size:11px;overflow-wrap:anywhere}
.manager-currency-controls{display:flex;align-items:center;gap:6px;font-size:11px;color:#687e70}.manager-currency-controls select{width:128px;min-height:30px;padding:5px 26px 5px 8px;font-size:11px}.manager-currency-rate{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:10px;padding:7px 10px;background:#f5f8f1;border-radius:6px;font-size:11px}.manager-currency-rate input{width:100px;min-height:28px;padding:4px 7px;font-size:11px}.manager-currency-rate .btn{min-height:28px;padding:4px 8px;font-size:10px}.manager-currency-rate small{font-size:10px;line-height:1.6}.manager-currency-rate small.negative{flex-basis:100%}
.manager-financial-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.manager-financial-metric{min-width:0;padding:10px 12px;background:#f7f9f4;border-radius:8px}.manager-financial-metric.featured{background:#eaf2e3}.manager-financial-metric>span,.manager-financial-metric>small{display:block;font-size:11px;color:#73836c}.manager-financial-metric strong{display:block;font-size:23px;line-height:1.35;margin:5px 0;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.manager-financial-metric>small{font-size:10px;line-height:1.6}
.manager-financial-foot{font-size:10px;line-height:1.7;color:#7c8b75;margin-top:9px}.manager-financial-note{display:block;color:#9a773c}
.manager-income-expense-check{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 12px;margin-top:12px;padding:8px 10px;border-radius:6px;background:#f5f8f1;color:#627867;font-size:11px;line-height:1.7}.manager-income-expense-check b{font-variant-numeric:tabular-nums;color:#284a40}.manager-income-expense-check small{flex-basis:100%;color:#9a773c}
@media(max-width:1400px){.manager-financial-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.manager-financial-metric strong{font-size:21px}}
@media(max-width:650px){.manager-financial-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.manager-financial-head>small{margin-left:0;flex-basis:100%}.manager-financial-metric{padding:9px}.manager-financial-metric strong{font-size:19px}}
@media(max-width:360px){.manager-financial-grid{grid-template-columns:minmax(0,1fr)}}
.manager-kpi-layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:16px}.manager-kpi-main{min-width:0}.manager-kpi-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}.manager-kpi-heading h3,.manager-cost-composition h3{font-size:12px}.manager-kpi-heading>small{font-size:10px;text-align:right}.manager-kpi-main .manager-financial-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.manager-kpi-main .manager-financial-metric{padding:9px}.manager-kpi-main .manager-financial-metric strong{font-size:21px}.manager-financial-metric .manager-kpi-previous{color:#6e8176;margin-bottom:2px}.manager-financial-metric .manager-kpi-change{margin-bottom:4px}.manager-kpi-change.positive{color:#26715c}.manager-kpi-change.negative{color:#bd5f51}
.manager-kpi-supporting{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px;padding-top:10px;border-top:1px solid #e7ece2}.manager-kpi-supporting>div{min-width:0}.manager-kpi-supporting span,.manager-kpi-supporting small{display:block;font-size:10px;color:#7b8b76;line-height:1.6}.manager-kpi-supporting strong{display:block;font-size:17px;font-variant-numeric:tabular-nums;margin:3px 0;overflow-wrap:anywhere}.manager-kpi-trend{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;margin-top:10px;font-size:11px}.manager-kpi-trend small{font-size:10px}
.manager-cost-composition{border-right:1px solid #e3e9df;padding-right:16px}.manager-cost-total{display:flex;align-items:center;gap:12px;margin:10px 0}.manager-cost-ring{width:64px;height:64px;border-radius:50%;background:#edf1e9;position:relative;flex:none}.manager-cost-ring:after{content:'';position:absolute;inset:12px;background:#fff;border-radius:50%}.manager-cost-total span,.manager-cost-total small{display:block;font-size:10px;color:#7b8b76}.manager-cost-total strong{display:block;font-size:20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.manager-cost-legend-head,.manager-cost-line{display:grid;grid-template-columns:minmax(0,1fr) 76px 53px;gap:5px;align-items:center;font-size:10px;line-height:1.7;padding:3px 0}.manager-cost-legend-head{color:#83917e;border-bottom:1px solid #e6ebe2}.manager-cost-line b{font-weight:500;font-variant-numeric:tabular-nums}.manager-cost-line>span:first-child{display:flex;gap:6px;align-items:center}.manager-cost-line i{width:7px;height:7px;border-radius:2px;flex:none}.manager-cost-legend-head>span:not(:first-child),.manager-cost-line>:not(:first-child){text-align:right}.manager-cost-note{display:block;font-size:9px;line-height:1.5;color:#8c9884;margin-top:6px}
@media(max-width:1450px){.manager-kpi-main .manager-financial-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.manager-kpi-layout{grid-template-columns:240px minmax(0,1fr);gap:12px}.manager-cost-composition{padding-right:12px}.manager-kpi-main .manager-financial-metric strong{font-size:18px}.manager-kpi-main .manager-financial-metric>span{font-size:10px}.manager-cost-total strong{font-size:18px}.manager-kpi-supporting{gap:8px}}
@media(max-width:1150px){.manager-kpi-layout{grid-template-columns:minmax(0,1fr)}.manager-cost-composition{border-right:0;border-top:1px solid #e3e9df;padding:12px 0 0;grid-row:2;display:grid;grid-template-columns:210px minmax(0,1fr);gap:0 18px}.manager-cost-composition h3{grid-column:1/-1}.manager-cost-legend{grid-column:2;grid-row:2/4}.manager-cost-note{grid-column:1}.manager-kpi-main .manager-financial-metric strong{font-size:20px}}
@media(max-width:750px){.manager-kpi-main .manager-financial-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.manager-kpi-supporting{grid-template-columns:repeat(2,minmax(0,1fr))}.manager-kpi-heading{flex-wrap:wrap}.manager-kpi-heading>small{text-align:left}}
@media(max-width:520px){.manager-kpi-main .manager-financial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.manager-cost-composition{display:block}.manager-cost-total{max-width:280px}.manager-cost-line,.manager-cost-legend-head{font-size:11px}.manager-kpi-trend{display:block}}
@media(max-width:360px){.manager-kpi-main .manager-financial-grid,.manager-kpi-supporting{grid-template-columns:minmax(0,1fr)}}
.manager-stats{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:9px;margin:10px 0}
.manager-stat{border:1px solid #e1e7dd;border-radius:9px;background:white;padding:10px 12px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#254a40;cursor:pointer}
.manager-stat.active{border-color:#357c65;background:#edf4e7}.manager-stat span{font-size:12px}.manager-stat b{font-size:23px;line-height:1.2}
.manager-stat>b{flex-shrink:0;text-align:right}.manager-stat>b small{white-space:nowrap}
.manager-update-time{white-space:nowrap;font-variant-numeric:tabular-nums}.manager-update-time>div{margin-bottom:3px}
.manager-sort-heading{border:0;background:transparent;color:inherit;font:inherit;padding:2px 0;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;cursor:pointer}.manager-sort-heading span{font-size:10px;color:#9aa69a}.manager-sort-heading:hover,.manager-sort-heading.active,.manager-sort-heading.active span{color:#1b6754}.manager-sort-heading:focus-visible{outline:2px solid #357c65;outline-offset:4px;border-radius:2px}
.manager-brief{display:flex;gap:14px;background:#eef4e9;border:1px solid #dce7d3;border-radius:9px;padding:10px 13px;margin:10px 0;font-size:12px;line-height:1.8}.manager-brief>b{white-space:nowrap;color:#255b4b}
.manager-view-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 8px}.manager-view-bar>.actions{align-items:center}.manager-view-bar .field{display:flex;align-items:center;gap:6px}.manager-view-bar label{white-space:nowrap;margin:0}.manager-view-bar .muted{font-size:11px}.manager-view-bar select{width:auto}
.manager-table{background:white;border:1px solid #e1e7dd;border-radius:10px;margin-bottom:8px}.manager-table table{width:100%;font-size:12px}.manager-table th{font-size:11px;padding:10px 9px}.manager-table td{padding:10px 9px;vertical-align:top;max-width:240px;line-height:1.6}.manager-table small{display:block;font-size:10px;color:#7b8b76}.manager-table .positive{color:#24705c}.manager-table .negative{color:#c45f4d}.manager-table td b{font-size:12px}.manager-table .btn{font-size:11px;padding:4px 8px;min-height:28px}.manager-table .manager-issues,.manager-table .manager-operator-note{white-space:normal;min-width:130px;max-width:240px;overflow-wrap:anywhere}
.manager-type{font:inherit;color:#306d59;border:none;background:transparent;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.manager-tag{display:inline-block;background:#f3f6ef;border-radius:4px;padding:2px 5px;margin:1px 4px 2px 0;font-size:10px;white-space:normal}.manager-tag.positive{background:#edf5e8}.manager-tag.negative{background:#fff1ed}.manager-tag.warn{background:#fff6e6;color:#94722f}
.manager-detail-head{display:flex;align-items:center;gap:12px;margin-top:18px}.manager-detail-head h2{font-size:17px;flex:1}.manager-detail-head>span{font-size:11px;color:#7b8b76}.manager-caption{font-size:11px;line-height:1.8;color:#7b8b76;margin:7px 0 10px}.manager-details{display:grid;gap:14px}.manager-owner-label{font-size:13px;font-weight:600;color:#356a54;margin:4px 0 7px}.manager-details>div{scroll-margin-top:20px}
@media(max-width:1450px){.manager-filter-grid{grid-template-columns:minmax(390px,2.8fr) repeat(3,minmax(120px,1fr))}.manager-filter-actions{justify-self:end}.manager-table table{min-width:1190px}}
@media(max-width:1000px){.manager-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.manager-date{grid-column:1 / -1}.manager-filter-actions{justify-self:start}.manager-stats{grid-template-columns:repeat(3,1fr)}.manager-view-bar{flex-wrap:wrap}.manager-detail-head{flex-wrap:wrap}.manager-detail-head h2{flex-basis:100%}}
@media(max-width:600px){.manager-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.manager-date{grid-column:span 2;grid-template-columns:repeat(2,minmax(0,1fr))}.manager-date>.field:first-child{grid-column:1 / -1}.manager-stats{gap:6px}.manager-stat{display:block;padding:8px}.manager-stat span{font-size:10px;display:block}.manager-stat b{font-size:20px}.manager-brief{display:block}.manager-brief>b{display:block}.manager-filter-foot{align-items:flex-start}.manager-view-bar .actions{flex-wrap:wrap}}
.manager-table th:last-child,.manager-table td:last-child{position:sticky;right:0;background:#fff;box-shadow:-4px 0 8px #173f3608}.manager-table th:last-child{background:#f7f9f4}.manager-table td:first-child{white-space:normal;min-width:105px;max-width:160px;overflow-wrap:anywhere}
@media(min-width:1001px) and (max-width:1450px){.manager-table table{min-width:980px}.manager-table th,.manager-table td{padding:8px 7px}.manager-table .manager-issues{min-width:90px}.manager-filter-grid{grid-template-columns:minmax(330px,2.5fr) repeat(3,minmax(105px,1fr))}}
@media(max-width:360px){
 .layout:has(.manager-page) .sidebar{width:48px;padding-left:4px;padding-right:4px}.layout:has(.manager-page) .main{margin-left:48px;width:calc(100% - 48px)}
 .layout:has(.manager-page) .mark{width:34px;height:34px}.layout:has(.manager-page) .nav{padding:10px}.layout:has(.manager-page) .topbar{padding:0 8px}.layout:has(.manager-page) .topbar .pill{display:none}
 .content:has(>.manager-page){padding:12px 6px}.manager-filter{padding:9px 8px}.manager-filter-grid{grid-template-columns:minmax(0,1fr)}.manager-date{grid-column:auto;grid-template-columns:minmax(0,1fr)}.manager-filter-foot{display:block}.manager-filter-foot .btn{margin-top:6px}
 .manager-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.manager-stat{min-width:0}.manager-view-bar .field{display:block;max-width:100%}.manager-view-bar .field select{max-width:100%}.manager-view-bar>.actions{max-width:100%;min-width:0}
 .manager-details .history-record-head{display:flex;flex-direction:column}.manager-details .history-metrics{grid-template-columns:minmax(0,1fr)}.manager-details .history-head-trend{border:0;padding:0;max-width:100%}.manager-details .history-record{padding:9px}.manager-details .history-status{overflow-wrap:anywhere}.manager-details .history-extra{padding:7px}.manager-details .history-extra>summary{display:block}.manager-details .history-extra>summary>*{display:block}.manager-details .history-comparison-head{flex-wrap:wrap}
}
.store-type-create{display:grid;grid-template-columns:1fr auto;gap:8px 10px;align-items:end;margin:15px 0;padding:12px;background:#f5f8f1;border:1px solid #e1e8d9;border-radius:10px}.store-type-create .field{margin:0;min-width:0}.store-type-create>small{grid-column:1/-1;color:#7b8b76;font-size:11px;line-height:1.7}.store-type-create>.btn{white-space:nowrap}.operator-finance-table .manager-operator-note{min-width:220px;max-width:320px}.operator-finance-table .manager-operator-note small{line-height:1.7;white-space:normal}.operator-finance-table td:first-child{min-width:130px;max-width:180px}
@media(max-width:520px){.store-type-create{grid-template-columns:1fr}.store-type-create>small{grid-column:auto}}
.bulk-intro p{margin:10px 0;color:#7d9087;line-height:1.7}.bulk-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.bulk-progress{display:flex;justify-content:space-between;gap:12px;margin:20px 0;color:#7d9087}.bulk-progress b{color:#243d38}.bulk-row{margin:14px 0;padding:20px}.bulk-row-head{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e5e9e1;padding-bottom:12px;margin-bottom:14px}.bulk-row-head>div{flex:1;min-width:0;overflow-wrap:anywhere}.bulk-row-head small{display:block;color:#7d9087;margin-top:5px}.bulk-row-grid{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(190px,1.1fr) minmax(140px,.8fr) auto;gap:18px;align-items:center}.bulk-row-grid>div>b,.bulk-row-grid>div>small{display:block;margin-top:6px}.bulk-row-grid small{color:#7d9087;font-size:12px;line-height:1.6}.bulk-row-grid .field{margin:0}.bulk-row-grid .actions{flex-wrap:wrap}.bulk-result{display:flex;flex-wrap:wrap;gap:18px;padding-top:16px;margin-top:16px;border-top:1px solid #e5e9e1;font-size:13px}.bulk-result b{margin-left:5px}.bulk-match-list{max-height:260px;overflow:auto}.bulk-match-list input{min-width:100px;width:125px}.bulk-intro .disabled{opacity:.6;pointer-events:none}.manager-table td:last-child .btn+.btn{margin:5px 0 0}body:has(#b-confirm) dialog{max-width:850px;width:calc(100% - 32px)}
@media(max-width:1100px){.bulk-row-grid{grid-template-columns:1fr 1fr}.bulk-progress{flex-direction:column}}
@media(max-width:600px){.bulk-row-grid{grid-template-columns:1fr}.bulk-row-head{flex-wrap:wrap}.bulk-row{padding:14px}.bulk-intro .actions{flex-wrap:wrap}.bulk-result{flex-direction:column;gap:8px}}
.sidebar .brand{padding-left:0;padding-right:0;gap:8px}.sidebar .brand .mark{flex-shrink:0;width:36px;height:36px}.sidebar .brand strong{font-size:20px;white-space:nowrap}.sidebar .brand small{font-size:8px;letter-spacing:1px;white-space:nowrap}
.manager-type-label{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:4px}.manager-type-label label{margin-bottom:0}.manager-type-add{border:0;background:transparent;padding:0;color:#236c58;font-size:10px;line-height:1.5;white-space:nowrap}.manager-type-add:hover{text-decoration:underline}.manager-type-create{max-width:520px;margin:10px 0 0}.manager-type-create[hidden]{display:none}.manager-filter .manager-type-create .field label{font-size:11px}
.bulk-focused{margin-bottom:16px;border-color:#aec8b5}.bulk-focused .form-grid{max-width:680px}.bulk-default-shop{max-width:650px;margin:16px 0}.bulk-intro.drag{border:2px dashed #327b61;background:#f3f8ed}.bulk-ads-inputs{display:grid;grid-template-columns:minmax(110px,1fr) 95px;gap:8px}.bulk-row-grid{grid-template-columns:minmax(220px,1.3fr) minmax(190px,1fr) minmax(220px,1fr) auto}.bulk-country-row{display:flex;align-items:center;gap:15px;margin-top:15px}.bulk-country-row .field{max-width:300px;flex:1;margin:0}.bulk-country-row small{font-size:12px;color:#7d9087}.bulk-confirm-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;border-top:1px solid #e5e9e1;padding-top:12px;margin-top:15px}.bulk-confirm-row>span{font-size:12px;line-height:1.8;color:#7d9087}.bulk-cost-panel{border-top:1px solid #e5e9e1;margin-top:18px;padding-top:18px}.bulk-cost-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.bulk-cost-head>.field{width:160px;margin:0}.bulk-cost-panel small{display:block;color:#7d9087;font-size:12px;line-height:1.6}.bulk-cost-panel .actions{flex-wrap:wrap}.bulk-cost-filters{display:flex;gap:10px;align-items:end;margin:16px 0}.bulk-cost-filters>input{max-width:280px}.bulk-cost-filters>.field{max-width:180px;margin:0}.bulk-cost-panel td input{width:125px}.bulk-cost-panel td:first-child{min-width:140px;max-width:250px;overflow-wrap:anywhere}.bulk-cost-panel:has(input:disabled) label.btn{pointer-events:none;opacity:.6}
@media(max-width:1200px){.bulk-row-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.bulk-row-grid{grid-template-columns:1fr}.bulk-cost-head,.bulk-cost-filters,.bulk-country-row{flex-wrap:wrap}.bulk-cost-filters>input{max-width:none}.bulk-country-row>.field{min-width:100%}.bulk-focused .card-head{flex-wrap:wrap}.bulk-cost-head>.field{width:100%}}
.manager-table{container-type:inline-size}.manager-table .manager-expanded-row>td{padding:16px;background:#f3f7ef;white-space:normal;max-width:none;position:static;box-shadow:none}.manager-inline-summary{width:calc(100cqw - 32px);max-width:100%;min-width:0;position:sticky;left:16px}.manager-inline-summary .history-record{margin:0}.manager-inline-summary small{white-space:normal}.manager-table .manager-expanded-row>td small{font-size:11px}.manager-table .manager-expanded-row>td .btn{margin:0}.manager-table .manager-expanded-row>td .history-metrics b{font-size:17px}

.manager-operator-name{padding:0;border:0;background:none;font:inherit;font-weight:700;color:#205e50;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-align:left}.manager-operator-name:hover{color:#173f36}.manager-operator-name:focus-visible{outline:2px solid #367b66;outline-offset:4px;border-radius:2px}

.bulk-row-grid{grid-template-columns:minmax(220px,1.5fr) minmax(190px,1.1fr) minmax(180px,1fr) minmax(170px,.9fr) auto}.bulk-order-counts{padding:10px 14px;border-radius:10px;background:#f3f7ef}.bulk-order-counts>span{display:block}.bulk-order-counts small:last-child{font-size:10px}.bulk-cost-scope{margin-top:16px;padding:18px;background:#f6f8f2;border:1px solid #e2e9d9;border-radius:12px}.bulk-cost-scope h3{margin:0 0 12px}.bulk-cost-scope details{margin:10px 0}.bulk-cost-scope .field{margin-top:14px;max-width:650px}.bulk-cost-scope>small{display:block;margin-top:12px;color:#7b8b76}
@media(max-width:1400px){.bulk-row-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bulk-row-grid>.actions{grid-column:1/-1}}@media(max-width:650px){.bulk-row-grid{grid-template-columns:1fr}}
.bulk-cost-scope .table-wrap{max-height:280px;overflow:auto}.manager-missing-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:18px 0}.manager-missing-heading h2{margin:0 0 6px;font-size:18px}.manager-missing-heading p,.manager-missing-shop p{color:#7d9087;margin:5px 0;font-size:12px}.manager-missing-shop{padding:18px;margin-bottom:12px}.manager-missing-shop h3 small{font-size:12px;font-weight:400;margin-left:8px}.manager-missing-shop td{white-space:normal}.manager-missing-shop td small{display:block;margin-top:4px;color:#7d9087}.manager-missing-shop .card-head{margin-bottom:12px}.manager-missing-shop .manager-caption{display:block;margin-top:10px}.manager-missing-shop .actions{flex-wrap:wrap}@media(max-width:750px){.manager-missing-heading,.manager-missing-shop .card-head{flex-wrap:wrap}.manager-missing-shop{padding:12px}}

.manager-stat small{display:block;font-size:10px;line-height:1.5;color:#7b8b76;margin-top:3px;font-weight:400}.sku-return-scope{margin:10px 0 14px;font-size:12px;line-height:1.8}.sku-return-table table{min-width:800px;width:100%}.sku-return-table td{vertical-align:top}.sku-return-table td:first-child{min-width:150px;max-width:250px;overflow-wrap:anywhere}.sku-return-table td:last-child{min-width:220px;max-width:350px;white-space:normal}.sku-return-pending{margin-top:14px}.sku-return-pending summary{cursor:pointer;color:#8b6b2b;padding:9px 0}.sku-return-pending .table-wrap{margin-top:7px}

.sku-alert-link{border:1px solid #f1c2b8;color:#b94e40;text-align:left;cursor:pointer;line-height:1.6}.sku-alert-link:hover{background:#ffe6de}.sku-alert-link:focus-visible{outline:2px solid #b94e40;outline-offset:2px}
@media(max-width:1000px){.manager-table th:last-child,.manager-table td:last-child{position:static;box-shadow:none}}

.manager-ad-value{display:inline-flex;align-items:baseline;gap:6px;white-space:nowrap}.manager-edit-ads{font-size:10px;margin:0;flex-shrink:0}

/* One date-range field; shortcuts and custom dates open inside its panel. */
.manager-filter-grid{grid-template-columns:minmax(240px,1.8fr) repeat(4,minmax(105px,1fr)) minmax(130px,1.15fr) auto}
.manager-date{display:block;grid-column:auto;position:relative}
.manager-date-picker{position:relative;margin:0;padding:0;border:0;background:transparent}
.manager-date-picker>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #dce5db;border-radius:9px;padding:7px 9px;min-height:34px;background:white;font-size:12px;font-weight:400;color:#34544c}
.manager-date-picker>summary::-webkit-details-marker{display:none}.manager-date-picker>summary>span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.manager-date-picker[open]>summary,.manager-date-picker>summary:focus-visible{outline:2px solid #74a48b;outline-offset:1px}
.manager-date-panel{position:absolute;top:calc(100% + 8px);left:0;width:450px;max-width:calc(100vw - 48px);z-index:30;background:#fff;border:1px solid #dce5db;border-radius:12px;padding:12px;box-shadow:0 12px 32px #163e4226;display:grid;grid-template-columns:94px minmax(0,1fr);gap:14px}
.manager-date-shortcuts{display:grid;gap:4px;border-right:1px solid #edf1e9;padding-right:10px}.manager-date-shortcuts button{border:0;border-radius:6px;background:transparent;font:inherit;font-size:12px;text-align:left;padding:8px;cursor:pointer;color:#496357}.manager-date-shortcuts button:hover,.manager-date-shortcuts button.active{background:#eaf3e4;color:#1b5d4e;font-weight:600}
.manager-date-custom{display:flex;flex-direction:column;gap:12px;padding:4px 0}.manager-date-custom>b{font-size:13px}.manager-date-inputs{display:grid;gap:10px}.manager-date-custom>small{font-size:11px;line-height:1.7;color:#7b8b76}.manager-date-custom>.actions{justify-content:flex-end;margin-top:auto}.manager-date-custom>.negative{font-size:11px}
@media(max-width:1450px){.manager-filter-grid{grid-template-columns:minmax(230px,1.8fr) repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.manager-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.manager-date{grid-column:span 2}}
@media(max-width:600px){.manager-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.manager-date{grid-column:1 / -1}.manager-date-panel{width:100%;max-width:none;grid-template-columns:82px minmax(0,1fr);gap:10px}}
@media(max-width:360px){.manager-filter-grid{grid-template-columns:minmax(0,1fr)}.manager-date-panel{grid-template-columns:76px minmax(0,1fr);padding:9px;gap:8px}.manager-date-custom>.actions{flex-wrap:wrap}}


.manager-trend-link{border:0;background:transparent;padding:2px 0;margin:0;font:inherit;text-align:left;color:inherit;cursor:pointer;display:block;min-width:72px;border-radius:4px}.manager-trend-link:hover{background:#edf4e8}.manager-trend-link:focus-visible{outline:2px solid #44856d;outline-offset:4px}.manager-trend-value{display:inline-flex;align-items:baseline;gap:6px;white-space:nowrap}.manager-trend-hint{display:inline;font-size:10px;font-weight:400;color:#6a897b;text-decoration:underline;text-underline-offset:3px;flex-shrink:0}
.manager-trend-dialog{width:min(1020px,calc(100vw - 32px));max-width:1020px;padding:24px;max-height:90vh;overflow:auto}.trend-dialog-head{display:flex;align-items:flex-start;gap:16px;justify-content:space-between}.trend-dialog-head h2{font-size:21px;overflow-wrap:anywhere}.trend-dialog-head p{margin-top:6px;font-size:12px;color:#78867e}.trend-dialog-head>.btn{flex:none}.trend-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:20px 0 12px}.trend-toolbar>.field{margin:0;min-width:190px}.trend-toolbar label{font-size:11px}.trend-toolbar select{font-size:12px;padding:7px 9px}.trend-metric-tabs{display:flex;gap:4px;background:#f1f5ed;border-radius:9px;padding:4px;flex-wrap:wrap}.trend-metric-tabs button{border:0;background:transparent;padding:8px 12px;border-radius:6px;font-size:12px;color:#567165}.trend-metric-tabs button.active{background:#1c6251;color:white}.trend-caption{font-size:11px;line-height:1.8;color:#7b8b76;margin:9px 0}.trend-chart-scroll{overflow-x:auto;border:1px solid #e4ebe0;border-radius:10px;background:#fbfcf9}.manager-history-chart{display:block;max-width:none}.trend-grid{stroke:#e7ede3;stroke-width:1}.trend-zero{stroke:#90aa9a;stroke-width:1;stroke-dasharray:5 4}.trend-axis{fill:#728477;font-size:11px;font-family:inherit}.trend-line{fill:none;stroke:#277a64;stroke-width:2.5;stroke-linejoin:round}.trend-point{fill:#fff;stroke:#277a64;stroke-width:2.5;cursor:pointer}.trend-point:hover,.trend-point.selected,.trend-point:focus{fill:#d9ac59;stroke:#765718;stroke-width:3;outline:none}.trend-empty{padding:40px 20px;border:1px dashed #d8e2d2;border-radius:10px;color:#7b8b76;text-align:center}.trend-selection{background:#f4f7ef;border:1px solid #dfe9d7;border-radius:10px;padding:14px;margin-top:14px}.trend-selected-head{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;font-size:12px}.trend-selected-head>span{color:#7b8b76}.trend-selected-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0}.trend-selected-metrics small,.trend-selected-metrics b{display:block}.trend-selected-metrics b{font-size:21px;font-variant-numeric:tabular-nums}.trend-comparison{font-size:12px;line-height:1.8}.trend-comparison span{display:block;color:#7b8b76}.trend-records{max-height:250px;overflow:auto;border:1px solid #e2e9dd;border-radius:9px;margin-top:12px}.trend-records table{min-width:670px;font-size:12px;width:100%}.trend-records th{position:sticky;top:0;background:#f5f8f1;z-index:1;font-size:11px}.trend-records tr.selected{background:#eff5e8}.trend-records small{display:block;font-size:10px}
@media(max-width:600px){.manager-trend-dialog{padding:16px;width:calc(100vw - 20px)}.trend-dialog-head h2{font-size:17px}.trend-selected-metrics{gap:8px}.trend-selected-metrics b{font-size:16px}.trend-selected-metrics small{font-size:10px}.trend-toolbar{gap:10px}.trend-metric-tabs button{padding:7px 8px}.trend-toolbar>.field{width:100%}}

.type-manager-add-help{font-size:12px;line-height:1.6;color:var(--muted);margin:-3px 0 16px}
.manager-table small.manager-ad-delta{color:#496f61;margin:4px 0;line-height:1.6}.manager-ad-delta>span{display:block;font-size:10px;color:#8b987f}
.trend-threshold{stroke:#c18d38;stroke-width:1.5;stroke-dasharray:6 4}.trend-threshold-label{fill:#9b722f;font-size:11px}.sku-trend-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-baseline-section{padding:12px;border:1px solid #dce6d6;background:#f8faf5;border-radius:9px}.ad-baseline-section summary{cursor:pointer;font-size:13px;font-weight:600}.ad-baseline-section .actions{justify-content:flex-end}.ad-baseline-section .form-grid{margin-top:10px}.ad-baseline-section .field{margin-bottom:10px}#ad-baseline-error{font-size:12px;color:#c65343;margin:8px 0}

.country-manager-dialog{width:min(760px,calc(100vw - 32px));max-width:760px}.country-manager-list{margin-top:14px;display:grid;gap:10px}.country-manager-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #e1e9dc;border-radius:10px;padding:14px}.country-manager-row span,.country-manager-row small{display:block;color:#7b8b76;font-size:12px;line-height:1.8}.country-manager-row .actions{flex-shrink:0}@media(max-width:600px){.country-manager-row{align-items:flex-start;flex-direction:column}.country-manager-row .actions{align-self:flex-end}}

.manager-yesterday-heading{margin:20px 0 12px}.manager-yesterday-heading h2{font-size:17px}.manager-fill-yesterday{font-size:10px}
@media(min-width:1001px) and (max-width:1599px){.manager-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
.ad-screenshot{border:1px dashed #b9cebe;border-radius:8px;background:#fff;padding:12px;margin:12px 0}.ad-screenshot-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}.ad-screenshot .form-grid{gap:10px}.ad-screenshot .field{margin-top:4px;min-width:0}.ad-screenshot .field input,.ad-screenshot .field select{min-width:0}.ad-ocr-check{white-space:pre-line;font-size:12px;color:#ac6b27;line-height:1.7;margin:10px 0}.ad-ocr-confirm{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.7}.ad-ocr-confirm input{width:auto;flex:none;margin-top:4px}
.ad-screenshot-paste{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 12px;margin-top:8px;padding:10px 12px;border:1px dashed #a4c4b3;border-radius:8px;background:#f3f8f0;cursor:text;text-align:center;color:#365f4d;font-size:12px;line-height:1.8}.ad-screenshot-paste:focus-visible{outline:2px solid #38816a;outline-offset:2px}.ad-screenshot-paste span{color:#74866f;font-size:11px}.ad-screenshot-paste kbd{padding:2px 5px;border:1px solid #d5dfce;border-radius:4px;background:#fff;font:inherit;color:#365f4d}
#dialog:has(#edit-ad-yesterday){width:940px;max-height:92vh;overflow:auto;padding:22px}#dialog:has(#edit-ad-yesterday) .field{margin-top:6px;margin-bottom:0;min-width:0}#dialog:has(#edit-ad-yesterday) .field input,#dialog:has(#edit-ad-yesterday) .field select{min-width:0}#dialog:has(#edit-ad-yesterday) .spaced{margin-top:12px}#dialog:has(#edit-ad-yesterday) .trend-caption{margin:6px 0;line-height:1.6}#dialog:has(#edit-ad-yesterday) .btn{padding:8px 12px;font-size:12px}#dialog:has(#edit-ad-yesterday) .ad-baseline-fields,#dialog:has(#edit-ad-yesterday) .ad-ocr-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}#dialog:has(#edit-ad-yesterday) .manager-ad-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ad-baseline-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.ad-baseline-footer .actions{flex-shrink:0;gap:6px}.manager-ad-current{margin-top:16px}.manager-ad-current h3{font-size:14px}.manager-ad-current #edit-ad-preview{display:flex;align-items:center;flex-wrap:wrap;gap:4px 18px}#dialog:has(#edit-ad-yesterday) #modal-form>.bottom-actions{position:sticky;bottom:-22px;padding:12px 0 6px;margin-top:12px;background:#fff;border-top:1px solid #e3eade;z-index:2}#ad-baseline-preview:empty,#ad-baseline-error:empty,#ad-screenshot-status:empty,#ad-ocr-check:empty{display:none}
@media(max-width:700px){#dialog:has(#edit-ad-yesterday){padding:16px}#dialog:has(#edit-ad-yesterday) .ad-baseline-fields,#dialog:has(#edit-ad-yesterday) .ad-ocr-fields,#dialog:has(#edit-ad-yesterday) .manager-ad-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#dialog:has(#edit-ad-yesterday) #modal-form>.bottom-actions{bottom:-16px}.ad-baseline-footer .actions{margin-left:auto}}@media(max-width:420px){#dialog:has(#edit-ad-yesterday) .ad-baseline-fields,#dialog:has(#edit-ad-yesterday) .ad-ocr-fields,#dialog:has(#edit-ad-yesterday) .manager-ad-fields{grid-template-columns:minmax(0,1fr)}}

.directory-toolbar{display:flex;gap:12px;align-items:end;margin:16px 0}.directory-toolbar .field{flex:1;margin:0}.country-manager-row small{display:block;margin-top:5px;color:var(--muted)}.manager-type-label{flex-wrap:wrap;gap:4px}.manager-type-actions{gap:6px}

.bulk-screenshot-entry{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px;margin-top:10px;border:1px dashed #c8d8cd;border-radius:10px;background:#fafcf9}.bulk-screenshot-entry small{display:block;margin-top:4px;color:var(--muted)}.bulk-screenshot-dialog{width:min(940px,calc(100vw - 32px));max-width:940px}.bulk-screenshot-dialog .ad-ocr-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.bulk-screenshot-dialog .ad-screenshot{margin-top:14px}.bulk-row .bulk-screenshot-entry{padding:6px;font-size:11px}.bulk-row .bulk-screenshot-entry small{display:none}@media(max-width:700px){.bulk-screenshot-dialog .ad-ocr-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

.bulk-date-format{margin-top:10px}.bulk-date-format .field{margin-bottom:0}

.cost-sheet-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:6px;max-height:250px;overflow:auto}.cost-sheet-choice{display:flex;align-items:center;gap:9px;padding:8px;background:#f5f8f1;border:1px solid #e3eadd;border-radius:8px}.cost-sheet-choice input{width:auto}.cost-sheet-choice small{display:block;color:#718174;font-size:11px;margin-top:3px}.cost-sheet-settings summary{cursor:pointer;color:#46614e}.cost-config .warning>div+div{margin-top:8px}

.multi-piece-summary{margin-bottom:20px}.multi-piece-summary.compact{margin-top:18px;padding:16px;border:1px solid var(--line,#dce5dc);border-radius:10px;background:#f7faf5}.multi-piece-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:12px}.multi-piece-grid>div{padding:12px;background:#f5f8f2;border-radius:8px}.multi-piece-grid span{display:block;font-size:12px;color:#728475;margin-bottom:7px}.multi-piece-grid b{font-size:20px;white-space:nowrap}.multi-piece-grid b small{font-size:12px;font-weight:400}.multi-piece-grid .multi-piece-total{background:#e7f0e0}.aftersales-loss small{display:block;margin-top:6px;line-height:1.6}@media(max-width:1100px){.multi-piece-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:620px){.multi-piece-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.manager-table .multi-piece-grid b{font-size:20px}.manager-table .multi-piece-grid b small{display:inline;font-size:12px}

.country-extra-cell{min-width:180px}.country-extra-cell>b,.country-extra-cell>small{display:block}.country-extra-cell>small{font-size:11px;color:var(--muted);margin:3px 0 8px}.country-fee-examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.country-fee-examples>div{padding:10px;background:white;border:1px solid #e0e8dc;border-radius:8px}.country-fee-examples span,.country-fee-examples strong,.country-fee-examples small{display:block}.country-fee-examples strong{font-size:19px;margin:7px 0}.country-fee-examples small{font-size:11px;color:var(--muted)}

/* Rebate scenarios */
dialog:has(#rebate-scenario){width:820px;max-width:calc(100vw - 32px)}
.rebate-context{color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 12px}
.rebate-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;margin:14px 0}
.rebate-form-grid .field{margin:0}.rebate-form-grid [hidden]{display:none}
.rebate-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 12px}
.rebate-result-grid>div{background:#f5f8f1;border:1px solid #e5ebdf;border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:6px}
.rebate-result-grid span,.rebate-result-grid small{font-size:12px}.rebate-result-grid b{font-size:20px}.rebate-result-grid strong{font-size:24px}
.rebate-result-grid .rebate-net{background:#eaf3e4}.rebate-result-grid .rebate-net.negative{background:#fff1ed}
.rebate-equation{font-size:16px;padding:10px 0}.rebate-rule{font-size:12px;line-height:1.7;color:#718377;margin:16px 0}
.manager-provisional{color:#9b7938}
@media(max-width:650px){.rebate-form-grid{grid-template-columns:1fr}.rebate-result-grid{grid-template-columns:1fr}.rebate-result-grid>div{padding:10px}}

dialog:has(#country-rebate-policy){width:780px;max-width:calc(100vw - 32px)}
#country-rebate-policy .info{font-size:12px;line-height:1.7}
.policy-tiers-heading{display:flex;justify-content:space-between;align-items:center;margin:18px 0 10px}
.policy-tier-row{display:grid;grid-template-columns:60px 1fr 1fr 55px;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e9eee4}
.policy-tier-row .field{margin:0}.policy-tier-row>b{font-size:12px}.policy-tier-row .btn{align-self:end;margin-bottom:2px}
.country-policy-cell{min-width:190px;max-width:260px;white-space:normal}.country-policy-cell small{display:block;line-height:1.7}.country-policy-cell .btn{margin-top:8px}
.manager-policy-rebate{min-width:150px}.manager-policy-rebate .manager-type{margin-right:8px}.manager-policy-rebate small{white-space:normal;max-width:180px}
.manager-policy-summary{display:grid;grid-template-columns:1fr 2fr;gap:18px;background:#f1f6ec;border:1px solid #e1e9da;border-radius:9px;padding:14px 18px;margin:14px 0}
.manager-policy-summary>div{display:flex;flex-direction:column;gap:4px}.manager-policy-summary span,.manager-policy-summary small{font-size:11px}.manager-policy-summary strong{font-size:19px}.manager-policy-summary b{font-size:12px}
@media(max-width:700px){.policy-tier-row{grid-template-columns:1fr 1fr}.policy-tier-row>b{grid-column:1/-1}.policy-tier-row .btn{grid-column:2;justify-self:end}.manager-policy-summary{grid-template-columns:1fr}}

dialog:has(#manager-layout-editor){width:780px;max-width:calc(100vw - 32px)}
.layout-editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:16px 0}.layout-editor-toolbar .field{margin:0;max-width:200px}
.layout-editor-columns{max-height:48vh;overflow:auto;border:1px solid #e1e7dd;border-radius:8px}
.layout-editor-row{display:grid;grid-template-columns:minmax(200px,1fr) 160px 86px;gap:12px;align-items:center;padding:9px 12px;border-bottom:1px solid #edf0e9}.layout-editor-row:last-child{border:0}
.layout-editor-row .check-line{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}.layout-editor-row small{font-size:10px;color:#7b8b76}.layout-editor-row .actions{gap:4px;flex-wrap:nowrap}
.layout-width{display:flex;align-items:center;gap:6px;font-size:12px;color:#718377}.layout-width input{width:86px;min-height:32px;padding:6px 8px}
.manager-layout-scroll{overflow-x:auto;overflow-y:hidden;height:16px;margin:4px 0 2px}.manager-layout-scroll>div{height:1px}
.manager-custom-layout>table>thead>tr>th[hidden],.manager-custom-layout>table>tbody>tr>td[hidden]{display:none}
.manager-custom-layout>table>tbody>tr:not(.manager-expanded-row)>td{white-space:normal;overflow-wrap:anywhere}
.manager-custom-layout>table>tbody>tr:not(.manager-expanded-row)>td.manager-issues .badge{white-space:normal;overflow-wrap:break-word;max-width:100%;display:inline-block}
.manager-custom-layout[data-density="comfortable"]>table>tbody>tr:not(.manager-expanded-row)>td{padding:14px 10px;line-height:1.7}
.manager-custom-layout[data-density="compact"]>table>tbody>tr:not(.manager-expanded-row)>td{padding:6px 8px;line-height:1.45}
.manager-custom-layout[data-density="compact"]>table>tbody>tr:not(.manager-expanded-row)>td .btn{min-height:24px;padding:3px 7px}
@media(max-width:650px){.layout-editor-row{grid-template-columns:minmax(150px,1fr) 140px}.layout-editor-row>.actions{grid-column:1/-1;justify-self:end}.layout-editor-row small{display:none}}

/* Workspace fill, draggable columns and a resizable presentation editor. */
.content.manager-fluid:has(>.manager-page){max-width:none;width:100%;padding-left:18px;padding-right:18px}
.manager-custom-layout[data-fit="true"]{overflow-x:visible}
.manager-custom-layout[data-fit="true"]>table>thead>tr>th{white-space:normal;overflow-wrap:anywhere;padding:8px 7px}
.manager-custom-layout[data-fit="true"] .manager-sort-heading{white-space:normal;text-align:left;gap:2px}
.manager-custom-layout[data-fit="true"]>table>tbody>tr:not(.manager-expanded-row)>td{padding:6px;overflow:visible}
.manager-custom-layout[data-fit="true"] .manager-ad-value{white-space:normal;flex-wrap:wrap;gap:2px 5px}
.manager-custom-layout[data-fit="true"] .manager-ad-value>span{white-space:nowrap}
.manager-custom-layout[data-fit="true"] .manager-policy-rebate small{max-width:none}
.manager-custom-layout[data-fit="true"]>table>tbody>tr:not(.manager-expanded-row)>td .btn{max-width:100%;white-space:normal;padding-left:4px;padding-right:4px}
.manager-custom-layout[data-fit="true"] .manager-trend-link{min-width:0;max-width:100%}
.manager-custom-layout[data-fit="true"] .manager-trend-value{max-width:100%;white-space:normal;flex-wrap:wrap;gap:2px 5px}
.manager-custom-layout[data-fit="true"] .manager-update-time{white-space:normal;overflow-wrap:anywhere}
.manager-custom-layout>table>thead>tr>th{position:relative;padding-right:12px}
.manager-column-resize{position:absolute;right:0;top:0;bottom:0;width:9px;cursor:col-resize;touch-action:none;z-index:2}
.manager-column-resize::after{content:'';position:absolute;right:3px;top:22%;bottom:22%;width:2px;background:#d5e1d3;border-radius:2px}
.manager-column-resize:hover::after,.manager-column-resize:focus::after{background:#277b61;width:3px}
.manager-column-resize:focus-visible{outline:2px solid #277b61;outline-offset:-2px}
body.manager-resizing,body.manager-resizing *{user-select:none!important}
dialog.manager-layout-dialog{max-height:calc(100vh - 32px);max-width:calc(100vw - 32px);padding:22px;overflow:hidden}
.manager-layout-dialog #modal-form{height:100%;display:flex;flex-direction:column;min-height:0;gap:10px}
.manager-layout-dialog #modal-form>h2{flex:none}
.manager-layout-dialog #modal-form>.bottom-actions{flex:none;margin-top:0;padding-top:8px;border-top:1px solid #e3e9dd}
.manager-layout-dialog #modal-error:empty{display:none}
.manager-layout-dialog #manager-layout-editor{display:flex;flex-direction:column;min-height:0;flex:1;overflow:auto;gap:10px}
.manager-layout-dialog .info{padding:8px 12px;flex:none}
.manager-layout-dialog .layout-editor-toolbar{margin:0;flex:none;flex-wrap:wrap;gap:8px}
.manager-layout-dialog .layout-editor-toolbar .field{max-width:140px}
.manager-layout-dialog .layout-fit-option{margin:0;align-items:center;flex:none}
.manager-layout-dialog .layout-editor-columns{max-height:none;flex:1;min-height:80px}
.manager-layout-dialog .layout-editor-row{grid-template-columns:minmax(170px,1fr) minmax(200px,1fr) 72px;padding:3px 10px;gap:10px}
.manager-layout-dialog .layout-editor-row .btn{min-height:28px;padding:3px 8px}
.layout-width-control{display:flex;align-items:center;gap:12px;min-width:0}
.layout-width-control input[type=range]{flex:1;min-width:50px;padding:0;accent-color:#23715a;height:22px;cursor:ew-resize}
.layout-width-control .layout-width{flex:none;gap:4px}
.layout-width-control .layout-width input{width:64px;min-height:28px;padding:2px 5px}
.layout-width-control .layout-width span{width:36px;font-size:10px}
.layout-save-hint{font-size:11px;flex:none}
.manager-dialog-resize{position:absolute;right:2px;bottom:1px;padding:0;border:0;background:transparent;width:24px;height:24px;color:#598e78;font-size:20px;line-height:1;cursor:nwse-resize;touch-action:none}
@media(max-width:700px){.manager-layout-dialog .layout-editor-row{grid-template-columns:minmax(0,1fr) 68px}.manager-layout-dialog .layout-width-control{grid-row:2;grid-column:1/-1}.manager-layout-dialog .layout-editor-row>.actions{grid-row:1;grid-column:2}.manager-layout-dialog{padding:14px}.content.manager-fluid:has(>.manager-page){padding:10px 6px}.manager-custom-layout[data-fit="true"]{overflow-x:auto}.manager-custom-layout[data-fit="true"]>table{min-width:1000px!important}}
/* Policy configuration and execution share the saved dashboard layout column. */
#dialog:has(#country-rebate-policy),#dialog:has(#policy-execution){width:min(1080px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.policy-tier-card{padding:12px 0;border-bottom:1px solid var(--line,#e3e8df)}
.policy-tier-card .card-head{margin-bottom:8px}
.policy-config-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.policy-exec-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.policy-exec-controls>.field:first-child{grid-column:1/-1}
#policy-execution .check-line{margin:8px 0}
#policy-execution .policy-funds-table{width:100%;min-width:660px;table-layout:fixed}
#policy-execution .policy-funds-table th,#policy-execution .policy-funds-table td{padding:8px 6px;white-space:normal}
#policy-execution .policy-funds-table input{width:100%;min-width:0;padding:8px 6px}
#policy-execution [hidden]{display:none!important}
.manager-policy-summary{grid-template-columns:1fr 1fr 1.4fr}
@media(max-width:700px){.policy-config-grid,.policy-exec-controls{grid-template-columns:1fr 1fr}.manager-policy-summary{grid-template-columns:1fr}.policy-exec-controls>.field:first-child{grid-column:1/-1}}
#dialog[open]:has(#policy-execution) #modal-form,#dialog[open]:has(#country-rebate-policy) #modal-form{display:flex;flex-direction:column;max-height:calc(90vh - 56px)}
#policy-execution,#country-rebate-policy{min-height:0;overflow:auto;padding-right:4px}
#dialog:has(#policy-execution) .bottom-actions,#dialog:has(#country-rebate-policy) .bottom-actions{flex-shrink:0;margin-top:12px;padding-top:12px}
#policy-execution .field,#country-rebate-policy .field{margin:0}
#policy-execution .spaced,#country-rebate-policy .spaced{margin-top:12px}
#policy-execution .info,#country-rebate-policy .info{padding:10px 12px}
#policy-execution .policy-exec-controls{margin-top:12px}
#policy-execution #exec-window-field{margin:10px 0}
.policy-fund-details summary{cursor:pointer;font-size:11px;color:#28725f}
.policy-fund-details small{white-space:normal}
.policy-simple-grid{display:grid;grid-template-columns:2fr 1fr;gap:14px}
#policy-execution .policy-received-check{padding:14px;background:#edf5e8;border:1px solid #d4e5ca;border-radius:9px;margin-top:16px}
.policy-simple-result{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.policy-simple-result>div{background:#f5f8f1;border:1px solid #e3ebdd;border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:4px}
.policy-simple-result strong{font-size:23px;color:#254f44}
#policy-execution.policy-simple [hidden]{display:none!important}
@media(max-width:700px){.policy-simple-grid{grid-template-columns:1fr}.policy-simple-result{gap:6px}.policy-simple-result>div{padding:7px}.policy-simple-result strong{font-size:17px}}
.policy-config-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.policy-simple-grid:has(>#exec-tier){grid-template-columns:1fr}
.policy-simple-grid>.field:has(#exec-tier){grid-column:1/-1}
.policy-cell{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;container-type:inline-size;container-name:policycell}
.policy-cell-header{display:flex;align-items:center;justify-content:space-between;gap:4px 8px;flex-wrap:wrap}
.policy-cell-header>.manager-type{margin:0;font-size:10px}
.policy-cell-header .policy-fund-details summary{font-size:10px;white-space:nowrap}
.policy-cell-header .policy-fund-details[open]{flex-basis:100%;order:2}
.policy-spend-progress{--progress-ink:#64756b;--progress-fill:#9aa99f;--progress-soft:#edf1ee;--progress-surface:#f7f9f7;min-width:0;padding:7px 8px;border:1px solid #e3e9e1;border-radius:7px;background:var(--progress-surface);font-variant-numeric:tabular-nums}
.policy-spend-progress.stage-early{--progress-ink:#9b5a13;--progress-fill:#d49642;--progress-soft:#f8e9d2;--progress-surface:#fffaf3}
.policy-spend-progress.stage-mid{--progress-ink:#326c9b;--progress-fill:#5c92bd;--progress-soft:#e0edf6;--progress-surface:#f7fbfe}
.policy-spend-progress.stage-near{--progress-ink:#287d62;--progress-fill:#55a58a;--progress-soft:#deefe7;--progress-surface:#f5fbf7}
.policy-spend-progress.stage-complete{--progress-ink:#5541a5;--progress-fill:#7160c8;--progress-soft:#e3def6;--progress-surface:#f5f2fc}
.policy-progress-heading{display:flex;align-items:baseline;justify-content:space-between;gap:4px;flex-wrap:wrap;font-size:10px;line-height:1.5;color:var(--progress-ink)}
.manager-policy-rebate .policy-progress-heading b{font-size:14px;line-height:1.25;color:var(--progress-ink);font-weight:700}
.policy-progress-track{height:7px;background:var(--progress-soft);border-radius:99px;overflow:hidden;margin:4px 0 0}
.policy-progress-track>span{display:block;height:100%;background:var(--progress-fill);border-radius:inherit}
.policy-progress-amounts{display:flex;flex-wrap:wrap;gap:5px 8px;margin-bottom:7px}
.manager-policy-rebate .policy-progress-amounts small{display:flex;flex-direction:column;align-items:flex-start;gap:0;line-height:1.55;max-width:none;flex:1 0 78px}
.manager-policy-rebate .policy-progress-amounts small>b{font-size:11px}
.policy-progress-amounts small>span:last-child,.policy-progress-amounts small>b{white-space:nowrap;font-variant-numeric:tabular-nums}
.policy-progress-amounts small>span:last-child{color:#526658}
.manager-policy-rebate .policy-progress-remaining{color:var(--progress-ink)}
.policy-progress-remaining b{color:var(--progress-ink);font-size:12px;font-weight:700}
.policy-cell-actions{display:flex;align-items:baseline;justify-content:space-between;gap:4px 8px;flex-wrap:wrap}
.manager-policy-rebate .policy-cell-actions>.manager-type{margin:0;font-size:10px;white-space:nowrap}
.policy-cell-actions .policy-fund-details summary{font-size:10px;white-space:nowrap}
.policy-cell-actions .policy-fund-details[open]{flex-basis:100%;order:2}
.policy-detail-content{margin-top:4px;padding:6px 8px;background:#f6f8f3;border-radius:5px;white-space:normal}
.policy-detail-content small{max-width:none;overflow-wrap:anywhere}
.policy-cell-hint{margin:2px 0}
.manager-policy-rebate .policy-receipt-status{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:2px 6px;margin-bottom:3px;border:1px solid;border-radius:5px;font-family:inherit;font-size:12px;font-weight:700;line-height:1.5;white-space:normal;text-align:left;cursor:pointer}
.policy-receipt-status:hover{filter:brightness(.96)}
.policy-receipt-status:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.policy-receipt-status:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}
.manager-policy-rebate .policy-receipt-status.is-received{color:#1c684f;background:#eaf5ef;border-color:#cee8db}
.manager-policy-rebate .policy-receipt-status.is-unreceived{color:#9a5c13;background:#fff5e4;border-color:#f2dfba}

@container policycell (max-width:260px){.policy-progress-amounts{gap:1px}.manager-policy-rebate .policy-progress-amounts small{flex-basis:100%;flex-direction:row;align-items:baseline;justify-content:space-between;gap:2px 5px;flex-wrap:wrap}}

/* Country fees use the full workspace width, with all desktop columns visible. */
.content:has(#country-search){max-width:none;width:100%;padding-left:18px;padding-right:18px}
.content:has(#country-search)>.card{padding:20px}
.content:has(#country-search) .table-wrap>table{table-layout:fixed;min-width:1020px;white-space:normal}
.content:has(#country-search) .table-wrap th,.content:has(#country-search) .table-wrap td{padding:12px 8px;min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.content:has(#country-search) .table-wrap th:nth-child(1){width:7%}
.content:has(#country-search) .table-wrap th:nth-child(2){width:5%}
.content:has(#country-search) .table-wrap th:nth-child(3){width:9%}
.content:has(#country-search) .table-wrap th:nth-child(4){width:11%}
.content:has(#country-search) .table-wrap th:nth-child(5){width:12%}
.content:has(#country-search) .table-wrap th:nth-child(6){width:6%}
.content:has(#country-search) .table-wrap th:nth-child(7){width:18%}
.content:has(#country-search) .table-wrap th:nth-child(8),.content:has(#country-search) .table-wrap th:nth-child(9),.content:has(#country-search) .table-wrap th:nth-child(10),.content:has(#country-search) .table-wrap th:nth-child(11){width:8%}
.content:has(#country-search) .table-wrap td:last-child .btn{display:flex;width:max-content;max-width:100%;margin-bottom:6px;white-space:normal}
@media(max-width:1450px){.content:has(#country-search)>.card{padding:14px}.content:has(#country-search) .table-wrap th,.content:has(#country-search) .table-wrap td{padding:10px 6px}}
@media(max-width:700px){.content:has(#country-search){padding:16px 8px}.content:has(#country-search)>.card{padding:10px}}

.manager-policy-rebate .policy-receipt-status.is-complete{color:#5541a5;background:#f0ebfc;border-color:#d8cef3;font-weight:800}
.policy-not-applicable{color:#66727c;font-size:12px}
.country-type-policies{display:grid;gap:8px}
.country-type-policy{padding:10px;border:1px solid #e3e9e2;border-radius:8px;background:#f8faf7}
.country-type-policy-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.country-type-policy-head .btn{padding:4px 8px;white-space:nowrap}
.country-type-policy small{display:block;line-height:1.7;margin-top:4px}
.country-type-no-policy{display:flex;gap:8px;flex-wrap:wrap;color:#66727c;font-size:12px;padding:4px 10px}
.manager-order-count{font-variant-numeric:tabular-nums}

.policy-cash-status{font-size:12px;color:#31619a;background:#edf4fc;padding:3px 6px;border-radius:5px}
.policy-cash-status.qualified{color:#5541a5;background:#f0ebfc}
.policy-cash-amounts small{display:flex;justify-content:space-between;gap:6px}
.policy-cash-track{height:6px;border-radius:6px;background:#e1eafa;overflow:hidden;margin-top:6px}
.policy-cash-track span{display:block;height:100%;background:#617ab5;border-radius:inherit}
.manager-policy-summary .manager-cash-rebate-summary{flex-direction:row;justify-content:flex-start;text-align:left;grid-column:1 / -1;border-top:1px solid #dce6d8;padding-top:12px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}

/* Keep the separate execution column compact without hiding its amounts. */
.manager-policy-execution .policy-cell{gap:2px}
.manager-policy-execution .policy-spend-progress{padding:4px 5px;border-radius:5px;max-width:190px}
.manager-policy-execution .policy-progress-amounts{gap:0;margin-bottom:2px}
.manager-policy-execution .policy-progress-amounts small{flex-basis:100%;flex-direction:row;align-items:baseline;justify-content:space-between;gap:0 4px;flex-wrap:wrap;font-size:10px;line-height:1.25}
.manager-policy-execution .policy-progress-amounts small>b{font-size:10px}
.manager-policy-execution .policy-progress-heading{font-size:9px;line-height:1.2;gap:2px}
.manager-policy-execution .policy-progress-heading b{font-size:11px;line-height:1.2}
.manager-policy-execution .policy-progress-track{height:4px;margin-top:2px}
.manager-policy-rebate .policy-cell-actions{justify-content:flex-start;gap:2px 8px}
.manager-policy-rebate .policy-progress-profit.positive b{color:#287d62}
.manager-policy-rebate .policy-progress-profit.negative b{color:#cf5749}
.policy-profit-details{font-size:10px;margin-top:3px;color:#426258}
.policy-profit-details summary{cursor:pointer;color:#247d6a;list-style-position:inside}
.policy-profit-details>div{padding:6px;border:1px solid #dfe9e4;border-radius:5px;background:#fff}
.policy-profit-details small,.policy-result-card>small{display:flex!important;justify-content:space-between;gap:4px;line-height:1.4}
.policy-profit-details p{font-size:10px;line-height:1.5;margin:5px 0 0;color:#68776f}
.policy-profit-details b{font-variant-numeric:tabular-nums;white-space:nowrap}
.policy-result-card{margin-top:4px}
.manager-policy-profit-summary{grid-column:1/-1;display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:center;gap:8px 20px;border-top:1px solid #e1e9dc;padding-top:10px}
.manager-policy-profit-summary strong{display:inline;font-size:16px}
.manager-policy-profit-summary small{flex-basis:100%}
.manager-policy-execution .policy-profit-unavailable b{color:#9b5a13}

/* Policy facets count one current snapshot per store, across all result pages. */
.manager-policy-filter{display:flex;align-items:center;gap:6px;min-width:0}
.manager-policy-filter label{font-size:inherit;color:inherit;white-space:nowrap;margin:0}
.manager-policy-filter select{font:inherit;min-width:0;max-width:100%;color:#365b52;border:1px solid #d3e1d8;background:#fff;border-radius:5px;padding:4px 18px 4px 5px;min-height:26px}
.manager-policy-filter select.is-active{font-weight:700;color:#195e4c;background:#eaf4ee;border-color:#86b29f}
.manager-policy-heading-filter{display:block;padding-right:3px}
.manager-policy-heading-filter label{display:block;margin-bottom:3px}
.manager-policy-heading-filter select{width:100%;font-size:11px;line-height:1.3}
#manager-content:has(th[data-layout-key="返点 / 档位（USD）"]:not([hidden])) .manager-policy-toolbar-filter{display:none}

.ad-ocr-evidence{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px;margin:8px 0 12px;border:1px solid #cee4dc;border-radius:8px;background:#f1f8f4;color:#176551}.ad-ocr-evidence strong{display:block;font-size:14px;font-variant-numeric:tabular-nums}.ad-ocr-evidence small{display:block;margin-top:4px;font-size:11px;color:#667b73}.ad-ocr-evidence.unresolved{background:#fff8ec;border-color:#efdcb7;color:#97621c}.ad-ocr-amount-crop{max-width:220px;max-height:44px;object-fit:contain;border:1px solid #dce5df;border-radius:4px}

/* TikTok Shop connections */
.shop-connect-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.shop-connect-summary .card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px}.shop-connect-summary b{font-size:26px;color:var(--primary,#196654)}.shop-connect-table{width:100%;min-width:850px}.shop-connect-table small{display:block;margin-top:5px}.shop-connect-table td{vertical-align:top;padding:16px 12px}.shop-confirm{display:flex;gap:8px;align-items:center;margin:16px 0}.shop-confirm input{width:auto}.shop-bind-card{border-color:#8cbaa7}.shop-connect-table .actions{flex-wrap:wrap}.shop-connect-summary+.info p{margin-bottom:0}@media(max-width:800px){.shop-connect-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.shop-connect-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.shop-connect-head p{color:#78867e;margin-top:6px}@media(max-width:800px){.shop-connect-head{align-items:flex-start;flex-direction:column}}
