.after-history{margin-top:18px}.after-history>summary{padding:16px;cursor:pointer}
.after-sources h3{margin:0 0 18px;font-size:20px}
.after-source-list{margin-top:16px}.after-source-group{border:1px solid var(--line,#dce3e8);border-radius:10px;margin-bottom:12px}
.after-source-group>summary{padding:12px;cursor:pointer;background:#f3f8f7;border-radius:10px}
.after-source-group>summary .after-source-date{float:right}
.after-source-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border-top:1px solid #e6ecef;line-height:1.8}
.after-source-item>div{min-width:0;overflow-wrap:anywhere}.after-source-item>button{flex-shrink:0}
.after-source-available{color:#087f79;font-weight:500}
.after-card-heading{display:flex;justify-content:space-between;gap:16px;margin-bottom:6px}
.after-source-reference{font-size:12px;color:var(--muted,#697b86);margin-bottom:12px}
#after-selected{display:grid;gap:10px}#after-selected input[readonly]{background:#f5f8f9}
#after-total{color:#087f79}.after-sources .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.order-entry-section .field-hint.after-history-hint,.order-entry-section .after-target-picker .field-hint{display:block}
.sales-entry-pane:has(#after-customer) .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.sales-entry-pane .field:has(#after-customer){grid-column:1/-1;order:-1}
.sales-entry-pane:has(#after-customer) .summary-row{margin-top:12px}
.after-source-badge{display:inline-flex;align-items:center;font-size:11px;line-height:18px;border-radius:4px;padding:1px 5px;background:#edf3f7;color:#506675;vertical-align:baseline}
.after-source-badge.historical{background:#e8f5ef;color:#087f79}
.after-record-reference{font-size:12px;color:var(--muted,#697b86);overflow-wrap:anywhere}
.after-inventory-reference{font-size:12px;color:#087f79;margin:4px 0;overflow-wrap:anywhere}
.after-history-hint{margin-bottom:10px;line-height:1.5}
.after-target-status{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff7e7;color:#936217;border:1px solid #efdfbd;border-radius:6px;padding:8px 10px;font-size:12px;line-height:1.5}
.after-target-status .button{flex-shrink:0}.after-target-picker select{width:100%;min-width:0}
.after-save-pending{background:#fff7e7;color:#936217;line-height:1.6}
.after-target-summary{grid-column:1/-1;display:grid;gap:6px;background:#f0f8f6;border:1px solid #d5e6e1;border-radius:6px;padding:10px 12px;min-width:0;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
.after-target-summary>strong{color:#087f79}.after-target-summary .field{margin:0}.after-target-explanation,.after-target-summary>small{color:var(--muted,#697b86);font-size:12px}.after-target-actions{display:flex;gap:16px;flex-wrap:wrap}.after-target-actions .link-button,.after-target-blocked>.link-button{justify-self:start;font-size:12px}.after-target-blocked{background:#fff7e7;border-color:#efdfbd;color:#936217}.after-target-blocked>strong{color:inherit}

@media screen and (min-width:1001px){
 .after-sources h3{font-size:18px;margin-bottom:10px}
 .after-source-list{margin-top:10px}
 .after-source-group{margin-bottom:8px}
 .after-source-group>summary{padding:8px 10px}
 .after-source-item{padding:9px 10px;gap:10px;line-height:1.5}
 .after-source-reference{margin-bottom:8px}
 .after-history{margin-top:12px}.after-history>summary{padding:10px 12px}
 .after-sources .form-grid{gap:8px 10px}
 .after-target-summary{padding:8px 10px;gap:4px}
}
