/* R5 samples: catalogue list and artwork workbench only. Other pages untouched. */
html body #content#content .r5-catalog-workspace .cw-entry-cards {
  display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:8px!important;margin:0 0 12px!important;
}
html body #content#content .r5-catalog-workspace .cw-entry-cards>button {
  min-height:82px!important;height:auto!important;padding:12px!important;text-align:left!important;
}
html body #content .r5-catalog-workspace .cw-toolbar{margin:8px 0;gap:8px}
html body #content .r5-catalog-workspace .cw-toolbar .btn{min-height:34px}
html body #content .r5-catalog-workspace .cw-table{table-layout:fixed}
html body #content .r5-catalog-workspace .cw-product{min-width:0;display:block}
html body #content .r5-catalog-workspace .cw-product>span{display:block;min-width:0}
html body #content .r5-catalog-workspace .cw-product .btn,
html body #content .r5-catalog-workspace .r5-feedback-product .btn {
  white-space:normal!important;overflow:hidden!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow-wrap:anywhere;max-width:100%!important;width:100%;min-width:0!important;text-align:left;padding:2px!important;color:#245cc5;
}
html body #content .r5-catalog-workspace .cw-product small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
html body #content .r5-catalog-workspace .r5-progress-line{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin-bottom:6px}
html body #content .r5-catalog-workspace .r5-deadlines{display:grid;grid-template-columns:1fr 1fr;gap:10px;color:#54647b}
html body #content .r5-catalog-workspace .r5-deadlines time{display:block;font-variant-numeric:tabular-nums;white-space:nowrap}
html body #content .r5-catalog-workspace .cw-tracking-hint{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0}
html body #content .r5-catalog-workspace:not([data-catalog-tab="产品资料"]){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
html body #content .r5-catalog-workspace:not([data-catalog-tab="产品资料"])>*{grid-column:1/-1}
html body #content .r5-catalog-workspace:not([data-catalog-tab="产品资料"])>.cw-settings-toolbar{grid-column:2;grid-row:2}
html body #content .r5-catalog-workspace:not([data-catalog-tab="产品资料"])>.cw-selection-toolbar{grid-column:1;grid-row:2}
html body #content .r5-artwork-workspace .pf-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 18px;height:auto!important}
html body #content#content .r5-artwork-workspace .pf-tabs>.btn.pf-tab.metric-card{min-height:104px!important;height:auto!important;padding:16px 20px!important;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:8px;font-size:14px!important;border-radius:10px}
html body #content .r5-artwork-workspace .pf-tabs>.pf-tab[aria-pressed=true]{border:2px solid #397cff!important;background:#f1f6ff!important}
html body #content .r5-artwork-workspace .pf-tabs .pf-count{font-size:26px!important;line-height:1.2}
html body #content#content .r5-artwork-workspace .pf-tabs small{display:block!important;font-size:13px!important}
@media(max-width:1200px){
 html body #content#content .r5-catalog-workspace .cw-entry-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 html body #content .r5-artwork-workspace .pf-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
 html body #content#content .r5-catalog-workspace .cw-entry-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* Layered important declarations override the legacy five-ID rules while
   remaining confined to the artwork sample, without raising specificity. */
@layer danfeng-r5-samples {
 .r5-artwork-workspace .pf-tabs>.pf-tab{min-height:104px!important;height:auto!important;padding:16px 20px!important}
 .r5-artwork-workspace .pf-tabs small{display:block!important}
}

/* P2 local presentation correction. Values measured from unchanged 3C workbench.
   Scope requires one of the two catalogue tabs; no global element overrides. */
@layer danfeng-catalog-fluid {
 #content:has(.cw-workspace[data-catalog-tab="产品资料"],.cw-workspace[data-catalog-tab="选品反馈"]){min-width:0!important;padding-left:22px!important;padding-right:22px!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]){--cw-font:"Noto Sans SC","Microsoft YaHei","PingFang SC",Arial,sans-serif;font:400 14px/21px var(--cw-font)!important;color:#273b58!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-scroll{width:100%!important;max-width:100%!important;min-width:0!important;overflow:auto!important;border-color:#e1e8f1!important;border-radius:6px}
 #content .r5-catalog-workspace .cw-table:is(.cw-fixed-product,.cw-fixed-feedback){width:100%!important;max-width:none!important;table-layout:fixed!important}
 #content .cw-fixed-product{min-width:1180px!important}
 #content .cw-fixed-feedback{min-width:1120px!important}
 #content :is(.cw-fixed-product,.cw-fixed-feedback)>thead>tr>th,
 #content :is(.cw-fixed-product,.cw-fixed-feedback)>tbody>tr>td{height:auto!important;max-height:none!important;padding:10px!important;font-family:"Noto Sans SC","Microsoft YaHei",sans-serif!important;font-size:14px!important;line-height:21px!important;white-space:normal!important;overflow-wrap:anywhere!important;overflow:visible!important;vertical-align:middle!important;border-bottom:1px solid #e7edf5!important;color:#273b58!important}
 #content :is(.cw-fixed-product,.cw-fixed-feedback)>thead>tr>th{font-weight:500!important;color:#626975!important;background:#f3f7fc!important;text-align:center!important}
 #content :is(.cw-fixed-product,.cw-fixed-feedback)>tbody>tr>td{font-weight:400!important;text-align:left!important}
 #content :is(.cw-fixed-product,.cw-fixed-feedback)>tbody>tr>td:is(.cw-select,.cw-atomic,.cw-operation){text-align:center!important}
 #content :is(.cw-fixed-product,.cw-fixed-feedback)>tbody>tr{height:auto!important;max-height:none!important}
 #content :is(.cw-fixed-product,.cw-fixed-feedback) .cw-operation{position:static!important;box-shadow:none!important}
 #content :is(.cw-fixed-product,.cw-fixed-feedback) .cw-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;justify-content:center!important;overflow:visible!important;max-height:none!important}
 #content :is(.cw-fixed-product,.cw-fixed-feedback) .btn{font-family:var(--cw-font)!important;font-size:13px!important;font-weight:400!important;line-height:18.2px!important;min-height:32px!important;height:auto!important;padding:6px 8px!important;border-color:#dce5f0!important;white-space:normal!important;max-width:100%!important;overflow-wrap:anywhere!important}
 #content .cw-fixed-product .cw-product{display:flex!important;gap:8px!important;align-items:center!important;min-width:0!important;width:100%!important;height:auto!important;overflow:visible!important}
 #content .cw-fixed-product .cw-product>span{display:block!important;min-width:0!important;flex:1}
 #content .cw-fixed-product .cw-product img{width:34px!important;height:34px!important;object-fit:contain!important;flex:0 0 34px!important;margin:0!important}
 #content .cw-fixed-product .cw-product .btn,#content .cw-fixed-feedback .r5-feedback-product .btn{display:block!important;-webkit-line-clamp:unset!important;max-height:none!important;overflow:visible!important;white-space:normal!important;text-align:left!important;line-height:21px!important;font-size:14px!important;border:0!important;background:transparent!important;padding:0!important;min-height:0!important;height:auto!important;color:#245cc5!important}
 #content .cw-fixed-product .cw-product small{white-space:normal!important;height:auto!important;max-height:none!important;overflow:visible!important;overflow-wrap:anywhere!important;line-height:20px!important}
 #content .cw-fixed-product .cw-plan-lines p{margin:0 0 4px!important;line-height:21px!important;white-space:normal!important}
 #content .cw-fixed-product .cw-plan-lines p:last-child{margin-bottom:0!important}
 #content .cw-fixed-feedback .r5-progress-line{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:4px 10px!important;margin:0 0 6px!important;line-height:21px!important;height:auto!important;max-height:none!important;overflow:visible!important;white-space:normal!important}
 #content .cw-fixed-feedback .r5-progress-line strong{font-weight:500!important}
 #content .cw-fixed-feedback .r5-deadlines{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;line-height:20px!important;height:auto!important;max-height:none!important;overflow:visible!important}
 #content .cw-fixed-feedback .r5-deadlines span,#content .cw-fixed-feedback .r5-deadlines time{white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;max-height:none!important}
 #content .cw-fixed-product .cw-detail-row>td{min-width:0!important;padding:12px!important}
 #content .cw-fixed-product .cw-template-scroll{max-width:100%!important;overflow:auto!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-entry-cards{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:0!important;margin:0 0 14px!important;padding:10px 0!important;border:1px solid #e1e8f1!important;border-radius:6px!important;background:#fff!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-entry-cards>button{display:grid!important;grid-template-columns:auto auto!important;grid-template-rows:21px 29px!important;justify-content:center!important;align-items:center!important;gap:3px 6px!important;min-width:0!important;min-height:0!important;height:auto!important;padding:3px 12px!important;border:0!important;border-right:1px solid #e5ebf3!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:#273b58!important;font-family:var(--cw-font)!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-entry-cards>button>span:not(.approved-stat-icon){grid-column:1/-1!important;grid-row:1!important;justify-content:center!important;margin:0!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-entry-cards>button>b{grid-column:1!important;grid-row:2!important;text-align:right!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-entry-cards>button>small{grid-column:2!important;grid-row:2!important;margin:0!important;text-align:left!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-entry-cards>button:last-child{border-right:0!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-entry-cards>button.active{background:#edf4ff!important;box-shadow:inset 0 -2px #3478ff!important;color:#245cc5!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-entry-cards .approved-stat-icon{display:none!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-entry-cards b{font-size:24px!important;line-height:29px!important;font-weight:400!important;margin:0!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-entry-cards small{display:block!important;font-size:12px!important;line-height:18px!important;white-space:normal!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-entry-cards span{font-size:14px!important;line-height:21px!important;white-space:normal!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-toolbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:8px 0!important;min-width:0!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-toolbar .cw-actions{flex-wrap:wrap!important;gap:8px!important;min-width:0!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-toolbar :is(.btn,input,select){font:400 14px/21px var(--cw-font)!important;min-height:36px!important;height:36px!important;padding:5px 9px!important;box-sizing:border-box!important;border:1px solid #dce5f2!important;border-radius:5px!important}
 .r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-tracking-hint{margin:8px 0!important;line-height:21px!important}
 .r5-catalog-workspace[data-catalog-tab="选品反馈"]{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:12px!important}
 @media(max-width:1200px){.r5-catalog-workspace:is([data-catalog-tab="产品资料"],[data-catalog-tab="选品反馈"]) .cw-entry-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;row-gap:8px!important}}
}

/* Product-only compact review; feedback awaits user approval.
   3C computed table reference: 14px / 21px, vertical padding 10px.
   Do not inherit the reference's fixed 70px cell height. */
@layer danfeng-catalog-fluid {
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product>colgroup>col:nth-child(2){width:17%!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product>colgroup>col:nth-child(8){width:20%!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product>colgroup>col:nth-child(5){width:11%!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product>colgroup>col:nth-child(6){width:8%!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product>tbody>tr>td{min-height:0!important;height:auto!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-actions{gap:4px!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .btn{font-size:14px!important;line-height:21px!important;padding:4px 6px!important;min-height:0!important;height:auto!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-product .btn{padding:0!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-product small:empty{display:none!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-product small{margin-top:0!important;line-height:21px!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product>tbody>tr>td:nth-child(5)>small{display:inline-block!important;margin:0 0 0 4px!important;line-height:21px!important;white-space:nowrap!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-quote-badge{display:inline!important;margin:0!important;white-space:nowrap!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-plan-lines p{display:inline!important;margin:0!important;line-height:21px!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-plan-lines p:not(:last-child)::after{content:"； ";white-space:normal}
}

/* User-requested 56px product rows. SKU detail rows are deliberately excluded. */
@layer danfeng-catalog-fluid {
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product{min-width:1360px!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product>tbody>tr:not(.cw-detail-row),
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product>tbody>tr:not(.cw-detail-row)>td{height:56px!important;min-height:0!important;max-height:56px!important;box-sizing:border-box!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product>tbody>tr:not(.cw-detail-row)>td{padding:6px 10px!important;font-size:14px!important;line-height:21px!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-product .btn,
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-supplier-summary{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;max-height:42px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;line-height:21px!important;font-size:14px!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-actions{flex-wrap:nowrap!important;gap:4px!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-actions .btn{flex:none!important;white-space:nowrap!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-plan-count{display:block!important;width:100%!important;border:0!important;background:transparent!important;color:#245cc5!important;font:400 14px/21px var(--cw-font)!important;padding:0!important;margin:0!important;min-height:0!important;height:42px!important;text-align:left!important;cursor:pointer!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-plan-count>span{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:21px!important}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-plan-count:focus-visible{outline:2px solid #3478ff;outline-offset:2px}
 #content .cw-workspace[data-catalog-tab="产品资料"] .cw-fixed-product .cw-quote-badge{padding-top:0!important;padding-bottom:0!important}
}

/* Feedback-only presentation; accepted product page unchanged. */
@layer danfeng-catalog-fluid {
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback{min-width:1440px!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback>colgroup>col:nth-child(1){width:14%!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback>colgroup>col:nth-child(2){width:14%!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback>colgroup>col:nth-child(3){width:8%!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback>colgroup>col:nth-child(4){width:8%!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback>colgroup>col:nth-child(5){width:30%!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback>colgroup>col:nth-child(6){width:10%!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback>colgroup>col:nth-child(7){width:16%!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback>tbody>tr,
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback>tbody>tr>td{height:56px!important;max-height:56px!important;min-height:0!important;box-sizing:border-box!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback>tbody>tr>td{padding:6px 10px!important;font-size:14px!important;line-height:21px!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback .btn{font-size:14px!important;line-height:21px!important;padding:4px 6px!important;min-height:0!important;height:auto!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback .cw-actions{flex-wrap:nowrap!important;gap:4px!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback .cw-actions .btn{flex:none!important;white-space:nowrap!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback :is(.cw-feedback-summary,.cw-feedback-progress,.cw-feedback-reason){display:block!important;width:100%!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;color:#245cc5!important;font:400 14px/21px var(--cw-font)!important;min-height:0!important;max-height:42px!important;text-align:left!important;cursor:pointer!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback .r5-feedback-product .btn,
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback .cw-feedback-summary{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;max-height:42px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;padding:0!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback .cw-feedback-state{display:flex!important;gap:8px!important;white-space:nowrap!important;line-height:21px!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback .cw-feedback-state strong{font-weight:500!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback .cw-feedback-overdue{color:#be123c!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback .cw-feedback-dates{display:flex!important;justify-content:space-between!important;gap:8px!important;white-space:nowrap!important;line-height:21px!important;color:#52657c!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback .cw-feedback-reason>span{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;height:21px!important}
 #content .cw-workspace[data-catalog-tab="选品反馈"] .cw-fixed-feedback :is(.cw-feedback-summary,.cw-feedback-progress,.cw-feedback-reason):focus-visible{outline:2px solid #3478ff;outline-offset:2px}
}
