html,
body {
  height: 100%;
  margin: 0px;
  padding: 0px;
}

body {
  background-image: url("/img/bodybg.png");
}

#navLogo{
  max-height: 64px;
}

.custom-input-file {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: none;
  width: 400px;
  min-height: 24px;
  height: 35px;
  display: block;
}

.custom-input-file .input-file {
  margin: 0;
  padding: 0;
  outline: 0;
  font-size: 100px;
  border: 1px solid transparent;
  opacity: 0;
  filter: alpha(opacity=0);
  position: absolute;
  right: 0px;
  top: 0px;
  cursor: pointer;
  height: 25px;
  z-index: 99999;
  display: block;
  width: 100px;
}

input.hasDatepicker {
  background: url("/img/calendar3.svg") no-repeat right 10px center;
  background-size: 14px 14px;
  padding-right: 35px; /* Deja espacio para el icono */
  cursor: pointer;
}
.ui-datepicker-trigger {
  display: none;
}

.ui-datepicker-header.ui-widget-header.ui-helper-clearfix.ui-corner-all {
  background: var(--bs-primary);
}

.ui-datepicker-header.ui-widget-header.ui-helper-clearfix {
  background: var(--bs-primary);
}
.ui-state-default.ui-state-active {
  background: var(--bs-primary);
  color: var(--bs-light);
}

.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited{
  color: var(--bs-primary);
}

/* Estilos para <select> dentro de .fg-toolbar */
.fg-toolbar select {
  width: 75px !important;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: #212529;
  background-color: #fff;
  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='1.5' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  appearance: none;
}

/* Estilos para <input> en el filtro de DataTables */
.fg-toolbar .dataTables_filter input {
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.fg-toolbar .dataTables_filter input:focus {
  border-color: var(--bs-primary);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

table.dataTable tr.odd {
  background-color: inherit !important;
}
table.dataTable tr.even {
  background-color: inherit !important;
}

/* ====== ESTILO GENERAL CHOSEN con look Bootstrap 5 ====== */

/* Contenedor principal */
.chzn-container {
  font-family: var(--bs-body-font-family, system-ui, sans-serif);
  font-size: 1rem;
  color: #212529;
}

/* SELECT visible (igual a .form-select) */
.chzn-container-single .chzn-single {
  display: flex;
  align-items: center;
  height: calc(2.25rem + 2px);
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: #fff;
  color: #212529;
  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='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  box-shadow: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Elimina el ícono de flecha antiguo */
.chzn-container-single .chzn-single div b {
  display: none;
}

/* Hover */
.chzn-container-single .chzn-single:hover {
  border-color: #b3d0ff;
}

/* Cuando el control tiene el foco (abierto) */
.chzn-container-active .chzn-single {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Dropdown */
.chzn-container .chzn-drop {
  margin-top: 0.25rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #fff;
  z-index: 1000;
}

/* Campo de búsqueda dentro del dropdown */
.chzn-container .chzn-search input {
  width: 100%;
  padding: 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 1rem;
  color: #212529;
  background-color: #fff;
}

/* Resultados */
.chzn-container .chzn-results li {
  padding: 0.375rem 0.75rem;
  color: #212529;
  font-size: 1rem;
  border-radius: 0.25rem;
}

/* Hover y selección */
.chzn-container .chzn-results li:hover,
.chzn-container .chzn-results li.highlighted {
  background-color: #0d6efd;
  color: #fff;
}

/* Quitar estilos antiguos */
.chzn-container .chzn-results li.no-results {
  color: #6c757d;
  background: transparent;
  font-style: italic;
}
