.commerce-columns{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.commerce-columns .panel{min-width:0}
.commerce-actions{margin-top:4px}
.commerce-actions>a{padding:5px 4px;white-space:nowrap}
.commerce-compact{margin:4px 0 4px 13px;padding:0}
.commerce-compact li{margin:2px 0}
.commerce td details>summary{cursor:pointer}
.commerce-form{display:grid;gap:8px;min-width:0}
.commerce-form .table-wrap{margin-top:4px}
.commerce-form .fields>div{min-width:0}
.commerce-form .toolbar{margin:0}
.commerce-form .field>b,.commerce-form label{font-size:.85rem}
.commerce-entry-lines{display:grid;gap:6px;margin:5px 0}
.commerce-line{display:grid;grid-template-columns:minmax(0,1fr) 110px auto;align-items:end;gap:6px 8px;padding:6px 8px;background:#f6fafc;border:1px solid var(--line);border-radius:7px}
.commerce-line label{display:block;margin-bottom:2px}
.commerce-payment{grid-template-columns:minmax(0,1fr) 95px minmax(0,1fr)}
.commerce-payment>div:nth-child(4){grid-column:span 2}
.commerce-payment:has([data-payment-card-extra]:not([hidden]))>div:nth-child(4){grid-column:span 2}
.commerce-payment:has([data-payment-card-extra]:not([hidden]))>button{grid-column:1/-1}
.commerce-payment>button{justify-self:end}
.commerce-commission-origins{border:1px solid var(--line,#dbe4ee);border-radius:8px;padding:8px;margin:6px 0;display:grid;gap:4px}
.commerce-payment>.commerce-receipt-routing{grid-column:1/-1;display:grid;gap:4px;border-top:1px solid var(--line,#dbe4ee);padding-top:4px}
.commerce-receipt-routing>.actions>div{min-width:140px}
.commerce-receipt-routing>.actions{align-items:end}
.commerce-receipt-routing [data-routing-status]:empty,.commerce-receipt-routing .actions:has(>[data-routing-apply][hidden]){display:none}
.commerce-splits{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:6px;border-top:1px solid var(--line,#dbe4ee);padding-top:6px}
.commerce-splits label,.commerce-shared-card label{display:grid;gap:3px;align-content:start}
.commerce-shared-card{border:1px solid var(--line,#dbe4ee);border-radius:8px;padding:8px}
.commerce-shared-card>[data-shared-quote-lines]:not([hidden]){display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:6px}
dialog:has([data-commerce-form="shared-mixed"]){width:min(740px,calc(100% - 24px))}
.commerce-mixed-section{border-inline-start:3px solid #b4d0df;padding-inline-start:8px}
.commerce-debt-current,.commerce-debt-due{margin-top:6px}
.commerce-debt-due summary{font-size:.84rem;color:var(--blue);cursor:pointer}
.commerce-debt-due .fields{margin-top:5px}
.commerce-policy-row .fields{margin-bottom:5px}
.commerce-shared-card label.commerce-policy-stack{display:inline-flex;align-items:center;gap:6px}
.commerce-policy-stack input{width:auto;min-height:auto}
.commerce-pricing{margin:4px 0;min-width:13rem;border-inline-start:2px solid #b4d0df;padding-inline-start:6px}
.commerce-pricing dl{margin:0;font-size:.84rem;max-width:24rem}
.commerce-pricing dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.commerce-pricing dd{margin:0}
.commerce-pricing dl>div:last-child{font-weight:650}
.commerce-shared-price+.commerce-shared-price{margin-top:5px}
.commerce-shared-card [data-shared-condition]{margin:5px 0;padding:4px 6px;border-inline-start:2px solid #b4d0df}
.commerce-credit{border:1px solid var(--line);border-radius:8px;padding:5px 8px 8px;margin:0 0 7px}
.commerce-credit legend{font-size:.85rem;font-weight:650;color:var(--blue)}
.commerce-total{color:var(--blue);font-size:.9rem;font-weight:650}
.commerce-qty{width:65px}
.commerce-fulfillment-callout{background:#eaf5fa;border-color:#bfd8e5;border-inline-start:3px solid var(--blue)}
.commerce-fulfillment-callout .panel-header{margin-bottom:0}
.commerce .commerce-quote-context,.commerce .commerce-debt-context{background:#eaf5fa}
.commerce .commerce-quote-context td:first-child,.commerce .commerce-debt-context td:first-child{box-shadow:inset 3px 0 #3985ac}
.commerce-fulfillment-info{border-radius:7px;border:1px solid var(--line);padding:6px 8px;background:#f5fafc;color:var(--blue);font-weight:620}
.commerce-fulfillment-checks{margin-top:6px}
.commerce-fulfillment-checks label{display:inline-flex;align-items:center;gap:6px;min-height:28px}
.commerce-fulfillment-checks input{min-height:auto;width:auto;margin:0}
.commerce-fulfillment-group{min-width:0;border:1px solid var(--line);border-radius:8px;padding:5px 9px 7px;margin:0}
.commerce-fulfillment-group legend{font-weight:650;padding-inline:4px}
.commerce-fulfillment-group .sub{margin:4px 0}
.commerce-fulfillment-pick{display:inline-flex;align-items:center;gap:6px;min-height:30px}
.commerce-fulfillment-pick input{min-height:auto;width:auto;margin:0}
.commerce-fulfillment-extra summary{cursor:pointer;font-size:.85em}
@media(max-width:760px){.commerce-columns{grid-template-columns:1fr}}
@media(max-width:430px){
  .commerce-line{grid-template-columns:minmax(0,1fr) 90px}
  .commerce-line>button{grid-column:1/-1;justify-self:start}
  .commerce-payment{grid-template-columns:minmax(0,1fr) 90px}
  .commerce-payment>div:nth-child(3),.commerce-payment>div:nth-child(4){grid-column:1/-1}
  .commerce-payment:has([data-payment-card-extra]:not([hidden]))>div:nth-child(4){grid-column:1/-1}
}
