:root{--bg:#f3f6fa;--surface:#fff;--ink:#14253b;--muted:#64758b;--line:#e4eaf1;--blue:#176dce;--nav:#10253c;--soft:#eaf3ff;--amber:#855916;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #83b8f5;outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:var(--nav);color:#fff;padding:32px 20px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:21px;font-weight:650;letter-spacing:.5px}.brandmark{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#227be3;font-size:22px}.brand small{display:block;margin-top:5px;font-size:12px;font-weight:400;letter-spacing:2px;color:#9db2cc}.nav-label{color:#869ab4;font-size:12px;letter-spacing:2px;margin:46px 14px 14px}.nav-item{width:100%;display:flex;gap:13px;align-items:center;text-align:left;border:0;background:transparent;color:#b8c8dc;padding:14px 15px;margin:4px 0;border-radius:9px;font-size:15px}.nav-item span{font-size:21px;width:24px}.nav-item:hover{background:#1c354f}.nav-item.active{background:#24445f;color:#fff;box-shadow:inset 3px 0 #65b3ff}.sidebar-bottom{margin-top:auto;border-top:1px solid #2b4159;padding:24px 10px 0}.warehouse-label{font-size:14px}.sidebar-bottom p{font-size:12px;line-height:1.7;color:#9db2cc}.account-button{background:#1d3854;color:white;border:1px solid #35506a;border-radius:8px;padding:9px 12px;font-size:14px;width:100%;margin-top:12px}main{margin-left:230px;padding:0 36px 24px;max-width:1900px}.preview-banner{background:#e8eff9;border:1px solid #d4e2f5;padding:10px 14px;color:#385672;font-size:13px;border-radius:0 0 9px 9px;display:flex;justify-content:space-between;gap:12px}.text-button{background:none;border:0;color:var(--blue);font-size:14px;padding:0;white-space:nowrap}.page-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:32px 0 25px}.eyebrow{font-size:11px;font-weight:600;color:#788ba1;letter-spacing:2px;margin-bottom:9px}h1{font-size:30px;margin:0;font-weight:650;letter-spacing:-.5px}.page-header p{color:var(--muted);font-size:14px;margin:10px 0 0}.header-right{display:flex;gap:16px;align-items:center}.header-right>span{font-size:13px;color:var(--muted)}.button{border:1px solid var(--line);border-radius:8px;padding:10px 16px;font-size:14px;font-weight:550;white-space:nowrap}.primary{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover{background:#125aad}.subtle{background:white;color:#39516e}.subtle:hover{background:#f0f5fb}.danger{background:#fff2f0;border-color:#efc9c2;color:#a33e30}.wide{width:100%}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 5px #15325203}.filters{display:flex;gap:12px;align-items:flex-end;padding:18px 20px;flex-wrap:wrap}.filters label,form>label,.field{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted)}input,select{border:1px solid #dbe3ed;border-radius:7px;padding:9px 11px;background:white;min-height:40px;color:var(--ink);font-size:14px}input[type=checkbox]{min-height:auto;accent-color:var(--blue)}.date-separator{padding-bottom:12px;color:#9aa7b8}.notice{border:1px solid #e9e0c5;background:#fffaf0;color:#78623a;border-radius:9px;padding:12px 16px;font-size:13px;line-height:1.7;margin:18px 0}.notice.info{background:#eff6ff;border-color:#dce9fb;color:#42648a}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.metric{padding:22px 23px;position:relative}.metric-title{font-size:14px;color:var(--muted)}.metric-value{font-size:34px;font-weight:650;letter-spacing:-1px;margin:16px 0 10px;font-variant-numeric:tabular-nums}.metric-note{font-size:12px;color:#8491a3}.metric:first-child{border-top:3px solid var(--blue);padding-top:20px}.metric:first-child .metric-value{color:#155da8}.charts-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,1fr);gap:20px;margin-bottom:20px}.section-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 24px 16px;gap:16px}h2{margin:0;font-size:17px;font-weight:650}.section-heading p{font-size:12px;color:var(--muted);margin:7px 0 0}.legend{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}.legend i{width:8px;height:8px;background:#4c95e6;border-radius:2px}.trend{height:265px;padding:0 18px 14px}.trend svg{width:100%;height:100%;overflow:visible}.trend text{font-family:inherit;font-size:11px;fill:#8995a7}.chart-gridline{stroke:#edf1f6;stroke-dasharray:3 4}.chart-bar{fill:#70aaf0}.chart-bar:hover{fill:#176dce}.chart-baseline{stroke:#dce4ed}.category-panel{padding-bottom:18px}#category-bars{padding:0 24px;display:flex;flex-direction:column;gap:15px}.category-label{display:flex;justify-content:space-between;font-size:13px;margin-bottom:7px}.category-label span:last-child{color:var(--muted);font-variant-numeric:tabular-nums}.bar-track{height:7px;border-radius:5px;background:#edf2f8;overflow:hidden}.bar-fill{height:100%;background:#448adb;border-radius:5px}.category-other{color:var(--muted);font-size:12px;padding-top:2px}.segmented{display:flex;border:1px solid var(--line);padding:3px;border-radius:8px;background:#f6f8fb}.segmented button{border:0;background:transparent;padding:7px 13px;font-size:13px;border-radius:5px;color:var(--muted)}.segmented button.selected{background:#fff;color:var(--blue);box-shadow:0 1px 4px #18395116}.table-tools{padding:0 24px 16px;display:flex;justify-content:space-between;gap:12px;align-items:center}.table-tools input[type=search]{width:320px;max-width:100%}.table-tools>span{font-size:12px;color:var(--muted)}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}thead{background:#f7f9fc;color:#697c93;font-size:12px}th{font-weight:550;padding:13px 20px;white-space:nowrap}td{border-bottom:1px solid #eef2f6;padding:14px 20px;line-height:1.5}tr:last-child td{border-bottom:none}.number{text-align:right;font-variant-numeric:tabular-nums}.product-cell{display:flex;align-items:center;gap:12px;min-width:240px}.thumb{height:44px;width:44px;border:1px solid #edf0f5;border-radius:8px;object-fit:cover;background:#f7f9fc;cursor:zoom-in}.product-name{font-size:14px;font-weight:500}.sku{font-size:11px;color:#91a0b3;margin-top:4px;letter-spacing:.3px}.badge{display:inline-block;font-size:12px;border-radius:5px;padding:4px 8px;white-space:nowrap}.badge.blue{background:#eef5fe;color:#4a74a3}.badge.amber{background:#fff5df;color:#976b24}.badge.gray{background:#f0f2f5;color:#7c8a9a}.badge.red{background:#fff0eb;color:#a14e38}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:15px 24px;color:var(--muted);font-size:12px}.pagination button{border:1px solid var(--line);background:white;color:var(--ink);border-radius:6px;padding:6px 12px}.empty{padding:48px;text-align:center;color:var(--muted);font-size:14px}.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:8px 24px 16px}.product-card{border:1px solid var(--line);border-radius:11px;overflow:hidden}.card-image{width:100%;aspect-ratio:1.25;object-fit:contain;background:#fafbfd;padding:15px;cursor:zoom-in}.card-info{padding:15px}.card-info h3{font-size:14px;line-height:1.6;margin:0 0 8px;min-height:44px}.card-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:13px}.inline-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.import-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;margin:24px 0}.upload-panel form{padding:0 24px 24px}.file-drop{margin:18px 0;border:1.5px dashed #bacde5;background:#f7faff;border-radius:10px;text-align:center;padding:28px 16px!important;align-items:center;color:var(--muted)}.upload-symbol{font-size:32px;color:var(--blue)}.file-drop strong{font-size:16px;color:var(--ink)}.file-drop input{margin-top:10px;width:100%;font-size:12px;background:transparent;border:0}.muted{font-size:12px;color:var(--muted);line-height:1.8}.import-guide{padding:24px}.import-guide ol{padding-left:24px;margin:26px 0}.import-guide li{padding-left:8px;margin:22px 0;color:var(--blue)}.import-guide strong{font-size:14px;color:var(--ink)}.import-guide li p{font-size:13px;color:var(--muted);line-height:1.8;margin:7px 0}.import-guide .notice{margin-bottom:0}.audit-panel{margin-top:24px}.audit-row{padding:13px 24px;border-top:1px solid var(--line);display:flex;gap:20px;justify-content:space-between;font-size:13px}.audit-row small{color:var(--muted)}footer{display:flex;justify-content:space-between;color:#96a3b4;font-size:11px;margin-top:25px}.error-banner{padding:14px;background:#fff0ed;color:#a03e32;margin:20px 0;border-radius:8px;font-size:14px}dialog{border:1px solid var(--line);border-radius:16px;box-shadow:0 25px 100px #0d244733;width:min(560px,calc(100% - 28px));padding:0;color:var(--ink);max-height:90vh}dialog::backdrop{background:#10263d80;backdrop-filter:blur(3px)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-bottom:1px solid var(--line)}.icon-button{border:0;background:none;font-size:26px;color:var(--muted)}#modal-content{padding:24px}#modal-content form{display:flex;flex-direction:column;gap:18px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.modal-image{width:100%;max-height:65vh;object-fit:contain}.review-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.review-grid div{background:#f7f9fc;border-radius:8px;padding:15px;font-size:13px;color:var(--muted)}.review-grid strong{display:block;color:var(--ink);font-size:22px;margin-top:7px}.review-check{display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.7;margin-top:18px}.form-error{font-size:13px;color:#a33e30}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#193b5c;color:white;padding:13px 22px;border-radius:10px;box-shadow:0 5px 25px #0002;z-index:100;font-size:14px}#upload-progress{margin:0 24px 24px;font-size:14px;color:var(--blue);padding:15px;background:var(--soft);border-radius:8px}.loading{opacity:.55;pointer-events:none}
@media(min-width:1600px){main{padding-left:48px;padding-right:48px}.trend{height:300px}}
@media(max-width:1200px){.sidebar{width:200px;padding:28px 14px}main{margin-left:200px;padding:0 24px 20px}.header-right{flex-direction:column;align-items:flex-end}.charts-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}.metric{padding:20px 16px}.metric-value{font-size:29px}.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.sidebar{position:sticky;top:0;width:100%;height:auto;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 18px;z-index:10}.brand{font-size:16px}.brandmark{width:34px;height:34px;font-size:17px}.brand small,.nav-label,.sidebar-bottom,.nav-item span{display:none}.sidebar nav{display:flex;gap:3px}.nav-item{padding:9px 11px;white-space:nowrap;font-size:13px}.nav-item.active{box-shadow:none}main{margin-left:0;padding:0 20px 20px}.charts-grid{grid-template-columns:1fr 1fr}.metrics{gap:10px}.metric-value{font-size:27px}.metric-title{font-size:12px}.metric-note{font-size:11px}.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.page-header{padding-top:25px}}
@media(max-width:650px){.sidebar{flex-wrap:wrap;gap:8px;padding:10px 12px}.sidebar nav{width:100%;justify-content:space-between}.nav-item{width:auto;flex:1;justify-content:center;padding:9px 5px}.brand small{display:none}main{padding:0 14px 18px}.preview-banner{font-size:11px;align-items:center}.page-header{align-items:flex-start;gap:12px;padding:23px 0 20px}.page-header h1{font-size:25px}.page-header p{font-size:12px;max-width:210px;line-height:1.7}.eyebrow{font-size:10px}.header-right>span{font-size:11px}.header-right .button{padding:9px 11px;font-size:12px}.filters{padding:14px;gap:10px}.filters label{flex:1;min-width:115px}.filters label:first-child,.filters label:nth-of-type(2){min-width:100px}.date-separator{display:none}.filters input,.filters select{width:100%;min-width:0;font-size:13px}.filters .button{flex:1;padding:9px}.metrics{grid-template-columns:1fr 1fr;margin:16px 0}.metric{padding:17px}.metric-value{font-size:29px}.charts-grid{grid-template-columns:1fr;gap:16px}.section-heading{padding:18px;align-items:flex-start}.section-heading h2{font-size:16px}.section-heading p{line-height:1.6}.product-performance>.section-heading{flex-wrap:wrap}.table-tools{padding:0 18px 14px;flex-wrap:wrap}.table-tools input[type=search]{width:100%}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:4px 14px 12px;gap:10px}.card-info{padding:11px}.card-info h3{font-size:13px}.card-footer{flex-wrap:wrap}.import-layout{grid-template-columns:1fr;gap:16px}.import-guide{padding:20px}.notice{font-size:12px}.pagination{padding:14px;font-size:12px}footer{flex-direction:column;gap:6px}.audit-row{flex-direction:column;gap:4px}.brand{gap:8px}.card-image{padding:8px}.table-scroll th,.table-scroll td{padding:12px 16px}}

.mobile-account{display:none}@media(max-width:900px){.mobile-account{display:block}}

.brand-logo{width:56px;height:56px;object-fit:contain;background:white;border-radius:9px}.catalog-actions{display:flex;gap:9px;flex-wrap:wrap}.courier-detail-panel{margin-top:24px}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-columns input{width:100%;min-width:0}#courier-template{max-width:310px}@media(max-width:900px){.brand-logo{width:40px;height:40px}.sidebar nav{overflow-x:auto}.nav-item{flex-shrink:0}}@media(max-width:650px){.brand-logo{width:34px;height:34px}.catalog-actions .button{padding:8px 10px;font-size:12px}.form-columns{grid-template-columns:1fr}#courier-template{max-width:260px}}
.analysis-panel{margin-top:24px}#analysis-page .table-scroll{max-height:620px}#analysis-page th{white-space:nowrap}#analysis-page td:first-child{min-width:180px}#analysis-page .table-tools label input{width:100px}#analysis-page .table-tools{flex-wrap:wrap}
.select-button{border:1px solid #dbe3ed;border-radius:7px;padding:9px 34px 9px 11px;background:white;color:var(--ink);min-height:40px;min-width:180px;max-width:260px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative}.select-button::after{content:'⌄';position:absolute;right:11px;color:var(--muted)}.heading-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.heading-actions select,.table-tools select{min-height:36px;padding-top:6px;padding-bottom:6px}.category-checklist{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:360px;overflow:auto;margin:18px 0;padding:4px}.category-checklist label{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:var(--ink);font-size:14px;cursor:pointer}.category-checklist label:hover{background:#f5f9fe}.category-checklist input{margin:0;flex:0 0 auto}.table-tools .inline-label{flex-direction:row;align-items:center;white-space:nowrap}
@media(max-width:650px){.filters .select-button{width:100%;min-width:0;max-width:none;font-size:13px}.category-checklist{grid-template-columns:1fr}.heading-actions{gap:9px}.heading-actions .legend{display:none}}
.select-button.compact{min-width:170px;max-width:230px}.pagination-footer{display:flex;align-items:center;justify-content:flex-end;gap:18px;padding:0 24px}.pagination-footer .pagination{padding-left:0;padding-right:0}.analysis-dashboard{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,1fr);gap:20px}.analysis-category-chart{padding:5px 24px 22px;min-height:350px}.analysis-category-chart svg{display:block;width:100%;height:300px}.analysis-category-chart .chart-total{fill:#64758a;font-size:13px;font-weight:700}.analysis-category-chart .chart-month{fill:#64758a;font-size:12px}.chart-legend{display:flex;flex-wrap:wrap;gap:10px 16px;padding-top:14px;color:var(--muted);font-size:11px}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{width:9px;height:9px;border-radius:2px}.top10-list{padding:0 24px 22px}.top10-row{display:grid;grid-template-columns:25px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 0;border-top:1px solid #eef2f6}.top10-row>b{color:#8a98a9;text-align:center}.top10-row>div{position:relative;padding-bottom:7px;min-width:0}.top10-row span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.top10-row small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.top10-row i{position:absolute;left:0;bottom:0;height:3px;background:#4c95e6;border-radius:3px}.top10-row>strong{font-size:13px;font-variant-numeric:tabular-nums}.courier-share-panel{margin-bottom:20px}.courier-pie-wrap{display:grid;grid-template-columns:340px 1fr;align-items:center;gap:38px;padding:0 40px 34px}.donut{width:300px;height:300px;border-radius:50%;display:grid;place-items:center}.donut>div{width:166px;height:166px;background:white;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 0 0 1px #eef2f6}.donut strong{font-size:30px}.donut span{font-size:12px;color:var(--muted);margin-top:4px}.courier-company-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.courier-company-card{display:grid;grid-template-columns:14px 1fr;gap:5px 12px;align-items:center;padding:22px;border:1px solid var(--line);border-radius:14px;background:#fbfcfe}.courier-company-card i{width:14px;height:48px;border-radius:7px;grid-row:1/4}.courier-company-card span{font-size:18px;font-weight:700}.courier-company-card strong{font-size:27px}.courier-company-card small{color:var(--muted);font-size:13px}
@media(max-width:900px){.analysis-dashboard{grid-template-columns:1fr}.courier-pie-wrap{grid-template-columns:260px 1fr}.donut{width:240px;height:240px}.donut>div{width:134px;height:134px}.courier-company-row{grid-template-columns:1fr}}
@media(max-width:650px){.select-button.compact{width:100%;max-width:none}.pagination-footer{padding:0 14px;gap:8px;flex-wrap:wrap}.pagination-footer .pagination{padding:10px 0}.courier-pie-wrap{grid-template-columns:1fr;justify-items:center;padding:0 18px 22px}.courier-company-row{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.courier-company-card{padding:14px 10px}.courier-company-card span{font-size:15px}.courier-company-card strong{font-size:21px}.analysis-dashboard{gap:16px}}

/* 菓速源品牌视觉系统：品牌黄用于识别，深墨蓝用于主要操作。 */
:root{--bg:#f4f5f2;--surface:#fff;--ink:#152535;--muted:#697989;--line:#e2e6e3;--blue:#1f4059;--nav:#111d29;--soft:#f7f2d9;--amber:#725c12;--brand:#ffd400;--brand-deep:#f2c500;--radius:16px}.sidebar{background:linear-gradient(180deg,#111d29 0%,#172a3a 100%);box-shadow:8px 0 28px #0e1c2812}.brand-logo{border-radius:14px;box-shadow:0 5px 18px #0002}.brand{letter-spacing:.2px}.brand small{color:#a9bac8}.nav-label{color:#7f94a6}.nav-item{color:#c1cdd7;border:1px solid transparent}.nav-item:hover{background:#203647;color:#fff}.nav-item.active{background:#294458;color:#fff;box-shadow:inset 4px 0 var(--brand);border-color:#35546a}.sidebar-bottom{border-color:#314656}.account-button{background:#223b50;border-color:#3e596e}.preview-banner{background:#fff8d8;border-color:#f1df8b;color:#5e511d}.page-header{position:relative}.page-header::after{content:'';position:absolute;left:0;bottom:12px;width:44px;height:4px;border-radius:4px;background:var(--brand)}.eyebrow{color:#788895}.panel{border-color:#e1e6e3;box-shadow:0 8px 28px #17334a08}.button{border-color:#dce2df}.primary{background:var(--blue);border-color:var(--blue)}.primary:hover{background:#162f43}.subtle{background:#fff}.subtle:hover{background:#fff9dd;border-color:#dfc759}.button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,.select-button:focus-visible{outline-color:var(--brand-deep)}input:focus,select:focus,.select-button:focus{border-color:#d7b900}.metric:first-child{border-top-color:var(--brand)}.metric:first-child .metric-value{color:var(--ink)}.notice{background:#fffaf0;border-color:#ecdfb9}.notice.info{background:#f3f7f7;border-color:#dce7e5;color:#496b70}.chart-bar{fill:var(--brand-deep)}.chart-bar:hover{fill:#d8ad00}.legend i{background:var(--brand-deep)}.bar-fill{background:linear-gradient(90deg,var(--blue),#4f788d)}.segmented button.selected{color:var(--ink);box-shadow:inset 0 -3px var(--brand),0 1px 4px #18395112}.badge.blue{background:#edf4f4;color:#315e66}.badge.amber{background:#fff5cf;color:#715b09}thead{background:#f5f6f2;color:#61717f}tbody tr:hover{background:#fffdf3}.pagination button:hover:not(:disabled){border-color:#d5b600;background:#fff9dc}.select-button::after{color:#9a7f00}.category-checklist label:hover{background:#fff9dc;border-color:#ead36c}.top10-row i{background:var(--brand-deep)}#toast{background:#172d3e}.text-button{color:#285a74}.form-error{color:#a33e30}.upload-symbol{color:#a98700}.file-drop{background:#fffdf4;border-color:#dfcf86}.chart-gridline{stroke:#e8ebe7}.chart-baseline{stroke:#dfe4e1}

/* 产品筛选与排列 */
.table-tools{justify-content:flex-start;flex-wrap:wrap}.table-tools>span:last-child{margin-left:auto}.catalog-view{margin-left:auto}.catalog-grid .card-image{height:142px;aspect-ratio:auto;padding:10px}.card-footer>span{display:flex;gap:5px;flex-wrap:wrap}.pie-legend-head{color:var(--muted);font-size:11px;border-bottom:1px solid var(--line);padding-bottom:7px}.pie-legend-head i{visibility:hidden}
@media(max-width:650px){.catalog-view{margin-left:0}.catalog-grid .card-image{height:110px}}
.donut-chart{position:relative;width:300px;height:300px;display:grid;place-items:center}.donut-chart svg{width:100%;height:100%;transform:rotate(-90deg);overflow:visible}.donut-chart circle{fill:none;stroke-width:6}.donut-track{stroke:#edf2f7}.donut-zto{stroke:#2f80ed}.donut-postal{stroke:#f2c500}.donut-chart>div{position:absolute;inset:67px;background:#fff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.donut-chart strong{font-size:30px}.donut-chart span{font-size:12px;color:var(--muted);margin-top:4px}.courier-color-0{background:#2f80ed}.courier-color-1{background:#f2c500}@media(max-width:900px){.donut-chart{width:240px;height:240px}.donut-chart>div{inset:54px}}

.courier-company-row{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:650px){.courier-company-row{grid-template-columns:1fr}}

.courier-color-2{background:#16a085}.category-cascade{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:8px;min-height:280px}.category-cascade>div{max-height:360px;overflow:auto;padding:12px}.category-cascade>div+div{border-left:1px solid var(--line)}.tree-parent{display:flex;align-items:center;gap:10px;padding:4px 8px}.tree-parent button{flex:1;text-align:left;background:none;border:0;padding:12px 0;color:inherit}.tree-parent button span{float:right}.tree-parent.active{background:#edf4ff;color:#176dce;border-radius:6px}.category-cascade label{display:flex;gap:12px;align-items:center;padding:13px 6px}.category-cascade input{width:18px;height:18px;accent-color:#176dce}.category-tags{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.category-tags span{background:#edf4ff;border-radius:6px;padding:6px 10px;font-size:13px}.price-changed{background:#fff8dc}.change-badge{display:inline-block;background:#fff0b2;color:#785e00;font-size:12px;padding:3px 8px;border-radius:4px;margin-right:8px}.price-changed small{display:block;margin-top:6px;color:#78652b}
.subtabs{display:flex;gap:10px;margin:0 0 22px;overflow:auto}.subtabs[hidden]{display:none}.subtabs button{padding:13px 22px;border:1px solid #dce2e5;border-radius:10px;background:white;white-space:nowrap;color:#35495e;font-size:16px;cursor:pointer}.subtabs button.active{background:#fff8d6;border-color:#ecc93c;font-weight:700}

/* Small product cards scale with the available content width. */
#products-page{container-type:inline-size}
#catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:8px 20px 16px}
#catalog-grid .product-card{min-width:0;border-radius:10px}
#catalog-grid .card-image{display:block;width:100%;height:auto;aspect-ratio:1 / 1;padding:0;object-fit:cover}
#catalog-grid .card-info{padding:8px 9px}
#catalog-grid .card-info h3{font-size:14px;line-height:1.5;height:42px;min-height:0;margin:0 0 3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#catalog-grid .sku{font-size:12px;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#catalog-grid .card-footer{margin-top:5px;gap:4px;flex-wrap:nowrap;align-items:center}
#catalog-grid .card-footer>span{min-width:0;gap:2px;flex-wrap:nowrap;overflow:hidden}
#catalog-grid .badge{font-size:9px;padding:2px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:95px}
#catalog-grid .text-button{font-size:11px;line-height:18px}
#catalog-grid .product-prices{display:block;margin-top:4px}
#catalog-grid .muted{font-size:10px;margin:4px 0 0}
@container(min-width:1000px){#catalog-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@container(min-width:1400px){#catalog-grid{grid-template-columns:repeat(8,minmax(0,1fr))}}
@container(max-width:700px){#catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container(max-width:480px){#catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:6px 12px 12px}}
/* Shared spacing and visual rhythm across the management workspace. */
:root{--bg:#f3f6f8;--line:#e3e9ef;--muted:#6b7c8e;--radius:18px}
main{padding-bottom:36px}.page-header{padding-top:34px;padding-bottom:32px}.page-header p{line-height:1.65}.panel{border-color:var(--line);box-shadow:0 5px 22px #203e5910}.filters{padding:22px 24px;gap:14px 16px;margin-bottom:24px}.subtabs{gap:12px;margin:8px 0 26px;padding:4px 0}.subtabs button{padding:12px 22px;border-radius:12px;transition:background .15s,border-color .15s}.subtabs button:hover{background:#eef4fb;border-color:#bacde2}.subtabs button.active{background:#fff7d4;border-color:#e6c94e;box-shadow:0 3px 10px #d8b73515;color:#324357}.page>.panel+.panel{margin-top:24px}.section-heading{padding:24px 26px 20px;gap:20px}.section-heading p{line-height:1.65;margin-top:9px}.table-tools{padding:0 26px 20px;gap:14px 16px}.metrics{gap:20px;margin:24px 0}.metric{padding:24px;overflow:hidden}.metric:nth-child(2){border-top:3px solid #79a9db;background:linear-gradient(160deg,#f3f8ff,#fff 65%)}.metric:nth-child(3){border-top:3px solid #69b3a0;background:linear-gradient(160deg,#f0faf6,#fff 65%)}.metric:nth-child(4){border-top:3px solid #ac94d2;background:linear-gradient(160deg,#f7f3fc,#fff 65%)}.metric:first-child{background:linear-gradient(160deg,#fffbee,#fff 65%)}.metric-value{margin:18px 0 12px}.metric-note{line-height:1.65}.notice{padding:15px 18px;margin:22px 0;border-radius:12px}.notice.info{background:#eef6fb;border-color:#d6e7f1;color:#426779}.charts-grid,.analysis-dashboard,.import-layout{gap:24px}.charts-grid{margin-bottom:24px}th{padding:15px 22px;background:#f0f4f8;color:#62778b}td{padding:17px 22px;border-bottom-color:#eaf0f5}tbody tr:hover{background:#f6f9fd}.pagination{padding:20px 26px;gap:12px}.button,input,select,.select-button{border-radius:10px}.button{padding:11px 17px}.button.primary{box-shadow:0 3px 9px #1f40591a}.text-button{padding:4px 6px;border-radius:6px}.text-button:hover{background:#eaf3fc}.badge{border-radius:7px;padding:5px 9px}.badge.blue{background:#eaf3ff;color:#426b98}.badge.gray{background:#f0f2f6;color:#738196}.badge.red{background:#fff0ee;color:#a44f48}.price-changed td{background:#fffbeb}.change-badge{margin-bottom:8px}.price-changed td small{line-height:1.7}#category-bars{gap:19px;padding:0 26px}.category-label{gap:18px;line-height:1.5}.bar-track{height:8px;background:#edf2f8}.bar-fill{background:linear-gradient(90deg,#507aa7,#79a9cf)}#category-bars>div:nth-child(3n+2) .bar-fill{background:linear-gradient(90deg,#4b9383,#86bdab)}#category-bars>div:nth-child(3n) .bar-fill{background:linear-gradient(90deg,#8774b4,#b8a8d4)}.courier-company-card{background:#f8fafc;border-color:#e3e9ef;padding:24px;gap:8px 14px}.form-columns{gap:20px}dialog form>label{margin-bottom:16px}dialog{border-radius:20px}.audit-row{padding-top:16px;padding-bottom:16px;gap:20px}.catalog-grid{gap:16px}.card-info{line-height:1.6}footer{padding-top:26px}
@media(max-width:900px){.filters{padding:18px;gap:12px;margin-bottom:20px}.metrics{gap:14px}.section-heading{padding:20px}.table-tools{padding:0 20px 18px}.subtabs{margin-top:6px;gap:10px}.subtabs button{padding:11px 16px;font-size:14px}}
@media(max-width:650px){.filters{padding:16px;gap:12px}.page-header{padding-top:22px;padding-bottom:28px}.section-heading{padding:18px 16px;gap:14px}.table-tools{padding:0 16px 18px;gap:12px}.metrics{gap:12px;margin:20px 0}.metric{padding:18px}.notice{margin:18px 0;padding:13px 15px}.subtabs{margin-bottom:20px}.charts-grid,.analysis-dashboard,.import-layout{gap:18px}.pagination{padding:16px;flex-wrap:wrap}.catalog-grid{gap:10px}.page>.panel+.panel{margin-top:20px}}

.product-image-editor{padding:16px;background:#f5f8fc;border:1px solid #e3e9ef;border-radius:12px;margin:18px 0}.product-image-preview{display:block;width:150px;height:150px;object-fit:contain;background:white;border:1px solid #e3e9ef;border-radius:10px;margin:14px 0}.image-upload-status{font-size:13px;line-height:1.6}

/* v35: proportional category chart and mobile-first workspace. */
.overview-pie-section{padding:24px 26px;border-top:1px solid var(--line);margin-top:10px}.category-pie-layout{display:grid;grid-template-columns:minmax(180px,320px) minmax(0,1fr);gap:22px;align-items:center}.category-pie{width:100%;max-height:320px}.category-pie-legend{display:grid;gap:11px}.category-pie-legend>div{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:10px;align-items:center;font-size:13px}.category-pie-legend i{width:10px;height:10px;border-radius:3px}.category-pie-legend strong{text-align:right;font-variant-numeric:tabular-nums}.category-pie-legend small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:3px}.category-management{display:grid;gap:10px}.category-management-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:10px}.category-management-row small{display:block;color:var(--muted);margin-top:5px}.mobile-menu,.mobile-filter-toggle{display:none}.page,.panel,main,.section-heading>div,.metrics>*{min-width:0}.table-wrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
@media(max-width:900px){.sidebar{flex-wrap:wrap;gap:0;padding:12px 18px}.sidebar .brand{margin-right:auto}.mobile-menu{display:block;order:1;background:#29445e;border:1px solid #49617b;color:#fff;padding:9px 13px;border-radius:9px;font-size:14px}.sidebar nav{display:none;width:100%;flex-wrap:wrap;overflow:visible;padding-top:12px;gap:6px;order:2}.mobile-menu-open .sidebar nav{display:flex}.sidebar .nav-item{flex:1 1 30%;width:auto;padding:12px 10px;margin:0;text-align:center;justify-content:center}.mobile-filter-toggle:not([hidden]){display:block;margin:0 0 12px;width:100%}.filters.mobile-collapsed{display:none}.charts-grid{grid-template-columns:minmax(0,1fr)}.header-right{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px}.page-header{flex-wrap:wrap}.page-header>div:first-child{flex:1 1 100%}.header-right>span{flex:1 1 100%}.header-right .mobile-account{font-size:13px}.category-pie-layout{grid-template-columns:minmax(180px,280px) minmax(0,1fr)}.table-tools{flex-wrap:wrap}.table-tools>label,.table-tools>input,.table-tools>select{max-width:100%;min-width:0}.table-tools input[type=search]{width:100%}.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.filters label{min-width:0!important}.filters label input,.filters label select,.filters .select-button{width:100%;min-width:0;max-width:100%}.date-separator{display:none}.filters>.button{min-width:0;padding:11px 6px}.filters label:nth-of-type(5){grid-column:1/-1}.category-panel{padding-bottom:22px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-value{overflow-wrap:anywhere}.heading-actions{flex-wrap:wrap}.section-heading{flex-wrap:wrap}.section-heading .catalog-actions{width:100%}.catalog-actions{gap:8px}dialog{max-height:85dvh}input[type=date],input[type=month]{max-width:100%;min-width:0;appearance:none}.pagination-footer{flex-wrap:wrap}.subtabs{max-width:100%;-webkit-overflow-scrolling:touch}}
@media(max-width:480px){main{padding:0 12px 24px}.sidebar{padding:10px 12px}.page-header h1{font-size:25px}.page-header p{max-width:none}.header-right{width:100%}.header-right #header-import{margin-right:auto}.filters{padding:14px;gap:12px}.metric{padding:17px 14px}.metric-value{font-size:25px;letter-spacing:-.5px}.category-pie-layout{grid-template-columns:1fr;gap:10px}.category-pie{max-height:270px}.category-pie-legend{grid-template-columns:1fr;gap:10px}.overview-pie-section{padding:20px 16px}.table-tools>label{flex:1 1 45%;display:flex;flex-direction:column;align-items:stretch}.table-tools>select{flex:1 1 45%;width:100%}.table-tools input,.table-tools select{width:100%}.table-tools .inline-label input[type=checkbox]{width:auto}.section-heading p,.notice{overflow-wrap:anywhere}#price-estimates>h2,#link-estimates>h2{padding:20px 16px 0}#price-estimates>p:not(.notice),#link-estimates>p:not(.notice){padding:0 16px;font-size:13px;line-height:1.8}.category-cascade{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.category-cascade>div{padding:6px}.category-cascade label,.tree-parent{font-size:13px}.trend{height:235px}.analysis-category-chart{padding:4px 12px 16px}.pagination{gap:8px}.category-management-row strong{font-size:14px;overflow-wrap:anywhere}}

.ai-consent{margin:6vh auto;padding:16px;max-width:680px}.ai-consent-body{padding:0 26px 26px;line-height:1.8}.ai-consent-body .button{display:inline-block;margin:8px 8px 0 0}
/* Shared activity registry. */
.activity-tools label{display:flex;flex-direction:column;gap:8px;color:var(--muted);font-size:13px}.activity-tools .inline-label{flex-direction:row;align-items:center}.activity-spec{padding:14px 0;border-top:1px solid var(--line);min-width:240px}.activity-spec small,.activity-updated{display:block;color:var(--muted);font-size:12px;margin:6px 0}.activity-spec p{margin:8px 0}.activity-spec .text-button{margin-top:8px}#activity-body td{vertical-align:top;max-width:340px;min-width:160px}#activity-body details summary{cursor:pointer;font-weight:600;color:var(--blue);white-space:nowrap}#activity-body td:nth-child(2){min-width:240px}#activity-upload-preview{margin:12px 0;line-height:1.7}#activity-edit-form textarea{min-height:80px;border:1px solid var(--line);border-radius:8px;padding:10px;font:inherit}#activity-summary{margin:8px 24px 20px}
@media(max-width:480px){.activity-tools label{flex:1 1 45%}#activity-summary{margin:8px 16px 16px}#activity-body td{padding:12px 16px}}

/* v38 aligned activity controls and nested link/activity/spec view */
.activity-tools{display:grid;grid-template-columns:minmax(220px,2fr) minmax(120px,.7fr) minmax(220px,2fr) minmax(160px,1fr) auto auto;align-items:end;gap:18px}.activity-tools>input{align-self:end;width:100%!important}.activity-tools input[type=search],.activity-tools select,.activity-tools>button{height:44px}.activity-tools .inline-label{height:44px;margin:0;white-space:nowrap}.activity-campaign{margin:14px 0;padding:16px;background:#f7f9fd;border:1px solid var(--line);border-radius:12px}.activity-campaign header{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}.activity-spec-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.activity-spec-grid .activity-spec{padding:14px;background:white;border:1px solid var(--line);border-radius:10px;min-width:0}.activity-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.activity-price-grid span{font-size:12px;color:var(--muted)}.activity-price-grid strong{display:block;color:var(--ink);font-size:16px;margin-top:5px}#modal-content #activity-manual-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#activity-manual-form>p,#activity-manual-warning,#activity-manual-error,#activity-manual-form>button,.activity-calculation{grid-column:1/-1}#activity-manual-form label{margin:0;min-width:0}#activity-body td:last-child{min-width:460px;max-width:none}
@media(max-width:1400px){.activity-tools{grid-template-columns:repeat(4,minmax(0,1fr))}.activity-tools>input{grid-column:auto}}
@media(max-width:600px){.activity-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.activity-tools>input{grid-column:1/-1}#modal-content #activity-manual-form{grid-template-columns:1fr}#activity-body td:last-child{min-width:300px}}

dialog:has(#activity-manual-form){width:min(760px,calc(100vw - 32px))} #modal-content #activity-manual-form textarea{width:100%;min-height:80px;border:1px solid var(--line);border-radius:8px;padding:10px;font:inherit}

.activity-spec .text-button{margin-right:12px;white-space:normal;text-align:left;line-height:1.6}

/* v39 multi-SKU activity price editor */
dialog:has(#activity-manual-form){width:min(1060px,calc(100vw - 32px))}.activity-sku-editor{grid-column:1/-1;min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#f7f9fd}.activity-sku-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.activity-input-row td{padding:12px 8px;vertical-align:top}.activity-input-row td:first-child{min-width:200px}.activity-input-row input{width:100%;min-width:100px}.activity-input-row td:nth-child(2),.activity-input-row td:nth-child(3){width:150px}.activity-input-row small{display:block;line-height:1.6;color:var(--muted);margin:6px 0}.sku-row-finance{min-width:185px}.sku-row-finance span,.sku-row-finance strong{display:block;margin:6px 0;font-size:13px}.sku-row-finance strong{color:#17684f}.activity-sku-editor p{font-size:12px;line-height:1.7}@media(max-width:600px){.activity-sku-editor{padding:12px}.activity-sku-editor table{min-width:680px}.activity-sku-heading{flex-wrap:wrap}}

/* v40 activity guidance */
.guidance-panel{margin-bottom:24px}.guidance-filters{display:flex;gap:16px;padding:0 24px 20px}.guidance-filters input{flex:1}.guidance-filters select{min-width:150px}.guidance-blocked{background:#fff4f1}.guidance-panel td{vertical-align:top}.guidance-panel .positive{color:#25715d}.guidance-panel .negative{color:#bd423d}.audit-detail{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;background:#f4f7fb;padding:16px;border-radius:10px}.audit-row details{margin-top:10px}@media(max-width:600px){.guidance-filters{padding:0 16px 16px;flex-direction:column}.guidance-panel table{min-width:900px}}
.guidance-panel table{min-width:1100px}.guidance-panel th:first-child,.guidance-panel td:first-child{min-width:180px}.guidance-panel th:nth-child(2),.guidance-panel td:nth-child(2){min-width:210px}

/* v41 activity identity on the left; one editor per registration. */
#activity-body td:first-child{min-width:200px;max-width:260px}#activity-body td.activity-identity{min-width:200px;max-width:260px;background:#f8faff}#activity-body .activity-identity small{display:block;color:var(--muted);line-height:1.6;margin:8px 0}#activity-body .activity-identity>.button{margin-top:12px}#activity-body td:last-child{min-width:480px}.activity-spec-grid{align-items:start}#activity-body .activity-spec>strong{color:var(--blue)}

/* v42 compact guidance and shared results */
.guidance-panel tbody td{padding:10px 14px;vertical-align:middle}.guidance-panel tbody p{margin:4px 0}.guidance-panel .badge{padding:3px 7px;font-size:12px}.guidance-panel .activity-updated{margin-top:3px;font-size:11px}.guidance-panel .sku{margin-top:3px}.result-panel td{padding:12px}.result-panel td small{display:block;color:var(--muted);margin-top:4px}.result-panel input[type=search]{margin-bottom:16px;max-width:420px}#activity-summary-body section{margin-top:20px}#guidance-id-options{display:flex;flex-wrap:wrap;gap:12px}.inline-actions{display:flex;gap:10px;margin-top:12px}

/* v43 compact activity workspace, logo brand colors */
.badge.brand-tangxiu{background:#244a2e;color:#fff}.badge.brand-gosuyoo{background:#fed800;color:#302907}.activity-subtabs{margin:24px 0}.result-panel{margin-bottom:24px}.result-panel>input{margin-left:24px}#activity-monthly{margin-bottom:24px}#activity-summary-body{padding:0 24px 20px}#activity-summary-body table td{padding:8px 14px}#activity-summary-body section{margin-top:12px}#activity-summary-body h3{font-size:15px;margin:12px 0}#activity-summary-total{margin:0 24px 16px}#activity-monthly .section-heading{padding-bottom:18px}
#activity-body>tr>td{padding:10px 12px;vertical-align:top;min-width:140px;max-width:none}#activity-body>tr>td:first-child{min-width:180px;width:16%;max-width:240px}#activity-body>tr>td:nth-child(2){min-width:200px;width:20%;max-width:270px}#activity-body>tr>td:nth-child(3){min-width:140px;width:12%}#activity-body>tr>td:nth-child(4){min-width:600px}#activity-body>tr>td:last-child{min-width:155px;width:12%}#activity-body small{display:block;font-size:11px;color:var(--muted);margin:4px 0;line-height:1.5}#activity-body .activity-identity small{margin:4px 0}#activity-body .activity-identity .text-button{margin-top:6px}#activity-body .activity-product-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.5;margin-top:4px}#activity-body .activity-sku-table{font-size:12px;min-width:600px}#activity-body .activity-sku-table td,#activity-body .activity-sku-table th{padding:6px 8px;min-width:0;max-width:none;white-space:nowrap}#activity-body .activity-sku-table td:first-child{min-width:90px}#activity-body .activity-sku-table small{white-space:normal}#activity-body .activity-sku-table .activity-row-note{white-space:normal;color:#8a6222;background:#fff9e7;font-size:11px;padding:5px 8px}
@media(max-width:600px){#activity-summary-body{padding:0 16px 16px}#activity-summary-total{margin:0 16px 16px}.result-panel>input{margin-left:16px;max-width:calc(100% - 32px)}.activity-subtabs button{white-space:nowrap}}

#activity-summary-body{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}#activity-summary-body section{overflow-x:auto}#activity-summary-body th{padding:8px 10px;font-size:11px}#activity-summary-body table td{padding:8px 10px;font-size:12px}@media(max-width:1000px){#activity-summary-body{grid-template-columns:1fr}}

.activity-subtabs button.selected{background:#fff7d5;border-color:#e2c54b;color:#243e55;font-weight:650}

/* v44: readable guidance SKU, aligned with brand badges */
#guidance-body .guidance-sku-code{font-size:14px;font-weight:650;color:var(--ink);letter-spacing:.2px;margin-right:6px;}

/* v45 balanced product columns and compact price rows */
.guidance-panel table{min-width:1220px;table-layout:fixed}.guidance-panel th,.guidance-panel tbody td{padding:9px 12px;line-height:1.4}.guidance-panel th:first-child,.guidance-panel td:first-child{width:260px;min-width:260px}.guidance-panel th:nth-child(2),.guidance-panel td:nth-child(2){width:180px;min-width:180px}.guidance-panel th:nth-child(3),.guidance-panel th:nth-child(4){width:120px}.guidance-panel th:nth-child(5){width:80px}.guidance-panel th:nth-child(6),.guidance-panel th:nth-child(7){width:90px}.guidance-panel th:nth-child(8){width:210px}.guidance-panel th:last-child{width:70px}.guidance-panel td{overflow-wrap:anywhere}.guidance-panel td:first-child>strong{display:block;font-size:14px;line-height:1.5}.guidance-panel .sku{display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;margin-top:5px}.guidance-ids{display:flex;flex-wrap:wrap;gap:4px 6px;font-size:12px}.guidance-ids span{padding:2px 6px;background:#edf2f8;border-radius:4px;white-space:nowrap}.guidance-panel .activity-updated{line-height:1.4}
.activity-records-table{min-width:1490px;table-layout:fixed}.activity-records-table>thead>tr>th{padding:10px 12px}.activity-records-table>thead>tr>th:first-child{width:200px}.activity-records-table>thead>tr>th:nth-child(2){width:320px}.activity-records-table>thead>tr>th:nth-child(3){width:180px}.activity-records-table>thead>tr>th:nth-child(4){width:620px}.activity-records-table>thead>tr>th:last-child{width:170px}#activity-body>tr>td:first-child,#activity-body>tr>td:nth-child(2),#activity-body>tr>td:nth-child(3),#activity-body>tr>td:last-child{width:auto;max-width:none;min-width:0}#activity-body>tr>td{padding:10px 12px}#activity-body .activity-product-name{font-size:14px;line-height:1.55;-webkit-line-clamp:3;margin-top:7px}#activity-body .activity-pending{color:#986514}#activity-body .activity-identity>strong{font-size:13px;line-height:1.5;display:block}#activity-body .activity-sku-table{width:100%;table-layout:auto}
.cost-guide-table{min-width:1180px;table-layout:fixed}.cost-guide-table th,.cost-guide-table #price-body td{padding:9px 12px;line-height:1.4;vertical-align:middle}.cost-guide-table th:first-child{width:260px}.cost-guide-table th:nth-child(2){width:240px}.cost-guide-table th:last-child{width:120px}.cost-guide-table #price-body td{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.cost-guide-table #price-body td:first-child,.cost-guide-table #price-body td:nth-child(2){font-size:13px}.cost-guide-table .sku{margin-top:3px;line-height:1.4}.cost-guide-table #price-body small{display:block;font-size:11px;line-height:1.4;margin-top:3px}.cost-guide-table .change-badge{margin:0 6px 3px 0;padding:2px 6px;font-size:11px}.cost-guide-table .text-button{font-size:12px;padding:3px 0}

.price-change-detail{margin-top:4px}.price-change-detail summary{cursor:pointer;color:#78652b;font-size:11px;line-height:1.4}.price-change-detail .change-badge{margin:0}.price-change-detail[open] small{padding:5px 0}

/* v46 compact registrations, consistent left edges and wider activity IDs */
.activity-brand-shop{display:flex;align-items:center;gap:8px;min-height:26px}.activity-shop-name{font-size:11px;color:var(--muted);line-height:1.35;overflow-wrap:anywhere;min-width:0}#activity-body>tr>td{padding:8px 12px}#activity-body .activity-brand-shop .badge{padding:3px 8px}#activity-body .activity-product-name{margin-top:4px;line-height:1.4;-webkit-line-clamp:2}#activity-body .activity-identity{padding-left:12px}#activity-body .activity-identity .text-button{display:block;text-align:left;padding:2px 0;margin-top:4px;line-height:1.4}#activity-body .activity-identity small{margin:3px 0;line-height:1.4}#activity-body .activity-identity>strong{line-height:1.4}#activity-body small{margin:3px 0;line-height:1.4}#activity-body .activity-sku-table td,#activity-body .activity-sku-table th{padding:5px 8px}.activity-records-table>thead>tr>th:first-child{padding-left:12px}
.guidance-panel th:first-child,.guidance-panel td:first-child{width:210px;min-width:210px}.guidance-panel th:nth-child(2),.guidance-panel td:nth-child(2){width:230px;min-width:230px}.guidance-panel th,.guidance-panel tbody td{padding-top:8px;padding-bottom:8px}.guidance-ids{gap:4px}.guidance-ids span{padding:2px 5px}.guidance-panel .sku{gap:4px 6px;margin-top:4px}
/* Cost calculation drafts, with a compact readable worksheet layout. */
.calc-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 22px}.calc-tabs small{opacity:.65;margin-left:6px}
.calculation-table{min-width:1420px;table-layout:auto}.calculation-table th,.calculation-table td{padding:10px 12px;vertical-align:middle}.calculation-table th{white-space:nowrap}
.calculation-table td:nth-child(2){min-width:190px;max-width:235px}.calculation-table td:nth-child(2) strong{display:block;font-size:14px;line-height:1.5}.calculation-table .calc-code{font-size:14px;font-weight:650;margin:3px 0}.calculation-table small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:3px}.calculation-table .calc-total{background:#f0f7f3;color:#244a2e}.calc-status{min-width:160px;max-width:220px;font-size:12px}.calc-status .badge{font-size:11px;padding:4px 7px;white-space:normal}
.calculation-help{margin-top:20px;font-size:13px;color:var(--muted)}.calculation-help summary{cursor:pointer;color:#34536a}.calculation-help p{line-height:1.8}.calc-sync-preview{max-height:420px;overflow:auto}.calc-formulas{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.calculation-panel .table-tools{gap:14px;align-items:end}.calculation-panel .table-tools input[type=search]{flex:1;min-width:180px}
@media(max-width:700px){.calc-tabs{flex-wrap:nowrap;overflow:auto;padding-bottom:8px}.calc-tabs button{white-space:nowrap;flex:0 0 auto}.calculation-panel .table-tools{display:grid;grid-template-columns:1fr 1fr}.calculation-panel .table-tools input[type=search]{grid-column:1/-1;width:100%;min-width:0}.calculation-panel .heading-actions{flex-wrap:wrap}.calculation-panel .section-heading{align-items:start}.calculation-table td:nth-child(2){min-width:170px}}
.calculation-table th:first-child,.calculation-table td:first-child{position:sticky;left:0;z-index:2;background:#fff;min-width:34px;max-width:34px;padding:8px}.calculation-table th:nth-child(2),.calculation-table td:nth-child(2){position:sticky;left:34px;z-index:2;background:#fff;box-shadow:4px 0 5px -5px #8897a7}.calculation-table thead th:first-child,.calculation-table thead th:nth-child(2){background:#f0f4f8}

/* v49: shared search actions, dense analytics and readable profit controls. */
.search-control{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;flex:0 1 370px}.search-control input[type=search]{flex:1;width:0!important;min-width:0}.search-control .search-action{flex:none;padding:9px 14px}.search-control:has(#result-search){margin:14px 24px}.search-control:has(#guidance-search){flex:1}.search-control:has(#audit-search){flex:1}.table-tools{gap:12px;align-items:center}.charts-grid{align-items:start}.category-panel{align-self:start}.category-panel .section-heading{padding:18px 22px 10px}#category-bars{padding:0 22px 18px}#category-bars>div{margin-bottom:12px}.category-label{font-size:13px;margin-bottom:5px}.bar-track{height:7px}.category-other{margin-top:14px;font-size:12px}.overview-pie-section{padding:18px 22px}.overview-pie-section>h2{margin:0 0 6px;font-size:18px}.overview-pie-section>p{margin:0 0 14px;font-size:12px}.category-pie-layout{grid-template-columns:minmax(170px,260px) minmax(0,1fr);gap:20px;align-items:start}.category-pie{max-height:260px;align-self:center}.category-pie-legend{gap:7px}.category-pie-legend>div{font-size:12px;gap:8px}.category-pie-legend strong{display:flex;gap:10px;align-items:center;justify-content:flex-end;font-size:12px}.category-pie-legend small{margin:0;min-width:65px;text-align:right}.analysis-dashboard{align-items:start}.analysis-panel .section-heading{padding:18px 22px}.analysis-panel td,.analysis-panel th{padding:10px 18px;font-size:13px}.analysis-panel th.number,.analysis-panel td.number{text-align:right}.analysis-panel td:first-child,.analysis-panel th:first-child{text-align:left;width:30%}.period-change{display:block;font-size:11px!important;margin-top:3px;font-variant-numeric:tabular-nums}.period-change span{font-size:10px;opacity:.7}.period-change.up{color:#26725d}.period-change.down{color:#b45749}.analysis-panel .sku{margin-top:3px}.analysis-panel .top10-row{padding:9px 0}.analysis-panel .table-tools{padding:14px 22px}#price-estimates>h2,#link-estimates>h2{padding:20px 24px 0;margin:0;font-size:20px}#price-estimates>p:not(.notice),#link-estimates>p:not(.notice){padding:0 24px;margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.75;max-width:1100px}#price-estimates .table-tools,#link-estimates .table-tools{padding:18px 24px;align-items:flex-end}#price-estimates .table-tools>label,#link-estimates .table-tools>label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}#price-estimates .table-tools>label:has(select),#link-estimates .table-tools>label:has(select){flex:1 1 230px;max-width:340px}#price-estimates .search-control,#link-estimates .search-control{flex:1 1 330px}#price-estimates #profit-summary:empty{display:none}#price-estimates #profit-summary{margin:0 24px 16px}#price-estimates #profit-note,#link-estimates #link-summary{margin:0 24px 18px;font-size:12px;line-height:1.75}#price-estimates td,#link-estimates td{padding:12px 18px;font-size:13px;font-variant-numeric:tabular-nums}#price-estimates th,#link-estimates th{padding:13px 18px;font-size:12px;white-space:nowrap}#price-estimates td:first-child,#link-estimates td:first-child{font-weight:600;min-width:230px;max-width:360px}#price-estimates td:not(:first-child),#price-estimates th:not(:first-child),#link-estimates td:not(:first-child),#link-estimates th:not(:first-child){text-align:right}#link-estimates td:last-child,#link-estimates th:last-child{text-align:left}#link-estimates details{margin-top:5px;font-weight:400;font-size:12px}#link-estimates details>div{padding:4px 0;color:var(--muted)}#edit-product-form .form-columns{gap:14px}#edit-product-form .form-columns label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:12px}
@media(max-width:900px){.search-control{flex:1 1 260px}.category-pie-layout{grid-template-columns:minmax(150px,240px) minmax(0,1fr)}}
@media(max-width:480px){.search-control{flex:1 1 100%;width:100%}.category-pie-layout{grid-template-columns:1fr}.category-pie{max-height:220px}.category-pie-legend{gap:6px}.category-pie-legend strong{font-size:12px}.category-pie-legend small{min-width:60px}.overview-pie-section{padding:16px}.analysis-panel .section-heading{padding:16px}.analysis-panel td,.analysis-panel th{padding:9px 12px}.analysis-panel .table-tools{padding:14px}#price-estimates>h2,#link-estimates>h2{padding:16px 16px 0}#price-estimates>p:not(.notice),#link-estimates>p:not(.notice){padding:0 16px}#price-estimates .table-tools,#link-estimates .table-tools{padding:16px}#price-estimates #profit-note,#link-estimates #link-summary{margin:0 16px 16px}#price-estimates #profit-summary{margin:0 16px 16px}}
.profit-method{margin:8px 24px 0;color:var(--muted);font-size:12px;line-height:1.8}.profit-method summary{cursor:pointer;color:#285a74}.profit-method p{margin:7px 0 0;max-width:1050px}.profit-method[open]{padding:10px 14px;background:#f5f8fa;border-radius:9px}@media(max-width:480px){.profit-method{margin:8px 16px 0}}

/* v50: aligned cost worksheet and monthly courier navigation. */
.calc-tabs{padding:0 20px;margin:4px 0 14px;gap:6px}.calc-tabs button{font-size:13px;padding:9px 13px;min-height:0;border-radius:10px}.calc-tabs small{font-size:11px;margin-left:4px}.calculation-panel .calc-tools{display:flex;flex-wrap:wrap;align-items:end;padding:0 20px 14px;gap:10px}.calc-tools>label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}.calc-tools .search-control{flex:0 1 270px}.calc-tools select{width:150px}.calc-tools input[type=month]{width:155px}.calc-tools .inline-label{flex-direction:row;align-items:center;height:38px;white-space:nowrap}.calc-tools .button,.calc-tools input,.calc-tools select{min-height:38px;padding:8px 10px;font-size:13px}.calculation-panel #calc-summary{margin:0 20px 14px;padding:11px 14px;font-size:12px}.calculation-table{min-width:1180px}.calculation-table th,.calculation-table td{padding:8px;font-size:12px}.calculation-table th:not(:nth-child(2)):not(:nth-last-child(-n+2)){text-align:right}.calculation-table td:nth-child(2){min-width:160px;max-width:195px}.calculation-table td:nth-child(2) strong{font-size:13px;line-height:1.35}.calculation-table .calc-code{font-size:13px;margin:2px 0}.calculation-table .calc-status{min-width:105px;max-width:130px;font-size:11px}.calculation-table td:last-child{min-width:72px}.calculation-table td:last-child button{display:block;font-size:12px;padding:3px 0;white-space:nowrap}.calculation-table td:last-child button:disabled{opacity:.45;cursor:not-allowed}.courier-filters{gap:12px;padding:20px}.courier-filters #courier-month{min-width:160px}.courier-filters>label{flex:0 1 180px}.courier-filters>label:has(#shop){flex:1 1 230px}
@media(max-width:700px){.calculation-panel .calc-tools{display:grid;grid-template-columns:1fr 1fr;padding:0 14px 12px}.calc-tools .search-control{grid-column:1/-1;width:100%}.calc-tools select,.calc-tools input[type=month]{width:100%}.calc-tabs{padding:0 14px}.calculation-panel #calc-summary{margin:0 14px 12px}.courier-filters{padding:14px}}

/* v51: editable prices and aligned shared panels */
.price-product{display:flex;align-items:center;gap:10px;min-width:0;text-align:left}.price-product>img{width:56px;height:56px;object-fit:contain;flex:none;border:1px solid var(--line);border-radius:8px;background:white}.price-product>div{min-width:0}.price-product strong{display:block;font-size:13px;line-height:1.4}.product-brands{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}.product-brands .badge{font-size:11px;padding:3px 7px}.inline-price{width:92px!important;min-width:0;padding:7px 8px!important;text-align:right;font-size:13px;font-variant-numeric:tabular-nums}.discount95{display:flex;gap:5px;align-items:center;justify-content:flex-end;font-size:11px;color:var(--muted);margin-top:5px}.discount95 input{width:auto;margin:0}.inline-save-state{font-size:10px;color:var(--muted);display:block;margin-top:4px}.brand-fields{display:flex;gap:18px;flex-wrap:wrap;border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin:12px 0}.brand-fields legend{font-size:12px;color:var(--muted)}.brand-fields label{display:flex;align-items:center;gap:6px;margin:0}.brand-fields input{width:auto}.cost-guide-table td:first-child{min-width:230px;max-width:330px}.cost-guide-table td{vertical-align:middle}.cost-guide-table td:nth-child(2){min-width:125px}.activity-tools{align-items:flex-end!important}.activity-tools>label:not(.inline-label){display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted)}.activity-tools .search-control{flex:1 1 290px;max-width:390px}.activity-tools>label:has(#activity-shop){flex:1 1 220px;max-width:350px}.activity-tools input,.activity-tools select,.activity-tools .button{height:40px}.activity-tools .inline-label{height:40px;margin:0;align-items:center}.activity-tools input[type=checkbox]{height:auto}.activity-records-table>tbody>tr>td{vertical-align:top}.charts-grid{align-items:stretch}.category-panel{align-self:stretch;position:relative;display:flex;flex-direction:column;max-height:880px}.category-panel #category-bars{flex:1;min-height:0;overflow:hidden}.category-panel:not(.category-expanded) #category-bars>div:nth-child(n+8):not(.category-other){display:none}.category-panel .category-expand{align-self:center;margin:6px 22px 18px;padding:8px 18px}.category-panel.category-expanded{max-height:none}.category-panel.category-expanded #category-bars{overflow:visible}.category-panel #category-bars>div{margin-bottom:17px}.trend-panel .overview-pie-section{padding-bottom:22px}.category-panel .category-other{margin-top:18px}.calculation-table td:first-child+td{min-width:230px}.calculation-table .price-product{max-width:290px}.calculation-table .price-product img{width:44px;height:44px}
@media(max-width:900px){.category-panel{max-height:550px}.category-panel.category-expanded{max-height:none}.activity-tools{gap:10px}.activity-tools>label{flex:1 1 160px}.price-product>img{width:44px;height:44px}}

.category-pie-legend{max-height:320px;overflow-y:auto;padding-right:6px}.category-panel{max-height:none}.category-panel:not(.category-expanded) #category-bars{max-height:620px}.category-panel.category-expanded #category-bars{max-height:none}.calculation-table .price-product>img{width:44px;height:44px}.calculation-table .price-product{max-width:290px}

/* v52 compact product and deliberate selected-SKU publication */
.sku-brand-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:3px}.sku-brand-line .sku{margin:0!important;font-size:12px}.sku-brand-line .badge{font-size:10px;padding:2px 6px;line-height:1.4}.price-product{gap:8px}.price-product>img{width:42px;height:42px}.cost-guide-table td,.calculation-table td{padding:7px 9px!important}.price-product strong{font-size:12px!important;line-height:1.3!important}.calculation-table .price-product img{width:36px;height:36px}.cost-guide-table .price-change-detail{margin-top:3px;font-size:10px}.cost-guide-table .change-badge{font-size:10px;padding:2px 5px}.inline-price{width:76px!important;border-radius:5px!important;padding:4px 6px!important;min-height:29px!important;height:29px!important;border-color:transparent;background:transparent;font-size:12px!important}.inline-price:hover{border-color:var(--line);background:white}.inline-price:focus{border-color:#e3bf30;background:white;outline:2px solid #f9edba}.inline-save-state:empty{display:none}.discount95{margin:3px 0 0;gap:4px;font-size:10px}.calculation-table .discount95 input{width:12px;height:12px;min-height:0;padding:0}.calculation-table td:nth-child(8) small{font-size:10px;margin-top:2px}.discount95-field{justify-content:flex-start;align-self:center;margin:0;font-size:12px;grid-column:2}.discount95-field input{width:auto;min-height:0}.form-columns>label.field{display:flex;flex-direction:column;align-items:stretch;gap:6px}.calc-tools #calc-sync{font-size:12px;box-shadow:none}.calc-tools #calc-sync:disabled{opacity:.4;cursor:not-allowed}.category-panel:not(.category-expanded) #category-bars>div:nth-child(n+8):not(.category-other){display:block}.category-panel:not(.category-expanded) #category-bars>div:nth-child(n+11):not(.category-other){display:none}.category-panel #category-bars>div{margin-bottom:10px}.category-panel #category-bars{flex:0 0 auto}.category-panel .category-expand{margin-top:auto}.sidebar nav{margin-top:20px}

/* v53: two-line cost rows and consistent pricing category navigation */
.calculation-table{table-layout:fixed;width:100%;min-width:1310px}
.calculation-table th,.calculation-table td{padding:6px 7px!important;line-height:1.35;vertical-align:middle}
.calculation-table th:first-child,.calculation-table td:first-child{width:30px;min-width:30px;max-width:30px}
.calculation-table th:nth-child(2),.calculation-table td:nth-child(2){left:30px;width:235px;min-width:235px;max-width:235px}
.calculation-table th:nth-child(n+3):nth-child(-n+7){width:65px}
.calculation-table th:nth-child(8){width:92px}
.calculation-table th:nth-child(9){width:156px}
.calculation-table th:nth-child(10){width:90px}
.calculation-table th:nth-child(11){width:70px}
.calculation-table th:nth-child(12){width:62px}
.calculation-table th:nth-child(13){width:150px}
.calculation-table th:nth-child(14){width:70px}
.calculation-table .price-product strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calculation-table .sku-brand-line{flex-wrap:nowrap;gap:5px;margin-top:3px}
.calculation-table .price-product{max-width:100%}
.calculation-table .price-product>div{overflow:hidden}
.calculation-table .calc-status{min-width:0;max-width:none}
.calculation-table small{margin-top:3px;line-height:1.35;font-size:10px}
.calculation-table .calc-status .badge{display:inline-block;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;padding:2px 5px;vertical-align:middle}
.calc-reference-top{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-height:26px}
.calc-reference-top .inline-price{width:64px!important;height:25px!important;min-height:25px!important;padding:2px 4px!important}
.calc-reference-top .discount95{margin:0;white-space:nowrap;flex:none}
.calc-reference-top input[type=number]{appearance:textfield;-moz-appearance:textfield}
.calc-reference-top input::-webkit-inner-spin-button,.calc-reference-top input::-webkit-outer-spin-button{appearance:none;margin:0}
.calculation-table td:last-child button{padding:1px 0!important;line-height:1.6}
.calculation-table .calc-total strong{font-size:12px;margin:0}
.price-category-tabs{margin:0 0 12px}.price-tools{align-items:end;gap:10px}
.price-tools>label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px}
.price-tools select{max-width:165px}.price-tools .search-control{flex:0 1 270px}
.price-tools>input,.price-tools select,.price-tools .button{font-size:12px;padding:8px 10px}

/* v54: compact category strip and editable cost components */
.price-category-tabs{display:flex;flex-wrap:nowrap!important;overflow-x:auto;padding-bottom:5px;gap:6px}
.price-category-tabs button{flex:none;padding:7px 11px!important;font-size:12px!important}
#price-body td:nth-child(2),#page-pricing table th:nth-child(2){width:110px!important;min-width:110px!important;max-width:110px!important}
#page-pricing table:has(#price-body){table-layout:fixed;width:100%;min-width:980px}
#page-pricing table:has(#price-body) th:first-child{width:250px}
#price-body td{padding:8px 10px!important}
.inline-component{width:100%!important;min-width:0;height:27px!important;padding:3px 2px!important;text-align:right;font-size:12px!important;border:1px solid transparent!important;border-radius:5px!important;background:transparent;appearance:textfield}
.inline-component:hover{border-color:var(--line)!important;background:#fff}.inline-component:focus{border-color:#d2b739!important;background:#fff;outline:2px solid #f9edac}
.inline-component::-webkit-inner-spin-button,.inline-component::-webkit-outer-spin-button{appearance:none;margin:0}
.cost-guide-table{table-layout:fixed;width:100%;min-width:1000px!important}
.cost-guide-table th:first-child,.cost-guide-table td:first-child{width:250px!important;min-width:250px!important;max-width:250px!important}
.cost-guide-table th:nth-child(2),.cost-guide-table td:nth-child(2){width:105px!important;min-width:105px!important;max-width:105px!important}
.cost-guide-table th:nth-child(n+3),.cost-guide-table td:nth-child(n+3){width:auto!important;min-width:0!important}

/* v55 catalog copy action */
.card-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.card-actions .text-button{padding:2px 0;font-size:12px;white-space:nowrap}

/* v56 filters, permissions, and shipment estimates */
#pricing-page .price-tools{display:grid;grid-template-columns:130px minmax(170px,1.5fr) repeat(4,minmax(100px,1fr));gap:12px;align-items:end;padding:16px 22px}
#pricing-page .price-tools label{display:flex;flex-direction:column;gap:6px;font-size:12px;margin:0}#pricing-page .price-tools input,#pricing-page .price-tools select{width:100%;min-width:0;height:36px;margin:0}#pricing-page #price-version{grid-column:1/-1;grid-row:2;font-size:12px}#pricing-page .price-category-tabs{padding:0 22px 8px;gap:6px}#pricing-page .price-category-tabs button{padding:8px 12px;border-radius:9px}
.price-edit-form .form-columns{gap:14px}.price-edit-form .field{display:flex;flex-direction:column;gap:6px}.price-edit-form select{width:100%;min-width:0}.price-edit-form>label{margin:14px 0}.price-edit-form .product-image-editor{padding:12px}.price-edit-form .product-image-preview{width:90px;height:90px}
.permission-groups{display:grid;gap:12px}.permission-groups fieldset,.permission-shops{padding:12px 16px;margin:0 0 14px;border:1px solid var(--border,#e1e7ed);border-radius:12px}.permission-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.permission-options label{display:flex!important;align-items:flex-start;gap:8px;font-size:13px;margin:0!important;padding:8px;background:#f6f8fb;border-radius:7px}.permission-options input{width:15px!important;height:15px!important;margin:2px 0!important;flex-shrink:0}.permission-shops p{font-size:12px;line-height:1.6}
@media(max-width:1100px){#pricing-page .price-tools{grid-template-columns:repeat(4,minmax(0,1fr))}#pricing-page #price-version{grid-row:auto}}@media(max-width:640px){#pricing-page .price-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.permission-options{grid-template-columns:1fr}}

#metrics{grid-template-columns:repeat(4,minmax(0,1fr))}#pricing-page .price-tools .search-control{min-width:0;width:100%;flex-wrap:nowrap}#pricing-page .price-tools .search-control input{min-width:0;width:100%}#pricing-page .price-tools .search-action{flex:none;padding:7px 10px}#pricing-page .price-tools>select{align-self:end}@media(max-width:900px){#metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.raw-cost-button{display:block;font-size:10px!important;padding:0!important;color:var(--muted);white-space:nowrap;margin-left:auto}.raw-cost-button:hover{color:#26455d}

/* v58: consistent draft fields and price units */
.cost-draft-form .form-columns{gap:14px 18px;align-items:start}.cost-draft-form .form-columns>label,.cost-draft-form .reference-draft-field>label:first-child,.cost-draft-form>label{display:flex;flex-direction:column;align-items:stretch;gap:6px;font-size:13px;color:var(--text);margin:0}.cost-draft-form input:not([type=checkbox]),.cost-draft-form select{width:100%;min-width:0;height:38px;padding:7px 10px;font-size:13px;border-radius:8px}.cost-draft-form .brand-fields{margin:16px 0;padding:10px 14px}.cost-draft-form .brand-fields label{font-size:13px}.cost-draft-form .material-rate-control{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:8px}.cost-draft-form .material-unit-hint{font-size:11px;color:var(--muted);line-height:1.5}.cost-draft-form .reference-draft-field .discount95{display:flex;align-items:center;justify-content:flex-start;font-size:12px;margin-top:7px}.cost-draft-form .discount95 input{width:auto;height:14px;min-height:0;margin:0}.cost-draft-form .notice{padding:12px;margin:16px 0;font-size:12px;line-height:1.7}.cost-draft-form>label{margin-top:14px}.cost-draft-form .muted{font-size:11px;line-height:1.6}.cost-draft-form>.button{margin-top:10px}@media(max-width:650px){.cost-draft-form .form-columns{grid-template-columns:1fr}.cost-draft-form .material-rate-control{grid-template-columns:minmax(0,1fr) 145px}}

.packaging-fields{margin:16px 0;padding:12px 14px;border:1px solid var(--line);border-radius:9px}.packaging-fields legend{font-size:12px;color:var(--muted)}.packaging-fields .inline-label{font-size:12px;display:flex;align-items:center;gap:6px}.packaging-fields .inline-label input{width:14px!important;height:14px!important;min-height:0;margin:0}.packaging-fields-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.packaging-fields-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px}.packaging-fields>small{display:block;margin-top:9px}.inline-component[readonly]{color:#647687;background:transparent}.guidance-panel .price-product{min-width:210px;max-width:300px}.guidance-panel .sku{margin:3px 0;font-size:12px}.guidance-panel .badge{font-size:10px;padding:2px 6px}@media(max-width:650px){.packaging-fields-grid{grid-template-columns:1fr}}

.result-sales-input{width:110px!important;min-height:34px!important;padding:5px 9px!important;text-align:right}.result-sales-input+small{font-size:11px;max-width:145px;white-space:normal}.activity-edit-entry{margin-top:8px;min-height:32px;padding:5px 12px;font-size:13px}

#activity-body .activity-identity .activity-edit-entry{display:block;margin:6px 0 0;padding:5px 10px;min-height:30px}#activity-body .activity-access-reason{font-size:11px;color:#986514;white-space:normal}

/* v62 compact activity guidance */
.guidance-panel table{min-width:1160px;width:100%;table-layout:fixed}
.guidance-panel th:first-child,.guidance-panel td:first-child{width:250px;min-width:250px}
.guidance-panel th:nth-child(2),.guidance-panel td:nth-child(2){width:155px;min-width:155px}
.guidance-panel th:nth-child(8){width:250px}.guidance-panel th:last-child{width:64px}
.guidance-panel tbody td{padding:10px 12px;vertical-align:middle}.guidance-ids{display:flex;flex-direction:row;align-content:center}
.guidance-note summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer;font-size:12px;line-height:1.5;color:#52657b}
.guidance-note summary::before{content:'▸ ';color:#8996a5}.guidance-note[open] summary{-webkit-line-clamp:1}.guidance-note[open] p{font-size:12px;line-height:1.6;white-space:pre-wrap;margin:6px 0}
.guidance-panel .activity-updated{font-size:11px;margin-top:5px}.guidance-panel .price-product img{width:44px;height:44px}.guidance-panel .price-product strong{font-size:13px;line-height:1.4}

.category-group{border:1px solid #e1e7ef;border-radius:12px;overflow:hidden;margin-bottom:12px}.category-group .category-management-row{border:0;border-radius:0;margin:0;padding:12px 16px;background:#f4f7fb}.category-children{padding:0 16px}.category-group .category-child{background:white;border-top:1px solid #edf1f6;padding:10px 0 10px 18px}.category-row-actions{display:flex;align-items:center;gap:12px}.category-row-actions .button{padding:6px 10px;min-height:32px;font-size:12px}.category-empty{font-size:12px;margin:10px 18px}.category-child strong{font-size:13px}.category-child strong:before{content:'↳ ';color:#96a4b5}

/* v71: compact activity results with unit economics independent of ERP matching. */
.result-panel .result-table{min-width:1180px;table-layout:fixed;font-size:13px}
.result-panel .result-table th,.result-panel .result-table td{padding:10px 12px;vertical-align:middle;line-height:1.45}
.result-table th:nth-child(1){width:18%}.result-table th:nth-child(2){width:10%}.result-table th:nth-child(3){width:12%}.result-table th:nth-child(4){width:11%}.result-table th:nth-child(5){width:9%}.result-table th:nth-child(6){width:9%}.result-table th:nth-child(7){width:12%}.result-table th:nth-child(8){width:9%}.result-table th:nth-child(9){width:10%}
.result-table small{display:block;margin-top:4px;font-size:11px;line-height:1.4;color:var(--muted)}
.result-table .result-product strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.result-table .badge{font-size:10px;padding:2px 5px;margin-left:4px}
.result-table .result-sales-input{width:100%;max-width:105px;min-height:32px;height:32px;padding:5px 8px;font-size:13px;text-align:right}
.result-table .result-date,.result-table .result-number{white-space:nowrap;font-variant-numeric:tabular-nums}
.result-margin{font-size:11px;color:var(--muted)}
.result-update>div{display:flex;gap:8px;justify-content:space-between}.result-update small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.result-match{border:0;background:transparent;padding:0;text-align:left;font-size:12px;cursor:pointer;line-height:1.4}.result-match:hover{text-decoration:underline}.result-match small{font-weight:400;text-decoration:none}

.result-panel .table-scroll{padding-bottom:8px}.result-panel #result-search{max-width:480px;margin-bottom:12px}

/* v73: aligned two-line activity results, full details available on hover/click. */
.result-panel .result-table{min-width:1280px}
.result-panel .result-table th,.result-panel .result-table td{padding:11px 10px;line-height:1.4}
.result-table th:nth-child(1){width:14%}.result-table th:nth-child(2){width:14%}.result-table th:nth-child(3){width:12%}.result-table th:nth-child(4){width:10%}.result-table th:nth-child(5){width:8%}.result-table th:nth-child(6){width:9%}.result-table th:nth-child(7){width:13%}.result-table th:nth-child(8){width:10%}.result-table th:nth-child(9){width:10%}
.result-table th{white-space:nowrap;font-size:12px}
.result-table .result-shop-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.result-table .result-sales-input{width:90px!important;max-width:100%;height:30px!important;min-height:30px!important;padding:4px 8px!important;border-radius:8px}
.result-table .result-sales-input+small,.result-table .result-match small{max-width:none;white-space:nowrap}
.result-table .result-number{text-align:right}.result-table th:nth-child(5),.result-table th:nth-child(6),.result-table th:nth-child(7){text-align:right}
.result-table .result-number>span{font-weight:600}
.result-table .result-update small{overflow:visible;text-overflow:clip;font-variant-numeric:tabular-nums}
.result-table .result-update .text-button{padding:0;white-space:nowrap;font-size:12px}
.result-table tbody tr:hover{background:#f4f7fb}

.calc-export-groups{display:grid;gap:12px;margin:14px 0}.calc-export-groups fieldset{border:1px solid var(--line);border-radius:10px;margin:0;padding:12px 14px}.calc-export-groups legend{font-size:13px;font-weight:600}.calc-export-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.calc-export-options label{display:flex!important;align-items:center;gap:7px;font-size:12px;margin:0!important}.calc-export-options input{width:14px!important;height:14px!important;min-height:0;margin:0!important;flex-shrink:0}@media(max-width:600px){.calc-export-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

#cost-bill-status{margin:0 24px 16px;font-size:12px}#cost-bill-status>small{display:block;margin-top:10px;line-height:1.7}.bill-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}.bill-status-grid>div{padding:10px 12px;border:1px solid #dce6ef;border-radius:8px;background:#fff}.bill-status-grid span{display:block;margin-top:5px;color:var(--muted)}@media(max-width:650px){.bill-status-grid{grid-template-columns:1fr}}

.weight-statistics{margin:20px 0;padding:16px;border:1px solid var(--line,#e4eaf0);border-radius:12px}.weight-statistics summary{cursor:pointer;font-weight:700}.weight-statistics p{margin:12px 0;line-height:1.6}.weight-statistics td{padding:10px 14px;white-space:nowrap}

/* v76: separate courier weight statistics into compact company tabs. */
.weight-statistics{margin:20px 24px;padding:18px 20px;background:#fff}.weight-statistics>p{font-size:12px;color:var(--muted);max-width:980px;margin:12px 0 16px}.weight-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:12px}.weight-tabs button{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text);padding:8px 16px;min-height:38px;font-size:13px;cursor:pointer}.weight-tabs button span{font-size:11px;color:var(--muted);font-weight:400}.weight-tabs button.active{border-color:#ebce56;background:#fff7d6;font-weight:700}.weight-tabs button:focus-visible{outline:2px solid #355977;outline-offset:2px}.weight-overview{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0}.weight-overview>strong{font-size:13px}.weight-overview>div{display:flex;gap:32px}.weight-overview span{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:11px}.weight-overview span strong{color:var(--text);font-size:18px;font-variant-numeric:tabular-nums}.weight-overview small{margin-left:4px;font-size:11px;color:var(--muted);font-weight:400}.weight-statistics .weight-table{min-width:660px;width:100%;table-layout:fixed;font-size:13px}.weight-table th:first-child{width:24%}.weight-statistics .weight-table th,.weight-statistics .weight-table td{padding:10px 12px;line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums}.weight-table th{font-size:11px}.weight-table .weight-average{font-weight:600;color:#2e5773}.weight-table tfoot{background:#f4f7fa;font-weight:600}.weight-empty{text-align:center;color:var(--muted);padding:28px 12px;background:#f7f9fc;border-radius:9px;font-size:12px}@media(max-width:700px){.weight-statistics{margin:16px 0;padding:14px}.weight-tabs button{flex:1;flex-direction:column;gap:4px;padding:7px 10px}.weight-overview{align-items:stretch;flex-direction:column;gap:12px}.weight-overview>div{justify-content:space-between;gap:12px}.weight-overview span strong{font-size:16px}}

.courier-label{display:block;margin:5px auto 0;border:1px solid transparent;border-radius:6px;padding:3px 6px;font-size:11px;font-weight:600;line-height:1.4;min-height:24px;width:76px;max-width:100%;cursor:pointer}.courier-label-post{color:#08783e;background:#eaf7ef;border-color:#abd6bb}.courier-label-zto{color:#1261ac;background:#edf5ff;border-color:#adcced}.courier-label-sf{color:#c4292e;background:#fff0f0;border-color:#eab7b8}.courier-label-none{color:#798797;background:#f5f7f9;border-color:#e1e6eb}.courier-label:focus-visible{outline:2px solid #375770;outline-offset:2px}

/* v77: compact, aligned two-line cost calculation rows */
.calculation-table{min-width:1240px}
.calculation-table th:nth-child(2),.calculation-table td:nth-child(2){width:215px;min-width:215px;max-width:215px}
.calculation-table th:nth-child(n+3):nth-child(-n+5){width:72px}
.calculation-table th:nth-child(6){width:82px}
.calculation-table th:nth-child(7){width:70px}
.calculation-table th:nth-child(9){width:145px}
.calculation-table th:nth-child(13){width:120px}
.calculation-table th:nth-child(14){width:110px}
.calculation-table tbody td{padding:12px 8px!important;vertical-align:top;line-height:28px;font-variant-numeric:tabular-nums}
.calculation-table .inline-component{display:block;height:28px!important;min-height:28px!important;line-height:20px;padding:3px 5px!important;margin:0}
.calculation-table .raw-cost-button{height:22px;min-height:22px;line-height:22px;margin:2px 0 0 auto;padding:0 5px!important;font-weight:400}
.calculation-table select.courier-label{width:74px;min-height:22px;height:22px;line-height:16px;padding:2px 5px;margin:2px 0 0 auto;font-size:10px;border-radius:5px}
.calculation-table small.courier-label{margin:2px 0 0 auto;line-height:16px;padding:2px 5px;min-height:22px}
.calculation-table small{line-height:18px;margin-top:2px}
.calculation-table .calc-total strong{display:block;line-height:28px}
.calculation-table .price-product{min-height:52px;gap:8px;align-items:center}
.calculation-table .price-product img{width:34px;height:34px}
.calculation-table .price-product strong{line-height:18px!important}
.calculation-table .sku-brand-line{line-height:18px;margin-top:3px;gap:4px}
.calculation-table .calc-reference-top{height:28px;min-height:28px;gap:3px}
.calculation-table .calc-reference-top .inline-price{width:62px!important;height:28px!important;min-height:28px!important;line-height:20px}
.calculation-table .discount95{line-height:18px}
.calculation-table .calc-status{line-height:28px}
.calculation-table .calc-status small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calculation-table .calc-row-actions{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:2px 8px;padding-top:3px}
.calculation-table .calc-row-actions button{min-width:0;min-height:22px;height:22px;line-height:22px!important;font-size:10px!important;padding:0!important;text-align:left}
.calculation-table th{font-size:11px}
.calculation-table th:nth-child(14){text-align:left}

.sku-courier-panel #sku-courier-summary{margin:0 20px 14px;padding:10px 14px;font-size:12px}.sku-courier-panel .calc-tabs{flex-wrap:wrap}
.sku-courier-panel .calc-tabs button.active{background:#fff8d9;border-color:#e9c63e;color:#243b50}
.sku-courier-grid-head,.sku-courier-grid-body{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.sku-courier-grid-head{background:#f0f3f8;color:var(--muted);font-size:13px;font-weight:600}.sku-courier-grid-head>div,.sku-courier-item{display:grid;grid-template-columns:minmax(0,1fr) 68px;gap:8px;align-items:center;padding:12px 12px;border-right:1px solid #edf1f5}.sku-courier-item{min-height:76px;border-bottom:1px solid #edf1f5}.sku-courier-product{min-width:0}.sku-courier-product strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.sku-courier-product .sku{font-size:12px;color:var(--muted);margin-top:5px}.sku-courier-badge,.sku-courier-grid-head>div>span:last-child{text-align:center}.sku-courier-item .courier-label{margin:0;display:inline-block;cursor:default;white-space:nowrap}.sku-courier-empty{grid-column:1/-1}
@media(max-width:1400px){.sku-courier-grid-head,.sku-courier-grid-body{grid-template-columns:repeat(3,minmax(0,1fr))}.sku-courier-grid-head>div:nth-child(n+4){display:none}}
@media(max-width:1100px){.sku-courier-grid-head,.sku-courier-grid-body{grid-template-columns:repeat(2,minmax(0,1fr))}.sku-courier-grid-head>div:nth-child(n+3){display:none}}
@media(max-width:650px){.sku-courier-grid-head,.sku-courier-grid-body{grid-template-columns:minmax(0,1fr)}.sku-courier-grid-head>div:nth-child(n+2){display:none}}

.courier-comparison{margin:20px;border:1px solid #e4e9ef;border-radius:12px;overflow:hidden}.courier-comparison .section-heading{padding:18px}.courier-comparison p{padding:0 18px}.courier-comparison td small{display:block;color:var(--muted);font-size:12px;margin-top:5px}

/* Read each SKU column from top to bottom before continuing right. */
.sku-courier-grid-body{grid-auto-flow:column;grid-template-rows:repeat(var(--sku-rows-5,1),auto)}
@media(max-width:1400px){.sku-courier-grid-body{grid-template-rows:repeat(var(--sku-rows-3,1),auto)}}
@media(max-width:1100px){.sku-courier-grid-body{grid-template-rows:repeat(var(--sku-rows-2,1),auto)}}
@media(max-width:650px){.sku-courier-grid-body{grid-template-rows:repeat(var(--sku-rows-1,1),auto)}}

/* v86 compact manual cost matching */
dialog:has(#match-profit-form){width:min(720px,calc(100vw - 32px))}#modal-content .match-profit-form{display:flex;flex-direction:column;gap:14px}#modal-content .match-profit-form label{display:flex;flex-direction:column;gap:7px;margin:0;font-size:13px}#modal-content .match-profit-form input,#modal-content .match-profit-form select{width:100%;min-height:42px;margin:0}#modal-content .match-search-row{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px}.match-sku{display:flex;align-items:center;gap:14px;padding:12px 14px;background:#f1f5f9;border-radius:9px}.match-sku span,.match-profit-form small{font-size:12px;color:var(--muted)}.match-sku strong{font-size:17px}.match-profit-form .notice{margin:0;padding:12px 14px;font-size:13px;line-height:1.7}.match-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}@media(max-width:520px){#modal-content .match-search-row{grid-template-columns:1fr}}

.sku-courier-panel #sku-courier-changed{margin:0 20px 14px}.sku-courier-panel #sku-courier-changed.active{background:#fff8d9;border-color:#e9c63e}.sku-courier-item.courier-company-changed{background:#fffaf0}.courier-change-note{display:block;font-size:11px;color:#9a650e;margin-top:5px;line-height:1.4}

.courier-sync-button{font-size:11px;margin-top:4px;text-align:left}.courier-sync-trace{font-size:11px;color:var(--muted);margin-top:5px}.courier-sync-trace small{display:block;line-height:1.5;margin-top:6px}

/* v89: constrain search controls inside column labels; compact cost matching. */
#modal-content .match-profit-form{gap:12px;height:auto;min-height:0}
#modal-content .match-search-row{align-items:start}
#modal-content .match-search-row>label{min-width:0}
#modal-content .match-query-control,#modal-content .match-profit-form .search-control{display:flex;flex-direction:row;align-items:center;gap:8px;flex:0 0 auto;height:42px;min-height:0;width:100%}
#modal-content .match-query-control input{flex:1;min-width:0;width:0;height:42px}
#modal-content .match-query-control button{flex:none;height:42px}
#modal-content .match-profit-form small:empty,#modal-content .match-profit-form #form-error:empty{display:none}
#modal-content .match-profit-form .match-actions{position:sticky;bottom:0;background:white;padding-top:10px}
#price-estimates .table-tools{flex-wrap:wrap;justify-content:flex-start;align-items:flex-end}
#price-estimates .table-tools>label:not(.inline-label){display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}
#price-estimates .profit-unlinked{flex-direction:row;align-items:center;min-height:40px;white-space:nowrap}
#price-estimates .profit-unlinked input{width:15px;height:15px;min-height:0;margin:0}

.missing-rate-header p{margin:8px 0 16px;line-height:1.6}.missing-rate-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.missing-rate-tools input{flex:1;min-width:180px}.missing-rate-table{max-height:45vh;overflow:auto}.missing-rate-table thead th{position:sticky;top:0;z-index:1}.missing-rate-table td:first-child{min-width:190px}.missing-rate-table td:last-child{min-width:230px}.missing-rate-table small{white-space:normal;line-height:1.6}.missing-rate-table .courier-label{display:inline-block}

.multi-shop-list{max-height:50vh;overflow:auto;margin:16px 0;display:grid;gap:14px}.multi-shop-list fieldset{border:1px solid var(--line);border-radius:10px;padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.multi-shop-list legend{padding:0 8px;font-weight:700}.multi-shop-list label{display:flex;gap:8px;align-items:center;font-size:14px}.multi-shop-list input{width:auto}@media(max-width:600px){.multi-shop-list fieldset{grid-template-columns:1fr}}

.category-order-list{max-height:52vh;overflow:auto;display:grid;gap:8px}.category-order-row{display:flex;align-items:center;gap:14px;padding:12px 16px;border:1px solid var(--line,#dce4eb);border-radius:12px;background:#fff;cursor:grab}.category-order-row strong{flex:1}.category-order-row>div{display:flex;gap:8px}.category-order-row .button{padding:8px 12px}#calc-category-order,#price-category-order{margin-bottom:12px}

.shop-selection-dialog{width:min(850px,calc(100vw - 32px));max-height:90vh;box-sizing:border-box;border:1px solid #dce4eb;border-radius:24px;padding:28px;overflow:auto}.shop-selection-dialog::backdrop{background:rgba(15,30,46,.45)}.shop-selection-dialog .modal-heading{display:flex;justify-content:space-between;align-items:center}.shop-selection-dialog .multi-shop-list{max-height:60vh;overflow:auto}.shop-selection-dialog .dialog-actions{position:sticky;bottom:-28px;background:white;padding:20px 0}.shop-selection-dialog .multi-shop-list fieldset{min-width:0}.shop-selection-dialog .multi-shop-list label{overflow-wrap:anywhere}

/* v95 compact category controls */
.category-toolbar{display:flex;align-items:flex-start;gap:16px;padding:0 24px;margin:0 0 18px}
.category-toolbar .calc-tabs{flex:1;min-width:0;margin:0;padding:0}
.category-sort-action{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;background:transparent;border:0;border-radius:8px;color:var(--muted);font:inherit;font-size:13px;padding:12px 8px;cursor:pointer;white-space:nowrap}
.category-sort-action:hover{background:#f0f4f8;color:var(--blue)}
.category-sort-action:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.activity-load-error{display:flex;align-items:center;gap:12px;justify-content:space-between}
@media(max-width:600px){.category-toolbar{padding:0 16px;gap:8px}.category-sort-action{font-size:12px;padding:12px 4px}}

/* Monthly summary: metrics above one full-width dimension table. */
#activity-summary-total.activity-summary-overview{margin:0 24px 20px;color:#52677b;min-height:36px}
.activity-summary-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.activity-summary-metric{padding:17px 18px;background:#f7f9fc;border:1px solid #e7edf3;border-radius:12px;min-width:0}
.activity-summary-metric>span{display:block;font-size:12px;color:#738196;margin-bottom:10px}
.activity-summary-metric>strong{display:block;font-size:25px;line-height:1.3;color:#263b4e;font-variant-numeric:tabular-nums;white-space:nowrap}
.activity-summary-metric small{font-size:12px;color:#738196;font-weight:400;margin-left:6px}
.activity-summary-metric:nth-child(4){background:#f1f8f4;border-color:#dcece1}.activity-summary-metric:nth-child(4)>strong{color:#346a4b}
.activity-summary-status{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;padding:14px 0 0;font-size:12px;color:#768497}
.activity-summary-status>span{white-space:nowrap}.activity-summary-status .pending{color:#967124}.activity-summary-status details{margin-left:auto;position:relative}.activity-summary-status summary{cursor:pointer;color:#53748b}.activity-summary-status details p{position:absolute;right:0;top:20px;width:min(460px,70vw);background:#fff;z-index:2;border:1px solid #e0e7ef;border-radius:10px;padding:16px;box-shadow:0 6px 24px #203e591a;line-height:1.75}
#activity-summary-body{display:block;padding:0 24px 24px}
.activity-summary-tabs{display:flex;align-items:center;gap:8px;padding:0 0 14px;border-bottom:1px solid #e6edf4}
.activity-summary-tabs button{padding:9px 15px;border:1px solid transparent;border-radius:9px;background:transparent;color:#62768a;font-size:13px;font-weight:600;cursor:pointer}
.activity-summary-tabs button.active{background:#fff7d8;border-color:#eed675;color:#374d61}.activity-summary-tabs button:hover{background:#f1f5f9}.activity-summary-tabs button span{margin-left:8px;font-size:11px;color:#8390a0}.activity-summary-count{margin-left:auto;color:#8390a0;font-size:12px}
.activity-summary-table-scroll{overflow-x:auto}.activity-summary-table{width:100%;table-layout:fixed;min-width:580px}
#activity-summary-body .activity-summary-table th,#activity-summary-body .activity-summary-table td{padding:13px 18px;font-size:13px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#activity-summary-body .activity-summary-table th:first-child,#activity-summary-body .activity-summary-table td:first-child{width:38%;text-align:left;white-space:normal;overflow-wrap:break-word}
#activity-summary-body .activity-summary-table td:first-child strong{font-size:13px;font-weight:600}#activity-summary-body .activity-summary-table td:first-child small{display:block;color:#8592a2;font-size:11px;margin-top:4px}
#activity-summary-body .activity-summary-table th:nth-child(2){width:10%}.summary-profit{color:#346a4b;font-weight:600}
@media(max-width:1100px){.activity-summary-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.activity-summary-metric>strong{font-size:22px}}
@media(max-width:650px){#activity-summary-total.activity-summary-overview{margin:0 16px 16px}#activity-summary-body{padding:0 16px 16px}.activity-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.activity-summary-metric{padding:13px}.activity-summary-status details{margin-left:0}.activity-summary-status details p{right:auto;left:0}.activity-summary-tabs button{padding:8px 10px}.activity-summary-count{display:none}}

/* Compact monthly summary and traceable pending activity list. */
#activity-monthly .section-heading{padding:18px 24px 14px}#activity-monthly .section-heading p{margin-top:5px;font-size:12px}
.activity-summary-metric{padding:12px 15px}.activity-summary-metric>span{margin-bottom:6px}.activity-summary-metric>strong{font-size:22px}
#activity-summary-total.activity-summary-overview{margin-bottom:12px}.activity-summary-status{padding-top:9px;gap:8px 16px}.activity-summary-status .text-button{font-size:12px;padding:0;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.activity-summary-tabs{padding-bottom:9px}.activity-summary-tabs button{padding:7px 12px}
#activity-summary-body .activity-summary-table th,#activity-summary-body .activity-summary-table td{padding:8px 14px;font-size:12px}#activity-summary-body .activity-summary-table td:first-child strong{font-size:12px}#activity-summary-body .activity-summary-table td:first-child small{display:inline;margin-left:10px;font-size:11px}
.summary-pending-table{min-width:760px;width:100%}.summary-pending-table th,.summary-pending-table td{padding:10px 12px;font-size:12px;vertical-align:top}.summary-pending-table small{display:block;color:var(--muted);margin-top:4px;line-height:1.5}.summary-pending-table td:nth-child(3){white-space:nowrap}
/* Denser activity registration rows, preserving all SKU financial columns. */
.activity-records-table{min-width:1320px}.activity-records-table>thead>tr>th{padding:8px 10px;font-size:12px}.activity-records-table>thead>tr>th:first-child{width:180px}.activity-records-table>thead>tr>th:nth-child(2){width:250px}.activity-records-table>thead>tr>th:nth-child(3){width:145px}.activity-records-table>thead>tr>th:nth-child(4){width:610px}.activity-records-table>thead>tr>th:last-child{width:135px}
#activity-body>tr>td{padding:7px 10px;font-size:12px;line-height:1.35}#activity-body .activity-identity>strong{font-size:12px;line-height:1.35}#activity-body .activity-edit-entry{padding:4px 9px;font-size:11px;border-radius:7px;margin-top:3px}#activity-body .badge{padding:3px 7px;font-size:11px}#activity-body small{font-size:10px;margin:2px 0;line-height:1.35}#activity-body .activity-product-name{font-size:12px;line-height:1.35;margin-top:3px}#activity-body .activity-brand-shop{min-height:22px;gap:6px}#activity-body .activity-sku-table td,#activity-body .activity-sku-table th{padding:4px 7px;font-size:11px}#activity-body .activity-sku-table td:not(:first-child),#activity-body .activity-sku-table th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}#activity-body .activity-sku-table td:first-child{min-width:82px}
.factory-table{font-size:13px}.factory-table td{padding:10px 12px;vertical-align:top}.factory-table .muted{font-size:12px;overflow-wrap:anywhere}.factory-form{display:grid;gap:14px}.factory-form label{display:grid;gap:6px}.factory-account{margin:12px 0}.factory-account p{margin:6px 0}.factory-table th:nth-child(1){width:18%}.factory-table th:nth-child(2){width:30%}.factory-table th:nth-child(5){width:22%}

.factory-form label.inline-label{display:flex;align-items:center;gap:8px}.factory-form label.inline-label input[type=checkbox]{width:16px;height:16px;flex:none}

.factory-table th:nth-child(3),.factory-table th:nth-child(4){text-align:right}.factory-table th:nth-child(6){text-align:left}.factory-summary-table th:nth-child(n+3),.factory-summary-table td:nth-child(n+3){text-align:right}.factory-summary-table th:nth-child(1){width:16%}.factory-summary-table th:nth-child(2){width:28%}.factory-summary-table th:nth-child(n+3){width:14%}.factory-table .factory-issue-row td{background:#fff8e6}.factory-issue-row td:first-child{box-shadow:inset 3px 0 #d59a22}.factory-issue-note{color:#925a08;font-size:12px;margin-top:4px}.factory-receipt-history{margin:12px 0}.factory-table .number{font-variant-numeric:tabular-nums;white-space:nowrap}

/* v103 Fishball OEM: compact overview, aligned controls and stock cards. */
#factory-page [hidden]{display:none!important}
#factory-page>.panel{overflow:hidden}
#factory-page .section-heading{padding:22px 24px 16px;align-items:center}
#factory-page .section-heading p{margin-top:6px;font-size:13px}
#factory-page .heading-actions{gap:8px;display:flex;flex-wrap:wrap}
#factory-page .heading-actions .button{padding:9px 13px;font-size:13px;white-space:nowrap}
#factory-page .factory-toolbar{margin:0 24px 20px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}
#factory-page .subtabs{margin:0;padding:0;gap:4px;background:#f0f4f8;border-radius:10px;display:flex;flex:none}
#factory-page .subtabs button{border:0;background:transparent;padding:10px 15px;font-size:13px;border-radius:8px;color:var(--muted)}
#factory-page .subtabs button.selected{background:#fff7d4;color:var(--ink);box-shadow:inset 0 0 0 1px #ecd57a;font-weight:700}
#factory-page .table-tools{padding:0;display:flex;align-items:center;gap:10px;flex:1;flex-wrap:wrap}
#factory-page .factory-month-label{display:flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap}
#factory-page .table-tools input,#factory-page .table-tools select{padding:9px 10px;font-size:13px}
#factory-page #factory-search{flex:1;min-width:240px;width:auto}
#factory-page #factory-refresh{padding:9px 13px;font-size:13px}
#factory-page #factory-stock{margin:0 24px 18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#factory-page .metric{padding:18px 20px;border:1px solid var(--line);border-top-width:3px;border-radius:12px}
#factory-page .metric-title{font-size:13px;color:var(--muted)}
#factory-page .metric-value{font-size:30px;font-weight:750;line-height:1.2;margin:10px 0 6px;font-variant-numeric:tabular-nums}
#factory-page .metric-note{font-size:11px;color:var(--muted)}
#factory-page #factory-bill{margin:0 24px 16px;padding:15px 18px;display:grid;grid-template-columns:minmax(150px,1fr) 2fr;gap:10px 20px}
#factory-page .factory-bill-heading{display:flex;flex-direction:column;gap:5px}
#factory-page .factory-bill-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#factory-page .factory-bill-values span{display:flex;flex-direction:column;gap:6px;font-size:12px}
#factory-page .factory-bill-values strong{font-size:19px;color:var(--ink);font-variant-numeric:tabular-nums}
#factory-page .factory-stock-rule{grid-column:1/-1;border-top:1px solid #d6e7f1;padding-top:9px;font-size:12px}
#factory-page .factory-stock-rule p{margin:8px 0 0;line-height:1.6}
#factory-page .factory-records{margin:0 24px 16px;display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
#factory-page .factory-records>div:empty{display:none}
#factory-page .factory-records details{margin:0;border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-size:13px}
#factory-page summary{cursor:pointer}
#factory-page .factory-account p{line-height:1.6;margin:8px 0;overflow-wrap:anywhere}
#factory-page #factory-month-totals{margin:0 24px 12px;padding:10px 14px;font-size:12px;line-height:1.7}
#factory-page .factory-table{table-layout:fixed;width:100%}
#factory-page .factory-table th,#factory-page .factory-table td{padding:11px 14px;vertical-align:top;overflow-wrap:anywhere}
#factory-page .factory-table th:nth-child(1){width:17%}
#factory-page .factory-table th:nth-child(2){width:27%}
#factory-page .factory-table th:nth-child(3){width:9%}
#factory-page .factory-table th:nth-child(4){width:10%}
#factory-page .factory-table th:nth-child(5){width:25%}
#factory-page .factory-table th:nth-child(6){width:12%}
#factory-page .factory-summary-table th:nth-child(1){width:14%}
#factory-page .factory-summary-table th:nth-child(2){width:30%}
#factory-page .factory-summary-table th:nth-child(n+3){width:14%}
#factory-page [data-factory-pane=details]>details{margin:16px 24px;font-size:13px}
#factory-page .factory-receipt-history table{font-size:12px}
#factory-page .factory-receipt-history th,#factory-page .factory-receipt-history td{padding:8px;white-space:nowrap}
@media(max-width:1100px){#factory-page .factory-toolbar{align-items:flex-start}#factory-page .table-tools{flex-basis:100%}#factory-page .factory-records{grid-template-columns:1fr}#factory-page .factory-table{min-width:900px}#factory-page .factory-summary-table{min-width:640px}}
@media(max-width:650px){#factory-page .section-heading{padding:18px 16px}#factory-page .factory-toolbar{margin:0 16px 16px}#factory-page #factory-stock{margin:0 16px 16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#factory-page .metric{padding:14px}#factory-page .metric-value{font-size:26px}#factory-page #factory-bill{margin:0 16px 16px;grid-template-columns:1fr}#factory-page .factory-records{margin:0 16px 16px}#factory-page #factory-month-totals{margin:0 16px 12px}#factory-page #factory-search{min-width:180px}#factory-page .factory-bill-values{gap:8px}#factory-page .factory-bill-values strong{font-size:17px}}

#factory-page .factory-amount-check{grid-column:1/-1;font-size:13px;line-height:1.7}
#factory-page .factory-amount-check small{display:block;font-size:11px;color:var(--muted)}
#factory-page [data-factory-pane=details] .factory-table{min-width:1100px}
#factory-page [data-factory-pane=details] th:nth-child(1){width:14%}
#factory-page [data-factory-pane=details] th:nth-child(2){width:22%}
#factory-page [data-factory-pane=details] th:nth-child(3){width:7%}
#factory-page [data-factory-pane=details] th:nth-child(4),#factory-page [data-factory-pane=details] th:nth-child(5),#factory-page [data-factory-pane=details] th:nth-child(6){width:8%;text-align:right}
#factory-page [data-factory-pane=details] th:nth-child(7){width:22%}
#factory-page [data-factory-pane=details] th:nth-child(8){width:11%}
#factory-page .factory-amount-error td{background:#fff0ee}
#factory-page .factory-amount-error td:first-child{box-shadow:inset 3px 0 #c54f46}
#factory-page .factory-amount-error td:nth-child(6){color:#b23d35;font-weight:700}

#factory-page .factory-settlement{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;border-top:1px solid #d6e7f1;padding-top:10px;font-size:13px}
#factory-page .factory-settlement small{color:var(--muted);font-size:11px}

#factory-page .factory-profile-edit{font-size:12px;padding:6px 2px;color:var(--muted);margin-top:4px}

/* v107: shared compact navigation and metric cards */
#finance-tabs,#couriers-page>.subtabs,.activity-subtabs,.activity-summary-tabs{display:inline-flex;max-width:100%;width:fit-content;gap:4px;padding:4px;background:#f0f4f8;border-radius:11px;overflow-x:auto;vertical-align:middle}
#finance-tabs button,#couriers-page>.subtabs button,.activity-subtabs button,.activity-summary-tabs button{flex:none;border:0;background:transparent;box-shadow:none;border-radius:8px;padding:10px 15px;font-size:13px;color:var(--muted);white-space:nowrap}
#finance-tabs button.active,#couriers-page>.subtabs button.active,.activity-subtabs button.selected,.activity-summary-tabs button.active{background:#fff7d4;color:var(--ink);box-shadow:inset 0 0 0 1px #ecd57a;font-weight:700}
.metrics{gap:14px}
.metrics .metric{padding:18px 20px;border:1px solid var(--line);border-top-width:3px;border-radius:12px;box-shadow:none;min-width:0}
.metrics .metric-title{font-size:13px;line-height:1.5;color:var(--muted)}
.metrics .metric-value{font-size:30px;font-weight:750;line-height:1.2;margin:10px 0 6px;font-variant-numeric:tabular-nums}
.metrics .metric-note{font-size:11px;line-height:1.6;color:var(--muted)}
@media(max-width:650px){.metrics{gap:10px}.metrics .metric{padding:14px}.metrics .metric-value{font-size:26px}#finance-tabs button,.activity-subtabs button{padding:9px 12px}}

/* v108: align monitoring headers and rows consistently */
#monitor-table table{table-layout:fixed;width:100%;min-width:950px}
#monitor-table th,#monitor-table td{padding:11px 16px;vertical-align:middle;font-variant-numeric:tabular-nums}
#monitor-table th:first-child,#monitor-table td:first-child{width:30%;text-align:left}
#monitor-table th:nth-child(2),#monitor-table td:nth-child(2),#monitor-table th:nth-child(3),#monitor-table td:nth-child(3){width:11%;text-align:right}
#monitor-table th:nth-child(n+4),#monitor-table td:nth-child(n+4){text-align:center}
#monitor-table th:nth-child(4){width:10%}#monitor-table th:nth-child(5){width:14%}#monitor-table th:nth-child(6){width:14%}#monitor-table th:nth-child(7){width:10%}
#monitor-table .sku{margin-top:4px}#monitor-table .badge{white-space:nowrap}
#category-matrix th.number,#category-matrix td.number{min-width:145px;white-space:nowrap}

/* Catalogue: smaller visual reference, complete readable information. */
#catalog-category-tabs{margin:0 24px 16px;display:flex;flex-wrap:wrap;gap:7px;padding:0;overflow:visible}
#catalog-category-tabs button{padding:8px 12px;font-size:13px}
#catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 24px 20px}
#catalog-grid .product-card{display:flex;align-items:flex-start;padding:14px;gap:14px}
#catalog-grid .card-image{flex:none;width:88px;height:88px;aspect-ratio:1;object-fit:contain;border-radius:8px;background:#f8fafc;padding:4px}
#catalog-grid .card-info{padding:0;flex:1;min-width:0}
#catalog-grid .card-info h3{font-size:16px;line-height:1.55;height:auto;display:block;overflow:visible;margin:0 0 6px;-webkit-line-clamp:unset}
#catalog-grid .sku{font-size:13px;white-space:normal;overflow-wrap:anywhere;overflow:visible}
#catalog-grid .card-footer,#catalog-grid .card-footer>span{display:flex;flex-wrap:wrap;overflow:visible;gap:6px;max-width:none}
#catalog-grid .card-footer{margin-top:10px;align-items:flex-start}
#catalog-grid .badge{font-size:12px;white-space:normal;overflow:visible;max-width:none;padding:3px 6px;line-height:1.5}
#catalog-grid .text-button{font-size:12px;padding:2px 3px}
#catalog-grid .muted{font-size:12px}
@container(min-width:1400px){#catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container(max-width:1000px){#catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(max-width:600px){#catalog-grid{grid-template-columns:1fr;padding:0 16px 16px}#catalog-category-tabs{margin:0 16px 14px}}
/* Pricing follows the compact cost calculation toolbar. */
#pricing-page .category-toolbar{padding:0 20px;margin:0 0 14px;gap:12px}
#pricing-page #price-category-tabs{flex-wrap:wrap!important;overflow:visible;padding:0;margin:0;gap:6px}
#pricing-page #price-category-tabs button{padding:9px 13px!important;font-size:13px!important}
#pricing-page .price-tools{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-start;padding:0 20px 10px;gap:10px}
#pricing-page .price-tools>label{flex:0 0 auto;min-width:0;margin:0;gap:5px;font-size:12px;color:var(--muted)}
#pricing-page .price-tools input,#pricing-page .price-tools select,#pricing-page .price-tools button{height:38px;min-height:38px;padding:8px 10px;font-size:13px}
#pricing-page .price-tools select{width:150px;max-width:none;color:var(--ink)}
#pricing-page .price-tools input[type=month]{width:155px;color:var(--ink)}
#pricing-page .price-tools .search-control{flex:0 1 270px;min-width:210px;align-self:flex-end;display:flex;gap:8px}
#pricing-page .price-tools .search-control input{flex:1;min-width:0;width:0}
#pricing-page .price-tools .search-control button{flex:none}
#pricing-page .price-version-note{margin:0 20px 12px;font-size:12px;line-height:1.5}
#finance-tabs{margin-bottom:16px}#pricing-page>.notice{margin:0 0 18px}
/* Profit table: identical padding and column alignment for headers and values. */
#profit-page .table-wrap>table{table-layout:fixed;width:100%;min-width:1100px}
#profit-page .table-wrap>table>thead>tr>th,#profit-body>tr>td{padding:12px 16px;vertical-align:middle;font-variant-numeric:tabular-nums}
#profit-page .table-wrap>table>thead>tr>th:first-child,#profit-body>tr>td:first-child{width:27%;text-align:left}
#profit-page .table-wrap>table>thead>tr>th:nth-child(n+2),#profit-body>tr>td:nth-child(n+2){text-align:right;white-space:nowrap}
#profit-page .table-wrap>table>thead>tr>th:last-child,#profit-body>tr>td:last-child{width:10%;text-align:center;white-space:normal}
#profit-body .sku{margin-top:4px}
@media(max-width:700px){#pricing-page .category-toolbar{padding:0 14px;margin:0 0 12px}#pricing-page .price-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px 10px;gap:10px}#pricing-page .price-tools .search-control{grid-column:1/-1;max-width:none;min-width:0}#pricing-page .price-tools>label{width:auto}#pricing-page .price-tools select,#pricing-page .price-tools input[type=month]{width:100%}#pricing-page .price-version-note{margin:0 14px 12px}}

/* v110: continuous guidance browsing and inset compact activity results */
.guidance-panel>.table-scroll,.result-panel>.table-scroll{margin:0 24px 18px;border:1px solid var(--line);border-radius:10px}
.guidance-filters{align-items:center;gap:10px;padding-bottom:14px;flex-wrap:wrap}.guidance-filters>input{min-width:220px}.guidance-filters select{height:38px;font-size:13px}.guidance-page-size{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px;color:var(--muted)}.guidance-page-size select{min-width:115px}
.guidance-panel .guidance-ids{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:4px;align-items:center}.guidance-ids span{display:inline-block;font-size:11px;padding:2px 5px}
.guidance-panel th,.guidance-panel tbody td{padding:8px 12px;font-size:13px;vertical-align:middle}.guidance-panel .price-product{gap:10px}.guidance-panel .price-product img{width:46px;height:46px;flex:none}.guidance-panel .price-product strong{font-size:13px}.guidance-panel th:nth-child(n+3):nth-child(-n+7),.guidance-panel td:nth-child(n+3):nth-child(-n+7){text-align:right;font-variant-numeric:tabular-nums}.guidance-panel th:last-child,.guidance-panel td:last-child{text-align:center}
.result-panel .section-heading{padding-bottom:14px}.result-panel .result-table th,.result-panel .result-table td{padding:8px 12px;line-height:1.35;font-size:12px}.result-panel .result-table small{font-size:11px;margin-top:3px}.result-panel .result-table th:nth-child(4),.result-panel .result-table td:nth-child(4){text-align:right;font-variant-numeric:tabular-nums}.result-panel .result-table th:nth-child(n+5):nth-child(-n+7),.result-panel .result-table td:nth-child(n+5):nth-child(-n+7){text-align:right;font-variant-numeric:tabular-nums}.result-panel .result-table .result-sales-input{width:78px!important;height:28px!important;min-height:28px!important}.result-panel>input{margin-bottom:12px}
@media(max-width:700px){.guidance-panel>.table-scroll,.result-panel>.table-scroll{margin-left:16px;margin-right:16px}.guidance-filters{flex-direction:row}.guidance-filters>input{flex-basis:100%}.guidance-filters>select{flex:1}.guidance-page-size{flex:1}}

/* v111: inset, aligned cost calculation worksheet */
.calculation-panel>.table-scroll{margin:0 20px 16px;border:1px solid var(--line);border-radius:10px;background:#fff}
.calculation-panel .calculation-table th,.calculation-panel .calculation-table tbody td{padding:9px 10px!important;line-height:1.4;vertical-align:middle}
.calculation-panel .calculation-table th{background:#f0f4f8;font-size:11px;font-weight:600}
.calculation-panel .calculation-table th:nth-child(n+3):nth-child(-n+12),.calculation-panel .calculation-table td:nth-child(n+3):nth-child(-n+12){text-align:right;font-variant-numeric:tabular-nums}
.calculation-panel .calculation-table th:first-child,.calculation-panel .calculation-table td:first-child{text-align:center;padding-left:7px!important;padding-right:7px!important}
.calculation-panel .calculation-table th:nth-child(2),.calculation-panel .calculation-table td:nth-child(2),.calculation-panel .calculation-table th:nth-last-child(-n+2),.calculation-panel .calculation-table td:nth-last-child(-n+2){text-align:left}
.calculation-panel .calculation-table td .price-product{min-height:46px}.calculation-panel .calculation-table td small{line-height:16px}.calculation-panel .calculation-table tbody tr:hover>td{background:#f5f8fc}.calculation-panel .calculation-table tbody tr:hover>.calc-total{background:#eaf4ed}.calculation-panel .calculation-table .calc-row-actions{gap:1px 8px;padding-top:0}.calculation-panel .calculation-table .calc-status{line-height:24px}.calculation-panel .calculation-table .calc-total strong{line-height:24px}
@media(max-width:700px){.calculation-panel>.table-scroll{margin-left:14px;margin-right:14px}}

/* v112: one shared inset for the cost calculation card */
.calculation-panel{--calc-inset:24px}
.calculation-panel>.section-heading{padding-left:var(--calc-inset);padding-right:var(--calc-inset)}
.calculation-panel>.category-toolbar{padding-left:var(--calc-inset);padding-right:var(--calc-inset)}
.calculation-panel>.calc-tools{padding-left:var(--calc-inset);padding-right:var(--calc-inset);justify-content:flex-start}
.calculation-panel>#calc-summary,.calculation-panel>.table-scroll{margin-left:var(--calc-inset);margin-right:var(--calc-inset)}
@media(max-width:700px){.calculation-panel{--calc-inset:16px}}

/* v113: finance tables share the cost worksheet layout */
#pricing-page,#profit-page,#adprofit-page{--finance-inset:24px}
#pricing-page .section-heading,#pricing-page .category-toolbar,#pricing-page .price-tools{padding-left:var(--finance-inset);padding-right:var(--finance-inset)}
#pricing-page .price-version-note,#pricing-page #price-summary{margin-left:var(--finance-inset);margin-right:var(--finance-inset)}
#pricing-page .panel>.table-wrap,#price-estimates>.table-wrap,#link-estimates>.table-wrap{margin:0 var(--finance-inset) 16px;border:1px solid var(--line);border-radius:10px;background:white;overflow:auto}
#pricing-page .cost-guide-table th,#pricing-page .cost-guide-table tbody td,#price-estimates table th,#price-estimates table tbody td,#link-estimates table th,#link-estimates table tbody td{padding:9px 10px!important;line-height:1.4;vertical-align:middle;font-size:12px;font-variant-numeric:tabular-nums}
#pricing-page .cost-guide-table th,#price-estimates table th,#link-estimates table th{background:#f0f4f8;font-size:11px;font-weight:600;white-space:nowrap}
#pricing-page .cost-guide-table th:nth-child(n+3):nth-child(-n+8),#pricing-page .cost-guide-table td:nth-child(n+3):nth-child(-n+8),#price-estimates table th:not(:first-child):not(:last-child),#price-estimates table td:not(:first-child):not(:last-child),#link-estimates table th:not(:first-child):not(:last-child),#link-estimates table td:not(:first-child):not(:last-child){text-align:right}
#pricing-page .cost-guide-table th:first-child,#pricing-page .cost-guide-table td:first-child,#pricing-page .cost-guide-table th:nth-child(2),#pricing-page .cost-guide-table td:nth-child(2),#price-estimates table th:first-child,#price-estimates table td:first-child,#link-estimates table th:first-child,#link-estimates table td:first-child{text-align:left}
#pricing-page .cost-guide-table th:last-child,#pricing-page .cost-guide-table td:last-child,#price-estimates table th:last-child,#price-estimates table td:last-child,#link-estimates table th:last-child,#link-estimates table td:last-child{text-align:left}
#pricing-page .price-product{min-height:46px;gap:8px}#pricing-page .price-product img{width:34px;height:34px;flex:none}#pricing-page .cost-guide-table .price-product strong{font-size:13px!important;line-height:18px!important}#pricing-page .cost-guide-table .sku{font-size:11px;margin-top:3px}
#pricing-page .cost-guide-table tbody td:nth-child(3){background:#f1f7f2;font-weight:600;color:#325b3a}
#pricing-page .cost-guide-table tbody tr:hover>td,#price-estimates table tbody tr:hover>td,#link-estimates table tbody tr:hover>td{background:#f5f8fc}#pricing-page .cost-guide-table tbody tr:hover>td:nth-child(3){background:#eaf4ed}
#pricing-page .pagination-footer{padding-left:var(--finance-inset);padding-right:var(--finance-inset)}
@media(max-width:700px){#pricing-page,#profit-page,#adprofit-page{--finance-inset:16px}}

/* Guidance: bounded list with visible headings, rather than a long page */
.guidance-panel>.table-scroll{max-height:min(560px,65vh);overflow:auto;scrollbar-gutter:stable}
.guidance-panel .cost-guide-table th:nth-child(2),.guidance-panel .cost-guide-table td:nth-child(2){width:205px!important;min-width:205px!important;max-width:205px!important}
.guidance-panel .cost-guide-table thead th{position:sticky;top:0;z-index:3;background:#f0f4f8}
.guidance-panel .cost-guide-table td:first-child>div{min-height:46px}.guidance-panel .cost-guide-table .guidance-ids{gap:4px 6px}.guidance-panel .guidance-ids span{flex:0 0 auto}

/* v114: compact catalogue SKU cards without reserved title space */
#catalog-grid{gap:10px;align-items:start}
#catalog-grid .product-card{padding:10px;gap:10px;min-height:0;align-items:flex-start}
#catalog-grid .card-image{width:60px;height:60px;padding:3px;border-radius:6px}
#catalog-grid .card-info{line-height:1.35}
#catalog-grid .card-info h3{font-size:14px;line-height:1.35;min-height:0;height:auto;margin:0 0 4px;overflow-wrap:break-word}
#catalog-grid .sku{font-size:12px;line-height:1.35;margin:0}
#catalog-grid .card-footer{margin-top:5px;gap:4px;justify-content:flex-start;align-items:center}
#catalog-grid .card-footer>span{gap:4px;align-items:center}
#catalog-grid .badge{font-size:11px;line-height:1.3;padding:2px 5px}
#catalog-grid .text-button{font-size:11px;line-height:1.35;padding:2px 3px;min-height:0}
#catalog-grid .product-prices{margin-top:3px}
#catalog-grid .muted{font-size:11px;line-height:1.35;margin:3px 0 0}
/* v116: compact, explicit cost formula editing */
.calc-formula-button{white-space:nowrap;color:#476b80}
.formula-reference-builder{display:grid;grid-template-columns:1fr 1.4fr 1fr auto;gap:10px;align-items:end;padding:12px;background:#f5f8fb;border:1px solid #e1e8ef;border-radius:10px}
.formula-reference-builder label{min-width:0;margin:0}.formula-reference-builder input,.formula-reference-builder select{width:100%;min-width:0}
#cell-formula-form input[name="expression"]{font-family:ui-monospace,SFMono-Regular,monospace;font-size:14px}
@media(max-width:700px){.formula-reference-builder{grid-template-columns:1fr 1fr}}

/* v117: direct cost links and room to read a formula while typing */
.calc-cell-link{display:block;margin:2px 0 0 auto;font-size:11px;line-height:1.2;color:#718397}
.inline-component:focus,.inline-price:focus{position:relative;z-index:2;width:240px!important;max-width:none;background:#fff;box-shadow:0 0 0 2px #ffe57f}
.formula-reference-builder{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.formula-reference-builder label:first-child{grid-column:1/-1}
@media(max-width:640px){.formula-reference-builder{grid-template-columns:1fr}.inline-component:focus{width:160px!important}}

/* v118: compact formula editor with a reachable save footer */
dialog:has(#cell-formula-form){width:min(680px,calc(100vw - 28px));max-height:90dvh;overflow:auto}
dialog:has(#cell-formula-form) .modal-header{position:sticky;top:0;background:#fff;z-index:3;padding:16px 20px}
dialog:has(#cell-formula-form) #modal-content{padding:16px 20px 0}
#modal-content #cell-formula-form{gap:12px}
#cell-formula-form .formula-product-name{margin:0;font-size:14px;line-height:1.4}
#cell-formula-form>label{margin:0}
#cell-formula-form .formula-mode-toggle{flex-direction:row;align-items:center;justify-content:flex-start;font-size:12px}
#cell-formula-form .formula-mode-toggle input{width:15px;height:15px;min-height:0;margin:0}
#cell-formula-form .formula-help{font-size:12px;color:var(--muted)}
#cell-formula-form .formula-help p{margin:8px 0 0}
#cell-formula-form .notice{margin:0;padding:10px 12px;line-height:1.5}
#cell-formula-form #form-error:empty{display:none}
#cell-formula-form .dialog-actions{position:sticky;bottom:0;z-index:2;background:white;border-top:1px solid var(--line);margin:0 -20px;padding:12px 20px;flex:none}
#cell-formula-form .formula-reference-builder{padding:12px;gap:10px}
#cell-formula-form .formula-reference-builder label{font-size:12px}

/* v119 consumables: compact aligned supplier quotations and editable SKU bills of materials. */
.supply-panel{padding:24px!important}.supply-panel .section-heading{padding:0!important;margin-bottom:18px}.supply-panel .subtabs{margin:0 0 16px;display:flex;flex-wrap:wrap;gap:4px}.supply-panel .subtabs span{margin-left:6px;font-size:11px;color:#8592a1}.supply-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.supply-filters>input{width:350px;max-width:100%}.supply-filters>select{width:210px}.supply-panel .table-scroll{margin:0!important;border:1px solid #e3eaf1;border-radius:12px;max-height:640px;overflow:auto}.supply-table{min-width:1080px;width:100%;table-layout:fixed}.supply-table th,.supply-table td{padding:10px 12px!important;vertical-align:middle;font-size:12px;line-height:1.5}.supply-table th{position:sticky;top:0;background:#f0f4f8;z-index:1;white-space:nowrap}.supply-table th:nth-child(1){width:23%}.supply-table th:nth-child(2){width:21%}.supply-table th:nth-child(3),.supply-table th:nth-child(4){width:11%}.supply-table th:nth-child(5){width:15%}.supply-table th:nth-child(6){width:12%}.supply-table th:last-child{width:100px}.supply-table small{display:block;color:#8090a3;font-size:11px;margin-top:4px;overflow-wrap:anywhere}.supply-table strong{font-size:13px}.supply-table tbody tr:hover{background:#f6f9fc}.supply-table td:nth-child(4){background:#f1f7f2}.supply-skus{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.supply-skus button{font-size:11px;text-align:left}.supply-disabled{opacity:.65}.supply-form{gap:12px!important}.supply-form .form-columns{gap:12px!important}.supply-check{display:flex!important;align-items:center;gap:8px}.supply-check input{width:16px!important;height:16px!important;margin:0!important}.bom-line{display:grid;grid-template-columns:minmax(0,1fr) 130px 40px 40px;align-items:end;gap:10px;margin:10px 0}.bom-line label{min-width:0}.bom-line select{width:100%;min-width:0}.bom-line>span,.bom-line>button{padding-bottom:12px}.supply-import-preview{max-height:45vh;overflow:auto}dialog:has(.supply-form){max-height:90vh;overflow:auto}dialog:has(.supply-form)>header{position:sticky;top:0;background:white;z-index:4}.supply-form>button[type=submit]{position:sticky;bottom:0;z-index:3;box-shadow:0 -8px 0 8px #fff}.supply-form details{margin:0}@media(max-width:700px){.supply-panel{padding:16px!important}.supply-filters>input,.supply-filters>select{width:100%}.bom-line{grid-template-columns:minmax(0,1fr) 85px 25px 35px;gap:6px}.supply-panel .heading-actions{flex-wrap:wrap}}

.bom-product-options{max-height:180px;overflow:auto;border:1px solid #e3eaf1;border-radius:10px;padding:8px 12px}.bom-product-options .supply-check{padding:5px 0;font-size:13px}.bom-selected{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.bom-selected .button{padding:4px 8px;font-size:12px}.bom-selected>span{font-size:12px;color:#8090a3;margin-right:6px}
.bom-existing{flex-basis:100%;font-size:12px}.bom-existing p{margin:5px 0}

/* v122: consistent compact consumable dialogs, clear categories and unified prices. */
.supply-panel #supply-tabs button.selected{background:var(--selection-bg)!important;border-color:#dfba22!important;color:#172c40!important;font-weight:700;box-shadow:inset 0 -3px #e6bd24}
.supply-panel #supply-tabs button.selected span{color:#66520f}
.supply-table{min-width:960px}.supply-table th:nth-child(1){width:26%}.supply-table th:nth-child(2){width:22%}.supply-table th:nth-child(3){width:14%}.supply-table th:nth-child(4){width:18%}.supply-table th:nth-child(5){width:14%}.supply-table th:nth-child(6){width:100px}
.supply-table td:nth-child(4){background:transparent}.supply-table td.supply-price{background:#f1f7f2}.supply-table td{vertical-align:top;padding:12px!important}.supply-skus{display:flex;flex-direction:row;flex-wrap:wrap;gap:5px}.supply-skus button{background:#edf3f8;border-radius:5px;padding:3px 6px;line-height:1.4}.supply-table .calc-row-actions{gap:8px}
dialog:has(.supply-form),dialog:has(.supplier-manager){width:min(860px,calc(100vw - 28px));max-height:90dvh;overflow:auto}
dialog:has(.supply-form) #modal-content,dialog:has(.supplier-manager) #modal-content{padding:20px}
#modal-content .supply-form{display:flex;flex-direction:column;gap:12px!important;height:auto!important;min-height:0!important}
#modal-content .supply-form>*{flex:0 0 auto;min-height:0;margin:0}
#modal-content .supply-form .form-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px!important;margin:0}
#modal-content .supply-form label:not(.supply-check){display:flex;flex-direction:column;align-items:stretch;gap:6px;font-size:12px;color:#64758b;min-width:0;margin:0}
#modal-content .supply-form input:not([type=checkbox]),#modal-content .supply-form select{width:100%;min-width:0;height:40px;min-height:40px;font-size:14px;padding:8px 10px}
#modal-content .supply-form .muted{font-size:12px;line-height:1.6;margin:0}
#modal-content .supply-form .supply-check{display:flex;flex-direction:row;justify-content:flex-start;font-size:12px;line-height:1.5}
#modal-content .supply-form .notice{padding:10px 12px;margin:0;line-height:1.6}
#modal-content .supply-form button[type=submit]{height:42px;min-height:42px;padding:10px 16px}
#bom-form .bom-product-options{height:auto!important;max-height:160px;min-height:0!important;flex:none;overflow:auto}
#bom-form .bom-line{grid-template-columns:minmax(0,1fr) 110px 30px 40px;margin:0;gap:8px;padding:10px;background:#f5f8fb;border-radius:8px}
#bom-form:has(.bom-quantity-table) .bom-line{grid-template-columns:minmax(0,1fr) 30px 40px}
#bom-form #bom-lines{display:flex;flex-direction:column;gap:8px}
#bom-form #bom-add{align-self:flex-start}.bom-rules{font-size:12px;color:#64758b}.bom-rules summary{cursor:pointer}
.bom-quantity-scroll{max-height:230px;overflow:auto;border:1px solid #e3eaf1;border-radius:9px}.bom-quantity-table{min-width:480px}.bom-quantity-table th{position:sticky;top:0;background:#f0f4f8;font-size:12px}.bom-quantity-table td,.bom-quantity-table th{padding:8px 10px!important}.bom-quantity-table small{display:block;font-size:11px;color:#8090a3}.bom-quantity-table td input{max-width:110px}
.supplier-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.supplier-table{table-layout:fixed}.supplier-table th:first-child{width:58%}.supplier-table th:nth-child(2){width:30%}.supplier-table th:last-child{width:12%}.supplier-table th,.supplier-table td{padding:12px!important;font-size:13px;vertical-align:top}.supplier-table small{display:block;color:#718397;font-size:12px;line-height:1.6;margin-top:5px;overflow-wrap:anywhere}.supplier-table strong{display:block;font-size:14px;line-height:1.5}.supplier-table summary{white-space:nowrap;font-size:12px;margin-top:6px;cursor:pointer}.supplier-table details p{font-size:12px;color:#64758b}
@media(max-width:600px){#modal-content .supply-form .form-columns{grid-template-columns:1fr}.supplier-table{min-width:550px}}
dialog:has(.supply-form)>.modal-header,dialog:has(.supplier-manager)>.modal-header{position:sticky;top:0;background:#fff;z-index:5}
#modal-content .supply-form label>small{font-size:11px;line-height:1.4;color:#8090a3}
/* v123: search wrappers must not inherit a horizontal flex basis in stacked dialogs. */
#modal-content .supply-form .search-control{display:flex;flex-direction:row;align-items:center;gap:8px;flex:0 0 auto!important;height:40px;min-height:0!important;width:100%;margin:0}
#modal-content .supply-form .search-control input[type=search]{flex:1 1 auto;min-width:0;width:0!important;margin:0}
#modal-content .supply-form .search-control .search-action{flex:0 0 auto;height:40px;margin:0;padding:8px 14px}

.calculation-panel .calculation-table .bom-cost-breakdown{display:block;width:100%;max-width:100%;min-width:0;white-space:normal!important;text-align:right;line-height:1.4;font-size:10px;padding:0;margin:3px 0 0;overflow-wrap:anywhere}
.calculation-panel .calculation-table .bom-cost-breakdown span{display:block;white-space:normal;line-height:1.4}

.supply-panel #supply-tabs button.selected{box-shadow:none!important;transform:none!important;background:var(--selection-bg)!important}
.supply-panel .supply-table th:nth-child(1){width:24%}.supply-panel .supply-table th:nth-child(2){width:19%}.supply-panel .supply-table th:nth-child(3){width:12%}.supply-panel .supply-table th:nth-child(4){width:25%}.supply-panel .supply-table th:nth-child(5){width:13%}.supply-panel .supply-table th:nth-child(6){width:130px}
.supply-panel .supply-table td{padding:9px 10px!important;line-height:1.4}.supply-panel .supply-table .supply-skus{gap:4px;align-content:flex-start}.supply-panel .supply-table .supply-skus button{font-size:10px;padding:2px 5px;line-height:1.4}
.supply-panel .supply-table .supply-row-actions{display:grid;grid-template-columns:repeat(2,max-content);gap:6px 8px;align-items:start;margin:0;padding:0;min-height:0}
.supply-panel .supply-table .supply-row-actions button{padding:0!important;margin:0;min-height:0;height:auto;font-size:11px;line-height:1.5}

.calculation-panel .calculation-table .bom-cost-breakdown span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.calculation-panel .calculation-table .bom-cost-breakdown{height:auto!important;min-height:0!important;padding:0!important}

/* v124: focused per-SKU packaging details and compact cost rows. */
.focused-packaging{display:flex;flex-direction:column;gap:14px;width:min(650px,100%)}
.focused-packaging p{margin:0}.packaging-product-name{font-weight:600}
.packaging-group{border:1px solid #e1e8ef;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:10px}
.packaging-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.packaging-group-heading select{width:auto;max-width:65%;min-height:36px;height:36px;font-size:12px}
.current-packaging-lines{display:flex;flex-direction:column;gap:8px}
.current-packaging-line{display:grid;grid-template-columns:minmax(0,1fr) 85px 24px;gap:10px;align-items:center;background:#f6f8fb;border-radius:8px;padding:10px}
.current-packaging-line small{display:block;line-height:1.5;color:var(--muted);font-size:11px}
.current-packaging-line label{font-size:11px;color:var(--muted);margin:0}.current-packaging-line input{height:36px;min-height:36px;padding:6px 8px}
.manual-packaging-value{display:grid!important;grid-template-columns:1fr 160px;align-items:center;gap:10px;font-size:12px;margin:0!important}
.manual-packaging-value input{height:36px;min-height:36px;padding:6px 10px}
.focused-packaging .notice{margin:0;padding:12px;font-size:12px}
.calculation-table .packaging-loss-caption{font-size:10px;line-height:1.4;color:#58735e;margin-top:3px;white-space:nowrap}
.calculation-table .calc-cell-link{margin-top:0!important;height:18px!important;min-height:18px!important;line-height:18px!important}
.calculation-table .bom-cost-breakdown span{font-size:10px;line-height:1.35}
@media(max-width:600px){.packaging-group-heading{align-items:flex-start;flex-direction:column}.packaging-group-heading select{max-width:100%;width:100%}.manual-packaging-value{grid-template-columns:1fr 120px}}

.bag-dimensions .field-label{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.dimension-inputs{display:grid;grid-template-columns:1fr 1fr 75px;gap:8px}.dimension-inputs label{margin:0!important;font-size:11px!important}
#gusset-dimension{margin-top:8px}#gusset-dimension[hidden]{display:none!important}
.consumable-asset-fields{border:1px solid #e1e8ef;border-radius:12px;padding:12px;margin:0}
.consumable-asset-fields legend{font-size:13px;font-weight:600;padding:0 5px}.consumable-asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.consumable-asset-grid section{display:flex;flex-direction:column;gap:8px;background:#f6f8fb;border-radius:8px;padding:10px;min-width:0}
.consumable-asset-grid section strong{font-size:12px}.consumable-asset-grid section label{font-size:11px!important;margin:0!important}.consumable-asset-grid input{height:34px;min-height:34px;padding:6px 8px;font-size:11px}.consumable-asset-grid input[type=file]{height:auto;font-size:10px}.consumable-asset-grid a{font-size:11px;overflow-wrap:anywhere}
.consumable-image-preview{width:90px;height:90px;object-fit:contain;border:1px solid #dfe6ee;border-radius:8px;background:white}
.supply-material-name{display:flex;align-items:center;gap:8px}.supply-material-name img{width:38px;height:38px;object-fit:contain;border-radius:6px}
@media(max-width:650px){.consumable-asset-grid{grid-template-columns:1fr}}

.focused-packaging .manual-packaging-value[hidden]{display:none!important}
.current-packaging-line label,.current-packaging-line input,.dimension-inputs label,.dimension-inputs input,.dimension-inputs select{min-width:0;width:100%;box-sizing:border-box}
.focused-packaging input,.focused-packaging select{min-width:0;box-sizing:border-box}
.focused-packaging>.button{margin-top:0!important}

/* v125: every cost SKU has two aligned lines; details remain one click away. */
.calculation-panel .calculation-table tbody td{padding:7px 8px!important;vertical-align:top;line-height:28px}
.calculation-panel .calculation-table .calc-component-main{height:28px;display:flex;align-items:center;justify-content:flex-end}
.calculation-panel .calculation-table .calc-component-tools{height:22px;display:flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}
.calculation-panel .calculation-table .calc-component-tools .raw-cost-button,.calculation-panel .calculation-table .calc-component-tools .calc-cell-link{display:inline-block;margin:0!important;min-height:20px!important;height:20px!important;padding:0!important;line-height:20px!important;font-size:10px}
.calculation-panel .calculation-table .calc-component-tools .courier-label{display:inline-block;width:56px;margin:0;height:22px;min-height:22px;padding:2px 3px;font-size:10px}
.calculation-panel .calculation-table th:nth-child(3){width:98px}.calculation-panel .calculation-table th:nth-child(4){width:100px}.calculation-panel .calculation-table th:nth-child(6){width:98px}
.calculation-panel .calculation-table .calc-row-actions{grid-template-columns:repeat(3,max-content);grid-template-rows:24px 22px;gap:0 8px;justify-content:start;align-items:center;padding:0}
.calculation-panel .calculation-table th:nth-child(14){width:155px}
.calculation-panel .calculation-table .price-product{min-height:50px!important;align-items:center}.calculation-panel .calculation-table .price-product strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calculation-panel .calculation-table .calc-total strong,.calculation-panel .calculation-table .calc-status{line-height:28px}
.calculation-panel .calculation-table small{margin-top:0;line-height:22px;white-space:nowrap}
.calculation-panel .calculation-table .inline-save-state:empty{display:none}

/* v127: two-line consumable rows; additional SKU matches wrap naturally. */
.supply-panel .supply-table td{padding:7px 10px!important;line-height:18px}
.supply-panel .supply-table small{margin-top:2px;line-height:18px}
.supply-panel .supply-table td:first-child{position:relative}
.supply-panel .supply-table .supply-material-name strong,.supply-panel .supply-table td:first-child>small,.supply-specification{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.supply-panel .supply-table td:first-child:has(img){padding-left:54px!important}
.supply-panel .supply-table .supply-material-name img{position:absolute;left:10px;top:7px;width:36px;height:36px}
.supply-panel .supply-table .supply-material-name{min-width:0;display:block;line-height:18px}
.supply-panel .supply-table .supply-skus{gap:2px 4px}
.supply-panel .supply-table .supply-skus button{line-height:18px;padding:0 5px;min-height:18px;margin:0;white-space:nowrap}
.supply-panel .supply-table .supply-row-actions{gap:2px 8px}
.supply-panel .supply-table .supply-row-actions button{line-height:18px}
.supply-panel .supply-table td>details{margin:2px 0 0}
.supply-panel .supply-table td>details>summary{line-height:18px}

/* v128: shared flat brand-yellow selection across all pages. */
:root{--selection-bg:#ffed91;--selection-border:#dfba22;--selection-ink:#172c40;--selection-muted:#66520f}
button:is(.active,.selected,[aria-selected="true"],[aria-pressed="true"]),.tree-parent.active{background:var(--selection-bg)!important;border-color:var(--selection-border)!important;color:var(--selection-ink)!important;box-shadow:none!important;transform:none!important;font-weight:700}
button:is(.active,.selected,[aria-selected="true"],[aria-pressed="true"]) :is(small,span){color:var(--selection-muted)!important;opacity:1}
input:is([type=checkbox],[type=radio]){accent-color:var(--selection-border)}
:is(.category-checklist,.category-cascade,.permission-options,.brand-options,.bom-product-options) label:has(input:checked){background:var(--selection-bg);border-color:var(--selection-border);color:var(--selection-ink);border-radius:6px}
.tree-parent.active button{color:var(--selection-ink)}

/* v129: consistent peer tabs and dialog size tiers. */
:is(.subtabs,.calc-tabs,.segmented,.weight-tabs,.activity-summary-tabs){gap:6px!important;background:transparent!important;border:0;box-shadow:none;padding-top:0!important;padding-bottom:0!important;border-radius:0;align-items:center}
:is(.subtabs,.calc-tabs,.segmented,.weight-tabs,.activity-summary-tabs)>button{display:inline-flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:6px;height:40px!important;min-height:40px!important;padding:0 16px!important;line-height:20px!important;font-size:13px!important;font-weight:500;border:1px solid #dce2e5!important;border-radius:10px!important;background:#fff;color:#35495e;box-shadow:none!important;white-space:nowrap;flex-shrink:0}
:is(.subtabs,.calc-tabs,.segmented,.weight-tabs,.activity-summary-tabs)>button:is(.active,.selected,[aria-selected="true"],[aria-pressed="true"]){background:var(--selection-bg)!important;border-color:var(--selection-border)!important;color:var(--selection-ink)!important;font-weight:700}
:is(.subtabs,.calc-tabs,.segmented,.weight-tabs,.activity-summary-tabs)>button:not(.active):not(.selected):not([aria-selected="true"]):not([aria-pressed="true"]):hover{background:#fff9dd;border-color:#dfba22!important}
:is(.subtabs,.calc-tabs,.segmented,.weight-tabs,.activity-summary-tabs)>button :is(small,span){font-size:11px!important;margin:0!important;line-height:20px;font-weight:400}
#modal{width:min(560px,calc(100vw - 28px))!important;max-height:90dvh;border-radius:20px;overflow:auto}
#modal[data-size=detail]{width:min(860px,calc(100vw - 28px))!important}
#modal[data-size=batch]{width:min(1060px,calc(100vw - 28px))!important}
#modal>.modal-header{padding:16px 20px!important;position:sticky;top:0;background:#fff;z-index:5}
#modal>.modal-header h2{font-size:18px;line-height:24px}
#modal>#modal-content{padding:20px!important}
.shop-selection-dialog{width:min(860px,calc(100vw - 28px));border-radius:20px;padding:20px}

/* Carton quotation fields share the consumable dialog sizing. */
.carton-dimensions .dimension-inputs,.carton-materials .dimension-inputs{grid-template-columns:repeat(3,minmax(0,1fr))}.consumable-asset-grid.carton-assets{grid-template-columns:repeat(2,minmax(0,1fr))}#supply-form [hidden]{display:none!important}

.carton-dimensions .field-label,.carton-materials .field-label{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}@media(max-width:650px){.consumable-asset-grid.carton-assets{grid-template-columns:1fr}}

/* One brand yellow for navigation, tabs, accents and selection controls. */
:root{--selection-bg:var(--brand);--selection-border:#d4ad12;--selection-muted:#534509}button:is(.active,.selected,[aria-selected="true"],[aria-pressed="true"]) :is(small,span){color:var(--selection-ink)!important}:is(.subtabs,.calc-tabs,.segmented,.weight-tabs,.activity-summary-tabs)>button:not(.active):not(.selected):not([aria-selected="true"]):not([aria-pressed="true"]):hover{background:var(--selection-bg)!important}input:is([type=checkbox],[type=radio]){accent-color:var(--brand)}

.donut-zto{stroke:#1261ac}.donut-postal{stroke:#08783e}.courier-color-0{background:#1261ac}.courier-color-1{background:#08783e}.courier-color-2{background:#c4292e}

.courier-company-card i.courier-brand-zto{background:#1261ac}.courier-company-card i.courier-brand-post{background:#08783e}.courier-company-card i.courier-brand-sf{background:#c4292e}.courier-company-card i.courier-brand-other{background:#798797}.courier-company-row{min-width:0;width:100%;gap:12px}.courier-company-card{min-width:0;padding:18px 12px;column-gap:8px}.courier-company-card strong{font-size:clamp(18px,2vw,27px)}

/* v132: two aligned lines with one material-link entry beside its value. */
.calculation-panel .calculation-table{min-width:1740px}
.calculation-panel .calculation-table .calc-component-main{gap:6px}
.calculation-panel .calculation-table .calc-component-main .inline-component{min-width:0;flex:1;width:100%;height:28px;min-height:28px}
.calculation-panel .calculation-table .calc-component-main .calc-cell-link{flex:none;font-size:10px;line-height:20px;margin:0;padding:0 2px;color:#476b80}
.calculation-panel .calculation-table th:nth-child(3){width:120px}
.calculation-panel .calculation-table th:nth-child(4){width:112px}
.calculation-panel .calculation-table th:nth-child(5){width:68px}
.calculation-panel .calculation-table th:nth-child(6){width:86px}
.calculation-panel .calculation-table th:nth-child(14){width:176px}
.calculation-panel .calculation-table .calc-row-actions{gap:0 10px}
.calculation-panel .calculation-table tbody td{padding:8px 10px!important;vertical-align:top}
.calculation-panel .calculation-table tbody tr:nth-child(even)>td:not(.calc-total){background:#f8fafc}
.calculation-panel .calculation-table tbody tr:hover>td:not(.calc-total){background:#eef4f8}
.calculation-panel .calculation-table .calc-total{background:#f0f6f1}
.calculation-panel .calculation-table .inline-component:hover,.calculation-panel .calculation-table .inline-component:focus{background:#fff;border-color:#b8c9d9}
.calculation-panel .calculation-table .calc-status .badge{padding:4px 7px;border-radius:7px;font-size:10px;line-height:20px}

:root{--brand:#ffe88a;--selection-bg:var(--brand);--selection-border:#ddc257;--selection-muted:#66551c}

/* v132: compact quote groups with fixed millimetre dimensions. */
#supply-form .supply-full{grid-column:1/-1}
#supply-form .supply-section{border:1px solid #e3eaf1;border-radius:10px;padding:12px;margin:0;min-width:0}
#supply-form .supply-section legend{font-size:12px;font-weight:600;color:#3b5268;padding:0 6px}
#supply-form .bag-dimensions .dimension-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}
#supply-form .supply-short-fields{display:grid;grid-template-columns:1.2fr 1fr .75fr;gap:12px 16px;margin-top:12px}
@media(max-width:600px){#supply-form .supply-short-fields{grid-template-columns:1fr}}

/* v136: compact category workspace and product editor */
#modal-content .category-manager{display:grid;gap:14px;min-height:0;height:auto}
.category-toolbar{display:flex;gap:12px;align-items:center}.category-toolbar input{flex:1;min-width:0}.category-toolbar span{font-size:12px;color:var(--muted);white-space:nowrap}
#modal-content .category-add-form{display:flex;flex-direction:row;gap:10px;align-items:end;margin:0;height:auto;min-height:0}
#modal-content .category-add-form label{display:grid;gap:6px;flex:1;margin:0;font-size:12px;color:var(--muted)}
.category-add-form button{flex:none;min-height:40px;margin:0!important;box-shadow:none}
.category-workspace{display:grid;grid-template-columns:240px minmax(0,1fr);border:1px solid var(--line);border-radius:12px;overflow:hidden;min-height:300px}
#category-parent-list{max-height:330px;overflow:auto;padding:8px;border-right:1px solid var(--line);background:#f6f8fb}
.category-parent{display:block;width:100%;text-align:left;border:1px solid transparent;border-radius:8px;background:transparent;padding:10px 12px;margin-bottom:4px;color:var(--text)}
.category-parent.selected{background:var(--selection-bg);border-color:var(--selection-border)}.category-parent small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.category-parent strong{font-size:13px}
#category-detail{padding:14px;min-width:0}#category-detail h3{font-size:12px;color:var(--muted);margin:16px 0 6px}#category-detail h3 span{margin-left:4px}
.category-compact-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:8px 0;border-bottom:1px solid var(--line)}.category-compact-row>div:first-child{min-width:0}.category-compact-row strong{font-size:14px;overflow-wrap:anywhere}.category-compact-row small{font-size:11px;color:var(--muted);margin-left:8px;white-space:nowrap}
.category-child-list{max-height:200px;overflow:auto;margin-bottom:14px}.category-child-list .category-compact-row strong{font-size:13px}.category-row-actions{flex:none;gap:12px}.category-row-actions button{font-size:12px}
#modal-content .category-inline-rename{display:flex;flex-direction:row;align-items:end;gap:8px;width:100%;height:auto;margin:0;min-height:0}.category-inline-rename label{flex:1;display:grid;gap:4px;font-size:11px;color:var(--muted);margin:0}.category-inline-rename button{flex:none;margin:0!important;min-height:38px;padding:7px 12px;font-size:12px}
.category-help{font-size:11px;line-height:1.6;color:var(--muted);margin:0}.category-manager .form-error:empty{display:none}.category-manager .category-empty{margin:12px 0;font-size:12px}
#modal-content #edit-product-form{display:flex;flex-direction:column;gap:14px!important;height:auto;min-height:0}
#edit-product-form>*{flex:0 0 auto!important;margin:0!important;min-height:0}#edit-product-form .form-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important}#edit-product-form label:not(.inline-label){margin:0;min-width:0}
#edit-product-form input:not([type=checkbox]),#edit-product-form select,.category-manager input{width:100%;min-width:0;min-height:40px;height:40px;padding:8px 10px;font-size:14px}
#edit-product-form .muted{font-size:11px;line-height:1.5}#edit-product-form .brand-fields{padding:10px 14px}#edit-product-form .brand-fields label{font-size:13px}
#edit-product-form .product-image-editor{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px 14px;padding:14px;border:1px solid var(--line);background:#f7f9fc;border-radius:10px}
#edit-product-form .product-image-preview{grid-column:1;grid-row:1/4;width:100px;height:100px;margin:0;object-fit:contain;align-self:start}
#edit-product-form .product-image-editor>label,#edit-product-form .image-upload-status{grid-column:2;display:grid;gap:5px;font-size:12px;color:var(--muted);margin:0}
#edit-product-form .product-image-editor>label:last-child{grid-column:1/-1}#modal-content #edit-product-form .inline-label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;font-size:13px}#edit-product-form .inline-label input{width:16px;height:16px;margin:0}#edit-product-form #form-error:empty{display:none}
#edit-product-form .dialog-actions{position:sticky;bottom:0;background:white;padding:8px 0;margin-bottom:0!important;border-top:1px solid var(--line);z-index:2}
@media(max-width:650px){.category-toolbar{flex-wrap:wrap}.category-toolbar input{flex-basis:100%}.category-workspace{grid-template-columns:1fr}#category-parent-list{display:flex;gap:6px;max-height:150px;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--line)}.category-parent{width:auto;flex:1 1 140px;margin:0}.category-compact-row{flex-wrap:wrap}#edit-product-form .form-columns{grid-template-columns:1fr}#modal-content .category-add-form{flex-wrap:wrap}.category-add-form label{flex-basis:180px!important}}

#supply-form .roll-pricing{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:12px;padding:12px;background:#f5f8fb;border-radius:8px}#supply-form .roll-pricing[hidden]{display:none}#supply-form .roll-pricing>div{display:grid;gap:6px;align-content:center}#roll-unit-price{font-size:17px;color:var(--text)}@media(max-width:600px){#supply-form .roll-pricing{grid-template-columns:1fr}}

.consumable-asset-list{display:grid;gap:6px;max-height:280px;overflow:auto}.consumable-asset-entry{background:white;border:1px solid var(--line);border-radius:8px;padding:8px}.consumable-asset-entry summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;overflow-wrap:anywhere}.consumable-asset-entry summary:before{content:'▸';color:var(--muted)}.consumable-asset-entry[open] summary:before{content:'▾'}.consumable-asset-entry summary img{width:32px;height:32px;object-fit:contain}.consumable-asset-entry>label{margin-top:8px!important}.consumable-asset-entry>a{font-size:12px;display:block;margin-top:8px}.asset-selection:empty,.consumable-asset-list:empty{display:none}.asset-selection{overflow-wrap:anywhere}

.consumable-asset-grid{align-items:start}

#supply-form .bag-measurements .dimension-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#supply-form .bag-measurements>small{display:block;margin-top:8px}
/* v140 OEM workspace: independent product stock and factory materials. */
.oem-shell .category-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.oem-shell .category-tabs .selected{background:var(--brand-soft,#ffe88a);border-color:#e4c84f;color:#1b2c3c;box-shadow:none}
.oem-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:14px 0 22px}.oem-toolbar label{display:flex;align-items:center;gap:8px;margin-left:auto}.oem-toolbar input{width:165px}.oem-context,.oem-actions{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.oem-context{color:#728094;font-size:13px}.oem-table{width:100%;min-width:920px}.oem-table th,.oem-table td{padding:12px;vertical-align:top}.oem-table td small{display:block;color:#738197;margin-top:5px}.oem-balance{background:#f2f7f3}.oem-balance strong{color:#31553a}.oem-records{font-size:12px;max-width:360px;margin-top:8px}.oem-records>div{display:flex;gap:10px;justify-content:space-between;padding:8px 0;border-bottom:1px solid #edf1f5}.oem-mapping{display:grid;grid-template-columns:2fr 1fr auto;gap:12px;align-items:end;margin:12px 0}#oem-legacy{margin-top:20px}#oem-profile-form fieldset,#oem-product-form fieldset{min-width:0}#oem-profile-form .form-columns{margin-bottom:16px}
@media(max-width:640px){.oem-toolbar label{margin-left:0}.oem-mapping{grid-template-columns:1fr}.oem-shell .category-tabs .button{padding:9px 12px}.oem-toolbar .subtabs{width:100%;flex-wrap:wrap}}
#factory-page .oem-shell{padding:24px}#factory-page .oem-shell>.section-heading,#factory-page .oem-shell #oem-content>.section-heading{padding:0;margin-bottom:20px}#factory-page .oem-shell .category-tabs{margin:0 0 18px}#factory-page .oem-shell .category-tabs .button{background:#fff}#factory-page .oem-shell .category-tabs .button.selected{background:var(--brand-soft,#ffe88a)}
@media(max-width:640px){#factory-page .oem-shell{padding:16px}}

.oem-proof-images{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.oem-proof-images img{display:block;width:56px;height:56px;border-radius:6px;object-fit:cover;border:1px solid #e3eaf1}.oem-mapping select{margin-top:6px;width:100%}

.oem-record-actions{display:flex;gap:8px;align-items:start;flex:none}

/* Consistent searchable category controls and spreadsheet-like business tables. */
.category-native-select{position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%);opacity:0;pointer-events:none}.category-search-trigger{width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-search-panel{position:fixed;z-index:9999;background:#fff;border:1px solid var(--line,#dce3ed);border-radius:14px;padding:12px;box-shadow:0 12px 35px #172a3b26;max-height:340px;display:flex;flex-direction:column;gap:8px}.category-search-panel input{min-height:42px;width:100%}.category-search-options{max-height:230px;overflow:auto;display:flex;flex-direction:column;gap:4px}.category-search-options button{text-align:left;border:0;border-radius:8px;padding:10px 12px;background:#fff;color:var(--text,#192635)}.category-search-options button:hover,.category-search-options button:focus-visible{background:#fff5cb}.category-search-options [aria-selected=true]{background:#ffe88a;font-weight:700}.category-search-panel small{color:var(--muted)}.business-table-scroll{max-height:min(560px,65vh);overflow:auto!important;scrollbar-gutter:stable;border:1px solid var(--line,#e0e6ee);border-radius:12px}.business-table-scroll table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%}.business-table-scroll thead th{position:sticky;top:0;z-index:4;background:#f0f3f7}.business-table-scroll .calculation-table th:first-child,.business-table-scroll .calculation-table td:first-child{position:sticky;left:0;z-index:2;background:#fff;min-width:40px;width:40px;box-sizing:border-box}.business-table-scroll .calculation-table th:nth-child(2),.business-table-scroll .calculation-table td:nth-child(2){position:sticky;left:40px;z-index:2;background:#fff}.business-table-scroll .cost-guide-table th:first-child,.business-table-scroll .cost-guide-table td:first-child{position:sticky;left:0;z-index:2;background:#fff}.business-table-scroll .calculation-table thead th:first-child,.business-table-scroll .calculation-table thead th:nth-child(2),.business-table-scroll .cost-guide-table thead th:first-child{z-index:5;background:#f0f3f7}.business-table-scroll .calculation-table td:nth-child(2),.business-table-scroll .cost-guide-table td:first-child{box-shadow:3px 0 5px #172a3b0a}

.business-pagination,.pagination-footer{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap;padding:14px 0;margin:0}.pagination-footer>.pagination{padding:0;margin:0}.pagination-footer>.inline-label{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap}.pagination-footer select{width:auto;min-width:75px}.business-table-scroll .cost-guide-table{width:100%!important;min-width:1100px!important;max-width:none!important;table-layout:auto}.business-table-scroll table:not(.calculation-table)>thead>tr>th:first-child,.business-table-scroll table:not(.calculation-table)>tbody>tr>td:first-child{position:sticky;left:0;background:#fff;z-index:2}.business-table-scroll table:not(.calculation-table)>thead>tr>th:first-child{z-index:5;background:#f0f3f7}.audit-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.audit-filters label{display:flex;flex-direction:column;gap:5px;font-size:13px}.audit-filters input,.audit-filters select{min-height:40px}.audit-diff{min-width:500px}.audit-diff td{white-space:pre-wrap;word-break:break-word}.system-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.system-checks>div{background:#f6f8fb;border-radius:12px;padding:14px}.system-checks strong{display:block;margin:5px 0}.system-alert{padding:12px 16px;border-radius:10px;margin:10px 0;background:#fff7dd}.system-alert.critical{background:#fff0ee;color:#a2392b}

#supply-form .courier-dimensions .dimension-inputs{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:650px){#supply-form .courier-dimensions .dimension-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}}

.supplier-manager-tools{display:grid;grid-template-columns:minmax(220px,1fr) 180px auto;gap:12px;align-items:end}.supplier-manager-tools label{display:grid;gap:6px;color:var(--muted);font-size:12px}.supplier-manager-scroll{max-height:58vh;overflow:auto}.supplier-compact-table{width:100%;min-width:850px;table-layout:fixed}.supplier-compact-table th{position:sticky;top:0;z-index:1;background:#f0f4f8}.supplier-compact-table th:first-child{width:28%}.supplier-compact-table th:nth-child(2){width:18%}.supplier-compact-table th:nth-child(3){width:18%}.supplier-compact-table th:last-child{width:75px}.supplier-compact-table td{padding:12px!important;vertical-align:middle!important}.supplier-compact-table small{display:block;margin-top:4px}.supplier-note{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.supplier-category-tags{display:flex;flex-wrap:wrap;gap:4px}.supplier-category-tags .badge{margin:0!important}.supplier-category-options{border:1px solid var(--border);border-radius:12px;padding:12px;display:flex;flex-wrap:wrap;gap:10px}.supplier-category-options label{display:flex;align-items:center;gap:6px;margin:0!important;border:1px solid var(--border);border-radius:8px;padding:8px 12px}.supplier-category-options input{width:auto!important;margin:0}.supplier-category-options label:has(input:checked){background:#fff4c8;border-color:#e3cb70}@media(max-width:650px){.supplier-manager-tools{grid-template-columns:1fr 1fr}.supplier-manager-tools>label:first-child{grid-column:1/-1}}

.oem-product-cell{display:flex;gap:12px;min-width:260px}.oem-product-cell img,.oem-product-placeholder{width:64px;height:64px;object-fit:contain;border:1px solid #e0e6ed;border-radius:10px;background:#fff;flex-shrink:0}.oem-product-placeholder{display:flex;align-items:center;justify-content:center;font-size:11px;color:#8290a2}.oem-product-cell a{flex-shrink:0}.oem-product-preview{width:128px;height:128px;object-fit:contain;margin:8px 0}.oem-statement-summary{display:flex;gap:16px;flex-wrap:wrap;padding:12px;background:#f5f8fc;border-radius:10px}.oem-statement-line input{min-width:95px;width:120px}.oem-statement-line select{min-width:200px}#oem-statements{margin-top:24px;border-top:1px solid #e5eaf0;padding-top:20px}.oem-statement-warning{color:#945d10}
.dsr-scroll{max-height:65vh;overflow:auto}.dsr-table{min-width:1580px;width:100%}.dsr-table th,.dsr-table td{padding:12px;vertical-align:top}.dsr-table thead th{position:sticky;top:0;z-index:3;background:#f0f4f8}.dsr-table th:nth-child(2),.dsr-table td:nth-child(2){position:sticky;left:48px;z-index:2;background:#fff;min-width:260px;max-width:340px;box-shadow:2px 0 3px #e3e9ef}.dsr-table thead th:nth-child(2){z-index:4;background:#f0f4f8}.dsr-table td small{display:block;margin-top:5px;color:#728094}.dsr-score{display:inline-block;font-size:20px;font-weight:750;border-radius:7px;padding:3px 9px}.dsr-score.dsr-red{background:#fde7e7;color:#b42318}.dsr-score.dsr-yellow{background:#fff2c8;color:#805b00}.dsr-score.dsr-green{background:#e7f4e9;color:#246437}.dsr-score.dsr-none{background:#edf1f5;color:#718096}.dsr-label.dsr-red{color:#b42318}.dsr-label.dsr-yellow{color:#805b00}.dsr-label.dsr-green{color:#246437}.dsr-count{display:block;white-space:nowrap;font-size:13px}.dsr-trend{display:block;font-size:13px;margin-top:6px}.dsr-rating-inputs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.dsr-tools input[type=search]{min-width:200px}.dsr-history{max-height:60vh}.dsr-history table{width:100%;min-width:850px}.dsr-history th,.dsr-history td{padding:10px}.dsr-history th{position:sticky;top:0;background:#f0f4f8}.dsr-rating-inputs label{min-width:0}@media(max-width:650px){.dsr-rating-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.dsr-tools label{width:100%}}

/* v154: compact DSR worksheet; extended explanations expand on demand. */
.dsr-table.dsr-compact{min-width:1510px;table-layout:fixed;font-size:13px;line-height:1.35}
.dsr-compact th,.dsr-compact td{padding:8px 10px;vertical-align:top}
.dsr-compact th:nth-child(2){width:240px}.dsr-compact th:nth-child(3){width:118px}.dsr-compact th:nth-child(4){width:100px}.dsr-compact th:nth-child(5){width:300px}.dsr-compact th:nth-child(6){width:94px}.dsr-compact th:nth-child(7){width:174px}.dsr-compact th:nth-child(8){width:104px}.dsr-compact th:nth-child(9){width:150px}.dsr-compact th:nth-child(10){width:116px}
.dsr-compact th:nth-child(2),.dsr-compact td:nth-child(2){min-width:0;max-width:none}
.dsr-product-name,.dsr-shop-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dsr-compact td small{margin-top:3px;font-size:11px}.dsr-compact .sku{font-size:11px}.dsr-compact .badge{font-size:11px;padding:4px 7px;white-space:nowrap}
.dsr-compact .dsr-score{font-size:17px;padding:2px 6px}.dsr-compact .dsr-label{font-size:10px;line-height:1.3}.dsr-compact .dsr-trend{display:inline-block;margin:0 0 0 5px;font-size:11px}.dsr-rolling-summary .dsr-label{display:none}
.dsr-inline-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.dsr-inline-counts label{display:block;margin:0;min-width:0;font-size:11px;color:#68798d}
.dsr-compact input{box-sizing:border-box;width:100%;min-width:0;height:32px;margin:3px 0 0;padding:4px 6px;font-size:13px;border-radius:6px}.dsr-compact input[type=number]{appearance:textfield;-moz-appearance:textfield}.dsr-compact input::-webkit-inner-spin-button,.dsr-compact input::-webkit-outer-spin-button{appearance:none;margin:0}
.dsr-compact .text-button{display:block;padding:3px 0;font-size:11px;line-height:1.25;text-align:left}.dsr-compact .dsr-zero{margin-top:3px}.dsr-compact .dsr-row-save{padding:6px 14px;min-height:30px;font-size:12px;border-radius:7px}.dsr-inline-form{margin:0}.dsr-inline-form .form-error{margin:0;font-size:11px;white-space:normal}.dsr-details{font-size:11px;margin-top:4px;color:#68798d}.dsr-details summary{cursor:pointer;white-space:nowrap}.dsr-details[open]{max-width:240px;white-space:normal}.dsr-details label{display:block;margin-top:6px;font-size:11px}.dsr-save-status{color:#8b6400!important}

.dsr-shop-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.dsr-shop-tabs button{font-size:12px;padding:8px 12px}.dsr-shop-tabs small{display:block;font-size:10px;margin-top:3px}.dsr-overview-card{border:1px solid #dce5ed;background:#f8fafc;border-radius:10px;padding:12px 16px;margin:10px 0}.dsr-overview-card>strong{display:block;margin-bottom:8px}.dsr-overview-card>div{display:inline-block;margin-right:28px;vertical-align:top}.dsr-overview-card small{display:block;color:#728094;font-size:11px;margin-top:3px}.dsr-overview-card .dsr-label{display:inline;margin-left:5px}.dsr-history pre{font-size:11px;white-space:pre-wrap;max-width:300px}

/* v156: compact product column and a visual percent suffix; submitted value stays numeric. */
.dsr-compact th:nth-child(2){width:180px}.dsr-compact th:nth-child(9){width:auto}.dsr-compact td:nth-child(2){width:180px}
.dsr-percent-input{display:block;position:relative;min-width:0}.dsr-percent-input>input{box-sizing:border-box;width:100%;padding-right:25px}.dsr-compact .dsr-percent-input>input{padding-right:24px}.dsr-percent-input>span{position:absolute;right:9px;top:50%;transform:translateY(-50%);pointer-events:none;color:#68798d;font-size:13px;line-height:1}.dsr-compact .dsr-percent-input>span{margin-top:1px}

/* v157: separate rating groups fold after calculation; readable shop grid and history matrix. */
.dsr-shop-tabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;padding:12px 0;margin:10px 0 16px}.dsr-shop-tabs button{width:100%;min-height:62px;padding:12px 16px;text-align:left;white-space:normal;line-height:1.45}.dsr-shop-tabs small{margin-top:5px;font-size:11px;line-height:1.5}.dsr-view-tabs{display:flex;gap:10px;margin:12px 0}.dsr-count-editor{margin:4px 0;min-width:0}.dsr-count-editor>summary{font-size:11px;cursor:pointer;color:#426276;line-height:1.5}.dsr-count-editor>summary>span:last-child{color:#7b8998}.dsr-count-editor[open]>summary>span:last-child{display:none}.dsr-compact th:nth-child(7){width:280px}.dsr-count-editor[open]{padding:5px;background:#f7f9fc;border-radius:7px}.dsr-count-editor .dsr-inline-counts{gap:4px}.dsr-count-editor small{font-size:10px}.dsr-matrix{border-collapse:separate;border-spacing:0;width:max-content;table-layout:fixed;font-size:12px}.dsr-matrix th,.dsr-matrix td{box-sizing:border-box;min-width:92px;width:92px;height:34px;padding:6px 8px;text-align:center;border-bottom:1px solid #e5ebf1;border-right:1px solid #edf1f5;white-space:nowrap}.dsr-matrix thead th{position:sticky;top:0;z-index:4;background:#f0f4f8}.dsr-matrix-product,.dsr-matrix thead th:nth-child(2){position:sticky;left:48px;min-width:150px!important;width:150px!important;max-width:150px;background:#fff;z-index:3;text-align:left!important}.dsr-matrix-product strong{display:block;max-width:130px;overflow:hidden;text-overflow:ellipsis}.dsr-matrix-product small{display:block;font-size:10px;max-width:130px;overflow:hidden;text-overflow:ellipsis;color:#728094}.dsr-matrix-sales,.dsr-matrix thead th:nth-child(3){position:sticky;left:198px;min-width:115px!important;width:115px!important;background:#fff;z-index:3}.dsr-matrix-sales small{display:block;font-size:10px;color:#728094}.dsr-matrix-metric,.dsr-matrix thead th:nth-child(5){position:sticky;left:468px;min-width:100px!important;width:100px!important;background:#f8fafc;z-index:3;box-shadow:2px 0 2px #e2e8ef}.dsr-matrix thead th:nth-child(-n+5){z-index:6;background:#f0f4f8}.dsr-matrix .dsr-red{color:#b42318;background:#fdecec}.dsr-matrix .dsr-yellow{color:#805b00;background:#fff6d9}.dsr-matrix .dsr-green{color:#246437;background:#eef7ef}.dsr-matrix td small{display:block;font-size:10px}.dsr-matrix tbody tr:nth-child(3n)>*{border-bottom:2px solid #dce5ed}@media(max-width:650px){.dsr-shop-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dsr-shop-tabs button{padding:9px;font-size:11px}}

/* v158: consistent breathing room inside the DSR card, including the scrollable table. */
#dsr-page>.panel{padding-inline:26px}
#dsr-page>.panel>.section-heading,#dsr-page>.panel>.table-tools{padding-inline:0}
@media(max-width:650px){#dsr-page>.panel{padding-inline:16px}}

/* v159: daily counts below the score; visible, independently saved incentive settings. */
.dsr-table.dsr-compact{min-width:1430px}
.dsr-compact th:nth-child(5){width:260px}.dsr-compact th:nth-child(6){width:280px}.dsr-compact th:nth-child(7){width:104px}.dsr-compact th:nth-child(8){width:220px}.dsr-compact th:nth-child(9){width:116px}
.dsr-incentive-form{display:grid;gap:5px;margin:0 0 6px}.dsr-incentive-form label{display:grid;gap:3px;font-size:11px;color:#68798d}.dsr-incentive-form select{width:100%;min-width:0;min-height:32px;padding:4px 6px;font-size:12px}.dsr-incentive-form input{width:100%;min-width:0}.dsr-incentive-form .button{justify-self:start;padding:5px 10px;font-size:11px}.dsr-incentive-form .form-error{margin:0;font-size:11px}.dsr-matrix-product .text-button{font-size:10px;margin-top:5px}

/* v161: saved daily rows are visually settled until a real edit occurs. */
.dsr-compact .dsr-row-save.dsr-saved{background:#edf1f5;border-color:#dce3eb;color:#758397;box-shadow:none;opacity:1;cursor:default}

/* v161: summarize incentives in the row; edit through the explicit action. */
.dsr-table.dsr-compact{min-width:1280px}
.dsr-compact th:nth-child(5){width:220px}.dsr-compact th:nth-child(6){width:240px}.dsr-compact th:nth-child(8){width:165px}
.dsr-incentive-summary{display:grid;gap:3px}.dsr-incentive-summary strong{font-size:12px;font-weight:600}.dsr-incentive-summary small{margin:0!important}.dsr-incentive-summary .text-button{justify-self:start}

.dsr-matrix .dsr-matrix-incentive{position:sticky;left:313px;min-width:155px;width:155px;max-width:155px;background:#fff8dc;z-index:3;text-align:left;white-space:normal}.dsr-matrix thead .dsr-matrix-incentive{z-index:6;background:#fff0b8}.dsr-matrix-incentive .text-button{font-size:11px;white-space:normal}.dsr-matrix-incentive small{color:#806626}

.dsr-rolling-status{font-size:11px;margin-left:6px;white-space:nowrap}

.dsr-percent-input>input{font-weight:600;color:#14253b}.dsr-percent-input>input::placeholder{font-weight:400;color:#98a4b3;opacity:1}

/* v162: one persistent daily status choice, with prior-state carry-forward. */
.dsr-incentive-choice{width:100%;min-width:0;min-height:30px;padding:4px 6px;font-size:12px;border-radius:6px;background:#fff}.dsr-matrix-incentive .dsr-incentive-choice{background:#fffdf3}.dsr-incentive-summary .form-error:empty{display:none}

/* v163: continuous row numbers across pages, pinned before the product column. */
.dsr-table.dsr-compact{min-width:1328px}
.dsr-table .dsr-serial,.dsr-matrix .dsr-serial{position:sticky;left:0;width:48px!important;min-width:48px!important;max-width:48px!important;padding:8px 5px;text-align:center;background:#f8fafc;color:#728094;font-size:12px;font-variant-numeric:tabular-nums;z-index:3}
.dsr-table thead .dsr-serial,.dsr-matrix thead .dsr-serial{z-index:7;background:#f0f4f8}

/* Keep daily and rolling rating editors on the same baseline. */
.dsr-compact .dsr-inline-preview{height:25px;white-space:nowrap}.dsr-compact .dsr-inline-preview .dsr-label{display:inline-block;margin:0 0 0 6px;vertical-align:middle}.dsr-compact .dsr-inline-preview+small{min-height:30px;margin-top:3px}.dsr-compact .dsr-rolling-summary{min-height:58px}

.dsr-auto-status{display:inline-block;color:#728094;font-size:11px;white-space:normal}.dsr-subsidy-label{display:flex;align-items:center;gap:5px;font-size:11px;color:#68798d;margin-top:5px}.dsr-compact .dsr-subsidy,.dsr-matrix .dsr-subsidy{width:14px;height:14px;min-height:0;margin:0;padding:0}.dsr-subsidy-status{font-size:10px!important}.dsr-subsidy-status:empty{display:none!important}

#dsr-page{padding-top:12px}
.activity-records-scroll{max-height:min(560px,65vh);overflow:auto;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:12px}.activity-records-scroll>.activity-records-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1490px}.activity-records-scroll>.activity-records-table>thead>tr>th{position:sticky;top:0;background:#f0f4f8;z-index:4}.activity-records-scroll>.activity-records-table>tbody>tr>td:first-child{position:sticky;left:0;background:#fff;z-index:2;box-shadow:2px 0 4px #172a3b0a}.activity-records-scroll>.activity-records-table>thead>tr>th:first-child{left:0;z-index:5}

.dsr-link-tags{display:flex;gap:4px;flex-wrap:wrap;margin:4px 0}.dsr-link-tags>span{font-size:10px;line-height:1.4;border-radius:4px;padding:1px 4px;background:#edf1f5;color:#68798d}.dsr-link-tags>.dsr-brand-tag{background:#fff2bb;color:#6d5915}

/* v164: spaced, top-labelled DSR filters and brand/category identity colors. */
#dsr-page .dsr-tools{display:grid;grid-template-columns:150px minmax(200px,1fr) minmax(260px,1.2fr) minmax(245px,1fr) auto;gap:20px 24px;align-items:end;padding-top:8px;padding-bottom:26px}
#dsr-page .dsr-tools>label{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;font-size:12px;line-height:1.5;color:#68798d}
#dsr-page .dsr-tools input,#dsr-page .dsr-tools select,#dsr-page .dsr-tools .button{height:42px;min-height:42px;margin:0}
#dsr-page .dsr-tools select,#dsr-page .dsr-tools input{width:100%;min-width:0}
#dsr-page .dsr-tools .search-control{max-width:none;width:100%;flex:none;gap:8px}
#dsr-page .dsr-tools>#dsr-refresh{align-self:end;justify-self:start}
.dsr-link-tags>.dsr-brand-tangxiu{background:#244a2e;color:#fff}.dsr-link-tags>.dsr-brand-gosuyoo{background:#fed800;color:#302907}
.dsr-link-tags>.dsr-category-dry{background:#fff1d6;color:#805118}.dsr-link-tags>.dsr-category-fresh{background:#e2f4eb;color:#236447}.dsr-link-tags>.dsr-category-instant{background:#fff0e3;color:#a64c19}.dsr-link-tags>.dsr-category-tonic{background:#f0e8fa;color:#67438f}
@media(max-width:1200px){#dsr-page .dsr-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}}
@media(max-width:650px){#dsr-page .dsr-tools{grid-template-columns:minmax(0,1fr);gap:16px}}

/* v165: highlight only enabled review incentives. */
.dsr-matrix tbody .dsr-matrix-incentive{background:#fff}.dsr-matrix tbody tr:nth-child(even) .dsr-matrix-incentive{background:#f7f9fc}.dsr-matrix tbody .dsr-matrix-incentive small{color:#718098}.dsr-matrix tbody .dsr-matrix-incentive .dsr-incentive-choice{background:#fff}.dsr-matrix tbody .dsr-matrix-incentive.dsr-incentive-enabled{background:#fff8dc}.dsr-matrix tbody .dsr-incentive-enabled small{color:#806626}.dsr-matrix tbody .dsr-incentive-enabled .dsr-incentive-choice{background:#fffdf3}

/* v166: review-count weighted brand/category summaries. */
.dsr-overview-card>.dsr-breakdown{display:block;margin:18px 0 0;overflow-x:auto;border-top:1px solid #dce5ed;padding-top:14px}.dsr-breakdown table{width:100%;min-width:470px;border-collapse:collapse;table-layout:fixed}.dsr-breakdown caption{text-align:left;font-weight:600;margin-bottom:10px;color:#34495e}.dsr-breakdown th,.dsr-breakdown td{padding:9px 12px;text-align:left;border-bottom:1px solid #e4eaf0;vertical-align:middle;white-space:normal}.dsr-breakdown thead th{background:#edf2f7;color:#64748b;font-size:12px}.dsr-breakdown th:first-child{width:28%}.dsr-breakdown .dsr-brand-total{background:#eef3f7}.dsr-breakdown .dsr-category-total{background:#fff}.dsr-breakdown .dsr-category-total th{padding-left:32px}.dsr-breakdown-total-label{font-size:11px;font-weight:400;color:#64748b;margin-left:8px}.dsr-breakdown .dsr-score{font-size:17px;padding:3px 7px}.dsr-breakdown .dsr-label{font-size:11px}.dsr-breakdown .dsr-link-tags{display:inline-flex;margin:0}.dsr-breakdown>p{font-size:11px;margin:10px 0 0}

/* v167: compact side-by-side brand summaries. */
.dsr-brand-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dsr-brand-card{min-width:0;border:1px solid #dce5ed;border-radius:8px;overflow:hidden;background:#fff}.dsr-breakdown-title{display:block;margin-bottom:10px;font-size:13px}.dsr-breakdown .dsr-brand-card table{min-width:0}.dsr-breakdown .dsr-brand-card caption{padding:8px 12px;margin:0;background:#f8fafc}.dsr-breakdown .dsr-brand-card th,.dsr-breakdown .dsr-brand-card td{padding:5px 10px;height:32px;font-size:12px}.dsr-breakdown .dsr-brand-card th:first-child{width:29%}.dsr-breakdown .dsr-brand-card .dsr-score{font-size:14px;padding:2px 5px}.dsr-breakdown-count{font-size:10px;color:#728094;margin-left:6px;white-space:nowrap}.dsr-other-brands{margin-top:10px;font-size:12px;color:#64748b}.dsr-other-brands summary{cursor:pointer;margin-bottom:8px}.dsr-brand-card .dsr-link-tags{flex-wrap:wrap}.dsr-brand-card .dsr-link-tags span{white-space:normal}@media(max-width:900px){.dsr-brand-grid{grid-template-columns:1fr}}

/* v169: search next to table view tabs. */
.dsr-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:12px 0}.dsr-table-toolbar .dsr-view-tabs{margin:0;flex-wrap:wrap}.dsr-table-search{display:flex;align-items:center;gap:9px;max-width:100%;flex:0 1 450px}.dsr-table-search input{min-width:0;flex:1;width:280px;height:38px}.dsr-table-search .button{min-height:38px;padding:7px 13px}.dsr-table-search .text-button{white-space:nowrap}@media(max-width:700px){.dsr-table-search{flex-basis:100%}}



#quality-content .table-tools{gap:14px}#quality-content td small{display:block;margin-top:6px}#overview-retry{margin:0 0 12px}

/* v179: size the asynchronous check dialog immediately and keep actions visible. */
#modal[data-size=quality]{width:min(1440px,calc(100vw - 32px))!important;max-width:none;max-height:94dvh}
#modal[data-size=quality] #modal-content{padding:20px 24px!important}
#modal[data-size=quality] .notice{margin:0 0 16px;padding:14px 18px}
#quality-content .table-tools{display:flex;flex-wrap:wrap;gap:12px;padding:0;margin:14px 0;align-items:center}
#quality-kind{flex:0 1 230px;max-width:100%}#quality-search{flex:1 1 300px;min-width:160px;width:auto}#quality-search-go{flex:none}
#quality-content .quality-scroll{max-height:55dvh;overflow:auto}
#quality-content .quality-table{width:100%;min-width:840px;table-layout:fixed}
#quality-content .quality-table th,#quality-content .quality-table td{padding:12px;white-space:normal;overflow-wrap:anywhere;vertical-align:top;font-size:13px;line-height:1.6}
.quality-kind-col{width:12%}.quality-product-col{width:25%}.quality-shop-col{width:20%}.quality-reason-col{width:28%}.quality-action-col{width:15%}
#quality-content .quality-action{position:sticky;right:0;z-index:2;background:#fff;box-shadow:-3px 0 7px #1c33431a;border-left:1px solid #e3e9ef}
#quality-content thead .quality-action{z-index:4;background:#f0f4f8}
#quality-content .quality-action .button{display:block;width:100%;padding:8px 10px;min-height:36px;white-space:normal;margin:0 0 8px;font-size:13px}
@media(max-width:650px){#modal[data-size=quality]{width:calc(100vw - 16px)!important}#modal[data-size=quality] #modal-content{padding:14px!important}.quality-action-col{width:140px}#quality-content .quality-scroll{max-height:50dvh}}
