/* ============================================================================
   هوية النظام المعتمدة (2026-10-17): نفس هوية Accu GPS، كحلي حبري وأزرق للأوامر، حواف رفيعة بلا ظلال.
   تحمل بعد fleetops.css و wm.css في _Layout و _Bare فقط، فلا تمس صفحات الطباعة ودراسات PDF.
   وألوان العلامة البيضاء للشركة تأتي بعدها فتبقى لها الكلمة الأخيرة.
   ========================================================================== */

:root {
  --bg:            #F3F5F8;
  --surface:       #FFFFFF;
  --surface-2:     #F9FAFC;
  --surface-3:     #EEF1F5;
  --border:        #E2E7EE;
  --border-soft:   #EEF1F5;
  --border-strong: #CBD3DE;

  --text:          #0D1B2A;
  --text-2:        #56677C;
  --text-3:        #93A1B2;

  /* الأزرق للأوامر والتحديد وحدهما، لا للحالات */
  --accent:        #0B5FFF;
  --accent-hover:  #0848C4;
  --accent-press:  #06379A;
  --accent-soft:   #E9F0FF;
  --accent-line:   #BFD3FF;

  --nav-bg:        #0D1B2A;
  --nav-bg-2:      #1A2B3F;
  --nav-text:      #A9B7C9;
  --nav-text-2:    #6A7F98;
  --nav-border:    #24384F;

  --good:          #0E9F5B;
  --good-soft:     #E3F5EC;
  --warn:          #D97F00;
  --warn-soft:     #FFF2DC;
  --crit:          #E0393E;
  --crit-soft:     #FDE8E8;
  --info:          #0B5FFF;
  --info-soft:     #E9F0FF;

  --c-series:      #0B5FFF;
  --c-grid:        #EEF1F5;

  /* حواف رفيعة بدل الظلال: البطاقات لا تطفو */
  --shadow-xs:     none;
  --shadow-sm:     none;
}

/* القائمة الجانبية: صف نشط داخل حبة، والأيقونة النشطة زرقاء فاتحة */
.nav-brand .mark { background: var(--accent); border-radius: 9px; }
.nav-sec { padding: 14px 20px 4px; color: var(--nav-text-2); }
.nav-link {
  height: 34px; margin-inline: 10px; width: calc(100% - 20px);
  padding-inline: 10px; border-radius: 8px; border-inline-end: 0;
}
.nav-link.on { background: #24384F; border-inline-end: 0; }
.nav-link.on svg { color: #6E9BFF; }
.nav--collapsed .nav-link { margin-inline: 10px; width: calc(100% - 20px); }
.nav-user .av { background: #fff; color: var(--nav-bg); border-radius: 50%; font-weight: 800; }

/* الشريط العلوي */
.topbar { height: 60px; }
.crumb b { font-size: 18px; font-weight: 800; }

/* الأوامر */
.btn { border-radius: 9px; box-shadow: none; }
.btn-primary { box-shadow: none; }

/* البطاقات: نفس الشكل، بلا ظل، ورأس أوضح */
.card { box-shadow: none; }
.card-head { min-height: 46px; padding: 10px 16px; border-bottom-color: var(--border); }
.card-head h3 { font-weight: 800; }

/* الجداول */
table.grid th { background: #F9FAFC; font-size: 11.5px; color: var(--text-2); font-weight: 700; }
table.grid td { padding-block: 7px; }
table.grid tbody tr:hover td { background: #F7F9FC; }

/* الشارات والتبويبات */
.pill { border-radius: 6px; font-weight: 700; }
.seg { box-shadow: none; }
.seg button.on, .seg a.on { background: var(--nav-bg); }
.tab.on { color: var(--text); border-bottom-color: var(--nav-bg); }
.meter i { background: var(--accent); }
.row-check { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; vertical-align: middle; }
table.grid tr.picked td { background: var(--accent-soft); }

/* خلفية القائمة المتحركة «هواء التبريد» (app.js navFrost): اللوحة وراء البنود، والبنود فوقها */
.nav { overflow: hidden; }
.nav > .nav-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.nav > :not(.nav-fx) { position: relative; z-index: 1; }
.nav-foot { background: rgba(13,27,42,.55); }

/* ── إشعار التجديد (_RenewalNotice): بطاقة بلون القائمة الجانبية، والمؤشر مثلث تنبيه بداخله علامة المال ── */
.rn {
  position: fixed; z-index: 60; bottom: 20px; inset-inline-end: 20px; width: 360px; max-width: calc(100vw - 32px);
  background: var(--nav-bg); color: #fff; border: 1px solid var(--nav-border); border-radius: 14px; padding: 16px 18px 16px;
  box-shadow: 0 18px 44px rgba(13,27,42,.35); opacity: 0; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease;
}
.rn.in { opacity: 1; transform: none; }
.rn { --tone: #FFB547; }
.rn.rn-crit { --tone: #FF6B70; }
.rn-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 26px; height: 26px; border: 0; border-radius: 7px; background: rgba(255,255,255,.07); color: var(--nav-text); cursor: pointer; font-size: 15px; line-height: 1; }
.rn-x:hover { background: rgba(255,255,255,.14); color: #fff; }
.rn-kicker { display: inline-block; font-size: 11px; font-weight: 700; color: var(--tone); letter-spacing: .02em; }
.rn h4 { margin: 2px 0 0; font-size: 20px; font-weight: 800; line-height: 1.35; padding-inline-end: 28px; }
.rn p { margin: 4px 0 0; font-size: 12.5px; color: #C9D4E2; line-height: 1.7; }
.rn-inv { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 3px 10px; border-radius: 7px; background: rgba(255,255,255,.06); border: 1px solid var(--nav-border); font-size: 12px; color: var(--nav-text); }
.rn-inv span { font-family: var(--font-mono); font-size: 11.5px; }
.rn-inv b { color: #fff; font-family: var(--font-mono); font-weight: 600; }
.rn-track { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); margin: 30px 10px 6px; }
.rn-track i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p); border-radius: 3px; background: linear-gradient(to left, #6E9BFF, var(--tone)); }
.rn-mark { position: absolute; bottom: -4px; inset-inline-start: var(--p); translate: 50% 0; width: 30px; height: 28px; overflow: visible; filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); }
.rn-mark path { fill: var(--tone); stroke: var(--nav-bg); stroke-width: 2; }
.rn-mark text { font: 800 15px var(--font); fill: var(--nav-bg); }
.rn.in .rn-mark { animation: rn-nudge 2.4s ease-in-out .4s infinite; }
@keyframes rn-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.rn-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--nav-text-2); margin-top: 10px; }
.rn-meta b { color: #fff; font-family: var(--font-mono); font-weight: 500; margin-inline-start: 4px; }
.rn-act { display: flex; gap: 8px; margin-top: 14px; }
.rn-act .btn-ghost { color: var(--nav-text); }
.rn-act .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
@media (prefers-reduced-motion: reduce) { .rn { transition: none; } .rn.in .rn-mark { animation: none; } }
@media print { .rn { display: none !important; } }
