/* «مكتب رئيس القسم»: مربعات المشاريع والتوصيات والمهام والمدراء والاجتماعات */
.ho-root{--ho-ink:#0f172a;--ho-muted:#64748b;--ho-line:#e2e8f0;--ho-soft:#f8fafc;color:var(--ho-ink);line-height:1.6;display:flex;flex-direction:column;gap:14px;font-family:inherit;min-width:0}
.ho-root *{box-sizing:border-box}
.ho-root h1,.ho-root h2,.ho-root h3,.ho-root p,.ho-root ul{margin:0}
.ho-root ul{padding:0;list-style:none}
.ho-root button,.ho-root select,.ho-root input,.ho-root textarea{font:inherit;color:inherit}
.ho-root button:focus-visible,.ho-root select:focus-visible,.ho-root input:focus-visible,.ho-root textarea:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.ho-muted{color:var(--ho-muted);font-size:13px}
.ho-hint{color:var(--ho-muted);font-size:12px}
.ho-loading,.ho-error-box{padding:28px;border:1px solid var(--ho-line);border-radius:18px;background:#fff;text-align:center;color:var(--ho-muted)}
.ho-error-box{color:#b91c1c;border-color:#fecaca;background:#fef2f2;display:flex;gap:12px;justify-content:center;align-items:center}
.ho-error{color:#b91c1c;font-size:13px;font-weight:700}

/* الرأس */
.ho-hero{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;border-radius:20px;border:1px solid #dbeafe;background:linear-gradient(135deg,#eff6ff 0%,#fff 60%,#f5f3ff 100%)}
.ho-hero h1{font-size:22px;font-weight:900;color:#1e3a8a}
.ho-hero-side{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.ho-today{display:flex;flex-direction:column;text-align:left;line-height:1.3}
.ho-today b{font-size:15px;font-weight:800}
.ho-today small{font-size:11.5px;color:var(--ho-muted)}
.ho-period{display:flex;flex-wrap:wrap;gap:6px}
.ho-period select,.ho-filters select,.ho-filters input,.ho-form select,.ho-form input,.ho-form textarea{border:1px solid var(--ho-line);border-radius:10px;background:#fff;padding:6px 10px;font-size:13px;min-width:0}

/* شريط «يحتاج تدخلك» */
.ho-attention{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 14px;border-radius:16px;border:1px solid #fde68a;background:#fffbeb;font-size:13.5px}
.ho-attention b{color:#92400e}
.ho-attention.is-clear{border-color:#bbf7d0;background:#f0fdf4}
.ho-attention.is-clear b{color:#166534}

/* الشبكة والمربعات */
.ho-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.ho-box{background:#fff;border:1px solid var(--ho-line);border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:10px;box-shadow:0 1px 2px #0f172a0a;min-width:0}
#head-office-meetings{grid-column:1/-1}
.ho-box-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.ho-box-head h2{font-size:17px;font-weight:900;display:flex;align-items:center;gap:8px}
.ho-box-body{display:flex;flex-direction:column;gap:10px;min-width:0}
.ho-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px}
.ho-stat{border:1px solid var(--ho-line);border-radius:14px;padding:8px 10px;display:flex;flex-direction:column;align-items:flex-start;background:var(--ho-soft);text-align:right;min-width:0}
button.ho-stat{cursor:pointer}
.ho-stat.is-active{box-shadow:inset 0 0 0 2px currentColor}
.ho-stat b{font-size:20px;font-weight:900;line-height:1.2}
.ho-stat span{font-size:12px;color:var(--ho-muted);font-weight:700}
.ho-more{align-self:center;border:0;background:none;color:#1d4ed8;font-weight:800;font-size:13px;cursor:pointer;padding:4px 10px}
.ho-empty{color:var(--ho-muted);font-size:13px;padding:10px;text-align:center;background:var(--ho-soft);border-radius:12px}

/* القوائم */
.ho-list{display:flex;flex-direction:column;gap:6px}
.ho-row{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--ho-line);border-radius:12px;background:#fff;padding:8px 10px;cursor:pointer;text-align:right}
.ho-row:hover{border-color:#bfdbfe;background:#f8fbff}
.ho-row-main{display:flex;flex-direction:column;min-width:0;flex:1}
.ho-row-main b{font-size:14px;font-weight:800;overflow-wrap:anywhere}
.ho-row-main small,.ho-rec-text small{font-size:12px;color:var(--ho-muted)}
.ho-row-side{display:flex;align-items:center;gap:8px;flex-shrink:0}
.ho-date{display:inline-flex;flex-direction:column;line-height:1.25;text-align:left;white-space:nowrap}
.ho-date b{font-size:12.5px;font-weight:800}
.ho-date small{font-size:10.5px;color:var(--ho-muted)}
.ho-progress{width:80px;height:8px;border-radius:99px;background:#e2e8f0;overflow:hidden;display:inline-block}
.ho-progress span{display:block;height:100%;border-radius:99px;background:currentColor}

.ho-rec{display:flex;justify-content:space-between;gap:10px;border:1px solid var(--ho-line);border-radius:12px;padding:8px 10px}
.ho-rec-text{display:flex;flex-direction:column;min-width:0;flex:1}
.ho-link{border:0;background:none;padding:0;text-align:right;font-weight:700;font-size:14px;cursor:pointer;overflow-wrap:anywhere}
.ho-link:hover{color:#1d4ed8;text-decoration:underline}
.ho-reply{color:#0f766e !important}
.ho-rec-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}
.ho-status{border:1px solid currentColor;border-radius:99px;padding:2px 8px;font-size:12px;font-weight:800;background:#fff;cursor:pointer}

.ho-filters{display:flex;flex-wrap:wrap;gap:6px}
.ho-filters input{flex:1;min-width:120px}
.ho-chips{display:flex;flex-wrap:wrap;gap:6px}
.ho-chip{border:1px solid var(--ho-line);border-radius:99px;padding:3px 10px;font-size:12.5px;font-weight:700;background:#fff;cursor:pointer}
span.ho-chip:not([role]){cursor:default}
.ho-chip.is-active{background:#1e3a8a;color:#fff;border-color:#1e3a8a}
.ho-badge{border-radius:99px;padding:2px 8px;font-size:11.5px;font-weight:800;border:1px solid currentColor;white-space:nowrap}

.ho-kpis{display:flex;gap:12px;flex-shrink:0}
.ho-kpis span{display:flex;flex-direction:column;align-items:center;line-height:1.25}
.ho-kpis small{font-size:10.5px;color:var(--ho-muted);font-weight:700}
.ho-kpis b{font-size:15px;font-weight:900}
.ho-manager-body{border:1px dashed #cbd5e1;border-top:0;border-radius:0 0 12px 12px;margin-top:-6px;padding:10px;display:flex;flex-direction:column;gap:8px;background:var(--ho-soft)}
.ho-manager.is-open>.ho-row{border-color:#93c5fd;border-radius:12px 12px 0 0}
.ho-mini-stats{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;color:var(--ho-muted);align-items:center}
.ho-mini-stats b{color:var(--ho-ink)}

.ho-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ho-columns h3,.ho-stale h3{font-size:14px;font-weight:800;margin-bottom:6px;color:#334155}

/* نموذج التوصية */
.ho-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #bfdbfe;border-radius:14px;background:#f8fbff}
.ho-field{display:flex;flex-direction:column;gap:3px;font-size:12.5px;font-weight:700;color:#334155;min-width:0}
.ho-field-wide{grid-column:1/-1}
.ho-form textarea{resize:vertical}
.ho-form-actions{display:flex;gap:8px}
.ho-btn{border:1px solid var(--ho-line);border-radius:10px;background:#fff;padding:5px 12px;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}
.ho-btn:disabled{opacity:.6;cursor:wait}
.ho-btn-primary{background:#1d4ed8;border-color:#1d4ed8;color:#fff !important}

/* الألوان */
.ho-tone-good{color:#15803d}.ho-tone-warn{color:#b45309}.ho-tone-bad{color:#b91c1c}.ho-tone-info{color:#1d4ed8}.ho-tone-muted{color:#64748b}
.ho-stat.ho-tone-good{background:#f0fdf4;border-color:#bbf7d0}.ho-stat.ho-tone-warn{background:#fffbeb;border-color:#fde68a}
.ho-stat.ho-tone-bad{background:#fef2f2;border-color:#fecaca}.ho-stat.ho-tone-info{background:#eff6ff;border-color:#bfdbfe}
.ho-chip.ho-tone-bad{border-color:#fecaca;background:#fef2f2}.ho-chip.ho-tone-warn{border-color:#fde68a;background:#fffbeb}
.ho-chip.ho-tone-good{border-color:#bbf7d0;background:#f0fdf4}.ho-chip.ho-tone-info{border-color:#bfdbfe;background:#eff6ff}
.ho-text-good{color:#15803d}.ho-text-warn{color:#b45309}.ho-text-bad{color:#b91c1c}.ho-text-muted{color:#64748b}

@media (max-width:1000px){.ho-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){
  .ho-columns,.ho-form{grid-template-columns:minmax(0,1fr)}
  .ho-row,.ho-rec{flex-wrap:wrap}
  .ho-kpis{width:100%;justify-content:space-around}
  .ho-today{text-align:right}
}

/* لون كل مشروع وإطاره */
.ho-rec{--ho-project:#64748b;border-inline-start:5px solid var(--ho-project);background:color-mix(in srgb,var(--ho-project) 5%,#fff)}
.ho-project-tag{align-self:flex-start;font-size:11.5px;font-weight:800;color:var(--ho-project);background:color-mix(in srgb,var(--ho-project) 12%,#fff);border:1px solid color-mix(in srgb,var(--ho-project) 35%,#fff);border-radius:99px;padding:0 8px;margin-bottom:2px}
.ho-dot{display:inline-block;width:9px;height:9px;border-radius:50%;vertical-align:middle;margin-inline-start:4px}
.ho-dots{display:inline-flex;gap:2px;margin-inline-start:6px;vertical-align:middle}
.ho-dots .ho-dot{margin:0}
.ho-chip-project{border-color:color-mix(in srgb,var(--ho-project) 45%,#fff);color:color-mix(in srgb,var(--ho-project) 80%,#000);background:color-mix(in srgb,var(--ho-project) 8%,#fff)}
.ho-groups{display:flex;flex-direction:column;gap:10px}
.ho-group{border:1px solid var(--ho-line);border-radius:14px;padding:8px;background:var(--ho-soft)}
.ho-group[style]{border-color:color-mix(in srgb,var(--ho-project) 45%,#fff);border-inline-start:5px solid var(--ho-project)}
.ho-group-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:14px;font-weight:900;margin:0 2px 6px}
.ho-group-head small{font-size:12px;color:var(--ho-muted);font-weight:700}

/* الطي والتوسيع: المربعات والمجموعات والنص الطويل */
.ho-box-head h2{min-width:0}
.ho-box-toggle{border:0;background:none;padding:0;display:flex;align-items:center;gap:8px;font-weight:900;cursor:pointer;text-align:right}
.ho-box-toggle::after{content:"▾";font-size:13px;color:var(--ho-muted);transition:transform .15s}
.ho-box-toggle[aria-expanded="false"]::after{transform:rotate(90deg)}
.ho-box.is-collapsed{gap:8px}
button.ho-group-head{width:100%;border:0;background:none;padding:2px;cursor:pointer;text-align:right;align-items:center;flex-wrap:wrap}
button.ho-group-head::before{content:"▾";font-size:12px;color:var(--ho-muted);transition:transform .15s}
button.ho-group-head[aria-expanded="false"]::before{transform:rotate(90deg)}
button.ho-group-head span{flex:1;min-width:0;overflow-wrap:anywhere}
button.ho-group-head em{font-style:normal;font-size:11.5px;font-weight:700;color:var(--ho-muted);border:1px solid var(--ho-line);border-radius:99px;padding:0 8px;background:#fff}
.ho-group.is-closed .ho-group-head{margin-bottom:0}
.ho-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.ho-more-text{align-self:flex-start;border:0;background:none;padding:0;color:#1d4ed8;font-size:12px;font-weight:800;cursor:pointer}
.ho-chips button.ho-chip{font:inherit;font-size:12.5px;font-weight:700}

/* فريق المشاريع: صف العضو ومؤشراته القابلة للضغط وملفه */
.ho-person{cursor:pointer}
.ho-person-main{border:0;background:none;padding:0;text-align:right;cursor:pointer}
.ho-kpi{border:1px solid transparent;border-radius:10px;background:none;padding:2px 6px;display:flex;flex-direction:column;align-items:center;line-height:1.25;cursor:pointer}
.ho-kpi:hover,.ho-kpi[aria-pressed="true"]{border-color:#93c5fd;background:#eff6ff}
.ho-kpi small{font-size:10.5px;color:var(--ho-muted);font-weight:700}
.ho-kpi b{font-size:15px;font-weight:900}
.ho-sub{font-size:13.5px;font-weight:900;color:#334155;margin-bottom:6px !important;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.ho-sub small{font-size:11.5px;color:var(--ho-muted);font-weight:700}
.ho-manager-body>div{min-width:0}
.ho-prow{border-inline-start:5px solid var(--ho-project,#64748b)}

/* التحصيل والأثر والرعاية */
#head-office-education{grid-column:1/-1}
.ho-edu{--ho-project:#64748b;display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:8px;align-items:stretch;border:1px solid var(--ho-line);border-inline-start:5px solid var(--ho-project);border-radius:12px;padding:8px;background:#fff}
.ho-edu-name{border:0;background:none;padding:0;text-align:right;cursor:pointer;display:flex;flex-direction:column;justify-content:center;min-width:0}
.ho-edu-name b{font-size:14px;font-weight:800;overflow-wrap:anywhere}
.ho-edu-name small{font-size:12px;color:var(--ho-muted)}
.ho-edu-name:hover b{color:#1d4ed8}
.ho-cells{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:6px;min-width:0}
.ho-cell{border:1px solid var(--ho-line);border-radius:10px;background:var(--ho-soft);padding:5px 8px;display:flex;flex-direction:column;align-items:flex-start;text-align:right;min-width:0;line-height:1.35}
button.ho-cell{cursor:pointer}
button.ho-cell:hover{border-color:#93c5fd;background:#f8fbff}
.ho-cell small{font-size:11px;color:var(--ho-muted);font-weight:700}
.ho-cell b{font-size:16px;font-weight:900}
.ho-cell em{font-style:normal;font-size:11px;color:var(--ho-muted);overflow-wrap:anywhere}
.ho-cell-note{grid-column:span 2}
@media (max-width:640px){
  .ho-edu{grid-template-columns:minmax(0,1fr)}
  .ho-person{flex-wrap:wrap}
}

/* المقارنة بالفترة السابقة، وشريط التنقل */
.ho-trend{font-style:normal;font-size:11px;font-weight:800;margin-inline-start:6px;white-space:nowrap}
.ho-stat-hint{font-style:normal;font-size:11px;color:var(--ho-muted)}
.ho-nav{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ho-nav-end{margin-inline-start:auto;display:flex;gap:6px}
.ho-act{border:1px solid var(--ho-line);border-radius:8px;background:#fff;padding:2px 8px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.ho-act:hover,.ho-act.is-active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.ho-act:disabled{opacity:.6;cursor:wait}

/* التفاعل مع التوصية والمهمة */
.ho-rec-actions{display:flex;flex-direction:column;gap:4px;margin-top:4px}
.ho-followup{color:#6d28d9 !important;overflow-wrap:anywhere}
.ho-inline-form{display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid #bfdbfe;border-radius:12px;background:#f8fbff}
.ho-inline-form textarea,.ho-inline-form input[type=date]{border:1px solid var(--ho-line);border-radius:10px;background:#fff;padding:6px 10px;font-size:13px;min-width:0}
.ho-inline-form textarea{resize:vertical;width:100%}
.ho-form-actions{flex-wrap:wrap;align-items:center}
.ho-check{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:700}
.ho-ok{color:#15803d;font-size:13px;font-weight:700}
.ho-task{display:flex;flex-direction:column;gap:3px}
.ho-task-row{cursor:default}
.ho-task-main{border:0;background:none;padding:0;text-align:right;cursor:pointer}
.ho-task-main:hover b{color:#1d4ed8}

/* ملخص المشروع */
.ho-overlay{position:fixed;inset:0;z-index:1000;background:#0f172a80;display:flex;justify-content:center;align-items:flex-start;padding:24px 12px;overflow:auto}
.ho-sheet{--ho-project:#64748b;width:min(980px,100%);background:#fff;border-radius:20px;border-top:6px solid var(--ho-project);box-shadow:0 20px 60px #0f172a40;display:flex;flex-direction:column}
.ho-sheet-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px;padding:14px 16px;border-bottom:1px solid var(--ho-line);position:sticky;top:0;background:#fff;border-radius:20px 20px 0 0;z-index:1}
.ho-sheet-head h2{font-size:19px;font-weight:900}
.ho-sheet-body{padding:14px 16px;display:flex;flex-direction:column;gap:12px}
.ho-sheet-body section{min-width:0}

/* الترتيب */
#head-office-ranking,#head-office-education,#head-office-meetings{grid-column:1/-1}
.ho-rank-no{width:24px;height:24px;border-radius:50%;background:var(--ho-soft);border:1px solid var(--ho-line);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;flex-shrink:0}
.ho-score{font-size:16px;font-weight:900;min-width:28px;text-align:left}
h4.ho-sub{margin-top:8px !important}

/* التقويم الهجري */
.ho-cal{display:flex;flex-direction:column;gap:10px;min-width:0}
.ho-cal-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center}
.ho-cal-title{text-align:center;min-width:130px}
.ho-cal-title b{font-size:15px}
.ho-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.ho-cal-week{font-size:11px;font-weight:800;color:var(--ho-muted);text-align:center;overflow:hidden;white-space:nowrap}
.ho-cal-day{border:1px solid var(--ho-line);border-radius:10px;background:#fff;min-height:56px;padding:3px 4px;display:flex;flex-direction:column;align-items:flex-start;cursor:pointer;min-width:0;line-height:1.2}
.ho-cal-day b{font-size:14px;font-weight:900}
.ho-cal-day small{font-size:9.5px;color:var(--ho-muted)}
.ho-cal-day.is-today{border-color:#1d4ed8;background:#eff6ff}
.ho-cal-day.is-selected{box-shadow:inset 0 0 0 2px #1e3a8a}
.ho-cal-day.has-late{border-color:#fecaca}
.ho-cal-marks{display:flex;flex-wrap:wrap;gap:2px;margin-top:auto}
.ho-mark{font-style:normal;font-size:10px;font-weight:900;border-radius:99px;min-width:16px;padding:0 4px;text-align:center;background:currentColor}
.ho-mark{color:inherit}
.ho-mark.ho-tone-info{background:#dbeafe;color:#1d4ed8}.ho-mark.ho-tone-warn{background:#fef3c7;color:#b45309}.ho-mark.ho-tone-good{background:#dcfce7;color:#15803d}
.ho-chip.is-off{opacity:.45}
.ho-chip .ho-dot{background:currentColor}
.ho-cal-list h3{display:flex;align-items:center;gap:8px;margin-bottom:6px}
@media (max-width:640px){.ho-cal-week{font-size:9px}.ho-cal-day{min-height:48px;padding:2px}}
.ho-chip.is-active{background:#1e3a8a !important;color:#fff !important;border-color:#1e3a8a !important}

/* سجل التأكيد على التنفيذ */
.ho-log{display:flex;flex-direction:column;gap:3px;padding:5px 8px;border:1px dashed #c4b5fd;border-radius:10px;background:#faf5ff}
.ho-log-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:12px}
.ho-log-count{font-weight:800;color:#6d28d9}
.ho-log-date{border:1px solid #ddd6fe;border-radius:8px;background:#fff;padding:1px 6px;text-align:center}
.ho-log-date b{font-size:11.5px}.ho-log-date small{font-size:9.5px}
.ho-act-confirm{border-color:#c4b5fd;color:#6d28d9}

/* كل مربع بعرض الصفحة كاملًا */
.ho-grid{grid-template-columns:minmax(0,1fr)}
.ho-stats{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}

/* متابعة الحضور والانصراف، والأداء الاستراتيجي */
.ho-att{display:flex;flex-direction:column;gap:10px;min-width:0}
.ho-att-item{display:flex;flex-direction:column;gap:6px}
.ho-att-row{--ho-project:#1e3a8a}
.ho-att-item.is-open>.ho-att-row{border-color:#93c5fd}
span.ho-stat{display:flex}
.ho-cell-act{align-items:center;text-align:center;border-color:#bfdbfe;background:#eff6ff}
.ho-cell-act.is-active{border-color:#1d4ed8;background:#dbeafe}
.ho-search{border:1px solid var(--ho-line);border-radius:10px;background:#fff;padding:5px 10px;font-size:13px;flex:1;min-width:140px;max-width:320px;margin-inline-start:auto}
.ho-table-wrap{overflow-x:auto;border:1px solid var(--ho-line);border-radius:12px;background:#fff}
.ho-table{width:100%;border-collapse:collapse;font-size:12.5px}
.ho-table th,.ho-table td{border-bottom:1px solid var(--ho-line);padding:5px 8px;text-align:right;vertical-align:middle}
.ho-table thead th{background:var(--ho-soft);font-weight:800;color:#334155;white-space:nowrap}
.ho-table tr:last-child td{border-bottom:0}
.ho-pre{white-space:pre-wrap;overflow-wrap:anywhere}
.ho-inline-form input[type=text]{border:1px solid var(--ho-line);border-radius:10px;background:#fff;padding:6px 10px;font-size:13px;min-width:0;width:100%}
.ho-inline-form .ho-field{gap:3px}
.ho-check input[type=date]{border:1px solid var(--ho-line);border-radius:10px;background:#fff;padding:4px 8px;font-size:13px}

/* دورة حياة المشاريع، وعبء العمل */
.ho-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:6px}
.ho-step{border:1px solid var(--ho-line);border-radius:12px;background:var(--ho-soft);padding:6px 8px;display:flex;flex-direction:column;align-items:flex-start;cursor:pointer;text-align:right;min-width:0}
.ho-step b{font-size:18px;font-weight:900;line-height:1.2}
.ho-step span{font-size:11.5px;color:var(--ho-muted);font-weight:700}
.ho-step.is-active{border-color:#1e3a8a;box-shadow:inset 0 0 0 2px #1e3a8a;background:#eff6ff}
.ho-step.is-empty b{color:var(--ho-muted)}
label.ho-cell select{border:1px solid var(--ho-line);border-radius:8px;background:#fff;padding:3px 6px;font-size:12.5px;font-weight:800;width:100%;min-width:0}
.ho-load{width:140px}

/* الاجتماعات التطويرية */
.ho-dev-minutes{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px}
.ho-dev-minutes>div{border:1px solid var(--ho-line);border-radius:10px;background:#fff;padding:8px 10px;min-width:0}
.ho-dev-minutes p{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.ho-dev-rec-edit{display:flex;gap:6px;align-items:center;margin-bottom:4px}
.ho-dev-rec-edit input[type=text]{flex:1;min-width:0}

/* جدول الأعمال، وسجل القرارات، وتطوير الفريق */
.ho-agenda{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;align-items:start}
.ho-agenda-col{min-width:0;border:1px solid var(--ho-line);border-radius:14px;padding:8px;background:var(--ho-soft)}
.ho-agenda-col h3{font-size:14px;font-weight:900;margin-bottom:6px !important;display:flex;align-items:center;gap:8px;color:#334155}
.ho-grow{flex:1;min-width:160px;border:1px solid var(--ho-line);border-radius:10px;background:#fff;padding:5px 10px;font-size:13px}
.ho-check select{border:1px solid var(--ho-line);border-radius:10px;background:#fff;padding:4px 8px;font-size:13px;max-width:220px}
.ho-form input[type=text]{width:100%}
.ho-sub .ho-act{margin-inline-start:auto}
/* محاور الاجتماع التطويري الجاهزة */
.ho-brief{display:flex;flex-direction:column;gap:8px;border:1px solid #bbf7d0;border-radius:12px;background:#f7fdf9;padding:10px;min-width:0}
.ho-brief-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.ho-brief-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:8px}
.ho-brief-grid.is-loading{opacity:.55}
.ho-brief-axis{border:1px solid var(--ho-line);border-radius:10px;background:#fff;padding:8px 10px;display:flex;flex-direction:column;gap:6px;min-width:0}
.ho-brief-axis>header{display:flex;justify-content:space-between;align-items:center;gap:6px}
.ho-brief-axis h4{font-size:13.5px;font-weight:900;color:#334155;margin:0}
.ho-brief-stats{display:flex;flex-wrap:wrap;gap:4px 6px}
.ho-brief-stat{display:flex;flex-direction:column;border:1px solid var(--ho-line);border-radius:8px;padding:2px 8px;min-width:64px}
.ho-brief-stat b{font-size:15px;font-weight:900}
.ho-brief-stat small{font-size:11px;color:var(--ho-muted);font-weight:700}
.ho-brief-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
.ho-brief-items li{display:flex;justify-content:space-between;align-items:flex-start;gap:6px;font-size:12.5px}
.ho-brief-items li>span{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.ho-brief-items small{color:var(--ho-muted);font-weight:600}
.ho-brief-items .ho-link{text-align:start;font-weight:700}

/* عرض الصفحة خاصًّا بشخص */
.ho-person{border:1px solid #c4b5fd;border-radius:10px;background:#faf5ff;padding:6px 10px;font-size:13px;font-weight:700;max-width:260px;min-width:0}
.ho-scope{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:10px 14px;border-radius:14px;border:2px solid #7c3aed;background:#f5f3ff;font-size:14px;box-shadow:0 4px 14px #7c3aed22}
.ho-scope b{color:#5b21b6;font-size:15px}
.ho-scope small{color:var(--ho-muted);font-weight:700}
.ho-scope .ho-btn{margin-inline-start:auto}
.ho-scope-note{font-size:12px;font-weight:700;color:#6d28d9;background:#faf5ff;border:1px dashed #c4b5fd;border-radius:10px;padding:4px 10px}

/* ===== التبويبان، والتنقل الجانبي، والمجموعات ===== */
.ho-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;border-bottom:2px solid var(--ho-line);padding-bottom:0}
.ho-tab{border:0;border-bottom:3px solid transparent;margin-bottom:-2px;background:none;padding:8px 14px;font-size:15px;font-weight:900;color:var(--ho-muted);cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.ho-tab:hover{color:#1e3a8a}
.ho-tab.is-active{color:#1e3a8a;border-bottom-color:#1e3a8a}
.ho-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:#dc2626;color:#fff;font-size:11px;font-weight:900}
.ho-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:14px;align-items:start}
.ho-side{position:sticky;top:8px;max-height:calc(100vh - 16px);overflow:auto;border:1px solid var(--ho-line);border-radius:16px;background:#fff;padding:8px}
.ho-side-toggle{display:none}
.ho-side-list{display:flex;flex-direction:column;gap:8px}
.ho-side-group{display:flex;flex-direction:column;gap:2px}
.ho-side-group>b{font-size:11.5px;font-weight:900;color:var(--ho-muted);padding:2px 6px}
.ho-side-link{border:0;background:none;border-radius:8px;padding:5px 8px;font-size:13px;font-weight:700;text-align:right;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:6px;color:#334155}
.ho-side-link:hover{background:#eff6ff;color:#1d4ed8}
.ho-side-link.is-open{background:var(--ho-soft);color:#1e3a8a}
.ho-side-link.is-open span:first-child::before{content:"▾ ";font-size:10px}
.ho-root .ho-grid{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0}
.ho-group-title{font-size:13px;font-weight:900;color:#1e3a8a;letter-spacing:.2px;padding:6px 4px 0;border-top:1px dashed #cbd5e1;margin-top:4px !important}
.ho-group-title:first-of-type{border-top:0;margin-top:0 !important}

/* ===== المربع: طي وتوسيع مكتوبان، وأرقام حية، وملاحظات خلف «؟» ===== */
.ho-box-toggle::after{content:none}
.ho-box-tools{display:flex;align-items:center;gap:6px;flex-shrink:0}
.ho-fold{border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1d4ed8 !important;padding:4px 12px;font-size:13px;font-weight:900;cursor:pointer;white-space:nowrap}
.ho-fold[aria-expanded="true"]{background:#fff;border-color:var(--ho-line);color:#334155 !important}
.ho-help{width:26px;height:26px;border-radius:50%;border:1px solid var(--ho-line);background:#fff;font-weight:900;cursor:pointer;color:var(--ho-muted) !important}
.ho-help.is-active{background:#1e3a8a;border-color:#1e3a8a;color:#fff !important}
/* الملاحظات التوضيحية في ذيل المربع فقط؛ ما كان داخل الصفوف والنماذج يبقى ظاهرًا لأنه معلومة لا شرح. */
.ho-box:not(.show-help) .ho-box-body>p.ho-hint,.ho-box:not(.show-help) .ho-box-body>.ho-att>p.ho-hint{display:none}
.ho-box.is-collapsed{padding:10px 14px}
button.ho-stat:hover{box-shadow:inset 0 0 0 2px currentColor}
.ho-stat-more{border-style:dashed;background:#fff;color:var(--ho-muted) !important}
.ho-stat-sheet{width:min(760px,100%)}
.ho-stat-value{color:#1e3a8a;font-weight:900}
.ho-stat-count{text-align:center}
button.ho-cell{cursor:pointer}
button.ho-cell:hover{border-color:#93c5fd;background:#f8fbff}
.ho-hero-side select{border:1px solid var(--ho-line);border-radius:10px;background:#fff;padding:6px 10px;font-size:13px;min-width:0;max-width:220px}

@media (max-width:900px){
  .ho-layout{grid-template-columns:minmax(0,1fr)}
  .ho-side{position:static;max-height:none;padding:6px}
  .ho-side-toggle{display:block;width:100%;border:0;background:none;font-weight:900;font-size:13.5px;padding:4px;cursor:pointer;text-align:right}
  .ho-side:not(.is-open) .ho-side-list{display:none}
  .ho-tabs{position:sticky;top:0;z-index:15;background:#fff;padding:4px 4px 0;border-radius:12px 12px 0 0}
  .ho-tab{padding:8px 10px;font-size:14px}
}
