/* brand.css — يُوحِّدُ لوحةَ الإدارة (الإصدار الثاني) مع هويةِ الصفحةِ الرئيسيةِ وتطبيقِ الجوال.
 *
 * المرجع: /platform-site.css (الألوانُ والخطوطُ والوضعُ الليلي html.theme) و/admin/v2/identity.css.
 * يُحمَّلُ بعد theme.css وidentity.css، ولا يغيّرُ تخطيطَ البطاقاتِ ولا شبكتَها — الرموزَ والأشكالَ فقط.
 * الوضعُ الليلي: الصنفُ html.theme والمفتاحُ localStorage "tera-theme" هما نفسُهما في الصفحةِ الرئيسية،
 * فاختيارُ المستخدمِ في الموقعِ يسري على اللوحة والعكس. انظر theme-mode.js.
 */


/* ===== ١) الرموز: هويةُ الموقعِ بدلَ ألوانِ الإصدارِ الأول ===== */
.t2 {

  /* الأقطار: أنعمُ ومطابقةٌ لبطاقاتِ الموقع (--id-card) */     /* ارتفاعٌ موحَّدٌ لكلِّ عناصرِ التحكم: البحثُ والقوائمُ والأزرار */
  color-scheme: light;
}

/* ===== ٢) الوضعُ الليلي — نفسُ قيمِ الصفحةِ الرئيسية (platform-site.css: html.theme) ===== */
html.theme .t2 {
  color-scheme: dark;
}
html.theme, html.theme body { background: #07142A; color: #E8EEF8; }

/* ===== ٣) الطباعة: Alexandria للعناوين، IBM Plex Sans Arabic للنص ===== */
.t2 { font-family: var(--t2-ff-text); color: var(--t2-ink); }
.t2 :is(.t2-phead-t, .t2-group-t, .t2-card-t, .t2-side-mark-n, .t2-panel-h h3, h1, h2) {
  font-family: var(--t2-ff-display);
  letter-spacing: 0;
}
.t2 .t2-phead-t { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); font-weight: 800; color: var(--t2-ink); }
.t2 .t2-phead-s { font-size: .95rem; color: var(--t2-muted); }
.t2 .t2-group-t { font-size: 1.05rem; font-weight: 700; color: var(--t2-ink); }

/* ===== ٤) الأشكال: الترويسةُ والشريطُ والأسطح ===== */
.t2.t2-app, .t2 .t2-app { background: var(--t2-bg); }
.t2 .t2-head {
  background: color-mix(in srgb, var(--t2-surface) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--t2-line);
  min-height: 4rem;
}
.t2 .t2-side-i { border-radius: 12px; }

.t2 .t2-btn { min-height: var(--t2-ctl-h); border-radius: var(--t2-r); padding-inline: 1rem; font-weight: 600; }
.t2 .t2-btn.is-sm { min-height: 2.25rem; border-radius: 10px; }
.t2 .t2-btn:hover { border-color: var(--t2-line-2); }
.t2 .t2-btn.is-primary { background: var(--t2-brand-3); border-color: var(--t2-brand-3); color: #fff; }
.t2 .t2-btn.is-primary:hover { background: var(--t2-navy); border-color: var(--t2-navy); }
html.theme .t2 .t2-btn.is-primary { background: var(--t2-brand); border-color: var(--t2-brand); color: var(--t2-brand-ink); }
html.theme .t2 .t2-btn.is-primary:hover { background: var(--t2-brand-3); }

.t2 .t2-input { background-color: var(--t2-input); color: var(--t2-ink); border-color: var(--t2-line); border-radius: var(--t2-r); }
.t2 :is(input.t2-input:not([type="checkbox"]):not([type="radio"]), select.t2-input) { min-height: var(--t2-ctl-h); }
.t2 select.t2-input:not([multiple]), .t2 select.t2-input:not([multiple]):is(:focus, :active) {
  background-color: var(--t2-input);
  background-image: var(--t2-chev);
}
.t2 .t2-input:hover { border-color: var(--t2-line-2); }

.t2 .t2-panel, .t2 .t2-pager {
  border-radius: var(--t2-radius-card);
}

/* ===== ٥) مكوِّنُ التصفيةِ الموحَّد =====
 * DS.filterBar وشريطُ أدواتِ الجدول (ds2) وUI2.search وشريطُ fm-filters في fmtpl
 * كلُّها تُرسَمُ بالشكلِ نفسِه: حقلُ بحثٍ بأيقونة، ثم الفرز، ثم زرُّ «التصفية (n)»، ثم العدّاد. */
.t2 .t2-fl, .t2 .t2-fm-filters {
  padding: 10px;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius-card);
  background: var(--t2-surface);
  box-shadow: var(--t2-sh-1);
}
.t2 .t2-fl { display: grid; gap: 10px; }
.t2 .t2-fm-filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.t2 .t2-fm-filters > * { width: auto; }
.t2 .t2-fm-filters > select.t2-input { flex: 0 1 13rem; }
.t2 .t2-fl-row { gap: 8px 10px; }
.t2 :is(.t2-fl-q > .t2-input, input.t2-fm-q, input.t2-fl-qi, .t2-ttools > input[type="search"]) {
  inline-size: 100%;
  flex: 1 1 18rem;
  min-height: var(--t2-ctl-h);
  padding-inline-start: 2.6rem;
  border-radius: var(--t2-r);
  background-color: var(--t2-surface-2);
  background-image: var(--t2-search-ic); background-repeat: no-repeat; background-size: 1.05rem; background-position: right .9rem center;
}
.t2 :is(.t2-fl-q > .t2-input, input.t2-fm-q, input.t2-fl-qi):focus { background-color: var(--t2-input); }
.t2 .t2-fl-btn { min-height: var(--t2-ctl-h); }
.t2 .t2-fl-btn.is-on { border-color: var(--t2-brand); background: var(--t2-brand-wash); color: var(--t2-brand-3); }
.t2 .t2-fl-n { background: var(--t2-brand-3); color: #fff; }
html.theme .t2 .t2-fl-n { background: var(--t2-brand); color: var(--t2-brand-ink); }
.t2 .t2-fl-c { font-size: .82rem; font-weight: 600; color: var(--t2-muted); padding-inline: 4px; }
.t2 .t2-fl-panel { border-radius: var(--t2-radius-card); background: var(--t2-surface-2); box-shadow: none; }
.t2 .t2-fl-chip { border-color: color-mix(in srgb, var(--t2-brand) 35%, transparent); padding-block: 4px; }
.t2 .t2-fl-x { background: color-mix(in srgb, var(--t2-brand) 16%, transparent); }
.t2 .t2-fl-x:hover { background: color-mix(in srgb, var(--t2-brand) 30%, transparent); }
@media (max-width: 40rem) {
  .t2 .t2-fm-filters > * { flex: 1 1 100%; }
}

/* ===== ٦) البطاقة: نفسُ الشبكةِ والترتيب، ومحتوىً داخليٌّ أوضح ===== */
.t2 .t2-card {
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  min-height: 5.5rem;
  border-radius: var(--t2-radius-card);
  border-color: var(--t2-line);
  background: var(--t2-surface);
  box-shadow: var(--t2-sh-1);
}
.t2 .t2-card::after { width: 4px; border-radius: 0 4px 4px 0; inset-block: 14px; height: auto; top: 14px; bottom: 14px; }
.t2 .t2-card:hover { border-color: color-mix(in srgb, var(--t2-brand) 45%, var(--t2-line)); box-shadow: var(--t2-sh-2); }
.t2 .t2-card.is-on { background: var(--t2-brand-wash); border-color: var(--t2-brand); }
.t2 .t2-card.is-alert { border-color: color-mix(in srgb, var(--t2-amber) 55%, var(--t2-line)); }
.t2 .t2-card.is-alert::after { background: var(--t2-amber); opacity: 1; }
.t2 .t2-card[disabled] { background: var(--t2-surface-2); }
.t2 .t2-card-ico {
  inline-size: 3rem; block-size: 3rem; border-radius: 14px;
  background: var(--t2-surface-3);
  align-self: start;
}
.t2 .t2-card-ico svg { inline-size: 34px; block-size: auto; }
.t2 .t2-card-b { display: grid; gap: 4px; min-width: 0; padding-inline-end: 1.4rem; }
.t2 .t2-card-t { font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--t2-ink); }
.t2 .t2-card-d { margin: 0; font-size: .86rem; line-height: 1.6; color: var(--t2-muted); }
.t2 .t2-card-d.is-warn { color: var(--t2-warn); font-weight: 600; }
.t2 .t2-card-n {
  justify-self: start; margin-top: 4px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--t2-brand-wash); color: var(--t2-brand-3);
  font-size: .78rem; font-weight: 700;
}
.t2 .t2-card-go {
  position: absolute; inset-inline-end: 14px; bottom: 14px;
  display: grid; place-items: center; inline-size: 1.75rem; block-size: 1.75rem;
  border-radius: 50%; background: var(--t2-surface-3); color: var(--t2-muted);
  font-size: 1.05rem; line-height: 1;
  transition: background var(--t2-fast) var(--t2-ease), color var(--t2-fast) var(--t2-ease);
}
.t2 .t2-card:hover .t2-card-go { background: var(--t2-brand-3); color: #fff; }
.t2 .t2-card[disabled] .t2-card-go { display: none; }
.t2 .t2-card-badge {
  top: 14px; inset-inline-end: 14px;
  min-inline-size: 1.5rem; text-align: center;
  padding: 2px 8px; border: 0;
  background: var(--t2-navy); color: #fff; font-size: .75rem;
}
.t2 .t2-card-badge.is-alert { background: var(--t2-amber); color: #2B1700; }

/* ===== ٧) إصلاحاتُ الوضعِ الليليِّ للقيمِ المكتوبةِ أرقامًا في theme.css ===== */
html.theme .t2 :is(.t2-hbtn, .t2-hwho, .t2-hwho-m, .t2-pager, .t2-panel, .t2-dlg2, .t2-drawer, .t2-modal) {
  background-color: var(--t2-surface); color: var(--t2-ink); border-color: var(--t2-line);
}
html.theme .t2 :is(.t2-side-mark-l) { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .25)) brightness(1.25); }
html.theme .t2 .t2-card-ico { background: var(--t2-surface-3); }
html.theme .t2 .t2-head { background: rgba(7, 20, 42, .94); }

/* زرُّ الوضع الليلي */
.t2 .t2-hbtn.is-theme .t2-hbtn-t { display: none; }
@media (prefers-reduced-motion: reduce) {
  .t2 .t2-card, .t2 .t2-card-go { transition: none; }
}

/* identity.css يثبّتُ القوائمَ على الأبيض (html[dir="rtl"] …): في الليلِ تتبعُ الرموز */
html.theme[dir="rtl"] .t2 select.t2-input:not([multiple]), html.theme[dir="rtl"] .t2 select.t2-input:not([multiple]):is(:hover, :focus, :active, :focus-visible), html.theme[dir="rtl"] .t2 select.t2-country-code {
  color-scheme: dark;
  background-color: var(--t2-input);
  background-image: var(--t2-chev);
  color: var(--t2-ink);
}
html.theme[dir="rtl"] .t2 select.t2-input:not([multiple]) option { background-color: var(--t2-surface); color: var(--t2-ink); }

/* رموزُ الطبقةِ المتأخرةِ في theme.css (‎--t2-ff-*‎، ‎--t2-ctl‎) تُوجَّهُ إلى الهويةِ نفسِها */
html.theme .t2 .t2-card-badge:not(.is-alert) { background: var(--t2-brand); color: var(--t2-brand-ink); }

/* ===================== الجولة الثانية ===================== */

/* ===== ٨) الأرقام: لاتينية (0-9) دائمًا، متساويةُ العرض، ومحاذاةٌ ثابتة =====
 * التنسيقُ في num.js/kit.js بـ ar-SA-u-nu-latn؛ هنا العرضُ فقط. */
.t2 { font-variant-numeric: lining-nums tabular-nums; }
.t2 :is(.t2-card-n, .t2-card-badge, .t2-fl-c, .t2-fl-n, .t2-side-c, .t2-dock-n, .t2-hbtn-n, td.is-num, th.is-num, .t2-pager, .t2-side-gh-n) {
  font-family: var(--t2-ff-text);
  font-feature-settings: "tnum" 1, "lnum" 1;
  unicode-bidi: plaintext;
}

/* ===== ٩) الأيقونات: لوحُ الصفحةِ الرئيسية (100×112) ===== */
.t2 svg.t2-tile { display: block; flex: none; overflow: visible; }
.t2 :is(button, a, .t2-card):is(:hover, :focus-visible) svg.t2-tile { transform: translateY(-2px) rotate(-3deg); transition: transform .25s var(--t2-ease); }
.t2 .t2-card-ico { background: transparent; inline-size: auto; block-size: auto; }
.t2 .t2-side-ic { background: transparent !important; box-shadow: none !important; }
.t2 .t2-side-ic svg.t2-tile { inline-size: 26px; block-size: auto; }
.t2 .t2-hbtn svg.t2-tile { inline-size: 24px; block-size: auto; }
@media (prefers-reduced-motion: reduce) { .t2 svg.t2-tile { transform: none !important; } }

/* ===== ١٠) الجداول: رأسٌ واضحٌ ثابت، تظليلٌ متناوب، كثافةٌ عملية، أرقامٌ محاذاة، عمودُ إجراءات ===== */

/* ===== ١١) فتحُ الأقسامِ وطيُّها: سهمٌ موحَّدٌ يدورُ مع aria-expanded ===== */
/* مغلقٌ: السهمُ نحو بدايةِ السطر (يسارًا في RTL ‹)، مفتوحٌ: للأسفل */
.t2 .t2-side-gh { display: flex; align-items: center; gap: 8px; inline-size: 100%; padding: 8px 10px; border-radius: 10px; font-weight: 700; font-size: .8rem; color: var(--t2-ink-2); }
.t2 .t2-side-gh-n { margin-inline-start: auto; display: none; min-inline-size: 1.4rem; padding: 0 6px; border-radius: 999px; background: var(--t2-surface-3); font-size: .72rem; text-align: center; color: var(--t2-muted); }
.t2 .t2-side-gh[aria-expanded="false"] .t2-side-gh-n { display: inline-block; }
.t2 .t2-side-g.is-closed > .t2-side-gb { display: none; }
.t2 .t2-fold-h { display: flex; align-items: center; gap: 10px; inline-size: 100%; padding: 12px 14px; font-weight: 700; }
.t2 .t2-fold-h[aria-expanded="true"] { border-bottom: 1px solid var(--t2-line); }
.t2 .t2-fold { border-radius: 16px; }
/* <details> (UI2.fold وغيره): المؤشرُ نفسُه */

/* ===== ١٢) الجوال: شريطٌ سفليٌّ وورقةٌ سفليةٌ بدلَ الشريطِ الجانبي ===== */
.t2 .t2-dock { display: none; }
@media (max-width: 40rem) {
  .t2.t2-app { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .t2 .t2-hburger { display: none !important; }
  .t2 .t2-dock {
    position: fixed; z-index: 60; inset-inline: 0; bottom: 0;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--t2-surface) 96%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--t2-line);
    box-shadow: 0 -8px 24px rgba(10, 31, 68, .08);
  }
  .t2 .t2-dock-i {
    position: relative; display: grid; justify-items: center; align-content: center; gap: 2px;
    min-block-size: 58px; padding: 4px 2px; border: 0; border-radius: 14px; background: transparent;
    color: var(--t2-muted); font: inherit; font-family: var(--t2-ff-display); font-size: .68rem; font-weight: 700; cursor: pointer;
  }
  .t2 .t2-dock-i svg.t2-tile { inline-size: 28px; block-size: auto; }
  .t2 .t2-dock-i.is-on { color: var(--t2-ink); background: var(--t2-brand-wash); }
  .t2 .t2-dock-l { max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .t2 .t2-dock-n { position: absolute; top: 2px; inset-inline-start: calc(50% + 6px); min-inline-size: 1.1rem; padding: 0 4px; border-radius: 999px; background: var(--t2-amber); color: #2B1700; font-size: .62rem; line-height: 1.1rem; }

  /* الشريطُ الجانبيُّ يصيرُ ورقةً سفليةً تُفتَحُ من «المزيد» */
  .t2.t2-app > .t2-side {
    position: fixed; inset-inline: 0 !important; top: auto; bottom: 0;
    inline-size: auto !important; block-size: auto; max-block-size: 82dvh;
    border-radius: 24px 24px 0 0; padding: 10px 14px calc(90px + env(safe-area-inset-bottom));
    transform: translateY(105%); transition: transform .28s var(--t2-ease);
    box-shadow: 0 -18px 40px rgba(7, 21, 46, .25);
  }
  html.t2-drawer-on .t2.t2-app > .t2-side { transform: none; }
  .t2.t2-app > .t2-side::before { content: ''; display: block; inline-size: 44px; block-size: 5px; margin: 0 auto 8px; border-radius: 99px; background: var(--t2-line-2); }
  .t2.t2-app > .t2-side .t2-side-f, .t2.t2-app > .t2-side .t2-side-h { display: none; }
  .t2.t2-app > .t2-side .t2-side-gb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .t2.t2-app > .t2-side .t2-side-i { flex-direction: column; justify-content: center; text-align: center; min-block-size: 86px; gap: 6px; padding: 8px 4px; border: 1px solid var(--t2-line); border-radius: 16px; background: var(--t2-surface); }
  .t2.t2-app > .t2-side .t2-side-i .t2-side-l { font-size: .74rem; white-space: normal; }
  .t2.t2-app > .t2-side .t2-side-ic svg.t2-tile { inline-size: 34px; }
  .t2.t2-app > .t2-side-bd { z-index: 55; }
  .t2 .t2-head { min-height: 3.5rem; }
}

/* ===================== الجولة الثالثة ===================== */
/* الشعار في الوضع الليلي: نسخةُ الموقعِ البيضاء بدلَ الملوّنة (لا مرشِّحات) */
.t2 .t2-hd-logo-n, .t2 .t2-side-mark-n { display: none; }
html.theme .t2 .t2-hd-logo, html.theme .t2 .t2-side-mark-l { display: none !important; }
html.theme .t2 .t2-hd-logo-n { display: block; block-size: 2.6rem; inline-size: auto; flex: none; }
html.theme .t2 .t2-side-mark-n { display: block; block-size: 26px; inline-size: auto; }
@media (max-width: 48rem) { html.theme .t2 .t2-hd-logo-n { block-size: 2.1rem; } }

/* شريطُ الجوالِ والورقة: أيقوناتُ الموقعِ نفسُها ومقاساتُها (mobile-system.css: .m-dock .tile 22×26) */
.t2 .t2-side-icm { display: none; }
@media (max-width: 40rem) {
  .t2 .t2-dock-i svg.t2-htile { inline-size: 26px; block-size: 30px; }
  .t2 .t2-dock-i { font-size: 10px; line-height: 12px; font-weight: 600; color: var(--t2-muted); }
  .t2 .t2-dock-i.is-on { background: transparent; color: var(--t2-ink); }
  .t2 .t2-dock-i.is-on::after { content: ''; position: absolute; top: 0; inline-size: 22px; block-size: 3px; border-radius: 0 0 3px 3px; background: var(--t2-brand); }
  .t2.t2-app > .t2-side .t2-side-ic { display: none; }
  .t2.t2-app > .t2-side .t2-side-icm { display: block; }
  .t2.t2-app > .t2-side .t2-side-icm svg { inline-size: 36px; block-size: 40px; }
}

/* ===== ١٣) المحتوى الداخلي: لوحاتٌ وحقولٌ وشاراتٌ بالهوية ===== */
.t2 .t2-panel { padding: 18px 20px; border: 1px solid var(--t2-line); background: var(--t2-surface); box-shadow: var(--t2-sh-1); }
.t2 .t2-panel-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--t2-line); }
.t2 .t2-panel-h .t2-group-t { margin: 0; font-size: 1.05rem; }
.t2 .t2-panel-h .t2-group-n { font-size: .82rem; color: var(--t2-muted); line-height: 1.6; }
.t2 .t2-field-k { font-size: .76rem; font-weight: 600; color: var(--t2-muted); }
.t2 .t2-field-v { font-size: .95rem; font-weight: 600; color: var(--t2-ink); overflow-wrap: anywhere; }
.t2 .t2-tech, .t2 bdi.t2-tech { font-family: var(--t2-ff-text); font-feature-settings: "tnum" 1; direction: ltr; unicode-bidi: isolate; letter-spacing: .02em; }
.t2 .t2-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--t2-surface-3); color: var(--t2-ink-2); border: 1px solid transparent; }
.t2 .t2-pill.is-ok { background: var(--t2-ok-wash); color: var(--t2-ok); }
.t2 .t2-pill.is-warn { background: var(--t2-warn-wash); color: var(--t2-warn); }
.t2 .t2-pill.is-danger { background: var(--t2-danger-wash); color: var(--t2-danger); }
.t2 .t2-pill.is-info { background: var(--t2-info-wash); color: var(--t2-info); }

/* مؤشِّرُ المراحل (اعتمادُ الملف) */
.t2 .t2-steps { --n: 6; list-style: none; margin: 0; padding: 4px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; counter-reset: s; }
.t2 .t2-step { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding-inline: 4px; }
.t2 .t2-step::before { content: ''; position: absolute; top: 17px; inset-inline-start: 50%; inline-size: 100%; block-size: 3px; background: var(--t2-line); z-index: 0; }
.t2 .t2-step:last-child::before { display: none; }
.t2 .t2-step.is-done::before { background: var(--t2-brand); }
.t2 .t2-step-n { position: relative; z-index: 1; display: grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: 50%; background: var(--t2-surface); border: 2px solid var(--t2-line-2); color: var(--t2-muted); font-family: var(--t2-ff-display); font-weight: 800; font-size: .9rem; }
.t2 .t2-step.is-done .t2-step-n { background: var(--t2-brand); border-color: var(--t2-brand); color: #fff; }
.t2 .t2-step.is-now .t2-step-n { background: var(--t2-amber); border-color: var(--t2-amber); color: #2B1700; box-shadow: 0 0 0 5px color-mix(in srgb, var(--t2-amber) 22%, transparent); }
.t2 .t2-step-t { font-size: .8rem; font-weight: 700; color: var(--t2-ink); line-height: 1.35; }
.t2 .t2-step.is-todo .t2-step-t { color: var(--t2-muted); font-weight: 500; }
.t2 .t2-step-at { font-size: .7rem; color: var(--t2-muted); font-feature-settings: "tnum" 1; direction: ltr; min-block-size: 1em; }
.t2 .t2-step.is-now .t2-step-at { color: var(--t2-warn); font-weight: 700; }

/* صفوفُ المطابقة: البندُ وقيمتُه يمينًا، الحكمُ وأزرارُه يسارًا */
.t2 .t2-panel .t2-stack:has(> .t2-mrow) { gap: 0; border: 1px solid var(--t2-line); border-radius: 14px; overflow: hidden; }
.t2 .t2-mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 12px 14px; border-bottom: 1px solid var(--t2-line); background: var(--t2-surface); border-inline-start: 4px solid transparent; }
.t2 .t2-mrow:last-child { border-bottom: 0; }
.t2 .t2-mrow > .t2-field-k { font-size: .92rem; font-weight: 600; color: var(--t2-ink); }
.t2 .t2-mrow.is-match { border-inline-start-color: var(--t2-ok); }
.t2 .t2-mrow.is-mismatch { border-inline-start-color: var(--t2-danger); background: color-mix(in srgb, var(--t2-danger-wash) 55%, var(--t2-surface)); }
.t2 .t2-mrow.is-pending { border-inline-start-color: var(--t2-line-2); }
.t2 .t2-mrow .t2-row { flex-wrap: nowrap; gap: 6px; justify-content: flex-end; }
.t2 .t2-mrow .t2-btn.is-sm { min-height: 2rem; padding-inline: .7rem; }
.t2 .t2-mrow .t2-btn.is-danger { background: transparent; color: var(--t2-danger); border-color: color-mix(in srgb, var(--t2-danger) 40%, transparent); }
.t2 .t2-mrow .t2-btn.is-danger:hover { background: var(--t2-danger); color: #fff; }
.t2 .t2-mrow .t2-row-wrap { grid-column: 1 / -1; }
.t2 .t2-mrow-a { gap: 6px; }

/* مرفقاتُ الملف */
.t2 .t2-docrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 12px 14px; border: 1px solid var(--t2-line); border-radius: 14px; background: var(--t2-surface-2); }
.t2 .t2-docrow > .t2-field-k { font-weight: 700; color: var(--t2-ink); padding-inline-start: 34px; position: relative; }
.t2 .t2-docrow > .t2-field-k::before { content: ''; position: absolute; inset-inline-start: 0; top: 50%; translate: 0 -50%; inline-size: 24px; block-size: 28px; border-radius: 6px; background: var(--t2-brand-wash); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--t2-brand) 35%, transparent); }
.t2 .t2-docrow.is-miss { border-color: color-mix(in srgb, var(--t2-danger) 40%, var(--t2-line)); }
.t2 .t2-docrow.is-miss > .t2-field-k::before { background: var(--t2-danger-wash); }
.t2 .t2-docrow .t2-row { justify-content: flex-end; gap: 6px; }
.t2 .t2-docrow .t2-row > span:not(.t2-pill) { font-size: .78rem; color: var(--t2-muted); }

/* لوحةُ القرار: إطارٌ مميَّز وأزرارٌ في شريطٍ ثابتٍ أسفلَ اللوحة */
.t2 .t2-decide { border: 2px solid color-mix(in srgb, var(--t2-brand) 45%, var(--t2-line)); background: linear-gradient(180deg, var(--t2-brand-wash), var(--t2-surface) 120px); }
.t2 .t2-decide .t2-decide-a { position: sticky; bottom: 0; z-index: 3; margin: 6px -20px -18px; padding: 12px 20px; gap: 10px; border-top: 1px solid var(--t2-line); background: color-mix(in srgb, var(--t2-surface) 96%, transparent); backdrop-filter: blur(8px); border-radius: 0 0 18px 18px; }
.t2 .t2-decide .t2-btn.is-grant { background: var(--t2-navy-3); border-color: var(--t2-navy-3); color: #fff; }
html.theme .t2 .t2-decide .t2-btn.is-grant { background: #2E8FD0; border-color: #2E8FD0; }
.t2 .t2-decide .t2-decide-a .t2-btn.is-danger { margin-inline-start: auto; }
.t2 .t2-decide label.t2-row { padding: 10px 12px; border-radius: 12px; background: var(--t2-warn-wash); }

/* إدارةُ الحساب: جداولُ الأدوارِ والصلاحياتِ داخلَ اللوحات */
.t2 .t2-panel .t2-row:has(> select.t2-input) select.t2-input { flex: 1 1 14rem; max-inline-size: 22rem; }

/* بطاقةُ الحالةِ وطلبُ التوثيق */
.t2 .t2-sc { border-radius: var(--t2-radius-card); padding: 18px 20px; border: 1px solid var(--t2-line); background: var(--t2-surface); box-shadow: var(--t2-sh-1); }
.t2 .t2-sc-bar { block-size: 10px; border-radius: 999px; background: var(--t2-surface-3); overflow: hidden; }
.t2 .t2-sc-bar > * { background: linear-gradient(90deg, #63E2E0, var(--t2-brand)); border-radius: 999px; }
.t2 .t2-sc-pct { font-family: var(--t2-ff-display); font-weight: 800; font-feature-settings: "tnum" 1; }
.t2 .t2-vf-nav { border-radius: 16px; padding: 8px; border: 1px solid var(--t2-line); background: var(--t2-surface); }
.t2 .t2-vf-i { border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.t2 .t2-vf-i.is-ok .t2-vf-ic { background: var(--t2-ok-wash); color: var(--t2-ok); }
.t2 .t2-vf-i.is-warn .t2-vf-ic { background: var(--t2-warn-wash); color: var(--t2-warn); }
.t2 .t2-vf-n { color: var(--t2-warn); }
.t2 .t2-vf-card { border-radius: var(--t2-radius-card); padding: 18px 20px; border: 1px solid var(--t2-line); background: var(--t2-surface); }
.t2 .t2-vf-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--t2-line); }
.t2 .t2-vf-pt { font-family: var(--t2-ff-display); font-size: 1.05rem; margin: 0; }
.t2 .t2-fu-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.t2 .t2-fu-step { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 0 8px; padding-inline-start: 26px; }
.t2 .t2-fu-step::before { content: ''; position: absolute; inset-inline-start: 6px; top: 50%; translate: 0 -50%; inline-size: 12px; block-size: 12px; border-radius: 50%; background: var(--t2-line-2); }
.t2 .t2-fu-step::after { content: ''; position: absolute; inset-inline-start: 11px; top: 50%; block-size: 100%; inline-size: 2px; background: var(--t2-line); }
.t2 .t2-fu-step:last-child::after { display: none; }
.t2 .t2-fu-step.is-done::before { background: var(--t2-brand); }
.t2 .t2-fu-step.is-now::before { background: var(--t2-amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t2-amber) 25%, transparent); }
.t2 .t2-fu-at { font-size: .76rem; color: var(--t2-muted); font-feature-settings: "tnum" 1; }
html.theme .t2 :is(.t2-vf-i:hover) { background: var(--t2-surface-3); }

@media (max-width: 40rem) {
  .t2 .t2-panel { padding: 14px; }
  .t2 .t2-steps { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .t2 .t2-step { grid-template-columns: 36px 1fr auto; justify-items: start; text-align: start; align-items: center; gap: 10px; padding-block: 6px; }
  .t2 .t2-step::before { top: 50%; inset-inline-start: 17px; inline-size: 3px; block-size: 100%; }
  .t2 .t2-mrow, .t2 .t2-docrow { grid-template-columns: 1fr; }
  .t2 .t2-mrow .t2-row, .t2 .t2-docrow .t2-row { justify-content: flex-start; flex-wrap: wrap; }
  .t2 .t2-decide .t2-decide-a { bottom: calc(70px + env(safe-area-inset-bottom)); margin-inline: -14px; padding-inline: 14px; flex-wrap: wrap; }
  .t2 .t2-decide .t2-decide-a .t2-btn { flex: 1 1 45%; }
  .t2 .t2-decide .t2-decide-a .t2-btn.is-danger { margin-inline-start: 0; }
}
/* تثبيتُ ما سبق أمامَ قواعدِ theme.css الأقدم ذاتِ الأسماءِ نفسِها */
.t2 ol.t2-steps > li.t2-step { display: grid; padding: 0 4px; border-radius: 0; background: transparent; box-shadow: none; }
.t2 ol.t2-steps > li.t2-step > .t2-step-n { inline-size: 36px; block-size: 36px; font-size: .9rem; }
.t2 ol.t2-steps > li.t2-step.is-done > .t2-step-n { background: var(--t2-brand); border-color: var(--t2-brand); color: #fff; }
.t2 ol.t2-steps > li.t2-step.is-now > .t2-step-n { background: var(--t2-amber); border-color: var(--t2-amber); color: #2B1700; }
@media (max-width: 40rem) { .t2 ol.t2-steps > li.t2-step { grid-template-columns: 36px 1fr auto; padding: 6px 0; } }
@media (max-width: 40rem) { .t2 .t2-field-v { font-size: .88rem; } }
.t2 .t2-card:has(> .t2-card-badge) .t2-card-go { display: none; }

/* =====================================================================
   الاتجاهُ B (مركزُ القيادة) مع لمساتٍ من C (بطاقاتٌ ناعمة، حلقةُ تقدُّم)
   شريطٌ أيقونيٌّ نحيف + ترويسةٌ ببحثِ الأوامر + شريطُ أرقام + لوحاتٌ متجاورة
   ===================================================================== */

/* ---- البطاقاتُ واللوحات: زوايا ناعمةٌ وظلٌّ خفيف ---- */
.t2 .t2-panel, .t2 .t2-card, .t2 .t2-act, .t2 .t2-dash-recent { border-radius: var(--b-r); box-shadow: var(--b-sh); }
.t2 .t2-panel { border: 1px solid var(--t2-line); background: var(--t2-surface); }

/* ---- الترويسة: سطحٌ فاتحٌ وبحثُ أوامرٍ في الوسط ---- */
.t2.t2-app > .t2-head { background: var(--t2-surface); border-bottom: 1px solid var(--t2-line); box-shadow: none; }
.t2 .t2-hcmd { display: inline-flex; align-items: center; gap: 10px; inline-size: min(26rem, 40vw); block-size: 40px; padding-inline: 12px 8px;
  border: 1px solid var(--t2-line); border-radius: 12px; background: var(--t2-surface-2); color: var(--t2-muted); font: inherit; font-size: .88rem; cursor: pointer; margin-inline-start: 18px; }
.t2 .t2-hcmd:hover { border-color: var(--t2-brand); color: var(--t2-ink); }
.t2 .t2-hcmd:focus-visible { outline: 3px solid color-mix(in srgb, var(--t2-brand) 45%, transparent); outline-offset: 2px; }
.t2 .t2-hcmd-i { inline-size: 18px; block-size: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.t2 .t2-hcmd-t { flex: 1; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t2 .t2-kbd { font: 600 .72rem/1 var(--t2-ff-display); direction: ltr; padding: 4px 7px; border-radius: 7px; border: 1px solid var(--t2-line); background: var(--t2-surface); color: var(--t2-muted); }

/* ---- نافذةُ الأوامر ---- */
.t2-cmd-bd { position: fixed; inset: 0; z-index: 200; background: rgba(7,20,42,.45); backdrop-filter: blur(3px); display: grid; justify-items: center; align-items: start; padding-top: 12vh; direction: rtl; }
.t2-cmd-bd .t2-cmd { inline-size: min(36rem, 92vw); background: var(--t2-surface); border: 1px solid var(--t2-line); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); overflow: hidden; }
.t2-cmd-bd .t2-cmd-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--t2-line); }
.t2-cmd-bd .t2-cmd-q { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--t2-ink); }
.t2-cmd-bd .t2-cmd-l { list-style: none; margin: 0; padding: 6px; max-block-size: 50vh; overflow: auto; }
.t2-cmd-bd .t2-cmd-i { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; color: var(--t2-ink); }
.t2-cmd-bd .t2-cmd-i.is-on, .t2-cmd-bd .t2-cmd-i:hover { background: var(--t2-brand-wash); }
.t2-cmd-bd .t2-cmd-ic svg { inline-size: 30px; block-size: 30px; display: block; }
.t2-cmd-bd .t2-cmd-t { flex: 1; font-weight: 600; }
.t2-cmd-bd .t2-cmd-k { font-size: .75rem; color: var(--t2-brand-2); }
.t2-cmd-bd .t2-cmd-e { padding: 18px; color: var(--t2-muted); text-align: center; }

/* ---- الشريطُ الأيقونيُّ النحيف (سطح المكتب) ---- */
@media (min-width: 64.01rem) {
  .t2 .t2-side.is-min { inline-size: var(--b-rail); width: var(--b-rail); padding: 10px 8px; }
  html.theme .t2 .t2-side.is-min { background: linear-gradient(180deg, #0A1F44, #07142A); border: 0; }
  .t2.t2-app > .t2-side.is-min .t2-side-mark { display: flex; justify-content: center; padding: 4px 0 10px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 6px; }
  .t2 .t2-side.is-min .t2-side-mark-l, .t2 .t2-side.is-min .t2-side-mark-t { display: none !important; }
  .t2 .t2-side.is-min img.t2-side-mark-n { display: block !important; inline-size: 34px; block-size: 34px; object-fit: contain; }
  html.theme .t2 .t2-side.is-min .t2-side-g + .t2-side-g { border-top: 1px solid rgba(255,255,255,.08); padding-top: 6px; margin-top: 4px; }
  .t2 .t2-side.is-min .t2-side-i { position: relative; justify-items: center; padding: 6px 0; min-height: 52px; border-radius: 14px; background: transparent; }
  .t2 .t2-side.is-min .t2-side-ic { display: none; }
  .t2 .t2-side.is-min .t2-side-icm { display: block !important; }
  .t2 .t2-side.is-min .t2-side-icm svg { inline-size: 40px; block-size: 40px; display: block; }
  html.theme .t2 .t2-side.is-min .t2-side-i:hover { background: rgba(255,255,255,.07); }
  html.theme .t2 .t2-side.is-min .t2-side-i.is-on { background: rgba(10,165,173,.22); box-shadow: inset 0 0 0 1px rgba(10,165,173,.55); }
  .t2 .t2-side.is-min .t2-side-i.is-on::before { content: ""; position: absolute; inset-inline-start: -8px; inset-block: 12px; inline-size: 4px; border-radius: 0 4px 4px 0; background: var(--t2-brand); }
  .t2 .t2-side.is-min .t2-side-c { display: block; position: absolute; top: 2px; inset-inline-end: 4px; min-inline-size: 18px; padding: 1px 5px; border-radius: 9px; background: #E5484D; color: #fff; font-size: .66rem; font-weight: 700; text-align: center; }
  html.theme .t2 .t2-side.is-min .t2-side-t { color: rgba(255,255,255,.7); justify-content: center; }
}

/* ---- مساحةُ المحتوى ---- */
@media (min-width: 64.01rem) { .t2.t2-app > .t2-main .t2-body { padding: 22px 26px 40px; } }

/* ---- الرئيسية: ترحيبٌ + إجراءات متجاورة، وشريطُ أرقام ---- */
.t2 .t2-dash.is-cmd { display: grid; gap: 18px; }
.t2 .t2-dash-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.t2 .t2-dash-top > * { margin: 0; min-width: 0; }
.t2 .t2-dash.is-cmd .t2-dash-head { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: center; gap: 6px 18px;
  padding: 24px 26px; border-radius: var(--b-r); color: #fff; border: 0; box-shadow: var(--b-sh);
  background: radial-gradient(120% 140% at 0% 0%, rgba(10,165,173,.55), transparent 55%), linear-gradient(135deg, #0A1F44, #1D3F78); }
.t2 .t2-dash.is-cmd .t2-dash-head::after { content: ""; position: absolute; inset-inline-start: -40px; bottom: -60px; inline-size: 180px; block-size: 180px; border-radius: 50%; background: rgba(255,200,97,.12); pointer-events: none; }
.t2 .t2-dash.is-cmd .t2-dash-head.has-ring { grid-template-columns: auto minmax(0,1fr); }
.t2 .t2-dash.is-cmd .t2-dash-head .t2-dash-t { color: #fff; font-size: 1.6rem; }
.t2 .t2-dash.is-cmd .t2-dash-head .t2-dash-eye, .t2 .t2-dash.is-cmd .t2-dash-head .t2-dash-sub, .t2 .t2-dash.is-cmd .t2-dash-head .t2-dash-at { color: rgba(255,255,255,.82); }
.t2 .t2-dash.is-cmd .t2-dash-head .t2-dash-tools { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; justify-content: flex-start; }
.t2 .t2-dash.is-cmd .t2-dash-head .t2-btn:not(.is-primary) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.t2 .t2-ring { position: relative; display: grid; justify-items: center; gap: 2px; grid-row: span 2; z-index: 1; }
.t2 .t2-ring-s { inline-size: 104px; block-size: 104px; transform: rotate(-90deg); }
.t2 .t2-ring-bg { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 7; }
.t2 .t2-ring-fg { fill: none; stroke: #FFC861; stroke-width: 7; stroke-linecap: round; }
.t2 .t2-ring-v { position: absolute; top: 34px; inset-inline: 0; text-align: center; font: 700 1.35rem/1 var(--t2-ff-display); color: #fff; font-variant-numeric: tabular-nums; }
.t2 .t2-ring-l { font-size: .76rem; color: rgba(255,255,255,.9); font-weight: 600; }
.t2 .t2-ring-sub { font-size: .72rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.t2 .t2-dash.is-cmd .t2-dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.t2 .t2-dash.is-cmd .t2-dash-grid > * { min-width: 0; }
.t2 .t2-dash.is-cmd .t2-dash-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }

/* ---- الاعتماد: ثلاثةُ أعمدة — الطابور | الخطواتُ والمطابقة | الملخّصُ والقرار ---- */
.t2 .t2-rvw { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.t2 .t2-rvw-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 18px; align-items: start; min-width: 0; }
.t2 .t2-rvw-main, .t2 .t2-rvw-side { min-width: 0; }
.t2 .t2-rvw-side { position: sticky; top: calc(var(--t2-hh, 4.5rem) + 16px); max-block-size: calc(100dvh - var(--t2-hh, 4.5rem) - 32px); overflow: auto; padding-bottom: 2px; scrollbar-width: thin; }
.t2 .t2-rvw-side .t2-decide { position: relative; }
.t2 .t2-rvw-q { position: sticky; top: calc(var(--t2-hh, 4.5rem) + 16px); border: 1px solid var(--t2-line); border-radius: var(--b-r); background: var(--t2-surface); box-shadow: var(--b-sh); overflow: hidden; }
.t2 .t2-rvw-qh { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 700; color: var(--t2-ink); border-bottom: 1px solid var(--t2-line); }
.t2 .t2-rvw-qn { min-inline-size: 24px; padding: 2px 8px; border-radius: 10px; background: var(--t2-brand-wash); color: var(--t2-brand-3); font-size: .78rem; text-align: center; font-variant-numeric: tabular-nums; }
.t2 .t2-rvw-ql { display: grid; gap: 2px; padding: 6px; max-block-size: calc(100dvh - 12rem); overflow: auto; }
.t2 .t2-rvw-qi { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--t2-ink); font: inherit; text-align: start; cursor: pointer; }
.t2 .t2-rvw-qi:hover { background: var(--t2-surface-2); }
.t2 .t2-rvw-qi.is-on { background: var(--t2-brand-wash); box-shadow: inset -3px 0 0 var(--t2-brand); }
.t2 .t2-rvw-qt { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t2 .t2-rvw-qm { font-size: .78rem; color: var(--t2-brand-3); font-variant-numeric: tabular-nums; direction: ltr; }
.t2 .t2-rvw-qs, .t2 .t2-rvw-qi > :last-child { font-size: .74rem; color: var(--t2-muted); }
html.theme .t2 .t2-rvw-qi.is-on { background: rgba(10,165,173,.16); }
html.theme .t2 .t2-rvw-qm { color: #5FD3D8; }
.t2 .t2-rvw .t2-mrow { padding-block: 8px; }
@media (max-width: 90rem) { .t2 .t2-rvw { grid-template-columns: 210px minmax(0,1fr); } .t2 .t2-rvw-detail { grid-template-columns: minmax(0,1fr) 300px; } }
@media (max-width: 78rem) { .t2 .t2-rvw { grid-template-columns: minmax(0,1fr); } .t2 .t2-rvw-q { display: none; } }
@media (max-width: 56rem) {
  .t2 .t2-rvw-detail { grid-template-columns: minmax(0,1fr); }
  .t2 .t2-rvw-side { position: static; max-block-size: none; overflow: visible; }
  .t2 .t2-rvw-side .t2-decide { position: static; }
}
@media (max-width: 64rem) { .t2 .t2-dash-top, .t2 .t2-dash.is-cmd .t2-dash-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 40rem) {
  .t2 .t2-hcmd { inline-size: 40px; padding: 0; justify-content: center; margin: 0; }
  .t2 .t2-hcmd-t, .t2 .t2-hcmd .t2-kbd { display: none; }
  .t2 .t2-dash.is-cmd .t2-dash-head { padding: 18px; }
  .t2 .t2-dash.is-cmd .t2-dash-head .t2-dash-t { font-size: 1.3rem; }
  .t2 .t2-ring-s { inline-size: 78px; block-size: 78px; }
  .t2 .t2-ring-v { top: 26px; font-size: 1.05rem; }
  .t2 .t2-dash.is-cmd .t2-dash-top { order: -1; }
}
@media (min-width: 40.01rem) and (max-width: 64rem) { .t2 .t2-hcmd { inline-size: auto; flex: 1; max-inline-size: 22rem; } }

/* ===== B6: إصلاحاتُ الفحصِ الحيّ ===== */
/* (1) الشعار: لا يتقلّصُ ولا يُقصُّ مع توسيعِ القائمة؛ بحثُ الأوامرِ هو ما ينكمش */
.t2.t2-app > .t2-head .t2-hd-brand { flex: none; min-inline-size: max-content; }
.t2.t2-app > .t2-head .t2-hcmd { flex: 0 1 26rem; inline-size: auto; min-inline-size: 0; }
html.theme .t2.t2-app > .t2-head.is-v3 .t2-hd-logo-n { display: block !important; block-size: 2.6rem; inline-size: auto; max-inline-size: none; margin: 0; flex: none; opacity: 1; visibility: visible; }
html.theme .t2.t2-app > .t2-head.is-v3 .t2-hd-logo { display: none !important; }
@media (max-width: 48rem) { html.theme .t2.t2-app > .t2-head.is-v3 .t2-hd-logo-n { block-size: 2.1rem; } }
/* (2) القائمةُ كحليّةٌ على سطحِ المكتب في الحالتين (نحيفةً وموسَّعة)، بنفسِ تحديدِ قواعدِ theme.css */
@media (min-width: 64.01rem) {
  html.theme .t2.t2-app > .t2-side { background: linear-gradient(180deg, #0A1F44, #07142A); border-inline-start: 0; color: #fff; }
  html.theme .t2.t2-app > .t2-side .t2-side-gh { color: rgba(255,255,255,.62); background: transparent; }
  html.theme .t2.t2-app > .t2-side .t2-side-gh-n { color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
  html.theme .t2.t2-app > .t2-side .t2-side-i { color: rgba(255,255,255,.86); background: transparent; }
  html.theme .t2.t2-app > .t2-side .t2-side-i .t2-side-l { color: inherit; }
  html.theme .t2.t2-app > .t2-side .t2-side-i:hover { background: rgba(255,255,255,.07); color: #fff; }
  html.theme .t2.t2-app > .t2-side .t2-side-i.is-on { background: rgba(10,165,173,.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(10,165,173,.5); }
  html.theme .t2.t2-app > .t2-side .t2-side-ic { background: rgba(255,255,255,.08); }
  html.theme .t2.t2-app > .t2-side .t2-side-i:hover .t2-side-ic, html.theme .t2.t2-app > .t2-side .t2-side-i.is-on .t2-side-ic { background: rgba(255,255,255,.14); box-shadow: none; }
  html.theme .t2.t2-app > .t2-side .t2-side-g + .t2-side-g { border-top-color: rgba(255,255,255,.08); }
  html.theme .t2.t2-app > .t2-side .t2-side-c { background: #E5484D; color: #fff; }
  html.theme .t2.t2-app > .t2-side .t2-side-f { border-top-color: rgba(255,255,255,.08); background: transparent; }
  html.theme .t2.t2-app > .t2-side .t2-side-f .t2-side-t { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
  html.theme .t2.t2-app > .t2-side .t2-side-f .t2-side-t:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
}
/* (3) نافذةُ الأوامر: تعتيمٌ شفّافٌ لا سطحٌ مُصمَت */
.t2-cmd-bd { background: rgba(7,20,42,.42) !important; }
html.theme .t2-cmd-bd { background: rgba(0,0,0,.55) !important; }
.t2-cmd-bd > .t2.t2-cmd { background: var(--t2-surface); min-block-size: 0; }
/* (4) الاعتماد على ~1280px: عمودُ الملخّصِ أعرض، والطابورُ أضيقُ قليلًا */
.t2 .t2-rvw { grid-template-columns: minmax(200px, 230px) minmax(0, 1fr); }
.t2 .t2-rvw-detail { grid-template-columns: minmax(0, 1fr) minmax(330px, 380px); }
@media (max-width: 90rem) { .t2 .t2-rvw { grid-template-columns: minmax(190px, 210px) minmax(0, 1fr); } .t2 .t2-rvw-detail { grid-template-columns: minmax(0, 1fr) minmax(320px, 350px); } }
@media (max-width: 84rem) { .t2 .t2-rvw { grid-template-columns: minmax(0, 1fr); } .t2 .t2-rvw-q { display: none; } }
@media (max-width: 62rem) { .t2 .t2-rvw-detail { grid-template-columns: minmax(0, 1fr); } .t2 .t2-rvw-side { position: static; max-block-size: none; overflow: visible; } }
.t2 .t2-rvw-side { scrollbar-gutter: stable; padding-inline-end: 4px; }
.t2 .t2-rvw-side .t2-field-v { overflow-wrap: normal; word-break: normal; white-space: normal; }
.t2 .t2-email { display: inline-block; direction: ltr; overflow-wrap: anywhere; word-break: normal; }
.t2 .t2-rvw-side .t2-field-v .t2-pill { white-space: nowrap; }
/* بنودُ المرفقات: العنوانُ فوق، ثم الشاراتُ والأوقاتُ في سطرٍ يلتفّ */
.t2 .t2-rvw-side .t2-docrow { grid-template-columns: minmax(0, 1fr); align-items: start; }
.t2 .t2-rvw-side .t2-docrow > .t2-field-k { white-space: normal; overflow: visible; text-overflow: clip; }
.t2 .t2-rvw-side .t2-docrow .t2-row { justify-content: flex-start; flex-wrap: wrap; row-gap: 6px; }
.t2 .t2-rvw-side .t2-docrow .t2-row > * { min-inline-size: 0; }
.t2 .t2-rvw-side .t2-fields > :has(.t2-email) { grid-column: 1 / -1; }
@media (min-width: 64.01rem) {
  html.theme .t2.t2-app > .t2-side .t2-side-f .t2-side-t { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.14) !important; color: rgba(255,255,255,.85) !important; }
}
/* (B6) ورقةُ «المزيد» على الجوال: عنوانٌ وزرُّ إغلاق، وبلا تكرارٍ لما في الشريطِ السفلي */
.t2 .t2-sheet-t, .t2 .t2-sheet-x { display: none; }
@media (max-width: 40rem) {
  .t2.t2-app > .t2-side .t2-side-h { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--t2-line); min-height: 0; }
  .t2.t2-app > .t2-side .t2-side-h .t2-side-mark { display: none !important; }
  .t2.t2-app > .t2-side .t2-sheet-t { display: block; font-weight: 700; font-size: 1rem; color: var(--t2-ink); }
  .t2.t2-app > .t2-side .t2-sheet-x { display: inline-grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 12px; border: 1px solid var(--t2-line); background: var(--t2-surface-2); color: var(--t2-ink); font-size: 1.05rem; cursor: pointer; }
  .t2.t2-app > .t2-side .t2-sheet-x:focus-visible { outline: 3px solid color-mix(in srgb, var(--t2-brand) 45%, transparent); outline-offset: 2px; }
  .t2.t2-app > .t2-side .t2-side-i.in-dock { display: none !important; }
  .t2.t2-app > .t2-side .t2-side-g:not(:has(.t2-side-i:not(.in-dock))) { display: none; }
  .t2.t2-app > .t2-side .t2-side-ic { display: none; }
  .t2.t2-app > .t2-side .t2-side-icm { display: block !important; }
  .t2.t2-app > .t2-side .t2-side-icm svg { inline-size: 36px; block-size: 36px; display: block; margin-inline: auto; }
}
@media (max-width: 40rem) { .t2.t2-app > .t2-side .t2-side-i .t2-side-l { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; max-inline-size: 100%; } }

/* =====================================================================
   B7 — قوالبُ المحتوى الداخليِّ الموحَّدة (معاينةٌ لم تُنشَر بعد)
   رأسُ الصفحة · قسمٌ قابلٌ للطيّ · شبكةُ حقول · صفوفُ معلومات · بطاقات · جداول · حالاتُ الفراغ · صفوفُ إعداداتٍ بمفاتيح
   ===================================================================== */
/* رأسُ الصفحة */
.t2 .t2-phead { display: grid; gap: 6px; padding-block: 2px 6px; }
.t2 .t2-phead h1, .t2 .t2-phead .t2-phead-t { font-family: var(--t2-ff-display); font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); line-height: 1.35; color: var(--t2-ink); margin: 0; overflow-wrap: break-word; }
.t2 .t2-phead p, .t2 .t2-phead .t2-phead-s { max-inline-size: 72ch; color: var(--t2-muted); line-height: 1.75; margin: 0; }

/* القسم: سطحٌ واحدٌ ورأسٌ بسهم */
.t2 .t2-sec { border: 1px solid var(--t2-line); border-radius: var(--b-r, 18px); background: var(--t2-surface); box-shadow: var(--b-sh); overflow: clip; }
.t2 .t2-sec.is-plain { border: 0; background: none; box-shadow: none; overflow: visible; }
.t2 .t2-sec .t2-panel, .t2 .t2-sec .t2-sec { box-shadow: none; }
.t2 .t2-sec-h { display: flex; align-items: center; gap: 12px; inline-size: 100%; margin: 0; padding: 14px 18px; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; }
.t2 button.t2-sec-h { cursor: pointer; }
.t2 button.t2-sec-h:hover { background: var(--t2-surface-2); }
.t2 button.t2-sec-h:focus-visible { outline: 3px solid color-mix(in srgb, var(--t2-brand) 45%, transparent); outline-offset: -3px; }
.t2 .t2-sec-tx { display: grid; gap: 2px; flex: 1; min-inline-size: 0; }
.t2 .t2-sec-tx .t2-group-t { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--t2-ink); overflow-wrap: break-word; }
.t2 .t2-sec-tx .t2-group-n { font-size: .82rem; color: var(--t2-muted); line-height: 1.6; overflow-wrap: break-word; }
.t2 .t2-sec-b { padding: 4px 18px 18px; border-top: 1px solid var(--t2-line); padding-top: 14px; min-inline-size: 0; }
.t2 .t2-sec.is-plain > .t2-sec-b { padding: 0; border: 0; }
.t2 .t2-sec.is-closed > .t2-sec-b { display: none; }

/* شبكةُ حقولِ التحرير: عمودان على الشاشات الواسعة، والأزرارُ بعرضِ السطر */
.t2 .t2-sec-b > .t2-stack-tight:has(> .t2-field.is-edit) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px 18px; align-items: start; }
.t2 .t2-sec-b > .t2-stack-tight:has(> .t2-field.is-edit) > :not(.t2-field) { grid-column: 1 / -1; }
.t2 .t2-field.is-edit { display: grid; gap: 6px; min-inline-size: 0; }
.t2 .t2-field.is-edit > .t2-field-k { font-size: .84rem; font-weight: 600; color: var(--t2-ink-2); line-height: 1.5; overflow-wrap: break-word; }
.t2 .t2-field.is-edit > .t2-input, .t2 .t2-field.is-edit > select, .t2 .t2-field.is-edit > textarea { inline-size: 100%; min-inline-size: 0; }

/* صفوفُ الإعداد: مفتاحُ تبديل */
.t2 .t2-field.is-toggle { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--t2-line); border-radius: 14px; background: var(--t2-surface-2); cursor: pointer; }
.t2 .t2-field.is-toggle:hover { border-color: color-mix(in srgb, var(--t2-brand) 45%, var(--t2-line)); }
.t2 .t2-field.is-toggle:has(> .t2-switch:checked) { background: var(--t2-brand-wash); border-color: color-mix(in srgb, var(--t2-brand) 40%, var(--t2-line)); }
html.theme .t2 .t2-field.is-toggle:has(> .t2-switch:checked) { background: rgba(10,165,173,.14); }
.t2 .t2-field.is-toggle > .t2-field-k { font-weight: 600; color: var(--t2-ink); }
.t2 input.t2-switch { appearance: none; -webkit-appearance: none; margin: 0; flex: none; inline-size: 44px; block-size: 26px; border-radius: 99px; background: var(--t2-line-2); position: relative; cursor: pointer; transition: background .18s; }
.t2 input.t2-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; inline-size: 20px; block-size: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .18s; }
.t2 input.t2-switch:checked { background: var(--t2-brand); }
.t2 input.t2-switch:checked::after { inset-inline-start: 21px; }
.t2 input.t2-switch:disabled { opacity: .55; cursor: not-allowed; }
.t2 input.t2-switch:focus-visible { outline: 3px solid color-mix(in srgb, var(--t2-brand) 45%, transparent); outline-offset: 2px; }
/* مجموعةُ مفاتيح (صلاحياتُ دور): شبكةٌ متجاوبة */
.t2 .t2-sec-b > .t2-stack-tight:has(> .t2-field.is-toggle) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }

/* صفوفُ المعلومات (حقولُ العرض): لا قصَّ للنص */
.t2 .t2-field { min-inline-size: 0; }
.t2 .t2-field-k { overflow-wrap: break-word; }
.t2 .t2-field-v { overflow-wrap: break-word; word-break: normal; min-inline-size: 0; line-height: 1.6; }
.t2 .t2-field-v :is(code, .t2-code, [dir="ltr"]) { overflow-wrap: anywhere; }

/* الملاحظات: مضغوطةٌ ومقروءة */
.t2 .t2-note { border-radius: 14px; padding: 12px 14px; gap: 12px; align-items: start; }
.t2 .t2-note-t { font-weight: 700; line-height: 1.5; overflow-wrap: break-word; }
.t2 .t2-note-b { line-height: 1.75; overflow-wrap: break-word; }

/* الأرقام: بطاقاتٌ ناعمة */

/* حالةُ الفراغ */
.t2 .t2-empty { border: 1px dashed var(--t2-line-2); border-radius: var(--b-r, 18px); background: var(--t2-surface); padding: 28px 18px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.t2 .t2-empty-t { font-weight: 700; color: var(--t2-ink); }
.t2 .t2-empty-b { color: var(--t2-muted); max-inline-size: 52ch; line-height: 1.7; }

/* رأسُ التفاصيل (fm-head) والكتل */
.t2 .t2-fm-block { min-inline-size: 0; }
.t2 .t2-fm-head { display: grid; gap: 8px; }
.t2 .t2-fm-back { border-radius: 12px; }

/* الجداولُ داخلَ الأقسام: بلا إطارٍ مزدوج */
.t2 td, .t2 th { overflow-wrap: break-word; }

/* ===== الوضعُ الليلي للمحتوى الداخلي: لا خلفياتٍ بيضاءَ ثابتة ===== */

html.theme .t2-dlg-skin, html.theme .t2-dlg-skin .t2-panel, html.theme .t2-reg-draft-card { background: var(--t2-surface) !important; color: var(--t2-ink); border-color: var(--t2-line); }
html.theme :is(.t2, .t2-dlg-skin) .t2-otp .t2-seg-b, html.theme :is(.t2, .t2-dlg-skin) .t2-reg-digit, html.theme :is(.t2, .t2-dlg-skin) .t2-reg-line, html.theme :is(.t2, .t2-dlg-skin) .t2-reg-rules li, html.theme :is(.t2, .t2-dlg-skin) .t2-reg-agree, html.theme :is(.t2, .t2-dlg-skin) .t2-reg-path li, html.theme .t2 .t2-country-code, html.theme .t2 select.t2-country-code.t2-input { background-color: var(--t2-input, var(--t2-surface-2)) !important; color: var(--t2-ink) !important; border-color: var(--t2-line) !important; }
html.theme :is(.t2, .t2-dlg-skin) .t2-otp .t2-seg-b.is-cur { border-color: var(--t2-brand) !important; }
html.theme .t2 :is(.t2-card, .t2-panel, .t2-sec, .t2-note, .t2-field.is-toggle) :is(p, span, div, li, label) { color: inherit; }
@media (max-width: 40rem) {
  .t2 .t2-sec-h { padding: 12px 14px; }
  .t2 .t2-sec-b { padding: 12px 14px 14px; }
  .t2 .t2-sec-b > .t2-stack-tight:has(> .t2-field.is-edit) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) { .t2 .t2-dock-l { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; font-size: .68rem; text-align: center; max-inline-size: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }

/* ===== B7b — per-screen inner content ===== */
/* WhatsApp: status strip + cards on t2 tokens (light & dark) */

/* Permissions: readable label + separate key chip, switch on the end */
.t2 .t2-perm-grp .t2-sec-b > .t2-stack-tight { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.t2 .t2-perm { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--t2-line); border-radius: 12px; background: var(--t2-surface); cursor: pointer; min-width: 0; }
.t2 .t2-perm.is-on { border-color: var(--t2-brand-3, var(--t2-brand)); background: var(--t2-brand-wash); }
.t2 .t2-perm-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.t2 .t2-perm-l { color: var(--t2-ink); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.t2 .t2-perm-k { align-self: flex-start; font-size: .72rem; color: var(--t2-muted); background: var(--t2-surface-2); border: 1px solid var(--t2-line); border-radius: 6px; padding: 1px 6px; max-inline-size: 100%; overflow-wrap: anywhere; }

/* Unified list bar: search · sort · filter · count */
.t2 .t2-fl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.t2 .t2-fl-row .t2-fl-q { flex: 1 1 16rem; min-width: 0; }
.t2 .t2-fl-so { display: flex; gap: 4px; align-items: center; }
.t2 .t2-fl-sort { min-inline-size: 10rem; max-inline-size: 16rem; }
.t2 .t2-fl-dir { min-inline-size: 2.4rem; justify-content: center; }
.t2 .t2-fl-c { margin-inline-start: auto; color: var(--t2-muted); font-size: .82rem; white-space: nowrap; }
@media (max-width: 40rem) { .t2 .t2-fl-row .t2-fl-q { flex-basis: 100%; } .t2 .t2-fl-so { flex: 1 1 auto; } .t2 .t2-fl-sort { flex: 1; max-inline-size: none; } }

/* Profile / verification: never clip */
.t2 :is(dl) :is(dd, dt, .t2-field-v) { min-width: 0; overflow-wrap: anywhere; white-space: normal; text-overflow: clip; }
.t2 .t2-field :is(input, select, textarea) { min-width: 0; max-inline-size: 100%; }

/* =====================================================================
   B8 — نظامُ المحتوى الداخليِّ الموحَّد (مرجع: Ant Design Pro «Descriptions + ProCard»
   للسجلّاتِ والملفّات، ومقاساتُ Carbon للنماذجِ الكثيفة). طبقةٌ أخيرةٌ تُوحِّدُ كلَّ
   البطاقاتِ والحقولِ والجداولِ داخلَ .t2-body على رموزِ B نفسِها.
   ===================================================================== */
@media (max-width: 40rem) { .t2 { --i-card-pad: var(--i-sp-4); } }

/* 1) سطحُ البطاقةِ الواحد: كلُّ حاوياتِ المحتوى الداخلي */
.t2 .t2-body :is(.t2-sec, .t2-panel, .t2-fold, .t2-detail, .t2-fm-block, .t2-vf-card, .t2-sc, .t2-pb-upd, .t2-rec) {
  background: var(--i-card-bg); border: 1px solid var(--i-card-line); border-radius: var(--i-r-lg);
  box-shadow: var(--i-sh); color: var(--t2-ink); min-width: 0;
}
.t2 .t2-body :is(.t2-sec, .t2-panel, .t2-fold) :is(.t2-sec, .t2-panel, .t2-fold, .t2-fm-block) { box-shadow: none; }
.t2 .t2-body :is(.t2-panel, .t2-detail, .t2-fm-block, .t2-vf-card, .t2-pb-upd) { padding: var(--i-card-pad); }
.t2 .t2-body .t2-sec-h { padding: var(--i-sp-4) var(--i-card-pad); min-block-size: 56px; }
.t2 .t2-body .t2-sec-b { padding: 0 var(--i-card-pad) var(--i-card-pad); }
.t2 .t2-body .t2-sec.is-plain .t2-sec-b { padding: var(--i-card-pad); }
.t2 .t2-body .t2-fold-h { padding: var(--i-sp-4) var(--i-card-pad); min-block-size: 56px; font-size: var(--i-fs-lg); }
.t2 .t2-body .t2-fold-b { padding: 0 var(--i-card-pad) var(--i-card-pad); }

/* 2) سُلَّمُ الطباعة: عنوانُ البطاقةِ بالخطِّ العرضيِّ، والوصفُ والتسمياتُ بمقاسٍ ثابت */
.t2 .t2-body :is(.t2-sec-tx .t2-group-t, .t2-panel-h .t2-group-t, .t2-detail-h .t2-group-t, .t2-vf-pt, .t2-fm-sec-t, .t2-fm-title, .t2-fold-t, .t2-rec-t) {
  font-family: var(--t2-ff-display); font-size: var(--i-fs-lg); font-weight: 700; line-height: 1.45; color: var(--t2-ink); margin: 0; letter-spacing: 0;
}
.t2 .t2-body :is(.t2-group-n, .t2-fold-n, .t2-pb-hint, .t2-sec-tx .t2-group-n) { font-size: var(--i-fs-sm); color: var(--t2-muted); line-height: 1.6; }
.t2 .t2-body { font-size: var(--i-fs-md); }
.t2 .t2-body :is(.t2-input, select.t2-input, .t2-btn:not(.is-sm)) { min-block-size: var(--i-ctl); border-radius: var(--i-r-md); font-size: var(--i-fs-md); }
.t2 .t2-body .t2-btn.is-sm { min-block-size: 32px; border-radius: var(--i-r-sm); font-size: var(--i-fs-sm); }
.t2 .t2-body :is(.t2-pill, .t2-badge) { font-size: var(--i-fs-xs); font-weight: 600; border-radius: 999px; padding: 2px 10px; line-height: 1.6; }
.t2 .t2-body .t2-stack { gap: var(--i-sp-4); }
.t2 .t2-body .t2-stack-tight { gap: var(--i-sp-3); }

/* 3) «الحقل / القيمة» (Descriptions): شبكةٌ بحدودٍ داخليةٍ رفيعة، التسميةُ فوقَ القيمة */

/* 4) بطاقاتُ المرفقات */
.t2 .t2-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: var(--i-sp-3); }
.t2 .t2-file { display: flex; align-items: center; gap: var(--i-sp-3); padding: var(--i-sp-3) var(--i-sp-4); border: 1px solid var(--t2-line); border-radius: var(--i-r-md); background: var(--t2-surface-2); min-width: 0; }
.t2 .t2-file.is-ok { border-inline-start: 3px solid var(--t2-st-ok); }
.t2 .t2-file.is-bad { border-inline-start: 3px solid var(--t2-st-danger); }
.t2 .t2-file-ic { flex: none; inline-size: 40px; block-size: 48px; border-radius: 8px; display: grid; place-items: center; font: 700 .68rem/1 var(--t2-ff-text); letter-spacing: .04em; color: #fff; background: var(--t2-navy-3); }
.t2 .t2-file-ic.is-pdf { background: #C2410C; } .t2 .t2-file-ic.is-img { background: var(--t2-brand-2); }
.t2 .t2-file-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.t2 .t2-file-t b { font-size: var(--i-fs-md); color: var(--t2-ink); overflow-wrap: anywhere; }
.t2 .t2-file-n { font-size: var(--i-fs-xs); color: var(--t2-muted); overflow-wrap: anywhere; text-align: start; }
.t2 .t2-file-x { font-size: var(--i-fs-xs); color: var(--t2-st-danger); }
.t2 .t2-file-a { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }

/* 5) رأسُ السجلّ (الحساب) */
.t2 .t2-body .t2-rec { padding: var(--i-card-pad); display: flex; flex-direction: column; gap: var(--i-sp-4); }
.t2 .t2-rec-back { align-self: flex-start; }
.t2 .t2-rec-m { display: flex; align-items: center; gap: var(--i-sp-4); flex-wrap: wrap; }
.t2 .t2-rec-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 14rem; }
.t2 .t2-body .t2-rec-t { font-size: var(--i-fs-xl); }
.t2 .t2-rec-s { color: var(--t2-muted); font-size: var(--i-fs-sm); overflow-wrap: anywhere; text-align: start; }
.t2 .t2-rec-b { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 2px; }
.t2 .t2-rec-a { display: flex; gap: var(--i-sp-2); flex-wrap: wrap; }
.t2 .t2-rec-st { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0; margin: 0; border: 1px solid var(--t2-line); border-radius: var(--i-r-md); overflow: hidden; }
.t2 .t2-rec-sti { padding: var(--i-sp-3) var(--i-sp-4); box-shadow: inset -1px 0 0 var(--t2-line); background: var(--t2-surface-2); min-width: 0; }
.t2 .t2-rec-sti dt { font-size: var(--i-fs-xs); color: var(--t2-muted); }
.t2 .t2-rec-sti dd { margin: 2px 0 0; font: 700 var(--i-fs-md)/1.5 var(--t2-ff-display); color: var(--t2-ink); overflow-wrap: anywhere; }
.t2 .t2-rec-sti.is-ok dd { color: var(--t2-st-ok); } .t2 .t2-rec-sti.is-warn dd { color: var(--t2-st-warn); } .t2 .t2-rec-sti.is-bad dd { color: var(--t2-st-danger); }
@media (max-width: 40rem) { .t2 .t2-rec-st { grid-template-columns: 1fr 1fr; } }

/* 6) قائمةُ الإجراءات: صفُّ وصفٍ + زرّ */
.t2 .t2-acxs { display: flex; flex-direction: column; border: 1px solid var(--t2-line); border-radius: var(--i-r-md); overflow: hidden; }
.t2 .t2-acx { display: flex; align-items: center; justify-content: space-between; gap: var(--i-sp-3); padding: var(--i-sp-3) var(--i-sp-4); border-block-end: 1px solid var(--t2-line); }
.t2 .t2-acx:last-child { border-block-end: 0; }
.t2 .t2-acx-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t2 .t2-acx-t b { font-size: var(--i-fs-md); color: var(--t2-ink); } .t2 .t2-acx-t small { font-size: var(--i-fs-sm); color: var(--t2-muted); }
.t2 .t2-acx.is-danger b { color: var(--t2-st-danger); }
.t2 .t2-acx .t2-btn { flex: none; }

/* 7) الجداولُ والتنبيهات على السُّلَّمِ نفسِه */
.t2 .t2-body .t2-note { border-radius: var(--i-r-md); padding: var(--i-sp-3) var(--i-sp-4); }
.t2 .t2-body .t2-note-t { font-size: var(--i-fs-md); font-weight: 700; }
.t2 .t2-body .t2-note-b { font-size: var(--i-fs-sm); line-height: 1.7; }

/* 8) الحوارات (OTP وغيرها) على سطوحِ B في الوضعين */
.t2-dlg-skin, .t2 .t2-dlg-skin, :is(.t2-modal) {
  font-family: var(--t2-ff-text);
}
html.theme :is(.t2-dlg-skin, .t2-modal) { background: var(--t2-surface) !important; color: var(--t2-ink) !important; border-color: var(--t2-line) !important; }
html.theme :is(.t2-dlg-skin, .t2-modal) :is(input, select, textarea) { background: var(--t2-surface-2) !important; color: var(--t2-ink) !important; border-color: var(--t2-line-2) !important; }
html.theme :is(.t2-dlg-skin, .t2-modal) :is(p, small, .t2-muted, label) { color: var(--t2-ink-2); }
/* حوارُ ربطِ الواتس اب ورمزُ التحقق: رموزُ B بدلَ ألوانِ الواجهةِ القديمة (تنقلبُ مع الوضعِ الليلي) */
.t2 .t2-dlg2-c { background: var(--t2-surface); color: var(--t2-ink); border: 1px solid var(--t2-line); border-radius: var(--i-r-lg, 16px); }
.t2 .t2-dlg2-t { font-family: var(--t2-ff-display); font-size: var(--i-fs-xl, 1.25rem); color: var(--t2-ink); }
.t2 .t2-dlg2-d { color: var(--t2-muted); font-size: var(--i-fs-sm, .8125rem); line-height: 1.7; }
.t2 :is(.t2-wal-input, .t2-wal-box) { background: var(--t2-input, var(--t2-surface-2)); color: var(--t2-ink); border-color: var(--t2-line-2); border-radius: var(--i-r-md, 12px); }
.t2 .t2-wal-box.is-in { border-color: var(--t2-brand); background: var(--t2-brand-wash); }
.t2 :is(.t2-wal-input, .t2-wal-box):focus { outline-color: var(--t2-brand); border-color: var(--t2-brand); }
.t2 .t2-wal-step-n { background: var(--t2-surface-2); border-color: var(--t2-line); color: var(--t2-ink); }
.t2 .t2-wal-step.is-on .t2-wal-step-n { background: var(--t2-brand); border-color: var(--t2-brand); color: var(--t2-brand-ink); }
.t2 .t2-wal-step.is-done .t2-wal-step-n { background: var(--t2-st-ok); border-color: var(--t2-st-ok); color: #fff; }
.t2 .t2-wal-step-t, .t2 .t2-wal-label { color: var(--t2-ink); }
.t2 :is(.t2-wal-hint, .t2-wal-intro, .t2-wal-count) { color: var(--t2-muted); }
.t2 .t2-wal-seg { background: var(--t2-surface-3); border-radius: var(--i-r-md, 12px); }
.t2 .t2-wal-seg-b { color: var(--t2-ink-2); }
.t2 .t2-wal-seg-b.is-on { background: var(--t2-surface); color: var(--t2-ink); }
.t2 .t2-wal-note.is-info { background: var(--t2-st-info-bg); color: var(--t2-ink); border-color: var(--t2-st-info-line); }
.t2 .t2-wal-note.is-ok { background: var(--t2-st-ok-bg); color: var(--t2-st-ok); border-color: var(--t2-st-ok-line); }
.t2 .t2-wal-note.is-danger { background: var(--t2-st-danger-bg); color: var(--t2-st-danger); border-color: var(--t2-st-danger-line); }
/* حوارُ ‎<dialog class="dlg">‎ الأصليّ حين يُكسى بـ t2-dlg-b8 (ربطُ الواتس اب، تغييرُ الرقم، الرمزُ السري) */
dialog.t2-dlg.t2-dlg-b8 {
  inline-size: min(560px, calc(100vw - 24px)); max-block-size: calc(100dvh - 32px); padding: 0; margin: auto;
  background: var(--t2-surface); color: var(--t2-ink); border: 1px solid var(--t2-line); border-radius: var(--i-r-lg);
  box-shadow: 0 24px 60px rgba(5, 14, 32, .35); font-family: var(--t2-ff-text); font-size: var(--i-fs-md); overflow: auto;
}
dialog.t2-dlg.t2-dlg-b8::backdrop { background: rgba(5, 14, 32, .55); }
dialog.t2-dlg.t2-dlg-b8[open] { display: flex; flex-direction: column; }
dialog.t2-dlg.t2-dlg-b8 .t2-dlg-head { display: flex; align-items: center; gap: 12px; padding: var(--i-sp-4) var(--i-sp-5); border-block-end: 1px solid var(--t2-line); }
dialog.t2-dlg.t2-dlg-b8 .t2-dlg-head .t2-block-title { flex: 1; margin: 0; font: 700 var(--i-fs-xl)/1.4 var(--t2-ff-display); color: var(--t2-ink); }
dialog.t2-dlg.t2-dlg-b8 .t2-dlg-head button { background: var(--t2-surface-2); border: 1px solid var(--t2-line); color: var(--t2-ink); border-radius: var(--i-r-sm); min-inline-size: 32px; min-block-size: 32px; }
dialog.t2-dlg.t2-dlg-b8 .t2-dlg-body { padding: var(--i-sp-5); display: flex; flex-direction: column; gap: var(--i-sp-3); }
dialog.t2-dlg.t2-dlg-b8 .t2-dlg-acts { padding: var(--i-sp-4) var(--i-sp-5); border-block-start: 1px solid var(--t2-line); background: var(--t2-surface-2); display: flex; gap: var(--i-sp-2); flex-wrap: wrap; }
dialog.t2-dlg.t2-dlg-b8 .t2-wal-acts { display: flex; gap: var(--i-sp-2); flex-wrap: wrap; inline-size: 100%; }
dialog.t2-dlg.t2-dlg-b8 :is(button.t2-au-btn, .t2-wal-acts button) { min-block-size: var(--i-ctl); border-radius: var(--i-r-md); padding-inline: 16px; font: 600 var(--i-fs-md) var(--t2-ff-text); border: 1px solid var(--t2-line-2); background: var(--t2-surface); color: var(--t2-ink); cursor: pointer; flex: 1 1 auto; }
dialog.t2-dlg.t2-dlg-b8 :is(.t2-au-btn.primary, .t2-btn-primary, .t2-au-btn.is-primary, button[data-variant="primary"]) { background: var(--t2-brand); border-color: var(--t2-brand); color: var(--t2-brand-ink); }
dialog.t2-dlg.t2-dlg-b8 .t2-wal-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--i-sp-2); }
dialog.t2-dlg.t2-dlg-b8 .t2-wal-step { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--i-r-sm); background: var(--t2-surface-2); font-size: var(--i-fs-sm); }
dialog.t2-dlg.t2-dlg-b8 .t2-wal-field { display: flex; flex-direction: column; gap: 6px; }
dialog.t2-dlg.t2-dlg-b8 .t2-wal-label { font-weight: 600; font-size: var(--i-fs-sm); }
dialog.t2-dlg.t2-dlg-b8 .t2-wal-hint { font-size: var(--i-fs-xs); }
dialog.t2-dlg.t2-dlg-b8 :is(input, select) { min-block-size: var(--i-ctl); background: var(--t2-input, var(--t2-surface-2)); color: var(--t2-ink); border: 1px solid var(--t2-line-2); border-radius: var(--i-r-md); font: inherit; padding-inline: 12px; box-sizing: border-box; }
dialog.t2-dlg.t2-dlg-b8 .t2-wal-otp { display: flex; gap: 8px; justify-content: center; }
dialog.t2-dlg.t2-dlg-b8 .t2-wal-box { inline-size: 46px; block-size: 54px; padding: 0; text-align: center; font-size: 22px; font-weight: 700; flex: none; }
@media (max-width: 30rem) { dialog.t2-dlg.t2-dlg-b8 .t2-wal-box { inline-size: 40px; block-size: 48px; } dialog.t2-dlg.t2-dlg-b8 .t2-wal-step-t { font-size: var(--i-fs-xs); } }
dialog.t2-dlg.t2-dlg-b8 { block-size: fit-content; }
dialog.t2-dlg.t2-dlg-b8 .t2-dlg-head button { flex: none !important; inline-size: 36px; block-size: 36px; min-inline-size: 36px; padding: 0; display: grid; place-items: center; }
dialog.t2-dlg.t2-dlg-b8 .t2-dlg-head button svg { inline-size: 16px; block-size: 16px; }
dialog.t2-dlg.t2-dlg-b8 .t2-wal-step.is-on { background: var(--t2-brand-wash); }
/* لا قصَّ للنصوص: تسمياتُ أقسامِ التوثيقِ وخطواتُ الحوار تلتفُّ بدلَ «…» */
.t2 .t2-vf-t { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.45; }
dialog.t2-dlg.t2-dlg-b8 { block-size: auto; height: auto; }
dialog.t2-dlg.t2-dlg-b8 .t2-wal-steps { flex-wrap: wrap; }
dialog.t2-dlg.t2-dlg-b8 .t2-wal-step { min-width: 0; flex: 1 1 6.5rem; }
dialog.t2-dlg.t2-dlg-b8 .t2-wal-step-t { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.35; }

/* b9 (2): «يحتاج إلى إجراء» بجوارِ الترحيب — عمودٌ واحدٌ دائمًا (نصفُ الصفحةِ لا يتّسعُ لعمودين)،
 * والزرُّ تحتَ النصِّ حين يضيق، فلا يتكسّرُ العنوانُ كلمةً كلمة ولا يُقَصُّ المحتوى. */
.t2 .t2-dash-top .t2-act { display: flex; flex-direction: column; min-width: 0; overflow: visible; }
.t2 .t2-dash-top .t2-act-l { grid-template-columns: minmax(0, 1fr) !important; }
.t2 .t2-dash-top .t2-act-i:last-child:nth-child(odd) { grid-column: auto; }
.t2 .t2-dash-top .t2-act-i { grid-template-columns: auto minmax(0, 1fr) auto; }
.t2 .t2-dash-top .t2-act-it, .t2 .t2-dash-top .t2-act-d { overflow-wrap: normal; word-break: normal; }
@container (max-width: 26rem) {
  .t2 .t2-dash-top .t2-act-i { grid-template-columns: auto minmax(0, 1fr); }
  .t2 .t2-dash-top .t2-act-i > .t2-btn { grid-column: 2; justify-self: start; }
}
.t2 .t2-dash-top > .t2-act { container-type: inline-size; }

/* b9 (3): قيمٌ لاتينيةُ الاتجاه — لا يقلبُها plaintext ولا سياقٌ عربي */
.t2 .t2-ltr, .t2 bdi[dir="ltr"], .t2-dlg-b8 bdi[dir="ltr"] { direction: ltr !important; unicode-bidi: isolate !important; font-variant-numeric: tabular-nums; }

/* b9 (6): بطاقةُ المسودّةِ في الوضعِ الليلي — صفوفٌ على سطحِ الهوية لا بيضاء */
html.theme .t2 .t2-reg-draft-title { color: var(--t2-ink); }
html.theme .t2 .t2-reg-draft-meta div { background: var(--t2-surface-2); border: 1px solid var(--t2-line); }
html.theme .t2 .t2-reg-draft-meta dt { color: var(--t2-muted); }
html.theme .t2 .t2-reg-draft-meta dd { color: var(--t2-ink); }
html.theme .t2 .t2-reg-draft-meta div:last-child { background: rgba(255, 200, 97, .12); border-color: rgba(255, 200, 97, .45); }
html.theme .t2 .t2-reg-draft-meta div:last-child dd { color: #FFD98A; }
.t2 .t2-reg-draft-meta div.is-due { background: var(--t2-warn-wash, #fff6df); }
.t2 .t2-reg-draft-meta dd { text-align: end; }

/* b9 (5): شريطُ إجراءاتِ الطلب في مكانِه بعدَ الاستمارة — لا يغطّي «حفظ/تراجع» ولا آخرَ بنودِ الفهرس */
.t2 .t2-vf-bar { position: static; box-shadow: none; border-radius: var(--t2-radius-card, 14px); border: 1px solid var(--t2-line); }
.t2 .t2-vf-nav { max-block-size: calc(100dvh - var(--t2-hh, 4.5rem) - 32px); overflow: auto; top: calc(var(--t2-hh, 4.5rem) + 12px); }
.t2 .t2-vf-p { scroll-margin-top: calc(var(--t2-hh, 4.5rem) + 12px); }

/* b9 (6): ألوانُ الحالاتِ الخمس في الليل — كانت بقيمِ النهار (#0f7a37 على كحلي ≈ 2.6:1). الآن ≥ 7:1 */
html.theme .t2 .t2-vf-i.is-ok .t2-vf-ic { background: rgba(94, 219, 169, .16); color: #5EDBA9; }
html.theme .t2 .t2-vf-i.is-warn .t2-vf-ic, html.theme .t2 .t2-vf-n { background: rgba(255, 200, 97, .16); color: #FFD98A; }

/* b9 (7): سهمُ الطيّ — مطويٌّ يشيرُ إلى اتجاهِ القراءة (يسارًا في العربية)، ولا رمزَ نصّيٌّ بديل */

/* b9 (10): سجلُّ الحساب — بطاقاتُ الهويةِ على شبكةٍ من عمودين (عمودٌ واحدٌ تحت 64rem) */
.t2 .t2-acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--i-sp-4, 16px); align-items: start; }
.t2 .t2-acct-grid > * { margin: 0; min-width: 0; }
.t2 .t2-acct-grid > .t2-acct-wide { grid-column: 1 / -1; }
@media (max-width: 64rem) { .t2 .t2-acct-grid { grid-template-columns: minmax(0, 1fr); } }
/* البطاقةُ الداخليةُ (سجلُّ الجلسات) تُسطَّحُ داخلَ بطاقتِها — لا إطارَ داخلَ إطار */
.t2 .t2-acct-grid .t2-sec .t2-panel { border: 0; box-shadow: none; padding: 0; background: transparent; }
.t2 .t2-acct-grid .t2-sec .t2-panel-h { padding-inline: 0; }
.t2 .t2-acct-title { display: flex; gap: var(--i-sp-2, 8px); align-items: center; flex-wrap: wrap; }
.t2 .t2-acct-title > select, .t2 .t2-acct-title > .t2-input { flex: 1 1 14rem; min-width: 0; }
.t2 .t2-acct-hint { margin: 0; font-size: var(--i-fs-sm); color: var(--t2-muted); }

.t2 .t2-reg-draft-meta dt { flex: none; white-space: nowrap; }
.t2 .t2-reg-draft-meta dd { min-width: 0; }
