@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
.nav-icon{position:relative;width:18px;height:18px;flex:0 0 18px;color:#9ba6b5;font-size:0}.nav-icon::before,.nav-icon::after{content:'';position:absolute;box-sizing:border-box}.nav-icon-dashboard::before{left:2px;top:3px;width:14px;height:12px;border:1.5px solid currentColor;border-radius:3px}.nav-icon-dashboard::after{left:5px;top:6px;width:8px;height:1.5px;background:currentColor;box-shadow:0 3px currentColor}.nav-icon-sales::before{left:2px;top:3px;width:14px;height:12px;border:1.5px solid currentColor;border-radius:3px}.nav-icon-sales::after{left:5px;bottom:5px;width:2px;height:4px;background:currentColor;box-shadow:3px -3px currentColor,6px -6px currentColor}.nav-icon-inventory::before{left:2px;top:2px;width:14px;height:14px;border:1.5px solid currentColor;border-radius:3px;background:linear-gradient(90deg,transparent 31%,currentColor 32%,currentColor 36%,transparent 37%,transparent 63%,currentColor 64%,currentColor 68%,transparent 69%),linear-gradient(0deg,transparent 31%,currentColor 32%,currentColor 36%,transparent 37%,transparent 63%,currentColor 64%,currentColor 68%,transparent 69%)}.nav-icon-rules::before{left:3px;top:3px;width:12px;height:12px;border:1.5px solid currentColor;transform:rotate(45deg);border-radius:2px}.nav-icon-returns::before{left:2px;top:3px;width:14px;height:12px;border:1.5px solid currentColor;border-radius:3px}.nav-icon-returns::after{left:5px;top:6px;width:8px;height:1.5px;background:currentColor;box-shadow:0 3px currentColor}.nav-item:hover .nav-icon,.nav-item.active .nav-icon{color:#2865e8}.nav-item.active .nav-icon{filter:drop-shadow(0 2px 3px #2865e830)}
.auth-gate{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#f4f7fd,#eef3fb)}.auth-card{width:min(420px,100%);padding:34px 36px;border:1px solid #e0e8f4;border-radius:14px;background:#fff;box-shadow:0 18px 50px rgba(23,54,101,.12)}.auth-brand{display:flex;align-items:center;gap:11px;margin-bottom:34px}.auth-brand strong,.auth-brand small{display:block}.auth-brand strong{font-size:14px;color:#243247}.auth-brand small{margin-top:3px;color:#8c96a7;font-size:10px}.auth-card h1{margin:0;color:#1c293a;font-size:25px}.auth-intro{margin:9px 0 22px;color:#7c8798;font-size:12px;line-height:1.7}.auth-form{display:grid;gap:14px}.auth-form label{display:grid;gap:7px;color:#536174;font-size:11px;font-weight:600}.auth-form input{height:40px;width:100%;padding:0 11px;border:1px solid #dce5f2;border-radius:7px;background:#fff;color:#26364d;font:12px inherit;outline:0}.auth-form input:focus{border-color:#84a8ef;box-shadow:0 0 0 3px #2865e812}.auth-form .button{height:40px;margin-top:4px;font-size:12px}.auth-options{display:flex;align-items:center;justify-content:space-between;color:#8a95a4;font-size:11px}.auth-options label{display:flex;align-items:center;gap:7px}.auth-options input{width:14px;height:14px}.auth-footer-links{display:flex;justify-content:space-between;margin-top:22px;color:#a0a9b5;font-size:10px}.auth-error{margin-top:14px;padding:9px 10px;border:1px solid #f1d6d8;border-radius:6px;background:#fff3f3;color:#a3454c;font-size:11px;line-height:1.5}.app-shell[hidden],.auth-gate[hidden]{display:none}
:root{font-family:'DM Sans','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#182230;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility;--blue:#2865e8;--blue-dark:#1e54ca;--text:#182230;--muted:#7c8798;--line:#e9edf3;--surface:#fff;--green:#16956b;--amber:#bd7b14;--red:#cc5361;--shadow:0 2px 8px rgba(18,39,73,.035)}*{box-sizing:border-box}body{margin:0;min-width:980px}.app-shell{min-height:100vh}.sidebar{width:236px;background:#fff;border-right:1px solid #e9edf3;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:25px 16px 16px;z-index:3}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 31px;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:12px;background:linear-gradient(145deg,#3f83ff,#2457da);color:white;font-size:18px;font-weight:700;box-shadow:0 6px 14px #2865e82c}.brand strong,.brand small,.user-chip strong,.user-chip small{display:block}.brand strong{font-size:14px;letter-spacing:.1px}.brand small{font-size:10px;color:#8c96a7;margin-top:3px}.workspace-label{font-size:10px;color:#a3acb9;letter-spacing:1.2px;padding:0 12px 10px;text-transform:uppercase}.nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;display:flex;align-items:center;gap:12px;width:100%;height:42px;padding:0 12px;border-radius:8px;color:#737f90;font:500 12px inherit;text-align:left;cursor:pointer}.nav-item:hover{background:#f7f9fc;color:#29384c}.nav-item.active{background:#edf3ff;color:#255dd5;font-weight:600}.nav-icon{width:17px;text-align:center;font-size:16px}.nav-count{margin-left:auto;font-size:10px;color:#fff;background:#8eaef6;border-radius:10px;padding:2px 7px}.sidebar-bottom{margin-top:auto}.connection-card{background:#f7f9fc;border:1px solid #eef1f6;border-radius:9px;padding:12px;display:flex;gap:9px;align-items:flex-start;margin-bottom:15px}.status-dot{width:7px;height:7px;background:#c8a353;border-radius:50%;margin-top:4px;box-shadow:0 0 0 3px #f4ebd8}.connection-card strong{font-size:11px;display:block}.connection-card small{font-size:10px;color:#909aaa;display:block;margin-top:3px}.user-chip{display:flex;align-items:center;gap:9px;padding:10px 7px;border-top:1px solid #f0f2f6}.avatar{width:29px;height:29px;border-radius:9px;background:#eaf0fc;color:#4168ac;display:grid;place-items:center;font-size:12px}.user-chip strong{font-size:11px}.user-chip small{font-size:9px;color:#929cab;margin-top:3px}.more{margin-left:auto;color:#8e98a8}.main{margin-left:236px;min-height:100vh;padding:0 36px 16px;max-width:1720px}.topbar{height:58px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8ecf2;margin-bottom:30px}.breadcrumb{font-size:11px;color:#7c8796}.breadcrumb span{color:#c3cad4;padding:0 8px}.top-actions{display:flex;align-items:center;gap:14px}.local-badge{background:#fff;border:1px solid #e8edf3;border-radius:14px;padding:5px 9px;font-size:10px;color:#657182}.local-badge span{display:inline-block;width:6px;height:6px;border-radius:50%;background:#d3a03c;margin-right:6px;vertical-align:1px}.icon-button{width:24px;height:24px;border:1px solid #dce3ec;border-radius:50%;background:#fff;color:#8793a3;font-size:12px;cursor:pointer}.page-view{display:none;animation:appear .22s ease}.page-view.active{display:block}@keyframes appear{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:20px}.eyebrow{font-size:9px;letter-spacing:1.1px;color:#8a98ab;font-weight:700;margin-bottom:8px}.page-heading h1{font-size:24px;letter-spacing:-.5px;margin:0;color:#1c293a;font-weight:650}.page-heading p{color:#8a95a4;font-size:11px;margin:7px 0 0}.heading-actions{display:flex;gap:8px;padding-bottom:2px}.button{border:1px solid transparent;height:34px;border-radius:7px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font:600 11px 'DM Sans','Noto Sans SC',sans-serif;cursor:pointer;transition:all .15s;white-space:nowrap}.button.primary{background:#2865e8;color:#fff;box-shadow:0 3px 7px #2865e821}.button.primary:hover{background:#1f56d0;transform:translateY(-1px)}.button.secondary{background:#fff;border-color:#e4e9f0;color:#596678}.button.secondary:hover{border-color:#b7c9e9;color:#2865e8;background:#fbfcff}.button.compact{height:30px;padding:0 10px;font-size:10px}.button:disabled{opacity:.45;cursor:not-allowed;transform:none}.notice{display:flex;align-items:center;gap:10px;background:#eff5ff;border:1px solid #e0eafe;color:#677990;border-radius:8px;padding:11px 13px;margin-bottom:16px;font-size:10px}.notice-icon{flex:0 0 16px;width:16px;height:16px;border-radius:50%;display:grid;place-items:center;background:#d9e8ff;color:#4775c5;font-size:10px;font-weight:700}.notice strong{color:#435975;margin-right:8px;font-size:10px}.notice-close{margin-left:auto;border:0;background:transparent;color:#93a1b4;font-size:17px;cursor:pointer}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.metric-card{background:#fff;border:1px solid #edf0f5;border-radius:9px;padding:15px 16px 13px;box-shadow:var(--shadow)}.metric-top{display:flex;align-items:center;justify-content:space-between;color:#788495;font-size:10px}.metric-icon{width:25px;height:25px;border-radius:8px;display:grid;place-items:center;font-size:14px}.metric-icon.blue{color:#477be0;background:#edf3ff}.metric-icon.violet{color:#8660d0;background:#f2edff}.metric-icon.amber{color:#c28b31;background:#fff6e5}.metric-icon.green{color:#259a77;background:#e8f8f2}.metric-card>strong{display:block;color:#1e2939;font-size:24px;letter-spacing:-.7px;margin:7px 0 4px;font-weight:650}.metric-card>strong em{font-size:11px;font-style:normal;color:#758196;font-weight:500;letter-spacing:0}.metric-card>small{font-size:9px;color:#a1a9b5}.metric-card .metric-time{font-size:16px;letter-spacing:-.2px;margin-top:12px}.query-panel,.data-panel{background:#fff;border:1px solid #edf0f5;border-radius:9px;box-shadow:var(--shadow)}.query-panel{padding:17px 18px 14px;margin-bottom:16px}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.section-heading h2,.table-title h2{font-size:13px;font-weight:650;margin:0;color:#263346}.section-heading p{font-size:10px;color:#969fad;margin:5px 0 0}.query-chip{font-size:9px;color:#39866c;background:#ecf8f3;border:1px solid #e0f2ea;border-radius:12px;padding:4px 8px}.pulse{display:inline-block;width:5px;height:5px;background:#35aa7e;border-radius:50%;margin-right:5px;vertical-align:1px}.query-input-wrap{height:43px;border:1px solid #dce5f2;border-radius:8px;display:flex;align-items:center;padding:4px 5px 4px 12px;box-shadow:0 1px 3px #233a5b09}.query-input-wrap:focus-within{border-color:#84a8ef;box-shadow:0 0 0 3px #2865e812}.sparkle{font-size:14px;color:#6b8be0;margin-right:9px}.query-input-wrap input{border:0;outline:none;min-width:0;flex:1;color:#425169;font:11px inherit;background:transparent}.query-input-wrap .button{height:32px}.query-hints{display:flex;align-items:center;gap:7px;margin-top:11px;font-size:9px;color:#a2aab6}.hint{background:#f7f9fc;border:1px solid #edf0f5;border-radius:5px;color:#758194;font:9px inherit;padding:5px 8px;cursor:pointer}.hint:hover{border-color:#bed0f1;color:#2865e8}.table-panel{}.table-toolbar{min-height:56px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eef1f5}.table-title{display:flex;align-items:center;gap:9px}.result-count{font-size:9px;color:#9ba5b2;background:#f4f6f9;padding:4px 7px;border-radius:10px}.table-actions{display:flex;align-items:center;gap:8px}.search-box{height:30px;width:220px;border:1px solid #e7ebf1;border-radius:6px;display:flex;align-items:center;padding:0 8px;gap:6px;color:#98a3b2}.search-box input{border:0;outline:0;background:transparent;width:100%;font:10px inherit;color:#3e4a5b}.search-box input::placeholder{color:#adb5c0}.table-actions select{height:30px;padding:0 22px 0 9px;border:1px solid #e7ebf1;border-radius:6px;background:#fff;color:#687486;font:10px inherit}.table-scroll{overflow:auto;position:relative;min-height:222px}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left}thead{background:#fafbfd}th{height:37px;color:#8591a2;font-weight:550;font-size:9px;border-bottom:1px solid #eef1f5;padding:0 11px}td{height:43px;border-bottom:1px solid #f0f2f5;padding:0 11px;font-size:10px;color:#536174}tbody tr:hover{background:#fafcff}.check-cell{width:35px;padding-left:16px}input[type=checkbox]{appearance:none;width:13px;height:13px;border:1px solid #ccd4df;border-radius:3px;vertical-align:middle;cursor:pointer;background:#fff}input[type=checkbox]:checked{background:#2865e8;border-color:#2865e8;position:relative}input[type=checkbox]:checked:after{content:'✓';position:absolute;color:white;font-size:10px;left:2px;top:-1px}.numeric{text-align:right;font-variant-numeric:tabular-nums}.supplier-name{font-weight:600;color:#3f4f63}.code-primary{color:#426eb9;font-weight:550}.muted-cell{color:#96a0ad}.qty-positive{color:#269070;font-weight:650}.qty-zero{color:#a9b0ba}.rule-pill{display:inline-flex;align-items:center;border-radius:10px;padding:4px 7px;font-size:9px}.rule-pill.allowed{background:#edf8f3;color:#218360}.rule-pill.blocked{background:#fff2ed;color:#c76b50}.rule-pill.neutral{background:#f3f5f8;color:#7b8797}.row-action{border:0;background:transparent;color:#4777d3;font:10px inherit;cursor:pointer}.row-action:hover{text-decoration:underline}.row-action.remove{color:#be6670}.empty-state{min-height:219px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#8e99a7;text-align:center;padding:24px}.empty-illustration{width:42px;height:42px;border-radius:13px;background:#f3f6fb;color:#97a9c5;display:grid;place-items:center;font-size:21px;margin-bottom:11px}.empty-state strong{font-size:11px;color:#546174}.empty-state p{font-size:9px;color:#9da6b2;margin:6px 0 12px}.empty-state .button{height:29px;font-size:9px}.text-button{border:0;background:transparent;color:#527ad0;font:10px inherit;cursor:pointer;padding:8px}.empty-state .text-button{margin-top:3px}.table-footer{height:35px;border-top:1px solid #f1f3f6;display:flex;align-items:center;justify-content:space-between;padding:0 15px;color:#a0a9b5;font-size:9px}.app-footer{display:flex;justify-content:space-between;padding:18px 2px 0;color:#a1aab5;font-size:9px}.footer-sep{padding:0 5px;color:#d2d7df}.rules-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.summary-card{background:#fff;border:1px solid #edf0f5;border-radius:8px;padding:14px 16px}.summary-card small{display:block;font-size:9px;color:#909bab}.summary-card strong{display:block;font-size:20px;margin-top:7px;color:#263346}.rules-panel .search-box{width:220px}.small-empty{min-height:170px}.integration-banner{display:flex;align-items:center;gap:13px;padding:16px;background:#fff9eb;border:1px solid #f3e8ce;border-radius:9px;margin:18px 0}.integration-mark{width:34px;height:34px;background:#fff0c7;border-radius:10px;color:#bb8121;display:grid;place-items:center;font-weight:700}.integration-banner strong{font-size:11px;color:#69542d}.integration-banner p{font-size:9px;color:#9a8966;margin:5px 0 0}.integration-status{margin-left:auto;font-size:9px;color:#a87b32;background:#fff2d6;padding:5px 8px;border-radius:11px;white-space:nowrap}.danger-text{color:#c96a73}.modal{border:0;padding:0;border-radius:12px;width:min(440px,calc(100vw - 28px));box-shadow:0 22px 75px #13294b35;color:#283649}.modal::backdrop{background:#14243a70;backdrop-filter:blur(2px)}.modal form{padding:23px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between}.modal-head h2,.confirm-modal h2{font-size:17px;margin:0;color:#1f2d40}.modal-close{border:0;background:transparent;color:#909aa7;font-size:22px;cursor:pointer;line-height:20px}.modal-intro{font-size:10px;color:#8c97a6;margin:11px 0 18px}.field-label{display:block;font-size:10px;font-weight:600;color:#536174;margin:14px 0 7px}.optional{float:right;font-weight:400;color:#a2aab5}.segmented{display:flex;gap:8px}.segmented label{flex:1;cursor:pointer}.segmented input{position:absolute;opacity:0}.segmented span{display:block;text-align:center;border:1px solid #e3e8ef;border-radius:6px;padding:8px;font-size:10px;color:#788496}.segmented input:checked+span{border-color:#8eb0f2;background:#f2f6ff;color:#3066d1}.field-input{height:36px;width:100%;border:1px solid #e2e7ee;border-radius:6px;padding:0 10px;outline:none;font:10px inherit;color:#39485c}.field-input:focus{border-color:#83a7ec;box-shadow:0 0 0 3px #2865e812}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.confirm-modal{text-align:center;width:min(370px,calc(100vw - 28px))}.confirm-icon{width:41px;height:41px;border-radius:50%;background:#eaf2ff;color:#4777d4;display:grid;place-items:center;margin:3px auto 12px;font-size:18px}.confirm-modal p{font-size:10px;color:#7c8796;line-height:1.7;margin:10px 0}.confirm-modal .modal-actions{justify-content:center}.toast-region{position:fixed;right:22px;bottom:22px;z-index:9;display:grid;gap:8px}.toast{background:#223248;color:#fff;padding:10px 14px;border-radius:7px;box-shadow:0 8px 24px #142a4728;font-size:10px;animation:appear .2s ease;max-width:360px}.toast.error{background:#9c3e49}.toast.success{background:#187b5c}@media(max-width:1200px){.main{padding:0 24px 16px}.sidebar{width:210px}.main{margin-left:210px}.metrics{gap:8px}.metric-card{padding:13px}.table-actions{gap:5px}.search-box{width:185px}}@media(max-width:1050px){.sidebar{width:64px;padding:18px 8px}.brand{padding:0 5px 30px}.brand>span:last-child,.workspace-label,.nav-item:not(.active),.nav-item.active{font-size:0}.nav-item{justify-content:center;padding:0;gap:0}.nav-icon{font-size:16px}.nav-count{display:none}.connection-card{padding:10px 8px}.connection-card>div,.user-chip>span:not(.avatar){display:none}.user-chip{justify-content:center}.main{margin-left:64px}.page-heading h1{font-size:21px}}

/* 公司自助查询指令区 */
.query-result{margin-top:10px;padding:8px 10px;border-radius:6px;background:#f7f9fc;border:1px solid #edf1f6;color:#617084;font-size:10px;line-height:1.5}.query-result.pending{background:#fff9eb;border-color:#f3e8ce;color:#936f2a}.command-groups{display:grid;grid-template-columns:1.1fr 1fr .9fr;gap:10px;margin-top:12px}.command-groups>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 9px;background:#fbfcfe;border:1px solid #eef1f5;border-radius:7px}.command-group-title{font-size:9px;font-weight:700;color:#56677e;margin-right:2px}.pending-command{color:#9b792f;background:#fff9eb;border-color:#f3e8ce}.warehouse-select{height:34px;min-width:142px;padding:0 28px 0 10px;border:1px solid #e4e9f0;border-radius:7px;background:#fff;color:#596678;font:600 11px 'DM Sans','Noto Sans SC',sans-serif;outline:0}.warehouse-select:focus{border-color:#84a8ef;box-shadow:0 0 0 3px #2865e812}@media(max-width:1200px){.command-groups{grid-template-columns:1fr}.heading-actions{flex-wrap:wrap;justify-content:flex-end}}
.auto-sync-control{height:34px;display:flex;align-items:center;gap:6px;padding:0 8px;border:1px solid #e4e9f0;border-radius:7px;background:#fff;color:#69778a;font-size:10px;white-space:nowrap}.auto-sync-control select{height:24px;border:0;outline:0;background:transparent;color:#43536a;font:600 10px 'DM Sans','Noto Sans SC',sans-serif;cursor:pointer}.auto-sync-control:focus-within{border-color:#84a8ef;box-shadow:0 0 0 3px #2865e812}

/* 快麦库存状态总库存区块 */
.inventory-summary{background:#fff;border:1px solid #edf0f5;border-radius:9px;box-shadow:var(--shadow);padding:16px 18px;margin-bottom:16px}.inventory-summary-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}.inventory-summary-head h2{margin:0;color:#263346;font-size:14px;font-weight:650}.inventory-summary-head p{margin:5px 0 0;color:#929cab;font-size:10px}.summary-sync-state{font-size:9px;color:#218360;background:#edf8f3;border:1px solid #dff1e9;border-radius:11px;padding:5px 9px}.inventory-summary-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:10px}.inventory-summary-grid>div{min-height:70px;padding:11px 13px;border:1px solid #eef1f5;border-radius:7px;background:#fbfcfe}.inventory-summary-grid span{display:block;color:#7d8999;font-size:10px}.inventory-summary-grid strong{display:block;margin-top:7px;color:#243247;font-size:21px;font-weight:650;font-variant-numeric:tabular-nums}.inventory-summary-grid small{display:block;margin-top:4px;color:#a0a9b5;font-size:9px}.inventory-summary-grid .inventory-total{background:#f2f6ff;border-color:#e3ebfb}.inventory-total strong{color:#2865e8}@media(max-width:1200px){.inventory-summary-grid{grid-template-columns:repeat(2,1fr)}}

/* 商品明细使用页面自然滚动，避免内部滚动条遮挡大量库存记录。 */
.table-scroll{overflow:visible;min-height:0}
.inventory-table{table-layout:fixed;width:100%;min-width:100%}
.inventory-table .col-check{width:42px}.inventory-table .col-supplier{width:130px}.inventory-table .col-item{width:170px}.inventory-table .col-sku{width:220px}.inventory-table .col-number{width:80px}.inventory-table .col-location{width:420px}.inventory-table .col-return{width:90px}.inventory-table .col-rule{width:150px}
.inventory-table th,.inventory-table td{overflow:hidden;text-overflow:ellipsis}.inventory-table th{padding-left:10px;padding-right:10px}.inventory-table td{padding-left:10px;padding-right:10px}
.inventory-table td.location-cell{overflow:visible;text-overflow:clip;white-space:pre-line;word-break:break-word;line-height:1.35;vertical-align:middle}
.location-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px 12px;align-items:start;text-align:left}.location-item{display:flex;min-width:0;flex-direction:column;gap:2px}.location-code{white-space:normal;overflow-wrap:anywhere;color:#536174}.location-item small{font-size:9px;line-height:1.2;color:#8c98a7;white-space:nowrap}

/* Expand the workspace while keeping the navigation compact. */
.sidebar{width:204px;padding-left:13px;padding-right:13px}.main{margin-left:204px;max-width:none;padding-left:24px;padding-right:24px}
@media(max-width:1200px){.sidebar{width:204px}.main{margin-left:204px;padding-left:20px;padding-right:20px}}
@media(max-width:1050px){.sidebar{width:64px;padding-left:8px;padding-right:8px}.main{margin-left:64px;padding-left:18px;padding-right:18px}}

/* Keep long inventory results inside the panel; the page itself remains stable. */
.data-panel .table-scroll{max-height:min(680px,68vh);overflow-y:auto;overflow-x:auto}
.inventory-command{display:flex;align-items:center;gap:9px;padding:10px 16px;border-bottom:1px solid #eef1f5;background:#fcfdff}.command-label{flex:0 0 auto;color:#536174;font-size:10px;font-weight:650}.inventory-command input{height:30px;min-width:220px;flex:0 1 360px;border:1px solid #dce5f2;border-radius:6px;padding:0 10px;outline:0;background:#fff;color:#425169;font:10px inherit}.inventory-command input:focus{border-color:#84a8ef;box-shadow:0 0 0 3px #2865e812}.inventory-command .query-result{margin:0;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 10px;border:1px solid #eef1f5;background:#fff;color:#7a8798;font-size:9px}.inventory-command .query-result.pending{background:#fff9eb;border-color:#f3e8ce;color:#936f2a}@media(max-width:900px){.inventory-command{flex-wrap:wrap}.inventory-command input{flex:1 1 240px}.inventory-command .query-result{flex-basis:100%}}
#inventoryView .data-panel{display:flex;flex-direction:column}#inventoryView .data-panel>.inventory-command{order:1}#inventoryView .data-panel>.inventory-filters{order:2}#inventoryView .data-panel>.table-toolbar{order:3}#inventoryView .data-panel>.inventory-selection-actions{order:4}#inventoryView .data-panel>.filter-summary{order:5}#inventoryView .data-panel>.table-scroll{order:6}#inventoryView .data-panel>.table-footer{order:7}
.zone-filter{position:relative;width:130px;flex:0 0 130px}.zone-filter summary{height:30px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 7px;border:1px solid #e7ebf1;border-radius:6px;background:#fff;color:#687486;font:10px inherit;cursor:pointer;list-style:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zone-filter summary::-webkit-details-marker{display:none}.zone-filter summary:after{content:'⌄';position:relative;left:3px;top:-4px;flex:0 0 auto;color:#8b97a7}.zone-filter[open] summary{border-color:#84a8ef;box-shadow:0 0 0 3px #2865e812}.zone-filter-menu{position:absolute;top:35px;left:0;z-index:6;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;min-width:420px;max-height:280px;overflow:auto;padding:7px;background:#fff;border:1px solid #dfe6ef;border-radius:7px;box-shadow:0 10px 24px #1d385218}.zone-filter-menu label{display:flex;align-items:center;gap:5px;padding:5px 6px;color:#5e6d80;font-size:10px;cursor:pointer}.zone-filter-menu label:hover{background:#f3f6fb}.zone-filter-menu input{appearance:auto!important;width:13px!important;height:13px!important;margin:0;border:0;border-radius:0;background:transparent;accent-color:#2865e8}.zone-filter-empty{padding:6px;color:#9aa5b3;font-size:10px}
.inventory-filters{align-items:flex-start;row-gap:6px}.inventory-filters .filter-field{display:flex;flex:0 0 170px;min-width:0;flex-direction:column;gap:2px}.inventory-filters .filter-field>label{height:auto;min-height:16px;color:#7d8999;font-size:13px;line-height:15px;white-space:normal;overflow-wrap:anywhere}.inventory-filters .filter-field>label small{color:#a0a9b5;font-size:11px;line-height:13px;font-weight:400}.inventory-filters .filter-field input{width:100%}.inventory-filters .zone-field{flex-basis:130px}.inventory-filters .zone-field .zone-filter{width:100%;flex-basis:auto}.inventory-filters .exclude-field{flex-basis:240px}.inventory-filters .filter-action{flex:0 0 auto;align-self:flex-start}.inventory-filters .filter-action .text-button{height:30px;padding:0 4px;text-align:left}
.inventory-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid #eef1f5;background:#fcfdff}.inventory-filters select,.inventory-filters input{height:30px;border:1px solid #e7ebf1;border-radius:6px;background:#fff;color:#687486;font:10px inherit;outline:0;padding:0 9px}.inventory-filters select{min-width:130px}.inventory-filters input{width:170px}.inventory-filters input:focus,.inventory-filters select:focus{border-color:#84a8ef;box-shadow:0 0 0 3px #2865e812}.inventory-filters .text-button{margin-left:auto;padding:6px 4px;color:#6e7d94}
.filter-summary{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:8px;padding:10px 16px;border-bottom:1px solid #eef1f5;background:#fff}.filter-summary>div{display:flex;align-items:baseline;gap:6px;min-height:42px;padding:8px 10px;border:1px solid #eef1f5;border-radius:6px;background:#fbfcfe}.filter-summary span{font-size:9px;color:#7d8999}.filter-summary strong{font-size:16px;color:#263b59;font-weight:650;font-variant-numeric:tabular-nums}.filter-summary small{font-size:9px;color:#a0a9b5}@media(max-width:900px){.filter-summary{grid-template-columns:repeat(2,1fr)}}
.filter-actions{display:flex;gap:6px;align-items:center;white-space:nowrap;height:30px}
.inventory-selection-actions{display:flex;align-items:center;gap:10px;min-height:42px;padding:6px 16px;border-bottom:1px solid #eef1f5;background:#fbfcff;color:#6f7d8f;font-size:10px}.inventory-selection-actions[hidden]{display:none}.inventory-selection-actions strong{color:#2865e8;font-size:12px}.selection-hint{color:#9aa5b4}.inventory-selection-actions .button{margin-left:auto}.return-flow{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px 13px;margin-bottom:16px;border:1px solid #e0eafe;border-radius:8px;background:#f7faff;color:#64758d;font-size:10px}.return-flow b{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#dce9ff;color:#2865e8;margin-right:4px}.return-flow-arrow{color:#a7b9d6}
.created-returns-panel{margin-bottom:16px}.created-return-filters{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:9px 10px;padding:13px 16px;border-bottom:1px solid #eef1f5;background:#fbfcff}.created-return-filters label{display:grid;gap:5px;min-width:0;color:#718097;font-size:9px;font-weight:600}.created-return-filters input,.created-return-filters select{width:100%;height:30px;padding:0 8px;border:1px solid #dce5f2;border-radius:5px;background:#fff;color:#425169;font:10px inherit;outline:0}.created-return-filters input:focus,.created-return-filters select:focus{border-color:#84a8ef;box-shadow:0 0 0 2px #2865e812}.return-quantity-range{display:flex;align-items:center;gap:4px}.return-quantity-range i{font-style:normal;color:#a0a9b5;font-weight:400}.created-return-filter-actions{display:flex;align-items:end;gap:6px;padding-bottom:0}.created-returns-panel .table-scroll{max-height:300px}.created-returns-panel table{min-width:1500px}.created-returns-panel .remark-cell{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.created-returns-panel tbody tr{cursor:pointer}.created-returns-panel tbody tr.selected-row{background:#edf4ff}.created-return-page-actions{display:flex;align-items:center;gap:6px}.created-return-page-actions .text-button{padding:4px 6px}.created-return-page-actions .text-button:disabled{color:#c0c7d1;cursor:not-allowed}.inline-filter-label{margin-left:8px;color:#7d8999;font-size:10px}.inline-filter-select{height:27px;padding:0 8px;border:1px solid #dce5f2;border-radius:5px;background:#fff;color:#425169;font:10px inherit;outline:0}.inline-filter-select:focus{border-color:#84a8ef;box-shadow:0 0 0 2px #2865e812}.created-return-details-panel{margin-bottom:16px}.created-return-details-panel .table-scroll{max-height:330px}.created-return-details-panel table{min-width:900px}.created-return-details-panel .empty-cell{text-align:center;color:#8a96a6;padding:32px}.detail-tabs{display:flex;align-items:center;gap:4px;margin-left:auto}.detail-tab{height:27px;padding:0 11px;border:1px solid #e1e7f0;border-radius:5px;background:#fff;color:#7b8798;font:10px inherit;cursor:pointer}.detail-tab:hover{border-color:#b8caeb;color:#2865e8}.detail-tab.active{border-color:#9ebbef;background:#edf3ff;color:#2865e8;font-weight:650}@media(max-width:1300px){.created-return-filters{grid-template-columns:repeat(4,minmax(140px,1fr))}}@media(max-width:900px){.created-return-filters{grid-template-columns:repeat(2,minmax(160px,1fr))}}
.inventory-filters{flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:8px}
.inventory-filters .filter-row{display:grid;width:100%;grid-template-columns:minmax(110px,1.08fr) minmax(100px,.82fr) minmax(110px,1.08fr) minmax(110px,1.08fr) minmax(185px,1.65fr) repeat(5,minmax(84px,.7fr));align-items:flex-start;gap:10px;overflow-x:auto;padding-bottom:2px}
.inventory-filters .filter-row .filter-field{min-width:0;flex:initial}
.inventory-filters .filter-row .zone-field,.inventory-filters .filter-row .exclude-field,.inventory-filters .filter-row .exclude-zone-field{flex-basis:auto}
.inventory-filters .filter-row .exclude-zone-field .zone-filter{width:100%;flex-basis:auto}
.inventory-filters .filter-row .filter-action{flex:0 0 auto}
.inventory-filters .filter-field>label{height:17px;min-height:17px;overflow:hidden;font-size:11px;line-height:17px;white-space:nowrap;text-overflow:ellipsis}
.inventory-filters .filter-field>label small{display:none}
.inventory-filters .filter-row input{height:34px;padding:0 10px;font-size:12px}
.inventory-filters .filter-row .zone-filter summary{height:34px;font-size:12px}
.inventory-filters .filter-actions .text-button{margin-left:0}
.inventory-filters{position:relative;padding:12px 92px 12px 16px}
.inventory-filters .filter-row .filter-action{position:absolute;top:12px;right:16px;width:60px}
.inventory-filters .filter-actions{display:grid;width:60px;height:110px;grid-template-rows:17px 34px 8px 17px 34px;align-items:stretch;gap:0}
.inventory-filters .filter-actions .text-button{width:100%;margin:0}
.inventory-filters .filter-actions .filter-auto-hint{grid-row:1;align-self:start}
.inventory-filters .filter-actions #saveInventoryFilters{grid-row:2;align-self:center}
.inventory-filters .filter-actions #clearInventoryFilters{grid-row:5;align-self:center}
.inventory-filters .filter-actions .text-button{height:26px;padding:0 4px;border:1px solid #e0e6ef;border-radius:4px;background:#fff;color:#5274b8;font-size:12px;text-align:center;transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .1s ease}
.inventory-filters .filter-actions .text-button:hover{border-color:#aac2ee;background:#f5f8ff;color:#2865e8;box-shadow:0 2px 6px #2865e814}
.inventory-filters .filter-actions .text-button:active{background:#eaf1ff;border-color:#84a8ef;transform:translateY(1px);box-shadow:none}
.inventory-filters .filter-actions .text-button:focus-visible{outline:0;border-color:#6d98e9;box-shadow:0 0 0 3px #2865e826}
.zone-filter-menu label.zone-filter-all{grid-column:1 / -1;border-bottom:1px solid #edf0f5;margin-bottom:2px;padding-bottom:7px;color:#4d6384;font-weight:600}
.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.inventory-filters input{color:#426eb9}
.inventory-table th{font-size:10px}.inventory-table td{font-size:11px}
.inventory-table thead th{position:sticky;top:0;z-index:3;background:#fafbfd;box-shadow:0 1px 0 #eef1f5}
.inventory-table th:nth-child(5),.inventory-table td:nth-child(5),.inventory-table th:nth-child(6),.inventory-table td:nth-child(6),.inventory-table th:nth-child(7),.inventory-table td:nth-child(7),.inventory-table th:nth-child(8),.inventory-table td:nth-child(8),.inventory-table th:nth-child(9),.inventory-table td:nth-child(9){vertical-align:middle}
.inventory-table th:nth-child(5),.inventory-table td:nth-child(5),.inventory-table th:nth-child(6),.inventory-table td:nth-child(6),.inventory-table th:nth-child(7),.inventory-table td:nth-child(7),.inventory-table th:nth-child(8),.inventory-table td:nth-child(8),.inventory-table th:nth-child(9),.inventory-table td:nth-child(9){text-align:center!important}
.inventory-table th:nth-child(11),.inventory-table td:nth-child(11){text-align:center!important;vertical-align:middle}
.filter-summary{display:flex;align-items:center;gap:20px;min-height:38px;padding:0 16px;border-bottom:1px solid #eef1f5;background:#fff}.filter-summary>span{font-size:10px;color:#7d8999;white-space:nowrap}.filter-summary>span+span{padding-left:20px;border-left:1px solid #edf0f5}.filter-summary>span strong{margin-left:4px;font-size:14px;color:#263b59;font-weight:650;font-variant-numeric:tabular-nums}
.metrics{gap:0;overflow:hidden;background:#fff;border:1px solid #edf0f5;border-radius:9px;box-shadow:var(--shadow)}.metrics .metric-card{border:0;border-radius:0;box-shadow:none}.metrics .metric-card+.metric-card{border-left:1px solid #edf0f5}
.inventory-overview{background:#fff;border:1px solid #edf0f5;border-radius:9px;box-shadow:var(--shadow);margin-bottom:16px;overflow:hidden}.inventory-overview .metrics{margin:0;border:0;border-radius:0;box-shadow:none}.inventory-overview .inventory-summary{margin:0;border:0;border-top:1px solid #eef1f5;border-radius:0;box-shadow:none}
.inventory-overview{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0}.inventory-overview .metrics,.inventory-overview .inventory-summary,.inventory-overview .inventory-summary-grid{display:contents}.inventory-overview .inventory-summary-head{grid-column:1 / -1;margin:0;padding:16px 18px 10px}.inventory-overview .metric-card,.inventory-overview .inventory-summary-grid>div{min-width:0;min-height:82px;padding:12px 10px;border:0;border-radius:0;box-shadow:none}.inventory-overview .metric-card+.metric-card,.inventory-overview .inventory-summary-grid>div{border-left:1px solid #edf0f5}.inventory-overview .inventory-summary-grid .inventory-total{background:#f2f6ff;border-color:#e3ebfb}.inventory-overview .metric-card .metric-time{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inventory-overview .inventory-summary-head{order:-1}
.inventory-overview .inventory-total{order:1}.inventory-overview .inventory-available{order:2}.inventory-overview .inventory-locked{order:3}.inventory-overview .inventory-sku{order:4}.inventory-overview .metric-return{order:5}.inventory-overview .metric-blocked{order:6}.inventory-overview .metric-updated{order:7}
.inventory-overview .metric-card .metric-top{display:block;color:#7d8999;font-size:10px}.inventory-overview .metric-card>strong,.inventory-overview .inventory-summary-grid>div>strong{display:block;margin-top:7px;color:#243247;font-size:21px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:0}.inventory-overview .metric-card>strong em{font-size:11px;font-style:normal;color:#758196;font-weight:500;letter-spacing:0}.inventory-overview .metric-card>small,.inventory-overview .inventory-summary-grid>div>small{display:block;margin-top:4px;color:#a0a9b5;font-size:9px}.inventory-overview .inventory-total strong{color:#2865e8}.inventory-overview .metric-card .metric-time{font-size:21px;letter-spacing:0;margin-top:7px}
.inventory-overview .metric-card,.inventory-overview .inventory-summary-grid>div{height:104px;min-height:104px;background:#fbfcfe!important}.inventory-overview .metric-card .metric-top,.inventory-overview .inventory-summary-grid>div>span{height:16px;line-height:16px;font-size:10px}.inventory-overview .metric-card>strong,.inventory-overview .inventory-summary-grid>div>strong{height:28px;line-height:28px;margin-top:7px;font-size:21px}.inventory-overview .metric-card>small,.inventory-overview .inventory-summary-grid>div>small{height:14px;line-height:14px;margin-top:4px;font-size:9px}.inventory-overview .inventory-total strong{color:#243247}
.inventory-command .query-shortcuts{display:flex;align-items:center;gap:6px;white-space:nowrap}.inventory-command .query-shortcuts .shortcut-label{flex:0 0 auto;color:#69778a;font-size:9px;font-weight:650}.inventory-command .query-shortcuts .hint{flex:0 0 auto;padding:4px 7px;background:#f7f9fc;border:1px solid #edf1f6;border-radius:5px;color:#66768b;font-size:9px;line-height:1.2}.inventory-command .query-shortcuts .hint:hover{background:#fbfcff;border-color:#b7c9e9;color:#2865e8}.inventory-command .query-execution{min-width:0;margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7a8798;font-size:9px}.inventory-command .query-execution.pending{color:#936f2a}
.inventory-command .command-scope{padding-left:8px;border-left:1px solid #e5eaf1;color:#8a96a6;font-size:10px;white-space:nowrap}.inventory-filters .filter-auto-hint{display:block;color:#8793a4;font-size:9px;line-height:14px;text-align:center;white-space:nowrap}
#runQuery{min-width:0;height:30px;padding:0 10px;font-size:11px}
.rules-panel .table-title{flex-wrap:wrap}.rule-scope-tabs{display:flex;align-items:center;gap:3px;margin-left:4px}.rule-scope-tab{height:25px;padding:0 9px;border:1px solid #e5eaf1;border-radius:5px;background:#fff;color:#788597;font:10px inherit;cursor:pointer}.rule-scope-tab:hover{border-color:#b8caeb;color:#2865e8}.rule-scope-tab.active{border-color:#b8caeb;background:#edf3ff;color:#2865e8;font-weight:650}
.rules-panel .rule-entry-row{background:#fbfcff}.rules-panel .rule-entry-row td{height:52px;padding:6px 11px}.rules-panel .rule-entry-row input,.rules-panel .rule-entry-row select{height:30px;width:100%;min-width:90px;border:1px solid #dce5f2;border-radius:5px;background:#fff;color:#425169;font:10px inherit;padding:0 8px;outline:0}.rules-panel .rule-entry-row input:focus,.rules-panel .rule-entry-row select:focus{border-color:#84a8ef;box-shadow:0 0 0 2px #2865e812}.rules-panel .rule-entry-row select:disabled{background:#f3f5f8;color:#8a95a4}.rules-panel .rule-entry-row .button{width:100%;height:30px}
.inventory-command~.table-toolbar #resultCount{font-size:12px;color:#2865e8;background:#edf3ff;border:1px solid #dce8ff;border-radius:12px;padding:4px 9px;font-weight:700;line-height:1.2}
.page-view{animation:none}
.dashboard-status{display:flex;align-items:center;gap:12px;min-height:42px;padding:0 14px;margin-bottom:16px;border:1px solid #e2e9f3;border-radius:8px;background:#fff;color:#7b899b;font-size:10px}.dashboard-status .summary-sync-state{flex:0 0 auto}.dashboard-status-source{margin-left:auto;color:#9aa5b4}.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dashboard-card{min-height:125px;padding:16px 17px;border:1px solid #e5ebf3;border-radius:9px;background:#fff;box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:space-between;min-width:0}.dashboard-card[data-dashboard-card]{cursor:grab;user-select:none}.dashboard-card[data-dashboard-card]:active{cursor:grabbing}.dashboard-card.dashboard-card-dragging{opacity:.42;border-style:dashed}.dashboard-card.dashboard-card-drop-target{border-color:#5d91ed;box-shadow:0 0 0 2px #2865e820,var(--shadow)}.dashboard-card span{color:#718097;font-size:11px;font-weight:600}.dashboard-card strong{display:block;color:#263b59;font-size:27px;line-height:1.1;font-weight:700;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-card small{display:block;min-height:24px;color:#a0a9b5;font-size:9px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-card-primary{background:#f7faff;border-color:#dce8fb}.dashboard-card-primary strong{color:#2865e8}.dashboard-card-stock strong{color:#187b5c}.dashboard-value-error{color:#a3454c!important;font-size:18px!important}.dashboard-warning{margin-top:14px;padding:10px 13px;border:1px solid #f0dfb4;border-radius:7px;background:#fff9eb;color:#936f2a;font-size:10px;line-height:1.6}.summary-sync-state.synced{background:#eaf8f1;color:#187b5c}.summary-sync-state.error{background:#fff0f0;color:#a3454c}@media(max-width:1100px){.dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-status{align-items:flex-start;flex-wrap:wrap;padding:10px 12px}.dashboard-status-source{margin-left:0;width:100%}}@media(max-width:480px){.dashboard-grid{grid-template-columns:1fr}}
.rules-panel .rule-category-input{width:112px;height:28px;border:1px solid #dce5f2;border-radius:5px;background:#fff;color:#426eb9;font:10px inherit;padding:0 7px;outline:0}.rules-panel .rule-category-input:focus{border-color:#84a8ef;box-shadow:0 0 0 2px #2865e812}
.rules-panel .rule-category-filter{position:relative;margin-left:4px}.rules-panel .rule-category-filter summary{height:25px;display:flex;align-items:center;gap:5px;padding:0 9px;border:1px solid #e5eaf1;border-radius:5px;background:#fff;color:#788597;font:10px inherit;cursor:pointer;list-style:none}.rules-panel .rule-category-filter summary::-webkit-details-marker{display:none}.rules-panel .rule-category-filter summary::after{content:'⌄';font-size:10px;color:#8e9bad}.rules-panel .rule-category-filter[open] summary{border-color:#b8caeb;color:#2865e8;background:#edf3ff}.rules-panel .rule-category-filter-menu{position:absolute;right:0;top:30px;z-index:8;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));min-width:430px;max-height:245px;overflow:auto;padding:6px;background:#fff;border:1px solid #e5eaf1;border-radius:6px;box-shadow:0 8px 22px #142a4720}.rules-panel .rule-filter-option{display:flex;align-items:center;gap:7px;padding:5px 4px;color:#536174;font-size:10px;white-space:nowrap}.rules-panel .rule-filter-option:hover{background:#f6f8fc}.rules-panel .rule-filter-all{grid-column:1 / -1;border-bottom:1px solid #eef1f5;margin-bottom:3px;padding-bottom:7px;font-weight:650}.rules-panel .rule-batch-actions{display:flex;align-items:center;gap:8px;min-height:45px;padding:7px 16px;border-bottom:1px solid #eef1f5;background:#fbfcff;color:#6f7d8f;font-size:10px}.rules-panel .rule-batch-actions[hidden]{display:none}.rules-panel .rule-batch-actions strong{color:#2865e8;font-size:12px}.rules-panel .rule-batch-actions select{height:30px;min-width:145px;padding:0 9px;border:1px solid #dce5f2;border-radius:5px;background:#fff;color:#425169;font:10px inherit}.rules-panel .rule-batch-actions .button{height:30px}.rules-panel .check-cell{width:35px;padding-left:16px;padding-right:5px}.rules-panel .rule-entry-row .check-cell{padding-left:16px}
.product-lookup{margin:10px 0 0;padding:12px 14px;border:1px solid #e2e9f3;border-radius:7px;background:#fbfcff}.product-lookup-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.product-lookup-head strong{display:block;color:#243247;font-size:12px}.product-lookup-head span{display:block;margin-top:3px;color:#8996a8;font-size:10px}.product-lookup-form{display:flex;align-items:center;gap:7px;min-width:320px}.product-lookup-form input{width:220px;height:30px;padding:0 9px;border:1px solid #dce5f2;border-radius:5px;background:#fff;color:#425169;font:10px inherit;outline:0}.product-lookup-form input:focus{border-color:#84a8ef;box-shadow:0 0 0 2px #2865e812}.product-lookup-result{margin-top:10px;color:#556479;font-size:10px}.lookup-placeholder,.lookup-loading,.lookup-error{display:block;padding:9px 10px;border-radius:5px;background:#f5f7fb;color:#7d8999}.lookup-error{background:#fff3f3;color:#a3454c}.lookup-summary{display:flex;flex-wrap:wrap;gap:8px 20px;padding:8px 10px;border:1px solid #e7edf5;border-radius:5px;background:#fff}.lookup-summary strong{color:#243247}.lookup-attribute-group{margin-top:8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.lookup-attribute-group>strong{color:#6e7d91;font-size:10px;font-weight:650}.lookup-chip{display:inline-flex;align-items:center;min-height:23px;padding:0 8px;border:1px solid #dce5f2;border-radius:12px;background:#f8faff;color:#426eb9}.product-lookup-table{width:100%;margin-top:8px;border-collapse:collapse}.product-lookup-table th,.product-lookup-table td{height:30px;padding:5px 8px;border-top:1px solid #eef1f5;text-align:left}.product-lookup-table th{color:#7b899b;font-weight:600;font-size:9px}.product-lookup-table td{color:#4e5e74}.product-lookup-table .price{color:#243247;font-variant-numeric:tabular-nums}@media(max-width:760px){.product-lookup-head{align-items:stretch;flex-direction:column}.product-lookup-form{min-width:0}.product-lookup-form input{flex:1;width:auto}}
.sales-filter-panel{margin-bottom:16px;padding:15px 16px;border:1px solid #e5ebf3;border-radius:9px;background:#fff;box-shadow:var(--shadow)}.sales-filter-grid{display:grid;grid-template-columns:150px 150px minmax(240px,1.25fr) minmax(210px,1fr);gap:10px;align-items:end}.sales-field{display:grid;gap:6px;min-width:0;color:#718097;font-size:10px;font-weight:600}.sales-field span{display:block}.sales-field small{font-size:9px;color:#a0a9b5;font-weight:400}.sales-field input,.sales-field select{width:100%;height:34px;padding:0 9px;border:1px solid #dce5f2;border-radius:6px;background:#fff;color:#425169;font:11px inherit;outline:0}.sales-field input:focus,.sales-field select:focus,.sales-flag-selector[open] summary{border-color:#84a8ef;box-shadow:0 0 0 3px #2865e812}.sales-flag-selector{position:relative}.sales-flag-selector summary{height:34px;display:flex;align-items:center;padding:0 9px;border:1px solid #dce5f2;border-radius:6px;background:#fff;color:#66758a;font:11px inherit;cursor:pointer;list-style:none}.sales-flag-selector summary::-webkit-details-marker{display:none}.sales-flag-selector summary::after{content:'⌄';margin-left:auto;color:#8e9bad}.sales-flag-options{position:absolute;z-index:8;right:0;top:39px;min-width:310px;padding:8px 9px;border:1px solid #e1e8f2;border-radius:7px;background:#fff;box-shadow:0 10px 24px #142a4722}.sales-flag-actions{display:flex;align-items:center;gap:10px;padding:1px 2px 7px;border-bottom:1px solid #edf0f5}.sales-flag-actions button{padding:0;border:0;background:transparent;color:#2865e8;font:10px inherit;cursor:pointer}.sales-flag-actions button:hover{text-decoration:underline}.sales-flag-actions .sales-flag-clear{margin-left:auto;color:#8b96a5}.sales-flag-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 8px;padding-top:7px}.sales-flag-option{display:flex;align-items:center;gap:5px;min-height:22px;padding:2px;color:#536174;font-size:10px;font-weight:500;cursor:pointer;white-space:nowrap}.sales-flag-option input[type="checkbox"]{appearance:auto;width:13px;height:13px;min-width:13px;min-height:13px;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;accent-color:#2865e8;flex:0 0 13px}.sales-flag-option input[type="checkbox"]:focus{box-shadow:0 0 0 2px #2865e830}.sales-flag-option:hover{background:#f6f8fc}.sales-flag-icon{position:relative;display:inline-block;width:11px;height:13px;flex:0 0 11px}.sales-flag-icon::before{content:"";position:absolute;left:2px;top:2px;width:8px;height:7px;background:var(--flag-color);clip-path:polygon(0 0,100% 0,70% 50%,100% 100%,0 100%)}.sales-flag-icon::after{content:"";position:absolute;left:1px;top:1px;width:1px;height:11px;background:#8b96a5}.sales-flag-empty{display:block;padding:7px 2px 1px;color:#909baa;font-size:10px;font-weight:400}.sales-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}.sales-shop-table-panel,.sales-code-table-panel{margin-top:16px}.sales-shop-table-panel .table-scroll{max-height:280px}.sales-shop-table-panel .sales-shop-row{cursor:pointer}.sales-shop-table-panel .sales-shop-row:hover{background:#f3f7ff}.table-note{color:#96a1b0;font-size:10px}.sales-code-table-panel .table-scroll{min-height:260px;max-height:560px}.sales-code-table-panel table{min-width:720px}.sales-code-table-panel .sales-sort-button{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;min-height:22px;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;cursor:pointer}.sales-code-table-panel .sales-sort-button:hover,.sales-code-table-panel .sales-sort-button.active{color:#2865e8}.sales-code-table-panel .sales-sort-button span{width:9px;color:#8b98aa;font-size:11px;line-height:1}.sales-code-table-panel .sales-sort-button.active span{color:#2865e8}.empty-cell{text-align:center;color:#9da7b5}.sales-code-table-panel .numeric{font-variant-numeric:tabular-nums}@media(max-width:1320px){.sales-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.sales-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.sales-filter-grid,.sales-metrics{grid-template-columns:1fr}.sales-flag-options{left:0;right:auto;min-width:290px}}
