.client-directory-panel .martha-customer-search {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
}

.martha-customer-search label {
  display: grid;
  gap: 6px;
  color: var(--martha-ref-foreground, #333);
  font-size: 13px;
  font-weight: 700;
}

.martha-customer-search-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--martha-ref-border, #d8d2c7);
  border-radius: 10px;
  background: var(--martha-ref-card, #fff);
  color: var(--martha-ref-foreground, #282722);
  font: inherit;
}

.martha-customer-search-input:focus-visible,
.martha-customer-search-more:focus-visible,
.martha-customer-candidate-review button:focus-visible {
  outline: 3px solid var(--martha-ref-accent, #ba8b37);
  outline-offset: 2px;
}

.martha-customer-search-status,
.martha-customer-search-empty,
.martha-customer-search-error,
.martha-customer-candidate-review > p {
  margin: 0;
  color: var(--martha-ref-muted-foreground, #68645d);
  font-size: 12px;
  line-height: 1.5;
}

.martha-customer-search-results {
  display: grid;
  gap: 8px;
  padding-top: 3px;
}

.martha-customer-search-results[hidden],
.martha-customer-candidate-review[hidden] {
  display: none;
}

.martha-customer-search-results .client-record-card,
.martha-customer-candidate-review .client-record-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.martha-customer-search-results .client-record-main small,
.martha-customer-candidate-review .client-record-main small {
  overflow-wrap: anywhere;
  white-space: normal;
}

.martha-customer-search-more {
  justify-self: start;
}

.martha-customer-candidate-review {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--martha-ref-border, #d8d2c7);
  border-radius: 12px;
  background: var(--martha-ref-card, #fffaf1);
}

.martha-customer-candidate-review .client-record-list {
  max-height: 240px;
  overflow: auto;
}

.martha-customer-candidate-actions {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 600px) {
  .martha-customer-search-results .client-record-card,
  .martha-customer-candidate-review .client-record-card {
    padding: 10px;
  }
}
