/* Base - substitua ou importe o CSS exportado do Figma em figma.css */
:root {
  --primary: #1a5f4a;
  --primary-dark: #0f3d30;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: hidden; }

body.site {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background: #f5f5f5;
}

.site-header {
  background: var(--primary-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-brand a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
}

.site-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  margin-left: 1.5rem;
}

.site-nav a:hover {
  color: #fff;
}

.site-main {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer {
  text-align: center;
  padding: 1rem;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  padding: 4rem 1.25rem 1rem 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.card-body { padding: 1.25rem; }

/* Selects Pesquisa Projetos: 10% Tipo, 30% Unidade, 30% Subunidade, 25% Coordenador */
.selects-filtro { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) {
  .selects-filtro { grid-template-columns: 10% 30% 30% 25%; }
}

table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #eee; }
table th { background: #f8f9fa; font-weight: 600; }

.btn { display: inline-block; padding: 0.4rem 0.8rem; font-size: 0.9rem; text-decoration: none; border-radius: 6px; border: none; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }

/* ODS subgrid */
.ods-subgrid.collapsed { display: none; }
.ods-subgrid td { padding: 0; background: #f8f9fa; }
.ods-subgrid-content { padding: 1rem 1.5rem 1rem 3rem; }
.ods-subtable { width: auto; font-size: 0.9rem; }
.ods-subtable th, .ods-subtable td { padding: 0.35rem 1rem 0.35rem 0; }
.btn-ods-toggle { margin-right: 0.25rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-item {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label { font-size: 0.9rem; color: #666; }

.table-responsive { overflow-x: auto; }

.project-detail .project-title { margin-bottom: 1rem; font-size: 1.25rem; }
.project-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.5rem; margin-bottom: 1rem; }
.project-meta dt { font-weight: 500; color: #666; }
.project-meta dd { margin: 0; }
.project-detail h3 { font-size: 1rem; margin: 1rem 0 0.5rem; }
.ods-list { margin: 0; padding-left: 1.5rem; }
.project-resumo { margin-top: 0.5rem; line-height: 1.6; }

/* Carrossel - esconder scrollbar */
.carrossel-track::-webkit-scrollbar { display: none; }
