/* KÖR 1 – Ekonomiöversikt */
.eco-hero {
  background: #16231e;
  color: #f8fafc;
  padding: 1.5rem 1.25rem 1.75rem;
}
.eco-hero-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.eco-hero-title {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.eco-hero-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.eco-hero-icon svg { width: 1.35rem; height: 1.35rem; }
.eco-hero h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.eco-hero p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: rgba(248, 250, 252, 0.72);
  max-width: 36rem;
}

.eco-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 5rem;
}

.eco-attention {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}
.eco-attention h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
.eco-attention-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.eco-attention-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.eco-attention-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #334155;
  flex: 1;
  min-width: 12rem;
}
.eco-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}
@media (min-width: 768px) {
  .eco-counts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.eco-count-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
}
.eco-count-card strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.eco-count-card span {
  font-size: 0.78rem;
  color: #64748b;
}
.eco-count-card--na strong {
  color: #94a3b8;
  font-weight: 700;
}
.eco-metric-na {
  font-style: normal;
  color: #94a3b8;
  font-weight: 500;
}
.eco-compat-note {
  margin-bottom: 0.35rem;
}

.eco-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.eco-toolbar input,
.eco-toolbar select {
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  background: #fff;
  color: #0f172a;
}
.eco-toolbar input { flex: 1; min-width: 12rem; }

.eco-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.eco-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.eco-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: flex-start;
  justify-content: space-between;
}
.eco-card-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.eco-card-meta {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}
.eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.eco-badge--ready { background: #dcfce7; color: #166534; }
.eco-badge--warn { background: #fef3c7; color: #92400e; }
.eco-badge--progress { background: #e0f2fe; color: #075985; }
.eco-badge--reserved { background: #f1f5f9; color: #475569; }

.eco-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.85rem;
  font-size: 0.84rem;
  color: #475569;
}
@media (min-width: 640px) {
  .eco-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.eco-metrics strong { color: #0f172a; font-weight: 700; }

.eco-issues {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  color: #92400e;
}
.eco-issues li { margin: 0.15rem 0; }

.eco-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.eco-card-check {
  margin-right: 0.35rem;
}
.eco-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
}
.eco-bulk[hidden] { display: none !important; }

.eco-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.65rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.eco-btn-primary {
  background: #16231e;
  color: #fff;
}
.eco-btn-secondary {
  background: #fff;
  color: #0f172a;
  border-color: #e2e8f0;
}
.eco-muted {
  color: #64748b;
  font-size: 0.92rem;
}
.eco-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
}

.eco-attention-more {
  margin-top: 0.75rem;
}

.eco-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.eco-group--blocking {
  border-color: #fecaca;
  background: #fff7f7;
}
.eco-group--warning {
  border-color: #fde68a;
  background: #fffbeb;
}
.eco-group-main {
  flex: 1 1 14rem;
  min-width: 0;
}
.eco-sev {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.45rem;
  border-radius: 0.4rem;
  margin-bottom: 0.35rem;
}
.eco-sev--blocking { background: #fee2e2; color: #991b1b; }
.eco-sev--warning { background: #fef3c7; color: #92400e; }
.eco-group-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
  color: #0f172a;
}
.eco-group-count {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.82rem;
  color: #64748b;
}
.eco-group-issues {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: #334155;
}
.eco-group-issues li { margin: 0.12rem 0; }
.eco-group-more { color: #64748b; font-weight: 600; }

.eco-ao-section {
  margin-top: 0.35rem;
}
.eco-ao-head {
  margin-bottom: 0.75rem;
}
.eco-ao-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: #0f172a;
}
.eco-ao-head .eco-muted {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
}
.eco-card-tip {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}
.eco-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
}
.eco-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 430px) {
  .eco-main { padding-left: 0.85rem; padding-right: 0.85rem; padding-bottom: 5.5rem; }
  .eco-group { flex-direction: column; }
  .eco-group .eco-btn { width: 100%; }
  .eco-toolbar input { min-width: 0; width: 100%; }
  .eco-toolbar select { width: 100%; }
}
