/* Importação Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Dashboard Wrapper */
#edil-dashboard-wrapper { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.edil-stats-panel { background: #f0f4f8; border-radius: 8px; padding: 20px; margin-bottom: 25px; }
.edil-stats-panel h2 { display: flex; align-items: center; gap: 8px; margin-top: 0; color: #1e293b; }

.edil-charts-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; }
.edil-chart-box { background: #fff; border-radius: 6px; padding: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); height: 320px; }
.edil-chart-box h3 { font-size: 14px; text-transform: uppercase; margin-top: 0; color: #0073aa; display: flex; align-items: center; justify-content: center; gap: 6px; }

.edil-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.edil-stat-box { background: #fff; padding: 15px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.edil-stat-box h3 { font-size: 14px; text-transform: uppercase; margin-top: 0; color: #0073aa; display: flex; align-items: center; gap: 6px; }
.edil-stat-box ul { list-style: none; padding: 0; margin: 0; font-size: 13px; }

.edil-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.edil-filter-group { display: flex; align-items: center; gap: 6px; }
.edil-btn-print { background-color: #28a745; color: white; border: none; padding: 10px 18px; border-radius: 4px; cursor: pointer; font-weight: bold; display: flex; align-items: center; gap: 6px; }
.edil-btn-print:hover { background-color: #218838; }

/* Grid Geral dos Cards */
.edil-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.edil-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 18px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }

/* 1. Nome no Topo */
.edil-card-header { text-align: center; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 12px; }
.edil-card-header h3 { margin: 0; font-size: 18px; color: #1e293b; text-transform: uppercase; letter-spacing: 0.5px; }

/* 2. Grid Intermediário: Foto Esquerda + Info Direita */
.edil-card-body-grid { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: start; margin-bottom: 12px; }
.edil-card-photo-box { text-align: center; }
.edil-avatar { width: 95px; height: 115px; border-radius: 6px; object-fit: cover; border: 2px solid #0073aa; }

.edil-card-section h4 { font-size: 12px; color: #0073aa; letter-spacing: 0.5px; border-bottom: 1px solid #eee; margin-top: 0; margin-bottom: 6px; padding-bottom: 3px; display: flex; align-items: center; gap: 4px; }
.edil-card-section ul { list-style: none; padding: 0; margin: 0; font-size: 12px; }
.edil-card-section ul li { margin-bottom: 4px; display: flex; align-items: center; gap: 4px; word-break: break-word; }

/* 3. Seção Eleições na Parte Inferior */
.edil-eleicoes-section { border-top: 1px solid #f0f0f0; padding-top: 10px; }
.edil-status-eleito { font-size: 12px; margin: 0 0 8px 0; display: flex; align-items: center; gap: 4px; }
.edil-historico { font-size: 12px; }
.edil-historico ul { margin-top: 4px; }

/* Paginação */
.edil-pagination { display: flex; gap: 5px; justify-content: center; margin-top: 25px; }
.edil-page-btn { padding: 8px 12px; border: 1px solid #ccc; background: #fff; cursor: pointer; border-radius: 4px; }
.edil-page-btn.active { background: #0073aa; color: #fff; border-color: #0073aa; }

/* Impressão */
@media print {
    body * { visibility: hidden; }
    #edil-dashboard-wrapper, #edil-dashboard-wrapper * { visibility: visible; }
    #edil-dashboard-wrapper { position: absolute; left: 0; top: 0; width: 100%; }
    .edil-controls, .edil-pagination { display: none !important; }
    .edil-cards-grid { display: block; }
    .edil-card { page-break-inside: avoid; margin-bottom: 20px; border: 1px solid #000; }
}