.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

.content-wrapper .navbar {
  z-index: auto;
}

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}

.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

.help-icon {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px; 
}

.custom-switcher {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  background-color: #ccc;
  border-radius: 20px;
  cursor: pointer;
  margin: 0 10px;
}

.custom-switcher input[type="radio"] {
  display: none;
}

.custom-switcher .switch-slider {
  position: absolute;
  top: 0px;
  left: 2px;
  width: 32px;
  height: 30px;
  background-color: #696cff;
  border-radius: 50%;
  transition: 0.4s;
}

.custom-switcher input#switcher_prov:checked ~ .switch-slider {
  left: 1px;
}

.custom-switcher input#switcher_pers:checked ~ .switch-slider {
  left: 28px;
}

#switcher_prov:checked + .switcher-label-prov,
#switcher_pers:checked + .switcher-label-pers {
    color: #696cff;
}

#switcher_prov:not(:checked) + .switcher-label-prov,
#switcher_pers:not(:checked) + .switcher-label-pers {
    color: #999;
}

.switcher-label {
    font-size: 16px;
    cursor: pointer;
}

.spin {
  width: 350px;
  height: 350px;
  margin-top: 10%;
}

@media (max-width: 576px) {
  .custom-switcher {
    margin-left: 10%;
  }
  .spin {
    width: 300px;
    height: 300px;
    margin-top: 50%;
  }
  .col-6, .col-2, .col-4, .col-5, .col-8 {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
}

.select2-container--default .select2-selection--single {
  position: relative;
  height: calc(1.9em + .75rem + 2px) !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.4rem !important;
  padding: .375rem .75rem;
  font-size: 1.1rem;
  color: #999 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  position: absolute !important;
  top: 50% !important;
  right: 20px !important;
  transform: translateY(-50%) !important;
  height: auto !important;
  width: auto !important;
  color: #999 !important;
}

.btn-ayuda {
  border: none;
  background-color: white;
  color: #696cff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 3px 3px 8px #000000a7;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-ayuda i{
  font-size: 2rem;

}

.btn-agregar {
  border: none;
  background-color: #696cff;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-agregar i{
  font-size: 1.5rem;
}

.btn-carrito {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 40px;
  right: 40px;
  background-color: #696cff;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 24px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-carrito:hover {
  background-color: #696cff;
  text-decoration: none;
}

.btn-carrito i {
  font-size: 2rem; /* Tamaño del ícono */
  color: white;
}

#chip-container {
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  border: 1px solid #ced4da;
  border-radius: .25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  background-color: #007bff;
  color: white;
  padding: 0 10px;
  margin: 5px;
  border-radius: 16px;
}

.chip .close {
  padding-left: 10px;
  color: white;
  cursor: pointer;
}

#chip-input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 100px;
  padding: 5px;
}

body.dark-mode {
  background-color: #232333;
  color: #ffffff;
}

body.dark-mode .navbar {
  background-color: #2b2c40;
  color: #ffffff;
}

body.dark-mode .btn {
  background-color: #696cff;
  color: #ffffff;
}

body.dark-mode .card {
  background-color: #2b2c40;
  color: #ffffff;
}

body.dark-mode .card-title {
  color: #ffffff;
}


body.dark-mode .bg-menu-theme {
  background-color: #2b2c40;
  color: #ffffff;
}

html.dark-mode .bg-white,
body.dark-mode .bg-white {
  background-color: #2b2c40 !important;
  color: #ffffff !important;
}

body.dark-mode .select2-container--default{
  background-color: #2c2c2e;
  color: #ffffff;
}

body.dark-mode .bg-menu-theme .menu-inner > .menu-item.active > .menu-link.active{
  background-color: #696cff;
  color: #ffffff;
}

body.dark-mode .bg-menu-theme .menu-inner > .menu-item.active > .menu-link{
  background-color: #696cff;
  color: #ffffff;
}

body.dark-mode .bg-menu-theme .menu-text{
  color: #ffffff;
}

body.dark-mode .bg-menu-theme .menu-inner .menu-icon, .text-truncate {
  color: #ffffff;
}

body.dark-mode .bg-menu-theme .menu-inner .text-truncate {
  color: #ffffff;
}

body.dark-mode .layout-navbar {
  background-color: #2b2c40 !important;
  color: #ffffff;
}

body.dark-mode .bg-menu-theme .menu-item.active > .menu-link:not(.menu-toggle) {
  background-color: #696cff25;
  color: #ffffff;
}

body.dark-mode .select2-container--default .select2-selection--single {
  background-color: #2b2c40; /* Mismo fondo que los inputs */
  color: #ffffff;
}

body.dark-mode input, textarea, select, label, .form-control .form-control-lg {
  background-color: #2b2c40; /* Mismo fondo que los inputs */
  color: #ffffff;
}

body.dark-mode select {
  color: #ffffff;
}

body.dark-mode input {
  color: #ffffff;
}

body.dark-mode .offcanvas{
  background-color: #2b2c40;
}

body.dark-mode .select2-dropdown {
  background-color: #2b2c40; /* Fondo del dropdown */
  color: #ffffff;
}

body.dark-mode .select2-results__option--highlighted {
  background-color: #696cff; 
  color: #ffffff; 
}

body.dark-mode .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #ffffff;
}

body.dark-mode .select2-container--classic
  .select2-selection--single
  .select2-selection__rendered {
  color: #ffffff;
}

body.dark-mode h1 {
  color: #ffffff;
}
body.dark-mode h2 {
  color: #ffffff;
}
body.dark-mode h3 {
  color: #ffffff;
}
body.dark-mode h4 {
  color: #ffffff;
}
body.dark-mode h5 {
  color: #ffffff;
}
body.dark-mode h6 {
  color: #ffffff;
}

body.dark-mode th {
  color: #ffffff;
}

body.dark-mode .kanban-item {
  background-color: #232333;
  color: #ffffff;
}

body.dark-mode table.dataTable tbody tr:nth-child(odd) td {
  --bs-table-color-type: #fff;
  --bs-table-bg-type: #2b2c40;
}

body.dark-mode table.dataTable tbody tr:nth-child(even) td {
  --bs-table-color-type: #fff;
  --bs-table-bg-type: #3e405e ;
}

html.dark-mode .modal-content,
body.dark-mode .modal-content{
  background-color: #2b2c40 !important;
  color: #ffffff !important;
  border-color: #3e405e !important;
}

html.dark-mode .modal-header,
body.dark-mode .modal-header{
  background-color: #2b2c40 !important;
  color: #ffffff !important;
  border-bottom-color: #3e405e !important;
}

html.dark-mode .modal-body,
body.dark-mode .modal-body{
  background-color: #2b2c40 !important;
  color: #ffffff !important;
}

html.dark-mode .modal-footer,
body.dark-mode .modal-footer{
  background-color: #2b2c40 !important;
  color: #ffffff !important;
  border-top-color: #3e405e !important;
}

html.dark-mode .bg-light,
body.dark-mode .bg-light{
  background-color: #2b2c40 !important;
  color: #ffffff !important;
}

html.dark-mode label,
body.dark-mode label{
  background-color: transparent !important;
  color: #ffffff !important;
}

html.dark-mode textarea,
body.dark-mode textarea{
  background-color: #2b2c40 !important;
  color: #ffffff !important;
  border-color: #3e405e !important;
}

html.dark-mode .modal-title,
body.dark-mode .modal-title {
  color: #ffffff !important;
}

body.dark-mode .swal-modal {
  background-color: #232333;
}

.swal-title,
.swal-text {
    color: #000000;
}

/* Dark mode */
body.dark-mode .swal-title,
body.dark-mode .swal-text {
    color: #ffffff;
}

body.dark-mode .dropdown-menu{
  background-color: #2b2c40;
  color: #ffffff;
}
body.dark-mode .dropdown-item{
  color: #ffffff;
}

html.dark-mode #back,
body.dark-mode #back{
  background-color: #232333 !important;
  color: #ffffff !important;
}

/* Asegurar que todos los elementos dentro de modales se actualicen */
html.dark-mode .modal .form-control,
html.dark-mode .modal .form-select,
html.dark-mode .modal input,
html.dark-mode .modal textarea,
html.dark-mode .modal select,
body.dark-mode .modal .form-control,
body.dark-mode .modal .form-select,
body.dark-mode .modal input,
body.dark-mode .modal textarea,
body.dark-mode .modal select {
  background-color: #2b2c40 !important;
  border-color: #3e405e !important;
  color: #ffffff !important;
}

html.dark-mode .modal .input-group-text,
body.dark-mode .modal .input-group-text {
  background-color: #2b2c40 !important;
  border-color: #3e405e !important;
  color: #ffffff !important;
}

html.dark-mode .modal .table,
body.dark-mode .modal .table {
  color: #ffffff !important;
}

html.dark-mode .modal .table th,
html.dark-mode .modal .table td,
body.dark-mode .modal .table th,
body.dark-mode .modal .table td {
  border-color: #3e405e !important;
  color: #ffffff !important;
}

.icon-color{
  color: white;
}

body {
  background-color: #ffffff;
  color: #000000;
}

.navbar,
.card,
.bg-menu-theme,
.bg-white {
  background-color: #f5f5f5;
  color: #000000;
}

.btn {
  background-color: #696cff;
  color: #ffffff;
}

.select2-container--default {
  background-color: #ffffff;
  color: #000000;
}

.bg-menu-theme .menu-inner > .menu-item.active > .menu-link {
  background-color: #696cff;
  color: #ffffff;
}

.bg-menu-theme .menu-inner > .menu-item.active > .menu-link .menu-icon {
  color: #000000;
}

.bg-menu-theme .menu-inner > .menu-item.active > .menu-link .text-truncate {
  color: #000000;
}

.bg-menu-theme .menu-text,
.bg-menu-theme .menu-inner .menu-icon,
.text-truncate {
  color: #000000;
}

input, select, .select2-container--default .select2-selection--single {
  background-color: #f5f5f5; /* Mismo fondo que los inputs */
}

.select2-dropdown {
  background-color: #f5f5f5; /* Fondo del dropdown */
}

.select2-results__option--highlighted {
  background-color: #696cff; 
  color: #fff; 
}

input, textarea, select, label, .form-control .form-control-lg{
  background-color: #f5f5f5; /* Mismo fondo que los inputs */
  color: #000000;
}
#username{
  color: #000000;
}

.bg-menu-theme .menu-inner .menu-icon, .text-truncate {
  color: #000000;
}

.bg-menu-theme .menu-inner .text-truncate {
  color: #000000;
}

.bg-menu-theme .menu-text{
  color: #000000;
}

.bg-menu-theme .menu-item.active > .menu-link:not(.menu-toggle) {
  color: #ffffff;
  background-color: #696cff;
}

h1, h2, h3, h4 {
  color: #000000;
}

#mdlcarga {
  z-index: 9999 !important;
}

.skeleton {
  display: inline-block;
  height: 1em;
  width: 3em;
  background: linear-gradient(90deg, #eee 25%, #dfdfdf 50%, #eee 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.7s infinite linear;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}