/* Only the desktop client search component; its controls keep their own handlers. */
client-search-form .nw-clients-filter-card {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 24px;
  border: 1px solid #dce3eb;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 49, 77, .04);
}
client-search-form .nw-clients-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
}
client-search-form .nw-clients-filter-field {
  min-width: 0;
  width: 100%;
}
client-search-form .nw-clients-filter-field > *:not(input):not(select):not(label):not(.loading),
client-search-form .nw-clients-filter-field .btn-group {
  display: block;
  width: 100% !important;
  min-width: 0;
}
client-search-form .nw-clients-filter-card .nw-clients-filter-field label {
  display: block;
  height: 18px;
  margin: 0 0 7px !important;
  padding: 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-align: left;
  color: #8b959f;
}
client-search-form .nw-clients-filter-field input.w-control,
client-search-form .nw-clients-filter-field select.w-control,
client-search-form .nw-clients-filter-field .dropdown-button,
client-search-form .nw-clients-filter-field .nw-business__input {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid #cdd7e3 !important;
  border-radius: 4px !important;
  background: #fff;
  box-shadow: none;
  color: #333;
  font-size: 14px;
  line-height: 40px;
}
client-search-form .nw-clients-filter-field .nw-business__input { padding-right: 34px !important; }
client-search-form .nw-clients-filter-field .nw-business__hint:empty,
client-search-form .nw-clients-filter-field .nw-business__suggestion:empty { display: none; }
client-search-form .nw-clients-filter-field .dropdown-text {
  display: block;
  overflow: hidden;
  padding-right: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
client-search-form .nw-clients-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}
client-search-form .nw-clients-filter-checks {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}
client-search-form .nw-clients-filter-checks .agreement-checkbox,
client-search-form .nw-clients-filter-checks .w-checkbox,
client-search-form .nw-clients-filter-checks .telegram-filter {
  flex: 0 0 auto;
  margin: 0 !important;
  white-space: nowrap;
}
client-search-form .nw-clients-filter-checks label {
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333;
}
client-search-form .nw-clients-filter-checks .telegram-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 24px;
}
client-search-form .nw-clients-filter-checks .telegram-filter input { width: 18px; height: 18px; margin: 0; }
client-search-form .nw-clients-filter-checks .w-checkbox label { margin-bottom: 0; }
client-search-form .nw-clients-filter-footer > .clear {
  flex: 0 0 auto;
  height: 42px;
  margin: 0 0 0 auto !important;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  client-search-form .nw-clients-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  client-search-form .nw-clients-filter-footer { flex-wrap: wrap; }
  client-search-form .nw-clients-filter-checks { flex-wrap: wrap; gap: 16px 24px; }
}
@media (max-width: 600px) {
  client-search-form .nw-clients-filter-card { padding: 16px; }
  client-search-form .nw-clients-filter-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Keep the existing Angular search binding, focus and manager access rules. */
client-search-form .nw-client-manager-search .btn-group {
  position: relative;
  height: 42px;
}
client-search-form .nw-client-manager-search .search-input {
  box-sizing: border-box;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  width: 100% !important;
  height: 46px !important;
  padding: 0 13px !important;
  margin: 0 !important;
  border: 1px solid #cdd7e3 !important;
  border-bottom-color: #e7edf3 !important;
  border-radius: 5px 5px 0 0 !important;
  background: #fff !important;
  color: #333;
  font: 14px Roboto, Arial, sans-serif;
  z-index: 1002;
}
client-search-form .nw-client-manager-search .search-input:focus {
  border-color: #48a9ef !important;
  box-shadow: inset 0 0 0 1px #48a9ef;
}
client-search-form .nw-client-manager-search .search-input[hidden] {
  display: none !important;
}
client-search-form .nw-client-manager-search .dropdown-menu {
  box-sizing: border-box;
  top: calc(100% + 50px) !important;
  left: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-height: 260px;
  margin: 0 !important;
  border: 1px solid #cdd7e3;
  border-top: 0;
  border-radius: 0 0 5px 5px !important;
  background: #fff;
  box-shadow: 0 6px 16px rgba(31, 49, 77, .12);
  z-index: 1001;
}
client-search-form .nw-client-manager-search .dropdown-text[hidden] {
  display: block !important;
}
