/* ============================================================
   النقل الثقيل | Heavy Transport — نظام التصميم الموحد
   مستوحى بالكامل من هوية «استضافة نواة» (nawahost.com):
   نفس الألوان والخط والأزرار والحقول والبطاقات والشرائح.
   ============================================================ */

:root {
  /* ألوان نواة */
  --ink: #1a2229;
  --ink-2: #33404a;
  --mut: #5c6b73;
  --brand: #00a57b;
  --brand-deep: #007a5e;
  --line: #e7ecea;
  --soft: #f4f8f6;
  --tint: #eef6f4;
  --danger: #b23a30;
  --danger-soft: #fdf1f0;
  --warn: #9a6a10;
  --warn-soft: #fdf6e9;
  --good: #127a4c;
  --good-soft: #eef8f2;
  --r: 14px;
  --side-w: 248px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* خط تجوال — مستضاف ذاتيًا (OFL) — مسارات نسبية */
@font-face { font-family: "Tajawal"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/tajawal/Tajawal-400-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Tajawal"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/tajawal/Tajawal-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/tajawal/Tajawal-500-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Tajawal"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/tajawal/Tajawal-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/tajawal/Tajawal-700-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/tajawal/Tajawal-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/tajawal/Tajawal-800-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Tajawal"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/tajawal/Tajawal-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/tajawal/Tajawal-900-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Tajawal"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/tajawal/Tajawal-900-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body {
  font-family: "Tajawal", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.num, td.num { font-variant-numeric: tabular-nums; }

/* ---------- الأزرار (نمط نواة) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 980px; font-weight: 800; font-size: 14.5px;
  padding: 11px 22px; transition: background .18s, border-color .18s, color .18s; cursor: pointer; border: 1.5px solid transparent;
  font-family: inherit; background: none;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-deep); }
.btn-brand:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { border-color: #f3cfcd; color: var(--danger); background: #fff; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- الحقول (نمط نواة) ---------- */
.field { margin-top: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 7px; color: var(--ink-2); }
.inp, .sel {
  width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0 14px; font: inherit; font-size: 15px; background: #fff; color: var(--ink);
  transition: border-color .15s;
}
.inp:focus, .sel:focus { outline: none; border-color: var(--brand); }
textarea.inp { height: auto; min-height: 100px; padding: 12px 14px; resize: vertical; }
.hint { display: block; font-size: 12.5px; color: var(--mut); margin-top: 6px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- البطاقات والجداول والشرائح (نمط نواة) ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: start; font-size: 12px; color: var(--mut); font-weight: 800; padding: 10px 12px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--soft); }
.tbl-wrap { overflow-x: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; border-radius: 980px; padding: 4px 11px; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.open { background: var(--good-soft); color: var(--good); }
.chip.wait { background: var(--warn-soft); color: var(--warn); }
.chip.closed { background: var(--soft); color: var(--mut); }
.chip.bad { background: var(--danger-soft); color: var(--danger); }
.chip.info { background: var(--tint); color: var(--brand-deep); }

/* ---------- الهيكل: الشريط الجانبي + المحتوى ---------- */
.layout { display: flex; min-height: 100vh; }
.side {
  width: var(--side-w); flex-shrink: 0; background: #fff; border-inline-end: 1px solid var(--line);
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 40;
  display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto;
}
.side-logo { display: flex; align-items: center; justify-content: center; padding: 4px 8px 16px; border-bottom: 1px solid var(--line); }
.side-logo img { height: 46px; width: auto; }
.side-co { text-align: center; font-size: 12px; color: var(--mut); padding: 10px 6px 4px; font-weight: 700; }
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; flex: 1; }
.side-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px;
  font-size: 14px; font-weight: 700; color: var(--ink-2); transition: .15s;
}
.side-nav a:hover { background: var(--soft); color: var(--ink); }
.side-nav a.on { background: var(--tint); color: var(--brand-deep); }
.side-nav a svg { flex-shrink: 0; opacity: .75; }
.side-nav a.on svg { opacity: 1; }
.side-foot { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }

.main { flex: 1; min-width: 0; margin-inline-start: var(--side-w); display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; background: rgba(244,248,246,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding: 12px 26px;
  display: flex; align-items: center; gap: 14px;
}
.topbar .ttl { font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.topbar .sp { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang-sw { display: flex; border: 1.5px solid var(--line); border-radius: 980px; overflow: hidden; background: #fff; }
.lang-sw a { padding: 6px 13px; font-size: 12.5px; font-weight: 800; color: var(--mut); }
.lang-sw a.on { background: var(--ink); color: #fff; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; border: 1px solid #d5ebe3;
}
.content { padding: 26px; max-width: 1240px; width: 100%; margin: 0 auto; }
.burger { display: none; }

/* ---------- لوحة البداية ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.kpi b { font-size: 26px; font-weight: 900; display: block; letter-spacing: -.02em; }
.kpi span { font-size: 12.5px; color: var(--mut); }
.kpi .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--tint); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }

/* ---------- صفحة الدخول ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--soft); padding: 24px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px; width: 100%; max-width: 420px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-logo img { height: 56px; width: auto; }
.auth-title { font-size: 21px; font-weight: 900; text-align: center; letter-spacing: -.01em; }
.auth-sub { color: var(--mut); font-size: 13.5px; text-align: center; margin-top: 6px; line-height: 1.7; }
.otp { display: flex; gap: 10px; direction: ltr; justify-content: center; margin-top: 18px; }
.otp input {
  width: 50px; height: 58px; text-align: center; font-size: 23px; font-weight: 800;
  border: 1.5px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff;
}
.otp input:focus { outline: none; border-color: var(--brand); }
.otp input.filled { border-color: var(--brand); background: var(--tint); }

/* ---------- عناصر مساعدة ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.page-head p { color: var(--mut); font-size: 13.5px; margin-top: 3px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .inp, .toolbar .sel { height: 42px; width: auto; min-width: 170px; font-size: 13.5px; }
.alert { border-radius: 13px; padding: 12px 16px; font-size: 13.5px; font-weight: 700; margin-bottom: 16px; }
.alert.ok { background: var(--good-soft); color: var(--good); border: 1px solid #bfe6d2; }
.alert.err { background: var(--danger-soft); color: var(--danger); border: 1px solid #f3cfcd; }
.empty { text-align: center; padding: 44px 20px; color: var(--mut); }
.empty svg { opacity: .4; margin-bottom: 10px; }
.empty b { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }
.mut { color: var(--mut); }
.small { font-size: 12.5px; }
.tt { font-size: 13px; color: var(--mut); }

/* مسار حالة الرحلة */
.tflow { display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin: 6px 0 2px; }
.tflow .tf { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; color: var(--mut); }
.tflow .tf i { width: 22px; height: 22px; border-radius: 50%; background: var(--soft); border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; }
.tflow .tf.done { color: var(--brand-deep); }
.tflow .tf.done i { background: var(--tint); border-color: var(--brand); }
.tflow .tf.now { color: var(--ink); }
.tflow .tf.now i { background: var(--brand); border-color: var(--brand); color: #fff; }
.tflow .tf-sep { width: 22px; height: 1.5px; background: var(--line); margin: 0 5px; }

/* مودال */
.modal-veil { position: fixed; inset: 0; background: rgba(26,34,41,.4); z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-veil.open { display: flex; }
.modal { background: #fff; border-radius: 20px; padding: 24px; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; }
.modal h3 { font-size: 17px; font-weight: 900; margin-bottom: 4px; }

/* توست */
#toast { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 99; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; border-radius: 12px; padding: 11px 18px; font-size: 13.5px; font-weight: 700; animation: tin .25s; box-shadow: 0 8px 24px rgba(26,34,41,.2); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---------- جوال ---------- */
@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .22s; box-shadow: none; }
  [dir="rtl"] .side { transform: translateX(100%); }
  body.side-open .side { transform: translateX(0); box-shadow: -24px 0 60px rgba(26,34,41,.18); }
  .main { margin-inline-start: 0; }
  .burger { display: inline-flex; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .frow { grid-template-columns: 1fr; }
  .content { padding: 18px 14px 60px; }
}

/* ---------- طباعة: التقرير فقط بلا إطار ---------- */
@media print {
  .side, .topbar, .btn, button, form, .lang-sw, #loader { display: none !important; }
  .main { margin-inline-start: 0 !important; }
  .content { padding: 0 !important; max-width: 100% !important; }
  body { background: #fff !important; }
  .card { border: 1px solid #ccc !important; break-inside: avoid; }
}

/* ---------- تأثيرات بصرية (بهدوء نواة) ---------- */

/* دخول صفحة الدخول: لمعة أولية على الشعار، والدخول المتتابع تديره GSAP — بلا حركة دائمة */
.auth-logo { position: relative; overflow: hidden; border-radius: 12px; }
@keyframes logoPop { from { opacity: 0; transform: scale(.55) translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.auth-logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  transform: translateX(-140%); animation: htShine 1s .7s cubic-bezier(.3,.6,.3,1) both;
}
@keyframes htShine { to { transform: translateX(140%); } }

/* الشريط الجانبي: مؤشر نشط ينبثق + انزياح عند التحويم */
.side-nav a { position: relative; }
.side-nav a::before {
  content: ""; position: absolute; inset-inline-start: -2px; top: 9px; bottom: 9px;
  width: 3.5px; border-radius: 4px; background: var(--brand);
  transform: scaleY(0); transition: transform .25s cubic-bezier(.2,.8,.3,1.25);
}
.side-nav a.on::before { transform: scaleY(1); }
[dir="rtl"] .side-nav a:hover { translate: -3px 0; }
[dir="ltr"] .side-nav a:hover { translate: 3px 0; }

/* دخول المحتوى وتدرّج صفوف الجداول */
@keyframes pageIn { from { opacity: 0; translate: 0 10px; } }
.content { animation: pageIn .38s ease both; }
@keyframes rowIn { from { opacity: 0; translate: 0 7px; } }
tbody tr { animation: rowIn .35s ease both; }

/* كشف عند التمرير عبر AOS — تعطيله عند تقليل الحركة */
.aos-off [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- شاشة الانتظار ---------- */
#loader {
  position: fixed; inset: 0; z-index: 999; background: var(--soft);
  display: flex; align-items: center; justify-content: center;
  transition: transform .75s cubic-bezier(.7,0,.2,1);
}
#loader.ld-done { transform: translateY(-101%); pointer-events: none; }
body:has(#loader):not(:has(#loader.ld-done)) { overflow: hidden; }
.ld-box { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.ld-brand { position: relative; display: flex; align-items: center; justify-content: center; }
#loader .ld-lottie { position: absolute; inset: -82px; z-index: -1; pointer-events: none; }
#loader .ld-logo { position: relative; overflow: hidden; border-radius: 14px; display: flex; margin: 0; }
#loader .ld-logo img { height: 62px; width: auto; animation: logoPop .7s cubic-bezier(.2,.9,.3,1.4) both .05s; }
#loader .ld-logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  transform: translateX(-140%); animation: htShine 1.1s .55s cubic-bezier(.3,.6,.3,1) both;
}
.ld-num {
  font-size: 40px; font-weight: 900; color: var(--ink); line-height: 1;
  font-variant-numeric: tabular-nums; direction: ltr; letter-spacing: -1px;
}
.ld-bar { width: 170px; height: 3px; border-radius: 4px; background: #e4ebe8; overflow: hidden; }
.ld-bar i {
  display: block; height: 100%; background: var(--brand);
  transform: scaleX(0); transform-origin: right; transition: transform .1s linear;
}
@media (prefers-reduced-motion: reduce) { #loader { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .content, tbody tr { animation: none; }
}

/* بطاقات المؤشرات — عدّاد */
.kpi { transition: transform .2s ease, box-shadow .2s ease; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(26,34,41,.07); }

/* سطور الجداول */
.tbl tbody tr { transition: background .15s; }
