/* تبويب «الخطة التشغيلية» — يلتزم بهوية المنصة (أبيض، تركوازي، بطاقات ناعمة) */
.pl .pl-jump { display: flex; flex-wrap: wrap; gap: 8px; }

/* الرؤية والرسالة والقيم */
.pl-vmv-card { display: grid; gap: 10px; border-top: 4px solid var(--brand-400); }
.pl-vmv-vision { border-top-color: var(--brand-500); }
.pl-vmv-mission { border-top-color: var(--brand-700); }
.pl-vmv-values { border-top-color: var(--role-target-line); }
.pl-quote { color: var(--ink-2); line-height: 1.95; font-size: 1.02rem; }
.pl-values { list-style: none; display: grid; gap: 8px; }
.pl-values li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px; font-weight: 600; color: var(--brand-800); }
.pl-values .i { color: var(--brand-600); }

/* معلومات المدرسة */
.pl-subtitle { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.pl-person { display: grid; align-content: start; }
.pl-pairs { display: grid; gap: 0; margin: 0; }
.pl-pair { display: grid; grid-template-columns: minmax(110px, 42%) 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pl-pair:last-child { border-bottom: 0; }
.pl-pair dt { color: var(--ink-3); font-size: .88rem; font-weight: 600; }
.pl-pair dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pl-stack { display: grid; gap: 22px; margin-top: 20px; }
.pl-stack > *, .pl-tablewrap, .pl-cards > * { min-width: 0; }
.pl-tablewrap .table-wrap { max-width: 100%; }
.pl-tablewrap .table { min-width: 520px; }
.pl-table th { text-align: center; }
.pl-table td { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.pl-room { display: grid; justify-items: center; gap: 2px; padding: 12px 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; }
.pl-room-n { font-size: 1.35rem; font-weight: 700; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.pl-room-l { font-size: .82rem; color: var(--ink-3); line-height: 1.5; }

/* تشخيص الواقع */
.pl-sw { border-inline-start: 5px solid var(--line-2); }
.pl-sw .card-head { align-items: center; }
.pl-sw-count { margin-inline-start: auto; background: var(--surface-3); color: var(--ink-2); border-color: var(--line); }
.pl-sw-ok { border-inline-start-color: var(--good-line); }
.pl-sw-ok .card-icon { background: var(--good-bg); color: var(--good); border-color: #bfe5cb; }
.pl-sw-info { border-inline-start-color: var(--role-delta-line); }
.pl-sw-info .card-icon { background: var(--info-bg); color: var(--info); border-color: #c9daf3; }
.pl-sw-warn { border-inline-start-color: var(--role-target-line); }
.pl-sw-warn .card-icon { background: var(--role-target-bg); color: var(--role-target); border-color: #f3e2bb; }
.pl-sw-risk { border-inline-start-color: var(--warn-line); }
.pl-sw-risk .card-icon { background: var(--warn-bg); color: var(--warn); border-color: #f6d3b3; }
.pl-sw-list { list-style: none; counter-reset: sw; display: grid; gap: 8px; }
.pl-sw-list li { position: relative; counter-increment: sw; padding-inline-start: 28px; color: var(--ink-2); line-height: 1.8; }
.pl-sw-list li::before { content: counter(sw); position: absolute; inset-inline-start: 0; top: 4px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--ink-3); font-size: .74rem; font-weight: 700; }

.pl-h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); margin-top: 34px; }
.pl-note { color: var(--ink-3); font-size: .92rem; margin-bottom: 14px; }
.pl-cards { display: grid; gap: 14px; }
.pl-an-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pl-an-no { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-600); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-an-name { font-size: 1.05rem; font-weight: 700; }
.pl-an-domain { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: .85rem; }
.pl-an-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pl-an-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.pl-an-box h5 { font-size: .85rem; color: var(--ink-3); margin-bottom: 6px; font-weight: 700; }
.pl-an-box ul { list-style: none; display: grid; gap: 4px; }
.pl-an-box li { position: relative; padding-inline-start: 14px; font-size: .92rem; color: var(--ink-2); line-height: 1.75; overflow-wrap: anywhere; }
.pl-an-box li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-400); }
.pl-an-swot { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin-top: 12px; }
.pl-an-tag { border: 1px solid var(--line); border-inline-start: 4px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 12px; background: #fff; }
.pl-an-tag > span { display: block; font-size: .76rem; font-weight: 700; color: var(--ink-3); margin-bottom: 2px; }
.pl-an-tag p { font-size: .9rem; color: var(--ink-2); line-height: 1.7; overflow-wrap: anywhere; }
.pl-an-tag.pl-sw-ok { border-inline-start-color: var(--good-line); }
.pl-an-tag.pl-sw-warn { border-inline-start-color: var(--role-target-line); }
.pl-an-tag.pl-sw-info { border-inline-start-color: var(--role-delta-line); }
.pl-an-tag.pl-sw-risk { border-inline-start-color: var(--warn-line); }

/* لجنة التميز */
.pl-tasks { list-style: none; display: grid; gap: 6px; }
.pl-tasks li { position: relative; padding-inline-start: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.pl-tasks li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-400); }
.pl-committee-table .table { min-width: 760px; }
.pl-committee-cards { display: none; }
@media (max-width: 860px) {
  .pl-committee-table, .pl-committee-table + .scroll-hint { display: none; }
  .pl-committee-cards { display: grid; gap: 14px; }
  .pl-member .card-head { flex-wrap: wrap; }
  .pl-member .badge { margin-inline-start: auto; }
}

/* البرامج التشغيلية */
.pl-progs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.pl-prog {
  display: grid; justify-items: center; text-align: center; gap: 10px; padding: 26px 18px 18px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  font: inherit; color: inherit; min-height: 190px; align-content: start;
}
.pl-prog:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.pl-prog:hover .pl-prog-icon { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.pl-prog-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(145deg, var(--brand-50), var(--brand-100)); color: var(--brand-700); border: 1px solid var(--brand-200); transition: background .25s, color .25s, border-color .25s; }
.pl-prog-name { font-size: 1.04rem; font-weight: 700; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.pl-prog-time { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--ink-3); }
.pl-prog-more { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; font-weight: 600; color: var(--brand-700); }

/* نافذة تفاصيل البرنامج */
.pl-modal { display: grid; gap: 16px; }
.pl-goal { background: linear-gradient(160deg, var(--brand-50), #fff); border: 1px solid var(--brand-100); border-radius: var(--radius-sm); padding: 14px 16px; }
.pl-goal-l { display: block; font-size: .8rem; font-weight: 700; color: var(--brand-700); margin-bottom: 4px; }
.pl-goal p { line-height: 1.85; color: var(--ink); font-weight: 600; }
.pl-objs ol { padding-inline-start: 20px; display: grid; gap: 6px; color: var(--ink-2); line-height: 1.85; }
.pl-dl { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; }
.pl-dt { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; }
.pl-dt dt { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }
.pl-dt dd { margin: 0; line-height: 1.75; overflow-wrap: anywhere; }
.pl-modal-foot { display: grid; justify-items: center; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.pl-ev { min-width: min(100%, 280px); }
.pl-ev-note { font-size: .84rem; color: var(--ink-3); }

@media (max-width: 520px) {
  .pl-prog { min-height: 170px; padding: 20px 14px 16px; }
  .pl-prog-icon { width: 56px; height: 56px; border-radius: 17px; }
  .pl-pair { grid-template-columns: 1fr; gap: 2px; }
}
.pl-dd-list { list-style: none; display: grid; gap: 4px; }
.pl-dd-list li { position: relative; padding-inline-start: 14px; line-height: 1.7; }
.pl-dd-list li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-400); }

/* ===== لوحة أيقونات الأقسام ===== */
.pl-board { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 8px; }
.pl-tile {
  position: relative; display: grid; justify-items: center; text-align: center; gap: 8px;
  padding: 30px 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); color: inherit; min-height: 230px; align-content: start;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pl-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); color: inherit; }
.pl-tile:hover .pl-tile-icon { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.pl-tile-no { position: absolute; inset-inline-start: 16px; top: 14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--ink-3); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-tile-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: linear-gradient(145deg, var(--brand-50), var(--brand-100)); color: var(--brand-700); border: 1px solid var(--brand-200); transition: background .25s, color .25s, border-color .25s; }
.pl-tile-label { font-size: 1.12rem; font-weight: 700; line-height: 1.55; color: var(--ink); }
.pl-tile-desc { font-size: .9rem; color: var(--ink-3); line-height: 1.7; max-width: 32ch; }
.pl-tile-count { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-800); font-size: .82rem; font-weight: 700; }

/* ===== شريط التنقل بين الأقسام ===== */
.pl-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; position: sticky; top: calc(var(--header-h) + 54px); z-index: 20; }
.pl-nav-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); font-weight: 600; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.pl-nav-back:hover { border-color: var(--brand-300); color: var(--brand-800); }
.pl-nav-items { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.pl-nav-items::-webkit-scrollbar { display: none; }
.pl-nav-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pl-nav-item .i { color: var(--ink-4); }
.pl-nav-item:hover { background: #fff; color: var(--brand-800); }
.pl-nav-item.active { background: var(--brand-600); color: #fff; }
.pl-nav-item.active .i { color: #fff; }
.pl-section { margin-top: 20px; }
.pl-sec-count { margin-inline-start: auto; }
@media (max-width: 760px) {
  .pl-nav { position: static; }
  .pl-nav-back { width: 100%; justify-content: center; }
  .pl-tile { min-height: 200px; padding: 24px 16px 18px; }
  .pl-tile-icon { width: 64px; height: 64px; border-radius: 20px; }
}
