/* /Components/Dashboard/CitiesCard.razor.rz.scp.css */
/* =====================================================================
   CitiesCard.razor.css  -  ④ المدن — مبيعات السنة
   البادئة cic- (فريدة) عشان ماتتعارضش مع كلاسات app.css العامة.
   ===================================================================== */

.cic[b-8m916nbq7v] { display: flex; flex-direction: column; gap: 12px; }

/* ---------------- العنوان ---------------- */
.cic-head[b-8m916nbq7v] { display: flex; align-items: center; gap: 12px; padding-inline-end: 44px; /* مكان زرار التكبير ⤢ */ }
.cic-icon[b-8m916nbq7v] {
    flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px;
    background: linear-gradient(135deg, #E8A818, #F8C808); color: var(--petrol-deep);
    box-shadow: 0 8px 16px -8px rgba(232, 168, 24, .7);
}
.cic-icon svg[b-8m916nbq7v] { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cic-titles[b-8m916nbq7v] { flex: 1; min-width: 0; }
.cic-titles h4[b-8m916nbq7v] { margin: 0; font-size: 1.08rem; color: var(--ink); }
.cic-titles p[b-8m916nbq7v] { margin: 2px 0 0; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cic-period[b-8m916nbq7v] { text-align: end; }
[dir="rtl"] .cic-period[b-8m916nbq7v] { text-align: right; }

.cic-tools[b-8m916nbq7v] { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cic-more[b-8m916nbq7v] {
    flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px;
    font-size: .8rem; font-weight: 600; color: var(--petrol); background: var(--mist); text-decoration: none; transition: background .2s;
    margin-inline-start: auto;
}
.cic-more:hover[b-8m916nbq7v] { background: var(--lemon-soft); }
.cic-more svg[b-8m916nbq7v] { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
[dir="rtl"] .cic-more svg[b-8m916nbq7v] { transform: scaleX(-1); }

/* ---------------- جملة الملخّص ---------------- */
.cic-insight[b-8m916nbq7v] {
    margin: 0; padding: 10px 12px; border-radius: 14px; font-size: .86rem; line-height: 1.7; color: var(--ink);
    background: linear-gradient(135deg, var(--lemon-soft), #fff 85%);
    border-inline-start: 4px solid var(--lemon);
    animation: cic-in-b-8m916nbq7v .45s cubic-bezier(.2, .8, .2, 1) both;
}

/* ---------------- الأرقام ---------------- */
.cic-stats[b-8m916nbq7v] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cic-stat[b-8m916nbq7v] {
    padding: 10px 11px; border-radius: 15px; background: var(--mist);
    display: flex; flex-direction: column; gap: 1px; min-width: 0;
    animation: cic-in-b-8m916nbq7v .45s cubic-bezier(.2, .8, .2, 1) both;
}
.cic-stat:nth-child(2)[b-8m916nbq7v] { animation-delay: .05s; }
.cic-stat:nth-child(3)[b-8m916nbq7v] { animation-delay: .1s; }
.cic-stat span[b-8m916nbq7v] { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cic-stat b[b-8m916nbq7v] { font-size: 1.18rem; color: var(--ink); display: inline-flex; align-items: center; gap: 3px; }
.cic-stat small[b-8m916nbq7v] { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cic-stat.is-main[b-8m916nbq7v] { background: linear-gradient(135deg, #0A5878, #073F57); }
.cic-stat.is-main span[b-8m916nbq7v], .cic-stat.is-main small[b-8m916nbq7v] { color: rgba(255, 255, 255, .75); }
.cic-stat.is-main b[b-8m916nbq7v] { color: #fff; font-size: 1.3rem; }
.cic-stat.is-up b[b-8m916nbq7v] { color: var(--leaf); }
.cic-stat.is-down b[b-8m916nbq7v] { color: var(--danger); }
.cic-stat b svg[b-8m916nbq7v] { width: 14px; height: 14px; fill: currentColor; }

/* ---------------- المدن ---------------- */
.cic-list[b-8m916nbq7v] { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cic-row[b-8m916nbq7v] {
    position: relative; padding: 7px 9px 8px; border-radius: 12px; cursor: pointer; outline: none;
    transition: background .15s;
    animation: cic-in-b-8m916nbq7v .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d);
}
.cic-row:hover[b-8m916nbq7v], .cic-row.is-hover[b-8m916nbq7v], .cic-row:focus-visible[b-8m916nbq7v] { background: var(--mist); }
.cic-row:focus-visible[b-8m916nbq7v] { box-shadow: inset 0 0 0 2px var(--lemon); }
.cic-row.is-hover[b-8m916nbq7v] { z-index: 5; }   /* البطاقة فوق الصفوف اللي بعده */

.cic-line[b-8m916nbq7v] { display: flex; align-items: baseline; gap: 7px; font-size: .84rem; min-width: 0; }
.cic-rank[b-8m916nbq7v] {
    flex: none; width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; align-self: center;
    font-size: .7rem; font-weight: 700; background: #e7eff2; color: var(--petrol);
}
.cic-row.is-top .cic-rank[b-8m916nbq7v] { background: var(--lemon); color: var(--petrol-deep); }
.cic-name[b-8m916nbq7v] { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cic-val[b-8m916nbq7v] { flex: none; color: var(--ink); font-weight: 700; }
.cic-share[b-8m916nbq7v] { flex: none; min-width: 42px; text-align: end; color: var(--muted); font-size: .76rem; }
.cic-yoy[b-8m916nbq7v] {
    flex: none; min-width: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
    padding: 1px 6px; border-radius: 999px; font-size: .72rem; font-weight: 700;
}
.cic-yoy svg[b-8m916nbq7v] { width: 10px; height: 10px; fill: currentColor; }
.cic-yoy.is-up[b-8m916nbq7v] { color: #24742a; background: #e6f4e6; }
.cic-yoy.is-down[b-8m916nbq7v] { color: var(--danger); background: #fdecea; }
.cic-yoy.is-na[b-8m916nbq7v] { color: var(--petrol); background: #e7f1f5; font-weight: 600; }

.cic-track[b-8m916nbq7v] { position: relative; height: 9px; margin-top: 5px; margin-inline-start: 27px; border-radius: 999px; background: #edf3f5; }
.cic-bar[b-8m916nbq7v] {
    position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); border-radius: inherit;
    background: linear-gradient(90deg, #14809A, #0A5878);
    transform-origin: left; animation: cic-grow-b-8m916nbq7v .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d);
}
[dir="rtl"] .cic-bar[b-8m916nbq7v] { transform-origin: right; background: linear-gradient(270deg, #14809A, #0A5878); }
.cic-row.is-top .cic-bar[b-8m916nbq7v] { background: linear-gradient(90deg, #F8C808, #E8A818); }
[dir="rtl"] .cic-row.is-top .cic-bar[b-8m916nbq7v] { background: linear-gradient(270deg, #F8C808, #E8A818); }
/* علامة العام الماضي */
.cic-prev[b-8m916nbq7v] {
    position: absolute; top: -3px; bottom: -3px; inset-inline-start: var(--p); width: 3px; margin-inline-start: -1.5px;
    border-radius: 2px; background: var(--ink); opacity: .55;
}

/* غير مربوط (رمادي) */
.cic-row.is-unlinked[b-8m916nbq7v] { margin-top: 4px; border-top: 1px dashed var(--line); border-radius: 0 0 12px 12px; }
.cic-row.is-unlinked .cic-name[b-8m916nbq7v], .cic-row.is-unlinked .cic-val[b-8m916nbq7v] { color: #7b8c93; font-style: italic; }
.cic-row.is-unlinked .cic-rank[b-8m916nbq7v] { background: #eef1f2; color: #9aa7ac; }
.cic-row.is-unlinked .cic-bar[b-8m916nbq7v] { background: repeating-linear-gradient(135deg, #b9c4c8 0 5px, #cfd7da 5px 10px); }

/* بطاقة المدينة */
.cic-tip[b-8m916nbq7v] {
    position: absolute; z-index: 4; top: calc(100% - 2px); inset-inline-start: 27px; min-width: 230px; max-width: calc(100% - 27px);
    display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 14px;
    background: rgba(18, 49, 63, .97); color: #fff; font-size: .79rem; pointer-events: none;
    box-shadow: 0 16px 30px -12px rgba(18, 49, 63, .7);
    animation: cic-in-b-8m916nbq7v .15s ease-out both;
}
.cic-tip.is-above[b-8m916nbq7v] { top: auto; bottom: calc(100% - 4px); }   /* آخر الصفوف: البطاقة فوق عشان ماتخرجش برا الكارت */
.cic-tip b[b-8m916nbq7v] { font-size: .84rem; margin-bottom: 2px; color: var(--lemon); }
.cic-tip span[b-8m916nbq7v] { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.cic-tip span em[b-8m916nbq7v] { font-style: normal; font-weight: 700; margin-inline-start: auto; }
.cic-tip .is-up em[b-8m916nbq7v] { color: #8fe39a; }
.cic-tip .is-down em[b-8m916nbq7v] { color: #ff9c92; }
.cic-tip .is-sub[b-8m916nbq7v] { opacity: .78; }
.cic-tip .is-note[b-8m916nbq7v] { opacity: .7; font-size: .74rem; white-space: normal; }
.cic-tip span:nth-of-type(4)[b-8m916nbq7v] { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 4px; margin-top: 2px; }

.cic-all[b-8m916nbq7v] {
    align-self: center; border: 1px solid var(--line); background: #fff; color: var(--petrol); border-radius: 999px;
    padding: 5px 14px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; transition: background .15s;
}
.cic-all:hover[b-8m916nbq7v] { background: var(--lemon-soft); }

/* مفتاح الرسم */
.cic-legend[b-8m916nbq7v] { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .74rem; color: var(--muted); }
.cic-legend span[b-8m916nbq7v] { display: inline-flex; align-items: center; gap: 6px; }
.cic-legend i[b-8m916nbq7v] { display: inline-block; width: 14px; height: 8px; border-radius: 999px; }
.cic-legend .sw-bar[b-8m916nbq7v] { background: #0A5878; }
.cic-legend .sw-prev[b-8m916nbq7v] { width: 3px; height: 12px; border-radius: 2px; background: var(--ink); opacity: .55; }
.cic-legend .sw-unl[b-8m916nbq7v] { background: repeating-linear-gradient(135deg, #b9c4c8 0 3px, #cfd7da 3px 6px); }

/* هيكل التحميل */
.cic-skel-line[b-8m916nbq7v], .cic-stat.is-skel span[b-8m916nbq7v], .cic-stat.is-skel b[b-8m916nbq7v], .cic-row.is-skel i[b-8m916nbq7v] {
    display: block; border-radius: 6px;
    background: linear-gradient(90deg, #e3ecef 0%, #f3f7f8 50%, #e3ecef 100%); background-size: 200% 100%;
    animation: cic-shine-b-8m916nbq7v 1.6s ease-in-out infinite;
}
.cic-skel-line[b-8m916nbq7v] { height: 44px; border-radius: 14px; }
.cic-stat.is-skel span[b-8m916nbq7v] { height: 10px; width: 60%; }
.cic-stat.is-skel b[b-8m916nbq7v] { height: 18px; width: 80%; margin-top: 6px; }
.cic-row.is-skel[b-8m916nbq7v] { cursor: default; animation: none; }
.cic-row.is-skel i:first-child[b-8m916nbq7v] { height: 11px; width: 45%; margin-bottom: 7px; animation-delay: var(--d); }
.cic-row.is-skel i:last-child[b-8m916nbq7v] { height: 9px; width: var(--w); border-radius: 999px; animation-delay: var(--d); }

.cic-empty[b-8m916nbq7v] { padding: 26px 12px; text-align: center; color: var(--muted); font-size: .88rem; background: var(--mist); border-radius: 14px; }
.cic-error[b-8m916nbq7v] {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border-radius: 14px; background: #fdecea; color: var(--danger); font-size: .88rem;
}
.cic-error button[b-8m916nbq7v] {
    flex: none; border: 0; border-radius: 999px; padding: 6px 14px; background: #fff; color: var(--danger);
    font: inherit; font-weight: 600; cursor: pointer;
}

/* متكبّر: كل المدن والكلام أكبر */
.cic.is-max[b-8m916nbq7v] { gap: 16px; max-width: 1100px; margin-inline: auto; }
.cic.is-max .cic-titles h4[b-8m916nbq7v] { font-size: 1.3rem; }
.cic.is-max .cic-stat b[b-8m916nbq7v] { font-size: 1.45rem; }
.cic.is-max .cic-line[b-8m916nbq7v] { font-size: .95rem; }
.cic.is-max .cic-track[b-8m916nbq7v] { height: 12px; }

@keyframes cic-grow-b-8m916nbq7v { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cic-in-b-8m916nbq7v { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes cic-shine-b-8m916nbq7v { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

@media (prefers-reduced-motion: reduce) {
    .cic-row[b-8m916nbq7v], .cic-bar[b-8m916nbq7v], .cic-stat[b-8m916nbq7v], .cic-insight[b-8m916nbq7v], .cic-skel-line[b-8m916nbq7v], .cic-stat.is-skel span[b-8m916nbq7v], .cic-stat.is-skel b[b-8m916nbq7v], .cic-row.is-skel i[b-8m916nbq7v] { animation: none; }
}

/* =====================================================================
   الفترة: [سنة | شهر | يوم]  ‹ 2026 ›
   ===================================================================== */
.cic-period-bar[b-8m916nbq7v] { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cic-seg[b-8m916nbq7v] { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); }
.cic-seg button[b-8m916nbq7v] {
    border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 600;
    padding: 5px 13px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.cic-seg button:hover[b-8m916nbq7v] { color: var(--petrol-deep); }
.cic-seg button.is-on[b-8m916nbq7v] { background: var(--petrol); color: #fff; box-shadow: 0 4px 10px -6px rgba(10, 88, 120, .8); }
.cic-nav[b-8m916nbq7v] { display: inline-flex; align-items: center; gap: 4px; }
.cic-arrow[b-8m916nbq7v] {
    width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; cursor: pointer;
    border: 1px solid var(--line); background: #fff; color: var(--petrol); transition: background .15s, border-color .15s;
}
.cic-arrow:hover:not(:disabled)[b-8m916nbq7v] { background: var(--lemon-soft); border-color: var(--lemon-deep); }
.cic-arrow:disabled[b-8m916nbq7v] { opacity: .35; cursor: default; }
.cic-arrow svg[b-8m916nbq7v] { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] .cic-arrow svg[b-8m916nbq7v] { transform: scaleX(-1); }
.cic-label[b-8m916nbq7v] { min-width: 84px; text-align: center; font-weight: 700; color: var(--ink); font-size: .92rem; }
.cic-nav[b-8m916nbq7v]  .cic-date { width: 150px; }

.cic-body[b-8m916nbq7v] { display: flex; flex-direction: column; gap: 12px; transition: opacity .2s; }
.cic-body.is-busy[b-8m916nbq7v] { opacity: .5; pointer-events: none; }
.cic-tip .is-hint[b-8m916nbq7v] { opacity: .6; font-size: .72rem; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 4px; margin-top: 2px; }

/* =====================================================================
   نافذة تفاصيل المدينة (cid-)
   ===================================================================== */
.cid[b-8m916nbq7v] { display: flex; flex-direction: column; gap: 14px; }
.cid-chips[b-8m916nbq7v] { display: flex; flex-wrap: wrap; gap: 6px; }
.cid-chip[b-8m916nbq7v] {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    background: var(--mist); border: 1px solid var(--line); font-size: .8rem; color: var(--ink);
}
.cid-chip i[b-8m916nbq7v] { width: 10px; height: 10px; border-radius: 3px; }
.cid-chip.is-cur i[b-8m916nbq7v] { background: #0A5878; }
.cid-chip.is-prev i[b-8m916nbq7v] { width: 3px; height: 12px; border-radius: 2px; background: var(--ink); opacity: .55; }
.cid-chip.is-warn[b-8m916nbq7v] { background: #FFF1E8; border-color: #F7C9A8; color: var(--warn); font-weight: 600; }

.cid-kpis[b-8m916nbq7v] { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cid-kpi[b-8m916nbq7v] { padding: 11px 13px; border-radius: 15px; background: var(--mist); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cid-kpi span[b-8m916nbq7v] { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cid-kpi b[b-8m916nbq7v] { font-size: 1.25rem; color: var(--ink); }
.cid-kpi small[b-8m916nbq7v] { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cid-kpi.is-main[b-8m916nbq7v] { background: linear-gradient(135deg, #0A5878, #073F57); }
.cid-kpi.is-main span[b-8m916nbq7v], .cid-kpi.is-main small[b-8m916nbq7v] { color: rgba(255, 255, 255, .75); }
.cid-kpi.is-main b[b-8m916nbq7v] { color: #fff; }
.cid-kpi.is-up b[b-8m916nbq7v], .cid-kpi.is-up small[b-8m916nbq7v] { color: var(--leaf); }
.cid-kpi.is-down b[b-8m916nbq7v], .cid-kpi.is-down small[b-8m916nbq7v] { color: var(--danger); }

.cid-sec[b-8m916nbq7v] { display: flex; flex-direction: column; gap: 8px; }
.cid-sec h5[b-8m916nbq7v] { margin: 0; font-size: .95rem; color: var(--petrol-deep); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cid-sec h5 small[b-8m916nbq7v] { font-size: .76rem; font-weight: 500; color: var(--muted); }
.cid-mix[b-8m916nbq7v] { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--mist); gap: 2px; }
.cid-mix span[b-8m916nbq7v] { width: var(--w); background: var(--c); min-width: 3px; }
.cid-ch[b-8m916nbq7v] { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 6px 14px; }
.cid-ch-row[b-8m916nbq7v] {
    display: grid; grid-template-columns: minmax(80px, 1fr) auto 48px auto 66px; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 11px; background: var(--mist); font-size: .82rem;
}
.cid-ch-name[b-8m916nbq7v] { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cid-ch-name i[b-8m916nbq7v] { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.cid-ch-share[b-8m916nbq7v] { color: var(--muted); font-size: .76rem; text-align: end; }
.cid-ch-prev[b-8m916nbq7v] { color: var(--muted); font-size: .76rem; }
.cid-ch-chg[b-8m916nbq7v] { text-align: center; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 1px 6px; }
.cid-ch-chg.is-up[b-8m916nbq7v] { color: #24742a; background: #e6f4e6; }
.cid-ch-chg.is-down[b-8m916nbq7v] { color: var(--danger); background: #fdecea; }
.cid-ch-chg.is-na[b-8m916nbq7v] { color: var(--muted); }
.cid-note[b-8m916nbq7v] { margin: 0; font-size: .74rem; color: var(--muted); }

@media (max-width: 900px) { .cid-kpis[b-8m916nbq7v] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cic-stat.is-cmp span[b-8m916nbq7v] { white-space: normal; line-height: 1.35; }
.cid[b-8m916nbq7v]  .cid-grid > .mx-main > .sg-tools { padding-inline-end: 48px; }   /* مكان زرار ⤢ بتاع الجدول */
/* /Components/Dashboard/CustomerMonthCard.razor.rz.scp.css */
/* =====================================================================
   CustomerMonthCard.razor.css  -  ① مبيعات العملاء — الشهر الحالي
   البادئة cmc- (فريدة) عشان ماتتعارضش مع كلاسات app.css العامة.
   ===================================================================== */

.cmc[b-5pdtgqfgxb] { display: flex; flex-direction: column; gap: 14px; }

/* ---------------- العنوان ---------------- */
.cmc-head[b-5pdtgqfgxb] { display: flex; align-items: center; gap: 12px; padding-inline-end: 44px; /* مكان زرار التكبير ⤢ */ }
.cmc-icon[b-5pdtgqfgxb] {
    flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px;
    background: linear-gradient(135deg, #0A5878, #14809A); color: #fff;
    box-shadow: 0 8px 16px -8px rgba(10, 88, 120, .6);
}
.cmc-icon svg[b-5pdtgqfgxb] { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cmc-titles[b-5pdtgqfgxb] { flex: 1; min-width: 0; }
.cmc-titles h4[b-5pdtgqfgxb] { margin: 0; font-size: 1.08rem; color: var(--ink); }
.cmc-titles p[b-5pdtgqfgxb] { margin: 2px 0 0; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmc-more[b-5pdtgqfgxb] {
    flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px;
    font-size: .82rem; font-weight: 600; color: var(--petrol); background: var(--mist); text-decoration: none; transition: background .2s;
}
.cmc-more:hover[b-5pdtgqfgxb] { background: var(--lemon-soft); }
.cmc-more svg[b-5pdtgqfgxb] { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
[dir="rtl"] .cmc-more svg[b-5pdtgqfgxb] { transform: scaleX(-1); }

/* ---------------- الفلاتر ---------------- */
.cmc-filters[b-5pdtgqfgxb] { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmc-chips[b-5pdtgqfgxb] { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; }
.cmc-chip[b-5pdtgqfgxb] {
    --c: var(--petrol);
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; color: var(--muted);
    font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.cmc-chip:hover[b-5pdtgqfgxb] { transform: translateY(-1px); border-color: color-mix(in srgb, var(--c) 45%, #fff); }
.cmc-chip i[b-5pdtgqfgxb] { width: 10px; height: 10px; border-radius: 4px; background: var(--c); opacity: .35; transition: opacity .2s; }
.cmc-chip b[b-5pdtgqfgxb] { color: var(--ink); font-weight: 700; }
.cmc-chip small[b-5pdtgqfgxb] { color: var(--muted); font-weight: 600; }
.cmc-chip.is-on[b-5pdtgqfgxb] {
    background: color-mix(in srgb, var(--c) 11%, #fff);
    border-color: color-mix(in srgb, var(--c) 55%, #fff);
    color: var(--ink);
    box-shadow: 0 6px 14px -10px var(--c);
}
.cmc-chip.is-on i[b-5pdtgqfgxb] { opacity: 1; }
.cmc-chip.is-all[b-5pdtgqfgxb] { --c: #12313F; }
.cmc-chip.is-all.is-on[b-5pdtgqfgxb] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cmc-chip.is-all.is-on b[b-5pdtgqfgxb] { color: var(--lemon); }
.cmc-client[b-5pdtgqfgxb] { flex: 0 1 260px; min-width: 200px; }

/* ---------------- الأرقام ---------------- */
.cmc-stats[b-5pdtgqfgxb] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; transition: opacity .2s; }
.cmc-stats.is-busy[b-5pdtgqfgxb] { opacity: .55; }
.cmc-stat[b-5pdtgqfgxb] {
    padding: 11px 13px; border-radius: 16px; background: var(--mist);
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
    animation: cmc-in-b-5pdtgqfgxb .45s cubic-bezier(.2, .8, .2, 1) both;
}
.cmc-stat:nth-child(2)[b-5pdtgqfgxb] { animation-delay: .05s; }
.cmc-stat:nth-child(3)[b-5pdtgqfgxb] { animation-delay: .1s; }
.cmc-stat:nth-child(4)[b-5pdtgqfgxb] { animation-delay: .15s; }
.cmc-stat span[b-5pdtgqfgxb] { font-size: .77rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmc-stat b[b-5pdtgqfgxb] { font-size: 1.2rem; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.cmc-stat small[b-5pdtgqfgxb] { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmc-stat.is-main[b-5pdtgqfgxb] { background: linear-gradient(135deg, #0A5878, #073F57); }
.cmc-stat.is-main span[b-5pdtgqfgxb], .cmc-stat.is-main small[b-5pdtgqfgxb] { color: rgba(255, 255, 255, .75); }
.cmc-stat.is-main b[b-5pdtgqfgxb] { color: #fff; font-size: 1.35rem; }
.cmc-stat.is-up b[b-5pdtgqfgxb] { color: var(--leaf); }
.cmc-stat.is-down b[b-5pdtgqfgxb] { color: var(--danger); }
.cmc-stat b svg[b-5pdtgqfgxb] { width: 15px; height: 15px; fill: currentColor; }

.cmc-stat.is-skel span[b-5pdtgqfgxb], .cmc-stat.is-skel b[b-5pdtgqfgxb] {
    display: block; border-radius: 6px; height: 10px; width: 60%;
    background: linear-gradient(90deg, #e3ecef 0%, #f3f7f8 50%, #e3ecef 100%); background-size: 200% 100%;
    animation: cmc-shine-b-5pdtgqfgxb 1.6s ease-in-out infinite;
}
.cmc-stat.is-skel b[b-5pdtgqfgxb] { height: 18px; width: 80%; margin-top: 6px; }

/* ---------------- شريط نسب الأنواع ---------------- */
.cmc-share[b-5pdtgqfgxb] { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--mist); gap: 2px; }
.cmc-share span[b-5pdtgqfgxb] {
    width: var(--w); background: var(--c); position: relative; min-width: 3px;
    display: grid; place-items: center; transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
.cmc-share em[b-5pdtgqfgxb] { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); line-height: 1; }

/* ---------------- الرسم ---------------- */
.cmc-chart[b-5pdtgqfgxb] { position: relative; }
.cmc-chart svg[b-5pdtgqfgxb] { display: block; width: 100%; height: auto; overflow: visible; }
.cmc-grid[b-5pdtgqfgxb] { stroke: #e7eef1; stroke-width: 1; stroke-dasharray: 3 4; }
.cmc-grid.is-zero[b-5pdtgqfgxb] { stroke: #cfdde2; stroke-dasharray: none; }
.cmc-axis[b-5pdtgqfgxb] { font-size: 16px; fill: var(--muted); }
.cmc-day[b-5pdtgqfgxb] { font-size: 16px; fill: #7b929c; }
.cmc-day.is-fri[b-5pdtgqfgxb] { fill: #c2410c; opacity: .8; }
.cmc-day.is-today[b-5pdtgqfgxb] { fill: #b77800; font-weight: 700; }
.cmc-band[b-5pdtgqfgxb] { fill: rgba(10, 88, 120, .06); rx: 8px; }
.cmc-band.is-today[b-5pdtgqfgxb] { fill: #FFF6CF; }
.cmc-col[b-5pdtgqfgxb] { transform-box: fill-box; transform-origin: bottom; animation: cmc-grow-b-5pdtgqfgxb .65s cubic-bezier(.2, .8, .2, 1) both; }
.cmc-seg[b-5pdtgqfgxb] { stroke: #fff; stroke-width: 1; transition: filter .15s; }
.cmc-col:hover .cmc-seg[b-5pdtgqfgxb] { filter: brightness(1.08) saturate(1.1); }
.cmc-future[b-5pdtgqfgxb] { fill: none; stroke: #cdd9de; stroke-dasharray: 3 3; }
.cmc-val[b-5pdtgqfgxb] { font-size: 16px; font-weight: 700; fill: var(--petrol-deep); animation: cmc-in-b-5pdtgqfgxb .4s .5s both; }
.cmc-val.is-today[b-5pdtgqfgxb] { fill: #9a6400; }
.cmc-prev[b-5pdtgqfgxb] { fill: none; stroke: #64748b; stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.cmc-hit[b-5pdtgqfgxb] { fill: transparent; cursor: pointer; }

/* بطاقة اليوم */
.cmc-tip[b-5pdtgqfgxb] {
    position: absolute; top: -6px; left: clamp(130px, var(--x), calc(100% - 130px)); transform: translate(-50%, -100%);
    z-index: 3; pointer-events: none; min-width: 200px;
    display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 14px;
    background: rgba(18, 49, 63, .96); color: #fff; font-size: .8rem; white-space: nowrap;
    box-shadow: 0 16px 30px -12px rgba(18, 49, 63, .7);
    animation: cmc-in-b-5pdtgqfgxb .15s ease-out both;
}
.cmc-tip b[b-5pdtgqfgxb] { font-size: .78rem; opacity: .85; font-weight: 600; margin-bottom: 3px; }
.cmc-tip span[b-5pdtgqfgxb] { display: flex; align-items: center; gap: 7px; }
.cmc-tip span i[b-5pdtgqfgxb] { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.cmc-tip span em[b-5pdtgqfgxb] { font-style: normal; font-weight: 700; margin-inline-start: auto; padding-inline-start: 14px; }
.cmc-tip span small[b-5pdtgqfgxb] { opacity: .7; min-width: 42px; text-align: end; }
.cmc-tip .is-total[b-5pdtgqfgxb] { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 4px; margin-top: 2px; font-weight: 700; }
.cmc-tip .is-total i[b-5pdtgqfgxb] { background: var(--lemon); }
.cmc-tip .is-total em[b-5pdtgqfgxb] { color: var(--lemon); }
.cmc-tip .is-prev[b-5pdtgqfgxb] { opacity: .75; }
.cmc-tip .is-prev i[b-5pdtgqfgxb] { background: transparent; border-top: 2px dotted #cbd5e1; border-radius: 0; height: 0; }

/* مفتاح الرسم */
.cmc-legend[b-5pdtgqfgxb] { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted); }
.cmc-legend span[b-5pdtgqfgxb] { display: inline-flex; align-items: center; gap: 6px; }
.cmc-legend i[b-5pdtgqfgxb] { display: inline-block; width: 11px; height: 11px; border-radius: 4px; }
.cmc-legend .sw-today[b-5pdtgqfgxb] { background: #FFF6CF; box-shadow: inset 0 0 0 1px #F5C842; }
.cmc-legend .sw-prev[b-5pdtgqfgxb] { height: 0; width: 16px; border-top: 3px dotted #64748b; border-radius: 0; }

/* هيكل التحميل */
.cmc-chart-skel[b-5pdtgqfgxb] { height: 220px; display: flex; align-items: flex-end; gap: 6px; padding: 0 4px 24px; }
.cmc-chart-skel i[b-5pdtgqfgxb] {
    flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px;
    background: linear-gradient(90deg, #e3ecef 0%, #f3f7f8 50%, #e3ecef 100%); background-size: 200% 100%;
    animation: cmc-shine-b-5pdtgqfgxb 1.6s ease-in-out infinite; animation-delay: var(--d);
}

.cmc-error[b-5pdtgqfgxb] {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border-radius: 14px; background: #fdecea; color: var(--danger); font-size: .88rem;
}
.cmc-error button[b-5pdtgqfgxb] {
    flex: none; border: 0; border-radius: 999px; padding: 6px 14px; background: #fff; color: var(--danger);
    font: inherit; font-weight: 600; cursor: pointer;
}

/* متكبّر: الرسم أطول والكلام أوضح */
.cmc.is-max[b-5pdtgqfgxb] { gap: 18px; }
.cmc.is-max .cmc-titles h4[b-5pdtgqfgxb] { font-size: 1.3rem; }
.cmc.is-max .cmc-stat b[b-5pdtgqfgxb] { font-size: 1.45rem; }

/* شاشات صغيرة: الرسم يتمرّر بالعرض بدل ما يصغر */
@media (max-width: 760px) {
    .cmc-stats[b-5pdtgqfgxb] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cmc-client[b-5pdtgqfgxb] { flex: 1 1 100%; }
    .cmc-chart[b-5pdtgqfgxb] { overflow-x: auto; overflow-y: visible; padding-top: 140px; margin-top: -140px; -webkit-overflow-scrolling: touch; }
    .cmc-chart svg[b-5pdtgqfgxb] { min-width: 680px; }
    .cmc-tip[b-5pdtgqfgxb] { top: 134px; }
}

@keyframes cmc-grow-b-5pdtgqfgxb { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes cmc-in-b-5pdtgqfgxb { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes cmc-shine-b-5pdtgqfgxb { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

@media (prefers-reduced-motion: reduce) {
    .cmc-col[b-5pdtgqfgxb], .cmc-stat[b-5pdtgqfgxb], .cmc-val[b-5pdtgqfgxb], .cmc-chart-skel i[b-5pdtgqfgxb], .cmc-stat.is-skel span[b-5pdtgqfgxb], .cmc-stat.is-skel b[b-5pdtgqfgxb], .cmc-share span[b-5pdtgqfgxb] { animation: none; transition: none; }
}
/* /Components/Dashboard/HomeDashboard.razor.rz.scp.css */
/* =====================================================================
   HomeDashboard.razor.css  -  شكل لوحة الصفحة الرئيسية (خاص بالكومبوننت)
   ===================================================================== */

.hd[b-xawxlgpnc7] { margin-top: 6px; }
.hd-head[b-xawxlgpnc7] { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hd-date[b-xawxlgpnc7] { color: var(--muted); font-size: .85rem; }

/* ---------------- كارت النظام الكبير ---------------- */
.hd-module[b-xawxlgpnc7] {
    position: relative;
    margin-bottom: 22px;
    padding: 18px 18px 20px;
    border-radius: 24px;
    background:
        radial-gradient(120% 70% at 100% 0%, rgba(248, 200, 8, .10), transparent 60%),
        linear-gradient(180deg, #ffffff, #fbfdfd);
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(18, 49, 63, .04), 0 14px 34px -18px rgba(10, 88, 120, .28);
    animation: hd-rise-b-xawxlgpnc7 .45s cubic-bezier(.2, .8, .2, 1) backwards; /* backwards مش both: عشان مايفضلش transform يحبس التكبير */
}
.hd-module.is-attendance[b-xawxlgpnc7] { background:
        radial-gradient(120% 70% at 100% 0%, rgba(56, 152, 56, .09), transparent 60%),
        linear-gradient(180deg, #ffffff, #fbfdfd); }

.hd-module-head[b-xawxlgpnc7] { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hd-module-icon[b-xawxlgpnc7] {
    flex: none; width: 46px; height: 46px; display: grid; place-items: center;
    border-radius: 14px; background: var(--lemon-soft); color: var(--petrol-deep);
    box-shadow: inset 0 0 0 1px rgba(232, 168, 24, .25);
}
.hd-module.is-sales .hd-module-icon[b-xawxlgpnc7] { background: linear-gradient(135deg, var(--petrol), var(--petrol-deep)); color: #fff; box-shadow: 0 8px 18px -8px rgba(10, 88, 120, .7); }
.hd-module.is-attendance .hd-module-icon[b-xawxlgpnc7] { background: linear-gradient(135deg, #4cae4c, var(--leaf)); color: #fff; box-shadow: 0 8px 18px -8px rgba(56, 152, 56, .7); }
.hd-module-icon svg[b-xawxlgpnc7] { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hd-module-titles[b-xawxlgpnc7] { flex: 1; min-width: 0; }
.hd-module-titles h3[b-xawxlgpnc7] { margin: 0; font-size: 1.2rem; color: var(--ink); }
.hd-module-titles p[b-xawxlgpnc7] { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }

.hd-open[b-xawxlgpnc7] {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    border-radius: 999px; background: var(--mist); color: var(--petrol); font-weight: 600; font-size: .9rem;
    text-decoration: none; transition: background .2s, transform .2s;
}
.hd-open:hover[b-xawxlgpnc7] { background: var(--lemon-soft); transform: translateY(-1px); }
.hd-open svg[b-xawxlgpnc7] { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
[dir="rtl"] .hd-open svg[b-xawxlgpnc7], [dir="rtl"] .hd-mini-go[b-xawxlgpnc7] { transform: scaleX(-1); }

/* ---------------- شبكة كارت المبيعات (حسب الرسمة) ---------------- */
.hd-sales-grid[b-xawxlgpnc7] {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas:
        "cur   cities"
        "key   mgrs"
        "month pharm";
}
.hd-a-cur[b-xawxlgpnc7]    { grid-area: cur; }
.hd-a-key[b-xawxlgpnc7]    { grid-area: key; }
.hd-a-month[b-xawxlgpnc7]  { grid-area: month; }
.hd-a-cities[b-xawxlgpnc7] { grid-area: cities; }
.hd-a-mgrs[b-xawxlgpnc7]   { grid-area: mgrs; }
.hd-a-pharm[b-xawxlgpnc7]  { grid-area: pharm; }

@media (max-width: 1100px) {
    .hd-sales-grid[b-xawxlgpnc7] { grid-template-columns: 1fr; grid-template-areas: "cur" "key" "month" "cities" "mgrs" "pharm"; }
}

/* ---------------- الكارت الصغير ---------------- */
.hd-sub[b-xawxlgpnc7] {
    position: relative;
    min-width: 0;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(18, 49, 63, .04), 0 10px 24px -20px rgba(18, 49, 63, .35);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
    animation: hd-rise-b-xawxlgpnc7 .5s cubic-bezier(.2, .8, .2, 1) backwards;
}
.hd-sub:hover[b-xawxlgpnc7] { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(18, 49, 63, .05), 0 18px 34px -20px rgba(10, 88, 120, .45); }
.hd-sub.is-live[b-xawxlgpnc7] { padding: 18px 18px 14px; }
/* الكارت ده بيتكبّر لملء الشاشة (position: fixed) ← مايتحركش عند الوقوف عليه، وإلا التكبير بيتحبس جوه الكارت */
.hd-sub.is-live:hover[b-xawxlgpnc7] { transform: none; }
/* إطار التكبير مايبقاش هو المرجع ← زرار ⤢ ولوحة «من أين هذه الأرقام؟» يتحطوا على الكارت كله (بارتفاعه الكامل) */
.hd-sub.is-live[b-xawxlgpnc7] >  .mx:not(.is-max) { position: static; }   /* إطار الكارت بس (مش الجداول اللي جوه نوافذه) */
.hd-a-key[b-xawxlgpnc7]   { animation-delay: .06s; }
.hd-a-month[b-xawxlgpnc7] { animation-delay: .12s; }
.hd-a-cities[b-xawxlgpnc7]{ animation-delay: .08s; }
.hd-a-mgrs[b-xawxlgpnc7]  { animation-delay: .14s; }
.hd-a-pharm[b-xawxlgpnc7] { animation-delay: .2s; }

/* كروت «قيد التنفيذ» */
.hd-soon[b-xawxlgpnc7] {
    padding: 16px 18px 14px;
    background: linear-gradient(180deg, #fff, #fafcfc);
    border-style: dashed;
    border-color: #c9d8de;
    display: flex; flex-direction: column; min-height: 168px;
}
.hd-soon h4[b-xawxlgpnc7] { margin: 10px 0 2px; font-size: 1.02rem; color: var(--ink); }
.hd-soon p[b-xawxlgpnc7]  { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.hd-soon-top[b-xawxlgpnc7] { display: flex; align-items: center; justify-content: space-between; }
.hd-step[b-xawxlgpnc7] {
    width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px;
    background: var(--mist); color: var(--petrol); font-weight: 700; font-size: .9rem;
    box-shadow: inset 0 0 0 1px var(--line);
}
.hd-pill[b-xawxlgpnc7] {
    padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
    background: var(--lemon-soft); color: #8a5a00; box-shadow: inset 0 0 0 1px rgba(232, 168, 24, .35);
}

/* هيكل رسم وهمي بيلمع */
.hd-skel[b-xawxlgpnc7] { margin-top: auto; padding-top: 14px; height: 70px; display: flex; align-items: flex-end; gap: 6px; }
.hd-skel i[b-xawxlgpnc7] {
    flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px;
    background: linear-gradient(90deg, #edf3f5 0%, #f7fafb 50%, #edf3f5 100%);
    background-size: 200% 100%;
    animation: hd-shine-b-xawxlgpnc7 1.8s ease-in-out infinite, hd-grow-b-xawxlgpnc7 .6s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: var(--d), var(--d);
    transform-origin: bottom;
}

/* الصيدليات: الشهر السابق | الحالي */
.hd-split[b-xawxlgpnc7] { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.hd-split > div[b-xawxlgpnc7] {
    padding: 10px 12px; border-radius: 14px; background: var(--mist);
    display: flex; flex-direction: column; gap: 3px; min-height: 64px;
}
.hd-split b[b-xawxlgpnc7] { font-size: .9rem; color: var(--ink); }
.hd-split span[b-xawxlgpnc7] { font-size: .78rem; color: var(--muted); }

/* ---------------- الحضور ---------------- */
.hd-att[b-xawxlgpnc7] { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.hd-stat[b-xawxlgpnc7] {
    display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px;
    background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit;
    transition: transform .2s, box-shadow .2s;
}
a.hd-stat:hover[b-xawxlgpnc7] { transform: translateY(-2px); box-shadow: 0 14px 26px -20px rgba(18, 49, 63, .5); }
.hd-stat span[b-xawxlgpnc7] { color: var(--muted); font-size: .88rem; }
.hd-stat b[b-xawxlgpnc7] { font-size: 1.7rem; color: var(--ink); line-height: 1.1; }
.hd-stat.is-warn b[b-xawxlgpnc7] { color: var(--warn); }
.hd-stat.is-loading span[b-xawxlgpnc7] { font-size: .85rem; }

/* ---------------- باقي الأنظمة ---------------- */
.hd-mini-grid[b-xawxlgpnc7] { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 22px; }
.hd-mini[b-xawxlgpnc7] {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px;
    background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit;
    box-shadow: 0 10px 24px -22px rgba(18, 49, 63, .5);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.hd-mini:hover[b-xawxlgpnc7] { transform: translateY(-2px); border-color: #b9ccd3; box-shadow: 0 16px 30px -22px rgba(10, 88, 120, .55); }
.hd-mini.is-soon[b-xawxlgpnc7] { opacity: .62; background: #fafcfc; border-style: dashed; }
.hd-mini .hd-module-icon[b-xawxlgpnc7] { width: 40px; height: 40px; border-radius: 12px; }
.hd-mini-t[b-xawxlgpnc7] { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hd-mini-t b[b-xawxlgpnc7] { color: var(--ink); }
.hd-mini-t small[b-xawxlgpnc7] { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-mini-go[b-xawxlgpnc7] { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }

@media (max-width: 640px) {
    .hd-module[b-xawxlgpnc7] { padding: 14px 12px 16px; border-radius: 20px; }
    .hd-open span[b-xawxlgpnc7], .hd-module-titles p[b-xawxlgpnc7] { display: none; }
}

@keyframes hd-rise-b-xawxlgpnc7 { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hd-shine-b-xawxlgpnc7 { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes hd-grow-b-xawxlgpnc7 { from { transform: scaleY(.1); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .hd-module[b-xawxlgpnc7], .hd-sub[b-xawxlgpnc7], .hd-skel i[b-xawxlgpnc7] { animation: none; }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* =====================================================================
   MainLayout.razor.css
   ---------------------------------------------------------------------
   الشكل كله اتنقل لـ wwwroot/app.css عشان يبقى فى مكان واحد سهل تعدله.
   الملف ده فاضل فيه شريط الأخطاء بتاع Blazor بس.
   ===================================================================== */

#blazor-error-ui[b-no1k3d8lez] {
    color-scheme: light only;
    background: #FFF4C2;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(7, 63, 87, 0.2);
    box-sizing: border-box;
    display: none;
    inset-inline: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-no1k3d8lez] {
        cursor: pointer;
        position: absolute;
        inset-inline-end: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* =====================================================================
   NavMenu.razor.css
   ---------------------------------------------------------------------
   فاضى عن قصد: شكل القائمة كله فى wwwroot/app.css (قسم "القائمة الجانبية").
   ===================================================================== */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-5128zksfsi],
.components-reconnect-repeated-attempt-visible[b-5128zksfsi],
.components-reconnect-failed-visible[b-5128zksfsi],
.components-pause-visible[b-5128zksfsi],
.components-resume-failed-visible[b-5128zksfsi],
.components-rejoining-animation[b-5128zksfsi] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-5128zksfsi],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-5128zksfsi],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-5128zksfsi],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-5128zksfsi],
#components-reconnect-modal.components-reconnect-retrying[b-5128zksfsi],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-5128zksfsi],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-5128zksfsi],
#components-reconnect-modal.components-reconnect-failed[b-5128zksfsi],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-5128zksfsi] {
    display: block;
}


#components-reconnect-modal[b-5128zksfsi] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-5128zksfsi 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-5128zksfsi 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-5128zksfsi 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-5128zksfsi]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-5128zksfsi 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-5128zksfsi {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-5128zksfsi {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-5128zksfsi {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-5128zksfsi] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-5128zksfsi] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-5128zksfsi] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-5128zksfsi] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-5128zksfsi] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-5128zksfsi] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-5128zksfsi] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-5128zksfsi 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-5128zksfsi] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-5128zksfsi {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Widgets/DataInfo.razor.rz.scp.css */
/* =====================================================================
   DataInfo.razor.css  -  زرار «من أين هذه الأرقام؟» + لوحة الشرح فوق الكارت
   البادئة dinfo- (فريدة).
   ===================================================================== */

.dinfo-btn[b-vv2u8yzrl7] {
    flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px;
    border: 1px dashed color-mix(in srgb, var(--petrol) 35%, #fff); background: #fff; color: var(--petrol);
    font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background .2s, border-color .2s, color .2s;
}
.dinfo-btn:hover[b-vv2u8yzrl7], .dinfo-btn.is-open[b-vv2u8yzrl7] { background: var(--lemon-soft); border-color: var(--lemon-deep); border-style: solid; color: var(--petrol-deep); }
.dinfo-btn svg[b-vv2u8yzrl7] { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dinfo-btn:focus-visible[b-vv2u8yzrl7] { outline: 2px solid var(--lemon); outline-offset: 2px; }

/* اللوحة بتغطي الكارت (أقرب أب له position: إطار Maximizable، أو الكارت نفسه في لوحة الرئيسية) */
.dinfo-back[b-vv2u8yzrl7] {
    position: absolute; inset: 0; z-index: 6; border-radius: inherit;
    background: rgba(241, 246, 247, .72); backdrop-filter: blur(2px);
    animation: dinfo-fade-b-vv2u8yzrl7 .18s ease-out both;
}
.dinfo-panel[b-vv2u8yzrl7] {
    position: absolute; inset: 6px; z-index: 7; min-height: 260px; display: flex; flex-direction: column;
    border-radius: 18px; background: #fff; overflow: hidden;
    box-shadow: 0 1px 0 rgba(18, 49, 63, .04), 0 24px 50px -18px rgba(7, 63, 87, .55);
    border: 1px solid var(--line);
    animation: dinfo-in-b-vv2u8yzrl7 .22s cubic-bezier(.2, .8, .2, 1) both;
}
.dinfo-panel:focus[b-vv2u8yzrl7] { outline: none; }

.dinfo-head[b-vv2u8yzrl7] {
    flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px;
    background: linear-gradient(135deg, #0A5878, #073F57); color: #fff;
}
.dinfo-head > div[b-vv2u8yzrl7] { flex: 1; min-width: 0; }
.dinfo-head h5[b-vv2u8yzrl7] { margin: 0; font-size: .98rem; }
.dinfo-head p[b-vv2u8yzrl7] { margin: 1px 0 0; font-size: .78rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dinfo-ico[b-vv2u8yzrl7] { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--lemon); color: var(--petrol-deep); }
.dinfo-ico svg[b-vv2u8yzrl7] { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dinfo-x[b-vv2u8yzrl7] {
    flex: none; width: 32px; height: 32px; border-radius: 10px; border: 0; display: grid; place-items: center;
    background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .15s;
}
.dinfo-x:hover[b-vv2u8yzrl7] { background: rgba(255, 255, 255, .24); }
.dinfo-x svg[b-vv2u8yzrl7] { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.dinfo-body[b-vv2u8yzrl7] { flex: 1; overflow: auto; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }

@keyframes dinfo-in-b-vv2u8yzrl7 { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dinfo-fade-b-vv2u8yzrl7 { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .dinfo-panel[b-vv2u8yzrl7], .dinfo-back[b-vv2u8yzrl7] { animation: none; }
}

@media print { .dinfo-btn[b-vv2u8yzrl7], .dinfo-back[b-vv2u8yzrl7], .dinfo-panel[b-vv2u8yzrl7] { display: none; } }
/* /Components/Widgets/GeoMapView.razor.rz.scp.css */
/* GeoMapView.razor.css - خريطة نتيجة الشات (البادئة gm-) */
.gm-head[b-df9ahfaon0] { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; padding-inline-end: 44px; /* زرار ⤢ */ }
.gm-legend[b-df9ahfaon0] { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--muted); }
.gm-legend span[b-df9ahfaon0] { display: inline-flex; align-items: center; gap: 6px; }
.gm-dot[b-df9ahfaon0] { width: 12px; height: 12px; border-radius: 50%; background: #0A5878; border: 2px solid #fff; box-shadow: 0 0 0 1px #0A5878; }
.gm-dot.is-origin[b-df9ahfaon0] { background: #F8C808; box-shadow: 0 0 0 1px #9a6400; }
.gm-open[b-df9ahfaon0] { font-size: .8rem; font-weight: 600; color: var(--petrol); text-decoration: none; padding: 5px 11px; border-radius: 999px; background: var(--mist); }
.gm-open:hover[b-df9ahfaon0] { background: var(--lemon-soft); }

.gm-map[b-df9ahfaon0] { position: relative; display: block; width: 100%; height: 420px; border: 0; border-radius: 14px; overflow: hidden; background: #e8eef0; }
.gm-canvas[b-df9ahfaon0] { position: absolute; inset: 0; }
.gm-fail[b-df9ahfaon0], .gm-nokey[b-df9ahfaon0] { font-size: .82rem; }
.gm-fail[b-df9ahfaon0] { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 20px; text-align: center; background: #fdecea; color: var(--danger); }
.gm-nokey[b-df9ahfaon0] { margin: 6px 0 0; color: var(--muted); }

.gm-list[b-df9ahfaon0] { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.gm-list li[b-df9ahfaon0] { display: flex; align-items: center; gap: 4px; border-radius: 12px; background: var(--mist); padding: 3px 4px 3px 3px; }
.gm-item[b-df9ahfaon0] { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; font: inherit; font-size: .82rem; padding: 5px 6px; border-radius: 9px; cursor: pointer; text-align: start; color: var(--ink); }
.gm-item:hover:not(:disabled)[b-df9ahfaon0] { background: #fff; }
.gm-item:disabled[b-df9ahfaon0] { cursor: default; }
.gm-rank[b-df9ahfaon0] { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #0A5878; color: #fff; font-size: .72rem; font-weight: 700; }
.gm-name[b-df9ahfaon0] { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.gm-dist[b-df9ahfaon0] { flex: none; color: var(--muted); font-size: .76rem; }
.gm-dir[b-df9ahfaon0] { flex: none; font-size: .74rem; font-weight: 600; color: var(--petrol); text-decoration: none; padding: 4px 8px; border-radius: 8px; }
.gm-dir:hover[b-df9ahfaon0] { background: var(--lemon-soft); }

@media print { .gm-map[b-df9ahfaon0], .gm-open[b-df9ahfaon0], .gm-dir[b-df9ahfaon0] { display: none; } }

/* فى النافذة: الخريطة تاخد أغلب الشاشة */
.gm.is-popup .gm-head[b-df9ahfaon0] { padding-inline-end: 0; }
.gm.is-popup .gm-map[b-df9ahfaon0] { height: min(68vh, 720px); min-height: 360px; }
.gm.is-popup .gm-list[b-df9ahfaon0] { max-height: 22vh; overflow: auto; }
/* /Components/Widgets/InfoRow.razor.rz.scp.css */
/* InfoRow.razor.css - سطر شرح في لوحة DataInfo (البادئة irow-) */
.irow[b-gjac99t7w4] {
    display: flex; gap: 10px; align-items: flex-start; padding: 10px 11px; border-radius: 14px;
    background: var(--mist); animation: irow-in-b-gjac99t7w4 .3s cubic-bezier(.2, .8, .2, 1) both;
}
.irow:nth-child(2)[b-gjac99t7w4] { animation-delay: .04s; }
.irow:nth-child(3)[b-gjac99t7w4] { animation-delay: .08s; }
.irow:nth-child(4)[b-gjac99t7w4] { animation-delay: .12s; }
.irow:nth-child(5)[b-gjac99t7w4] { animation-delay: .16s; }
.irow:nth-child(6)[b-gjac99t7w4] { animation-delay: .2s; }
.irow:nth-child(n+7)[b-gjac99t7w4] { animation-delay: .24s; }
.irow-ico[b-gjac99t7w4] {
    flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
    background: #fff; color: var(--petrol); box-shadow: 0 2px 6px -3px rgba(10, 88, 120, .35);
}
.irow-ico svg[b-gjac99t7w4] { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.irow-txt[b-gjac99t7w4] { flex: 1; min-width: 0; font-size: .84rem; line-height: 1.65; color: var(--ink); }
.irow-txt > b[b-gjac99t7w4] { display: block; font-size: .8rem; color: var(--petrol-deep); margin-bottom: 1px; }
.irow-txt[b-gjac99t7w4]  strong { color: var(--petrol-deep); }
.irow-txt[b-gjac99t7w4]  .n { font-weight: 700; unicode-bidi: isolate; direction: ltr; display: inline-block; }
.irow-txt[b-gjac99t7w4]  .up { color: var(--leaf); font-weight: 700; }
.irow-txt[b-gjac99t7w4]  .down { color: var(--danger); font-weight: 700; }
.irow-txt[b-gjac99t7w4]  .muted { color: var(--muted); }
.irow-txt[b-gjac99t7w4]  .formula {
    display: block; margin-top: 5px; padding: 6px 10px; border-radius: 10px; background: #fff;
    font-weight: 700; color: var(--petrol-deep); direction: ltr; text-align: left; unicode-bidi: isolate; overflow-wrap: anywhere;
}

.irow.is-calc[b-gjac99t7w4] { background: var(--lemon-soft); }
.irow.is-calc .irow-ico[b-gjac99t7w4] { color: #9a6400; }
.irow.is-warn[b-gjac99t7w4] { background: #FFF1E8; }
.irow.is-warn .irow-ico[b-gjac99t7w4] { color: var(--warn); }

@keyframes irow-in-b-gjac99t7w4 { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .irow[b-gjac99t7w4] { animation: none; } }
