.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show>.nav-link {
  color: white !important;
  background: #007bff !important;
  font-weight: bold !important;
}

table.dataTable tbody td {
  white-space: nowrap !important;
  font-size: 15px !important;
}

#tbl_productos thead th {
  white-space: nowrap !important;
}

.addNewRecord {
  background-color: #198754 !important;
  color: white !important;
}

.addFiltros {
  background-color: #b96e05 !important;
  color: white !important;
}

.buttons-excel {
  background-color: #0d6efd !important;
  color: white !important;
}

.buttons-print {
  background-color: #ffc107 !important;
  color: white !important;
}

.dt-button {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

#tbl_productos tbody tr td {
  padding: 3px !important;
}

.transparentbar {
  background-repeat: no-repeat;
  cursor: pointer;
  outline: none;
  border: none;
  box-shadow: none;
  background-image: none;
  background-color: transparent;

}

.btn-check:focus+.btn-primary,
.btn-primary:focus {
  color: #fff;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.transparentbar:hover {
  color: #fff;
  background-color: transparent !important;
  border-color: transparent !important;
}


div.dataTables_wrapper {
  width: 100%;
  margin: 0 auto;
}

.card-gray {
  border: 1px solid gray;
}

.card-header {
  border-bottom: 1px solid gray;
}

#tbl_productos_mas_vendidos tbody tr td,
#tbl_productos_poco_stock tbody tr td {
  padding: 3px !important;
}

.small-box {
  border: 1px solid gray !important;
}

.card-header {
  padding: 0.4rem 1.25rem !important;
}

.form-control,
select {
  border: 1px solid gray !important;
}

.input-group>.input-group-append>.btn,
.input-group>.input-group-append>.input-group-text,
.input-group>.input-group-prepend:first-child>.btn:not(:first-child),
.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),
.input-group>.input-group-prepend:not(:first-child)>.btn,
.input-group>.input-group-prepend:not(:first-child)>.input-group-text {
  border: 1px solid gray !important;
}

.text-wrap {
  white-space: normal;
}

.width-150 {
  width: 200px;
}

.width-200 {
  width: 300px;
}

.width-300 {
  width: 400px;
}

#tblIngresos table.dataTable tbody th,
table.dataTable tbody td {
  padding: 5px 10px;
}

#tblIngresos_length,
#tblDevoluciones_length,
#tblGastos_length {
  display: none;
}

.btn-toolbar {
  width: 140px !important;
  justify-content: end !important;
}

.fs-7 {
  font-size: 10px !important;
}

/* .dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  padding: 1px 1px !important;
} */

/* .ui-autocomplete, .ui-autocomplete-input {
  z-index:10000;
} */



.modal-fullscreen {
  width: 100vw;
  max-width: none;
  height: 100%;
  margin: 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {

  background: none !important;
  border: none !important;

}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: none !important;
  padding: 0px !important;
}


#iptPaciente {
  z-index: 1;
}

/*#tblOrdenesCompra_filter{
  display: none !important;
}
*/
.card-header:first-child {
  border-radius: 0 !important;
}

.nav-tabs.flex-column .nav-item.show .nav-link,
.nav-tabs.flex-column .nav-link.active {
  color: white !important;
  font-weight: 600 !important;
  background: #6c757d !important;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: white;
  background-color: #6c757d !important;

}

.form-group.form-group-radio-button {
  margin-bottom: 3px !important;
}

.form-control-radio-button {
  border-radius: 0 !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.my-disabled {
  background-color: rgba(236, 240, 241, 0.5);
  pointer-events: none;
}

.cursor-pointer {
  cursor: pointer;
}

@media (width < 576px) {

  /* CUSTOM WIDTHS */
  .w-xs-10 {
    width: 10% !important;
  }

  .w-xs-15 {
    width: 15% !important;
  }

  .w-xs-20 {
    width: 20% !important;
  }

  .w-xs-50 {
    width: 50% !important;
  }
}

/* SM breakpoint */
@media (min-width: 576px) {

  /* CUSTOM WIDTHS */
  .w-sm-10 {
    width: 10% !important;
  }

  .w-sm-15 {
    width: 15% !important;
  }

  .w-sm-20 {
    width: 20% !important;
  }

  .w-sm-50 {
    width: 50% !important;
  }
}

/* MD breakpoint*/
@media (min-width: 768px) {

  /* CUSTOM WIDTHS */
  .w-md-10 {
    width: 10% !important;
  }

  .w-md-15 {
    width: 15% !important;
  }

  .w-md-20 {
    width: 20% !important;
  }

  .w-md-50 {
    width: 50% !important;
  }

  .w-md-100 {
    width: 100% !important;
  }
}

/* LG breakpoint */
@media (min-width: 992px) {

  /* CUSTOM WIDTHS */
  .w-lg-10 {
    width: 10% !important;
  }

  .w-lg-15 {
    width: 15% !important;
  }

  .w-lg-20 {
    width: 20% !important;
  }

  .w-lg-25 {
    width: 25% !important;
  }

  .w-lg-50 {
    width: 50% !important;
  }

  .w-lg-100 {
    width: 100% !important;
  }
}


.dropdown-toggle:active {
  background-color: transparent;
  border: 0;
}

.dropdown-toggle:focus {
  border: 1px solid #e3e3e3;
  background-color: transparent;
}

.dropdown-toggle:hover {
  border: 1px solid #e3e3e3;
  background-color: transparent;
}

.dropdown-toggle {
  background-color: transparent !important;
}


.loading {
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: show;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.loading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));
  background: -webkit-radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.loading:not(:required):after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  -webkit-animation: spinner 150ms infinite linear;
  -moz-animation: spinner 150ms infinite linear;
  -ms-animation: spinner 150ms infinite linear;
  -o-animation: spinner 150ms infinite linear;
  animation: spinner 150ms infinite linear;
  border-radius: 0.5em;
  -webkit-box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
  box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
}

/* Animation */

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-moz-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-o-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}


.fieldset {
  margin-top: 20px;
  /* height:100px; */
  width: 100%;
  border: 2px solid gray;
}

.titulo-fieldset {
  background-color: #D0D0D0;
  position: absolute;
  top: -7px;
  left: 10px;
  border-radius: 15px;
  padding: 0 10px;
}

.swal2-container {
  z-index: 999999;
}

/* .ui-autocomplete { z-index:2147483647; } */

.myFont {
  font-size: 13px;
}

.select2-container--default .select2-selection--single {
  border: 1px solid gray !important;
  padding: 7px 5px;
  height: calc(1.85rem + 2px);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #444;
  line-height: 22px !important;
}

.select2-container {
  font-size: 14px !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* Aumenta la altura del contenedor del toggle */
.toggle {
  height: 25px !important;
  /* Ajusta este valor a lo que necesites */
}

/* Ajusta la altura del grupo interno para que coincida */
.toggle-group {
  height: 100% !important;
}

/* Opcional: centra el texto verticalmente */
.toggle.btn {
  padding-top: 6px;
  /* Ajusta según la altura final */
  line-height: normal;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding: 0 .280rem .120rem;
  margin-bottom: -.360rem;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid gray !important;
  min-height: 20px !important;
}

.select2-container--default .select2-purple .select2-selection--multiple .select2-selection__choice,
.select2-purple .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: gray !important;
  border-color: gray !important;
}

.input-container {
  position: relative;
  width: 320px;
  margin: 20px;
}

.input-field {
  width: 100%;
  padding: 16px 12px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: white;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-field:focus {
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.input-label {
  position: absolute;
  top: 16px;
  left: 12px;
  font-size: 15px;
  color: #888;
  pointer-events: none;
  background-color: white;
  transition: all 0.2s ease-out;
  padding: 0 4px;
}

.input-field:focus~.input-label,
.input-field:not(:placeholder-shown)~.input-label {
  top: -8px;
  left: 10px;
  font-size: 14px;
  color: #4285f4;
}

.no-caret::after {
  display: none !important;
}