/* ============================================
   ESTILOS DE ANDAMENTO DO PROTOCOLO
   ============================================ */

/* Timeline de Histórico */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00A2AC, #e0e0e0);
}

.timeline-item {
    position: relative;
    margin-left: 80px;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #00A2AC;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid #00A2AC;
    box-shadow: 0 0 0 3px #f8f9fa;
}

.timeline-item.status-pendente {
    border-left-color: #ffc107;
}

.timeline-item.status-pendente::before {
    border-color: #ffc107;
}

.timeline-item.status-aprovado,
.timeline-item.status-aprovado_sem_pagamento,
.timeline-item.status-aprovado_pagamento {
    border-left-color: #28a745;
}

.timeline-item.status-aprovado::before,
.timeline-item.status-aprovado_sem_pagamento::before,
.timeline-item.status-aprovado_pagamento::before {
    border-color: #28a745;
    background: #28a745;
}

.timeline-item.status-retirado {
    border-left-color: #007bff;
}

.timeline-item.status-retirado::before {
    border-color: #007bff;
    background: #007bff;
}

.timeline-item.status-devolvido {
    border-left-color: #6c757d;
}

.timeline-item.status-devolvido::before {
    border-color: #6c757d;
    background: #6c757d;
}

.timeline-item.status-rejeitado,
.timeline-item.status-cancelado {
    border-left-color: #dc3545;
}

.timeline-item.status-rejeitado::before,
.timeline-item.status-cancelado::before {
    border-color: #dc3545;
    background: #dc3545;
}

.timeline-date {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-status.status-pendente {
    background: #fff3cd;
    color: #856404;
}

.timeline-status.status-aprovado,
.timeline-status.status-aprovado_sem_pagamento,
.timeline-status.status-aprovado_pagamento {
    background: #d4edda;
    color: #155724;
}

.timeline-status.status-retirado {
    background: #d1ecf1;
    color: #0c5460;
}

.timeline-status.status-devolvido {
    background: #e2e3e5;
    color: #383d41;
}

.timeline-status.status-rejeitado,
.timeline-status.status-cancelado {
    background: #f8d7da;
    color: #721c24;
}

.timeline-motivo {
    font-size: 0.95rem;
    color: #333;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 3px;
    border-left: 3px solid #00A2AC;
}

/* Indicador de Protocolo Encerrado */
.protocolo-encerrado-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    margin: 0.5rem 0;
}

/* Seção de Andamento */
.secao-andamento {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.secao-andamento h3 {
    color: #00A2AC;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.secao-andamento h3::before {
    content: '📊';
}

/* Responsivo */
@media (max-width: 768px) {
    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        margin-left: 50px;
    }

    .timeline-item::before {
        left: -30px;
    }

    .secao-andamento {
        padding: 1rem;
    }
}
