/* Live customer list search (customers.php) */
.customer-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1.5px solid #c5dceb;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fbfd 0%, #eef7fb 100%);
}

.customer-search label {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0a5f93;
}

.customer-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.customer-search input[type="search"],
.customer-search input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 40px 11px 14px;
  border: 1px solid #9ec0d2;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #1a2b36;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.customer-search input[type="search"]:focus,
.customer-search input[type="text"]:focus {
  border-color: #0a5f93;
  box-shadow: 0 0 0 3px rgba(10, 95, 147, .15);
}

/* Hide native clear on WebKit so our clear button is consistent */
.customer-search input[type="search"]::-webkit-search-decoration,
.customer-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.customer-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #dce8ef;
  color: #3d5666;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.customer-search-clear:hover {
  background: #c5d9e4;
  color: #0a5f93;
}

.customer-search.has-query .customer-search-clear {
  display: inline-flex;
}

.customer-search-meta {
  flex: 0 0 auto;
  min-height: 1.2em;
  font-size: 13px;
  color: #5b6f7b;
  font-weight: 600;
  padding-bottom: 10px;
}

.customer-search-meta strong {
  color: #0a5f93;
}

#customer-list-table tbody tr.customer-search-empty td {
  text-align: center;
  padding: 28px 16px;
  color: #5b6f7b;
  background: #f8fbfc;
}

#customer-list-table tbody tr.is-filtered-out {
  display: none !important;
}

@media (max-width: 650px) {
  .customer-search {
    padding: 10px 12px;
  }

  .customer-search-meta {
    width: 100%;
    padding-bottom: 0;
  }
}
