/* قائمة قدرات نايوش هوب — عرض كامل + شبكة حتى 6 كروت */

.hcl-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.hcl-kpi {
  background: #fff;
  border: 1px solid #e0f2fe;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  min-width: 0;
}

.hcl-kpi strong {
  display: block;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 900;
  color: #0369a1;
  font-variant-numeric: lining-nums;
}

.hcl-kpi span {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
}

.hcl-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
}

.hcl-toolbar input {
  min-height: 52px;
  border: 1px solid #e0f2fe;
  border-radius: 12px;
  padding: 0 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.hcl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.hcl-filters button {
  border: 1px solid #e0f2fe;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: #334155;
}

.hcl-filters button.is-active {
  background: #0369a1;
  border-color: #0369a1;
  color: #fff;
}

/* حتى 6 قدرات في الصف على الشاشات الواسعة */
.hcl-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.hcl-card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 100%;
  box-sizing: border-box;
}

.hcl-card header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.hcl-card h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.4;
  flex: 1 1 120px;
  word-break: break-word;
}

.hcl-card p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.55;
  flex: 1;
}

.hcl-badge {
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.hcl-badge--done {
  background: #dcfce7;
  color: #166534;
}
.hcl-badge--partial {
  background: #fef9c3;
  color: #854d0e;
}
.hcl-badge--missing {
  background: #fee2e2;
  color: #991b1b;
}

.hcl-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #0369a1;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

.hcl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: #64748b;
  font-weight: 800;
}

@media (max-width: 1400px) {
  .hcl-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .hcl-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hcl-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hcl-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hcl-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hcl-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 420px) and (max-width: 640px) {
  .hcl-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
