/* =========================================================
   EasyVote Admin Fixes
   Ajustes para pantallas de Votaciones y Propuestas
   (acotado por clases del body del admin)
   ========================================================= */

/* -------- VOTACIONES -------- */
body[class*="wpeasyvote-votaciones"] .button.button-primary,
body[class*="wpeasyvote-votaciones"] .button-primary {
  background: #2271b1 !important;
  border-color: #2271b1 !important;
  color: #fff !important;
}

body[class*="wpeasyvote-votaciones"] .button.button-primary:hover,
body[class*="wpeasyvote-votaciones"] .button-primary:hover {
  background: #135e96 !important;
  border-color: #135e96 !important;
}

body[class*="wpeasyvote-votaciones"] input[type="text"],
body[class*="wpeasyvote-votaciones"] input[type="number"],
body[class*="wpeasyvote-votaciones"] input[type="search"],
body[class*="wpeasyvote-votaciones"] select,
body[class*="wpeasyvote-votaciones"] textarea {
  padding: 4px 8px !important;
  line-height: 1.4 !important;
  min-height: auto !important;
}

/* -------- PROPUESTAS -------- */
body[class*="wpeasyvote-propuestas"] .button.button-primary,
body[class*="wpeasyvote-propuestas"] .button-primary {
  background: #2271b1 !important;
  border-color: #2271b1 !important;
  color: #fff !important;
}

body[class*="wpeasyvote-propuestas"] .button.button-primary:hover,
body[class*="wpeasyvote-propuestas"] .button-primary:hover {
  background: #135e96 !important;
  border-color: #135e96 !important;
}

body[class*="wpeasyvote-propuestas"] input[type="text"],
body[class*="wpeasyvote-propuestas"] input[type="number"],
body[class*="wpeasyvote-propuestas"] input[type="search"],
body[class*="wpeasyvote-propuestas"] select,
body[class*="wpeasyvote-propuestas"] textarea {
  padding: 4px 8px !important;
  line-height: 1.4 !important;
  min-height: auto !important;
}

/* Search box en Propuestas (si sale gigante) */
body[class*="wpeasyvote-propuestas"] .search-box input[type="search"] {
  height: auto !important;
}

/* =========================================================
   Propuestas: forzar buscador en una sola línea
   ========================================================= */

/* Propuestas: buscador en una sola línea */
body[class*="wpeasyvote-propuestas"] .wpv-search-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

body[class*="wpeasyvote-propuestas"] .wpv-search-form input[type="search"] {
  width: 240px;
  max-width: 40vw;
  margin: 0 !important;
}

body[class*="wpeasyvote-propuestas"] .wpv-search-form .button {
  margin: 0 !important;
  white-space: nowrap;
}
