/* مكتبة الأوصاف الوظيفية — ملف 09 */

.jr-page {
  padding: 24px 0 64px;
}

.jr-hero {
  background: linear-gradient(128deg, #064e3b 0%, #047857 45%, #059669 100%);
  color: #fff;
  border-radius: 22px;
  padding: 32px 28px;
  margin-bottom: 18px;
  box-shadow: 0 24px 60px rgba(4, 120, 87, 0.35);
}

.jr-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  color: #ffffff !important;
}

.jr-hero p {
  margin: 0;
  max-width: 72ch;
  line-height: 1.75;
  color: rgba(255, 245, 247, 0.96) !important;
  font-size: 15px;
  font-weight: 700;
}

.jr-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.jr-kpi {
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}

.jr-kpi strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: #047857;
}

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

.jr-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.jr-toolbar input {
  min-height: 42px;
  border: 1px solid #d1fae5;
  border-radius: 12px;
  padding: 0 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
}

.jr-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jr-cats button {
  border: 1px solid #d1fae5;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  color: #334155;
}

.jr-cats button.is-active {
  background: #047857;
  border-color: #047857;
  color: #fff;
}

.jr-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.jr-card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.jr-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.jr-cat {
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
}

.jr-card p {
  margin: 0;
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.65;
}

.jr-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: #047857;
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

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

.jr-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #047857;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.4);
  z-index: 999;
}

.jr-toast[hidden] {
  display: none;
}
