/**
 * =========================================================================================
 * pvtarif-text-search.css
 *
 * Styles for the text search panel.
 * =========================================================================================
 */

#appTextSearch {
  font-family: helvetica, sans-serif;
  position: relative; /* This is the crucial fix */
}

#appTextSearch #textSearchtopToolBar2 {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px;
  align-items: center;
}

#appTextSearch #textSearchd3js {
}

#appTextSearch #textSearchleftColumn {
  flex: 1;
  min-width: 300px;
  position: relative; /* Crucial for positioning the info panel */
}

/* Autocomplete input styling */
/* Override the .form-control from autocomplete.css to align with the panel's style */
#appTextSearch .form-control {
  /* Modern styling to match other panels */
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 8px 12px;
  border: 1px solid #c2c9d6;
  border-radius: 8px;
  min-height: 40px;
}

/* Year selector block styling */
#appTextSearch #textSearchblocInputYear {
  display: flex;
  align-items: center;
  gap: 8px;
}

#appTextSearch #textSearchyearfSelect {
  /* Reset appearance to allow custom styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Modern styling to match other panels */
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 8px 40px 8px 12px; /* Right padding for arrow */
  border: 1px solid #c2c9d6;
  border-radius: 8px;
  background-color: #fff;
  min-height: 40px;
  box-sizing: border-box;
  cursor: pointer;

  /* Custom dropdown arrow */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%235e636e' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
}