/* ==========================================================
   ADP EasyDNNNews Search Module
   Self-contained styles — no external Bootstrap dependency
   ========================================================== */

/* ---------- Module title — override skin h2 styles ---------- */
.ednsearch .edncf_AdvancedSearch h2.edn_module_title {
  border-bottom: none;
  font-style: normal;
  text-decoration: none;
}

/* ---------- Form layout ---------- */
.ednsearch .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ednsearch .form-row > .col,
.ednsearch .form-row > .col-auto {
  flex: 0 0 100%;
  max-width: 100%;
}

.ednsearch .form-group {
  margin-bottom: 0;
}

.ednsearch .form-group label {
  display: block;
  margin-bottom: 5px;
}

/* ---------- Form controls (inputs, selects) ---------- */
.ednsearch .form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #666;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  box-shadow: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  font-style: italic;
}

.ednsearch .form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ednsearch .form-control::placeholder {
  color: #9a9a9a;
  opacity: 1;
}

.ednsearch select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.25rem;
}

/* ---------- Search actions row ---------- */
.ednsearch .ednsearch-actions {
  text-align: right;
  padding-top: 20px;
  margin: 0;
}

/* ---------- Autocomplete dropdown (shared) ---------- */
.ednsearch .ednsearch-ac,
.ednsearch .ednsearch-multiselect {
  position: relative;
}

.ednsearch .ednsearch-ac-list {
  display: none;
  position: absolute;
  z-index: 1000;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ced4da;
  border-top: none;
  border-radius: 0 0 0.25rem 0.25rem;
  box-shadow: 0 4px 8px rgba(0,0,0,.12);
}

.ednsearch .ednsearch-ac-item {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  color: #333;
  cursor: pointer;
}

.ednsearch .ednsearch-ac-item:hover,
.ednsearch .ednsearch-ac-item--active {
  background-color: #f0f0f0;
}

/* ---------- Chip selector (multi-select) ---------- */
.ednsearch .ednsearch-chip-ui {
  position: relative;
}

.ednsearch .ednsearch-chip-input {
  margin-bottom: 0.5rem;
}

.ednsearch .ednsearch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.ednsearch .ednsearch-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.8125rem;
  background-color: transparent;
  border: 1px solid #aaa;
  border-radius: 1rem;
  white-space: nowrap;
}

.ednsearch .ednsearch-chip-label {
  line-height: 1.2;
}

.ednsearch .ednsearch-chip-x {
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

.ednsearch .ednsearch-chip-x:hover {
  opacity: 1;
}

.ednsearch .ednsearch-chips-clear {
  font-size: 0.8125rem;
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.25rem;
}

.ednsearch .ednsearch-chips-clear:hover {
  text-decoration: underline;
}

/* ---------- Month picker (date range) ---------- */
.ednsearch .ednsearch-monthpicker {
  display: flex;
  gap: 0.5rem;
}

.ednsearch .ednsearch-monthpicker select {
  flex: 1;
  min-width: 0;
}


/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .ednsearch .form-row {
    flex-direction: column;
  }
  .ednsearch .form-row > .col,
  .ednsearch .form-row > .col-auto {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
