/* =====================================================================
   BHSMS portal - design C  (newdesign/assets/app.css)
   Dark slim top bar + light, data-centric content. Desktop-first (1440 max).
   RTL: logical properties everywhere; html[dir=rtl] mirrors automatically.
   Sections:
     1 tokens  2 base  3 top bar + nav  4 page bar  5 layout helpers
     6 KPI tiles  7 cards  8 segmented tabs  9 tables  10 pills/badges
     11 forms  12 buttons  13 alerts/toasts  14 pagination  15 modals
     16 empty/loading  17 footer  18 auth (login) layout  19 legacy markup
     20 calendar  21 utilities
   ===================================================================== */

/* ---------- 1. tokens ---------- */
:root{
  --red:#dd3737; --red-600:#c42d2d; --red-700:#a82424; --red-50:#fdf0f0; --red-100:#f9dada; --red-200:#f2b8b8;
  --nav:#111827; --nav-2:#0b1220; --nav-line:#1f2937; --nav-line-2:#2a3546; --nav-text:#a3acb9; --nav-hover:#1c2433;
  --bg:#f4f5f7; --surface:#ffffff; --surface-2:#f9fafb; --surface-3:#f3f4f6;
  --line:#e5e7eb; --line-2:#eef0f3; --line-3:#d1d5db;
  --ink:#0f172a; --ink-2:#334155; --muted:#64748b; --faint:#94a3b8;
  --ok:#15803d; --ok-bg:#e9f7ef; --ok-line:#c6ebd4;
  --warn:#b45309; --warn-bg:#fff7e6; --warn-line:#fde3b0;
  --bad:#b91c1c; --bad-bg:#fdf0f0; --bad-line:#f6cfcf;
  --info:#1d4ed8; --info-bg:#eef4ff; --info-line:#d3e1fd;
  --off:#64748b; --off-bg:#f1f5f9; --off-line:#e2e8f0;
  --r-xs:4px; --r-sm:6px; --r:8px; --r-lg:12px; --r-xl:16px;
  --sh-1:0 1px 2px rgba(15,23,42,.05);
  --sh-2:0 1px 2px rgba(15,23,42,.04),0 4px 12px rgba(15,23,42,.05);
  --sh-pop:0 12px 32px rgba(2,6,23,.18),0 2px 6px rgba(2,6,23,.08);
  --sh-modal:0 24px 64px rgba(2,6,23,.28),0 4px 12px rgba(2,6,23,.1);
  --ring:0 0 0 3px rgba(221,55,55,.18);
  --font:'Inter','Tajawal',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --font-ar:'Tajawal','Inter',system-ui,'Segoe UI',Tahoma,Arial,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace;
  --top-h:72px;
  --wrap:1440px;
  --gutter:32px;
  --fs:14px;
  --ctl-h:38px;
}
html[lang="ar"]{ --fs:15.5px; --font:var(--font-ar); }

/* ---------- 2. base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--top-h) + 16px)}
body{margin:0;min-width:1280px;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:var(--fs);line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
html[lang="ar"] body{line-height:1.6}
h1,h2,h3,h4,h5,h6{margin:0;color:var(--ink);font-weight:700;line-height:1.3;letter-spacing:-.01em}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] h4{letter-spacing:0}
h1{font-size:24px;line-height:32px;letter-spacing:-.02em}
h2{font-size:18px} h3{font-size:15px} h4{font-size:14px}
p{margin:0 0 10px}
a{color:var(--red-600);text-decoration:none}
a:hover{color:var(--red-700)}
img,svg{vertical-align:middle}
img{max-width:100%}
hr{border:0;border-top:1px solid var(--line);margin:20px 0}
small{font-size:12px}
b,strong{font-weight:600}
code,kbd,pre,samp{font-family:var(--mono);font-size:12.5px}
code{background:var(--surface-3);border:1px solid var(--line-2);border-radius:var(--r-xs);padding:1px 5px;color:var(--ink-2);direction:ltr;unicode-bidi:isolate}
pre{background:#0f172a;color:#e2e8f0;border-radius:var(--r);padding:14px 16px;overflow:auto;line-height:1.6;direction:ltr;text-align:left;margin:0 0 14px}
pre code{background:none;border:0;padding:0;color:inherit}
::selection{background:#fbd5d5;color:var(--ink)}
:focus{outline:none}
:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:4px}
button{font:inherit;color:inherit}
.ic{width:1em;height:1em;flex-shrink:0;display:inline-block;vertical-align:-.125em}
.num,.tnum{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.mono{font-family:var(--mono);font-size:12.5px;letter-spacing:-.01em}
.ltr{direction:ltr;unicode-bidi:isolate}
[dir="rtl"] .ltr{display:inline-block}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}
.nd-wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}

/* ---------- 3. top bar + navigation ---------- */
.nd-top{position:sticky;top:0;z-index:100;background:var(--nav);color:#e5e7eb;border-bottom:1px solid #000;box-shadow:0 1px 0 rgba(255,255,255,.03) inset}
.nd-top.scrolled{box-shadow:0 6px 18px rgba(2,6,23,.22)}
.nd-top .nd-wrap{display:flex;align-items:center;height:var(--top-h);gap:14px}
.nd-brand{display:flex;align-items:center;gap:12px;flex-shrink:0;color:#fff;text-decoration:none;border-radius:var(--r)}
.nd-brand:hover{color:#fff}
.nd-brand .nd-mark{width:40px;height:40px;border-radius:11px;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.nd-brand-text{display:flex;flex-direction:column;gap:5px;line-height:1}
.nd-brand-text .nd-word{display:block}
.nd-brand-sub{font-size:11px;font-weight:500;color:var(--nav-text);letter-spacing:.04em;white-space:nowrap;line-height:1}
html[lang="ar"] .nd-brand-sub{letter-spacing:0;font-size:12px}
.nd-nav{display:flex;align-items:stretch;align-self:stretch;gap:0;margin-inline-start:4px;flex-shrink:0}
.nd-nav-item{position:relative;display:flex;align-items:center}
.nd-nav-link{display:flex;align-items:center;gap:7px;height:40px;padding:0 9px;border:0;border-radius:var(--r-sm);background:none;color:var(--nav-text);font-weight:500;font-size:13.5px;white-space:nowrap;cursor:pointer;text-decoration:none;transition:background .15s,color .15s}
html[lang="ar"] .nd-nav-link{font-size:15px;font-weight:500;padding:0 9px}
.nd-nav-link .ic{font-size:16px;opacity:.85}
.nd-nav-link .ic-caret{font-size:14px;opacity:.6;transition:transform .15s}
.nd-nav-item:hover>.nd-nav-link,.nd-nav-item.open>.nd-nav-link,.nd-nav-link:focus-visible{background:var(--nav-hover);color:#fff}
.nd-nav-item.open>.nd-nav-link .ic-caret{transform:rotate(180deg)}
.nd-nav-item.active>.nd-nav-link{color:#fff}
.nd-nav-item.active>.nd-nav-link .ic{opacity:1}
.nd-nav-item.active::after{content:"";position:absolute;inset-inline:12px;bottom:0;height:3px;background:var(--red);border-radius:3px 3px 0 0}
.nd-dd{position:absolute;top:calc(100% - 6px);inset-inline-start:0;min-width:256px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-pop);padding:8px;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .14s,transform .14s,visibility .14s;z-index:120}
.nd-nav-item.open>.nd-dd{opacity:1;visibility:visible;transform:none}
@media (hover:hover){ .nd-nav-item.hoverable:hover>.nd-dd{opacity:1;visibility:visible;transform:none} .nd-nav-item.hoverable:hover>.nd-nav-link .ic-caret{transform:rotate(180deg)} }
.nd-dd::before{content:"";position:absolute;inset-inline:0;top:-10px;height:10px}
.nd-dd-head{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);padding:6px 10px 8px}
html[lang="ar"] .nd-dd-head{letter-spacing:0;text-transform:none;font-size:12.5px}
.nd-dd-grid{display:grid;gap:2px}
.nd-dd.cols-2{min-width:540px}
.nd-dd.cols-2 .nd-dd-grid{grid-template-columns:1fr 1fr}
.nd-dd-end{inset-inline-start:auto;inset-inline-end:0}
.nd-dd a,.nd-dd .nd-dd-btn{display:flex;align-items:center;gap:11px;width:100%;padding:8px 10px;border:0;background:none;border-radius:var(--r-sm);font-size:13.5px;color:var(--ink-2);font-weight:500;white-space:nowrap;text-decoration:none;cursor:pointer;text-align:start}
html[lang="ar"] .nd-dd a,html[lang="ar"] .nd-dd .nd-dd-btn{font-size:15px}
.nd-dd a .nd-dd-ic{width:30px;height:30px;border-radius:7px;background:var(--surface-2);border:1px solid var(--line-2);display:grid;place-items:center;color:var(--muted);font-size:15px;flex-shrink:0;transition:all .12s}
.nd-dd a:hover,.nd-dd a:focus-visible,.nd-dd .nd-dd-btn:hover{background:var(--red-50);color:var(--red-700);outline:none}
.nd-dd a:hover .nd-dd-ic,.nd-dd a:focus-visible .nd-dd-ic{background:#fff;border-color:var(--red-100);color:var(--red)}
.nd-dd a[aria-current="page"]{background:var(--red-50);color:var(--red-700);font-weight:600}
.nd-dd a[aria-current="page"] .nd-dd-ic{background:#fff;border-color:var(--red-100);color:var(--red)}
.nd-dd a.disabled{opacity:.55;pointer-events:none}
.nd-dd-sep{height:1px;background:var(--line-2);margin:6px 4px}
.nd-dd-note{font-size:12px;color:var(--muted);padding:6px 10px}

.nd-top-right{margin-inline-start:auto;display:flex;align-items:center;gap:8px;flex-shrink:0}
.nd-lang{display:flex;background:var(--nav-2);border:1px solid var(--nav-line);border-radius:var(--r-sm);padding:2px}
.nd-lang a{display:flex;align-items:center;height:28px;padding:0 8px;font-size:12px;font-weight:600;color:var(--nav-text);border-radius:4px;text-decoration:none;font-family:'Inter',sans-serif}
.nd-lang a[lang="ar"]{font-family:'Tajawal',sans-serif;font-size:13.5px;font-weight:500}
.nd-lang a:hover{color:#fff}
.nd-lang a.on{background:#273244;color:#fff}
.nd-balance{display:flex;align-items:center;gap:10px;height:42px;padding-inline:10px 14px;border-radius:var(--r-sm);background:var(--nav-2);border:1px solid var(--nav-line);color:#fff;text-decoration:none}
.nd-balance .nd-bal-ic{width:26px;height:26px;border-radius:6px;background:rgba(221,55,55,.16);color:#f37b7b;display:grid;place-items:center;font-size:14px}
.nd-balance small{display:block;font-size:10.5px;color:var(--nav-text);line-height:1.15;font-weight:500;white-space:nowrap}
html[lang="ar"] .nd-balance small{font-size:12px}
.nd-balance b{display:block;font-size:14px;color:#fff;font-weight:600;line-height:1.3;white-space:nowrap}
.nd-balance b .cur{color:var(--nav-text);font-weight:500;font-size:11px;margin-inline-start:4px}
.nd-vsep{width:1px;height:28px;background:var(--nav-line)}
.nd-icon-btn{position:relative;width:38px;height:38px;border-radius:var(--r-sm);display:grid;place-items:center;color:var(--nav-text);border:1px solid transparent;background:none;cursor:pointer;font-size:18px;text-decoration:none;transition:all .15s}
.nd-icon-btn:hover,.nd-nav-item.open>.nd-icon-btn{background:var(--nav-hover);color:#fff;border-color:var(--nav-line)}
.nd-icon-btn.wa{color:#4ade80}
[dir="rtl"] .nd-icon-btn .ic-flip{transform:scaleX(-1)}
.nd-user{display:flex;align-items:center;gap:9px;height:44px;padding-inline:5px 8px;border-radius:var(--r);border:1px solid transparent;background:none;color:inherit;cursor:pointer;text-align:start}
.nd-user:hover,.nd-nav-item.open>.nd-user{background:var(--nav-hover);border-color:var(--nav-line)}
.nd-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#334155,#1e293b);border:1px solid #3b4658;color:#fff;display:grid;place-items:center;font-size:12.5px;font-weight:600;font-family:'Inter',sans-serif;flex-shrink:0;letter-spacing:.02em}
.nd-user-name{display:block;font-size:13.5px;font-weight:600;color:#fff;line-height:1.2;white-space:nowrap;max-width:128px;overflow:hidden;text-overflow:ellipsis}
.nd-user-ip{display:block;font-size:11px;color:var(--nav-text);line-height:1.3;white-space:nowrap;font-family:var(--mono);letter-spacing:-.01em}
.nd-user .ic-caret{font-size:14px;color:var(--nav-text)}
.nd-dd-user{min-width:280px}
.nd-dd-profile{display:flex;align-items:center;gap:12px;padding:10px 10px 12px}
.nd-dd-profile .nd-avatar{width:40px;height:40px;font-size:14px}
.nd-dd-profile b{display:block;font-size:14px;color:var(--ink)}
.nd-dd-profile span{display:block;font-size:12px;color:var(--muted)}
.nd-kv{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;font-size:12.5px;color:var(--muted)}
.nd-kv b{color:var(--ink);font-weight:600}
.nd-dd-support{min-width:300px}
.nd-sup-row{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:var(--r-sm);color:var(--ink-2);text-decoration:none}
.nd-sup-row:hover{background:var(--surface-2);color:var(--ink)}
.nd-sup-row .nd-dd-ic{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--line);color:var(--ink-2);font-size:16px;flex-shrink:0}
.nd-sup-row .nd-dd-ic.wa{color:#16a34a;background:#effaf3;border-color:#cdeed9}
.nd-sup-row small{display:block;font-size:11.5px;color:var(--muted);line-height:1.25}
.nd-sup-row b{display:block;font-size:14px;font-weight:600;color:var(--ink)}

/* ---------- 4. page bar ---------- */
.nd-pagebar{background:var(--surface);border-bottom:1px solid var(--line)}
.nd-pagebar .nd-wrap{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding-top:22px;padding-bottom:22px}
.nd-pagebar-main{min-width:0}
.nd-crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:12.5px;color:var(--muted);margin-bottom:6px}
html[lang="ar"] .nd-crumbs{font-size:14px}
.nd-crumbs a{color:var(--muted)}
.nd-crumbs a:hover{color:var(--ink)}
.nd-crumbs .ic{font-size:13px;color:var(--faint)}
[dir="rtl"] .nd-crumbs .ic-sep{transform:scaleX(-1)}
.nd-crumbs .cur{color:var(--ink-2);font-weight:500}
.nd-pagebar h1{display:flex;align-items:center;gap:10px}
.nd-subtitle{color:var(--muted);font-size:13.5px;margin-top:3px}
html[lang="ar"] .nd-subtitle{font-size:15px}
.nd-subtitle b{color:var(--ink-2);font-weight:600}
.nd-page-actions{display:flex;align-items:center;gap:10px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}
.meta-chip{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);font-size:12.5px;color:var(--muted);white-space:nowrap}
.meta-chip .ic{color:var(--faint);font-size:15px}
.meta-chip b{color:var(--ink);font-weight:600}

/* ---------- 5. layout ---------- */
.nd-main{flex:1;padding:24px 0 48px}
.stack{display:flex;flex-direction:column;gap:24px}
.stack-sm{display:flex;flex-direction:column;gap:12px}
.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.grid-main{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}
.grid-main-wide{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:24px;align-items:start}
.sticky-side{position:sticky;top:calc(var(--top-h) + 20px)}
.spacer{flex:1}

/* ---------- 6. KPI tiles ---------- */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.kpis.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.kpis.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.kpi{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px 18px 16px;box-shadow:var(--sh-1);min-width:0}
.kpi-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;min-height:28px}
.kpi-label{font-size:12.5px;font-weight:500;color:var(--muted);display:flex;align-items:center;gap:9px;min-width:0}
html[lang="ar"] .kpi-label{font-size:14px}
.kpi-label .kpi-ic{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;font-size:15px;background:var(--surface-2);border:1px solid var(--line-2);color:var(--ink-2);flex-shrink:0}
.kpi.primary .kpi-ic{background:var(--red-50);border-color:var(--red-100);color:var(--red)}
.kpi.primary::before{content:"";position:absolute;inset-block:14px;inset-inline-start:-1px;width:3px;border-radius:0 3px 3px 0;background:var(--red)}
[dir="rtl"] .kpi.primary::before{border-radius:3px 0 0 3px}
.kpi-value{font-size:26px;line-height:32px;font-weight:700;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi-value .unit{font-size:13px;font-weight:600;color:var(--muted);margin-inline-start:6px;letter-spacing:0}
.kpi-value.sm{font-size:18px;line-height:32px}
.kpi-foot{margin-top:8px;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px;min-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[lang="ar"] .kpi-foot{font-size:13.5px}
.kpi-foot b{color:var(--ink-2);font-weight:600}
.kpi-link{font-size:12px;font-weight:600;color:var(--red);white-space:nowrap}
html[lang="ar"] .kpi-link{font-size:13.5px}
.delta{display:inline-flex;align-items:center;gap:4px;font-weight:600;color:var(--ok);background:var(--ok-bg);padding:1px 6px;border-radius:4px;font-size:11.5px}
.delta.down{color:var(--bad);background:var(--bad-bg)}
.meter{height:6px;background:var(--line-2);border-radius:99px;overflow:hidden;flex:1}
.meter>span{display:block;height:100%;background:var(--ok);border-radius:99px}
.meter.red>span{background:var(--red)}

/* ---------- 7. cards ---------- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-1);min-width:0}
.card+.card{margin-top:24px}
.stack>.card+.card,.grid-2>.card+.card,.grid-3>.card+.card,.grid-main .card+.card{margin-top:0}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line);min-height:64px}
.card-head>div:first-child{min-width:0}
.card-title{font-size:15px;font-weight:600;color:var(--ink);display:flex;align-items:center;gap:10px;margin:0}
html[lang="ar"] .card-title{font-size:16.5px}
.card-title .dot{width:8px;height:8px;border-radius:2px;background:var(--red);flex-shrink:0}
.card-title .ic{color:var(--muted);font-size:17px}
.card-desc{font-size:12.5px;color:var(--muted);margin-top:2px}
html[lang="ar"] .card-desc{font-size:14px}
.card-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.card-body{padding:20px}
.card-body.tight{padding:12px}
.card-body.flush{padding:0}
.card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-top:1px solid var(--line);background:var(--surface-2);border-radius:0 0 var(--r-lg) var(--r-lg);font-size:12.5px;color:var(--muted)}
.card-sub{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.card-sub h3{font-size:13px;font-weight:600;color:var(--ink-2)}
html[lang="ar"] .card-sub h3{font-size:14.5px}
.card-sub span{font-size:12px;color:var(--muted)}
.section-title{font-size:13px;font-weight:600;color:var(--ink-2);margin:0 0 12px;display:flex;align-items:center;gap:8px}
.dl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin:0}
.dl-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.dl-grid>div{padding:16px 18px;border-bottom:1px solid var(--line);border-inline-end:1px solid var(--line);min-height:78px;min-width:0}
.dl-grid dt{font-size:12px;color:var(--muted);font-weight:500;display:flex;align-items:center;gap:7px;margin-bottom:6px}
html[lang="ar"] .dl-grid dt{font-size:13.5px}
.dl-grid dt .ic{color:var(--faint);font-size:14px}
.dl-grid dd{margin:0;font-size:14.5px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.dl-grid.cols-3>div:nth-child(3n),.dl-grid:not(.cols-2)>div:nth-child(3n){border-inline-end:0}
.dl-grid.cols-2>div:nth-child(2n){border-inline-end:0}
.dl-grid>div.last-row{border-bottom:0}
.kv-list{display:grid;grid-template-columns:max-content 1fr;gap:10px 24px;margin:0;font-size:13.5px}
.kv-list dt{color:var(--muted)}
.kv-list dd{margin:0;color:var(--ink);font-weight:500}

/* ---------- 8. segmented tabs ---------- */
.seg{display:inline-flex;background:var(--bg);border:1px solid var(--line);border-radius:var(--r);padding:3px;gap:2px;max-width:100%;overflow-x:auto}
.seg>button,.seg>a{white-space:nowrap;height:32px;padding:0 14px;border:0;border-radius:6px;background:none;font-size:13px;font-weight:500;color:var(--muted);display:inline-flex;align-items:center;gap:8px;cursor:pointer;text-decoration:none;transition:color .12s,background .12s}
html[lang="ar"] .seg>button,html[lang="ar"] .seg>a{font-size:14.5px}
.seg>button .ic,.seg>a .ic{font-size:15px;opacity:.8}
.seg>button:hover,.seg>a:hover{color:var(--ink)}
.seg>[aria-selected="true"],.seg>.active{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(15,23,42,.1),0 0 0 1px rgba(15,23,42,.04)}
.seg>[aria-selected="true"] .ic,.seg>.active .ic{color:var(--red);opacity:1}
.seg .count{display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:99px;background:var(--line-2);color:var(--muted);font-size:11px;font-weight:600}
.seg>[aria-selected="true"] .count{background:var(--red-50);color:var(--red-700)}
.seg.lg>button,.seg.lg>a{height:36px;padding:0 16px}
.panel{display:none}
.panel.on{display:block}
.card>.panel{padding:20px}
.tabbar{display:flex;align-items:center;gap:4px;border-bottom:1px solid var(--line);padding-inline:20px}
.tabbar>a,.tabbar>button{position:relative;display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 12px;border:0;background:none;color:var(--muted);font-weight:500;font-size:13.5px;cursor:pointer;text-decoration:none}
.tabbar>a:hover,.tabbar>button:hover{color:var(--ink)}
.tabbar>[aria-selected="true"],.tabbar>.active{color:var(--ink);font-weight:600}
.tabbar>[aria-selected="true"]::after,.tabbar>.active::after{content:"";position:absolute;inset-inline:10px;bottom:-1px;height:2px;background:var(--red);border-radius:2px}

/* ---------- 9. tables ---------- */
.tbl-wrap{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;overflow:clip;background:var(--surface)}
.tbl-wrap.nd-wide{overflow-x:auto} /* ND-AUDIT2 F10: only a table wider than its card (set by inc/footer.php); its last columns (Status, Actions) can be reached */
.tbl-wrap.nd-wide .tbl thead th{top:0}
.card>.tbl-wrap,.card-body.flush>.tbl-wrap{border:0;border-radius:0}
.card>.tbl-wrap:last-child{border-radius:0 0 var(--r-lg) var(--r-lg)}
.tbl-scroll{overflow-x:auto;max-width:100%}
.tbl-scroll.vh{max-height:70vh;overflow:auto}
.tbl,.nd-main table.standard-table,.nd-main table.standard-table2,.nd-main table.standard-table3,.nd-main table.standard-table4,.frame-body table.standard-table,.frame-body table.standard-table3,.frame-body table.standard-table4{width:100%!important;border-collapse:separate;border-spacing:0;font-size:13.5px;background:var(--surface);color:var(--ink-2)}
html[lang="ar"] .tbl{font-size:14.5px}
.tbl thead th,.tbl>tbody>tr:first-child>th:only-child,.tbl tr.th-row>th,
.nd-main table[class^="standard-table"] th,.frame-body table[class^="standard-table"] th{background:var(--surface-2);color:var(--muted);font-weight:600;font-size:12px;text-align:start;padding:0 14px;height:42px;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:middle}
html[lang="ar"] .tbl thead th,html[lang="ar"] .nd-main table[class^="standard-table"] th{font-size:13.5px}
.tbl thead th{position:sticky;top:var(--top-h);z-index:2}
@supports not (overflow:clip){.tbl-wrap .tbl thead th{top:0}} /* Safari 15: the box scrolls itself, the header stays on its first line */
.tbl-scroll .tbl thead th,.tbl-scroll.vh .tbl thead th{top:0}
.tbl td,.nd-main table[class^="standard-table"] td,.frame-body table[class^="standard-table"] td{padding:10px 14px;min-height:46px;height:46px;border-bottom:1px solid var(--line-2);vertical-align:middle;color:var(--ink-2)}
.tbl tbody tr:last-child td{border-bottom:0}
.tbl.zebra tbody tr:nth-child(even) td,.nd-main table[class^="standard-table"] tr:nth-child(even) td{background:#fbfbfc}
.tbl tbody tr:hover td,.nd-main table[class^="standard-table"] tr:hover td{background:#f6f7f9}
.tbl tfoot td{height:44px;background:var(--surface-2);border-top:1px solid var(--line);border-bottom:0;font-size:12.5px;color:var(--muted);font-weight:600}
.tbl .r,.tbl th.r,.tbl td.r{text-align:end}
.tbl .c,.tbl th.c,.tbl td.c{text-align:center}
.tbl td.num,.tbl td.r{font-variant-numeric:tabular-nums}
.tbl td.strong{font-weight:600;color:var(--ink)}
.tbl td.idx,.tbl th.idx{color:var(--faint);width:56px}
.tbl td.muted{color:var(--muted)}
.tbl td.wrap{white-space:normal;min-width:220px;max-width:420px;overflow-wrap:anywhere}
.tbl td.nowrap,.tbl th.nowrap{white-space:nowrap}
.tbl td.actions{white-space:nowrap;text-align:end}
.tbl td.actions .btn+.btn{margin-inline-start:6px}
.tbl.compact td{height:38px;padding-top:6px;padding-bottom:6px}
.tbl.compact thead th{height:36px}
.tbl tr.selected td{background:var(--red-50)!important}
.tbl input[type="checkbox"]{margin:0}
.tbl .msg-text{display:block;max-width:360px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12.5px;color:var(--ink-2);line-height:1.45}
.tbl-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-bottom:1px solid var(--line);background:var(--surface)}
.tbl-count{font-size:12.5px;color:var(--muted);white-space:nowrap}
.tbl-count b{color:var(--ink);font-weight:600}
.ip-cell{display:inline-flex;align-items:center;gap:8px}
.ip-cell .ic{color:var(--faint)}

/* ---------- 10. pills / badges ---------- */
.pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:99px;font-size:12px;font-weight:600;white-space:nowrap;border:1px solid var(--line);background:var(--surface-2);color:var(--ink-2);line-height:1}
html[lang="ar"] .pill{font-size:13px;font-weight:500}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}
.pill.nodot::before{display:none}
.pill.ok,.pill.yes{color:var(--ok);background:var(--ok-bg);border-color:var(--ok-line)}
.pill.warn{color:var(--warn);background:var(--warn-bg);border-color:var(--warn-line)}
.pill.bad{color:var(--bad);background:var(--bad-bg);border-color:var(--bad-line)}
.pill.info{color:var(--info);background:var(--info-bg);border-color:var(--info-line)}
.pill.off,.pill.no{color:var(--off);background:var(--off-bg);border-color:var(--off-line)}
.badge{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:4px;font-size:11px;font-weight:600;background:var(--surface-3);color:var(--ink-2);border:1px solid var(--line);white-space:nowrap}
.badge.red{color:var(--red-700);background:var(--red-50);border-color:var(--red-100)}
.badge.ok{color:var(--ok);background:var(--ok-bg);border-color:var(--ok-line)}
.tag-ok{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:4px;background:var(--ok-bg);color:var(--ok);font-size:11.5px;font-weight:700;letter-spacing:.03em}
.tag-bad{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:4px;background:var(--bad-bg);color:var(--bad);font-size:11.5px;font-weight:700;letter-spacing:.03em}
html[lang="ar"] .tag-ok,html[lang="ar"] .tag-bad{letter-spacing:0;font-weight:600;font-size:12.5px}

/* ---------- 11. forms ---------- */
.form{display:flex;flex-direction:column;gap:18px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
.form-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.form-grid .span-2{grid-column:span 2}
.form-grid .span-all{grid-column:1/-1}
.fld{display:flex;flex-direction:column;gap:6px;min-width:0}
.fld>label,.fld-label{font-size:13px;font-weight:600;color:var(--ink-2)}
html[lang="ar"] .fld>label,html[lang="ar"] .fld-label{font-size:14.5px}
.fld .req{color:var(--red);margin-inline-start:2px}
.fld-row{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start;padding:16px 0;border-bottom:1px solid var(--line-2)}
.fld-row:last-child{border-bottom:0}
.fld-row>label,.fld-row>.fld-label{padding-top:9px}
.help{font-size:12px;color:var(--muted);line-height:1.45}
html[lang="ar"] .help{font-size:13.5px}
.help.err{color:var(--bad)}
.input,.select,.textarea,
.nd-main input[type="text"],.nd-main input[type="password"],.nd-main input[type="email"],.nd-main input[type="number"],.nd-main input[type="tel"],.nd-main input[type="url"],.nd-main input[type="search"],.nd-main input[type="date"],.nd-main input[type="time"],.nd-main input[type="datetime-local"],.nd-main select,.nd-main textarea,
.frame-body input[type="text"],.frame-body select,.nd-modal input[type="text"],.nd-modal input[type="password"],.nd-modal input[type="number"],.nd-modal select,.nd-modal textarea,.modal input[type="text"],.modal select,.modal textarea{
  display:block;width:100%;height:var(--ctl-h);padding:0 12px;margin:0;border:1px solid var(--line-3);border-radius:var(--r-sm);background:#fff;color:var(--ink);font:inherit;font-size:14px;line-height:1.4;box-shadow:0 1px 1px rgba(15,23,42,.03);transition:border-color .12s,box-shadow .12s;-webkit-appearance:none;appearance:none}
html[lang="ar"] .input,html[lang="ar"] .nd-main input[type="text"],html[lang="ar"] .nd-main select,html[lang="ar"] .nd-main textarea{font-size:15px}
.textarea,.nd-main textarea,.nd-modal textarea,.modal textarea{height:auto;min-height:110px;padding:10px 12px;line-height:1.55;resize:vertical}
.select,.nd-main select,.nd-modal select,.modal select,.frame-body select{padding-inline-end:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px;cursor:pointer}
[dir="rtl"] .select,[dir="rtl"] .nd-main select,[dir="rtl"] .nd-modal select,[dir="rtl"] .modal select{background-position:left 12px center}
.nd-main select[multiple],.select[multiple]{height:auto;min-height:120px;padding:6px;background-image:none}
.input:hover,.select:hover,.textarea:hover,.nd-main input[type="text"]:hover,.nd-main input[type="password"]:hover,.nd-main select:hover,.nd-main textarea:hover{border-color:#b6bdc8}
.input:focus,.select:focus,.textarea:focus,.nd-main input:focus,.nd-main select:focus,.nd-main textarea:focus,.nd-modal input:focus,.nd-modal select:focus,.nd-modal textarea:focus,.modal input:focus,.modal textarea:focus{border-color:var(--red);box-shadow:var(--ring);outline:none}
.input[readonly],.nd-main input[readonly]{background:var(--surface-2);color:var(--ink-2)}
.input:disabled,.select:disabled,.textarea:disabled,.nd-main input:disabled,.nd-main select:disabled,.nd-main textarea:disabled{background:var(--surface-3);color:var(--faint);cursor:not-allowed}
.input.is-invalid,.select.is-invalid,.textarea.is-invalid{border-color:var(--bad);box-shadow:0 0 0 3px rgba(185,28,28,.12)}
.input.sm,.select.sm{height:32px;font-size:13px}
.input.lg{height:46px;font-size:15px}
.input.mono,.nd-main input.mono{font-family:var(--mono);font-size:13px}
::placeholder{color:var(--faint);opacity:1}
.nd-main input[type="checkbox"],.nd-main input[type="radio"],.check input,.nd-modal input[type="checkbox"]{width:16px;height:16px;margin:0;accent-color:var(--red);cursor:pointer;vertical-align:middle;flex-shrink:0}
.check{display:inline-flex;align-items:center;gap:9px;font-size:13.5px;color:var(--ink-2);cursor:pointer;user-select:none}
html[lang="ar"] .check{font-size:14.5px}
.check-list{display:flex;flex-wrap:wrap;gap:10px 22px}
.switch{position:relative;display:inline-flex;align-items:center;gap:10px;cursor:pointer;font-size:13.5px;color:var(--ink-2)}
.switch input{position:absolute;opacity:0;width:1px;height:1px}
.switch .track{width:38px;height:22px;border-radius:99px;background:#cbd5e1;position:relative;transition:background .15s;flex-shrink:0}
.switch .track::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.switch input:checked+.track{background:var(--red)}
.switch input:checked+.track::after{transform:translateX(16px)}
[dir="rtl"] .switch input:checked+.track::after{transform:translateX(-16px)}
.switch input:focus-visible+.track{box-shadow:var(--ring)}
.input-group{display:flex;align-items:stretch;width:100%}
.input-group>.input,.input-group>input,.input-group>select{flex:1;min-width:0;border-radius:0}
.input-group>:first-child{border-start-start-radius:var(--r-sm);border-end-start-radius:var(--r-sm)}
.input-group>:last-child{border-start-end-radius:var(--r-sm);border-end-end-radius:var(--r-sm)}
.input-group>*+*{margin-inline-start:-1px}
.ig-addon{display:inline-flex;align-items:center;gap:6px;padding:0 12px;background:var(--surface-2);border:1px solid var(--line-3);color:var(--muted);font-size:13px;font-weight:500;white-space:nowrap}
html[lang="ar"] .ig-addon{font-size:14px}
.input-group>.btn{border-radius:0;height:auto}
.input-group>.btn:last-child{border-start-end-radius:var(--r-sm);border-end-end-radius:var(--r-sm)}
.input-icon{position:relative}
.input-icon>.ic{position:absolute;inset-inline-start:12px;top:50%;transform:translateY(-50%);color:var(--faint);font-size:16px;pointer-events:none}
.input-icon>.input,.input-icon>input{padding-inline-start:38px}
.filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}
.filters .fld{min-width:150px}
.filters .fld>label{font-size:12px;font-weight:500;color:var(--muted)}
html[lang="ar"] .filters .fld>label{font-size:13.5px}
.filters .fld.w-sm{min-width:120px;width:130px}
.filters .fld.w-md{width:180px}
.filters .fld.w-lg{width:240px}
.filters .actions{display:flex;gap:8px;align-items:center}
.file-drop{position:relative;display:flex;align-items:center;gap:14px;padding:18px;border:1.5px dashed var(--line-3);border-radius:var(--r);background:var(--surface-2);color:var(--muted);cursor:pointer;transition:border-color .12s,background .12s}
.file-drop:hover,.file-drop.drag{border-color:var(--red);background:var(--red-50)}
.file-drop input[type="file"]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.file-drop .fd-ic{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);color:var(--red);font-size:20px;flex-shrink:0}
.file-drop b{display:block;color:var(--ink);font-size:14px;font-weight:600}
.file-drop small{display:block;font-size:12px;color:var(--muted)}
.file-drop .fd-name{color:var(--ink-2);font-weight:600}
.nd-main input[type="file"]:not(.file-drop input){font-size:13px;color:var(--ink-2)}
.nd-main input[type="file"]::file-selector-button{height:34px;padding:0 14px;margin-inline-end:12px;border:1px solid var(--line-3);border-radius:var(--r-sm);background:#fff;color:var(--ink-2);font:inherit;font-weight:600;font-size:13px;cursor:pointer}
.counter-line{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);margin-top:6px}
.counter-line b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.form-actions{display:flex;align-items:center;gap:10px;padding-top:6px}
.form-actions.end{justify-content:flex-end}

/* ---------- 12. buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:var(--ctl-h);padding:0 16px;margin:0;border:1px solid var(--line-3);border-radius:var(--r-sm);background:#fff;color:var(--ink-2);font:inherit;font-weight:600;font-size:13.5px;line-height:1;white-space:nowrap;cursor:pointer;text-decoration:none;text-shadow:none;box-shadow:0 1px 1px rgba(15,23,42,.04);transition:background .15s,border-color .15s,color .15s,box-shadow .15s;vertical-align:middle;-webkit-user-select:none;user-select:none}
html[lang="ar"] .btn{font-size:14.5px;font-weight:500}
.btn .ic{font-size:16px}
.btn:hover{background:var(--surface-2);border-color:#b6bdc8;color:var(--ink)}
.btn:focus-visible{outline:none;box-shadow:var(--ring)}
.btn:active{transform:translateY(.5px)}
.btn[disabled],.btn.disabled,.btn:disabled{opacity:.55;cursor:not-allowed;pointer-events:none}
.btn-primary,.nd-main .btn-primary{background:var(--red);border-color:var(--red);color:#fff;box-shadow:0 1px 0 rgba(0,0,0,.06),inset 0 -1px 0 rgba(0,0,0,.12)}
.btn-primary:hover,.nd-main .btn-primary:hover{background:var(--red-600);border-color:var(--red-600);color:#fff}
.btn-dark{background:var(--nav);border-color:var(--nav);color:#fff}
.btn-dark:hover{background:#1f2937;border-color:#1f2937;color:#fff}
.btn-ghost,.btn-secondary,.btn-default{background:#fff;border-color:var(--line-3);color:var(--ink-2)}
.btn-success,.nd-main .btn-success{background:#fff;border-color:var(--ok-line);color:var(--ok)}
.btn-success:hover,.nd-main .btn-success:hover{background:var(--ok-bg);border-color:#9fd8b4;color:#11652f}
.btn-danger,.nd-main .btn-danger{background:#fff;border-color:var(--bad-line);color:var(--bad)}
.btn-danger:hover,.nd-main .btn-danger:hover{background:var(--bad-bg);border-color:var(--red-200);color:#991b1b}
.btn-danger.solid{background:var(--bad);border-color:var(--bad);color:#fff}
.btn-danger.solid:hover{background:#991b1b;border-color:#991b1b;color:#fff}
.btn-warning,.nd-main .btn-warning{background:#fff;border-color:var(--warn-line);color:var(--warn)}
.btn-warning:hover,.nd-main .btn-warning:hover{background:var(--warn-bg);border-color:#f8cf86;color:#92400e}
.btn-info,.nd-main .btn-info{background:var(--ink);border-color:var(--ink);color:#fff}
.btn-info:hover,.nd-main .btn-info:hover{background:#1e293b;border-color:#1e293b;color:#fff}
.btn-link{background:none;border-color:transparent;box-shadow:none;color:var(--red-600);padding-inline:6px}
.btn-link:hover{background:none;border-color:transparent;color:var(--red-700);text-decoration:underline}
.btn-sm,.btn-small{height:32px;padding:0 12px;font-size:12.5px;border-radius:var(--r-sm)}
.btn-mini,.btn-xs{height:26px;padding:0 9px;font-size:12px;border-radius:5px;gap:5px}
html[lang="ar"] .btn-mini,html[lang="ar"] .btn-xs{font-size:13px}
.btn-lg,.btn-large{height:46px;padding:0 22px;font-size:15px}
.btn-block{display:flex;width:100%}
.btn-icon{width:var(--ctl-h);padding:0}
.btn-icon.btn-sm{width:32px}
.btn-icon.btn-mini{width:26px}
.btn-group{display:inline-flex}
.btn-group>.btn{border-radius:0}
.btn-group>.btn+.btn{margin-inline-start:-1px}
.btn-group>.btn:first-child{border-start-start-radius:var(--r-sm);border-end-start-radius:var(--r-sm)}
.btn-group>.btn:last-child{border-start-end-radius:var(--r-sm);border-end-end-radius:var(--r-sm)}
.btn.loading{position:relative;color:transparent!important;pointer-events:none}
.btn.loading::after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-color:rgba(255,255,255,.9) rgba(255,255,255,.9) transparent transparent;animation:nd-spin .7s linear infinite}
.btn:not(.btn-primary):not(.btn-info):not(.btn-dark).loading::after{border-color:var(--muted) var(--muted) transparent transparent}

/* ---------- 13. alerts / toasts ---------- */
.alert,.nd-main .notification,.frame-body .notification,.auth-card .notification{position:relative;display:flex;align-items:flex-start;gap:12px;padding:12px 16px;margin:0 0 16px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2);color:var(--ink-2);font-size:13.5px;line-height:1.5}
html[lang="ar"] .alert,html[lang="ar"] .nd-main .notification{font-size:14.5px}
.alert>.ic{font-size:18px;margin-top:1px;flex-shrink:0}
.alert .alert-body{flex:1;min-width:0}
.alert .alert-title,.nd-main .notification p span:first-child{font-weight:700;color:inherit}
.alert p,.nd-main .notification p{margin:0}
.alert-success,.nd-main .notification.success{background:var(--ok-bg);border-color:var(--ok-line);color:#14532d}
.alert-success>.ic{color:var(--ok)}
.alert-error,.alert-danger,.nd-main .notification.error,.auth-card .notification.error{background:var(--bad-bg);border-color:var(--bad-line);color:#7f1d1d}
.alert-error>.ic,.alert-danger>.ic{color:var(--bad)}
.alert-warning,.nd-main .notification.warning{background:var(--warn-bg);border-color:var(--warn-line);color:#78350f}
.alert-warning>.ic{color:var(--warn)}
.alert-info,.nd-main .notification.notice,.auth-card .notification.notice{background:var(--info-bg);border-color:var(--info-line);color:#1e3a8a}
.alert-info>.ic{color:var(--info)}
.alert .close,.alert [data-dismiss="alert"],.nd-main .notification .close{margin-inline-start:auto;background:none;border:0;color:inherit;opacity:.55;cursor:pointer;font-size:18px;line-height:1;padding:2px}
.alert .close:hover{opacity:1}
.nd-toasts{position:fixed;z-index:2000;top:calc(var(--top-h) + 16px);inset-inline-end:24px;display:flex;flex-direction:column;gap:10px;pointer-events:none}
.nd-toast{pointer-events:auto;display:flex;align-items:flex-start;gap:12px;min-width:300px;max-width:420px;padding:12px 14px;border-radius:var(--r);background:var(--nav);color:#f1f5f9;box-shadow:var(--sh-pop);font-size:13.5px;animation:nd-toast-in .18s ease-out}
.nd-toast .ic{font-size:18px;margin-top:1px;flex-shrink:0}
.nd-toast.ok .ic{color:#4ade80}.nd-toast.bad .ic{color:#f87171}.nd-toast.warn .ic{color:#fbbf24}.nd-toast.info .ic{color:#93c5fd}
.nd-toast button{margin-inline-start:auto;background:none;border:0;color:#94a3b8;cursor:pointer;font-size:16px;padding:0 2px}
.nd-toast.out{opacity:0;transform:translateY(-6px);transition:all .2s}
@keyframes nd-toast-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* ---------- 14. pagination ---------- */
.pager{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-top:1px solid var(--line);background:var(--surface);border-radius:0 0 var(--r-lg) var(--r-lg)}
.pager-info{font-size:12.5px;color:var(--muted)}
.pager-info b{color:var(--ink);font-weight:600}
.pages{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.pages a,.pages span,.pages button,
.nd-main nav.pagination .btn,.frame-body nav.pagination .btn{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r-sm);background:#fff;color:var(--ink-2);font-size:13px;font-weight:500;text-decoration:none;cursor:pointer;font-variant-numeric:tabular-nums;box-shadow:none;margin:0}
.pages a:hover,.pages button:hover,.nd-main nav.pagination .btn:hover{border-color:#b6bdc8;background:var(--surface-2);color:var(--ink)}
.pages .on,.pages [aria-current="page"],.nd-main nav.pagination .btn-info,.frame-body nav.pagination .btn-info{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:600}
.pages .gap{border:0;background:none;min-width:20px;padding:0;color:var(--faint);cursor:default}
.pages .ic{font-size:15px}
[dir="rtl"] .pages .ic{transform:scaleX(-1)}
.nd-main nav.pagination,.frame-body nav.pagination{display:block;margin:0;padding:0}
.nd-main nav.pagination ul{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:0;padding:0;list-style:none}
.nd-main nav.pagination .clearfix{display:none}

/* ---------- 15. modals ---------- */
.nd-modal,.modal{position:fixed;inset:0;z-index:1500;display:none;align-items:flex-start;justify-content:center;padding:72px 24px 24px;overflow-y:auto;background:rgba(15,23,42,.48);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.nd-modal.open,.modal.open,.modal.in{display:flex!important}
.modal.fade{opacity:1}
.modal-backdrop{display:none!important}
.nd-modal-dialog,.modal-dialog{position:relative;width:560px;max-width:100%;margin:0 auto;animation:nd-modal-in .18s ease-out}
.nd-modal-dialog.lg,.modal-dialog.modal-lg,.modal-dialog.lg{width:860px}
.nd-modal-dialog.xl,.modal-dialog.xl,.modal-dialog.frame{width:min(1240px,calc(100vw - 64px))}
.nd-modal-dialog.sm,.modal-dialog.modal-sm{width:420px}
.nd-modal-content,.modal-content{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-xl);box-shadow:var(--sh-modal);overflow:hidden}
.nd-modal-header,.modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line)}
.nd-modal-title,.modal-title{font-size:16px;font-weight:600;color:var(--ink);margin:0;display:flex;align-items:center;gap:10px}
.modal-header .close,.nd-modal-header .close,.nd-modal-close{order:2;margin-inline-start:auto;width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:var(--r-sm);background:none;color:var(--muted);font-size:22px;line-height:1;cursor:pointer;opacity:1;text-shadow:none;padding:0}
.modal-header .close:hover,.nd-modal-header .close:hover,.nd-modal-close:hover{background:var(--surface-3);color:var(--ink)}
.nd-modal-body,.modal-body{padding:20px;color:var(--ink-2);font-size:14px}
.nd-modal-body p:last-child,.modal-body p:last-child{margin-bottom:0}
.modal-body iframe,.nd-modal-body iframe{display:block;width:100%;min-height:560px;border:1px solid var(--line);border-radius:var(--r);background:#fff}
.nd-modal-footer,.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--line);background:var(--surface-2)}
.modal-footer .btn-default{background:#fff}
.nd-confirm-ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--bad-bg);color:var(--bad);font-size:22px;margin-bottom:14px}
.debug-url{display:none}
body.nd-modal-open{overflow:hidden}
@keyframes nd-modal-in{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}

/* ---------- 16. empty / loading ---------- */
.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 24px;color:var(--muted)}
.empty .empty-ic{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--line);color:var(--faint);font-size:24px;margin-bottom:14px}
.empty b{display:block;color:var(--ink);font-size:15px;font-weight:600;margin-bottom:4px}
.empty p{font-size:13px;max-width:380px;margin:0 0 14px}
td.empty-cell{padding:0!important;height:auto!important}
.spin{display:inline-block;width:18px;height:18px;border-radius:50%;border:2px solid var(--line-3);border-top-color:var(--red);animation:nd-spin .7s linear infinite;vertical-align:middle}
.spin.lg{width:28px;height:28px;border-width:3px}
@keyframes nd-spin{to{transform:rotate(360deg)}}
.skel{display:inline-block;height:12px;width:100%;border-radius:4px;background:linear-gradient(90deg,#eef0f3 0%,#f6f7f9 50%,#eef0f3 100%);background-size:200% 100%;animation:nd-skel 1.2s ease-in-out infinite;vertical-align:middle}
@keyframes nd-skel{from{background-position:200% 0}to{background-position:-200% 0}}
.loading-row{display:flex;align-items:center;justify-content:center;gap:10px;padding:28px;color:var(--muted);font-size:13px}

/* ---------- 17. footer ---------- */
.nd-footer{border-top:1px solid var(--line);background:var(--surface);margin-top:auto}
.nd-footer .nd-wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:68px;padding-top:12px;padding-bottom:12px;font-size:12.5px;color:var(--muted)}
html[lang="ar"] .nd-footer .nd-wrap{font-size:13.5px}
.nd-f-left{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
.nd-f-left .sep{width:1px;height:14px;background:var(--line)}
.nd-f-left a{color:var(--muted)}
.nd-f-left a:hover{color:var(--ink)}
.nd-f-left b{color:var(--ink-2);font-weight:600}
.nd-pay{display:flex;align-items:center;gap:6px}
.nd-pay .l{margin-inline-end:6px}
.pm{direction:ltr;height:26px;padding:0 9px;border:1px solid var(--line);border-radius:5px;display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:800;letter-spacing:.02em;color:var(--ink-2);background:var(--surface);font-family:'Inter',sans-serif;line-height:1}
.pm.visa{color:#1a1f71;font-style:italic;letter-spacing:.06em;font-size:12px}
.pm.mc::before{content:"";width:18px;height:11px;background:radial-gradient(circle at 5.5px 5.5px,#eb001b 5.5px,transparent 6px),radial-gradient(circle at 12.5px 5.5px,rgba(247,158,27,.92) 5.5px,transparent 6px)}
.pm.mc{color:#1f2937;font-weight:600}
.pm.benefit{color:#c8102e}
.pm.paypal{color:#003087;font-style:italic}.pm.paypal em{color:#009cde}

/* ---------- 18. auth (login / verify) ---------- */
body.auth{background:var(--bg);min-width:1100px}
.auth-shell{flex:1;display:grid;grid-template-columns:minmax(520px,1.08fr) minmax(560px,1fr);min-height:100vh}
.auth-brand{position:relative;overflow:hidden;background:#0d1320;color:#e5e7eb;display:flex;flex-direction:column;padding:44px 56px 36px}
.auth-brand::before{content:"";position:absolute;inset:0;background:
  radial-gradient(900px 520px at 85% -10%,rgba(221,55,55,.32),transparent 60%),
  radial-gradient(700px 600px at -10% 110%,rgba(221,55,55,.16),transparent 60%),
  linear-gradient(180deg,#111827 0%,#0b1220 100%)}
.auth-brand::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:44px 44px;-webkit-mask-image:radial-gradient(ellipse at 30% 40%,#000 0%,transparent 75%);mask-image:radial-gradient(ellipse at 30% 40%,#000 0%,transparent 75%)}
.auth-brand>*{position:relative;z-index:1}
.auth-logo{display:flex;align-items:center;gap:14px;color:#fff}
.auth-logo .nd-mark{width:48px;height:48px;border-radius:13px;box-shadow:0 6px 18px rgba(221,55,55,.35)}
.auth-logo .nd-brand-sub{font-size:12px;margin-top:6px}
.auth-hero{margin-top:auto;margin-bottom:auto;padding:56px 0 40px;max-width:560px}
.auth-eyebrow{display:inline-flex;align-items:center;gap:8px;height:28px;padding:0 12px;border-radius:99px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:#cbd5e1;font-size:12px;font-weight:500;margin-bottom:22px}
.auth-eyebrow i{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.2)}
.auth-hero h2{color:#fff;font-size:40px;line-height:1.15;letter-spacing:-.03em;font-weight:700;margin-bottom:16px}
html[lang="ar"] .auth-hero h2{letter-spacing:0;line-height:1.35;font-size:40px}
.auth-hero h2 em{font-style:normal;color:#f87171}
.auth-hero p{color:#a3acb9;font-size:15.5px;line-height:1.65;max-width:500px;margin-bottom:32px}
html[lang="ar"] .auth-hero p{font-size:17px}
.auth-feats{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:540px}
.auth-feat{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:var(--r-lg);background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.auth-feat .af-ic{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:rgba(221,55,55,.14);color:#f87171;font-size:17px;flex-shrink:0}
.auth-feat b{display:block;color:#f1f5f9;font-size:13.5px;font-weight:600;margin-bottom:2px}
html[lang="ar"] .auth-feat b{font-size:15px}
.auth-feat span{display:block;color:#94a3b8;font-size:12.5px;line-height:1.45}
html[lang="ar"] .auth-feat span{font-size:13.5px}
.auth-brand-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;color:#7c8798;padding-top:24px;border-top:1px solid rgba(255,255,255,.07)}
html[lang="ar"] .auth-brand-foot{font-size:13px}
.auth-brand-foot a{color:#a3acb9}
.auth-brand-foot a:hover{color:#fff}
.auth-side{display:flex;flex-direction:column;background:var(--surface);position:relative}
.auth-side-top{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:24px 40px}
.auth-side-top .nd-lang{background:var(--surface-2);border-color:var(--line)}
.auth-side-top .nd-lang a{color:var(--muted)}
.auth-side-top .nd-lang a.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(15,23,42,.1)}
.auth-help-link{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);font-weight:500}
.auth-help-link:hover{color:var(--ink)}
.auth-help-link .ic{color:#16a34a;font-size:16px}
.auth-center{flex:1;display:flex;align-items:center;justify-content:center;padding:20px 40px 40px}
.auth-card{width:100%;max-width:420px}
.auth-card h1{font-size:28px;line-height:1.25;letter-spacing:-.02em;margin-bottom:8px}
html[lang="ar"] .auth-card h1{letter-spacing:0;font-size:29px}
.auth-card .lead{color:var(--muted);font-size:14.5px;margin-bottom:26px}
html[lang="ar"] .auth-card .lead{font-size:16px}
.auth-card .fld{margin-bottom:16px}
.auth-card .input{height:46px;font-size:15px;padding:0 14px}
.auth-card .input-icon>.input{padding-inline-start:42px}
.auth-card .input-icon>.ic{inset-inline-start:14px;font-size:18px}
.auth-card .pw-toggle{position:absolute;inset-inline-end:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:none;border-radius:var(--r-sm);color:var(--faint);display:grid;place-items:center;cursor:pointer;font-size:18px}
.auth-card .pw-toggle:hover{color:var(--ink-2);background:var(--surface-3)}
.auth-card .input-icon.has-toggle>.input{padding-inline-end:44px}
.auth-card .btn-lg{height:48px;font-size:15px}
.auth-captcha{min-height:78px;margin:4px 0 18px;display:flex;align-items:center}
.auth-captcha .g-recaptcha{transform-origin:0 0}
[dir="rtl"] .auth-captcha .g-recaptcha{transform-origin:100% 0}
.auth-divider{display:flex;align-items:center;gap:12px;margin:24px 0 18px;color:var(--faint);font-size:12px}
.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;background:var(--line)}
.auth-tabs{display:flex;margin-bottom:24px}
.auth-tabs .seg{width:100%}
.auth-tabs .seg>button{flex:1;justify-content:center}
.auth-note{display:flex;gap:12px;padding:14px 16px;border-radius:var(--r);background:var(--surface-2);border:1px solid var(--line);font-size:13.5px;color:var(--ink-2);line-height:1.6}
.auth-note .ic{color:var(--red);font-size:18px;flex-shrink:0;margin-top:2px}
.auth-contact{display:grid;gap:10px;margin-top:16px}
.auth-contact a{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r);color:var(--ink-2);text-decoration:none;transition:all .12s}
.auth-contact a:hover{border-color:var(--red-200);background:var(--red-50);color:var(--ink)}
.auth-contact .ac-ic{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--line);font-size:17px;color:var(--ink-2);flex-shrink:0}
.auth-contact .ac-ic.wa{color:#16a34a;background:#effaf3;border-color:#cdeed9}
.auth-contact small{display:block;font-size:12px;color:var(--muted)}
.auth-contact b{display:block;font-size:14.5px;font-weight:600}
.auth-secure{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:22px;font-size:12px;color:var(--muted)} /* ND-AUDIT2 F6: was --faint (2.6:1) */
.auth-secure a{white-space:nowrap} /* ND-AUDIT2 F7: 'Google Privacy' is never split over two lines */
.auth-secure .ic{font-size:14px}
.auth-legal{padding:18px 40px;border-top:1px solid var(--line-2);display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--muted)}
html[lang="ar"] .auth-legal{font-size:13px}
.auth-legal a{color:var(--muted)}
.otp-wrap{display:flex;gap:10px;direction:ltr;justify-content:space-between;margin-bottom:8px}
.otp-wrap input{width:56px!important;height:60px!important;text-align:center;font-size:24px!important;font-weight:600;font-family:var(--mono)!important;padding:0!important;border:1px solid var(--line-3);border-radius:var(--r);background:#fff;color:var(--ink)}
.otp-wrap input:focus{border-color:var(--red);box-shadow:var(--ring);outline:none}
.otp-timer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:var(--r);background:var(--surface-2);border:1px solid var(--line);margin-bottom:18px;font-size:13.5px;color:var(--ink-2)}
.otp-timer b{font-family:var(--mono);font-size:15px;color:var(--red-700);font-weight:600}
.otp-timer.expired b{color:var(--bad)}
.verify-ic{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;background:var(--red-50);border:1px solid var(--red-100);color:var(--red);font-size:26px;margin-bottom:22px}

/* ---------- 19. legacy markup inside the new layout ---------- */
.nd-main .container,.nd-main .container2{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;float:none!important}
.nd-main .columns,.nd-main .column{float:none;width:auto!important;margin:0!important;display:block}
.nd-main .container:has(> .five.columns){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px!important}
.nd-main .container:has(> .eight.columns){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.nd-main .clearfix::after{content:"";display:table;clear:both}
.nd-main .margin-top-50{margin-top:0}
.nd-main .headline{font-size:18px;font-weight:700;color:var(--ink);margin:0 0 14px}
.nd-main span.line{display:none}
.nd-main [style*="width:1000px"],.nd-main [style*="width: 1000px"]{width:auto!important;margin-left:0!important}
.nd-main table[style*="width:9"],.nd-main table[style*="width:10"]{width:100%!important}
/* legacy tabs -> card with segmented header */
.nd-main ul.tabs-nav{display:flex;flex-wrap:wrap;gap:2px;margin:0;padding:4px;list-style:none;background:var(--bg);border:1px solid var(--line);border-radius:var(--r);width:max-content;max-width:100%;margin-bottom:-1px;position:relative;z-index:1}
.nd-main ul.tabs-nav li{margin:0;padding:0;list-style:none}
.nd-main ul.tabs-nav li a{display:flex;align-items:center;height:32px;padding:0 14px;border-radius:6px;color:var(--muted);font-size:13px;font-weight:500;text-decoration:none;white-space:nowrap}
html[lang="ar"] .nd-main ul.tabs-nav li a{font-size:14.5px}
.nd-main ul.tabs-nav li a:hover{color:var(--ink)}
.nd-main ul.tabs-nav li.active a{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(15,23,42,.1),0 0 0 1px rgba(15,23,42,.04)}
.nd-main .tabs-container{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-1);padding:20px;margin-top:12px}
.nd-main .tab-content{display:none}
.nd-main .tab-content.on{display:block}
.nd-main .tab-content:empty{display:none!important}
/* legacy form-horizontal */
.nd-main .form-horizontal fieldset,.nd-main fieldset{border:0;margin:0;padding:0;min-width:0}
.nd-main legend{font-size:14px;font-weight:600;color:var(--ink);padding:0;margin-bottom:12px}
.nd-main .form-horizontal .control-group{display:grid;grid-template-columns:200px minmax(0,1fr);gap:8px 24px;align-items:start;margin:0 0 16px}
.nd-main .form-horizontal .control-group>.controls:only-child,.nd-main .form-horizontal .control-group>div:only-child{grid-column:2}
.nd-main .form-horizontal .control-group>.notification:only-child{grid-column:1/-1}
.nd-main .control-label{font-size:13px;font-weight:600;color:var(--ink-2);padding-top:9px;text-align:start;float:none;width:auto}
html[lang="ar"] .nd-main .control-label{font-size:14.5px}
.nd-main .controls{margin:0!important;min-width:0}
.nd-main .controls>input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.btn),.nd-main .controls>select,.nd-main .controls>textarea{max-width:520px}
.nd-main .control-group{margin-bottom:14px}
.nd-main .input-mini{width:110px!important}
.nd-main .input-small{width:150px!important}
.nd-main .input-medium{width:220px!important}
.nd-main .input-large{width:320px!important}
.nd-main .input-xlarge{width:420px!important}
.nd-main .input-xxlarge{width:560px!important}
.nd-main .input-prepend,.nd-main .input-append,.frame-body .input-prepend{display:inline-flex;align-items:stretch;vertical-align:middle;margin:0 10px 10px 0;margin-inline:0 10px}
.nd-main .input-prepend .add-on,.nd-main .input-append .add-on,.frame-body .input-prepend .add-on{display:inline-flex;align-items:center;height:var(--ctl-h);padding:0 11px;background:var(--surface-2);border:1px solid var(--line-3);color:var(--muted);font-size:12.5px;font-weight:500;white-space:nowrap;border-start-start-radius:var(--r-sm);border-end-start-radius:var(--r-sm);border-start-end-radius:0;border-end-end-radius:0;margin-inline-end:-1px;text-shadow:none;width:auto;min-width:0}
html[lang="ar"] .nd-main .input-prepend .add-on{font-size:13.5px}
.nd-main .input-prepend>input,.nd-main .input-prepend>select,.frame-body .input-prepend>input,.frame-body .input-prepend>select{width:auto!important;min-width:110px;height:var(--ctl-h)!important;padding:0 10px!important;border:1px solid var(--line-3)!important;border-start-start-radius:0;border-end-start-radius:0;border-start-end-radius:var(--r-sm);border-end-end-radius:var(--r-sm);font-size:13.5px!important;text-shadow:none!important;line-height:1.4!important;text-align:start!important;display:block!important}
.nd-main .input-prepend>select,.frame-body .input-prepend>select{padding-inline-end:32px!important}
.nd-main .input-prepend>input.input-mini{min-width:110px;width:120px!important}
.nd-main .input-prepend>input.input-small{width:150px!important}
.nd-main [id="hidden"]{float:none!important;display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:0}
.nd-main form .btn[style*="margin-left"]{margin-left:0!important;margin-inline-start:6px!important;margin-bottom:10px!important}
/* legacy counter-box tiles */
.nd-main .counter-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:18px;box-shadow:var(--sh-1);text-align:start;min-height:0}
.nd-main .counter-box>i{display:none}
.nd-main .counter-box p{margin:0}
.nd-main .counter-box p:first-of-type{font-size:12.5px!important;font-weight:500!important;color:var(--muted);margin-bottom:6px}
.nd-main .counter-box p+p{font-size:15px!important;font-weight:600;color:var(--ink)}
/* legacy floats inside new layout */
.nd-main [style*="float:right"][class="controls"],.nd-main div.controls[style*="float:right"]{float:none!important;display:inline-flex;margin:0 0 10px!important;padding:0!important}
.nd-main .btn-mini.btn{box-shadow:none}
.nd-main #loading_spinner img,.nd-main img[src*="loader.gif"]{height:22px;width:auto}

/* order-detail frame pages (iframe inside modal) */
body.frame-body{min-width:0;padding:16px;background:#fff;font-family:var(--font);font-size:13.5px}
.frame-body .control-group{margin-bottom:10px}
.frame-body .controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:0}
.frame-body form{display:contents}
.frame-body #hidden{display:flex!important;flex-wrap:wrap;float:none!important}
.frame-body .btn{height:var(--ctl-h)}
.frame-body textarea{font-size:12px!important;width:220px!important;min-height:64px;border:1px solid var(--line);border-radius:var(--r-sm);padding:6px 8px;background:var(--surface-2);color:var(--ink-2);resize:vertical}
.frame-body table[class^="standard-table"]{border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.frame-body table[class^="standard-table"] th{position:sticky;top:0;z-index:2}
.frame-body #ggg{float:none!important;margin:0 0 10px!important;font-size:12.5px;color:var(--muted)}

/* ---------- 20. calendar (jQuery UI Datepicker, assets/nd-calendar.js) ---------- */
.ui-datepicker{display:none;width:284px;max-width:calc(100vw - 16px);overflow:hidden;font-family:var(--font);font-size:13.5px;color:var(--ink-2);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-pop);z-index:1600!important}
.ui-datepicker-header{display:flex;align-items:center;padding:8px;background:var(--nav);color:#fff}
.ui-datepicker-title{order:2;flex:1;display:flex;justify-content:center;gap:4px}
.ui-datepicker-title select{height:30px;padding:0 4px;border:1px solid transparent;border-radius:var(--r-sm);background:var(--nav);color:#fff;font:inherit;font-weight:600;cursor:pointer}
.ui-datepicker-title select:hover,.ui-datepicker-title select:focus{border-color:var(--nav-line-2)}
.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{width:32px;height:32px;display:grid;place-items:center;border-radius:var(--r-sm);color:#fff;font-size:0;cursor:pointer}
.ui-datepicker-prev{order:1}
.ui-datepicker-next{order:3}
.ui-datepicker-prev::after,.ui-datepicker-next::after{content:"\203a";font-size:24px;line-height:18px;height:24px}
.ui-datepicker-prev::after{content:"\2039"}
.ui-datepicker .ui-datepicker-prev:hover,.ui-datepicker .ui-datepicker-next:hover{background:var(--nav-hover);color:#fff}
.ui-datepicker-header .ui-state-disabled{opacity:.35;pointer-events:none}
.ui-datepicker-calendar{width:calc(100% - 16px);margin:6px 8px 8px;border-collapse:collapse;table-layout:fixed}
.ui-datepicker-calendar th{padding:6px 0;font-size:12px;font-weight:600;color:var(--muted);text-align:center}
.ui-datepicker-calendar td{padding:1px;text-align:center}
.ui-datepicker .ui-datepicker-calendar td a,.ui-datepicker-calendar td span{display:block;line-height:32px;border-radius:var(--r-sm);color:inherit}
.ui-datepicker .ui-datepicker-calendar .nd-dp-weekend a{color:var(--dk-bad,var(--bad))}
.ui-datepicker-calendar .ui-state-disabled{color:var(--faint)}
.ui-datepicker-calendar td span{opacity:.6}
.ui-datepicker-calendar .ui-datepicker-today a{box-shadow:inset 0 0 0 1px var(--line-3)}
.ui-datepicker-calendar td a:hover,.ui-datepicker-calendar .ui-datepicker-days-cell-over a{background:var(--surface-3)}
.ui-datepicker-calendar .ui-datepicker-days-cell-over a{box-shadow:inset 0 0 0 2px var(--red)}
.ui-datepicker .ui-datepicker-calendar .ui-datepicker-current-day a{background:var(--red);color:#fff}

/* ---------- 20b. reusable blocks: feature tiles, link lists, support box ---------- */
.feat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.feat-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.feat{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 12px 13px 14px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);min-width:0}
[dir="rtl"] .feat{padding:13px 14px 13px 12px}
.feat-name{flex:1;display:flex;align-items:center;gap:10px;min-width:0;font-size:13px;font-weight:500;color:var(--ink-2)}
html[lang="ar"] .feat-name{font-size:14.5px}
.feat-name>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feat-ic{flex-shrink:0;width:30px;height:30px;border-radius:7px;background:var(--surface-2);border:1px solid var(--line-2);display:grid;place-items:center;color:var(--muted);font-size:15px}
.feat .pill{flex-shrink:0}
.qa{padding:8px}
.qa a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--r);color:inherit;text-decoration:none;transition:background .12s}
.qa a:hover{background:var(--surface-2)}
.qa .qi{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--line);color:var(--ink-2);font-size:17px;flex-shrink:0;transition:all .12s}
.qa a:hover .qi{background:var(--red-50);border-color:var(--red-100);color:var(--red)}
.qa .qt{display:block;font-size:13.5px;font-weight:600;color:var(--ink);line-height:1.3}
html[lang="ar"] .qa .qt{font-size:15px}
.qa .qd{display:block;font-size:12px;color:var(--muted);line-height:1.35}
html[lang="ar"] .qa .qd{font-size:13.5px}
.qa .chev{margin-inline-start:auto;color:var(--faint);font-size:16px}
[dir="rtl"] .qa .chev{transform:scaleX(-1)}
.support{padding:20px}
.support h3{font-size:15px;font-weight:600;margin-bottom:4px}
.support p{font-size:12.5px;color:var(--muted);margin-bottom:12px}
html[lang="ar"] .support p{font-size:14px}
.sup-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line-2);color:inherit;text-decoration:none}
.sup-row:hover b{color:var(--red-700)}
.sup-row .si{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--line);color:var(--ink-2);font-size:16px;flex-shrink:0}
.sup-row .si.wa{color:#16a34a;background:#effaf3;border-color:#cdeed9}
.sup-row small{display:block;font-size:11.5px;color:var(--muted);line-height:1.2}
html[lang="ar"] .sup-row small{font-size:13px}
.sup-row b{font-size:14px;font-weight:600;color:var(--ink)}
.qa-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px}
.qa-row a{border:1px solid var(--line-2);padding:14px}
.qa-row a:hover{border-color:var(--red-100);background:var(--red-50)}
.grid-main>.qa-tiles{grid-column:1}
.dash-aside{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;gap:24px;min-width:0}
.dash-aside>.card+.card{margin-top:0}
.card-head .seg{flex-shrink:0}
.live-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.18);flex-shrink:0}
.card-foot .live-dot+span{flex:1}

/* ---------- 21. utilities ---------- */
.muted{color:var(--muted)!important}.faint{color:var(--faint)!important}.ink{color:var(--ink)!important}
.text-ok{color:var(--ok)!important}.text-bad{color:var(--bad)!important}.text-warn{color:var(--warn)!important}.text-red{color:var(--red)!important}
.fw-6{font-weight:600}.fw-7{font-weight:700}
.fs-12{font-size:12px}.fs-13{font-size:13px}.fs-15{font-size:15px}
.ta-end{text-align:end}.ta-center{text-align:center}.ta-start{text-align:start}
.mt-0{margin-top:0!important}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}
.mb-0{margin-bottom:0!important}.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}
.p-0{padding:0!important}
.w-100{width:100%}
.nowrap{white-space:nowrap}
.d-none{display:none!important}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.divider{height:1px;background:var(--line);margin:18px 0}
@media print{
  .nd-top,.nd-footer,.nd-page-actions,.nd-toasts{display:none!important}
  body{background:#fff;min-width:0}
  .card{box-shadow:none}
}
/* dashboard grid: the aside spans both rows, extra height goes to row 2 */
.grid-main.dash{grid-template-rows:auto 1fr}
.kpi-value.sm{letter-spacing:0}
.grid-main.dash>.qa-tiles{align-self:start}
.nd-top .nd-user{min-width:0}.nd-top-right{min-width:0}
[dir="rtl"] .ic-flip{transform:scaleX(-1)}
.auth-card .otp-single{height:60px;font-family:var(--mono);font-size:26px;font-weight:600;letter-spacing:.5em;text-align:center;padding-inline-start:.5em}
.otp-single::-webkit-outer-spin-button,.otp-single::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.otp-single{-moz-appearance:textfield}
.otp-timer>span{display:inline-flex;align-items:center;gap:6px}
.auth-card form .btn-block{margin-top:4px}
.grecaptcha-badge{bottom:76px!important;visibility:hidden!important} /* RC-LIGHT 2026-12-03: badge hidden; notice + Google links on the sign-in card */
/* ND-AUDIT2 F2: dark theme - the always-light reCAPTCHA iframe gets the light colour scheme, so Chrome paints no opaque white frame behind it */
html[data-theme="dark"] .auth-captcha .g-recaptcha,html[data-theme="dark"] .auth-captcha iframe{color-scheme:light}
/* ND-AUDIT2 F33: the welcome line under the sign-in form is information, not an error: neutral icon */
.auth-card .nd-wl-login .ic{color:var(--muted)}
/* ND-AUDIT2 F9: 2-step pages (verifylogin, verify.authenticator; body.auth without ab-fit) - no page scroll bar on a 1366x768 laptop */
@media (min-width:1100px) and (max-height:820px){
  body.auth:not(.ab-fit) .auth-side-top{padding:12px 40px}
  body.auth:not(.ab-fit) .auth-center{padding:4px 40px 12px}
  body.auth:not(.ab-fit) .verify-ic{width:44px;height:44px;border-radius:13px;font-size:21px;margin-bottom:12px}
  body.auth:not(.ab-fit) .auth-card h1,html[lang="ar"] body.auth:not(.ab-fit) .auth-card h1{font-size:24px;margin-bottom:4px}
  body.auth:not(.ab-fit) .auth-card .lead{font-size:13.5px;margin-bottom:14px}
  html[lang="ar"] body.auth:not(.ab-fit) .auth-card .lead{font-size:14.5px}
  body.auth:not(.ab-fit) .otp-timer{padding:9px 12px;margin-bottom:12px}
  body.auth:not(.ab-fit) .auth-card .fld{margin-bottom:10px}
  body.auth:not(.ab-fit) .auth-secure{margin-top:12px}
  body.auth:not(.ab-fit) .auth-legal{padding:10px 32px}
}
@media (min-width:1100px) and (max-height:700px){
  body.auth:not(.ab-fit) .verify-ic{display:none}
  body.auth:not(.ab-fit) .auth-card .otp-single{height:52px}
}

/* ---- final review fixes 2026-11-30 ---- */
/* elements shown/hidden by jQuery (#hidden = schedule block): respect an inline display:none */
.nd-main [id="hidden"][style*="display: none"],.nd-main [id="hidden"][style*="display:none"]{display:none!important}
/* input groups: neighbouring borders overlap instead of doubling (.input's own margin rule had higher priority) */
.input-group>*+.input,.input-group>*+input,.input-group>*+select,.input-group>*+.btn,.input-group>*+.ig-addon{margin-inline-start:-1px}
/* Latin SMS text inside Arabic tables keeps the same visual size as the Arabic text */
html[lang="ar"] .nd-main td [dir="ltr"],html[lang="ar"] .nd-main td.ltr{font-size:inherit}

/* ---------- 22. popups: order summary / details pages inside the report modal (inc/popup.php, GUIDE section 9) ---------- */
/* 22a. frame modal shell - any .modal whose body holds an iframe (#emp-modal > iframe#frame); app.js initFrameModals() adds .nd-framed */
.modal.nd-framed,.nd-modal.nd-framed{padding:4vh 24px}
.nd-framed .modal-dialog,.nd-framed .nd-modal-dialog{width:min(1180px,94vw)}
.nd-framed .modal-content,.nd-framed .nd-modal-content{display:flex;flex-direction:column;max-height:92vh}
.nd-framed .modal-header,.nd-framed .nd-modal-header{flex:none;min-height:58px;padding:10px 12px;padding-inline-start:18px;gap:12px}
.nd-framed .modal-title,.nd-framed .nd-modal-title{font-size:15.5px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[lang="ar"] .nd-framed .modal-title{font-size:17px}
.nd-frame-ic{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex:none;background:var(--red-50);border:1px solid var(--red-100);color:var(--red);font-size:16px}
.nd-frame-tools{order:1;margin-inline-start:auto;display:flex;align-items:center;gap:2px}
.nd-frame-tools .sep{width:1px;height:22px;background:var(--line);margin-inline:6px}
.nd-frame-tool{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:var(--r-sm);background:none;color:var(--muted);font-size:17px;cursor:pointer;transition:background .12s,color .12s}
.nd-frame-tool:hover,.nd-frame-tool:focus-visible{background:var(--surface-3);color:var(--ink)}
.nd-frame-tool:disabled{opacity:.4;cursor:default;background:none}
.nd-framed .modal-header .close,.nd-framed .nd-modal-header .close{margin-inline-start:0;width:34px;height:34px}
.nd-framed .modal-body,.nd-framed .nd-modal-body{position:relative;flex:1 1 auto;min-height:0;padding:0!important;background:var(--bg);overflow:hidden}
.nd-framed .modal-body iframe,.nd-framed .nd-modal-body iframe{display:block;width:100%;min-height:0;border:0;border-radius:0;background:var(--bg)}
.nd-framed #data-loader{display:none!important}
.nd-framed .modal-footer,.nd-framed .nd-modal-footer{flex:none;padding:10px 16px}
.nd-frame-loading{position:absolute;inset:0;z-index:3;display:none;flex-direction:column;gap:14px;padding:20px 22px;background:var(--bg);overflow:hidden}
.nd-framed.is-loading .nd-frame-loading{display:flex}
.nd-sk{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.nd-sk.head{flex-direction:row;align-items:center;gap:14px}
.nd-sk.head>div{flex:1;display:flex;flex-direction:column;gap:9px}
.nd-sk-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.nd-sk-row.two{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
.nd-sk .skel{height:11px}
.nd-sk .skel.ic{width:46px;height:46px;border-radius:12px;flex:none}
.nd-sk .skel.lg{height:20px}
.nd-sk .skel.w25{width:25%}.nd-sk .skel.w40{width:40%}.nd-sk .skel.w55{width:55%}.nd-sk .skel.w70{width:70%}.nd-sk .skel.w85{width:85%}
.nd-sk .skel.block{height:96px;border-radius:12px}
.nd-frame-spin{display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:13px;padding-top:4px}
html[lang="ar"] .nd-frame-spin{font-size:14.5px}

/* 22b. popup page skeleton */
html.ndp-html{background:var(--bg);scrollbar-gutter:stable}
body.ndp-body{display:block;min-width:0;min-height:0;background:var(--bg)}
.ndp{max-width:1240px;margin:0 auto;padding:20px 22px 24px;display:flex;flex-direction:column;gap:16px}
.ndp .card+.card{margin-top:0}
.ndp .kpis{margin-bottom:0}
.ndp-body .nd-toasts{top:14px;inset-inline-end:16px}
.ndp-body .nd-toast{min-width:0}
.ndp-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:16px;align-items:stretch}
.ndp-grid>.ndp-msg{display:flex;flex-direction:column}
.ndp-grid>.ndp-msg .ndp-phone{flex:1 1 auto;display:flex;flex-direction:column}
.ndp-grid>.ndp-msg .ndp-thread{flex:1 1 auto}
.ndp-grid>.ndp-rcp{display:flex;flex-direction:column}
.ndp-grid>.ndp-rcp:not(.few) .ndp-rcp-list{flex:1 1 0;min-height:180px;max-height:none;contain:size}
.ndp-grid>.ndp-rcp.few{align-self:start}
.ndp .kpi-value .txt{font-variant-numeric:normal;letter-spacing:-.01em}
.ndp-grid>:only-child{grid-column:1/-1}
.ndp-grid>.stack-sm{gap:16px}
.ndp .card-head{min-height:56px;padding:12px 16px}
.ndp .card-title .dot{width:7px;height:7px}
.ndp-count{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:99px;background:var(--red-50);border:1px solid var(--red-100);color:var(--red-700);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
/* header band */
.ndp-head{position:relative;overflow:hidden}
.ndp-head::before{content:"";position:absolute;inset-inline:0;top:0;height:3px;background:linear-gradient(90deg,var(--red) 0%,#ef8a8a 45%,rgba(221,55,55,0) 100%)}
[dir="rtl"] .ndp-head::before{background:linear-gradient(270deg,var(--red) 0%,#ef8a8a 45%,rgba(221,55,55,0) 100%)}
.ndp-head-row{display:flex;align-items:center;gap:16px;padding:18px 20px 16px}
.ndp-chan{width:50px;height:50px;border-radius:13px;display:grid;place-items:center;flex:none;background:var(--red-50);border:1px solid var(--red-100);color:var(--red);font-size:23px;box-shadow:inset 0 -2px 0 rgba(221,55,55,.08)}
.ndp-head-main{flex:1;min-width:0}
.ndp-eyebrow{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11.5px;font-weight:600;color:var(--muted);letter-spacing:.06em;text-transform:uppercase;line-height:20px}
html[lang="ar"] .ndp-eyebrow{letter-spacing:0;text-transform:none;font-size:13.5px}
.ndp-tag{display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 8px;border-radius:99px;background:var(--surface-3);border:1px solid var(--line);color:var(--ink-2);font-size:11px;font-weight:600;letter-spacing:0;text-transform:none}
html[lang="ar"] .ndp-tag{font-size:12px}
.ndp-tag .ic{font-size:12px}
.ndp-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;font-size:21px;line-height:30px;font-weight:700;letter-spacing:-.02em;margin-top:1px}
html[lang="ar"] .ndp-title{letter-spacing:0;font-size:22px}
.ndp-ref{font-family:var(--mono);font-size:19px;font-weight:500;color:var(--red-700);letter-spacing:-.03em;unicode-bidi:isolate}
.ndp-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.ndp-chip{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface-2);font-size:12.5px;color:var(--muted);white-space:nowrap;max-width:100%}
html[lang="ar"] .ndp-chip{font-size:13.5px}
.ndp-chip .ic{color:var(--faint);font-size:14px}
.ndp-chip b{color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis}
.ndp-chip.mono b{font-family:var(--mono);font-size:12px;font-weight:500}
.ndp-chip.mono .ndp-chip-l{font-family:var(--font);letter-spacing:normal} /* label stays in the UI font (Arabic was monospaced) */
.ndp-head-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none;align-self:flex-start;padding-top:2px}
.ndp-head-side .pill{height:30px;padding:0 13px;font-size:13px;gap:7px}
html[lang="ar"] .ndp-head-side .pill{font-size:14px}
.ndp-head-side .ndp-side-note{font-size:12px;color:var(--muted);white-space:nowrap}
.ndp-head.compact .ndp-head-row{padding:14px 18px}
.ndp-head.compact .ndp-chan{width:42px;height:42px;border-radius:11px;font-size:19px}
.ndp-head.compact .ndp-title{font-size:18px;line-height:26px}
.ndp-head.compact .ndp-ref{font-size:16.5px}
.ndp-head.compact .ndp-chips{margin-top:0}
.ndp-head.compact .ndp-head-side{flex-direction:row;align-items:center;align-self:center;padding-top:0}
.ndp-stat{display:flex;flex-direction:column;align-items:flex-end;gap:2px;padding-inline-start:18px;border-inline-start:1px solid var(--line-2);line-height:1.1}
.ndp-stat b{font-size:24px;font-weight:700;color:var(--ink);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.ndp-stat span{font-size:12px;color:var(--muted)}
html[lang="ar"] .ndp-stat span{font-size:13px}
/* horizontal timeline (bottom strip of the header) */
.ndp-head-tl{border-top:1px solid var(--line-2);background:linear-gradient(180deg,var(--surface-2),#fff);padding:14px 20px 15px}
.ndp-tl{list-style:none;margin:0;padding:0;display:flex;align-items:flex-start}
.ndp-step{flex:1 1 0;min-width:0;display:flex;align-items:flex-start;gap:10px}
.ndp-step:last-child{flex:0 0 auto}
.ndp-step::after{content:"";flex:1 1 auto;min-width:24px;height:2px;margin-top:13px;margin-inline:6px 14px;border-radius:2px;background:repeating-linear-gradient(90deg,var(--line-3) 0 5px,transparent 5px 9px)}
.ndp-step:last-child::after{display:none}
.ndp-step.is-done:has(+ .is-done)::after{background:var(--ok)}
.ndp-step.is-done:has(+ .is-current)::after,.ndp-step.is-done:has(+ .is-wait)::after{background:linear-gradient(90deg,var(--ok),var(--warn-line))}
[dir="rtl"] .ndp-step.is-done:has(+ .is-current)::after,[dir="rtl"] .ndp-step.is-done:has(+ .is-wait)::after{background:linear-gradient(270deg,var(--ok),var(--warn-line))}
.ndp-step-dot{position:relative;z-index:1;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:none;background:#fff;border:2px solid var(--line-3);color:var(--faint);font-size:14px}
.ndp-step-dot .ic{stroke-width:2.4}
.ndp-step-txt{display:flex;flex-direction:column;gap:1px;flex:none;padding-top:1px}
.ndp-step-txt b{font-size:13px;font-weight:600;color:var(--ink);line-height:1.35;white-space:nowrap}
html[lang="ar"] .ndp-step-txt b{font-size:14.5px}
.ndp-step-time{font-size:12.5px;color:var(--ink-2);white-space:nowrap;text-align:start}
.ndp-step-txt small{font-size:11.5px;color:var(--muted);white-space:nowrap}
html[lang="ar"] .ndp-step-txt small{font-size:12.5px}
.ndp-step.is-done .ndp-step-dot{background:var(--ok);border-color:var(--ok);color:#fff;box-shadow:0 0 0 4px var(--ok-bg)}
.ndp-step.is-current .ndp-step-dot{background:var(--warn-bg);border-color:var(--warn);color:var(--warn);animation:ndp-pulse 1.8s ease-out infinite}
.ndp-step.is-wait .ndp-step-dot{border-style:dashed;border-color:#c5ccd6;color:var(--muted)}
.ndp-step.is-wait .ndp-step-txt b,.ndp-step.is-off .ndp-step-txt b{color:var(--muted)}
.ndp-step.is-bad .ndp-step-dot{background:var(--bad-bg);border-color:var(--bad-line);color:var(--bad)}
.ndp-step.is-bad .ndp-step-txt b{color:var(--bad)}
.ndp-step.is-off .ndp-step-dot{background:var(--surface-3);border-color:var(--line);color:var(--faint)}
@keyframes ndp-pulse{0%{box-shadow:0 0 0 0 rgba(180,83,9,.28)}70%{box-shadow:0 0 0 8px rgba(180,83,9,0)}100%{box-shadow:0 0 0 0 rgba(180,83,9,0)}}
/* KPI tiles */
.ndp-kpis{gap:12px}
.ndp-kpis.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ndp-kpis.n3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ndp-kpis.n4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ndp-kpis.n5{grid-template-columns:repeat(5,minmax(0,1fr))}
.ndp .kpi{padding:14px 16px}
.ndp .kpi-top{margin-bottom:8px}
.ndp .kpi-value{font-size:23px;line-height:30px}
.ndp .kpi-value.sm,.ndp .kpi-value .sm{font-size:17px}
.ndp .kpi-value .mono{font-family:var(--mono);font-size:17px;font-weight:600;letter-spacing:-.02em}
.ndp .kpi-foot{margin-top:4px;min-height:20px;white-space:normal;flex-wrap:wrap;row-gap:0;line-height:1.45}
.ndp .kpi-foot .ltr,.ndp .kpi-foot [dir="ltr"]{font-variant-numeric:tabular-nums}
/* details list */
.ndp-dl{margin:0;padding:2px 16px 6px}
.ndp-dl>div{display:grid;grid-template-columns:minmax(120px,38%) minmax(0,1fr);gap:12px;align-items:baseline;padding:10px 0;border-bottom:1px dashed var(--line)}
.ndp-dl>div:last-child{border-bottom:0}
.ndp-dl dt{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);min-width:0}
html[lang="ar"] .ndp-dl dt{font-size:14px}
.ndp-dl dt .ic{color:var(--faint);font-size:14px;flex:none}
.ndp-dl dd{margin:0;font-size:13.5px;font-weight:600;color:var(--ink);overflow-wrap:anywhere;min-width:0}
html[lang="ar"] .ndp-dl dd{font-size:14.5px}
.ndp-dl dd small{font-weight:500;color:var(--muted);font-size:12px;margin-inline-start:6px}
.ndp-dl dd .mono{font-weight:500}
/* message preview (phone) */
.ndp-phone{margin:16px 16px 12px;border-radius:16px;background:#eef1f5;background-image:radial-gradient(rgba(15,23,42,.035) 1px,transparent 1px);background-size:14px 14px;border:1px solid var(--line);overflow:hidden}
.ndp-phone-bar{display:flex;align-items:center;gap:10px;padding:10px 14px;background:rgba(255,255,255,.86);border-bottom:1px solid var(--line)}
.ndp-av{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:none;background:linear-gradient(135deg,#e04b4b,#a82424);color:#fff;font-weight:700;font-size:14px;font-family:'Inter',sans-serif;box-shadow:0 2px 6px rgba(168,36,36,.25)}
.ndp-phone-bar b{display:block;font-size:14px;font-weight:600;color:var(--ink);line-height:1.25}
.ndp-phone-bar small{display:block;font-size:11px;color:var(--muted);line-height:1.3}
html[lang="ar"] .ndp-phone-bar small{font-size:12px}
.ndp-thread{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:18px 16px 16px;min-height:112px;max-height:320px;overflow:auto}
.ndp-bubble{position:relative;max-width:90%;padding:10px 14px;border-radius:18px;border-end-start-radius:6px;background:#fff;border:1px solid #e3e7ec;box-shadow:0 1px 2px rgba(15,23,42,.06);color:var(--ink)}
.ndp-bubble.is-empty{background:transparent;border-style:dashed;box-shadow:none}
.ndp-bubble-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14.5px;line-height:1.6;text-align:start;font-family:'Inter','Tajawal',system-ui,sans-serif}
.ndp-bubble-text[dir="rtl"]{font-family:var(--font-ar);font-size:16px;line-height:1.75}
.ndp-bubble-time{font-size:11px;color:var(--faint);padding-inline-start:8px;font-variant-numeric:tabular-nums}
.ndp-msg-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px 0;padding:0 16px 16px;font-size:12.5px;color:var(--muted)}
html[lang="ar"] .ndp-msg-foot{font-size:13.5px}
.ndp-msg-foot>span{display:inline-flex;align-items:baseline;gap:5px}
.ndp-msg-foot b{color:var(--ink);font-weight:600}
.ndp-sep{display:inline-block;width:3px;height:3px;border-radius:50%;background:var(--line-3);margin-inline:10px}
/* recipients */
.ndp-rcp .card-head{flex-wrap:wrap;row-gap:10px}
.ndp-rcp .card-head>div:first-child{flex:1 1 200px}
.ndp-rcp .card-tools{flex-wrap:nowrap;margin-inline-start:auto}
.ndp-rcp-qwrap{width:200px}
.ndp-rcp-qwrap .input{height:32px;font-size:13px;font-family:var(--mono)}
.ndp-rcp-qwrap .input::placeholder{font-family:var(--font)}
.ndp-rcp-groups{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:12px 16px;border-bottom:1px solid var(--line-2);background:var(--surface-2)}
.ndp-rcp-lbl{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);margin-inline-end:6px}
html[lang="ar"] .ndp-rcp-lbl{font-size:13.5px}
.ndp-rcp-lbl .ic{color:var(--faint)}
.ndp-rcp-lbl b{color:var(--ink)}
.ndp-grp{display:inline-flex;align-items:center;height:26px;padding:0 11px;border-radius:99px;background:var(--info-bg);border:1px solid var(--info-line);color:var(--info);font-size:12.5px;font-weight:600;white-space:nowrap}
html[lang="ar"] .ndp-grp{font-size:13.5px;font-weight:500}
.ndp-rcp-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:6px;padding:14px 16px;max-height:228px;overflow:auto;align-content:start}
.ndp-rcp-list.is-empty{display:block}
.ndp-num{display:flex;align-items:center;justify-content:center;height:30px;padding:0 8px;border-radius:var(--r-sm);background:var(--surface-2);border:1px solid var(--line-2);font-family:var(--mono);font-size:12.5px;color:var(--ink);direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;white-space:nowrap;cursor:copy;transition:background .12s,border-color .12s}
.ndp-num:hover{background:var(--red-50);border-color:var(--red-200)}
.ndp-num.ndp-copied,.ndp-mob.ndp-copied{background:var(--ok-bg);border-color:var(--ok-line)}
.ndp-cc{color:var(--faint);margin-inline-end:2px}
.ndp-num mark,.ndp-cc mark{background:#fde68a;color:inherit;border-radius:2px;padding:0}
.ndp-rcp-zero,.ndp-rcp-none{display:flex;align-items:center;justify-content:center;gap:8px;padding:22px 16px;color:var(--muted);font-size:13px;text-align:center}
.ndp-rcp-none .ic{color:var(--faint);font-size:18px}
.ndp-rcp-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 16px;border-top:1px solid var(--line-2);background:var(--surface-2);border-radius:0 0 var(--r-lg) var(--r-lg);font-size:12px;color:var(--muted)}
html[lang="ar"] .ndp-rcp-foot{font-size:13px}
.ndp-rcp-hint{display:inline-flex;align-items:center;gap:6px;color:var(--faint)}
/* details pages: toolbar, info bar, table */
.ndp-toolbar{display:flex;align-items:flex-end;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.ndp-toolbar form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;flex:1;min-width:0;margin:0}
.ndp-tf{display:flex;flex-direction:column;gap:5px;min-width:0}
.ndp-tf>label{font-size:12px;font-weight:500;color:var(--muted)}
html[lang="ar"] .ndp-tf>label{font-size:13.5px}
.ndp-tf .input,.ndp-tf .select{height:34px;font-size:13.5px}
.ndp-tf.w-sm,.ndp-tf.w-md,.ndp-tf.w-lg{flex:1 1 0;min-width:120px}
.ndp-tf.w-sm{max-width:160px}.ndp-tf.w-md{max-width:200px;flex-grow:1.2}.ndp-tf.w-lg{max-width:240px;flex-grow:1.4}
.ndp-toolbar form>.btn{flex:none}
.ndp-tf .input-icon>.input{padding-inline-start:34px}
.ndp-tf .input-icon>.ic{inset-inline-start:11px;font-size:15px}
.ndp-toolbar .btn{height:34px;padding:0 14px}
.ndp-toolbar .ndp-tb-end{display:flex;align-items:flex-end;gap:8px;margin-inline-start:auto}
.ndp-infobar{display:flex;align-items:center;gap:16px;padding:10px 16px;border-bottom:1px solid var(--line);min-height:52px}
.ndp-infobar .tbl-count{display:inline-flex;align-items:center;gap:7px}
.ndp-infobar .tbl-count .ic{color:var(--faint);font-size:15px}
.ndp-mix{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.ndp-mix-l{font-size:11.5px;color:var(--faint);white-space:nowrap}
html[lang="ar"] .ndp-mix-l{font-size:12.5px}
.ndp-mix-bar{display:flex;width:150px;height:8px;border-radius:99px;overflow:hidden;background:var(--line-2);flex:none;gap:1px}
.ndp-mix-bar>span{display:block;height:100%}
.ndp-mix .ok{background:#22a35a}.ndp-mix .info{background:#3b74e6}.ndp-mix .warn{background:#e19a2b}.ndp-mix .bad{background:#dc4a4a}.ndp-mix .bad2{background:#9f1d1d}.ndp-mix .off{background:#a3adbb}
.ndp-mix-leg{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:var(--muted);min-width:0}
html[lang="ar"] .ndp-mix-leg{font-size:13px}
.ndp-mix-leg>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.ndp-mix-leg i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-inline-end:1px}
.ndp-mix-leg b{color:var(--ink-2);font-variant-numeric:tabular-nums}
.ndp-q{width:210px;flex:none;margin-inline-start:auto}
.ndp-q .input{height:32px;font-size:13px}
.ndp-tbl{font-size:13px}
html[lang="ar"] .ndp-tbl{font-size:14px}
.ndp-tbl thead th{top:0}
.ndp-tbl td{vertical-align:top;height:auto;padding:12px}
.ndp-tbl thead th{padding:0 12px}
.ndp-tbl td.nowrap{white-space:nowrap}
.ndp-tbl td.msg{min-width:170px;width:34%}
.ndp-tbl td.strong{color:var(--ink);font-weight:600}
.ndp-tbl td.mono,.ndp-tbl .mono{font-family:var(--mono);font-size:12px}
.ndp-tbl tr.ndp-hide{display:none}
.ndp-tbl tr.ndp-zero-row td{text-align:center;color:var(--muted);padding:26px 14px}
.ndp-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.55;color:var(--ink-2);max-width:420px;text-align:start;border-radius:6px;margin:-3px -6px;padding:3px 6px}
.ndp-clamp[dir="rtl"]{font-family:var(--font-ar);font-size:14px;line-height:1.65}
.ndp-clamp.can-expand{cursor:pointer;transition:background .12s}
.ndp-clamp.can-expand:hover{background:var(--surface-3)}
.ndp-clamp.can-expand:not(.open){-webkit-mask-image:linear-gradient(180deg,#000 60%,rgba(0,0,0,.55))}
.ndp-clamp.open{display:block;-webkit-line-clamp:unset;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line)}
.ndp-mob{display:inline-flex;align-items:center;font-family:var(--mono);font-size:12.5px;color:var(--ink);white-space:nowrap;direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;cursor:copy;border-radius:4px;padding:1px 4px;margin:-1px -4px;border:1px solid transparent}
.ndp-mob:hover{background:var(--red-50);border-color:var(--red-100)}
.ndp-dt{display:inline-flex;flex-direction:column;line-height:1.35;white-space:nowrap;unicode-bidi:isolate;text-align:start}
.ndp-dt b{font-weight:500;color:var(--ink-2);font-size:12.5px}
.ndp-dt small{color:var(--faint);font-size:11.5px}
.ndp-times{display:grid;grid-template-columns:auto auto;justify-content:start;gap:3px 8px;align-items:baseline;white-space:nowrap}
.ndp-times>i{display:grid;place-items:center;width:18px;height:18px;border-radius:5px;background:var(--surface-3);color:var(--muted);font-size:12px;align-self:center}
.ndp-times>i.in{background:var(--info-bg);color:var(--info)}
.ndp-times>i .ic{stroke-width:2.2}
.ndp-times>span{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--ink-2)}
.ndp-lat{display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:4px;background:var(--ok-bg);color:var(--ok);font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.ndp-op{display:flex;align-items:baseline;gap:8px;min-width:120px;max-width:220px;white-space:normal}
.ndp-mobcell{display:flex;flex-direction:column;gap:3px;align-items:flex-start;white-space:nowrap}
.ndp-mobcell small{font-size:11.5px;color:var(--faint)}
html[lang="ar"] .ndp-mobcell small{font-size:12.5px}
.ndp-tblx{overflow-x:auto}
.ndp-tbl th .th-sub{font-weight:500;color:var(--faint)}
.ndp-cost{display:block;margin-top:6px;font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
html[lang="ar"] .ndp-cost{font-size:12.5px}
.ndp-op code{flex:none;font-size:11.5px;padding:0 5px}
.ndp-op span{font-size:12.5px;color:var(--muted);line-height:1.45}
html[lang="ar"] .ndp-op span{font-size:13.5px}
.ndp-ref-cell{font-family:var(--mono);font-size:12px;color:var(--ink-2);white-space:nowrap}
.ndp-net{display:flex;flex-direction:column;line-height:1.35;white-space:nowrap}
.ndp-net small{color:var(--faint);font-size:11.5px}
.ndp-pager{border-radius:0 0 var(--r-lg) var(--r-lg)}
.ndp-pager .pages a,.ndp-pager .pages span{min-width:32px;height:32px}
/* delivery state (inc/popup.php 6a, owner test 2026-11-30): waiting / scheduled / cancelled / none + progress while reports come in */
.ndp-dlr-empty{padding:40px 24px}
.ndp-tblx .ndp-empty-row .empty{position:sticky;inset-inline-start:0;box-sizing:border-box;width:min(100%,calc(100vw - 48px))} /* narrow screens: stays in the visible part of the scrolling table */
@media (max-width:639px){.ndp-dlr-empty{padding:32px 14px}}
.ndp-dlr-empty p{max-width:460px;line-height:1.55}
.ndp-dlr-empty.is-waiting .empty-ic{color:var(--warn);background:var(--warn-bg);border-color:var(--warn-line)}
.ndp-dlr-empty.is-scheduled .empty-ic{color:var(--info);background:var(--info-bg);border-color:var(--info-line)}
.ndp-live{display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px 12px;font-size:12.5px;color:var(--muted)}
html[lang="ar"] .ndp-live{font-size:13.5px}
.ndp-live-st{display:inline-flex;align-items:baseline;gap:8px;min-width:0}
.ndp-live-st .ndp-live-dot{align-self:center}
.ndp-live-dot{width:8px;height:8px;border-radius:50%;background:var(--warn);flex:none;animation:ndp-pulse 2s ease-out infinite}
.ndp-live.is-paused .ndp-live-dot,.ndp-live.is-off .ndp-live-dot{animation:none;background:var(--faint)}
.ndp-live-txt{font-variant-numeric:tabular-nums}
.ndp-card>.ndp-dlr{margin:14px 16px 0}
.ndp-dlr .alert-title{margin-bottom:2px}
.ndp-dlr p b{font-variant-numeric:tabular-nums}
.ndp-dlr-counts{display:flex;flex-wrap:wrap;gap:6px 16px;margin:8px 0 10px;font-size:12.5px;color:var(--ink-2)}
html[lang="ar"] .ndp-dlr-counts{font-size:13.5px}
.ndp-dlr-c{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.ndp-dlr-c i{display:inline-block;width:8px;height:8px;border-radius:2px}
.ndp-dlr-c b{font-variant-numeric:tabular-nums}
.ndp-dlr-c .ok{background:#22a35a}.ndp-dlr-c .info{background:#3b74e6}.ndp-dlr-c .warn{background:#e19a2b}.ndp-dlr-c .bad{background:#dc4a4a}.ndp-dlr-c .off{background:#a3adbb}.ndp-dlr-c .wait{background:transparent;border:1.5px dashed #a3adbb}
.ndp-dlr .ndp-live{justify-content:flex-start;color:inherit;opacity:.9}
.ndp-dlr .ndp-live-dot{background:var(--info)}
@media (prefers-reduced-motion:reduce){.ndp-live-dot{animation:none}}
/* final pass: per-direction fonts for SMS text cells (as the bubble), Latin digits in Inter on Arabic pages,
   recipients card head stacks (title row, tools row) when the card sits in a half column */
.ndp-clamp[dir="ltr"]{font-family:'Inter','Tajawal',system-ui,sans-serif}
.ndp-clamp[dir="rtl"]{font-family:var(--font-ar);font-size:14px;line-height:1.6}
html[lang="ar"] .ndp-times span[dir="ltr"],html[lang="ar"] .ndp-step-time,html[lang="ar"] .ndp-cost{font-family:'Inter',system-ui,sans-serif}
.ndp-rcp{container-type:inline-size}
@container (max-width:660px){
  .ndp-rcp .card-head>div:first-child{flex-basis:100%}
  .ndp-rcp .card-tools{width:100%;margin-inline-start:0}
  .ndp-rcp .ndp-rcp-qwrap{flex:1 1 auto;width:auto}
}
@media print{
  .ndp-noprint,.nd-toasts{display:none!important}
  html.ndp-html,body.ndp-body{background:#fff}
  .ndp{padding:0;max-width:none}
  .ndp .card{box-shadow:none;break-inside:avoid}
  .ndp-rcp-list,.ndp-thread{max-height:none;overflow:visible}
  .ndp-clamp{display:block;-webkit-line-clamp:unset;-webkit-mask-image:none}
}

/* ---------- 23. readability + session countdown (2026-11-30) ----------
   23a top bar: larger menu type (EN 13.5 -> 15px, AR 15 -> 16px) and width tiers so the bar never wraps or overflows
       between the 1280px minimum and 1920px (EN + AR).
   23b content type +1px on pages with the portal layout (body.nd = inc/header.php); popups (body.ndp-body), frame pages
       and the sign-in pages (body.auth) keep their sizes. Page <style> blocks still win (same specificity, later).
   23c session countdown chip in the top bar (inc/session-timeout.php nd_st_chip()). */

/* 23a. top bar */
.nd-top .nd-wrap{gap:12px}
.nd-nav-link{gap:5px;padding:0 8px;font-size:15px}
html[lang="ar"] .nd-nav-link{padding:0 8px;font-size:16px}
.nd-nav-item.active::after{inset-inline:10px}
.nd-dd a,.nd-dd .nd-dd-btn{font-size:14.5px}
html[lang="ar"] .nd-dd a,html[lang="ar"] .nd-dd .nd-dd-btn{font-size:16px}
.nd-dd-head{font-size:11.5px}
html[lang="ar"] .nd-dd-head{font-size:13px}
.nd-top-right{gap:6px}
/* the tagline under the logo and the name/IP beside the avatar give way to the larger menu: the user button shows the
   avatar (name + IP stay in its menu and remain readable by screen readers) */
.nd-brand-sub{display:none}
.nd-user{gap:0;padding-inline:4px}
.nd-user>span:not(.nd-avatar){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.nd-vsep{margin-inline:2px}
/* user menu header: the avatar is a span too, ".nd-dd-profile span" (block, muted) must not restyle it */
.nd-dd-profile .nd-avatar{display:grid;color:#fff;font-size:14px}
/* below the 1440px wrap (1366 / 1280 screens): narrower gutters, balance without its icon, language switch shows only
   the other language (one click, as before) */
@media (max-width:1503px){
  :root{--gutter:24px}
  .nd-balance{padding-inline:12px}
  .nd-balance .nd-bal-ic{display:none}
  .nd-lang a.on{display:none}
  .nd-lang a{padding:0 10px}
}
/* 1280-1300px, English (wider menu labels): the separate logout icon gives way (Logout stays in the user menu) */
@media (max-width:1300px){
  html:not([lang="ar"]) .nd-top-right>.nd-icon-btn[href$="logout.php"]{display:none}
  html:not([lang="ar"]) .nd-vsep{display:none}
}

/* 23b. content type (+1px, Arabic keeps its larger step) */
body.nd{font-size:15px}
html[lang="ar"] body.nd{font-size:16.5px}
.nd .nd-crumbs{font-size:13.5px}
html[lang="ar"] .nd .nd-crumbs{font-size:14.5px}
.nd .nd-subtitle{font-size:14.5px}
html[lang="ar"] .nd .nd-subtitle{font-size:16px}
.nd .meta-chip{font-size:13.5px}
.nd .kpi-label{font-size:13.5px}
html[lang="ar"] .nd .kpi-label{font-size:15px}
.nd .kpi-foot{font-size:13px}
html[lang="ar"] .nd .kpi-foot{font-size:14.5px}
.nd .kpi-link{font-size:13px}
html[lang="ar"] .nd .kpi-link{font-size:14.5px}
.nd .kpi-value .unit{font-size:13.5px}
.nd .card-title{font-size:16px}
html[lang="ar"] .nd .card-title{font-size:17.5px}
.nd .card-desc{font-size:13.5px}
html[lang="ar"] .nd .card-desc{font-size:15px}
.nd .card-foot{font-size:13.5px}
.nd .card-sub h3{font-size:14px}
html[lang="ar"] .nd .card-sub h3{font-size:15.5px}
.nd .card-sub span{font-size:13px}
.nd .section-title{font-size:14px}
.nd .dl-grid dt{font-size:13px}
html[lang="ar"] .nd .dl-grid dt{font-size:14.5px}
.nd .dl-grid dd{font-size:15.5px}
.nd .kv-list{font-size:14.5px}
.nd .seg>button,.nd .seg>a{font-size:14px}
html[lang="ar"] .nd .seg>button,html[lang="ar"] .nd .seg>a{font-size:15.5px}
.nd .tabbar>a,.nd .tabbar>button{font-size:14.5px}
.nd .tbl,.nd .nd-main table.standard-table,.nd .nd-main table.standard-table2,.nd .nd-main table.standard-table3,.nd .nd-main table.standard-table4{font-size:14.5px}
html[lang="ar"] .nd .tbl,html[lang="ar"] .nd .nd-main table[class^="standard-table"]{font-size:15.5px}
.nd .tbl thead th,.nd .tbl>tbody>tr:first-child>th:only-child,.nd .tbl tr.th-row>th,.nd .nd-main table[class^="standard-table"] th{font-size:12.5px}
html[lang="ar"] .nd .tbl thead th,html[lang="ar"] .nd .nd-main table[class^="standard-table"] th{font-size:14px}
.nd .tbl.compact{font-size:14px}
html[lang="ar"] .nd .tbl.compact{font-size:15px}
/* 1280-1503px: wide report tables (10+ columns) keep fitting their card with the larger type */
@media (max-width:1503px){:where(.nd) .tbl thead th,:where(.nd) .tbl td{padding-inline:12px}}  /* base specificity: page-scoped paddings still win */
.nd .tbl tfoot td{font-size:13.5px}
.nd .tbl .msg-text{font-size:13.5px}
.nd .tbl-count{font-size:13.5px}
.nd .mono{font-size:13px}
.nd .pill{font-size:12.5px}
html[lang="ar"] .nd .pill{font-size:13.5px}
.nd .fld>label,.nd .fld-label{font-size:14px}
html[lang="ar"] .nd .fld>label,html[lang="ar"] .nd .fld-label{font-size:15.5px}
.nd .help{font-size:13px}
html[lang="ar"] .nd .help{font-size:14.5px}
.nd .input,.nd .select,.nd .textarea,
.nd .nd-main input[type="text"],.nd .nd-main input[type="password"],.nd .nd-main input[type="email"],.nd .nd-main input[type="number"],.nd .nd-main input[type="tel"],.nd .nd-main input[type="url"],.nd .nd-main input[type="search"],.nd .nd-main input[type="date"],.nd .nd-main input[type="time"],.nd .nd-main input[type="datetime-local"],.nd .nd-main select,.nd .nd-main textarea,
.nd .nd-modal input[type="text"],.nd .nd-modal input[type="password"],.nd .nd-modal input[type="number"],.nd .nd-modal select,.nd .nd-modal textarea,.nd .modal input[type="text"],.nd .modal select,.nd .modal textarea{font-size:15px}
html[lang="ar"] .nd .input,html[lang="ar"] .nd .nd-main input[type="text"],html[lang="ar"] .nd .nd-main select,html[lang="ar"] .nd .nd-main textarea{font-size:16px}
.nd .input.sm,.nd .select.sm{font-size:14px}
.nd .input.mono,.nd .nd-main input.mono{font-size:13.5px}
.nd .filters .fld>label{font-size:13px}
html[lang="ar"] .nd .filters .fld>label{font-size:14.5px}
.nd .check,.nd .switch{font-size:14.5px}
html[lang="ar"] .nd .check,html[lang="ar"] .nd .switch{font-size:15.5px}
.nd .ig-addon{font-size:14px}
html[lang="ar"] .nd .ig-addon{font-size:15px}
.nd .counter-line{font-size:13.5px}
.nd .file-drop b{font-size:15px}
.nd .file-drop small{font-size:13px}
.nd .btn{font-size:14.5px}
html[lang="ar"] .nd .btn{font-size:15.5px}
.nd .btn-sm,.nd .btn-small{font-size:13.5px}
.nd .btn-mini,.nd .btn-xs{font-size:12.5px}
html[lang="ar"] .nd .btn-mini,html[lang="ar"] .nd .btn-xs{font-size:13.5px}
.nd .btn-lg,.nd .btn-large{font-size:16px}
.nd .alert,.nd .nd-main .notification{font-size:14.5px}
html[lang="ar"] .nd .alert,html[lang="ar"] .nd .nd-main .notification{font-size:15.5px}
.nd .nd-toast{font-size:14.5px}
.nd .pager-info{font-size:13.5px}
.nd .pages a,.nd .pages span,.nd .pages button,.nd .nd-main nav.pagination .btn{font-size:14px}
.nd .nd-modal-title,.nd .modal-title{font-size:17px}
.nd .nd-modal-body,.nd .modal-body{font-size:15px}
.nd .empty b{font-size:16px}
.nd .empty p{font-size:14px}
.nd .loading-row{font-size:14px}
.nd .feat-name{font-size:14px}
html[lang="ar"] .nd .feat-name{font-size:15.5px}
.nd .qa .qt{font-size:14.5px}
html[lang="ar"] .nd .qa .qt{font-size:16px}
.nd .qa .qd{font-size:13px}
html[lang="ar"] .nd .qa .qd{font-size:14.5px}
.nd .support h3{font-size:16px}
.nd .support p{font-size:13.5px}
html[lang="ar"] .nd .support p{font-size:15px}
.nd .sup-row small{font-size:12.5px}
html[lang="ar"] .nd .sup-row small{font-size:14px}
.nd .sup-row b{font-size:15px}
.nd .nd-footer .nd-wrap{font-size:13px}
html[lang="ar"] .nd .nd-footer .nd-wrap{font-size:14px}
/* legacy markup inside the portal layout */
.nd .nd-main ul.tabs-nav li a{font-size:14px}
html[lang="ar"] .nd .nd-main ul.tabs-nav li a{font-size:15.5px}
.nd .nd-main legend{font-size:15px}
.nd .nd-main .control-label{font-size:14px}
html[lang="ar"] .nd .nd-main .control-label{font-size:15.5px}
.nd .nd-main .input-prepend .add-on,.nd .nd-main .input-append .add-on{font-size:13.5px}
html[lang="ar"] .nd .nd-main .input-prepend .add-on{font-size:14.5px}
.nd .nd-main .input-prepend>input,.nd .nd-main .input-prepend>select{font-size:14.5px!important}
.nd .nd-main .counter-box p:first-of-type{font-size:13.5px!important}
.nd .nd-main .counter-box p+p{font-size:16px!important}

/* 23c. session countdown chip */
.nd-st-chip{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px 0 10px;margin:0;border:1px solid var(--nav-line);border-radius:999px;background:var(--nav-2);color:#e5e7eb;font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:13.5px;font-weight:600;line-height:1;white-space:nowrap;cursor:pointer;flex-shrink:0;transition:background .15s,border-color .15s,color .15s}
[dir="rtl"] .nd-st-chip{padding:0 10px 0 12px}
.nd-st-chip .ic{font-size:15px;color:var(--nav-text);transition:color .15s}
.nd-st-time{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;letter-spacing:.01em}
.nd-st-chip:hover{background:var(--nav-hover);border-color:var(--nav-line-2);color:#fff}
.nd-st-chip:hover .ic{color:#fff}
.nd-st-chip:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.nd-st-chip[data-level="warn"]{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.5);color:#fcd34d}
.nd-st-chip[data-level="warn"] .ic{color:#fbbf24}
.nd-st-chip[data-level="bad"]{background:rgba(239,68,68,.16);border-color:rgba(248,113,113,.6);color:#fecaca}
.nd-st-chip[data-level="bad"] .ic{color:#f87171;animation:nd-st-tick 1s ease-in-out infinite}
.nd-st-chip.is-busy{cursor:progress}
.nd-st-chip.is-busy .ic{animation:nd-spin .9s linear infinite}
@keyframes nd-st-tick{0%,100%{opacity:1}50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){.nd-st-chip[data-level="bad"] .ic,.nd-st-chip.is-busy .ic{animation:none}}
@media print{.nd-st-chip{display:none!important}}

/* ---------- 24. sign-in landing (index.php + login.php: body.lp, markup inc/login_landing.php) - 2026-11-30 ----------
   The only responsive page of the portal (own viewport via $ND_PAGE['viewport'] in inc/head.php; everything else stays 1280).
   >=1200: dark showcase (bar, headline + phone mock, live figures, features, trust, footer) + white sign-in column that
   stays in view (sticky). 1024-1199: the phone mock gives way. <1024: one column - bar (with the language switch), headline,
   the sign-in card, figures, phone, features, trust, footer. Phones 360-430px are first-class.
   The sign-in card keeps the section 18 classes (.auth-card .auth-tabs .auth-captcha .auth-secure ...) unchanged.
   Motion only under prefers-reduced-motion:no-preference (no JavaScript involved). */
body.lp{min-width:0;background:#0a101b;color:#cbd5e1;--lp-auth-w:clamp(440px,32vw,500px);--lp-pad:clamp(40px,calc((100vw - var(--lp-auth-w) - 1060px) / 2),200px)}
.lp-shell{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,300px) var(--lp-auth-w);grid-template-areas:"bar bar auth" "hero phone auth" "stats stats auth" "feats feats auth" "trust trust auth" "foot foot auth";grid-template-rows:auto auto auto auto auto 1fr;min-height:100vh;overflow-x:clip}
.lp-skip{position:absolute;z-index:60;top:-80px;inset-inline-start:12px;padding:10px 16px;border-radius:var(--r);background:#fff;color:var(--ink);font-weight:600;box-shadow:var(--sh-pop)}
.lp-skip:focus{top:12px}
.lp-bg{position:absolute;z-index:-1;inset-block:0;inset-inline-start:0;inset-inline-end:var(--lp-auth-w);overflow:hidden;pointer-events:none}
[dir="rtl"] .lp-bg{transform:scaleX(-1)}
.lp-bg::before{content:"";position:absolute;inset:0;background:radial-gradient(900px 560px at 8% -8%,rgba(221,55,55,.24),transparent 62%),radial-gradient(640px 560px at 96% 12%,rgba(96,125,190,.12),transparent 62%),radial-gradient(900px 700px at 30% 100%,rgba(221,55,55,.07),transparent 62%)}
.lp-bg::after{content:"";position:absolute;inset:0 0 auto;height:1100px;background-image:linear-gradient(rgba(255,255,255,.032) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.032) 1px,transparent 1px);background-size:44px 44px;-webkit-mask-image:radial-gradient(ellipse 70% 55% at 30% 22%,#000 0%,transparent 75%);mask-image:radial-gradient(ellipse 70% 55% at 30% 22%,#000 0%,transparent 75%)}
/* bar */
.lp-bar{grid-area:bar;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:32px var(--lp-pad) 0;min-width:0}
.lp-logo{display:flex;align-items:center;gap:13px;color:#fff;min-width:0}
.lp-logo .nd-mark{width:44px;height:44px;border-radius:12px;box-shadow:0 8px 22px rgba(221,55,55,.35);flex-shrink:0}
body.lp .lp-logo .nd-brand-sub{display:block;font-size:12px;margin-top:5px;color:#8b95a7}
html[lang="ar"] body.lp .lp-logo .nd-brand-sub{font-size:13px}
.lp-bar-tools{display:none;align-items:center;gap:14px}
.lp-bar-help{display:inline-flex;align-items:center;gap:7px;color:#cbd5e1;font-size:13px;font-weight:500}
html[lang="ar"] .lp-bar-help{font-size:14px}
.lp-bar-help .ic{color:#4ade80;font-size:17px}
.lp-bar-help:hover{color:#fff}
body.lp .nd-lang a.on{display:flex}
body.lp .nd-lang a{padding:0 9px}
/* hero */
.lp-hero{grid-area:hero;align-self:center;padding-block:clamp(44px,8vh,96px) 40px;padding-inline:var(--lp-pad) 32px;min-width:0}
.lp-eyebrow{display:inline-flex;align-items:center;gap:9px;min-height:30px;padding:4px 13px;border-radius:99px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:#cbd5e1;font-size:12.5px;font-weight:500;margin-bottom:24px}
html[lang="ar"] .lp-eyebrow{font-size:13.5px}
.lp-eyebrow i{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.2);flex-shrink:0}
.lp-h{color:#fff;font-size:clamp(38px,3.3vw,56px);line-height:1.08;letter-spacing:-.035em;font-weight:700;margin:0 0 20px}
.lp-h em{display:block;font-style:normal;color:#f87171}
html[lang="ar"] .lp-h{letter-spacing:0;line-height:1.3;font-size:clamp(36px,3.2vw,54px);font-weight:800}
.lp-lead{color:#a3acb9;font-size:17px;line-height:1.7;max-width:34em;margin:0 0 26px}
html[lang="ar"] .lp-lead{font-size:18px;line-height:1.85}
.lp-checks{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px 22px}
.lp-checks li{display:flex;align-items:center;gap:8px;color:#e2e8f0;font-size:14px;font-weight:500}
html[lang="ar"] .lp-checks li{font-size:15px}
.lp-checks .ic,.lp-list .ic{width:20px;height:20px;padding:3.5px;border-radius:50%;background:rgba(34,197,94,.14);color:#4ade80;stroke-width:3;flex-shrink:0}
/* phone mock (decorative) */
.lp-phone{grid-area:phone;display:flex;justify-content:center;align-items:center;padding-block:64px 40px;padding-inline-end:var(--lp-pad);min-width:0}
.lp-device{position:relative;width:264px;height:540px;flex-shrink:0;border-radius:46px;padding:9px;background:linear-gradient(145deg,#323b4d,#0b0f17 42%,#1c2332);box-shadow:0 0 0 1px rgba(255,255,255,.09),0 40px 80px -20px rgba(0,0,0,.75),0 0 140px -30px rgba(221,55,55,.5)}
.lp-screen{height:100%;border-radius:38px;overflow:hidden;background:#f2f2f7;color:#111;display:flex;flex-direction:column;font-family:'Inter','Tajawal',system-ui,sans-serif}
html[lang="ar"] .lp-screen{font-family:var(--font-ar)}
.lp-sbar{position:relative;display:flex;align-items:center;justify-content:space-between;direction:ltr;height:44px;padding:0 24px;flex-shrink:0;color:#111;fill:#111}
.lp-sbar b{font:600 13px/1 'Inter',sans-serif}
.lp-island{position:absolute;top:11px;left:50%;width:84px;height:24px;margin-left:-42px;border-radius:14px;background:#000}
.lp-sicons{display:flex;align-items:center;gap:5px}
.lp-chat-head{display:flex;flex-direction:column;align-items:center;gap:3px;padding:2px 12px 10px;border-bottom:1px solid #e1e1e6;background:#f8f8fa;flex-shrink:0}
.lp-av{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#a3abb9,#6b7385);color:#fff;font:600 15px/1 'Inter',sans-serif}
.lp-chat-head b{font:600 12.5px/1.2 'Inter',sans-serif;color:#111}
.lp-chat-head small{font-size:10.5px;color:#8e8e93;line-height:1.2}
.lp-msgs{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:12px 12px 16px;overflow:hidden}
.lp-day{align-self:center;font-size:10.5px;color:#8e8e93;margin-bottom:2px}
.lp-bub{max-width:88%;padding:8px 11px;border-radius:17px;border-end-start-radius:5px;background:#e5e5ea;color:#111;font-size:12.5px;line-height:1.45;transform-origin:0 100%}
[dir="rtl"] .lp-bub{transform-origin:100% 100%}
html[lang="ar"] .lp-bub{font-size:13px;line-height:1.6}
.lp-otp{font:700 12.5px/1 'Inter',sans-serif;letter-spacing:.06em}
.lp-var{background:rgba(221,55,55,.12);color:#b91c1c;border-radius:4px;padding:0 3px;font-weight:600}
.lp-link{color:#0a64d8;text-decoration:underline;text-underline-offset:2px;font-family:'Inter',sans-serif}
.lp-dlr{display:flex;align-items:center;gap:4px;margin:-3px 4px 0;font-size:10.5px;font-weight:600;color:#16a34a}
.lp-dlr .ic{font-size:12px}
.lp-chip{position:absolute;z-index:2;display:flex;align-items:center;gap:10px;padding:10px 14px 10px 10px;border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 18px 40px -12px rgba(0,0,0,.6),0 2px 6px rgba(0,0,0,.2);white-space:nowrap}
[dir="rtl"] .lp-chip{padding:10px 10px 10px 14px}
.lp-chip b{display:block;font-size:12.5px;font-weight:600;line-height:1.25}
.lp-chip small{display:block;font-size:11px;color:var(--muted);line-height:1.35}
html[lang="ar"] .lp-chip b{font-size:13.5px}
html[lang="ar"] .lp-chip small{font-size:12px}
.lp-chip .lp-mono{font-family:var(--mono);font-size:11px}
.lp-chip-ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--red-50);color:var(--red);font-size:16px;flex-shrink:0}
.lp-chip-ic.ok{background:#dcfce7;color:#16a34a}
.lp-chip-ic.ok .ic{stroke-width:3}
.lp-chip-a{inset-block-end:46px;inset-inline-start:-44px}
.lp-chip-b{inset-block-start:58px;inset-inline-start:-92px}
/* live figures */
.lp-stats{grid-area:stats;padding:8px var(--lp-pad) 0;min-width:0}
.lp-statgrid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:1px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden}
.lp-stat{background:#0d1420;padding:20px 22px 18px;min-width:0}
.lp-stat b{display:flex;align-items:baseline;gap:4px;margin-bottom:6px;color:#fff;font:700 30px/1.1 'Inter',sans-serif;letter-spacing:-.02em}
[dir="rtl"] .lp-stat b[dir="ltr"]{justify-content:flex-end}
.lp-stat b small{font-size:17px;font-weight:600;color:#f87171;letter-spacing:0}
.lp-stat b[dir="rtl"] small{font-family:var(--font-ar);font-weight:700}
.lp-stat>span{display:block;color:#94a3b8;font-size:13px;line-height:1.4}
html[lang="ar"] .lp-stat>span{font-size:14px}
.lp-stats-cap{display:flex;align-items:center;gap:8px;margin:12px 2px 0;color:#6b7689;font-size:12px}
html[lang="ar"] .lp-stats-cap{font-size:13px}
.lp-live{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.18);flex-shrink:0}
/* features */
.lp-feats{grid-area:feats;padding:76px var(--lp-pad) 0;min-width:0}
.lp-sec-head{max-width:660px;margin-bottom:28px}
.lp-kicker{display:inline-block;margin-bottom:10px;color:#f87171;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
html[lang="ar"] .lp-kicker{letter-spacing:0;font-size:14px}
.lp-sec-head h2{color:#fff;font-size:30px;line-height:1.2;letter-spacing:-.025em;margin:0 0 10px}
html[lang="ar"] .lp-sec-head h2{line-height:1.45;letter-spacing:0}
.lp-sec-head p{color:#94a3b8;font-size:15.5px;line-height:1.65;margin:0}
html[lang="ar"] .lp-sec-head p{font-size:16.5px;line-height:1.8}
.lp-fgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.lp-fcard{display:flex;flex-direction:column;min-width:0;padding:24px 22px 22px;border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.018));border:1px solid rgba(255,255,255,.08);transition:border-color .2s,background .2s,transform .2s}
.lp-fcard:hover{border-color:rgba(248,113,113,.32);background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.025))}
.lp-fic{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;margin-bottom:16px;background:linear-gradient(145deg,rgba(221,55,55,.26),rgba(221,55,55,.1));border:1px solid rgba(248,113,113,.22);color:#fca5a5;font-size:20px}
.lp-fcard h3{color:#f8fafc;font-size:17px;font-weight:600;letter-spacing:-.01em;margin:0 0 8px}
html[lang="ar"] .lp-fcard h3{font-size:18px;font-weight:700;letter-spacing:0}
.lp-fcard p{color:#94a3b8;font-size:14px;line-height:1.65;margin:0 0 18px}
html[lang="ar"] .lp-fcard p{font-size:15px;line-height:1.8}
.lp-tags{list-style:none;margin:auto 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.lp-tags li{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:99px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09);color:#d5dbe5;font-size:12px;font-weight:500;white-space:nowrap}
html[lang="ar"] .lp-tags li{font-size:13px}
.lp-tags li .ic{font-size:13px;color:#fca5a5}
.lp-tags li.hl{padding-inline-end:4px;border-color:rgba(248,113,113,.35);background:rgba(221,55,55,.12);color:#fff}
.lp-new,.lp-soon{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:99px;font-size:10.5px;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.lp-new{background:var(--red);color:#fff}
.lp-soon{margin-inline-start:auto;background:rgba(251,191,36,.12);border:1px solid rgba(251,191,36,.3);color:#fcd34d}
html[lang="ar"] .lp-new,html[lang="ar"] .lp-soon{font-size:11.5px;letter-spacing:0}
.lp-list{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:11px}
.lp-list li{display:flex;align-items:center;gap:10px;color:#d5dbe5;font-size:14px;line-height:1.4}
html[lang="ar"] .lp-list li{font-size:15px}
.lp-list .ic{border-radius:6px;background:rgba(34,197,94,.12)}
.lp-contact{display:grid;gap:8px;margin-top:auto}
.lp-contact a{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:#e2e8f0;text-decoration:none;transition:border-color .15s,background .15s}
.lp-contact a:hover{border-color:rgba(74,222,128,.35);background:rgba(255,255,255,.07);color:#fff}
.lp-contact a>span:first-child{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.06);color:#cbd5e1;font-size:17px;flex-shrink:0}
.lp-contact a>span.wa{background:rgba(34,197,94,.14);color:#4ade80}
.lp-contact small{display:block;font-size:11.5px;color:#8b95a7;line-height:1.2}
html[lang="ar"] .lp-contact small{font-size:12.5px}
.lp-contact b{font:600 14.5px/1.35 'Inter',sans-serif}
/* trust + footer */
.lp-trust{grid-area:trust;padding:44px var(--lp-pad) 0;min-width:0}
.lp-trust ul{list-style:none;margin:0;padding:24px 0 0;border-top:1px solid rgba(255,255,255,.07);display:flex;flex-wrap:wrap;gap:10px 12px}
.lp-trust li{display:inline-flex;align-items:center;gap:9px;min-height:38px;padding:4px 16px 4px 12px;border-radius:99px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);color:#cbd5e1;font-size:13px;font-weight:500}
[dir="rtl"] .lp-trust li{padding:4px 12px 4px 16px}
html[lang="ar"] .lp-trust li{font-size:14px}
.lp-trust li .ic{color:#f87171;font-size:17px}
.lp-foot{grid-area:foot;align-self:end;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px;padding:40px var(--lp-pad) 28px;color:#6b7689;font-size:12.5px}
html[lang="ar"] .lp-foot{font-size:13.5px}
.lp-foot a{color:#94a3b8}
.lp-foot a:hover{color:#fff}
.lp-foot-links{display:flex;flex-wrap:wrap;gap:6px 18px}
/* sign-in column */
.lp-auth{grid-area:auth;position:sticky;top:0;align-self:start;z-index:1;display:flex;flex-direction:column;height:100vh;height:100dvh;overflow-y:auto;background:var(--surface);color:var(--ink);box-shadow:0 0 0 1px rgba(0,0,0,.25),0 0 60px rgba(0,0,0,.35)}
.lp-auth .auth-side-top{padding:24px 36px}
.lp-auth .auth-center{padding:12px 36px 32px}
.lp-auth .auth-legal{flex-direction:column;gap:4px;min-height:84px;padding:16px 96px 16px 36px}
.lp-auth .auth-legal>span{white-space:nowrap}
/* the reCAPTCHA v3 badge (always physically bottom-right) sits beside the legal lines, never over the card */
body.lp .grecaptcha-badge{bottom:14px!important}
/* the two card tabs share the width and may wrap instead of scrolling sideways in a narrow column */
.lp-auth .auth-tabs .seg{overflow:visible}
.lp-auth .auth-tabs .seg>button{min-width:0;flex:1 1 0;white-space:normal;height:auto;min-height:36px;padding:6px 10px;line-height:1.25;text-align:center}
.auth-card .lp-card-h{font-size:28px;line-height:1.25;letter-spacing:-.02em;margin-bottom:8px}
html[lang="ar"] .auth-card .lp-card-h{letter-spacing:0;font-size:29px}
/* narrower sign-in column: the tab labels keep one line without their icons */
@media (max-width:1499px){.lp-auth .auth-tabs .seg>button .ic{display:none}}
/* short desktop screens (1366x768 ...): the live figures still show in the first view */
@media (min-width:1200px) and (max-height:860px){
  .lp-bar{padding-top:24px}
  .lp-hero{padding-block:28px 24px}
  .lp-phone{padding-block:28px 20px}
  .lp-device{zoom:.86}
  .lp-eyebrow{margin-bottom:18px}
}
/* 1024-1199: two columns, no phone mock */
@media (max-width:1199px){
  body.lp{--lp-auth-w:clamp(400px,40vw,440px);--lp-pad:40px}
  .lp-shell{grid-template-columns:minmax(0,1fr) var(--lp-auth-w);grid-template-areas:"bar auth" "hero auth" "stats auth" "feats auth" "trust auth" "foot auth"}
  .lp-phone{display:none}
  .lp-hero{padding-inline:var(--lp-pad)}
  .lp-h{font-size:42px}
  html[lang="ar"] .lp-h{font-size:40px}
  .lp-stat{padding:18px 16px}
  .lp-stat b{font-size:26px}
  .lp-fgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* <1024: one column, the sign-in card right under the headline */
@media (max-width:1023px){
  body.lp{--lp-pad:32px}
  .lp-shell{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"bar bar" "hero phone" "auth auth" "stats stats" "feats feats" "trust trust" "foot foot";grid-template-rows:none}
  .lp-bg{inset-inline-end:0}
  .lp-bar{padding-top:22px}
  .lp-bar-tools{display:flex}
  .lp-hero{padding-block:44px 40px}
  .lp-phone{display:flex;align-items:flex-start;padding:40px var(--lp-pad) 24px 0}
  [dir="rtl"] .lp-phone{padding:40px 0 24px var(--lp-pad)}
  .lp-device{zoom:.78}
  .lp-chip-a{display:none}
  .lp-auth{position:relative;top:auto;align-self:auto;justify-self:center;width:calc(100% - 2 * var(--lp-pad));max-width:540px;height:auto;overflow:visible;border-radius:22px;box-shadow:0 40px 80px -24px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.06)}
  .lp-auth .auth-side-top,.lp-auth .auth-legal{display:none}
  .lp-auth .auth-side-top.lp-keep{display:flex;justify-content:flex-start;padding:20px 34px 0}   /* login.php: "Back to sign in" stays */
  .lp-auth .lp-keep .nd-lang,.lp-auth .lp-keep a[href^="https://wa.me"]{display:none}
  .lp-auth .auth-center{padding:34px 34px 30px}
  .lp-stats{padding-top:48px}
  .lp-feats{padding-top:64px}
}
/* phones */
@media (max-width:639px){
  body.lp{--lp-pad:16px}
  .lp-shell{grid-template-columns:minmax(0,1fr);grid-template-areas:"bar" "hero" "auth" "stats" "phone" "feats" "trust" "foot"}
  .lp-bar{padding-top:14px}
  .lp-logo{gap:10px}
  .lp-logo .nd-mark{width:36px;height:36px;border-radius:10px}
  .lp-logo .nd-word{width:auto;height:16px}
  body.lp .lp-logo .nd-brand-sub{font-size:11px;margin-top:3px}
  html[lang="ar"] body.lp .lp-logo .nd-brand-sub{font-size:12px}
  .lp-bar-tools{gap:10px}
  .lp-bar-help span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .lp-bar-help .ic{font-size:20px}
  .lp-hero{padding-block:30px 26px;padding-inline:var(--lp-pad)}
  .lp-eyebrow{font-size:11.5px;margin-bottom:16px}
  html[lang="ar"] .lp-eyebrow{font-size:12.5px}
  .lp-h,html[lang="ar"] .lp-h{font-size:clamp(30px,8.4vw,38px);margin-bottom:14px}
  .lp-lead{font-size:15.5px;line-height:1.65;margin-bottom:18px}
  html[lang="ar"] .lp-lead{font-size:16.5px;line-height:1.8}
  .lp-checks{gap:8px 16px}
  .lp-checks li{font-size:13.5px}
  html[lang="ar"] .lp-checks li{font-size:14.5px}
  .lp-auth{width:auto;max-width:none;justify-self:stretch;margin-inline:10px;border-radius:20px}
  .lp-auth .auth-center{padding:26px 18px 22px}
  .auth-card .lp-card-h,html[lang="ar"] .auth-card .lp-card-h{font-size:24px}
  .lp-auth .auth-card .lead{margin-bottom:20px}
  .lp-auth .auth-tabs .seg>button{white-space:normal;height:auto;min-height:38px;padding:6px 8px;line-height:1.25;text-align:center}
  .lp-stats{padding-top:36px}
  .lp-statgrid[data-n="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lp-stat{padding:16px 14px}
  .lp-stat b{font-size:25px}
  .lp-stat b small{font-size:15px}
  .lp-stat>span{font-size:12.5px}
  html[lang="ar"] .lp-stat>span{font-size:13.5px}
  .lp-phone,[dir="rtl"] .lp-phone{justify-content:center;padding:40px 0 0}
  .lp-device{zoom:.86}
  .lp-chip-a{display:flex;inset-inline-start:-14px}
  .lp-chip-b{display:none}
  .lp-feats{padding-top:52px}
  .lp-sec-head h2,html[lang="ar"] .lp-sec-head h2{font-size:24px}
  .lp-sec-head p{font-size:15px}
  .lp-fgrid{grid-template-columns:minmax(0,1fr);gap:12px}
  .lp-fcard{padding:20px 18px}
  .lp-trust{padding-top:36px}
  .lp-trust li{font-size:12.5px;min-height:34px}
  .lp-foot{flex-direction:column;align-items:flex-start;padding-block:32px 24px}
  body.lp .grecaptcha-badge{bottom:14px!important}
}
@media (max-width:359px){
  .lp-auth{margin-inline:6px}
  .lp-auth .auth-center{padding-inline:12px}
  .lp-auth .auth-captcha .g-recaptcha{transform:scale(.9)}
}
@media (prefers-reduced-motion:no-preference){
  .lp-rise{animation:lpRise .8s cubic-bezier(.16,.84,.32,1) both;animation-delay:var(--d,0s)}
  .lp-device{animation:lpRise 1s cubic-bezier(.16,.84,.32,1) .12s both}
  .lp-bub,.lp-dlr{animation:lpPop .55s cubic-bezier(.2,.9,.3,1.12) both;animation-delay:var(--d,0s)}
  .lp-chip{animation:lpRise .7s cubic-bezier(.16,.84,.32,1) both,lpFloat 7s ease-in-out infinite;animation-delay:var(--d,0s),calc(var(--d,0s) + .7s)}
  .lp-live{animation:lpPulse 2.4s ease-out infinite}
  .lp-fcard:hover{transform:translateY(-3px)}
}
@keyframes lpRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes lpPop{from{opacity:0;transform:translateY(10px) scale(.95)}to{opacity:1;transform:none}}
@keyframes lpFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes lpPulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.45)}100%{box-shadow:0 0 0 9px rgba(34,197,94,0)}}
@media print{.lp-bg,.lp-phone,.lp-skip{display:none!important}}
/* ND-TABLET 2026-12-04: Archive Export on tablets (also sideways): the calendar icon does not cover the date */
.nd-rep .exp-form .input-icon>input.input{padding-inline-start:38px}
/* ND-TABLET 2026-12-04: message reports on tablets held sideways: the row buttons wrap instead of leaving the table */
@media (min-width:1024px) and (pointer:coarse){.ndr-tbl td.actions{white-space:normal}}
