/**
 * Estilos para os boxes de dados históricos
 */

 .font-heading-dados-historicos {
    font-family: "Barlow Condensed", sans-serif;
 }

 .font-span-dados-historicos {
    font-size: 17px;
 }

 .p-5-fixed {
    padding: 5px!important;
 }

 .p-15-fixed {
    padding: 19px 7px 19.4px 7px!important;
 }

 .p-20-fixed {
    padding: 27px 7px 27.3px 7px!important;
 }
 
.dados-historicos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.dados-historicos-container-combined {
    margin-bottom: 30px;
}

.dados-historicos-container-combined .dados-historicos-container {
    margin-bottom: 20px;
}

.historico-box {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    overflow: hidden;
}

.historico-box h3 {
    font-size: 18px;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.historico-box h4 {
    font-size: 16px;
    color: #555;
    margin: 15px 0 10px;
}

.tabela-scroll {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.historico-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.historico-table th {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: left;
    font-weight: bold;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #ddd;
}

.historico-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.historico-table tr:hover {
    background-color: #f9f9f9;
}

.votacao-box {
    border-top: 4px solid #4285f4;
}

.chapas-box {
    border-top: 4px solid #ea4335;
}

/* Estilo para o box de montagem da chapa 2026 */
.montagem-box {
    border-top: 3px solid #1da36e;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
}

.montagem-box h3 {
    font-size: 1.4em;
    margin-top: 0;
    color: #333;
}

.montagem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.montagem-section {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 4px;
}

.montagem-section h4 {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #444;
}

.info-item {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.info-value {
    color: #333;
}

.text-warning {
    color: #e74c3c;
    font-weight: bold;
}

.text-success {
    color: #1da36e;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
    .dados-historicos-container {
        flex-direction: column;
    }
    
    .historico-box {
        min-width: 100%;
    }
}

/* Estilos para a tabela de montagem da chapa */
.montagem-table {
    width: 100%;
    margin-bottom: 20px;
}

.montagem-table td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.montagem-table td.info-label {
    font-weight: bold;
    color: #555;
}

.montagem-table td.info-value {
    font-weight: normal;
}

.montagem-cota-racial {
    margin-top: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 12px;
}

/* Estilos para a tabela de cadastro de candidatos */
.cadastro-candidatos-container {
    margin: 20px 0;
}

.cadastro-candidatos-container h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.cadastro-candidatos-container .table-container {
    overflow-x: auto;
    max-width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.cadastro-candidatos-container .form-control,
.cadastro-candidatos-container .form-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.cadastro-candidatos-container textarea.form-control {
    height: 60px;
    resize: vertical;
}

.cadastro-candidatos-container .edit-candidate {
    display: inline-flex;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cadastro-candidatos-container .edit-candidate:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Botão de salvar */
#save-candidates {
    font-weight: bold;
    cursor: pointer;
}

/* Estilos para o componente de autocomplete */
.autocomplete-suggestions {
    border: 1px solid #ddd;
    background: white;
    overflow: auto;
    max-height: 300px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 9999;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover, 
.suggestion-item:focus {
    background-color: #f5f5f5;
}

/* Tabela de cadastro de candidatos */
.candidates-table th:nth-child(3),
.candidates-table td:nth-child(3) {
    min-width: 250px; /* Aumenta a largura da coluna Nome de Urna */
    width: 250px;
} 