@charset "UTF-8";
:root{--accent:#187766;--accent-hover:#116452;--accent-soft:#e7f4ee;--mint:#a6ddc6;--text:#202c37;--muted:#6a7680;--faint:#8d969e;--border:#e9edef;--canvas:#f5f7f8;--surface:#fff;--danger:#b65351;--amber:#96651a;--blue:#507ab3;--radius:12px;--sidebar:246px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);background:var(--canvas);font-synthesis:none;font-size:14px;line-height:1.5;font-weight:400}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button{color:inherit}a{color:inherit;text-decoration:none}button{background:none;border:0}svg{display:block}button svg,span[data-icon] svg{width:18px;height:18px;flex-shrink:0}button:disabled{opacity:.45;cursor:not-allowed}button,input,select,a,textarea{outline-offset:4px}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid var(--accent)}button,a{transition:background .18s,color .18s,border-color .18s,box-shadow .18s}button:active:not(:disabled){filter:brightness(.96)}.skip-link{position:fixed;top:8px;left:270px;padding:10px;background:var(--text);color:#fff;z-index:100;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:40}.brand{height:91px;display:flex;gap:11px;align-items:center;padding:0 26px}.brand-symbol{height:38px;width:38px;border-radius:11px;background:var(--accent);color:#fff;display:grid;place-items:center;box-shadow:0 4px 8px #18776612}.brand-symbol svg{width:29px;height:29px}.wordmark{font-size:27px;font-weight:750;letter-spacing:-1.3px;line-height:1.1}.brand-dot{color:var(--accent)}.wordmark small{font-size:10px;display:block;font-weight:450;letter-spacing:.4px;color:var(--muted);margin-top:5px}.workspace-label{margin:0 18px 24px;padding:11px 10px;display:flex;align-items:center;gap:9px;border:1px solid var(--border);border-radius:8px;font-size:12px;font-weight:550}.workspace-label small{display:block;color:var(--muted);font-size:10px;font-weight:400;letter-spacing:.5px;margin-top:1px}.workspace-mark{display:grid;place-items:center;background:#f1f4f3;color:var(--accent);height:31px;width:31px;border-radius:6px;font-weight:700}.workspace-tag{font-size:8px;letter-spacing:.6px;margin-left:auto;color:#727c82;background:#f2f4f5;border:1px solid var(--border);padding:2px 5px;border-radius:4px}#navigation{overflow-y:auto;flex:1;min-height:0;padding:0 14px 20px;scrollbar-width:thin}.nav-label{color:#7f8992;font-size:10px;font-weight:600;letter-spacing:1.2px;padding:0 13px;margin:0 0 10px}.nav-label.secondary{margin:22px 0 8px;display:flex;align-items:center;justify-content:space-between}.nav-label button{color:#7f8992;border-radius:4px;padding:3px}.nav-label button:hover{color:var(--accent);background:var(--accent-soft)}.nav-label svg{width:15px;height:15px}.nav-item,.nav-group{display:flex;align-items:center;width:100%;gap:11px;padding:11px 13px;border-radius:7px;text-align:left;font-size:12px;color:#626d78;margin:3px 0;min-height:40px;font-weight:500}.nav-item svg,.nav-group svg{height:17px;width:17px;color:#7c8791;flex-shrink:0}.nav-item:hover,.nav-group:hover{background:#f5f7f7}.nav-item.active{color:var(--accent);background:var(--accent-soft);font-weight:650}.nav-item.active svg{color:var(--accent)}.nav-chevron{margin-left:auto;display:flex}.nav-chevron svg{width:13px;height:13px}.nav-count{margin-left:auto;font-size:10px;border:1px solid #e4e8eb;border-radius:4px;padding:0 5px;color:#7a848c;font-variant-numeric:tabular-nums}.nav-item.active .nav-count{background:#cce8da;border-color:transparent;color:var(--accent)}.nav-children{padding-left:23px;margin-left:20px;border-left:1px solid var(--border)}.nav-children .nav-item,.nav-children .nav-group{padding:7px 10px;min-height:32px;font-size:11px;gap:7px}.nav-children .nav-children{margin-left:10px;padding-left:8px}.nav-dot{height:5px;width:5px;border-radius:50%;background:#adb6bd;flex-shrink:0;margin-right:4px}.nav-dot.green{background:var(--accent)}.nav-dot.amber{background:#ca9c52}.nav-dot.red{background:#c37170}.shop-letter{width:21px;height:21px;display:grid;place-items:center;border-radius:5px;background:var(--accent-soft);color:var(--accent);font-size:10px;font-weight:700;flex-shrink:0}.shop-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-empty{font-size:11px;padding:8px 15px;color:var(--muted)}.sidebar-bottom{padding:0 18px 15px}.workspace-note{background:#f6f8f7;border:1px solid #edf0ee;border-radius:9px;padding:15px 14px;margin-bottom:14px}.note-icon{display:inline-flex;color:var(--accent);margin-bottom:9px}.workspace-note strong{display:block;font-size:11px;font-weight:600}.workspace-note p{font-size:10px;color:var(--muted);margin:5px 0 9px}.text-button{display:inline-flex;gap:6px;align-items:center;font-size:11px;color:var(--accent);padding:0;font-weight:550}.text-button:hover{color:var(--accent-hover)}.text-button svg{width:13px;height:13px}.account-button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 3px 0;border-top:1px solid var(--border)}.avatar{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#4d6861;background:#e5ece8;font-size:12px;font-weight:650;flex-shrink:0}.avatar.small{height:31px;width:31px;font-size:11px}.account-button strong{display:block;font-size:11px;font-weight:600}.account-button small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.account-button>span:last-child{margin-left:auto;color:var(--faint)}.account-button svg{height:14px;width:14px}.app-shell{margin-left:var(--sidebar);min-height:100dvh;display:flex;flex-direction:column}.topbar{height:73px;min-height:73px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:15px}.breadcrumb{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted)}.breadcrumb span:last-child{color:var(--text);font-weight:550}.breadcrumb svg{width:13px;height:13px;color:#9ba4ab}.topbar-actions{display:flex;align-items:center;gap:18px}.search-trigger{display:flex;align-items:center;gap:8px;color:#8a949d;font-size:11px;padding:8px 0}.search-trigger svg{width:16px;height:16px}.search-trigger kbd{border:1px solid #e6eaed;border-radius:4px;font-size:9px;padding:1px 4px;color:#8a949d;margin-left:16px;font-family:inherit}.header-divider{height:20px;width:1px;background:var(--border)}.mode-badge{display:flex;align-items:center;gap:6px;color:#69766f;font-size:10px;background:#f3f6f4;border:1px solid #e6ece8;padding:5px 9px;border-radius:5px;white-space:nowrap}.mode-badge:before{content:"";height:5px;width:5px;background:#6e9c7f;border-radius:50%}.icon-button{height:34px;width:34px;display:grid;place-items:center;border-radius:6px;color:#7c8790}.icon-button:hover{background:#f1f4f4;color:var(--accent)}.mobile-menu{display:none}main{padding:30px 24px 10px;max-width:none;min-width:0;width:100%;margin:0;flex:1;outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.eyebrow{font-size:9px;letter-spacing:1.6px;color:var(--accent);font-weight:700;margin:0 0 7px}.page-heading h1{font-size:25px;line-height:1.35;letter-spacing:-.7px;margin:0;font-weight:650}.page-heading p{font-size:11px;color:var(--muted);margin:8px 0 0}.heading-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border:1px solid #e0e5e8;background:#fff;border-radius:6px;font-size:11px;font-weight:500;white-space:nowrap;min-height:35px}.button svg{width:15px;height:15px}.button:hover{border-color:#c1cbc7;background:#f9fbfa}.button.primary{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 2px 3px #18776610}.button.primary:hover{background:var(--accent-hover)}.button.danger{color:var(--danger);border-color:#ebd4d3}.date-select-wrap{position:relative;display:flex;align-items:center;background:#fff;border:1px solid #e0e5e8;border-radius:6px;padding-left:11px}.date-select-wrap svg{width:14px;height:14px;color:#6f7b84;pointer-events:none}.date-select{appearance:none;border:0;background:transparent;font-size:11px;padding:9px 28px 9px 8px;color:#56626b;cursor:pointer;max-width:165px}.select-chevron{position:absolute;right:9px;pointer-events:none}.select-chevron svg{width:11px;height:11px}.demo-notice{display:flex;align-items:center;gap:9px;font-size:11px;background:#eef5f1;border:1px solid #e1ebe5;border-radius:7px;padding:10px 13px;color:#5f7568;margin-bottom:22px}.demo-notice svg{width:14px;height:14px;color:#678775;flex-shrink:0}.demo-notice button{margin-left:auto;color:var(--accent);font-size:10px;white-space:nowrap;font-weight:600;display:flex;align-items:center;gap:5px}.demo-notice button svg{width:12px;height:12px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.metric-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:17px 19px 15px;position:relative;overflow:hidden}.metric-label{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.metric-label .metric-icon{margin-left:auto;background:#f5f7f7;width:28px;height:28px;border-radius:7px;display:grid;place-items:center;color:#75868b}.metric-icon svg{width:15px;height:15px}.metric-value{font-size:29px;font-weight:650;letter-spacing:-1px;line-height:1.2;margin:8px 0 12px;font-variant-numeric:tabular-nums}.metric-value small{font-size:12px;color:var(--muted);font-weight:400;letter-spacing:0;margin-left:6px}.metric-foot{font-size:10px;display:flex;align-items:center;gap:6px;color:#89929b}.metric-foot .positive{display:flex;align-items:center;gap:3px;color:var(--accent);font-weight:550}.metric-foot svg{height:12px;width:12px}.metric-spark{position:absolute;right:15px;bottom:16px;width:58px;height:24px;color:var(--accent);opacity:.7}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px;margin-bottom:22px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-width:0;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 22px 0}.panel-title{font-size:13px;font-weight:600;margin:0;letter-spacing:-.15px}.panel-subtitle{font-size:10px;color:#849099;margin:5px 0 0}.panel-menu{font-size:10px;color:var(--muted);display:flex;gap:7px;align-items:center}.panel-menu svg{width:12px;height:12px}.legend{display:flex;align-items:center;gap:15px;padding:18px 22px 0;font-size:10px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:6px}.legend-marker{width:7px;height:7px;border-radius:2px;background:var(--accent)}.legend-marker.spend{background:#d5e8df}.trend-chart{padding:13px 17px 12px;position:relative}.trend-chart svg{width:100%;height:218px;overflow:visible}.chart-label{font-family:inherit;fill:#8b969e;font-size:10px}.chart-grid{stroke:#edf0f1;stroke-dasharray:3 4}.chart-tooltip{fill:#fff;stroke:var(--border)}.chart-hit{fill:transparent;cursor:crosshair}.chart-bar{fill:#d4e8de}.chart-highlight{opacity:0;transition:opacity .15s}.chart-day:hover .chart-highlight,.chart-day:focus .chart-highlight{opacity:1}.chart-day:focus{outline:none}.chart-day:focus .chart-bar{fill:#a4cfbb}.chart-bottom{display:flex;justify-content:space-between;font-size:10px;color:#849099;margin:0 22px 17px;padding-top:12px;border-top:1px solid #f0f2f3}.chart-bottom strong{color:#53615f;font-weight:550}.donut-wrap{position:relative;margin:17px auto 10px;width:165px;height:165px}.donut-wrap svg{transform:rotate(-90deg);width:100%;height:100%}.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;color:var(--muted)}.donut-center strong{font-size:29px;line-height:1.2;color:var(--text);font-weight:650;letter-spacing:-1px;font-variant-numeric:tabular-nums;margin-bottom:3px}.status-legend{padding:0 22px 18px}.status-line{display:flex;align-items:center;font-size:10px;margin:11px 0;gap:7px;color:#6e7882}.status-line .color-dot{width:7px;height:7px;border-radius:2px}.status-line strong{margin-left:auto;font-size:11px;color:#45545e;font-weight:550;font-variant-numeric:tabular-nums}.status-line .status-percent{width:35px;text-align:right;color:#8c969f;font-variant-numeric:tabular-nums}.table-panel .panel-heading{padding-bottom:19px}.table-controls{display:flex;align-items:center;gap:10px}.tabs{display:flex;gap:22px;padding:0 22px;border-bottom:1px solid var(--border);overflow-x:auto}.tab{position:relative;padding:12px 0 13px;font-size:11px;color:var(--muted);white-space:nowrap;display:flex;align-items:center;gap:6px}.tab.active{color:var(--accent);font-weight:600}.tab.active:after{position:absolute;content:"";height:2px;inset:auto 0 -1px;background:var(--accent)}.tab-count{background:#f0f3f4;border-radius:4px;padding:0 5px;font-size:9px;color:#7d8890}.tab.active .tab-count{background:var(--accent-soft);color:var(--accent)}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:11px}th{background:#fafbfc;padding:12px 19px;border-bottom:1px solid var(--border);font-size:10px;font-weight:500;color:#7c8791}th:first-child,td:first-child{padding-left:22px}td{padding:16px 19px;border-bottom:1px solid #f0f2f4;color:#56636d;font-variant-numeric:tabular-nums}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcfc}td.numeric,th.numeric{text-align:right}.store-cell{display:flex;align-items:center;gap:11px}.store-icon{height:34px;width:34px;border-radius:9px;display:grid;place-items:center;background:#e5eee8;color:#4c7563;font-weight:700;font-size:14px;flex-shrink:0}.store-icon.rose{background:#f3e8e8;color:#ae7c7d}.store-icon.blue{background:#e8edf5;color:#738bb1}.store-icon.sand{background:#f4eee2;color:#a48b5e}.cell-title{font-size:11px;font-weight:550;color:#35434b}.cell-subtitle{font-size:9px;color:#8b969e;margin-top:3px}.chip{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:4px;background:var(--accent-soft);color:var(--accent);font-size:9px;line-height:1.4;white-space:nowrap}.chip:before{content:"";height:4px;width:4px;border-radius:50%;background:currentColor}.chip.muted{background:#f0f2f4;color:#7a858e}.chip.amber{background:#fbf3e6;color:var(--amber)}.chip.red{background:#fbebea;color:var(--danger)}.chip.blue{background:#eaf0f9;color:var(--blue)}.table-link{display:inline-flex;align-items:center;gap:5px;color:var(--accent);font-size:10px;white-space:nowrap;padding:6px 0}.table-link svg{height:12px;width:12px}.sparkline{height:24px;width:66px}.table-foot{border-top:1px solid var(--border);padding:13px 22px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8a949d}.table-foot .button{font-size:10px;min-height:28px;padding:5px 10px}.pagination{display:flex;align-items:center;gap:8px}.page-number{height:26px;width:26px;display:grid;place-items:center;border:1px solid #dbe8e1;background:#f0f6f3;color:var(--accent);border-radius:4px}.app-footer{padding:23px 24px 20px;display:flex;justify-content:space-between;gap:16px;color:#929aa1;font-size:9px}.footer-dot{padding:0 5px;color:#adb5bb}.footer-local{display:flex;align-items:center;gap:5px}.footer-local:before{content:"";height:4px;width:4px;border-radius:50%;background:#8eb29c}.section-toolbar{padding:17px 22px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--border)}.filter-group{display:flex;align-items:center;gap:8px}.filter-select{border:1px solid #e2e7ea;border-radius:6px;background:#fff;padding:8px 24px 8px 10px;font-size:11px;color:#697680;max-width:180px}.table-search{position:relative;min-width:200px}.table-search svg{position:absolute;left:10px;top:10px;height:14px;width:14px;color:#8b969e}.table-search input{border:1px solid #e2e7ea;border-radius:6px;background:#fff;padding:8px 10px 8px 31px;width:100%;font-size:11px;color:var(--text)}input::placeholder{color:#969fa6}.insight-strip{display:flex;align-items:center;gap:10px;background:#eef4f1;border:1px solid #e0eae4;padding:13px 17px;border-radius:8px;margin-bottom:22px;font-size:11px;color:#647d70}.insight-strip strong{color:var(--accent);font-weight:550}.insight-strip svg{width:17px;height:17px;flex-shrink:0}.empty-state{padding:65px 25px;display:flex;align-items:center;flex-direction:column;text-align:center}.empty-icon{display:grid;place-items:center;background:#f0f5f2;border:1px solid #e3ece6;border-radius:16px;height:60px;width:60px;color:#7d9c8c;margin-bottom:17px}.empty-icon svg{width:26px;height:26px}.empty-state h3{font-size:15px;margin:0 0 7px;font-weight:600}.empty-state p{font-size:12px;margin:0 0 20px;color:var(--muted);max-width:320px;line-height:1.8}.empty-chart{height:260px;display:flex;align-items:center;justify-content:center;color:#88959b;font-size:12px;background:repeating-linear-gradient(0deg,transparent,transparent 49px,#f1f3f4 49px,#f1f3f4 50px);margin:12px 22px}.role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.role-card{padding:23px;background:white;border:1px solid var(--border);border-radius:12px}.role-icon{width:41px;height:41px;border-radius:10px;background:var(--accent-soft);display:grid;place-items:center;color:var(--accent);margin-bottom:17px}.role-icon svg{height:21px;width:21px}.role-card h3{font-size:15px;font-weight:600;margin:0 0 8px}.role-card p{font-size:11px;color:var(--muted);line-height:1.8;margin:0 0 20px}.role-permissions{display:grid;gap:10px;font-size:11px;color:#69767d;padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.role-permissions span{display:flex;align-items:center;gap:8px}.role-permissions svg{width:14px;height:14px;color:var(--accent)}.role-footer{display:flex;align-items:center;justify-content:space-between;margin-top:16px;color:var(--muted);font-size:10px}.role-footer svg{height:14px;width:14px}.store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.store-card{padding:22px}.store-card-top{display:flex;align-items:center;gap:12px}.store-card h3{font-size:14px;margin:0 0 3px}.store-card .cell-subtitle{font-size:10px}.store-card-metrics{display:flex;justify-content:space-between;border-top:1px solid var(--border);padding-top:17px;margin-top:21px}.store-card-metrics small{color:var(--muted);font-size:10px;display:block}.store-card-metrics strong{font-size:20px;font-weight:600;margin-top:4px;display:block}.store-card .table-link{margin-top:17px}.store-card-add{border:1px dashed #ccd8d1;background:transparent;min-height:220px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#6e8c7c;font-size:12px}.store-card-add svg{width:24px;height:24px}.store-card-add:hover{background:#eef4f1}.ad-summary{display:flex;align-items:center;gap:10px}.ad-summary .store-icon{height:30px;width:30px;border-radius:7px;font-size:11px}.quality-badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:var(--accent)}.quality-badge svg{height:12px;width:12px}.quality-badge.good{color:var(--blue)}.quality-badge.improve{color:var(--amber)}.row-actions{display:flex;gap:12px;align-items:center}.inline-switch{width:27px;height:15px;border-radius:10px;background:#d6dcdf;padding:2px;position:relative;display:inline-block;vertical-align:middle}.inline-switch:before{content:"";position:absolute;width:11px;height:11px;background:white;left:2px;top:2px;border-radius:50%;transition:transform .2s}.inline-switch.on{background:var(--accent)}.inline-switch.on:before{transform:translateX(12px)}.status-toggle{padding:8px 3px;margin:-8px -3px}.status-toggle:focus-visible{border-radius:5px}.muted-text{color:var(--muted);font-size:11px}.nowrap{white-space:nowrap}dialog{padding:0;border:1px solid #e4e9e6;border-radius:16px;box-shadow:0 25px 90px #15352c25;max-height:85dvh;width:min(520px,calc(100% - 32px));color:var(--text);background:#fff;overflow:auto}dialog::backdrop{background:#122d2659;backdrop-filter:blur(3px)}dialog[open]{animation:modal-in .2s ease-out}@keyframes modal-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.modal-header{padding:23px 25px 18px;display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--border)}.modal-header h2{font-size:18px;font-weight:600;margin:0}.modal-header p{font-size:11px;color:var(--muted);line-height:1.7;margin:7px 0 0}.modal-header .icon-button{margin:-4px -8px 0 12px}.modal-body{padding:22px 25px}.modal-footer{padding:16px 25px;border-top:1px solid var(--border);display:flex;gap:9px;justify-content:flex-end}.modal-footer .button{font-size:12px;min-height:38px;padding:9px 16px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px;font-size:12px}.field label{font-weight:550;color:#4f5c65}.required{color:var(--danger);margin-left:3px}.field input,.field select,.field textarea{width:100%;border:1px solid #dce3df;border-radius:6px;padding:10px 11px;background:#fff;color:var(--text);font-size:12px}.field textarea{min-height:80px;resize:vertical}.field small{font-size:10px;color:var(--muted)}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field-row .field{min-width:0}.form-error{font-size:11px;color:var(--danger);background:#fff1ef;padding:10px;border-radius:5px;margin-bottom:15px;display:none}.form-error.visible{display:block}.mode-option{display:flex;text-align:left;width:100%;align-items:center;gap:13px;padding:18px;border:1px solid var(--border);border-radius:9px;margin-bottom:12px}.mode-option.selected{border-color:#83af98;background:#f1f7f3}.mode-option>span:first-child{height:39px;width:39px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex-shrink:0}.mode-option strong{font-size:13px;display:block}.mode-option small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.mode-option>svg{margin-left:auto;color:var(--accent);width:18px;height:18px}.help-copy{color:#65726f;font-size:12px;line-height:1.9}.help-copy p{margin:0 0 15px}.framework-list{list-style:none;margin:0;padding:0}.framework-list li{padding:12px 0;border-bottom:1px solid var(--border)}.framework-list li:last-child{border:0}.framework-list strong{font-size:12px;color:var(--text);display:block}.framework-list span{font-size:11px;color:var(--muted)}.permission-options{display:grid;gap:10px;padding-top:3px}.permission-options label{font-size:12px;display:flex;align-items:center;gap:8px;font-weight:400}.permission-options input{width:15px;height:15px;accent-color:var(--accent)}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-grid dt{font-size:10px;color:var(--muted);margin-bottom:5px}.detail-grid dd{margin:0;font-size:13px;word-break:break-word}.detail-grid .wide{grid-column:1/-1}.search-modal-input{border:1px solid #dce4df;width:100%;border-radius:7px;padding:12px;font-size:13px}.search-results{max-height:360px;overflow:auto;padding-top:12px}.search-result{width:100%;display:flex;align-items:center;text-align:left;gap:12px;padding:12px 8px;border-radius:7px}.search-result:hover{background:#f3f7f4}.search-result>span:first-child{color:#789283}.search-result strong{font-size:12px;font-weight:500;display:block}.search-result small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.search-no-results{color:var(--muted);font-size:12px;text-align:center;padding:30px 0}#toast{position:fixed;left:calc(50% + 100px);bottom:30px;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:100;background:#254b3e;color:#fff;padding:12px 20px;box-shadow:0 6px 24px #1a3b2825;font-size:12px;border-radius:8px;transition:opacity .2s,transform .2s;max-width:calc(100vw - 40px)}#toast.visible{opacity:1;transform:translate(-50%,0)}.drawer-scrim{display:none}.subheading{display:flex;align-items:center;justify-content:space-between;margin:0 0 17px}.subheading h2{font-size:14px;margin:0;font-weight:600}.subheading small{font-size:10px;color:var(--muted)}.section-gap{margin-top:22px}.comparison-hint{font-size:10px;color:var(--muted);line-height:1.8}.profile-heading{display:flex;align-items:center;gap:12px;margin-bottom:23px}.profile-heading strong{font-size:15px}.profile-heading p{font-size:11px;margin:4px 0;color:var(--muted)}
@media(min-width:1600px){:root{--sidebar:260px}main{padding-top:36px}.metric-card{padding:22px}.metric-value{font-size:33px}.trend-chart svg{height:255px}.donut-wrap{margin-top:28px;width:180px;height:180px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 310px}.nav-item,.nav-group{font-size:13px}.nav-children .nav-item,.nav-children .nav-group{font-size:12px}td{padding-top:20px;padding-bottom:20px}}
@media(max-width:1190px){:root{--sidebar:224px}.brand{padding-left:22px}.workspace-label{margin-left:14px;margin-right:14px}.topbar{padding:0 24px}.topbar-actions{gap:12px}.search-trigger kbd{display:none}main{padding:26px 24px 10px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.metric-grid{gap:12px}.metric-card{padding:14px}.metric-spark{display:none}.app-footer{padding-left:24px;padding-right:24px}.store-grid,.role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1020px){.search-trigger>span:not([data-icon]){display:none}.search-trigger{padding:8px}.topbar-actions{gap:8px}.header-divider{display:none}.dashboard-grid{grid-template-columns:minmax(0,1fr) 220px}.panel-heading{padding:18px 17px 0}.panel-title{font-size:12px}.legend{padding-left:17px}.panel-subtitle{font-size:9px}.metric-label{font-size:10px}.metric-value{font-size:25px}.metric-icon{display:none!important}.metric-foot{font-size:9px;gap:4px}.page-heading h1{font-size:23px}.page-heading p{max-width:300px}.heading-actions{gap:7px}.heading-actions .button{padding:9px 10px}.date-select{max-width:135px}.status-legend{padding:0 17px 16px}.table-controls .button{font-size:10px}}
@media(max-width:850px){:root{--sidebar:236px}.sidebar{transform:translateX(-100%);transition:transform .22s ease}.drawer-open .sidebar{transform:translateX(0)}.drawer-open .drawer-scrim{display:block;position:fixed;inset:0;background:#19342a55;z-index:35;backdrop-filter:blur(2px)}.app-shell{margin-left:0}.topbar{height:65px;min-height:65px;padding:0 20px;justify-content:flex-start;gap:12px}.mobile-menu{display:grid;flex-shrink:0}.topbar-actions{margin-left:auto}.search-trigger>span:not([data-icon]){display:inline}.search-trigger{gap:6px}.breadcrumb{font-size:10px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 250px}#toast{left:50%}.skip-link{left:20px}.store-grid,.role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-footer{padding-top:20px}.workspace-note{display:none}.sidebar-bottom{padding-top:12px}.metric-label{font-size:11px}}
@media(max-width:650px){main{padding:24px 16px 10px}.topbar{padding:0 12px}.breadcrumb{gap:6px;max-width:170px;overflow:hidden;white-space:nowrap}.breadcrumb>span:not(:last-child),.breadcrumb>svg{display:none}.topbar-actions{gap:5px}.search-trigger>span:not([data-icon]){display:none}.mode-badge{font-size:9px;padding:5px 7px}.help-button{display:none}.avatar.small{margin-left:4px;width:29px;height:29px}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:16px;margin-bottom:20px}.page-heading h1{font-size:24px}.page-heading p{font-size:11px;max-width:none}.heading-actions{width:100%;justify-content:flex-end}.heading-actions .date-select-wrap{margin-right:auto}.eyebrow{font-size:9px}.demo-notice{padding:10px;font-size:10px;gap:7px;line-height:1.6;margin-bottom:18px;align-items:flex-start}.demo-notice>span{flex:1}.demo-notice>svg{margin-top:2px}.demo-notice button{align-self:center;font-size:9px;gap:3px}.demo-notice button svg{display:none}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:18px}.metric-card{padding:15px}.metric-value{font-size:28px;margin:10px 0}.metric-label .metric-icon{display:grid!important;width:24px;height:24px}.metric-foot{font-size:9px;gap:4px}.dashboard-grid{grid-template-columns:1fr;gap:18px;margin-bottom:18px}.panel-heading{padding:18px 17px 0}.panel-title{font-size:13px}.panel-subtitle{font-size:10px}.trend-chart{padding-left:11px;padding-right:11px}.trend-chart svg{height:210px}.chart-bottom{margin-left:17px;margin-right:17px;font-size:9px}.donut-panel .panel-heading{padding-bottom:0}.donut-content{display:flex;align-items:center;padding:6px 18px 12px;gap:18px}.donut-wrap{width:140px;height:140px;flex-shrink:0;margin:10px 0}.donut-center strong{font-size:25px}.status-legend{padding:0;width:100%}.status-line{margin:16px 0;font-size:10px}.table-panel .panel-heading{padding-bottom:17px;flex-wrap:wrap}.table-controls{gap:12px}.table-controls .button{font-size:10px}.table-foot{padding:12px 17px;gap:8px;font-size:9px}.table-foot .button{font-size:9px}.app-footer{padding:22px 16px 18px;font-size:8px}.app-footer>span:first-child{max-width:200px}.section-toolbar{padding:13px 17px;flex-wrap:wrap}.table-search{min-width:0;width:100%;order:-1}.filter-group{width:100%}.filter-select{width:100%;max-width:none}.tabs{padding:0 17px;gap:23px}.tab{font-size:11px}.role-grid,.store-grid{grid-template-columns:1fr}.role-card{padding:22px}.store-card-add{min-height:160px}.insight-strip{font-size:10px;padding:12px;align-items:flex-start}.insight-strip svg{width:16px;height:16px}.modal-header{padding:21px 20px 17px}.modal-body{padding:21px 20px}.modal-footer{padding:15px 20px}.field-row{gap:12px}.field input,.field select{font-size:16px}.modal-header h2{font-size:17px}.mode-option{padding:15px 13px}.mode-option strong{font-size:12px}.mode-option small{line-height:1.7}.empty-state{padding:47px 20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-height:820px){.workspace-note{display:none}.sidebar-bottom{padding-top:12px}.workspace-label{margin-bottom:16px}.brand{height:83px;flex-shrink:0}}
@media(max-width:650px){.metric-value.currency{font-size:clamp(19px,5.8vw,28px);letter-spacing:-.7px}.metric-value.currency small{display:block;font-size:9px;line-height:1;margin:4px 0 0}.metric-foot{flex-wrap:wrap;row-gap:2px}.metric-card{min-height:145px}}
.product-icon{width:38px;height:38px;border:1px solid #e1ebe4;border-radius:10px;background:linear-gradient(145deg,#eff6f1,#e3eee6);display:grid;place-items:center;color:#6d9380;flex-shrink:0}.product-icon svg{width:20px;height:20px}.grant-list{display:flex;align-items:center;gap:5px}.grant-tag{display:inline-block;background:#f3f6f4;border:1px solid #e8ede9;color:#6f7f76;font-size:9px;border-radius:4px;padding:3px 7px}.grant-fieldset{border:0;padding:0;margin:2px 0 22px;min-width:0}.grant-fieldset legend{font-size:12px;font-weight:550;color:#4f5c65}.grant-fieldset p{font-size:10px;color:var(--muted);line-height:1.8;margin:6px 0 11px}.grant-options{display:grid;gap:8px;max-height:240px;overflow-y:auto;padding:2px}.grant-option{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:7px;padding:11px 12px;font-size:12px;cursor:pointer;min-height:49px}.grant-option:hover{background:#f7faf8;border-color:#d6e3da}.grant-option:has(input:checked){background:#f2f8f4;border-color:#b9d6c5}.grant-option input{width:15px;height:15px;accent-color:var(--accent);flex-shrink:0}.grant-option small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:3px}.grant-option .product-icon{height:32px;width:32px;border-radius:7px}.grant-option .product-icon svg{height:17px;width:17px}.product-grant-options{max-height:350px;margin-top:15px}
.tabs{overflow-y:hidden}.tab.active:after{bottom:0}
@media(max-width:650px){.grant-option{font-size:11px}.grant-tag{font-size:9px}.product-icon{width:34px;height:34px}.grant-options{max-height:220px}}
[hidden]{display:none!important}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.product-thumbnail{height:50px;width:50px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e4ebe6;border-radius:9px;background:#f8faf8;overflow:hidden;padding:0;vertical-align:middle;flex-shrink:0}.product-thumbnail img{height:100%;width:100%;object-fit:contain;background:#fff}.product-thumbnail:hover{border-color:#abcbb7}.photo-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#84a18e;min-width:0}.photo-placeholder svg{height:19px;width:19px}.photo-placeholder small{font-size:8px;line-height:1.3;font-weight:400}.sku-value{font-size:10px;font-variant-numeric:tabular-nums;color:#748078}.product-dialog{width:min(590px,calc(100% - 32px));max-height:90dvh;overflow:hidden}.product-dialog #modal-form{display:flex;flex-direction:column;max-height:90dvh}.product-dialog .modal-header,.product-dialog .modal-footer{flex-shrink:0}.product-dialog .modal-body{overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}.product-dialog .modal-body>.field{margin-bottom:18px}.product-image-section{margin-bottom:22px}.field-label{font-size:12px;font-weight:550;color:#4f5c65;margin-bottom:8px}.image-upload-zone{border:1px dashed #cdded2;border-radius:9px;background:#fafcfb;padding:15px;display:flex;align-items:center;gap:17px;transition:background .18s,border-color .18s}.image-upload-zone.dragging{background:#eaf5ee;border-color:var(--accent)}.image-upload-preview{height:102px;width:102px;border:1px solid #e1e9e2;background:#f0f5f1;border-radius:8px;overflow:hidden;display:grid;place-items:center;padding:0;flex-shrink:0}.image-upload-preview img{width:100%;height:100%;object-fit:contain;background:white}.image-upload-preview .photo-placeholder{gap:7px}.image-upload-preview .photo-placeholder svg{height:27px;width:27px}.image-upload-preview .photo-placeholder small{font-size:10px}.image-upload-copy{min-width:0;flex:1}.image-upload-copy>strong{font-size:11px;font-weight:550;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.image-upload-copy>p{font-size:10px;color:var(--muted);line-height:1.6;margin:6px 0 10px}.image-upload-actions{display:flex;align-items:center;gap:14px}.image-upload-actions .button{min-height:30px;padding:6px 10px;font-size:10px}.image-upload-actions .button svg{height:13px;width:13px}.image-upload-copy>.image-upload-status{font-size:9px;margin:8px 0 0;color:#84968a}.field-error{font-size:11px;color:var(--danger);margin:8px 0 0;line-height:1.6}.product-more-settings{border-top:1px solid var(--border);padding-top:15px;margin-top:2px}.product-more-settings summary{list-style:none;display:flex;align-items:center;gap:9px;font-size:11px;font-weight:550;color:#5a6d60;cursor:pointer;min-height:28px}.product-more-settings summary::-webkit-details-marker{display:none}.product-more-settings summary>span{font-size:10px;font-weight:400;color:#8b9890}.product-more-settings summary svg{height:13px;width:13px;margin-left:auto;transition:transform .2s}.product-more-settings[open] summary svg{transform:rotate(180deg)}.more-settings-body{padding-top:17px}.more-settings-body .field:last-child{margin-bottom:0}.product-dialog .grant-options{grid-template-columns:1fr 1fr;max-height:190px}.product-dialog .grant-option{padding:10px;font-size:11px;gap:8px;min-width:0}.product-dialog .grant-option>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-dialog .grant-option small{font-size:9px}.product-dialog .grant-fieldset{margin-bottom:18px}.photo-dialog{width:min(690px,calc(100% - 32px))}.full-product-photo{min-height:260px;display:grid;place-items:center;background:#f8faf8;border-radius:9px;border:1px solid var(--border);overflow:hidden}.full-product-photo img{display:block;max-width:100%;max-height:60dvh;object-fit:contain}.full-product-photo .photo-placeholder{min-height:260px;gap:10px}.full-product-photo .photo-placeholder small{font-size:11px}
@media(max-width:650px){.image-upload-zone{padding:12px;gap:12px}.image-upload-preview{height:80px;width:80px}.image-upload-preview .photo-placeholder svg{height:23px;width:23px}.image-upload-preview .photo-placeholder small{font-size:9px}.image-upload-copy>strong{font-size:10px}.image-upload-copy>p{font-size:9px;margin:5px 0 8px}.image-upload-actions{gap:10px}.image-upload-actions .button{font-size:10px;padding:6px 8px}.product-dialog .grant-options{grid-template-columns:1fr}.product-dialog .modal-body{padding-top:18px}.product-more-settings summary>span{font-size:9px}.product-thumbnail{height:45px;width:45px}}
.order-metric-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.order-fixed-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.order-fixed-metric-grid .order-average-daily{white-space:nowrap}
.order-fixed-metric-grid .order-average-daily>.positive{display:inline}
@media(max-width:1250px){.order-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.order-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.order-fixed-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-fixed-metric-grid .metric-card:last-child{grid-column:1/-1}}
.shop-price-notice{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.8;padding:12px 14px;border:1px solid #e0eae3;border-radius:8px;background:#f1f7f3;color:#6b7f71;margin-bottom:19px}.shop-price-notice svg{width:17px;height:17px;flex-shrink:0;margin-top:2px;color:var(--accent)}.shop-price-notice strong{font-weight:600;color:var(--accent)}.shop-product-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:15px;border:1px solid var(--border);background:#fbfcfb;border-radius:8px;margin-bottom:19px;min-height:63px}.shop-product-summary>.store-cell{flex:1;min-width:0}.shop-product-summary>p{width:100%;margin:3px 0 0;font-size:10px;color:var(--muted);padding-top:11px;border-top:1px solid var(--border);line-height:1.7}.shop-product-summary .chip{font-size:9px;flex-shrink:0}
@media(max-width:650px){.shop-price-notice{font-size:10px;padding:11px}.shop-product-summary{padding:12px}.shop-product-summary .chip{font-size:8px}}
.access-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.access-summary>div{display:grid;grid-template-columns:34px 1fr;column-gap:11px;row-gap:6px;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:19px}.access-summary svg{grid-row:span 2;width:33px;height:33px;padding:7px;border-radius:8px;background:#eef6f1;color:var(--accent)}.access-summary strong{font-size:12px;font-weight:600}.access-summary span{font-size:10px;color:var(--muted);line-height:1.6}.account-grants{display:flex;gap:6px;flex-wrap:wrap;max-width:340px}.account-grants .grant-tag{font-size:10px}.account-shop-grants legend{display:flex;gap:10px;align-items:center}.account-shop-grants legend span{font-size:10px;font-weight:400;color:var(--accent)}.account-shop-grants .grant-options{grid-template-columns:1fr 1fr;max-height:260px}.account-shop-grants .grant-option{min-width:0}.account-shop-grants .grant-option>span:last-child{min-width:0;overflow-wrap:anywhere}.scope-notice{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#eff7f3;border:1px solid #d4e8dc;border-radius:8px;margin-bottom:22px;color:var(--accent)}.scope-notice>svg{flex-shrink:0;width:21px;height:21px}.scope-notice>div{display:grid;gap:5px;flex:1}.scope-notice strong{font-size:12px;font-weight:600}.scope-notice span{font-size:10px;color:#71897c;line-height:1.6}.scope-notice .button{background:#fff;border-color:#cce1d3;color:var(--accent)}button:disabled{cursor:default;opacity:.48}.mode-badge:disabled{opacity:1;color:var(--accent);background:#eaf5ee}
@media(max-width:1020px){.access-summary{gap:10px}.access-summary>div{padding:15px;grid-template-columns:28px 1fr;gap:7px}.access-summary svg{height:28px;width:28px;padding:6px}.access-summary strong{font-size:11px}}
@media(max-width:650px){.access-summary{grid-template-columns:1fr;gap:9px;margin-bottom:16px}.access-summary>div{grid-template-columns:29px 1fr;padding:13px;gap:4px 10px}.access-summary svg{width:29px;height:29px}.access-summary strong{font-size:12px}.account-shop-grants .grant-options{grid-template-columns:1fr;max-height:225px}.scope-notice{align-items:flex-start;flex-wrap:wrap;padding:13px;gap:9px}.scope-notice>div{min-width:180px}.scope-notice .button{margin-left:auto;min-height:32px;font-size:10px}.scope-notice strong{font-size:11px}}
.product-owner-summary{display:flex;align-items:center;gap:11px;background:#f1f7f3;border:1px solid #dce9e0;border-radius:8px;padding:14px;margin:2px 0 20px}.product-owner-summary>div{flex:1;min-width:0}.product-owner-summary small{display:block;color:#7c8e81;font-size:9px;margin-bottom:4px}.product-owner-summary strong{font-size:12px;font-weight:600;color:#335e49}.product-owner-summary p{font-size:10px;color:#74877a;line-height:1.7;margin:6px 0 0}.product-owner-summary>.chip{font-size:9px;flex-shrink:0}.owner-shop-label{display:inline-flex;align-items:center;gap:6px;color:#63786a;font-size:10px;white-space:nowrap}.owner-shop-label svg{width:14px;height:14px;color:#81a08b}
@media(max-width:650px){.product-owner-summary{padding:12px;gap:9px;align-items:flex-start}.product-owner-summary p{font-size:9px}.product-owner-summary>.chip{font-size:8px;padding:3px 5px}.table-controls{flex-wrap:wrap}}
.sku-system-field>label{display:flex;align-items:center;gap:8px}.sku-auto-tag{font-size:9px;font-weight:400;color:var(--accent);background:#edf6f0;border:1px solid #dfece3;padding:2px 6px;border-radius:4px}.sku-readonly-wrap{position:relative}.sku-readonly-wrap input[readonly]{background:#f7faf8;border-color:#e1e9e4;color:#4d6e5b;cursor:default;font-variant-numeric:tabular-nums;letter-spacing:1px;padding-right:40px}.sku-readonly-wrap input::placeholder{letter-spacing:0;color:#8b9a91}.sku-readonly-wrap>svg{position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#8ba292;width:15px;height:15px;pointer-events:none}
.pricing-editor{margin:25px 0 22px;border-top:1px solid var(--border);padding-top:21px}.pricing-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 16px}.pricing-section-heading h3,.foreign-price-section>h3{margin:0;font-size:13px;font-weight:600;color:#364f43}.pricing-section-heading>span{font-size:10px;color:#71867a}.pricing-editor .field-row{gap:16px}.pricing-results{display:grid;grid-template-columns:1fr 1.25fr 1fr;border:1px solid #cfe2d6;border-radius:9px;overflow:hidden;background:#f4f9f5}.pricing-results>div{padding:16px 12px;min-width:0;display:flex;flex-direction:column;gap:9px}.pricing-results>div+div{border-left:1px solid #dce9e1}.pricing-results small{color:#647e6e;font-size:10px}.pricing-results output{font-size:20px;font-weight:600;color:#315a44;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.3}.pricing-results span{font-size:9px;line-height:1.6;color:#657e6f}.pricing-results .pricing-sale-result{background:#e7f3eb}.pricing-sale-result output{color:var(--accent);font-size:23px}.pricing-zero-hint{color:#8b683b;font-size:10px;line-height:1.7;margin:9px 0 0}.foreign-price-section{border-top:1px solid var(--border);margin-top:22px;padding-top:18px}.foreign-price-section .pricing-section-heading{margin-bottom:12px}.foreign-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.foreign-price{min-width:0;border:1px solid var(--border);border-radius:7px;padding:12px;background:#fff}.foreign-price small{display:block;color:#657d6f;font-size:10px;line-height:1.6;margin-bottom:8px}.foreign-price strong{display:block;color:#285c45;font-size:19px;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.foreign-price strong>span{font-size:10px;font-weight:500;margin-left:3px;color:#6d8376}.foreign-price p{color:#6a8273;font-size:9px;line-height:1.7;margin:6px 0 0}.pricing-empty{display:block;padding:12px;background:#f7f9f7;border:1px dashed #d9e4dc;border-radius:6px;color:#687c6e;font-size:10px;line-height:1.8}.legacy-pricing-note{background:#fbf7ee;color:#836737;border:1px solid #eee2c5;border-radius:7px;font-size:11px;line-height:1.8;padding:12px;margin:0 0 18px}.legacy-price-label{color:#876e43;font-size:11px}.pricing-cost-cell{min-width:150px}.pricing-cost-cell strong{font-weight:500}.pricing-cost-cell>small{display:block;font-size:10px;color:#6f8276;margin-top:7px;white-space:nowrap}.pricing-cny-price{font-weight:600;color:var(--accent)}.foreign-price-list{display:grid;gap:9px;min-width:155px;max-width:240px}.foreign-price-list .foreign-price{border:0;padding:0;background:transparent}.foreign-price-list .foreign-price small{font-size:9px;margin-bottom:4px;white-space:normal}.foreign-price-list .foreign-price strong{font-size:13px}.metric-value.currency{overflow-wrap:anywhere}.metric-value.currency:has(small:empty){font-size:clamp(17px,1.65vw,27px);line-height:1.45;letter-spacing:-.5px}
@media(max-width:650px){.pricing-results{grid-template-columns:1fr}.pricing-results>div{display:grid;grid-template-columns:1fr auto;gap:7px 12px;padding:13px 15px}.pricing-results>div+div{border-left:0;border-top:1px solid #dce9e1}.pricing-results output{font-size:22px;grid-column:2;grid-row:1 / span 2;text-align:right;max-width:180px;align-self:center}.pricing-results span{grid-column:1}.pricing-section-heading{flex-wrap:wrap;gap:6px}.pricing-section-heading h3{font-size:13px}.pricing-section-heading>span{font-size:10px}.foreign-price-grid{grid-template-columns:1fr}.pricing-editor .field-row{grid-template-columns:1fr;gap:0}.legacy-pricing-note{font-size:11px}.metric-value.currency:has(small:empty){font-size:20px}}
.fx-rule{display:flex;align-items:center;gap:17px;background:#eef6f1;border:1px solid #dceae1;border-radius:10px;padding:22px 25px;margin-bottom:24px}.fx-rule-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#fff;color:var(--accent);border:1px solid #e0ece3;flex-shrink:0}.fx-rule-icon svg{width:23px;height:23px}.fx-rule small{display:block;font-size:10px;color:#71897b;margin-bottom:7px}.fx-rule strong{font-size:17px;font-weight:600;color:#2e5744}.fx-rule strong>span{color:#8dab99;padding:0 9px;font-weight:400}.fx-rule p{font-size:11px;color:#6d8375;margin:8px 0 0;line-height:1.7}.fx-base{margin-left:auto;font-size:10px;color:#7b8e81;text-align:right;white-space:nowrap}.fx-base strong{display:block;font-size:12px;margin-top:7px}.fx-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start}.fx-list-panel{min-width:0}.fx-list-panel table{min-width:620px}.fx-list-panel .section-toolbar{justify-content:flex-end}.fx-list-panel .table-search{max-width:300px;width:100%;margin:0}.fx-manual{display:flex;align-items:center;gap:5px;color:#7c8d82;font-size:10px;white-space:nowrap}.fx-manual svg{width:13px;height:13px}.fx-country-code{width:34px;height:34px;border:1px solid #e2ece5;background:#f0f6f2;display:grid;place-items:center;border-radius:8px;color:#5c8069;font-size:10px;flex-shrink:0}.fx-table-rate{font-size:16px;color:var(--accent);font-weight:600;font-variant-numeric:tabular-nums}.fx-converter{padding:24px}.fx-converter-heading{display:flex;align-items:center;gap:10px;margin-bottom:25px}.fx-converter-heading>span{width:34px;height:34px;display:grid;place-items:center;color:var(--accent);background:#edf6f0;border-radius:9px}.fx-converter-heading h2{margin:0;font-size:14px;font-weight:600}.fx-converter-heading p{font-size:10px;color:var(--muted);margin:5px 0 0}.fx-converter>label{display:block;font-size:11px;color:#586d60;font-weight:550;margin:19px 0 9px}.fx-amount-wrap{display:flex;align-items:center;border:1px solid #dae4dc;border-radius:7px;background:#fff;padding:0 12px;gap:8px;height:46px}.fx-amount-wrap:focus-within{outline:2px solid var(--accent);outline-offset:2px}.fx-amount-wrap>span{font-size:17px;color:#8ca293}.fx-amount-wrap input{border:0;background:transparent;outline:none;min-width:0;width:100%;font-family:inherit;font-size:20px;font-weight:600;line-height:1.4;color:var(--text);font-variant-numeric:tabular-nums}.fx-amount-wrap strong{font-size:10px;color:#8a9a8f;font-weight:500}.fx-converter select{width:100%;height:41px;border:1px solid #dae4dc;border-radius:7px;padding:0 10px;background:#fff;color:#40584a;font-size:12px}.fx-converter input:disabled,.fx-converter select:disabled{color:#91a096;background:#f8faf8}.fx-current-rate{font-size:10px;line-height:1.7;color:#7b8f81;margin:10px 0 18px}.fx-result{background:#eff7f2;border:1px solid #e2eee6;padding:18px 17px;border-radius:8px}.fx-result>small{font-size:10px;color:#7b9384}.fx-result>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:10px 0 8px}.fx-result strong{font-size:32px;font-weight:600;color:var(--accent);font-variant-numeric:tabular-nums;letter-spacing:-.8px;overflow-wrap:anywhere;line-height:1.3}.fx-result strong.long-number{font-size:23px}.fx-result #fx-output-currency{font-size:11px;color:#779283}.fx-result p{font-size:10px;line-height:1.8;color:#749080;margin:0;overflow-wrap:anywhere}.fx-converter-note{display:flex;gap:7px;align-items:flex-start;font-size:10px;color:#8a998e;line-height:1.8;margin:18px 0 0}.fx-converter-note svg{width:13px;height:13px;flex-shrink:0;margin-top:3px}.fx-selected-currency{display:flex;gap:8px;align-items:center;background:#f6f9f7;border:1px solid #e5ece7;border-radius:7px;padding:12px;font-size:11px;color:#7b8d80;margin-bottom:20px}.fx-selected-currency>svg{width:16px;height:16px;color:#81a18c}.fx-selected-currency strong{font-weight:550;color:#4b6c57}.fx-currency-code{margin-left:auto;font-size:10px;font-weight:600;color:#7b9784}.fx-form-preview{padding:16px 17px;border:1px solid #dfece3;border-radius:8px;background:#eff7f2;margin-bottom:16px}.fx-form-preview small{display:block;font-size:10px;color:#7b9483;margin-bottom:9px}.fx-form-preview strong{font-size:16px;line-height:1.7;color:var(--accent);font-weight:550;overflow-wrap:anywhere}
@media(max-width:1150px){.fx-layout{grid-template-columns:minmax(0,1fr) 290px;gap:16px}.fx-converter{padding:20px}.fx-rule{padding:20px}.fx-rule strong{font-size:15px}.fx-base{display:none}}
@media(max-width:1000px){.fx-layout{grid-template-columns:1fr}.fx-converter{max-width:none}.fx-converter .fx-result strong{font-size:34px}.fx-result #fx-output-currency{font-size:12px}}
@media(max-width:650px){.fx-rule{padding:16px;gap:12px;margin-bottom:18px;align-items:flex-start}.fx-rule-icon{width:34px;height:34px;border-radius:9px}.fx-rule-icon svg{width:19px;height:19px}.fx-rule strong{font-size:13px;line-height:1.8}.fx-rule strong>span{padding:0 4px}.fx-rule p{font-size:10px;margin-top:5px}.fx-rule small{font-size:9px;margin-bottom:3px}.fx-manual{font-size:9px}.fx-converter{padding:20px}.fx-amount-wrap input,.fx-converter select{font-size:16px}.fx-form-preview strong{font-size:14px}.fx-list-panel .table-search{max-width:none}}

/* Wide product editor: product identity and unit economics side by side. */
.foreign-reference-grid{align-items:start}.foreign-price-comparison{display:grid;grid-template-columns:minmax(68px,.8fr) minmax(0,1.4fr);gap:12px;align-items:start;margin-top:10px}.foreign-estimate>span{display:block;font-size:10px;line-height:1.6;color:#657d6f;margin-bottom:9px}.foreign-estimate>small{font-size:10px;margin:4px 0 0}.foreign-reference-card .field{margin:0;gap:8px}.foreign-reference-card .field>label{font-size:10px!important;line-height:1.6}.foreign-reference-card .field input{width:100%;min-height:38px!important;padding:8px 9px;font-size:13px!important}.foreign-reference-card .field input::placeholder{font-size:10px;letter-spacing:0}.foreign-reference-card .foreign-price-comparison strong{font-size:18px;line-height:1.4}.foreign-reference-card>p{margin-top:12px}.foreign-reference-hint{font-size:10px;line-height:1.8;color:#657d6f;margin:10px 0 0}.foreign-reference-display{font-size:10px;color:#6a8273;line-height:1.7;margin:6px 0 0}.foreign-reference-display b{font-weight:550;color:#365f47}.foreign-price-section .pricing-empty{flex-direction:column;align-items:flex-start;justify-content:center;gap:5px}.foreign-price-section .pricing-empty strong{font-size:11px;font-weight:550;color:#476c53}.foreign-price-section .pricing-empty span{font-size:10px;line-height:1.7}.foreign-reference-grid .foreign-price{padding:13px}
.foreign-reference-grid>.foreign-reference-card:only-child{grid-column:1 / -1}
@media(max-width:1000px){.foreign-reference-grid{grid-template-columns:1fr}.foreign-price-comparison{grid-template-columns:minmax(80px,1fr) minmax(0,1.5fr)}}
@media(max-width:650px){.foreign-reference-card .field input{font-size:16px!important;min-height:44px!important}.foreign-reference-card .field>label{font-size:11px!important}.foreign-reference-hint{font-size:11px}.foreign-price-comparison{gap:10px}}
/* Product editor: sequential inputs with a persistent calculation summary. */
.product-editor-dialog{width:min(1180px,calc(100vw - 48px));max-width:calc(100vw - 48px)}
.product-editor-dialog .modal-header{padding:20px 24px;align-items:center}
.product-editor-dialog .modal-header h2{font-size:21px;line-height:1.35;letter-spacing:-.3px}
.product-editor-dialog .modal-header p{font-size:12px;line-height:1.6;color:var(--muted);margin-top:6px}
.product-editor-dialog .modal-header .icon-button{width:36px;height:36px;flex-shrink:0}
.product-editor-dialog .modal-body{padding:20px 24px 24px;background:#f6f8f7;scroll-padding-top:20px}
.product-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}
.product-editor-main,.product-editor-main .country-product-editor{display:grid;gap:16px;min-width:0}
.product-editor-dialog .product-form-section{padding:20px;border:1px solid #e0e8e4;border-radius:10px;background:#fff;min-width:0}
.product-editor-section-title{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:18px}
.product-editor-dialog .product-editor-section-title h3{font-size:14px;font-weight:650;color:#29483b;margin:0;line-height:1.4}
.product-section-number{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:#eaf4ef;color:#39705b;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.product-editor-dialog .product-section-caption{font-size:11px;color:#6a7b73;margin-left:auto}
.product-editor-dialog .field-label,.product-editor-dialog .field>label,.product-editor-dialog .field-label-row>label{font-size:12px;line-height:1.5;color:#3d5247;min-height:18px}
.product-editor-dialog .field-label-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px;min-width:0}
.product-editor-dialog .field-label-row>label{flex-shrink:0;margin:0}
.product-editor-dialog .field-label-row>small{font-size:11px;line-height:1.6;color:#697b71;font-weight:400}
.product-editor-dialog .field{margin:0;gap:7px;min-width:0}
.product-editor-dialog .field input,.product-editor-dialog .field select,.product-editor-dialog .field .unified-select-trigger{width:100%;min-width:0;min-height:42px;font-size:13px;border-radius:6px}
.product-editor-dialog .field .unified-select{width:100%;min-width:0}
.product-editor-dialog .field input[readonly]{background:#f5f8f6;color:#65776c}
.product-editor-dialog .field>small{font-size:11px;line-height:1.6;color:#697b71}
.product-editor-dialog .field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;margin:0}
.product-editor-dialog .field-row+.field-row{margin-top:16px}
.product-auto-label{font-size:10px;font-weight:400;color:#718278;margin-left:5px}
.product-basic-grid{display:grid;grid-template-columns:176px minmax(0,1fr);gap:20px;align-items:start}
.product-basic-fields{display:grid;gap:16px;min-width:0}
.product-editor-dialog .product-image-section{min-width:0;margin:0}
.product-editor-dialog .image-upload-zone{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:10px;min-height:0;margin-top:7px;border-radius:8px;background:#fafcfb}
.product-editor-dialog .image-upload-preview{width:100%;height:110px;min-height:110px;border-radius:6px}
.product-editor-dialog .image-upload-preview img{width:100%;height:100%;object-fit:contain}
.product-editor-dialog .image-upload-media{position:relative}
.product-editor-dialog .image-upload-controls{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;pointer-events:none}
.product-editor-dialog .image-upload-controls button{pointer-events:auto}
.product-editor-dialog .image-upload-controls .image-upload-status,.product-editor-dialog .image-upload-controls .image-upload-hint{font-size:10px;line-height:1.5;color:#6b7f71;margin:0;text-align:center;padding:0 4px}
.product-editor-dialog .image-upload-media:has(img:not([hidden])) .image-upload-controls{position:static;padding-top:10px}
.product-editor-dialog .image-upload-actions{justify-content:center;gap:8px;flex-wrap:wrap}
.product-editor-dialog .image-upload-actions .button{min-height:34px;padding:6px 10px;font-size:11px}
.product-editor-dialog .sku-readonly-wrap input{font-size:12px;letter-spacing:.2px}
.product-editor-dialog .sku-auto-tag{font-size:9px;margin-left:2px}
.product-editor-dialog .product-section-note{font-size:11px;line-height:1.7;color:#63776a;margin:0 0 12px}
.product-editor-dialog .field-row+.product-section-note{margin:12px 0 0}
.product-editor-dialog #country-shop-grants{padding:0}
.product-editor-dialog .shop-grant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.product-editor-dialog .shop-grant-option{display:flex;gap:10px;align-items:center;border:1px solid #dce7e0;border-radius:7px;padding:12px;min-height:46px;font-size:12px;cursor:pointer}
.product-editor-dialog .shop-grant-option:has(input:checked){background:#edf7f1;border-color:#85b8a1;color:#216148}
.product-editor-dialog .shop-grant-option input{accent-color:var(--accent);width:16px;height:16px;flex-shrink:0}
.product-grants-empty{grid-column:1/-1;padding:14px;background:#f6f8f7;border-radius:6px;color:#697b71;font-size:12px;line-height:1.7}
.product-editor-dialog .product-more-settings{border-top:1px solid var(--border);margin-top:18px;padding-top:12px}
.product-editor-dialog .product-more-settings summary{font-size:12px;color:#466450;min-height:32px}
.product-editor-dialog .product-more-settings summary>span{font-size:11px;color:#738579}
.product-editor-dialog .more-settings-body{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:start;gap:16px;margin-top:14px}
.product-editor-dialog .more-settings-body textarea{min-height:80px;resize:vertical}
.product-pricing-aside{position:sticky;top:0;min-width:0;border:1px solid #cbded3;border-radius:10px;background:#f9fcfa;overflow:hidden;color:#315844}
.product-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 18px;border-bottom:1px solid #dce9e1;background:#edf5f0}
.product-preview-heading h3{margin:0;font-size:14px;font-weight:650}
.product-preview-heading>span{font-size:10px;color:#6a8172}
.product-editor-dialog .country-product-preview{background:none;border:0;border-radius:0;padding:0;margin:0;min-height:0}
.product-price-hero{display:flex;flex-direction:column;gap:10px;padding:20px 18px;border-bottom:1px solid #e0ebe4}
.product-price-hero>span{font-size:11px;color:#5d7968;line-height:1.6}
.product-price-hero>strong{font-size:28px;font-weight:650;line-height:1.25;letter-spacing:-.5px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;color:#187766}
.product-price-hero strong small{font-size:12px;letter-spacing:0;font-weight:500}
.product-cost-list{margin:0;padding:16px 18px;display:grid;gap:12px;font-size:12px;line-height:1.5}
.product-cost-list>div{display:flex;justify-content:space-between;gap:14px}
.product-cost-list dt{color:#607b69;flex-shrink:0}
.product-cost-list dd{margin:0;text-align:right;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
.product-cost-list .product-investment-total{padding-top:14px;border-top:1px solid #dce9e1;margin-top:2px}
.product-investment-total dt,.product-investment-total dd{font-weight:650;color:#315844}
.product-profit-result{padding:16px 18px;display:grid;gap:10px;background:#e9f5ed;border-top:1px solid #d5e7dc;font-size:11px}
.product-profit-result>span{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.product-profit-result strong{font-size:22px;color:#187766;overflow-wrap:anywhere;min-width:0}
.product-profit-result b{font-size:12px;font-weight:600}
.product-preview-message{padding:18px;margin:0;font-size:12px;line-height:1.8;color:#708376}
.country-product-preview[data-state="error"] .product-preview-message{color:var(--danger)}
.product-reference-summary{padding:15px 18px;font-size:11px;line-height:1.7;color:#607b69;border-top:1px solid #dce9e1}
.product-reference-summary:empty{display:none}
.product-reference-summary>strong{font-size:12px;color:#42634f}
.product-reference-summary .product-cost-list{padding:12px 0 0;font-size:11px;gap:8px}
.product-preview-note{font-size:10px;line-height:1.7;margin:0;padding:14px 18px;color:#74867a;border-top:1px solid #e0ebe4}
.product-editor-dialog .modal-footer{padding:14px 24px;background:#fff;gap:10px}
.product-editor-dialog .modal-footer .button{min-height:42px;padding:10px 20px;font-size:12px}
@media(max-width:1000px){.product-editor-layout{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.product-basic-grid{grid-template-columns:140px minmax(0,1fr);gap:16px}.product-basic-fields>.field-row{grid-template-columns:1fr}.product-editor-dialog .product-form-section{padding:16px}.product-editor-dialog .product-section-caption{margin-left:34px;width:100%}}
@media(max-width:820px){.product-editor-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px)}.product-editor-layout{grid-template-columns:minmax(0,1fr)}.product-pricing-aside{position:static}.product-basic-grid{grid-template-columns:160px minmax(0,1fr)}.product-basic-fields>.field-row{grid-template-columns:repeat(2,minmax(0,1fr))}.product-editor-dialog .modal-header,.product-editor-dialog .modal-body,.product-editor-dialog .modal-footer{padding-left:16px;padding-right:16px}.product-editor-dialog .product-section-caption{margin-left:auto;width:auto}}
@media(max-width:560px){.product-editor-dialog .modal-header h2{font-size:19px}.product-basic-grid{grid-template-columns:1fr}.product-editor-dialog .image-upload-zone{flex-direction:row;align-items:center;gap:14px}.product-editor-dialog .image-upload-preview{width:104px;min-width:104px;height:104px;min-height:104px}.product-editor-dialog .image-upload-copy{flex:1;text-align:left}.product-editor-dialog .image-upload-actions{justify-content:flex-start}.product-editor-dialog .field-row,.product-basic-fields>.field-row,.product-editor-dialog .shop-grant-grid,.product-editor-dialog .more-settings-body{grid-template-columns:1fr}.product-editor-dialog .field input,.product-editor-dialog .field select,.product-editor-dialog .field .unified-select-trigger{font-size:16px;min-height:44px}.product-editor-dialog .product-section-caption{margin-left:34px;width:100%}.product-editor-dialog .modal-footer .button{min-height:44px}.product-editor-section-title{margin-bottom:16px}.product-editor-dialog .modal-body{padding-top:16px}}
/* Compact product ledger: each field and regional price occupies its own box. */
.shop-product-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:650px){.shop-product-metric-grid{grid-template-columns:1fr}}
.product-grid-panel{border-radius:8px}
.product-grid-panel .tabs{padding:0 14px;gap:22px}
.product-grid-panel .tab{padding:11px 0;font-size:11px}
.product-grid-panel .section-toolbar{padding:10px 14px;gap:12px}
.product-grid-panel .filter-group{gap:14px;flex-wrap:wrap}
.product-region-count{font-size:10px;color:#728079;white-space:nowrap}
.product-region-count strong{color:var(--accent);font-weight:650;margin-left:3px}
.product-grid-panel .panel-heading{padding:14px 14px 0}
.shop-product-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:0 40px;padding:0 14px;border-bottom:1px solid var(--border)}
.product-grid-panel .shop-product-tabs>.tabs{flex:0 1 auto;min-width:0;padding:0;border-bottom:0}
.shop-product-tabs>.tabs>.tab{flex-shrink:0}
.shop-product-tabs>.table-search{flex:0 1 250px;min-width:200px;max-width:100%;width:250px;margin:5px 0;order:0}
@media(max-width:700px){.shop-product-tabs{gap:0 20px}.shop-product-tabs>.table-search{flex:1 1 200px;min-width:0}}
.product-grid-wrap{scrollbar-width:thin;scrollbar-color:#b9c7c0 #f3f6f4}
.product-grid-wrap:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.product-grid-table{width:100%;font-size:11px}
.product-grid-table th,.product-grid-table td{border:1px solid #dce5e0;padding:7px 8px;line-height:1.45}
.product-grid-table thead th{font-size:10px;font-weight:550;text-align:center;color:#5e7066;background:#f4f7f5}
.product-grid-table thead tr:first-child th{border-top:0;padding-top:8px;padding-bottom:8px}
.product-grid-table th:first-child,.product-grid-table td:first-child{border-left:0}
.product-grid-table th:last-child,.product-grid-table td:last-child{border-right:0}
.product-grid-table tbody tr:last-child td{border-bottom:1px solid #dce5e0}
.product-grid-table tbody tr:nth-child(even){background:#fafcfb}
.product-grid-table tbody tr:hover{background:#f1f7f3}
.product-grid-table .product-cny-heading{background:#edf3ef}
.product-grid-table .product-region-heading{background:#e6f1eb;border-left:2px solid #c3d7cb;color:#315f49;min-width:174px}
.product-grid-table thead small{font-size:9px;color:#7b8d82;margin-left:5px;font-weight:450}
.product-grid-table .product-region-start{border-left:2px solid #c3d7cb}
.product-grid-table .product-cny-subheading{min-width:78px}
.product-grid-table .product-cny-subheading:nth-child(3){min-width:88px}
.product-grid-table .product-grid-cny,.product-grid-table .product-region-estimate,.product-grid-table .product-region-reference{font-variant-numeric:tabular-nums;text-align:right}
.product-grid-table .product-region-estimate,.product-grid-table .product-region-reference{min-width:87px}
.product-grid-table .product-region-estimate{color:#246c50;font-weight:600;background:#eaf4ee38}
.product-grid-table .product-region-reference{color:#465c4d}
.product-grid-table .product-grid-total{font-weight:600;color:#39594a}
.product-grid-table .product-grid-dash{color:#a2aca5;font-weight:400}
.product-grid-table .product-grid-image{width:54px;text-align:center}
.product-grid-table .product-thumbnail{width:38px;height:38px;border-radius:5px;vertical-align:middle}
.product-grid-table .product-thumbnail .photo-placeholder{gap:1px}
.product-grid-table .product-thumbnail .photo-placeholder svg{width:17px;height:17px}
.product-grid-table .product-thumbnail small{font-size:8px;line-height:1.1}
.product-grid-table .product-grid-name{min-width:112px;max-width:160px;white-space:normal}
.product-grid-table .cell-title{font-size:11px;line-height:1.45}
.product-grid-table .cell-subtitle{font-size:9px;margin-top:2px}
.product-grid-table .sku-value{font-size:10px}
.product-grid-table .owner-shop-label{font-size:10px;gap:5px}
.product-grid-table .owner-shop-label svg{width:12px;height:12px}
.product-grid-table .chip{font-size:9px;padding:2px 6px}
.product-grid-table .grant-list{gap:3px;flex-wrap:wrap;min-width:160px;max-width:220px;white-space:normal}
.product-grid-table .grant-tag{font-size:9px;padding:2px 5px;max-width:100%;overflow-wrap:anywhere}
.product-grid-table .row-actions{gap:8px}
.product-grid-table .product-lifecycle-status{min-width:86px;text-align:center}
.product-grid-table .product-lifecycle-status>small{display:block;font-size:10px;color:var(--muted);margin-top:5px}
.product-grid-table .product-lifecycle-cell{min-width:115px}
.product-grid-table .product-lifecycle-cell .row-actions{justify-content:center;gap:16px}
.product-grid-table .product-delete{color:var(--danger)}
.product-grid-table .table-link:disabled{opacity:.45;cursor:not-allowed}
.country-product-table .product-lifecycle-cell .row-actions{align-items:center;gap:8px;flex-wrap:wrap}
.product-delete-button{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 10px;border:1px solid #e4bdb9;border-radius:5px;background:#fff5f4;color:#a73e37;font-size:12px;font-weight:500;line-height:1.4;white-space:nowrap}
.product-delete-button:hover{background:#fce7e5;border-color:#ce938c}
@media(pointer:coarse){.product-delete-button{min-height:44px;padding-inline:12px}}
.product-delete-dialog .product-delete-description{font-size:13px;line-height:1.8;margin-top:20px}
.product-delete-dialog button[type=submit]{background:var(--danger);border-color:var(--danger);color:#fff}
.product-grid-table .table-link{font-size:10px;min-height:30px;gap:3px}
.product-grid-table .table-link svg{width:11px;height:11px}
.product-grid-table .legacy-price-label{font-size:10px}
.product-grid-legacy{display:block;font-size:8px;color:#8b9590;white-space:nowrap;margin-top:2px}
.product-grid-shop-price+ .product-grid-shop-price{border-top:1px dashed #dce5e0;margin-top:4px;padding-top:4px}
.product-grid-shop-price small{display:block;font-size:8px;color:#849187;font-weight:400}
.product-grid-panel .table-foot{padding:11px 14px}
@media(max-width:700px){.product-grid-panel .section-toolbar{padding:10px;flex-wrap:wrap}.product-grid-table th,.product-grid-table td{padding:7px 8px}.product-grid-table .table-link{min-height:44px}.product-grid-panel .filter-group{width:100%;justify-content:space-between}}

.foreign-shared-reference{display:grid;align-content:start;gap:5px;min-width:0;padding-left:14px;border-left:1px solid #d9e6de}.foreign-shared-reference>span{font-size:11px;color:#647d6c}.foreign-shared-reference strong{font-size:18px;color:#365e48}.foreign-shared-reference small{font-size:10px;color:#718778}.reference-conflict-hint{color:#94611e!important}.reference-history{font-size:10px;color:#718778;margin-top:6px}.reference-history summary{cursor:pointer;color:#187766}.reference-history p{margin:4px 0!important;font-size:10px!important}
/* Product costs are recorded at each confirmed change, on an actual time axis. */
.product-grid-table .cost-value-link{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;padding:4px 0;min-height:28px;font:inherit;color:inherit;white-space:nowrap;border-radius:3px}
.product-grid-table .cost-value-link:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.product-grid-table .cost-value-link svg{width:11px;height:11px;opacity:.55}
.cost-history-dialog{width:min(1060px,calc(100% - 32px));max-height:92dvh;overflow:hidden}
.cost-history-dialog #modal-form{display:flex;flex-direction:column;max-height:92dvh}
.cost-history-dialog .modal-header,.cost-history-dialog .modal-footer{flex-shrink:0}
.cost-history-dialog .modal-header{padding:20px 26px 17px}.cost-history-dialog .modal-header h2{font-size:20px}
.cost-history-dialog .modal-body{padding:18px 26px 20px;overflow-y:auto;min-height:0;scrollbar-width:thin}
.cost-history-dialog .modal-footer{padding:13px 26px;justify-content:space-between}
.cost-history-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:17px}
.cost-history-count{font-size:12px;font-weight:650;color:var(--accent)}
.cost-history-intro p{font-size:11px;color:#75837a;margin:5px 0 0;line-height:1.6}
.cost-history-unit{font-size:10px;color:#7c8c81;white-space:nowrap}
.cost-history-plot{border:1px solid #e1e9e4;border-radius:9px;padding:16px 17px 8px;background:#fff}
.cost-history-chart-heading{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:10px}
.cost-history-chart-heading h3,.cost-record-heading h3{font-size:12px;font-weight:650;color:#3c5949;margin:0}
.cost-series-options{border:0;display:flex;gap:12px;flex-wrap:wrap;padding:0;margin:0;min-width:0}
.cost-series-options label{display:flex;align-items:center;gap:5px;font-size:10px;color:#64756a;cursor:pointer;min-height:26px}
.cost-series-options input{width:12px;height:12px;accent-color:var(--series-color);margin:0}
.cost-series-marker{width:15px;border-top:2px solid var(--series-color)}.cost-series-marker[data-dashed]{border-top-style:dashed}
.cost-chart-shell{width:100%;min-width:0}.cost-chart-shell svg{display:block;width:100%;height:auto;max-height:310px;cursor:crosshair;outline-offset:0;border-radius:4px}
.cost-axis text{fill:#819088;font-size:10px;font-variant-numeric:tabular-nums;font-family:inherit}
.cost-chart-caption{display:flex;gap:14px;justify-content:space-between;color:#8a968e;font-size:9px;line-height:1.6;padding:0 4px 3px}
.cost-chart-caption>span:last-child{white-space:nowrap}
.cost-point-detail{background:#f4f8f5;border:1px solid #dce8df;border-radius:8px;margin:14px 0 21px;padding:12px 15px}
.cost-point-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}
.cost-point-heading>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#cost-point-kind{font-size:9px;background:#e1eee5;color:#54735d;border-radius:4px;padding:2px 6px}
#cost-point-time{font-size:12px;font-weight:550;font-variant-numeric:tabular-nums;color:#42594a}
.cost-point-navigation{display:flex;align-items:center;gap:4px;font-size:10px;color:#738578;font-variant-numeric:tabular-nums}.cost-point-navigation .icon-button{height:27px;width:27px}
.cost-point-detail dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}
.cost-point-detail dl>div{border-left:2px solid var(--series-color);padding-left:10px;min-width:0}
.cost-point-detail dt{font-size:10px;color:#75867b;margin-bottom:4px}.cost-point-detail dd{font-size:20px;line-height:1.3;font-weight:650;margin:0;color:#355440;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cost-delta,.cost-unchanged{display:block;font-size:9px;margin-top:3px;font-variant-numeric:tabular-nums}.cost-delta.increased{color:#9b6b28}.cost-delta.decreased{color:#187766}.cost-unchanged{color:#93a095}
.cost-record-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:0 0 9px}.cost-record-heading h3 span{font-size:10px;color:#86968b;background:#f0f4f1;padding:1px 5px;border-radius:3px;margin-left:4px}.cost-record-heading small{font-size:9px;color:#8a978e}
.cost-record-table-wrap{border:1px solid #e3eae6;border-radius:6px}.cost-record-table{font-size:11px}.cost-record-table th{font-size:10px;padding:9px 11px;background:#f6f8f6;color:#7c8c81;border-right:1px solid #e7ece9}.cost-record-table td{padding:9px 11px;border-right:1px solid #edf1ee}.cost-record-table tr.selected td{background:#eff7f1}.cost-record-table th:last-child,.cost-record-table td:last-child{border-right:0}
.cost-record-time{font-size:10px;color:#4b7160;font-variant-numeric:tabular-nums;padding:3px 0;text-align:left}.cost-record-time:hover{text-decoration:underline}.cost-record-kind{display:block;font-size:9px;color:#8d9a91;margin-top:1px}
.cost-record-pagination{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#8b978f;padding:7px 0 0}.cost-record-pagination>div{display:flex;gap:4px}.cost-record-pagination .icon-button{width:27px;height:27px}
.cost-history-start{font-size:9px;color:#8c9990;margin:7px 0 0;line-height:1.7}.cost-history-empty{text-align:center;padding:45px 15px}.cost-history-empty>svg{margin:0 auto 15px;color:#8da797}.cost-history-empty h3{font-size:14px;font-weight:550}.cost-history-empty p{font-size:11px;color:#819087;line-height:1.8}
@media(max-width:700px){.cost-history-dialog{width:calc(100% - 20px)}.cost-history-dialog .modal-header,.cost-history-dialog .modal-body{padding:16px}.cost-history-dialog .modal-footer{padding:12px 16px}.cost-history-chart-heading{align-items:flex-start;flex-direction:column;gap:8px}.cost-series-options{gap:8px 13px}.cost-series-options label{font-size:11px;min-height:32px}.cost-history-unit{display:none}.cost-history-plot{padding:12px 8px 8px}.cost-chart-caption{flex-direction:column;gap:2px}.cost-point-detail dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cost-point-detail dd{font-size:18px}.cost-point-heading>div:first-child{gap:6px}.cost-point-navigation .icon-button{height:36px;width:36px}.cost-record-heading{align-items:flex-start;flex-direction:column;gap:5px}.cost-record-time{min-height:36px}.product-grid-table .cost-value-link{min-height:36px}}

#cost-point-actor{font-size:11px;color:#61786a;border-left:1px solid #cdded2;padding-left:10px}.cost-record-account{min-width:100px;max-width:180px;overflow-wrap:anywhere}.cost-record-account strong{font-weight:550;color:#42594a}.cost-record-account small{display:block;font-size:9px;color:#839489;margin-top:3px}

button.nav-item{width:100%;text-align:left}.order-shop-owner{display:flex;align-items:center;gap:10px;border:1px solid #dce6e0;background:#f4f8f5;padding:10px 12px;border-radius:6px;flex-wrap:wrap}.order-shop-owner small{margin-left:auto}

/* Landscape order workspace: item entry and profit calculation stay side by side. */
.order-composer{width:min(1180px,calc(100vw - 40px));max-width:none;max-height:94dvh;overflow:hidden;border-radius:14px}
.order-composer #modal-form{display:flex;flex-direction:column;max-height:94dvh;min-height:0}
.order-composer .modal-header{padding:20px 24px 16px;flex-shrink:0}.order-composer .modal-header h2{font-size:22px}.order-composer .modal-header p{font-size:12px}
.order-composer .modal-body{padding:18px 24px;overflow:auto;min-height:0;scrollbar-width:thin}.order-composer .modal-footer{padding:13px 24px;align-items:center;background:#fafcfb;flex-shrink:0}.order-save-note{margin-right:auto;display:flex;gap:7px;align-items:center;font-size:11px;color:#688073}.order-save-note svg{width:15px;height:15px}
.order-context{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center;border:1px solid #dae5df;border-radius:8px;background:#f7faf8;padding:14px 16px;margin-bottom:16px}.order-context .field{margin:0}.order-context-label{display:block;font-size:11px;color:#617568;margin-bottom:7px}.order-context-identity{display:flex;align-items:center;gap:10px}.order-context-identity strong{font-size:14px}.order-context-identity>span:last-child{font-size:10px;color:#6a8172}.order-exchange-equation{padding-left:18px;border-left:1px solid #dbe5de}.order-exchange-equation strong{font-size:19px;font-variant-numeric:tabular-nums;color:#225c4d}.order-exchange-equation small{display:block;font-size:10px;color:#6a8172;margin-top:4px}
.order-compose-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.order-items-panel{border:1px solid #dce5df;border-radius:8px;min-width:0;overflow:hidden}.order-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid #e0e8e3}.order-section-title h3{font-size:14px;font-weight:600;margin:0;color:#344e40}.order-section-title p{font-size:11px;color:#6d7e73;line-height:1.7;margin:5px 0 0}.order-section-title>span{font-size:10px;color:#6c7e72}.order-add-actions{display:flex;gap:7px;flex-shrink:0}.order-add-actions .button{min-height:34px;padding:7px 10px;font-size:11px}.order-add-actions svg{width:13px;height:13px}
.order-lines-scroll{overflow-x:auto}.order-lines-table{table-layout:fixed;width:100%;min-width:720px;white-space:normal;font-size:12px}.order-lines-table th{padding:10px 8px;font-size:11px;background:#f2f6f3;border-right:1px solid #e0e8e3;color:#536c5b;font-weight:550}.order-lines-table th span{display:block;font-size:9px;color:#6f8376;margin-top:3px}.order-lines-table td{padding:12px 8px;border-right:1px solid #e6ece8;border-bottom:1px solid #e1e8e3;vertical-align:top}.order-lines-table th:first-child,.order-lines-table td:first-child{padding-left:12px;width:27%}.order-lines-table th:nth-child(2){width:8%}.order-lines-table th:nth-child(3){width:14%}.order-lines-table th:nth-child(4){width:16%}.order-lines-table th:nth-child(5),.order-lines-table th:nth-child(6){width:15%}.order-lines-table th:last-child{width:5%}.order-lines-table td:last-child{border-right:0;padding-left:3px;padding-right:3px}.order-lines-table strong{font-weight:550;color:#3e5f4b}.order-lines-table .numeric{font-size:11px;font-variant-numeric:tabular-nums;padding-top:21px}.order-lines-table input,.order-lines-table select{width:100%;padding:9px 7px;border:1px solid #d6e1d9;border-radius:5px;background:#fff;font-size:12px;color:#263e30;min-height:38px}.order-lines-table input[type=number]{appearance:textfield;-moz-appearance:textfield}.order-lines-table input::-webkit-inner-spin-button{appearance:none}.order-lines-table .icon-button{height:36px;width:30px}.order-lines-table .icon-button:hover{color:var(--danger);background:#fff1ee}.order-line-type{font-size:10px;line-height:1.5;color:#718576;display:block;margin-top:6px;overflow-wrap:anywhere}.order-lines-note{font-size:10px;color:#6c8172;padding:12px 15px;background:#f9fbf9;border-top:1px solid #e1e8e3}.order-empty-lines{text-align:center!important;padding:32px!important;color:#6f8275}.order-validation-hint{font-size:11px;color:#916a38;padding:0 15px;margin:12px 0;line-height:1.6}.order-validation-hint.complete{color:var(--accent)}
.order-summary{border:1px solid #cadfd2;border-radius:8px;overflow:hidden;background:#f7faf7}.order-summary .order-section-title{padding:14px 16px;background:#eff6f0}.order-foreign-total{padding:17px 16px 0}.order-foreign-total span{display:block;font-size:11px;color:#647a6a}.order-foreign-total strong{font-size:25px;font-weight:600;line-height:1.5;letter-spacing:-.6px;display:block;color:var(--accent);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.order-summary-values{margin:0;padding:6px 16px 0}.order-summary-values>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;font-size:12px;color:#526d59}.order-summary-values dd{margin:0;font-size:13px;font-weight:550;font-variant-numeric:tabular-nums;color:#355b42}.order-summary-values small,.order-profit-results small{display:block;font-size:10px;font-weight:400;color:#718576;margin-top:3px}.order-summary-values .order-revenue{border-bottom:1px solid #dbe6de;padding-bottom:13px;margin-bottom:4px}.order-revenue dd{font-size:19px}.order-summary-values .order-cost-total{border-top:1px solid #dbe6de;margin-top:4px;padding-top:11px}.order-ad-field{padding:10px 16px 12px}.order-ad-field .field{margin-bottom:5px}.order-ad-field .field label{font-size:11px}.order-ad-field input{min-height:38px;padding:8px 10px}.order-ad-field .text-button{font-size:10px;padding:4px 0}.order-profit-results{margin:0;padding:0 16px;background:#e9f3ec;border-top:1px solid #d2e3d7}.order-profit-results>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0}.order-profit-results dt{font-size:12px;color:#42614c}.order-profit-results dd{margin:0;color:#356246;font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}.order-profit-results .order-net-profit{border-top:1px solid #cfded3}.order-net-profit dd{color:var(--accent);font-size:26px}.order-summary>p{font-size:10px;line-height:1.9;color:#6b8072;padding:10px 16px;margin:0}.order-negative{color:#b5473b!important}
.order-customer-section{border:1px solid #dce5df;border-radius:8px;margin-top:16px;overflow:hidden}.order-customer-section .order-section-title{padding:12px 16px;background:#fafcfb}.order-info-grid{padding:14px 16px;display:grid;grid-template-columns:1.1fr 1.1fr .9fr .9fr;gap:12px 16px}.order-composer .order-info-grid .field{margin:0}.order-info-grid>.order-compact-note{grid-column:span 3}.order-composer .field input,.order-composer .field select{min-height:38px;padding:9px 10px}.order-composer .field label{font-size:11px}.order-composer .field{gap:6px}.order-detail-items{margin-top:16px}.order-detail-items .order-lines-table{min-width:760px}.order-detail-items .order-lines-table td{vertical-align:middle}.order-detail-items .order-lines-table td.numeric{padding-top:12px}.order-detail-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;border:1px solid #d8e5dc;background:#d8e5dc;border-radius:8px;overflow:hidden;margin-top:16px}.order-detail-summary>div{background:#f2f8f3;padding:14px 16px}.order-detail-summary dt{font-size:11px;color:#617769}.order-detail-summary dd{font-size:21px;font-weight:600;color:#236650;margin:7px 0 0}.legacy-order-dialog{width:min(1100px,calc(100vw - 48px));max-width:none}.legacy-order-dialog .modal-body{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.legacy-order-dialog .form-error{grid-column:1/-1}.legacy-order-dialog .detail-grid{grid-column:1/-1}.order-list-profits small{display:block;font-size:9px;color:#7a8c7f;margin-bottom:4px}
@media(max-width:1100px){.order-composer{width:calc(100vw - 24px)}.order-composer .modal-body{padding:14px 16px}.order-compose-layout{grid-template-columns:minmax(0,1fr) 270px;gap:12px}.order-section-title{align-items:flex-start;flex-wrap:wrap}.order-context{gap:12px;padding:12px}.order-context-identity>span:last-child{display:none}.order-info-grid{grid-template-columns:repeat(3,1fr)}.order-info-grid>.order-compact-note{grid-column:span 2}}
@media(max-width:760px){.order-composer{width:calc(100vw - 16px);max-height:96dvh}.order-composer #modal-form{max-height:96dvh}.order-context{grid-template-columns:1fr 1fr}.order-context-shop{grid-column:1/-1}.order-compose-layout{grid-template-columns:minmax(0,1fr) 250px;min-width:940px}.order-context,.order-customer-section{min-width:940px}.order-composer .modal-header{padding:16px}.order-composer .modal-header p{font-size:11px}.order-composer .modal-footer{padding:12px 16px}.order-save-note{display:none}.order-info-grid{grid-template-columns:repeat(3,1fr)}.order-context-identity>span:last-child{display:inline}.order-composer .modal-body{overflow:auto}.order-detail-summary{min-width:700px}.legacy-order-dialog .modal-body{grid-template-columns:1fr 1fr;min-width:780px}}

.order-line-product{display:flex;align-items:flex-start;gap:9px;min-width:0}.order-line-choice{flex:1;min-width:0}.order-line-product .product-thumbnail{width:44px;height:44px;min-width:44px;border-radius:6px;margin-top:1px}.order-line-product .photo-placeholder svg{width:20px;height:20px}.order-line-product .photo-placeholder small{font-size:8px;line-height:1.3}.order-product-empty{width:44px;height:44px;min-width:44px;display:grid;place-items:center;border:1px dashed #d7e2db;border-radius:6px;background:#f6faf7;color:#829c8b}.order-product-empty svg{width:20px;height:20px}.order-entry-table{min-width:870px}.order-entry-table th:first-child{width:28%}.order-entry-table th:nth-child(2){width:7%}.order-entry-table th:nth-child(3){width:12%}.order-entry-table th:nth-child(4){width:13%}.order-entry-table th:nth-child(5){width:14%}.order-entry-table th:nth-child(6){width:12%}.order-entry-table th:nth-child(7){width:11%}.order-entry-table th:last-child{width:3%}.order-entry-table .order-suggested-price{padding-top:17px}.order-suggested-price strong{display:block;color:var(--accent);font-size:12px;line-height:1.6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.order-suggested-price small{display:block;color:#718576;font-size:10px;margin-top:4px;line-height:1.5}.order-detail-items .order-line-product{align-items:center}

.order-entry-table{min-width:960px}.order-entry-table th:first-child{width:26%}.order-entry-table th:nth-child(2){width:6%}.order-entry-table th:nth-child(3){width:10%}.order-entry-table th:nth-child(4){width:11%}.order-entry-table th:nth-child(5){width:13%}.order-entry-table th:nth-child(6){width:12%}.order-entry-table th:nth-child(7){width:11%}.order-entry-table th:nth-child(8){width:8%}.order-entry-table th:last-child{width:3%}.order-ad-estimate{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#617969;padding-bottom:9px;margin-bottom:10px;border-bottom:1px dashed #d7e4da}.order-ad-estimate strong{font-size:13px;font-weight:600;color:#3b6950;font-variant-numeric:tabular-nums}.order-detail-table th:first-child{width:26%}.order-detail-table th:nth-child(2){width:6%}.order-detail-table th:nth-child(3){width:14%}.order-detail-table th:nth-child(4){width:14%}.order-detail-table th:nth-child(5){width:14%}.order-detail-table th:nth-child(6){width:14%}.order-detail-table th:last-child{width:12%}.order-detail-ad-reference{display:block;font-size:10px;color:#718576;font-weight:400;margin-top:5px}

.order-auto-ad>label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#536c5d;font-weight:550;margin-bottom:8px}.order-auto-ad>label>span{font-size:9px;color:var(--accent);font-weight:400;background:#e5f1e9;border-radius:4px;padding:2px 5px}.order-auto-ad>output{display:block;padding:10px 11px;border:1px solid #cdded1;background:#edf5ef;border-radius:6px;color:#315b40;font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}.order-auto-ad>small{display:block;margin-top:7px;font-size:10px;color:#718576;line-height:1.6}#order-historical-ad-fee{margin-top:10px;border-top:1px dashed #d7e4da;padding-top:9px;font-size:10px;color:#7d735c}#order-historical-ad-fee strong{float:right;font-weight:550}#order-historical-ad-fee small{display:block;margin-top:5px;font-size:9px}

.order-composer .order-fulfillment-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px}.order-fulfillment-grid>.order-recipient-address,.order-fulfillment-grid>.order-compact-note{grid-column:span 2}.order-collection-field output{min-height:38px;padding:9px 10px;border:1px solid #d5e3d9;background:#f1f7f3;border-radius:6px;color:#345f45;font-size:13px;font-weight:550;font-variant-numeric:tabular-nums}.order-collection-field small{font-size:9px;line-height:1.4}.order-recipient-address textarea{min-height:58px;resize:vertical;font-size:12px}.order-payment-error{font-size:11px;color:var(--danger);background:#fff3f0;border-top:1px solid #eeded7;padding:10px 16px;margin:0}.order-composer .order-fulfillment-grid .field label{min-height:15px}.order-composer .detail-grid dd{white-space:pre-wrap;overflow-wrap:anywhere}

.order-entry-table{min-width:1040px}.order-entry-table th:first-child{width:24%}.order-entry-table th:nth-child(2){width:6%}.order-entry-table th:nth-child(3),.order-entry-table th:nth-child(4){width:9%}.order-entry-table th:nth-child(5){width:10%}.order-entry-table th:nth-child(6){width:11%}.order-entry-table th:nth-child(7){width:11%}.order-entry-table th:nth-child(8){width:9%}.order-entry-table th:nth-child(9){width:8%}.order-entry-table th:last-child{width:3%}.order-line-operating-cost strong{font-variant-numeric:tabular-nums}

.order-composer .order-context{grid-template-columns:minmax(160px,.8fr) minmax(160px,.8fr) minmax(250px,1.4fr)}

.order-region-pair{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(150px,1fr);border:1px solid #d6e1d9;border-radius:6px;overflow:hidden;background:#fff;align-items:stretch}.order-composer .order-region-choice .field{gap:0}.order-composer .order-region-choice label{padding:8px 10px 0;margin:0}.order-composer .order-region-choice select{border:0;border-radius:0;background:transparent;min-height:38px}.order-region-rate{border-left:1px solid #d6e1d9;padding:8px 12px;display:flex;flex-direction:column;justify-content:center;gap:7px;background:#f2f8f4}.order-region-rate>span{font-size:11px;color:#617568}.order-region-rate output{font-size:13px;font-weight:600;color:#225c4d;font-variant-numeric:tabular-nums;white-space:nowrap}

.order-composer .order-region-choice{display:flex;align-items:center}.order-composer .order-region-choice .field{width:100%}.order-composer .order-region-choice label{font-weight:400;color:#617568;padding:8px 10px 0}.order-composer .order-region-choice .required{display:inline}

.order-composer .order-region-choice select:focus-visible{outline:none;box-shadow:inset 0 0 0 1px #aabbb1}

/* Product selection keeps the order form mounted beneath a native dialog. */
.order-product-picker{width:min(1200px,calc(100vw - 40px));max-width:calc(100vw - 40px);max-height:88dvh;overflow:hidden;border-radius:12px}
.order-picker-layout{display:flex;flex-direction:column;max-height:88dvh}
.order-picker-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 16px;border-bottom:1px solid var(--border);flex-shrink:0}
.order-picker-header>div{display:flex;align-items:baseline;gap:14px}.order-picker-header h2{font-size:20px;font-weight:600;margin:0}.order-picker-header span{font-size:13px;color:var(--muted)}
.order-product-picker .icon-button{width:40px;height:40px;flex-shrink:0}
.order-picker-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;flex-shrink:0}
.order-picker-search{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:6px;padding:0 12px;width:min(420px,65%);color:var(--muted)}
.order-picker-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.order-picker-search input{border:0;outline:none;background:transparent;width:100%;min-width:0;height:42px;font:inherit;font-size:13px;color:var(--text)}
.order-picker-search input:focus-visible{outline:none}.order-picker-market{font-size:12px;color:#536c5b}
.order-picker-scroll{overflow:auto;min-height:0;flex:1;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.order-picker-table{table-layout:fixed;width:100%;min-width:920px;border-collapse:collapse;font-size:13px;white-space:normal}
.order-picker-table th{position:sticky;top:0;z-index:1;background:#f2f6f3;color:#536c5b;font-size:12px;font-weight:550;padding:12px 16px;border-bottom:1px solid #dae4de;border-right:1px solid #e4ebe6}
.order-picker-table th span{display:block;font-size:10px;color:#6f8376;margin-top:4px;font-weight:400}.order-picker-table th .visually-hidden{display:initial}
.order-picker-table td{padding:12px 16px;border-bottom:1px solid var(--border);border-right:1px solid #edf1ee;vertical-align:middle;line-height:1.5}
.order-picker-table tbody tr:last-child td{border-bottom:0}.order-picker-table tbody tr:hover{background:#f8fbf9}.order-picker-table tbody tr.is-selected{background:#edf6f1}
.order-picker-table th:first-child{width:52px}.order-picker-table td:first-child{padding:0;text-align:center}.order-picker-table input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent);cursor:pointer;vertical-align:middle;margin:12px}
.order-picker-table th:nth-child(2){width:92px}.order-picker-table th:nth-child(3){width:19%}.order-picker-table th:nth-child(4){width:13%}.order-picker-table th:nth-child(5),.order-picker-table th:nth-child(6),.order-picker-table th:nth-child(7){width:12%}.order-picker-table th:last-child{width:18%}
.order-picker-table td label{cursor:pointer;font-weight:550;overflow-wrap:anywhere}.order-picker-table .product-thumbnail{height:48px;width:48px;border-radius:6px}.order-picker-table .numeric{font-variant-numeric:tabular-nums;white-space:nowrap}.order-picker-sku{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.order-picker-suggestion{font-weight:600;color:var(--accent)}
.order-picker-table .order-picker-empty{text-align:center;padding:54px 24px;color:var(--muted);font-size:13px}
.order-picker-count{padding:12px 24px;font-size:12px;color:var(--muted);flex-shrink:0}
.order-picker-footer{padding:16px 24px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;background:#fafcfb;font-size:13px;color:#536c5b}.order-picker-footer>div{display:flex;gap:10px}.order-picker-footer .button{font-size:13px;min-height:42px}
@media(max-width:760px){.order-product-picker{width:calc(100vw - 20px);max-width:calc(100vw - 20px)}.order-picker-header{padding:16px}.order-picker-header>div{gap:8px}.order-picker-toolbar,.order-picker-footer{padding:12px 16px}.order-picker-count{padding:10px 16px}.order-picker-market{max-width:35%}.order-picker-search{width:65%}}

/* Theme-matched country selector: options always open below the control. */
.order-region-pair{overflow:visible}.order-composer .order-region-choice{position:relative;min-width:0;border-radius:6px 0 0 6px}
.order-composer .order-region-control{width:100%;gap:0;margin:0}.order-region-control>span{padding:8px 10px 0;font-size:11px;font-weight:400;color:#617568}
#order-region-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:38px;padding:9px 10px;border:0;border-radius:0 0 0 6px;background:transparent;font:inherit;font-size:12px;text-align:left;color:var(--text);cursor:pointer}
#order-region-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#order-region-trigger svg{width:16px;height:16px;flex-shrink:0;color:#718576;transition:transform .15s ease}
#order-region-trigger[aria-expanded=true] svg{transform:rotate(180deg)}#order-region-trigger:focus-visible{outline:none;box-shadow:inset 0 0 0 1px #aabbb1}
.order-region-options{position:absolute;z-index:30;left:-1px;right:-1px;top:calc(100% + 6px);padding:5px;max-height:240px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #cdded3;border-radius:8px;background:#fff;box-shadow:0 8px 24px #1a3a2d20;scrollbar-width:thin}
.order-region-options [role=option]{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:40px;padding:10px 12px;border:0;border-radius:5px;background:transparent;font:inherit;font-size:12px;line-height:1.5;text-align:left;color:#334b40;cursor:pointer}
.order-region-options [role=option] svg{width:16px;height:16px;visibility:hidden;flex-shrink:0}.order-region-options [role=option][aria-selected=true]{color:var(--accent);font-weight:550;background:#e8f3ed}.order-region-options [role=option][aria-selected=true] svg{visibility:visible}
.order-region-options [role=option]:hover,.order-region-options [role=option].is-active{background:#eff6f2;color:var(--accent)}
.order-region-rate{border-radius:0 6px 6px 0}
@media(prefers-reduced-motion:reduce){#order-region-trigger svg{transition:none}}

/* Integrated order workspace: shop and pricing context belong to the item toolbar. */
.order-composer{width:min(1180px,calc(100vw - 40px))}
.order-composer .modal-body{padding:16px}
.order-compose-layout{grid-template-columns:minmax(0,1fr) 240px;gap:12px}
.order-entry-column{min-width:0}
/* Keep the customer form in place as product rows are added or removed. */
.order-compose-layout .order-lines-scroll{height:clamp(174px,24dvh,274px);overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
.order-compose-layout .order-entry-table thead th{position:sticky;top:0;z-index:2}
.order-compose-layout .order-entry-table .order-empty-lines{height:110px;font-size:12px}
.order-items-panel{overflow:visible}
.order-composer .order-item-toolbar{grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) minmax(300px,1.8fr) max-content;gap:16px;padding:12px;margin:0;border:0;border-bottom:1px solid #dce5df;border-radius:8px 8px 0 0;background:#f8fbf9;min-width:0}
.order-item-toolbar .order-context-shop,.order-item-toolbar .order-seller-field{min-width:0}
.order-item-toolbar .order-context-identity{gap:9px}.order-item-toolbar .order-context-identity strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}.order-item-toolbar .store-avatar{flex-shrink:0}
.order-composer .order-item-toolbar .field{margin:0;gap:6px}
.order-composer .order-item-toolbar .order-region-control{gap:0}
.order-composer .order-item-toolbar .order-region-pair{grid-template-columns:minmax(145px,1fr) 135px;min-width:0}
.order-item-toolbar .order-region-rate{padding:8px 10px}.order-item-toolbar .order-region-rate output{font-size:12px}
.order-item-toolbar .order-add-actions{align-self:center;justify-self:end;gap:8px}
.order-item-toolbar .order-add-actions .button{min-height:38px;white-space:nowrap;padding:8px 10px}
.order-item-toolbar #order-add-product{border-color:#c8ddd2;color:var(--accent);background:#eef7f2}
.order-item-toolbar #order-add-product:hover{background:#e3f0e9;border-color:#abcbb9}
.order-items-panel .order-lines-scroll{border-radius:0 0 8px 8px}
.order-items-panel .order-entry-table td{vertical-align:middle}.order-items-panel .order-entry-table td.numeric{padding-top:12px}
.order-customer-section{margin-top:16px}
.order-compose-layout>.order-summary{position:sticky;top:0}
@media(max-width:1200px){.order-composer .order-item-toolbar{grid-template-columns:minmax(280px,1fr) auto;gap:10px 12px}.order-item-toolbar .order-add-actions{justify-self:end}.order-composer .order-item-toolbar .order-region-pair{grid-template-columns:minmax(150px,1fr) 140px}.order-composer .order-context-shop{grid-column:auto}}
@media(max-width:1100px){.order-composer{width:calc(100vw - 24px)}.order-composer .modal-body{padding:14px 16px}.order-compose-layout{grid-template-columns:minmax(0,1fr) 270px;gap:12px}}

/* Shared entry table styles live in order-entry-table.css. */
.order-note-photos{display:flex;justify-content:center;align-items:center;gap:4px;min-height:44px}
.order-note-photo{position:relative;display:grid;place-items:center;flex:0 0 34px;width:34px;height:40px;padding:0;overflow:hidden;border:1px solid #d4e3d9;border-radius:5px;background:#f4f9f6;color:var(--accent);cursor:pointer}
.order-note-photo img{display:block;width:100%;height:100%;object-fit:cover}
.order-note-photo [hidden]{display:none}
.order-note-photo:hover{background:#e6f2eb;border-color:#98bea8}
.order-note-photo:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.order-note-photo:disabled{opacity:.55;cursor:wait}
.order-items-panel .order-note-photos{gap:6px;min-height:80px}
.order-items-panel .order-note-photo{flex:0 1 80px;min-width:0;width:80px;height:auto;aspect-ratio:1;border-radius:6px}
.order-items-panel .order-note-photo img{object-fit:contain}
.order-note-upload{border-style:dashed}
.order-note-upload svg{width:16px;height:16px}
.order-note-placeholder{display:grid;place-items:center;gap:2px;color:#7b9685;font-size:8px}
.order-note-placeholder svg{width:16px;height:16px}
.order-note-placeholder small{font-size:8px}
.order-photo-viewer{width:min(760px,calc(100vw - 40px));max-width:none;max-height:92dvh;padding:0;border:1px solid #d6e3da;border-radius:12px;background:#fff;color:var(--text);box-shadow:0 18px 70px #193b3040}
.order-photo-viewer::backdrop{background:#19332b66;backdrop-filter:blur(3px)}
.order-photo-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid #e1e9e4}
.order-photo-viewer-header>div{min-width:0}
.order-photo-viewer-header h2{margin:0;font-size:17px;font-weight:600}
.order-photo-viewer-header p{margin:5px 0 0;font-size:11px;color:#6d8074;overflow-wrap:anywhere}
.order-photo-viewer-image{display:grid;place-items:center;min-height:220px;background:#f5f8f6;padding:16px}
.order-photo-viewer-image img{display:block;max-width:100%;max-height:60dvh;object-fit:contain;border-radius:5px}
.order-photo-viewer-image [hidden]{display:none}
.order-photo-viewer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-top:1px solid #e1e9e4}
.order-photo-viewer-footer .danger{color:var(--danger)}
.order-detail-items .order-detail-table{min-width:0}
.order-detail-table th:first-child,.order-detail-table td:first-child{width:24%}
.order-detail-table th:nth-child(2){width:6%}
.order-detail-table th:nth-child(3),.order-detail-table th:nth-child(4){width:13%}
.order-detail-table th:nth-child(5),.order-detail-table th:nth-child(6),.order-detail-table th:nth-child(7){width:11%}
.order-detail-table th:last-child{width:11%}
@media(max-width:1100px){.order-detail-items .order-detail-table{min-width:760px}}

/* The full order ledger scrolls inside its panel instead of being clipped by it. */
.order-grid-panel{width:100%;min-width:0}
.order-grid-scroll-hint{display:flex;align-items:center;gap:7px;padding:10px 18px;background:#f7faf8;border-top:1px solid #e2eae5;color:#718579;font-size:11px;line-height:1.5}
.order-grid-scroll-hint svg{height:14px;width:14px;flex-shrink:0}
.order-grid-wrap{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:auto;scrollbar-color:#8da99a #edf3ef}
.order-grid-wrap:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.order-grid-wrap::-webkit-scrollbar{height:14px}
.order-grid-wrap::-webkit-scrollbar-track{background:#edf3ef;border-top:1px solid #dce7df}
.order-grid-wrap::-webkit-scrollbar-thumb{background:#8da99a;border:3px solid #edf3ef;border-radius:8px;min-width:44px}
.order-grid-wrap::-webkit-scrollbar-thumb:hover{background:#648b77}
.order-grid-top-scroll{width:100%;min-width:0;height:18px;overflow-x:scroll;overflow-y:hidden;background:#edf3ef;overscroll-behavior-x:contain;scrollbar-width:auto;scrollbar-color:#8da99a #edf3ef}
.order-grid-top-scroll[hidden]{display:none}
.order-grid-top-scroll>div{height:1px;pointer-events:none}
.order-grid-top-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.order-grid-top-scroll::-webkit-scrollbar{height:16px}
.order-grid-top-scroll::-webkit-scrollbar-track{background:#edf3ef}
.order-grid-top-scroll::-webkit-scrollbar-thumb{background:#8da99a;border:3px solid #edf3ef;border-radius:9px;min-width:44px}
.order-grid-top-scroll::-webkit-scrollbar-thumb:hover{background:#648b77}
@media print{.order-grid-top-scroll{display:none}}
.order-grid-table{width:100%;min-width:calc(2960px * var(--order-grid-width-scale,1));table-layout:fixed;border-collapse:collapse;white-space:normal;font-size:12px}
.order-grid-table th,.order-grid-table td{padding:14px 10px;border-right:1px solid #dfe8e2;border-bottom:1px solid #dfe8e2;overflow-wrap:anywhere;vertical-align:top;line-height:1.6}
.order-grid-compact-identifiers .order-grid-code,.order-grid-compact-identifiers .order-grid-tracking,.order-grid-compact-identifiers .order-grid-thirdParty{padding-inline:8px}
.order-grid-table th{background:#edf4f0;color:#49685b;font-size:11px;font-weight:600;white-space:nowrap;vertical-align:middle}
.order-grid-table th:first-child,.order-grid-table td:first-child{padding-left:14px}
.order-grid-table th:last-child,.order-grid-table td:last-child{padding-right:14px;border-right:0}
.order-grid-table tbody tr:nth-child(even){background:#f6faf8}
.order-grid-table .order-grid-date time{white-space:nowrap;font-variant-numeric:tabular-nums}
.order-shipment-badge,.order-expedited-badge{display:block;width:max-content;margin-top:8px;padding:3px 5px;border-radius:4px;font-size:10px;line-height:1.4;white-space:nowrap}
.order-shipment-badge{background:#e6f3ed;color:#176f61}
.order-expedited-badge{background:#fff0ed;color:#b5473c;font-weight:600}
.order-grid-table .order-grid-amount-value,.order-grid-table .order-grid-profit-value{white-space:nowrap;font-variant-numeric:tabular-nums}
.order-grid-currency,.order-grid-cost-note{display:block;color:#73887b;font-size:10px;margin-top:4px}
.order-grid-contact{display:flex;flex-wrap:wrap;gap:2px 6px;font-weight:550}.order-grid-address{margin-top:5px;color:#6f8275}
.order-grid-note-input{display:block;width:100%;max-width:100%;min-width:0;min-height:56px;padding:7px 8px;border:1px solid #d8e3dc;border-radius:5px;background:#fff;resize:vertical;font:inherit;line-height:1.5;color:inherit}
.order-grid-code-button,.order-grid-code-text{color:#365f4d;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;padding:0}
.order-grid-detail-button{color:var(--accent);font-size:11px;padding:0;white-space:nowrap}
.order-grid-sync-pending{color:#8a98a5;font-size:11px;font-weight:400;white-space:nowrap}
.order-grid-logistics-status{display:block;color:#365f4d}
.order-grid-logistics-time{display:block;margin-top:5px;color:#73887b;font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}
.order-grid-table .order-status-actions{align-items:center}.order-grid-table .order-list-status-trigger{font-size:11px;padding:4px 5px;gap:3px}
@media(max-width:650px){.order-grid-scroll-hint{padding:10px 12px;font-size:10px}}

/* Order-list photo notes reuse saved line attachments. */
.order-grid-table .order-grid-photos{text-align:center}
.order-grid-photos .order-note-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;min-height:0;max-width:59px;margin-inline:auto}
.order-grid-photos .order-note-photo{width:100%;min-width:0;height:30px;flex:none;border-radius:4px}
.order-grid-photos .order-note-placeholder small{font-size:7px}
.order-grid-photo-line+.order-grid-photo-line{padding-top:5px;margin-top:5px;border-top:1px dashed #dce5df}
@media(max-width:1100px){.order-grid-table .order-grid-photos{text-align:left}.order-grid-photos .order-note-photos{margin-left:0;width:70px;max-width:100%}.order-grid-photos .order-note-photo{height:36px}}

.order-status-actions{display:flex;flex-direction:column;align-items:center;gap:5px}
.order-grid-status-button{display:block;max-width:100%;min-height:24px;padding:3px 5px;border:1px solid #bfd9cb;border-radius:4px;background:#eef7f2;color:var(--accent);font:inherit;font-size:9px;line-height:1.4;white-space:nowrap;cursor:pointer}
.order-grid-status-button:hover{background:#dfefe6;border-color:#96bea7}
.order-grid-status-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.order-grid-status-button:disabled{opacity:.6;cursor:wait;white-space:normal}
@media(max-width:1100px){.order-status-actions{align-items:flex-start}.order-grid-status-button{min-height:32px;padding:5px 10px;font-size:11px}}

.order-status-buttons{display:flex;align-items:center;justify-content:center;gap:3px;max-width:100%}
.order-status-buttons .order-grid-status-button{min-width:clamp(20px,1.7vw,30px);padding-inline:1px;font-size:clamp(8px,.7vw,9px)}
.order-grid-refuse-button{color:var(--danger);border-color:#e4c7c0;background:#fff6f3}
.order-grid-refuse-button:hover{color:#a83c31;border-color:#d5a69b;background:#fbe9e3}
@media(max-width:1100px){.order-status-buttons{justify-content:flex-start;gap:6px}.order-status-buttons .order-grid-status-button{min-width:40px;padding-inline:6px;font-size:11px}}

.order-grid-table .order-list-status-trigger{max-width:100%;padding:3px 1px;gap:1px;border:1px solid transparent;font-size:clamp(8px,.7vw,9px);white-space:nowrap;cursor:pointer}
.order-list-status-trigger svg{flex:0 0 8px;width:8px;height:8px}
.order-grid-table .order-list-status-trigger:hover,.order-grid-table .order-list-status-trigger[aria-expanded=true]{border-color:currentColor}
.order-list-status-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.order-list-status-trigger:disabled{opacity:.6;cursor:wait;white-space:normal}
.order-list-status-menu{position:fixed;z-index:1100;width:148px;max-width:calc(100vw - 16px);padding:5px;overflow:auto;border:1px solid #cbded1;border-radius:7px;background:#fff;box-shadow:0 6px 22px #19392c24}
.order-list-status-menu [role=option]{width:100%;min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;border:0;border-radius:4px;background:transparent;text-align:left;font:inherit;font-size:12px;line-height:1.5;color:#3c5546;cursor:pointer}
.order-list-status-menu [role=option] svg{width:15px;height:15px;visibility:hidden}
.order-list-status-menu [aria-selected=true]{background:#e8f3ed;color:var(--accent);font-weight:550}
.order-list-status-menu [aria-selected=true] svg{visibility:visible}
.order-list-status-menu [role=option]:hover,.order-list-status-menu .is-active{background:#eff6f2;color:var(--accent)}
@media(max-width:1100px){.order-grid-table .order-list-status-trigger{font-size:10px;padding:4px 5px;gap:3px}.order-list-status-trigger svg{width:11px;height:11px;flex-basis:11px}}
.maintenance-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.maintenance-summary{border:1px solid var(--line,#dce6e0);border-radius:8px;padding:4px 14px;margin-bottom:18px;background:var(--surface,#fff)}
.maintenance-summary p{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:12px;margin:12px 0}
.maintenance-summary span{color:var(--muted,#718177)}

/* The same compact ad ledger is used in shop and performance views. */
.ad-grid-panel .section-toolbar{padding:12px 14px;gap:12px}
.ad-grid-panel .table-search{width:min(300px,38%);min-width:0}
.ad-grid-wrap{width:100%;min-width:0}
.ad-grid-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ad-grid-table{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0;white-space:normal;font-size:clamp(10px,.75vw,12px)}
.ad-grid-table th,.ad-grid-table td{min-width:0;padding:12px 6px;border-right:1px solid #dce5df;border-bottom:1px solid #dce5df;white-space:normal;overflow-wrap:anywhere;line-height:1.6;vertical-align:middle}
.ad-grid-table th{background:#eef4f0;color:#4e685a;font-size:inherit;font-weight:600;text-align:left}
.ad-grid-table th.numeric,.ad-grid-table td.numeric{text-align:right}
.ad-grid-table th small{display:block;font-size:9px;font-weight:400;color:#6b8174}
.ad-sort-button{display:flex;align-items:center;justify-content:space-between;gap:3px;width:100%;min-height:32px;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:inherit;cursor:pointer}
.ad-sort-button>span:first-child{min-width:0;flex:1}
.ad-sort-icon{flex:none;color:#8a9993;font-size:13px;font-weight:600}
.ad-sort-button:hover,.ad-sort-button:hover .ad-sort-icon{color:var(--accent)}
.ad-grid-table th[aria-sort="ascending"],.ad-grid-table th[aria-sort="descending"]{background:#e1f0e8;color:var(--accent)}
.ad-grid-table th[aria-sort="ascending"] .ad-sort-icon,.ad-grid-table th[aria-sort="descending"] .ad-sort-icon{color:var(--accent)}
.ad-sort-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.ad-mobile-sort{display:none}
@media(min-width:1101px){
 .ad-sortable-wrap{overflow-x:auto}
 .ad-sortable-wrap .ad-grid-table{min-width:1520px}
}
.ad-grid-table th:last-child,.ad-grid-table td:last-child{border-right:0}
.ad-grid-table tbody tr:last-child td{border-bottom:0}
.ad-grid-table tbody tr:nth-child(even){background:#f7faf8}
.ad-grid-table tbody tr:hover{background:#edf6f0}
.ad-grid-table .ad-date{white-space:nowrap;font-size:clamp(9px,.72vw,11px);font-variant-numeric:tabular-nums}
.ad-date-source{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.ad-name-button,.ad-name-text{display:block;font:inherit;font-weight:600;line-height:1.65;overflow-wrap:anywhere}
.ad-name-button{width:100%;min-height:32px;padding:0;text-align:left;color:var(--accent)}
.ad-name-button:hover{text-decoration:underline}
.ad-name-button svg{display:inline-block;width:11px;height:11px;margin-left:4px;vertical-align:middle;opacity:.65}
.ad-name-meta{display:block;font-size:9px;color:var(--muted);line-height:1.6;margin-top:3px}
.ad-status-cell{display:flex;flex-direction:column;align-items:center;gap:3px;line-height:1.4}
.ad-status-cell .status-toggle{display:grid;place-items:center;min-width:32px;min-height:28px}
.ad-status-cell .inline-switch{width:28px;height:16px}
.ad-status-cell .inline-switch:before{width:12px;height:12px;top:2px;left:2px}
.ad-status-cell .inline-switch.on:before{transform:translateX(12px)}
.ad-grid-table .ad-status,.ad-grid-table .ad-duration{text-align:center}
.ad-duration-value{white-space:nowrap;font-variant-numeric:tabular-nums}
.ad-grid-table .quality-badge{font:inherit;gap:3px;white-space:normal;line-height:1.5}
.ad-grid-table .quality-badge svg{width:12px;height:12px;flex:0 0 12px}
.ad-amount{font-weight:550;font-variant-numeric:tabular-nums}
.ad-loss{color:var(--danger)}
.ad-missing{color:var(--muted)}
.ad-metric-note{margin:0;padding:10px 14px;border-top:1px solid var(--border);color:var(--muted);font-size:10px;line-height:1.7}
@media(max-width:1100px){
 .ad-mobile-sort{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 14px;border-top:1px solid var(--border);font-size:12px}
 .ad-mobile-sort select{max-width:180px}
 .ad-grid-table thead .ad-sort-button{visibility:hidden}
 .ad-grid-table,.ad-grid-table tbody{display:block}
 .ad-grid-table colgroup{display:none}
 .ad-grid-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .ad-grid-table tbody tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #d4e1d8}
 .ad-grid-table tbody tr+tr{margin-top:12px}
 .ad-grid-table td,.ad-grid-table td.numeric{display:block;min-width:0;padding:9px 10px;font-size:12px;text-align:left;border-right:1px solid #dce5df;border-bottom:1px solid #dce5df}
 .ad-grid-table tbody tr:last-child td{border-bottom:1px solid #dce5df}
 .ad-grid-table td:before{content:attr(data-label);display:block;margin-bottom:5px;color:#647a6c;font-size:10px;font-weight:550}
 .ad-grid-table .ad-name{grid-column:span 2}
 .ad-grid-table .ad-date,.ad-grid-table .ad-status,.ad-grid-table .ad-duration{text-align:left}
 .ad-status-cell{align-items:flex-start}
 .ad-grid-table .ad-date{font-size:12px}
 .ad-date-source,.ad-name-meta{font-size:10px}
 .ad-grid-table .ad-quality{grid-column:span 2}
}
@media(max-width:650px){
 .ad-grid-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ad-grid-panel .section-toolbar{padding:10px;flex-wrap:wrap}
 .ad-grid-panel .table-search{width:100%;order:-1}
 .ad-grid-panel .filter-group{flex:1;min-width:0}
}
.shared-connect{max-width:720px;margin:50px auto;padding:28px}
.shared-connect h1{font-size:26px;margin:12px 0}
.shared-connect p{color:var(--muted);line-height:1.8}
.shared-connect-counts{display:flex;gap:40px;margin:24px 0;padding:20px;background:var(--accent-soft);border-radius:8px;color:var(--accent)}
.shared-connect-counts strong{font-size:32px}.shared-connect-counts small{margin-left:8px;font-size:13px;font-weight:400}
#shared-error{color:var(--danger)}

/* Daily advertising spend: compact selection, focused entry and a readable ledger. */
.ad-toolbar-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.ad-grid-panel .section-toolbar{flex-wrap:wrap}
.ad-grid-panel .table-search{flex:1;max-width:375px;min-width:190px}
.ad-selection-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;min-height:42px;padding:4px 14px;border-top:1px solid var(--border);background:#f8fbf9;font-size:12px;color:#536b60}
.ad-selection-bar .text-button{font-size:12px;min-height:32px}
.ad-grid-table .ad-select-cell{padding:0;text-align:center;vertical-align:middle}
.ad-select-cell label{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;cursor:pointer}
.ad-select-cell input{appearance:auto;width:16px;height:16px;accent-color:#187766;margin:0;cursor:pointer}
.ad-select-caption{display:none}
.ad-grid-table tbody tr.ad-selected{background:#e8f4ed}
.ad-spend-link{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;min-height:40px;width:100%;padding:0;border:0;background:transparent;color:#187766;font:inherit;cursor:pointer}
.ad-spend-link .ad-amount{color:inherit;text-decoration:underline;text-decoration-color:#b5d3c4;text-underline-offset:4px}
.ad-spend-link svg{width:12px;min-width:12px;height:14px}
.ad-spend-link:hover{color:#0c5246}
.ad-spend-link:focus-visible,.spend-edit-day:focus-visible{outline:2px solid #187766;outline-offset:2px;border-radius:4px}
#modal.ad-spend-dialog{width:min(900px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0}
.ad-spend-dialog #modal-form{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
.ad-spend-dialog .modal-header{flex-shrink:0;padding:22px 26px}
.ad-spend-dialog .modal-header h2{font-size:21px}
.ad-spend-dialog .modal-header p{max-width:720px;overflow-wrap:anywhere}
.ad-spend-dialog .modal-body{overflow:auto;min-height:0;padding:20px 26px}
.ad-spend-dialog .modal-footer{flex-shrink:0;padding:16px 26px;gap:10px;flex-wrap:wrap}
.spend-entry-tools{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:12px}
.spend-entry-tools .field{width:190px;margin:0}
.spend-entry-tools p{margin:0;color:#3c5549;font-size:14px;line-height:1.8}
.spend-entry-tools p span{color:#65796e;font-size:12px}
.spend-help{font-size:12px;line-height:1.8;color:#60766a;margin:12px 0 18px}
.spend-entry-scroll{max-height:360px;overflow:auto;border:1px solid #dce7e0;border-radius:8px}
.spend-entry-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;white-space:normal;font-size:13px;color:#344f42}
.spend-entry-table th,.spend-entry-table td{padding:10px 12px;border-bottom:1px solid #dce7e0;text-align:left;overflow-wrap:anywhere;vertical-align:middle}
.spend-entry-table thead th{position:sticky;top:0;background:#edf4ef;color:#536c5e;font-size:12px;font-weight:600;z-index:1}
.spend-entry-table tbody th{font-weight:400}
.spend-entry-table .numeric{text-align:right;font-variant-numeric:tabular-nums}
.spend-entry-table tbody tr:last-child>*{border-bottom:0}
.spend-entry-table tbody tr:nth-child(even){background:#f8fbf9}
.spend-entry-table strong{font-weight:600;display:block}
.spend-entry-table small:not(.spend-field-error){display:block;font-size:11px;color:#6a7b73;margin-top:4px}
.spend-entry-table input{width:100%;min-width:0;min-height:44px;border:1px solid #c9dacf;border-radius:6px;padding:9px 10px;background:white;color:#203e2e;font:inherit;font-variant-numeric:tabular-nums}
.spend-entry-table input:focus{outline:2px solid #187766;outline-offset:1px}
.spend-entry-table input[aria-invalid=true]{border-color:#b65351}
.spend-entry-table input:disabled{background:#eff3f0;color:#7b8880}
.spend-field-error{display:block;color:#a74543;font-size:11px;line-height:1.5;margin-top:4px}
.spend-field-error:empty{display:none}
.spend-unrecorded{color:#7c8a81;font-size:12px}
.spend-pending{margin-right:auto;font-size:12px;color:#526d5c;line-height:1.6}
.spend-history-tools{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.spend-history-tools label{display:flex;align-items:center;gap:10px;font-size:13px;color:#526d5c}
.spend-history-tools select{min-height:42px;padding:8px 32px 8px 12px;border:1px solid #cfded5;border-radius:6px;background-color:white;color:#344f42;font:inherit}
.spend-summary{display:grid;grid-template-columns:1.4fr 1fr 1fr;background:#f0f7f2;border:1px solid #d8e7dc;border-radius:8px;margin:18px 0 12px}
.spend-summary>div{padding:15px 20px;border-right:1px solid #d8e7dc}
.spend-summary>div:last-child{border-right:0}
.spend-summary span{display:block;font-size:12px;color:#5a7565}
.spend-summary strong{display:block;margin-top:7px;font-size:24px;font-weight:600;color:#187766;font-variant-numeric:tabular-nums}
.spend-summary strong small{font-size:12px;font-weight:400}
.spend-chart{display:block;width:100%;height:auto;min-height:160px;max-height:250px;overflow:visible}
.spend-chart text{fill:#647b6c;font-size:11px;font-family:inherit}
.spend-gridline{stroke:#e4ece6;stroke-width:1}
.spend-line{stroke:#187766;stroke-width:2.4;fill:none;stroke-linejoin:round;stroke-linecap:round}
.spend-point{fill:#fff;stroke:#187766;stroke-width:2}
.spend-history-ledger{border:1px solid #dce7e0;border-radius:8px;max-height:280px;overflow:auto}
.spend-history-ledger .spend-entry-table{table-layout:auto}
.spend-edit-day{border:1px solid #c5ded0;border-radius:5px;background:#f0f8f3;color:#187766;font-size:12px;min-height:36px;padding:6px 14px;cursor:pointer}
.spend-history-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;font-size:12px;color:#60766a}
.spend-history-pages>div{display:flex;gap:8px}
.spend-history-pages .button{min-height:36px;font-size:12px;padding:7px 12px}
@media(max-width:1100px){
  .ad-grid-table .ad-select-cell{grid-column:1/-1;text-align:left;background:#eef5f0;min-height:40px}
  .ad-select-cell label{justify-content:flex-start;padding:0 10px;gap:10px}
  .ad-select-caption{display:inline;font-size:12px;color:#536b60}
  .ad-select-cell:before{display:none!important}
  .ad-spend-link{justify-content:flex-start}
}
@media(max-width:600px){
  .ad-toolbar-actions{width:100%;justify-content:flex-end}
  .ad-toolbar-actions .button{font-size:12px;padding:8px 10px}
  .ad-spend-dialog .modal-header,.ad-spend-dialog .modal-body{padding:16px}
  .ad-spend-dialog .modal-footer{padding:12px 16px}
  .spend-entry-tools{gap:10px}
  .spend-entry-tools .field{width:160px}
  .spend-entry-tools p{font-size:12px}
  .spend-entry-table th,.spend-entry-table td{padding:9px 6px;font-size:12px}
  .spend-entry-table input{padding:8px 5px;font-size:12px}
  .spend-summary>div{padding:12px 9px}
  .spend-summary strong{font-size:20px}
  .spend-summary span{font-size:11px}
  .spend-pending{flex-basis:100%}
  .spend-history-tools label{font-size:12px;gap:6px}
}
.ad-spend-dialog .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.spend-entry-table strong{font-size:inherit}
.spend-entry-table tbody th{font-size:inherit;background:transparent;color:inherit}

.spend-locked{display:inline-flex;align-items:center;min-height:36px;padding:6px 14px;color:#7b8880;font-size:12px;background:#f0f3f1;border:1px solid #e0e7e2;border-radius:5px;white-space:nowrap}

/* USD and CNY share the original spend column. */
.ad-spend-values{display:grid;gap:3px;min-width:0;text-align:right;font-variant-numeric:tabular-nums}
.ad-spend-usd{font-weight:600;text-decoration:underline;text-decoration-color:#b5d3c4;text-underline-offset:4px}
.ad-spend-cny{color:#5e7668;font-size:.94em;font-weight:500}
.fx-fixed-usd{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;margin:0 0 20px;border-color:#d8e6dd}
.fx-fixed-usd h2{font-size:15px;font-weight:600;color:#355b46;margin:0 0 6px}
.fx-fixed-usd p{font-size:12px;color:#6a7f71;margin:0;line-height:1.7}
.fx-fixed-usd-value{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:flex-end}
.fx-fixed-usd-value strong{color:#187766;font-size:19px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.fx-fixed-usd-value .button{min-height:40px;font-size:12px}
.spend-summary strong .spend-cny-total{display:block;font-size:14px;font-weight:500;color:#587363;margin-top:5px}
@media(max-width:1100px){.ad-spend-values{text-align:left}}
@media(max-width:650px){.fx-fixed-usd{flex-direction:column;align-items:stretch;padding:16px}.fx-fixed-usd-value{justify-content:space-between;gap:10px}.fx-fixed-usd-value strong{font-size:17px}}

.spend-field-error.spend-row-note{color:#77887d}

.ad-cost-values .ad-spend-usd{text-decoration:none;color:#516556}
.spend-summary-with-counts{grid-template-columns:1.4fr 1fr 1fr 1fr}
.spend-entry-value:before{display:none}
@media(max-width:600px){
  .spend-summary-with-counts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .spend-summary-with-counts>div:nth-child(2){border-right:0}
  .spend-summary-with-counts>div:nth-child(-n+2){border-bottom:1px solid #d8e7dc}
  .ad-spend-entry-dialog .spend-entry-table,.ad-spend-entry-dialog .spend-entry-table tbody{display:block}
  .ad-spend-entry-dialog .spend-entry-table colgroup{display:none}
  .ad-spend-entry-dialog .spend-entry-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .ad-spend-entry-dialog .spend-entry-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid #dce7e0}
  .ad-spend-entry-dialog .spend-entry-table tbody tr:last-child{border-bottom:0}
  .ad-spend-entry-dialog .spend-entry-table tbody tr>*{border-bottom:0;min-width:0}
  .ad-spend-entry-dialog .spend-entry-shop{text-align:right}
  .spend-entry-value:before{display:block;content:attr(data-label);font-size:11px;margin-bottom:5px;color:#536c5e}
}
/* Shop overview: scoped financial summary, daily evidence and order drill-down. */
.shop-overview-scope{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px;color:var(--muted,#6e7e78);font-size:12px}
.shop-overview-scope>span:first-child{display:flex;align-items:center;gap:8px;color:#36594c}
.shop-overview-scope svg{width:16px;height:16px}
.shop-overview .shop-overview-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.shop-overview-metrics .metric-card{padding:18px 16px;min-height:155px}
.shop-overview-metrics .metric-label{font-size:12px;gap:8px}
.shop-overview-metrics .metric-value{font-size:clamp(23px,2vw,34px);letter-spacing:-.6px;line-height:1.3;display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;margin:12px 0}
.shop-overview-metrics .metric-value small{font-size:10px;font-weight:500;letter-spacing:0;margin:0}
.shop-overview-metrics .metric-value a{color:inherit;text-decoration:none}
.shop-overview-metrics .metric-value a:hover{text-decoration:underline;text-decoration-color:#b2d4c5;text-underline-offset:5px}
.shop-overview-metrics .metric-foot{font-size:11px;line-height:1.7;white-space:normal}
.overview-fixed-metrics .metric-foot{flex-wrap:wrap}
.overview-fixed-metrics .metric-foot .positive{display:inline;font-weight:650}
.shop-overview-metrics .metric-icon{height:30px;width:30px}
.shop-overview-main{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;margin-bottom:22px;align-items:start}
.shop-overview-primary{display:grid;gap:inherit;min-width:0;align-content:start}
.shop-overview-main>.panel,.shop-overview-primary>.panel{min-width:0}
.shop-overview-trend>.panel-heading,.shop-overview-status>.panel-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}
.shop-overview-status .ad-period-control{width:100%;min-width:0;margin-top:5px}
.shop-overview-status .ad-period-control>label{justify-content:space-between}
.shop-overview-summary-actions{display:flex;align-items:flex-start;justify-content:flex-end;flex-wrap:wrap;gap:15px;max-width:100%}
@media(max-width:600px){.shop-overview-summary-actions{width:100%;justify-content:flex-start}.shop-overview-trend>.panel-heading,.shop-overview-status>.panel-heading{padding:18px 16px}}
.shop-overview .panel-title{font-size:15px}
.shop-overview .panel-subtitle{font-size:12px;line-height:1.6}
.shop-overview-charts{padding:15px 20px 0}
.shop-overview-chart h3{font-size:12px;font-weight:600;margin:4px 0 0;color:#35594c}
.shop-overview-chart h3 small{margin-left:8px;color:#81918a;font-size:10px;font-weight:400}
.shop-overview-chart svg{width:100%;height:auto;max-height:180px;display:block;overflow:visible}
.shop-overview-chart .chart-label{font-size:11px}
.shop-overview-chart .chart-day:focus{outline:none}
.shop-overview-chart .chart-day:focus-visible .chart-hit{stroke:#187766;stroke-width:1;stroke-dasharray:3 3}
.shop-overview-finance{padding-top:16px;border-top:1px solid #edf2ef}
.shop-overview-finance-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.shop-overview-finance-legend{display:flex;flex-wrap:wrap;gap:14px;color:#63776c;font-size:11px}
.shop-overview-finance-legend span{display:inline-flex;align-items:center;gap:6px}
.shop-overview-finance-legend i{width:18px;border-top:2px solid var(--series-color)}
.shop-overview-finance svg{max-height:250px}
.shop-overview-zero{stroke:#a4b8ae;stroke-width:1}
.shop-overview-chart-note{font-size:11px;color:#738579;line-height:1.7;margin:4px 0 14px}
.ad-overview-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px;font-size:12px;color:#6b7d72}
.ad-overview-toolbar label{font-weight:600;color:#36594c}
.ad-overview-toolbar .filter-select{min-width:160px;max-width:220px}
.ad-overview-toolbar>span{margin-left:auto}
.ad-overview-metrics .metric-card{padding:16px 18px;min-height:145px}
.ad-overview-metrics .metric-label{font-size:12px}
.ad-overview-metrics .metric-value{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;font-size:clamp(25px,2.1vw,33px);line-height:1.3;margin:9px 0;letter-spacing:-.7px}
.ad-overview-metrics .metric-value small{font-size:10px;letter-spacing:0;margin:0}
.ad-overview-metrics .metric-foot{display:flex;flex-wrap:wrap;row-gap:3px;font-size:10px;line-height:1.6}
.ad-overview-metrics .metric-foot a{color:#187766;text-underline-offset:3px}
.ad-overview-metrics .metric-foot a:hover{text-decoration:underline}
.ad-overview-trend .shop-overview-finance{padding-top:0;border-top:0}
.ad-overview-trend .shop-overview-finance svg{max-height:300px}
.ad-overview-status .donut-wrap{margin:20px auto;width:150px;height:150px}
.ad-overview-status-links{padding:0 20px}
.ad-overview-status-links a{display:flex;align-items:center;gap:9px;border-top:1px solid #e7eeea;padding:12px 0;font-size:12px;color:#3a5949}
.ad-overview-status-links a>span{display:flex;align-items:center;gap:7px;flex:1}
.ad-overview-status-links i{width:8px;height:8px;border-radius:50%}
.ad-overview-status-links a:hover{background:#f1f8f4}
.ad-overview-status-links small,.ad-overview-quality small{font-size:10px;font-weight:400;color:#7c8d82}
.ad-overview-status-links svg{width:13px;height:13px}
.ad-overview-quality{border-top:1px solid #e7eeea;padding:14px 20px 18px;margin-top:4px;font-size:11px}
.ad-overview-quality>span{display:block;color:#809086;font-size:10px;margin-bottom:12px}
.ad-overview-quality>div{display:flex;align-items:center;justify-content:space-between;margin-top:9px;gap:10px;color:#3a5949}
.ad-overview .ad-overview-table{min-width:1030px}
.ad-overview .ad-overview-table th:first-child{width:14%}
.ad-overview .ad-overview-table th,.ad-overview .ad-overview-table td{padding:14px 9px;font-size:11px}
.ad-overview .ad-overview-table .table-link{font-size:11px}
.ad-overview-shop-meta{display:block;font-size:10px;color:#809086;margin-top:7px;font-weight:400}
.ad-overview .ad-overview-daily .shop-overview-table{min-width:700px}
.ad-period-control{display:flex;flex-direction:column;gap:6px;max-width:100%;min-width:210px;font-size:11px;color:#718579}
.ad-period-control>label{display:flex;align-items:center;justify-content:flex-end;gap:9px;white-space:nowrap}
.ad-period-control .filter-select{font-size:12px;min-width:135px;max-width:170px;height:37px;padding-top:7px;padding-bottom:7px}
.ad-period-range{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:0;padding:2px 0;border:0;background:none;font:inherit;font-size:10px;line-height:1.6;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums;color:#718b7b;cursor:pointer}
.ad-period-range svg{width:12px;height:12px;flex-shrink:0}
.ad-period-range:hover{color:#187766}
.ad-period-range:focus-visible{outline:2px solid #187766;outline-offset:3px;border-radius:3px}
.ad-date-dropdown{position:fixed;z-index:400;box-sizing:border-box;padding:0;background:#fff;border:1px solid #dce6df;border-radius:10px;box-shadow:0 10px 40px #193e2c24,0 2px 8px #193e2c12;color:#355242;font-family:inherit;overflow:auto;overscroll-behavior:contain}
.ad-date-dropdown [hidden]{display:none!important}
.ad-date-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 18px;border-bottom:1px solid #e8eeea}
.ad-date-header strong{font-size:12px;font-weight:600}
.ad-date-close{border:0;background:none;color:#819187;font-size:22px;line-height:24px;width:28px;height:28px;cursor:pointer}
.ad-date-inputs{display:grid;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);gap:10px;align-items:end;padding:13px 18px 8px;font-size:11px;color:#819087}
.ad-date-inputs>label{display:flex;flex-direction:column;gap:5px;min-width:0}
.ad-date-inputs>span{align-self:center;text-align:center;margin-top:15px}
.ad-date-inputs input{width:100%;min-width:0;box-sizing:border-box;height:34px;border:1px solid #d7e3db;border-radius:5px;padding:5px 9px;font:inherit;font-size:12px;color:#355242;background:#fff}
.ad-date-inputs input:focus{outline:2px solid #c2ded0;outline-offset:1px;border-color:#187766}
.ad-date-calendars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:6px 10px 13px;gap:12px}
.ad-date-calendar{min-width:0;padding:0 6px}
.ad-date-calendar+.ad-date-calendar{border-left:1px solid #e8eeea;padding-left:16px}
.ad-date-month-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;height:36px;margin-bottom:5px}
.ad-date-month-heading>div{display:flex;align-items:center;gap:4px;min-width:0}
.ad-date-month-heading select{background:transparent;border:0;border-radius:4px;padding:4px 2px;font:inherit;font-size:12px;color:#355242;cursor:pointer}
.ad-date-nav{width:26px;height:28px;border:0;border-radius:4px;background:none;color:#819187;font-size:23px;line-height:26px;cursor:pointer}
.ad-date-nav:hover:not(:disabled){background:#eef6f1;color:#187766}
.ad-date-nav:disabled{color:#d0d9d3;cursor:default}
.ad-date-nav-space{width:26px;flex-shrink:0}
.ad-date-calendar table{width:100%;table-layout:fixed;border-collapse:collapse;min-width:0;margin:0}
.ad-date-calendar th{height:28px;padding:0;border:0;background:none;text-align:center;font-size:10px;color:#98a49c;font-weight:400;white-space:nowrap}
.ad-date-calendar td{height:32px;padding:0;border:0;background:none;text-align:center;vertical-align:middle}
.ad-date-calendar td button{display:block;position:relative;width:100%;height:30px;margin:1px 0;padding:0;border:0;border-radius:0;background:none;font:inherit;font-size:12px;font-variant-numeric:tabular-nums;color:#425e4e;cursor:pointer}
.ad-date-calendar td button.outside-month{color:#bbc5be}
.ad-date-calendar td button:disabled{color:#d4dcd6;cursor:default}
.ad-date-calendar td button.in-range{background:#e8f4ed}
.ad-date-calendar td button.range-start{border-radius:5px 0 0 5px}
.ad-date-calendar td button.range-end{border-radius:0 5px 5px 0}
.ad-date-calendar td button.range-selected{background:#187766;color:#fff;border-radius:5px}
.ad-date-calendar td button:hover:not(:disabled),.ad-date-calendar td button:focus-visible{outline:1.5px solid #187766;outline-offset:-2px;border-radius:5px}
.ad-date-calendar td button.date-today:after{content:'';position:absolute;width:3px;height:3px;background:currentColor;border-radius:50%;bottom:3px;left:calc(50% - 1.5px)}
.ad-date-footer{border-top:1px solid #e8eeea;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.ad-date-footer>span{font-size:10px;color:#83978a;line-height:1.6}
.ad-date-footer>div{display:flex;gap:8px;flex-shrink:0}
.ad-date-footer .button{min-height:32px;font-size:12px;padding:6px 13px}
.ad-date-error{padding:0 18px 12px;margin:0;font-size:11px;color:#bd4d4d;line-height:1.6}
@media(max-width:600px){.ad-date-calendars{grid-template-columns:1fr;padding:5px 12px 10px;gap:0}.ad-date-header{padding:10px 15px}.ad-date-inputs{padding:10px 15px 5px;gap:6px}.ad-date-inputs input{font-size:11px;padding:5px 6px}.ad-date-calendar td{height:37px}.ad-date-calendar td button{height:35px;font-size:13px}.ad-date-footer{padding:11px 15px;align-items:flex-end}.ad-date-footer>span{max-width:160px}}
.heading-actions:has(.ad-period-control){align-items:flex-start;flex-wrap:wrap;max-width:520px}
.heading-actions .ad-period-control{flex:1}
.ad-overview-trend>.panel-heading,#ad-overview-summary>.panel-heading{align-items:flex-start;gap:15px;flex-wrap:wrap}
.ad-compare-heading-tools{display:flex;align-items:flex-start;justify-content:flex-end;gap:15px;flex-wrap:wrap;max-width:100%}
.ad-compare-heading-tools>.ad-compare-controls{padding-top:1px}
@media(max-width:600px){.heading-actions:has(.ad-period-control){max-width:none;width:100%}.ad-period-control{min-width:0;width:100%}.ad-period-control>label{justify-content:space-between}.ad-period-control .filter-select{max-width:none;width:165px}.ad-period-range{justify-content:flex-start}.ad-compare-heading-tools{width:100%;justify-content:flex-start}.ad-compare-heading-tools .ad-compare-controls{width:100%}.ad-overview-trend>.panel-heading,#ad-overview-summary>.panel-heading{padding:18px 16px}}
@media(max-width:1250px){.ad-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-overview-main{grid-template-columns:minmax(0,1fr) 250px}}
@media(max-width:1000px){.ad-overview-main{grid-template-columns:1fr}.ad-overview-status{display:grid;grid-template-columns:180px 1fr}.ad-overview-status .panel-heading{grid-column:1/-1}.ad-overview-status-links{align-self:center}.ad-overview-quality{grid-column:1/-1;display:flex;align-items:center;gap:20px;flex-wrap:wrap}.ad-overview-quality>span{margin:0}.ad-overview-quality>div{margin:0;gap:10px}}
@media(max-width:600px){.ad-overview-toolbar{gap:8px}.ad-overview-toolbar>span{width:100%;margin:0;font-size:11px}.ad-overview-toolbar .filter-select{flex:1;max-width:none;min-width:0;width:auto}.ad-overview-metrics .metric-card{padding:13px 12px;min-height:148px}.ad-overview-metrics .metric-value{font-size:24px;overflow-wrap:anywhere}.ad-overview-metrics .metric-value>span{max-width:100%}.ad-overview-metrics .metric-icon{display:none}.ad-overview-metrics .metric-foot{font-size:10px}.ad-overview-status{grid-template-columns:135px 1fr}.ad-overview-status .donut-wrap{width:122px;height:122px}.ad-overview-status-links{padding:0 14px}.ad-overview-quality{padding:14px;gap:12px}.ad-overview-quality>span{width:100%}}
.ad-comparison{margin-bottom:24px;min-width:0}
.ad-comparison [hidden]{display:none!important}
.ad-comparison>.panel-heading{gap:18px;flex-wrap:wrap;align-items:flex-start}
.ad-compare-controls{display:flex;gap:12px;flex-wrap:wrap}
.ad-compare-controls label{display:flex;align-items:center;gap:8px;font-size:12px;color:#61756b}
.ad-compare-controls .filter-select{min-width:140px;max-width:180px;font-size:12px}
.ad-compare-picker{border-top:1px solid #e3ebe6;border-bottom:1px solid #e3ebe6;background:#f7faf8}
.ad-compare-picker>summary{padding:15px 24px;color:#187766;font-weight:600;font-size:13px;cursor:pointer}
.ad-compare-picker>summary span{margin-left:12px;font-size:12px;font-weight:400;color:#6d8275}
.ad-compare-picker-tools{padding:0 24px 16px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ad-compare-picker-tools input{font:inherit;font-size:12px;flex:1;min-width:170px;max-width:320px;height:38px;border:1px solid #d6e2da;border-radius:6px;padding:0 12px;background:white}
.ad-compare-picker-tools .button{font-size:12px;min-height:36px;padding:7px 12px}
.ad-compare-picker-tools>span{font-size:11px;color:#789084;margin-left:auto}
.ad-compare-table-wrap{max-height:350px;overflow:auto}
.ad-comparison .ad-compare-table{min-width:1190px}
.ad-comparison .ad-compare-table th,.ad-comparison .ad-compare-table td{font-size:11px;padding:11px 9px}
.ad-comparison .ad-compare-table th:first-child{width:40px;text-align:center}
.ad-comparison .ad-compare-table th:nth-child(2){width:230px;text-align:left}
.ad-comparison .ad-compare-table thead{position:sticky;top:0;z-index:1}
.ad-compare-table input{width:16px;height:16px;accent-color:#187766;cursor:pointer}
.ad-comparison .ad-compare-table tr.ad-compare-selected{background:#e8f4ee}
.ad-compare-name{display:flex;align-items:center;gap:8px;line-height:1.6}
.ad-compare-name svg,.ad-compare-chip svg,.ad-compare-values svg{flex-shrink:0}
.ad-compare-name small{display:block;color:#789084;font-size:10px;margin-top:4px}
.ad-compare-legend{display:flex;gap:8px;flex-wrap:wrap;padding:20px 24px 8px}
.ad-compare-chip{display:flex;align-items:center;gap:9px;padding:8px 10px;border:1px solid #e0e9e4;border-radius:7px;background:#fff;color:#3d594b;text-align:left;font:inherit;font-size:12px;cursor:pointer;max-width:100%}
.ad-compare-chip>span:first-of-type{overflow-wrap:anywhere}
.ad-compare-chip>span:last-of-type{font-size:17px;color:#8a9b91;margin-left:7px}
.ad-compare-chip small{display:block;margin-top:3px;font-size:10px;color:#7b8e82}
.ad-compare-chip:hover{border-color:#9abcaa;background:#f6faf7}
.ad-compare-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:15px 26px 0}
.ad-compare-chart-heading h3{margin:0;color:#335c4b;font-size:13px;font-weight:600}
.ad-compare-chart-heading>span{font-size:11px;color:#839389}
.ad-compare-plot-scroll{overflow-x:auto;margin:0 18px}
.ad-compare-plot{display:block;width:100%;height:auto;max-height:350px;min-height:190px}
.ad-compare-plot .chart-label{font-size:13px}
.ad-compare-guide{stroke:#99b6a7;stroke-dasharray:3 4;opacity:0}
.ad-compare-day-active .ad-compare-guide,.ad-compare-day:focus-visible .ad-compare-guide{opacity:1}
.ad-compare-day{outline:none;cursor:crosshair}
.ad-compare-day:focus-visible rect{stroke:#187766;stroke-width:1;stroke-dasharray:3 3}
.ad-compare-readout{background:#f7faf8;border:1px solid #e3ebe6;border-radius:8px;margin:8px 24px 0;padding:13px 15px}
.ad-compare-readout:empty{display:none}
.ad-compare-readout-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:11px;color:#85958c}
.ad-compare-readout-heading strong{font-size:12px;color:#466454;font-variant-numeric:tabular-nums}
.ad-compare-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 24px;margin-top:12px}
.ad-compare-values>div{display:flex;align-items:center;gap:8px;min-width:0;font-size:11px;color:#486352}
.ad-compare-values>div>span{min-width:0;overflow-wrap:anywhere}
.ad-compare-values small{display:block;font-size:10px;color:#8b9a91;margin-top:3px}
.ad-compare-values strong{font-size:13px;margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.ad-compare-note{margin:13px 24px 20px;font-size:11px;color:#7e9185;line-height:1.8}
.ad-compare-empty{padding:55px 24px;text-align:center;color:#7b8f81;font-size:13px;line-height:1.8}
@media(max-width:1100px){.ad-compare-values{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-compare-picker-tools>span{width:100%;margin:0}}
@media(max-width:600px){.ad-comparison>.panel-heading{padding:18px 16px}.ad-compare-controls{width:100%;gap:10px}.ad-compare-controls label{flex:1;min-width:140px;flex-direction:column;align-items:stretch;gap:5px}.ad-compare-controls .filter-select{max-width:none;min-width:0;width:100%}.ad-compare-picker>summary{padding:14px 16px}.ad-compare-picker-tools{padding:0 16px 14px}.ad-compare-picker-tools input{width:100%;flex-basis:100%;max-width:none}.ad-compare-legend{padding:14px 16px 0}.ad-compare-chip{flex:1 1 100%}.ad-compare-chip>span:last-of-type{margin-left:auto}.ad-compare-chart-heading{margin:16px 16px 0}.ad-compare-chart-heading>span{display:none}.ad-compare-plot-scroll{margin:0 7px}.ad-compare-plot{min-width:550px}.ad-compare-plot .chart-label{font-size:18px}.ad-compare-values{grid-template-columns:1fr}.ad-compare-readout{margin:5px 16px 0;padding:12px}.ad-compare-note{margin:12px 16px 18px}}
.shop-overview-status .donut-wrap{margin:24px auto 18px;width:164px;height:164px}
.shop-overview-status-list{padding:0 20px 8px}
.shop-overview-status-link{display:grid;grid-template-columns:minmax(0,1fr) auto 44px 14px;gap:8px;align-items:center;padding:14px 0;border-top:1px solid #e7eeea;text-decoration:none;color:#687c71;font-size:12px}
.shop-overview-status-link strong{color:#2d4d40;font-variant-numeric:tabular-nums;font-size:15px}
.shop-overview-status-link small{font-weight:400;font-size:10px;color:#7e8f85}
.shop-overview-status-link>span:nth-last-child(2){text-align:right;font-size:11px;font-variant-numeric:tabular-nums}
.shop-overview-status-link svg{width:14px;height:14px}
.shop-overview-status-link:hover,.shop-overview-status-link:focus-visible{background:#f1f8f4}
.shop-overview-all{display:flex;align-items:center;justify-content:center;gap:8px;border-top:1px solid #e7eeea;padding:15px;color:#187766;text-decoration:none;font-size:12px}
.shop-overview-breakdown .panel-heading{padding-bottom:18px}
.shop-overview-breakdown .shop-overview-table{min-width:0}
.shop-overview-breakdown .text-link{display:flex;align-items:center;gap:6px;color:#187766;white-space:nowrap;font-size:12px;text-decoration:none}
.shop-overview-table{width:100%;table-layout:fixed;min-width:710px;border-collapse:collapse}
.shop-overview-table th,.shop-overview-table td{padding:14px 12px;vertical-align:middle;border-right:1px solid #e0e9e3;border-bottom:1px solid #e0e9e3;font-size:12px;overflow-wrap:anywhere;white-space:normal}
.shop-overview-table thead th{background:#edf4ef;color:#4c695c;font-weight:600}
.shop-overview-table th:first-child{width:25%;text-align:left}
.shop-overview-table th:last-child,.shop-overview-table td:last-child{border-right:0}
.shop-overview-table thead small,.shop-overview-money small{display:block;font-size:10px;font-weight:400;color:#6d8275;margin-top:4px}
.shop-overview-table tbody th{font-weight:500;color:#344e41}
.shop-overview-table tbody tr:nth-child(even){background:#f6f9f7}
.shop-overview-table .numeric{font-variant-numeric:tabular-nums;text-align:right}
.shop-overview-table tfoot th,.shop-overview-table tfoot td{background:#edf6f0;font-weight:600;border-bottom:0}
.shop-overview-money{display:block;font-weight:600}
.shop-overview-money small{font-size:11px}
.shop-overview-ad{color:#187766;font:inherit;line-height:1.6}
.shop-overview .shop-overview-empty{text-align:center;padding:32px;color:#738579}
.shop-overview-daily{border-top:1px solid #e7eeea;margin-top:10px}
.shop-overview-daily>summary{padding:14px 22px;color:#187766;font-size:12px;cursor:pointer}
.shop-overview-daily .shop-overview-table{min-width:620px}
.shop-overview-daily .shop-overview-table th:first-child{width:18%}
.shop-overview-method{margin:18px 0 0;color:#738579;font-size:12px;line-height:1.9}
.shop-overview-method>summary{display:flex;align-items:center;gap:7px;width:fit-content;cursor:pointer}
.shop-overview-method>summary:after{content:'展开';font-size:10px;margin-left:4px}
.shop-overview-method[open]>summary:after{content:'收起'}
.shop-overview-method ul{padding-left:22px;margin:10px 0}
.shop-overview-alert{padding:12px 16px;margin:0 0 20px;background:#fff8eb;color:#97662a;border:1px solid #efdfbd;border-radius:8px;font-size:12px;line-height:1.7}
.data-center-filters{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 18px;font-size:12px;color:#718479}
.data-center-filters label{display:flex;align-items:center;gap:12px;font-weight:600;color:#36594c}
.data-center-filters .filter-select{width:220px;max-width:240px;font-weight:400}
.data-center-shop-filter{display:flex;align-items:center;gap:12px;min-width:0}
.data-center-shop-filter>span{font-weight:600;color:#36594c;white-space:nowrap}
.data-center-shop-picker{position:relative;width:240px;max-width:100%;color:#52665b}
.data-center-shop-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;border:1px solid #dce5df;border-radius:7px;background:#fff;padding:10px 13px;cursor:pointer;font-size:12px;min-height:40px}
.data-center-shop-picker>summary::-webkit-details-marker{display:none}
.data-center-shop-picker>summary>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.data-center-shop-picker>summary svg{flex-shrink:0;width:14px;height:14px}
.data-center-shop-picker[open]>summary{border-color:#187766;box-shadow:0 0 0 2px #18776614}
.data-center-shop-picker[open]>summary svg{transform:rotate(180deg)}
.data-center-shop-picker>summary:focus-visible{outline:2px solid #187766;outline-offset:3px}
.data-center-shop-options{position:absolute;left:0;top:calc(100% + 7px);z-index:35;width:310px;max-width:calc(100vw - 34px);background:#fff;border:1px solid #dce5df;border-radius:10px;box-shadow:0 10px 28px #203b2b26;overflow:hidden}
.data-center-shop-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-bottom:1px solid #e7eeea}
.data-center-shop-options label{font-size:12px;font-weight:400;cursor:pointer;min-width:0;gap:9px}
.data-center-shop-options input[type=checkbox]{appearance:auto;width:16px;height:16px;margin:0;accent-color:#187766;flex-shrink:0;cursor:pointer}
.data-center-shop-options input:focus-visible{outline:2px solid #187766;outline-offset:3px}
.data-center-shop-choices{max-height:min(280px,45vh);overflow:auto;padding:5px}
.data-center-shop-choice{display:flex;align-items:center;justify-content:space-between;border-radius:5px}
.data-center-shop-choice:hover{background:#f0f7f3}
.data-center-shop-choice>label{flex:1;padding:11px 8px;min-height:42px}
.data-center-shop-choice>label>span{overflow-wrap:anywhere}
.data-center-picker-action{font:inherit;font-size:11px;border:0;border-radius:4px;background:transparent;color:#187766;padding:8px;cursor:pointer;white-space:nowrap}
.data-center-picker-action:hover:not(:disabled){background:#e8f3ec}
.data-center-picker-action:disabled{opacity:.45;cursor:default}
.data-center-picker-hint{margin:0;border-top:1px solid #e7eeea;padding:10px 12px;color:#7a8a80;font-size:10px}
.data-center-picker-empty{padding:12px;color:#7a8a80;font-size:12px}
@media(max-width:600px){.data-center-shop-filter{width:100%;justify-content:space-between}.data-center-shop-picker{flex:1;max-width:240px;min-width:0}.data-center-shop-options{left:auto;right:0}}
.data-center .metric-foot{flex-wrap:wrap;gap:4px}
.data-center .metric-value>span{max-width:100%;overflow-wrap:anywhere}
.data-center-panel .panel-heading{padding-bottom:20px;gap:12px;flex-wrap:wrap}
.data-center-table-hint{font-size:11px;color:#738579}
.data-center-table-wrap{max-width:100%;overflow:auto;scrollbar-gutter:stable}
.data-center-table-wrap:focus-visible{outline:2px solid #187766;outline-offset:-2px}
.data-center-table{min-width:1420px}
.data-center-table .data-center-shop-col{width:190px}
.data-center-table .data-center-count-col{width:86px}
.data-center-table .data-center-average-col{width:95px}
.data-center-table .data-center-money-col{width:150px}
.data-center-table .data-center-rate-col{width:100px}
.data-center-table th:first-child{width:190px;position:sticky;left:0;z-index:1;background:#fff;box-shadow:1px 0 #dce7df}
.data-center-table tbody tr:nth-child(even) th:first-child{background:#f6f9f7}
.data-center-table thead th:first-child{background:#edf4ef}
.data-center-table tfoot th:first-child{background:#edf6f0}
.data-center-table td{white-space:nowrap;overflow-wrap:normal}
.data-center-table tbody tr:hover td,.data-center-table tbody tr:hover th{background:#edf7f1}
.data-center-shop-link{display:flex;align-items:center;gap:10px;color:#187766;text-decoration:none;line-height:1.5}
.data-center-shop-link:hover>span:last-child{text-decoration:underline;text-underline-offset:3px}
.data-center-shop-link small,.data-center-table tfoot th small{display:block;font-size:10px;font-weight:400;color:#738579;margin-top:5px}
.data-center-order-count,.data-center-profit{font-weight:650}
.data-center-empty-period{font-size:12px;line-height:1.7;color:#718479;margin:0 0 16px}
.monthly-year-control{display:flex;align-items:center;gap:12px;font-size:12px;color:#36594c;white-space:nowrap}
.monthly-year-control .filter-select{width:136px}
.monthly-trend{margin-bottom:24px}
.monthly-trend>.panel-heading{padding:24px 26px 12px;gap:16px;align-items:center;flex-wrap:wrap}
.monthly-trend-legend{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.monthly-trend-legend-item{display:flex;align-items:center;gap:8px;color:var(--series-color);font:inherit;font-size:12px;cursor:pointer;border:1px solid #e0e9e3;background:#fff;padding:8px 11px;border-radius:7px;min-height:43px}
.monthly-trend-legend-item:hover:not(:disabled){background:#f5f9f6;border-color:#bed4c6}
.monthly-trend-legend-item>svg{width:26px;height:8px;flex-shrink:0}
.monthly-trend-legend-item small{display:block;font-size:9px;color:#819187;text-align:left;margin-top:3px}
.monthly-trend-legend-item[aria-pressed=false]{opacity:.45}
.monthly-trend-legend-item[aria-pressed=false]>span{text-decoration:line-through}
.monthly-trend-legend-item:focus-visible{outline:2px solid #187766;outline-offset:2px}
.monthly-trend-plot-wrap{position:relative;margin:8px 18px 0}
.monthly-trend-scroll{overflow:auto;max-width:100%;scrollbar-gutter:stable}
.monthly-trend-plot{display:block;width:100%;height:auto;max-height:360px;min-width:720px}
.monthly-trend [hidden]{display:none!important}
.monthly-trend-axis-title{font-size:12px;font-weight:600;fill:#526b5d}
.monthly-trend-order-title,.monthly-trend-order-label{fill:#537ba4}
.monthly-trend-axis-label{font-size:12px;fill:#809087}
.monthly-trend-grid{stroke:#e4ece6;stroke-width:1;stroke-dasharray:4 5}
.monthly-trend-zero{stroke:#b4c8ba;stroke-dasharray:none}
.monthly-trend-axis-tick{stroke:#ccdacf;stroke-width:1}
.monthly-trend-hit{fill:transparent;cursor:crosshair}
.monthly-trend-month:focus{outline:none}
.monthly-trend-month:focus-visible .monthly-trend-hit{stroke:#187766;stroke-width:1;stroke-dasharray:4 4;fill:#18776605}
.monthly-trend-month[aria-pressed=true] .monthly-trend-month-label{fill:#187766;font-weight:650}
.monthly-trend-all-hidden{position:absolute;z-index:1;left:50%;top:48%;transform:translate(-50%,-50%);background:#ffffffee;border:1px solid #dfebe2;border-radius:8px;padding:13px 20px;color:#718579;font-size:12px;white-space:nowrap;pointer-events:none}
.monthly-trend-readout{margin:4px 26px 0;border:1px solid #e0eae3;border-radius:9px;background:#f7faf8;padding:14px 18px}
.monthly-trend-readout-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:12px;color:#496653}
.monthly-trend-readout-heading strong{font-weight:600}
.monthly-trend-readout-heading>span{font-size:10px;color:#839589}
.monthly-trend-readout dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:14px 0 2px}
.monthly-trend-readout dt{font-size:11px;color:#6c8072;display:flex;align-items:center;gap:6px}
.monthly-trend-readout dt i{width:7px;height:7px;border-radius:50%;background:var(--series-color)}
.monthly-trend-readout dd{font-size:20px;font-weight:650;margin:7px 0 0;color:#344e40;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.monthly-trend-readout dd.ad-loss{color:#bd5050}
.monthly-trend-muted{opacity:.5}
.monthly-trend-note{margin:10px 26px 20px;font-size:11px;color:#7b8e80;line-height:1.7}
.monthly-trend-empty{min-height:220px}
@media(max-width:600px){.monthly-trend>.panel-heading{padding:18px 16px 8px;gap:14px}.monthly-trend-legend{width:100%;gap:6px}.monthly-trend-legend-item{flex:1;justify-content:center;font-size:11px;gap:5px;padding:7px 5px}.monthly-trend-legend-item>svg{width:20px}.monthly-trend-legend-item small{font-size:8px}.monthly-trend-plot-wrap{margin:6px 7px 0}.monthly-trend-axis-label,.monthly-trend-axis-title{font-size:18px}.monthly-trend-readout{margin:8px 16px 0;padding:12px}.monthly-trend-readout-heading{flex-direction:column;align-items:flex-start;gap:5px}.monthly-trend-readout dl{grid-template-columns:1fr;gap:10px;margin-top:13px}.monthly-trend-readout dl>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.monthly-trend-readout dd{font-size:17px;margin:0}.monthly-trend-note{margin:10px 16px 18px;font-size:10px}}
.ad-data-view-control{display:inline-flex;gap:3px;align-items:center;padding:4px;background:#eaf1ed;border:1px solid #dce7df;border-radius:8px;align-self:center}
.heading-actions:has(.ad-data-view-control){flex-wrap:wrap}
.ad-data-view-control>button{padding:8px 14px;border-radius:5px;font-size:12px;white-space:nowrap;color:#6b8173}
.ad-data-view-control>button[aria-pressed=true]{color:#187766;background:#fff;box-shadow:0 1px 4px #1d4a3012;font-weight:650}
.ad-data-view-control>button:focus-visible{outline:2px solid #187766;outline-offset:2px}
.ad-data-monthly-metrics{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:22px}
.ad-data-monthly-metrics .metric-foot{display:block;line-height:1.8}
.ad-monthly-table{min-width:860px;table-layout:fixed}
.ad-monthly-table th:first-child{width:135px;min-width:135px}
.ad-monthly-table tbody th,.ad-monthly-table tbody td{padding-top:14px;padding-bottom:14px}
.ad-monthly-table .ad-monthly-current th,.ad-monthly-table .ad-monthly-current td{background:#edf7f1}
.ad-monthly-current .monthly-month-status{color:#187766}
.ad-monthly-table .ad-monthly-future th,.ad-monthly-table .ad-monthly-future td{color:#89978f}
@media(max-width:1250px){.ad-data-monthly-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-data-monthly-metrics .metric-card:last-child{grid-column:1/-1}}
@media(max-width:600px){.heading-actions:has(.ad-data-view-control){width:100%;max-width:none;justify-content:flex-start}.heading-actions:has(.ad-data-view-control) .ad-data-view-control{flex:0 0 100%;align-self:stretch;display:flex}.ad-data-view-control>button{flex:1;font-size:11px;padding:8px 14px}.heading-actions:has(.ad-data-view-control) .monthly-year-control{flex:1;min-width:0;justify-content:space-between}.ad-monthly-table th:first-child{width:105px;min-width:105px}.ad-data-monthly-metrics{gap:10px}.ad-data-monthly-metrics .metric-value{font-size:23px}}
.ad-data-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px}
.ad-data-metrics .metric-foot{display:block;line-height:1.8}
.ad-data-trend{margin-bottom:24px;min-width:0}
.ad-data-trend>.panel-heading{align-items:flex-start;gap:18px;flex-wrap:wrap}
.ad-data-trend .ad-compare-controls{justify-content:flex-end}
.ad-data-trend .ad-compare-controls label{font-size:11px}
.ad-data-trend .ad-compare-controls .filter-select{min-width:130px;max-width:165px}
.ad-data-legend{padding:0 26px 10px;display:flex;flex-wrap:wrap;gap:8px 14px}
.ad-data-series{display:inline-flex;align-items:center;gap:8px;border:1px solid #dce7df;border-radius:6px;padding:7px 10px;font-size:11px;color:#42634f;background:#fff}
.ad-data-series>svg,.ad-data-trend .ad-compare-values svg{width:28px;height:10px;flex-shrink:0}
.ad-data-series[aria-pressed=false]{opacity:.45;background:#f4f7f5;text-decoration:line-through}
.ad-data-series:focus-visible{outline:2px solid #187766;outline-offset:2px}
.ad-data-plot-scroll{max-width:100%;overflow-x:auto;margin:0 16px;scrollbar-gutter:stable}
.ad-data-plot{display:block;width:100%;height:auto;min-width:720px}
.ad-data-plot [data-ad-data-day]:focus{outline:none}
.ad-data-plot [data-ad-data-day]:focus-visible rect{stroke:#187766;stroke-width:1;stroke-dasharray:4 4}
.ad-data-plot [data-ad-data-day][aria-pressed=true] text{fill:#187766;font-weight:650}
.ad-data-table{min-width:2560px;table-layout:auto}
.ad-data-table th,.ad-data-table td{padding:15px 13px}
.ad-data-table th{min-width:104px}
.ad-data-table .ad-data-column-groups th{font-size:11px;text-align:center;letter-spacing:.5px;padding:10px 14px;border-bottom:1px solid #dce7df}
.ad-data-table .ad-data-column-groups th:first-child{min-width:190px;text-align:left}
.ad-data-table thead tr:nth-child(2) th:first-child{position:static;width:auto;box-shadow:none}
.ad-data-table .ad-data-column-groups th:nth-child(n+2){position:static}
.ad-data-table th:first-child{min-width:190px}
.ad-data-table tfoot td{font-weight:650}
.ad-data-cell-meta{display:block;color:#75897b;font-size:10px;font-weight:400;margin-top:5px;white-space:nowrap}
.ad-data-shop-button{display:flex;align-items:center;gap:10px;text-align:left;color:#187766;font-size:12px;width:100%}
.ad-data-shop-button>span:last-child{min-width:0}
.ad-data-shop-button small{display:block;color:#75897b;font-size:10px;font-weight:400;margin-top:5px}
.ad-data-shop-button:focus-visible{outline:2px solid #187766;outline-offset:4px;border-radius:3px}
.ad-data-unfilled{color:#7b8b81;font-size:11px}
.ad-data-methods{margin-top:18px;color:#677e6f;font-size:11px;line-height:1.8}
.ad-data-methods summary{display:flex;align-items:center;gap:8px;cursor:pointer;width:fit-content;color:#42634f;padding:5px 0}
.ad-data-methods summary:after{content:'展开';font-size:10px;color:#839589}
.ad-data-methods[open] summary:after{content:'收起'}
.ad-data-methods dl{margin:12px 0 0;padding:17px 20px;background:#edf5ef;border:1px solid #dfe9e2;border-radius:8px;display:grid;gap:12px}
.ad-data-methods dt{font-weight:650;color:#42634f}
.ad-data-methods dd{margin:2px 0 0}
dialog.ad-data-dialog{width:min(1400px,calc(100vw - 36px))}
.ad-data-dialog .modal-body{padding:16px 0}
.ad-data-detail-table{min-width:1530px}
.ad-data-detail-table th:first-child{min-width:235px;width:235px}
.ad-data-detail-table td{white-space:nowrap}
@media(max-width:1250px){.ad-data-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-data-trend .ad-compare-controls{justify-content:flex-start}}
@media(max-width:600px){.ad-data-trend>.panel-heading{padding:18px 16px 12px}.ad-data-trend .ad-compare-controls label{min-width:125px}.ad-data-trend .ad-compare-controls .filter-select{min-width:0;max-width:none;width:100%}.ad-data-legend{padding:0 16px 10px;gap:7px}.ad-data-series{font-size:10px;padding:7px 8px;gap:5px}.ad-data-series>svg{width:22px}.ad-data-plot-scroll{margin:0 6px}.ad-data-plot .chart-label{font-size:18px}.ad-data-trend .ad-compare-readout-heading{align-items:flex-start;flex-direction:column;gap:6px}.ad-data-table .ad-data-column-groups th:first-child,.ad-data-table th:first-child{min-width:155px}.ad-data-shop-button .store-icon{display:none}.ad-data-metrics .metric-value{font-size:23px}.ad-data-metrics .metric-foot{font-size:10px}.ad-data-methods dl{padding:14px}dialog.ad-data-dialog{width:calc(100vw - 20px)}.ad-data-dialog .modal-header{padding:18px 16px}.ad-data-dialog .modal-footer{padding:12px 16px}}
.monthly-table{min-width:1160px}
.monthly-table .monthly-month-col,.monthly-table th:first-child{width:108px}
.monthly-table tbody td,.monthly-table tbody th{padding-top:14px;padding-bottom:14px}
.monthly-month-label{font-weight:650;white-space:nowrap}
.monthly-month-status{display:block;font-size:10px;font-weight:400;color:#738579;margin-top:5px;white-space:nowrap}
.monthly-change{display:block;font-size:10px;font-weight:400;line-height:1.5;color:#718479;margin-top:5px}
.monthly-table tbody .monthly-current th,.monthly-table tbody .monthly-current td{background:#edf7f1}
.monthly-current .monthly-month-status{color:#187766}
.monthly-table .monthly-future th,.monthly-table .monthly-future td{color:#89978f}
@media(max-width:600px){.monthly-year-control{font-size:11px}.monthly-year-control .filter-select{width:118px}.monthly-stats .monthly-table th:first-child,.monthly-stats .monthly-table .monthly-month-col{width:96px}}
@media(max-width:600px){.data-center-filters>label{width:100%;justify-content:space-between}.data-center-filters .filter-select{flex:1;max-width:240px;width:auto}.data-center-filters>span{font-size:11px}.data-center-panel .panel-heading{padding:18px 16px}.data-center-table th:first-child,.data-center-table .data-center-shop-col{width:160px}.data-center-shop-link .store-icon{display:none}.data-center-panel .table-foot{align-items:flex-start;flex-direction:column;gap:8px}.data-center-table-hint{font-size:10px}}
@media(max-width:1250px){.shop-overview .shop-overview-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}.shop-overview-metrics .metric-card{grid-column:span 2}.shop-overview-metrics .metric-card:nth-child(n+4){grid-column:span 3}.shop-overview-main{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.shop-overview-metrics .metric-value{font-size:28px}}
@media(max-width:1000px){.shop-overview-main{grid-template-columns:1fr}.shop-overview-status{display:grid;grid-template-columns:180px minmax(0,1fr)}.shop-overview-status .panel-heading{grid-column:1/-1}.shop-overview-status .donut-wrap{align-self:center}.shop-overview-status-list{padding-top:18px}.shop-overview-all{grid-column:1/-1}}
@media(max-width:600px){.shop-overview .shop-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-overview-metrics .metric-card{padding:14px 12px;min-height:145px;grid-column:span 1}.shop-overview-metrics .metric-card:nth-child(n+4){grid-column:span 1}.shop-overview-metrics .metric-card:last-child{grid-column:1/-1}.shop-overview-metrics .metric-value{font-size:26px}.shop-overview-metrics .metric-icon{display:none}.shop-overview-scope{font-size:11px}.shop-overview-charts{padding:15px 8px 0}.shop-overview-chart{overflow-x:auto;padding:0 4px}.shop-overview-chart svg{min-width:430px}.shop-overview-status{grid-template-columns:140px minmax(0,1fr)}.shop-overview-status .donut-wrap{width:128px;height:128px}.shop-overview-status-list{padding:18px 12px 8px}.shop-overview-status-link{grid-template-columns:minmax(0,1fr) auto;gap:6px}.shop-overview-status-link>span:nth-last-child(2),.shop-overview-status-link>svg{display:none}.shop-overview-breakdown .panel-heading{flex-wrap:wrap}}

/* Country shipping templates and item/order fee breakdowns. */
.shipping-intro{display:flex;align-items:center;gap:18px;padding:23px 26px;background:#edf5f1;border:1px solid #dbe8e1;border-radius:14px;margin:0 0 24px;color:#315b4e}
.shipping-intro>span{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#fff;flex-shrink:0}
.shipping-intro strong{font-size:16px}.shipping-intro p{margin:7px 0 0;color:#668075;line-height:1.7;font-size:13px}.shipping-intro .button{margin-left:auto;white-space:nowrap}
.shipping-template-panel{overflow:hidden}.shipping-template-table{min-width:1320px;width:100%;border-collapse:collapse}.shipping-template-table th{background:#edf4f0;color:#49685b;white-space:nowrap}.shipping-template-table td,.shipping-template-table th{padding:18px 16px;border-bottom:1px solid #e0e9e4;border-right:1px solid #e0e9e4;text-align:left}.shipping-template-table small{display:block;font-size:11px;font-weight:400;line-height:1.7;color:#6f857b;margin-top:6px}.shipping-template-table tr:nth-child(even){background:#f6faf8}.shipping-template-table td:nth-child(2){min-width:170px}
.shipping-country-filter{display:flex;gap:12px;align-items:center;font-size:13px;color:#416455;white-space:nowrap}.shipping-country-filter select{min-width:170px;padding:10px 32px 10px 12px;border:1px solid #dbe3df;background:#fff;border-radius:8px;color:inherit;font:inherit}.shipping-rule-note{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:#708478;margin-top:20px;line-height:1.8}.shipping-rule-note p{margin:0}.shipping-rule-note svg{margin-top:4px;flex-shrink:0}
#modal.shipping-dialog{width:min(980px,calc(100vw - 32px));max-width:980px}.shipping-fee-editors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.shipping-fee-editors fieldset{margin:0;min-width:0;border:1px solid #dce7e1;border-radius:10px;padding:16px;background:#f8fbf9}.shipping-fee-editors legend{font-weight:600;color:#315f50;padding:0 7px}.shipping-percent-editors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.shipping-form-hint{font-size:12px;color:#708278;line-height:1.8;margin:10px 0 18px}.shipping-inline-preview{padding:16px 20px;background:#eef6f2;border:1px solid #d6e6dd;border-radius:10px;font-size:13px;line-height:1.8;color:#356350}.shipping-inline-preview p{margin:6px 0 0}
.product-shipping-settings{margin-top:22px;border-top:1px solid #e3eae6;padding-top:20px}.product-shipping-settings h3{font-size:16px;color:#2a5747;margin:0 0 18px}.shipping-product-countries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.shipping-product-preview-row{padding:14px 16px;border:1px solid #dbe8e1;background:#f3f8f5;border-radius:8px;margin-top:10px;display:grid;gap:7px;font-size:13px;color:#426452}.shipping-product-preview-row small{color:#738a7e;line-height:1.6}.shipping-cost-country+ .shipping-cost-country{margin-top:10px}.shipping-cost-country small{display:block;font-size:10px;color:#73867b;font-weight:400;margin-top:4px;white-space:normal}.product-grid-table .shipping-cost-cell{min-width:150px}.product-weight{white-space:nowrap;min-width:100px}.product-grid-table th small{display:block;font-size:10px;font-weight:400;margin-top:4px}
.order-customer-section .order-customer-heading{justify-content:flex-start;align-items:center;gap:20px;flex-wrap:wrap}
.order-customer-heading h3{flex-shrink:0}
.order-customer-heading #order-shipping-selection{flex:1;min-width:280px;max-width:520px}
.order-composer .order-customer-heading .field{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0}
.order-customer-heading .field label{white-space:nowrap;flex-shrink:0}
.order-customer-heading .field select{flex:1;min-width:0;width:100%}
.order-customer-section #order-shipping-preview{min-height:42px;padding:10px 16px}
.order-customer-section #order-shipping-preview :is(.shipping-form-hint,.order-shipping-summary,.order-shipping-breakdown){margin:0;font-size:12px;line-height:22px;padding:0}
.order-customer-section #order-shipping-preview summary{padding:0;line-height:22px}
.order-shipping-summary{margin:14px 0 0;padding:7px 0;line-height:1.7;color:#3c6553;font-size:13px}
.order-shipping-breakdown{margin-top:14px;color:#3c6553;font-size:13px}.order-shipping-breakdown summary{cursor:pointer;padding:7px 0;line-height:1.7}.shipping-quote{background:#fff;border:1px solid #dbe6df;border-radius:10px;padding:18px 22px;margin:14px 0}.shipping-quote p{font-size:13px;color:#47705c;line-height:1.7;margin:0 0 15px}.shipping-quote dl{margin:0}.shipping-quote dl>div{display:flex;justify-content:space-between;gap:18px;border-top:1px solid #e8eeea;padding:10px 0;font-size:13px}.shipping-quote dt{color:#496c5b}.shipping-quote dt small{display:block;font-size:11px;color:#819286;line-height:1.6;margin-top:3px}.shipping-quote dd{margin:0;white-space:nowrap;font-weight:600;color:#285e4b}.shipping-quote .shipping-quote-total{padding-top:15px;font-weight:700;font-size:16px}.order-weight-label{display:block;font-size:10px;color:#7e8f84;margin-top:6px}
@media(max-width:900px){.shipping-intro{flex-wrap:wrap}.shipping-intro .button{margin-left:62px}.shipping-fee-editors{grid-template-columns:1fr}.shipping-fee-editors fieldset{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.shipping-percent-editors{grid-template-columns:1fr}.shipping-template-panel .section-toolbar{flex-wrap:wrap;gap:14px}}
@media(max-width:600px){.shipping-intro{padding:18px;gap:12px}.shipping-intro>div{flex:1;min-width:180px}.shipping-intro .button{margin-left:0}.shipping-product-countries{grid-template-columns:1fr}.shipping-fee-editors fieldset{grid-template-columns:1fr}.shipping-country-filter{width:100%}.shipping-country-filter select{min-width:0;flex:1}.shipping-quote{padding:14px}}

/* Refusal costs: explicit template choices and order-owned fee snapshots. */
.refusal-rules-editor {margin-top:22px;padding-top:18px;border-top:1px solid var(--border,#dce6e1)}
.refusal-rules-editor h3,.refusal-breakdown h3,.order-deal-title {font-size:16px;margin:0 0 14px}
.refusal-enable {display:flex;align-items:center;gap:10px;font-weight:600;margin:12px 0}
.refusal-rules-editor input[type=checkbox] {width:18px;height:18px;accent-color:#187766;flex-shrink:0}
#refusal-rule-fields {padding:0;border:0;margin:12px 0 0;min-width:0}
#refusal-rule-fields[hidden] {display:none}
.refusal-fee-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 20px}
.refusal-fee-options label {display:flex;gap:9px;align-items:center;min-height:44px;padding:10px;border:1px solid #dce6e1;border-radius:6px;font-size:14px;background:#f7faf8;cursor:pointer}
.refusal-fee-options label:has(input:checked) {border-color:#187766;background:#eaf5ef}
.refusal-dialog {width:min(700px,calc(100vw - 32px))}
.refusal-fee-rows {margin-top:18px;border:1px solid #dce6e1;border-radius:8px;overflow:hidden}
.refusal-saved-fee,.refusal-fee-rows>.field {padding:12px 16px;margin:0;border-bottom:1px solid #e1e9e4}
.refusal-saved-fee {display:flex;align-items:center;justify-content:space-between;gap:14px}
.refusal-saved-fee small,.refusal-breakdown dt small {display:block;font-size:12px;color:#678175;margin-top:4px}
#refusal-result {margin-top:18px;padding:16px;border-radius:8px;background:#edf5f0;color:#315d4c;font-size:14px;line-height:1.6}
#refusal-result strong {display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:16px}
#refusal-result strong span {font-size:24px;font-variant-numeric:tabular-nums}
#refusal-result p {margin:8px 0 0;font-size:13px}
.refusal-breakdown {padding:20px;margin:18px 0;border:1px solid #dec7a5;background:#fffbf5;border-radius:10px}
.refusal-breakdown p {font-size:13px;line-height:1.6;color:#76654e;margin:8px 0}
.refusal-breakdown dl {margin:12px 0}
.refusal-breakdown dl>div {display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #ecdfca}
.refusal-breakdown dd {margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.refusal-total {font-weight:700;font-size:17px}
.refusal-empty {padding:18px;background:#fff8ed;border-radius:8px;line-height:1.8}
.refusal-report-note {margin:0 0 22px;padding:13px 18px;border:1px solid #ded9c7;border-radius:8px;background:#fffcf6;font-size:14px;line-height:1.6;color:#685738}
.refusal-pending {color:#976326}
.refusal-profit-meta {display:block;font-size:11px;line-height:1.6;font-weight:400;color:#6d8177;margin-top:5px;white-space:normal}
.refusal-profit-meta.refusal-pending {color:#976326}
.order-grid-refusal {font-variant-numeric:tabular-nums}
.order-deal-title {margin-top:24px}
@media(max-width:650px){.refusal-fee-options{grid-template-columns:repeat(2,minmax(0,1fr))}.refusal-breakdown{padding:14px}.refusal-dialog{width:calc(100vw - 20px)}}

.shipping-additional-editor{border-top:1px solid #dce7e1;padding-top:14px;margin-top:16px}.shipping-preview-fee{display:block;margin-top:9px}.shipping-preview-fee small{display:block;color:#708278;line-height:1.7}.shipping-fee-editors .field{margin-bottom:12px}
.shipping-last-leg-toggle{display:flex;align-items:flex-start;gap:8px;grid-column:1/-1;font-size:13px;font-weight:600;line-height:1.6;color:#315f50;cursor:pointer}.shipping-last-leg-toggle input{margin:3px 0 0;accent-color:#157c68}.shipping-last-leg-help{grid-column:1/-1}#shipping-last-leg-fields{display:contents}#shipping-last-leg-fields[hidden]{display:none}
.shipping-cod-tier{border-top:1px solid #dce7e1;margin:20px 0;padding-top:18px}.shipping-cod-tier>fieldset{border:0;padding:0;margin:16px 0 0;min-width:0}.shipping-cod-tier>fieldset[hidden],.shipping-cod-tier [data-cod-tier][hidden]{display:none}.shipping-cod-tier .shipping-form-hint{margin-bottom:0}
.deposit-service-editor{border-top:1px solid #dce7e1;margin:20px 0;padding-top:18px}.deposit-service-editor h3{margin:0 0 16px;font-size:14px;color:#315f50}
/* Shipping editor: compare freight in rows; keep payment rules and actions together. */
#modal.shipping-dialog.shipping-editor-dialog{--ship-border:#dce5df;--ship-muted:#5f7067;--ship-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(84px,.8fr) minmax(0,1fr);width:min(1240px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 32px);overflow:hidden}
.shipping-editor-dialog #modal-form{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
.shipping-editor-dialog .modal-header{padding:12px 20px;flex-shrink:0;align-items:center}
.shipping-editor-dialog .modal-header>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px}
.shipping-editor-dialog .modal-header h2{font-size:20px;line-height:1.3;letter-spacing:-.3px}
.shipping-editor-dialog .modal-header p{font-size:12px;line-height:1.5;margin:0;color:var(--ship-muted)}
.shipping-editor-dialog .modal-header .icon-button{height:44px;width:44px;flex-shrink:0}
.shipping-editor-dialog .modal-body{padding:12px 20px;overflow-y:auto;min-height:0;display:grid;align-content:start;gap:12px;scrollbar-width:thin;scroll-padding:16px}
.shipping-editor-dialog .field{margin:0;gap:6px;min-width:0}
.shipping-editor-dialog .field>label{font-size:12px;line-height:18px;color:#44574c}
.shipping-editor-dialog .field input,.shipping-editor-dialog .field select,.shipping-editor-dialog .field .unified-select-trigger{min-height:40px;padding:8px 10px;font-size:14px;line-height:22px;border-radius:6px;font-variant-numeric:tabular-nums}
.shipping-editor-dialog .unified-select{min-width:0;width:100%}
.shipping-editor-dialog input[aria-invalid=true]{border-color:#b7443b;box-shadow:0 0 0 1px #b7443b}
.shipping-editor-dialog [hidden]{display:none!important}
.shipping-basics{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1.15fr) minmax(110px,.65fr) minmax(150px,.85fr);gap:12px}
.shipping-freight-section{border:1px solid var(--ship-border);border-radius:10px;min-width:0}
.shipping-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 14px;border-bottom:1px solid var(--ship-border)}
.shipping-section-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:12px}
.shipping-section-heading h3,.shipping-panel-heading h3{font-size:14px;line-height:22px;color:var(--text);margin:0;font-weight:650}
.shipping-section-heading>div>span{font-size:12px;color:var(--ship-muted)}
.shipping-weight-preview{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--ship-muted);white-space:nowrap}
.shipping-weight-preview input{width:70px;height:36px;border:1px solid #cfdcd3;background:#fff;border-radius:6px;padding:6px 8px;color:var(--text);font-size:14px;font-variant-numeric:tabular-nums}
.shipping-freight-head,.shipping-freight-row{display:grid;grid-template-columns:164px minmax(0,1fr);gap:12px;align-items:center;padding:6px 14px}
.shipping-freight-head{font-size:12px;line-height:18px;color:var(--ship-muted);background:#f5f8f6;padding-top:4px;padding-bottom:4px}
.shipping-freight-head>div,.shipping-freight-inputs{display:grid;grid-template-columns:var(--ship-columns);gap:12px;align-items:center;min-width:0}
.shipping-editor-dialog #shipping-last-leg-fields{display:grid}
.shipping-freight-row{min-width:0;margin:0;border:0;border-top:1px solid #edf1ee;min-height:49px;padding-top:4px;padding-bottom:4px}
.shipping-freight-row .field>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.shipping-freight-name{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.shipping-freight-name>strong{font-size:13px;font-weight:600;color:#354f40;white-space:nowrap}
.shipping-editor-dialog .shipping-last-leg-toggle{display:flex;align-items:center;gap:5px;margin:0;min-height:40px;font-size:12px;color:var(--accent);font-weight:550;cursor:pointer;white-space:nowrap}
.shipping-editor-dialog input[type=checkbox]{width:16px;height:16px;flex-shrink:0;accent-color:var(--accent)}
.shipping-fixed-unit output{display:flex;align-items:center;min-height:40px;padding:8px 10px;border:1px solid var(--ship-border);background:#f5f8f6;border-radius:6px;color:var(--ship-muted);font-size:14px}
.shipping-fixed-unit>span{display:none}
.shipping-freight-free{display:flex;align-items:center;gap:18px;min-height:40px;font-size:12px;color:var(--ship-muted);background:#f4f8f5;border-radius:6px;padding:8px 12px}
.shipping-freight-free strong{font-size:14px;font-variant-numeric:tabular-nums;color:#397357;min-width:70px}
.shipping-freight-help{padding:6px 14px;margin:0;border-top:1px solid #edf1ee;color:var(--ship-muted);font-size:12px;line-height:18px}
.shipping-payment-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.shipping-editor-dialog .shipping-payment-panel{min-width:0;padding:12px 14px;border:1px solid var(--ship-border);border-radius:10px;margin:0;background:#fff}
.shipping-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.shipping-panel-heading>span{font-size:12px;font-weight:500;color:#436952;background:#eff5f1;border-radius:5px;padding:3px 7px;white-space:nowrap}
.shipping-editor-dialog .field-row{grid-template-columns:1fr 1fr;gap:12px}
.shipping-panel-note{font-size:12px;line-height:18px;color:var(--ship-muted);margin:8px 0 0}
.shipping-editor-dialog .shipping-cod-tier{border-top:1px solid #edf1ee;margin:10px 0 0;padding:0}
.shipping-editor-dialog .shipping-cod-tier .refusal-enable{margin:0;min-height:36px;font-size:12px;font-weight:550;gap:7px;cursor:pointer}
.shipping-editor-dialog .shipping-cod-tier>fieldset{margin:6px 0 0}
.shipping-editor-dialog .shipping-cod-tier .shipping-percent-editors{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,1fr);gap:10px 12px}
.shipping-editor-dialog .shipping-cod-tier [data-cod-tier]{grid-column:auto}
.shipping-editor-dialog .shipping-cod-tier .field small{font-size:12px;line-height:18px}
.shipping-editor-dialog .shipping-cod-tier .shipping-form-hint{font-size:12px;line-height:18px;margin:8px 0 0}
.shipping-deposit-preview{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;line-height:18px;color:var(--ship-muted);border-top:1px solid #edf1ee;margin-top:10px;padding-top:9px;min-height:37px}
.shipping-deposit-preview strong{font-size:16px;line-height:22px;font-weight:650;color:var(--accent);font-variant-numeric:tabular-nums}
.shipping-refusal-disclosure{border:1px solid var(--ship-border);border-radius:10px;min-width:0}
.shipping-refusal-disclosure>summary{display:flex;align-items:center;gap:16px;padding:10px 14px;min-height:44px;cursor:pointer;list-style:none;border-radius:10px}
.shipping-refusal-disclosure>summary::-webkit-details-marker{display:none}
.shipping-refusal-disclosure>summary:hover{background:#f5f8f6}
.shipping-refusal-disclosure>summary>span:first-child{font-size:13px;font-weight:600;white-space:nowrap}
.shipping-refusal-disclosure>summary>small{font-size:12px;line-height:18px;color:var(--ship-muted)}
.shipping-disclosure-action{margin-left:auto;display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px;color:var(--accent)}
.shipping-disclosure-action svg{width:15px;height:15px;transition:transform .18s}
.shipping-refusal-disclosure[open] .shipping-disclosure-action svg{transform:rotate(180deg)}
.shipping-editor-dialog .refusal-rules-editor{border-top:1px solid var(--ship-border);margin:0;padding:0 14px 12px}
.shipping-editor-dialog .refusal-rules-editor .refusal-enable{font-size:13px;min-height:40px;margin:0;cursor:pointer}
.shipping-editor-dialog #refusal-rule-fields{margin:0}
.shipping-refusal-grid{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:16px;align-items:center}
.shipping-editor-dialog .refusal-fee-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}
.shipping-editor-dialog .refusal-fee-options label{font-size:12px;min-height:40px;padding:8px;gap:7px;line-height:18px}
.shipping-editor-dialog .modal-footer{flex-shrink:0;align-items:center;justify-content:space-between;background:#f8faf9;padding:12px 20px;gap:16px}
.shipping-editor-preview{min-width:0;color:var(--ship-muted);font-size:12px;line-height:18px}
.shipping-editor-preview>strong{display:flex;gap:16px;flex-wrap:wrap;font-size:14px;font-weight:650;color:var(--accent);line-height:22px;font-variant-numeric:tabular-nums}
.shipping-editor-preview>strong>span{font-weight:500;color:#445b4c;font-size:12px}
.shipping-editor-preview>small{display:block;font-size:12px;line-height:18px;margin-top:3px}
.shipping-editor-actions{display:flex;gap:8px;flex-shrink:0}
.shipping-editor-actions .button{min-height:44px;padding:10px 20px;font-size:13px}
@media(max-width:1050px){.shipping-basics{grid-template-columns:minmax(0,1.6fr) minmax(0,1.1fr) minmax(95px,.65fr) minmax(130px,.85fr)}.shipping-freight-head,.shipping-freight-row{grid-template-columns:150px minmax(0,1fr);gap:10px;padding-left:12px;padding-right:12px}.shipping-freight-head>div,.shipping-freight-inputs{gap:8px}.shipping-editor-dialog .shipping-refusal-grid{grid-template-columns:1fr 200px}.shipping-editor-dialog .refusal-fee-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:1050px){.shipping-editor-dialog .modal-body{padding:10px 16px;gap:10px}.shipping-editor-dialog .shipping-payment-panel{padding:10px 12px}.shipping-editor-dialog .shipping-panel-heading{margin-bottom:8px}.shipping-editor-dialog .shipping-panel-note{margin-top:6px}.shipping-editor-dialog .shipping-cod-tier,.shipping-editor-dialog .shipping-deposit-preview{margin-top:8px}.shipping-editor-dialog .shipping-deposit-preview{padding-top:8px}.shipping-editor-dialog .modal-footer{padding:10px 16px}}
@media(max-width:760px){#modal.shipping-dialog.shipping-editor-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.shipping-editor-dialog #modal-form{max-height:calc(100dvh - 22px)}.shipping-editor-dialog .modal-header,.shipping-editor-dialog .modal-footer{padding:12px 16px}.shipping-editor-dialog .modal-header h2{font-size:19px}.shipping-editor-dialog .modal-body{padding:14px 16px;gap:14px}.shipping-basics{grid-template-columns:1fr 1fr;gap:12px}.shipping-freight-head{display:none}.shipping-freight-row{grid-template-columns:1fr;gap:8px;padding:10px 12px}.shipping-freight-inputs{grid-template-columns:1fr 1fr;gap:10px 12px}.shipping-freight-name{justify-content:flex-start;gap:16px}.shipping-freight-row .field>label{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shipping-fixed-unit>span{display:block;font-size:12px;font-weight:550;line-height:18px;margin-bottom:6px;color:#44574c}.shipping-fixed-unit output{min-height:40px}.shipping-section-heading{align-items:flex-start;gap:10px;flex-wrap:wrap}.shipping-section-heading>div{gap:4px;flex-direction:column}.shipping-payment-grid{grid-template-columns:1fr}.shipping-editor-dialog .shipping-cod-tier .shipping-percent-editors{grid-template-columns:1fr 1fr}.shipping-editor-dialog .shipping-refusal-grid{grid-template-columns:1fr}.shipping-editor-dialog .refusal-fee-options{grid-template-columns:repeat(3,minmax(0,1fr))}.shipping-refusal-disclosure>summary{flex-wrap:wrap;gap:4px 10px}.shipping-refusal-disclosure>summary>small{order:3;flex-basis:100%}.shipping-editor-preview>small{display:none}.shipping-editor-preview>strong{font-size:13px;gap:2px;flex-direction:column}.shipping-editor-actions .button{padding:10px 14px}}
@media(max-width:440px){.shipping-editor-dialog .field input,.shipping-editor-dialog .field select,.shipping-editor-dialog .field .unified-select-trigger{font-size:16px;min-height:44px}.shipping-editor-dialog .modal-header p{max-width:240px}.shipping-editor-dialog .modal-footer{gap:8px;padding:10px 12px}.shipping-editor-dialog .modal-body{padding:12px}.shipping-editor-dialog .refusal-fee-options{grid-template-columns:1fr 1fr}.shipping-editor-dialog .shipping-cod-tier .shipping-percent-editors{grid-template-columns:1fr}.shipping-editor-dialog .shipping-cod-tier [data-cod-tier]{grid-column:auto}.shipping-editor-actions .button{padding:10px 12px}.shipping-editor-preview>strong>span{font-size:12px}.shipping-editor-dialog .refusal-fee-options label,.shipping-editor-dialog .shipping-last-leg-toggle,.shipping-editor-dialog .shipping-cod-tier .refusal-enable{min-height:44px}}
@media(prefers-reduced-motion:reduce){.shipping-disclosure-action svg{transition:none}}
@media(min-width:601px) and (max-width:900px){.shipping-fee-editors fieldset{grid-template-columns:repeat(2,minmax(0,1fr))}.shipping-additional-editor{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.shipping-additional-editor .field{margin-bottom:0}}

/* Reference prefixes remain readable in the horizontally scrollable order grid. */
.order-grid-code-button,.order-grid-code-text{overflow-wrap:anywhere;white-space:normal;text-align:left;max-width:100%}

.order-grid-tracking-value{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#365f4d}

.shipment-metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.shipment-grid-table{min-width:1860px}@media(max-width:1100px){.shipment-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.shipment-metric-grid{grid-template-columns:1fr}}

/* Fixed shop overview: seven current-month cards, five recent-sixty-day cards. */
.shop-overview .shop-fixed-monthly-metrics{grid-template-columns:repeat(12,minmax(0,1fr))}
.shop-overview .shop-fixed-recent-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
.shop-fixed-metrics>.metric-card:nth-child(n){grid-column:auto}
.shop-fixed-monthly-metrics>.metric-card:nth-child(n){grid-column:span 3}
.shop-fixed-monthly-metrics>.metric-card:nth-child(n+5){grid-column:span 4}
.shop-fixed-metrics .metric-foot{flex-wrap:wrap}
.shop-fixed-metrics .metric-foot .positive{display:inline;font-weight:650}
.shop-fixed-range{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#6e8278;text-align:right}
.shop-fixed-range strong{font-size:13px;color:#36594c;font-weight:600}
.spend-fixed-range{font-size:12px;color:#36594c}
@media(min-width:1900px){.shop-overview .shop-fixed-monthly-metrics{grid-template-columns:repeat(7,minmax(0,1fr))}.shop-fixed-monthly-metrics>.metric-card:nth-child(n){grid-column:auto}}
@media(max-width:1050px){.shop-overview .shop-fixed-recent-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-fixed-recent-metrics>.metric-card:last-child{grid-column:1/-1}}
@media(max-width:600px){.shop-overview .shop-fixed-monthly-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-fixed-monthly-metrics>.metric-card:nth-child(n){grid-column:auto}.shop-fixed-monthly-metrics>.metric-card:last-child{grid-column:1/-1}.shop-fixed-metrics .metric-value{font-size:24px;overflow-wrap:anywhere}.shop-fixed-range{text-align:left}}

.order-shop-list-heading{display:flex;align-items:center;gap:20px;padding:0 22px;border-bottom:1px solid var(--border)}
.order-shop-list-heading>.tabs{flex:1;min-width:0;padding:0;border-bottom:0}
.order-shop-list-heading>.tabs>.tab{flex-shrink:0}
.order-shop-list-heading>.shop-sellers-entry{flex-shrink:0;margin:8px 0}
.order-seller-field .field-heading{display:flex;align-items:center;gap:12px;min-height:18px}
.order-seller-field .field-heading label{margin:0;white-space:nowrap}
.order-seller-field .order-seller-settings{font-size:12px;margin:0;white-space:nowrap;color:var(--primary,#187766)}
.shop-sellers-dialog{width:min(560px,calc(100vw - 32px));max-height:90vh;padding:0;border:1px solid #d9e5df;border-radius:14px;background:#fff;color:#23323e;box-shadow:0 24px 70px #183c3333}
.shop-sellers-dialog::backdrop{background:#142e2955;backdrop-filter:blur(3px)}
.shop-sellers-dialog form{display:flex;flex-direction:column;max-height:90vh}
.shop-sellers-dialog .modal-header,.shop-sellers-dialog .modal-footer{flex-shrink:0}
.shop-sellers-dialog .modal-body{overflow:auto;padding:20px 24px}
.seller-settings-hint,.seller-settings-empty{font-size:13px;line-height:1.7;color:#61746b;margin:0 0 16px}
.seller-settings-row{display:flex;align-items:flex-end;gap:12px;padding:12px;background:#f5f9f7;border:1px solid #dce7e1;border-radius:8px;margin-bottom:12px}
.seller-settings-row .field{flex:1;min-width:0;margin:0}
.seller-settings-row .field input{width:100%;background:white}
.seller-settings-row>.icon-button{flex-shrink:0;margin-bottom:2px}
.seller-settings-count{margin-right:auto;font-size:12px;color:#61746b}
.seller-settings-error{margin:14px 0 0;font-size:13px;color:#b54646}
.order-shop-list-heading>.table-search{flex:0 1 300px;min-width:200px;max-width:32%;margin:8px 0;order:0}
@media(max-width:760px){.order-shop-list-heading{flex-wrap:wrap;gap:0;padding:0 17px}.order-shop-list-heading>.tabs{flex-basis:100%}.order-shop-list-heading>.table-search{flex:1 1 100%;min-width:0;max-width:none;margin:0 0 12px}}

/* Country product economics: one market per row, complete costs. */
.country-product-table{min-width:2350px;width:100%;table-layout:auto}
.country-product-table th{white-space:nowrap}
.country-product-table td{min-width:88px;vertical-align:top}
.country-product-table td:nth-child(2){min-width:180px;max-width:230px}
.country-product-table td:last-child{min-width:170px}
.country-product-table small{display:block;font-size:12px;color:var(--text-secondary,#687b75);margin-top:6px}
.country-product-table .product-actions-cell .row-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:16px;white-space:nowrap}
.country-product-table .product-actions-cell .row-actions>button{flex-shrink:0;white-space:nowrap}
.country-product-table .error-text{color:#b64d4d}
/* Product lists use a continuous cell grid, including the frozen header. */
#main-content .country-product-table{border-collapse:separate;border-spacing:0;--product-grid-line:#d9e5df}
#main-content .country-product-table :is(th,td){border:0;border-right:1px solid var(--product-grid-line);border-bottom:1px solid var(--product-grid-line)}
#main-content .country-product-table tr>:first-child{border-left:1px solid var(--product-grid-line)}
#main-content .country-product-table thead tr:first-child>th{border-top:1px solid var(--product-grid-line)}
.country-product-panel .section-toolbar{flex-wrap:wrap;gap:12px}
.country-product-panel .filter-group{flex-wrap:wrap;gap:10px}
.product-category-toolbar .table-search{margin-left:auto;max-width:280px}
.product-category-table{width:100%;min-width:460px}
.product-category-table th:last-child,.product-category-table td:last-child{width:210px}
.product-category-table .chip{font-size:12px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.product-category-table .row-actions{gap:20px}
.product-category-table button:disabled{color:var(--muted);opacity:.55;cursor:not-allowed}
.country-product-editor h3{margin:12px 0 16px}
.country-product-editor select{width:100%;min-height:44px;padding:10px;border:1px solid #cedcd6;border-radius:6px;background:white;color:inherit}
.country-product-editor .field-row{margin-bottom:16px}
.country-product-preview{background:#f2f8f4;border:1px solid #cbded2;border-radius:8px;padding:18px;margin:16px 0 24px;min-height:55px}
.country-cost-breakdown{display:flex;flex-wrap:wrap;gap:12px 20px;margin-bottom:16px;font-size:13px}
.country-cost-breakdown strong{display:block;margin-top:5px}
.country-product-preview .pricing-results{margin:0}
#country-shop-grants{padding-bottom:20px}
.shop-grant-grid{display:flex;flex-wrap:wrap;gap:14px 24px}
.shop-grant-option{display:flex;gap:8px;align-items:center}

/* Workspace overview: fixed month first, independently filtered period below. */
.workspace-overview-block{margin-bottom:28px}
.overview-section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:14px}
.overview-section-heading h2{margin:0;color:var(--text);font-size:16px;font-weight:650}
.overview-section-heading p{margin:6px 0 0;font-size:11px;color:var(--muted);line-height:1.6}
.overview-date-range{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.overview-month-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}
.overview-period-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.workspace-overview-block>.metric-grid .metric-card{padding:18px 16px;min-width:0;min-height:150px;display:flex;flex-direction:column}
.workspace-overview-block>.metric-grid .metric-value{font-size:clamp(24px,1.8vw,33px);display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;margin:15px 0 14px;line-height:1.3}
.workspace-overview-block>.metric-grid .metric-value small{font-size:10px;margin:0;letter-spacing:0}
.workspace-overview-block>.metric-grid .metric-foot{display:block;line-height:1.7;margin-top:auto}
.overview-order-value{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin:15px 0 14px}
.workspace-overview-block>.metric-grid .overview-order-value .metric-value{margin:0}
.overview-order-sources{display:grid;gap:4px;color:var(--muted);font-size:11px;line-height:1.6;white-space:nowrap;font-variant-numeric:tabular-nums}
.overview-order-sources strong{color:var(--text);font-weight:550}
.overview-country-amounts{margin:12px 0;font-size:12px;line-height:1.6;display:grid;gap:4px;font-variant-numeric:tabular-nums}
.overview-country-amounts>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.overview-country-amounts dt{color:var(--muted);overflow-wrap:anywhere}
.overview-country-amounts dd{margin:0;font-size:16px;font-weight:650;white-space:nowrap;letter-spacing:-.2px}
@media(max-width:1450px){.overview-month-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.overview-period-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.overview-month-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-section-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}.overview-section-heading .ad-period-control{width:100%}.workspace-overview-block>.metric-grid{gap:12px}.workspace-overview-block>.metric-grid .metric-card{padding:15px 13px}.overview-country-amounts>div{flex-wrap:wrap;gap:0 5px}}
@media(max-width:390px){.overview-month-metrics,.overview-period-metrics{grid-template-columns:1fr}}


/* Independent daily profit and order charts follow the overview period. */
.overview-trends-grid{align-items:start}
.overview-trend-stack{display:grid;gap:20px;min-width:0}
.overview-side-stack{display:grid;align-content:start;gap:20px;min-width:0}
.overview-today-panel{min-width:0;overflow:hidden}
.overview-today-panel .panel-heading{align-items:flex-start;gap:10px;padding-bottom:16px}
.overview-today-total{font-size:11px;color:var(--muted);white-space:nowrap;line-height:1.8;font-variant-numeric:tabular-nums}
.overview-today-total strong{color:var(--accent);font-weight:600}
.overview-today-scroll{max-height:320px;overflow-y:auto;scrollbar-gutter:stable;scrollbar-color:#8eaa9c #f0f5f2;scrollbar-width:thin;overscroll-behavior-y:contain;padding:0 17px 0 22px}
.overview-today-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.overview-today-shops{margin:0;font-size:12px;line-height:1.7;color:var(--muted)}
.overview-today-shops>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:12px 0;border-top:1px solid var(--border)}
.overview-today-shops dt{overflow-wrap:anywhere}
.overview-today-shops dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.overview-today-shops dd strong{color:var(--text);font-weight:600}
.overview-today-shops dd span{font-size:10px;margin-left:5px}
.overview-today-empty{font-size:12px;color:var(--muted);margin:12px 0 20px}
.overview-today-foot{padding:12px 22px;border-top:1px solid var(--border);font-size:10px;line-height:1.7;color:var(--muted)}
.overview-trend-panel{min-width:0;overflow:hidden}
.overview-trend-panel .panel-heading{align-items:flex-start}
.overview-trend-chart{overflow-x:auto;padding:0 18px 12px;scrollbar-color:#8eaa9c #f0f5f2;scrollbar-width:thin}
.overview-trend-chart svg{display:block;width:100%;height:auto}
.overview-trend-chart .chart-label{font-size:11px}
.overview-chart-zero{stroke:#9db5a9;stroke-width:1}
.overview-trend-panel .chart-bottom{gap:16px;align-items:flex-start;line-height:1.7}
.overview-trend-panel .chart-bottom>span:last-child{flex-shrink:0}
@media(max-width:650px){.overview-trend-panel .chart-bottom{flex-wrap:wrap;gap:4px}.overview-trend-stack{gap:18px}}

/* One shared table for shop comparison and detailed period totals. */
.data-center-unified{margin-bottom:24px}
.data-center-unified .data-center-table{min-width:1470px;table-layout:fixed;width:100%;font-variant-numeric:tabular-nums}
.data-center-unified .data-center-shop-col{width:190px}
.data-center-unified .data-center-count-col{width:86px}
.data-center-unified .data-center-refusal-col{width:105px}
.data-center-unified .data-center-average-col{width:85px}
.data-center-unified .data-center-money-col{width:135px}
.data-center-unified .data-center-rate-col{width:115px}
.data-center-unified .data-center-table th,.data-center-unified .data-center-table td{padding:16px 12px}
.data-center-unified .data-center-table thead th{background:#edf4ef;color:#3d6254;font-size:11px;white-space:nowrap}
.data-center-unified .data-center-table thead tr:nth-child(2) th:first-child{position:static;width:auto;box-shadow:none}
.data-center-unified .data-center-column-groups th:not(:first-child){text-align:center;padding:11px 12px;border-bottom:1px solid #dce7df;letter-spacing:.08em}
.data-center-unified .data-center-table tbody th,.data-center-unified .data-center-table tfoot th{width:190px}
.data-center-unified .data-center-table td{font-size:12px}
.data-center-unified .data-center-table td small{display:block;font-size:10px;font-weight:400;color:#738579;margin-top:5px}
.data-center-unified .data-center-table tfoot td,.data-center-unified .data-center-table tfoot th{background:#eaf4ef;font-weight:700;border-top:2px solid #c9ded3}
.data-center-unified .data-center-table tbody td:nth-child(8),.data-center-unified .data-center-table tfoot td:nth-child(8){border-left:1px solid #dce7df}
.data-center-unified .table-foot{gap:12px;flex-wrap:wrap;line-height:1.6}

.shop-data-trends{display:grid;gap:24px;margin-bottom:24px;min-width:0}
.shop-data-trends .monthly-trend{margin:0;min-width:0}

/* Sales reports: compact sortable metrics, horizontal overflow on small screens. */
.sales-report-table th,.sales-report-table td{white-space:nowrap}
.sales-report-table td:first-child{min-width:190px;white-space:normal}
.sales-sort-heading{display:flex;align-items:center;gap:8px;justify-content:space-between}
.sales-sort-arrows{display:flex;flex-direction:column}
.sales-sort-arrows button{border:0;background:transparent;color:#8a9993;cursor:pointer;font-size:13px;line-height:14px;padding:2px 5px}
.sales-sort-arrows button.active{color:#137e69;background:#e1f2eb;border-radius:3px}
.sales-sort-arrows button:focus-visible{outline:2px solid #137e69}
.sales-report-note{padding:12px 20px;background:#f4f9f6;color:#647c72;font-size:12px}
.sales-report-table .table-link svg{width:13px;height:13px;vertical-align:middle}
/* Align each shop's three business metrics for comparison. */
#data-center-trend-business>.panel-heading{flex-wrap:wrap}
#data-center-trend-business .monthly-trend-legend{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
#data-center-trend-business .monthly-trend-legend-item{min-width:0;text-align:left}
@media(max-width:600px){#data-center-trend-business .monthly-trend-legend{grid-template-columns:1fr}}

.monthly-collection-note{margin:0 0 20px;padding:12px 16px;border:1px solid #dce9e2;border-radius:8px;background:#f2f8f5;color:#486657;font-size:12px;line-height:1.7}
#monthly-trend-business .monthly-trend-legend{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
#monthly-trend-business .monthly-trend-legend-item{min-width:0;text-align:left}
@media(max-width:600px){#monthly-trend-business .monthly-trend-legend{grid-template-columns:1fr}}

/* Order exception handling */
.order-exception-metrics{grid-template-columns:repeat(7,minmax(0,1fr))}.exception-filter{padding:12px 22px}.exception-filter label{display:flex;align-items:center;gap:12px}.exception-filter select{min-width:140px}
@media(max-width:1400px){.order-exception-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.order-exception-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.order-shop-metrics{grid-template-columns:repeat(9,minmax(0,1fr));gap:14px}
.order-shop-metrics .metric-card{min-width:0;padding:17px 14px 15px}
.order-shop-metrics .metric-label{font-size:11px}
.order-shop-metrics .metric-foot{flex-wrap:wrap;line-height:1.6}
@media(max-width:1600px){.order-shop-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.order-shop-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.order-shop-metrics{grid-template-columns:1fr}}

/* Short names can be maintained without opening the product editor. */
.country-product-table .product-short-name-cell{min-width:120px;width:140px;max-width:180px;white-space:normal;overflow-wrap:anywhere}
.country-product-table .product-short-name-input{width:100%;min-width:104px;max-width:164px;min-height:36px;padding:8px;border:1px solid var(--border,#d8e3df);border-radius:6px;background:#fff;font:inherit;color:inherit}
.product-short-name-input:focus-visible{outline:2px solid var(--primary,#187d6a);outline-offset:2px}
.product-short-name-input[aria-invalid="true"]{border-color:#bc5252}
.order-short-name-field textarea[readonly]{min-height:62px;resize:vertical;background:#f4f8f6;color:var(--text-primary,#25343d);line-height:1.5;overflow-wrap:anywhere}

/* Keep related order fields together, with shorter inputs for names and money. */
.order-composer .order-customer-fields{grid-template-columns:minmax(0,1.2fr) minmax(0,1.15fr) minmax(176px,.8fr);gap:16px;padding:18px 14px;align-items:start}
.order-customer-fields .order-field-group{min-width:0;margin:0;padding:0;border:0}
.order-customer-fields .order-field-group+ .order-field-group{border-left:1px solid #e1e9e5;padding-left:16px}
.order-field-group legend{padding:0;margin-bottom:14px;font-size:12px;font-weight:650;color:#34584a}
.order-customer-fields .order-recipient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.order-customer-fields .order-recipient-phone,.order-customer-fields .order-recipient-address{grid-column:1/-1}
.order-customer-fields .order-additional-grid{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:10px}
.order-customer-fields .order-short-name-field,.order-customer-fields .order-compact-note,.order-customer-fields .order-edit-status{grid-column:1/-1}
.order-customer-fields .order-payment-grid{display:grid;gap:12px}
.order-customer-fields .field,.order-customer-fields #order-ad-select{min-width:0}
.order-composer .order-customer-fields .field{display:flex;flex-direction:column;gap:6px}
.order-composer .order-customer-fields .field label{font-size:12px;line-height:18px;min-height:18px}
.order-composer .order-customer-fields :is(input,select,textarea,output){width:100%;min-width:0;font-size:12px;box-sizing:border-box}
.order-customer-fields textarea{padding:10px;line-height:1.5;resize:vertical}
.order-customer-fields .order-recipient-address textarea{min-height:84px}
.order-customer-fields .order-compact-note textarea,.order-customer-fields .order-short-name-field textarea[readonly]{min-height:58px}
.order-customer-fields .field small{font-size:10px;line-height:1.5;color:#6c7c74}
.order-customer-fields .order-payment-grid :is(input,output){font-size:14px;font-variant-numeric:tabular-nums}
.order-customer-fields .order-payment-grid output{display:block}
@media(max-width:1100px){
  .order-composer .order-customer-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .order-customer-fields .order-field-group+ .order-field-group{padding-left:20px}
  .order-customer-fields .order-field-group.order-payment-group{grid-column:1/-1;border-left:0;padding:16px 0 0;border-top:1px solid #e1e9e5}
  .order-customer-fields .order-payment-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
}

/* Cancelled orders may only be deleted from the global order center. */
.order-grid-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.order-grid-delete-button{border:1px solid #e2baba;border-radius:5px;background:#fff6f5;color:#af3434;padding:5px 10px;font:inherit;cursor:pointer}
.order-grid-delete-button:hover{background:#fce9e7}
.order-delete-confirm{background:#b74646!important;border-color:#b74646!important;color:#fff!important}
