/* ===== PORTAL DA TRANSPARÊNCIA ===== */
.portal-header {
    background: linear-gradient(135deg, #1a5fb4 0%, #26a269 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 0 0 10px 10px;
}

.logo-transparencia {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-transparencia i {
    font-size: 48px;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-publico {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card-publico:hover {
    transform: translateY(-5px);
}

.stat-value-publico {
    font-size: 32px;
    font-weight: bold;
    color: #1a5fb4;
    margin: 10px 0;
}

.stat-label-publico {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-sub {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.progress-bar-publico {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill-publico {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-empenhado { background: #3498db; }
.progress-pago { background: #27ae60; }

/* Filtros */
.filtros-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

/* Cards de Emendas */
.card-emenda-publico {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.card-emenda-publico:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.emenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.emenda-numero {
    font-size: 24px;
    font-weight: bold;
    color: #1a5fb4;
}

.emenda-vereador {
    color: #666;
    font-size: 14px;
}

.emenda-vereador strong {
    color: #333;
}

.emenda-tipo {
    margin-top: 5px;
    font-size: 12px;
}

/* Badges de Status */
.status-badge-publico {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-proposta { background: #e3f2fd; color: #1976d2; }
.badge-aprovada { background: #e8f5e9; color: #2e7d32; }
.badge-concluida { background: #fff3e0; color: #f57c00; }

/* Badges de Tipo */
.tipo-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 5px;
}

.badge-individual { background: #e8f5e9; color: #388e3c; }
.badge-bancada { background: #fff3e0; color: #f57c00; }
.badge-livre { background: #e3f2fd; color: #1976d2; }
.badge-saude { background: #f3e5f5; color: #7b1fa2; }

/* Badges de Indicação */
.badge-indicacao {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 12px;
    margin-left: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-generica {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid #5a67d8;
}

.badge-definida {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: 1px solid #e3342f;
}

.indicacao-info {
    display: inline-block;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    font-size: 13px;
    margin: 5px 0;
    width: 100%;
}

.indicacao-info strong {
    color: #2c3e50;
    margin-right: 5px;
}

/* Fotos */
.vereador-foto-circular {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1a5fb4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.vereador-sem-foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    border: 2px solid #1a5fb4;
}

.partido-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    border: 2px solid #1a5fb4;
}

/* Timeline */
.timeline-execucao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

.timeline-execucao::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
}

.etapa {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.etapa-icon {
    width: 34px;
    height: 34px;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 14px;
    color: #666;
}

.etapa.ativa .etapa-icon,
.etapa.completa .etapa-icon {
    border-color: #27ae60;
    background: #27ae60;
    color: white;
}

.etapa-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.etapa-valor {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.etapa-perc {
    font-size: 12px;
    color: #27ae60;
    font-weight: bold;
}

/* Botões */
.btn-publico {
    background: #1a5fb4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-publico:hover {
    background: #164d94;
}

.btn-outline-publico {
    background: transparent;
    color: #1a5fb4;
    border: 2px solid #1a5fb4;
    padding: 8px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-publico:hover {
    background: #1a5fb4;
    color: white;
}

.btn-download-plano-compacto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a5fb4 0%, #26a269 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-download-plano-compacto:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 95, 180, 0.3);
    color: white;
}

.btn-download-plano-compacto i:first-child {
    font-size: 16px;
    color: #ff6b6b;
}

.btn-download-plano-compacto i:last-child {
    font-size: 14px;
    opacity: 0.8;
}

/* Detalhes Expansíveis */
.detalhes-emenda {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f9f9f9;
    border-radius: 5px;
    margin-top: 10px;
}

.detalhes-emenda.active {
    max-height: 2000px;
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.detalhes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.detalhe-item {
    background: white;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #1a5fb4;
}

.detalhe-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.detalhe-valor {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Seções de Detalhes */
.secao-detalhes {
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.secao-detalhes h4 {
    margin-top: 0;
    color: #1a5fb4;
    border-bottom: 2px solid #1a5fb4;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.detalhe-tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.detalhe-tabela th {
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #ddd;
    font-size: 14px;
}

.detalhe-tabela td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: top;
}

.detalhe-tabela tr:hover {
    background: #f9f9f9;
}

/* Status e Badges */
.status-empenho {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status-ativo { background: #d4edda; color: #155724; }
.status-liquidado { background: #cce5ff; color: #004085; }
.status-cancelado { background: #f8d7da; color: #721c24; }

.badge-detalhe {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.badge-empenho { background: #e3f2fd; color: #1565c0; }
.badge-liquidacao { background: #e8f5e8; color: #2e7d32; }
.badge-pagamento { background: #fff3e0; color: #ef6c00; }

.sub-tabela {
    width: 100%;
    border-collapse: collapse;
    margin: 5px 0;
    font-size: 13px;
}

.sub-tabela th {
    background: #f9f9f9;
    padding: 5px;
    font-weight: normal;
    text-align: left;
}

.sub-tabela td {
    padding: 5px;
    border-top: 1px solid #eee;
}

.sem-dados {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

.numero-documento {
    font-family: monospace;
    font-weight: bold;
    color: #333;
}

.valor-detalhe {
    font-weight: bold;
    color: #1a5fb4;
}

.data-detalhe {
    color: #666;
    font-size: 13px;
}

/* Campo de Proponente */
.proponente-filter-field {
    display: none;
}

.proponente-filter-field.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Container e utilitários */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .timeline-execucao {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-execucao::before {
        display: none;
    }
    
    .etapa {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .etapa-icon {
        margin: 0 15px 0 0;
    }
    
    .etapa-info {
        text-align: left;
    }
}