/*
*
* Chosen for Bootstrap and Less
*
* Converted by @whitetruffle (http://www.twitter.com/whitetruffle)
* from @joeylomanto's SASS fork (http://chosen-sass-bootstrap.herokuapp.com/)
* Havest: @harvest
*
*/
/*!
 * Bootstrap v2.1.1
 *
 * Copyright 2012 Twitter, Inc
 * Licensed under the Apache License v2.0
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Designed and built with all the love in the world @twitter by @mdo and @fat.
 */

.chzn-container {
  position: relative;
  display: inline-block;
  zoom: 1;
  *display: inline;
}
.chzn-container .chzn-drop {
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
  background: #fff;
  border: 1px solid #CCC;
  position: absolute;
  top: 29px;
  left: 0;
  z-index: 1010;
  margin: 4px 0 0;
}

.chzn-container-single .chzn-single {
  margin-top: 3px !important;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding-box;
  background-clip: padding-box;
  background-color: #f6f6f6;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(50%, #f6f6f6), to(#f4f4f4));
  background-image: -webkit-linear-gradient(#ffffff, #f6f6f6 50%, #f4f4f4);
  background-image: -moz-linear-gradient(top, #ffffff, #f6f6f6 50%, #f4f4f4);
  background-image: -o-linear-gradient(#ffffff, #f6f6f6 50%, #f4f4f4);
  background-image: linear-gradient(#ffffff, #f6f6f6 50%, #f4f4f4);
  background-repeat: no-repeat;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff4f4f4', GradientType=0);
  -moz-background-clip: padding;
  background-color: #ffffff;
  border: 1px solid #CCC;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 28px;
  line-height: 29px;
  padding: 0 0 0 8px;
  color: #555555;
  text-decoration: none;
}
.chzn-container-single .chzn-single span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 26px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
}
.chzn-container-single .chzn-single abbr {
  display: block;
  position: absolute;
  right: 26px;
  top: 8px;
  width: 12px;
  height: 13px;
  font-size: 1px;
  background: url("chosen-sprite.png") right top no-repeat;
}
.chzn-container-single .chzn-single abbr:hover {
  background-position: right -11px;
}
.chzn-container-single .chzn-single div {
  position: absolute;
  right: 0;
  top: 0;
  display: block;
  height: 100%;
  width: 18px;
}
.chzn-container-single .chzn-single div b {
  background: url("chosen-sprite.png") no-repeat 0 2px;
  display: block;
  width: 100%;
  height: 100%;
}
.chzn-container-single .chzn-search {
  padding: 3px 4px;
  position: relative;
  margin: 0;
  white-space: nowrap;
  z-index: 1010;
}
.chzn-container-single .chzn-search input {
  margin: 1px 0;
  padding: 4px 20px 4px 5px;
  outline: 0;
}
.chzn-container-single .chzn-default {
  color: #999;
}
.chzn-container-single .chzn-drop {
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding-box;
  background-clip: padding-box;
  -moz-background-clip: padding;
}
.chzn-container-single.chzn-disabled .chzn-single abbr:hover {
  background-position: right top;
}
.chzn-container-single-nosearch .chzn-search input {
  position: absolute;
  left: -9000px;
}
.chzn-container-multi .chzn-choices {
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -webkit-transition: border linear 0.2s;
  -moz-transition: border linear 0.2s;
  -o-transition: border linear 0.2s;
  transition: border linear 0.2s;
  -webkit-transition: box-shadow linear 0.2s;
  -moz-transition: box-shadow linear 0.2s;
  -o-transition: box-shadow linear 0.2s;
  transition: box-shadow linear 0.2s;
  background-color: #ffffff !important;
  border: 1px solid #cccccc;
  cursor: text;
  overflow: hidden;
  height: auto !important;
  height: 1%;
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #555555;
}
.chzn-container-multi .chzn-choices li {
  float: left;
  list-style: none;
}
.chzn-container-multi .chzn-choices .search-field {
  white-space: nowrap;
  margin: 0;
  padding: 0;
}
.chzn-container-multi .chzn-choices .search-field input {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  color: #555555;
  background: transparent !important;
  border: 0 !important;
  font-family: sans-serif;
  font-size: 100%;
  height: 15px;
  padding: 5px;
  margin: 1px 0 2px;
  outline: 0;
}
.chzn-container-multi .chzn-choices .search-field .default {
  color: #999;
}
.chzn-container-multi .chzn-choices .search-choice {
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  -moz-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  background-color: #f6f6f6;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(50%, #f6f6f6), to(#f4f4f4));
  background-image: -webkit-linear-gradient(#ffffff, #f6f6f6 50%, #f4f4f4);
  background-image: -moz-linear-gradient(top, #ffffff, #f6f6f6 50%, #f4f4f4);
  background-image: -o-linear-gradient(#ffffff, #f6f6f6 50%, #f4f4f4);
  background-image: linear-gradient(#ffffff, #f6f6f6 50%, #f4f4f4);
  background-repeat: no-repeat;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff4f4f4', GradientType=0);
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding-box;
  background-clip: padding-box;
  -moz-background-clip: padding;
  color: #555555;
  border: 1px solid #999999;
  line-height: 13px;
  padding: 3px 20px 3px 5px;
  margin: 3px 0 3px 5px;
  position: relative;
  cursor: default;
}
.chzn-container-multi .chzn-choices .search-choice .search-choice-close {
  display: block;
  position: absolute;
  right: 3px;
  top: 4px;
  width: 12px;
  height: 13px;
  font-size: 1px;
  background: url("chosen-sprite.png") right top no-repeat;
}
.chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover {
  background-position: right -11px;
}
.chzn-container-multi .chzn-choices .search-choice.search-choice-disabled {
  background-color: #eeeeee;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f4f4f4), color-stop(50%, #f0f0f0), to(#e8e8e8));
  background-image: -webkit-linear-gradient(#f4f4f4, #f0f0f0 50%, #e8e8e8);
  background-image: -moz-linear-gradient(top, #f4f4f4, #f0f0f0 50%, #e8e8e8);
  background-image: -o-linear-gradient(#f4f4f4, #f0f0f0 50%, #e8e8e8);
  background-image: linear-gradient(#f4f4f4, #f0f0f0 50%, #e8e8e8);
  background-repeat: no-repeat;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff4f4f4', endColorstr='#ffe8e8e8', GradientType=0);
  color: #666;
  border: 1px solid #cccccc;
  padding-right: 5px;
}
.chzn-container-multi .chzn-choices .search-choice-focus {
  background: #d4d4d4;
}
.chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close {
  background-position: right -11px;
}
.chzn-container .chzn-results {
  margin: 0 4px 4px 0;
  max-height: 240px;
  padding: 0 0 0 4px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.chzn-container .chzn-results li {
  display: none;
  line-height: 15px;
  padding: 5px 6px;
  margin: 0;
  list-style: none;
}
.chzn-container .chzn-results li em {
  background: #feffde;
  font-style: normal;
}
.chzn-container .chzn-results .no-results {
  background: #f4f4f4;
  display: list-item;
}
.chzn-container .chzn-results .group-result {
  cursor: default;
  color: #999;
  font-weight: bold;
}
.chzn-container .chzn-results .group-option {
  padding-left: 15px;
}
.chzn-container .chzn-results .active-result {
  cursor: pointer;
  display: list-item;
}
.chzn-container .chzn-results .highlighted {
  background-color: #326dcc;
  background-image: -moz-linear-gradient(top, #3875d7, #2a62bc);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#3875d7), to(#2a62bc));
  background-image: -webkit-linear-gradient(top, #3875d7, #2a62bc);
  background-image: -o-linear-gradient(top, #3875d7, #2a62bc);
  background-image: linear-gradient(to bottom, #3875d7, #2a62bc);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3875d7', endColorstr='#ff2a62bc', GradientType=0);
  color: #fff;
}
.chzn-container .chzn-results .highlighted em {
  background: transparent;
}
.chzn-container .chzn-results-scroll {
  background: white;
  margin: 0 4px;
  position: absolute;
  text-align: center;
  width: 321px;
  /* This should by dynamic with js */

  z-index: 1;
}
.chzn-container .chzn-results-scroll span {
  display: inline-block;
  height: 17px;
  text-indent: -5000px;
  width: 9px;
}
.chzn-container .chzn-results-scroll-down {
  bottom: 0;
}
.chzn-container .chzn-results-scroll-down span {
  background: url("chosen-sprite.png") no-repeat -4px -3px;
}
.chzn-container .chzn-results-scroll-up span {
  background: url("chosen-sprite.png") no-repeat -22px -3px;
}
.chzn-container-multi .chzn-results {
  margin: 4px;
  padding: 0;
}
.chzn-container-multi .chzn-drop .result-selected {
  display: none;
}
.chzn-container-active .chzn-single {
  border: 1px solid #CCC;
}
.chzn-container-active .chzn-single .chzn-drop {
  margin-top: -29px;
}
.chzn-container-active .chzn-single-with-drop {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  border-color: #CCC;
}
.chzn-container-active .chzn-single-with-drop div {
  background: transparent;
  border-left: none;
}
.chzn-container-active .chzn-single-with-drop div b {
  background-position: -18px 1px;
}
.chzn-container-active .chzn-choices {
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  border: 1px solid rgba(82, 168, 236, 0.8);
  outline: 0;
  outline: thin dotted \9;
  /* IE6-9 */

}
.chzn-container-active .chzn-choices .search-field input {
  color: #111 !important;
}
.chzn-disabled {
  opacity: 0.005;
  filter: alpha(opacity=0.5);
  cursor: default;
}
.chzn-disabled .chzn-single {
  cursor: default;
}
.chzn-disabled .search-choice-close {
  cursor: default;
}
.chzn-rtl {
  text-align: right;
}
.chzn-rtl .chzn-single {
  padding: 0 8px 0 0;
  overflow: visible;
}
.chzn-rtl .chzn-single span {
  margin-left: 26px;
  margin-right: 0;
  direction: rtl;
}
.chzn-rtl .chzn-single div {
  left: 3px;
  right: auto;
}
.chzn-rtl .chzn-single abbr {
  left: 26px;
  right: auto;
}
.chzn-rtl .chzn-choices li {
  float: right;
}
.chzn-rtl .chzn-choices .search-field input {
  direction: rtl;
}
.chzn-rtl .chzn-choices .search-choice {
  padding: 3px 5px 3px 19px;
  margin: 3px 5px 3px 0;
}
.chzn-rtl .chzn-choices .search-choice .search-choice-close {
  left: 4px;
  right: auto;
  background-position: right top;
}
.chzn-rtl .chzn-results .group-option {
  padding-left: 0;
  padding-right: 15px;
}
.chzn-rtl .chzn-search input {
  padding: 4px 5px 4px 20px;
  direction: rtl;
}
.chzn-rtl.chzn-container-single .chzn-results {
  margin: 0 0 4px 4px;
  padding: 0 4px 0 0;
}
.chzn-rtl.chzn-container-active .chzn-single-with-drop div {
  border-right: none;
}

/* =============================================================
   OVERRIDES — Panel de Filtros (forma.php)
   Scoped a .filtro-campo para no afectar el resto del sistema
   ============================================================= */

/* ── Select simple: caja principal ── */
.filtro-campo .chzn-container {
  width: 100% !important;
  font-family: Arial, sans-serif;
  font-size: 9pt;
}
.filtro-campo .chzn-container-single .chzn-single {
  height: 34px;
  line-height: 34px;
  padding: 0 0 0 10px;
  border: 1px solid #c0d0e0;
  border-radius: 4px;
  background: #fff;
  background-image: none;
  filter: none;
  box-shadow: none;
  color: #333;
  font-size: 9pt;
  margin-top: 0 !important;
}
.filtro-campo .chzn-container-single .chzn-single:hover {
  border-color: #2e6dbf;
  box-shadow: 0 0 0 2px rgba(46,109,191,0.15);
}
/* Botón flecha: fondo gris azulado, borde izquierdo */
.filtro-campo .chzn-container-single .chzn-single div {
  width: 26px;
  background: #eef3f6;
  border-left: 1px solid #d0dce8;
  border-radius: 0 4px 4px 0;
}
/* Flecha: triángulo CSS puro — sin dependencia del sprite */
.filtro-campo .chzn-container-single .chzn-single div b {
  background: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.filtro-campo .chzn-container-single .chzn-single div b::after {
  content: '' !important;
  display: block !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 5px 4px 0 4px !important;
  border-color: #666 transparent transparent transparent !important;
}
/* Botón × deseleccionar: reposicionar para height 34px y div 26px */
.filtro-campo .chzn-container-single .chzn-single abbr {
  top: 11px;
  right: 30px;
}
/* Estado abierto */
.filtro-campo .chzn-container-single.chzn-with-drop .chzn-single {
  border-color: #2e6dbf;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 0 2px rgba(46,109,191,0.18);
  background: #fff;
  background-image: none;
  filter: none;
}
.filtro-campo .chzn-container-single.chzn-with-drop .chzn-single div {
  background: #dde8f4;
  border-left-color: #2e6dbf;
}
/* Flecha ▲ abierto: triángulo CSS invertido */
.filtro-campo .chzn-container-single.chzn-with-drop .chzn-single div b::after {
  border-width: 0 4px 5px 4px !important;
  border-color: transparent transparent #2e6dbf transparent !important;
}
.filtro-campo .chzn-container-single .chzn-default {
  color: #9aabb8;
  font-style: italic;
}

/* Reset de li.search-field (el li que contiene el input de búsqueda) —
   NO se aplica a li.search-choice para no ocultar los tags seleccionados */
.filtro-campo .chzn-choices li.search-field {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  list-style: none !important;
  list-style-image: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Multiselect general: caja de tags ── */
.filtro-campo .chzn-container-multi .chzn-choices {
  border: 1px solid #c0d0e0;
  border-radius: 4px;
  background: #fff;
  background-image: none;
  box-shadow: none;
  min-height: 34px;
  padding: 3px 6px;
}
/* Tags seleccionados */
.filtro-campo .chzn-container-multi .chzn-choices .search-choice {
  background: linear-gradient(135deg, #dde8f7, #c8daf0);
  background-image: none;
  filter: none;
  border: 1px solid #a8c0dc;
  border-radius: 12px;
  box-shadow: none;
  color: #1a3c6e;
  font-size: 7.5pt;
  font-weight: bold;
  padding: 3px 20px 3px 8px;
  margin: 2px 3px 2px 0;
  line-height: 1.5;
}
/* Input de búsqueda dentro del multiselect */
.filtro-campo .chzn-container-multi .chzn-choices .search-field input {
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: inline-block !important;
  height: 22px !important;
  min-height: 0 !important;
  width: auto !important;
  min-width: 60px !important;
  max-width: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  padding: 2px 4px !important;
  font-size: 9pt !important;
  font-family: Arial, sans-serif !important;
  color: #555 !important;
  margin: 2px 0 !important;
  line-height: normal !important;
}

/* ── Multiselect "Escalado a" ── */
#usuarioescalado_chzn {
  width: 100% !important;
}
#usuarioescalado_chzn .chzn-choices {
  border: 1px solid #2e6dbf;
  border-radius: 5px;
  background: #f7faff;
  background-image: none;
  box-shadow: 0 1px 4px rgba(46,109,191,0.12);
  min-height: 38px;
  padding: 4px 6px;
}
#usuarioescalado_chzn.chzn-container-active .chzn-choices {
  border-color: #1a3c6e;
  box-shadow: 0 0 0 2px rgba(46,109,191,0.22), inset 0 1px 1px rgba(0,0,0,0.04);
}
/* Tags azul oscuro */
#usuarioescalado_chzn .chzn-choices .search-choice {
  background: linear-gradient(135deg, #1a3c6e 0%, #2e6dbf 100%);
  /* background-image: none; */
  filter: none;
  border: none;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(26,60,110,0.22);
  color: #fff;
  font-size: 7.5pt;
  font-weight: bold;
  padding: 3px 22px 3px 10px;
  margin: 2px 3px 2px 0;
  line-height: 1.6;
}
/* × en tags: sprite invertido a blanco */
#usuarioescalado_chzn .chzn-choices .search-choice .search-choice-close {
  top: 5px;
  right: 5px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
#usuarioescalado_chzn .chzn-choices .search-choice .search-choice-close:hover {
  opacity: 1;
}
/* Input de búsqueda dentro de Escalado a */
#usuarioescalado_chzn .chzn-choices .search-field input {
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: inline-block !important;
  height: 22px !important;
  min-height: 0 !important;
  width: auto !important;
  min-width: 80px !important;
  max-width: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  padding: 2px 4px !important;
  font-size: 9pt !important;
  font-family: Arial, sans-serif !important;
  color: #333 !important;
  margin: 2px 0 !important;
  line-height: normal !important;
}

/* ── Dropdown compartido ── */
.filtro-campo .chzn-drop {
  z-index: 9999;
  border: 1px solid #2e6dbf;
  border-top: none;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  background: #fff;
  margin: 0;
}
.filtro-campo .chzn-search {
  padding: 6px 8px;
  background: #eef3f6;
  border-bottom: 1px solid #d0e0f0;
}
.filtro-campo .chzn-search input {
  border: 1px solid #c0d0e0;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 8.5pt;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #333;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  height: auto !important;
}
.filtro-campo .chzn-results li {
  padding: 7px 12px;
  font-size: 8.5pt;
  color: #333;
  line-height: 1.4;
}
.filtro-campo .chzn-results li.highlighted {
  background-color: #1a3c6e;
  background-image: linear-gradient(to bottom, #2e6dbf, #1a3c6e);
  filter: none;
  color: #fff;
}
.filtro-campo .chzn-results li.result-selected {
  background: #eef3f6;
  color: #2e6dbf;
  font-weight: bold;
}
