body {
  background: url(images/wipol.jpg) center center cover no-repeat fixed;
}

/* --- Footer sin uso --- */
/*#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
/*height: auto;
  background: #424242;
}*/

/* --- Fin Footer sin uso --- */

/* FIN css para el menu con submenu boostrap */

/* Custom footer CSS
-------------------------------------------------- */

.footertext {
  color: #ffffff;
}

/* Scroll para tablas con boostrap */
.header-fixed {
  width: 536px;
}

.header-fixed>thead,
.header-fixed>tbody,
.header-fixed>thead>tr,
.header-fixed>tbody>tr,
.header-fixed>thead>tr>th,
.header-fixed>tbody>tr>td {
  display: block;
}

.header-fixed>tbody>tr:after,
.header-fixed>thead>tr:after {
  content: " ";
  display: block;
  visibility: hidden;
  clear: both;
}

.header-fixed>tbody {
  overflow-y: auto;
  height: 150px;
}

.header-fixed>tbody>tr>td,
.header-fixed>thead>tr>th {
  width: 20%;
  float: left;
}

/* Fin Scrool */

/* Input Buscar en las tablas */
.input_search {
  background-image: url("images/searchicon.png");
  /* Add a search icon to input */
  background-position: 10px 12px;
  /* Position the search icon */
  background-repeat: no-repeat;
  /* Do not repeat the icon image */
  width: 100%;
  /* Full-width */
  font-size: 16px;
  /* Increase font-size */
  padding: 12px 20px 12px 40px;
  /* Add some padding */
  border: 1px solid #ddd;
  /* Add a grey border */
  margin-bottom: 12px;
  /* Add some space below the input */
}

/* Fin Buscar en Las Tablas*/

/* Scroll para tablas con boostrap */
.header-fixed-lg {
  width: 100%;
}

.header-fixed-lg>thead,
.header-fixed-lg>tbody,
.header-fixed-lg>thead>tr,
.header-fixed-lg>tbody>tr,
.header-fixed-lg>thead>tr>th,
.header-fixed-lg>tbody>tr>td {
  display: block;
}

.header-fixed-lg>tbody>tr:after,
.header-fixed-lg>thead>tr:after {
  content: " ";
  display: block;
  visibility: hidden;
  clear: both;
}

.header-fixed-lg>tbody {
  overflow-y: auto;
  height: 150px;
}

.header-fixed-lg>tbody>tr>td,
.header-fixed-lg>thead>tr>th {
  width: 15%;
  float: left;
}

/* Fin Scrool */

/* new side bar 1 */
.nsb {
  position: fixed;
  top: 0;
  left: -210px;
  height: 100vh;
  z-index: 1000;
  background-color: #ffffff;
  width: 200px;
  overflow-y: auto;
  box-shadow: 5px 5px 5px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.nsb.active {
  left: 0;
  transition: all 0.5s ease;
}

/* ############################ */
/* estilos scrollbar */
.nsb::-webkit-scrollbar {
  width: 8px;
  background-color: #005f73;
}

.nsb::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: #0a9396;
}

.nsb::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #94d2bd;
}

/* estilos scrollbar */
/* ############################ */

.box-links-nsb {
  margin: 50px 0px;
}

.btn-nsb {
  /* flex */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-right: 6px;
  padding-top: 6px;
}

.btn-close-nsb {
  background-color: #005f73;
  color: #ee9b00;
}

.nombre-empresa-nsb {
  margin-left: 5px;
  color: #94d2bd;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  border-color: #94d2bd;
  border-radius: 5px;
  border: 1px solid;
  padding: 5px 5px;
}

.link-nsb {
  padding: 0 7px;
  transition: all 0.3s ease;
  margin: 8px 5px;
}

.link-titulo-nsb {
  /* flex */
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 10px;

  margin-left: 5px;

  cursor: pointer;
  border-radius: 5px;
  padding: 8px 8px;
  color: #05849f;
}

.link-titulo-nsb:hover {
  background-color: #005f73;
  transition: all 0.3s ease;
  color: #e9d8a6;
}

.link-titulo-nsb.active {
  background-color: #005f73;
  color: #e9d8a6;
}

.link-drop-nsb {
  display: none;
  background-color: #005f73;
  border-radius: 5px;
  margin-top: 5px;
  padding: 8px 5px;
  margin-left: 5px;
}

.link-drop-nsb div {
  margin: 3px 0px;
  padding: 5px 5px;
  border-radius: 5px;
}

.link-drop-nsb>div:hover {
  background-color: #437564;
  transition: all 0.5s ease;

  /* color: #CA6702; */
}

.link-drop-nsb>div a {
  text-decoration: none;
  color: #efffcb;
}

.link-drop-nsb div a:hover {
  color: #ffffff;
  transition: all 0.5s ease;
}

/* fin new side bar 1 */

/* ver_deudas_cliente.php */
.grid-deudas-hospital .head .fila {
  display: grid;
  grid-template-columns: 1rem 5rem 5rem 7rem 5rem 5rem 5rem;
  padding: 0.5rem 1rem;
  text-align: center;
}

.grid-deudas-hospital .body .fila {
  display: grid;
  grid-template-columns: 1rem 5rem 5rem 7rem 5rem 5rem 5rem;
  column-gap: 0.5rem;
  background-color: #f6ddcc;
  border: 0px;
  border-radius: 16px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.grid-deudas-ambulatorio .head .fila {
  display: grid;
  grid-template-columns: 1rem 5rem 5rem 7rem 5rem 5rem 5rem;
  padding: 0.5rem 1rem;
  text-align: center;
}

.grid-deudas-ambulatorio .body .fila {
  display: grid;
  grid-template-columns: 1rem 5rem 5rem 7rem 5rem 5rem 5rem;
  column-gap: 0.5rem;
  background-color: #f6ddcc;
  border: 0px;
  border-radius: 16px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.grid-totales-hospital {
  background-color: #f6ddcc;
  border: 0px;
  border-radius: 16px;
  padding: 0.5rem 1rem;
}

.box-hospitalizacion {
  display: none;
}

.box-hospitalizacion.active {
  animation: fadeInUp;
  /* referring directly to the animation's @keyframe declaration */
  animation-duration: 1s;
  /* don't forget to set a duration! */
  display: block;
}

.box-ambulatorio {
  display: none;
}

.box-ambulatorio.active {
  animation: fadeInUp;
  /* referring directly to the animation's @keyframe declaration */
  animation-duration: 1s;
  /* don't forget to set a duration! */
  display: block;
}

/* fin ver_deudas_cliente.php */

/* cursor pointer */
.cp {
  cursor: pointer;
}

.grid-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  column-gap: 0.5rem;
  row-gap: 0.5rem;
}

/* estilos tabla local */
table.tabla-resultado {
  width: 100%;
  background-color: #ffffff;
  border-collapse: collapse;
  border-bottom-width: 1px;
  border-bottom-color: #3498db;
  border-bottom-style: solid;
  color: #000000;
}

body.dark table.tabla-resultado {
  background-color: transparent;
  border-bottom-color: #3498db;
  color: #000000;
}

table.tabla-resultado td,
table.tabla-resultado th {
  border-bottom-width: 1px;
  border-bottom-color: #3498db;
  border-bottom-style: solid;
  padding: 3px;
}

body.dark table.tabla-resultado td,
body.dark table.tabla-resultado th {
  border-bottom-color: #3498db;
}

table.tabla-resultado thead {
  background-color: transparent;
}

body.dark table.tabla-resultado thead {
  background-color: transparent;
}

/* fin estilos tabla local */

/* input local */
.box_input {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 100%;
}

.input-local {
  font-size: 14px;
  padding: 5px 10px;
  width: 100%;
  outline: none;
  background: #ffffff;
  color: #000000;
  border: 1px solid #c4d1eb;
  border-radius: 5px;
  transition: 0.3s ease;
}

body.dark .input-local {
  background: #1e2231;
  color: #fff;
  border: 1px solid transparent;
}

.input-local:focus {
  background: #f2f2f2;
  border: 1px solid #5a7ec7;
  border-radius: 10px;
}

.input-local::placeholder {
  color: #dddddd;
}

/* fin input local */

.parpadeo {
  animation: blink 1s infinite;
}

/* dashboard */
.db-principal {
  padding: 10px;
  display: grid;
  grid-template-rows: 1fr max-content;
  row-gap: 1rem;
  font-family: "Montserrat", sans-serif;
}

.db-fila {
  padding: 5px;
  /* border: 1px solid #4cc9f0; */
  display: flex;
  gap: 20px;
}

.db-fila-box {
  padding: 10px;
  background-color: transparent;
  border-radius: 5px;
  -webkit-box-shadow: 5px 5px 17px 5px rgba(0, 0, 0, 0.23);
  box-shadow: 5px 5px 17px 5px rgba(0, 0, 0, 0.23);
  cursor: pointer;
}

.grid-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  column-gap: 0.5rem;
  row-gap: 0.5rem;
}

.preloader {
  background-color: #f7f7f7;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  -webkit-transition: 0.6s;
  -o-transition: 0.6s;
  transition: 0.6s;
  margin: 0 auto;
}

.preloader .preloader-circle {
  width: 100px;
  height: 100px;
  position: relative;
  border-style: solid;
  border-width: 1px;
  border-top-color: #ff2121;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  z-index: 10;
  border-radius: 50%;
  -webkit-box-shadow: 0 1px 5px 0 rgba(35, 181, 185, 0.15);
  box-shadow: 0 1px 5px 0 rgba(35, 181, 185, 0.15);
  background-color: #fff;
  -webkit-animation: zoom 2000ms infinite ease;
  animation: zoom 2000ms infinite ease;
  -webkit-transition: 0.6s;
  -o-transition: 0.6s;
  transition: 0.6s;
}

.preloader .preloader-circle2 {
  border-top-color: #0078ff;
}

.preloader .preloader-img {
  position: absolute;
  top: 50%;
  z-index: 200;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  display: inline-block;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  padding-top: 6px;
  -webkit-transition: 0.6s;
  -o-transition: 0.6s;
  transition: 0.6s;
}

.preloader .preloader-img img {
  max-width: 55px;
}

.preloader .pere-text strong {
  font-weight: 800;
  color: #dca73a;
  text-transform: uppercase;
}

@-webkit-keyframes zoom {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.6s;
    -o-transition: 0.6s;
    transition: 0.6s;
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
    -webkit-transition: 0.6s;
    -o-transition: 0.6s;
    transition: 0.6s;
  }
}

@keyframes zoom {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.6s;
    -o-transition: 0.6s;
    transition: 0.6s;
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
    -webkit-transition: 0.6s;
    -o-transition: 0.6s;
    transition: 0.6s;
  }
}

.section-padding2 {
  padding-top: 200px;
  padding-bottom: 200px;
}

@media only screen and (min-width: 1200px) and (max-width: 1600px) {
  .section-padding2 {
    padding-top: 200px;
    padding-bottom: 200px;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .section-padding2 {
    padding-top: 200px;
    padding-bottom: 200px;
  }
}

.ul_ {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.li_ {
  position: relative;
  float: left;
  width: 100%;
  height: 325px;
  overflow: hidden;
  margin: 0 0px 0px 0;
}

.info {
  width: 100%;
}

.btn-file input[type="file"] {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 100px;
  text-align: right;
  filter: alpha(opacity=0);
  opacity: 0;
  outline: none;
  cursor: inherit;
  display: block;
}

#slide-submenu {
  background: rgba(0, 0, 0, 0.45);
  display: inline-block;
  padding: 0 8px;
  border-radius: 4px;
  cursor: pointer;
}

/* esta clase se pone para poner una letra flotante */
.vertical-center {
  margin: 0;
  position: relative;
  top: 40%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  font-size: 14px;
}

/* CSS de tabla del calendario */
.table-calendar td:hover {
  background-color: #f0f8ff !important;
  cursor: pointer !important;
  color: #007bff !important;
}

/* Por defecto, mostrar el nombre completo */
.table-calendar thead th::before {
  content: attr(data-full);
  /* Usar el atributo 'data-full' */
}

/* En pantallas pequeñas, mostrar solo la abreviatura */
@media (max-width: 576px) {
  .table-calendar thead th::before {
    content: attr(data-abbr);
    /* Cambiar a 'data-abbr' */
    font-size: 10px;
  }
}

.table-calendar td {
  font-size: 14px;
  /* Tamaño normal */
}

/* Cambiar el tamaño de la fuente en pantallas pequeñas */
@media (max-width: 576px) {
  .table-calendar td {
    font-size: 10px !important;
    /* Reducir tamaño en móviles */
  }
}

/* Tamaño de fuente normal */
.table-calendar td .badge {
  font-size: 12px;
  /* Tamaño de fuente por defecto */
}

/* Reducir el tamaño de fuente en pantallas pequeñas */
@media (max-width: 576px) {
  .table-calendar td .badge {
    font-size: 8px !important;
    /* Tamaño reducido */
  }
}

/* Asegurarse de que el contenido original del <th> esté vacío */
.table-calendar thead th {
  text-align: center;
  white-space: normal;
  position: relative;
}

.table-calendar thead th::after {
  content: "";
  /* Ocultar contenido original del <th> */
}

.nombre-dias-semana {
  font-size: 12px;
  /* Tamaño de fuente por defecto */
}

@media (max-width: 576px) {
  .nombre-dias-semana {
    font-size: 8px !important;
    /* Tamaño reducido */
  }
}

/* Contenedor principal del dropdown específico */
.app-updates-item {
  transition: background-color 0.3s ease, transform 0.2s ease;
  border-radius: 5px;
}

.app-updates-item:hover {
  background-color: #f8f9fa;
  /* Color claro al pasar el mouse */
  transform: translateY(-2px);
  /* Efecto sutil de elevación */
}

.app-updates-thumbnail {
  flex-shrink: 0;
  /* Evita que el ícono se deforme */
}

.app-updates-icon {
  font-size: 18px;
  /* Ajusta el tamaño del ícono */
  width: 40px;
  height: 40px;
}

.app-updates-content {
  flex-grow: 1;
  /* El texto se ajusta dinámicamente */
}

.app-updates-title {
  color: #007bff;
  /* Personaliza el color principal */
}

.app-updates-date {
  font-size: 0.875rem;
  /* Tamaño de texto pequeño */
}

.app-updates-divider {
  border-top: 1px solid #e9ecef;
  /* Líneas separadoras limpias */
}

/* calendario vacunas */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  overflow-y: auto;
}

.day-name,
.day {
  padding: 5px;
}

.day-name {
  font-weight: bold;
  background-color: #f0f0f0;
}

.day {
  height: 3rem;
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  cursor: pointer;
}

.day:hover {
  background-color: #f0f8ff;
}

.day section.num-dia {
  width: 50px;
  line-height: 38px;
  height: 35px;
  border-right: 3px solid #f0f0f0;
  text-align: center;
}

.empty {
  background-color: transparent;
  border: none;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.btn-nav {
  font-size: 1.2rem;
}

section.box-actividad .vacuna span.span-vacuna {
  border: 1px solid #f0f0f0;
  background-color: #f0f0f0;
  padding: 4px 10px;
  border-radius: 8px;
}

@media (max-width: 1155px) {
  section.box-actividad .vacuna span.span-vacuna i {
    display: none;
  }
}

/* fin calendario vacunas */

/* side content */
.side-content {
  position: fixed;
  overflow-y: auto;
  padding: 2rem;
  right: -24rem;
  background: #f0f4f8;
  top: 0;
  bottom: 0;
  z-index: 1031;
  width: 24rem;
  color: #2c3e50;
  border-left: 1px solid #d1d5db;
  transition: right 0.3s ease;
}

.side-content.show {
  right: 0;
}

.side-content h2,
.side-content h3,
.side-content h4,
.side-content h5,
.side-content h6 {
  color: #2c3e50;
  border-bottom: 3px solid #e5e7eb;
}

.side-content p {
  color: #4b5563;
}

.side-content a {
  color: #3b82f6;
  text-decoration: none;
}

.side-content a:hover {
  text-decoration: underline;
}

/* .input-box {
    border: 1px solid #d1d5db;
    color: #2c3e50;
}
.input-box:focus {
    border-color: #3b82f6;
    outline: none;
} */

.agenda-horas {
  width: 100%;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  border: 1px dashed #3b82f6;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.agenda-horas .box-hora {
  font-weight: 500;
  color: #374151;
  background-color: #f9fafb;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

.agenda-horas .box-hora .hora {
  width: 100%;
  min-height: 3rem;
  padding: 12px 16px;
  border-bottom: 1px dashed #3b82f6;
}

.agenda-horas .box-hora .hora.show {
  border-bottom: 0px dashed #3b82f6;
}

/* ocultamos el border de la ultima */
.agenda-horas .box-hora:last-child .hora {
  border-bottom: none;
}

/* ocultamos el border de la ultima detalle cuando se muestra */
.agenda-horas .box-hora:last-child .detalle-hora.show {
  border-bottom: none;
}

.agenda-horas .box-hora.ocupada {
  background-color: #fde68a;
  color: #92400e;
}

.agenda-horas .box-hora.ocupada:hover {
  background-color: #fcd34d;
}

.agenda-horas .box-hora:hover {
  background-color: #f3f4f6;
}

.agenda-horas .detalle-hora {
  display: none;
  padding: 12px 12px;
  background-color: #e0f2fe;
  font-size: 0.95rem;
  color: #1e3a8a;
  cursor: pointer;
}

.agenda-horas .detalle-hora.show {
  border-bottom: 1px dashed #3b82f6;
}

.agenda-horas .contador-pacientes {
  float: right;
  background-color: #2563eb;
  /* azul más oscuro, moderno */
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
}

.agenda-horas .btn-agregar-paciente {
  float: right;
  background-color: #f3f4f6;
  /*grisclaroneutro*/
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 3px 8px;
  border: 1px solid #2563eb;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

.agenda-horas .btn-agregar-paciente:hover {
  background-color: #2563eb;
  color: white;
}

.agenda-horas .day.activo {
  background-color: #dbeafe;
  /* azul claro */
  border: 1px solid #3b82f6;
  color: #1e3a8a;
}

.agenda-horas .item-paciente {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #cbd5e1;
  font-size: 0.95rem;
}

.agenda-horas .paciente {
  color: #1e293b;
}

.agenda-horas .tutor-paciente {
  font-size: 0.85rem;
  color: #6c757d;
  /* text-muted */
  font-style: italic;
}

.agenda-horas .acciones-paciente {
  display: flex;
  gap: 6px;
}

.agenda-horas .btn-asistencia,
.agenda-horas .btn-whatsapp,
.agenda-horas .btn-asignar-hora {
  /* padding: 4px 8px; */
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Botón asistencia */
.agenda-horas .btn-asistencia {
  background-color: #d1fae5;
  border-color: #10b981;
  color: #047857;
}

.agenda-horas .btn-asistencia:hover {
  background-color: #10b981;
  color: white;
}

/* Botón WhatsApp */
.agenda-horas .btn-whatsapp {
  background-color: #e0f2f1;
  border-color: #25d366;
  color: #128c7e;
}

.agenda-horas .btn-whatsapp:hover {
  background-color: #25d366;
  color: white;
}

.agenda-horas .btn-asignar-hora {
  background-color: #e0f2f1;
  border-color: #25d366;
  color: #128c7e;
}

.agenda-horas .btn-asignar-hora:hover {
  background-color: #25d366;
  color: white;
}

.side-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 41, 59, 0.6);
  /* oscuro, semi-transparente */
  z-index: 999;
  /* debajo del .side-content */
  display: none;
  /* oculto por defecto */
}

.side-content.show+.side-overlay {
  display: block;
}

.agenda-horas .item-agregar-nuevo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 0;
  border-top: 1px dashed #cbd5e1;
}

.agenda-horas .select-agregar-paciente {
  flex: 1;
}

.agenda-horas .btn-cancelar-agregar {
  background-color: #fee2e2;
  border: 1px solid #dc2626;
  color: #b91c1c;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.agenda-horas .btn-cancelar-agregar:hover {
  background-color: #dc2626;
  color: white;
}

.agenda-horas .detalle-hora-vacia {
  display: none;
  padding: 12px 12px;
  background-color: #e0f2fe;
  font-size: 0.95rem;
  color: #1e3a8a;
}

.agenda-horas .btn-agregar-paciente-hora-vacia {
  float: right;
  background-color: #f3f4f6;
  /*grisclaroneutro*/
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 3px 8px;
  border: 1px solid #2563eb;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

.agenda-horas .btn-agregar-paciente-hora-vacia:hover {
  background-color: #2563eb;
  color: white;
}

.bg-light-gray {
  background-color: #fdecea !important;
  /* rojo pastel suave */
}

/* ================================================
   BACKUP MANAGEMENT - Server Actions Buttons
   Clases únicas para botones de servidores remotos
   ================================================ */

/* Contenedor de botones de servidor */
.bkp-server-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  /* 8px de espaciado entre botones */
}

/* Botones individuales de servidor */
.bkp-server-btn {
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  /* 6px entre icono y texto */
}

/* Texto de botones - visible en desktop */
.bkp-server-btn-text {
  display: inline;
}

/* Hover effect para botones */
.bkp-server-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Media query para pantallas pequeñas (tablets y menores) */
@media (max-width: 768px) {

  /* Ocultar texto en móviles */
  .bkp-server-btn-text {
    display: none;
  }

  /* Ajustar gap cuando no hay texto */
  .bkp-server-btn {
    gap: 0;
    min-width: 38px;
    /* Tamaño mínimo para touch-friendly */
    justify-content: center;
  }

  /* Aumentar espaciado entre botones en móvil */
  .bkp-server-actions {
    gap: 0.375rem;
    /* 6px en móvil */
  }
}

/* Media query para pantallas muy pequeñas (móviles) */
@media (max-width: 576px) {
  .bkp-server-actions {
    gap: 0.25rem;
    /* 4px en móviles pequeños */
  }
}

/* End Backup Management Styles */

/* ================================================
   DEPLOYMENT PROGRESS - Task List  
   Clases para lista de tareas de despliegue
   ================================================ */

.deployment-progress {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.task-list {
  background: #f9fafb;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.task-item {
  padding: 10px 12px;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin-bottom: 8px;
}

.task-item:last-child {
  margin-bottom: 0;
}

.task-item i {
  font-size: 16px;
  flex-shrink: 0;
}

/* Estados de las tareas */
.task-item.pending {
  color: #9ca3af;
  background: transparent;
}

.task-item.pending i {
  color: #d1d5db;
}

.task-item.active {
  color: #3b82f6;
  font-weight: 600;
  background: #eff6ff;
}

.task-item.active i {
  color: #3b82f6;
  animation: spin 1s linear infinite;
}

.task-item.completed {
  color: #10b981;
  background: #f0fdf4;
}

.task-item.completed i {
  color: #10b981;
}

.task-item.error {
  color: #ef4444;
  background: #fef2f2;
}

.task-item.error i {
  color: #ef4444;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* End Deployment Progress Styles */

/* estilos tabla asignacion tipos de atención a medicos */
#tablaTiposAsignados tbody td {
  padding: 0.25rem 0.5rem !important;
  vertical-align: middle;
}

#tablaTiposAsignados thead th {
  padding: 0.4rem 0.5rem !important;
  font-size: 0.85rem;
}

/* Estilos para configuración semanal unificada */
#configuracionSemanalCompleta .table {
  width: 100%;
  margin-bottom: 0;
}

#configuracionSemanalCompleta .table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  vertical-align: middle;
  padding: 0.5rem 0.3rem !important;
  font-size: 0.75rem;
}

#configuracionSemanalCompleta .table tbody td {
  padding: 0.3rem !important;
  vertical-align: middle;
  font-size: 0.7rem;
}

#configuracionSemanalCompleta input[type="time"] {
  width: 100%;
  font-size: 0.7rem;
  padding: 0.25rem 0.3rem;
}

#configuracionSemanalCompleta .btn {
  font-size: 0.65rem;
  padding: 0.1rem 0.3rem;
}

/* Responsive: ajustar tamaño de fuente en pantallas pequeñas */
@media (max-width: 1400px) {
  #configuracionSemanalCompleta .table {
    font-size: 0.65rem;
  }

  #configuracionSemanalCompleta .table thead th {
    font-size: 0.7rem;
    padding: 0.4rem 0.2rem !important;
  }
}

/* Mejora visual de los botones de radio de días */
.btn-group-toggle label {
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-group-toggle label.active {
  background-color: #007bff !important;
  color: white !important;
  border-color: #007bff !important;
}

/* Contenedor del stepper */
.stepper-container {
  position: relative;
  padding: 20px 0;
}

/* Item del stepper */
.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.stepper-item.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Icono del stepper */
.stepper-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 3px solid #e9ecef;
}

.stepper-item.active .stepper-icon {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
}

.stepper-item.completed .stepper-icon {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

.stepper-item:not(.disabled):hover .stepper-icon {
  transform: scale(1.1);
}

/* Label del stepper */
.stepper-label {
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
  text-align: center;
}

.stepper-item.active .stepper-label {
  color: #007bff;
  font-weight: 600;
}

.stepper-item.completed .stepper-label {
  color: #28a745;
}

/* Línea separadora */
.stepper-line {
  flex: 1;
  height: 3px;
  background-color: #e9ecef;
  margin: 0 10px;
  align-self: center;
  position: relative;
  top: -20px;
}

/* Contenedor de módulos */
.modulos-container {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

/* Panel de módulo */
.modulo-panel {
  display: none;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modulo-panel.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive stepper */
@media (max-width: 768px) {
  .stepper-container {
    flex-wrap: wrap;
  }

  .stepper-line {
    display: none;
  }

  .stepper-item {
    flex-basis: 50%;
    margin-bottom: 20px;
  }

  .stepper-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .stepper-label {
    font-size: 0.75rem;
  }
}

/* ============================================ */
/* CALENDARIO CENTRALIZADO CON TIMELINE UNIFICADO */
/* ============================================ */
.calendario-centralizado-container {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: visible;
  /* Sin restricción de altura para que se vea completo */
}

/* Wrapper unificado eliminado - no es necesario */

/* Contenedor de días (scroll horizontal) */
.calendario-dias-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  /* Separación se maneja con margin-right en cada día */
  overflow-x: visible;
}

/* Cada día tiene ancho variable */
.calendario-dia-unificado {
  flex-shrink: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  margin-right: 12px;
  /* Separación entre días */
  overflow: visible;
  border: 1px solid #e0e0e0;
}

.calendario-dia-unificado:last-child {
  margin-right: 0;
  /* Sin margen al último día */
}

.calendario-dia-header-unificado {
  font-weight: 600;
  text-align: center;
  padding: 12px 8px;
  background: #17a2b8;
  color: white;
  font-size: 0.9rem;
  /* position: sticky; */
  top: 0;
  z-index: 20;
  border-radius: 6px 6px 0 0;
}

/* Header sticky a nivel de día (fuera del bloque) */
.bloque-header-sticky {
  position: sticky;
  top: 48px;
  /* Después del header del día */
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 2px solid #90caf9;
  padding: 6px 8px;
  z-index: 15;
  backdrop-filter: blur(4px);
}

.calendario-dia-contenido {
  position: relative;
  /* CRÍTICO para position absolute de bloques */
  width: 100%;
  overflow: visible;
  /* Para que headers sticky funcionen */
  padding-top: 60px;
  /* Espacio para el header sticky */
}

/* Columnas de agendas dentro del día */
.calendario-columna-agendas {
  position: absolute;
  top: 0;
  height: 100%;
  border-right: 1px dashed #e0e0e0;
  padding: 0 4px;
}

.calendario-columna-agendas:last-child {
  border-right: none;
}

/* Intervalos ahora son elementos absolutos directos en la columna */
/* (bloque-horario-centralizado eliminado para simplificar estructura) */

.bloque-contrato-nombre,
.bloque-agenda-nombre,
.bloque-box-nombre {
  font-size: 0.7rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bloque-contrato-nombre {
  font-weight: 700;
  color: #1976d2;
}

.bloque-agenda-nombre {
  color: #388e3c;
  font-weight: 600;
}

.bloque-fechas-agenda {
  color: #f57c00;
  font-weight: 500;
  font-size: 0.65rem;
}

.bloque-box-nombre {
  color: #7b1fa2;
}

/* Contenedor de intervalos eliminado - ahora son elementos directos */

/* Intervalo item con posicionamiento absoluto y altura proporcional */
.intervalo-item-timeline {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  margin-bottom: 0;
  /* Sin margen porque son absolutos */
  border-radius: 4px;
  border-left: 4px solid #4caf50;
  /* Barra lateral tipo Google Calendar */
  background: rgba(76, 175, 80, 0.12);
  /* Fondo semitransparente */
  box-sizing: border-box;
  min-height: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
  /* Mínimo para intervalos de 10 min: 10 * 1.5 px/min = 15px */
}

.intervalo-item-timeline:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  background: rgba(76, 175, 80, 0.18);
}

.intervalo-item-timeline.intervalo-activo {
  background: rgba(76, 175, 80, 0.15);
  border-left-color: #4caf50;
}

.intervalo-item-timeline.intervalo-activo:hover {
  background: rgba(76, 175, 80, 0.22);
}

.intervalo-item-timeline.intervalo-inactivo {
  background: rgba(158, 158, 158, 0.08);
  border-left-color: #bdbdbd;
  opacity: 0.7;
}

.intervalo-item-timeline.intervalo-inactivo:hover {
  background: rgba(158, 158, 158, 0.12);
  opacity: 0.8;
}

.intervalo-item-timeline.intervalo-inactivo .intervalo-hora {
  text-decoration: line-through;
  color: #9e9e9e;
}

/* Checkbox moderno personalizado */
.intervalo-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #4caf50;
  border-radius: 4px;
  margin-right: 8px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background: white;
}

.intervalo-checkbox:hover {
  border-color: #66bb6a;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.intervalo-checkbox:checked {
  background: #4caf50;
  border-color: #4caf50;
}

.intervalo-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.intervalo-checkbox:not(:checked) {
  border-color: #bdbdbd;
  background: #f5f5f5;
}

.intervalo-checkbox:not(:checked):hover {
  border-color: #9e9e9e;
  background: #eeeeee;
}

.intervalo-hora {
  font-size: 0.72rem;
  font-weight: 600;
  color: #2e7d32;
  user-select: none;
  letter-spacing: 0.3px;
}

.intervalo-item-timeline.intervalo-activo .intervalo-hora {
  color: #2e7d32;
}

.calendario-mensaje-sin-bloques {
  text-align: center;
  padding: 40px 10px;
  color: #9e9e9e;
  font-size: 0.85rem;
}

.calendario-mensaje-sin-bloques i {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Estilos legacy - mantener para compatibilidad */
.calendario-grid-centralizado {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.calendario-dia-columna-centralizado {
  background: white;
  border-radius: 6px;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.calendario-dia-header-centralizado {
  font-weight: 600;
  text-align: center;
  padding: 12px 8px;
  background: #17a2b8;
  color: white;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.calendario-timeline-wrapper {
  position: relative;
  width: 100%;
  overflow-y: auto;
  max-height: 700px;
}

.calendario-marcadores-hora {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.marcador-hora {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0;
}

.hora-label {
  position: absolute;
  left: 2px;
  top: -10px;
  font-size: 0.65rem;
  color: #666;
  font-weight: 500;
}

.hora-linea {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: repeating-linear-gradient(to right,
      #ddd 0px,
      #ddd 4px,
      transparent 4px,
      transparent 8px);
}

.calendario-temporal-grid {
  position: relative;
  width: 100%;
  margin-left: 50px;
  min-height: 400px;
}

.calendario-columna-temporal {
  position: absolute;
  top: 0;
  height: 100%;
  border-right: 1px dashed #e0e0e0;
  padding: 0 4px;
}

.calendario-columna-temporal:last-child {
  border-right: none;
}

.calendario-columnas-container {
  display: flex;
  gap: 8px;
}

.calendario-columna-bloques {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bloque-header-info {
  margin-bottom: 6px;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 6px;
}

.bloque-rango-horario {
  color: #d32f2f;
  font-weight: 500;
  font-size: 0.7rem;
  margin-bottom: 3px;
}

.bloque-intervalos-lista {
  max-height: 200px;
  overflow-y: auto;
}

.intervalo-item {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: white;
  border: 1px solid #e0e0e0;
}

.intervalo-item.intervalo-activo {
  background: #c8e6c9;
  border-color: #4caf50;
}

.intervalo-item.intervalo-inactivo {
  background: #eeeeee;
  border-color: #9e9e9e;
  opacity: 0.6;
}

/* ============================================
   NUEVO SISTEMA DE AGENDA CON CONTRATOS
   ============================================ */

/* Contenedor principal */
.agenda-container {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Stepper de pasos */
.agenda-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.stepper-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.stepper-item.active .stepper-number {
  background: #007bff;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.stepper-item.completed .stepper-number {
  background: #28a745;
  color: white;
}

.stepper-label {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 600;
}

.stepper-item.active .stepper-label {
  color: #007bff;
}

.stepper-item.completed .stepper-label {
  color: #28a745;
}

.stepper-line {
  flex: 1;
  height: 2px;
  background: #dee2e6;
  margin: 0 15px;
  max-width: 100px;
}

/* Cards de servicio */
.agenda-card-servicio .card {
  transition: all 0.3s ease;
  cursor: pointer;
  border-left: 4px solid transparent;
}

.agenda-card-servicio .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
  border-left-color: #007bff;
}

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.bg-primary-light {
  background-color: rgba(0, 123, 255, 0.1);
}

.hover-shadow {
  transition: box-shadow 0.3s ease;
}

/* Cards de método de búsqueda */
.agenda-metodo-busqueda .card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.agenda-metodo-busqueda .card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.icon-circle-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lista de próximas disponibles */
.agenda-proxima-disponible {
  transition: all 0.2s ease;
  cursor: pointer;
  border-left: 4px solid transparent;
}

.agenda-proxima-disponible:hover {
  background-color: #f8f9fa;
  border-left-color: #28a745;
  transform: translateX(5px);
}

/* Calendario semanal */
.agenda-calendario-semanal {
  background: white;
  padding: 10px;
}

.agenda-dia-item {
  padding: 15px;
  text-align: center;
  border-right: 1px solid #dee2e6;
  transition: all 0.2s ease;
}

.agenda-dia-item:last-child {
  border-right: none;
}

.agenda-dia-item.disponible {
  cursor: pointer;
}

.agenda-dia-item.disponible:hover {
  background-color: #e7f5ff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.agenda-dia-item.hoy {
  background-color: #fff3cd;
  font-weight: bold;
}

.agenda-dia-item.pasado {
  opacity: 0.4;
  cursor: not-allowed;
}

.agenda-dia-item.no-disponible {
  opacity: 0.6;
  cursor: not-allowed;
}

.agenda-dia-header {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.agenda-dia-numero {
  font-size: 1.8rem;
  font-weight: bold;
  color: #212529;
  margin-bottom: 8px;
}

.agenda-dia-disponibilidad {
  margin-top: 8px;
}

/* Horarios específicos */
.agenda-horario-especifico {
  transition: all 0.2s ease;
  cursor: pointer;
  border-left: 4px solid transparent;
  margin-bottom: 10px;
}

.agenda-horario-especifico:hover {
  background-color: #f8f9fa;
  border-left-color: #007bff;
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
  .stepper-line {
    max-width: 30px;
    margin: 0 5px;
  }

  .stepper-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .stepper-label {
    font-size: 0.75rem;
  }

  .agenda-dia-item {
    padding: 10px 5px;
  }

  .agenda-dia-numero {
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .agenda-container {
    padding: 10px;
  }

  .icon-circle-large {
    width: 70px;
    height: 70px;
  }

  .icon-circle-large i {
    font-size: 2rem !important;
  }
}


/* --- Página productosAgregar css especial --- */
.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #4e73df;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #e3e6f0;
  padding-bottom: 0.5rem;
}

.selling-price-highlight {
  background-color: #f8f9fc;
  border: 2px solid #4e73df;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
}

.selling-price-highlight label {
  color: #4e73df;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.selling-price-highlight .price-input {
  font-size: 2rem;
  font-weight: 800;
  color: #e74a3b;
  background: transparent;
  border: none;
  text-align: center;
  width: 100%;
}

.pricing-container {
  background-color: #f8f9fc;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px dashed #d1d3e2;
}

.ubicacion-badge-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ubicacion-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  background: #fff;
  border: 1px solid #e3e6f0;
  border-radius: 0.35rem;
}

.ubicacion-item span:first-child {
  font-weight: 700;
  color: #858796;
}

.ubicacion-item span:last-child {
  color: #4e73df;
  font-weight: 600;
}

/* Responsividad bajo 1200px */
@media (max-width: 1200px) {

  #form_agregar_productos .col-lg-7,
  #form_agregar_productos .col-lg-5 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #form_agregar_productos .form-row {
    display: flex;
    flex-wrap: wrap;
  }

  #form_agregar_productos .form-group {
    margin-bottom: 1rem;
  }
}

/* --- Fin Página productosAgregar css especial --- */


/* --- Corrección Desborde Nombre Usuario Navbar --- */
.navbar .nav-profile-name {
  max-width: 150px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

@media (max-width: 1400px) {
  .navbar .nav-profile-name {
    max-width: 100px;
  }
}

/* Forzar visibilidad del perfil SIEMPRE (Incluso en móviles) */
.navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-profile-custom {
  display: flex !important;
}

.navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-profile-custom .nav-profile-img img {
  transition: transform 0.3s ease;
}

.navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-profile-custom:hover .nav-profile-img img {
  transform: scale(1.05);
}

/* Control responsivo del clima (Sobreescribe tema) */
.navbar .navbar-menu-wrapper .navbar-nav.nav-clima {
  display: none !important;
}

@media (min-width: 1200px) {
  .navbar .navbar-menu-wrapper .navbar-nav.nav-clima {
    display: flex !important;
  }
}

/* Control visibilidad forzado para elementos Navbar (Evita conflictos del tema) */
.navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-item-config,
.navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-item-notifications,
.navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-item-chat {
  display: none !important;
}

@media (min-width: 768px) {

  .navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-item-config,
  .navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-item-notifications,
  .navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-item-chat {
    display: flex !important;
  }
}

/* --- Fin Corrección Desborde Nombre Usuario Navbar --- */


/* --- Tema Dark Global --- */
/* Fondo principal y panel */
body.dark .main-panel,
body.dark .content-wrapper,
body.dark .page-body-wrapper,
body.dark .container-scroller {
  background: #1a1f26 !important;
  /* Color de fondo oscuro profundo */
  color: #cbd5e0;
}

body.dark .wirevet-layout {
  background: #1e2231;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark .sidebar {
  box-shadow: none !important;
  border: none !important;
  background: #1e2231 !important;
  /* Mismo que el layout para consistencia */
}

/* Inputs y Labels dentro de wirevet-layout */
body.dark .wirevet-layout label {
  color: #cbd5e0;
}

body.dark .wirevet-layout .form-control,
body.dark .wirevet-layout input,
body.dark .wirevet-layout select,
body.dark .wirevet-layout textarea {
  background-color: #2d3748 !important;
  border: 1px solid #3d495d !important;
  /* Borde con menos contraste */
  color: #a0aec0 !important;
  /* Texto grisáceo en lugar de blanco puro */
}

body.dark .wirevet-layout .form-control:focus {
  background-color: #2d3748;
  border-color: #667eea !important;
  color: #ffffff;
}

/* Botones a .btn dentro de #seccionBtnDirectos */
body.dark #seccionBtnDirectos a.btn.btn-primary,
body.dark #seccionBtnDirectos a.btn.btn-primary:hover {
  background-color: #4c51bf !important;
  border-color: #434190 !important;
  color: #e2e8f0 !important;
}

body.dark #seccionBtnDirectos a.btn.btn-success,
body.dark #seccionBtnDirectos a.btn.btn-success:hover {
  background-color: #2f855a !important;
  border-color: #276749 !important;
  color: #e2e8f0 !important;
}

body.dark #seccionBtnDirectos a.btn.btn-info,
body.dark #seccionBtnDirectos a.btn.btn-info:hover {
  background-color: #2b6cb0 !important;
  border-color: #276749 !important;
  color: #e2e8f0 !important;
}

body.dark #seccionBtnDirectos a.btn.btn-warning,
body.dark #seccionBtnDirectos a.btn.btn-warning:hover {
  background-color: #d68910 !important;
  border-color: #b5770e !important;
  color: #e2e8f0 !important;
}

body.dark #seccionBtnDirectos a.btn.btn-danger,
body.dark #seccionBtnDirectos a.btn.btn-danger:hover {
  background-color: #c9302c !important;
  border-color: #a42623 !important;
  color: #e2e8f0 !important;
}

body.dark #seccionBtnDirectos a.btn.btn-secondary,
body.dark #seccionBtnDirectos a.btn.btn-secondary:hover {
  background-color: #6c757d !important;
  border-color: #5a6268 !important;
  color: #e2e8f0 !important;
}

body.dark #seccionBtnDirectos a.btn.btn-light,
body.dark #seccionBtnDirectos a.btn.btn-light:hover {
  background-color: #f8f9fa !important;
  border-color: #e9ecef !important;
  color: #212529 !important;
}

body.dark #seccionBtnDirectos a.btn.btn-dark,
body.dark #seccionBtnDirectos a.btn.btn-dark:hover {
  background-color: #343a40 !important;
  border-color: #23272b !important;
  color: #e2e8f0 !important;
}

body.dark #seccionBtnDirectos a.btn.btn-link,
body.dark #seccionBtnDirectos a.btn.btn-link:hover {
  color: #6c757d !important;
}

body.dark #seccionBtnDirectos a.btn.btn-outline-primary,
body.dark #seccionBtnDirectos a.btn.btn-outline-primary:hover {
  color: #4c51bf !important;
  border-color: #4c51bf !important;
}

body.dark #seccionBtnDirectos a.btn.btn-outline-success,
body.dark #seccionBtnDirectos a.btn.btn-outline-success:hover {
  color: #2f855a !important;
  border-color: #2f855a !important;
}

body.dark #seccionBtnDirectos a.btn.btn-outline-info,
body.dark #seccionBtnDirectos a.btn.btn-outline-info:hover {
  color: #2b6cb0 !important;
  border-color: #2b6cb0 !important;
}

body.dark #seccionBtnDirectos a.btn.btn-outline-warning,
body.dark #seccionBtnDirectos a.btn.btn-outline-warning:hover {
  color: #d68910 !important;
  border-color: #d68910 !important;
}

body.dark #seccionBtnDirectos a.btn.btn-outline-danger,
body.dark #seccionBtnDirectos a.btn.btn-outline-danger:hover {
  color: #c9302c !important;
  border-color: #c9302c !important;
}

body.dark #seccionBtnDirectos a.btn.btn-outline-secondary,
body.dark #seccionBtnDirectos a.btn.btn-outline-secondary:hover {
  color: #6c757d !important;
  border-color: #6c757d !important;
}

body.dark #seccionBtnDirectos a.btn.btn-outline-light,
body.dark #seccionBtnDirectos a.btn.btn-outline-light:hover {
  color: #f8f9fa !important;
  border-color: #f8f9fa !important;
}

body.dark #seccionBtnDirectos a.btn.btn-outline-dark,
body.dark #seccionBtnDirectos a.btn.btn-outline-dark:hover {
  color: #343a40 !important;
  border-color: #343a40 !important;
}

body.dark #seccionBtnDirectos a.btn.btn-outline-link,
body.dark #seccionBtnDirectos a.btn.btn-outline-link:hover {
  color: #6c757d !important;
}


/* Botones dentro de wirevet-layout */
body.dark .wirevet-layout .btn-primary,
body.dark .wirevet-layout a.btn-primary {
  background-color: #4c51bf !important;
  border-color: #434190 !important;
  color: #e2e8f0 !important;
}

body.dark .wirevet-layout .btn-success,
body.dark .wirevet-layout a.btn-success {
  background-color: #2f855a !important;
  border-color: #276749 !important;
  color: #e2e8f0 !important;
}

body.dark .wirevet-layout .btn-info,
body.dark .wirevet-layout a.btn-info {
  background-color: #2b6cb0 !important;
  border-color: #2c5282 !important;
  color: #e2e8f0 !important;
}

body.dark .wirevet-layout .btn-warning,
body.dark .wirevet-layout a.btn-warning {
  background-color: #c05621 !important;
  border-color: #9c4221 !important;
  color: #e2e8f0 !important;
}

body.dark .wirevet-layout .btn-danger,
body.dark .wirevet-layout a.btn-danger {
  background-color: #9b2c2c !important;
  border-color: #822727 !important;
  color: #e2e8f0 !important;
}

body.dark .wirevet-layout .btn-secondary,
body.dark .wirevet-layout a.btn-secondary,
body.dark .wirevet-layout .btn-light,
body.dark .wirevet-layout a.btn-light {
  background-color: #4a5568 !important;
  border-color: #2d3748 !important;
  color: #e2e8f0 !important;
}

/* Nav Tabs, Links y Submenús en Modo Dark */
body.dark a {
  color: #667eea;
}

body.dark a:hover {
  color: #a3b1ff;
  text-decoration: none;
}

body.dark .nav-tabs {
  border-bottom: 1px solid #4a5568;
}

body.dark .nav-tabs .nav-link {
  color: #cbd5e0;
  border: 1px solid transparent;
}

body.dark .nav-tabs .nav-link.active,
body.dark .nav-tabs .nav-item.show .nav-link {
  color: #ffffff;
  background-color: #1e2231;
  border-color: #4a5568 #4a5568 #1e2231;
}

body.dark .nav-tabs .nav-link:hover {
  border-color: #4a5568 #4a5568 transparent;
  background-color: #2d3748;
}

/* Menú lateral Wirevet y Submenús */
body.dark .menu-lateral-wirevet {
  background: #1a1f26 !important;
}

body.dark .titulo-colapsable-wirevet {
  color: #cbd5e0;
}

body.dark .titulo-colapsable-wirevet:hover {
  background-color: #2d3748;
  color: #ffffff;
}

body.dark .submenu-wirevet.con-guia-wirevet {
  border-left: 2px solid #4a5568;
}

body.dark .submenu-wirevet li a {
  color: #a0aec0;
}

body.dark .submenu-wirevet li a:hover {
  background-color: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

body.dark .submenu-wirevet li a.active {
  background-color: #2d3748;
  color: #ffffff;
}

/* Tablas en Modo Dark */
body.dark .table,
body.dark table {
  color: #cbd5e0;
}

body.dark .table thead th,
body.dark table thead th {
  background-color: #2d3748;
  color: #ffffff;
  border-bottom: 2px solid #4a5568;
  border-top: none;
}

body.dark .table td,
body.dark table td {
  border-top: 1px solid #2d3748;
  color: #a0aec0;
}

body.dark .table-bordered,
body.dark .table-bordered td,
body.dark .table-bordered th {
  border: 1px solid #3d495d !important;
}

body.dark .table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Filas alternas (Zebra) DataTables */
body.dark table.dataTable.display tbody tr.odd,
body.dark table.dataTable.stripe tbody tr.odd,
body.dark .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

body.dark table.dataTable tbody tr.even,
body.dark table.dataTable.display tbody tr.even,
body.dark table.dataTable.stripe tbody tr.even {
  background-color: transparent !important;
}

/* Forzar transparencia general para evitar conflictos con datatables.min.css */
body.dark table.dataTable tbody tr {
  background-color: transparent !important;
}

/* DataTables específico */
body.dark .dataTables_wrapper .dataTables_length,
body.dark .dataTables_wrapper .dataTables_filter,
body.dark .dataTables_wrapper .dataTables_info,
body.dark .dataTables_wrapper .dataTables_processing,
body.dark .dataTables_wrapper .dataTables_paginate {
  color: #cbd5e0;
}

body.dark .dataTables_wrapper input[type="search"],
body.dark .dataTables_wrapper select {
  background-color: #2d3748 !important;
  border: 1px solid #4a5568 !important;
  color: #cbd5e0 !important;
  padding: 5px 10px;
  border-radius: 4px;
}

body.dark .dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #cbd5e0 !important;
}

body.dark .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #2d3748 !important;
  border: 1px solid #4a5568 !important;
  color: #ffffff !important;
}

/* Contenedor y botones de exportación DataTables */
body.dark .dt-buttons {
  margin-bottom: 1rem;
}

body.dark .dt-button,
body.dark a.dt-button,
body.dark button.dt-button {
  background-image: none !important;
  /* Quitar degradados de DataTables */
  background-color: #2d3748 !important;
  border: 1px solid #4a5568 !important;
  color: #cbd5e0 !important;
  box-shadow: none !important;
}

body.dark .dt-button:hover,
body.dark a.dt-button:hover {
  background-color: #4a5568 !important;
  color: #ffffff !important;
  border-color: #667eea !important;
}


body.dark .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #4a5568 !important;
  border: 1px solid #667eea !important;
  color: #ffffff !important;
}

/* Sobreescribir el estilo de fila deshabilitada del JS para modo dark */
body.dark table.dataTable tbody tr[style*="background-color: rgb(236, 235, 235)"],
body.dark table.dataTable tbody tr[style*="background-color: #ECEBEB"] {
  background-color: #1a202c !important;
  color: #4a5568 !important;
  opacity: 0.6;
}

/* Dropdown Menu en Modo Dark */
body.dark .dropdown-menu {
  background-color: #1e2231;
  border: 1px solid #4a5568;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

body.dark .dropdown-item {
  color: #cbd5e0;
}

body.dark .dropdown-item:hover,
body.dark .dropdown-item:focus {
  background-color: #2d3748;
  color: #ffffff;
}

body.dark .dropdown-divider {
  border-top: 1px solid #4a5568;
}

body.dark .dropdown-header {
  color: #718096;
}

/* Estilos especiales productosAgregar en Modo Dark */
body.dark .selling-price-highlight {
  background-color: #2d3748;
  border-color: #4e73df;
}

body.dark .selling-price-highlight .price-input {
  color: #f56565;
  /* Un rojo un poco más suave para dark */
}

body.dark .pricing-container {
  background-color: #1a202c;
  border-color: #4a5568;
}

body.dark .ubicacion-item {
  background-color: #2d3748;
  border-color: #4a5568;
}

body.dark .ubicacion-item span:first-child {
  color: #a0aec0;
}

body.dark .ubicacion-item span:last-child {
  color: #63b3ed;
}

body.dark .form-section-title {
  color: #63b3ed;
  border-bottom-color: #4a5568;
}

/* Navbar Menu Wrapper Modo Dark */
body.dark .navbar .navbar-menu-wrapper,
body.dark .navbar .navbar-brand-wrapper {
  background: #1e2231 !important;
  color: #8c98a5 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark .navbar .navbar-menu-wrapper .navbar-toggler,
body.dark .navbar .navbar-menu-wrapper .nav-link,
body.dark .navbar .navbar-menu-wrapper .navbar-nav .nav-item,
body.dark .navbar .navbar-menu-wrapper .navbar-nav .nav-item i,
body.dark .navbar .navbar-menu-wrapper .nav-profile-name,
body.dark .navbar .navbar-menu-wrapper .navbar-nav .nav-item .font-weight-bold {
  color: #8c98a5 !important;
}

body.dark .navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-settings {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark .navbar .navbar-menu-wrapper .navbar-nav.navbar-nav-right .nav-item .nav-link {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Footer en Modo Dark (Real) */
body.dark .footer {
  background: transparent !important;
}

body.dark .footer .card {
  background-color: #1e2231 !important;
  border: 1px solid #2d3748;
  color: #a0aec0;
  box-shadow: none !important;
}

body.dark .footer .text-muted,
body.dark .footer a.text-muted {
  color: #a0aec0 !important;
}

body.dark .footer a.text-muted:hover {
  color: #667eea !important;
}

/* Otros estilos de footer (site-footer si existiera en alguna parte) */
body.dark .site-footer {
  background-color: #1a1f26 !important;
  border-top: 1px solid #2d3748;
  color: #a0aec0;
}

body.dark .site-footer h6,
body.dark .site-footer .copyright-text {
  color: #cbd5e0;
}

body.dark .site-footer hr {
  border-top-color: #2d3748;
}

body.dark .site-footer a {
  color: #a0aec0;
}

body.dark .social-icons a {
  background-color: #2d3748;
  color: #a0aec0;
}

body.dark i.text-dark {
  color: #a0aec0 !important;
}

/* Estilos Globales Dark Mode para SweetAlert2 */
body.dark .swal2-popup {
  background-color: #1a2236 !important;
  /* Azul oscuro profundo */
  color: #d1d5db !important;
  /* Gris claro bajo contraste */
  border: 1px solid #2d3748 !important;
}

body.dark .swal2-title {
  color: #edf2f7 !important;
}

body.dark .swal2-content,
body.dark .swal2-html-container {
  color: #a0aec0 !important;
}

body.dark .swal2-footer {
  border-top: 1px solid #2d3748 !important;
  color: #718096 !important;
}

body.dark .swal2-close {
  color: #718096 !important;
}

body.dark .swal2-close:hover {
  color: #edf2f7 !important;
}

body.dark .border-bottom {
  border-bottom-color: #2d3748 !important;
}

body.dark .text-primary {
  color: #63b3ed !important;
  /* Azul más suave para dark mode */
}

body.dark .swal2-timer-progress-bar {
  background: rgba(99, 179, 237, 0.5) !important;
}

/* Botones Outline en Modo Dark con menor contraste */
body.dark .btn-outline-primary,
body.dark .btn-outline-secondary,
body.dark .btn-outline-success,
body.dark .btn-outline-danger,
body.dark .btn-outline-warning,
body.dark .btn-outline-info {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #bbbbbb !important;
}

body.dark .btn-outline-primary:hover,
body.dark .btn-outline-secondary:hover,
body.dark .btn-outline-success:hover,
body.dark .btn-outline-danger:hover,
body.dark .btn-outline-warning:hover,
body.dark .btn-outline-info:hover {
  border-color: transparent !important;
  color: #ffffff !important;
}

/* Ajuste específico para el color de la marca en modo dark */
body.dark .btn-outline-primary {
  color: #8bb9fe !important;
  border-color: rgba(139, 185, 254, 0.3) !important;
}

/* Bordes de bajo contraste para elementos de formulario en modo dark */
body.dark select,
body.dark .form-control,
body.dark .form-select,
body.dark .select2-container--default .select2-selection--single,
body.dark .select2-container--default .select2-selection--single select.select2-search__field,
body.dark select.typeahead,
body.dark select.tt-query,
body.dark select.tt-hint {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  outline: none !important;
  background-color: #2a2a2a !important;
  color: #bbbbbb !important;
}



body.dark select:focus,
body.dark .form-control:focus,
body.dark .form-select:focus {
  border-color: rgba(139, 185, 254, 0.4) !important;
  box-shadow: 0 0 0 0.2rem rgba(139, 185, 254, 0.1) !important;
}

/* Breadcrumb en modo dark con borde atenuado */
body.dark .breadcrumb {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* List group items en modo dark */
body.dark .list-group-item {
  background-color: #2a2a2a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #bbbbbb !important;
}

body.dark .list-group-item:hover {
  background-color: #333333 !important;
}

/* Modales en modo dark */
body.dark .modal-content {
  background-color: #1e1e1e !important;
  border-color: #333333 !important;
  color: #e0e0e0 !important;
}

body.dark .modal-header {
  border-bottom-color: #333333 !important;
}

body.dark .modal-footer {
  border-top-color: #333333 !important;
}

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

body.dark .close {
  color: #ffffff !important;
  text-shadow: none !important;
  opacity: 0.8 !important;
}

body.dark .close:hover {
  opacity: 1 !important;
}

/* Agenda Modal Cita en modo dark */
body.dark .seccion-cita {
  background-color: #25282c !important;
  border-color: #333333 !important;
}

body.dark .seccion-cita h6 {
  color: #63b3ed !important;
  border-bottom-color: #333333 !important;
}

body.dark .mascota-card {
  background-color: #1e1e1e !important;
  border-color: #333333 !important;
}

body.dark .mascota-card:hover {
  border-color: #63b3ed !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark .mascota-card.border-primary {
  background-color: #1a365d !important;
  border-color: #63b3ed !important;
}

body.dark .bg-primary-light {
  background-color: rgba(99, 179, 237, 0.1) !important;
}

body.dark #modalNuevaCita .modal-body::-webkit-scrollbar-track {
  background: #1e1e1e !important;
}

body.dark #modalNuevaCita .modal-body::-webkit-scrollbar-thumb {
  background: #444444 !important;
}

/* Clases de utilidad adaptadas al modo dark */
body.dark .bg-light {
  background-color: #2a2a2a !important;
  color: #bbbbbb !important;
}

body.dark .text-muted {
  color: #888888 !important;
}

/* Botones en modo dark */
body.dark .btn-primary {
  background-color: #3182ce !important;
  border-color: #3182ce !important;
  color: #ffffff !important;
}

body.dark .btn-primary:hover {
  background-color: #2b6cb0 !important;
}

body.dark .btn-success {
  background-color: #38a169 !important;
  border-color: #38a169 !important;
}

body.dark .btn-danger {
  background-color: #e53e3e !important;
  border-color: #e53e3e !important;
}

body.dark .btn-warning {
  background-color: #dd6b20 !important;
  border-color: #dd6b20 !important;
  color: #ffffff !important;
}

body.dark .btn-info {
  background-color: #00b5d8 !important;
  border-color: #00b5d8 !important;
  color: #ffffff !important;
}

body.dark .btn-light {
  background-color: #3a3f45 !important;
  border-color: #4a4f55 !important;
  color: #e0e0e0 !important;
}

body.dark .btn-light:hover {
  background-color: #4a4f55 !important;
}

/* Badges en modo dark */
body.dark .badge-primary {
  background-color: rgba(49, 130, 206, 0.2) !important;
  color: #90cdf4 !important;
  border: 1px solid rgba(49, 130, 206, 0.4) !important;
}

body.dark .badge-success {
  background-color: rgba(56, 161, 105, 0.2) !important;
  color: #9ae6b4 !important;
  border: 1px solid rgba(56, 161, 105, 0.4) !important;
}

body.dark .badge-danger {
  background-color: rgba(229, 62, 62, 0.2) !important;
  color: #feb2b2 !important;
  border: 1px solid rgba(229, 62, 62, 0.4) !important;
}

body.dark .badge-warning {
  background-color: rgba(221, 107, 32, 0.2) !important;
  color: #fbd38d !important;
  border: 1px solid rgba(221, 107, 32, 0.4) !important;
}

body.dark .badge-info {
  background-color: rgba(0, 181, 216, 0.2) !important;
  color: #9decf9 !important;
  border: 1px solid rgba(0, 181, 216, 0.4) !important;
}

body.dark .badge-secondary {
  background-color: rgba(113, 128, 150, 0.2) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(113, 128, 150, 0.4) !important;
}

body.dark .badge-light {
  background-color: #2d3748 !important;
  color: #edf2f7 !important;
  border: 1px solid #4a5568 !important;
}

body.dark .badge-dark {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #2d3748 !important;
}