/* Estilos para el Timeline */
.timeline {
    position: relative;
    padding-left: 50px;
    margin: 30px 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

/* Avatar con iniciales */
.timeline-item::before {
    content: attr(data-iniciales);
    position: absolute;
    left: -50px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0d6efd;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
}

/* Estilo para el primer elemento (actual) */
.timeline-item:first-child {
    border-left: 3px solid #0d6efd;
    padding-left: 10px;
}

.timeline-item:first-child::before {
    background: #198754;
}

.timeline-item:first-child .card {
    border: 1px solid #0d6efd;
    background-color: #f8f9fa;
}

/* Badge "Actual" */
.current-badge {
    position: absolute;
    right: 15px;
    top: 15px;
    background-color: #0d6efd;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.timeline-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Efecto hover para los items */
.timeline-item:hover .card {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Spinner de carga */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.text-center {
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* detail.view */
.width96 {
    min-width: 96px;
}

.sticky-col {
    position: sticky;
    left: 0;
    background: white;
    /* Fondo para evitar transparencias */
    z-index: 1;
    /* Asegura que estén por encima al hacer scroll */
}

/* Para la segunda columna fija */
/* .sticky-col:nth-child(2) { */
/* left: 40px; */
/* Ajusta según el ancho de la primera columna */
/* } */

/* Si usas Bootstrap, asegúrate de que la tabla no tenga bordes colapsados */
/* .table {
    border-collapse: separate !important;
    border-spacing: 0;
} */