/* Delivery search palette (Cmd/Ctrl+K) */
.ds-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 24px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}
.ds-overlay.is-open { display: flex; }
.ds-panel {
  width: min(720px, 100%);
  max-height: min(70vh, 640px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ds-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 8px;
  border-bottom: 1px solid #e2e8f0;
}
.ds-header i { color: #64748b; }
.ds-input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 16px;
  color: #0f172a;
  background: transparent;
}
.ds-kbd {
  font-size: 11px;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 6px;
}
.ds-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.ds-chip {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.ds-chip.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.ds-results {
  overflow: auto;
  flex: 1;
  padding: 6px 0;
}
.ds-empty, .ds-hint {
  padding: 24px 16px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}
.ds-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.ds-row:hover, .ds-row.is-active {
  background: #f0fdfa;
}
.ds-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 6px;
  padding: 4px 6px;
  margin-top: 2px;
}
.ds-badge--pending { background: #f1f5f9; color: #475569; }
.ds-badge--in_progress { background: #dbeafe; color: #1d4ed8; }
.ds-badge--completed,
.ds-badge--delivered_to_point,
.ds-badge--collected_by_customer { background: #dcfce7; color: #15803d; }
.ds-badge--exception_discrepancy { background: #fee2e2; color: #b91c1c; }
.ds-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}
.ds-sub {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}
.ds-meta {
  color: #475569;
  font-size: 12px;
  margin-top: 4px;
}
.ds-aside {
  text-align: right;
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}
.ds-aside .ds-proof { color: #0f766e; margin-left: 4px; }
.ds-detail {
  border-top: 1px solid #e2e8f0;
  max-height: 40%;
  overflow: auto;
  padding: 12px 16px;
  background: #f8fafc;
  display: none;
}
.ds-detail.is-open { display: block; }
.ds-detail h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #0f172a;
}
.ds-detail ul {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 12px;
  color: #334155;
}
.ds-header-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ds-header-btn:hover { background: #f8fafc; }
.ps-action-btn--search span { margin-left: 4px; }
