/* هوية الفرس فوق ثيم Filament (بلا بناء Vite) — الألوان من design/ */
:root { --alf-navy:#001C3A; --alf-navy-2:#062448; --alf-gold:#C99A45; --alf-gold-t:#E2B35B; }
.fi-sidebar { background: linear-gradient(180deg,#0A2556 0%,#011B3B 100%) !important; }
.fi-sidebar .fi-sidebar-header { background: transparent !important; border-bottom: 1px solid rgba(201,154,69,.35); box-shadow:none !important; }
.fi-sidebar .fi-sidebar-item-label, .fi-sidebar .fi-sidebar-group-label { color: #DCE4F0 !important; }
.fi-sidebar .fi-sidebar-item-icon { color: #E0B25C !important; }
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: rgba(201,154,69,.18) !important; }
.fi-sidebar .fi-sidebar-item.fi-active .fi-sidebar-item-label { color: var(--alf-gold-t) !important; }
.fi-sidebar .fi-sidebar-item-btn:hover { background: rgba(255,255,255,.06) !important; }
.fi-topbar nav { border-bottom: 2px solid var(--alf-gold); }
.fi-logo img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
/* ألوان تقادم الطلبات (RQ-03) */
.alf-age-new { background: #E9F8EF !important; }
.alf-age-old { background: #FFF7DB !important; }
.alf-age-stale { background: #FDEBEB !important; }
/* الوارد */
.alf-inbox { display:grid; grid-template-columns: 380px 1fr; gap:0; background:#fff; border-radius:14px; box-shadow:0 1px 3px rgba(0,0,0,.08); min-height:560px; overflow:hidden; }
.dark .alf-inbox { background: rgb(24 24 27); }
.alf-inbox-list { border-inline-end:1px solid rgba(0,0,0,.08); overflow:auto; max-height:72vh; }
.alf-msg { display:block; width:100%; text-align:start; padding:12px 14px; border-bottom:1px solid rgba(0,0,0,.06); cursor:pointer; }
.alf-msg:hover { background: rgba(6,36,72,.04); }
.alf-msg.is-active { background: rgba(6,36,72,.07); box-shadow: inset -3px 0 0 var(--alf-gold); }
.alf-msg.is-unread .alf-name { font-weight: 700; }
.alf-msg.is-unread .alf-name::before { content:""; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--alf-gold); margin-inline-end:6px; }
.alf-kind { font-size:11px; font-weight:700; border-radius:6px; padding:1px 7px; margin-inline-end:6px; }
.alf-kind-viewing { background:#E4ECFA; color:#1C3F7A; } .alf-kind-whatsapp_click { background:#DDF5E6; color:#14632F; } .alf-kind-pm_quote { background:#F8EEDB; color:#8E6224; } .alf-kind-valuation { background:#EEE; color:#333; }
.alf-detail { padding:22px; }
.alf-kv { display:grid; grid-template-columns:160px 1fr; gap:8px 14px; margin:14px 0; }
.alf-kv dt { color:#5A6474; } .alf-kv dd { margin:0; font-weight:600; }
@media (max-width: 1000px) { .alf-inbox { grid-template-columns: 1fr; } }

/* بوابة المندوب: عقارات تطابق الطلب */
.alf-matches{list-style:none;margin:0;padding:0}
.alf-matches li{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 0;border-top:1px solid rgb(0 0 0 / .06)}
.alf-matches li:first-child{border-top:0}
.alf-matches img{width:80px;height:56px;object-fit:cover;border-radius:8px}
.alf-match-body{flex:1;min-width:0}
.alf-match-body a{font-weight:700;color:#062448}
.alf-match-body a:hover{text-decoration:underline}
.alf-match-body small{display:block;color:#6b7280;font-size:13px}
.alf-match-empty{color:#6b7280;font-size:14px}

/* روابط تحت نموذج دخول المندوب */
.alf-login-links { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; font-size: .875rem; }
.alf-login-links a { color: #0b3463; font-weight: 600; }
.alf-login-links a:hover { text-decoration: underline; }

/* لوحة التحكم: أرقام كحلية، عناوين بلمسة ذهبية، بطاقات تتحرك عند المرور */
.fi-page-dashboard .fi-header-heading { color: var(--alf-navy-2); }
.fi-page-dashboard .fi-wi-stats-overview-stat { border-radius: 16px; transition: box-shadow .15s, transform .15s; }
.fi-page-dashboard a.fi-wi-stats-overview-stat:hover { box-shadow: 0 6px 18px rgba(6,36,72,.12); transform: translateY(-1px); }
.fi-page-dashboard .fi-wi-stats-overview-stat-value { color: var(--alf-navy-2); font-weight: 800; }
.fi-page-dashboard .fi-wi-stats-overview-stat-label { font-weight: 700; }
.fi-page-dashboard .fi-wi-stats-overview-header-heading,
.fi-page-dashboard .fi-section-header-heading,
.fi-page-dashboard .fi-ta-header-heading { color: var(--alf-navy-2); font-weight: 800; }
.fi-page-dashboard .fi-wi-stats-overview-header-heading::after { content:""; display:block; width:36px; height:3px; border-radius:2px; background:var(--alf-gold); margin-top:6px; }
.fi-page-dashboard .fi-wi-chart .fi-section, .fi-page-dashboard .fi-wi-table .fi-ta-ctn { border-radius: 16px; }
