/* البوابة (8/11، الجزء 3-ب): شاشات المندوب (/my) ولوحة المراجعة (/review). نفس هوية app.css.
   لا نمط مضمّن (CSP): العرض المتغير (الأشرطة والحلقات) يُضبط من JavaScript عبر element.style (مسموح). */
.pt-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.pt-head .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-head .who strong { display: block; font-size: 15px; }
.pt-head .who span { font-size: 12px; color: var(--muted); }
.pt-main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 14px 14px 96px; display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; }
.pt-main.wide { max-width: 1180px; padding-bottom: 32px; }
.pt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pt-card h2 { margin: 0; font-size: 16px; }
.pt-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-spread { justify-content: space-between; }
.pt-muted { color: var(--muted); font-size: 12px; }
.pt-num { direction: ltr; unicode-bidi: isolate; }
.pt-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pt-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }

/* الحلقات */
.pt-ring { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pt-ring .box { position: relative; width: 96px; height: 96px; }
.pt-ring svg { display: block; }
.pt-ring .trk { fill: none; stroke: var(--line); stroke-width: 10; }
.pt-ring .val { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.pt-ring .mid { position: absolute; inset: 0; display: grid; place-items: center; line-height: 1.1; }
.pt-ring .mid b { font-size: 20px; display: block; }
.pt-ring .mid small { font-size: 10px; color: var(--muted); }
.pt-ring .lbl { font-size: 13px; font-weight: 600; }
.c-sales { stroke: var(--accent); background: var(--accent); }
.c-coll { stroke: var(--warn); background: var(--warn); }
.c-visits { stroke: #1d4ed8; background: #1d4ed8; }
:root[data-theme="dark"] .c-visits { stroke: #60a5fa; background: #60a5fa; }

/* الأشرطة */
.pt-bar { height: 9px; background: var(--line); border-radius: 6px; overflow: hidden; flex: 1; min-width: 40px; }
.pt-bar > i { display: block; height: 100%; border-radius: 6px; width: 0; transition: width .5s ease; }
.pt-bar.tall { height: 14px; display: flex; }
.pt-bar.tall > i { border-radius: 0; }
.b0 { background: var(--accent); } .b1 { background: #8fb9b4; } .b2 { background: #e0a458; } .b3 { background: var(--danger); }
:root[data-theme="dark"] .b1 { background: #3f7f78; }

/* شرائح ومفاتيح */
.pt-seg { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.pt-seg button { border: 0; min-height: 32px; padding: 0 10px; font-size: 12.5px; background: transparent; border-radius: 8px; }
.pt-seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pt-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.pt-chips button { white-space: nowrap; border-radius: 999px; min-height: 36px; font-size: 12.5px; }
.pt-chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pt-chips b { margin-inline-start: 6px; font-weight: 600; opacity: .8; }
.pt-tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pt-tag.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.pt-tag.bad { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.pt-tag.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.pt-tag.info { background: color-mix(in srgb, #1d4ed8 12%, transparent); color: #1d4ed8; }
.pt-note { font-size: 12.5px; padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.pt-note.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }

/* الترتيب */
.pt-rank { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; }
.pt-rank.me { background: var(--accent-soft); font-weight: 700; }
.pt-rank .pos { width: 20px; font-weight: 700; color: var(--muted); }
.pt-rank .nm { width: 68px; }
.pt-rank .pc { width: 46px; text-align: end; font-weight: 600; }

/* الأزرار السريعة */
.pt-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pt-quick button { min-height: 86px; border-radius: 16px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; text-align: start; }
.pt-quick button.primary small { color: var(--accent-ink); opacity: .9; }
.pt-quick small { font-size: 11.5px; color: var(--muted); }

/* القوائم */
.pt-item { border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.pt-item.flag { border-color: #e0a458; }
.pt-item .ttl { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pt-item .ttl strong { font-size: 14px; }
.pt-item .sub { font-size: 12px; color: var(--muted); }
.pt-line { display: grid; grid-template-columns: 54px 1fr 112px; gap: 8px; align-items: center; font-size: 12px; }
.pt-dot { width: 9px; align-self: stretch; border-radius: 6px; }
.st-late { background: var(--danger); } .st-soon { background: #a16207; } .st-ok { background: var(--ok); } .st-none { background: var(--line); }
.pt-room { display: flex; gap: 10px; align-items: center; }
.pt-room .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pt-btnrow { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-btnrow button { min-height: 40px; font-size: 13px; }
.pt-detail { border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.pt-detail div { display: flex; justify-content: space-between; gap: 8px; }

/* الإدخال */
.pt-in { min-height: 44px; padding: 8px 10px; font-size: 15px; }
.pt-in.qty { width: 74px; text-align: center; font-weight: 600; direction: ltr; }
.pt-in.amt { direction: ltr; text-align: start; }
.pt-cnt { display: grid; grid-template-columns: 1fr 74px 74px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pt-cnt:last-child { border-bottom: 0; }
.pt-cnt .m { display: flex; flex-direction: column; min-width: 0; }
.pt-cnt .m strong { font-size: 13.5px; direction: ltr; text-align: start; overflow-wrap: anywhere; }
.pt-cnt .m span { font-size: 11px; color: var(--muted); }
.pt-cnt-h { font-size: 11px; color: var(--muted); text-align: center; }
.pt-sticky { position: sticky; bottom: 70px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow); }
.pt-sticky .grow { flex: 1; font-size: 12px; color: var(--muted); }

/* التنقل السفلي */
.pt-nav { position: fixed; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface);
  border-top: 1px solid var(--line); padding: 4px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 6; }
.pt-nav button, .pt-nav a { border: 0; background: transparent; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; border-radius: 10px; }
.pt-nav [aria-current="page"] { color: var(--accent); font-weight: 700; }
.pt-nav svg { width: 22px; height: 22px; }

/* لوحة المراجعة */
.pt-split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.pt-split > .main { flex: 999 1 560px; min-width: 0; }
.pt-split > .side { flex: 1 1 340px; min-width: 0; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pt-table th { font-size: 11.5px; color: var(--muted); font-weight: 500; text-align: start; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.pt-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
.pt-empty { text-align: center; color: var(--muted); padding: 18px; font-size: 13px; }
@media (max-width: 420px) { .pt-line { grid-template-columns: 48px 1fr 96px; } .pt-ring .box { width: 86px; height: 86px; } }

/* ================================================================ (9/11) الواجهة الموحدة للمندوب
   الجوال: تنقل سفلي يحترم الحواف الآمنة (iPhone وأندرويد). اللابتوب (≥900px): تنقل جانبي والمحتوى في عمودين. */
.wrap.app { max-width: none; padding: 0; }
.wrap.app:has(> #v-visit:not(.hidden)) { max-width: 480px; padding: 16px; }
.grow { flex: 1; min-width: 0; }
.lv-shell { min-height: 100vh; min-height: 100dvh; }
.lv-body { min-width: 0; }
.lv-head { padding-top: calc(12px + env(safe-area-inset-top)); }
.lv-head select { width: auto; min-height: 38px; padding: 6px 10px; }
.avatar.sm { width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; background: transparent; }
.av { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; line-height: 0; }
.av img { border-radius: 50%; object-fit: cover; }
.lv-main { max-width: 640px; margin: 0 auto; padding: 14px 14px calc(100px + env(safe-area-inset-bottom)); }
.lv-panel, .lv-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lv-panel .card { margin-bottom: 0; }
.lv-h { margin: 0; font-size: 17px; }

/* التنقل */
.lv-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 6; display: flex; background: var(--surface); border-top: 1px solid var(--line);
  padding: 4px 4px calc(6px + env(safe-area-inset-bottom)); }
.lv-nav > button, .lv-nav > a { flex: 1 1 0; position: relative; border: 0; background: transparent; min-height: 54px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; border-radius: 12px; padding: 0 2px; }
.lv-nav svg { width: 22px; height: 22px; flex: none; }
.lv-nav [aria-current="page"] { color: var(--accent); font-weight: 700; }
.lv-nav-brand { display: none; }
.lv-badge { position: absolute; top: 4px; inset-inline-start: calc(50% + 4px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.lv-fab { position: fixed; z-index: 7; inset-inline-end: 18px; bottom: calc(82px + env(safe-area-inset-bottom)); width: 58px; height: 58px; padding: 0;
  border-radius: 18px; border: 0; background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px rgba(15,118,110,.35); display: grid; place-items: center; }
.lv-fab svg { width: 26px; height: 26px; }

/* المهام */
.lv-task { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; gap: 10px; align-items: center; }
.lv-task .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone); }
.lv-task .ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lv-task .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lv-task .hd { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.lv-task .hd strong { font-size: 14px; }
.lv-task .due { font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--tone); }
.lv-task .sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-task .pt-bar { height: 7px; margin-top: 3px; }
.lv-task .fill { background: var(--tone); }
.lv-task button { min-height: 42px; padding: 0 14px; border-radius: 11px; font-size: 13px; flex: none; }
.t-red { --tone: var(--danger); --tone-bg: color-mix(in srgb, var(--danger) 12%, transparent); }
.t-amber { --tone: var(--warn); --tone-bg: color-mix(in srgb, var(--warn) 13%, transparent); }
.t-teal { --tone: var(--accent); --tone-bg: var(--accent-soft); }
.t-blue { --tone: #1d4ed8; --tone-bg: color-mix(in srgb, #1d4ed8 12%, transparent); }
:root[data-theme="dark"] .t-blue { --tone: var(--accent); }   /* (10/11) الأزرق المزعج في الداكن */
.lv-alldone { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); border-radius: 14px; padding: 18px; text-align: center; font-size: 14px; }
.lv-mini { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lv-mini strong { font-size: 19px; }
.lv-mini .pt-bar { flex: none; height: 7px; }
.lv-mini .pace { font-size: 10.5px; } .pace.bad { color: var(--warn); } .pace.ok { color: var(--ok); }
.pt-bar > i.c-visits { background: #1d4ed8; }

/* العملاء */
.lv-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.lv-tools input { flex: 1 1 220px; }
.lv-tools button { flex: none; }
.lv-cards { display: flex; flex-direction: column; gap: 8px; }
.lv-cust { text-align: start; width: 100%; min-height: 0; }
.lv-back { align-self: flex-start; border: 0; background: transparent; color: var(--accent); min-height: 40px; padding: 0 4px; font-weight: 600; }
.lv-title h2 { margin: 0; font-size: 18px; }
.lv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lv-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-kpi strong { font-size: 16px; } .lv-kpi .bad { color: var(--danger); } .lv-kpi .warn { color: var(--warn); }
.lv-tabs button { flex: 1; }
.lv-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.lv-line:last-of-type { border-bottom: 0; }
.lv-line.hd { font-size: 11px; color: var(--muted); }
.lv-line .m { display: flex; flex-direction: column; min-width: 0; }
.lv-line .m strong { overflow-wrap: anywhere; text-align: start; }
[dir="rtl"] .lv-line .m strong.pt-num { text-align: right; }
.lv-line > strong:last-child { text-align: end; } .lv-line .al { color: var(--danger); } .lv-line .warn { color: var(--warn); }
.lv-actions { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); padding: 8px 0; backdrop-filter: blur(6px); }
.lv-actions button { min-height: 50px; border-radius: 14px; font-size: 13px; padding: 0 8px; }
.lv-shell:has(.lv-actions:not(.in)) .lv-fab { display: none; }   /* صفحة العميل: شريط الإجراءات بدل زر الزيارة */
.lv-actions.in { position: static; background: none; padding: 0; backdrop-filter: none; }

/* ورقة طلب التجاوز: من الأسفل على الجوال، ووسط الشاشة على اللابتوب */
dialog.lv-sheet { width: min(560px, 100vw); max-width: 100vw; max-height: 92dvh; overflow-y: auto; margin: auto auto 0; border-radius: 22px 22px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.lv-mail { font-size: 13.5px; line-height: 1.75; resize: vertical; }

/* الأفاتارات */
.av-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.av-pick { min-height: 0; padding: 4px; border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid transparent; background: transparent; }
.av-pick svg { width: 100%; height: auto; max-width: 52px; }
.av-pick[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }

@media (max-width: 380px) {
  .lv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-actions { grid-template-columns: 1fr 1fr; } .lv-actions button:first-child { grid-column: 1 / -1; }
  .av-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .lv-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
  .lv-nav { position: sticky; top: 0; height: 100vh; height: 100dvh; flex-direction: column; gap: 4px; border-top: 0;
    border-inline-end: 1px solid var(--line); padding: 18px 12px; }
  .lv-nav > button, .lv-nav > a { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 14px; font-size: 14.5px; }
  .lv-nav [aria-current="page"] { background: var(--accent-soft); }
  .lv-nav-brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 18px; font-size: 16px; }
  .lv-nav-extra { margin-top: auto; }
  .lv-badge { position: static; margin-inline-start: auto; }
  .lv-main { max-width: 1180px; padding: 22px 28px 48px; }
  .lv-panel:has(> .lv-col) { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .lv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
  .lv-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lv-fab { bottom: 28px; inset-inline-end: 28px; }
  .lv-actions { bottom: 0; max-width: 640px; }
  .pt-sticky { bottom: 16px; }
  dialog.lv-sheet { margin: auto; border-radius: 22px; }
}
@media (hover: hover) { .lv-cust:hover, .lv-nav > button:hover, .lv-nav > a:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); } }

/* ================================================================ (9/11) حساب المالك */
.lv-pill { font-size: 11.5px; border-radius: 999px; padding: 4px 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.lv-pill.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.lv-pill.bad { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.ow-link { font-size: 12.5px; color: var(--accent); white-space: nowrap; }
.ow .lv-nav { overflow-y: auto; }
.ow .lv-nav > .d-only { display: none; }
.ow-h1 { font-size: 20px; margin: 4px 0 0; }
.ow .lv-main { gap: 14px; display: flex; flex-direction: column; }
.ow-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ow-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ow-stat strong { font-size: 24px; line-height: 1.2; }
.ow-cols { display: flex; flex-direction: column; gap: 14px; }
.ow-need { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ow-need:last-child { border-bottom: 0; }
.ow-need .grow { display: flex; flex-direction: column; gap: 1px; }
.ow-need strong { font-size: 13.5px; } .ow-need .pt-muted { font-size: 12px; }
.ow-need .dot { width: 10px; height: 10px; border-radius: 5px; flex: none; background: var(--tone); }
.ow-need button { flex: none; }
.ow-team { display: grid; grid-template-columns: minmax(70px, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; font-size: 12px; }
.ow-team.hd { font-size: 11px; color: var(--muted); }
.ow-team .nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ow-cell { display: flex; flex-direction: column; gap: 3px; } .ow-cell .pt-bar { flex: none; height: 7px; } .ow-cell .bad { color: var(--danger); font-weight: 600; }
.ow-rad { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .ow-rad:last-child { border-bottom: 0; }
.ow-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ow-scroll .pt-table { min-width: 640px; }
.ow-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-size: 13px; }
.ow-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ow-seg { align-self: flex-start; flex-wrap: wrap; }
.ow-vhead { all: unset; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.ow-vhead:focus-visible { outline: 3px solid var(--accent-soft); border-radius: 8px; }
.ow-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ow-thumbs a, .ow-thumbs .nophoto { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); }
.ow-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.ow-thumbs .nophoto > span:first-child { aspect-ratio: 1; border-radius: 10px; border: 1px dashed var(--line); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.ow-feats { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ow-feat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; display: flex; gap: 12px; align-items: flex-start; }
.ow-feat .grow { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.ow-switch { flex: none; width: 52px; min-height: 0; height: 30px; padding: 3px; border-radius: 15px; border: 0; background: #cfc8b8; display: flex; justify-content: flex-end; }
.ow-switch > span { width: 24px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.ow-switch[aria-checked="true"] { background: var(--accent); justify-content: flex-start; }
:root[data-theme="dark"] .ow-switch:not([aria-checked="true"]) { background: #3a4a46; }   /* (10/11) كان يطغى على لون التفعيل فلا يبان الفرق */
.ow-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ow-more > button, .ow-more > a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13.5px; text-align: start; }
.ow-more svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.button.danger, button.small.danger { color: var(--danger); border-color: var(--danger); }
@media (min-width: 700px) { .ow-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ow-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .ow .lv-nav > .d-only { display: flex; }
  .ow .lv-nav > .m-only { display: none; }
  .ow .lv-nav { background: #1f2a28; color: #e8f0ee; border-inline-end: 0; }
  .ow .lv-nav > button, .ow .lv-nav > a { color: #c9d6d2; font-size: 13.5px; min-height: 42px; }
  .ow .lv-nav [aria-current="page"] { background: #2dd4bf; color: #062320; }
  .ow .lv-nav-brand { color: #fff; }
  .ow-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 899px) {
  .ow .lv-head { flex-wrap: wrap; row-gap: 6px; }
  .ow .lv-head > .pt-row { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .ow .lv-pill { max-width: 72vw; }
}

/* ================================================================ (9/11) التجاوز */
.cr-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--st) 13%, transparent); color: var(--st); border: 1px solid color-mix(in srgb, var(--st) 30%, transparent); }
.cr-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--st); flex: none; }
.cr-status { background: color-mix(in srgb, var(--st) 11%, transparent); border-inline-start: 4px solid var(--st); }
.cr-status strong { color: var(--st); }
/* لون مختلف لكل حالة (طلب حسام 9/11) */
.st-ok    { --st: #15803d; }   /* ينفع يطلب */
.st-okc   { --st: #0e7490; }   /* ينفع بعد المطابقة */
.st-mgmt  { --st: #c2410c; }   /* بموافقة الإدارة */
.st-pay   { --st: #dc2626; }   /* يحتاج سداد */
.st-stock { --st: #7c3aed; }   /* المخزون عالي */
.st-plan  { --st: #2563eb; }   /* تجاوز خطة السنة */
.st-pnote { --st: #be185d; }   /* وصل حد السند */
.st-dark  { --st: #111827; }   /* موقوف، سند منتهي، كاش */
.st-none  { --st: #6b7280; }   /* حساب مركزي، غير موجود في الملف */
:root[data-theme="dark"] .st-ok { --st: #4ade80; } :root[data-theme="dark"] .st-okc { --st: #22d3ee; } :root[data-theme="dark"] .st-mgmt { --st: #fb923c; }
:root[data-theme="dark"] .st-pay { --st: #f87171; } :root[data-theme="dark"] .st-stock { --st: #a78bfa; } :root[data-theme="dark"] .st-plan { --st: #60a5fa; }
:root[data-theme="dark"] .st-pnote { --st: #f472b6; } :root[data-theme="dark"] .st-dark { --st: #e5e7eb; } :root[data-theme="dark"] .st-none { --st: #9ca3af; }
.cr-facts { font-size: 11.5px; }
.cr-step { font-size: 11.5px; }
.cr-status { border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.cr-status strong { font-size: 15px; }
.cr-status ul { margin: 0; padding-inline-start: 18px; font-size: 12.5px; color: var(--ink); }
.cr-release { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cr-big { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.cr-big strong { font-size: 20px; } .cr-big.ok strong { color: var(--ok); } .cr-big.warn strong { color: var(--warn); } .cr-big.bad strong { color: var(--danger); }
.cr-line { display: grid; grid-template-columns: 120px 1fr 72px; gap: 8px; align-items: center; font-size: 12.5px; }
.cr-line .pt-bar { flex: none; height: 8px; } .cr-line > strong { text-align: end; }
.cr-line .cr-sub { grid-column: 2 / -1; font-size: 11px; margin-top: -4px; }
.cr-conds { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-src { font-size: 11px; }
.cr-list { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; }
.cr-res { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cr-fields label { margin: 0; font-size: 11.5px; } .cr-fields .pt-in { min-height: 42px; font-size: 14px; }
.lv-cust.picked { border-color: var(--accent); background: var(--accent-soft); }
.lv-actions.two { grid-template-columns: 1fr 1fr; }
.lv-actions .ow-btn { justify-content: center; min-height: 50px; border-radius: 14px; text-align: center; }
.cr-multi { grid-template-columns: 1fr; }
@media (min-width: 700px) { .cr-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 380px) { .cr-line { grid-template-columns: 96px 1fr 64px; } .cr-fields { grid-template-columns: 1fr; } }
.cr-legend { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; font-size: 13px; }
.cr-legend summary { cursor: pointer; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
.cr-legend .pt-row { margin-top: 6px; }

/* (9/11، الموجة 2) تركيز الشهر والأخبار */
.lv-focus { background: var(--ink); color: var(--bg); border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.lv-focus .lv-x { margin-inline-start: auto; background: transparent; border: 0; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; opacity: .8; padding: 2px 6px; min-width: 32px; min-height: 32px; }
.lv-focus svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #fde68a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lv-focus div { display: flex; flex-direction: column; gap: 2px; } .lv-focus strong { font-size: 13px; } .lv-focus span { font-size: 13px; opacity: .92; }
.lv-panel:has(> .lv-focus) { } 
.lv-news { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lv-news:last-child { border-bottom: 0; }
@media (min-width: 900px) { .lv-panel > .lv-focus { grid-column: 1 / -1; } }
.ow-who button { display: inline-flex; align-items: center; gap: 4px; }
.ow-devv { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; max-height: 160px; overflow-y: auto; min-width: 220px; }
.lv-line.ir { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(40px, .6fr)); text-align: center; }
.lv-line.ir > :first-child { text-align: start; }

/* (الموجة 3) التعليقات على الزيارات */
.lv-thread { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
.lv-cmt { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; max-width: 88%; align-self: flex-start; }
.lv-cmt.mine { align-self: flex-end; background: var(--accent-soft); border-color: var(--accent-soft); }
.lv-cmt span:last-child { white-space: pre-wrap; overflow-wrap: anywhere; }
.ow-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ow-filters > * { flex: 1 1 140px; min-width: 0; }
.ow-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ow-fig { margin: 0; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.ow-fig img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.ow-fig.old img { opacity: .55; }
.ow-fig figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 12px; min-width: 0; }
.ow-fig figcaption > * { overflow-wrap: anywhere; }
.ow-fig figcaption button { align-self: flex-start; margin-top: 2px; }
.pt-num.neg { color: var(--danger); }   /* المنافس أرخص منا */
.pt-num.pos { color: var(--ok); }
@media (max-width: 420px) { .ow-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
/* (9/11) الروابط العادية داخل البطاقات والجداول تقرأ بوضوح في الوضعين الفاتح والداكن */
.pt-card a:not([class]), .pt-table a:not([class]), .ow-need a:not([class]) { color: var(--accent); }

/* (9/11) النقاط والمكافآت */
.ow-pt-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ow-pt-row:last-child { border-bottom: 0; }
.ow-pt-row .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ow-pt-rank { width: 22px; text-align: center; color: var(--muted); }
.ow-pt-total { font-size: 20px; min-width: 56px; text-align: end; }
.ow-pt-total.neg, .pt-bar i.neg { color: var(--danger); }
.pt-bar i.neg { background: var(--danger); }
.ow-pt-ev { flex-wrap: wrap; }
.ow-pt-ev .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.ow-pt-act { display: flex; flex-direction: column; gap: 6px; flex: 1 1 100%; }
.ow-reset { display: flex; flex-direction: column; gap: 8px; border: 1px dashed var(--danger); border-radius: 12px; padding: 12px; margin-top: 8px; }
.lv-pts { display: flex; align-items: baseline; gap: 8px; }
.lv-pts strong { font-size: 30px; }
.ow-pt-rules td:nth-child(2) { width: 96px; }
.ow-pt-rules input.amt { max-width: 90px; }
.ow-pt-rules td:nth-child(3), .ow-pt-rules td:nth-child(4) { width: 90px; text-align: center; }
.ow-pt-rules td:first-child .pt-muted { display: block; font-size: 11px; margin-top: 2px; }

/* (10/11) الشعار رابط للرئيسية في كل الصفحات: بلا لون الروابط ولا تسطير */
.brand-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-link:hover, .brand-link:visited { color: inherit; text-decoration: none; }
.lv-nav-brand.brand-link { display: none; }
@media (min-width: 900px) { .lv-nav-brand.brand-link { display: flex; } }
.logo.brand-link { justify-content: center; }

/* (10/11) اختيار الموديل بالبحث في المراجعة */
.act-pick { margin-top: 8px; }
.act-pick .pt-row select { flex: 1 1 0; min-width: 0; }
.act-list { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.act-opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; text-align: start; border-radius: 10px; }
.act-opt[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent); }
.act-opt .amt { direction: ltr; }

/* (10/11) إعلان موجّه: سطر ملخص قابل للفتح يبيّن الجمهور وعدد من ظهر عنده */
.ow-ann { border-top: 1px solid var(--line); padding: 8px 0; }
.ow-ann > summary { cursor: pointer; line-height: 1.9; }
.ow-ann[open] > summary { margin-bottom: 6px; }

/* (10/11) قائمة عملاء الخطة داخل بطاقة المراجعة */
.pt-det{margin-top:6px}
.pt-det>summary{cursor:pointer;color:var(--accent,#1d6fb8);font-weight:600;padding:6px 0}
.pt-det .tablewrap{margin-top:6px;max-height:340px;overflow:auto}

/* (10/11) جدول قرارات الخطة لكل عميل */
.pt-dec td{vertical-align:top}
.pt-dec select{margin-top:4px;min-width:96px;max-width:100%}
.pt-dec .sub{display:block}
.pt-notein{width:100%;box-sizing:border-box}

/* (10/11) الوسم info في الداكن: بدل الأزرق الغامق المزعج يأخذ لون الثيم */
:root[data-theme="dark"] .pt-tag.info { background: var(--accent-soft); color: var(--accent); }

/* (10/11) قائمة قرارات الخطة: بطاقة صغيرة لكل عميل تناسب الجوال والحاسوب */
.pt-decl { max-height: 460px; overflow: auto; margin-top: 6px; }
.pt-dr { border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); padding: 10px 2px; display: grid; gap: 6px; }
.pt-dr.picked { background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 10px; padding-inline: 8px; }
.pt-dr-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pt-dr-v { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pt-dr-v .kv { display: grid; gap: 1px; }
.pt-dr-v small { font-size: 11px; opacity: .7; }
.pt-dr-v b { font-size: 13px; font-weight: 600; }
.pt-dr .sub { display: block; }
.pt-dr-d { display: flex; align-items: center; gap: 10px; }
.pt-dr-d select { flex: 1; min-width: 0; width: auto; }
.pt-dr-v.f3 { grid-template-columns: repeat(3, 1fr); margin-top: 6px; }

.pl-card { width: 100%; text-align: start; cursor: pointer; font: inherit; color: inherit; gap: 6px; }
.pl-card:hover { border-color: var(--accent); }
.pl-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* (10/11) تقارير المخزون وإجماليات الفرع */
.pt-col { display: flex; flex-direction: column; gap: 6px; }
.rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.rp-tile { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.rp-tile strong { font-size: 18px; }
.pt-bar > i.rp-fill { background: var(--accent); }
.pt-col > .pt-bar { flex: none; }

/* (11/11) رئيسية المندوب: إنجازك بأربعة مؤشرات وسجل النقاط، وشريط أعلى ثابت (المركز والنقاط وخروج) */
.lv-ach4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.lv-mini-pts strong { font-size: 26px; }
.lv-ptlog { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.lv-ptlog .plus { color: var(--ok); } .lv-ptlog .minus { color: var(--danger); }
.lv-ptlog summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.lv-rank { background: var(--accent-soft); color: var(--ink); font-weight: 700; }
.pt-rank .pos { font-size: 16px; }
.lv-head > .pt-row > .small { min-height: 36px; }
@media (max-width: 899px) {
  .lv-head { flex-wrap: wrap; row-gap: 6px; }
  .lv-head > .pt-row { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
}

/* (11/11) خطة الزيارات */
.pt-card.flag { border-color: var(--danger); }
.pt-sticky > .pt-in { flex: 1; min-width: 0; }
.vp-n { width: auto; min-width: 110px; }

/* (14/11) احتفال نهاية الموسم ولوحة الشرف */
.lv-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 1001; }
.lv-celeb { border: 0; border-radius: 20px; padding: 0; max-width: min(92vw, 420px); background: var(--surface); color: var(--ink); }
.lv-celeb::backdrop { background: rgb(0 0 0 / .55); }
.lv-celeb-in { display: flex; flex-direction: column; gap: 12px; padding: 22px; text-align: center; }
.lv-celeb-cup { font-size: 54px; line-height: 1; }
.lv-celeb-win { font-size: 17px; font-weight: 700; margin: 0; }
.lv-celeb-prize { background: var(--accent-soft); border-radius: 12px; padding: 10px; font-weight: 700; }
.lv-celeb-rank { display: flex; flex-direction: column; gap: 6px; text-align: start; }
.lv-fame summary { cursor: pointer; font-weight: 700; margin-top: 8px; }

/* (14/11) زر التحديث الذكي في الشريط الثابت */
.lv-refresh { display: inline-grid; place-items: center; min-width: 38px; min-height: 36px; padding: 6px; }
.lv-refresh svg { width: 18px; height: 18px; }
.lv-refresh.spin svg { animation: lv-spin .8s linear infinite; }
@keyframes lv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lv-refresh.spin svg { animation: none; opacity: .5; } }

/* (14/11) تنبيهات المدير الشخصية */
.lv-notice { border-color: var(--accent); background: var(--accent-soft); }
.lv-panel > .lv-notice { grid-column: 1 / -1; }

/* (14/11) «نبض الفريق» */
.pl-pulse { border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)) 0%, var(--surface) 55%); }
.pl-head { display: flex; align-items: center; gap: 10px; }
.pl-head h2 { margin: 0; font-size: 19px; font-weight: 800; }
.pl-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 20px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.pl-item { display: flex; gap: 12px; align-items: stretch; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); }
.pl-item:first-of-type { border-top: 0; }
.pl-text { flex: 1; margin: 0; font-size: 15px; line-height: 1.9; }
.pl-date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; padding-inline-start: 12px;
  border-inline-start: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--muted); font-size: 12px; }
.pl-date strong { font-size: 17px; color: var(--ink); }
.pl-num { color: #ea7a0a; font-weight: 800; }
.pl-name { color: var(--accent); font-weight: 800; }
@media (max-width: 480px) { .pl-date { min-width: 52px; padding-inline-start: 8px; } .pl-text { font-size: 14.5px; } }

/* (15/11، v19) أيام الهدوء في إعدادات الإشعارات: مسافة واضحة بين كل يوم ومربعه */
.pu-days { gap: 6px 22px; }
.pu-days label { gap: 6px; }

/* (15/11، v19) الجرس وسجل التنبيهات، وإبراز المهمة القادمة من إشعار */
.lv-bell { position: relative; padding: 6px 9px; }
.lv-bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; }
.lv-bell-n { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.lv-al { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; width: 100%; text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; min-height: 0; font-weight: 400; }
.lv-al.unread { border-color: var(--accent); background: var(--accent-soft); }
.lv-al.unread .lv-al-t { font-weight: 600; }
.lv-al-t { font-size: 13.5px; line-height: 1.6; }
.lv-al-at { flex: none; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.lv-task.lv-hl, .lv-focus.lv-hl { outline: 2px solid var(--accent); outline-offset: 2px; }   /* (2/12، v51) الإعلان المفتوح من إشعاره */

/* (16/11، البند 75) ملفات جرد العملاء: شريط مراحل حقيقية، وسطر بلا قرار، وحقل يختلف عن الملف */
.su-steps { display: flex; gap: 4px; margin: 10px 0 4px; }
.su-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); text-align: center; position: relative; }
.su-step::before { content: ""; position: absolute; top: 6px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.su-step:last-child::before { display: none; }
.su-step.done::before { background: var(--ok); }
.su-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line); border: 2px solid var(--line); z-index: 1; }
.su-step.done .su-dot { background: var(--ok); border-color: var(--ok); }
.su-step.done { color: var(--ok); }
.su-step.now { color: var(--accent); font-weight: 600; }
.su-step.now .su-dot { background: var(--bg); border-color: var(--accent); animation: su-pulse 1.4s ease-in-out infinite; }
@keyframes su-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .su-step.now .su-dot { animation: none; } }
.su-line.need { border-color: var(--warn); box-shadow: inset 4px 0 0 var(--warn); }
.su-line .pt-seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.su-conflict { border-color: var(--warn) !important; background: color-mix(in srgb, var(--warn) 10%, transparent); }
.su-use { margin-inline-start: 4px; }
.su-h { font-size: 14px; margin: 14px 4px 6px; color: var(--warn); }
.su-auto > summary { cursor: pointer; font-weight: 600; color: var(--ok); padding: 4px 0; }
.su-auto[open] > summary { margin-bottom: 8px; }
.su-auto .su-line { box-shadow: none; }

/* (16/11، v23) المراجعة = الجرد: جدول متراص مثل Excel، يمرَّر أفقياً على الجوال وعمود النص ثابت */
.su-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.su-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 760px; }
.su-tbl th { position: sticky; top: 0; background: var(--bg); font-weight: 600; text-align: start; padding: 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.su-tbl td { padding: 3px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.su-tbl tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg) 45%, transparent); }
.su-tbl td.tx { position: sticky; inset-inline-start: 0; background: var(--surface); min-width: 170px; max-width: 240px; line-height: 1.35; z-index: 1; }
.su-tbl td.nt { color: var(--muted); font-size: 11.5px; min-width: 200px; line-height: 1.35; }
.su-tbl tr.need td { background: color-mix(in srgb, var(--warn) 10%, transparent) !important; }
.su-tbl tr.need td.tx { box-shadow: inset -3px 0 0 var(--warn); }
.su-tbl tr.ign td { color: var(--muted); text-decoration: line-through; }
.su-tbl tr.ign td .su-in { text-decoration: none; opacity: .6; }
.su-in { min-height: 30px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12.5px; width: 100%; }
.su-in.m { min-width: 120px; } .su-in.n { width: 64px; text-align: center; } .su-in.a { min-width: 82px; }
.su-sum { gap: 6px; flex-wrap: wrap; margin-bottom: 6px; align-items: center; }
.su-filter { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; margin: 8px 2px; }
.su-help dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px; margin: 6px 0 0; font-size: 12.5px; }
.su-help dt { font-weight: 700; } .su-help dd { margin: 0; color: var(--muted); }
.su-help > summary, .su-miss > summary { cursor: pointer; font-weight: 600; }
.su-totals { position: sticky; bottom: 64px; z-index: 2; box-shadow: 0 -4px 12px color-mix(in srgb, var(--ink) 8%, transparent); }
@media (min-width: 900px) { .su-totals { bottom: 8px; } }
.su-totals { padding: 8px 10px; }
.su-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.su-tot { font-weight: 700; font-size: 13px; }
.su-btns { display: inline-flex; gap: 6px; }
.su-btns button { min-height: 34px; padding: 0 14px; }
/* (17/11) موديل غير موجود في القائمة: تنبيه تحت السطر (إضافة/تعديل/حذف). يبقى ظاهراً عند التمرير الأفقي على الجوال */
.su-tbl tr.su-unk-row td { padding: 0 6px 6px; border-bottom: 1px solid var(--line); }
.su-unk { position: sticky; inset-inline-start: 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: min(92vw, 720px);
  padding: 5px 8px; border-radius: 8px; font-size: 12px; background: color-mix(in srgb, var(--ok) 10%, transparent); }
.su-unk.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); }
.su-unk select.su-in { width: auto; min-width: 110px; }
.su-unk-b { min-height: 28px; padding: 2px 10px; font-size: 12px; }
/* (17/11) سطر «من موزع آخر»: لا يدخل جردنا، بلون مميز */
.su-tbl tr.oth td { background: color-mix(in srgb, var(--info, #3b82f6) 8%, transparent); }

/* (22/11، v31، L-1) الزيارة وحسابي بشكل /app بعد الإطلاق (نفس الصفحة ونفس المحرك؛ القائمة القديمة مخفية) */
.lv-launched .lv-nav { display: none; }
.lv-launched .lv-shell { display: block; }
.lv-launched .lv-body { margin: 0; padding-bottom: 24px; }
.u-lbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.u-lbar a.u-back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--accent); font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.u-lbar strong { flex: 1; }
/* (28/11، v39) الأرقام القابلة للفتح في «صحة النظام» ولمحة الفرع */
a.ow-link { color: inherit; text-decoration: none; cursor: pointer; border-radius: 6px; }
a.ow-link:hover, a.ow-link:focus-visible { background: var(--soft, rgba(0,0,0,.04)); }
a.ow-link strong { color: var(--accent, #0f766e); text-decoration: underline; text-underline-offset: 3px; }
a.ow-stat { color: inherit; text-decoration: none; cursor: pointer; }
a.ow-stat:hover, a.ow-stat:focus-visible { outline: 2px solid var(--accent, #0f766e); outline-offset: 2px; }
/* (3/12، v65، قرار حسام) رئيسية المندوب: الإنجاز المختصر بعرض الصفحة، وسطر الفرق عن قبل لومينا، والقوائم المطوية */
.lv-panel > .lv-ach-top { grid-column: 1 / -1; }
.lv-mini .lv-base { font-size: 10.5px; } .lv-base.ok { color: var(--ok); } .lv-base.bad { color: var(--danger); }
.lv-more > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; }
.lv-more[open] > summary { margin-bottom: 8px; }
.lv-more { display: flex; flex-direction: column; gap: 10px; }
