/**************** PRE LOADER ****************/

#contenedor_carga{
  background-color: rgba(250, 240, 245, 0.9);
  height: 100%;
  width: 100%;
  position: fixed;
  display: inline-block;
  -webkit-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
  z-index: 10000;
}

#carga{
  background:transparent url(../img/svgs/logo.gif) center no-repeat;
 
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
/*   -webkit-animation: girar 1.5s linear infinite;
  -o-animation: girar 1.5s linear infinite;
  animation: girar 1.5s linear infinite; */
}

@keyframes girar {

  from { transform: rotate(0deg);}
  to { transform: rotate(20deg);}
}


.loader--roller {
  height: 64px;
  width: 64px;
  position: relative;
  top: 40%;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  display: block;
}

.loader--roller div {
  animation: loader--roller 1.2s cubic-bezier(.5,0,.5,1) infinite;
  transform-origin: 32px 32px
}

.loader--roller div:after {
  display: block;
  position: absolute;
  border-radius: 50%;
  content: " ";
  margin: -3px 0 0 -3px;
  height: 6px;
  width: 6px
}

.loader--roller div:nth-child(1) {
  animation-delay: -.036s
}

.loader--roller div:nth-child(1):after {
  top: 50px;
  left: 50px
}

.loader--roller div:nth-child(2) {
  animation-delay: -.072s
}

.loader--roller div:nth-child(2):after {
  top: 54px;
  left: 45px
}

.loader--roller div:nth-child(3) {
  animation-delay: -.108s
}

.loader--roller div:nth-child(3):after {
  top: 57px;
  left: 39px
}

.loader--roller div:nth-child(4) {
  animation-delay: -.144s
}

.loader--roller div:nth-child(4):after {
  top: 58px;
  left: 32px
}

.loader--roller div:nth-child(5) {
  animation-delay: -.18s
}

.loader--roller div:nth-child(5):after {
  top: 57px;
  left: 25px
}

.loader--roller div:nth-child(6) {
  animation-delay: -.216s
}

.loader--roller div:nth-child(6):after {
  top: 54px;
  left: 19px
}

.loader--roller div:nth-child(7) {
  animation-delay: -.252s
}

.loader--roller div:nth-child(7):after {
  top: 50px;
  left: 14px
}

.loader--roller div:nth-child(8) {
  animation-delay: -.288s
}

.loader--roller div:nth-child(8):after {
  top: 45px;
  left: 10px
}

@keyframes loader--roller {
  0% {
      transform: rotate(0deg)
  }

  100% {
      transform: rotate(360deg)
  }
}

.perpel_loder div::after {
  background: #833cdf!important
}


#tableCalendario_info{
    display: none;
}
#tableCalendario_paginate{
    display: none;
}

/**************** GENERAL ****************/

.status_false {
    display: inline-block;
    padding: 2px 15px;
    font-size: 11px;
    font-weight: 300;
    color: #fff!important;
    background: #c82333;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    text-transform: capitalize;
    white-space: nowrap;
    min-width: 70px;
    text-align: center
}

.cursorCito{
    cursor: pointer;
}

.btnCito{
  color: #fff;
  background-color: #884FFB;
  border-color: #884FFB;
}
.btnCito:hover{
  color: #fff;
  background-color: #884FFBe6;
  border-color: #884FFBe6;
}
/**************** TABLA RESIDENTES ****************/

.accionResidentes{
    display: flex;
}

#tablaResidentes_next,
#tablaLlamadas_next {
    display: none;
}
#tablaResidentes_previous,
#tablaLlamadas_previous {
    display: none;
}

.dataTables_filter input{
    width: 350px;
    color: #000;
    font-size: 13px;
    height: 40px;
    border-radius: 20px;
    padding-left: 10px;
    border: 1px solid #2D1967;
    padding-right: 15px;
}

/**************** /FIN TABLA RESIDENTES ****************/

/**************** MODAL AGREGAR RESIDENTES ****************/

.btnExtraResidentes{
    align-items: center; 
    justify-content: flex-end; 
    font-weight: lighter; 
    color: #fff;
    font-size: 17px; 
    text-align: center; 
    border: none; 
    background-color: #884ffb;
    border-color: #884ffb;
    margin-top: -3.2%; 
    float: right;
}
.btnExtraResidentes:hover {
    color:#fff;
}

.titulos{
    font-size: 15px; 
    font-weight: lighter; 
    margin-top: 17px;
}
.titulosExtras{
    font-size: 15px; 
    font-weight: lighter;
}
.inputResidentes{
    color: black; 
    padding-left: 5px; 
    font-size: 15px; 
    width: 100%; 
    height: 30px; 
    border: 1px solid rgb(197, 197, 197); 
    border-radius: 5px;
}

.inputResidentes.inputNew{
    width: 90%;
}

.iconAdd{
    font-size: 24px;
    position: relative;
    top: 3px;
}
.btnLessEditar{
    cursor: pointer;
    font-size: 40px;
    color: rgba(202, 60, 60, 0.829);
    position: relative;
    bottom: 5px;
}

.switchEdit {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  .switchEdit input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #28a745;
  }  
  
  input:focus + .slider {
    box-shadow: 0 0 1px #28a745;
  }

  input:checked + .editCheck {
    background-color: #BA1D30;
  }

  input:focus + .editCheck {
    box-shadow: 0 0 1px #BA1D30;
  }

  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  /**************** Control Acceso ****************/
.card_height_70{
    height: calc(70% - 30px);
  }

.btnBuscarAcceso{
    align-items: center; 
    justify-content: flex-end; 
    margin-left: 5px; 
    font-weight: lighter; 
    color: #f4f6f9; 
    font-size: 17px; 
    text-align: center; 
    border: none; 
    background-color: #884ffb;
    border-color: #884ffb;
  }
.btnBuscarAcceso:hover {
    color:#fff;
}
.inputBuscadorAcceso{
    border: 1px solid rgba(0, 0, 0, 0.548);
    padding:5px 0px 3px 10px;
    width: 110%; 
    border-radius: 5px;
}

/**************** Soporte ****************/

.tituloSoporte{
  position: relative;
  bottom: 30px;
}
#tablaSoporte_next{
  display: none;
}
#tablaSoporte_previous{
  display: none;
}

.dataTables_length{
  position: relative;
  top: 10px;
}

.dataTables_length select{
  border-radius: 0.25rem;
  border: 1px solid #ced4da;
}

/**************** Ajustes ****************/

#ajustesAcceso{
  display: block;
}
#ajustesConserjeria{
  display: none;
}
#ajustesCorreo{
  display: none;
}
.deleteAcceso{
  cursor: pointer;
  color: red;
}

.inputAjustes{
  display: flex!important; 
  padding: 4px 0; 
  font-size: 15px;
  align-items: center;
}

/**************** Alarmas ****************/

.inputAlarmas{
  display: flex!important;
  font-size: 15px;
  align-items: center;
}


/**************** Perfil ****************/
.agent-contact-form-sidebar {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid #eeeeee;
}

.sidebar-widget ul {
  /* padding: 0; */
  margin: 0;
  list-style-type: none;
}

.sidebar-widget .author__contact li {
  color: #666;
  /* margin-bottom: 10px; */
  font-weight: 400;
  font-size: 15px;
}

.sidebar-widget .author__contact li span i {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #fff;
  color: #343a40;
  border-radius: 50%;
  font-size: 18px;
  margin-right: 10px;
  -webkit-transition: all .3s;
  transition: all .3s;
}


#tablaSoporte td:nth-child(2) {
  display: none;
}


/**************** DETALLE TICKETS SOPORTE ****************/

.detalleTicket .container {
  border: 2px solid #dedede;
  background-color: #f1f1f1;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0;
}

.detalleTicket .darker {
  border-color: #ccc;
  background-color: #ddd;
}
.textoDescripcion {
  color: #000;
}

.detalleTicket .container::after {
  content: "";
  clear: both;
  display: table;
}

.detalleTicket .container img {
  float: left;
  max-width: 60px;
  width: 100%;
  margin-right: 20px;
  border-radius: 50%;
}

.detalleTicket .container img.right {
  float: right;
  margin-left: 20px;
  margin-right:0;
}

.detalleTicket .time-right {
  float: right;
  color: #aaa;
}

.detalleTicket .time-left {
  float: left;
  color: #999;
}

button.close {
  padding: 0;
  cursor: pointer;
  background: 0 0;
  border: 0;
  -webkit-appearance: none;
}
.close {
  float: right;
  font-size: 21px;
  line-height: 1;
  color: #000;
  opacity: .2;
}

@media (max-width: 768px) {
  #btnInvitadosMobile,
  #btnVisitasMobile,
  #btnLlamadasMobile{
      margin-left: 0px;
      margin-bottom: -131px !important;
  }
  #btnInvitadosDesktop,
  #btnVisitasDesktop,
  #btnLlamadasDesktop{
    display: none;
  }
}

@media (min-width: 769px) {
  #btnInvitadosMobile,
  #btnVisitasMobile,
  #btnLlamadasMobile {
    display: none;
  }
  #btnInvitadosDesktop,
  #btnVisitasDesktop,
  #btnLlamadasDesktop {
    display: block;
  }
}

#tablaVisitas_length,
#tablaInvitados_length,
#tablaLlamadas_length{
  float: right;
  z-index: 9;
}
#tablaVisitas_filter,
#tablaInvitados_filter,
#tablaLlamadas_filter {
  margin-right: 165px;
}

@media (max-width: 799px) {
  #tablaInvitados_filter {
    text-align: right;
    margin-right: unset !important;
  }
  #tablaLlamadas_filter {
    text-align: right;
    margin-right: unset !important;
  }
  #tablaVisitas_filter {
    text-align: right;
    margin-right: unset !important;
  }
  #dropdown-calendar {
    padding: 9px 0px 25px 0px !important;
  }
}
@media (max-width: 630px) {
  #tablaInvitados_filter > label {
    font-size: 0px;
  }
}

@media (max-width: 768px) {
  #tablaVisitas_length{
    float: inherit !important;
    text-align: right;
  }
  #tablaInvitados_length{
    float: inherit !important;
    text-align: right;
  }
  #btnLlamadasMobile{
    margin-bottom: -120px;
  }
  #btnLlamadasDesktop{
    display: none;
  }
  #btnInvitadosMobile{
      margin-left: 0px;
      margin-bottom: -131px !important;
  }
  #btnInvitadosDesktop{
    display: none;
  }
}

@media (max-width: 991px) {
  #tablaVisitas_length, #tablaInvitados_length {
    padding-bottom: 5px;
  }
  #tablaLlamadas_length {
    padding-bottom: 15px;
  }
}
#tablaVisitas td:nth-child(1) {
  display: none;
}
.accordion-button:not(.collapsed) {
  box-shadow: none;
}
#tablaVisitas_next, #tablaInvitados_next, #tablaVisitas_previous, #tablaInvitados_previous {
  display: none;
}

@media (max-width: 1199px) {
  .responsive-image > img {
    max-height: 400px !important;
  }
}

@media (min-width: 1470px) {
  .responsive-image > img {
    max-height: 400px !important;
  }
}

/* Estilos para el botón de limpiar tarjeta NFC */
.btn-clear-nfc {
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background-color: #f8f9fa;
  border-color: #ced4da;
  color: #6c757d;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.15s ease-in-out;
  position: relative;
  z-index: 2;
}

.btn-clear-nfc:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
  color: #495057;
}

.btn-clear-nfc:focus {
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* Asegurar que el input-group funcione correctamente */
.input-group .inputResidentes {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Estilos específicos para el input-group de tarjeta NFC */
.input-group {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 34px !important;
}

.input-group .inputResidentes {
  flex: 1 !important;
  border-right: none !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  height: 100% !important;
  border-radius: 4px 0 0 4px !important;
}

.input-group .btn-clear-nfc {
  border-left: 1px solid #ced4da !important;
  margin-left: -1px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  min-width: 34px !important;
  border-radius: 0 4px 4px 0 !important;
  background-color: #f8f9fa !important;
  border-color: #ced4da !important;
  color: #6c757d !important;
}

.input-group .btn-clear-nfc:hover {
  background-color: #e9ecef !important;
  border-color: #adb5bd !important;
  color: #495057 !important;
}

/* Asegurar que el input-group mantenga la altura consistente */
.input-group .inputResidentes,
.input-group .btn-clear-nfc {
  box-sizing: border-box !important;
}

/* Asegurar que todos los campos inputResidentes tengan la misma altura */
.inputResidentes {
  height: 34px !important;
  line-height: 1.5 !important;
  padding: 0.375rem 0.75rem !important;
  box-sizing: border-box !important;
}

/* Estilos para las cajas de residentes */
.resident-card {
  background: #ffffff !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  padding: 20px !important;
  margin-bottom: 15px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
  transition: all 0.3s ease !important;
}

.resident-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
  border-color: #dee2e6 !important;
}

.resident-card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 15px !important;
  padding: 15px 20px !important;
  border-bottom: 1px solid #f1f3f4 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 8px 8px 0 0 !important;
  margin: -20px -20px 15px -20px !important;
  color: white !important;
}

.resident-card-title {
  font-weight: 600 !important;
  color: white !important;
  font-size: 16px !important;
  margin: 0 !important;
}

.resident-card-number {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.resident-card-content {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 15px !important;
}

/* Distribución específica para 5 campos: Nombre, Apellido, Correo, NFC, Eliminar */
.resident-card-content.five-fields {
  grid-template-columns: 1fr 1fr 1fr 1fr 120px !important;
}

/* Distribución específica para 4 campos: Nombre, Apellido, Correo, NFC */
.resident-card-content.four-fields {
  grid-template-columns: 1fr 1fr 1fr 1fr !important;
}

.resident-field-group {
  display: flex !important;
  flex-direction: column !important;
}

.resident-field-label {
  font-size: 12px !important;
  color: #6c757d !important;
  margin-bottom: 5px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.resident-field-input {
  width: 100% !important;
}

/* Estilos específicos para el modal de editar */
#listResidentes .resident-card {
  margin-bottom: 20px !important;
}

/* Estilos para el botón de eliminar en la tarjeta */
.resident-card .switchEdit {
  margin-top: 5px !important;
}

/* Estilos específicos para el campo Eliminar */
.resident-field-group.eliminar-field {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 60px !important;
}

.resident-field-group.eliminar-field .resident-field-label {
  margin-bottom: 8px !important;
  text-align: center !important;
}

.resident-field-group.eliminar-field i {
  font-size: 24px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.resident-field-group.eliminar-field i:hover {
  transform: scale(1.1) !important;
  color: #c82333 !important;
}

/* Estilos para tarjetas marcadas para eliminar */
.resident-card.marked-for-deletion {
  opacity: 0.7 !important;
  background: #f8f9fa !important;
  border-color: #dc3545 !important;
}

.resident-card.marked-for-deletion .resident-card-header {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .resident-card-content {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  .resident-card {
    padding: 15px !important;
  }
}

/* Estilos para el modal de selección de residentes */
.resident-selection-list {
  max-height: 400px !important;
  overflow-y: auto !important;
}

.resident-selection-item {
  display: flex !important;
  align-items: center !important;
  padding: 15px !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  margin-bottom: 10px !important;
  background: #ffffff !important;
  transition: all 0.3s ease !important;
}

.resident-selection-item:hover {
  background: #f8f9fa !important;
  border-color: #007bff !important;
}

.resident-selection-item.selected {
  background: #e3f2fd !important;
  border-color: #007bff !important;
}

.resident-selection-checkbox {
  margin-right: 15px !important;
  transform: scale(1.2) !important;
}

.resident-selection-info {
  flex: 1 !important;
}

.resident-selection-name {
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 5px !important;
}

.resident-selection-email {
  color: #666 !important;
  font-size: 0.9em !important;
}





