.auth-page{background:radial-gradient(circle at 15% 10%,#dcefee 0,#0000 32%),linear-gradient(145deg,#f7faf9,#edf3f4);place-items:center;min-height:100dvh;padding:28px;display:grid}.auth-card{background:#fff;border:1px solid #dbe6e8;border-radius:18px;width:min(430px,100%);padding:34px;box-shadow:0 24px 70px #294b531f}.auth-brand{border-bottom:1px solid #edf1f2;align-items:center;gap:12px;padding-bottom:25px;display:flex}.auth-brand>span{color:#fff;background:#0d8584;border-radius:12px;place-items:center;width:47px;height:47px;display:grid}.auth-brand strong{letter-spacing:.08em;font-size:22px;display:block}.auth-brand small{color:#8498a1;margin-top:2px;display:block}.auth-heading{padding:27px 0 20px}.auth-heading>svg{color:#0d8584;margin-bottom:12px}.auth-heading h1{font-size:25px;font-weight:650}.auth-heading p{color:#718894;margin-top:8px;font-size:14px;line-height:1.7}.auth-form{gap:18px;display:grid}.auth-form>div{gap:8px;display:grid}.auth-form label{color:#425f6d;font-size:14px}.auth-form input{min-height:46px}.auth-form small{color:#7c929c;line-height:1.6}.auth-error{color:#aa4d4d;background:#fff0ef;border-radius:7px;padding:12px 14px;font-size:13px;line-height:1.6}.auth-footnote{text-align:center;color:#8a9ca4;margin-top:24px;font-size:12px}@media (max-width:520px){.auth-page{padding:16px}.auth-card{border-radius:14px;padding:25px 20px}}.filing-footer{z-index:60;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#71858f;white-space:nowrap;background:#ffffffe0;border-radius:6px;gap:16px;max-width:calc(100vw - 24px);padding:5px 11px;font-size:11px;display:flex;position:fixed;bottom:7px;left:50%;transform:translate(-50%)}.filing-footer a:hover{color:#087e83;text-decoration:underline}
.catalog-theme-temu{--catalog-accent:#fa6817;--catalog-soft:#fff3e9;--catalog-border:#f3b38a;--catalog-header:linear-gradient(110deg, #ff650c, #ff8736);--catalog-header-ink:#fff}.catalog-theme-douyin{--catalog-accent:#c81857;--catalog-soft:#f4f9fb;--catalog-border:#48cdd5;--catalog-header:linear-gradient(115deg, #10272e, #283039);--catalog-header-ink:#fff}.catalog-theme-shein{--catalog-accent:#9850c3;--catalog-soft:#fbf4ff;--catalog-border:#ddaae9;--catalog-header:linear-gradient(110deg, #eed3fc 0%, #ffd4ee 42%, #c8e5fe 72%, #b8f4ec 100%);--catalog-header-ink:#18141c}.catalog-theme-alibaba{--catalog-accent:#e74925;--catalog-soft:#fff2eb;--catalog-border:#f5ad95;--catalog-header:linear-gradient(110deg, #f04429, #ff7828);--catalog-header-ink:#fff}.catalog-theme-standard{--catalog-accent:#597581;--catalog-soft:#f1f6f8;--catalog-border:#d4e1e7;--catalog-header:#eaf1f5;--catalog-header-ink:#304f5d}.catalog-brand{white-space:nowrap;flex:none;justify-content:center;align-items:center;gap:7px;line-height:1.05;display:inline-flex}.catalog-brand-wordmark{letter-spacing:-.7px;font-size:24px;font-weight:800}.catalog-brand-shein .catalog-brand-wordmark{color:#18141c;letter-spacing:1.5px}.catalog-brand-caption{letter-spacing:0;max-width:40px;font-size:9px;line-height:1.3}.catalog-brand-icon{width:28px;height:28px}.catalog-brand-standard .catalog-brand-wordmark{font-size:17px;font-weight:650}.catalog-brand-douyin .catalog-brand-wordmark{font-size:20px}.catalog-brand-compact .catalog-brand-wordmark{letter-spacing:-.3px;font-size:14px}.catalog-brand-compact.catalog-brand-shein .catalog-brand-wordmark{letter-spacing:.4px}.catalog-brand-compact .catalog-brand-icon{width:23px;height:23px}.catalog-brand-compact.catalog-brand-douyin .catalog-brand-wordmark,.catalog-brand-compact.catalog-brand-standard .catalog-brand-wordmark{display:none}.catalog-platform-filters{flex-wrap:wrap;gap:10px;margin:6px 0 25px;display:flex}.catalog-filter{border:1px solid var(--catalog-border,#d4e4e7);background:var(--catalog-soft,#edf6f6);color:#3b5260;border-radius:9px;justify-content:center;align-items:center;gap:9px;min-height:43px;padding:10px 13px;font-size:12px;transition:box-shadow .15s,background .15s;display:inline-flex}.catalog-filter>b{background:#ffffffb3;border:1px solid #fff;border-radius:5px;place-items:center;min-width:22px;height:22px;padding:0 4px;font-size:12px;font-weight:600;display:inline-grid}.catalog-filter .catalog-brand{background:var(--catalog-header);min-width:36px;color:var(--catalog-header-ink);border-radius:5px;padding:5px 6px}.catalog-filter.active{outline:2px solid var(--catalog-accent,#138b91);outline-offset:1px}.catalog-filter-all{color:#086f77;padding-left:22px;padding-right:22px;font-weight:650}.catalog-filter-all.active{background:#dceff0}.catalog-filter:hover{box-shadow:0 3px 10px #28495b10}.catalog-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:11px;display:flex}.catalog-view-tabs{align-items:center;gap:6px;display:flex}.catalog-view-tabs>button{color:#66808d;border-bottom:2px solid #0000;min-height:39px;padding:8px 12px;font-size:14px}.catalog-view-tabs>button.active{color:#123f4c;background:#e6f2f2;border-bottom-color:#0b9698;border-radius:6px 6px 0 0;font-weight:650}.catalog-toolbar-actions{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.catalog-toolbar-actions [data-slot=select-trigger]{background:#fff;width:132px;min-height:36px;font-size:13px}.catalog-presentation{background:#fff;border:1px solid #dce5eb;border-radius:7px;display:flex;overflow:hidden}.catalog-presentation>button{color:#7b919e;place-items:center;width:35px;height:34px;display:grid}.catalog-presentation>button[aria-pressed=true]{color:#087e83;background:#e4f2f1}.catalog-display-note{color:#738d9c;align-items:center;gap:7px;margin:13px 0 18px;font-size:12px;line-height:1.7;display:flex}.catalog-load-error{color:#9c6326;background:#fff4e6;border-radius:8px;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px;padding:12px 15px;font-size:13px;line-height:1.7;display:flex}.catalog-load-error>button{font-weight:600;text-decoration:underline}.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:21px;display:grid}.style-catalog .catalog-style-card{border:1px solid var(--catalog-border);background:linear-gradient(#fff 65%, var(--catalog-soft));border-radius:12px;min-width:0;box-shadow:0 2px 4px #243e4b04}.style-catalog .catalog-style-card.selected{outline-offset:2px;outline:3px solid #1a979b}.catalog-card-brandbar{background:var(--catalog-header);min-height:59px;color:var(--catalog-header-ink);align-items:center;gap:10px;padding:12px 14px;display:flex}.catalog-theme-douyin .catalog-card-brandbar{border-left:4px solid #22d5d3;border-right:4px solid #f13b76;padding-left:10px;padding-right:10px}.catalog-card-category{text-overflow:ellipsis;white-space:nowrap;opacity:.9;border-left:1px solid;max-width:65px;padding-left:10px;font-size:11px;overflow:hidden}.catalog-select{cursor:pointer;white-space:nowrap;align-items:center;gap:5px;margin-left:auto;font-size:11px;display:flex}.catalog-select [data-slot=checkbox]{background:#fff;border-color:#cbdde3;width:17px;height:17px}.catalog-select [data-slot=checkbox][data-state=checked]{color:#fff;background:#087e83;border-color:#087e83}.style-catalog .catalog-photo-button{background:var(--catalog-soft);padding:10px 10px 0}.style-catalog .catalog-photo-button .style-photo.large{aspect-ratio:3/4;background:#fcfcfb;border:0;border-radius:5px;width:100%;height:auto;overflow:hidden}.style-catalog .style-photo img{object-fit:contain;object-position:center;width:100%;height:100%}.style-catalog .catalog-photo-button .style-photo img{flex:1 1 0;min-height:0;display:block}.style-catalog .catalog-style-card .style-card-body{padding:17px 18px 15px}.style-catalog .catalog-style-card .style-link{overflow-wrap:anywhere;font-size:18px;line-height:1.5}.style-catalog .catalog-style-card .style-card-body>p{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.style-catalog .catalog-style-card .style-card-meta{flex-wrap:wrap;align-items:baseline;margin-top:18px}.style-catalog .catalog-style-card .style-card-meta b{color:var(--catalog-accent);font-size:21px}.style-catalog .catalog-style-card .style-card-footer{border-color:#dce6e9;flex-wrap:wrap;gap:8px;margin-top:15px}.style-catalog .catalog-style-card .style-card-actions{flex-wrap:wrap;gap:9px;margin-left:auto;display:flex}.style-catalog .catalog-style-card:hover{box-shadow:0 5px 16px #203c4a14}.catalog-table{margin-bottom:0;overflow:hidden}.catalog-table [data-slot=table-row]>[data-slot=table-cell]:first-child{border-left:3px solid var(--catalog-accent)}.catalog-table .catalog-brand{color:var(--catalog-header-ink);background:var(--catalog-header);border-radius:5px;padding:6px}.catalog-table .product-cell .style-photo{background:var(--catalog-soft);width:53px;height:67px}.catalog-table .table-actions{align-items:center;display:flex}.catalog-table .style-card-actions{gap:5px;display:flex}.catalog-groups{gap:21px;display:grid}.catalog-group{border:1px solid var(--catalog-border);background:var(--catalog-soft);border-radius:13px;overflow:hidden}.catalog-group-heading{background:var(--catalog-header);min-height:65px;color:var(--catalog-header-ink);align-items:center;gap:12px;padding:9px 17px;display:flex}.catalog-theme-douyin>.catalog-group-heading{border-left:6px solid #23d2d9;border-right:6px solid #f63e7c}.catalog-group-sort{opacity:.8;place-items:center;padding:8px 0;display:grid}.catalog-group-toggle{text-align:left;align-items:center;gap:18px;width:100%;min-width:0;padding:5px 0;display:flex}.catalog-group-toggle>strong{border-left:1px solid;padding-left:17px;font-size:15px;font-weight:550}.catalog-group-count{color:#3f535d;white-space:nowrap;background:#ffffffd9;border-radius:16px;padding:5px 11px;font-size:12px}.catalog-group-toggle>svg:last-child{margin-left:auto;transition:transform .16s}.catalog-group-toggle>svg.is-open{transform:rotate(180deg)}.catalog-group-content{padding:17px}.catalog-group-empty{text-align:center;color:#879ba6;padding:20px;font-size:13px}.catalog-group .pagination-bar{padding-bottom:0}.catalog-sort-sheet[data-slot=sheet-content]{background:#fff;gap:0;width:min(430px,100vw);max-width:430px}.catalog-sort-sheet [data-slot=sheet-header]{padding:26px 26px 12px}.catalog-sort-content{padding:10px 24px 24px;overflow-y:auto}.catalog-sort-list{gap:12px;margin:0 0 20px;padding:0;list-style:none;display:grid}.catalog-sort-row{border:1px solid var(--catalog-border);background:var(--catalog-soft);border-radius:10px;align-items:center;gap:8px;min-height:71px;padding:11px 10px;display:flex}.catalog-sort-row.dragging{opacity:.4}.catalog-sort-number{color:#617b89;font-size:12px;font-weight:600}.catalog-drag-grip{color:#8a9daa;cursor:grab}.catalog-sort-row .catalog-brand{background:var(--catalog-header);color:var(--catalog-header-ink);border-radius:7px;min-width:42px;min-height:37px;padding:8px 7px}.catalog-sort-row>strong{flex:1;font-size:13px;font-weight:600}.catalog-order-buttons{flex:none;gap:2px;display:flex}.catalog-order-buttons [data-slot=button]{color:#5e7a89;background:#fff;border:1px solid #e0e8ec;border-radius:5px;width:26px;height:26px;min-height:26px}.catalog-order-buttons [data-slot=button]:disabled{opacity:.35}.catalog-save-order[data-slot=button]{width:100%;height:42px;margin-top:10px}.catalog-sort-help{color:#7f96a2;margin-top:22px;font-size:12px;line-height:1.9}.catalog-order-announcement{color:#7b919e;font-size:11px;line-height:1.8}.style-catalog button:focus-visible{outline-offset:3px;outline:2px solid #14898f}@media (max-width:1450px){.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:1050px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-card-category{display:none}.catalog-toolbar{align-items:flex-start}}@media (max-width:640px){.catalog-platform-filters{gap:8px;margin-bottom:19px}.catalog-filter{gap:6px;padding:8px;font-size:11px}.catalog-filter .catalog-brand{padding:4px}.catalog-filter>b{min-width:18px;height:19px}.catalog-toolbar-actions{width:100%}.catalog-toolbar-actions>[data-slot=button]{margin-left:auto}.catalog-grid{gap:12px}.catalog-card-brandbar{gap:5px;min-height:48px;padding:9px}.catalog-card-brandbar .catalog-brand-wordmark{font-size:18px}.catalog-card-brandbar .catalog-brand-icon{width:22px;height:22px}.catalog-card-brandbar .catalog-brand-caption,.catalog-select>span{display:none}.catalog-brand-douyin .catalog-brand-wordmark{font-size:16px}.style-catalog .catalog-photo-button{padding:6px 6px 0}.style-catalog .catalog-style-card .style-card-body{padding:11px}.style-catalog .catalog-style-card .style-link{font-size:15px}.style-catalog .catalog-style-card .style-card-meta{gap:5px;margin-top:11px;display:flex}.style-catalog .catalog-style-card .style-card-meta b{font-size:18px}.style-catalog .catalog-style-card .style-card-footer{margin-top:10px;padding-top:10px}.style-catalog .catalog-style-card .style-card-actions{gap:5px}.catalog-group-heading{gap:7px;min-height:58px;padding:9px 11px}.catalog-group-toggle{flex-wrap:wrap;gap:9px}.catalog-group-toggle>strong{padding-left:9px;font-size:12px}.catalog-group-count{padding:4px 7px;font-size:11px}.catalog-group-toggle .catalog-brand-wordmark{font-size:20px}.catalog-group-content{padding:10px}.catalog-group .pagination-bar{flex-wrap:wrap;padding-left:0;padding-right:0}.catalog-sort-content{padding-left:16px;padding-right:16px}}@media (max-width:370px){.catalog-grid{grid-template-columns:minmax(0,1fr)}}
.yicang-brand-logo,.auth-brand>.yicang-brand-logo{background:#f5f4e9;border:1px solid #ffffff73;border-radius:12px;flex:0 0 48px;place-items:center;width:48px;height:48px;padding:2px;display:grid;box-shadow:0 2px 8px #0b222b1f}.yicang-brand-logo>img{object-fit:contain;width:100%;height:100%;display:block}.auth-brand>.yicang-brand-logo{border-color:#e4e5d8;flex-basis:52px;width:52px;height:52px}
.production-workspace{--prod-line:#dbe6ef;--prod-teal:#07838a;--prod-ink:#153347;--prod-muted:#7290a7;color:var(--prod-ink)}.production-cut-style-cell{align-items:center;gap:12px;min-width:210px;max-width:320px;display:flex}.production-cut-photo{color:#8ba1b1;background:#fff;border:1px solid #dce7ee;border-radius:8px;flex:none;place-items:center;width:72px;height:88px;transition:border-color .15s,box-shadow .15s;display:grid;overflow:hidden}a.production-cut-photo:hover{border-color:#07838a;box-shadow:0 2px 10px #0b667020}a.production-cut-photo:focus-visible{outline-offset:3px;outline:2px solid #07838a}.production-cut-photo .style-photo{background:#fff;border:0;border-radius:0;width:100%;height:100%}.production-cut-photo .style-photo img{object-position:center;width:100%;height:100%;object-fit:contain!important}.production-cut-style-text{min-width:0}.production-cut-style-text strong{overflow-wrap:anywhere;color:#153347;display:block}.production-cut-style-text small{overflow-wrap:anywhere}.production-heading{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:25px;display:flex}.production-heading h1{letter-spacing:-.8px;margin:8px 0 10px;font-size:30px;font-weight:750;line-height:1.3}.production-heading p{color:var(--prod-muted);margin:0;font-size:14px;line-height:1.7}.production-heading .eyebrow{letter-spacing:2px;color:#0099a6;font-size:11px;font-weight:700}.production-heading-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.production-heading-actions button{min-height:42px}.production-tabs{border-bottom:1px solid var(--prod-line);gap:25px;margin-bottom:20px;display:flex;overflow-x:auto}.production-tabs>button{color:#667f94;cursor:pointer;border-bottom:3px solid #0000;flex-shrink:0;padding:12px 8px 15px;font-size:15px;font-weight:600}.production-tabs>button[aria-selected=true]{color:var(--prod-teal);border-color:var(--prod-teal)}.production-tabs>button:focus-visible{outline-offset:-3px;border-radius:4px;outline:2px solid #07838a}.production-filters{grid-template-columns:minmax(220px,1fr) minmax(145px,190px) minmax(145px,170px) 40px;gap:12px;margin-bottom:23px;display:grid}.production-filters .search-box{width:100%;max-width:none}.production-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.production-metric{border:1px solid var(--prod-line);background:#fff;border-radius:13px;align-items:center;gap:14px;padding:20px;display:flex}.production-metric>span{color:#397df8;background:#eff4ff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:46px;height:46px;display:flex}.production-metric>span svg{width:23px;height:23px}.production-metric.teal>span{color:var(--prod-teal);background:#e8f7f5}.production-metric.orange>span{color:#f07a15;background:#fff2e5}.production-metric small{color:#657f93;margin-bottom:3px;font-size:13px;display:block}.production-metric strong{font-variant-numeric:tabular-nums;font-size:28px;line-height:1.25;display:block}.production-metric em{margin-left:6px;font-size:13px;font-style:normal;font-weight:400}.production-metric.teal strong{color:var(--prod-teal)}.production-metric.orange strong{color:#e87715}.production-filter-note{color:#7a8d9d;margin:10px 0 20px;font-size:12px;line-height:1.6}.production-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.production-card{border:1px solid var(--prod-line);background:#fff;border-radius:14px;min-width:0;padding:22px}.production-card>.production-style{margin-top:0}.production-card .production-section-title{margin:18px 0 12px}.production-recent{margin-top:22px}.production-recent>.production-section-title{margin-top:0}.production-records{padding:18px 22px}.production-records>.production-filter-note{margin:0 0 15px}.production-style{background:#fafcfd;border:1px solid #e0e8ef;border-radius:11px;align-items:center;gap:16px;margin:20px 0;padding:13px 15px;display:flex}.production-style .style-photo{background:#fff;border-radius:7px;flex:none;width:72px;height:88px}.production-style .style-photo img{object-position:center;width:100%;height:100%;object-fit:contain!important}.production-style>div:not(.style-photo){flex-direction:column;align-items:flex-start;gap:4px;min-width:0;display:flex}.production-style strong{color:#17364a;overflow-wrap:anywhere;font-size:20px}.production-style span:not(.catalog-brand):not(.catalog-brand-wordmark){color:#71899d;font-size:13px}.production-style>small{color:#71899d;flex:none;margin-left:auto;font-size:12px}.production-style .catalog-brand{max-width:100%;min-height:20px;padding:4px 7px;font-size:10px;line-height:1}.production-style .catalog-brand strong{color:inherit;font-size:11px;line-height:1}.production-theme-temu{background:linear-gradient(110deg,#fff9f1,#fff);border-color:#f6dfc8}.production-theme-douyin{background:linear-gradient(110deg,#f1fcfb,#fff7fa);border-color:#c9e6e7}.production-theme-shein{background:linear-gradient(100deg,#fff1f7,#f4f0ff,#effbf8);border-color:#e6dceb}.production-theme-alibaba{background:linear-gradient(110deg,#fff2e7,#fff);border-color:#f5d1b9}.production-section-title{justify-content:space-between;align-items:center;gap:12px;margin:25px 0 14px;display:flex}.production-section-title h3,.production-form-section h3,.production-summary h3,.production-detail h3{align-items:center;gap:9px;margin:0;font-size:16px;font-weight:650;line-height:1.5;display:flex}.production-section-title>span{color:#7991a4;font-size:12px}.production-table-scroll{overscroll-behavior-x:contain;border:1px solid #e0e8ef;border-radius:9px;width:100%;overflow-x:auto}.production-table{border-collapse:separate;border-spacing:0;color:#29475b;font-variant-numeric:tabular-nums;width:100%;font-size:13px}.production-table th{font-weight:600}.production-table thead th{text-align:left;color:#4a667c;white-space:nowrap;background:#f3f7fa}.production-table th,.production-table td{vertical-align:middle;border-bottom:1px solid #e5edf3;padding:12px 13px}.production-table tbody tr:last-child>*{border-bottom:0}.production-table th+th,.production-table td+td{border-left:1px solid #edf2f6}.production-table td small{color:#8798a7;margin-top:3px;font-size:11px;line-height:1.5;display:block}.production-table td strong{font-weight:600}.production-table tfoot>*{color:#087f87;background:#edf8f7;font-weight:650}.production-table tfoot th,.production-table tfoot td{border-top:1px solid #dfedee;border-bottom:0}.production-table tbody tr:hover{background:#fcfefe}.production-table .production-number{font-weight:700}.production-record-table{min-width:720px}.production-row-actions{gap:5px;display:flex}.production-text-link{color:#07818c;cursor:pointer;text-align:left;white-space:nowrap;font-weight:600}.production-text-link:hover{text-decoration:underline}.production-text-link:focus-visible{outline-offset:3px;border-radius:3px;outline:2px solid #07818c}.production-teal{font-weight:600;color:#07838a!important}.production-orange{font-weight:600;color:#e47717!important}.production-invalid{font-size:13px;color:#be333d!important}.production-status{white-space:nowrap;border-radius:30px;padding:4px 9px;font-size:11px;font-weight:500;line-height:1.5;display:inline-flex}.production-status.partial{color:#b86a23;background:#fff1e3}.production-status.complete{color:#087f73;background:#e8f6f0}.production-status.void{color:#77818a;background:#eef1f3}.production-loading{text-align:center;color:#738d9f;padding:55px}.production-spin{animation:1s linear infinite production-spin}@keyframes production-spin{to{transform:rotate(360deg)}}.production-sheet{color:#153347;background:#fff;gap:0!important;width:min(900px,100vw)!important;max-width:min(900px,100vw)!important}.production-sheet.production-cut-sheet{width:min(1240px,100vw)!important;max-width:min(1240px,100vw)!important}.production-sheet [data-slot=sheet-header]{border-bottom:1px solid #e1eaf0;flex-shrink:0;padding:28px 30px 22px}.production-sheet [data-slot=sheet-title]{letter-spacing:-.5px;align-items:center;gap:12px;font-size:25px;line-height:1.4;display:flex}.production-sheet [data-slot=sheet-title] svg{color:#07838a;width:25px;height:25px}.production-sheet [data-slot=sheet-description]{color:#7790a3;margin-top:4px;font-size:13px;line-height:1.7}.production-sheet .sheet-form{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.production-sheet .form-content{flex:1;min-height:0;padding:25px 30px;overflow-y:auto}.production-sheet .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.production-sheet fieldset{border:0;min-width:0;margin:0;padding:0}.production-sheet fieldset:disabled{opacity:.78}.production-sheet .field{flex-direction:column;gap:8px;min-width:0;display:flex}.production-sheet .field label{font-size:13px;font-weight:500}.production-sheet .field.wide{grid-column:1/-1}.production-sheet input,.production-sheet textarea{background:#fff}.production-sheet .readonly-field{background:#f5f8fa;border:1px solid #dce7ef;border-radius:7px;justify-content:space-between;align-items:center;gap:10px;min-height:38px;padding:8px 12px;font-size:13px;display:flex}.production-sheet .readonly-field small{color:#8599a9;font-size:11px}.production-sheet .secondary{color:#7990a2;font-size:12px;line-height:1.7}.production-sheet .production-matrix{min-width:480px}.production-matrix th:first-child{min-width:120px}.production-matrix td:not(:first-child),.production-matrix th:not(:first-child){text-align:center;min-width:85px}.production-matrix input{text-align:center;appearance:textfield;min-width:60px;max-width:90px;margin:auto;padding:6px}.production-matrix input::-webkit-outer-spin-button{appearance:none;margin:0}.production-matrix input::-webkit-inner-spin-button{appearance:none;margin:0}.production-matrix input[aria-invalid=true]{background:#fff3f3;border-color:#d65a5a}.production-color{overflow-wrap:anywhere;align-items:center;gap:8px;max-width:200px;display:flex}.production-color i{border:1px solid #0000000c;border-radius:50%;flex:none;width:12px;height:12px;display:block}.production-placeholder{color:#7794a5;background:#f8fbfc;border:1px dashed #cbdce6;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:190px;margin:20px 0;padding:30px;font-size:13px;display:flex}.production-placeholder strong{color:#3d6778;font-weight:500}.production-placeholder span{text-align:center;font-size:12px}.production-info,.production-alert{border-radius:9px;align-items:flex-start;gap:10px;margin:16px 0;padding:13px 15px;font-size:12px;line-height:1.8;display:flex}.production-info{color:#28606b;background:#eaf7f7}.production-alert{color:#925019;background:#fff3e7}.production-info svg{flex:none;margin-top:2px}.production-info small{color:#7696a1;font-size:12px;display:block}.production-cut-layout{background:#f6f9fb;grid-template-columns:minmax(0,1fr) 255px;gap:22px;display:grid}.production-form-main{min-width:0}.production-form-section{background:#fff;border:1px solid #e0e9f0;border-radius:11px;margin-bottom:18px;padding:22px}.production-form-section>h3{margin-bottom:16px}.production-form-section .production-section-title{margin-top:0}.production-form-section>.field+.field{margin-top:18px}.production-form-section .production-style{margin-bottom:0}.production-summary{background:#fff;border:1px solid #e0e9f0;border-radius:11px;align-self:start;min-width:0;padding:24px;position:sticky;top:0}.production-summary h3{font-size:19px}.production-big-total{color:#07838a;letter-spacing:-1px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:14px 0 8px;font-size:50px;line-height:1.25;display:block}.production-big-total small{letter-spacing:0;margin-left:7px;font-size:17px;font-weight:400}.production-summary>p{color:#7390a5;font-size:13px}.production-color-totals{border-top:1px solid #e3ebf1;margin-top:18px}.production-color-totals>div{border-bottom:1px solid #e3ebf1;justify-content:space-between;align-items:center;gap:10px;padding:13px 0;font-size:13px;display:flex}.production-color-totals span{overflow-wrap:anywhere}.production-color-totals b{flex:none;font-weight:650}.production-summary-meta{justify-content:space-between;gap:10px;margin:23px 0;font-size:13px;display:flex}.production-summary-meta span{color:#7891a4}.production-summary .production-alert,.production-summary .production-info{margin:13px -5px 0;padding:13px;font-size:12px;line-height:1.8;display:block}.production-summary .production-alert{color:#925019}.production-summary .production-info{color:#28606b}.production-actions{background:#fff;border-top:1px solid #dce7ee;flex-shrink:0;justify-content:space-between;align-items:center;gap:15px;padding:17px 30px;display:flex}.production-actions>div:last-child{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.production-actions button{min-height:42px}.production-actions .entry-total{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.production-actions .entry-total>small{color:#5d7c91;font-size:13px}.production-actions .entry-total strong{color:#07838a;white-space:nowrap;font-size:29px;line-height:1}.production-actions .entry-total strong small{margin-left:7px;font-size:13px;font-weight:500}.production-allocation-heading h3{flex-wrap:wrap}.production-allocation th:not(:first-child),.production-allocation td:not(:first-child){text-align:center;min-width:95px}.production-allocation input{text-align:center;min-width:65px;max-width:85px;margin:auto}.production-allocation th:first-child{min-width:170px}.production-detail>h3{margin:27px 0 13px}.production-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0;display:grid}.production-detail-meta>div{flex-direction:column;gap:6px;min-width:0;display:flex}.production-detail-meta dt{color:#7990a2;font-size:12px}.production-detail-meta dd{overflow-wrap:anywhere;font-size:14px}.production-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8}.production-attachments{flex-wrap:wrap;gap:12px;display:flex}.production-attachments>a{background:#f9fbfc;border:1px solid #e2ebf1;border-radius:8px;justify-content:center;align-items:center;width:105px;height:120px;padding:5px;display:flex}.production-attachments img{object-fit:contain;max-width:100%;max-height:100%}.production-history{border-left:2px solid #d5eae7;flex-direction:column;margin-left:10px;padding-left:20px;display:flex}.production-history>div{align-items:flex-start;gap:12px;padding:8px 0 20px;display:flex;position:relative}.production-history>div>svg{color:#07838a;flex:none}.production-history>div>div{flex-direction:column;flex:1;gap:4px;display:flex}.production-history strong{font-size:13px;font-weight:600}.production-history span,.production-history small{color:#7990a2;font-size:12px}@media (max-width:1400px){.production-overview-grid{grid-template-columns:minmax(0,1fr)}.production-heading{align-items:flex-start}.production-heading-actions{max-width:410px}.production-metric{gap:10px;padding:17px 14px}.production-metric>span{width:39px;height:39px}.production-metric strong{font-size:25px}}@media (max-width:1050px){.production-cut-layout{grid-template-columns:minmax(0,1fr) 220px;gap:16px}.production-summary{padding:18px}.production-form-section{padding:17px}.production-cut-sheet .form-content{padding:18px}.production-heading{flex-direction:column}.production-heading-actions{justify-content:flex-start;max-width:none}.production-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.production-filters{grid-template-columns:minmax(0,1fr) minmax(120px,160px) minmax(120px,160px) 38px}}@media (max-width:760px){.production-cut-layout{flex-direction:column;display:flex}.production-summary{display:none;position:static}.production-sheet .form-content{padding:20px}.production-sheet [data-slot=sheet-header]{padding:24px 22px 18px}.production-sheet [data-slot=sheet-title]{font-size:22px}.production-actions{align-items:flex-start;padding:15px 20px}.production-actions .entry-total{padding-top:6px}.production-actions .entry-total strong{font-size:25px}.production-actions>div:last-child{gap:7px}.production-actions button{padding-left:11px;padding-right:11px;font-size:12px}.production-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px}.production-filters .search-box{grid-column:1/-1}.production-card{padding:16px}.production-style>small{display:none}.production-table th,.production-table td{padding:10px}.production-heading h1{font-size:27px}}@media (max-width:480px){.production-tabs{justify-content:space-between;gap:6px}.production-tabs>button{padding-left:4px;padding-right:4px;font-size:13px}.production-heading-actions{gap:7px;width:100%}.production-heading-actions button{flex:1;padding-left:7px;padding-right:7px;font-size:12px}.production-metric{gap:8px;padding:15px 11px}.production-metric>span{width:31px;height:31px}.production-metric>span svg{width:18px;height:18px}.production-metric small{font-size:11px}.production-metric strong{font-size:23px}.production-metric em{margin-left:3px;font-size:11px}.production-metrics{gap:10px}.production-sheet .form-grid{grid-template-columns:minmax(0,1fr);gap:17px}.production-sheet .form-content{padding:16px}.production-form-section{padding:16px 12px}.production-actions{flex-direction:column;gap:10px}.production-actions>div:last-child{justify-content:flex-end;width:100%}.production-actions .entry-total{padding-top:0}.production-actions .entry-total strong{font-size:24px}.production-actions .entry-total>small{font-size:12px}.production-style{gap:12px;padding:10px}.production-style .style-photo{width:57px;height:74px}.production-style strong{font-size:18px}.production-style span:not(.catalog-brand):not(.catalog-brand-wordmark){font-size:12px}.production-section-title{align-items:flex-start}.production-section-title h3{font-size:15px}.production-detail-meta{gap:15px}.production-filters{gap:9px}}.production-correction-log{gap:10px;margin:12px 0 20px;display:grid}.production-correction-log>div{background:#f3f9fa;border:1px solid #cde6e8;border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:13px;display:flex}.production-correction-log strong{color:#15495a;font-size:13px}.production-correction-log small{color:#6c8596}.production-correction-log p{color:#315667;width:100%;font-size:13px}.production-correction-log span{background:#fff;border-radius:5px;padding:5px 8px;font-size:12px}.production-style-picker [data-slot=input-group]{height:auto;min-height:42px}.production-picker-selected{pointer-events:none;flex:none;order:-1;align-items:center;gap:7px;margin-left:7px;display:flex}.production-picker-selected .style-photo{background:#fff;border:1px solid #e2e9ed;border-radius:4px;width:28px;height:33px;overflow:hidden}.production-picker-selected .style-photo img{object-fit:contain;width:100%;height:100%}.production-picker-selected .style-photo svg{width:15px;height:15px}.production-picker-selected .catalog-brand-wordmark{font-size:11px}.production-picker-selected .catalog-brand-icon{width:16px;height:16px}.production-style-picker-popup{min-width:min(420px,var(--available-width));border:1px solid #dfebee;border-radius:10px}.production-style-option{border:1px solid #0000;border-radius:8px;align-items:center;gap:11px;min-height:68px;margin-bottom:3px;padding:7px 32px 7px 9px;display:flex}.production-style-option[data-highlighted],.production-style-option[data-selected]{background:#eefafa;border-color:#b8e3e3}.production-style-option .style-photo{color:#8aa1b1;background:#fff;border:1px solid #e0e9ef;border-radius:6px;flex:none;place-items:center;width:47px;height:54px;display:grid;overflow:hidden}.production-style-option .style-photo img{object-fit:contain;object-position:center;width:100%;height:100%}.production-style-option .production-option-text{flex-direction:column;flex:1;gap:3px;min-width:0;line-height:1.35;display:flex}.production-style-option .production-option-text strong{color:#17364a;overflow-wrap:anywhere;font-size:13px}.production-style-option .production-option-text small{color:#7790a2;text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.production-style-option .catalog-brand{color:#334856;background:#f4f6f7;border-radius:5px;flex:none;min-width:51px;min-height:27px;padding:5px 6px}.production-style-option .catalog-brand .catalog-brand-wordmark{font-size:12px}.production-style-option .catalog-brand .catalog-brand-icon{width:20px;height:20px}.production-style-option.production-option-temu .catalog-brand,.production-style-option.production-option-alibaba .catalog-brand{color:#ed5e13;background:#fff0e5}.production-style-option.production-option-shein .catalog-brand{color:#331b41;background:linear-gradient(95deg,#fff0ed,#eddcff,#d9f7fc)}.production-style-option.production-option-douyin .catalog-brand{background:#192936}.production-style-option.production-option-temu[data-highlighted],.production-style-option.production-option-alibaba[data-highlighted]{background:#fff7f0;border-color:#f5c4a8}.production-style-option.production-option-shein[data-highlighted]{background:#faf3ff;border-color:#e3c5ed}.production-style-option.production-option-douyin[data-highlighted]{background:#f0fafb;border-color:#9adddf}@media (max-width:480px){.production-style-picker-popup{min-width:var(--anchor-width)}.production-style-option{gap:8px}.production-style-option .catalog-brand{min-width:42px}.production-picker-selected .catalog-brand{display:none}}

.r12-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:14px 0}.r12-tabs{display:flex;gap:6px;margin:18px 0}.r12-tabs [aria-selected=true]{background:#087f87;color:white;border-color:#087f87}.r12-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.r12-summary>div{border:1px solid #d7e7e8;background:#f4fafb;padding:18px;border-radius:12px}.r12-summary span{display:block;color:#668396;font-size:13px}.r12-summary strong{display:block;font-size:30px;color:#07868c;margin-top:8px}.r12-summary small{font-size:14px;font-weight:400}.r12-stock-sheet{width:min(1180px,96vw)!important;max-width:96vw!important}.r12-stock-matrix input,.r12-filter input,.r12-filter select,.r12-reason textarea{border:1px solid #ccdde5;border-radius:8px;background:white;color:#183344;padding:11px 12px;font:inherit}.r12-stock-matrix input{width:94px;text-align:center}.r12-stock-matrix input.r12-changed{border-color:#07959c;background:#e9f8f7;box-shadow:0 0 0 1px #07959c}.r12-stock-matrix input[aria-invalid=true]{border-color:#cb3939;background:#fff0f0}.r12-stock-matrix td small{display:block;white-space:nowrap;font-size:11px;color:#6b8596;margin-top:5px}.r12-stock-matrix tbody th{min-width:165px}.r12-reason{margin-top:24px}.r12-reason label{display:block;font-weight:600;margin-bottom:9px}.r12-reason textarea{width:100%;resize:vertical}.r12-history-entry{border:1px solid #d7e4ec;padding:16px 18px;margin:14px 0;border-radius:10px;background:#fff}.r12-history-entry summary{cursor:pointer;display:flex;gap:16px;justify-content:space-between}.r12-history-entry p{margin:12px 0}.r12-history-entry small{display:block;color:#7890a1;margin:6px 0 12px}.r12-filter input{flex:1;min-width:220px}.r12-filter select{min-width:140px}.r12-style-cell .style-photo{width:64px;height:78px}.r12-style-cell span{display:flex;align-items:flex-start;flex-direction:column;gap:5px}.r12-stock-list .production-table td{padding:14px 18px}.r12-empty{padding:32px;text-align:center}.r12-lifecycle-sheet{width:min(670px,96vw)!important;max-width:96vw!important}.r12-lifecycle-sheet h3{margin:20px 0 8px}.r12-stock-sheet input:focus,.r12-reason textarea:focus{outline:2px solid #2dafb5;outline-offset:2px}@media(max-width:640px){.r12-summary{gap:7px}.r12-summary>div{padding:12px 8px}.r12-summary strong{font-size:23px}.r12-history-entry summary{flex-direction:column;gap:4px}.r12-stock-matrix input{width:76px}}

/* 衣仓 r13 — one palette per platform, shared by cards, rows and sheets.
   Status, destructive actions and invalid inputs keep their semantic colours. */
.r13-platform-temu {
  --brand-accent:#c84d0a; --brand-line:#f58236; --brand-border:#efb083;
  --brand-soft:#fff0e2; --brand-tint:#fff8f1; --brand-muted:#855d43;
  --brand-surface:linear-gradient(110deg,#ffe2c5 0%,#fff1e3 54%,#fff8ef 100%);
  --brand-band:linear-gradient(110deg,#f5680c,#ff8c37);
  --brand-button:#c84d0a; --brand-button-ink:#fff; --brand-ink:#713409;
}
.r13-platform-shein {
  --brand-accent:#8142ae; --brand-line:#ae70cc; --brand-border:#d4b3e4;
  --brand-soft:#f4eafb; --brand-tint:#fcf7ff; --brand-muted:#77568c;
  --brand-surface:linear-gradient(110deg,#fce1ef 0%,#eee2fa 48%,#def6ef 100%);
  --brand-band:linear-gradient(100deg,#ec87bf,#af8bdb 52%,#71d0c5);
  --brand-button:#8142ae; --brand-button-ink:#fff; --brand-ink:#452058;
}
.r13-platform-douyin {
  --brand-accent:#087982; --brand-line:#20b5bf; --brand-border:#82cdd4;
  --brand-soft:#e6f8f8; --brand-tint:#f2fbfc; --brand-muted:#476c78;
  --brand-surface:linear-gradient(105deg,#d7f5f7 0%,#edf4fb 50%,#fce3ed 100%);
  --brand-band:linear-gradient(95deg,#21d7dc 0%,#45bfca 45%,#fa5d90 100%);
  --brand-button:#152f3b; --brand-button-ink:#fff; --brand-ink:#143a47;
}
.r13-platform-alibaba {
  --brand-accent:#bd391f; --brand-line:#ef6540; --brand-border:#edac93;
  --brand-soft:#ffebe2; --brand-tint:#fff6ef; --brand-muted:#875441;
  --brand-surface:linear-gradient(110deg,#ffdbce 0%,#ffecdf 55%,#fff4e8 100%);
  --brand-band:linear-gradient(110deg,#e74525,#f77936);
  --brand-button:#bd391f; --brand-button-ink:#fff; --brand-ink:#792b1a;
}
.r13-platform-standard,.r13-neutral {
  --brand-accent:#087d83; --brand-line:#a8cdd0; --brand-border:#d7e5ec;
  --brand-soft:#f1f7f8; --brand-tint:#fafcfd; --brand-muted:#627f8f;
  --brand-surface:#f7fafb; --brand-band:#d5e7ea;
  --brand-button:#087d83; --brand-button-ink:#fff; --brand-ink:#183b4d;
}
.r13-platform {
  --catalog-accent:var(--brand-accent); --catalog-soft:var(--brand-soft);
  --catalog-border:var(--brand-border);
}

/* A visible badge even in compact locations; wordmark is never icon-only. */
body .catalog-brand {
  display:inline-flex; flex-direction:row; align-items:center; justify-content:center;
  flex:none; gap:6px; padding:8px 11px; min-height:38px; border-radius:8px;
  white-space:nowrap; line-height:1.1; box-shadow:0 1px 2px #24374812;
}
body .catalog-brand.catalog-brand-temu,body .r13-platform .catalog-brand.catalog-brand-temu {background:#f5680c;color:#fff;border:1px solid #fa781b}
body .catalog-brand.catalog-brand-shein,body .r13-platform .catalog-brand.catalog-brand-shein {background:#fff;color:#16121d;border:1px solid #dcbbe8;box-shadow:0 2px 0 #dcbbe859}
body .catalog-brand.catalog-brand-douyin,body .r13-platform .catalog-brand.catalog-brand-douyin {background:#112934;color:#fff;border-left:2px solid #24d9df;border-right:2px solid #fc588b}
body .catalog-brand.catalog-brand-alibaba,body .r13-platform .catalog-brand.catalog-brand-alibaba {background:#df4929;color:#fff;border:1px solid #ea5d37}
body .catalog-brand.catalog-brand-standard {background:#eff5f7;color:#365363}
body .catalog-brand .catalog-brand-wordmark {display:block;font-size:22px;font-weight:850}
body .catalog-brand-shein .catalog-brand-wordmark {color:#16121d;letter-spacing:1px}
body .catalog-brand-compact {min-height:29px;padding:5px 8px;min-width:58px;border-radius:6px;gap:4px}
body .catalog-brand-compact .catalog-brand-wordmark {display:block;font-size:13px;letter-spacing:.15px}
body .catalog-brand-compact .catalog-brand-icon {width:20px;height:20px}
body .catalog-brand-caption {font-size:10px;line-height:1.2}
body .catalog-brand-compact.catalog-brand-douyin .catalog-brand-wordmark {display:block}
body .r13-platform .catalog-brand:is(.catalog-brand-temu,.catalog-brand-alibaba,.catalog-brand-douyin) .catalog-brand-wordmark {color:#fff}

/* Product cards, groups and category controls. */
body .style-catalog .catalog-style-card {background:var(--brand-surface,var(--catalog-soft));border-width:1px;box-shadow:0 3px 13px #253d4e0c}
body .style-catalog .catalog-style-card .style-card-body {background:var(--brand-surface,var(--catalog-soft));border-top:1px solid var(--brand-border);padding:18px}
body .catalog-card-brandbar {min-height:65px;padding:12px 15px}
body .catalog-theme-shein .catalog-card-brandbar {background:var(--brand-surface);border-top:5px solid #b990da}
body .catalog-theme-douyin .catalog-card-brandbar {border-left:5px solid #25dbe0;border-right:5px solid #fd5b91}
body .catalog-card-brandbar .catalog-brand {box-shadow:none}
body .style-catalog .catalog-photo-button {background:var(--brand-surface,var(--catalog-soft));padding:12px}
body .style-catalog .catalog-photo-button .style-photo.large {border-radius:7px;box-shadow:0 0 0 1px #ffffffd9}
body .style-catalog .catalog-style-card .style-card-footer {border-color:var(--brand-border)}
body .catalog-group {background:var(--brand-surface,var(--catalog-soft));border-width:2px}
body .catalog-group-content {background:var(--brand-surface,var(--catalog-soft))}
body .catalog-filter {background:var(--brand-surface,var(--catalog-soft));border-color:var(--brand-border,var(--catalog-border));min-height:49px}
body .catalog-filter.active {outline-color:var(--brand-accent,var(--catalog-accent));box-shadow:0 3px 10px #1b39491a}
body .catalog-sort-row {background:var(--brand-surface,var(--catalog-soft));border-left:5px solid var(--brand-line,var(--catalog-accent))}

/* Every cell in a platform row participates, including stock and actions. */
body :is(.r13-stock-row,.r13-record-row,.catalog-table tr.r13-platform) {background:var(--brand-surface);color:#213747}
body :is(.r13-stock-row,.r13-record-row,.catalog-table tr.r13-platform)>td {background:transparent;border-color:var(--brand-border);padding-top:17px;padding-bottom:17px}
body :is(.r13-stock-row,.r13-record-row,.catalog-table tr.r13-platform)>td:first-child {border-left:5px solid var(--brand-line)}
body :is(.r13-stock-row,.r13-record-row,.catalog-table tr.r13-platform)>td:last-child {border-right:2px solid var(--brand-border)}
body :is(.r13-stock-row,.r13-record-row,.catalog-table tr.r13-platform):hover {box-shadow:inset 0 0 0 1px var(--brand-line)}
body .r13-stock-row .stock-quantity {font-size:25px;color:var(--brand-ink);font-weight:800}
body .r13-platform .product-cell .style-photo {background:#fff;border:1px solid var(--brand-border);border-radius:8px;flex:none}
body .r13-platform .product-cell :is(b,strong),body .r13-platform .production-cut-style-text>strong {color:var(--brand-ink)}
body .r12-style-cell .catalog-brand {flex-direction:row;align-items:center;gap:4px}
body .r13-stock-row .product-cell small {color:var(--brand-muted)}
body .r13-stock-row .status-pill {box-shadow:0 0 0 1px #ffffffb3}

/* Buttons follow their surrounding platform. Destructive variants and
   delete-button remain red; status pills never inherit brand colours. */
body .r13-platform [data-slot=button][data-variant=default] {background:var(--brand-button);border-color:var(--brand-button);color:var(--brand-button-ink);box-shadow:0 2px 3px #20344212}
body .r13-platform [data-slot=button][data-variant=outline]:not(.delete-button) {background:#ffffffde;border-color:var(--brand-border);color:var(--brand-ink)}
body .r13-platform [data-slot=button][data-variant=ghost]:not(.delete-button) {color:var(--brand-ink)}
body .r13-platform [data-slot=button]:not(:disabled):hover {filter:brightness(.97)}
body .r13-platform-douyin [data-slot=button][data-variant=default] {border-left:2px solid #25dbe0;border-right:2px solid #fd5b91}
body .r13-platform [data-slot=button]:focus-visible {outline:2px solid var(--brand-accent);outline-offset:3px}

/* Searchable dropdowns use a full-width coloured tile for EVERY option. */
body .production-style-picker.r13-platform>[data-slot=input-group] {background:var(--brand-tint);border-color:var(--brand-line);box-shadow:inset 3px 0 var(--brand-line)}
body .production-style-picker-popup {background:#fff;padding:7px;border:1px solid #d4e1e7;box-shadow:0 14px 36px #20344225}
body .production-style-option {background:var(--brand-surface,#f7fafb);border:1px solid var(--brand-border,#d7e5ec);border-left:4px solid var(--brand-line,#d7e5ec);margin:4px 0 7px;min-height:80px;padding:10px 33px 10px 10px;gap:12px}
body .production-style-option[data-highlighted],body .production-style-option[data-selected] {background:var(--brand-surface,#f7fafb);border-color:var(--brand-line,#087f83);box-shadow:inset 0 0 0 1px var(--brand-line,#087f83)}
body .production-style-option .style-photo {width:51px;height:62px;background:#fff;border-color:var(--brand-border);border-radius:7px}
body .production-style-option .production-option-text strong {color:var(--brand-ink,#17364a);font-size:14px}
body .production-style-option .production-option-text small {color:var(--brand-muted,#7790a2);font-size:12px}
body .production-style-option .catalog-brand {min-width:61px;min-height:32px;padding:6px 8px}
body .production-picker-selected {gap:6px;margin-left:9px}
body .production-picker-selected .style-photo {width:29px;height:35px;border-color:var(--brand-border)}
body .production-picker-selected .catalog-brand {min-width:45px;padding:4px 5px;min-height:25px}
body .production-picker-selected .catalog-brand-wordmark {font-size:11px}
body .production-picker-selected .catalog-brand-icon {width:16px;height:16px}

/* Factory overview cards and shared chosen-style headers. */
body .production-card.r13-platform {background:var(--brand-surface);border:1px solid var(--brand-border);border-top:5px solid var(--brand-line);box-shadow:0 4px 13px #193b490a}
body .production-style.r13-platform {background:var(--brand-surface);border:1px solid var(--brand-border);border-left:5px solid var(--brand-line);padding:15px 17px;gap:16px}
body .production-style.r13-platform-douyin {border-right:3px solid #f788ad}
body .production-style.r13-platform>.style-photo {width:65px;height:81px;border:1px solid #fff;background:#fff;border-radius:7px;flex:none}
body .production-style.r13-platform>div>strong {color:var(--brand-ink);font-size:21px;margin-top:6px}
body .production-style.r13-platform>div>span,body .production-style.r13-platform>small {color:var(--brand-muted)}
body .production-cut-style-text .catalog-brand {margin-bottom:6px}
body .r13-record-row td>.catalog-brand {margin:0 7px 5px 0;vertical-align:middle}
body .production-card.r13-platform .production-style {margin:0 0 18px;box-shadow:none;background:#ffffff7d}
body .production-card.r13-platform .production-section-title h3 {color:var(--brand-ink)}
body .production-card.r13-platform .production-table {background:#ffffffbb;border-color:var(--brand-border)}
body .production-card.r13-platform .production-table th {background:var(--brand-soft);color:var(--brand-ink);border-color:var(--brand-border)}

/* Explicitly selected-style sheet scope: visual changes only. */
body .r13-sheet.r13-platform {border-top:5px solid var(--brand-line)}
body .r13-sheet.r13-platform>[data-slot=sheet-header] {background:var(--brand-surface);border-bottom:1px solid var(--brand-border)}
body .r13-sheet.r13-platform [data-slot=sheet-title] {color:var(--brand-ink)}
body .r13-sheet.r13-platform [data-slot=sheet-title]>svg {color:var(--brand-accent)}
body .r13-sheet.r13-platform [data-slot=sheet-description] {color:var(--brand-muted)}
body .r13-sheet.r13-platform .sheet-actions {background:var(--brand-surface);border-color:var(--brand-border)}
body .r13-sheet.r13-platform .form-content {background:var(--brand-tint)}
body .r13-sheet.r13-platform .production-form-section {background:#fff;border-color:var(--brand-border)}
body .r13-sheet.r13-platform .production-summary {border:1px solid var(--brand-border);background:var(--brand-surface)}
body .r13-sheet.r13-platform :is(.entry-total strong,.production-big-total strong,.detail-stock strong,.sku-preview strong) {color:var(--brand-accent)}
body .r13-sheet.r13-platform .r12-summary>div {background:var(--brand-surface);border-color:var(--brand-border);border-top:3px solid var(--brand-line)}
body .r13-sheet.r13-platform .r12-summary strong {color:var(--brand-ink)}
body .r13-sheet.r13-platform .r12-summary span {color:var(--brand-muted)}
body .r13-sheet.r13-platform .r12-tabs [aria-selected=true] {background:var(--brand-button);color:#fff;border-color:var(--brand-button)}
body .r13-sheet.r13-platform .entry-style {background:var(--brand-surface);border:1px solid var(--brand-border);border-left:5px solid var(--brand-line);border-radius:11px;padding:16px}
body .r13-sheet.r13-platform .entry-style>div {display:flex;flex-direction:column;align-items:flex-start;gap:5px}
body .r13-sheet.r13-platform .detail-hero {background:var(--brand-surface);padding:22px;border:1px solid var(--brand-border);border-radius:13px}
body .r13-sheet.r13-platform .detail-code-row {flex-wrap:wrap;gap:12px}
body .r13-sheet.r13-platform .detail-code-row h2 {color:var(--brand-ink)}
body .r13-sheet.r13-platform .color-image-card.complete {border-color:var(--brand-border);background:var(--brand-surface)}

/* Single-style quantity grids: tinted headers, colour column and totals.
   Editable cells remain white and every uploaded image keeps object-fit:contain. */
body :is(.r13-sheet.r13-platform,.r13-matrix.r13-platform) :is(.matrix,.production-matrix) {border-color:var(--brand-border)}
body :is(.r13-sheet.r13-platform,.r13-matrix.r13-platform) :is(.matrix,.production-matrix) thead :is(th,td) {background:var(--brand-surface);color:var(--brand-ink);border-color:var(--brand-border);font-weight:750}
body :is(.r13-sheet.r13-platform,.r13-matrix.r13-platform) :is(.matrix,.production-matrix) tbody tr>:first-child {background:var(--brand-surface);color:var(--brand-ink);border-color:var(--brand-border)}
body :is(.r13-sheet.r13-platform,.r13-matrix.r13-platform) :is(.matrix,.production-matrix) :is(tfoot th,tfoot td,.matrix-total) {background:var(--brand-soft);color:var(--brand-ink);border-color:var(--brand-border)}
body :is(.r13-sheet.r13-platform,.r13-matrix.r13-platform) :is(.matrix,.production-matrix) input:not([aria-invalid=true]) {background:#fff;border-color:var(--brand-border);color:#183344}
body :is(.r13-sheet.r13-platform,.r13-matrix.r13-platform) :is(.matrix,.production-matrix) input:not([aria-invalid=true]):focus {outline:2px solid var(--brand-accent);outline-offset:1px}
body .r13-sheet.r13-platform .r12-stock-matrix input.r12-changed:not([aria-invalid=true]) {background:var(--brand-soft);border-color:var(--brand-accent);box-shadow:0 0 0 1px var(--brand-accent)}
body .r13-platform :is(.style-photo img,.detail-photo img,.sku-color-label img,.sku-thumb-link img) {object-fit:contain}

@media(max-width:700px) {
  body .production-style.r13-platform {gap:10px;padding:11px}
  body .production-style.r13-platform>.style-photo {width:49px;height:64px}
  body .production-style.r13-platform>div>strong {font-size:18px}
  body .production-style-option {gap:8px;min-height:73px;padding-left:7px}
  body .production-style-option .style-photo {width:42px;height:54px}
  body .production-style-option .catalog-brand {min-width:48px;padding:5px}
  body .production-style-option .catalog-brand-wordmark {font-size:11px}
  body .production-style-option .catalog-brand-icon {width:17px;height:17px}
  body .production-picker-selected .catalog-brand {display:inline-flex}
  body .r13-sheet.r13-platform .detail-hero {padding:13px}
}
@media(prefers-reduced-motion:reduce) {
  body .r13-platform * {scroll-behavior:auto}
}

/* r14: full-page receipt and live inventory comparison; no modal overlay. */
.r14-return-page {--r14-line:#d6e5ed;min-width:0;max-width:none;width:100%;background:none;box-shadow:none;border:0;position:relative;}
.r14-return-page .production-heading {margin-bottom:22px;}
.r14-return-page .production-heading h1 {font-size:28px;line-height:1.3;}
.r14-selector {border:1px solid var(--brand-border,var(--r14-line));background:var(--brand-surface,#fff);border-radius:14px;padding:18px;margin-bottom:18px;}
.r14-fields {display:grid;grid-template-columns:2fr 1.2fr 1fr 1fr;gap:16px;margin:0 0 14px;border:0;padding:0;}
.r14-fields .field {min-width:0;}
.r14-selector .production-style {padding:10px 14px;margin:0 0 10px;}
.r14-selector .production-style .style-photo {width:55px;height:66px;}
.r14-metrics {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;}
.r14-metric {background:#fff;border:1px solid var(--r14-line);border-radius:13px;display:flex;align-items:center;gap:14px;padding:17px;min-width:0;}
.r14-metric-icon {display:grid;place-items:center;background:#edf5ff;border-radius:50%;width:46px;height:46px;flex-shrink:0;color:#327bf5;}
.r14-metric strong {display:block;font-size:29px;line-height:1.3;color:#18364a;white-space:nowrap;}
.r14-metric small {font-size:13px;font-weight:400;color:#5a7890;}
.r14-metric.orange strong {color:#e96d09;}.r14-metric.orange .r14-metric-icon {background:#fff4e9;color:#f27912;}
.r14-metric.teal strong {color:#078a91;}.r14-metric.teal .r14-metric-icon {background:#e8f8f7;color:#008b92;}
.r14-metric.dark .r14-metric-icon {background:#133242;color:white;box-shadow:2px 0 0 #ef80b3,-2px 0 0 #55d8df;}
.r14-scope {margin:10px 0 20px;}
.r14-section {background:#fff;border:1px solid var(--brand-border,var(--r14-line));border-radius:14px;padding:20px;margin:18px 0;min-width:0;}
.r14-section-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px;}
.r14-section h3 {font-size:20px;margin:0;color:#183345;}
.r14-section .secondary {font-size:12px;line-height:1.7;margin-top:10px;}
.r14-section-heading .secondary {margin:0;}
.r14-orders-scroll {max-height:300px;}.r14-orders {min-width:790px;}
.r14-orders td {padding:12px;text-align:center;}.r14-orders td:first-child,.r14-orders td:nth-child(2){text-align:left;}
.r14-orders thead th {position:sticky;top:0;z-index:1;}
.r14-number-value {font-weight:600;overflow-wrap:anywhere;}
.r14-pencil {height:27px!important;width:26px!important;padding:0!important;margin-left:5px;color:#087f89;font-size:20px;}
.r14-matrix {min-width:760px;width:100%;table-layout:fixed;}
.r14-matrix th,.r14-matrix td {padding:9px;text-align:center;vertical-align:middle;}
.r14-matrix thead th:first-child {width:240px;text-align:left;padding-left:18px;}
.r14-matrix .r14-color {width:140px;background:#fff!important;}
.r14-color .sku-color-label {display:flex;align-items:center;justify-content:flex-start;gap:7px;}
.r14-color img {width:48px!important;height:62px!important;object-fit:contain!important;}
.r14-row-label {display:inline-block;border-radius:20px;padding:5px 12px;white-space:nowrap;font-size:12px;font-weight:600;}
.r14-unreturned .r14-row-label {background:#fff1de;color:#e56c0c;}.r14-unreturned td {background:#fffcf7!important;color:#a35517;}
.r14-receive .r14-row-label {background:#153546;color:white;}.r14-receive th,.r14-receive td {background:#f6fbff!important;}
.r14-stock .r14-row-label {background:#dff7f6;color:#007f86;}.r14-stock th,.r14-stock td {background:#edf9f8!important;color:#087e87;}
.r14-matrix input {text-align:center;min-width:50px;background:#fff;height:37px;}
.r14-matrix input[aria-invalid=true] {border-color:#e15050;background:#fff3f3;}
.r14-matrix input:disabled {background:#f1f4f7;color:#8d9fac;}
.r14-row-total {font-weight:700;}
.r14-allocation {margin-top:16px;max-height:380px;}.r14-allocation table {min-width:600px;}.r14-allocation td {min-width:100px;}.r14-allocation input {min-width:70px;text-align:center;}
.r14-optional summary,.r14-number-history summary {cursor:pointer;font-weight:600;color:#315466;}
.r14-optional fieldset {margin-top:16px;border:0;padding:0;}.r14-optional .production-upload {margin-top:12px;}
.r14-footer {position:sticky;bottom:0;z-index:8;background:rgba(255,255,255,.98);border-top:1px solid var(--r14-line);box-shadow:0 -5px 20px #19324208;padding:16px 0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:center;}
.r14-footer-totals,.r14-footer-actions {display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
.r14-footer-totals>strong {font-size:14px;}.r14-footer-totals>strong>b {font-size:30px;color:#007d88;margin:0 6px;}
.r14-stock-preview,.r14-pending-preview {padding:10px 12px;border:1px solid #b7e7e4;border-radius:8px;color:#07808b;font-size:13px;background:#f0fbfa;}
.r14-pending-preview {border-color:#ffdbb8;color:#d66c0b;background:#fff9f2;}
.r14-footnote {font-size:12px;margin:0 0 12px;}
.r14-number-sheet {max-width:550px!important;width:100%!important;}.r14-number-sheet .field {margin-bottom:18px;}
.r14-number-panel {background:#f7fafc;border:1px solid #deeaef;border-radius:12px;padding:16px;margin:12px 0;}
.r14-number-actions {display:flex;gap:10px;align-items:center;flex-wrap:wrap;}.r14-number-history {margin-top:12px;font-size:13px;}.r14-number-history td {overflow-wrap:anywhere;}
@media(max-width:1150px){.r14-metrics {gap:8px;}.r14-metric {padding:12px;gap:8px;}.r14-metric-icon {width:34px;height:34px;}.r14-metric strong {font-size:24px;}.r14-fields {grid-template-columns:1.5fr 1fr;}.r14-matrix thead th:first-child {width:210px;}}
@media(max-width:650px){.r14-return-page .production-heading h1 {font-size:23px;}.r14-fields {grid-template-columns:1fr;gap:12px;}.r14-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}.r14-metric:last-child {grid-column:1/-1;}.r14-section,.r14-selector {padding:13px;}.r14-section-heading {align-items:flex-start;flex-wrap:wrap;}.r14-section h3 {font-size:18px;}.r14-footer {padding:10px 0;gap:8px;}.r14-footer-totals {gap:7px;font-size:12px;}.r14-footer-totals>strong>b {font-size:24px;}.r14-stock-preview,.r14-pending-preview {padding:6px 8px;}.r14-footer-actions {width:100%;justify-content:flex-end;}.r14-matrix {min-width:720px;}.r14-number-sheet {width:100vw!important;}}

.r14-section-heading {background:var(--brand-surface,#f7fafb);border-bottom:1px solid var(--brand-border,#d6e5ed);padding:13px 20px;margin:-20px -20px 16px;border-radius:14px 14px 0 0;}
@media(max-width:650px){.r14-section-heading {padding:12px 13px;margin:-13px -13px 14px;}}

.r14-return-page .production-heading {margin-bottom:16px;}
.r14-selector {padding:14px 16px;margin-bottom:14px;}
.r14-fields {margin-bottom:8px;gap:12px;}
.r14-metric {padding:13px 15px;}
.r14-scope {margin:8px 0 14px;}
.r14-section {margin:14px 0;}
.r14-orders td {padding:9px 12px;}
.r14-return-page .production-style-picker img {object-fit:contain;}
.r14-matrix thead th:first-child {width:280px!important;}
.r14-color {white-space:nowrap;}

/* r15: aligned, scroll-persistent size headers and horizontal details. */
.r15-pinned-header{position:fixed;z-index:85;overflow:hidden;pointer-events:none;background:#eff7f8;box-shadow:0 3px 7px #1536451a;isolation:isolate;}
.r15-pinned-header[hidden]{display:none!important;}
.r15-pinned-cell{position:absolute;box-sizing:border-box;display:flex;align-items:center;justify-content:center;white-space:nowrap;}
.r15-pinned-cell:first-child{justify-content:flex-start;box-shadow:3px 0 5px #14384512;}
.matrix thead th:first-child,.production-matrix thead th:first-child,.r14-matrix thead th:first-child,.r15-detail-matrix thead th:first-child{position:sticky;left:0;z-index:3;background:var(--brand-tint,#eff7f8);}
.matrix tbody tr>td:first-child,.production-matrix tbody tr>th[scope="row"],.r14-matrix .r14-color,.r15-detail-matrix .r15-color{position:sticky;left:0;z-index:2;background:#fff;box-shadow:2px 0 4px #1536450d;}
.r15-detail-sheet[data-slot="sheet-content"]{width:min(1280px,94vw)!important;max-width:none!important;}
.r15-matrix-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px;}
.r15-matrix-heading h3{margin:0;}.r15-matrix-heading small{color:#688599;white-space:nowrap;}
.r15-detail-matrix{min-width:760px;width:100%;border-collapse:separate!important;border-spacing:0;}
.r15-detail-matrix th,.r15-detail-matrix td{padding:12px 14px;min-width:84px;text-align:center;border-bottom:1px solid #e2ebf1;border-right:1px solid #e2ebf1;}
.r15-detail-matrix thead th{height:49px;background:var(--brand-tint,#eff7f8);font-weight:700;}
.r15-detail-matrix .r15-color{min-width:145px;width:145px;text-align:left;vertical-align:middle;}
.r15-detail-matrix .r15-metric-label{min-width:100px;width:100px;text-align:left;font-size:12px;background:#f7fafc;color:#547080;}
.r14-matrix tbody th[scope="row"],.r15-detail-matrix .r15-metric-label{position:sticky;left:var(--r15-fixed-color,140px);z-index:2;background:#f7fafc;box-shadow:2px 0 4px #1536450d;}
.r15-detail-matrix .r15-detail-total{font-weight:700;}.r15-detail-matrix .r15-metric-received td{color:#008790;background:#f0faf9;}.r15-detail-matrix .r15-metric-outstanding td{color:#e87717;background:#fff9f2;}
.r15-detail-matrix tfoot th,.r15-detail-matrix tfoot td{background:#eaf6f6;color:#00838b;font-weight:700;}
.r15-delete-areas{display:grid;gap:10px;margin:18px 0;padding:16px 18px;border:1px solid #f3d9d9;border-radius:10px;background:#fff8f7;}
.r15-delete-areas>div{display:flex;align-items:center;gap:10px;font-size:14px;}.r15-delete-areas>div>span{color:#ce5252;font-weight:700;}
@media(max-width:600px){.r15-detail-sheet[data-slot="sheet-content"]{width:100vw!important;}.r15-matrix-heading{align-items:flex-start;flex-direction:column;gap:5px;}.r15-detail-matrix .r15-color{min-width:116px;width:116px;}.r15-detail-matrix th,.r15-detail-matrix td{padding:10px;min-width:78px;}}
@media print{.r15-pinned-header{display:none!important;}}
@media(max-width:600px){.r14-matrix thead th:first-child{width:220px!important;}.r14-matrix .r14-color{width:110px;}.r14-matrix th,.r14-matrix td{padding:7px;}.r14-row-label{padding:5px 9px;}}

/* r16: actual upstream/downstream review before permanent business removal. */
.r16-delete-sheet{width:min(1120px,96vw)!important;max-width:1120px!important;display:flex!important;flex-direction:column!important;padding:0!important;gap:0!important}
.r16-delete-form{min-height:0;display:flex;flex:1;flex-direction:column;overflow:hidden}.r16-delete-scroll{min-height:0;flex:1;overflow:auto!important;padding:24px 30px 32px!important;overscroll-behavior:contain}.r16-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.r16-graph{display:flex;flex-direction:column;gap:18px;min-width:0}.r16-graph .production-style{margin:0}.r16-target{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;border:1px solid #f2bdc3;border-radius:10px;background:#fff6f7}.r16-target>div{display:grid;gap:4px;min-width:0}.r16-target strong{font-size:20px;overflow-wrap:anywhere}.r16-target small{color:#8f5261}.r16-stock-note{display:grid;gap:7px;padding:16px 18px;border:1px solid #a5d7d4;border-radius:10px;background:#eefaf8;color:#175c5d}.r16-stock-note strong{font-size:18px}.r16-stock-note span{font-size:13px;line-height:1.7}.r16-chain-block{border:1px solid #d7e4ed;background:white;border-radius:12px;padding:20px;min-width:0}.r16-chain-block h3{font-size:17px;margin:0 0 12px;display:flex;gap:9px;align-items:center}.r16-step{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;background:#e6f5f5;color:#067d88;border-radius:50%;font-size:14px}.r16-bed{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0}.r16-bed>div{display:grid;gap:6px;flex:1;min-width:190px}.r16-bed small,.r16-record-name small{color:#6a8398;font-size:12px}.r16-bed p{flex-basis:100%;margin:0;color:#52697e}.r16-disposition{font-size:12px;font-weight:600;border-radius:5px;padding:5px 9px;white-space:nowrap;display:inline-block;line-height:1.4}.r16-remove{background:#fff0f1;color:#bb3044;border:1px solid #f3c6cc}.r16-keep{background:#edf7f4;color:#237360;border:1px solid #c9e4db}.r16-linked-list{display:grid;gap:9px}.r16-linked-record{border:1px solid #dce5ed;border-radius:8px;padding:0 14px;background:#fff}.r16-linked-record.r16-will-remove{border-color:#ecc0c9;background:#fffafb}.r16-graph summary{cursor:pointer;color:#176371;padding:13px 0;line-height:1.7}.r16-linked-record>summary{display:flex;align-items:center;flex-wrap:wrap;gap:10px;list-style:none}.r16-linked-record>summary:before{content:'›';color:#6b8190;font-size:20px;transition:transform .15s}.r16-linked-record[open]>summary:before{transform:rotate(90deg)}.r16-record-name{display:grid;gap:3px;flex:1;min-width:155px;overflow-wrap:anywhere}.r16-record-quantities{font-size:12px;color:#516779;line-height:1.8}.r16-document-note{padding:12px;border-radius:6px;background:#edf8f6;color:#216358;font-size:13px;line-height:1.8}.r16-allocation{margin:14px 0;padding-top:10px;border-top:1px solid #e5edf3}.r16-allocation-title{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;align-items:center;font-size:13px;color:#405d75;line-height:1.8}.r16-quantities{margin:14px 0}.r16-quantities h4{font-size:13px;margin:0 0 9px;color:#40566c}.r16-matrix{min-width:460px}.r16-matrix th:first-child{position:sticky;left:0;z-index:2;background:#f3f8fa;min-width:145px}.r16-matrix td{text-align:center}.r16-impact-table{min-width:380px}.r16-impact-table th,.r16-impact-table td{padding:11px 14px}.r16-stock-preserved{background:#edf8f6;color:#087b7e;font-weight:600}.r16-empty{padding:18px;background:#f6f9fb;color:#6a8094;border-radius:7px}.r16-confirm-fields{display:grid;gap:11px;padding:24px 0 8px}.r16-confirm-fields>label:first-child{font-weight:600}.r16-confirm-fields textarea{resize:vertical;min-height:86px;max-height:200px;border:1px solid #ccdae5;border-radius:8px;padding:12px;font:inherit;font-size:14px;line-height:1.6;outline-color:#07868b}.r16-confirm-check{display:flex;align-items:flex-start;gap:10px;font-weight:600;font-size:14px;line-height:1.6;padding:14px;background:#fff5f5;border-radius:8px}.r16-confirm-check input{margin-top:3px;width:17px;height:17px;accent-color:#bd3347;flex-shrink:0}.r16-delete-actions{flex-shrink:0!important;padding:16px 24px!important;border-top:1px solid #dce7ee}.r16-delete-actions>span{color:#0c7d80;font-size:13px}.r16-danger-button{background:#bc3549!important;color:white!important;border-color:#bc3549!important}.r16-danger-button:hover{background:#a4283b!important}.r16-row-delete{color:#bc3549!important}.r16-audit-details{margin:20px 0;min-width:0}.r16-audit-details>summary{color:#087d85;cursor:pointer;font-weight:600}.r16-audit-details .r16-graph{margin-top:16px}.r16-audit-details .production-style>small{display:none}.r16-audit-details .r16-chain-block{padding:12px}.r16-audit-details .r16-linked-record{padding:0 10px}.r16-audit-details .r16-target{align-items:flex-start;flex-wrap:wrap}.r16-audit-details .r16-target strong{font-size:16px}
@media(max-width:640px){.r16-delete-sheet{width:100vw!important;max-width:100vw!important}.r16-delete-scroll{padding:16px!important}.r16-chain-block{padding:14px}.r16-target{align-items:flex-start;flex-wrap:wrap}.r16-target strong{font-size:18px}.r16-linked-record>summary{gap:8px}.r16-record-quantities{flex-basis:100%;padding-left:18px}.r16-preview-heading{flex-wrap:wrap}.r16-delete-actions{padding:12px 16px!important;gap:10px!important;flex-wrap:wrap}.r16-delete-actions>div{width:100%;display:flex;justify-content:flex-end}.r16-delete-actions>span{font-size:12px}.r16-matrix th:first-child{min-width:120px}.r16-confirm-check{font-size:13px}.r16-bed>div{min-width:140px}}

/* r17: one neutral group per garment color; blue is reserved for entry. */
.r14-return-page .r17-receipt-section{border-color:#cbd5e1;}
.r17-receipt-section .r14-section-heading{border-bottom-color:#d5dee8;}
.r17-table-guide{display:flex;align-items:center;gap:9px;margin:0 0 16px;color:#40536b;font-size:13px;line-height:1.7;}
.r17-table-guide::before{content:'';display:block;width:16px;height:16px;flex:none;border:2px solid #3b76cf;border-radius:4px;background:#eff6ff;}
.r17-receipt-section .r14-matrix-scroll{border:1px solid #cbd5e1;border-radius:10px;background:#edf1f5;}
.r14-return-page .r17-receipt-matrix{border-collapse:separate!important;border-spacing:0;min-width:860px;--r17-line:#dce3eb;}
.r14-return-page .r17-receipt-matrix th,.r14-return-page .r17-receipt-matrix td{border-right:1px solid var(--r17-line);border-bottom:1px solid var(--r17-line);padding:10px 12px;font-size:15px;line-height:1.35;color:#23374e;font-variant-numeric:tabular-nums;background:#fff!important;}
.r14-return-page .r17-receipt-matrix thead th{height:50px;background:#23394d!important;color:#fff;font-size:16px;font-weight:700;border-color:#4d6173;text-align:center;}
.r14-return-page .r17-receipt-matrix thead th:first-child{width:306px!important;padding-left:18px;text-align:left;}
.r14-return-page .r17-receipt-matrix tr>*:last-child{border-right:0;}
.r14-return-page .r17-receipt-matrix tbody .r14-unreturned:not(:first-child)>*{border-top:12px solid #edf1f5;}
.r14-return-page .r17-receipt-matrix .r14-color{width:162px;padding:15px 12px;background:#f8fafc!important;border-right:2px solid #d0dae5;}
.r17-receipt-matrix .r14-color .sku-color-label{gap:10px;font-size:15px;font-weight:700;}
.r17-receipt-matrix .r14-color img{width:57px!important;height:76px!important;object-fit:contain!important;border:1px solid #d7e0e9;border-radius:6px;background:#fff;}
.r14-return-page .r17-receipt-matrix tbody th[scope=row]{width:144px;text-align:left;padding-left:15px;box-shadow:2px 0 3px #23394d08;}
.r14-return-page .r17-receipt-matrix .r14-row-label{padding:0;border:0;border-radius:0;background:none!important;color:#23374e;font-size:14px;font-weight:700;}
.r17-row-help{display:block;margin-top:5px;color:#64748b;font-size:11px;font-weight:400;white-space:nowrap;}
.r14-return-page .r17-receipt-matrix .r14-receive>th,.r14-return-page .r17-receipt-matrix .r14-receive>td{background:#eef5ff!important;border-bottom-color:#cbdcf3;border-top:1px solid #cbdcf3;}
.r14-return-page .r17-receipt-matrix .r14-receive .r14-row-label{color:#1655a7;}
.r17-receipt-matrix .r14-receive .r17-row-help{color:#3466a2;}
.r14-return-page .r17-receipt-matrix input{height:42px;min-width:58px;border:1.5px solid #8aaede;border-radius:6px;color:#173b68;background:#fff!important;font-size:17px;font-weight:650;box-shadow:none;font-variant-numeric:tabular-nums;}
.r14-return-page .r17-receipt-matrix input::placeholder{color:#5e7897;opacity:1;font-weight:400;}
.r14-return-page .r17-receipt-matrix input:disabled{border:1px dashed #bccbdb;background:#f3f6fa!important;color:#75869a;opacity:1;box-shadow:none;cursor:not-allowed;}
.r14-return-page .r17-receipt-matrix input:disabled::placeholder{color:#75869a;}
.r14-return-page .r17-receipt-matrix input:focus-visible{outline:3px solid #2469ca;outline-offset:2px;box-shadow:0 0 0 5px #dbeafe;}
.r14-return-page .r17-receipt-matrix input[aria-invalid=true]{border:2px solid #bd3446;background:#fff2f3!important;color:#9b2333;}
.r14-return-page .r17-receipt-matrix input[aria-invalid=true]:focus-visible{outline-color:#bd3446;box-shadow:0 0 0 5px #ffe1e5;}
.r14-return-page .r17-receipt-matrix .r14-row-total{border-left:2px solid #cbd5e1;font-size:17px;font-weight:750;}
.r14-return-page .r17-receipt-matrix .r14-receive .r14-row-total{color:#1655a7;}
.r14-return-page .r17-receipt-matrix .r14-stock>td{font-weight:650;}
.r14-return-page .r14-metric .r14-metric-icon{background:#f0f4f8;color:#50677e;box-shadow:none;}
.r14-return-page .r14-metric strong{color:#23374e;}
.r14-return-page .r14-metric.dark{border-color:#93b4e1;background:#f1f6ff;}
.r14-return-page .r14-metric.dark .r14-metric-icon{background:#dceaff;color:#1655a7;}
.r14-return-page .r14-metric.dark strong{color:#1655a7;}
.r14-return-page .r14-stock-preview,.r14-return-page .r14-pending-preview{border-color:#d4dee8;color:#344b62;background:#f5f8fb;}
.r14-return-page .r14-footer-totals>strong>b{color:#1655a7;}
@media(max-width:650px){
 .r14-return-page .r17-receipt-matrix{min-width:790px;}
 .r14-return-page .r17-receipt-matrix thead th:first-child{width:252px!important;}
 .r14-return-page .r17-receipt-matrix .r14-color{width:127px;padding:10px 8px;}
 .r17-receipt-matrix .r14-color img{width:42px!important;height:58px!important;}
 .r17-receipt-matrix .r14-color .sku-color-label{gap:6px;font-size:13px;}
 .r14-return-page .r17-receipt-matrix tbody th[scope=row]{width:125px;padding-left:10px;}
 .r14-return-page .r17-receipt-matrix th,.r14-return-page .r17-receipt-matrix td{padding:9px 8px;}
 .r17-table-guide{font-size:12px;align-items:flex-start;}
 .r17-table-guide::before{margin-top:2px;}
}

/* r18: approved per-color cards, with view / entry / view as separate panels. */
.r14-return-page .r18-receipt-section{border:0;background:transparent;padding:0;margin:24px 0;}
.r18-receipt-section>.r14-section-heading{margin:0 0 14px;padding:0;background:transparent;border:0;}
.r18-receipt-section>.r14-section-heading h3{font-size:20px;font-weight:700;}
.r18-card-guide{display:flex;align-items:center;gap:10px;padding:13px 16px;margin:0 0 18px;background:#eaf2fd;color:#385a85;border:1px solid #dbe7f7;border-radius:10px;font-size:14px;line-height:1.6;}
.r18-card-guide::before{content:'i';display:grid;place-items:center;width:20px;height:20px;flex:none;border-radius:50%;background:#7093bb;color:#fff;font-family:serif;font-weight:700;}
.r18-color-cards{display:flex;flex-direction:column;gap:20px;min-width:0;container-type:inline-size;container-name:r18-cards;}
.r18-color-card{display:grid;grid-template-columns:110px minmax(0,1fr);gap:18px;align-items:center;padding:18px;background:#fff;border:1px solid #d8e3ef;border-radius:12px;min-width:0;box-shadow:0 2px 7px #203a5c03;}
.r18-color-info{align-self:stretch;display:flex;align-items:center;justify-content:center;min-width:0;}
.r18-color-info .sku-color-label{display:grid;grid-template-columns:17px minmax(0,1fr);align-items:center;gap:10px 7px;width:100%;color:#163048;font-size:19px;font-weight:750;line-height:1.4;}
.r18-color-info .sku-color-label img{grid-column:1/-1;width:100%!important;height:109px!important;max-height:none!important;object-fit:contain!important;background:#f6f5f2;border:1px solid #e8eaed;border-radius:7px;padding:4px;}
.r18-color-info .sku-color-label i{width:15px;height:15px;border:1px solid #21324725;}
.r18-color-info .sku-color-label>span{white-space:normal;overflow-wrap:anywhere;}
.r18-color-card[data-color="天蓝"] .sku-color-label>i,.r18-color-card[data-color="天蓝色"] .sku-color-label>i{background:#72add0!important;}
.r18-color-card[data-color="宝蓝"] .sku-color-label>i,.r18-color-card[data-color="宝蓝色"] .sku-color-label>i{background:#234f98!important;}
.r18-panels-scroll{min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#bccbde #f2f5f9;padding:2px 2px 7px;}
.r18-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;min-width:var(--r18-panels-width);}
.r18-quantity-panel{min-width:0;border:1px solid #dce4ee;border-radius:7px;overflow:visible;background:#f7f9fc;}
.r18-card-matrix{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums;color:#18334c;}
.r18-card-matrix th,.r18-card-matrix td{height:45px;padding:8px 5px;text-align:center;border-right:1px solid #e5ebf3;border-bottom:1px solid #e3eaf3;font-size:14px;background:#f7f9fc;overflow-wrap:anywhere;}
.r18-card-matrix th:last-child,.r18-card-matrix td:last-child{border-right:0;}
.r18-card-matrix .r18-panel-title{height:52px;padding:10px 12px;text-align:left;border-radius:6px 6px 0 0;background:#edf2f8;font-weight:600;}
.r18-panel-heading{display:flex;align-items:center;gap:9px;white-space:nowrap;min-width:0;}
.r18-panel-name{font-size:17px;font-weight:750;line-height:1.4;}
.r18-panel-mode{font-size:11px;color:#637c97;font-weight:500;}
.r18-panel-total{font-size:12px;margin-left:auto;white-space:nowrap;font-weight:500;}
.r18-panel-total strong{font-size:21px;font-weight:750;margin:0 3px;}
.r18-size-row th{height:40px;font-size:13px;font-weight:650;white-space:normal;}
.r18-card-matrix tbody td{height:65px;font-size:19px;font-weight:700;border-bottom:0;}
.r18-card-matrix input{width:100%;min-width:0;height:42px;padding:6px 4px;text-align:center;font-size:18px;font-weight:650;font-variant-numeric:tabular-nums;color:#16375b;border:1px solid #9ebbe3;border-radius:6px;background:#fff;box-shadow:none;}
.r18-card-matrix input::placeholder{color:#74879f;font-weight:400;opacity:1;}
.r18-card-matrix input:disabled{opacity:1;color:#7c8ba0;background:#f2f5f9;border:1px dashed #becbdb;cursor:not-allowed;}
.r18-card-matrix input:focus-visible{outline:2px solid #1261d6;outline-offset:1px;box-shadow:0 0 0 4px #dceafd;}
.r18-card-matrix input[aria-invalid=true]{border:2px solid #c8394b;background:#fff2f3;color:#a32939;}
.r18-card-matrix input[aria-invalid=true]:focus-visible{outline-color:#c8394b;box-shadow:0 0 0 4px #ffe1e6;}
.r18-panel-hint{margin:0;padding:0 10px 10px;text-align:center;color:#708198;font-size:11px;line-height:1.5;}
.r18-panel-receive{border-color:#3b7bdb;background:#fff;box-shadow:0 0 0 1px #3b7bdb0a;}
.r18-panel-receive .r18-panel-title{background:#075cd3;color:#fff;}
.r18-panel-receive .r18-panel-mode{color:#e0edff;}
.r18-panel-receive .r18-size-row th{background:#fff;color:#1a4f96;border-color:#e1e9f5;}
.r18-panel-receive tbody td{background:#fff;border-color:#e1e9f5;}
.r18-panel-receive .r18-panel-hint{color:#356aa8;}
.r18-pinned-header{border-radius:5px 5px 0 0;}
.r18-pinned-header .r15-pinned-cell:first-child{justify-content:center;font-size:12px!important;line-height:1.4!important;white-space:normal;text-align:center!important;}
.r14-return-page .r14-confirm{background:#075cd3!important;color:#fff!important;border-color:#075cd3!important;}
.r14-return-page .r14-confirm:hover{background:#064dad!important;}
.r14-return-page .r14-confirm:disabled{opacity:.5;}
@container r18-cards (max-width:1020px){
 .r18-color-card{grid-template-columns:1fr;gap:12px;padding:16px;}
 .r18-color-info{justify-content:flex-start;}
 .r18-color-info .sku-color-label{display:flex;width:auto;gap:10px;}
 .r18-color-info .sku-color-label img{width:46px!important;height:60px!important;}
}
@container r18-cards (max-width:760px){
 .r18-panels{grid-template-columns:1fr;gap:14px;min-width:var(--r18-panel-width);}
 .r18-panel-name{font-size:17px;}
 .r18-panel-mode{font-size:12px;}
 .r18-color-cards{gap:18px;}
}
@media(max-width:650px){
 .r18-card-guide{font-size:12px;padding:12px;margin-bottom:14px;}
 .r18-color-card{padding:12px;}
 .r18-receipt-section>.r14-section-heading{gap:6px;}
 .r18-receipt-section>.r14-section-heading h3{font-size:18px;}
}

/* r19: clear quantity hierarchy, permanent completion records and batch outbound. */
.r19-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.r19-section-title h2,
.r19-section-title h3 {
  margin: 0;
}
.r19-section-title .secondary {
  margin: 6px 0 0;
}
.r19-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.r19-metric {
  padding: 20px;
  background: #f5f8fa;
  border: 1px solid #d9e5eb;
  border-radius: 12px;
  display: grid;
  gap: 8px;
}
.r19-metric > span {
  color: #627c8e;
  font-size: 14px;
}
.r19-metric > strong {
  font-size: 32px;
  color: #153b4e;
}
.r19-metric small {
  font-size: 14px;
  font-weight: 400;
}
.r19-metric.teal strong {
  color: #00848a;
}
.r19-metric.defect {
  background: #fff7ed;
  border-color: #f0d4b5;
}
.r19-metric.defect strong,
.r19-defect-number,
.r19-defect-count strong {
  color: #b75816 !important;
}
.r19-permanent-note {
  padding: 15px 18px;
  border: 1px solid #e9d5b5;
  border-radius: 9px;
  background: #fffbf3;
  color: #78502c;
  font-size: 14px;
  margin: 16px 0;
}
.r19-permanent-note p {
  margin: 7px 0 0;
  line-height: 1.7;
}
.r19-finish-sheet {
  width: min(1100px, 96vw) !important;
}
.r19-finish-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.r19-finish-scroll {
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.r19-order-meta {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr;
  gap: 16px;
  margin-top: 22px;
}
.r19-order-meta > div {
  display: grid;
  gap: 6px;
}
.r19-order-meta small {
  color: #698499;
}
.r19-order-meta strong {
  overflow-wrap: anywhere;
}
.r19-finish-fields {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  margin-top: 22px;
}
.r19-finish-fields label,
.r19-batch-fields label,
.r19-out-notes label {
  display: grid;
  gap: 10px;
  color: #345c71;
}
.r19-finish-fields input,
.r19-finish-fields textarea,
.r19-batch-fields input,
.r19-out-notes textarea,
.r19-defect-filter input,
.r19-defect-filter select,
.r19-picker-popover > input {
  border: 1px solid #ccdae4;
  border-radius: 9px;
  background: white;
  padding: 11px 13px;
  min-width: 0;
  color: #173b4e;
  font: inherit;
}
.r19-finish-fields textarea,
.r19-out-notes textarea {
  min-height: 85px;
  resize: vertical;
}
.r19-confirm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 10px;
  padding: 18px;
  border: 1px solid #bed8d9;
  border-radius: 10px;
  background: #edf8f8;
  line-height: 1.7;
}
.r19-confirm input {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  accent-color: #00858a;
  flex: none;
}
.r19-finished-note {
  display: block;
  white-space: nowrap;
  color: #7b542f !important;
}
.r19-defects {
  margin-bottom: 26px;
  padding: 24px !important;
}
.r19-permanent-badge {
  font-size: 13px;
  color: #855320;
  background: #fff7e9;
  border: 1px solid #ecd4af;
  padding: 7px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.r19-defect-summary {
  display: flex;
  gap: 44px;
  padding: 18px 22px;
  background: #f6f8fa;
  border: 1px solid #dee7ec;
  border-radius: 12px;
  margin-bottom: 18px;
}
.r19-defect-summary > div {
  display: grid;
  gap: 6px;
}
.r19-defect-summary span {
  font-size: 13px;
  color: #668092;
}
.r19-defect-summary strong {
  font-size: 22px;
}
.r19-defect-summary > div:first-child strong {
  color: #b75816;
}
.r19-defect-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.r19-defect-filter input:first-child {
  flex: 1;
  min-width: 220px;
}
.r19-defect-filter input[type="date"] {
  width: 150px;
}
.r19-defect-filter select {
  max-width: 200px;
}
.r19-defect-record {
  margin-top: 12px;
  border: 1px solid #d7e4ea;
  border-radius: 12px;
  overflow: hidden;
}
.r19-defect-record > summary {
  display: grid;
  grid-template-columns: 68px minmax(130px, 1fr) minmax(
      200px,
      1.7fr
    ) 110px 110px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  border-left: 5px solid var(--brand-accent, #0d8b90);
}
.r19-defect-record > summary::marker {
  display: none;
}
.r19-defect-record > summary > div {
  display: grid;
  gap: 5px;
}
.r19-defect-record summary small {
  color: #668092;
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.r19-defect-ident strong {
  font-size: 17px;
}
.r19-defect-photo .style-photo {
  width: 64px;
  height: 78px;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  background: #f6f8fa;
}
.r19-defect-photo img {
  object-fit: contain !important;
}
.r19-defect-count strong {
  font-size: 22px;
}
.r19-defect-expanded {
  padding: 0 24px 22px;
  border-top: 1px solid #e0e7ed;
}
.r19-defect-matrix th,
.r19-defect-matrix td {
  min-width: 100px;
  text-align: center;
}
.r19-defect-matrix th:first-child {
  text-align: left;
  min-width: 170px;
}
.r19-defect-matrix thead th,
.r19-out-matrix thead th {
  background: #edf4f7 !important;
  color: #274e62 !important;
  border-bottom: 2px solid #9db9c5 !important;
}
.r19-defect-matrix tbody td,
.r19-out-matrix tbody td {
  background: #fff !important;
  color: #173b4e;
}
.r19-defect-matrix tbody tr + tr > *,
.r19-out-matrix tbody tr + tr > * {
  border-top: 2px solid #ccdce4;
}
.r19-defect-matrix tfoot > tr > *,
.r19-out-matrix tfoot > tr > * {
  background: #eaf5f5 !important;
  color: #007e84 !important;
  font-weight: 700;
  border-top: 2px solid #abd0d2;
}
.r19-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
}
.r19-empty {
  padding: 35px 25px;
  color: #637d8f;
  text-align: center;
}
.r19-batch-form {
  display: grid;
  gap: 22px;
}
.r19-batch-settings,
.r19-out-style,
.r19-out-notes,
.r19-batch-history {
  padding: 24px !important;
}
.r19-batch-fields {
  display: grid;
  grid-template-columns: 200px 1fr 1.5fr;
  gap: 20px;
}
.r19-outbound-guide {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  background: #eaf6f6;
  border: 1px solid #c1dfe1;
  border-radius: 10px;
  margin: 22px 0;
  color: #2c6369;
  font-size: 14px;
}
.r19-outbound-guide strong {
  color: #007e85;
  white-space: nowrap;
}
.r19-picker {
  position: relative;
  display: inline-block;
}
.r19-picker-popover {
  position: absolute;
  z-index: 40;
  left: 0;
  top: calc(100% + 10px);
  width: min(540px, 80vw);
  background: #fff;
  border: 1px solid #cbdce4;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 14px 45px #153b4e29;
  display: grid;
  gap: 12px;
}
.r19-picker-list {
  max-height: 375px;
  overflow: auto;
}
.r19-picker-option {
  display: grid;
  grid-template-columns: 18px 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e0e8ed;
  border-left: 4px solid var(--brand-accent, #00878b);
  border-radius: 8px;
  margin: 6px 0;
  cursor: pointer;
  background: #fff;
}
.r19-picker-option:has(input:checked) {
  background: #edf8f8;
  outline: 1px solid #9dcbce;
}
.r19-picker-option input {
  accent-color: #00858a;
  width: 18px;
  height: 18px;
}
.r19-picker-option .style-photo {
  width: 52px;
  height: 64px;
  background: #f2f5f7;
  border-radius: 7px;
  overflow: hidden;
}
.r19-picker-option img {
  object-fit: contain !important;
}
.r19-picker-option > span {
  display: grid;
  gap: 4px;
}
.r19-picker-option strong {
  font-size: 16px;
}
.r19-picker-option small,
.r19-picker-hint {
  color: #668092;
  font-size: 12px;
}
.r19-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.r19-selected-chips > span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #f4f8f9;
  border: 1px solid #d2e2e7;
  border-left: 4px solid var(--brand-accent, #00858a);
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}
.r19-selected-chips button {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: #637d8f;
}
.r19-out-style > .production-style {
  margin-bottom: 20px;
}
.r19-out-matrix th,
.r19-out-matrix td {
  min-width: 140px;
  text-align: center;
  padding: 16px 12px !important;
}
.r19-out-matrix th:first-child {
  min-width: 190px;
  text-align: left;
}
.r19-out-matrix tbody th {
  background: #f7fafb !important;
}
.r19-quantity {
  display: grid;
  justify-items: center;
  gap: 7px;
}
.r19-quantity small {
  color: #668092;
  font-size: 12px;
}
.r19-quantity input {
  border: 1px solid #c5d7e1;
  border-radius: 8px;
  background: #fff;
  color: #183f52;
  width: 118px;
  height: 42px;
  padding: 9px;
  text-align: center;
  font: inherit;
}
.r19-quantity input:focus {
  outline: 2px solid #00858a;
  outline-offset: 2px;
}
.r19-quantity strong {
  font-size: 13px;
  color: #007f85 !important;
}
.r19-quantity.invalid input {
  border-color: #d5674f;
  background: #fff7f5;
}
.r19-quantity.invalid strong {
  color: #ba4e39 !important;
}
.r19-color-total {
  font-size: 19px;
  font-weight: 700;
}
.r19-out-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  padding: 20px 24px;
  border: 1px solid #c7dce4;
  border-top: 3px solid #00858a;
  border-radius: 12px;
  position: sticky;
  bottom: 0;
  z-index: 12;
  box-shadow: 0 -5px 18px #153b4e0a;
}
.r19-out-footer > div {
  display: flex;
  gap: 18px;
  align-items: center;
}
.r19-out-footer strong {
  font-size: 30px;
  color: #00858a;
}
.r19-out-footer small {
  max-width: 300px;
  color: #668092;
  font-size: 12px;
}
.r19-out-notes textarea {
  width: 100%;
}
.r19-saved {
  display: flex;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 20px;
  border: 1px solid #b3d7cd;
  border-radius: 12px;
  color: #207159;
  background: #eff9f4;
  flex-wrap: wrap;
}
.r19-batch-history {
  margin-top: 26px;
}
.r19-batch-history > details {
  margin-top: 12px;
  border: 1px solid #d7e4ea;
  border-radius: 10px;
  padding: 15px;
}
.r19-batch-history summary {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}
.r19-batch-history summary > b {
  margin-left: auto;
  color: #00858a;
}
.r19-history-doc {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid #e0e8ed;
}
.r19-history-doc button {
  margin-left: auto;
}
.r19-history-sheet {
  width: min(1000px, 95vw) !important;
}
.r19-batch-page input:disabled {
  opacity: 0.65;
}
.r19-finish-sheet .production-actions > div {
  display: flex;
  gap: 12px;
}
@media (max-width: 1000px) {
  .r19-batch-fields {
    grid-template-columns: 1fr 1fr;
  }
  .r19-batch-fields > label:last-child {
    grid-column: 1/-1;
  }
  .r19-out-footer small {
    display: none;
  }
  .r19-defect-record > summary {
    grid-template-columns: 56px 1fr 1.3fr 85px;
  }
  .r19-defect-record > summary > div:nth-child(4) {
    display: none;
  }
  .r19-defect-photo .style-photo {
    width: 52px;
    height: 64px;
  }
}
@media (max-width: 680px) {
  .r19-order-meta,
  .r19-finish-fields,
  .r19-batch-fields {
    grid-template-columns: 1fr;
  }
  .r19-outbound-guide {
    display: grid;
    gap: 6px;
  }
  .r19-metrics {
    gap: 8px;
  }
  .r19-metric {
    padding: 12px;
  }
  .r19-metric > strong {
    font-size: 24px;
  }
  .r19-out-footer {
    padding: 14px;
    gap: 8px;
  }
  .r19-out-footer > div {
    gap: 7px;
  }
  .r19-out-footer strong {
    font-size: 22px;
  }
  .r19-defect-record > summary {
    grid-template-columns: 50px 1fr 85px;
    gap: 10px;
  }
  .r19-defect-record > summary > div:nth-child(3) {
    grid-column: 2/-1;
    grid-row: 2;
  }
  .r19-defect-count {
    grid-column: 3;
    grid-row: 1;
  }
  .r19-defect-summary {
    gap: 22px;
    padding: 14px;
  }
  .r19-batch-history summary {
    flex-wrap: wrap;
    gap: 8px;
  }
  .r19-history-doc {
    flex-wrap: wrap;
    gap: 10px;
  }
  .r19-batch-history summary > b {
    margin-left: 0;
  }
}

/* R20: scoped layout additions. All R19 typography, colors and shared styles remain intact. */
.r20-production-group { grid-column: 1 / -1; min-width: 0; }
.r20-production-group > .production-section-title { margin-bottom: 16px; }
.r20-production-group > .production-section-title h3 { display: flex; align-items: center; gap: 10px; }
.r20-platform-filters { margin: 16px 0; }
.r20-platform-filters > button:disabled { opacity: .55; cursor: not-allowed; }
.r20-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.r20-picker-search { display: flex; align-items: center; gap: 12px; }
.r20-picker-search > .search-box { flex: 1; max-width: none; min-width: 0; }
.r20-picker-summary { margin: 12px 0; font-size: 13px; }
.r20-picker-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; max-height: 390px; }
.r20-picker-results > .r19-picker-option { margin: 0; min-width: 0; }
.r20-picker-results > .r19-empty { grid-column: 1 / -1; }
.r20-picker-results .r19-picker-option > span { min-width: 0; overflow-wrap: anywhere; }
.r20-review-style { margin: 22px 0; }
.r20-review-style > .production-style { margin-bottom: 12px; }
.r20-review-actions { flex-wrap: wrap; gap: 12px; }
.r20-review-actions > div { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .r20-picker-results { grid-template-columns: minmax(0, 1fr); }
  .r20-picker-search { flex-wrap: wrap; }
  .r20-picker-search > .search-box { flex-basis: 100%; }
}
