:root{ --brand:#10B981; --brand2:#0EA5E9; --muted:#f8fafc; }

body{ font-family:"IBM Plex Sans Arabic", system-ui; background:#fff; }

/* ─── احذف/عطّل النمط القديم .main-nav ─── */
/* .main-nav{ background:linear-gradient(90deg,var(--brand),var(--brand2)); }
.main-nav .btn{ color:#fff; border-color:#fff3; }
.main-nav .btn.active, .main-nav .btn:hover{ background:#ffffff22; color:#fff; } */
.navbar-brand{ font-weight:700; }

/* ─── البطاقات والجدول ─── */
.card{ border:0; border-radius:1rem; box-shadow:0 10px 24px rgba(0,0,0,.06); }
.site-footer{ background:#0f172a; color:#cbd5e1; padding:.75rem 0; margin-top:1rem; }

.table thead th{ background:#f1f5f9; cursor:pointer; user-select:none; }
.table thead th.sort-asc::after{ content:" ▲"; font-size:.8rem; }
.table thead th.sort-desc::after{ content:" ▼"; font-size:.8rem; }

.badge-prio-high{ background:#dc2626; } .badge-prio-med{ background:#f59e0b; } .badge-prio-low{ background:#16a34a; }
.badge-sta-doing{ background:#f59e0b; } .badge-sta-done{ background:#16a34a; } .badge-sta-hold{ background:#dc2626; } .badge-sta-not{ background:#64748b; }

/* ─── Gantt ─── */
.gantt-wrap{ overflow:auto; border:1px solid #e2e8f0; border-radius:12px; }
.gantt-grid{ position:relative; min-width:900px; }
.gantt-header{ display:grid; background:#f1f5f9; border-bottom:1px solid #e2e8f0; }
.gantt-cell{ height:42px; border-left:1px dashed #f1f5f9; position:relative; }
.gantt-cell.is-today{ background:#ecfeff; }
.gantt-bar{ position:absolute; top:6px; height:30px; border-radius:8px; display:flex; align-items:center; gap:.4rem; padding:0 .5rem; color:#fff; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; box-shadow:0 2px 6px rgba(0,0,0,.12); }
.gantt-bar .fill{ position:absolute; left:0; top:0; bottom:0; width:0%; background:rgba(0,0,0,.18); border-radius:8px 0 0 8px; }
.badge-status{ font-size:.7rem; border-radius:6px; padding:.15rem .4rem; background:#0ea5e9; color:#fff; font-weight:700; }

/* ─── Navbar: وضع Sticky عام ─── */
.navbar-sticky{ position:sticky; top:0; z-index:1030; }

/* ── نمط التدرّج (المطلوب) ── */
.navbar-sticky.is-gradient{
  background:linear-gradient(90deg,var(--brand),var(--brand2));
  box-shadow:0 2px 10px rgba(15,23,42,.12);
  border-bottom:0;
}
.navbar-sticky.is-gradient .navbar-brand,
.navbar-sticky.is-gradient .brand-text{ color:#fff; }

.navbar-sticky.is-gradient .nav-link{
  color:#fff; font-weight:500;
  padding:.55rem .85rem; border-radius:.6rem; transition:.15s ease;
}
.navbar-sticky.is-gradient .nav-link:hover{ background:rgba(255,255,255,.12); color:#fff; }
.navbar-sticky.is-gradient .nav-link.active{ background:rgba(255,255,255,.22); color:#fff; }

/* زر الأيقونة داخل التدرّج */
.navbar-sticky.is-gradient .icon-btn{
  background:transparent; border:0; padding:.5rem .6rem;
  border-radius:.6rem; color:#fff;
}
.navbar-sticky.is-gradient .icon-btn:hover{ background:rgba(255,255,255,.12); }
.navbar-sticky.is-gradient .icon-btn:active{ transform:translateY(1px); }

/* ── نمط فاتح (يُستخدم إذا شلت is-gradient) ── */
.navbar-sticky:not(.is-gradient){
  background:#fff;
  box-shadow:0 2px 10px rgba(15,23,42,.06);
  border-bottom:1px solid #e5e7eb;
}
.navbar-sticky:not(.is-gradient) .nav-link{
  color:#0f172a; padding:.55rem .85rem; border-radius:.6rem; transition:.15s ease; font-weight:500;
}
.navbar-sticky:not(.is-gradient) .nav-link:hover{ background:#f1f5f9; color:#0ea5e9; }
.navbar-sticky:not(.is-gradient) .nav-link.active{ background:#e0f2fe; color:#0369a1; }
.navbar-sticky:not(.is-gradient) .icon-btn{ color:#0f172a; }
.navbar-sticky:not(.is-gradient) .icon-btn:hover{ background:#f1f5f9; color:#0ea5e9; }

/* تحسين للجوال */
@media (max-width: 991.98px){
  .navbar-sticky .nav-link{ padding:.75rem 1rem; }
}
.navbar .nav-link svg{ vertical-align:-2px; opacity:.9; }
.navbar .nav-link:hover svg{ opacity:1; }

/* ===== Daily Execution Summary (RTL friendly) ===== */
.execution-summary {
  direction: rtl;
  text-align: right;
  max-width: 100%;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  box-sizing: border-box;
  overflow: hidden;          /* يمنع أي عناصر تمتد خارج البطاقة */
}

/* علاج شائع لتمدد العناصر داخل Flex */
.execution-summary,
.execution-summary * {
  box-sizing: border-box;
  min-width: 0;              /* مهم جداً لمنع التمدد في الجوال */
}

/* العنوان والأسطر */
.execution-summary__title {
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.execution-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0;
  width: 100%;
}

/* النص الطويل لا يسبب تمدد أفقي */
.execution-summary__value,
.execution-summary__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== شريط التقدم (Progress Bar) ===== */
.execution-summary__progress {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 10px;
  background: #E7EBEF;      /* رمادي فاتح */
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 14px;
}

.execution-summary__progress-fill {
  display: block;
  height: 100%;
  width: var(--progress, 0%); /* غيّر المتغير من HTML */
  background: linear-gradient(90deg, #10B981, #0EA5E9); /* تدرّج جميل */
  border-radius: inherit;
}

/* ===== في حال أنك تستخدم hr كخط فاصل بدل Progress ===== */
hr.execution-summary__divider {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 8px;               /* يشبه البار */
  background: #E7EBEF;
  border: 0;
  border-radius: 999px;
  margin: 10px 0 14px;
}

/* ===== موبايل ===== */
@media (max-width: 576px) {
  .execution-summary {
    padding: 10px 12px;
  }
  .execution-summary__row {
    gap: 8px;
  }
  .execution-summary__title {
    font-size: 16px;
  }
}

/* منع سكرول أفقي في الكرت */
.execution-summary img,
.execution-summary svg,
.execution-summary table {
  max-width: 100%;
}

/* Landing */
.hero-landing{
  background: linear-gradient(90deg,var(--brand),var(--brand2));
  color:#fff;
}
.hero-landing .lead{ color: rgba(255,255,255,.9); }
.hero-landing .hero-card{ border:1px solid #eef2f7; border-radius:1rem; }
.hero-landing .bullet{ width:10px; height:10px; background:var(--brand2); border-radius:50%; display:inline-block; }
.hero-landing .check{ color:#16a34a; font-weight:700; }

.section{ padding: 3rem 0; }
.section.bg-muted{ background: var(--muted); }
.section .box{
  background:#fff; border:1px solid #e5e7eb; border-radius:1rem; padding:1.25rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}
.feat{
  background:#fff; border:1px solid #e5e7eb; border-radius:1rem; padding:1rem 1.1rem;
  height:100%; box-shadow:0 8px 20px rgba(0,0,0,.04);
}
.feat .icon{ font-size:1.4rem; }

.step{
  background:#fff; border:1px solid #e5e7eb; border-radius:1rem; padding:1.1rem;
  box-shadow:0 8px 20px rgba(0,0,0,.04);
}
.step .num{
  width:28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  background:var(--brand2); color:#fff; font-weight:700; margin-inline-start:.25rem;
}

.shot .shot-box{
  border:2px dashed #cbd5e1; border-radius:1rem; height:220px; display:flex; align-items:center; justify-content:center;
  color:#64748b; background:#f8fafc;
}

.section.cta{
  background: linear-gradient(90deg,var(--brand),var(--brand2));
  padding: 3.5rem 0;
}
.text-white-75{ color: rgba(255,255,255,.85) !important; }

.navbar .navbar-brand img{ display:block; }
.navbar .navbar-brand{ line-height:1; }
