#divLoading {
	position: fixed;
	top: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(254,254,255,.95);
	z-index: 999999999999;
	display: none;
}

#divLoading img {
	width: 55px;
	height: 55px;
}

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


[data-letters]:before {
  content:attr(data-letters);
  display:inline-block;
  font-size:1em;
  width:2.5em;
  height:2.5em;
  line-height:2.5em;
  text-align:center;
  border-radius:50%;
  background: rgba(46, 211, 198, 0.9);
  vertical-align:middle;
  margin-right:1em;
  color:white;
  }

  .product {
  position: relative;
  width: 3.375rem;
  height: 3.375rem;
  cursor: pointer;
}


.product img {
  width: 100%;
  height: 100%;
}
.product .product-initial {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: #8592a3;
  font-weight: 700;
}
.product.product-online:after, .product.product-offline:after, .product.product-away:after, .product.product-busy:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 100%;
  box-shadow: 0 0 0 2px #fff;
}
.product.product-online:after {
  background-color: #71dd37;
}
.product.product-offline:after {
  background-color: #8592a3;
}
.product.product-away:after {
  background-color: #ffab00;
}
.product.product-busy:after {
  background-color: #ff3e1d;
}

/*select2*/


.select2-container {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: inline-block;
  margin: 0;
  position: relative;
  vertical-align: middle;
}

.select2-container .select2-selection--single {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  cursor: pointer;
  display: block;
  height: 35px;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  display: block;
  padding-left: 8px;
  padding-right: 20px;
  padding-top: 2px;
  overflow: hidden;
  -o-text-overflow: ellipsis;
     text-overflow: ellipsis;
  white-space: nowrap;
}

.select2-container .select2-selection--single .select2-selection__clear {
  position: relative;
}

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  padding-right: 8px;
  padding-left: 20px;
}

.select2-container .select2-selection--multiple {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  cursor: pointer;
  display: block;
  min-height: 32px;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
  display: inline-block;
  overflow: hidden;
  padding-left: 8px;
  -o-text-overflow: ellipsis;
     text-overflow: ellipsis;
  white-space: nowrap;
}

.select2-container .select2-search--inline {
  float: left;
}

.select2-container .select2-search--inline .select2-search__field {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border: none;
  font-size: 100%;
  margin-top: 5px;
  padding: 0;
}

.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.select2-dropdown {
  background-color: white;
  border: 2px solid #ced4da;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: block;
  position: absolute;
  left: -100000px;
  width: 100%;
  z-index: 1051;
}

.select2-results {
  display: block;
}

.select2-results__options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.select2-results__option {
  padding: 6px;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}

.select2-results__option[aria-selected] {
  cursor: pointer;
}

.select2-container--open .select2-dropdown {
  left: 0;
}

.select2-container--open .select2-dropdown--above {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.select2-container--open .select2-dropdown--below {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.select2-search--dropdown {
  display: block;
  padding: 4px;
}

.select2-search--dropdown .select2-search__field {
  padding: 4px;
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.select2-search--dropdown.select2-search--hide {
  display: none;
}

.select2-close-mask {
  border: 0;
  margin: 0;
  padding: 0;
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  min-height: 100%;
  min-width: 100%;
  height: auto;
  width: auto;
  opacity: 0;
  z-index: 99;
  background-color: #fff;
  filter: alpha(opacity=0);
}

.select2-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 2px solid #ced4da;
  border-radius: 4px;
}

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

.select2-container--default .select2-selection--single .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #999;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 30px;
  position: absolute;
  top: 1px;
  right: 1px;
  width: 20px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #888 transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  height: 0;
  left: 50%;
  margin-left: -4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 0;
}

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
  float: left;
}

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  left: 1px;
  right: auto;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #eee;
  cursor: default;
}

.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
  display: none;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #888 transparent;
  border-width: 0 4px 5px 4px;
}

.select2-container--default .select2-selection--multiple {
  background-color: white;
  border: 2px solid #ced4da;
  border-radius: 4px;
  cursor: text;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  list-style: none;
  margin: 0;
  padding: 0 5px;
  width: 100%;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
  list-style: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color: #999;
  margin-top: 5px;
  float: left;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  margin-top: 5px;
  margin-right: 10px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  background-color: #e4e4e4;
  border: 1px solid #ced4da;
  border-radius: 2px;
  cursor: default;
  float: left;
  margin-right: 5px;
  margin-top: 5px;
  padding: 0 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  -webkit-box-ordinal-group: 2;
      -ms-flex-order: 1;
          order: 1;
  color: #999;
  cursor: pointer;
  display: inline-block;
  font-weight: bold;
  margin-left: 2px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #333;
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
  float: right;
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  margin-left: 5px;
  margin-right: auto;
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  margin-left: 2px;
  margin-right: auto;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #2ed3c6;
  outline: 0;
}

.select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: #eee;
  cursor: default;
}

.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
  display: none;
}

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #aaa;
}

.select2-container--default .select2-search--inline .select2-search__field {
  background: transparent;
  border: none;
  outline: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-appearance: textfield;
}

.select2-container--default .select2-results > .select2-results__options {
  max-height: 200px;
  overflow-y: auto;
}

.select2-container--default .select2-results__option[role=group] {
  padding: 0;
}

.select2-container--default .select2-results__option[aria-disabled=true] {
  color: #999;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #ddd;
}

.select2-container--default .select2-results__option .select2-results__option {
  padding-left: 1em;
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
  padding-left: 0;
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -1em;
  padding-left: 2em;
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -2em;
  padding-left: 3em;
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -3em;
  padding-left: 4em;
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -4em;
  padding-left: 5em;
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -5em;
  padding-left: 6em;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #2ed3c6;
  color: white;
}

.select2-container--default .select2-results__group {
  cursor: default;
  display: block;
  padding: 6px;
}

/* Estilo para resaltar campos incompletos */
.input-incompleto {
    border: 1px solid red;
}

/* Estilos personalizados para inputs habilitados */
.custom-input {
    border: none;
    background: transparent;
}

/* Estilos personalizados para inputs deshabilitados */
.custom-input[disabled] {
    background-color: #e9ecef; 
    border: none; 
}


.invisible-column {
    display: none;
}



.fecha-column,
.referencia-column {
    display: none;
    white-space: nowrap;
}


.offcanvas-form-sm{width:430px!important}.offcanvas .form-label{font-size:.78rem;font-weight:700;text-transform:uppercase;color:#5d6d7e;margin-bottom:.45rem;letter-spacing:.4px}.offcanvas .input-group-text{background:#fff;border-right:0;color:#6c7a91}.offcanvas .form-control,.offcanvas .form-select{border-left:0;min-height:42px}.offcanvas .input-group .form-control:focus,.offcanvas .input-group .form-select:focus{box-shadow:none}.offcanvas .input-group:focus-within .input-group-text,.offcanvas .input-group:focus-within .form-control,.offcanvas .input-group:focus-within .form-select{border-color:#696cff}.offcanvas-divider{display:flex;align-items:center;text-align:center;margin:1rem 0 1.25rem;color:#7a869a;font-size:.78rem;font-weight:700;text-transform:uppercase}.offcanvas-divider::before,.offcanvas-divider::after{content:"";flex:1;border-bottom:1px solid #e6e8f0}.offcanvas-divider:not(:empty)::before{margin-right:.75rem}.offcanvas-divider:not(:empty)::after{margin-left:.75rem}.offcanvas-footer-actions{position:sticky;bottom:0;background:#fff;padding-top:1rem}.table .btn-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center}.profile-dropdown-menu{min-width:260px}.profile-trigger{text-decoration:none;color:inherit}.sede-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border:1px solid #d9deea;border-radius:1rem;background:#fff;box-shadow:0 0.125rem 0.5rem rgba(67,89,113,.08);margin-bottom:.8rem}.sede-card.active{border-color:#71dd37;background:#f3fff1}.sede-card-logo{display:flex;align-items:center;gap:.9rem}.sede-card-logo img{max-width:48px;max-height:36px;object-fit:contain}.connection-ok{border-left:4px solid #71dd37}.connection-bad{border-left:4px solid #ff3e1d}.dark-mode-custom body,.dark-mode-custom .layout-page,.dark-mode-custom .content-wrapper,.dark-mode-custom .bg-navbar-theme,.dark-mode-custom .bg-menu-theme,.dark-mode-custom .card,.dark-mode-custom .offcanvas,.dark-mode-custom .dropdown-menu{background:#1f2333!important;color:#e7eaf3!important}.dark-mode-custom .menu-link,.dark-mode-custom .text-muted,.dark-mode-custom .fw-semibold,.dark-mode-custom .table,.dark-mode-custom .form-label,.dark-mode-custom .dropdown-item{color:#e7eaf3!important}.dark-mode-custom .table>thead,.dark-mode-custom .table td,.dark-mode-custom .table th{border-color:#3b4257!important}.dark-mode-custom .form-control,.dark-mode-custom .form-select,.dark-mode-custom .input-group-text{background:#2b3145!important;color:#fff!important;border-color:#4b5470!important}.dark-mode-custom .content-footer,.dark-mode-custom .navbar-detached,.dark-mode-custom .sede-card{background:#1f2333!important;color:#e7eaf3!important}.dark-mode-custom .sede-card.active{background:#203b2c!important;border-color:#71dd37}.dark-mode-custom .offcanvas-footer-actions{background:#1f2333!important}@media (max-width:576px){.offcanvas-form-sm{width:100%!important}}


.darkmode-switch-wrap{padding:.35rem .75rem;border:1px solid rgba(105,108,255,.18);border-radius:999px;background:#fff}.darkmode-switch-wrap i{font-size:1.1rem;color:#696cff}.profile-dropdown-menu{min-width:280px}.sede-card{display:flex;align-items:center;justify-content:space-between;border:1px solid #e7e7ef;border-radius:14px;padding:1rem 1.1rem;margin-bottom:.85rem}.sede-card.active{border-color:#71dd37;background:#f3fff1}.sede-card-logo{display:flex;align-items:center;gap:.9rem}.dark-mode-custom .darkmode-switch-wrap{background:#2b2c40;border-color:#4b4d63}.dark-mode-custom .sede-card{background:#2b2c40;border-color:#4b4d63}.dark-mode-custom .sede-card.active{background:#22362a;border-color:#71dd37}

/* Estilos para fotos en el home */
.home-foto {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e7e7ef;
    flex-shrink: 0;
}

.home-foto-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e7e7ef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8592a3;
    font-size: 14px;
    flex-shrink: 0;
}

.home-foto-container {
    position: relative;
    display: inline-block;
}

.home-foto-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #696cff;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Estilos para tabla-foto (compatibilidad con tablas existentes) */
.tabla-foto {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e7e7ef;
}

.tabla-foto-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e7e7ef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8592a3;
    font-size: 16px;
}

/* Modo oscuro */
.dark-mode-custom .home-foto,
.dark-mode-custom .tabla-foto {
    border-color: #4b4d63;
}

.dark-mode-custom .home-foto-placeholder,
.dark-mode-custom .tabla-foto-placeholder {
    background: #2b2c40;
    border-color: #4b4d63;
    color: #a1acb8;
}
