.dea-content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px;
  color: #1f2937;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.dea-page-header { margin-bottom: 18px; }
.dea-page-header h1 {
  margin: 0;
  color: #1f2937;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
}
.dea-page-header p {
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
}

.dea-filter-strip {
  display: grid;
  grid-template-columns: 1.2fr .9fr .75fr 1.65fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.dea-filter-field { min-width: 0; }
.dea-filter-field label {
  display: block;
  margin-bottom: 4px;
  color: #4b5563;
  font-size: 10px;
  line-height: 12px;
}
.dea-filter-field .Select-control {
  height: 38px !important;
  min-height: 38px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
.dea-filter-field .Select-value,
.dea-filter-field .Select-placeholder {
  line-height: 36px !important;
  color: #1f2937 !important;
  font-size: 13px !important;
}
.dea-filter-field .Select-input { height: 36px !important; }
.dea-filter-field .Select-input > input { padding: 9px 0 7px !important; }

.dea-method-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 3px solid #1351b4;
  border-radius: 6px;
  background: #f4f8fd;
}
.dea-method-note .material-symbols-outlined {
  color: #1351b4;
  font-size: 18px;
}
.dea-method-note p {
  flex: 1 1 auto;
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 18px;
}
.dea-method-download {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #1351b4;
  border-radius: 5px;
  color: #1351b4;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.dea-method-download:hover { background: #eaf2ff; }
.dea-method-download .material-symbols-outlined { font-size: 16px; }

.dea-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.dea-kpi {
  display: flex;
  height: 88px;
  align-items: center;
  overflow: hidden;
  padding-right: 20px;
  border: 1px solid #ebedf0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.dea-kpi-accent { align-self: stretch; width: 4px; }
.dea-kpi-accent--red { background: #db2626; }
.dea-kpi-accent--blue { background: #1351b4; }
.dea-kpi-accent--green { background: #168821; }
.dea-kpi-accent--yellow { background: #ffcd07; }
.dea-kpi-accent--teal { background: #00a88e; }
.dea-kpi-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding-left: 16px;
}
.dea-kpi-copy strong {
  color: #121721;
  font-size: 26px;
  font-weight: 700;
  line-height: 32px;
}
.dea-kpi-copy span {
  overflow: hidden;
  color: #6b737d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dea-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}
.dea-map-card,
.dea-ranking-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .03);
}
.dea-map-card { min-width: 0; padding: 16px; }
.dea-card-header,
.dea-ranking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dea-card-header { margin-bottom: 8px; }
.dea-card-header h2,
.dea-ranking-header h2 {
  margin: 0;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.dea-card-header p {
  margin: 2px 0 0;
  color: #6b737d;
  font-size: 10px;
}
.dea-map-tag {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 5px;
  background: #eaf2ff;
  color: #1351b4;
  font-size: 10px;
  font-weight: 600;
}
.dea-map-card .dash-graph {
  overflow: hidden;
  border-radius: 8px;
  background: #f0f5f7;
}

.dea-ranking-card { height: 502px; padding: 18px; }
.dea-ranking-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f2;
}
.dea-ranking-header span { color: #1351b4; font-size: 12px; }
.dea-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
}
.dea-ranking-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 53px;
  padding: 7px 8px;
  border-radius: 6px;
}
.dea-ranking-item:nth-child(odd) { background: #f8f9fa; }
.dea-ranking-position {
  color: #1351b4;
  font-size: 13px;
  font-weight: 600;
}
.dea-ranking-meta { min-width: 0; }
.dea-ranking-meta strong,
.dea-ranking-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dea-ranking-meta strong { color: #1f2937; font-size: 12px; }
.dea-ranking-meta small { margin-top: 1px; color: #6b737d; font-size: 9px; }
.dea-ranking-value { color: #00a88e; font-size: 12px; white-space: nowrap; }
.dea-ranking-bar {
  height: 3px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}
.dea-ranking-bar > div { height: 100%; border-radius: inherit; background: #1351b4; }
.dea-ranking-empty { padding: 24px 8px; color: #6b737d; font-size: 12px; }

@media (max-width: 1100px) {
  .dea-filter-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dea-filter-field--municipio { grid-column: span 2; }
  .dea-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dea-analysis-grid { grid-template-columns: 1fr; }
  .dea-ranking-card { height: auto; }
}

@media (max-width: 760px) {
  .dea-content { padding: 20px 16px 32px; }
  .dea-filter-strip { grid-template-columns: 1fr; }
  .dea-filter-field--municipio { grid-column: auto; }
  .dea-kpi-grid { grid-template-columns: 1fr; gap: 10px; }
  .dea-kpi { height: 76px; }
  .dea-analysis-grid { grid-template-columns: minmax(0, 1fr); }
  .dea-card-header { display: block; }
  .dea-map-tag { display: inline-block; margin-top: 8px; }
  .dea-method-note { flex-wrap: wrap; }
  .dea-method-download { margin-left: 27px; }
}
