.customer-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.customer-toolbar input {
  max-width: 440px;
}
.customer-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.customer-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  line-height: 1.35;
}
.customer-card > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.customer-card > span:first-child {
  flex: 1;
}
.customer-card > span:last-child {
  flex: 0 0 auto;
  align-items: flex-end;
  text-align: right;
}
.customer-card b {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.customer-card small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.customer-card:hover {
  border-color: var(--blue);
  box-shadow: 0 5px 16px #1232;
}
.customer-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.customer-form-grid .full {
  grid-column: 1/-1;
}
.customer-form-grid textarea {
  width: 100%;
  min-height: 76px;
  padding: 12px;
  border: 1px solid #cbd8df;
  border-radius: 10px;
  font: inherit;
}
.customer-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.customer-check input {
  width: auto;
}
.customer-suggest-wrap {
  position: relative;
}
.customer-suggestions {
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  top: calc(100% + 3px);
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #b9c9d2;
  border-radius: 10px;
  box-shadow: 0 12px 28px #102b3d30;
}
.customer-suggestions button {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 10px 12px;
  border-radius: 0;
  background: #fff;
  text-align: left;
  border-bottom: 1px solid #e3eaee;
}
.customer-suggestions button:hover,
.customer-suggestions button:focus {
  background: #eef6fb;
}
.customer-suggestions small {
  display: block;
  color: #64748b;
  margin-top: 2px;
}
.selected-customer {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #e8f5ed;
  color: #185b32;
  font-size: 13px;
}
.selected-customer button {
  min-height: 30px;
  padding: 0 9px;
}
.customer-history {
  margin-top: 15px;
}
.customer-history .stats {
  margin-bottom: 12px;
}
@media (max-width: 650px) {
  .customer-form-grid {
    grid-template-columns: 1fr;
  }
  .customer-form-grid .full {
    grid-column: auto;
  }
  .customer-list {
    grid-template-columns: 1fr;
  }
  .customer-card {
    min-height: 104px;
    padding: 14px;
  }
}
