/* ====================================================
   MASAR CORE — نظام أيقونات الهوية (29/11)
   كل مربعات الأيقونات بألوان مسار الخبرة فقط:
   الأخضر الملكي · الذهبي · الزيتوني · العنابي (للتنبيه)
   ==================================================== */
:root {
  --bi-green: linear-gradient(145deg, #2F7A4B 0%, #1F4D2E 100%);
  --bi-gold: linear-gradient(145deg, #E9C78F 0%, #DD9B27 100%);
  --bi-olive: linear-gradient(145deg, #55665A 0%, #384339 100%);
  --bi-alert: linear-gradient(145deg, #A8463C 0%, #7A2620 100%);
  --bi-ring: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .12);
}

/* مربعات المؤشرات (لوحة التحكم، المالية، التعارض…) */
.kpi-icon, .tt-ic {
  box-shadow: var(--bi-ring), 0 6px 14px rgba(31, 77, 46, .18);
  border: 0;
}
.kpi-card.grad-green .kpi-icon, .tt-ic.grn { background: var(--bi-green) !important; color: #F5F2EA !important; }
.kpi-card.grad-gold .kpi-icon, .tt-ic.gld { background: var(--bi-gold) !important; color: #1F4D2E !important; }
.kpi-card.grad-blue .kpi-icon, .tt-ic.blu { background: var(--bi-olive) !important; color: #E2B681 !important; }
.kpi-card.grad-red .kpi-icon, .tt-ic.red { background: var(--bi-alert) !important; color: #F8E7D4 !important; }
.kpi-card.grad-blue .spark { color: #556B5A !important; }
.kpi-card.grad-red .spark { color: #A8463C !important; }

/* شرائح «اليوم» */
.tt-split .ok { color: #1F4D2E !important; background: rgba(31, 77, 46, .08) !important; border-color: rgba(31, 77, 46, .18) !important; }
.tt-split .stage { color: #384339 !important; background: rgba(221, 155, 39, .12) !important; border-color: rgba(221, 155, 39, .3) !important; }
body.theme-dark .tt-split .ok { color: #9FD3B0 !important; background: rgba(159, 211, 176, .08) !important; }
body.theme-dark .tt-split .stage { color: #E2B681 !important; }

/* أيقونات القائمة الجانبية والشريط السفلي: خط موحّد، والنشط بالذهبي */
.sidenav .nav-item i { color: var(--text-3); transition: color .15s; }
.sidenav .nav-item:hover i { color: var(--green-700); }
body.theme-dark .sidenav .nav-item:hover i { color: #E2B681; }
.sidenav .nav-item.active i { color: #DD9B27 !important; }

/* أيقونات العناوين داخل الصفحات والبطاقات */
.page-head h1 > i, .card-title > i, .card-head h3 > i, .sec-title > i { color: #DD9B27; }

/* الأزرار الدائرية في الشريط العلوي */
.topbar .icon-btn { border-radius: 12px; }
.topbar .icon-btn:hover { color: #DD9B27; }

/* صور المستخدمين الوهمية «متصلون الآن» لا تعكس بيانات حقيقية */
.online-users { display: none !important; }

/* أيقونات بطاقات المكتبة */
.lib-icon.blue { background: rgba(56, 67, 57, .10) !important; color: #384339 !important; }
.lib-icon.purple { background: rgba(221, 155, 39, .14) !important; color: #B0840A !important; }
body.theme-dark .lib-icon.blue { background: rgba(226, 182, 129, .10) !important; color: #E2B681 !important; }
body.theme-dark .lib-icon.purple { color: #E2B681 !important; }
/* مربع أيقونة بلا تدرّج (مثل لوحة المدير): أخضر الهوية */
.kpi-card:not([class*="grad-"]) .kpi-icon:not([style]) { background: var(--bi-green); color: #F5F2EA; }

/* توقيع المنصة أسفل كل صفحة */
.app-credit{margin:0;padding:12px 10px 4px;border-top:1px solid var(--border);text-align:center;font-size:12px;line-height:1.9;color:var(--text-3)}
/* الحقوق ثابتة أسفل كل صفحة: لا تتأثر بترتيب الصفحات المضافة لاحقاً، وتنزل لأسفل الشاشة في الصفحات القصيرة */
#content.content{position:relative;padding-bottom:96px}
#content > .app-credit{position:absolute;bottom:14px;right:28px;left:28px}
@media (max-width:1024px){#content > .app-credit{right:16px;left:16px;bottom:calc(var(--bottom-nav-h,64px) + env(safe-area-inset-bottom) + 12px)}}
.app-credit b{color:#B0840A;font-weight:800}body.theme-dark .app-credit b{color:#E2B681}
.app-credit i{color:#DD9B27;margin-inline-end:4px;vertical-align:-1px}
@media print{.app-credit{display:none}}
