.orders-toolbar{flex-wrap:wrap}.orders-toolbar select{max-width:220px}.orders-dates{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px}.orders-dates label{display:flex;align-items:center;gap:8px}.orders-dates input{height:34px;padding:4px 8px;border:1px solid var(--input-border,#8792a2);border-radius:4px}.order-product{display:flex;align-items:center;gap:10px;max-width:300px}.order-product img{width:38px;height:38px;object-fit:contain;border:1px solid #e2e6ed;border-radius:4px}.order-product .product-name{display:block;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.orders-ledger .tabs{flex-wrap:wrap}.orders-ledger .tabs .tab{white-space:nowrap}.orders-ledger .tabs .tab span{font-variant-numeric:tabular-nums}.sync-health{margin-bottom:16px}.sync-health .panel-body{display:flex;align-items:center;flex-wrap:wrap;gap:16px}.sync-health strong{color:#202b3c}@media(max-width:760px){.orders-dates input{height:44px}.orders-toolbar select{max-width:100%}.orders-toolbar>*{flex:1 1 180px}.orders-ledger .tab{min-height:44px}}
/* Confirmed commerce workspace: shared table and read-only trace dialog. */
.commerce-shell .product-thumb{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;color:var(--ink-muted)}
.commerce-shell .product-thumb img{width:28px;height:28px;object-fit:contain}
.commerce-shell .table-wrap th:last-child,.commerce-shell .table-wrap td:last-child{white-space:nowrap;min-width:92px}
.commerce-shell .report-date-note{margin:0;line-height:1.6}
.commerce-shell .commerce-foot{align-items:center;gap:16px}
.commerce-detail-dialog .commerce-detail-grid{gap:16px 20px;margin:14px 0}
.commerce-detail-dialog .commerce-detail-grid>div{padding:14px 0}
.commerce-detail-dialog .full-domain{overflow-wrap:anywhere;white-space:normal}
.commerce-evidence{margin:16px 0;color:var(--ink-secondary);font-size:12px}
.commerce-evidence summary{cursor:pointer;min-height:32px;padding:8px 0;font-weight:500}
.commerce-evidence summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.commerce-line-evidence .table-wrap{max-width:100%;overflow:auto}
.commerce-detail-dialog .dialog-footer{flex-wrap:wrap}
@media(max-width:700px){.commerce-shell .commerce-foot{align-items:flex-start}.commerce-detail-dialog .commerce-detail-grid{grid-template-columns:minmax(0,1fr);gap:8px}.commerce-detail-dialog .commerce-detail-grid>div{padding:10px 0}}

.commerce-shell .table-wrap th:last-child,.commerce-shell .table-wrap td:last-child{position:sticky;right:0;background:var(--surface,#fff);z-index:1}.commerce-shell .table-wrap th:last-child{background:#f8f9fc;z-index:2}.commerce-shell .table-wrap tr:hover td:last-child{background:#f7f9fc}
.sync-health .panel-body h3{flex:0 0 100%;font-size:14px;margin:0}.sync-health .panel-body>.section-note{flex:0 0 100%;margin:0}.sync-health .table-wrap+.panel-body{border-top:1px solid var(--line)}

/* Product confirmation and Item confirmation remain separate in the same compact cell. */
.order-match-state{display:inline-flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:12px;line-height:1.45;vertical-align:middle;white-space:nowrap}
.order-match-secondary{font-size:12px;color:var(--ink-muted,#626f82);font-weight:400}
.order-match-secondary.success{color:var(--success,#067647)}
.order-match-secondary.warning{color:var(--warning,#8a4b08)}
.order-match-facts{margin:0;display:grid;gap:5px;font-size:12px;line-height:1.55}
.order-match-facts>div{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px}
.order-match-facts dt{margin:0;color:var(--ink-muted,#626f82);font-weight:400;white-space:nowrap}
.order-match-facts dd{margin:0;white-space:normal;overflow-wrap:anywhere;color:var(--ink-secondary,#465369)}
.order-match-explanation{max-width:290px;min-width:160px;white-space:normal!important}
.order-match-explanation p{margin:8px 0 0;font-size:12px;line-height:1.6;white-space:normal}
.order-evidence-title{max-width:220px;white-space:normal!important;overflow-wrap:anywhere}
/* Read-only matching cards keep the selected SKU and specification together. */
.order-evidence-list{display:grid;gap:22px;margin:18px 0;min-width:0;font-size:12px}
.order-evidence-card{min-width:0;padding:20px;border:1px solid var(--line,#e2e6ed);border-radius:var(--radius,4px);background:var(--surface,#fff)}
.order-evidence-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.order-evidence-product{display:flex;align-items:flex-start;gap:12px;min-width:0}
.order-evidence-product img{flex:0 0 44px;width:44px;height:44px;object-fit:contain;border:1px solid var(--line-soft,#edf0f4);border-radius:4px}
.order-evidence-product h3,.order-evidence-product h4{margin:0;font-size:12px;font-weight:600;line-height:1.65;white-space:normal;overflow-wrap:anywhere}
.order-evidence-heading .order-match-state{flex:0 0 auto}
.order-evidence-core,.order-evidence-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
.order-evidence-amounts{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px;padding-top:18px;border-top:1px solid var(--line-soft,#edf0f4)}
.order-evidence-core>div,.order-evidence-amounts>div{display:block;min-width:0}
.order-evidence-amounts dt{font-size:12px;font-weight:400;color:var(--ink-muted,#626f82)}
.order-evidence-amounts dd{margin:0;font-size:12px;color:var(--ink-secondary,#465369);white-space:normal;overflow-wrap:anywhere}
.order-evidence-core dt,.order-evidence-amounts dt{margin:0 0 6px;white-space:normal}
.order-evidence-core dd,.order-evidence-amounts dd{line-height:1.7}
.order-evidence-notes{display:grid;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line-soft,#edf0f4)}
.order-evidence-notes p{margin:0;font-size:12px;line-height:1.75;white-space:normal;overflow-wrap:anywhere}
.order-evidence-issue[data-tone="warning"]{color:var(--warning,#8a4b08)}
.order-evidence-source{margin-top:20px;padding-top:10px;border-top:1px solid var(--line-soft,#edf0f4)}
.order-evidence-source>summary{cursor:pointer;min-height:32px;padding:8px 0;font-size:12px;font-weight:500}
.order-evidence-source>summary:focus-visible{outline:2px solid var(--primary,#354b82);outline-offset:3px}
.order-evidence-source-facts{margin-top:16px;gap:12px}
.order-evidence-source-facts>div{grid-template-columns:120px minmax(0,1fr);gap:14px}
.order-evidence-source-facts dt{white-space:normal}
/* YY order information and operating attribution share the existing dialog width. */
.commerce-detail-section+.commerce-detail-section,.commerce-order-info+.commerce-customer-address{margin-top:28px}
.commerce-detail-section-head{margin:0 0 16px}
.commerce-detail-section-head h3,h3.commerce-detail-section-head{margin:0;font-size:14px;font-weight:600;line-height:1.6}
.commerce-order-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0}
.commerce-order-info>div{min-width:0;padding:12px 0;border-bottom:1px solid var(--line-soft,#edf0f4)}
.commerce-order-info dt{font-size:12px;font-weight:400;line-height:1.6;color:var(--ink-muted,#626f82)}
.commerce-order-info dd{margin:6px 0 0;font-size:13px;line-height:1.65;color:var(--ink-secondary,#465369);white-space:normal;overflow-wrap:anywhere}
.commerce-order-secondary{margin-top:16px}
.commerce-order-secondary>summary{cursor:pointer;min-height:32px;padding:8px 0;font-size:12px}
.commerce-order-secondary>summary:focus-visible{outline:2px solid var(--primary,#354b82);outline-offset:3px}
.commerce-order-secondary>.commerce-order-info{margin-top:16px}
@media(max-width:700px){.order-evidence-card{padding:18px}.order-evidence-heading{flex-wrap:wrap;gap:12px}.order-evidence-core,.order-evidence-amounts,.commerce-order-info{grid-template-columns:minmax(0,1fr)}.order-evidence-source-facts>div{grid-template-columns:100px minmax(0,1fr)}.commerce-detail-section+.commerce-detail-section,.commerce-order-info+.commerce-customer-address{margin-top:24px}}
