.headerUpdate{
  background: #3c3f42;
  color: #FFF;
}

.headerRegister, .header-primary{
  background: #007bff;
  color: #FFF;
}

.required{
  color: red;
  font-size: 13pt;
  font-weight: bold;
}

.tile .tile-footer {
  border-top: 1px solid #ddd;
  padding: 20px 0 0 0;
  margin-top: 10px;
}
/******************************************/
/* Mueve los submenús a la derecha */
.nav-treeview {
  margin-left: 15px; /* o padding-left, según tu diseño */
}
/* Primer nivel de submenú */
.nav-sidebar .nav-treeview {
  padding-left: 20px;
}

/* Segundo nivel (sub del submenú) */
.nav-sidebar .nav-treeview .nav-treeview {
  padding-left: 25px;
}
/********************************************/
/* Aumentar tamaño de fuente y ancho del input de búsqueda */
/* Asegurarse de que el contenedor del campo de búsqueda también tenga suficiente espacio */
.dataTables_filter {
  width: 100%; /* Asegúrate de que el contenedor sea lo suficientemente ancho */
}

.dataTables_filter input {
  font-size: 13px; /* Tamaño de la fuente */
  width: 300px !important; /* Ancho del input */
  /* padding: 10px;  Padding para que sea más grande */
  border-radius: 8px;
  border: 2px solid #ccc;
  background-color: #f5f5f5;
  transition: border-color 0.3s ease;
}

/* Cambiar el borde cuando el input tiene foco */
.dataTables_filter input:focus {
  border-color: #007bff; /* Color de borde al hacer foco */
  outline: none;
}
/************************************************/
/* Separación entre el select y los botones */
div.dataTables_wrapper .dataTables_length {
  margin-bottom: 0.5rem;
}

/* Reduce el tamaño de fuente y padding en la tabla */
table.dataTable {
  font-size: 15; /* o 13px, ajusta a gusto */
}

table.dataTable tbody td,
table.dataTable thead th {
  padding: 0.4rem 0.5rem; /* menos espacio interno */
}

/* También reduce botones
div.dataTables_wrapper .dt-buttons .btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
} */
/*******************************************************************/
/* LOADIN DE CARGA POR ACCION DE GUARDADO, EDICION, DELETE ETC. */
/*estilo loading*/
#divLoading{
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background: blue;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(254,254,255, .65);
  z-index: 9999;
  display: none;
}
#divLoading img{
  width: 50px;
  height: 50%;
}
/***********************************************************************/
/* MODIFICA EL ESTILO DEL CHECKBOX DE LOS PERMISOS POR ROL DE USUARIO*/
/*
.toggle-flip input[type="checkbox"] {
  display: none;
}

.toggle-flip input[type="checkbox"] + .flip-indecator {
  position: relative;
  width: 60px;
  height: 30px;
  display: block;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-perspective: 90px;
          perspective: 90px;
}

.toggle-flip input[type="checkbox"] + .flip-indecator:before, .toggle-flip input[type="checkbox"] + .flip-indecator:after {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  width: 100%;
  line-height: 30px;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  text-align: center;
  border-radius: 3px;
  -webkit-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.toggle-flip input[type="checkbox"] + .flip-indecator:before {
  content: attr(data-toggle-off);
  background-color: #ddd;
}

.toggle-flip input[type="checkbox"] + .flip-indecator:after {
  content: attr(data-toggle-on);
  background-color: #009688;
  color: #fff;
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
}

.toggle-flip input[type="checkbox"]:checked + .flip-indecator:before {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.toggle-flip input[type="checkbox"]:checked + .flip-indecator:after {
  -webkit-transform: rotateY(0deg);
          transform: rotateY(0deg);
}

.toggle-flip input[type="checkbox"]:disabled + .flip-indecator {
  cursor: not-allowed !important;
  color: #ccc;
}
*/
/********************************************************************************/
/*MODIFICA EL TAMAÑO DE LOS INPUT ASI COMO EL DEL SELECT*/

/*input.form-control,
select.form-select {
  height: 30px;              /* menos alto que el default 38-40px 
  padding-top: 4px;          /* reduce espacio arriba 
  padding-bottom: 4px;       /* reduce espacio abajo 
 /* font-size: 0.9rem;          opcional, un poco más pequeño 
  line-height: 1.2;          /* ajusta la altura de línea 
  border-radius: 0.25rem;    /* opcional, menos redondeado 
}*/
input.form-control:focus,
textarea.form-control:focus,
select.form-select:focus {
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.4) !important;
  border-color: #80bdff !important;
  outline: none !important;
  transition: box-shadow 0.3s ease;
}



/* Asegura que el selectpicker use todo el ancho disponible */
.bootstrap-select 
{
  width: 100% !important;
}

/* Estilo visual para que se vea como un select de Bootstrap 5 */
.bootstrap-select .dropdown-toggle {
  background-color: #fff !important;          /* Fondo blanco para que parezca un input estándar */
  border: 1px solid #ced4da !important;       /* Borde gris claro, igual al estilo de Bootstrap */
  border-radius: 0.375rem !important;         /* Bordes redondeados (6px aprox), igual que inputs Bootstrap */
  height: calc(2.25rem + 2px) !important;*/ /* Altura original (aprox 38px), comentada para usar la siguiente */
  /* height: 30px !important;                     /* Altura reducida para que el select sea menos alto y más compacto */
  color: #212529 !important;                   /* Color de texto oscuro estándar Bootstrap */
  font-size: 1rem;                             /* Tamaño de fuente base (16px) */
  padding: 0.375rem 0.75rem;                   /* Espaciado interno: 6px arriba/abajo y 12px izquierda/derecha */
  line-height: 1.5;                            /* Altura de línea para buena legibilidad */
}


/* Estilo cuando el selectpicker está enfocado */
.bootstrap-select .dropdown-toggle:focus {
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.4) !important;
  border-color: #80bdff !important;
  outline: none !important;
}

/***************************************************************/
/*MODIFICA EL DISEÑO DE LA TABLA CUANDO FIJO LA ULTIMA COLUMNA*/
/*.dataTables_wrapper {
  overflow: auto;
}

table.dataTable,
table.dataTable th,
table.dataTable td {
    box-sizing: border-box;
}

.dataTables_scrollHeadInner,
.dataTables_scrollHeadInner table {
    width: 100% !important;
}*/
/***************************************************************/
/* FONDO DE LOGIN */
  body.login-page {
    background: linear-gradient(to bottom, #0d6efd 50%, #ffffff 50%);
    height: 100vh;
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .login-box 
  {
    margin-top: -100px; /* Ajusta este valor según el tamaño de tu formulario */
  }

  /*.login-box {
    z-index: 2;
    width: 100%;
    max-width: 400px;
  }*/

  .login-card-body {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

/* DISEÑO LOGO Y TEXTO EN LOGIN  */
  .login-logo a {
    color: #0d6efd;
    font-weight: bold;
    font-size: 24px;
    text-decoration: none;
  }

  .login-logo a {
    color: white !important;
    font-weight: bold;
    font-size: 24px;
    text-decoration: none;
  }

  .login-logo {
    text-align: center;
    margin-bottom: 1rem;
  }

  .logo-img {
    max-width: 110px;
    height: auto;
  }

  .login-logo a {
    color: white;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  }

  @media (max-width: 576px) {
    .logo-img {
      max-width: 90px;
    }

    .login-logo a {
      font-size: 18px;
    }
  }

/***************************************************************/
/* FLIP DE FORMULARIO LOGIN PARA RECUPERAR CONTRASEÑA*/
  .card-container {
    perspective: 1000px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    height: 350px; /* Fijo para que no se colapse */
  }

  .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
  }

  .card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; /* Para Safari */
  }

  .card-front {
    z-index: 2;
    transform: rotateY(0deg);
  }

  .card-back {
    transform: rotateY(180deg);
  }

  .card-container.flipped .card-inner {
    transform: rotateY(180deg);
  }
/**********************************************************************/
/*ENCABEZADOS DE LOS HEADERS DE LOS CARDS POR EJEMPLO DATOS GENERALES EN PERFIL*/
.card-header-sm {
    padding: 0.4rem 1rem !important; /* reduce altura */
    font-size: 0.95rem;
    line-height: 1.2;
  }

/************************************************************************/
/*evita seleccion en fondo al abrir modal o alerta*/
.no-select {
    user-select: none !important;
}
/**************************************************************************/
/***Titulos Modal Info***/
.seccion-titulo {
  font-size: 1rem;
  font-weight: 600;
  color: #0d6efd; /* Azul Bootstrap */
  background-color: #f0f8ff;
  padding: 6px 12px;
  border-left: 4px solid #0d6efd;
  /*margin-top: 5px;*/
  margin-bottom: 5px;
  border-radius: 4px;
}

.card-header.seccion-titulo {
  padding: 6px 12px !important; /* para asegurarte que el padding sea el que definiste */
}

/*.card-header {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}*/

.card-body {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/****************************DASHBOAR VISITAS CRM**********************************************/
.clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/**************************************************************************/