:root {
  --bg: #fff;
  --text: #fff;
  --accent: #02A5E2;
}


.contenedor-tabla tr td button {
  background-color: transparent;
  border: none;

}

td[colspan="5"]:hover {
  background: transparent !important;
}

button.editar {
  margin-right: 10px;
  background: transparent;
  border: none;
  font-size: 17px;


}

button.editar:hover {
  font-size: 20px;
  transition: all 300ms ease-in;

}



button.eliminar {
  margin-left: 10px;
  background: transparent;
  border: none;
  font-size: 17px;
}

.contenedor-tabla tr td button ion-icon {
  font-size: 1.5rem;
  color: #02A5E2;
  box-shadow: 0 5px 35px rgba(0, 0, 0, 0.08);
}

.contenedor-tabla tr td button ion-icon:hover {
  font-size: 1.5rem;
  color: #fff;
}

.icon-add-user {
  font-size: 25px;
  cursor: pointer;
}

.icon-add-user:hover {
  font-size: 27px;
  transition: all 300ms ease-in;
}

.icon-add-minus:hover {
  color: #fff;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease forwards;
}

.modal-contenido {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s ease forwards;
}

.modal-contenido h2 {
  font-size: 1, 5em;
  text-align: center;
  line-height: 1.4em;
}

.modal-contenido button {
  display: inline-block;
  height: 40px;
  padding: 5px 25px;
  margin-top: 20px;
  border: 1px solid #02A5E2;
  color: #fff;
  background: #02A5E2;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  transition: 0.7s;
  text-align: center;
  cursor: pointer;
}

.modal-contenido button:hover {
  box-shadow: 0 4px 10px #02A5E2;
  transition: box-shadow 0.3s ease;
}

.cerrar {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.cerrar:hover {
  color: black;
}


.form-group label {
  position: absolute;
  left: var(--pad);
  top: var(--pad);
  background: var(--bg);
  padding-inline: .3em;
  transition: transform 200ms;
  pointer-events: none;
  transform-origin: left;
  translate: -.3em;
  color: #bbbbbb;
}

.form-group-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-group-button button {
  margin: 20px;
}

.form-group-button .btn-cancelar:hover {
  background: #ed1a3b;
  box-shadow: 0 4px 10px #ed1a3b;
  transition: box-shadow 0.3s ease;
}

.pagination-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  /* se alinea al alto de los botones */
  line-height: 1;
  /* evitar que el texto se desplace */
  padding-top: 12px;
  padding-bottom: 12px;
}

.paginacion-container {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin: 20px 0;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #222;
}

.btn-pagination-modern {
  background-color: white;
  border: 2px solid #02A5E2;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-pagination-modern ion-icon {
  color: #02A5E2 !important;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.btn-pagination-modern:hover {
  background-color: #02A5E2 !important;
  box-shadow: 0 4px 15px rgba(2, 165, 226, 0.3);
}

/* Animación direccional distinta */
.btn-pagination-modern.forward:hover ion-icon {
  color: white !important;
  transform: translateX(4px);
  /* mover hacia la derecha */
}

.btn-pagination-modern.back:hover ion-icon {
  color: white !important;
  transform: translateX(-4px);
  /* mover hacia la izquierda */
}

.pagination-text {
  min-width: 90px;
  text-align: center;
}

input::placeholder {
  opacity: 0;
}

input:focus+label,
input:not(:placeholder-shown)+label {
  transform: translateY(calc(-50% - var(--pad))) scale(.8);
  color: var(--accent);
}

input:focus {
  border: 1px solid var(--accent);
}


select {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  outline: 0;
  box-shadow: none;
  background: #fff;
  background-image: none;
  border: 1px solid #eee;
  border-radius: 8px;
}

select::-ms-expand {
  display: none;
}

.select {
  position: relative;
  display: flex;
  width: 260px;
  height: 3em;
  line-height: 3;
  overflow: hidden;
  border-radius: 8px;
  margin: 20px;


}

select {
  flex: 1;
  padding: 0 .5em;
  color: #111;
  cursor: pointer;

}

.select::after {
  content: '\25BC';
  position: absolute;
  top: 0;
  right: 0;
  padding: 0 1em;
  background: #02A5E2;
  cursor: pointer;
  pointer-events: none;
  transition: .25s all ease;
}

.select:hover::after {
  color: #fff;
}

.footer-pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* alinea todo a la izquierda */
  gap: 0.5rem;
  margin-top: 1rem;
}

.user-count {
  font-size: 0.9rem;
  color: #333;
  padding-right: 1rem;
}

.footer-pagination-wrapper-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  flex-wrap: wrap;
}


.mensaje-exito {
  background-color: #02A5E2;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 10px 0;
  border: 1px solid #c3e6cb;
  font-weight: bold;
  text-align: center;
}



.modalEliminar {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-contenido-eliminar {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-contenido-eliminar h2 {
  font-size: 1, 5em;
  text-align: center;
  line-height: 1.4em;
}

.modal-contenido-eliminar button {
  display: inline-block;
  padding: 12px 25px;
  margin-top: 20px;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  transition: 0.7s;
  text-align: center;
}

.modal-contenido-eliminar button:hover {
  background: #02A5E2;
  color: #fff;
}

.detalles {

  display: grid;
  grid-template-columns: 1fr;


}

#modal-body {
  text-align: center;
}

#modal-body form {
  text-align: left;
}

#modal-crear-cliente .grid-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 4 columnas fijas */
}

#modal-editar-cliente .grid-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 4 columnas fijas */
}

#modal-ver-cliente .grid-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 4 columnas fijas */
}

#modal-crear-cliente .modal-contenido {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#modal-editar-cliente .modal-contenido {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#modal-ver-cliente .modal-contenido {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#modal-crear-cliente .grid-form .form-group {
  width: 100%;
}

#modal-editar-cliente .grid-form {
  width: 100%;
}



.btn-4 {
  scale: 0.67;
  --width: 160px;
  --height: 64px;
  --tooltip-height: 40px;
  --tooltip-width: 110px;
  --gap-between-tooltip-to-button: 18px;
  --button-color: #02A2F8;
  --tooltip-color: #fff;
  width: var(--width);
  height: var(--height);
  background: var(--button-color);
  position: relative;
  text-align: center;
  border-radius: 32px;
  font-family: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-4::before {
  position: absolute;
  content: attr(data-tooltip);
  width: var(--tooltip-width);
  height: var(--tooltip-height);
  background-color: var(--tooltip-color);
  font-size: 16px;
  color: #fff;
  border-radius: 6px;
  line-height: var(--tooltip-height);
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) + 10px);
  left: calc(50% - var(--tooltip-width) / 2);
}

.btn-4::after,
.btn-4::before {
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}

.btn-4 .text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-4 .button-wrapper,
.btn-4 .text,
.btn-4 .icon {
  overflow: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  color: #fff;
  font-size: 20px;
}

.btn-4 .text {
  top: 0;
}

.btn-4 .text,
.btn-4 .icon {
  transition: top 0.5s;
}

.btn-4 .icon {
  color: #fff;
  top: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-4 .icon svg {
  width: 24px;
  height: 24px;
  font-weight: 900;
}

.next {
  width: 33px !important;
  height: 33px !important;
}

.btn-4:hover {
  background: #02A2F8;
}

.btn-4:hover .text {
  top: -100%;
}

.btn-4:hover .icon {
  top: 0;
}

.btn-4:hover:before,
.btn-4:hover:after {
  opacity: 1;
  visibility: visible;
}

.btn-4:hover:after {
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) - 20px);
}

.btn-4:hover:before {
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button));
}

.buttons-option {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.buttons-option button {
  margin: 4px;
}

/* Contenedor: permite varias filas de chips (opcional) */
#economicCodeList {
  display: flex;
  flex-wrap: wrap;      /* varias filas si hay muchos chips */
  gap: 6px;
  padding: 4px 0;
}

/* Chip compacto en una sola línea */
.econ-chip {
  display: inline-flex;
  align-items: center;
  max-width: 280px;     /* controla el ancho máximo del chip */
  height: 30px;
  background: #f1f3f5;
  border: 1px solid #e4e6eb;
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;  /* NUNCA rompas línea */
}

/* Texto dentro del chip: truncado a una línea con “…” */
.econ-label {
  display: inline-block;
  max-width: 230px;     /* 280 - botón aprox. 50 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;  /* clave para una sola línea */
}

/* Botón mini solo icono */
.econ-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  height: 22px !important;
}
.econ-btn:hover { background: #e9ecef; color: #374151; }
.econ-btn ion-icon { font-size: 16px; }

.contenedor .content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.contenedor .content .box {
  border: 15px solid #fff;
  height: 136px;
  border-radius: 20px;
  box-shadow: 0 5px 35px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  transform: scale(0.9);
}

.contenedor .content .box:hover {
  box-shadow: 0px 0px 5px #000000;
  z-index: 2;
  transition: all 300ms ease-in;
  transform: scale(1);
}

.contenedor .content .box:hover {
  box-shadow: 0px 0px 5px #000000;
  z-index: 2;
  transition: all 300ms ease-in;
  transform: scale(1);
}

.contenedor .content .box .imgBx {
  position: relative;
  width: 40px;
  height: 40px;

}

.contenedor .content .box .imgBx img {
  position: absolute;
  top: 11px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.contenedor .content .box .text {
  padding: 15px 0px 5px;
  text-align: start;
  text-transform: uppercase;

}

.contenedor .content .box .descp {
  color: #aaa;
  font-size: 15px;

}

.contenedor .content .box .text h3 {


  font-weight: 700;
  color: #111;
}

.btn-eliminar {
  display: inline-block;
  height: 40px;
  padding: 5px 25px;
  margin-top: 20px;
  border: 1px solid #ed1a3b !important;
  color: #fff !important;
  background: #ed1a3b !important;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  transition: 0.7s;
  text-align: center;
  cursor: pointer;
}

.back-icon-tax {
  display: block;
  color: black;
  cursor: pointer;
  font-size: 2.3rem;

}

.back-icon-tax:hover {
  color: rgb(110, 110, 110);
  background: transparent;
  transition: box-shadow 0.3s ease;
}



.btn-eliminar:hover {
  box-shadow: 0 4px 10px #ed1a3b;
  transition: box-shadow 0.3s ease;
}


.btn-descargar {
  display: inline-block;
  height: 40px;
  padding: 5px 25px;
  margin-top: 20px;
  border: none !important;
  color: #fff !important;
  background: #02A5E2;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  transition: 0.7s;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
}

.btn-descargar:hover {
  box-shadow: 0 4px 10px #02A5E2 !important;
  transition: box-shadow 0.3s ease;
  background: #02A5E2 !important;
}


.btn-cancelar {
  display: inline-block;
  height: 40px;
  padding: 5px 25px;
  margin-top: 20px;
  border: 1px solid rgb(110, 110, 110) !important;
  color: #fff !important;
  background: rgb(110, 110, 110);
  border-radius: 15px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  transition: 0.7s;
  text-align: center;
  cursor: pointer;
}

.btn-cancelar:hover {
  box-shadow: 0 4px 10px rgb(110, 110, 110) !important;
  transition: box-shadow 0.3s ease;
  background: rgb(110, 110, 110) !important;
}



/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-doc {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  animation: modal-doc-fadeIn 0.3s ease forwards;
}

.modal-doc-contenido {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 480px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: modal-doc-slideDown 0.4s ease forwards;
  position: relative;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.modal-doc-titulo {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 22px;
  text-align: center;
  color: #333;
}

.modal-doc-cerrar {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-doc-cerrar:hover {
  color: #111;
}

.modal-doc-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-doc-dropzone {
  width: 100%;
  padding: 20px;
  border: 2px dashed #007bff;
  border-radius: 10px;
  text-align: center;
}


.modal-doc-form label {
  font-weight: 500;
  margin-bottom: 5px;
  color: #444;
}

.modal-doc-input-file {
  padding: 10px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.modal-doc-input-file:focus {
  border-color: #02A2F8;
  outline: none;
}

.modal-doc-btn-submit {
  background-color: #02A2F8;
  border: none;
  color: white;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.modal-doc-btn-submit:hover {
  background-color: #0056b3;
}

@keyframes modal-doc-fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-doc-slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

ion-icon {
  pointer-events: none;
}

button ion-icon {
  pointer-events: none;
}

button {
  cursor: pointer;
}





@media (max-width:480px) {
  button.editar {
    margin-right: 0px;
  }

  button.eliminar {
    margin-left: 0px;
  }

  .modal {
    z-index: 20000;
  }

  #modal-crear-cliente .grid-form {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* 4 columnas fijas */
    align-content: center;
    justify-content: center;
  }

  #modal-editar-cliente .grid-form {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* 4 columnas fijas */
    align-content: center;
    justify-content: center;
  }

  .modal-contenido {
    width: 90%;
    /* Ajusta el tamaño para móviles */
    margin: 20% auto;
    padding: 15px;
  }


  .cerrar {
    top: 5px;
    right: 10px;
    font-size: 29px;
  }

  #modal-crear-cliente .modal-contenido {
    background-color: #fefefe;
    margin: 33% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }

  .modal-contenido h2 {
    font-size: 20px;
    line-height: 3.4em;
  }

  .cerrar {
    line-height: 2.2em;
  }

  .form-group input {
    width: 100%;
  }

  #modal-crear-cliente .modal-contenido .form-group input {
    width: 90%;
  }

  .select {
    width: auto;
  }

}

/* Contenedor de sugerencias */
#economicCodeSuggestions {
  position: absolute;
  /* opcional según layout */
  max-height: 240px;
  /* evita listas muy largas */
  overflow-y: auto;
  /* scroll si excede */
  border-left: ridge;
  border-radius: 6px;
  background: #fff;
}

/* Cada opción clicable */
#economicCodeSuggestions .item {
  padding: 8px 10px;
  cursor: pointer;
  /* cursor de “click” */
  user-select: none;
  /* evita selección de texto accidental */
}

/* Estados de interacción */
#economicCodeSuggestions .item:hover,
#economicCodeSuggestions .item:focus {
  background: #f5f7fa;
  outline: none;
}

/* Si quieres indicar la opción “activa” por teclado */
#economicCodeSuggestions .item.active {
  background: #e9eef7;
}

/* Estilos base para mensajes */
.mensaje-exito,
.mensaje-warning,
.mensaje-info,
.mensaje-error {
  padding: 12px 20px;
  margin: 10px 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.3s ease;
  max-width: 100%;
  word-wrap: break-word;
  text-align: center;
  /* Centrar texto para todos los tipos de mensaje */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mensaje de éxito (verde) */
.mensaje-exito {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Mensaje de advertencia (amarillo/naranja) */
.mensaje-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Mensaje informativo (azul) */
.mensaje-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Mensaje de error (rojo) */
.mensaje-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Animación de entrada */
.mensaje-exito,
.mensaje-warning,
.mensaje-info,
.mensaje-error {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilo para el botón cuando está procesando */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive para mensajes largos */
@media (max-width: 768px) {

  .mensaje-exito,
  .mensaje-warning,
  .mensaje-info,
  .mensaje-error {
    font-size: 13px;
    padding: 10px 15px;
  }
}

/* ====== ESTILOS PARA BARRA DE PROGRESO DE USUARIOS ====== */

/* Contenedor principal de la barra de progreso */
.upload-progress-container {
  margin: 15px 0;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

/* Estado visible de la barra de progreso */
.upload-progress-container.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Texto de estado superior */
.upload-status {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  text-align: left;
}

/* Contenedor de la barra (track) */
.upload-progress-track {
  width: 100%;
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* Barra de progreso activa */
.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
  width: 0%;
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Efecto de brillo en la barra */
.upload-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  animation: shimmer 2s infinite;
}

/* Animación de brillo */
@keyframes shimmer {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

/* Información del porcentaje */
.upload-progress-info {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6c757d;
}

/* Estados específicos de la barra */
.upload-progress-container[data-status="error"] {
  background: #f8d7da;
  border-color: #f5c6cb;
}

.upload-progress-container[data-status="error"] .upload-progress-bar {
  background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

.upload-progress-container[data-status="success"] {
  background: #d4edda;
  border-color: #c3e6cb;
}

.upload-progress-container[data-status="success"] .upload-progress-bar {
  background: linear-gradient(90deg, #28a745 0%, #1e7e34 100%);
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 576px) {
  .upload-progress-container {
    margin: 10px 0;
    padding: 10px;
  }

  .upload-status {
    font-size: 13px;
  }

  .upload-progress-info {
    font-size: 11px;
  }
}

/* Variación para modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
  .upload-progress-container {
    background: #2d3748;
    border-color: #4a5568;
  }

  .upload-status {
    color: #e2e8f0;
  }

  .upload-progress-info {
    color: #a0aec0;
  }

  .upload-progress-track {
    background-color: #4a5568;
  }
}

.tabla-con-bordes {
  table-layout: auto;
  border-collapse: collapse;
  width: 100%;
  font-family: sans-serif;
  border-bottom: 2px solid #ccc;
}

.tabla-con-bordes th,
.tabla-con-bordes td {
  padding: 8px;
  text-align: left;
}

.tabla-con-bordes .detalle-row td {
  border-right: 1px solid #ccc;
  border-left: 1px solid #ccc;
}

.tabla-con-bordes .totales-row td {
  border: none;
  background-color: #019cd4;
}

.tabla-con-bordes .totales-row td {
  font-weight: bold;
  border-top: 2px solid #000;
  background-color: #eee;
}

.tabla-con-bordes thead td {
  border: 1px solid #ccc;
  color: rgb(0, 0, 0);
  /* font-weight: bold;
  text-align: center;
  padding: 10px; */
}

.detalles .recientes table tbody tr.detalle-row:hover td:first-child,
.detalles .recientes table tbody tr.detalle-row:hover td:last-child {
  border-radius: 0;
}

.detalles .recientes table tbody tr.detalle-row:hover {
  background: rgb(232, 231, 231);
  color: rgb(0, 0, 0);
}

.tabla-scroll {
  border-collapse: separate;
  border-spacing: 0;
  overflow-x: auto;
  width: 100%;
  padding-bottom: 10px;
  max-height: 100vh;
  overflow-y: auto;
}

.tabla-scroll::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.tabla-scroll::-webkit-scrollbar-thumb {
  background-color: rgb(180, 180, 180);
}

.sin-comentario {
  background-color: orange;
}

.timeline-container {
  max-width: 100%;
  margin: 0 auto;
  background: none;
  border-radius: 0;
  padding: 10px 0;
  box-shadow: none;
  transform: scale(0.9);
  transform-origin: top center;
}

.timeline {
  list-style: none;
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 10px 0;
  margin: 0;
}

.li {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.status {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 2px solid white;
  margin-bottom: 6px;
  transition: all 0.2s ease;
  position: relative;
  top: 6px;
}

.status h4 {
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
  margin: 0;
  line-height: 1.2;
}

/* Estado completado */
.li.complete .status::before {
  background: #02A5E2;
}

.li.complete .status h4 {
  color: #1e293b;
  font-weight: 600;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 8.333%;
  /* 100% / (número de elementos * 2) = 100% / 12 = 8.333% */
  right: 8.333%;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.timeline::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 8.333%;
  height: 2px;
  background: #02A5E2;
  z-index: 1;
  transition: width 0.3s ease;
}

/* 6 elementos => cada uno ocupa 16.666% del ancho (100% / 6) */
.timeline[data-progress="1"]::after {
  width: calc(16.666% * 1);
}

.timeline[data-progress="2"]::after {
  width: calc(16.666% * 2);
}

.timeline[data-progress="3"]::after {
  width: calc(16.666% * 3);
}

.timeline[data-progress="4"]::after {
  width: calc(16.666% * 4);
}

.timeline[data-progress="5"]::after {
  width: calc(16.666% * 5);
}

.timeline[data-progress="6"]::after {
  width: calc(16.666% * 6);
}

.scrollable-cell {
  max-height: 80px;
  overflow-y: auto;
  width: 400px;
  text-align: center;
}


.col-fija {
  max-height: 80px;
  width: 260px;
  overflow-y: auto;    
  text-align:center;
}

#MatrizTabla thead td {
  position: sticky;
  top: 0;
  background-color: #f1f1f1;
  z-index: 1 !important;
  /*border-right: 2px  #e40b0b;  */
  }

/* Optimización para scroll suave */
.tabla-scroll {
  position: relative;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

/* Evitar layout shift durante carga */
tbody tr {
  min-height: 40px;
}

/* Animación suave al agregar filas */
tbody tr {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zoom-out {
  font-size: 56%;
}

.celda-derecha {
  display: flex;
  justify-content: flex-end; /* todo alineado a la derecha */
  align-items: center;
  gap: 4px; /* pequeña separación entre número y botón */
}

.celda-derecha .editar {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

.celda-derecha .editar ion-icon {
  vertical-align: middle;
}

  #loading-indicator {
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
  }

  .spinner-container {
    /* background: white; */
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
  }
  
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
  
  /* Forzar aceleración por hardware */
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform;
}

@keyframes spin {
  0% { transform: translateZ(0) rotate(0deg); }
  100% { transform: translateZ(0) rotate(360deg); }
}

/* Loading spinner */
.loading-container {
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.loading-container.htmx-request {
  opacity: 1;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Trigger invisible */
.load-more-trigger td {
  height: 1px;
  padding: 0 !important;
  border: none;
}

/* Mensaje de fin */
.end-message td {
  background: #f0f9ff;
  font-weight: 500;
}

/* Contador fijo en la parte inferior */
.user-count-fixed {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 12px;
  border-top: 2px solid #e0e0e0;
  text-align: center;
  font-weight: 600;
  color: #333;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}


.col-nombres {
  max-height: 25px;
  overflow-y: auto;
  width: 150px;
  text-align: center;
}

button.editar2 {
  position: absolute;
  top: 8px;
  right: 8px;
  margin-right: 10px;
  background: transparent;
  border: none;
  font-size: 17px;
  cursor: pointer;
}

button.editar2:hover {
  font-size: 20px;
  transition: all 300ms ease-in;
}