
/*Borders de estatus para las tablas */
.border-B{
border-left: 0.25rem solid #e74a3b !important;
}
.border-A{
border-left: 0.25rem solid #1cc88a !important;
}
.border-I{
border-left: 0.25rem solid #e74a3b !important;
}

/*Clase para las etiquetas de contraparte en precios pactados*/
.badge-fixed {
    display: inline-block;
    min-width: 105px;   /* ancho fijo */
    text-align: center; /* centra el texto */
    font-size: .75rem;    /* tamaño de letra */
    padding: 6px 12px;  /* espacio interno */
  }


/* Buttons close RED*/
.btn-close-red {
    background: none;
    border: none;
    color: red; /* color del ícono */
    font-size: 2rem; /* tamaño más grande */
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .btn-close-red:hover {
    transform: rotate(90deg) scale(1.2); /* animación al pasar el mouse */
    color: darkred; /* tono más intenso */
  }


/* Ocultar el texto por defecto */
.register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;       /* padding relativo */
  min-width: 3rem;             /* ancho mínimo para ícono */
  transition: min-width 1s ease-in-out; /* expansión lenta */
}

.register-btn .icon i {
  font-size: 1.5rem;
  transition: margin-right 1s ease-in-out;
}

.register-btn .btn-text {
  font-size: 1rem;
  opacity: 0;
  max-width: 0;                /* valor inicial numérico */
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.3s ease, max-width 0.3s ease; /* aparición rápida */
}

.register-btn:hover {
  min-width: 10rem;            /* expansión suave y responsive */
}

.register-btn:hover .icon {
  margin-right: 0.5rem;
}

.register-btn:hover .btn-text {
  opacity: 1;
  max-width: 8rem;             /* valor final numérico → animación fluida */
}

/* Estilos MODAL HISTORIAL */
.historial-body-scroll {
  max-height: 400px; /* altura fija */
  overflow-y: auto;  /* scroll vertical */
}
.historial-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.historial-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.historial-step:not(:last-child)::after {
  content: "";
  display: block;
  width: 3px;
  height: 40px;
  background: var(--bs-primary);
  margin: 0 auto;
}

.historial-icon {
  font-size: 28px;
  cursor: pointer;
  margin-bottom: .5rem;
  transition: transform 0.3s ease;
}
.historial-icon:hover { transform: scale(1.2); }
.historial-info { text-align: center; }
.historial-line {
  width: 3px;
  background: var(--bs-primary);
  height: 40px;
  margin: 0 auto; /* centra horizontalmente */
}

.historial-detail {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  padding: .75rem;
  border-radius: 8px;
  margin-top: .5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/*RESALTAR LINEA RECIEN AGREGADA*/
.highlight-row {
  outline: 3px solid #1398cc;       /* borde verde */
  outline-offset: -3px;             /* ajusta el borde dentro de la celda */
  animation: glow 2s ease-in-out;   /* animación */
}

@keyframes glow {
  0%   { outline-color: #2883a7; }
  50%  { outline-color: transparent; }
  100% { outline-color: #2883a7; }
}

