@import url('./sku.css');
:root{font-family:Inter,"Microsoft YaHei",sans-serif;color:#1d211c;background:#f6f6f2;font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select{cursor:pointer}button{border:1px solid #dcded5;background:white;padding:10px 15px;border-radius:9px;font-weight:600;color:inherit}button:hover{background:#f5f5eb}button:disabled{opacity:.5;cursor:wait}input,select{border:1px solid #dcded5;border-radius:8px;background:white;padding:10px 12px;color:inherit;min-width:0}input:focus,select:focus{outline:2px solid #e8cc1a;outline-offset:1px}.primary{background:#ffdc00;border-color:#e4c200}.primary:hover{background:#f0d000}h1,h2,h3,p{margin-top:0}h1{font-size:30px}h2{font-size:22px;margin-bottom:7px}h3{font-size:17px}small,.muted{color:#84877d;font-size:12px}.eyebrow{font-size:10px;letter-spacing:2px;color:#947a00;font-weight:700}.brand-icon{display:inline-flex;width:39px;height:39px;border-radius:13px;background:#ffdc00;align-items:center;justify-content:center;color:#141712;font-size:21px;font-weight:800}aside{position:fixed;left:0;top:0;bottom:0;width:220px;padding:26px 17px;background:#171a16;color:#efefe6;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-weight:700}.brand small{display:block;letter-spacing:2px;font-size:9px;margin-top:5px}.test-badge{margin:25px 0 13px;padding:8px 12px;color:#ffdf30;background:#36341a;border-radius:7px;font-size:12px;width:max-content}nav p{color:#797f70;font-size:11px;margin:23px 12px 9px}nav button{display:block;width:100%;text-align:left;background:transparent;color:#aeb4a5;border:0;margin:4px 0;padding:12px 14px}nav button:hover{background:#252a22}nav button.active{background:#30352a;color:#ffdf30;border-left:3px solid #ffdf30}.aside-bottom{margin-top:auto;padding:18px 10px 0;border-top:1px solid #353b30}.aside-bottom a{display:block;color:#d8dccf;text-decoration:none;margin-bottom:9px}.aside-bottom small{font-size:10px}main{margin-left:220px;padding:0 34px 50px;max-width:2200px}header{min-height:95px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e0e3d9}header p{color:#82877a;font-size:12px;margin:0}.header-actions{display:flex;align-items:center;gap:14px}.header-actions select{max-width:250px;min-width:180px}.header-actions span{font-size:12px}.environment{margin:22px 0;background:#f2efd9;border:1px solid #e8e1b7;border-radius:9px;padding:11px 15px;font-size:12px;color:#756526;display:flex;gap:20px}.environment span{color:#8b805b}.environment strong{margin-left:auto}#content{padding-top:10px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:8px 0 20px}.section-title p{margin:5px 0 0}.cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:18px 0 25px}.card,.panel{background:white;border:1px solid #e3e6dc;border-radius:14px;padding:21px}.card p{font-size:12px;color:#858a7a;margin-bottom:12px}.card strong{font-size:25px;letter-spacing:-.6px}.card small{display:block;margin-top:9px}.panel{margin:15px 0;overflow:hidden}.panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.panel-header h3{margin:0}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}th{font-size:11px;color:#858a7a;font-weight:500;padding:13px 12px;border-bottom:1px solid #e4e6df;white-space:nowrap}td{padding:17px 12px;border-bottom:1px solid #f0f1ec;vertical-align:top}tr:last-child td{border-bottom:0}td small{display:block;margin-top:5px;max-width:360px;overflow-wrap:anywhere}.product{display:flex;gap:12px;align-items:flex-start;min-width:230px;max-width:410px}.product img{width:46px;height:46px;object-fit:cover;border-radius:7px;background:#f4f5f0}.product strong{font-size:12px;font-weight:500;display:block;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pill{display:inline-block;padding:4px 8px;border-radius:20px;font-size:11px;background:#eff1e9;color:#5b6551;white-space:nowrap}.pill.green{color:#1b7856;background:#e4f5ed}.pill.yellow{color:#8c6e00;background:#fff5c5}.pill.red{color:#b33d32;background:#fff0ec}.pill.blue{color:#2a6996;background:#eaf4ff}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.toolbar input{width:300px}.toolbar .spacer{flex:1}.pager{display:flex;justify-content:flex-end;align-items:center;gap:15px;margin-top:20px}.empty{text-align:center;padding:55px 15px;color:#939888}.hint{padding:15px 18px;background:#eeefe8;border-radius:9px;color:#717862;font-size:12px;line-height:1.8;margin-bottom:20px}#notice{padding:12px 18px;border-radius:9px;background:#e3f4eb;color:#28714d;margin:15px 0}.error{color:#bd4839;font-size:12px}.login{min-height:100vh;display:grid;place-items:center}.login-card{background:#fff;border:1px solid #e0e4d7;border-radius:22px;padding:45px;width:420px;box-shadow:0 20px 80px #2535200b}.login-card .eyebrow{margin-top:23px}.login-card label{display:block;margin:19px 0;font-size:12px}.login-card input{display:block;width:100%;margin-top:8px}.login-card button{width:100%}dialog{border:0;border-radius:17px;padding:28px;max-width:760px;width:95%;max-height:90vh;box-shadow:0 35px 100px #0004}dialog::backdrop{background:#10160f88}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label{font-size:12px}.form-grid label>input,.form-grid label>select{display:block;width:100%;margin-top:7px}.full{grid-column:1/-1}.form-grid p{margin:0}.checks{display:flex;gap:12px;flex-wrap:wrap}.checks label{display:flex;gap:5px;align-items:center}.checks label>input{width:auto;margin:0}fieldset{border:1px solid #e0e4d8;border-radius:8px;padding:15px}legend{font-size:12px;color:#707765}.dialog-footer{display:flex;justify-content:space-between;align-items:center;margin-top:20px}[hidden]{display:none!important}@media(max-width:1100px){aside{width:185px}main{margin-left:185px;padding-left:20px;padding-right:20px}.cards{grid-template-columns:repeat(3,1fr)}.header-actions span{display:none}}@media(max-width:700px){aside{position:static;width:100%;padding:15px}nav{display:flex;overflow:auto}nav p,.aside-bottom,.test-badge{display:none}nav button{white-space:nowrap;width:auto;font-size:12px}main{margin:0;padding:0 15px 30px}header{flex-wrap:wrap;padding:15px 0}.header-actions{width:100%;justify-content:space-between}.environment span{display:none}.cards{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.section-title{flex-wrap:wrap}.login-card{width:92%;padding:30px}}
.image-fallback{display:flex;align-items:center;justify-content:center;width:46px;min-width:46px;height:46px;border-radius:7px;background:#f0f2eb;color:#989e8b;font-size:10px}

nav{overflow:auto;min-height:0;flex:1}aside{height:100vh;display:flex;flex-direction:column}nav details{margin:12px 0}nav summary{color:#b5b5a8;font-size:12px;cursor:pointer;padding:8px}nav button{font-size:13px;padding:9px 12px}.listing-frame{width:100%;height:calc(100vh - 205px);min-height:650px;border:0;background:#f5f5f2}.condition{display:flex;gap:8px;margin:8px 0}.condition>*{min-width:0;flex:1}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:500px;font-size:12px}textarea{width:100%;min-height:80px;border:1px solid #ddd;border-radius:8px;padding:10px;font:inherit}.toolbar input[type=number]{width:85px}.toolbar select{width:auto}.table-scroll td{max-width:350px;overflow-wrap:anywhere}@media(max-width:800px){aside{height:auto;max-height:40vh}.listing-frame{min-height:700px}.condition{flex-wrap:wrap}.condition>*{min-width:90px}}

/* TR003: quiet scrolling and clear navigation hierarchy. */
nav{scrollbar-width:thin;scrollbar-color:transparent transparent;padding-right:3px}nav:hover,nav:focus-within{scrollbar-color:#515849 transparent}nav::-webkit-scrollbar{width:4px;height:4px}nav::-webkit-scrollbar-track{background:transparent}nav::-webkit-scrollbar-thumb{background:transparent;border-radius:8px}nav:hover::-webkit-scrollbar-thumb,nav:focus-within::-webkit-scrollbar-thumb{background:#515849}nav::-webkit-scrollbar-button{display:none;width:0;height:0}
nav details{margin:8px 0}nav summary{list-style:none;font-size:15px;font-weight:700;color:#edf0e6;padding:13px 10px;border-radius:8px;display:flex;align-items:center;justify-content:space-between}nav summary::-webkit-details-marker{display:none}nav summary::after{content:'›';font-size:18px;color:#8e9783;transition:transform .15s}nav details[open]>summary::after{transform:rotate(90deg)}nav summary:hover{background:#282e23}nav details:has(button.active)>summary{color:#ffdf30;background:#2b3023}nav details>button{padding-left:23px;font-size:13px;font-weight:500}nav details>button.active{font-weight:700}
.order-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:0 0 17px;border-bottom:1px solid #eceee5;margin-bottom:12px}.order-tabs button{padding:8px 11px;font-size:13px;border-color:transparent;background:#f5f6f1}.order-tabs button span{margin-left:6px;color:#828976;font-weight:500}.order-tabs button.active{background:#fff7c1;border-color:#e8cc1a}.order-tabs button.active span{color:#665300}.order-product{min-width:200px;max-width:310px;gap:10px;margin:3px 0}.order-product>div{min-width:0}.order-product strong,.order-product small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-product img{width:42px;height:42px;min-width:42px;object-fit:cover;border-radius:6px}.order-product .image-fallback{width:42px;height:42px;min-width:42px}.order-money{white-space:nowrap}.order-logistics{min-width:125px}.order-time{min-width:270px;white-space:nowrap;font-size:12px}.shipment-line{display:flex;align-items:center;gap:8px;margin-top:6px;color:#7a8170;white-space:nowrap}.shipment-remaining{font-size:11px;color:#827020;background:#f8f3db;border-radius:4px;padding:2px 5px}.shipment-remaining:empty{display:none}.shipment-remaining.overdue{color:#c14335;background:#fff0ec}

.catalog-workbench{min-width:0}.catalog-actions{display:flex;gap:8px;flex-wrap:wrap}.catalog-tabs{border-bottom:0;margin-bottom:0}.catalog-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:12px;align-items:end;padding:16px}.catalog-filters label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#747c6d}.catalog-filters input,.catalog-filters select{width:100%;font-size:13px}.catalog-summary{display:flex;align-items:center;gap:20px;padding:0 2px 14px;color:#818977;font-size:12px}.catalog-summary>span:first-child{margin-right:auto}.catalog-summary button{font-size:12px;padding:7px 10px}.catalog-panel{padding:12px 12px 0}.catalog-panel table{font-size:12px;min-width:1410px;width:100%;table-layout:auto}.catalog-panel th{font-size:11px;white-space:nowrap;padding:12px 8px}.catalog-panel td{padding:10px 8px;vertical-align:middle}.catalog-panel tbody tr:hover{background:#fffdf0}.catalog-panel small{font-size:10px}.catalog-photo,.catalog-name button,.copy-code,.stock-detail,.issue-detail{border:0;background:transparent;padding:0;border-radius:4px}.catalog-photo img,.catalog-photo .image-fallback{width:34px;height:34px;min-width:34px;object-fit:cover;border-radius:5px}.catalog-photo .image-fallback{font-size:9px}.catalog-code{min-width:140px;max-width:160px}.catalog-code>div{display:flex;align-items:center;gap:5px}.catalog-code span{max-width:124px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.catalog-code small{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.copy-code{font-size:15px;color:#75836e;min-width:20px;min-height:24px}.catalog-name{width:220px;max-width:220px}.catalog-name button{display:block;width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;font-size:12px}.catalog-panel .pill{font-size:10px;white-space:nowrap}.catalog-price{white-space:nowrap}.catalog-dates{min-width:115px;max-width:130px}.catalog-dimensions{min-width:125px;max-width:150px;font-size:11px}.stock-detail,.issue-detail{min-width:25px;min-height:28px}.has-issues{color:#c4432a;background:#fff1eb;padding:2px 7px}.catalog-dialog{width:min(1040px,94vw);max-width:94vw;max-height:90vh;padding:28px;border:1px solid #dce1d3;border-radius:16px;overflow:auto;color:inherit}.catalog-dialog::backdrop{background:#151c1766}.catalog-dialog h3{margin-top:24px}.catalog-dialog .dialog-heading{display:flex;justify-content:space-between;align-items:flex-start}.catalog-identity{display:flex;gap:18px;align-items:center;margin:15px 0}.catalog-identity>img,.catalog-identity>.image-fallback{height:100px;width:100px;min-width:100px;object-fit:contain;border-radius:9px;background:#f5f6ef}.catalog-identity h3{margin:0 0 10px}.catalog-identity p{overflow-wrap:anywhere;margin-bottom:8px}.catalog-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.catalog-detail-grid>div{padding:14px;border-radius:9px;background:#f6f7f1;overflow-wrap:anywhere}.catalog-detail-grid dt{font-size:12px;color:#828a78;margin-bottom:7px}.catalog-detail-grid dd{margin:0;font-weight:650}.catalog-issues{list-style:none;padding:0}.catalog-issues li{background:#fff7f1;padding:12px;margin:7px 0;border-radius:8px}.catalog-issues p{margin:8px 0 0;overflow-wrap:anywhere}.catalog-media{display:flex;gap:12px;flex-wrap:wrap}.catalog-media img{width:130px;height:130px;object-fit:contain;background:#f6f7f1;border-radius:8px}.catalog-description{white-space:pre-wrap;line-height:1.7}.catalog-parameters{padding:15px;background:#f6f7f1;border-radius:8px;margin:20px 0}.catalog-parameters summary{cursor:pointer;font-weight:650}.catalog-dialog .catalog-actions{margin-top:20px}@media(max-width:1100px){.catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-summary{gap:10px;flex-wrap:wrap}.catalog-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.catalog-filters{grid-template-columns:1fr}.catalog-dialog{padding:18px}.catalog-identity{align-items:flex-start}.catalog-identity>img{width:70px;height:70px;min-width:70px}.catalog-identity h3{font-size:14px}.catalog-detail-grid{gap:8px}.catalog-detail-grid>div{padding:10px}.catalog-dialog table{font-size:12px}}

.order-filters{flex-wrap:wrap;margin:16px 0}.order-filters label{font-size:12px;color:var(--muted)}.order-filters input[type=date]{display:block;max-width:160px}.order-filters .raw-orders{display:flex;align-items:center;gap:6px}.shipment-orders{display:flex;flex-wrap:wrap;gap:6px;max-width:480px;max-height:260px;overflow:auto}.order-filters input[type=checkbox]{width:auto}

.order-image-button{padding:0;border:0;background:transparent;flex-shrink:0;width:42px;height:42px;cursor:zoom-in}.order-image-button img{width:42px;height:42px;object-fit:contain}#orderImageDialog{max-width:min(850px,92vw);max-height:90vh;padding:16px}#orderImageDialog>button{display:block;margin-left:auto}.order-preview-body img{display:block;max-width:80vw;max-height:75vh;object-fit:contain;margin:auto}

.order-row td{padding:9px 10px;vertical-align:middle}.order-row td small{margin-top:3px}.order-row .order-product{margin:1px 0;gap:8px}.order-row .order-product+.order-product{margin-top:5px}.order-code,.order-row .order-sku{display:flex;align-items:center;gap:5px}.order-copy{padding:2px;border:0;background:transparent;flex-shrink:0;line-height:1;color:#7d8679}.order-sku a,.order-sku>span{max-width:255px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-sku a{color:#617d91;text-decoration:none}.order-sku a:hover{text-decoration:underline}.order-row .shipment-line{margin-top:3px}.order-row .order-logistics{min-width:175px;max-width:230px}.order-row .order-logistics small{font-size:11px;line-height:1.3}

.copy-done{color:#23834b!important;min-width:20px}

.live-search{position:relative;width:300px;max-width:100%}.toolbar .live-search input{width:100%;padding-right:38px}.live-search button{position:absolute;right:5px;top:50%;transform:translateY(-50%);padding:0;width:28px;height:28px;border:0;background:transparent;color:#818777;font-size:20px;line-height:1}.live-search button:hover{background:#f0f2e9;color:#252a22}

.catalog-filters{grid-template-columns:2fr 1fr 1fr 1fr}.catalog-filters .live-search{display:block;width:100%}.catalog-filters .live-search input{padding-right:38px}@media(max-width:1100px){.catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.catalog-filters{grid-template-columns:1fr}}

.product-tag-chip{display:inline-block;background:#edf2ff;color:#375ba5;border-radius:5px;padding:3px 5px;margin:2px}.catalog-tags{min-width:145px}.catalog-tags button{padding:5px 8px;font-size:11px}.catalog-action{position:sticky;right:0;background:white;min-width:120px;box-shadow:-3px 0 5px #00000008}.catalog-action select{max-width:120px;font-size:12px}.tag-options{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.tag-options label{padding:8px;background:#f3f5ee;border-radius:6px}.tag-library form{display:flex;gap:8px;align-items:center;padding:8px 0;flex-wrap:wrap}.tag-library input[type=color]{width:45px}.tag-library input[type=checkbox]{width:auto}.catalog-dialog form>label{display:block;margin:12px 0}.catalog-dialog form input[type=number]{margin-left:12px}.catalog-filters{grid-template-columns:2fr repeat(3,1fr)}@media(max-width:700px){.catalog-filters{grid-template-columns:1fr}}

.tag-search-wrap{display:block;width:min(420px,100%)}.tag-search-wrap input{width:100%;padding-right:38px}.product-tag-chip svg{vertical-align:middle}/* Compact catalog: fixed row height, all columns share the available width. */
.catalog-panel.catalog-compact table{width:100%;min-width:0;max-width:100%;table-layout:fixed}
.catalog-panel.catalog-compact .table-scroll{overflow-x:visible}
.catalog-panel.catalog-compact th,.catalog-panel.catalog-compact td{position:static;left:auto;right:auto;box-shadow:none;min-width:0;max-width:none;width:auto;padding:10px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
.catalog-panel.catalog-compact tbody tr,.catalog-panel.catalog-compact td{height:63px}
.catalog-panel.catalog-compact th:nth-child(1){width:3%}.catalog-panel.catalog-compact th:nth-child(2){width:28%}.catalog-panel.catalog-compact th:nth-child(3){width:7%}.catalog-panel.catalog-compact th:nth-child(4){width:12%}.catalog-panel.catalog-compact th:nth-child(5),.catalog-panel.catalog-compact th:nth-child(6){width:9%}.catalog-panel.catalog-compact th:nth-child(7){width:9%}.catalog-panel.catalog-compact th:nth-child(8){width:12%}.catalog-panel.catalog-compact th:nth-child(9){width:11%}.catalog-listing-date{white-space:nowrap;font-size:11px!important}
.compact-product{display:flex;align-items:center;gap:8px;height:40px;min-width:0}.compact-product .catalog-photo{flex:0 0 34px}.compact-identity{min-width:0;flex:1}.compact-name{border:0;background:none;padding:0;display:block;width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px}
.compact-code{display:flex;align-items:center;gap:4px;height:20px;min-width:0}.compact-code>span{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:11px}.compact-code .copy-code{flex:0 0 18px;min-width:18px;min-height:18px;line-height:18px}.compact-code small{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:35%;flex-shrink:0;font-size:10px}
.compact-lines{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;height:40px;overflow:hidden}.compact-lines>span,.compact-lines>small{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px}.compact-lines small{display:inline;margin:0;font-size:10px}.compact-lines>.pill{line-height:14px;padding:2px 5px}.compact-lines .issue-detail{padding:0 4px;min-height:18px;height:18px;line-height:18px;font-size:11px;max-width:100%;white-space:nowrap}
.compact-tags{height:40px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;overflow:hidden}.compact-tag-list{display:flex;align-items:center;gap:3px;width:100%;max-width:100%;height:18px;white-space:nowrap;overflow:hidden}.compact-tag-list:empty{display:none}.compact-tag-list .product-tag-chip{min-width:0;max-width:46%;margin:0;padding:1px 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:16px}.compact-tags button{height:20px;line-height:18px;padding:0 5px;font-size:11px;max-width:100%;white-space:nowrap}
.catalog-compact [data-product-action]{width:100%;max-width:100%;padding:5px 3px;font-size:11px;height:30px}.catalog-compact .pager{flex-wrap:wrap}
@media(max-width:1100px){.catalog-panel.catalog-compact td,.catalog-panel.catalog-compact th{padding-left:4px;padding-right:4px}.compact-product{gap:5px}.catalog-compact table{font-size:11px}}

/* TR018: all catalog filters occupy one row. */
#catalogFilters{display:grid;grid-template-columns:minmax(0,2fr) repeat(4,minmax(0,1fr)) 58px;gap:12px;align-items:end;padding:16px}#catalogFilters>label{min-width:0}#catalogFilters input,#catalogFilters select{width:100%;min-width:0;text-overflow:ellipsis;padding-left:9px;padding-right:9px}#catalogFilters>button{padding-left:6px;padding-right:6px;height:40px}
#catalogFilters input,#catalogFilters select{height:40px}

#catalogFilters{overflow:visible}.category-field{min-width:0;display:flex;flex-direction:column;gap:7px;font-size:12px;color:#747c6d}.category-picker{position:relative}.category-picker summary{height:40px;padding:11px 9px;border:1px solid #dcded5;border-radius:8px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:white}.category-popover{position:absolute;z-index:20;top:45px;left:0;width:300px;max-width:70vw;padding:14px;background:white;border:1px solid #dcded5;border-radius:10px;box-shadow:0 8px 25px #0002}#categoryLevels{display:flex;flex-direction:column;gap:10px;max-height:55vh;overflow:auto}.category-buttons{display:flex;justify-content:space-between;gap:8px;margin-top:12px}

.category-search{display:block!important;width:100%!important;margin-bottom:12px}#catalogFilters .category-search input{padding-right:32px}.category-search button{width:26px;height:26px}#categoryMatches{max-height:50vh;overflow:auto}#categoryMatches>button{display:block;width:100%;text-align:left;font-size:12px;font-weight:400;line-height:1.5;white-space:normal;padding:9px;margin-bottom:5px}.category-popover{width:360px}

.page-loading{padding:24px 0;color:#747c6d}.loading-lines{height:220px;border-radius:12px;background:repeating-linear-gradient(#f0f1eb 0 38px,transparent 38px 55px)}#content[aria-busy=true] .table-scroll{opacity:.65}

/* Active filters stay visible without changing layout or row height. */
.filter-highlight{background-color:#fff4bd!important;border-color:#d5ad00!important;box-shadow:inset 3px 0 #d5ad00!important;color:#624b00!important;font-weight:600!important}.filter-highlight:focus{outline-color:#d5ad00!important}.estimated-cny{color:#858a7a;font-size:11px}
.service-toolbar{flex-wrap:nowrap}.service-toolbar .live-search{flex:1;min-width:150px;max-width:360px}.service-panel .table-scroll{overflow:visible}.service-panel table{table-layout:fixed;width:100%;min-width:0}.service-panel td{height:72px;padding:9px 10px;overflow:hidden;font-size:12px}.service-panel th{padding:12px 10px}.service-panel th:first-child{width:29%}.service-questions th:nth-child(2){width:27%}.service-questions th:nth-child(4){width:14%}.service-feedback th:nth-child(3){width:37%}.service-chats th:first-child{width:25%}.service-chats th:nth-child(2){width:16%}.service-chats th:nth-child(3){width:19%}.service-chats th:nth-child(5){width:13%}.service-panel td button{padding:7px 9px;white-space:nowrap}.service-product{display:flex;gap:9px;align-items:center;min-width:0}.service-product img,.service-product>.image-fallback{width:40px;height:40px;object-fit:contain;flex:0 0 40px;border-radius:5px}.service-product>div{min-width:0}.service-product small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;margin-top:2px}.service-product .service-clip{-webkit-line-clamp:1}.service-clip{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;line-height:1.5}.service-rating{color:#9e7400;white-space:nowrap}.service-dialog{width:min(1100px,94vw);max-width:94vw;max-height:90vh;padding:22px;border:1px solid #dcded5;border-radius:14px}.service-dialog[open]{display:flex;flex-direction:column;gap:12px}.service-dialog::backdrop{background:#17201466}.service-dialog .dialog-heading{flex-shrink:0;margin:0}.service-dialog h2{margin:0 0 5px}.service-context{padding:10px;background:#f5f6f1;border-radius:8px;flex-shrink:0;max-height:150px;overflow:auto}.service-context p{white-space:pre-wrap;margin:10px 0 0;font-size:13px}.service-history{min-height:180px;height:38vh;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:8px}.service-bubble{align-self:flex-start;max-width:82%;padding:10px 14px;border-radius:10px;background:#f1f2ef;overflow-wrap:anywhere}.service-bubble.own{align-self:flex-end;background:#fff5c4}.service-bubble.platform{align-self:center;background:#edf2f8}.service-bubble p{white-space:pre-wrap;margin:6px 0;font-size:14px;font-weight:400}.service-bubble small{font-size:11px;color:#767b70}.service-history-tools{display:flex;justify-content:space-between;gap:10px}.service-history-tools button{padding:5px 10px;font-size:12px}.service-composer{flex-shrink:0}.service-composer label{display:block;font-size:12px}.service-composer textarea{display:block;width:100%;resize:vertical;min-height:72px;max-height:160px;margin:5px 0 8px;box-sizing:border-box}.service-compose-actions{display:flex;align-items:center;gap:12px}.service-compose-actions select{max-width:260px}.service-compose-actions button{margin-left:auto}.service-message{margin:7px 0 0;font-size:12px;color:#966a00}.service-unavailable{padding:30px}.service-unavailable p{color:#747c6d}
.return-filters{display:grid;grid-template-columns:minmax(190px,2fr) minmax(110px,1fr) minmax(150px,1.3fr) auto;gap:10px;align-items:end;margin:16px 0}.return-filters label{min-width:0;font-size:12px;color:#778078}.return-filters input,.return-filters select{width:100%;min-width:0}.return-panel{margin-top:16px}.return-panel table{width:100%;table-layout:fixed;min-width:0}.return-panel td,.return-panel th{overflow:hidden;overflow-wrap:anywhere}.return-panel th:nth-child(1){width:31%}.return-panel th:nth-child(2){width:21%}.return-panel th:nth-child(3){width:15%}.return-panel th:nth-child(4){width:16%}.return-panel th:nth-child(5){width:11%}.return-panel th:nth-child(6){width:6%}.return-panel td{padding:10px 8px}.return-panel .service-product>div{min-width:0}.return-link{border:0;background:transparent;color:#315a9d;padding:0;font-size:inherit}.return-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.return-summary>div{background:#f5f6f1;border-radius:10px;padding:12px;color:#707a70;font-size:12px}.return-summary strong{display:block;color:#172019;font-size:15px;margin-top:6px}.return-urgent{color:#b64022!important;font-weight:600}.return-item{border-bottom:1px solid #e8eae2;padding:14px 0}.return-photos{display:flex;gap:10px;flex-wrap:wrap}.return-photos img{width:110px;height:110px;object-fit:contain;border:1px solid #e8eae2;border-radius:8px}.return-detail small{display:block}.return-panel .service-clip{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.return-panel .order-copy{display:inline-block}.returns-page .live-search:has(input:not(:placeholder-shown)){outline:1px solid #ddc43c;border-radius:8px}
.boost-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(4,minmax(105px,1fr)) auto;gap:12px;align-items:end}.boost-filters label{display:grid;gap:6px;font-size:12px;color:#78837b}.boost-filters input,.boost-filters select{width:100%;min-width:0}.boost-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.boost-cards>div{background:#fff;border:1px solid #e1e4db;border-radius:12px;padding:18px}.boost-cards strong{display:block;margin-top:14px;font-size:22px}.boost-panel table{table-layout:fixed;width:100%;min-width:0}.boost-panel th:first-child{width:30%}.boost-panel th,.boost-panel td{overflow-wrap:anywhere;padding:10px 8px}.boost-panel small{display:block;margin-top:4px}.boost-panel th{font-size:12px}.boost-product{display:flex;gap:8px;align-items:center}.boost-product>div{min-width:0}.boost-product strong,.boost-product small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.boost-product img{object-fit:contain;flex:none}.boost-panel .table-wrap{overflow-x:visible}.boost-filters .live-search{min-width:0}.boost-page .section-title button{margin-left:6px}

.boost-manage-dialog{width:min(980px,92vw);max-height:90vh;padding:24px;border:1px solid #deded4;border-radius:14px;overflow-y:auto}.boost-manage-dialog::backdrop{background:#0006}.bm-header,.bm-toolbar,.bm-pagination,.bm-manual,.bm-settings,.bm-actions{display:flex;align-items:center;gap:12px}.bm-header{justify-content:space-between}.bm-header h2{margin:4px 0}.bm-scope{background:#fff4c4;padding:12px;border-radius:8px;line-height:1.6}.bm-toolbar{margin:14px 0}.bm-toolbar .live-search{flex:1}.bm-products{height:300px;overflow-y:auto;border:1px solid #eee;border-radius:8px}.bm-product{display:flex;align-items:center;gap:12px;padding:8px;border-bottom:1px solid #eee;cursor:pointer}.bm-product input,.bm-ack input{width:auto;flex-shrink:0}.bm-product img{object-fit:contain;flex-shrink:0}.bm-product>span:last-child{min-width:0}.bm-product strong,.bm-product small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bm-product small{color:#888}.bm-no-image{font-size:10px;width:32px;flex-shrink:0}.bm-pagination{margin:10px 0;font-size:12px}.bm-pagination [data-bm-page]{margin-left:auto}.bm-manual input{flex:1;min-width:0}.bm-settings{margin-top:14px;align-items:flex-end}.bm-settings label{flex:1;min-width:0}.bm-settings input,.bm-settings select{display:block;width:100%;margin-top:5px}.bm-review{max-height:360px;overflow-y:auto;margin:12px 0}.bm-review table{width:100%;table-layout:fixed}.bm-review th:first-child{width:45%}.bm-review td strong,.bm-review td small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bm-ack{display:flex;gap:10px;line-height:1.7;align-items:flex-start;margin:16px 0}.bm-ack input{margin-top:6px}.bm-actions{justify-content:flex-end}.bm-history button{width:100%;display:flex;justify-content:space-between;gap:10px;margin:8px 0}.boost-manage-dialog [hidden]{display:none!important}

.boost-api-group{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.boost-api-group p{flex-basis:100%;margin:0}.boost-api-group small{margin-left:auto}

.boost-page .toolbar[hidden]{display:none}.boost-group-link{border:0;background:none;padding:0;color:#173e69;font-weight:700;text-align:left}.boost-manage-dialog [data-group-items] table{table-layout:fixed;width:100%}.boost-manage-dialog [data-group-items] td:first-child{width:80%}.boost-manage-dialog .boost-product>div{min-width:0}.boost-manage-dialog .boost-product strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

[data-boost-group-row]{cursor:pointer}[data-boost-group-row]:hover{background:#fffbea}[data-boost-group-row]:focus-visible{outline:2px solid #dbc200;outline-offset:-2px}

.boost-group-dialog{width:min(1540px,96vw);max-width:96vw}.boost-group-dialog [data-group-items] th:first-child,.boost-group-dialog [data-group-items] td:first-child{width:25%}.boost-group-dialog [data-group-items] th,.boost-group-dialog [data-group-items] td{padding:10px 6px;font-size:12px;overflow-wrap:anywhere}.boost-group-dialog .boost-product small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#planDialog [hidden]{display:none!important}.sync-plan-panel table{table-layout:fixed;width:100%}.sync-plan-panel td,.sync-plan-panel th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.sync-plan-panel th:nth-child(3){width:30%}.sync-plan-panel th:last-child{width:75px}.sync-plan-panel td span[title]{display:block;overflow:hidden;text-overflow:ellipsis}

.run-batch-row{cursor:pointer}.run-batch-row:hover,.run-batch-row:focus{background:#fff9d7;outline:2px solid #e5c500;outline-offset:-2px}#runBatchDialog{width:min(1200px,92vw);max-height:85vh;overflow:auto}.run-detail-scroll{overflow-x:auto}#runBatchDialog td{white-space:normal;overflow-wrap:anywhere}

.team-dialog{width:min(900px,94vw);max-height:90vh}.team-dialog .form-grid{gap:18px}.team-dialog input,.team-dialog select{max-width:100%}.team-secret{padding:18px;background:#edf3ff;font-family:monospace;font-size:20px}.team-images{display:flex;flex-wrap:wrap;gap:12px}.team-images img{max-width:240px;max-height:300px;object-fit:contain}nav button[hidden],nav details[hidden]{display:none!important}

.team-dialog{max-width:min(960px,94vw)}

.team-management-dialog{width:min(1180px,94vw);max-width:94vw;max-height:90vh;padding:24px;border:1px solid #deded4;border-radius:16px;overflow:auto;margin:auto}.team-management-dialog>.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start}.team-management-dialog>.dialog-heading h2{margin:0}.team-management-dialog .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.team-management-dialog .panel{padding:16px}.team-management-dialog::backdrop{background:#0006}.team-management-dialog [aria-busy=true]{opacity:.65;pointer-events:none}

.team-management-dialog>.dialog-footer{display:flex;justify-content:flex-end;margin-top:16px}
.team-store-dialog{width:min(590px,94vw);max-width:94vw}.team-store-dialog form{margin:0}.team-store-dialog .team-store-fields{display:grid;gap:12px;margin-top:22px}.team-store-dialog .team-store-fields>label{display:grid;gap:6px;font-weight:600}.team-store-dialog .team-store-fields>label>input:not([type=checkbox]),.team-store-dialog .team-store-fields select{width:100%;box-sizing:border-box;min-height:40px}.team-store-dialog .team-store-fields>small{color:#777;margin-top:-8px}.team-store-dialog .team-store-fields>.team-store-check{display:flex;align-items:center;gap:8px;font-weight:400}.team-store-dialog .team-store-check input{width:auto!important;flex:none}.team-store-dialog .dialog-footer{display:flex;justify-content:space-between;gap:12px;margin-top:20px}

.member-status.is-active{color:#16803d;font-weight:600}.member-status.is-disabled{color:#dc2626;font-weight:600}

/* Store workbench */
.work-dialog{width:min(1180px,94vw);max-width:94vw;max-height:90vh;overflow:auto;padding:24px;border:1px solid #dedfd7;border-radius:16px}.work-dialog::backdrop{background:#15181177}.work-dialog .dialog-heading{position:sticky;top:-24px;background:white;z-index:2;padding:12px 0}.work-dialog label{display:block;margin:10px 0}.work-dialog textarea{width:100%;min-height:80px}.work-summary{overflow:auto}.work-summary th{white-space:nowrap}.work-count{font-size:18px;font-weight:700;min-width:45px}.work-urgent{color:#c62828;background:#fff0ef}.work-messages{max-height:300px;overflow:auto;background:#f7f8f3;padding:16px}.work-messages article{border-bottom:1px solid #ddd;padding:8px}.work-warehouse{padding:6px;border-bottom:1px solid #eee}.work-dialog .checks label{display:inline-flex;gap:6px;margin:10px}.work-dialog .tag-library{display:flex;gap:8px;flex-wrap:wrap}.work-dialog article p{white-space:pre-wrap;overflow-wrap:anywhere}.work-dialog td{max-width:420px;overflow-wrap:anywhere}

.workbench .toolbar label{display:inline-flex;align-items:center;gap:8px}.workbench input[type=checkbox],.work-dialog input[type=checkbox]{width:auto;min-width:0}.workbench input[type=date]{width:180px}.workbench #workAssignee{width:180px}.work-dialog label input:not([type=checkbox]){max-width:100%}

/* TR059 compact work grid */
.work-grid{border:1px solid #e1e6ef;border-radius:12px;overflow:hidden;background:white;margin:14px 0 20px}.work-grid table{width:100%;border-collapse:collapse;table-layout:auto}.work-grid th{background:#f7f9fc;color:#53627a;font-size:12px;font-weight:500;height:42px;padding:8px 12px;text-align:center;border-bottom:1px solid #e1e6ef}.work-grid td{height:54px;padding:8px 12px;text-align:center;border-right:1px solid #e6eaf2;border-bottom:1px solid #e6eaf2}.work-grid td:last-child{border-right:0}.work-grid tr:last-child td{border-bottom:0}.work-grid th:first-child,.work-grid td:first-child{text-align:left;min-width:190px;width:22%}.work-shop{display:flex;align-items:center;gap:10px}.work-shop-icon{display:grid;place-items:center;flex:0 0 30px;height:30px;background:#edf2ff;color:#477aff;border-radius:8px;font-size:12px}.work-grid .work-count{border:0;background:none;border-radius:4px;box-shadow:none;font-size:16px;padding:4px 8px;min-width:28px;line-height:1.25;font-weight:700}.work-grid .work-count:hover{background:#edf2ff;color:#245ee8}.work-grid .work-cell-urgent{background:#fff3f4}.work-grid .work-urgent{color:#e14054}.work-empty{color:#a7b3c7;font-size:16px}.work-unavailable{font-size:11px;color:#8592a8}.work-product{display:flex;gap:12px;align-items:center;min-width:240px}.work-product img,.work-thumb-empty{width:48px;height:56px;object-fit:contain;flex:0 0 48px;border-radius:6px;background:#f6f8fc}.work-thumb-empty{display:grid;place-items:center;color:#98a7be;font-size:12px}.work-product strong{display:block;max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-products-table td{padding:12px;border-bottom:1px solid #e5eaf3}.work-products-table th{background:#f7f9fc}.work-products-table td:first-child{width:48%}.work-products-table .table-scroll{max-height:58vh;overflow:auto}.work-products-table th{position:sticky;top:0;z-index:1}.work-dialog:has(.work-products-table){width:min(1320px,96vw)}

.order-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.order-followup{min-width:110px}.order-followup .pill{display:inline-block;margin:0 4px 4px 0}.order-followup button{white-space:nowrap}

#runBatchDialog{width:min(1720px,96vw);max-width:96vw;max-height:90vh}.run-batch-title{display:flex;align-items:center;gap:16px}.run-batch-title h2{margin:0}#runBatchDialog th,#runBatchDialog td{white-space:nowrap;overflow-wrap:normal;padding:12px 10px}#runBatchDialog td:last-child{max-width:300px;overflow:hidden;text-overflow:ellipsis}

.work-products-table select[data-work-restock]{min-width:118px;color:#315ddb;padding:8px;border-color:#cbd7ff}.work-products-table td:has([data-work-item]),.work-products-table td:has([data-work-restock]){white-space:nowrap}.work-products-table td:has([data-work-item]) button{white-space:nowrap}

.work-dialog:has(.work-products-table){width:min(1720px,96vw);max-width:96vw}.work-products-table table{width:100%;table-layout:auto}.work-products-table th,.work-products-table td{white-space:nowrap;overflow-wrap:normal;padding:7px 10px;vertical-align:middle}.work-products-table td:first-child{width:auto}.work-products-table .work-product-inline{gap:8px;min-width:320px}.work-product-inline img,.work-product-inline .work-thumb-empty{width:30px;height:30px;flex-basis:30px}.work-product-inline strong{max-width:250px;font-size:12px}.work-product-inline .work-sku{display:inline-block;max-width:220px;overflow:hidden;text-overflow:ellipsis;font-size:11px}.work-shortage{display:inline-block;margin-left:8px;color:#738071;cursor:help}.work-products-table button,.work-products-table select{padding:6px 9px;min-height:32px}.work-products-table .table-scroll{overflow:auto}

.work-products-table .order-copy{padding:2px;min-height:0;min-width:18px;display:inline-flex;align-items:center;justify-content:center}

.work-unsale-reason{display:inline-block;max-width:280px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.work-products-table select[data-work-unsale]{min-width:130px;color:#315ddb;border-color:#cbd7ff}

.work-rule-fields{border:0;margin:0;padding:0;min-width:0}.work-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.work-rule-card{border:1px solid #e1e6ef;border-radius:10px;padding:16px;background:#fff}.work-rule-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.work-rule-heading h3{margin:0}.work-rule-card p,.work-rule-card li{font-size:13px;line-height:1.7}.work-rule-card ul{padding-left:20px}.work-rule-card .form-grid{gap:12px}.work-rule-fields:disabled{opacity:.65}@media(max-width:850px){.work-rule-grid{grid-template-columns:1fr}}

.work-order-identity{display:flex;align-items:center;gap:6px}.work-order-identity strong,.work-order-note{display:inline-block;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.work-dialog:has(.work-service-table){width:min(1720px,96vw);max-width:96vw}.work-service-table .table-scroll{max-height:58vh;overflow:auto}.work-service-table th{position:sticky;top:0;background:#f7f9fc;z-index:1}.work-service-table table{min-width:1000px}.service-product .order-copy{padding:2px;min-height:0;vertical-align:middle;margin-left:4px}
.dashboard h2{margin:0 0 5px}.dashboard .section-title{margin-bottom:14px}.dashboard .section-title>div:last-child{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.dashboard .toolbar{gap:8px;flex-wrap:wrap}.dash-periods{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:14px 0}.dash-period{text-align:left;background:white;padding:16px;border:1px solid #dfe4dc;border-radius:12px;display:flex;flex-direction:column;gap:10px}.dash-period:hover{border-color:#dbc300;background:#fffef5}.dash-period span{font-size:12px;color:#788170}.dash-period strong{font-size:25px;color:#172319}.dash-period small{font-weight:400}.dash-period small b{font-size:17px}.dash-brief{display:flex;align-items:center;gap:22px;flex-wrap:wrap;background:#eef1e9;border-radius:9px;padding:13px 16px;font-size:12px;margin-bottom:16px}.dash-brief strong{margin-left:6px;font-size:17px}.dash-brief small{color:#7a8375}.dash-range{margin:18px 0 10px}.dash-range input{width:145px}.dash-selection{font-size:13px;color:#66715e;margin:10px 0 16px}.dash-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.dash-columns .panel{padding:16px;margin-bottom:14px;min-width:0}.dash-columns h3{margin:0 0 13px;font-size:15px}.dash-columns h3 small{font-size:11px;font-weight:400;color:#7b8578}.dash-bar{display:flex;align-items:center;gap:12px;height:29px;font-size:12px}.dash-bar span{width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dash-bar progress{flex:1;min-width:30px;height:9px;border:0;border-radius:5px;accent-color:#647fd3}.dash-bar progress::-webkit-progress-bar{background:#eff2f7;border-radius:5px}.dash-bar progress::-webkit-progress-value{background:#647fd3;border-radius:5px}.dash-bar b{width:100px;text-align:right}.dash-chart{width:100%;height:auto;max-height:235px;overflow:visible}.dash-chart text{font-size:11px;fill:#829080}.dash-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:11px}.dash-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px}.dash-color-0{background:#4268d6}.dash-color-1{background:#21a889}.dash-color-2{background:#e39835}.dash-color-3{background:#a36ac5}.dash-color-4{background:#d46e83}.dash-color-5{background:#77903b}.dash-stores label{display:inline-block;padding:7px;font-size:12px}.dashboard .panel td{padding:10px}.dashboard .panel td button{border:0;background:none;font-weight:600;text-align:left;padding:0;color:#305ab5}.dash-notes{font-size:12px;color:#77816e;margin:12px 0}.dash-notes small{display:block;margin:6px 0}@media(max-width:1100px){.dash-periods{grid-template-columns:repeat(3,1fr)}.dash-columns{grid-template-columns:1fr}.dashboard .section-title{align-items:flex-start;gap:10px}}@media(max-width:600px){.dash-periods{grid-template-columns:repeat(2,1fr)}}
.dash-coverage{font-size:12px;color:#8c7951;background:#f5f1e5;border-radius:6px;padding:8px 12px;margin:0 0 12px}
.dash-period.selected{border:2px solid #d9bb00;background:#fffbea}.dash-chart-scroll{overflow-x:auto}.dash-plot{position:relative}.dash-plot .dash-chart{max-height:none;display:block;width:100%;height:230px}.dash-tooltip{position:absolute;right:10px;top:8px;background:#fff;border:1px solid #d7deea;box-shadow:0 4px 16px #20305022;padding:10px 13px;border-radius:8px;font-size:12px;pointer-events:none;z-index:2;line-height:1.7}.dash-chart [data-chart-day]:focus{outline:1px solid #92a6d8}
.dash-bar-axis{display:flex;justify-content:space-between;margin:8px 112px 0 162px;border-top:1px solid #dce3ec;padding-top:4px;color:#849082;font-size:11px}

/* TR092 independent tag selection */
.record-tags-cell{display:flex;flex-wrap:wrap;gap:4px;border:0;background:transparent;text-align:left;padding:4px;min-width:80px;min-height:28px}.record-tag-dialog{max-width:620px}.record-tag-dialog .tag-options{display:flex;flex-direction:column;align-items:stretch;max-height:340px;overflow:auto;padding:12px 0;gap:8px}.record-tag-dialog .tag-options label{display:flex;align-items:center;gap:8px}.record-tag-dialog .tag-options input{width:auto}.record-tag-dialog .tag-library{display:flex;flex-wrap:wrap;gap:8px}.record-tag-dialog [data-editor] form{display:grid;gap:12px;margin-top:16px}.order-followup{min-width:120px}.order-followup>button{margin:2px}.order-tags{min-width:100px}

.record-tag-library{display:grid;gap:8px;margin:16px 0}.record-tag-library-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:8px;border-bottom:1px solid #e6e5de;padding:8px 0}.record-tag-library-row small{display:block;margin-top:4px;color:#777;overflow-wrap:anywhere}.record-tag-library-row .product-tag-chip{white-space:normal;overflow-wrap:anywhere}.record-tag-dialog .product-tag-chip{display:inline-flex;align-items:center;gap:4px}.record-tag-dialog .product-tag-chip svg{flex-shrink:0}

/* TR094 compact tag libraries */
.record-tag-library-dialog{padding:18px;max-height:85vh}
.record-tag-library-dialog .dialog-heading{margin-bottom:8px}
.record-tag-library-dialog .dialog-heading h2{font-size:18px;margin:0}
.record-tag-library-dialog>p.muted{margin:6px 0 12px;font-size:12px}
.record-tag-library-dialog button{min-height:28px;padding:4px 9px;font-size:12px}
.record-tag-toolbar{display:flex;align-items:center;gap:8px}
.record-tag-toolbar input{min-width:0;flex:1;padding:6px 9px;height:32px}
.record-tag-toolbar button{flex:none}
.record-tag-library-dialog .record-tag-library{gap:0;margin:8px 0 0;max-height:min(42vh,360px);overflow-y:auto;overscroll-behavior:contain}
.record-tag-library-dialog .record-tag-library-row{gap:6px;padding:5px 0;min-height:38px}
.record-tag-library-dialog .record-tag-library-row>div{min-width:0}
.record-tag-library-dialog .record-tag-library-row small{margin:1px 0 0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.record-tag-library-dialog .record-tag-library-row>.muted{font-size:11px}
.record-tag-library-dialog [data-editor]:empty{display:none}
.record-tag-library-dialog [data-editor] form{gap:8px;margin-top:10px}
.record-tag-library-dialog [data-editor] h3{font-size:14px;margin:0}
.record-tag-library-dialog .record-tag-library-row .product-tag-chip{font-size:12px;line-height:16px;padding:2px 4px}.record-tag-library-dialog .record-tag-library-row small{line-height:13px}

.order-row td .order-store-line{display:flex;align-items:baseline;gap:4px;white-space:nowrap;line-height:14px}.order-store-line>span:first-child{overflow:hidden;text-overflow:ellipsis;max-width:115px}.order-boost-badge{flex-shrink:0;color:#c4432a;font-size:10px;font-weight:600;line-height:14px}



.order-amount-line{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap}

.native-listing[hidden]{display:none!important}

.order-row .order-fee-line{display:flex;gap:5px;white-space:nowrap;font-size:10px;line-height:14px}.order-commission{color:#555}.order-quantity{min-width:96px}.order-quantity-item+.order-quantity-item{margin-top:5px}

/* TR146 product labels */
.auto-label{display:inline-block;border:1px solid #c9d9c9;border-radius:4px;background:#f0f6ed;color:#294932;padding:2px 5px;font-size:12px;white-space:nowrap;margin:2px 0}.auto-label-cell{min-width:130px;max-width:180px}.auto-label-cell>button{border:0;background:transparent;padding:0;text-align:left}.label-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.label-fields label{display:flex;flex-direction:column;gap:5px}.label-fields input{width:100%}.label-dialog{width:min(1100px,94vw);max-height:90vh;overflow:auto}.label-dialog td{white-space:normal;max-width:480px;overflow-wrap:anywhere}.label-dialog form{padding:12px;border:1px solid #ddd;margin:10px 0}.label-dialog textarea{width:100%;min-height:65px}.label-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;background:#f6f7f2;padding:15px}.label-metrics strong,.label-metrics small{display:block;margin-top:5px}.label-nav{border-bottom:1px solid #ddd;padding-bottom:12px}

.auto-label-cell button{white-space:normal;text-align:left;max-width:180px}.auto-label-cell{min-width:140px}.auto-label{display:inline-block;margin-bottom:3px}
.catalog-workbench .catalog-filters{grid-template-columns:minmax(190px,1.7fr) repeat(5,minmax(100px,1fr)) auto;gap:9px}
.catalog-panel.catalog-compact th,.catalog-panel.catalog-compact td{padding:8px 5px}
.catalog-panel.catalog-compact th:nth-child(1){width:2%}.catalog-panel.catalog-compact th:nth-child(2){width:27%}.catalog-panel.catalog-compact th:nth-child(3){width:5%}.catalog-panel.catalog-compact th:nth-child(4){width:8%}.catalog-panel.catalog-compact th:nth-child(5){width:7%}.catalog-panel.catalog-compact th:nth-child(6){width:7%}.catalog-panel.catalog-compact th:nth-child(7){width:8%}.catalog-panel.catalog-compact th:nth-child(8){width:10%}.catalog-panel.catalog-compact th:nth-child(9){width:18%}.catalog-panel.catalog-compact th:nth-child(10){width:8%}
.catalog-panel.catalog-compact td.auto-label-cell{white-space:normal;overflow:visible}.catalog-panel.catalog-compact .auto-label-cell>button{max-width:none;width:100%;white-space:normal}.catalog-panel.catalog-compact td:last-child button{padding:5px 7px;min-height:28px;font-size:12px;margin:2px}.catalog-panel.catalog-compact tbody tr,.catalog-panel.catalog-compact td{height:auto;min-height:60px}
.label-priority-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.label-priority-guide>span{background:#fff;border:1px solid #e3e5db;border-radius:10px;padding:12px;color:#687361}.label-priority-guide b{display:block;color:#293524;margin-bottom:5px}.label-product{display:flex;align-items:center;gap:10px}.label-product>button{border:0;padding:0;background:none;flex:0 0 48px}.label-product img,.label-thumb-empty{width:48px;height:48px;object-fit:contain;background:#f5f6f1;border-radius:5px;display:grid;place-items:center}.label-product>div{min-width:0}.label-product strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.label-product small{overflow-wrap:anywhere}.label-focus-table table{table-layout:fixed;width:100%;min-width:0}.label-focus-table th:nth-child(1){width:32%}.label-focus-table th:nth-child(2){width:21%}.label-focus-table th:nth-child(3){width:20%}.label-focus-table th:nth-child(4){width:17%}.label-focus-table th:nth-child(5),.label-focus-table th:nth-child(6){width:5%}.label-focus-table td{white-space:normal;overflow-wrap:anywhere;padding:12px 6px}.label-priority{display:inline-block;border-radius:5px;padding:4px 7px;background:#f1f3ed}.label-priority.p1{background:#fff0ec;color:#a43c20}.label-priority.p2{background:#fff7d8;color:#826006}.label-priority.p3{background:#eaf2fb;color:#345e8b}.label-category-table td{white-space:normal;max-width:260px}.label-category-table th{white-space:nowrap}
@media(max-width:1250px){.catalog-workbench .catalog-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-panel.catalog-compact td:last-child button{display:block}.label-focus-table{padding:10px}}
#catalogFilters{grid-template-columns:minmax(190px,1.7fr) repeat(5,minmax(100px,1fr)) 58px;gap:9px}.label-focus-table td:last-child button{white-space:nowrap;padding:7px 9px;min-width:46px}.label-focus-table th:nth-child(1){width:31%}.label-focus-table th:nth-child(6){width:6%}
@media(max-width:1100px){#catalogFilters{grid-template-columns:repeat(3,minmax(0,1fr))}}

.catalog-panel.catalog-compact td:last-child select{width:100%;min-width:0;max-width:100%;font-size:12px;padding:6px 3px}
#labelDialog.label-compact-profile{box-sizing:border-box;width:min(1180px,95vw);max-width:95vw;max-height:92vh;padding:18px 22px;overflow:hidden;border:1px solid #dce1d3;border-radius:14px}
.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.profile-heading>div{min-width:0}.profile-heading h2{font-size:18px;line-height:24px;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.profile-heading p{font-size:11px;color:#798075;margin:4px 0}.profile-heading>button{padding:4px 10px;min-height:30px}
.profile-status{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;margin:9px 0}.profile-status>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-status small{flex-shrink:0;color:#7a8274}
.profile-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#f5f7f1;border-radius:8px;gap:12px;padding:11px 14px;font-size:12px}.profile-summary strong{display:block;font-size:19px;margin:4px 0}.profile-summary small{font-size:11px;color:#798075;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-tabs{display:flex;gap:8px;margin:12px 0 8px}.profile-tabs button{min-height:30px;padding:5px 12px;font-size:12px}.profile-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.profile-columns>section{min-width:0}.profile-body h3{font-size:13px;margin:6px 0 10px}.profile-body h3 small{font-weight:400;color:#828979;margin-left:5px}.profile-body{min-height:340px;max-height:calc(92vh - 228px);overflow:auto}
#labelDialog .profile-body table{table-layout:fixed;width:100%;font-size:12px;border-collapse:collapse}#labelDialog .profile-body th,#labelDialog .profile-body td{padding:7px 5px;line-height:18px;text-align:left;white-space:normal;border-bottom:1px solid #eceee7}#labelDialog .profile-body th{color:#798075;font-size:11px;font-weight:400}#labelDialog .profile-body td small{display:block;color:#828979;font-size:10px}#labelDialog .profile-body td span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.profile-body section:nth-child(2) th:first-child{width:28%}.profile-body section:nth-child(2) th:nth-child(2){width:45%}
.profile-pager{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:8px;font-size:11px;color:#828979}.profile-pager span{margin-right:auto}.profile-pager button{padding:3px 8px;min-height:26px;font-size:11px}.profile-footnote{font-size:11px;color:#828979;margin:8px 0 0}.label-compact-profile .error:empty{display:none}
#labelDialog.label-compact-profile form{padding:0;border:0;margin:10px 0}#labelDialog.label-compact-profile form>label{display:block;font-size:12px;margin:8px 0}#labelDialog.label-compact-profile textarea{height:65px;min-height:65px;max-height:90px;resize:vertical;margin-top:5px}#labelDialog.label-compact-profile select{margin-left:10px;font-size:12px}.profile-checks{display:flex;flex-wrap:wrap;gap:8px}.profile-checks label{display:flex;align-items:center;gap:4px;font-size:12px}.profile-checks input{width:auto;min-width:0}.label-compact-profile form button{font-size:12px;padding:6px 10px;min-height:30px}
@media(max-height:760px){.profile-body{min-height:270px}#labelDialog .profile-body td{padding:4px 5px}.profile-summary{padding:8px 12px}.profile-summary strong{font-size:17px}}@media(max-width:800px){.profile-columns{grid-template-columns:1fr}.profile-body{overflow:auto}.profile-status{flex-wrap:wrap}.profile-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.profile-chart-controls{display:flex;align-items:center;gap:6px}.profile-chart-controls button{font-size:11px;padding:3px 10px;min-height:26px}.profile-chart-controls small{margin-left:auto;color:#828979;font-size:11px}.profile-chart-comparison{display:flex;justify-content:space-between;gap:10px;font-size:11px;margin:7px 0}.profile-chart-comparison span{display:block}.profile-chart-comparison em{font-style:normal;color:#476b3c}.profile-trend-chart{width:100%;height:224px;display:block}.profile-trend-chart text{font-size:10px;fill:#7b8474}.profile-chart-tip{font-size:11px;min-height:18px;color:#485344}.profile-trend-chart [data-chart-tip]:hover,.profile-trend-chart [data-chart-tip]:focus{fill:#647d4010;outline:none}

.profile-combo-legend{display:flex;align-items:center;gap:12px;font-size:11px;height:24px}.profile-combo-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px}.profile-combo-legend small{margin-left:auto;color:#828979}.profile-combo-comparison{display:grid;grid-template-columns:1fr 1fr;gap:3px 10px;font-size:10px;margin:4px 0}.profile-combo-comparison em{white-space:nowrap}.profile-combo-legend~.profile-trend-chart{height:208px}

#labelDialog .profile-trend-chart{height:256px}.profile-trend-chart .chart-exposure-label{fill:#497a96;font-weight:700;font-size:12px}.profile-trend-chart .chart-click-label{fill:#347dc1;font-weight:700;font-size:12px}.profile-trend-chart .chart-cart-label{fill:#ab571c;font-weight:700;font-size:12px}.profile-trend-chart .chart-order-label{fill:#927009;font-weight:700;font-size:12px}

#labelDialog .profile-trend-chart{height:224px}.profile-advice{display:flex;align-items:flex-start;gap:10px;border-left:3px solid #9ba698;background:#f4f6f0;padding:8px 10px;margin:7px 0;font-size:12px;line-height:18px}.profile-advice b{white-space:nowrap}.profile-advice span{color:#59644e}.profile-advice.positive{border-color:#548b42;background:#eff7e9}.profile-advice.caution{border-color:#b87530;background:#fff5e9}.profile-advice.observe{border-color:#6689ac;background:#f1f6fa}.label-advice-text{color:#4a6840!important;font-weight:600}

.chart-hover-guide,.chart-hover-bubble{visibility:hidden}.chart-hover-guide.visible,.chart-hover-bubble.visible{visibility:visible}.profile-trend-chart .chart-hover-bubble text{fill:#263b20;font-size:12px;font-weight:600}

.profile-summary{grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.5fr)}.profile-summary .profile-advice-metric small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:15px}.profile-advice-metric.positive strong{color:#497b36}.profile-advice-metric.caution strong{color:#9c622a}.profile-advice-metric.observe strong{color:#50759b}@media(max-width:800px){.profile-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-advice-metric{grid-column:1/-1}}
.opportunity-signal{display:inline-block;border:1px solid #ccd8d0;border-radius:4px;padding:2px 5px;font-size:12px;margin:0 3px 4px 0;background:#f1f6ee;color:#326343}.opportunity-signal.risk{background:#fff0ed;border-color:#ebc6bd;color:#a5442a}.opportunity-signal.potential{background:#eef5fc;border-color:#c6d9ef;color:#315f90}.opportunity-signal.stable{background:#f3f3ef;color:#666}.opportunity-filters{gap:9px}.opportunity-filters label{min-width:90px}.opportunity-filters input[name=search]{max-width:230px}.label-focus-table td:nth-child(3){min-width:250px}.label-focus-table td:nth-child(2){min-width:220px}.label-focus-table td:last-child button{display:block;margin-bottom:6px}.opportunity-pools{flex-wrap:wrap}
.opportunity-header{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #ddd;flex-wrap:wrap}.opportunity-header .label-nav{border:0;padding:0;margin:0;display:flex;gap:6px}.opportunity-view{display:flex;gap:6px;border-left:1px solid #ddd;padding-left:12px}.opportunity-header>button:last-child{margin-left:auto}.opportunity-header button,.opportunity-pools button{height:32px;padding:5px 10px;font-size:12px}.opportunity-pools{gap:6px;margin:0 0 8px}.opportunity-filters{display:flex;align-items:center;gap:8px;margin:0 0 12px;flex-wrap:wrap}.opportunity-filters label{display:inline-flex;align-items:center;gap:5px;min-width:0;white-space:nowrap}.opportunity-filters select,.opportunity-filters input:not([type=hidden]),.opportunity-filters button,.compact-category-filters input,.compact-category-filters select,.compact-category-filters button{height:32px;padding:4px 8px;font-size:12px;min-height:0}.opportunity-filters select{width:115px}.opportunity-filters select[name=priority]{width:82px}.opportunity-filters input[name=search]{width:210px;max-width:260px;flex:1;min-width:140px}.compact-category-filters{display:flex;align-items:center;gap:8px;margin:0 0 12px}.compact-category-filters label{display:flex;align-items:center;gap:6px}.label-focus-table,.label-category-table{padding:10px 14px}.label-focus-table th,.label-category-table th{padding:10px 6px}.label-focus-table td,.label-category-table td{padding:9px 6px}.label-focus-table .pager select{width:75px;padding:4px;height:30px}.opportunity-help{color:#7b8378;font-size:12px;margin:8px 0}.opportunity-help summary{cursor:pointer}.opportunity-help p{line-height:1.6;max-width:900px}.label-category-table td button{padding:5px 9px}.label-focus-table td small{margin-top:3px}
.label-focus-table th:nth-child(1){width:29%}.label-focus-table th:nth-child(2){width:20%}.label-focus-table th:nth-child(3){width:22%}.label-focus-table th:nth-child(4){width:15%}.label-focus-table th:nth-child(5){width:6%}.label-focus-table th:nth-child(6){width:8%}.label-focus-table td:last-child button{padding:5px 7px;font-size:12px}
.opportunity-product{cursor:pointer;border-radius:6px;outline-offset:3px}.opportunity-product:hover{background:#f6f7f0}.opportunity-product>img,.opportunity-product>.label-thumb-empty{flex:0 0 48px}.opportunity-sku{color:#547593;text-decoration:none}.opportunity-sku:hover{text-decoration:underline}.opportunity-action{width:100%;min-width:0;font-size:12px;padding:5px 3px;height:31px}.profile-heading .profile-thumb{padding:0;border:0;background:#f5f6f0;flex:0 0 54px;height:54px;border-radius:6px;overflow:hidden;cursor:zoom-in}.profile-thumb img{width:54px;height:54px;object-fit:contain}.profile-heading .profile-title{flex:1;min-width:0}.profile-thumb-empty{display:grid;place-items:center;flex:0 0 54px;height:54px;font-size:11px;color:#999;background:#f5f6f0}.profile-image-dialog{padding:15px;width:min(820px,90vw);max-height:90vh;text-align:center}.profile-image-dialog>button{position:absolute;right:12px;top:12px;z-index:1}.profile-image-dialog img{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:auto}.profile-image-dialog p{margin:8px 0 0}.profile-title a{color:#547593}
.opportunity-row{cursor:pointer}.opportunity-row:hover>td{background:#f6f7f0}.opportunity-row:focus-visible{outline:2px solid #ddc600;outline-offset:-2px}.opportunity-row .opportunity-product:hover{background:transparent}.opportunity-row select,.opportunity-row a{cursor:pointer}
.signal-cascade{position:relative;display:flex;align-items:center;gap:5px;font-size:12px}.signal-cascade>button{min-width:180px;text-align:left}.signal-menu{position:absolute;top:100%;left:50px;z-index:50;width:150px;padding:5px;background:white;border:1px solid #ddd;border-radius:7px;box-shadow:0 5px 18px #0002}.signal-menu[hidden]{display:none}.signal-menu button{display:block;width:100%;border:0;text-align:left;white-space:nowrap;border-radius:4px;background:white}.signal-menu button:hover,.signal-menu button:focus{background:#fff6bc}.signal-branch>button span{float:right}.signal-branch{position:relative}.signal-submenu{display:none;position:absolute;left:100%;top:0;width:150px;padding:5px;background:white;border:1px solid #ddd;border-radius:7px;box-shadow:0 5px 18px #0002}.signal-branch:hover>.signal-submenu,.signal-branch:focus-within>.signal-submenu{display:block}.label-focus-table .opportunity-short{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:260px}.label-focus-table .opportunity-evidence{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:380px}.label-focus-table .opportunity-signals{max-height:48px;overflow:hidden}.label-focus-table .opportunity-row td{padding:8px 6px}.label-focus-table .opportunity-product strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.label-focus-table .opportunity-row td:nth-child(2){min-width:170px}.label-focus-table .opportunity-row td:nth-child(3){min-width:260px}
.work-grid table{table-layout:fixed;min-width:0}.work-grid th,.work-grid td{padding:6px 3px;white-space:normal;overflow-wrap:anywhere}.work-grid th:first-child,.work-grid td:first-child{width:17%;min-width:0}.work-shop strong{min-width:0;overflow-wrap:anywhere}.work-shop{gap:5px}.work-shop-icon{flex-basis:24px;height:24px}.work-grid .table-scroll{overflow-x:visible;min-width:0}.work-optimization{width:min(1500px,96vw);max-width:96vw}.work-optimization .label-focus-table{padding:0}.work-optimization table{table-layout:fixed;width:100%;min-width:0}.work-optimization th:nth-child(1){width:26%}.work-optimization th:nth-child(2){width:19%}.work-optimization th:nth-child(3){width:25%}.work-optimization th:nth-child(4){width:13%}.work-optimization th:nth-child(5){width:8%}.work-optimization th:nth-child(6){width:9%}.work-optimization .opportunity-row td{min-width:0;overflow-wrap:anywhere}.work-optimization .opportunity-product{min-width:0}.work-optimization .opportunity-product>div{min-width:0}.work-optimization .opportunity-evidence{max-width:100%}.work-optimization select{width:100%;padding:4px}.work-optimization .table-scroll{overflow-x:hidden}.work-optimization .opportunity-signals{max-height:48px}.work-optimization .work-body{max-height:65vh;overflow-y:auto}

.return-actions{border-bottom:1px solid #e8eae2;padding-bottom:12px;margin-bottom:12px}.return-actions fieldset{border:1px solid #e8eae2;border-radius:8px;margin:10px 0;padding:12px}.return-actions label{display:block;margin:8px 0}.return-actions textarea{width:100%}.return-actions select{max-width:100%}

.return-photo-viewer{width:94vw;max-width:94vw;max-height:94vh;border:0;border-radius:12px;padding:18px;overflow:auto}.return-photo-viewer h3{margin:0 40px 14px 0}.return-photo-grid{display:flex;gap:12px;overflow-x:auto;align-items:start}.return-photo-grid figure{flex:1 0 260px;margin:0;min-width:0;background:#f5f6f1;border-radius:8px;padding:6px}.return-photo-grid img{display:block;width:100%;height:calc(88vh - 90px);object-fit:contain}.return-photo-grid figcaption{text-align:center;font-size:12px;color:#778078;margin-top:4px}.return-photo-viewer>button{position:absolute;right:10px;top:10px}.return-item .service-product img{cursor:zoom-in}

.work-product-inline .work-sku{display:inline-flex;align-items:center;gap:4px;flex:0 1 220px;min-width:120px;overflow:visible}.work-product-inline .work-sku>.sku-identity{flex:1;min-width:0}
.work-dialog.sold-list{height:min(940px,92vh);max-height:92vh;overflow:hidden;padding:16px 20px}
.sold-list[open]{display:flex;flex-direction:column}.sold-list>.dialog-heading{position:static;flex:none;padding:0 0 12px;margin:0}.sold-list>.dialog-heading h2{font-size:20px;margin:0}
.sold-list>.work-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.sold-list>.error:empty{display:none}
.sold-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex:none;margin-bottom:8px}.sold-filters>.toolbar{margin:0;gap:4px}.sold-filters>label{display:flex;align-items:center;gap:6px;margin:0;font-size:12px}.sold-filters>label select{max-width:220px}
.sold-filters button,.sold-filters select{min-height:30px;padding:5px 9px;font-size:12px}.sold-filters>.toolbar+ .toolbar{border-left:1px solid #e3e7df;padding-left:10px}
.sold-bulk{position:relative;margin-left:auto;font-size:12px}.sold-bulk>summary{cursor:pointer;padding:7px 10px;color:#56654b;border:1px solid #dfe5d8;border-radius:6px;list-style:none}.sold-bulk[open]{position:static}.sold-bulk[open]>.toolbar{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}.sold-bulk [data-archive-batch-status]{font-size:12px;color:#738071}
.sold-list .work-body>p.muted{flex:none;margin:0 0 6px;font-size:12px}.sold-list .work-products-table{flex:1;min-height:0;overflow:hidden;border:1px solid #e6eae1;border-radius:8px}.sold-list .work-products-table>.table-scroll{height:100%;max-height:none;overflow:auto}.sold-list .work-products-table th{position:sticky;top:0;z-index:1;background:#f6f8f3}.sold-list .work-products-table td{padding:7px 9px}.sold-list .work-products-table td:nth-child(4),.sold-list .work-products-table th:nth-child(4){display:none}
.sold-list .work-products-table td:has([data-work-item]) small{display:none}.sold-list .pager{flex:none;margin:8px 0 0;padding:0}.sold-event-history{margin-top:14px;font-size:12px;color:#69745f}.sold-event-history summary{cursor:pointer}
[data-sold-form] label{margin:10px 0}[data-sold-form] select,[data-sold-form] input{display:block;width:100%;margin-top:5px}[data-sold-form]>button{display:block;margin-top:14px}

.sold-reason-heading{display:flex;align-items:center;gap:10px;font-size:13px;margin-bottom:8px}.sold-reason-heading button{padding:3px 8px;font-size:12px}.sold-reason-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.sold-reason-chips>span{display:inline-flex}.sold-reason-chips button{padding:6px 10px;font-size:13px}.sold-reason-chips [data-reason-delete]{padding:5px;color:#b33928}.sold-result{display:block;font-size:12px;color:#526239}.sold-original{display:block;max-width:290px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#818779;font-size:11px}.sold-list .sold-filters [hidden]{display:none}.sold-event-history article{padding:8px 0;border-bottom:1px solid #e9eae5}.sold-event-history article p{margin:4px 0}

.sold-list .work-product-inline{height:32px;overflow:hidden}.sold-list .work-product-inline>img,.sold-list .work-product-inline>.work-thumb-empty{height:30px;max-height:30px}

.sold-list .work-current-sku>td{background:#fff6bf!important}.sold-list .work-current-sku>td:first-child{box-shadow:inset 3px 0 #d5a800}.work-current-bar{display:flex;align-items:center;gap:10px;flex:none;padding:5px 8px;margin:0 0 5px;border-radius:5px;background:#fff8d6;font-size:12px}.work-current-bar[hidden]{display:none}.work-current-bar>.muted{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-current-bar button{font-size:11px;padding:3px 7px}

.sku-current-row>td,.sku-current-row:not(tr){background:#fff6bf!important}.sku-current-row>td:first-child{box-shadow:inset 3px 0 #d5a800}.sku-current-identity{background:#ffe87a;border-radius:3px;outline:1px solid #dec445}.sku-current-identity .sku-copy{color:#755600}.sku-current-identity .sku-link{font-weight:700}

.sku-current-identity::after{content:"当前核查";font-size:10px;color:#806400;white-space:nowrap;margin:0 3px}

.global-image-viewer{width:min(860px,94vw);max-height:94vh;border:0;border-radius:12px;padding:18px;text-align:center}.global-image-viewer::backdrop{background:#1119}.global-image-viewer>button{position:absolute;right:12px;top:10px}.global-image-viewer>p{margin:0 70px 12px}.global-image-viewer>img{display:block;width:auto;height:auto;max-width:100%;max-height:76vh;object-fit:contain;margin:auto}.global-image-viewer>small{display:block;margin-top:8px;color:#818779}

.automation-banner{display:flex;gap:14px;align-items:center;padding:12px 16px;background:#fff8d5;border-radius:9px;color:#66551c;margin:12px 0 20px}.automation-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.automation-stats>div{padding:18px 22px;background:white;border:1px solid #e2e5dc;border-radius:12px}.automation-stats small{display:block;color:#858b7c}.automation-stats strong{display:block;font-size:28px;margin-top:6px}.automation-rule{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0 24px;border-bottom:1px solid #e9ebe4;margin-bottom:16px}.automation-rule p{color:#62695b}.automation-rule small{color:#858b7c}.automation-rule button{margin-left:8px}.automation-text{white-space:pre-wrap;max-width:650px;overflow-wrap:anywhere}.automation-dialog{width:min(620px,90vw);border:1px solid #e1e4d9;border-radius:16px;padding:26px}.automation-dialog label{display:block;margin:16px 0}.automation-dialog input:not([type=checkbox]),.automation-dialog select,.automation-dialog textarea{display:block;width:100%;margin-top:8px;box-sizing:border-box}.automation-dialog .dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.automation-ui td button{margin:3px}.automation-ui .panel{padding:22px}@media(max-width:850px){.automation-stats{grid-template-columns:repeat(2,1fr)}.automation-rule{align-items:flex-start;flex-direction:column}.automation-banner{align-items:flex-start;flex-direction:column}}
.automation-editor{width:min(900px,94vw);max-height:88vh;overflow:auto}.rule-condition{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px}.automation-editor fieldset{border:1px solid #e3e6dc;border-radius:8px}.automation-editor .checks{display:flex;flex-wrap:wrap;gap:6px 20px}.automation-editor .checks label{margin:6px 0}.rule-reply{padding:12px;background:#f7f8f4;border-radius:8px;margin-bottom:10px}.rule-reply>div{display:flex;justify-content:space-between;align-items:center}.rule-reply label{margin:8px 0}.automation-editor h3{margin-top:24px}@media(max-width:650px){.rule-condition{grid-template-columns:1fr 1fr}}
.automation-records{width:min(1400px,95vw);max-height:88vh;overflow:auto}.automation-records td{vertical-align:top}.automation-records .automation-text{max-width:420px;white-space:pre-wrap;overflow-wrap:anywhere}.automation-records small{display:block;margin-top:5px}.automation-records th{white-space:nowrap}
dialog.automation-records{width:min(1740px,96vw);max-width:96vw;max-height:90vh;padding:22px 26px}.automation-records .dialog-heading{margin-bottom:14px}.automation-records .table-scroll{max-height:65vh;overflow:auto}.automation-records table{table-layout:fixed;min-width:1180px}.automation-records th,.automation-records td{padding:11px 12px;white-space:nowrap;overflow-wrap:normal}.automation-records small{margin-top:4px;white-space:nowrap}.automation-records .automation-text{max-width:none;white-space:normal;margin:3px 0;line-height:1.5}.automation-records .automation-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere}.automation-batch-table th:nth-child(1){width:23%}.automation-batch-table th:nth-child(2){width:22%}.automation-batch-table th:nth-child(3){width:8%}.automation-batch-table th:nth-child(4){width:32%}.automation-batch-table th:nth-child(5){width:15%}.automation-detail-table th:nth-child(1){width:29%}.automation-detail-table th:nth-child(2){width:39%}.automation-detail-table th:nth-child(3){width:14%}.automation-detail-table th:nth-child(4){width:18%}.automation-batch-row{cursor:pointer}.automation-batch-row:hover,.automation-batch-row:focus-visible{background:#fff9d9;outline:2px solid #e5c800;outline-offset:-2px}.automation-records .pager{margin-top:14px}

#labelDialog .profile-history table{table-layout:fixed;width:100%}
#labelDialog .profile-history th:last-child,#labelDialog .profile-history td:last-child{width:174px}
#labelDialog .profile-history td{vertical-align:top;white-space:normal;overflow-wrap:anywhere}
#labelDialog .profile-history td:last-child small{white-space:nowrap;font-size:10px}
#labelDialog .profile-change-add,#labelDialog .profile-change-remove{padding:3px 6px;border-radius:4px;line-height:1.5;white-space:normal}
#labelDialog .profile-change-add{background:#edf7ef;color:#246638}
#labelDialog .profile-change-remove{background:#fff0ed;color:#a63c32}
#labelDialog .profile-change-add+.profile-change-remove{margin-top:3px}

#labelDialog .profile-history th:first-child{width:auto}

.profile-changes-columns>section:first-child{display:flex;flex-direction:column}
#labelDialog .profile-changes-columns .profile-trend-chart{flex:1 1 224px;min-height:224px;height:224px;overflow:visible}
.profile-changes-columns>section:first-child>.profile-footnote{margin-bottom:0}
@media(max-width:800px){#labelDialog .profile-changes-columns .profile-trend-chart{flex:none;height:260px}}

#labelDialog .profile-chart-tip{font-size:12px;font-weight:600;line-height:22px;min-height:22px;font-variant-numeric:tabular-nums;color:#354639}
#labelDialog .profile-trend-chart [data-chart-tip]:hover,#labelDialog .profile-trend-chart [data-chart-tip]:focus{fill:transparent}

.profile-hover-card{position:absolute;z-index:5;width:250px;max-width:calc(100% - 16px);padding:10px 12px;background:#fff;border:1px solid #d9d5c9;border-radius:9px;box-shadow:0 6px 22px #0002;pointer-events:none;font-size:11px;color:#6a7065}
.profile-hover-card>b{display:block;color:#182017;margin-bottom:7px;font-size:12px}
.profile-hover-card>div{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
.profile-hover-card span{display:flex;justify-content:space-between;gap:8px;border-left:3px solid;padding-left:6px}
.profile-hover-card strong{font-variant-numeric:tabular-nums}

/* Product operations: preserve spacing, reserve a compact action column. */
.label-focus-table th:nth-child(1){width:24%}.label-focus-table th:nth-child(2){width:18%}.label-focus-table th:nth-child(3){width:21%}.label-focus-table th:nth-child(4){width:14%}.label-focus-table th:nth-child(5){width:16%}.label-focus-table th:nth-child(6){width:7%}
.opportunity-product>div{flex:1;min-width:0}.opportunity-product strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset}.label-focus-table td:nth-child(2),.label-focus-table td:nth-child(3){min-width:0}
.recent-operation{display:block;text-align:left;width:100%;border:0;background:transparent;padding:0;color:#456a8a;font-size:12px}.recent-operation span,.recent-operation small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.operation-dialog{width:min(1200px,94vw);max-height:90vh;overflow:auto;padding:24px}.operation-dialog form{display:grid;gap:14px}.operation-dialog label{display:grid;gap:5px}.operation-dialog input[type=checkbox]{width:auto}.operation-effect{border-bottom:1px solid #e3e5db;padding:12px 0}.operation-effect h3{margin:5px 0}.operation-effect table{width:100%;table-layout:fixed}.operation-effect td,.operation-effect th{padding:8px}.operation-effect details{margin:12px 0}

dialog.operation-dialog .operation-choice{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}dialog.operation-dialog input[type=radio],dialog.operation-dialog input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0;flex:none}.operation-modes{display:flex;gap:12px;flex-wrap:wrap}.operation-current{background:#f5f6f0;padding:12px;border-radius:7px}.operation-current small{display:block;color:#7b8378;margin-top:5px}.warehouse-picker{max-height:340px;overflow:auto}.warehouse-picker table{width:100%}.warehouse-picker th,.warehouse-picker td{padding:8px}
/* TR230: compact, wider before/after dashboard */
#labelDialog.label-compact-profile.effect-expanded,dialog.operation-dialog:has(.effect-board){width:min(1560px,96vw);max-width:96vw;max-height:96vh;padding:18px 24px}#labelDialog.effect-expanded .profile-body{max-height:none;overflow:visible;min-height:0}#labelDialog.effect-expanded{overflow:auto}.effect-controls{display:flex;align-items:center;gap:8px;margin:8px 0}.effect-controls select{max-width:75%;font-size:12px}.effect-controls small{margin-left:auto;color:#7b8378}.effect-actions{display:flex;gap:10px;flex-wrap:wrap}.effect-actions>div{background:#f5f6f0;border-radius:6px;padding:8px 12px;flex:1;font-size:12px}.effect-actions small{display:block;color:#788172;margin-top:4px}.effect-actions span{color:#39734c}.effect-conclusion{display:flex;justify-content:space-between;background:#fff8d8;padding:9px 12px;margin:8px 0;font-size:13px}.effect-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.effect-metrics>div{background:#f5f6f0;padding:8px 12px;font-size:12px}.effect-metrics strong{display:block;font-size:18px;margin:3px 0}.effect-metrics small{color:#788172}.effect-days{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}#labelDialog .effect-days td,.effect-days td,#labelDialog .effect-days th,.effect-days th{padding:5px 8px;line-height:18px;border-bottom:1px solid #e9ece3;white-space:nowrap}#labelDialog .effect-days td small,.effect-days td small{display:inline;color:#71816b;margin-left:8px}.effect-days th:last-child{width:23%}.effect-baseline{background:#f5f6f0}.effect-board button{padding:5px 10px;min-height:28px;font-size:12px}
.recent-operation{height:54px;max-height:54px;overflow:hidden;font-weight:400;line-height:18px}.recent-operation span{height:18px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.effect-board{position:relative}.effect-timeline{margin-top:10px;padding-left:70px;background:linear-gradient(to right,#f6f7f3 0 31.82%,#fff6d6 31.82% 36.36%,#f1f8f4 36.36% 68.18%,#f5f3fa 68.18%);background-origin:content-box;background-clip:content-box}.effect-periods{display:grid;grid-template-columns:7fr 1fr 7fr 7fr;text-align:center;font-size:11px;padding:7px 0}.effect-track{position:relative;height:58px}.effect-track>b{position:absolute;left:-70px;top:12px;font-size:12px}.effect-track>b small{display:block;font-weight:normal;color:#818778;font-size:10px}.effect-track svg{display:block;width:100%;height:58px;overflow:visible}.effect-date-grid{display:grid;grid-template-columns:repeat(22,minmax(0,1fr))}.effect-date-grid button{border:0;background:transparent;padding:4px 0;font-size:10px;min-width:0;line-height:16px;color:#556050}.effect-date-grid button b,.effect-date-grid button small,.effect-date-grid button span{display:block!important;white-space:nowrap;font-size:10px}.effect-date-grid .effect-action-day{color:#9a7100}.effect-hover{position:absolute;width:280px;padding:10px 12px;background:white;border:1px solid #ddd9cb;border-radius:8px;box-shadow:0 6px 24px #0002;pointer-events:none;z-index:10;font-size:12px}.effect-hover[hidden]{display:none}.effect-hover>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.effect-hover span{border-left:3px solid;padding-left:6px;display:block!important}.effect-hover strong{float:right}.effect-hover small{display:block!important;color:#788172}.effect-hover p{margin:6px 0 0}.effect-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.effect-combo{height:133px}.effect-legend{display:flex;justify-content:space-between;padding:3px 8px;font-size:11px}.effect-combo svg{display:block;width:100%;height:110px;overflow:visible}
.automation-run-control{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f5f6ed;border:1px solid #dce2d0;border-radius:9px;padding:16px;margin:14px 0}.automation-run-control strong{font-size:17px}.automation-run-control small{display:block;margin-top:5px;color:#747c70}.automation-run-control button{min-width:100px;font-size:16px;font-weight:700;padding:12px 22px}.automation-pause{background:#fff0dc;color:#a14f12;border:1px solid #e2b475}
/* Content dialogs default to a readable wide layout. */
dialog.automation-dialog{width:min(1000px,94vw);max-width:94vw;max-height:94vh;box-sizing:border-box;overflow:auto}dialog.automation-editor,dialog.automation-library{width:min(1440px,96vw);max-width:96vw;padding:22px 26px}.automation-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.automation-settings-grid>section{min-width:0}.automation-editor .automation-settings-grid h3{margin:14px 0 8px}.automation-settings-grid label{margin:10px 0}.automation-timing{background:#fff8d9;border-radius:8px;padding:12px 16px;margin-top:16px;line-height:1.6}.automation-timing p{margin:6px 0}.automation-timing small{color:#79745b}.automation-library-summary{display:flex;justify-content:space-between;align-items:center;background:#f5f6ef;padding:12px 16px;border-radius:8px}.automation-library-summary button{min-width:100px}.automation-library [data-library-rows]{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.automation-library .dialog-footer{position:sticky;bottom:-22px;background:white;padding:12px 0}.automation-editor>.dialog-footer{margin-top:12px}@media(max-width:900px){.automation-settings-grid,.automation-library [data-library-rows]{grid-template-columns:1fr}}

.automation-editor .automation-timing{background:none;border:0;border-radius:0;padding:0;margin-top:14px;font-size:13px;line-height:1.6;color:#697263}
/* Execution records: full-width, one compact row per batch. */
dialog.automation-dialog.automation-records{width:min(1840px,97vw);max-width:97vw;max-height:94vh;padding:22px 24px}.automation-records .automation-batch-table{table-layout:auto;width:100%;min-width:1350px}.automation-records .automation-batch-table th{width:auto}.automation-records .automation-batch-table th,.automation-records .automation-batch-table td{padding:10px 9px;white-space:nowrap;font-size:12px;line-height:20px;vertical-align:middle}.automation-records .automation-batch-table td small{display:inline;margin:0 0 0 9px;font-size:11px}.automation-records .automation-batch-table td small:before{content:'· ';color:#a0a596}.automation-records .automation-batch-table th:nth-child(3){min-width:65px}.automation-records .automation-batch-table th:last-child{min-width:120px}
dialog.automation-dialog.automation-store-editor{width:min(1440px,96vw);max-width:96vw;max-height:94vh}.automation-store-toolbar{display:flex;align-items:center;gap:20px;margin:18px 0}.automation-store-toolbar label{display:flex;align-items:center;gap:10px;margin:0}.automation-store-toolbar select{min-width:220px;margin:0}.automation-store-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.automation-store-columns>section{min-width:0;border:1px solid #e1e4d9;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}.automation-store-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.automation-store-heading>div{display:flex;gap:6px}.automation-store-list{height:min(45vh,420px);overflow:auto;border:1px solid #e5e7de;border-radius:8px;padding:8px}.automation-store-editor .automation-store-item{display:flex;align-items:center;gap:8px;margin:0;padding:8px;border-bottom:1px solid #f0f1eb}.automation-store-item input{flex:none}.automation-store-columns>section>button{align-self:flex-end}@media(max-width:700px){.automation-store-columns{grid-template-columns:1fr}.automation-store-list{height:24vh}}
dialog.sync-join-editor{width:min(1440px,96vw);max-width:96vw;max-height:94vh;box-sizing:border-box;overflow:auto}.sync-join-editor .automation-store-item{display:flex;align-items:center;gap:8px;margin:0;padding:8px;border-bottom:1px solid #f0f1eb}.sync-join-editor .automation-store-item span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sync-join-editor .automation-store-item small{white-space:nowrap}.sync-join-editor .automation-store-columns input[type=search]{width:100%;box-sizing:border-box}
/* Order work stays inside the existing order center. */
.order-work-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}.order-work-tabs button{padding:7px 12px}.order-work-hint{font-size:12px;margin:6px 0 14px}.order-work-summary{min-width:125px;max-width:185px}.order-work-summary .pill{font-size:11px;margin:0 3px 3px 0}.order-work-note{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-work-dialog{width:min(1440px,96vw);max-width:96vw;max-height:92vh;box-sizing:border-box;padding:24px;border:1px solid #deded7;border-radius:16px;overflow:auto}.order-work-dialog .dialog-heading{position:sticky;top:-24px;background:white;z-index:2;padding:12px 0}.order-work-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.order-work-grid .wide{grid-column:span 2}.order-work-dialog label{display:flex;flex-direction:column;gap:5px;font-size:12px}.order-work-dialog input,.order-work-dialog select,.order-work-dialog textarea{box-sizing:border-box;width:100%;min-width:0}.order-work-dialog textarea{min-height:62px}.order-work-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:22px;margin:20px 0}.order-purchase,.order-reference{border:1px solid #e2e4dc;border-radius:10px;padding:14px;margin-bottom:12px}.order-purchase-title{display:flex;align-items:center;gap:10px;margin-bottom:12px;min-width:0}.order-purchase-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.order-purchase-title .sku-identity{max-width:45%}.order-reference>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-reference label{margin:10px 0}.order-reference small{display:block;color:#777;margin-top:8px}.order-add-purchase{display:flex;gap:8px;flex-wrap:wrap}.order-work-history article{border-bottom:1px solid #eee;padding:10px 0}.order-work-dialog .dialog-footer{display:flex;gap:14px;justify-content:space-between;align-items:center}.order-work-dialog .error:empty{display:none}@media(max-width:900px){.order-work-columns{grid-template-columns:1fr}.order-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
 .order-row[data-order-row]{cursor:pointer}.order-row[data-order-row]:hover{background:#fafbf5}.order-row[data-order-row]:focus-visible{outline:2px solid #e8cc1a;outline-offset:-2px}.order-internal-state{min-width:105px}.order-work-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:12px;margin:0 0 18px}.order-work-product{display:flex;gap:16px;align-items:center;padding:12px;border:1px solid #e2e4dc;border-radius:10px;min-width:0}.order-work-product>div{min-width:0;flex:1}.order-work-product strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:8px}.order-work-product p{margin:8px 0 0}.order-work-thumb{width:120px;height:120px;object-fit:contain;flex:0 0 120px;border-radius:8px;background:#f6f6f2}.order-work-product .sku-identity{max-width:100%}.order-add-purchase button{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.order-work-dialog .order-work-columns{grid-template-columns:minmax(0,2.4fr) minmax(260px,1fr);gap:18px;margin:12px 0}.order-work-dialog .order-work-columns h3{margin-bottom:10px}.order-work-dialog .order-purchase .order-work-grid{grid-template-columns:minmax(180px,1.5fr) minmax(110px,1fr) minmax(170px,1.4fr);gap:12px}.order-work-dialog .order-purchase label:has([name=tracking]){grid-column:3;grid-row:1}.order-work-dialog .order-purchase label:has([name=payment]){grid-column:1;grid-row:2}.order-work-dialog .order-purchase label:has([name=source]){grid-column:2 / span 2;grid-row:2}.order-work-secondary{border-top:1px solid #e2e4dc;padding-top:12px;margin-top:12px}.order-work-secondary>summary{font-weight:600;cursor:pointer;margin-bottom:12px}.order-work-dialog .dialog-footer{position:sticky;bottom:-24px;background:white;padding:12px 0;border-top:1px solid #e2e4dc;z-index:2}.order-work-dialog .order-work-products{margin-bottom:12px}.order-work-dialog .order-purchase-title{margin-bottom:12px}.order-work-dialog .order-work-overview{gap:10px}.order-work-dialog .order-reference{padding:12px}.order-work-dialog .order-reference:only-of-type>strong,.order-work-dialog .order-reference:only-of-type>.sku-identity{display:none}@media(max-width:900px){.order-work-dialog .order-work-columns{grid-template-columns:1fr}.order-work-dialog .order-purchase .order-work-grid{grid-template-columns:1fr 1fr}.order-work-dialog .order-purchase label:has([name=tracking]),.order-work-dialog .order-purchase label:has([name=payment]),.order-work-dialog .order-purchase label:has([name=source]){grid-column:auto;grid-row:auto}}

/* TR243: purchase-first form and visible order notes. */
.order-work-top.has-notes{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:16px}.order-work-top .order-work-products{grid-template-columns:minmax(0,1fr)}.order-top-notes{border:1px solid #e2e4dc;border-radius:10px;padding:12px 16px;margin-bottom:12px;max-height:180px;overflow:auto}.order-top-notes strong{font-size:12px;color:#67715e}.order-top-notes p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 10px}.order-top-notes small{color:#777}.order-purchase-title:empty{display:none}.order-work-main h3,.order-work-secondary h3{margin:12px 0}.order-work-overview textarea{height:84px;min-height:84px;resize:vertical}.order-source-options{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:12px;color:#707768}.order-work-dialog .order-source-options label{display:flex;flex-direction:row;align-items:center;gap:6px;color:#222}.order-work-dialog .order-source-options input{width:16px;height:16px}.order-source-options small{font-size:12px}@media(max-width:900px){.order-work-top.has-notes{grid-template-columns:minmax(0,1fr)}}

.work-rule-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px}.work-rule-list{max-height:65vh;overflow:auto}.work-rule-list article{border:1px solid #e2e4dc;border-radius:8px;margin-top:8px;padding:10px}.work-rule-list article.selected{border-color:#dbc400;background:#fffdf0}.work-rule-list article>button{font-weight:600}.work-rule-list small{display:block;margin:5px 0}.work-rule-list article div{display:flex;gap:5px}.work-rule-groups,.work-rule-modes{display:flex;flex-wrap:wrap;gap:14px}.order-work-dialog .work-rule-groups label{flex-direction:row;align-items:center}.order-work-dialog .work-rule-groups input{width:16px}.work-rule-condition{display:grid;grid-template-columns:1.4fr 1fr 1.3fr auto;gap:10px;align-items:center;margin:10px 0}.work-rule-condition [data-value]>*{width:100%;box-sizing:border-box}.order-rule-reasons{margin:8px 0 14px}.order-rule-reasons .pill{margin-right:6px}@media(max-width:900px){.work-rule-layout{grid-template-columns:1fr}.work-rule-list{max-height:200px}.work-rule-condition{grid-template-columns:1fr 1fr}}


/* TR245: one-screen order editor; scrolling stays in records and note panes. */
.order-work-editor{padding:14px 20px;max-height:96vh}.order-work-editor .dialog-heading{position:static;padding:0 0 6px;display:flex;align-items:center;gap:10px}.order-work-editor .dialog-heading h2{margin:5px 0;font-size:23px;flex:1}.order-work-editor [data-work-close]{order:3}.order-work-editor .order-work-body>form>p{margin:3px 0 8px;font-size:12px}.order-work-editor .order-work-products{margin:0;max-height:138px;overflow:auto}.order-work-editor .order-work-product{padding:7px 10px;gap:12px}.order-work-editor .order-work-product p{margin-top:5px}.order-work-editor .order-work-top{margin-bottom:8px}.order-work-editor .order-top-notes{margin:0;padding:8px 10px;height:136px;max-height:136px;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;gap:6px}.order-note-scroll{overflow:auto;min-height:0;flex:1}.order-note-row{display:grid;grid-template-columns:70px 130px minmax(0,1fr);gap:6px;font-size:12px;line-height:25px;border-bottom:1px solid #f0f0eb}.order-note-row>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-note-row time{font-size:11px;color:#777}.order-note-packing{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:24px}.order-work-editor h3{margin:6px 0;font-size:16px}.order-procurement-layout{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(280px,1fr);gap:12px}.order-work-editor #orderPurchaseRows{max-height:215px;overflow:auto}.order-work-editor .order-purchase{padding:9px 11px;margin:0 0 6px}.order-work-editor .order-purchase:last-child{margin-bottom:0}.order-work-editor .order-purchase-title{margin-bottom:4px}.order-work-editor .order-purchase-title:empty{display:none}.order-work-editor input,.order-work-editor select{height:33px;padding:5px 9px}.order-work-editor label{gap:3px}.order-work-editor .order-purchase .order-work-grid{gap:8px;grid-template-columns:minmax(140px,1.3fr) minmax(90px,1fr) minmax(140px,1.3fr)}.order-work-editor .order-source-options{gap:8px;margin-top:6px;font-size:11px}.order-work-editor .order-source-options input{height:15px;width:15px;padding:0}.order-work-editor .order-source-options small{font-size:11px}.order-work-editor [data-source-link]:empty{display:none}.order-work-editor [data-source-link]{font-size:11px;line-height:14px}.order-purchase-weight{border:1px solid #e2e4dc;border-radius:10px;padding:9px 11px}.order-purchase-weight h4{font-size:13px;margin:0 0 6px}.order-purchase-weight .order-work-grid{grid-template-columns:1fr 1fr;gap:8px}.order-purchase-weight .wide{font-size:11px}.order-purchase-weight p{margin:4px 0}.order-work-editor .order-work-secondary{padding-top:6px;margin-top:8px}.order-work-editor .order-work-overview{gap:7px 10px}.order-work-editor .order-work-overview textarea{height:48px;min-height:48px;resize:none;padding:7px 9px}.order-work-editor .dialog-footer{position:static;padding:8px 0 0;margin-top:8px;min-height:34px}.order-work-editor .dialog-footer .muted{font-size:11px}.order-work-editor .dialog-footer button{padding:9px 16px}.order-work-editor .error{margin:5px 0 0}.order-history-dialog .dialog-heading{display:flex;justify-content:space-between;align-items:center}.order-history-table{max-height:65vh;overflow:auto}.order-history-row{display:grid;grid-template-columns:170px 130px minmax(0,1fr);gap:12px;border-bottom:1px solid #e9eae4;padding:12px 8px;font-size:13px}.order-history-row>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-history-heading{font-weight:600;background:#f6f6ef;position:sticky;top:0}.order-history-dialog [data-history-more]{margin-top:12px}.order-row td:first-child{white-space:nowrap}.order-internal-state .order-work-summary{min-width:70px;max-width:150px}@media(max-width:1000px){.order-procurement-layout{grid-template-columns:minmax(0,2fr) minmax(230px,1fr)}.order-work-editor .order-purchase .order-work-grid{grid-template-columns:1fr 1fr}.order-work-editor .order-purchase label:has([name=tracking]),.order-work-editor .order-purchase label:has([name=payment]),.order-work-editor .order-purchase label:has([name=source]){grid-row:auto;grid-column:auto}}@media(max-width:700px){.order-procurement-layout{grid-template-columns:1fr}.order-history-row{grid-template-columns:140px 90px minmax(200px,1fr)}}


/* TR246 compact rule library */
.work-rules-dialog{padding:18px 22px}.work-rules-dialog .dialog-heading{position:static;display:flex;align-items:center;justify-content:space-between;padding:0 0 8px}.work-rules-dialog .dialog-heading h2{margin:6px 0;font-size:23px}.work-rules-dialog [data-body]>p{margin:5px 0 12px}.work-rules-dialog .work-rule-layout{grid-template-columns:320px minmax(0,1fr);gap:20px}.work-rules-dialog .work-rule-list{max-height:72vh;padding-right:6px}.work-rules-dialog .work-rule-list>button{width:100%;margin-bottom:3px}.work-rules-dialog .work-rule-list article{padding:8px 10px;margin-top:7px;cursor:pointer;background:#fff}.work-rules-dialog .work-rule-list article:hover{background:#f7f8f1}.work-rules-dialog .work-rule-list article.selected{border-color:#d9bf00;background:#fffdeb;box-shadow:inset 3px 0 #e2c900}.work-rules-dialog .work-rule-list article:focus-visible{outline:2px solid #b89c00;outline-offset:1px}.work-rule-card-top,.work-rule-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.work-rule-card-top strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rule-state{display:inline-flex;align-items:center;padding:3px 8px;border-radius:5px;font-size:11px;white-space:nowrap;font-weight:600}.rule-state.is-enabled{background:#e4f5e9;color:#20733b}.rule-state.is-disabled{background:#fde9e7;color:#b82c29}.work-rule-card-bottom{margin-top:5px}.work-rules-dialog .work-rule-list .work-rule-card-bottom small{margin:0;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.work-rules-dialog .rule-card-actions{display:flex;flex-shrink:0;gap:3px}.work-rules-dialog .rule-card-actions button{padding:3px 7px;min-height:24px;font-size:11px}.rule-editor-heading{display:flex;align-items:center;gap:12px;margin-bottom:10px}.rule-editor-heading h3{margin:0;font-size:16px}.rule-basic-fields{grid-template-columns:2fr 1fr!important}.rule-basic-fields .wide{grid-column:auto}.rule-editor-section{border:1px solid #e1e4d8;border-radius:9px;padding:12px 14px;margin-top:12px}.rule-editor-section h3{font-size:14px;margin:0 0 8px}.rule-editor-section p{font-size:11px;margin:8px 0;color:#7a8272}.rule-editor-section .work-rule-groups{gap:8px 14px}.rule-editor-section .work-rule-condition{margin:7px 0;grid-template-columns:1.25fr 1fr 1.3fr auto;gap:8px}.rule-editor-section .work-rule-condition select,.rule-editor-section .work-rule-condition input{height:35px;padding:6px 9px}.rule-editor-section .rule-field-hint{margin-bottom:0}.work-rules-dialog .dialog-footer{position:static;margin-top:12px;padding:10px 0 0}.work-rules-dialog .work-rule-modes{gap:18px}@media(max-width:1000px){.work-rules-dialog .work-rule-layout{grid-template-columns:270px minmax(0,1fr)}}@media(max-width:760px){.work-rules-dialog .work-rule-layout{grid-template-columns:1fr}}

.work-rules-dialog .dialog-heading{position:sticky;top:-18px;background:#fff;z-index:4}.work-rules-dialog .dialog-footer{position:sticky;bottom:-18px;background:#fff;z-index:3}
.contribution-evidence{margin-bottom:3px;color:#685c1e;font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contribution-evidence>strong{font-size:12px;color:#685c1e}.contribution-evidence small{display:block;line-height:1.5}.contribution-notice{font-size:12px;margin:8px 0}.label-focus-table .opportunity-product strong{display:block!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset}.label-focus-table .opportunity-product img{width:48px;height:48px;object-fit:contain;flex:0 0 48px}.label-focus-table .opportunity-product>div{min-width:0}.label-focus-table .opportunity-product{max-width:420px}.opportunity-filters{flex-wrap:wrap}

/* Compact operations list: keep evidence readable without expanding every row. */
.label-focus-table th:nth-child(1){width:24%}.label-focus-table th:nth-child(2){width:16%}.label-focus-table th:nth-child(3){width:30%}.label-focus-table th:nth-child(4){width:11%}.label-focus-table th:nth-child(5){width:12%}.label-focus-table th:nth-child(6){width:7%}.label-focus-table .opportunity-evidence{max-width:100%}.label-focus-table .opportunity-signals{max-height:24px}.label-focus-table .opportunity-row td{line-height:18px}

/* Seven-column operations overview: four compact content lines. */
.opportunity-compact-table table{min-width:1250px}.opportunity-compact-table .table-scroll{overflow-x:auto}
.opportunity-compact-table th:nth-child(1){width:14%}.opportunity-compact-table th:nth-child(2){width:14%}.opportunity-compact-table th:nth-child(3){width:18%}.opportunity-compact-table th:nth-child(4){width:30%}.opportunity-compact-table th:nth-child(5){width:9%}.opportunity-compact-table th:nth-child(6){width:9%}.opportunity-compact-table th:nth-child(7){width:6%}
.opportunity-compact-table .opportunity-row td{min-width:0;padding:8px 6px;vertical-align:middle}.opportunity-compact-table .opportunity-row small{margin:0;line-height:18px}.opportunity-compact-table .opportunity-product{gap:6px}.opportunity-compact-table .opportunity-product small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.opportunity-compact-table .opportunity-product .sku-identity{max-width:100%;display:flex}.opportunity-compact-table .opportunity-product .sku-identity a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.opportunity-compact-table .opportunity-product [data-sku-copy]{flex-shrink:0}
.contribution-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 8px;font-size:12px;line-height:18px;color:#685c1e}.contribution-grid>span{white-space:nowrap}.contribution-period{grid-column:1/-1;color:#7b8176}
.opportunity-compact-table .opportunity-signals{height:18px;max-height:18px;white-space:nowrap;overflow:visible;font-size:11px}.opportunity-compact-table .opportunity-signal{font-size:11px;padding:0 3px;margin:0 2px 0 0;line-height:16px}.opportunity-compact-table .opportunity-evidence{font-size:12px;line-height:18px;white-space:nowrap;overflow:visible;text-overflow:clip;max-width:none}.opportunity-compact-table .label-priority{font-size:11px;padding:0 3px;line-height:18px}.opportunity-compact-table .label-advice-text{font-size:12px}.opportunity-compact-table .opportunity-short{line-height:18px;margin:0;-webkit-line-clamp:2}.opportunity-compact-table .auto-label{font-size:11px;margin:0 2px 2px 0;padding:0 3px;line-height:16px}.opportunity-compact-table .recent-operation{font-size:11px}

.opportunity-compact-table th:nth-child(3){width:24%}.opportunity-compact-table th:nth-child(4){width:24%}.opportunity-compact-table table{min-width:1450px}.contribution-grid{font-size:11px;gap:0 6px}

.effect-action-compact>div{line-height:22px}.effect-action-summary{display:flex;align-items:center;gap:8px}.effect-action-summary>small{display:inline!important;margin:0!important}.effect-action-summary>button{padding:1px 8px!important;margin:0!important}.effect-action-summary details{position:relative}.effect-action-summary details[open]>div{position:absolute;right:0;top:24px;z-index:10;width:300px;max-height:220px;overflow:auto;background:white;padding:12px;border:1px solid #ddd;box-shadow:0 4px 12px #0002}

.automation-task-table{table-layout:fixed;width:100%;min-width:1000px}.automation-task-table th:first-child{width:32%}.automation-task-table th:last-child{width:21%}.automation-task-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:20px}.automation-task-table td>strong,.automation-task-table td>small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:20px;max-width:100%}.automation-ui>.panel{overflow-x:auto}.automation-task-table td>small{margin-top:0;height:20px}.automation-task-table td{padding-top:10px;padding-bottom:10px;vertical-align:middle}.automation-task-table td:last-child{overflow:visible}.automation-task-table td button{margin:0 3px;white-space:nowrap}

/* Account permissions: keep the full module catalogue readable without a narrow column. */
dialog.team-permission-dialog{width:1440px;max-width:96vw}
.team-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.team-permission-grid fieldset{min-width:0;margin:0;padding:12px 14px;border:1px solid #e0e2da;border-radius:10px}
.team-permission-grid .toolbar{justify-content:flex-end;gap:6px;margin:0 0 8px}
.team-permission-grid .toolbar button{padding:5px 10px;min-height:30px}
[data-points-team] .archived-teams-entry{margin-left:auto}
.team-permission-grid .checks{display:flex;flex-wrap:wrap;gap:10px 14px}
.team-permission-grid .checks label{display:inline-flex;align-items:center;gap:5px;margin:0}
@media(max-width:760px){.team-permission-grid{grid-template-columns:1fr}}

/* Role permissions follow the same hierarchy as the main navigation. */
.permission-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;margin:20px 0;min-height:460px}
.permission-nav{display:flex;flex-direction:column;gap:6px;border-right:1px solid #e4e5de;padding-right:18px;align-self:start;position:sticky;top:0}
.permission-nav button{display:flex;justify-content:space-between;align-items:center;text-align:left;border:0;background:transparent;padding:14px 12px;border-radius:10px;color:#555}
.permission-nav button.selected{background:#f2f1df;color:#242711;font-weight:700;box-shadow:inset 3px 0 #a69519}
.permission-nav small{font-size:12px;color:#777}
.permission-content{min-width:0}.permission-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e7e8e1;padding-bottom:12px}
.permission-heading h3{font-size:22px;margin:0}.permission-heading p{margin:8px 0 0}.permission-tools{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.permission-tools button{padding:7px 12px;font-size:13px}.permission-child{border:1px solid #e2e4da;border-radius:12px;margin:12px 0;padding:14px 18px}
.permission-child-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.permission-child h4{margin:0;font-size:16px}.permission-child-heading>small{color:#777;margin-left:auto}.permission-child-heading>button{padding:4px 8px;font-size:12px}
.permission-switch{display:inline-flex!important;align-items:center;gap:8px;white-space:nowrap;margin:0!important;font-size:14px}
.permission-switch input{appearance:none;width:38px!important;height:22px!important;min-height:0!important;border:0;border-radius:20px;background:#c8cbc2;position:relative;cursor:pointer;margin:0}
.permission-switch input:before{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:white;transition:transform .15s}
.permission-switch input:checked{background:#82761b}.permission-switch input:checked:before{transform:translateX(16px)}.permission-switch input:disabled{opacity:.4;cursor:not-allowed}
.permission-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px;border-top:1px solid #eeefe9;margin-top:14px;padding-top:14px}
.permission-library-scope{margin-top:18px;padding:14px;border:1px solid #e4e1d4;border-radius:10px;background:#faf9f3}.permission-library-scope h5{margin:0 0 6px;font-size:14px}.permission-library-scope p{margin:0}
.permission-actions label{display:flex;align-items:flex-start;gap:7px;margin:0;font-size:14px}.permission-actions input{margin:3px 0 0}.permission-actions small{display:block;color:#8b7a2c;font-size:11px;margin-top:4px}
.permission-off{padding:50px 20px;text-align:center;color:#777;background:#f7f8f3;border-radius:12px}.permission-closed{font-size:12px;margin:8px 0 0}
.team-permission-dialog .dialog-footer{position:sticky;bottom:-24px;background:white;padding:18px 0;border-top:1px solid #e5e6df;z-index:2}
@media(max-width:900px){.permission-layout{grid-template-columns:160px minmax(0,1fr);gap:14px}.permission-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.permission-layout{grid-template-columns:1fr}.permission-nav{position:static;display:grid;grid-template-columns:repeat(2,1fr);border-right:0;padding-right:0}.permission-actions{grid-template-columns:1fr}.permission-heading{align-items:flex-start}}
.user-menu{position:relative}.user-menu summary{cursor:pointer;list-style:none;border:1px solid #dfe3d8;border-radius:8px;background:#fff;padding:10px 13px;white-space:nowrap}.user-menu summary::-webkit-details-marker{display:none}.user-menu summary::after{content:"⌄";margin-left:10px;color:#777}.user-menu[open] summary{border-color:#e8c200}.user-menu-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:60;min-width:220px;padding:12px;background:#fff;border:1px solid #dfe3d8;border-radius:10px;box-shadow:0 12px 30px #0002}.user-menu-panel strong,.user-menu-panel small{display:block;overflow-wrap:anywhere}.user-menu-panel small{margin:5px 0 10px;color:#717862}.user-menu-panel button{display:block;width:100%;text-align:left;margin-top:5px}

/* TR397: keep return actions visible and reasons scannable. */
.return-panel .table-scroll{overflow:auto}.return-panel table{min-width:1050px}.return-panel th:nth-child(1){width:27%}.return-panel th:nth-child(2){width:17%}.return-panel th:nth-child(3){width:15%}.return-panel th:nth-child(4){width:16%}.return-panel th:nth-child(5){width:10%}.return-panel th:nth-child(6){width:7%}.return-panel th:nth-child(7){width:8%}.return-panel th:last-child,.return-panel td:last-child{position:sticky;right:0;background:white;min-width:110px}.return-detail-dialog{width:min(1440px,96vw);max-width:96vw}.return-reason{padding:10px 14px;background:#fff2c7;border-left:4px solid #d8a600;font-size:15px}.return-reason-summary{margin-top:8px;padding:8px;background:#fff2c7;display:grid;gap:5px}.return-reason-summary span{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.record-tag-dialog,.record-tag-library-dialog{width:min(1440px,96vw);max-width:96vw}.tag-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;margin:18px 0}.tag-groups{display:flex;flex-direction:column;gap:6px;max-height:55vh;overflow:auto}.tag-groups button{color:inherit;background:#f4f5ee;margin:0;white-space:normal}.tag-groups button.primary{background:#ffdc00;color:#171a16}.tag-options.checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));align-content:start;gap:10px;max-height:55vh;overflow:auto}.tag-options label{display:flex;align-items:center;gap:8px;padding:12px;background:#f4f5ee;border-radius:8px}.tag-options small{display:block;margin-top:5px}.tag-selected{padding:12px;background:#fff8d5;line-height:1.8}.tag-editor{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px;background:#f6f6f2;border-radius:10px}.tag-editor h3{width:100%}.tag-editor label{display:grid;gap:6px}.record-tag-library-row{display:flex;align-items:center;gap:10px}.record-tag-library-row>div{flex:1;min-width:0}.record-tag-library-row small{display:block}.record-tag-library{max-height:55vh;overflow:auto}@media(max-width:700px){.tag-layout{grid-template-columns:1fr}.tag-groups{flex-direction:row;max-height:120px;flex-wrap:wrap}.tag-groups button{width:auto}}

.record-tag-editor-dialog{width:min(1000px,96vw);max-width:96vw}.record-tag-editor-form{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:12px 0}.record-tag-editor-form>label{display:grid;gap:8px;min-width:0}.record-tag-editor-form>label:has([name=note]),.record-tag-editor-form>.dialog-footer{grid-column:1/-1}.record-tag-editor-form input,.record-tag-editor-form select{width:100%;box-sizing:border-box}.record-tag-editor-form>label.record-tag-favorite{display:flex;align-items:center;gap:8px}.record-tag-editor-form input[type=checkbox]{width:auto;margin:0}.record-tag-editor-form>.dialog-footer{justify-content:flex-end}@media(max-width:700px){.record-tag-editor-form{grid-template-columns:1fr}}

.tag-group-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e6e5de;padding:14px 8px}.tag-group-row strong{flex:1;min-width:0;overflow-wrap:anywhere}.tag-group-row>span:first-child,[data-drag-group]{cursor:grab}.tag-group-row:active,[data-drag-group]:active{cursor:grabbing}#recordTagGroupDialog [data-group-list]{max-height:60vh;overflow:auto}#recordTagGroupDialog{width:min(1200px,96vw)}@media(max-width:700px){.tag-group-row{flex-wrap:wrap}.tag-group-row>.muted{width:100%}}

/* Order fulfillment: current stage stays visible beside working fields. */
.order-work-dialog.order-work-editor{width:min(1600px,96vw);max-width:96vw;max-height:94vh;box-sizing:border-box}
.order-fulfillment-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.order-fulfillment-fields{min-width:0}.order-flow-sidebar{position:sticky;top:0;left:auto;bottom:auto;width:auto;color:inherit;display:block;background:#f6f7f2;border:1px solid #e3e6db;border-radius:12px;padding:18px;max-height:72vh;overflow:auto}
.order-flow-current{padding:12px;background:#fff4b8;border-radius:8px}.order-flow-current p{margin:8px 0}.order-flow-exception{padding:12px;border-left:4px solid #b83d25;background:#fff0eb;white-space:pre-wrap;overflow-wrap:anywhere}
.order-flow-nodes{list-style:none;padding:0;margin:18px 0}.order-flow-nodes li{display:flex;gap:12px;position:relative;padding:0 0 16px 0;color:#777}.order-flow-nodes li:not(:last-child):before{content:'';position:absolute;left:13px;top:28px;bottom:0;border-left:2px solid #d5d8cd}.order-flow-nodes li>span{display:grid;place-items:center;border:1px solid #c8cdbe;border-radius:50%;width:28px;height:28px;flex-shrink:0;background:white}.order-flow-nodes li.current{color:#342b00}.order-flow-nodes li.current>span{background:#ffdd00;border-color:#d5b500}.order-flow-nodes li.complete{color:#16744b}.order-flow-nodes li.complete>span{background:#e0f4e9}.order-flow-nodes small{display:block;margin-top:4px}
.order-flow-latest p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:200px;overflow:auto}.order-flow-controls{padding:16px;background:#f6f7f2;border-radius:10px;margin-top:16px}.order-flow-controls textarea{width:100%;box-sizing:border-box;min-height:60px}.order-flow-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.order-profit-placeholder{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;padding:14px;margin-top:12px;border:1px solid #e7e5d7;border-radius:10px}.order-profit-placeholder h4,.order-profit-placeholder p{margin:0}.order-profit-placeholder h4:nth-of-type(2){grid-column:2;grid-row:1}.order-work-editor .order-procurement-layout{grid-template-columns:minmax(0,1fr) 280px}.order-work-editor .order-work-product strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-work-editor .order-work-product>div{min-width:0}
@media(max-width:1100px){.order-fulfillment-layout{grid-template-columns:1fr}.order-flow-sidebar{position:static;max-height:none}.order-flow-nodes{display:flex;flex-wrap:wrap;gap:14px}.order-flow-nodes li:before{display:none}.order-work-editor .order-procurement-layout{grid-template-columns:1fr}}

.order-work-editor #orderPurchaseRows{max-height:400px}.order-work-editor .dialog-footer{position:sticky;bottom:0;background:white;z-index:2;padding:12px 0;border-top:1px solid #e2e4dc}

.order-work-editor .order-work-products{max-height:220px}.order-reference-buttons{display:flex;gap:8px;margin:8px 0}.order-reference-buttons button{font-size:12px;padding:6px 10px}.order-reference-dialog{width:min(1440px,96vw);max-width:96vw;max-height:92vh}.order-reference-dialog .dialog-heading{display:flex;justify-content:space-between;align-items:center}.order-reference-pictures{display:flex;gap:12px;flex-wrap:wrap}.order-reference-pictures img{width:120px;height:120px;object-fit:contain;cursor:zoom-in}.order-reference-description{white-space:pre-wrap;line-height:1.8}.order-reference-return{padding:16px;border-bottom:1px solid #e1e2da}.order-reference-table{overflow:auto}.order-reference-table td small{display:block}

.warehouse-packages{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:16px}.warehouse-packages article{border:1px solid #ddd;border-radius:10px;padding:16px}.warehouse-packages form,.warehouse-receive-items{display:grid;gap:10px;margin:12px 0}.warehouse-packages input,.warehouse-packages select,.warehouse-packages textarea{width:100%}.warehouse-receive-items{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}

.order-profit-panel{border-top:1px solid #e3e3db;margin-top:14px;padding-top:14px}.order-profit-panel label{display:grid;gap:6px;margin:10px 0}.order-profit-values{display:grid;grid-template-columns:1fr 1fr;gap:12px}.order-profit-values strong{display:block;font-size:22px;margin:6px 0}.order-profit-values small{display:block;color:#777}.order-profit-panel details{font-size:12px;line-height:1.6}.order-profit-panel select,.order-profit-panel input{width:100%;min-width:0}

/* Compact order editor: ordinary desktop orders fit one dialog. */
.order-work-editor .order-profit-panel{margin-top:8px;padding-top:8px}
.order-work-editor .order-profit-values{font-size:12px;gap:8px}
.order-work-editor .order-profit-values strong{font-size:16px;margin:4px 0}
.order-work-editor .order-profit-values small,.order-work-editor [data-profit-status]{font-size:11px;line-height:1.35}
.order-work-editor [data-profit-status]:empty{display:none}
.order-work-editor .order-purchase[hidden],.order-work-editor .order-work-product[hidden]{display:none}
.order-purchase-pages{display:flex;gap:8px;align-items:center;margin:0 0 4px;font-size:12px}
.order-purchase-pages button{padding:3px 9px}
@media(min-width:1101px){
.order-work-dialog.order-work-editor{width:min(1600px,96vw);padding:12px 18px}
.order-work-editor .order-fulfillment-layout{grid-template-columns:minmax(0,1fr) 260px;gap:16px}
.order-work-editor .order-flow-sidebar{position:static;max-height:none;overflow:visible;padding:12px}
.order-work-editor .order-flow-current{padding:9px}.order-work-editor .order-flow-current p{margin:4px 0;font-size:12px}
.order-work-editor .order-flow-controls{padding:8px 10px;margin-top:8px}
.order-work-editor .order-flow-controls h3{margin:0 0 5px;font-size:14px}
.order-work-editor .order-flow-controls p{font-size:11px;margin:5px 0}
.order-work-editor .order-flow-controls textarea{height:30px;min-height:30px;resize:none}
.order-work-editor .order-flow-controls .order-work-grid{grid-template-columns:1fr 2fr;gap:8px}
.order-work-editor .order-flow-buttons{margin-top:6px;gap:8px}.order-work-editor .order-flow-buttons button{padding:6px 10px;font-size:12px}
.order-work-editor .order-flow-nodes{margin:10px 0}.order-work-editor .order-flow-nodes li{padding-bottom:7px;gap:8px;font-size:12px;align-items:center}
.order-work-editor .order-flow-nodes small{display:none}.order-work-editor .order-flow-nodes li>span{width:24px;height:24px}
.order-work-editor .order-flow-nodes li:not(:last-child):before{left:11px;top:24px}
.order-work-editor .order-flow-latest h4{margin:5px 0;font-size:12px}.order-work-editor .order-flow-latest p{font-size:12px;margin:5px 0;max-height:55px}
.order-work-editor .order-work-products,.order-work-editor #orderPurchaseRows{max-height:none;overflow:visible}
.order-work-editor .order-work-product{padding:4px 8px}.order-work-editor .order-work-product p{margin:3px 0;font-size:12px}
.order-work-editor .order-work-product .order-work-thumb{width:100px;height:100px}
.order-work-editor .order-reference-buttons{margin:4px 0;gap:5px}.order-work-editor .order-reference-buttons button{padding:4px 7px}
.order-work-editor .order-top-notes{height:110px;max-height:110px}
.order-work-editor .order-purchase{padding:7px 9px}.order-work-editor .order-purchase .order-work-grid{gap:5px}
.order-work-editor label{font-size:12px}.order-work-editor input,.order-work-editor select{height:29px;padding:3px 7px;font-size:12px}
.order-work-editor .order-work-overview textarea{height:30px;min-height:30px;padding:4px 7px}
.order-work-editor .order-work-secondary{margin-top:5px;padding-top:4px}
.order-work-editor .dialog-footer{position:static;margin-top:6px;padding:6px 0 0}
.order-work-editor .dialog-heading h2{font-size:20px}.order-work-editor h3{font-size:14px;margin:4px 0}
.order-work-editor .order-source-options input{height:13px;width:13px}
}

.order-work-editor .order-flow-sidebar{height:auto}
.order-work-editor .order-purchase-pages{flex:none;overflow:visible}.order-work-editor .order-purchase-pages button{width:auto;display:inline-block;color:inherit;background:white;border:1px solid #ddd;margin:0}

@media(min-width:1101px){
.order-work-editor .order-fulfillment-fields>p{margin:0 0 6px;font-size:11px}
.order-work-editor .order-purchase .order-work-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.order-work-editor .order-purchase label:has([name]){grid-row:auto;grid-column:auto}
.order-work-editor .order-purchase label:has([name=source]),.order-work-editor .order-purchase label:has([name=spec]){grid-column:span 2}
.order-work-editor .order-work-secondary{padding-bottom:0}
.order-work-editor .order-flow-controls{margin-bottom:0}
.order-work-editor .order-flow-extra{font-size:12px}.order-work-editor .order-flow-extra>summary{cursor:pointer}
.order-work-editor .order-work-overview label{margin:0}
.order-work-editor .order-work-overview .order-source-options{margin-top:2px}
.order-work-editor .order-flow-controls>h3{display:none}
}
@media(min-width:1101px) and (max-height:820px){
.order-work-editor .order-work-product{padding:3px 7px}
.order-work-editor .order-work-product .order-work-thumb{width:85px;height:85px}
.order-work-editor .order-work-product p.muted{display:none}
.order-work-editor .order-work-product .order-reference-buttons{margin:2px 0}
.order-work-editor .order-work-products{font-size:12px}
.order-work-editor .order-work-secondary h3{display:none}
.order-work-editor .dialog-heading{padding-bottom:3px}
.order-work-editor .dialog-heading button{padding:6px 10px}
.order-work-editor .order-flow-sidebar{padding:9px}
.order-work-editor .order-flow-nodes li{padding-bottom:5px}
}

@media(min-width:1101px) and (max-height:820px){.order-work-editor .order-purchase-weight>.order-work-grid>.wide{display:none}.order-work-editor .order-purchase-weight{align-self:start}.order-work-editor .order-work-main{margin-bottom:0}.order-work-editor .dialog-footer{min-height:30px}.order-work-editor .dialog-footer button{padding:6px 12px}}

/* Preserve the measured 82px list rows (86px with a pickup deadline). */
.return-toolbar{margin:8px 0 12px;gap:8px}.return-toolbar .return-tag-library{margin-left:auto}
.return-panel .table-scroll{overflow:visible}.return-panel table{min-width:0;width:100%;table-layout:fixed}
.return-panel th,.return-panel td{padding-left:6px;padding-right:6px;min-width:0}
.return-panel th:nth-child(1){width:15%}.return-panel th:nth-child(2){width:12%}.return-panel th:nth-child(3){width:10%}
.return-panel th:nth-child(4){width:20%}.return-panel th:nth-child(5){width:16%}.return-panel th:nth-child(6){width:10%}
.return-panel th:nth-child(7){width:7%}.return-panel th:nth-child(8){width:4%}.return-panel th:nth-child(9){width:6%}
.return-panel th:last-child,.return-panel td:last-child{position:static;min-width:0;background:inherit}
.return-panel th{white-space:normal}.return-panel td{height:82px}.return-panel tr:has(td:nth-child(3)>small:nth-of-type(2)) td{height:86px}
.return-panel td:nth-child(2)>span,.return-panel td:nth-child(2)>small{display:flex;align-items:center;white-space:nowrap;gap:2px}
.return-panel td:nth-child(2) .order-copy{padding:0 2px;flex:none}
.return-panel td small{font-size:11px;line-height:15px;margin-top:3px}
.return-panel .service-product{gap:6px}.return-panel .service-product small{margin-top:2px}
.return-panel .return-link{padding:0;max-width:100%;font-size:11px}
.return-panel .pill{max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:top;padding:3px 5px}
.return-panel [data-return-open]{padding:6px 3px;font-size:11px;max-width:100%}
.return-panel .record-tags-cell{min-width:0;max-width:100%;max-height:50px;overflow:hidden;padding:0;white-space:normal;font-size:11px}
.return-panel .record-tags-cell .product-tag-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.return-list-reason{font-size:12px;line-height:17px;max-height:51px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow-wrap:anywhere;white-space:pre-line}
.return-list-photos{flex-wrap:nowrap;gap:3px;align-items:center;height:50px;max-width:100%}
.return-list-photos button{flex:0 1 40px;min-width:0;max-width:40px;aspect-ratio:1;padding:0!important;border:0;background:transparent;overflow:hidden;cursor:zoom-in}
.return-list-photos img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:4px}
.return-list-photos .return-photos-more{flex:0 0 16px;font-size:16px;align-self:stretch;aspect-ratio:auto}
.return-list-times small{margin:0!important;font-size:10px!important;line-height:13px!important;overflow-wrap:normal;word-break:normal}
@media(max-width:1400px){.return-panel{padding:14px 10px}.return-panel th,.return-panel td{padding-left:4px;padding-right:4px}.return-panel .service-product img,.return-panel .service-product>.image-fallback{width:30px;height:36px;flex-basis:30px}.return-panel .order-copy{padding:0 2px}.return-panel [data-return-open]{white-space:normal}.return-panel .return-link{font-size:10px}}

/* Return evidence loading/failure occupies the original image box. */
.return-list-photos button:has([data-return-photo]),.return-photos a:has([data-return-photo]){position:relative}
.return-list-photos button:has([data-return-photo]){height:40px;max-height:40px}
.return-photos a:has([data-return-photo]){display:inline-block;width:110px;height:110px}
[data-return-photo-feedback]{white-space:pre-line;font-size:10px;line-height:14px;color:var(--return-photo-feedback-color,#788078)}
.return-photos [data-return-photo-feedback]{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:var(--return-photo-feedback-bg,#f0f2eb);border-radius:4px;pointer-events:none}
.return-photo-failed{cursor:pointer!important}.return-photo-grid .return-photo-failed{min-height:180px}
.return-photo-grid [data-return-photo-feedback]{display:block;text-align:center;padding:12px}
/* Order handling: compact three-cell summary and configurable flow. */
.order-work-editor{width:1440px;max-width:96vw;max-height:96vh}
.order-work-editor .order-work-top{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:stretch}
.order-work-editor .order-work-products,.order-work-editor .order-top-parameters,.order-work-editor .order-top-notes{min-width:0;border:1px solid #dedfd6;border-radius:9px;padding:8px;height:176px;max-height:176px;overflow:auto;box-sizing:border-box}
.order-work-editor .order-work-product{border:0;padding:0;align-items:flex-start;min-width:0}
.order-work-editor .order-work-product>div{min-width:0;flex:1}
.order-work-editor .order-work-product strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.order-work-editor .order-work-product .order-work-thumb{width:82px;height:82px;flex:none}
.order-work-editor .order-top-parameters dl{margin:3px 0;font-size:11px;display:grid;grid-template-rows:repeat(6,16px);grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);column-gap:9px;overflow:hidden}
.order-work-editor .order-top-parameters dl>div{display:grid;grid-template-columns:minmax(42px,.8fr) minmax(0,1.2fr);gap:3px;min-width:0;line-height:16px}
.order-work-editor .order-top-parameters button[data-order-reference]{font-size:11px;padding:3px 8px;min-height:26px}
.order-work-editor .order-top-parameters dt,.order-work-editor .order-top-parameters dd{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-work-editor .order-top-notes{display:flex;flex-direction:column;gap:5px}
.order-work-editor .order-top-notes .order-note-scroll{flex:1;min-height:30px;overflow:auto}
.order-work-editor .order-top-notes textarea{width:100%;min-height:45px;height:45px;resize:vertical;box-sizing:border-box}
.order-work-editor .order-procurement-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:10px;align-items:start}
.order-work-editor .order-purchase .order-work-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.order-work-editor .order-purchase label:has([name=source]),.order-work-editor .order-purchase label:has([name=spec]){grid-column:1/-1}
.order-work-editor .order-work-main{min-height:0}.order-work-editor .order-work-secondary{margin-top:6px}
.order-flow-return{border-right:3px solid #c49b00;border-bottom:2px solid #c49b00;border-radius:0 0 12px 0;margin:8px 0;padding:5px 8px;font-size:12px}
.order-flow-nodes li.complete strong{color:#217a43}
.order-flow-rules-dialog [data-steps]{max-height:65vh;overflow:auto}.order-flow-rules-dialog [data-step]{display:grid;grid-template-columns:25px 1fr 1fr 110px 2fr 100px;align-items:start;gap:10px;padding:12px;border-bottom:1px solid #ddd}.flow-conditions{display:grid;gap:4px;font-size:12px}.flow-conditions label{display:flex;gap:5px;align-items:center}
@media(max-width:1100px){.order-work-editor .order-work-top{grid-template-columns:1fr}.order-work-editor .order-procurement-layout{grid-template-columns:1fr}.order-flow-rules-dialog [data-step]{grid-template-columns:25px 1fr 1fr}.order-work-editor .order-work-products,.order-work-editor .order-top-parameters,.order-work-editor .order-top-notes{height:auto;max-height:220px}}
.order-flow-sidebar{position:relative}.order-flow-return-path{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.order-flow-nodes{padding-right:24px}
.order-work-dialog.order-work-editor{max-height:96vh}
.order-work-editor .order-flow-sidebar{position:relative}
/* TR420: compact team flow editor and order references. */
.order-flow-rules-dialog{width:1440px;max-width:96vw;max-height:92vh;overflow:hidden;box-sizing:border-box}
.order-flow-rules-dialog .flow-team-heading{display:flex;align-items:center;gap:18px;margin:12px 0;color:#74796b;font-size:12px}
.order-flow-rules-dialog .flow-team-heading label{display:flex;align-items:center;gap:10px;color:#171b12}.flow-team-heading select{min-width:210px}
.order-flow-rules-dialog .flow-rule-workspace{display:grid;grid-template-columns:minmax(220px,30%) minmax(0,1fr);gap:20px;height: min(550px,61vh);min-height:350px}
.order-flow-rules-dialog [data-step-list]{overflow:auto;border:1px solid #e1e3d9;border-radius:10px;padding:8px;background:#f7f8f3}
.order-flow-rules-dialog [data-step-list] button{display:flex;width:100%;text-align:left;align-items:center;gap:12px;padding:10px;margin:0 0 5px;border:1px solid transparent;background:transparent}
.order-flow-rules-dialog [data-step-list] button.selected{border-color:#dfbe00;background:#fff7bc}.order-flow-rules-dialog [data-step-list] b{border-radius:50%;background:white;width:26px;height:26px;line-height:26px;text-align:center;flex:none}
.order-flow-rules-dialog [data-step-list] span{min-width:0}.order-flow-rules-dialog [data-step-list] strong{display:block}.order-flow-rules-dialog [data-step-list] small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#777d70;margin-top:3px}
.order-flow-rules-dialog [data-editor]{border:1px solid #e1e3d9;border-radius:10px;padding:20px;overflow:auto;min-width:0}.flow-edit-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.flow-edit-title h3{margin:0}
.order-flow-rules-dialog .flow-name-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.order-flow-rules-dialog .flow-name-fields label{display:grid;gap:7px}.order-flow-rules-dialog input:not([type=checkbox]){width:100%;box-sizing:border-box}
.order-flow-rules-dialog .flow-auto{display:flex;align-items:center;gap:8px;margin:20px 0}.order-flow-rules-dialog input[type=checkbox]{width:16px;height:16px;margin:0;flex:none;accent-color:#e3bc00}
.order-flow-rules-dialog .flow-condition-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.order-flow-rules-dialog .flow-condition-grid label{display:flex;align-items:center;gap:9px;background:#f7f8f4;padding:12px;border-radius:7px;font-size:13px}.flow-next{padding:14px;background:#fff9d5;border-radius:8px;margin-top:20px}
.order-flow-rules-dialog .dialog-footer{margin-top:14px;display:flex;align-items:center;gap:15px}.order-flow-rules-dialog .dialog-footer span{flex:1;font-size:12px;color:#777d70}
.order-work-editor .order-procurement-layout{display:block}.order-work-editor .order-purchase .order-work-grid{grid-template-columns:1.25fr .8fr .8fr .8fr 1.25fr;gap:7px}.order-work-editor .order-inline-weights{display:contents}
.order-work-editor .order-inline-weights label{grid-column:auto;width:auto}.order-work-editor .order-procurement-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.order-work-editor .order-procurement-heading h3{margin:6px 0}
.order-work-editor .order-profit-panel{margin:0;padding:0;border:0;display:flex;align-items:center;gap:10px;font-size:12px}.order-work-editor .order-profit-panel small{color:#848879}.order-work-editor .order-profit-panel strong{font-size:14px}
.order-work-editor .order-work-product{display:grid;grid-template-columns:70px minmax(0,1fr);gap:5px 8px}.order-work-editor .order-work-product .order-work-thumb{width:70px;height:70px}.order-work-editor .order-work-product p{margin:2px 0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-work-editor .order-summary-fees{font-size:10px;color:#72796b}.order-work-editor .order-work-product .order-recent-records{grid-column:1/-1;display:grid;gap:1px;padding-top:3px;border-top:1px solid #eceee5}
.order-work-editor .order-recent-row{display:grid;grid-template-columns:26px 36px minmax(0,1fr) 75px;gap:4px;align-items:center;text-align:left;width:100%;height:19px;min-height:19px;padding:0 2px;border:0;background:transparent;border-radius:3px;font-size:11px;line-height:19px}.order-work-editor .order-recent-row:hover{background:#fff7c1}.order-recent-row span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.order-recent-row time{color:#7b8273}
.order-reference-selected{background:#fff4b0}.order-work-editor .order-work-products{overflow:hidden}.order-flow-nodes li.complete>span{background:#dcf4e2;border-color:#7bbd8c;color:#217a43}
@media(max-width:1100px){.order-flow-rules-dialog .flow-condition-grid{grid-template-columns:1fr}.order-work-editor .order-purchase .order-work-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
.order-flow-rules-dialog .flow-team-heading label,.order-flow-rules-dialog .flow-auto,.order-flow-rules-dialog .flow-condition-grid label{flex-direction:row;text-align:left;justify-content:flex-start}
.order-flow-rules-dialog [data-step-list]{display:block;color:#26301e;scroll-padding:8px}.order-flow-rules-dialog [data-step-list] button{color:#26301e;min-height:52px;flex-shrink:0}.order-flow-rules-dialog [data-step-list] button:hover{background:#eeefdf}
.order-flow-rules-dialog .flow-condition-grid label{min-height:44px}.order-flow-rules-dialog .flow-name-fields label{display:flex;flex-direction:column;align-items:stretch}
.order-work-editor .order-recent-row{height:17px;min-height:17px;line-height:17px;font-weight:400}
.order-flow-rules-dialog .flow-team-heading label{white-space:nowrap;flex:none}.order-flow-rules-dialog [data-step-list] button{height:51px;min-height:51px;padding:7px 10px;margin:0 0 3px}.order-flow-rules-dialog [data-step-list] strong{line-height:18px}.order-flow-rules-dialog [data-step-list] small{line-height:16px;margin-top:0}
/* TR421: separate compact history/after-sales columns and note-only save. */
.order-work-editor .order-recent-records{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px!important;padding-top:2px!important}
.order-work-editor .order-recent-records.has-after{grid-template-columns:repeat(2,minmax(0,1fr))}.order-recent-records>section{min-width:0}.order-recent-records>section+section{border-left:1px solid #e7e9df;padding-left:7px}
.order-work-editor .order-record-heading{display:block;width:auto;border:0;background:transparent;padding:0 1px;margin:0 0 2px;height:18px;min-height:18px;font-size:11px;line-height:18px}
.order-work-editor .order-recent-row{grid-template-columns:33px minmax(0,1fr) 53px;gap:3px;height:17px;min-height:17px;max-height:17px;line-height:17px;overflow:hidden;font-size:10px;white-space:nowrap}
.order-work-editor .order-recent-row>*{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:17px;min-width:0}.order-work-editor .order-recent-row time{margin:0;max-height:17px}
.order-work-editor .order-work-product p{font-size:10px;line-height:16px}.order-work-editor .order-summary-cny{color:#707969}.order-work-editor .order-summary-fees{font-size:10px}.order-work-editor .order-work-product .order-work-thumb{width:62px;height:62px}.order-work-editor .order-work-product{grid-template-columns:62px minmax(0,1fr)}
.order-work-editor .order-note-compose{display:flex;align-items:stretch;gap:6px}.order-work-editor .order-note-compose textarea{flex:1;min-width:0;resize:none}.order-work-editor .order-note-compose button{flex:none;padding:0 10px;height:45px}.order-work-editor [data-note-feedback]:empty{display:none}.order-work-editor [data-note-feedback]{line-height:14px;font-size:11px}
.order-work-editor .order-recent-records{grid-template-columns:repeat(2,minmax(0,1fr))}
/* TR422: distinct product/order tag identities without increasing summary height. */
.order-work-editor .order-sku-tags{display:flex;align-items:center;gap:4px;min-width:0;height:23px}.order-work-editor .order-sku-tags .sku-identity{display:inline-flex;align-items:center;min-width:0;flex:0 1 auto}.order-work-editor .order-sku-tags .sku-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.order-work-editor .order-sku-tags .sku-copy{flex:none}
.order-work-editor [data-product-tags]{min-width:0;max-width:145px;flex:0 1 auto}.order-work-editor .order-identity-tags{display:inline-flex;align-items:center;gap:3px;max-width:100%;height:21px;padding:0 3px;margin:0;border:1px solid #e1e5dc;border-radius:5px;white-space:nowrap;vertical-align:middle;font-size:10px;font-weight:400}.order-work-editor .order-identity-tags small{font-size:10px;flex:none}.order-work-editor .order-identity-tags b{font-size:13px;flex:none}.order-work-editor .order-identity-tags .product-tag-chip{min-width:0;max-width:65px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1px 3px;font-size:10px}.order-work-editor [data-order-tags]{display:inline-block;vertical-align:middle;margin-left:10px;max-width:300px}.order-work-editor [data-order-tags] .order-identity-tags{background:#fff9da}.order-work-editor [data-product-tags] .order-identity-tags{background:#f0f7ef}
.order-work-editor .order-recent-records small{font-size:10px;line-height:17px}
/* TR423: packing default stays beside its input. */
.order-work-editor .order-packing-inline{display:flex;align-items:center;gap:8px}.order-work-editor .order-packing-inline textarea{flex:1;min-width:0;width:auto;resize:none}.order-work-editor .order-packing-inline .order-packing-default{display:inline-flex;flex-direction:row;align-items:center;gap:4px;white-space:nowrap;margin:0;flex:none;font-size:12px}.order-work-editor .order-packing-default input{width:15px;height:15px;margin:0;padding:0}.order-work-editor .order-packing-field>label{display:block;margin-bottom:3px}

/* TR424: readable expanded exception controls. */
.order-work-editor .order-flow-extra[open]>summary{margin-bottom:10px}
.order-work-editor .order-flow-extra .order-work-grid{align-items:start}
.order-work-editor .order-flow-extra textarea[name=fulfillment_reason]{height:64px;min-height:64px;line-height:20px;padding:8px;resize:vertical}
.order-work-editor .order-flow-extra>.order-flow-buttons{margin:10px 0}
.order-work-editor .order-flow-extra>label{margin-top:8px}

/* TR425: independent exception/return dialog. */
.order-exception-dialog .dialog-heading{display:flex;justify-content:space-between;align-items:center}
.order-exception-grid{display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,2fr);gap:24px;margin:16px 0}
.order-exception-grid label{margin-bottom:16px}.order-exception-grid textarea{min-height:150px;resize:vertical}
.order-exception-drop{border:1px dashed #b9bfb0;border-radius:8px;padding:16px;line-height:1.8}
.order-exception-drop input{margin-top:8px}.order-exception-drop [data-photos]{display:flex;flex-wrap:wrap;gap:12px}
.order-exception-drop figure{margin:12px 0 0;display:flex;flex-direction:column;gap:6px}.order-exception-drop img{object-fit:contain}
.order-history-content{min-width:0}.order-history-content>span{display:block;white-space:pre-wrap;overflow-wrap:anywhere}.order-history-content img{object-fit:contain;margin:8px 8px 0 0}
.order-work-editor [data-order-exception]{margin-bottom:8px}
@media(max-width:700px){.order-exception-grid{grid-template-columns:1fr}}

/* TR428 rule-driven highlights, compact exception labels and return lanes. */
.order-work-editor .order-flow-actions{justify-content:space-between;align-items:center}.order-work-editor [data-order-exception]{color:#b42318;border-color:#e5b5af;margin:0;background:white}
.order-exception-badge{color:#b42318;background:#fff1ed;border:1px solid #e9bbb3;padding:2px 6px!important;font-size:11px!important;cursor:pointer}
.order-flow-sidebar .order-flow-nodes{padding-right:var(--return-lanes,24px)}.order-flow-return-path .order-return-marker{pointer-events:all;cursor:pointer}.order-flow-return-path .order-return-marker:focus circle{stroke:#c22;stroke-width:2px}
.order-return-tooltip{position:fixed;z-index:99999;width:310px;white-space:pre-wrap;overflow-wrap:anywhere;background:#fffdf3;border:1px solid #d0bd79;box-shadow:0 3px 12px #0003;padding:12px;border-radius:8px;font-size:12px;pointer-events:none}
.order-more-returns{font-size:11px;margin-top:8px}.order-required-field{background:#fff8d9!important;border-color:#d2ad00!important;box-shadow:0 0 0 1px #e8cc67}
.order-flow-requirements{padding:8px 10px;font-size:12px;line-height:1.8;background:#fffdf2;border-radius:8px;margin-top:8px}.order-flow-requirements span{display:inline-block;margin-left:10px;color:#a85c00}.order-flow-requirements span.ready{color:#358342}.order-flow-requirements small{display:block;color:#856c29}
.order-exception-dialog [data-case-fields] textarea{min-height:64px}.order-exception-dialog [data-case-info]{font-size:12px;white-space:pre-wrap}
/* Compact case fields inside the wide exception dialog. */
.order-exception-dialog [data-case-fields]:not([hidden]){display:grid;grid-template-columns:1fr 1fr;column-gap:12px}
.order-exception-dialog [data-case-fields]>label:first-child,.order-exception-dialog [data-intercept]{grid-column:1/-1}
.order-exception-dialog [data-supplier]:not([hidden]){display:contents}.order-exception-dialog [data-supplier]>label:first-child{grid-column:1/-1}

/* TR429 purchase rounds and linked aftercare. */
.order-origin-purchases{max-height:150px;overflow:auto;border:1px solid #ddd;padding:8px;margin:8px 0}
.order-exception-dialog .order-origin-purchases label,.order-exception-dialog .order-repurchase-check{display:flex;flex-direction:row;align-items:center;gap:8px}.order-exception-dialog .order-origin-purchases input,.order-exception-dialog .order-repurchase-check input{width:16px;flex:none}
.order-purchase-history-list{max-height:180px;overflow:auto}.order-purchase-history-list article{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:5px;border-bottom:1px solid #eee;font-size:12px}.order-purchase-history-list button{font-size:11px;padding:3px 6px}.order-purchase-history h3{font-size:13px}

/* TR430 compact status and required aftercare choices */
.order-internal-state .order-work-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;max-width:190px;min-width:135px;max-height:43px;overflow:hidden}.order-internal-state .order-work-summary .pill{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 4px;line-height:15px;font-size:10px;box-sizing:border-box}
.order-aftercare-required{border:2px solid #e4b900;background:#fffced;border-radius:9px;padding:12px;margin:10px 0}.order-aftercare-required legend{font-weight:700}.order-aftercare-required legend strong{color:#b32922;font-size:12px;margin-left:8px}.order-aftercare-required [data-method-buttons]{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.order-aftercare-required .order-method-option{display:flex;align-items:center;gap:6px;border:1px solid #d8d8ca;padding:8px 10px;border-radius:6px;background:white;cursor:pointer}.order-aftercare-required .order-method-option:has(:checked){border-color:#b78a00;background:#fff0a1}.order-method-option input,.order-method-edit input[type=checkbox]{width:15px;height:15px}.order-aftercare-required small{display:block;margin-top:8px;color:#777}.order-method-edit{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:14px;margin:10px 0}.order-method-edit label{display:flex;align-items:center;gap:8px}.order-spec-default{display:flex;align-items:end;gap:8px}.order-spec-default>label:first-child{flex:1;min-width:0}.order-spec-default .order-inline-default{display:flex;align-items:center;flex-direction:row;gap:4px;white-space:nowrap;padding-bottom:8px}.order-work-editor .order-inline-default input{width:13px;height:13px}.order-archive-photos{display:flex;gap:8px;flex-wrap:wrap}

.order-aftercare-required .order-method-option{flex-direction:row}.order-case-overview{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}

.order-work-editor .order-purchase .order-work-grid>.order-spec-default{grid-column:1/-1}

/* TR431 procurement details, embedded defaults and completed aftercare */
.order-work-editor .order-purchase .order-work-grid>.order-purchase-details-line{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}
.order-work-editor .order-purchase-details-line>label,.order-work-editor .order-purchase-details-line>.wide{grid-column:auto!important;min-width:0;margin:0}
.order-work-editor .order-purchase-details-line .order-spec-default{position:relative;display:block}
.order-work-editor .order-spec-default>.order-inline-default{position:absolute;right:9px;bottom:0;height:28px;padding:0;margin:0;display:flex;align-items:center;gap:4px;font-size:11px}
.order-work-editor .order-spec-default [name=spec]{padding-right:62px}
.order-work-editor .order-purchase-details-line .order-packing-inline{position:relative;display:block}
.order-work-editor .order-purchase-details-line [name=packing]{height:28px;min-height:28px;max-height:28px;resize:none;box-sizing:border-box;padding:5px 62px 5px 9px;line-height:16px;width:100%;font:inherit}
.order-work-editor .order-purchase-details-line .order-packing-default{position:absolute;right:9px;top:0;height:28px;display:flex;align-items:center;gap:4px;margin:0;padding:0;font-size:11px;flex-direction:row;white-space:nowrap}
.order-work-editor .order-packing-default input{height:13px;width:13px;margin:0}
.order-work-editor .order-work-secondary[hidden]{display:none!important}
.order-owner-editor{margin-top:5px}.order-owner-editor button{font-size:11px;padding:3px 6px}.order-owner-editor label{margin-top:5px}.order-owner-editor select{width:100%;max-width:100%;font-size:11px}
.order-purchase-history{margin-top:10px}.order-purchase-history .order-exception-badge.is-complete{color:#16743d;background:#e9f7ed;border-color:#91c9a3}

/* TR432: concise application and independent follow-up */
.order-case-followup .order-exception-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.order-case-application{background:#fafaf6;border:1px solid #dedfd4;border-radius:10px;padding:16px;min-width:0}
.order-case-request{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.6;margin:12px 0;padding:12px;background:#fff5d8;border-radius:6px}
.order-case-application article{border-top:1px solid #ddd;padding:8px 0}
.order-case-application p{overflow-wrap:anywhere;white-space:pre-wrap}
.order-case-supplement{margin-top:12px}.order-case-supplement summary{cursor:pointer;color:#777}
.order-case-complete{background:#ed8b23!important;color:#fff!important;border-color:#ed8b23!important;min-width:100px}
.order-case-followup [name=result_note]{min-height:65px}.order-case-followup [name=explanation]{min-height:100px}
.warehouse-product{display:flex;align-items:flex-start;gap:14px;margin:12px 0}.warehouse-product>div{min-width:0}.warehouse-product img{object-fit:contain;flex:none;cursor:zoom-in}.warehouse-product strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.warehouse-passed{color:#148344;font-weight:600}.warehouse-more-receive{margin-top:16px}.warehouse-more-receive summary{cursor:pointer}

.order-case-followup [data-case-fields]{display:block}.order-case-followup .dialog-footer{gap:10px}.order-case-followup .dialog-footer .primary{margin-left:auto}.order-case-followup .dialog-footer>span{margin-right:auto}

/* TR433: complete two-row states and visible follow-up history */
.order-internal-state .order-work-summary{max-height:none;overflow:visible;row-gap:5px;padding:3px 0;grid-auto-rows:minmax(22px,auto)}
.order-internal-state .order-work-summary .pill{height:auto;min-height:22px;line-height:16px;align-self:stretch}
.order-case-updates{margin-top:12px}.order-case-updates-scroll{max-height:240px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #dedfd4;border-radius:6px;padding:0 10px;margin-top:6px}
.order-result-choices{display:flex;flex-wrap:wrap;gap:6px;margin:5px 0}.order-work-dialog .order-result-choices label{display:inline-flex;flex-direction:row;align-items:center;gap:5px;padding:5px 8px;border:1px solid #ddd;border-radius:6px;margin:0;font-size:12px}.order-result-choices input{width:14px;height:14px;margin:0}.order-case-followup [name=result_note]{width:100%;box-sizing:border-box}
.order-exception-dialog.order-case-followup [data-case-fields]:not([hidden]){display:block}
