/* ══════════════════════════════════════════════════════════════════════
   OpsMaster — طبقة الإطار ولوحة القيادة (الموجة الثالثة · ٢٤ سبتمبر ٢٠٢٦)
   ══════════════════════════════════════════════════════════════════════

   ⚠️⚠️ تُحمَّل بعد `ops-system.css` وتعتمد رموزه وحدها؛ فلا تُكتب هنا قيمةٌ
   لونيّة ثابتة إلا ما يُشتقّ من سلّم العلامة `--brand-*` أو من لون الوحدة
   المُمرَّر عبر `--c`. وكلّ صنفٍ هنا له مقابلٌ في الوضع الليليّ في آخر الملف.

   ⚠️ ويُزال الملف كلّه بحذف سطره من `_head-close`؛ فيعود الإطار إلى ما كان
   عليه دون نشرٍ ثانٍ.
   ══════════════════════════════════════════════════════════════════════ */

/* ── ١ · اللوحة الخلفيّة ─────────────────────────────────────────────── */
body.ops-app { background-color: var(--ops-canvas); }

/* ── ٢ · القائمة الجانبيّة ───────────────────────────────────────────── */
.ops-side {
  background:
    radial-gradient(120% 60% at 100% 0%, rgb(var(--brand-700) / .35), transparent 60%),
    linear-gradient(180deg, rgb(var(--brand-950)) 0%, rgb(var(--brand-950)) 100%);
  border-inline-start: 1px solid rgb(255 255 255 / .06);
}
.ops-side__label {
  display: block;
  padding: 0 12px;
  margin: 2px 0 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgb(var(--brand-100) / .45);
}
.ops-side__link { position: relative; }
.ops-side__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  inset-inline-start: -12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: rgb(var(--brand-300));
}
[dir="rtl"] .ops-side__link[aria-current="page"]::before { border-radius: 3px 0 0 3px; }
.ops-side__chip {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
  background: rgb(255 255 255 / .06);
  color: rgb(var(--brand-100) / .85);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
  transition: background-color .18s ease, color .18s ease;
}
.ops-side__link:hover .ops-side__chip { background: rgb(255 255 255 / .12); color: #fff; }
.ops-side__link[aria-current="page"] .ops-side__chip { background: rgb(var(--brand-500)); color: #fff; box-shadow: none; }

.ops-side__foot { background: rgb(0 0 0 / .18); }
.ops-side__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 12px;
  border-radius: 9px;
  font-size: 12.5px; font-weight: 600;
  color: rgb(var(--brand-100) / .9);
  background: rgb(255 255 255 / .07);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
  transition: background-color .18s ease, color .18s ease;
}
.ops-side__btn:hover { background: rgb(255 255 255 / .14); color: #fff; }
.ops-side__btn--danger:hover { background: rgb(220 38 38); color: #fff; box-shadow: none; }

/* ── ٣ · الشريط العلويّ ──────────────────────────────────────────────── */
.ops-topbar {
  background: rgb(255 255 255 / .95);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--ops-line);
}
.ops-topbar__search input {
  height: 40px;
  border-radius: 11px;
  background: var(--ops-surface-2);
  border: 1px solid transparent;
  color: var(--ops-ink);
}
.ops-topbar__search input:hover { border-color: var(--ops-line); }
.ops-topbar__date {
  /* ⚠️ لا `display` هنا: الظهور تقرّره أصناف `hidden lg:flex` في القالب،
     وهذا الملف يُحمَّل بعدها فكان سيغلبها ويُظهر التاريخ في الجوّال. */
  align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  border-radius: 10px;
  font-size: 12px; font-weight: 600;
  color: var(--ops-ink-2);
  background: var(--ops-surface-2);
  white-space: nowrap;
}
.ops-topbar__date small { font-weight: 500; color: var(--ops-muted); font-size: 11px; }
.ops-topbar__icon {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border-radius: 10px;
  color: var(--ops-muted);
  transition: background-color .18s ease, color .18s ease;
}
.ops-topbar__icon:hover { background: var(--ops-surface-2); color: var(--ops-accent-ink); }
.ops-avatar {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  font-weight: 700; font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, rgb(var(--brand-500)), rgb(var(--brand-800)));
  box-shadow: 0 0 0 2px var(--ops-surface), 0 0 0 3px rgb(var(--brand-200));
}
.ops-menu {
  position: absolute; inset-inline-end: 0; margin-top: 10px;
  width: 260px; max-width: 90vw;
  background: var(--ops-surface);
  border: 1px solid var(--ops-line);
  border-radius: 14px;
  box-shadow: var(--ops-shadow-3);
  overflow: hidden;
  z-index: 50;
}
.ops-menu__item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--ops-ink);
  text-align: start;
}
.ops-menu__item:hover { background: var(--ops-surface-2); }
.ops-menu__item--danger { color: var(--ops-danger-fg); }

/* ── ٤ · ترويسة البطاقة الفاتحة (النمط الافتراضيّ الجديد) ────────────
   ⚠️⚠️ كانت ترويسة البطاقة شريطًا كحليًّا، ووضعت شاشاتٌ في خانة أفعالها
   نصًّا أبيض (`text-white/70`). فلمّا صار النمط الافتراضيّ فاتحًا، أُعيد
   تلوين ذلك النصّ هنا — داخل الترويسة الفاتحة وحدها — بدل تعديل اثنتي
   عشرة شاشة يُنسى منها واحدةٌ فيختفي نصّها. */
.ops-cardhead .text-white\/70,
.ops-cardhead .text-white\/80,
.ops-cardhead .text-white { color: var(--ops-muted) !important; }
.ops-cardhead a.text-white\/80,
.ops-cardhead a.text-white\/70 { color: var(--ops-accent-ink) !important; }
.ops-cardhead .hover\:text-white:hover { color: var(--ops-accent) !important; }

/* ══ ٥ · لوحة القيادة ══════════════════════════════════════════════════ */
.dx-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 26px 28px;
  color: #fff;
  background:
    radial-gradient(90% 140% at 0% 0%, rgb(var(--brand-500) / .55), transparent 55%),
    radial-gradient(70% 120% at 100% 100%, rgb(var(--brand-400) / .30), transparent 60%),
    linear-gradient(135deg, rgb(var(--brand-800)), rgb(var(--brand-950)));
  box-shadow: 0 18px 40px -22px rgb(var(--brand-900) / .75);
}
.dx-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / .09) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  pointer-events: none;
}
.dx-hero > * { position: relative; z-index: 1; }
.dx-hero__eyebrow { font-size: 12.5px; color: rgb(255 255 255 / .72); font-weight: 500; }
.dx-hero__title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; line-height: 1.35; margin-top: 4px; }
.dx-hero__sub { font-size: 13px; color: rgb(255 255 255 / .78); margin-top: 6px; line-height: 1.7; }
.dx-hero__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  border-radius: 11px;
  font-size: 12.5px; font-weight: 600;
  color: #fff;
  background: rgb(255 255 255 / .12);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18);
  transition: background-color .18s ease, transform .18s ease;
}
.dx-hero__btn:hover { background: rgb(255 255 255 / .22); transform: translateY(-1px); }
.dx-hero__btn--solid { background: #fff; color: rgb(var(--brand-800)); box-shadow: none; }
.dx-hero__btn--solid:hover { background: rgb(var(--brand-50)); }
.dx-hero__stat { display: flex; flex-direction: column; gap: 2px; min-width: 96px; }
.dx-hero__stat b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
.dx-hero__stat span { font-size: 11.5px; color: rgb(255 255 255 / .7); }
.dx-hero__divider { width: 1px; align-self: stretch; background: rgb(255 255 255 / .16); }

/* السطح المشترك */
.dx-panel {
  background: var(--ops-surface);
  border: 1px solid var(--ops-hairline);
  border-radius: 16px;
  box-shadow: var(--ops-shadow-1);
}
.dx-panel__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ops-hairline);
}
.dx-panel__title { font-size: 14.5px; font-weight: 700; color: var(--ops-ink); line-height: 1.4; }
.dx-panel__sub { font-size: 11.5px; color: var(--ops-muted); margin-top: 2px; }
.dx-panel__link {
  margin-inline-start: auto;
  font-size: 12px; font-weight: 600;
  color: var(--ops-accent-ink);
  white-space: nowrap;
}
.dx-panel__link:hover { text-decoration: underline; }
.dx-chip {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  flex-shrink: 0;
  color: rgb(var(--c, var(--brand-600)));
  background: rgb(var(--c, var(--brand-600)) / .12);
}

/* بطاقة المؤشّر */
.dx-kpi {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px;
  background: var(--ops-surface);
  border: 1px solid var(--ops-hairline);
  border-radius: 16px;
  box-shadow: var(--ops-shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.dx-kpi::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: rgb(var(--c));
  opacity: .85;
}
.dx-kpi:hover { transform: translateY(-2px); box-shadow: var(--ops-shadow-2); border-color: rgb(var(--c) / .35); }
.dx-kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dx-kpi__label { font-size: 12.5px; font-weight: 600; color: var(--ops-muted); }
.dx-kpi__value {
  font-size: 30px; font-weight: 700; line-height: 1;
  color: var(--ops-ink);
  font-variant-numeric: tabular-nums;
}
.dx-kpi__foot { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ops-muted); }
.dx-kpi__arrow { margin-inline-start: auto; color: rgb(var(--c)); opacity: 0; transform: translateX(4px); transition: opacity .2s ease, transform .2s ease; }
[dir="rtl"] .dx-kpi__arrow { transform: translateX(-4px) scaleX(-1); }
.dx-kpi:hover .dx-kpi__arrow { opacity: 1; transform: none; }
[dir="rtl"] .dx-kpi:hover .dx-kpi__arrow { transform: scaleX(-1); }

/* مركز الانتباه */
.dx-alert {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--tone-line);
  background: var(--tone-bg);
  color: var(--tone-fg);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dx-alert:hover { transform: translateY(-1px); box-shadow: var(--ops-shadow-1); }
.dx-alert--danger { --tone-fg: var(--ops-danger-fg); --tone-bg: var(--ops-danger-bg); --tone-line: var(--ops-danger-line); }
.dx-alert--warn   { --tone-fg: var(--ops-warn-fg);   --tone-bg: var(--ops-warn-bg);   --tone-line: var(--ops-warn-line); }
.dx-alert--info   { --tone-fg: var(--ops-info-fg);   --tone-bg: var(--ops-info-bg);   --tone-line: var(--ops-info-line); }
.dx-alert--ok     { --tone-fg: var(--ops-ok-fg);     --tone-bg: var(--ops-ok-bg);     --tone-line: var(--ops-ok-line); }
.dx-alert__num { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.dx-alert__text { font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.dx-alert__hint { font-size: 11px; opacity: .8; font-weight: 500; }
.dx-alert__ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--ops-surface);
  box-shadow: inset 0 0 0 1px var(--tone-line);
}

/* المخطّط الشريطيّ */
.dx-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.dx-bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; height: 100%; justify-content: flex-end; }
.dx-bars__pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; min-height: 0; }
.dx-bars__bar {
  width: 42%; max-width: 26px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgb(var(--brand-400)), rgb(var(--brand-600)));
  min-height: 3px;
  transition: filter .18s ease;
}
.dx-bars__bar--resolved { background: linear-gradient(180deg, #34d399, #059669); }
.dx-legend-dot { width: 8px; height: 8px; border-radius: 3px; display: inline-block; flex: none; }
.dx-legend-dot--opened { background: rgb(var(--brand-500)); }
.dx-legend-dot--resolved { background: #10b981; }
.dx-bars__bar--zero { background: var(--ops-surface-3); }
.dx-bars__col:hover .dx-bars__bar { filter: brightness(1.12); }
.dx-bars__col--today .dx-bars__bar--opened { background: linear-gradient(180deg, rgb(var(--brand-300)), rgb(var(--brand-500))); box-shadow: 0 0 0 2px rgb(var(--brand-200) / .6); }
.dx-bars__col--today .dx-bars__bar--resolved { background: linear-gradient(180deg, #6ee7b7, #10b981); box-shadow: 0 0 0 2px rgb(16 185 129 / .22); }
.dx-bars__x { font-size: 10px; color: var(--ops-faint); font-variant-numeric: tabular-nums; direction: ltr; white-space: nowrap; }

/* الحلقة */
.dx-donut { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.dx-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dx-donut__track { stroke: var(--ops-surface-2); }
.dx-donut__center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.dx-donut__center b { display: block; font-size: 24px; font-weight: 700; color: var(--ops-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.dx-donut__center span { font-size: 11px; color: var(--ops-muted); }
.dx-legend { display: flex; flex-direction: column; gap: 9px; min-width: 0; flex: 1; }
.dx-legend__row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ops-ink-2); }
.dx-legend__dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; background: rgb(var(--c)); }
.dx-legend__val { margin-inline-start: auto; font-weight: 700; color: var(--ops-ink); font-variant-numeric: tabular-nums; }
.dx-legend__pct { font-size: 11px; color: var(--ops-faint); min-width: 36px; text-align: end; font-variant-numeric: tabular-nums; }

/* القوائم والجداول */
.dx-list > * + * { border-top: 1px solid var(--ops-hairline); }
.dx-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; transition: background-color .15s ease; }
a.dx-row:hover, .dx-row--hover:hover { background: var(--ops-row-hover, var(--ops-surface-2)); }
.dx-row__title { font-size: 13px; font-weight: 600; color: var(--ops-ink); }
.dx-row__meta { font-size: 11.5px; color: var(--ops-muted); margin-top: 2px; }
.dx-table { width: 100%; font-size: 13px; }
.dx-table th {
  padding: 10px 16px;
  font-size: 11.5px; font-weight: 600;
  color: var(--ops-muted);
  text-align: start;
  background: var(--ops-surface-2);
  border-bottom: 1px solid var(--ops-hairline);
}
.dx-table td { padding: 12px 16px; border-bottom: 1px solid var(--ops-hairline); color: var(--ops-ink-2); }
.dx-table tr:last-child td { border-bottom: 0; }
.dx-table tbody tr:hover td { background: var(--ops-row-hover, var(--ops-surface-2)); }
.dx-empty { padding: 36px 20px; text-align: center; font-size: 13px; color: var(--ops-muted); }
.dx-empty svg { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--ops-faint); }

.dx-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  color: var(--tone-fg, var(--ops-neutral-fg));
  background: var(--tone-bg, var(--ops-neutral-bg));
  box-shadow: inset 0 0 0 1px var(--tone-line, var(--ops-neutral-line));
  white-space: nowrap;
}
.dx-pill--danger { --tone-fg: var(--ops-danger-fg); --tone-bg: var(--ops-danger-bg); --tone-line: var(--ops-danger-line); }
.dx-pill--warn   { --tone-fg: var(--ops-warn-fg);   --tone-bg: var(--ops-warn-bg);   --tone-line: var(--ops-warn-line); }
.dx-pill--info   { --tone-fg: var(--ops-info-fg);   --tone-bg: var(--ops-info-bg);   --tone-line: var(--ops-info-line); }
.dx-pill--ok     { --tone-fg: var(--ops-ok-fg);     --tone-bg: var(--ops-ok-bg);     --tone-line: var(--ops-ok-line); }

/* الخطّ الزمنيّ */
.dx-timeline { position: relative; padding: 8px 20px 12px; }
.dx-timeline__item { position: relative; display: flex; gap: 12px; padding: 10px 0; }
.dx-timeline__item::before {
  content: ""; position: absolute;
  inset-inline-start: 13px; top: 38px; bottom: -10px;
  width: 1px; background: var(--ops-hairline);
}
.dx-timeline__item:last-child::before { display: none; }
.dx-timeline__dot {
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 11px; font-weight: 700;
  color: var(--tone-fg, var(--ops-neutral-fg));
  background: var(--tone-bg, var(--ops-neutral-bg));
  box-shadow: inset 0 0 0 1px var(--tone-line, var(--ops-neutral-line));
}

/* حركة الظهور */
@keyframes dxRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dx-rise { animation: dxRise .45s cubic-bezier(.2,.7,.2,1) both; }

/* ══ ٦ · الوضع الليليّ ═════════════════════════════════════════════════ */
:root[data-theme="dark"] .ops-topbar { background: rgb(22 27 34 / .95); border-bottom-color: var(--ops-hairline); }
:root[data-theme="dark"] .dx-hero {
  background:
    radial-gradient(90% 140% at 0% 0%, rgb(var(--brand-600) / .40), transparent 55%),
    linear-gradient(135deg, rgb(var(--brand-900)), rgb(13 17 23));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06);
}
:root[data-theme="dark"] .dx-hero__btn--solid { background: rgb(var(--brand-400)); color: rgb(13 17 23); }
:root[data-theme="dark"] .dx-chip { color: rgb(var(--c, var(--brand-400))); background: rgb(var(--c, var(--brand-400)) / .16); }
:root[data-theme="dark"] .dx-bars__bar--opened { background: linear-gradient(180deg, rgb(var(--brand-300)), rgb(var(--brand-500))); }
:root[data-theme="dark"] .dx-bars__bar--resolved { background: linear-gradient(180deg, #6ee7b7, #10b981); }
:root[data-theme="dark"] .ops-avatar { box-shadow: 0 0 0 2px var(--ops-surface), 0 0 0 3px rgb(var(--brand-700)); }

@media (max-width: 640px) {
  .dx-hero { padding: 20px; border-radius: 16px; }
  .dx-kpi__value { font-size: 26px; }
}

/* ══ ٧ · مكوّنات الموجة الثالثة: القائمة المنسدلة · الحوار · التبويبات · التاريخ ══ */
.ops-dd { position: relative; display: inline-block; }
.ops-dd > summary { list-style: none; cursor: pointer; }
.ops-dd > summary::-webkit-details-marker { display: none; }
.ops-dd__trigger { display: inline-flex; align-items: center; gap: 6px; }
.ops-dd__chev { width: 14px; height: 14px; transition: transform .18s ease; }
.ops-dd[open] .ops-dd__chev { transform: rotate(180deg); }
.ops-dd__menu {
  position: absolute; top: calc(100% + 6px); z-index: var(--ops-z-dropdown, 40);
  min-width: 200px; padding: 6px;
  background: var(--ops-surface); border: 1px solid var(--ops-line);
  border-radius: 12px; box-shadow: var(--ops-shadow-3);
}
.ops-dd__menu--end { inset-inline-end: 0; }
.ops-dd__menu--start { inset-inline-start: 0; }
.ops-dd__item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--ops-ink); text-align: start;
}
.ops-dd__item:hover, .ops-dd__item:focus-visible { background: var(--ops-surface-2); }
.ops-dd__item--danger { color: var(--ops-danger-fg); }
.ops-dd__sep { height: 1px; margin: 6px 4px; background: var(--ops-hairline); }

.ops-dialog {
  padding: 0; border: 0; background: transparent; color: var(--ops-ink);
  max-width: min(560px, calc(100vw - 32px)); width: 100%;
}
.ops-dialog--sm { max-width: min(420px, calc(100vw - 32px)); }
.ops-dialog--lg { max-width: min(820px, calc(100vw - 32px)); }
.ops-dialog::backdrop { background: rgb(15 23 42 / .5); backdrop-filter: blur(2px); }
.ops-dialog[open] .ops-dialog__panel { animation: dxRise .22s cubic-bezier(.2,.7,.2,1) both; }
.ops-dialog__panel {
  background: var(--ops-surface); border: 1px solid var(--ops-line);
  border-radius: 16px; box-shadow: var(--ops-shadow-3); overflow: hidden;
}
.ops-dialog__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ops-hairline); }
.ops-dialog__title { font-size: 15px; font-weight: 700; flex: 1; }
.ops-dialog__x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--ops-muted); }
.ops-dialog__x:hover { background: var(--ops-surface-2); color: var(--ops-ink); }
.ops-dialog__x svg { width: 18px; height: 18px; }
.ops-dialog__body { padding: 20px; font-size: 13.5px; line-height: 1.8; color: var(--ops-ink-2); }
.ops-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; background: var(--ops-surface-2); border-top: 1px solid var(--ops-hairline); }

.ops-tabs__list { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--ops-line); margin-bottom: 16px; }
.ops-tabs__tab {
  position: relative; padding: 10px 14px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--ops-muted);
}
.ops-tabs__tab:hover { color: var(--ops-ink); }
.ops-tabs__tab[aria-selected="true"] { color: var(--ops-accent-ink); }
.ops-tabs__tab[aria-selected="true"]::after {
  content: ""; position: absolute; inset-inline: 10px; bottom: -1px; height: 2px;
  border-radius: 2px; background: var(--ops-accent);
}
/* بلا جافاسكربت: اللوحات كلّها ظاهرة والشريط مخفيّ. */
.ops-tabs:not([data-ready]) .ops-tabs__list { display: none; }
.ops-tabs[data-ready] .ops-tabs__panel:not([data-shown]) { display: none; }

.ops-date {
  height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--ops-line); background: var(--ops-surface); color: var(--ops-ink);
  font-variant-numeric: tabular-nums; text-align: start;
}
.ops-date--error { border-color: var(--ops-danger-line); }

/* ── الوضع الداكن: تدرّجات الخلفيّة الباهتة ─────────────────────────────
   ⚠️ `from-*-50` في الوضع الفاتح لونٌ شبه أبيض. وفي الداكن كان يُرسم
   كما هو فوق بطاقةٍ داكنة، فيصير شريطًا رماديًّا فاتحًا تحت نصٍّ فاتح
   (تباين ١٫٢ في لوحة إعداد الموديول). فيُستبدل بمسحةٍ من درجة ٤٠٠ بشفافيّة
   ١٢٪ — القاعدة نفسها التي تتبعها `bg-*-50` في ops-system.css. */
:root[data-theme="dark"] .from-amber-50 { --tw-gradient-from: rgb(251 191 36 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-blue-50 { --tw-gradient-from: rgb(96 165 250 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-brand-50 { --tw-gradient-from: rgb(var(--brand-400) / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-brand-50\/70 { --tw-gradient-from: rgb(var(--brand-400) / .10) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-cyan-50 { --tw-gradient-from: rgb(34 211 238 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-emerald-50 { --tw-gradient-from: rgb(52 211 153 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-fuchsia-50 { --tw-gradient-from: rgb(232 121 249 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-gray-50 { --tw-gradient-from: rgb(156 163 175 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-green-50 { --tw-gradient-from: rgb(74 222 128 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-indigo-50 { --tw-gradient-from: rgb(129 140 248 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-lime-50 { --tw-gradient-from: rgb(163 230 53 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-neutral-50 { --tw-gradient-from: rgb(163 163 163 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-orange-50 { --tw-gradient-from: rgb(251 146 60 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-pink-50 { --tw-gradient-from: rgb(244 114 182 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-purple-50 { --tw-gradient-from: rgb(192 132 252 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-red-50 { --tw-gradient-from: rgb(248 113 113 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-rose-50 { --tw-gradient-from: rgb(251 113 133 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-sky-50 { --tw-gradient-from: rgb(56 189 248 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-slate-100 { --tw-gradient-from: rgb(148 163 184 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-slate-50 { --tw-gradient-from: rgb(148 163 184 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-stone-50 { --tw-gradient-from: rgb(168 162 158 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-teal-50 { --tw-gradient-from: rgb(45 212 191 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-violet-50 { --tw-gradient-from: rgb(167 139 250 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-yellow-50 { --tw-gradient-from: rgb(250 204 21 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .from-zinc-50 { --tw-gradient-from: rgb(161 161 170 / .12) var(--tw-gradient-from-position) !important; }
:root[data-theme="dark"] .to-amber-50 { --tw-gradient-to: rgb(251 191 36 / .08) var(--tw-gradient-to-position) !important; }
:root[data-theme="dark"] .to-emerald-50 { --tw-gradient-to: rgb(52 211 153 / .08) var(--tw-gradient-to-position) !important; }
:root[data-theme="dark"] .to-orange-50 { --tw-gradient-to: rgb(251 146 60 / .08) var(--tw-gradient-to-position) !important; }
:root[data-theme="dark"] .to-red-50 { --tw-gradient-to: rgb(248 113 113 / .08) var(--tw-gradient-to-position) !important; }
:root[data-theme="dark"] .via-amber-50 { --tw-gradient-stops: var(--tw-gradient-from), rgb(251 191 36 / .10) var(--tw-gradient-via-position), var(--tw-gradient-to) !important; }
