        .counter-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border-left: 5px solid;
            transition: transform 0.3s ease;
            margin-bottom: 14px;
        }

        .counter-card:hover {
            transform: translateY(-5px);
        }

        .counter-card.primary { border-left-color: #667eea; }
        .counter-card.success { border-left-color: #28a745; }
        .counter-card.warning { border-left-color: #ffc107; }
        .counter-card.danger { border-left-color: #dc3545; }
        .counter-card.info { border-left-color: #17a2b8; }

        .counter-number {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 10px;
            color: #333;
        }

        .counter-label {
            font-size: 1.1rem;
            color: #666;
            font-weight: 650;
        }

        .timeline {
            position: relative;
            padding-left: 30px;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 15px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: #ddd;
        }

        .timeline-item {
            position: relative;
            margin-bottom: 10px;
            background: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -22px;
            top: 20px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #667eea;
        }

        .timeline-item.completed::before {
            background: #28a745;
        }

        .timeline-item.pending::before {
            background: #ffc107;
        }

        .status-badge {
            display: inline-block;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 1.1rem;
        }

        .badge-enviado { background: #e3f2fd; color: #1976d2; }
        .badge-na_vfs { background: #f3e5f5; color: #7b1fa2; }
        .badge-aguardando_consulado { background: #fff3e0; color: #f57c00; }
        .badge-no_consulado { background: #fce4ec; color: #c2185b; }
        .badge-devolvendo { background: #e8f5e8; color: #388e3c; }
        .badge-finalizado { background: #e8f5e8; color: #388e3c; }

.badge-pendencia {
    background: #f39c12; /* Laranja/Amarelo para indicar atenção */
    color: white;
}

        .search-result {
            display: none;
        }

        .search-result.show {
            display: block;
            animation: fadeIn 0.5s ease-in;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .detail-item {
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #667eea;
            margin-bottom: 10px;
        }

        .detail-label {
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
        }

        .detail-value {
            color: #666;
        }
        
        .counter-date {
        font-size: 1.1rem;
        color: #999;
        font-weight: normal;
        margin-top: 5px;
        }
        
        .conteudo-pesq {
        font-size: 1.5rem;
        }
        
.counter-card.secondary { border-left-color: #6c757d; }
.counter-card.alert-total { background-color: #ffe6e6 !important; border-left-color: #dc3545 !important; }
.counter-card.alert-consulado { background-color: #fff3cd !important; border-left-color: #ffc107 !important; }

/* ===== SOLUÇÃO PARA MOBILE ===== */
/* Unifica todos os estilos para telas menores que 768px */
@media (max-width: 767px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .counter-card {
        flex-direction: row;      /* Itens em linha (ícone/número ao lado do texto) */
        align-items: center;      /* Alinha os itens verticalmente ao centro */
        text-align: left;         /* Alinha todo o texto à esquerda */
        padding: 15px;          /* Padding geral menor para um card mais compacto */
        padding-bottom: 45px;   /* Deixa espaço na base para a data */
        min-height: auto;
    }

    .counter-main-content {
        flex-direction: row;
        margin-bottom: 0;
    }

    .counter-number {
        margin-right: 4px;
        margin-bottom: 0;   /* Remove Espaço abaixo do número */
        font-size: 2rem;      /* Tamanho do número um pouco menor */
    }

    .counter-label {
        font-size: 0.95rem;   /* Rótulo um pouco menor */
        text-align: left;     /* Posiciona na esquerda o texto */
        line-height: 1.3;
    }

    .counter-date {
        /* A data continua no mesmo lugar, no canto inferior direito */
        bottom: 10px;
        right: 15px;
        left: auto;
        transform: none;
        font-size: 0.8rem;
        padding: 3px 6px;
    }
}

        /* Ajustes extras para telas muito pequenas */
        @media (max-width: 480px) {
            .counter-card {
                margin-bottom: 2px;
            }
            
            .counter-number {
                font-size: 1.8rem;
            }
            
            .counter-label {
                font-size: 0.9rem;
                line-height: 1.3;
                text-align: left;     /* Posiciona na esquerda o texto */
            }
        }
