/* كتالوج الأنظمة والوحدات + منتقي احتياجات العميل */

.ops-pick-q {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.ops-pick-lead {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 650;
  color: #475569;
  line-height: 1.65;
}

.ops-pick-mode {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.ops-pick-mode-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.ops-pick-mode-card.is-on {
  border-color: #4338ca;
  background: #eef2ff;
}

.ops-pick-mode-card strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}

.ops-pick-mode-card small {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #475569;
  line-height: 1.55;
}

.ops-pick-grid {
  display: grid;
  gap: 12px;
}

.ops-pick-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.ops-pick-card.is-selected {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 1px #c7d2fe;
}

.ops-pick-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}

.ops-pick-card-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}

.ops-pick-card-title > i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #4338ca;
  flex-shrink: 0;
}

.ops-pick-card-title strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.ops-pick-card-title small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 650;
  color: #64748b;
  line-height: 1.5;
}

.ops-pick-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.ops-pick-count {
  font-size: 12px;
  font-weight: 800;
  color: #4338ca;
  background: #eef2ff;
  padding: 4px 10px;
  border-radius: 999px;
}

.ops-pick-toggle {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #c7d2fe;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: #3730a3;
  cursor: pointer;
}

.ops-pick-modules {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  display: grid;
  gap: 8px;
}

.ops-pick-mod {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2ff;
  cursor: pointer;
}

.ops-pick-mod strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.ops-pick-mod small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #64748b;
  font-weight: 650;
}

.ops-tag {
  display: inline-block;
  margin-top: 6px;
  margin-inline-end: 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 999px;
}

.ops-tag.is-hide {
  color: #1d4ed8;
  background: #eff6ff;
}

.ops-pick-empty-mod {
  margin: 10px 0 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
}

.hub-book-systems {
  margin: 10px 0 6px;
  padding: 16px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.hub-book-systems legend {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  padding: 0 6px;
}

.hub-book-systems-lead {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 650;
  color: #475569;
  line-height: 1.6;
}

.hub-book-systems [data-systems-required] {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* Admin */
.ops-admin-page {
  width: 100%;
  max-width: none;
  margin: 18px 0 72px;
  padding-inline: clamp(14px, 2vw, 28px);
  box-sizing: border-box;
  display: grid;
  gap: 18px;
}

.ops-admin-hero {
  background: linear-gradient(128deg, #1e1b4b, #4338ca);
  color: #fff;
  border-radius: 18px;
  padding: 28px 24px;
}

.ops-admin-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
  color: #fff !important;
}

.ops-admin-hero p {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.92) !important;
}

.ops-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  color: #1e1b4b;
  text-decoration: none;
}

.ops-admin-btn.primary {
  background: #4338ca;
  border-color: #4338ca;
  color: #fff;
}

.ops-admin-btn.danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.ops-admin-list {
  display: grid;
  gap: 14px;
}

.ops-admin-sys {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.ops-admin-sys header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.ops-admin-sys h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.ops-admin-sys .desc {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
}

.ops-admin-mods {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ops-admin-mod {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2ff;
}

.ops-admin-mod strong {
  font-size: 14px;
}

.ops-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #ecfdf5;
  color: #047857;
}

.ops-badge.is-off {
  background: #f1f5f9;
  color: #64748b;
}

.ops-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(15, 23, 42, 0.48);
  display: grid;
  place-items: center;
  padding: 16px;
}

.ops-modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
}

.ops-modal h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
}

.ops-modal label {
  display: block;
  margin: 10px 0 4px;
  font-size: 14px;
  font-weight: 800;
}

.ops-modal input,
.ops-modal select,
.ops-modal textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
}

.ops-modal textarea {
  min-height: 90px;
}

.ops-modal .row-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-weight: 800;
  font-size: 14px;
}

.ops-modal .row-check input {
  width: auto;
  min-height: auto;
}

@media (max-width: 700px) {
  .ops-pick-card-head {
    flex-direction: column;
  }
}
