/* PO relationship readability and quick editor */
.sph-match-cell { min-width: 170px; max-width: 210px; vertical-align: middle; }
.sph-match-cell .match-meta {
  display: -webkit-box;
  max-width: 200px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  color: #526b82;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.sph-match-cell .match-meta-button { width: 100%; text-align: left; }
.sph-match-cell .match-meta-empty { font-size: 13px; line-height: 1.4; color: #7f8e9b; white-space: normal; }
.po-quick-edit-modal { width: min(620px, calc(100vw - 48px)); }
.po-quick-edit-modal form, .po-quick-edit-modal section { display: grid; gap: 18px; }
.po-quick-edit-modal section { gap: 10px; }
.po-quick-edit-modal .field-help { margin: 0; color: #667b91; font-size: 13px; line-height: 1.5; }
.po-quick-edit-modal [hidden] { display: none !important; }

/* Dashboard now keeps attention as the single operational follow-up panel. */
.dashboard-attention-grid { grid-template-columns: minmax(0, 1fr); }
.dashboard-attention-grid .attention-panel { width: 100%; }

/* Keep Delivery To readable inside the PO form at desktop and tablet widths. */
.purchase-order-lower { grid-template-columns: minmax(0, 1fr) 340px; }
.purchase-order-modal .modal-head { align-items: flex-start; gap: 24px; }
.purchase-order-modal .modal-head h2 { margin: 0 0 7px; line-height: 1.2; }
.purchase-order-modal .modal-subtitle { margin: 0; line-height: 1.5; }
.purchase-delivery-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.purchase-delivery-card .purchase-party-field,
.purchase-delivery-card .purchase-address-editor { width: 100%; }
.purchase-delivery-card textarea { min-height: 118px; }
@media (max-width: 980px) {
  .purchase-order-lower { grid-template-columns: 1fr; }
  .purchase-order-summary { max-width: none; }
}
