/* =========================================================
   sh-pages.css — نظام تصميم البيوتات الذكية (Smart Homes)
   مبني على Brand Guideline 2026
   المكان: wwwroot/css/sh-pages.css
   ========================================================= */

/* ---------- الخطوط ----------
   الإنجليزي: Switzer (Fontshare)
   العربي:   Noto Kufi Arabic / IBM Plex Sans Arabic (محمّلة فعليًا من wwwroot/assets/fonts) */
@import url('https://api.fontshare.com/v2/css?f[]=switzer@300,400,500,600,700&display=swap');

/* تمت إزالة @font-face لخط "TheYearofHandicrafts" بتاريخ 2026-11-19: الملفات الفعلية
   غير موجودة في wwwroot (كان ترشيحًا خاطئًا من وكيل ذكاء اصطناعي سابق)، وتسبب كل
   عنصر عربي يحتاج هذا الخط في طلب فاشل لكل وزن مستخدم (رسائل "Failed to decode
   downloaded font" / "OTS parsing error" في الـ Console). رمز الريال السعودي الجديد
   لا علاقة له بهذا الخط إطلاقًا - يُرسَم عبر SVG mask في smarthomes-crm-production.css
   (الفئة .sh-sar)، ويعمل مع أي خط كما هو موضّح هناك. */

/* ---------- ألوان الهوية ---------- */
:root {
    --sh-blue: #006DB7;        /* Primary   RGB 0,109,183   */
    --sh-orange: #E04D0A;      /* Secondary RGB 224,77,10   */
    --sh-sky: #0FB2F2;         /* Tertiary  RGB 15,178,242  */
    --sh-black: #000000;
    --sh-navy: #15305F;        /* خلفية بديلة للشعار */
    --sh-green: #25B574;       /* خلفية بديلة للشعار */
    --sh-amber: #F7A21B;       /* من علامة الشعار */
    --sh-mist: #EEF2F5;        /* خلفية لوحات الدليل */

    --sh-blue-50: #E6F0F8;
    --sh-blue-100: #CCE2F1;
    --sh-sky-50: #E7F7FE;
    --sh-orange-50: #FCEDE6;

    --sh-font: "Switzer", "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
    --sh-ease: cubic-bezier(.22, 1, .36, 1);
    --sh-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* لتحريك النسب داخل الحلقات (ينعكس تلقائياً إن لم يكن مدعوماً) */
@property --sh-p {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@property --gx {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 20%;
}

/* =========================================================
   الصفحة
   ========================================================= */
.shp-page {
    --shp-primary: var(--sh-blue);
    --shp-primary-2: var(--sh-sky);
    --shp-accent: var(--sh-orange);
    --shp-surface: #ffffff;
    --shp-soft: #F5F8FA;
    --shp-text: #0B1B2B;
    --shp-muted: #5B6B7B;
    --shp-border: rgba(0, 109, 183, .14);
    --shp-radius: 20px;
    --shp-shadow: 0 1px 2px rgba(11, 27, 43, .04), 0 8px 24px rgba(0, 109, 183, .06);
    --shp-shadow-lg: 0 18px 44px rgba(0, 109, 183, .16);
    --shp-sticky-bottom: 12px;
    /*max-width: 1000px;*/
    margin: 0 auto;
    padding: 14px 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--shp-text);
    font-family: var(--sh-font);
    font-feature-settings: "tnum" 1;
}

    .shp-page.is-wide {
        /*max-width: 1200px;*/
    }

    .shp-page h1, .shp-page h2, .shp-page h3, .shp-page h4 {
        font-family: var(--sh-font);
    }

/* زر الحفظ الثابت يرتفع فوق شريط التنقل السفلي للعميل */
.has-bottomnav .shp-page {
    --shp-sticky-bottom: calc(var(--shl-bottomnav-h, 70px) + env(safe-area-inset-bottom) + 10px);
}

/* ================= رأس الصفحة ================= */
.shp-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    border-radius: var(--shp-radius);
    color: #fff;
    background: var(--sh-blue);
    box-shadow: 0 16px 36px rgba(0, 109, 183, .28);
    animation: shp-up .55s var(--sh-ease) both;
}

    /* خطوط الهوية: سقف البيت المزدوج */
    .shp-hero::before,
    .shp-hero::after {
        content: "";
        position: absolute;
        z-index: -1;
        pointer-events: none;
        border: 5px solid var(--sh-sky);
        border-bottom: 0;
        border-radius: 34px 34px 0 0;
        transform: rotate(45deg);
        opacity: .55;
    }

    .shp-hero::before {
        width: 190px;
        height: 190px;
        top: -70px;
        inset-inline-end: -40px;
        animation: shp-float 9s ease-in-out infinite;
    }

    .shp-hero::after {
        width: 140px;
        height: 140px;
        top: -38px;
        inset-inline-end: -14px;
        opacity: .35;
        animation: shp-float 9s ease-in-out -1.5s infinite;
    }

.shp-hero-icon,
.shp-avatar {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
}

.shp-avatar {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    font-size: 24px;
    letter-spacing: .5px;
}

.shp-hero-body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.shp-hero h1 {
    font-size: clamp(19px, 4.5vw, 25px);
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.shp-hero p {
    margin: 0;
    font-size: 13.5px;
    font-weight: 300;
    opacity: .92;
}

.shp-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.shp-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    direction: ltr;
}

/* ================= البطاقات ================= */
.shp-card {
    background: var(--shp-surface);
    border: 1px solid var(--shp-border);
    border-radius: var(--shp-radius);
    box-shadow: var(--shp-shadow);
    padding: 18px;
    animation: shp-up .5s var(--sh-ease) both;
}

.shp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.shp-card-title {
    --c: var(--shp-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15.5px;
    font-weight: 700;
    margin: 0;
}

    .shp-card-title > i {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        display: grid;
        place-items: center;
        font-size: 15px;
        color: var(--c);
        background: color-mix(in srgb, var(--c) 11%, #fff);
    }

.shp-card-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    margin-bottom: 0;
}

    .shp-card-toggle .shp-chev {
        transition: transform .3s var(--sh-ease);
        color: var(--shp-muted);
    }

    .shp-card-toggle[aria-expanded="true"] .shp-chev {
        transform: rotate(180deg);
    }

    .shp-card-toggle[aria-expanded="true"] + .shp-card-body {
        margin-top: 16px;
    }

/* ================= الحقول ================= */
.shp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.shp-span-all {
    grid-column: 1 / -1;
}

.shp-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.shp-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 500;
    color: #2B3B4B;
}

    .shp-label i {
        color: var(--shp-muted);
        font-size: 13px;
    }

.shp-control {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1.5px solid var(--shp-border);
    border-radius: 14px;
    background-color: var(--shp-soft);
    color: var(--shp-text);
    font: inherit;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

    .shp-control:focus {
        outline: none;
        border-color: var(--shp-primary);
        background-color: #fff;
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--shp-primary) 15%, transparent);
    }

    .shp-control[readonly] {
        background: #EEF2F5;
        color: var(--shp-muted);
    }

    .shp-control.invalid {
        border-color: #dc2626;
        background: #fef2f2;
    }

    .shp-control.is-ltr {
        direction: ltr;
        text-align: left;
    }

textarea.shp-control {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

.shp-page .validation-message {
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
}

/* حقل البحث */
.shp-search {
    position: relative;
}

    .shp-search i {
        position: absolute;
        top: 50%;
        inset-inline-start: 16px;
        transform: translateY(-50%);
        color: var(--shp-muted);
        pointer-events: none;
    }

    .shp-search .shp-control {
        padding-inline-start: 44px;
        background: #fff;
        box-shadow: var(--shp-shadow);
    }

/* ================= الأزرار ================= */
.shp-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 13px;
    border: 1.5px solid transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s var(--sh-ease), opacity .2s ease, background .2s ease, box-shadow .25s ease;
}

    .shp-btn:active:not(:disabled) {
        transform: scale(.97);
    }

    .shp-btn:disabled {
        opacity: .5;
        cursor: not-allowed;
        box-shadow: none !important;
    }

.shp-btn-primary {
    color: #fff;
    background: var(--sh-blue);
    box-shadow: 0 10px 22px rgba(0, 109, 183, .28);
}

    /* لمعة تمر على الزر عند المرور */
    .shp-btn-primary::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
        transform: translateX(-120%);
        transition: transform .7s var(--sh-ease);
    }

    .shp-btn-primary:hover {
        color: #fff;
        box-shadow: 0 14px 30px rgba(0, 109, 183, .38);
    }

        .shp-btn-primary:hover::after {
            transform: translateX(120%);
        }

.shp-btn-accent {
    color: #fff;
    background: var(--sh-orange);
    box-shadow: 0 10px 22px rgba(224, 77, 10, .26);
}

    .shp-btn-accent:hover {
        color: #fff;
    }

.shp-btn-outline {
    color: var(--shp-primary);
    background: #fff;
    border-color: color-mix(in srgb, var(--shp-primary) 35%, transparent);
}

    .shp-btn-outline:hover {
        color: var(--shp-primary);
        background: var(--sh-blue-50);
    }

.shp-btn-soft {
    color: var(--shp-primary);
    background: var(--sh-blue-50);
}

    .shp-btn-soft:hover {
        color: var(--shp-primary);
        background: var(--sh-blue-100);
    }

.shp-btn-white {
    color: var(--sh-blue);
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

    .shp-btn-white:hover {
        color: var(--sh-blue);
    }

.shp-btn-block {
    width: 100%;
    min-height: 54px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 16px;
}

.shp-btn-icon {
    width: 44px;
    padding: 0;
}

.shp-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shp-sticky {
    position: sticky;
    bottom: var(--shp-sticky-bottom);
    z-index: 5;
}

/* ================= الشارات والفلاتر ================= */
.shp-badge {
    --c: var(--shp-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 11%, #fff);
}

    .shp-badge.is-success { --c: #16A34A; }
    .shp-badge.is-warning { --c: var(--sh-orange); }
    .shp-badge.is-danger { --c: #DC2626; }
    .shp-badge.is-muted { --c: #64748B; }

.shp-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

    .shp-chips::-webkit-scrollbar {
        display: none;
    }

.shp-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--shp-border);
    background: #fff;
    color: var(--shp-text);
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s var(--sh-ease);
}

    .shp-chip:hover {
        transform: translateY(-1px);
        border-color: color-mix(in srgb, var(--shp-primary) 35%, transparent);
    }

    .shp-chip span {
        min-width: 22px;
        padding: 0 7px;
        border-radius: 999px;
        font-size: 11.5px;
        background: var(--shp-soft);
        color: var(--shp-muted);
    }

    .shp-chip.is-active {
        color: #fff;
        border-color: transparent;
        background: var(--sh-blue);
        box-shadow: 0 6px 14px rgba(0, 109, 183, .25);
    }

        .shp-chip.is-active span {
            background: rgba(255, 255, 255, .22);
            color: #fff;
        }

/* ================= القوائم ================= */
.shp-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

    .shp-list > * {
        animation: shp-up .45s var(--sh-ease) both;
        animation-delay: calc(min(var(--i, 0), 10) * 45ms);
    }

/* ================= معلومات السجل ================= */
.shp-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.shp-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--shp-soft);
    border: 1px solid var(--shp-border);
    min-width: 0;
}

    .shp-meta-item > i {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        border-radius: 10px;
        display: grid;
        place-items: center;
        background: #fff;
        color: var(--shp-muted);
        font-size: 13px;
    }

    .shp-meta-item small {
        display: block;
        font-size: 11.5px;
        color: var(--shp-muted);
    }

    .shp-meta-item b {
        display: block;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* ================= الحالة الفارغة ================= */
.shp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 44px 20px;
    background: var(--shp-surface);
    border: 1px dashed var(--shp-border);
    border-radius: var(--shp-radius);
    animation: shp-up .45s var(--sh-ease) both;
}

.shp-empty-icon {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 30px;
    color: var(--shp-primary);
    background: var(--sh-blue-50);
    margin-bottom: 4px;
}

.shp-empty h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.shp-empty p {
    font-size: 14px;
    color: var(--shp-muted);
    margin: 0 0 6px;
    max-width: 320px;
}

/* ================= هيكل التحميل ================= */
.shp-skeleton {
    border-radius: var(--shp-radius);
    background: linear-gradient(90deg, #E9EFF4 25%, #F6F9FB 37%, #E9EFF4 63%);
    background-size: 400% 100%;
    animation: shp-shimmer 1.4s ease infinite;
    min-height: 150px;
}

/* =========================================================
   مستوى الأداء (يستخدم في المؤشرات والنسب)
   ========================================================= */
.is-good { --tone: #16A34A; }
.is-mid { --tone: var(--sh-amber); }
.is-bad { --tone: var(--sh-orange); }

/* حلقة النسبة — تُحرَّك من 0 إلى القيمة */
.shp-ring {
    --size: 112px;
    --thick: 11px;
    flex-shrink: 0;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--tone, var(--sh-blue)) calc(var(--sh-p) * 1%), color-mix(in srgb, var(--tone, var(--sh-blue)) 13%, #EEF2F5) 0);
    animation: shp-ring 1.6s var(--sh-ease) .2s both;
}

    .shp-ring > div {
        width: calc(var(--size) - var(--thick) * 2);
        height: calc(var(--size) - var(--thick) * 2);
        border-radius: 50%;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.15;
    }

    .shp-ring b {
        font-size: calc(var(--size) * .18);
        font-weight: 700;
        color: var(--tone, var(--sh-blue));
        direction: ltr;
    }

    .shp-ring small {
        font-size: 10.5px;
        color: var(--shp-muted);
        margin-top: 3px;
        max-width: 80%;
    }

/* شريط التقدم — يمتلئ عند الظهور */
.shp-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tone, var(--sh-blue)) 12%, #EEF2F5);
    overflow: hidden;
}

    .shp-bar > span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, color-mix(in srgb, var(--tone, var(--sh-blue)) 65%, #fff), var(--tone, var(--sh-blue)));
        transform-origin: left center;
        animation: shp-grow 1.3s var(--sh-ease) .25s both;
    }

[dir="rtl"] .shp-bar > span {
    transform-origin: right center;
    background: linear-gradient(270deg, color-mix(in srgb, var(--tone, var(--sh-blue)) 65%, #fff), var(--tone, var(--sh-blue)));
    margin-inline-start: 0;
}

/* =========================================================
   إحصائيات المبيعات (sbx-*)
   ========================================================= */

/* ---------- البطل ---------- */
.sbx-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 26px;
    padding: 26px 24px 78px;
    color: #fff;
    background: var(--sh-blue);
    box-shadow: 0 22px 50px rgba(0, 109, 183, .3);
    animation: shp-up .6s var(--sh-ease) both;
}

    /* خطوط كنتورية حول البيت (من نمط الهوية) */
    .sbx-hero::before {
        content: "";
        position: absolute;
        inset: -40%;
        z-index: -2;
        background: repeating-radial-gradient(circle at 78% 42%, rgba(255, 255, 255, .075) 0 1.2px, transparent 1.4px 24px);
        animation: sbx-breathe 14s ease-in-out infinite;
    }

[dir="rtl"] .sbx-hero::before {
    background: repeating-radial-gradient(circle at 22% 42%, rgba(255, 255, 255, .075) 0 1.2px, transparent 1.4px 24px);
}

/* لمعة تتحرك ببطء */
.sbx-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(600px 220px at var(--gx, 20%) 0%, rgba(15, 178, 242, .35), transparent 70%);
    animation: sbx-glow 10s ease-in-out infinite alternate;
}

.sbx-art {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    inset-inline-end: -10px;
    width: min(420px, 62%);
    height: 100%;
    pointer-events: none;
}

    .sbx-art .roof {
        fill: none;
        stroke: var(--sh-sky);
        stroke-width: 9;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        animation: sbx-draw 2.2s var(--sh-ease) .3s forwards, shp-float 10s ease-in-out 2.5s infinite;
    }

        .sbx-art .roof.r2 {
            opacity: .55;
            animation-delay: .55s, 2.8s;
        }

    .sbx-art .trace {
        fill: none;
        stroke: rgba(255, 255, 255, .55);
        stroke-width: 3.5;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        animation: sbx-draw 1.6s var(--sh-ease) 1s forwards;
    }

    .sbx-art .node {
        fill: var(--sh-blue);
        stroke: #fff;
        stroke-width: 3.5;
        transform-box: fill-box;
        transform-origin: center;
        opacity: 0;
        animation: sbx-pop .5s var(--sh-ease-spring) 2.2s forwards, sbx-pulse 2.6s ease-in-out 3s infinite;
    }

        .sbx-art .node.n2 { animation-delay: 2.4s, 3.4s; }
        .sbx-art .node.n3 { animation-delay: 2.6s, 3.8s; }

/* في RTL نعكس الرسم ليبقى في جهة النهاية */
[dir="rtl"] .sbx-art {
    transform: scaleX(-1);
}

.sbx-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.sbx-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

/* الشعار يُعرض كما هو بدون مؤثرات (حسب الدليل) */
.sbx-logo {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: #fff;
    display: grid;
    place-items: center;
    animation: sbx-pop .6s var(--sh-ease-spring) .15s both;
}

    .sbx-logo img {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

.sbx-eyebrow {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .8;
    direction: ltr;
    text-align: start;
}

.sbx-hero h1 {
    margin: 2px 0 0;
    font-size: clamp(22px, 4.8vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.sbx-hero-sub {
    margin: 14px 0 0;
    font-size: clamp(15px, 2.6vw, 19px);
    font-weight: 300;
    opacity: .95;
    max-width: 520px;
}

.sbx-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sbx-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

    .sbx-live .dot {
        position: relative;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #4ADE80;
    }

        .sbx-live .dot::after {
            content: "";
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            border: 2px solid #4ADE80;
            animation: sbx-ping 1.8s ease-out infinite;
        }

    .sbx-live b {
        font-weight: 600;
        direction: ltr;
    }

.sbx-refresh i {
    transition: transform .6s var(--sh-ease);
}

.sbx-refresh:hover i {
    transform: rotate(180deg);
}

.sbx-refresh.is-busy i {
    animation: sbx-spin .9s linear infinite;
}

/* ---------- شريط المؤشرات (يطفو فوق البطل) ---------- */
.sbx-kpis {
    position: relative;
    z-index: 2;
    margin: -62px 12px 0;
    display: grid;
    /* مميزة (عمودان) + 4 مؤشرات: 3 أعمدة على الأجهزة اللوحية، 6 على الشاشات الكبيرة */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 1100px) {
    .sbx-kpis {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

        .sbx-kpis .sbx-kpi:not(.is-feature) {
            padding: 14px;
        }

            .sbx-kpis .sbx-kpi:not(.is-feature) .sbx-kpi-value {
                font-size: clamp(15px, 1.3vw, 21px);
            }
}

.sbx-kpi-feat-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, .82);
}

    .sbx-kpi-feat-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .sbx-kpi-feat-meta b {
        color: #fff;
        font-weight: 600;
    }

.sbx-kpi {
    --c: var(--sh-blue);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--shp-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(11, 27, 43, .08);
    transition: transform .35s var(--sh-ease), box-shadow .35s var(--sh-ease);
    animation: sbx-rise .7s var(--sh-ease) both;
    animation-delay: calc(.25s + var(--i, 0) * 70ms);
}

    .sbx-kpi:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(0, 109, 183, .16);
    }

    /* خط علوي بلون المؤشر يُرسم عند الظهور */
    .sbx-kpi::before {
        content: "";
        position: absolute;
        inset-inline: 0;
        top: 0;
        height: 3px;
        background: var(--c);
        transform: scaleX(0);
        transform-origin: left;
        animation: shp-grow .9s var(--sh-ease) both;
        animation-delay: calc(.6s + var(--i, 0) * 70ms);
    }

[dir="rtl"] .sbx-kpi::before {
    transform-origin: right;
}

.sbx-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sbx-kpi-ic {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 11%, #fff);
    transition: transform .4s var(--sh-ease-spring);
}

.sbx-kpi:hover .sbx-kpi-ic {
    transform: rotate(-8deg) scale(1.08);
}

.sbx-kpi-label {
    font-size: 12.5px;
    color: var(--shp-muted);
    font-weight: 500;
}

.sbx-kpi-value {
    font-size: clamp(17px, 2.2vw, 21px);
    font-weight: 700;
    letter-spacing: -.01em;
    direction: ltr;
    text-align: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: sbx-reveal .8s var(--sh-ease) both;
    animation-delay: calc(.45s + var(--i, 0) * 70ms);
}

[dir="rtl"] .sbx-kpi-value {
    text-align: right;
}

.sbx-kpi.is-feature {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--sh-navy), var(--sh-blue));
}

    .sbx-kpi.is-feature .sbx-kpi-label {
        color: rgba(255, 255, 255, .8);
    }

    .sbx-kpi.is-feature .shp-ring > div {
        background: var(--sh-navy);
    }

    .sbx-kpi.is-feature .shp-ring small {
        color: rgba(255, 255, 255, .75);
    }

    .sbx-kpi.is-feature .sbx-kpi-value {
        font-size: clamp(20px, 3vw, 28px);
    }

.sbx-kpi-meta {
    font-size: 12px;
    color: var(--shp-muted);
}

/* ---------- تنقل الأقسام ---------- */
.sbx-nav {
    position: sticky;
    top: calc(var(--shl-topbar-h, 64px) + env(safe-area-inset-top) + 6px);
    z-index: 20;
    display: flex;
    gap: 6px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid var(--shp-border);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(11, 27, 43, .05);
    animation: shp-up .5s var(--sh-ease) .3s both;
}

    .sbx-nav::-webkit-scrollbar {
        display: none;
    }

    .sbx-nav button {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 12px;
        border: 0;
        border-radius: 11px;
        background: transparent;
        color: var(--shp-muted);
        font: inherit;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: background .2s ease, color .2s ease;
    }

        .sbx-nav button b {
            font-size: 11px;
            font-weight: 600;
            color: var(--sh-sky);
            direction: ltr;
        }

        .sbx-nav button:hover {
            background: var(--sh-blue-50);
            color: var(--sh-blue);
        }

/* ---------- الأقسام ---------- */
.sbx-sec {
    scroll-margin-top: calc(var(--shl-topbar-h, 64px) + 76px);
    background: #fff;
    border: 1px solid var(--shp-border);
    border-radius: 22px;
    box-shadow: var(--shp-shadow);
    overflow: clip;
    animation: shp-up .55s var(--sh-ease) both;
    animation-delay: calc(min(var(--i, 0), 8) * 60ms);
}

.sbx-sec-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: start;
    cursor: pointer;
    transition: background .2s ease;
}

    .sbx-sec-head:hover {
        background: #FAFCFD;
    }

/* رقم القسم بأسلوب فهرس دليل الهوية */
.sbx-sec-no {
    flex-shrink: 0;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--sh-sky);
    direction: ltr;
    min-width: 40px;
    font-family: "Switzer", var(--sh-font);
}

.sbx-sec-ic {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: #fff;
    background: var(--sh-blue);
    transition: transform .4s var(--sh-ease-spring);
}

.sbx-sec-head:hover .sbx-sec-ic {
    transform: translateY(-2px) rotate(-6deg);
}

.sbx-sec-title {
    flex: 1;
    min-width: 0;
}

    .sbx-sec-title h2 {
        margin: 0;
        font-size: 17px;
        font-weight: 700;
    }

    .sbx-sec-title small {
        display: block;
        margin-top: 2px;
        font-size: 12.5px;
        font-weight: 300;
        color: var(--shp-muted);
    }

.sbx-sec-chev {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--shp-muted);
    background: var(--shp-soft);
    transition: transform .35s var(--sh-ease), background .2s ease;
}

.sbx-sec-head[aria-expanded="true"] .sbx-sec-chev {
    transform: rotate(180deg);
    background: var(--sh-blue-50);
    color: var(--sh-blue);
}

.sbx-sec-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 18px 20px;
    border-top: 1px solid var(--shp-border);
    padding-top: 18px;
    animation: sbx-open .45s var(--sh-ease) both;
}

.sbx-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--shp-text);
}

    .sbx-sub::before {
        content: "";
        width: 4px;
        height: 16px;
        border-radius: 4px;
        background: var(--sh-sky);
    }

/* ---------- الفلاتر (توحيد Syncfusion مع الهوية) ---------- */
.sbx-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px 16px;
    align-items: end;
    padding: 12px 16px 14px;
    border-radius: 16px;
    background: var(--shp-soft);
    border: 1px solid var(--shp-border);
}

    .sbx-filters .sbx-wide {
        grid-column: span 2;
    }

.sbx-check {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.shp-page .e-input-group.e-input-focus::before,
.shp-page .e-input-group.e-input-focus::after,
.shp-page .e-input-group.e-control-wrapper.e-input-focus::before,
.shp-page .e-input-group.e-control-wrapper.e-input-focus::after {
    background: var(--sh-blue) !important;
}

.shp-page .e-float-input.e-input-focus label.e-float-text,
.shp-page .e-float-input.e-control-wrapper.e-input-focus label.e-float-text {
    color: var(--sh-blue) !important;
}

.shp-page .e-checkbox-wrapper .e-frame.e-check,
.shp-page .e-checkbox-wrapper .e-frame.e-stop {
    background-color: var(--sh-blue) !important;
    border-color: var(--sh-blue) !important;
}

/* =========================================================
   الجداول — تصميم SfGrid الموحّد (زوايا دائرية + سطر محدد ثلاثي الأبعاد)
   يطبَّق تلقائياً على كل SfGrid في التطبيق دون تعديل الصفحات.
   لاستثناء جدول معيّن: CssClass="sh-grid-plain"
   ========================================================= */
.e-grid:not(.sh-grid-plain) {
    --g-radius: 18px;
    --g-head-bg: linear-gradient(180deg, #F6F9FC, #EAF2F8);
    --g-head-text: var(--sh-navy);
    --g-line: #EDF2F7;
    --g-hover: var(--sh-sky-50);
    --g-sel-a: var(--sh-blue);
    --g-sel-b: #0A86D6;
    --g-r-in: calc(var(--g-radius) - 1px);
    /* قيم احتياطية للصفحات التي لا تستخدم .shp-page */
    --shp-border: rgba(0, 109, 183, .14);
    --shp-text: #0B1B2B;
    --shp-muted: #5B6B7B;
    border: 1px solid var(--shp-border) !important;
    border-radius: var(--g-radius) !important;
    background: #fff;
    font-family: var(--sh-font);
    box-shadow: 0 1px 2px rgba(11, 27, 43, .04), 0 10px 26px rgba(0, 109, 183, .07);
}


    /* ---------- تدوير الأطراف من الداخل (بدون overflow:hidden) ---------- */
    .e-grid:not(.sh-grid-plain) > .e-toolbar,
    .e-grid:not(.sh-grid-plain) > .e-groupdroparea,
    .e-grid:not(.sh-grid-plain) > .e-gridheader {
        border-start-start-radius: var(--g-r-in);
        border-start-end-radius: var(--g-r-in);
    }

    .e-grid:not(.sh-grid-plain):has(> .e-toolbar) > .e-gridheader,
    .e-grid:not(.sh-grid-plain):has(> .e-toolbar) > .e-groupdroparea,
    .e-grid:not(.sh-grid-plain):has(> .e-groupdroparea) > .e-gridheader {
        border-start-start-radius: 0;
        border-start-end-radius: 0;
    }

    .e-grid:not(.sh-grid-plain):has(> .e-groupdroparea) > .e-groupdroparea {
        border-radius: 14px;
    }

    .e-grid:not(.sh-grid-plain) > .e-gridpager,
    .e-grid:not(.sh-grid-plain):not(:has(> .e-gridpager)) > .e-gridfooter,
    .e-grid:not(.sh-grid-plain):not(:has(> .e-gridpager)):not(:has(> .e-gridfooter)) > .e-gridcontent,
    .e-grid:not(.sh-grid-plain):not(:has(> .e-gridpager)):not(:has(> .e-gridfooter)) > .e-gridcontent > .e-content {
        border-end-start-radius: var(--g-r-in);
        border-end-end-radius: var(--g-r-in);
    }

    /* ---------- شريط الأدوات ---------- */
    .e-grid:not(.sh-grid-plain) .e-toolbar,
    .e-grid:not(.sh-grid-plain) .e-toolbar .e-toolbar-items {
        background: #fff !important;
        border: 0 !important;
    }

    .e-grid:not(.sh-grid-plain) .e-toolbar {
        padding: 6px 8px;
        border-bottom: 1px solid var(--g-line) !important;
    }

        .e-grid:not(.sh-grid-plain) .e-toolbar .e-tbar-btn {
            border-radius: 11px !important;
            padding-inline: 10px !important;
            transition: background .2s ease, transform .2s var(--sh-ease);
        }

            .e-grid:not(.sh-grid-plain) .e-toolbar .e-tbar-btn:hover {
                background: var(--sh-blue-50) !important;
                transform: translateY(-1px);
            }

            .e-grid:not(.sh-grid-plain) .e-toolbar .e-tbar-btn .e-icons,
            .e-grid:not(.sh-grid-plain) .e-toolbar .e-tbar-btn .e-tbar-btn-text {
                color: var(--sh-blue) !important;
            }

        /* مربع البحث بشكل كبسولة */
        .e-grid:not(.sh-grid-plain) .e-toolbar .e-search,
        .e-grid:not(.sh-grid-plain) .e-toolbar .e-input-group {
            border-radius: 999px !important;
            overflow: hidden;
            border: 1px solid var(--g-line) !important;
            background: #F7FAFC !important;
        }

            .e-grid:not(.sh-grid-plain) .e-toolbar .e-input-group::before,
            .e-grid:not(.sh-grid-plain) .e-toolbar .e-input-group::after {
                display: none !important;
            }

    /* ---------- الرأس ---------- */
    .e-grid:not(.sh-grid-plain) .e-gridheader {
        background: var(--g-head-bg) !important;
        border-bottom: 2px solid var(--sh-blue-100) !important;
        border-top: 0 !important;
    }

    .e-grid:not(.sh-grid-plain) .e-gridheader .e-table,
    .e-grid:not(.sh-grid-plain) .e-headercell,
    .e-grid:not(.sh-grid-plain) .e-detailheadercell,
    .e-grid:not(.sh-grid-plain) .e-columnheader {
        background: transparent !important;
        border-color: transparent !important;
    }

    .e-grid:not(.sh-grid-plain) .e-headercell .e-headercelldiv,
    .e-grid:not(.sh-grid-plain) .e-headercell .e-headertext {
        color: var(--g-head-text) !important;
        font-weight: 700 !important;
        font-size: 12.5px !important;
        letter-spacing: .1px;
    }

    .e-grid:not(.sh-grid-plain) .e-headercell .e-sortfilterdiv,
    .e-grid:not(.sh-grid-plain) .e-headercell .e-icons {
        color: var(--sh-blue) !important;
    }

    /* فاصل عمودي ناعم بين عناوين الأعمدة */
    .e-grid:not(.sh-grid-plain) .e-headercell:not(:last-child) {
        box-shadow: inset -1px 0 0 rgba(0, 109, 183, .08);
    }

    .e-grid:not(.sh-grid-plain) .e-headercell:hover {
        background: rgba(0, 109, 183, .05) !important;
    }

    /* ---------- الصفوف ---------- */
    .e-grid:not(.sh-grid-plain) .e-content {
        background: #fff !important;
    }

    .e-grid:not(.sh-grid-plain) .e-content .e-table {
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }

    .e-grid:not(.sh-grid-plain) .e-rowcell {
        border-color: var(--g-line) !important;
        font-size: 13px;
        color: var(--shp-text, #0B1B2B);
        transition: background .25s ease, color .25s ease, box-shadow .3s var(--sh-ease), transform .3s var(--sh-ease);
    }

    .e-grid:not(.sh-grid-plain) .e-row:nth-child(even) .e-rowcell {
        background: #FAFCFE;
    }

    /* المرور: لون سماوي خفيف مع خط جانبي */
    .e-grid:not(.sh-grid-plain) .e-row:not([aria-selected="true"]):hover .e-rowcell {
        background: var(--g-hover) !important;
    }

        .e-grid:not(.sh-grid-plain) .e-row:not([aria-selected="true"]):hover .e-rowcell:first-child {
            box-shadow: inset 3px 0 0 var(--sh-sky);
        }

    .e-grid.e-rtl:not(.sh-grid-plain) .e-row:not([aria-selected="true"]):hover .e-rowcell:first-child {
        box-shadow: inset -3px 0 0 var(--sh-sky);
    }

    /* ---------- السطر المحدد: بطاقة بارزة ثلاثية الأبعاد ---------- */
    .e-grid:not(.sh-grid-plain) .e-row[aria-selected="true"] {
        position: relative;
        z-index: 2;
        filter: drop-shadow(0 10px 12px rgba(0, 76, 140, .28)) drop-shadow(0 2px 3px rgba(0, 76, 140, .25));
    }

        .e-grid:not(.sh-grid-plain) .e-row[aria-selected="true"] .e-rowcell,
        .e-grid:not(.sh-grid-plain) .e-rowcell.e-selectionbackground,
        .e-grid:not(.sh-grid-plain) .e-rowcell.e-active {
            color: #fff !important;
            font-weight: 600;
            background: linear-gradient(180deg, color-mix(in srgb, var(--g-sel-b) 82%, #fff) 0%, var(--g-sel-b) 38%, var(--g-sel-a) 100%) !important;
            border-color: transparent !important;
            /* حافة علوية مضيئة + حافة سفلية داكنة = إحساس بالبروز */
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 40, 90, .28);
            transform: translateY(-2px) scale(1.004);
        }

            /* زوايا دائرية لطرفي السطر (تتبع اتجاه الصفحة تلقائياً) */
            .e-grid:not(.sh-grid-plain) .e-row[aria-selected="true"] .e-rowcell:first-child {
                border-start-start-radius: 14px;
                border-end-start-radius: 14px;
            }

            .e-grid:not(.sh-grid-plain) .e-row[aria-selected="true"] .e-rowcell:last-child {
                border-start-end-radius: 14px;
                border-end-end-radius: 14px;
            }

            .e-grid:not(.sh-grid-plain) .e-row[aria-selected="true"] .e-rowcell :is(a, span, div, b, i):not(.sbx-pill):not(.sbx-pill *):not(.sbc-status):not(.sbk-pill):not(.badge):not(.e-badge):not(.e-chip):not(.e-frame) {
                color: inherit !important;
            }

            /* الشارات داخل السطر المحدد تبقى مقروءة */
            .e-grid:not(.sh-grid-plain) .e-row[aria-selected="true"] :is(.sbx-pill, .sbc-status, .sbk-pill, .badge, .e-badge) {
                background: rgba(255, 255, 255, .94) !important;
                box-shadow: 0 2px 6px rgba(0, 40, 90, .2);
            }

            .e-grid:not(.sh-grid-plain) .e-row[aria-selected="true"] .e-checkbox-wrapper .e-frame {
                border-color: #fff !important;
                background: rgba(255, 255, 255, .2) !important;
            }

    /* الخلايا العادية تحتاج position لتظهر اللمعة؛ المجمّدة تبقى sticky */
    .e-grid:not(.sh-grid-plain) .e-row[aria-selected="true"] .e-rowcell:not(.e-leftfreeze):not(.e-rightfreeze):not(.e-fixedfreeze):not(.e-freezeleftborder):not(.e-freezerightborder) {
        position: relative;
    }

    /* لمعة تعبر السطر عند تحديده */
    .e-grid:not(.sh-grid-plain) .e-row[aria-selected="true"] .e-rowcell::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
        background-size: 250% 100%;
        opacity: 0;
        animation: sbx-row-shine 1.1s var(--sh-ease) forwards;
        pointer-events: none;
        border-radius: inherit;
    }

    /* ---------- التجميع ---------- */
    .e-grid:not(.sh-grid-plain) .e-groupdroparea {
        margin: 8px;
        /* Syncfusion يجعلها 100% فتتجاوز حدود الجدول بمقدار الهامشين؛ العرض = الكامل ناقص الهامشين بالضبط */
        width: calc(100% - 16px) !important;
        box-sizing: border-box;
        border: 1.5px dashed var(--sh-blue-100) !important;
        border-radius: 14px;
        background: #F7FAFD !important;
        color: var(--shp-muted) !important;
    }

    .e-grid:not(.sh-grid-plain) .e-groupheadercell {
        border-radius: 999px !important;
        background: var(--sh-blue) !important;
        color: #fff !important;
    }

    .e-grid:not(.sh-grid-plain) .e-groupcaption,
    .e-grid:not(.sh-grid-plain) .e-recordplusexpand,
    .e-grid:not(.sh-grid-plain) .e-recordpluscollapse,
    .e-grid:not(.sh-grid-plain) .e-indentcell {
        background: #F3F8FC !important;
        color: var(--sh-navy) !important;
        font-weight: 600;
    }

    /* ---------- صف المجاميع ---------- */
    .e-grid:not(.sh-grid-plain) .e-gridfooter,
    .e-grid:not(.sh-grid-plain) .e-summarycontent {
        background: #fff !important;
        border-top: 0 !important;
    }

    .e-grid:not(.sh-grid-plain) .e-gridfooter .e-table {
        border-collapse: collapse !important;
        border-spacing: 0 !important;
    }

    .e-grid:not(.sh-grid-plain) .e-summaryrow .e-summarycell {
        border-inline: 0 !important;
        border-bottom: 0 !important;
        background: linear-gradient(180deg, var(--sh-blue-50), #DCEBF6) !important;
        color: var(--sh-navy) !important;
        font-weight: 700 !important;
        border-color: transparent !important;
        border-top: 2px solid var(--sh-blue-100) !important;
    }

    /* ---------- شريط التمرير ---------- */
    .e-grid:not(.sh-grid-plain) .e-content::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .e-grid:not(.sh-grid-plain) .e-content::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: var(--sh-blue-100);
    }

    .e-grid:not(.sh-grid-plain) .e-content::-webkit-scrollbar-track {
        background: transparent;
    }

    /* ---------- الترقيم ---------- */
    .e-grid:not(.sh-grid-plain) .e-gridpager,
    .e-grid:not(.sh-grid-plain) .e-pager,
    .sbee-pager .e-pager {
        border: 0 !important;
        border-top: 1px solid var(--g-line, #EDF2F7) !important;
        background: #fff !important;
        padding: 8px 10px !important;
    }

    .e-grid:not(.sh-grid-plain) .e-pager :is(.e-numericitem, .e-first, .e-prev, .e-next, .e-last, .e-pp, .e-np) {
        min-width: 32px;
        height: 32px;
        border-radius: 10px !important;
        border: 0 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        transition: background .2s ease, transform .2s var(--sh-ease);
    }

        .e-grid:not(.sh-grid-plain) .e-pager :is(.e-numericitem, .e-first, .e-prev, .e-next, .e-last):hover {
            background: var(--sh-blue-50) !important;
            transform: translateY(-1px);
        }

    .e-grid:not(.sh-grid-plain) .e-pager .e-currentitem,
    .e-grid:not(.sh-grid-plain) .e-pager .e-currentitem:hover {
        color: #fff !important;
        background: linear-gradient(180deg, #0A86D6, var(--sh-blue)) !important;
        box-shadow: 0 6px 14px rgba(0, 109, 183, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
    }

    .e-grid:not(.sh-grid-plain) .e-pager .e-pagesizes .e-input-group {
        border-radius: 10px !important;
    }

/* جدول حجمه صغير داخل الأقسام القديمة (للتوافق مع .sbx-grid) */
.sbx-grid .e-grid .e-rowcell {
    padding-block: 10px;
}

@keyframes sbx-row-shine {
    0% { background-position: 160% 0; opacity: 1; }
    80% { opacity: 1; }
    100% { background-position: -60% 0; opacity: 0; }
}

/* =========================================================
   تنعيم زوايا عناصر Syncfusion في كل التطبيق
   (النوافذ المنبثقة تُرسم خارج الصفحة، لذلك قواعدها عامة)
   ========================================================= */
.e-dialog,
.e-excelfilter.e-popup,
.e-filter-popup,
.e-ccdlg,
.e-popup.e-ddl,
.e-popup.e-multi-select-list-wrapper,
.e-dropdownbase.e-popup,
.e-datepicker.e-popup-wrapper,
.e-datetimepicker.e-popup-wrapper,
.e-timepicker.e-popup,
.e-daterangepicker.e-popup,
.e-dropdown-popup,
.e-contextmenu-wrapper ul,
.e-menu-wrapper ul.e-ul {
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid rgba(0, 109, 183, .12) !important;
    box-shadow: 0 18px 44px rgba(11, 27, 43, .16), 0 2px 6px rgba(11, 27, 43, .06) !important;
}

/* فلتر Excel في الجدول: في Blazor تُرسم القائمة الفرعية («مرشحات الأرقام/التاريخ والوقت»: يساوي، ما بين،
   تصفية مخصص...) داخل نافذة الفلتر نفسها وتفتح بجانبها. overflow:hidden أعلاه كان يقصها فلا يظهر إلا طرفها.
   الزوايا الدائرية تبقى من border-radius، والرأس والتذييل لهما تدوير خاص بهما. */
.e-excelfilter.e-popup,
.e-filter-popup {
    overflow: visible !important;
}

    .e-dialog .e-dlg-header-content {
        border-radius: 16px 16px 0 0;
    }

    .e-dialog .e-footer-content {
        border-radius: 0 0 16px 16px;
    }

.e-calendar,
.e-calendar .e-content td > span.e-day,
.e-calendar .e-content td.e-selected span.e-day {
    border-radius: 12px !important;
}

.e-ddl.e-popup .e-list-item,
.e-dropdownbase .e-list-item,
.e-contextmenu-wrapper ul .e-menu-item {
    border-radius: 10px;
    margin: 2px 6px;
}

/* القوائم المنسدلة: العنصر بعرض 100% + هامش 6px على الجانبين كان يتجاوز عرض النافذة،
   فيظهر شريط تمرير أفقي في القوائم الضيقة (مثل «مواد لكل صفحة» في الجدول وعرضها 90px).
   نجعل العرض تلقائيًا ليأخذ العنصر عرض النافذة ناقص الهامش، ونمنع التمرير الأفقي. */
.e-ddl.e-popup .e-list-item,
.e-dropdownbase .e-list-item {
    width: auto !important;
    box-sizing: border-box;
}
.e-ddl.e-popup .e-content,
.e-dropdownbase.e-popup .e-content,
.e-ddl.e-popup .e-list-parent,
.e-dropdownbase.e-popup .e-list-parent {
    overflow-x: hidden !important;
}

.e-tooltip-wrap.e-popup {
    border-radius: 12px !important;
}

/* الأزرار وحقول الإدخال المحددة الإطار داخل صفحات الهوية */
.shp-page .e-btn,
.shp-page .e-css.e-btn {
    border-radius: 12px;
}

.shp-page .e-input-group.e-outline,
.shp-page .e-input-group.e-control-wrapper.e-outline,
.shp-page .e-input-group:not(.e-float-input):not(.e-filled):not(.e-outline) {
    border-radius: 12px;
}

.shp-page .e-tab .e-tab-header .e-toolbar-item .e-tab-wrap {
    border-radius: 12px 12px 0 0;
}

.shp-page .e-card {
    border-radius: 18px;
}

.sbx-grid-cap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

/* نسب داخل الجداول */
.sbx-pill {
    --tone: var(--sh-blue);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    direction: ltr;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 12%, #fff);
}

    .sbx-pill.is-good { --tone: #15803D; }
    .sbx-pill.is-bad { --tone: #C2410C; }

/* ---------- الرسوم البيانية ---------- */
.sbx-chart {
    position: relative;
    padding: 14px 10px 6px;
    border-radius: 18px;
    background: linear-gradient(180deg, #FBFDFE, #fff);
    border: 1px solid var(--shp-border);
    animation: shp-up .6s var(--sh-ease) .1s both;
}

/* ---------- لوحات الملخص ---------- */
.sbx-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.sbx-tile {
    --c: var(--sh-blue);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--shp-border);
    border-radius: 20px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: transform .35s var(--sh-ease), box-shadow .35s var(--sh-ease), border-color .3s ease;
    animation: sbx-rise .6s var(--sh-ease) both;
    animation-delay: calc(var(--i, 0) * 80ms);
}

    .sbx-tile:hover {
        transform: translateY(-4px);
        border-color: color-mix(in srgb, var(--c) 35%, transparent);
        box-shadow: 0 16px 34px color-mix(in srgb, var(--c) 18%, transparent);
    }

    /* سقف البيت كزخرفة خلفية */
    .sbx-tile::after {
        content: "";
        position: absolute;
        width: 120px;
        height: 120px;
        bottom: -70px;
        inset-inline-end: -30px;
        border: 6px solid color-mix(in srgb, var(--c) 14%, transparent);
        border-bottom: 0;
        border-right: 0;
        border-radius: 26px 0 0 0;
        transform: rotate(45deg);
        transition: transform .5s var(--sh-ease);
    }

    .sbx-tile:hover::after {
        transform: rotate(45deg) translate(-8px, -8px);
    }

.sbx-tile-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

    .sbx-tile-head i {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        color: var(--c);
        background: color-mix(in srgb, var(--c) 11%, #fff);
    }

.sbx-big {
    font-size: clamp(34px, 6vw, 46px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--c);
    direction: ltr;
    text-align: start;
    animation: sbx-reveal .9s var(--sh-ease) both;
    animation-delay: calc(.2s + var(--i, 0) * 80ms);
}

[dir="rtl"] .sbx-big {
    text-align: right;
}

.sbx-tile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--shp-muted);
}

.sbx-tile-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sbx-rows {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .sbx-rows div {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        font-size: 13px;
    }

    .sbx-rows span {
        color: var(--shp-muted);
    }

    .sbx-rows b {
        font-weight: 600;
        direction: ltr;
        white-space: nowrap;
    }

/* ---------- تبويبات مقسّمة ---------- */
.sbx-seg {
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 14px;
    background: var(--shp-soft);
    border: 1px solid var(--shp-border);
    overflow-x: auto;
    scrollbar-width: none;
}

    .sbx-seg::-webkit-scrollbar {
        display: none;
    }

    .sbx-seg button {
        flex: 1 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 9px 14px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--shp-muted);
        font: inherit;
        font-size: 13.5px;
        font-weight: 500;
        cursor: pointer;
        transition: background .25s ease, color .25s ease, box-shadow .25s ease;
    }

        .sbx-seg button span {
            padding: 0 7px;
            border-radius: 999px;
            font-size: 11.5px;
            font-weight: 600;
            background: #fff;
            color: var(--sh-blue);
        }

        .sbx-seg button.is-active {
            color: #fff;
            background: var(--sh-blue);
            box-shadow: 0 6px 14px rgba(0, 109, 183, .25);
        }

            .sbx-seg button.is-active span {
                background: rgba(255, 255, 255, .22);
                color: #fff;
            }

.sbx-pane {
    animation: sbx-open .4s var(--sh-ease) both;
}

/* ---------- مكوّن أهداف المبيعات (sbt-*) ---------- */
.sbt {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sbt-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.sbt-plan {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    color: #fff;
    background: var(--sh-blue);
    animation: sbx-rise .6s var(--sh-ease) both;
    animation-delay: calc(var(--i, 0) * 80ms);
}

    .sbt-plan:nth-child(3n+2) { background: var(--sh-navy); }
    .sbt-plan:nth-child(3n+3) { background: #0A5E9C; }

    .sbt-plan::after {
        content: "";
        position: absolute;
        width: 110px;
        height: 110px;
        top: -60px;
        inset-inline-end: -26px;
        border: 6px solid rgba(15, 178, 242, .55);
        border-bottom: 0;
        border-right: 0;
        border-radius: 24px 0 0 0;
        transform: rotate(45deg);
    }

.sbt-plan-name {
    font-size: 13.5px;
    font-weight: 500;
    opacity: .9;
}

.sbt-plan-total {
    font-size: clamp(20px, 2.6vw, 25px);
    font-weight: 700;
    direction: ltr;
    text-align: start;
    letter-spacing: -.01em;
}

[dir="rtl"] .sbt-plan-total {
    text-align: right;
}

.sbt-split {
    display: flex;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, .18);
}

    .sbt-split span {
        height: 100%;
        transform-origin: left;
        animation: shp-grow 1.2s var(--sh-ease) .3s both;
    }

[dir="rtl"] .sbt-split span {
    transform-origin: right;
}

.sbt-split .s1 { background: #fff; }
.sbt-split .s2 { background: var(--sh-sky); }

.sbt-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 12px;
    opacity: .92;
}

    .sbt-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .sbt-legend i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #fff;
    }

        .sbt-legend i.sky {
            background: var(--sh-sky);
        }

    .sbt-legend b {
        direction: ltr;
        font-weight: 600;
    }

.sbt-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sbt-dates {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 6px 14px;
    min-width: min(100%, 380px);
}

.sbt-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 14px;
}

.sbt-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--shp-border);
    border-radius: 20px;
    box-shadow: var(--shp-shadow);
    transition: transform .35s var(--sh-ease), box-shadow .35s var(--sh-ease);
    animation: sbx-rise .6s var(--sh-ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

    .sbt-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shp-shadow-lg);
    }

.sbt-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .sbt-card-head h4 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
    }

    .sbt-card-head b {
        font-size: 15px;
        font-weight: 700;
        color: var(--sh-blue);
        direction: ltr;
        white-space: nowrap;
    }

.sbt-metric {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sbt-metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

    .sbt-metric-top span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--shp-muted);
        font-weight: 500;
    }

        .sbt-metric-top span i {
            color: var(--c, var(--sh-blue));
        }

.sbt-metric-nums {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--shp-muted);
}

    .sbt-metric-nums b {
        color: var(--shp-text);
        font-weight: 600;
        direction: ltr;
    }

/* =========================================================
   الحركات
   ========================================================= */
/* ملاحظة: نهاية كل حركة دخول تكون transform: none (وfilter: none) وليس translateY(0) أو scale(1).
   الحركات تعمل بـ fill-mode: both فتبقى القيمة النهائية مطبّقة، وأي transform أو filter باقٍ على البطاقة
   يجعلها إطارًا للعناصر الثابتة بداخلها (position: fixed)، فتُقص نوافذ Syncfusion مثل
   «الفلتر المتقدم» في الجدول ولا يظهر منها إلا طرفها. */
@keyframes shp-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes shp-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@keyframes shp-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

@keyframes shp-grow {
    from { transform: scaleX(0); }
    to { transform: none; }
}

@keyframes shp-ring {
    from { --sh-p: 0; }
}

@keyframes sbx-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes sbx-pop {
    from { opacity: 0; transform: scale(.4); }
    to { opacity: 1; transform: none; }
}

@keyframes sbx-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

@keyframes sbx-ping {
    0% { transform: scale(.6); opacity: .9; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes sbx-spin {
    to { transform: rotate(360deg); }
}

@keyframes sbx-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes sbx-glow {
    from { --gx: 15%; opacity: .7; }
    to { --gx: 85%; opacity: 1; }
}

@keyframes sbx-rise {
    from { opacity: 0; transform: translateY(22px) scale(.97); }
    to { opacity: 1; transform: none; }
}

@keyframes sbx-reveal {
    from { opacity: 0; transform: translateY(60%); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes sbx-open {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .shp-page *,
    .shp-page *::before,
    .shp-page *::after {
        animation: none !important;
        transition: none !important;
    }

    .sbx-art .roof,
    .sbx-art .trace {
        stroke-dashoffset: 0;
    }

    .sbx-art .node {
        opacity: 1;
    }
}

/* ================= الشاشات الصغيرة ================= */
@media (max-width: 600px) {
    .shp-page {
        padding: 10px 8px 20px;
        gap: 12px;
    }

    .shp-hero {
        padding: 18px 16px;
        gap: 14px;
    }

    .shp-hero-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 15px;
    }

    .shp-avatar {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .shp-card {
        padding: 15px;
    }

    .shp-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .shp-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .shp-meta {
        grid-template-columns: 1fr 1fr;
    }

    .sbx-hero {
        padding: 20px 16px 72px;
        border-radius: 22px;
    }

    .sbx-logo {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

        .sbx-logo img {
            width: 34px;
            height: 34px;
        }

    .sbx-kpis {
        margin-inline: 4px;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .sbx-kpi {
        padding: 13px;
    }

        .sbx-kpi.is-feature {
            grid-column: 1 / -1;
        }

            .sbx-kpi.is-feature .shp-ring {
                --size: 92px;
            }

    .sbx-sec-head {
        padding: 14px;
        gap: 10px;
    }

    .sbx-sec-no {
        font-size: 22px;
        min-width: 28px;
    }

    .sbx-sec-ic {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .sbx-sec-body {
        padding: 14px 12px 16px;
    }

    .sbx-filters {
        grid-template-columns: 1fr;
        padding: 10px 12px 12px;
    }

        .sbx-filters .sbx-wide {
            grid-column: auto;
        }
}

.input-group-text, .shd-top-icon {
    background: unset !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px) !important;
    box-shadow: 0 6px 24px #18305509;
}

/* =========================================================
   مكوّن الأصناف المباعة (sbs-*)
   ========================================================= */
.sbs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sbs-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity .25s ease;
}

    .sbs-body.is-busy {
        opacity: .55;
        pointer-events: none;
    }

.sbs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.sbs-stat {
    --c: var(--sh-blue);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--shp-border);
    box-shadow: var(--shp-shadow);
    animation: sbx-rise .6s var(--sh-ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

    .sbs-stat > i {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        font-size: 18px;
        color: #fff;
        background: var(--c);
    }

    .sbs-stat > div {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .sbs-stat small {
        font-size: 12px;
        color: var(--shp-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sbs-stat b {
        font-size: 19px;
        font-weight: 700;
        direction: ltr;
        text-align: start;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        animation: sbx-reveal .8s var(--sh-ease) both;
        animation-delay: calc(.15s + var(--i, 0) * 70ms);
    }

[dir="rtl"] .sbs-stat b {
    text-align: right;
}

.sbs-stat b span {
    font-size: 14px;
    font-weight: 500;
    color: var(--shp-muted);
}

.sbs-delivery {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--shp-soft);
    border: 1px solid var(--shp-border);
}

.sbs-delivery-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

    .sbs-delivery-top span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--shp-muted);
        font-weight: 500;
    }

        .sbs-delivery-top span i {
            color: var(--sh-sky);
        }

    .sbs-delivery-top b {
        font-weight: 700;
        direction: ltr;
    }

.sbs-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 14px;
}

.sbs-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--shp-border);
    box-shadow: var(--shp-shadow);
    animation: shp-up .55s var(--sh-ease) .1s both;
}

/* ---------- الأعلى مبيعاً ---------- */
.sbs-top {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .sbs-top li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        animation: sbx-rise .5s var(--sh-ease) both;
        animation-delay: calc(.15s + var(--i, 0) * 80ms);
    }

.sbs-rank {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--sh-blue);
    background: var(--sh-blue-50);
}

.sbs-top li:nth-child(1) .sbs-rank { color: #fff; background: var(--sh-amber); }
.sbs-top li:nth-child(2) .sbs-rank { color: #fff; background: #94A3B8; }
.sbs-top li:nth-child(3) .sbs-rank { color: #fff; background: #C2773B; }

.sbs-top-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sbs-top-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

    .sbs-top-row b {
        font-size: 13.5px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.sbs-amount {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--sh-blue);
    direction: ltr;
}

.sbs-top-bar {
    height: 7px;
    border-radius: 999px;
    background: #EEF2F5;
    overflow: hidden;
}

    .sbs-top-bar span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--sh-sky), var(--sh-blue));
        transform-origin: left;
        animation: shp-grow 1.2s var(--sh-ease) both;
        animation-delay: calc(.3s + var(--i, 0) * 80ms);
    }

[dir="rtl"] .sbs-top-bar span {
    transform-origin: right;
    background: linear-gradient(270deg, var(--sh-sky), var(--sh-blue));
}

.sbs-top small {
    font-size: 11.5px;
    color: var(--shp-muted);
}

/* ---------- حسب التصنيف ---------- */
.sbs-split {
    display: flex;
    height: 16px;
    gap: 3px;
    border-radius: 999px;
    overflow: hidden;
}

    .sbs-split span {
        height: 100%;
        min-width: 4px;
        transform-origin: left;
        animation: shp-grow .9s var(--sh-ease) both;
        animation-delay: calc(.2s + var(--i, 0) * 90ms);
    }

[dir="rtl"] .sbs-split span {
    transform-origin: right;
}

.sbs-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .sbs-legend li {
        display: grid;
        grid-template-columns: 12px 1fr auto auto;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        animation: shp-up .45s var(--sh-ease) both;
        animation-delay: calc(.3s + var(--i, 0) * 60ms);
    }

        .sbs-legend li i {
            width: 12px;
            height: 12px;
            border-radius: 4px;
        }

        .sbs-legend li span {
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sbs-legend li b {
            font-weight: 700;
            direction: ltr;
        }

        .sbs-legend li small {
            min-width: 92px;
            text-align: end;
            font-size: 12px;
            color: var(--shp-muted);
            direction: ltr;
        }

/* ---------- التقارير التفصيلية ---------- */
.sbs-exports {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: var(--shp-soft);
    border: 1px dashed color-mix(in srgb, var(--sh-blue) 30%, transparent);
}

.sbs-exports-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.sbs-export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
}

.sbs-export {
    --c: var(--sh-blue);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--shp-border);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: transform .3s var(--sh-ease), box-shadow .3s var(--sh-ease), border-color .25s ease;
}

    .sbs-export:hover:not(:disabled) {
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--c) 40%, transparent);
        box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 18%, transparent);
    }

    .sbs-export:disabled {
        opacity: .6;
        cursor: wait;
    }

.sbs-export-ic {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 19px;
    color: #fff;
    background: var(--c);
}

.sbs-export-txt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .sbs-export-txt b {
        font-size: 13.5px;
        font-weight: 600;
    }

    .sbs-export-txt small {
        font-size: 11.5px;
        color: var(--shp-muted);
        direction: ltr;
        text-align: start;
    }

.sbs-export-go {
    color: var(--c);
    transition: transform .3s var(--sh-ease);
}

.sbs-export:hover:not(:disabled) .sbs-export-go {
    transform: translateY(3px);
}

/* =========================================================
   أنماط مشتركة إضافية
   ========================================================= */
.sbx-pill.is-mid { --tone: #B45309; }

/* =========================================================
   مبيعات وأهداف المناديب — SalesEmpsTargestGridCompo (sbe-*)
   ========================================================= */
.sbe,
.sbg,
.sbu,
.sbee {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sbe-body,
.sbg-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity .25s ease;
}

    .sbe-body.is-busy,
    .sbg-body.is-busy,
    .sbu-grid.is-busy,
    .sbee-grid.is-busy {
        opacity: .55;
        pointer-events: none;
    }

.sbe-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.sbe-kpi {
    --c: var(--sh-blue);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--shp-border);
    box-shadow: var(--shp-shadow);
    animation: sbx-rise .6s var(--sh-ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

    /* شريط لوني رفيع أعلى البطاقة */
    .sbe-kpi::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 3px;
        background: var(--c);
    }

.sbe-kpi-txt {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .sbe-kpi-txt small {
        font-size: 12px;
        color: var(--shp-muted);
        white-space: nowrap;
    }

        .sbe-kpi-txt small i {
            color: var(--c);
            margin-inline-end: 3px;
        }

    .sbe-kpi-txt b {
        font-size: clamp(14px, 1.25vw, 17px);
        font-weight: 700;
        direction: ltr;
        text-align: start;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

[dir="rtl"] .sbe-kpi-txt b { text-align: right; }

.sbe-kpi-txt span {
    font-size: 11.5px;
    color: var(--shp-muted);
    overflow-wrap: anywhere;
}

.sbe-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.sbe-count {
    padding: 1px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sh-blue);
    background: var(--sh-blue-50);
}

.sbe-sort {
    padding: 4px;
}

    .sbe-sort button {
        padding: 7px 12px;
        font-size: 12.5px;
    }

.sbe-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.sbe-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--shp-border);
    border-radius: 20px;
    box-shadow: var(--shp-shadow);
    transition: transform .35s var(--sh-ease), box-shadow .35s var(--sh-ease);
    animation: sbx-rise .6s var(--sh-ease) both;
    animation-delay: calc(var(--i, 0) * 60ms);
}

    .sbe-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shp-shadow-lg);
    }

    /* المراكز الثلاثة الأولى: إطار متدرج خفيف */
    .sbe-card.is-top {
        border-color: transparent;
        background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--sh-blue), var(--sh-sky) 60%, var(--sh-orange)) border-box;
        border: 1.5px solid transparent;
    }

.sbe-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sbe-rank {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--shp-muted);
    background: var(--sh-mist);
}

    .sbe-rank.r1 { color: #fff; background: linear-gradient(135deg, #F7A21B, #E9B949); box-shadow: 0 6px 14px rgba(247, 162, 27, .35); }
    .sbe-rank.r2 { color: #fff; background: linear-gradient(135deg, #94A3B8, #CBD5E1); }
    .sbe-rank.r3 { color: #fff; background: linear-gradient(135deg, #B45309, #D97706); }

.sbe-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--sh-blue), var(--sh-sky));
}

.sbe-who {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .sbe-who h4 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sbe-who small {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: var(--shp-muted);
    }

.sbe-metrics {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.sbe-m {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "top top" "bar nums";
    align-items: center;
    gap: 5px 10px;
}

.sbe-m-top {
    grid-area: top;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
}

    .sbe-m-top > span:first-child {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--shp-muted);
    }

        .sbe-m-top > span:first-child i {
            width: 14px;
            text-align: center;
            color: var(--sh-blue);
        }

    .sbe-m-top .sbx-pill {
        font-size: 11.5px;
        padding: 1px 8px;
    }

.sbe-m .shp-bar {
    grid-area: bar;
    height: 6px;
}

.sbe-m-nums {
    grid-area: nums;
    display: flex;
    gap: 4px;
    font-size: 11.5px;
    color: var(--shp-muted);
    direction: ltr;
    white-space: nowrap;
}

    .sbe-m-nums b {
        color: var(--shp-text);
        font-weight: 600;
    }

/* =========================================================
   الأداء — SalesSummaryGm (sbg-*)
   ========================================================= */
.sbg-actions {
    gap: 12px;
    justify-content: space-between;
}

.sbg-funnel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--sh-blue-50), #fff 70%);
    border: 1px solid var(--shp-border);
}

.sbg-funnel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 600;
}

    .sbg-funnel-head i { color: var(--sh-blue); }

    .sbg-funnel-head small {
        font-size: 11.5px;
        font-weight: 500;
        color: var(--shp-muted);
        direction: ltr;
    }

.sbg-stage {
    display: grid;
    grid-template-columns: 1fr 108px;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.sbg-stage-bar {
    display: flex;
    justify-content: center;
    height: 38px;
}

    /* شريط يتّسع من المنتصف — شكل القمع */
    .sbg-stage-bar span {
        width: max(var(--w), 3%);
        height: 100%;
        border-radius: 12px;
        background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c), color-mix(in srgb, var(--c) 70%, #fff));
        box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 28%, transparent);
        transform-origin: center;
        animation: sbg-widen 1.1s var(--sh-ease) both;
        animation-delay: calc(.15s + var(--i, 0) * 160ms);
        transition: filter .25s ease;
    }

.sbg-stage:hover .sbg-stage-bar span {
    filter: brightness(1.08);
}

.sbg-stage-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

    .sbg-stage-txt b {
        font-size: 20px;
        font-weight: 700;
        color: var(--c);
        direction: ltr;
        text-align: start;
    }

[dir="rtl"] .sbg-stage-txt b { text-align: right; }

.sbg-stage-txt small {
    font-size: 12px;
    color: var(--shp-muted);
}

.sbg-conv {
    align-self: center;
    margin-inline-end: 120px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sh-blue);
    background: #fff;
    border: 1px dashed var(--shp-border);
    animation: shp-up .5s var(--sh-ease) both .5s;
}

    .sbg-conv small {
        font-weight: 500;
        color: var(--shp-muted);
    }

    .sbg-conv i {
        font-size: 10px;
        animation: sbg-nudge 1.6s ease-in-out infinite;
    }

.sbg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.sbg-card {
    --c: var(--sh-blue);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px 16px;
    border-radius: 20px;
    border: 1px solid var(--shp-border);
    background: #fff;
    box-shadow: var(--shp-shadow);
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: transform .35s var(--sh-ease), box-shadow .35s var(--sh-ease), border-color .25s ease;
    animation: sbx-rise .6s var(--sh-ease) both;
    animation-delay: calc(var(--i, 0) * 80ms);
}

    .sbg-card:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--c) 40%, transparent);
        box-shadow: 0 16px 34px color-mix(in srgb, var(--c) 18%, transparent);
    }

.sbg-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .sbg-card-head h4 {
        flex: 1;
        margin: 0;
        font-size: 14.5px;
        font-weight: 700;
    }

.sbg-card-ic {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--c);
}

.sbg-card-go {
    font-size: 12px;
    color: var(--shp-muted);
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .25s ease, transform .3s var(--sh-ease);
}

.sbg-card:hover .sbg-card-go {
    opacity: 1;
    transform: none;
    color: var(--c);
}

.sbg-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .sbg-card-main dl {
        flex: 1;
        min-width: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

        .sbg-card-main dl > div {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            font-size: 12.5px;
            padding-bottom: 5px;
            border-bottom: 1px dashed var(--shp-border);
        }

            .sbg-card-main dl > div:last-child {
                border-bottom: 0;
                padding-bottom: 0;
            }

    .sbg-card-main dt {
        font-weight: 500;
        color: var(--shp-muted);
    }

    .sbg-card-main dd {
        margin: 0;
        font-weight: 700;
        direction: ltr;
        white-space: nowrap;
    }

@keyframes sbg-widen {
    from { transform: scaleX(0); opacity: 0; }
}

@keyframes sbg-nudge {
    0%, 100% { transform: translateY(-1px); }
    50% { transform: translateY(2px); }
}

/* =========================================================
   كل الموظفين / المتصلون — ConnectedUsersPage (sbu-*)
   ========================================================= */
.sbu-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.sbu-stat {
    --c: var(--sh-blue);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--shp-border);
    box-shadow: var(--shp-shadow);
    animation: sbx-rise .6s var(--sh-ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

    .sbu-stat > i {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        font-size: 18px;
        color: #fff;
        background: var(--c);
    }

    .sbu-stat > div:last-child {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .sbu-stat small {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: var(--shp-muted);
        white-space: nowrap;
    }

    .sbu-stat b {
        font-size: 20px;
        font-weight: 700;
        direction: ltr;
        text-align: start;
    }

[dir="rtl"] .sbu-stat b { text-align: right; }

.sbu-stat.is-live {
    background: linear-gradient(135deg, #fff 55%, color-mix(in srgb, var(--sh-green) 10%, #fff));
}

/* نقطة "متصل" تنبض */
.sbu-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
}

    .sbu-dot::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: inherit;
        animation: sbx-ping 1.6s ease-out infinite;
    }

.sbu-devices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .sbu-devices span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 2px 9px;
        border-radius: 999px;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--sh-blue);
        background: var(--sh-sky-50);
    }

.sbu-composer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--shp-border);
    box-shadow: var(--shp-shadow);
    animation: shp-up .55s var(--sh-ease) both .15s;
}

.sbu-composer-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .sbu-composer-head > div {
        flex: 1;
        min-width: 0;
    }

    .sbu-composer-head h3 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
    }

    .sbu-composer-head small {
        font-size: 12px;
        color: var(--shp-muted);
    }

.sbu-composer-ic {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--sh-blue), var(--sh-sky));
}

    .sbu-composer-ic i {
        animation: sbu-fly 3s var(--sh-ease) infinite;
    }

.sbu-quick {
    min-height: 36px;
    font-size: 12.5px;
    padding: 0 12px;
}

.sbu-msg {
    position: relative;
}

    .sbu-msg .e-input-group textarea {
        min-height: 90px;
    }

.sbu-len {
    position: absolute;
    bottom: 8px;
    inset-inline-end: 10px;
    font-size: 11px;
    color: var(--shp-muted);
    pointer-events: none;
}

.sbu-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

    .sbu-actions .shp-btn {
        min-height: 40px;
        font-size: 13px;
        padding: 0 14px;
    }

.sbu-danger {
    color: #B91C1C;
    background: #FEF2F2;
    border-color: #FECACA;
}

    .sbu-danger:hover {
        color: #fff;
        background: #DC2626;
    }

.sbu-sending {
    font-size: 12.5px;
    color: var(--shp-muted);
}

.sbu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .sbu-bar .sbx-seg {
        flex: 0 1 auto;
    }

.sbu-on {
    color: #22C55E;
    font-size: 8px;
}

.sbx-seg button.is-active .sbu-on {
    color: #86EFAC;
}

.sbu-user {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sbu-av {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--sh-blue);
    background: var(--sh-blue-50);
}

    .sbu-av::after {
        content: "";
        position: absolute;
        bottom: -2px;
        inset-inline-end: -2px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 2px solid #fff;
        background: #CBD5E1;
    }

    .sbu-av.is-on {
        color: #fff;
        background: linear-gradient(135deg, var(--sh-blue), var(--sh-sky));
    }

        .sbu-av.is-on::after {
            background: #22C55E;
        }

.sbu-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sbu-code {
    padding: 1px 7px;
    border-radius: 7px;
    font-size: 11.5px;
    color: var(--sh-navy);
    background: var(--sh-mist);
    direction: ltr;
}

.sbu-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--sh-blue);
    background: var(--sh-sky-50);
}

.sbu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    color: var(--sh-blue);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
}

    .sbu-link i {
        font-size: 10px;
        opacity: .6;
    }

    .sbu-link:hover {
        text-decoration: underline;
    }

.sbu-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.sbu-last {
    font-size: 12px;
    color: var(--shp-muted);
    direction: ltr;
}

.sbu-call {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sbu-ic {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 13px;
    color: var(--sh-blue);
    background: var(--sh-blue-50);
    cursor: pointer;
    transition: transform .2s var(--sh-ease), background .2s ease, color .2s ease;
}

    .sbu-ic:hover {
        transform: translateY(-1px);
        color: #fff;
        background: var(--sh-blue);
    }

    .sbu-ic.is-primary {
        color: #fff;
        background: var(--sh-sky);
    }

.sbu-call .sbu-more.e-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 9px;
}

    .sbu-call .sbu-more.e-btn .e-caret {
        display: none;
    }

/* ألوان صفوف المتصل/غير المتصل داخل التصميم الجديد */
.sbu-grid .e-grid .e-row.GoodRow .e-rowcell {
    background: color-mix(in srgb, #22C55E 6%, #fff);
}

.sbu-grid .e-grid .e-row.BadRow .e-rowcell {
    background: #fff;
}

@keyframes sbu-fly {
    0%, 70%, 100% { transform: translate(0, 0); }
    80% { transform: translate(3px, -3px); }
    90% { transform: translate(-1px, 1px); }
}

/* =========================================================
   محرر الكيانات العام — EntityEditorCompoWasm (sbee-*)
   ========================================================= */
.sbee-head {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

    .sbee-head > .shp-btn {
        align-self: center;
    }

.sbee-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.sbee-stat {
    --c: var(--sh-blue);
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--shp-border);
    box-shadow: var(--shp-shadow);
    animation: sbx-rise .55s var(--sh-ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

    .sbee-stat > i {
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        font-size: 16px;
        color: #fff;
        background: var(--c);
    }

    .sbee-stat > div {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .sbee-stat small {
        font-size: 11.5px;
        color: var(--shp-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sbee-stat b {
        font-size: 18px;
        font-weight: 700;
        direction: ltr;
        text-align: start;
        animation: sbx-reveal .8s var(--sh-ease) both;
        animation-delay: calc(.15s + var(--i, 0) * 70ms);
    }

[dir="rtl"] .sbee-stat b { text-align: right; }

.sbee-stat em {
    font-style: normal;
    font-size: 10.5px;
    color: var(--shp-muted);
}

.sbee-pager .e-pager {
    border: 1px solid var(--shp-border) !important;
    border-radius: 14px;
    background: #fff;
}

    .sbee-pager .e-pager .e-currentitem,
    .sbee-pager .e-pager .e-currentitem:hover {
        color: #fff !important;
        background: var(--sh-blue) !important;
        border-radius: 9px;
    }

@media (max-width: 600px) {
    .sbg-stage { grid-template-columns: 1fr 86px; }
    .sbg-conv { margin-inline-end: 0; }
    .sbu-bar { flex-wrap: wrap; }
    .sbee-head { flex-direction: column; }
    .sbee-head > .shp-btn { align-self: flex-end; }
    .sbe-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .sbg-stage-bar span,
    .sbg-conv i,
    .sbu-dot::after,
    .sbu-composer-ic i {
        animation: none !important;
    }
}

/* =========================================================
   تضمين صفحة كاملة داخل قسم (SalesDashboardPage)
   ========================================================= */
.sbx-embed > .shp-page {
    padding: 0;
}

    /* رأس القسم يغني عن بطل الصفحة المضمّنة */
    .sbx-embed > .shp-page > .shp-hero {
        display: none;
    }

/* =========================================================
   الأنظمة المباعة — SoldSystemsComponent (sbm-*)
   ========================================================= */
.sbm,
.sbc {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sbm-body,
.sbc-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity .25s ease;
}

    .sbm-body.is-busy,
    .sbc-body.is-busy {
        opacity: .55;
        pointer-events: none;
    }

.sbm-best {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 1100px) {
    .sbm-best { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .sbm-best { grid-template-columns: 1fr; }
}

/* بطاقة أفضل موظف — بلون الهوية مع خطوط السقف */
.sbm-hero-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 0;
    border-radius: 20px;
    color: #fff;
    font: inherit;
    text-align: start;
    cursor: pointer;
    background: linear-gradient(135deg, var(--sh-blue), var(--sh-navy));
    box-shadow: 0 16px 34px rgba(0, 109, 183, .28);
    transition: transform .35s var(--sh-ease), box-shadow .35s var(--sh-ease);
    animation: sbx-rise .6s var(--sh-ease) both;
}

    .sbm-hero-card::before {
        content: "";
        position: absolute;
        z-index: -1;
        width: 170px;
        height: 170px;
        inset-inline-end: -40px;
        bottom: -70px;
        border: 2px solid rgba(255, 255, 255, .16);
        border-bottom: 0;
        border-radius: 26px 26px 0 0;
        transform: rotate(45deg);
        box-shadow: 0 0 0 16px rgba(15, 178, 242, .1);
    }

    .sbm-hero-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 22px 44px rgba(0, 109, 183, .36);
    }

    .sbm-hero-card > small {
        font-size: 12.5px;
        opacity: .85;
    }

    .sbm-hero-card h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #fff;
    }

.sbm-crown {
    position: absolute;
    top: 12px;
    inset-inline-end: 14px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #3B2A00;
    background: linear-gradient(135deg, #F7A21B, #FFD27A);
    box-shadow: 0 6px 16px rgba(247, 162, 27, .45);
    animation: sbm-bob 2.8s ease-in-out infinite;
}

.sbm-emp {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sbm-ring {
    --tone: #FFD27A;
    background: conic-gradient(#FFD27A calc(var(--sh-p) * 1%), rgba(255, 255, 255, .16) 0);
}

    .sbm-ring > div {
        background: var(--sh-navy);
    }

    .sbm-ring b {
        color: #FFD27A;
    }

.sbm-emp-txt {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .sbm-emp-txt span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-size: 12.5px;
        direction: ltr;
        justify-content: flex-end;
        opacity: .92;
    }

[dir="ltr"] .sbm-emp-txt span { justify-content: flex-start; }

.sbm-card {
    --c: var(--sh-blue);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--shp-border);
    background: #fff;
    box-shadow: var(--shp-shadow);
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: transform .35s var(--sh-ease), box-shadow .35s var(--sh-ease), border-color .25s ease;
    animation: sbx-rise .6s var(--sh-ease) both;
    animation-delay: calc(var(--i, 0) * 80ms);
}

    .sbm-card::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        height: 3px;
        background: var(--c);
        transform: scaleX(0);
        transition: transform .4s var(--sh-ease);
    }

    .sbm-card:hover,
    .sbm-card.is-active {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--c) 40%, transparent);
        box-shadow: 0 14px 30px color-mix(in srgb, var(--c) 16%, transparent);
    }

        .sbm-card:hover::after,
        .sbm-card.is-active::after {
            transform: scaleX(1);
        }

    .sbm-card small {
        font-size: 12px;
        color: var(--shp-muted);
    }

    .sbm-card h4 {
        margin: 0;
        font-size: 14.5px;
        font-weight: 700;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.sbm-hero-card.is-active {
    outline: 3px solid rgba(15, 178, 242, .5);
    outline-offset: 2px;
}

.sbm-card-ic {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--c);
    margin-bottom: 4px;
}

.sbm-card-nums {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

    .sbm-card-nums b {
        font-size: 17px;
        font-weight: 700;
        color: var(--c);
        direction: ltr;
    }

        .sbm-card-nums b em {
            font-style: normal;
            font-size: 12px;
            font-weight: 500;
            color: var(--shp-muted);
        }

    .sbm-card-nums span {
        font-size: 12px;
        color: var(--shp-muted);
        direction: ltr;
    }

.sbm-systems-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.sbm-key {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--shp-muted);
}

    .sbm-key span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .sbm-key i {
        width: 10px;
        height: 10px;
        border-radius: 3px;
    }

    .sbm-key .c1, .sbm-sys-bar .c1 { background: var(--sh-blue); }
    .sbm-key .c2, .sbm-sys-bar .c2 { background: var(--sh-sky); opacity: .45; }

.sbm-systems ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sbm-systems li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: shp-up .5s var(--sh-ease) both;
    animation-delay: calc(var(--i, 0) * 60ms);
}

.sbm-sys-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13.5px;
}

    .sbm-sys-top b {
        font-weight: 600;
    }

    .sbm-sys-top span {
        font-weight: 700;
        color: var(--sh-blue);
        direction: ltr;
        white-space: nowrap;
    }

.sbm-sys-track {
    height: 10px;
    border-radius: 999px;
    background: var(--sh-mist);
    overflow: hidden;
}

.sbm-sys-bar {
    display: flex;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    transform-origin: right center;
    animation: shp-grow 1.2s var(--sh-ease) both;
    animation-delay: calc(.15s + var(--i, 0) * 70ms);
}

[dir="ltr"] .sbm-sys-bar { transform-origin: left center; }

.sbm-sys-bar .c2 { flex: 1; }

.sbm-systems li small {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    color: var(--shp-muted);
}

    .sbm-systems li small i {
        color: var(--sh-sky);
        margin-inline-end: 3px;
    }

    .sbm-systems li small .sbx-pill {
        margin-inline-start: auto;
        font-size: 11px;
        padding: 0 8px;
    }

@keyframes sbm-bob {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-3px) rotate(-6deg); }
}

/* =========================================================
   المطالبات المالية — EmpClaimsSummaryComponent (sbc-*)
   ========================================================= */
.sbc-budget {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--shp-border);
    box-shadow: var(--shp-shadow);
    animation: sbx-rise .6s var(--sh-ease) both;
}

@media (max-width: 760px) {
    .sbc-budget { grid-template-columns: 1fr; }
}

.sbc-budget-main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-inline-end: 18px;
    border-inline-end: 1px dashed var(--shp-border);
}

@media (max-width: 760px) {
    .sbc-budget-main {
        padding: 0 0 16px;
        border-inline-end: 0;
        border-bottom: 1px dashed var(--shp-border);
    }
}

.sbc-budget-txt {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .sbc-budget-txt small {
        font-size: 12px;
        color: var(--shp-muted);
    }

        .sbc-budget-txt small i {
            color: var(--sh-amber);
            margin-inline-end: 4px;
        }

    .sbc-budget-txt b {
        font-size: 24px;
        font-weight: 700;
        color: var(--sh-navy);
        direction: ltr;
        text-align: start;
        animation: sbx-reveal .8s var(--sh-ease) both .2s;
    }

[dir="rtl"] .sbc-budget-txt b { text-align: right; }

.sbc-budget-txt span {
    font-size: 12px;
    color: var(--shp-muted);
}

.sbc-budget-rows {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

    .sbc-budget-rows .shp-bar {
        height: 10px;
    }

.sbc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13.5px;
    animation: shp-up .5s var(--sh-ease) both;
    animation-delay: calc(.1s + var(--i, 0) * 80ms);
}

    .sbc-row span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--shp-muted);
    }

        .sbc-row span i {
            width: 26px;
            height: 26px;
            border-radius: 8px;
            display: grid;
            place-items: center;
            font-size: 12px;
            color: #fff;
            background: var(--c);
        }

    .sbc-row b {
        font-weight: 700;
        direction: ltr;
    }

        .sbc-row b.is-neg {
            color: #C2410C;
        }

.sbc-pending.has-pending > i {
    animation: sbx-pulse 1.8s ease-in-out infinite;
}

.sbc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .sbc-chips button {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 999px;
        border: 1px solid var(--shp-border);
        background: #fff;
        color: var(--shp-muted);
        font: inherit;
        font-size: 12.5px;
        cursor: pointer;
        transition: background .2s ease, color .2s ease, border-color .2s ease;
    }

        .sbc-chips button span {
            padding: 0 7px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            color: var(--sh-blue);
            background: var(--sh-blue-50);
        }

        .sbc-chips button.is-action {
            border-color: color-mix(in srgb, var(--sh-orange) 40%, transparent);
            color: var(--sh-orange);
        }

        .sbc-chips button.is-active {
            color: #fff;
            border-color: var(--sh-blue);
            background: var(--sh-blue);
        }

            .sbc-chips button.is-active span {
                color: #fff;
                background: rgba(255, 255, 255, .22);
            }

.sbc-id {
    font-weight: 600;
    color: var(--sh-blue);
    direction: ltr;
}

.sbc-status {
    --t: var(--sh-blue);
    display: inline-flex;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--t);
    background: color-mix(in srgb, var(--t) 12%, #fff);
}

    .sbc-status.is-wait { --t: #B45309; }
    .sbc-status.is-no { --t: #C2410C; }
    .sbc-status.is-back { --t: var(--sh-navy); }
    .sbc-status.is-yes { --t: #15803D; }

.sbc-actions {
    display: inline-flex;
    gap: 6px;
}

.sbc-act {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    display: grid;
    place-items: center;
    font-size: 13px;
    cursor: pointer;
    transition: transform .2s var(--sh-ease), background .2s ease, color .2s ease;
}

    .sbc-act:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

    .sbc-act:hover:not(:disabled) {
        transform: translateY(-1px);
    }

    .sbc-act.is-yes { color: #fff; background: var(--sh-green); }
    .sbc-act.is-no { color: #C2410C; background: #FFF1EB; border-color: #FBD5C4; }
    .sbc-act.is-back { color: var(--sh-navy); background: var(--sh-mist); }

        .sbc-act.is-no:hover:not(:disabled) { color: #fff; background: var(--sh-orange); }
        .sbc-act.is-back:hover:not(:disabled) { color: #fff; background: var(--sh-navy); }

@media (prefers-reduced-motion: reduce) {
    .sbm-crown,
    .sbc-pending.has-pending > i {
        animation: none !important;
    }
}

/* =========================================================
   مكالمات السنترال — CentralSummaryComponent (sbk-*)
   ========================================================= */
.sbk {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sbk-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity .25s ease;
}

    .sbk-body.is-busy {
        opacity: .55;
        pointer-events: none;
    }

.sbk-types {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .sbk-types .sbx-seg {
        flex: 1;
        min-width: 0;
    }

.sbk-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

    .sbk-tabs > .sbx-seg {
        flex: 0 1 320px;
    }

/* ألوان حالات المكالمة */
.is-ok { --st: #16A34A; }
.is-miss { --st: var(--sh-orange); }
.is-busy.sbk-st, .sbk-seg.is-busy, .sbk-st.is-busy { --st: var(--sh-amber); }
.is-fail { --st: #B91C1C; }
.is-other { --st: var(--sh-sky); }

.sbk-seg {
    background: var(--st, var(--sh-sky));
}

.sbk-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 4px 4px 10px;
    border-radius: 999px;
    background: var(--sh-blue-50);
    font-size: 12.5px;
    animation: sbx-open .35s var(--sh-ease) both;
}

[dir="rtl"] .sbk-active { padding: 4px 10px 4px 4px; }

.sbk-active > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--sh-blue);
}

.sbk-active button {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    color: var(--sh-blue);
    background: #fff;
    cursor: pointer;
}

/* شارة حالة */
.sbk-st i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--st, var(--sh-sky));
}

.sbk-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--st, var(--sh-sky));
    background: color-mix(in srgb, var(--st, var(--sh-sky)) 11%, #fff);
}

    .sbk-pill i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
    }

.sbk-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .sbk-legend li {
        animation: shp-up .45s var(--sh-ease) both;
        animation-delay: calc(.2s + var(--i, 0) * 60ms);
    }

    .sbk-legend button {
        width: 100%;
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        align-items: center;
        gap: 10px;
        padding: 7px 10px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        font: inherit;
        font-size: 13px;
        color: inherit;
        text-align: start;
        cursor: pointer;
        transition: background .2s ease;
    }

        .sbk-legend button:hover {
            background: color-mix(in srgb, var(--st, var(--sh-sky)) 8%, #fff);
        }

        .sbk-legend button b {
            font-weight: 700;
            direction: ltr;
            color: var(--st, var(--sh-sky));
        }

        .sbk-legend button small {
            min-width: 48px;
            text-align: end;
            font-size: 12px;
            color: var(--shp-muted);
            direction: ltr;
        }

.sbk-top {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .sbk-top li {
        animation: shp-up .45s var(--sh-ease) both;
        animation-delay: calc(.15s + var(--i, 0) * 60ms);
    }

    .sbk-top button {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px;
        border: 0;
        border-radius: 14px;
        background: transparent;
        font: inherit;
        color: inherit;
        text-align: start;
        cursor: pointer;
        transition: background .2s ease;
    }

        .sbk-top button:hover {
            background: var(--sh-blue-50);
        }

.sbk-av {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--sh-blue), var(--sh-sky));
}

.sbk-top-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sbk-top-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13.5px;
}

    .sbk-top-row b {
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sbk-top-row span {
        font-weight: 700;
        color: var(--sh-blue);
        direction: ltr;
    }

.sbk-top-bar {
    display: flex;
    gap: 2px;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--sh-mist);
}

    .sbk-top-bar span {
        height: 100%;
        transform-origin: right center;
        animation: shp-grow 1.1s var(--sh-ease) both .25s;
    }

[dir="ltr"] .sbk-top-bar span { transform-origin: left center; }

.sbk-top-main small {
    font-size: 11.5px;
    color: var(--shp-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sbk-go {
    font-size: 11px;
    color: var(--shp-muted);
    opacity: 0;
    transition: opacity .2s ease, transform .3s var(--sh-ease);
}

[dir="ltr"] .sbk-go { transform: scaleX(-1); }

.sbk-top button:hover .sbk-go {
    opacity: 1;
    color: var(--sh-blue);
}

.sbk-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--shp-muted);
}

@media (max-width: 600px) {
    .sbk-types { flex-wrap: wrap; }
    .sbk-tabs > .sbx-seg { flex: 1 1 100%; }
}

/* =========================================================
   التنقل العائم — قائمة التقارير + العودة للأعلى (sbx-fab / sbx-jump)
   ========================================================= */

/* تمييز القسم الظاهر حالياً في شريط التنقل (يضبطه السكربت عبر data-on) */
.sbx-nav button[data-on] {
    color: #fff;
    background: var(--sh-blue);
    box-shadow: 0 6px 14px rgba(0, 109, 183, .25);
}

    .sbx-nav button[data-on] b {
        color: rgba(255, 255, 255, .8);
    }

.sbx-fab {
    position: fixed;
    z-index: 60;
    inset-inline-end: max(16px, env(safe-area-inset-right));
    bottom: calc(var(--shp-sticky-bottom, 12px) + 8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.sbx-fab-btn {
    position: relative;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
    pointer-events: auto;
    transition: transform .35s var(--sh-ease-spring), box-shadow .3s ease, opacity .3s ease, background .25s ease;
}

    .sbx-fab-btn:active {
        transform: scale(.92);
    }

    .sbx-fab-btn.is-menu {
        color: #fff;
        background: var(--sh-blue);
        box-shadow: 0 14px 30px rgba(0, 109, 183, .38);
        animation: sbx-fab-in .6s var(--sh-ease-spring) .6s both;
    }

        .sbx-fab-btn.is-menu:hover {
            transform: translateY(-2px);
            box-shadow: 0 18px 36px rgba(0, 109, 183, .45);
        }

        .sbx-fab-btn.is-menu.is-on {
            background: var(--sh-navy);
        }

    /* زر الأعلى: مخفي حتى ينزل المستخدم، وحوله حلقة تقدم التمرير */
    .sbx-fab-btn.is-top {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        font-size: 15px;
        color: var(--sh-blue);
        background: #fff;
        box-shadow: 0 10px 24px rgba(11, 27, 43, .14);
        opacity: 0;
        transform: translateY(14px) scale(.8);
        pointer-events: none;
    }

.sbx-fab[data-scrolled] .sbx-fab-btn.is-top {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.sbx-fab-btn.is-top:hover {
    color: #fff;
    background: var(--sh-blue);
}

    .sbx-fab-btn.is-top:hover i {
        animation: sbx-fab-up .6s var(--sh-ease) both;
    }

.sbx-fab-btn.is-top svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

    .sbx-fab-btn.is-top svg circle {
        fill: none;
        stroke-width: 2.5;
    }

    .sbx-fab-btn.is-top svg .trk {
        stroke: var(--sh-blue-50);
    }

    .sbx-fab-btn.is-top svg .prg {
        stroke: var(--sh-sky);
        stroke-linecap: round;
        stroke-dasharray: 100;
        stroke-dashoffset: calc(100 - var(--sx, 0));
        transition: stroke-dashoffset .15s linear;
    }

.sbx-fab-btn.is-top:hover svg .trk { stroke: rgba(255, 255, 255, .25); }
.sbx-fab-btn.is-top:hover svg .prg { stroke: #fff; }

.sbx-fab-badge {
    position: absolute;
    top: -5px;
    inset-inline-start: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    border: 2px solid #fff;
    display: grid;
    place-items: center;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: var(--sh-orange);
}

/* ---------- لوحة التقارير ---------- */
.sbx-jump-backdrop {
    position: fixed;
    inset: 0;
    z-index: 58;
    background: rgba(11, 27, 43, .28);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: sbx-fade .25s ease both;
}

.sbx-jump {
    position: fixed;
    z-index: 59;
    inset-inline-end: max(16px, env(safe-area-inset-right));
    bottom: calc(var(--shp-sticky-bottom, 12px) + 8px + 52px + 12px);
    width: min(360px, calc(100vw - 32px));
    max-height: min(70vh, 620px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--shp-border);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(11, 27, 43, .25);
    overflow: hidden;
    transform-origin: bottom right;
    animation: sbx-jump-in .4s var(--sh-ease-spring) both;
}

[dir="rtl"] .sbx-jump,
.shp-page[dir="rtl"] .sbx-jump {
    transform-origin: bottom left;
}

.sbx-jump-head {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--sh-blue), var(--sh-navy));
}

    /* سقف البيت من الهوية */
    .sbx-jump-head::after {
        content: "";
        position: absolute;
        width: 110px;
        height: 110px;
        inset-inline-end: 40px;
        top: 30px;
        border: 2px solid rgba(255, 255, 255, .14);
        border-radius: 18px;
        transform: rotate(45deg);
        pointer-events: none;
    }

    .sbx-jump-head h3 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sbx-jump-head small {
        font-size: 12px;
        opacity: .8;
    }

.sbx-jump-x {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    cursor: pointer;
}

.sbx-jump-list {
    list-style: none;
    margin: 0;
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .sbx-jump-list li {
        animation: shp-up .35s var(--sh-ease) both;
        animation-delay: calc(var(--i, 0) * 22ms);
    }

    .sbx-jump-list button {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 8px 10px;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: inherit;
        font: inherit;
        text-align: start;
        cursor: pointer;
        transition: background .2s ease;
    }

        .sbx-jump-list button:hover {
            background: var(--sh-blue-50);
        }

        .sbx-jump-list button[data-on] {
            background: var(--sh-blue-50);
            box-shadow: inset 3px 0 0 var(--sh-blue);
        }

[dir="rtl"] .sbx-jump-list button[data-on] {
    box-shadow: inset -3px 0 0 var(--sh-blue);
}

.sbx-jump-ic {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #fff;
}

.sbx-jump-txt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .sbx-jump-txt b {
        font-size: 13.5px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sbx-jump-txt small {
        font-size: 11px;
        color: var(--sh-sky);
        font-weight: 600;
        direction: ltr;
        text-align: start;
    }

[dir="rtl"] .sbx-jump-txt small { text-align: right; }

/* نقطة: مفتوح (أخضر) / مغلق (رمادي) */
.sbx-jump-state {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #CBD5E1;
}

.sbx-jump-list button.is-open .sbx-jump-state {
    background: #22C55E;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .15);
}

.sbx-jump-foot {
    display: flex;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--shp-border);
}

    .sbx-jump-foot .shp-btn {
        flex: 1;
        min-height: 40px;
        font-size: 13px;
    }

/* على الجوال: اللوحة تظهر كورقة سفلية */
@media (max-width: 600px) {
    .sbx-jump {
        inset-inline: 0;
        bottom: 0;
        width: 100%;
        max-height: 78vh;
        border-radius: 24px 24px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
        transform-origin: bottom center;
        animation-name: sbx-sheet-in;
    }

    .sbx-jump {
        bottom: max(0px, calc(var(--shp-sticky-bottom, 12px) - 12px));
    }

    .sbx-fab.is-open {
        display: none;
    }

    .sbx-fab-btn.is-menu {
        width: 48px;
        height: 48px;
    }
}

@keyframes sbx-fab-in {
    from { opacity: 0; transform: translateY(20px) scale(.6); }
}

@keyframes sbx-fab-up {
    0% { transform: translateY(0); }
    45% { transform: translateY(-140%); opacity: 0; }
    46% { transform: translateY(140%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes sbx-jump-in {
    from { opacity: 0; transform: translateY(12px) scale(.9); }
}

@keyframes sbx-sheet-in {
    from { transform: translateY(100%); }
}

@keyframes sbx-fade {
    from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sbx-fab-btn,
    .sbx-jump,
    .sbx-jump-backdrop,
    .sbx-jump-list li {
        animation: none !important;
        transition: none !important;
    }
}

/* أثناء فتح اللوحة: زر "للأعلى" موجود داخلها، فنخفي الزر العائم حتى لا يتداخل معها */
.sbx-fab.is-open .sbx-fab-btn.is-top {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =========================================================
   تقسيم 70% / 30% — جدول + رسم (التقرير 04)
   ========================================================= */
.sbx-split-70 {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 16px;
    align-items: stretch;
}

    .sbx-split-70 > * {
        min-width: 0; /* يمنع الجدول من دفع العمود الآخر خارج الشاشة */
    }

    .sbx-split-70 > .sbx-chart {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

@media (max-width: 900px) {
    .sbx-split-70 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================================
   الرسوم البيانية — حاوية مستديرة + تعريف التدرجات
   ========================================================= */
.sbx-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.sbx-chart {
    border-radius: 22px;
    padding: 16px 12px 8px;
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(15, 178, 242, .06), transparent 60%),
        linear-gradient(180deg, #FBFDFF, #fff);
    box-shadow: 0 1px 2px rgba(11, 27, 43, .04), 0 10px 26px rgba(0, 109, 183, .06);
}

    /* تكبير خفيف للعمود عند المرور */
    .sbx-chart svg [id*="_Series_"][id*="_Point_"] {
        transition: opacity .2s ease, filter .2s ease;
    }

        .sbx-chart svg [id*="_Series_"][id*="_Point_"]:hover {
            filter: brightness(1.08) drop-shadow(0 4px 6px rgba(0, 76, 140, .25));
        }


/* =========================================================
   رأس الصفحة shph — PageHeaderCompo
   بطاقة بيضاء خفيفة، أيقونة في مربع أزرق فاتح، وخط «المسار» من الهوية أسفلها
   (خط رمادي، مقطع أزرق، ونقطة في نهايته) كما في رأس صفحات عرض السعر 2026.
   ========================================================= */
.shph {
    --shph-bg: #ffffff;
    --shph-text: #0B1B2B;
    --shph-muted: #5B6B7B;
    --shph-line: rgba(0, 109, 183, .14);
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-height: 60px;
    margin: 0 0 12px;
    padding: 10px 16px 16px;
    background: var(--shph-bg);
    border: 1px solid var(--shph-line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(11, 27, 43, .04), 0 6px 18px rgba(0, 109, 183, .06);
    font-family: var(--sh-font);
    overflow: hidden;
}

.shph-ic {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--sh-blue-50, #E6F0F8);
    color: var(--sh-blue, #006DB7);
    font-size: 18px;
}

.shph-back {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--sh-blue-50, #E6F0F8);
    color: var(--sh-blue, #006DB7);
    font-size: 16px;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .15s;
}

.shph-back:hover {
    background: rgba(0, 109, 183, .18);
}

.shph-tx {
    flex: 1 1 auto;
    min-width: 0;
}

.shph .shph-title {
    margin: 0;
    font-family: var(--sh-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--shph-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shph-sub {
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--shph-muted);
}

.shph-actions {
    flex: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* خط المسار أسفل الرأس: يبدأ من جهة القراءة (يمين في العربية) */
.shph-trace {
    position: absolute;
    inset-inline: 16px;
    bottom: 7px;
    height: 7px;
    pointer-events: none;
}

    .shph-trace .ln {
        position: absolute;
        inset-inline: 0;
        top: 3px;
        height: 1px;
        background: #E2E7EC;
    }

    .shph-trace .tr {
        position: absolute;
        inset-inline-start: 0;
        top: 2px;
        width: 96px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(to left, var(--sh-sky, #0FB2F2), var(--sh-blue, #006DB7));
    }

    [dir="ltr"] .shph-trace .tr, .shph[dir="ltr"] .shph-trace .tr {
        background: linear-gradient(to right, var(--sh-sky, #0FB2F2), var(--sh-blue, #006DB7));
    }

    .shph-trace .nd {
        position: absolute;
        inset-inline-start: 92px;
        top: 0;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid var(--sh-blue, #006DB7);
        box-sizing: border-box;
    }

@media (max-width: 576px) {
    .shph {
        min-height: 52px;
        padding: 8px 12px 14px;
        gap: 10px;
        border-radius: 14px;
    }

    .shph-ic {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 15px;
    }

    .shph .shph-title {
        font-size: 16px;
    }

    .shph {
        flex-wrap: wrap;
    }

    .shph-actions {
        width: 100%;
    }
}

@media print {
    .shph {
        box-shadow: none;
        border-color: #E2E7EC;
    }
}


/* =========================================================
   الأكورديون — كل SfAccordion في النظام (استثناء: CssClass="sh-acc-plain")
   كل عنصر بطاقة بيضاء مستقلة، ورأس بأيقونة توسيع في دائرة، وخط المسار
   الأزرق أسفل رأس العنصر المفتوح، كما في رأس الصفحة.
   ========================================================= */
.e-accordion:not(.sh-acc-plain) {
    --acc-line: rgba(0, 109, 183, .14);
    --acc-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-family: var(--sh-font);
}

    .e-accordion:not(.sh-acc-plain) .e-acrdn-item {
        position: relative;
        margin: 0 !important;
        overflow: visible;
        background: #fff !important;
        border: 1px solid var(--acc-line) !important;
        border-radius: var(--acc-radius) !important;
        box-shadow: 0 1px 2px rgba(11, 27, 43, .04), 0 6px 18px rgba(0, 109, 183, .05);
        transition: box-shadow .2s var(--sh-ease), border-color .2s var(--sh-ease);
    }

        .e-accordion:not(.sh-acc-plain) .e-acrdn-item:hover {
            border-color: rgba(0, 109, 183, .26) !important;
        }

        .e-accordion:not(.sh-acc-plain) .e-acrdn-item.e-select.e-selected,
        .e-accordion:not(.sh-acc-plain) .e-acrdn-item.e-expand-state {
            box-shadow: 0 1px 2px rgba(11, 27, 43, .04), 0 10px 26px rgba(0, 109, 183, .08);
        }

    /* الرأس */
    .e-accordion:not(.sh-acc-plain) .e-acrdn-item .e-acrdn-header {
        position: relative;
        display: flex !important;
        align-items: center;
        gap: 10px;
        min-height: 52px !important;
        padding: 10px 16px !important;
        padding-inline-end: 56px !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: var(--acc-radius) !important;
        line-height: 1.4 !important;
        cursor: pointer;
    }

        .e-accordion:not(.sh-acc-plain) .e-acrdn-item .e-acrdn-header:focus-visible {
            outline: 2px solid var(--sh-sky);
            outline-offset: -2px;
            box-shadow: none !important;
        }

    .e-accordion:not(.sh-acc-plain) .e-acrdn-item.e-expand-state > .e-acrdn-header,
    .e-accordion:not(.sh-acc-plain) .e-acrdn-item.e-selected > .e-acrdn-header {
        border-end-start-radius: 0 !important;
        border-end-end-radius: 0 !important;
    }

    .e-accordion:not(.sh-acc-plain) .e-acrdn-header .e-acrdn-header-content {
        min-width: 0;
        color: var(--shp-text, #0B1B2B) !important;
        font-family: var(--sh-font);
        font-size: 14px !important;
        font-weight: 700 !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .e-accordion:not(.sh-acc-plain) .e-acrdn-header .e-acrdn-header-icon {
        flex: none;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 10px;
        color: var(--sh-blue) !important;
        background: var(--sh-blue-50) !important;
    }

    /* زر التوسيع: دائرة على طرف الرأس */
    .e-accordion:not(.sh-acc-plain) .e-acrdn-header .e-toggle-icon {
        position: absolute !important;
        top: 50% !important;
        inset-inline-end: 14px !important;
        right: auto;
        left: auto;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 30px !important;
        height: 30px !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 50%;
        transform: translateY(-50%);
        color: var(--sh-blue) !important;
        background: var(--sh-blue-50) !important;
        transition: background .2s var(--sh-ease), color .2s var(--sh-ease);
    }

    [dir="rtl"] .e-accordion:not(.sh-acc-plain) .e-acrdn-header .e-toggle-icon,
    .e-accordion.e-rtl:not(.sh-acc-plain) .e-acrdn-header .e-toggle-icon {
        left: 14px !important;
        right: auto !important;
    }

    .e-accordion.e-rtl:not(.sh-acc-plain) .e-acrdn-header,
    [dir="rtl"] .e-accordion:not(.sh-acc-plain) .e-acrdn-header {
        padding-left: 56px !important;
        padding-right: 16px !important;
    }

    .e-accordion:not(.sh-acc-plain) .e-acrdn-header .e-toggle-icon .e-icons {
        font-size: 11px !important;
        color: inherit !important;
    }

    .e-accordion:not(.sh-acc-plain) .e-acrdn-item.e-expand-state > .e-acrdn-header .e-toggle-icon,
    .e-accordion:not(.sh-acc-plain) .e-acrdn-item.e-selected > .e-acrdn-header .e-toggle-icon {
        color: #fff !important;
        background: var(--sh-blue) !important;
    }

    /* خط المسار تحت رأس العنصر المفتوح */
    .e-accordion:not(.sh-acc-plain) .e-acrdn-item.e-expand-state > .e-acrdn-header::after,
    .e-accordion:not(.sh-acc-plain) .e-acrdn-item.e-selected > .e-acrdn-header::after {
        content: "";
        position: absolute;
        bottom: 0;
        inset-inline: 16px;
        height: 1px;
        background: linear-gradient(to left, var(--sh-blue) 0, var(--sh-sky) 96px, #E2E7EC 96px);
    }

    [dir="ltr"] .e-accordion:not(.sh-acc-plain) .e-acrdn-item.e-expand-state > .e-acrdn-header::after,
    .e-accordion:not(.e-rtl):not(.sh-acc-plain) .e-acrdn-item.e-expand-state > .e-acrdn-header::after {
        background: linear-gradient(to right, var(--sh-blue) 0, var(--sh-sky) 96px, #E2E7EC 96px);
    }

    .e-accordion.e-rtl:not(.sh-acc-plain) .e-acrdn-item.e-expand-state > .e-acrdn-header::after {
        background: linear-gradient(to left, var(--sh-blue) 0, var(--sh-sky) 96px, #E2E7EC 96px);
    }

    /* المحتوى */
    .e-accordion:not(.sh-acc-plain) .e-acrdn-item .e-acrdn-panel {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 0 var(--acc-radius) var(--acc-radius);
    }

    .e-accordion:not(.sh-acc-plain) .e-acrdn-item .e-acrdn-panel .e-acrdn-content {
        padding: 16px !important;
        background: transparent !important;
        border: 0 !important;
        color: var(--shp-text, #0B1B2B);
        font-family: var(--sh-font);
    }

    /* عنصر داخل عنصر */
    .e-accordion:not(.sh-acc-plain) .e-acrdn-content .e-accordion:not(.sh-acc-plain) .e-acrdn-item {
        box-shadow: none;
        background: #FAFCFD !important;
    }

@media (max-width: 576px) {
    .e-accordion:not(.sh-acc-plain) .e-acrdn-item .e-acrdn-header {
        min-height: 48px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .e-accordion:not(.sh-acc-plain) .e-acrdn-item .e-acrdn-panel .e-acrdn-content {
        padding: 12px !important;
    }
}

/* =========================================================
   لوحة الفلاتر shf (داخل أكورديون) — شاشة طلبات التنفيذ وغيرها
   شبكة تتكيّف مع العرض: كل حقل بعرض أدنى 200px، والحقول العريضة عمودان،
   فلا تتداخل الحقول في أي حجم شاشة.
   ========================================================= */
.shf-head {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .shf-head > i {
        display: inline-grid;
        place-items: center;
        width: 30px;
        height: 30px;
        border-radius: 9px;
        font-size: 13px;
        color: var(--sh-blue);
        background: var(--sh-blue-50);
    }

.shf-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    color: #fff;
    background: var(--sh-orange);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.shf {
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* الأعمدة تُحسب من عرض اللوحة نفسها لا الشاشة (القائمة الجانبية تأخذ جزءًا منها) */
    container-type: inline-size;
}

.shf-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.shf-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--shp-muted, #5B6B7B);
    letter-spacing: .2px;
}

/* عدد أعمدة ثابت لكل اللوحة (حسب عرضها) حتى تصطف الحقول بين المجموعات ولا يبقى عمود فارغ */
.shf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px 14px;
    align-items: end;
}

.shf-field {
    min-width: 0;
}

    .shf-field > * {
        width: 100%;
        max-width: 100%;
    }

    .shf-field .e-input-group,
    .shf-field .e-control-wrapper {
        width: 100% !important;
    }

.shf-wide {
    grid-column: span 2;
}

.shf-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--sh-blue-100);
}

.shf-checks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
}

.shf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-inline-start: auto;
}

@container (max-width: 900px) {
    .shf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container (max-width: 680px) {
    .shf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 440px) {
    .shf-grid {
        grid-template-columns: 1fr;
    }

    .shf-wide {
        grid-column: auto;
    }
}

@media (max-width: 480px) {

    .shf-actions {
        width: 100%;
    }

        .shf-actions .e-btn {
            flex: 1 1 auto;
        }
}


/* =========================================================
   إدارة الحساب acm — Account/Manage
   بطاقة تعريف + قائمة أقسام + بطاقات محتوى. تتكدّس على الجوال.
   ========================================================= */
.acm { font-family: var(--sh-font, inherit); color: var(--sh-navy, #15305F); max-width: 1180px; margin: 0 auto; padding: 4px 0 24px; }
.acm *, .acm *::before, .acm *::after { box-sizing: border-box; }
/* الصفحة تُعرض داخل .e-appbar (AccountLayout)، وأنماط Syncfusion هناك تجعل العناصر flex أفقيًا.
   نثبّت طريقة العرض لكل حاوية هنا حتى لا تتجاور البطاقة والقائمة والمحتوى. */
.acm { display: block !important; width: 100%; height: auto !important; }
.acm .acm-hero { display: flex !important; flex-direction: row; }
.acm .acm-hero-tx, .acm .acm-main, .acm .acm-side, .acm .acm-card { display: block !important; height: auto !important; }
.acm .acm-body { display: grid !important; }
.acm .acm-grid { display: grid !important; }
.acm .acm-nav { display: flex !important; flex-direction: column; }
.acm .acm-chips { display: flex !important; }

.acm-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: 16px; color: #fff;
  background: linear-gradient(120deg, var(--sh-navy, #15305F) 0%, var(--sh-blue, #006DB7) 70%, var(--sh-sky, #0FB2F2) 130%);
  box-shadow: 0 10px 28px rgba(21,48,95,.18); }
.acm-hero-trace { position: absolute; inset-inline-start: -40px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12); box-shadow: 0 0 0 28px rgba(255,255,255,.04), 0 0 0 64px rgba(255,255,255,.03); pointer-events: none; }
.acm-avatar { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: rgba(255,255,255,.16); border: 3px solid rgba(255,255,255,.85); font-size: 32px; font-weight: 700; z-index: 1; }
.acm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acm-hero-tx { min-width: 0; z-index: 1; }
.acm-hero-k { font-size: 12px; letter-spacing: .02em; opacity: .8; margin-bottom: 2px; }
.acm-hero-name { margin: 0 0 10px; font-size: 22px; font-weight: 700; line-height: 1.3; color: #fff; overflow-wrap: anywhere; }
.acm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.acm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); max-width: 100%; }
.acm-chip bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acm-chip i { opacity: .85; }

.acm-body { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 20px; margin-top: 20px; align-items: start; }
.acm-side { position: sticky; top: 84px; }
.acm-nav { background: #fff; border: 1px solid #E2E7EC; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 2px 8px rgba(21,48,95,.05); }
.acm-nav-k { font-size: 11.5px; font-weight: 600; color: var(--shp-muted, #6B7A90); padding: 10px 12px 4px; }
.acm-nav-k:first-child { padding-top: 4px; }
.acm-nav-link { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  color: var(--sh-navy, #15305F); text-decoration: none; font-size: 14px; transition: background .15s, color .15s; }
.acm-nav-link i { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; font-size: 14px;
  background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); }
.acm-nav-link:hover { background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); text-decoration: none; }
.acm-nav-link.active { background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); font-weight: 600; }
.acm-nav-link.active::before { content: ""; position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--sh-blue, #006DB7); }
.acm-nav-link.active i { background: var(--sh-blue, #006DB7); color: #fff; }

.acm-main { min-width: 0; min-height: calc(100vh - 360px); }
.acm-main > h3, .acm-main > h4 { font-size: 18px; font-weight: 700; color: var(--sh-navy, #15305F); margin: 0 0 14px; }
.acm-main > .alert { border-radius: 12px; }

.acm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.acm-card { background: #fff; border: 1px solid #E2E7EC; border-radius: 14px; padding: 20px; box-shadow: 0 2px 8px rgba(21,48,95,.05); min-width: 0; }
.acm-card-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #EEF1F4; }
.acm-card-head h2 { margin: 0 0 2px; font-size: 16px; font-weight: 700; color: var(--sh-navy, #15305F); }
.acm-card-head p { margin: 0; font-size: 12.5px; color: var(--shp-muted, #6B7A90); line-height: 1.6; }
.acm-card-ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); font-size: 17px; }

.acm-form { display: flex; flex-direction: column; gap: 14px; }
.acm-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.acm-field-k { font-size: 12.5px; font-weight: 600; color: var(--sh-navy, #15305F); }
.acm-input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #D5DCE4; border-radius: 10px; background: #fff; font: inherit; font-size: 14px;
  color: var(--sh-navy, #15305F); transition: border-color .15s, box-shadow .15s; text-align: left; }
.acm-input:focus { outline: none; border-color: var(--sh-blue, #006DB7); box-shadow: 0 0 0 3px rgba(0,109,183,.14); }
.acm-input[readonly] { background: #F5F7FA; color: #4A5A70; cursor: default; }
.acm-input[readonly]:focus { box-shadow: none; border-color: #D5DCE4; }
.acm-field-err, .acm .validation-message { color: #C0392B; font-size: 12px; }
.acm .validation-errors { margin: 0; padding-inline-start: 18px; color: #C0392B; font-size: 12.5px; }
.acm-note { margin: 2px 0 0; font-size: 12.5px; color: var(--shp-muted, #6B7A90); display: flex; gap: 6px; align-items: center; }
.acm-form-actions { display: flex; justify-content: flex-end; gap: 8px; }

.acm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.acm-btn-primary { background: var(--sh-blue, #006DB7); color: #fff; }
.acm-btn-primary:hover { background: #005A98; }
.acm-btn-ghost-danger { background: transparent; color: #C0392B; border-color: #F1C9C4; }
.acm-btn-ghost-danger:hover { background: #FDF1EF; }
.acm-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,109,183,.25); }

.acm-photo { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.acm-photo-preview { flex: 0 0 112px; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--sh-blue, #006DB7); color: #fff; font-size: 40px; font-weight: 700; border: 4px solid var(--sh-blue-50, #EEF6FC); box-shadow: 0 0 0 1px #E2E7EC; }
.acm-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.acm-photo-preview img[hidden], .acm-photo-preview span[hidden] { display: none; }
.acm-photo-tips { margin: 0; padding-inline-start: 18px; font-size: 12.5px; color: var(--shp-muted, #6B7A90); line-height: 1.9; }

.acm-file { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px; border: 1.5px dashed #C5D2DF; border-radius: 12px;
  background: #FAFCFE; cursor: pointer; margin: 0; transition: border-color .15s, background .15s; }
.acm-file:hover, .acm-file:focus-within { border-color: var(--sh-blue, #006DB7); background: var(--sh-blue-50, #EEF6FC); }
.acm-file input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.acm-file-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px;
  background: #fff; border: 1px solid #D5DCE4; font-size: 13px; font-weight: 600; color: var(--sh-blue, #006DB7); }
.acm-file-name { min-width: 0; font-size: 13px; color: var(--shp-muted, #6B7A90); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acm-remove { margin-top: 10px; display: flex; justify-content: flex-end; }

/* الصفحات الأخرى داخل إدارة الحساب (كلمة المرور، التحقق الثنائي...) تبقى بتنسيقها وتُوضع في بطاقة */
.acm-main > :not(.acm-grid):not(.alert):not(h3):not(h4):not(:empty) { background: #fff; border: 1px solid #E2E7EC; border-radius: 14px; padding: 20px; box-shadow: 0 2px 8px rgba(21,48,95,.05); }

@media (max-width: 900px) {
  .acm-body { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .acm-side { position: static; }
  .acm .acm-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding: 8px; scrollbar-width: thin; }
  .acm-nav-k { display: none; }
  .acm-nav-link { flex: 0 0 auto; white-space: nowrap; padding: 6px 10px; }
  .acm-nav-link.active::before { inset-inline-start: 10px; inset-inline-end: 10px; top: auto; bottom: 0; width: auto; height: 3px; }
}
@media (max-width: 560px) {
  .acm .acm-hero { flex-direction: column; text-align: center; padding: 20px 16px; }
  .acm-chips { justify-content: center; }
  .acm-grid { grid-template-columns: minmax(0,1fr); }
  .acm-card { padding: 16px; }
  .acm-photo { flex-direction: column; text-align: center; }
  .acm-photo-tips { list-style: none; padding: 0; }
  .acm-form-actions .acm-btn, .acm-remove .acm-btn { width: 100%; }
}


/* =========================================================
   مركز الإشعارات ntf — /Notifications
   شريط (حالة القراءة + فلاتر + طريقة العرض) ثم قائمة مجمّعة باليوم.
   ========================================================= */
.ntf { --ntf-line: #E6EBF1; --ntf-unread: #EAF3FB; font-family: var(--sh-font, inherit); }
.ntf *, .ntf *::before, .ntf *::after { box-sizing: border-box; }

.ntf-head-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ntf-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid #D5DCE4;
  background: #fff; color: var(--sh-navy, #15305F); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s; }
.ntf-btn:hover { border-color: var(--sh-blue, #006DB7); color: var(--sh-blue, #006DB7); }
.ntf-btn-primary { background: var(--sh-blue, #006DB7); border-color: var(--sh-blue, #006DB7); color: #fff; }
.ntf-btn-primary:hover { background: #005A98; color: #fff; }
.ntf-btn-icon { width: 38px; padding: 0; justify-content: center; }
.ntf-btn:focus-visible, .ntf-ic:focus-visible, .ntf-seg-btn:focus-visible, .ntf-view-btn:focus-visible, .ntf-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,109,183,.25); }

.ntf-shell { background: #fff; border: 1px solid var(--ntf-line); border-radius: 16px; box-shadow: 0 2px 10px rgba(21,48,95,.05); overflow: hidden; }
.ntf-tabs .e-content .e-item { padding-top: 12px; }

/* الشريط العلوي */
.ntf-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; padding: 16px 18px; border-bottom: 1px solid var(--ntf-line); background: #FBFCFE; }
.ntf-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: #EEF2F6; }
.ntf-seg-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent;
  color: #4A5A70; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.ntf-seg-btn:hover { color: var(--sh-navy, #15305F); }
.ntf-seg-btn.is-on { background: #fff; color: var(--sh-blue, #006DB7); box-shadow: 0 1px 3px rgba(21,48,95,.12); }
.ntf-seg-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--sh-orange, #E04D0A); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.ntf-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; flex: 1 1 480px; justify-content: flex-end; }
.ntf-f { flex: 0 1 170px; min-width: 150px; }
.ntf-f-user { flex-basis: 220px; }
.ntf-f .e-input-group, .ntf-f .e-float-input { margin-bottom: 0 !important; }
.ntf-view { display: inline-flex; border: 1px solid #D5DCE4; border-radius: 10px; overflow: hidden; height: 36px; flex: 0 0 auto; }
.ntf-view-btn { width: 38px; border: 0; background: #fff; color: #6B7A90; cursor: pointer; font-size: 14px; }
.ntf-view-btn + .ntf-view-btn { border-inline-start: 1px solid #D5DCE4; }
.ntf-view-btn.is-on { background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); }

/* القائمة */
.ntf-feed { padding: 4px 0 8px; }
.ntf-day { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 12px 20px 6px; background: rgba(255,255,255,.96);
  font-size: 12.5px; font-weight: 700; color: var(--sh-navy, #15305F); backdrop-filter: blur(4px); }
.ntf-day b { font-weight: 600; font-size: 11px; color: var(--shp-muted, #6B7A90); background: #EEF2F6; border-radius: 999px; padding: 1px 8px; }
.ntf-day::after { content: ""; flex: 1; height: 1px; background: var(--ntf-line); }
.ntf-list { list-style: none; margin: 0; padding: 0 10px; }
.ntf-item { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 14px; align-items: start; padding: 14px 12px; margin: 2px 0;
  border-radius: 12px; transition: background .15s; }
.ntf-item + .ntf-item::before { content: ""; position: absolute; top: -2px; inset-inline: 70px 12px; height: 1px; background: var(--ntf-line); }
.ntf-item:hover { background: #F7F9FB; }
.ntf-item:hover::before, .ntf-item:hover + .ntf-item::before { opacity: 0; }
.ntf-item.is-unread { background: var(--ntf-unread); }
.ntf-item.is-unread::after { content: ""; position: absolute; inset-inline-start: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--sh-blue, #006DB7); }
.ntf-item.is-unread + .ntf-item::before, .ntf-item.is-unread::before { opacity: 0; }

.ntf-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 17px; font-weight: 700; color: #fff;
  background: var(--sh-blue, #006DB7); }
.ntf-av img { width: 100%; height: 100%; object-fit: cover; }
.ntf-av-sys { background: linear-gradient(135deg, var(--sh-navy, #15305F), var(--sh-blue, #006DB7)); font-size: 16px; }
.ntf-av-wa { background: #25D366; font-size: 21px; }

.ntf-body { min-width: 0; cursor: pointer; }
.ntf-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 3px; }
.ntf-from { font-size: 14px; font-weight: 600; color: var(--sh-navy, #15305F); }
.ntf-item.is-unread .ntf-from { font-weight: 700; }
.ntf-sub { font-size: 12px; color: var(--shp-muted, #6B7A90); display: inline-flex; align-items: center; gap: 5px; }
.ntf-to i { font-size: 10px; opacity: .7; }
.ntf-time { margin-inline-start: auto; font-size: 12px; color: var(--shp-muted, #6B7A90); white-space: nowrap; }
.ntf-item.is-unread .ntf-time { color: var(--sh-blue, #006DB7); font-weight: 600; }
.ntf-title { font-size: 13.5px; font-weight: 700; color: var(--sh-navy, #15305F); margin-bottom: 2px; }
.ntf-msg { font-size: 13.5px; line-height: 1.75; color: #3D4B5F; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.ntf-item.is-open .ntf-msg { display: block; -webkit-line-clamp: unset; overflow: visible; }
.ntf-msg div, .ntf-msg p { text-align: inherit !important; margin: 0; }
.ntf-msg a { color: var(--sh-blue, #006DB7); font-weight: 600; text-decoration: none; }
.ntf-msg a:hover { text-decoration: underline; }
.ntf-msg img { max-width: 100%; height: auto; border-radius: 8px; }
.ntf-chip { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid #D5DCE4;
  background: #fff; color: var(--sh-blue, #006DB7); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.ntf-chip:hover { border-color: var(--sh-blue, #006DB7); background: var(--sh-blue-50, #EEF6FC); }

.ntf-acts { display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.ntf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sh-blue, #006DB7); box-shadow: 0 0 0 3px rgba(0,109,183,.15); }
.ntf-ic { width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: #6B7A90; cursor: pointer;
  display: grid; place-items: center; font-size: 14px; opacity: .55; transition: opacity .15s, background .15s, color .15s, border-color .15s; }
.ntf-item:hover .ntf-ic, .ntf-ic:focus-visible { opacity: 1; }
.ntf-ic:hover { background: #fff; border-color: #D5DCE4; color: var(--sh-blue, #006DB7); }

/* الحالة الفارغة */
.ntf-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 56px 20px 48px; }
.ntf-empty-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 28px;
  background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); box-shadow: 0 0 0 10px rgba(0,109,183,.05); margin-bottom: 8px; }
.ntf-empty h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--sh-navy, #15305F); }
.ntf-empty p { margin: 0 0 8px; font-size: 13px; color: var(--shp-muted, #6B7A90); max-width: 360px; }

.ntf-table { padding: 12px; }
.ntf-pager { border-top: 1px solid var(--ntf-line); padding: 6px 10px; }
.ntf-pager .e-pager { border: 0; background: transparent; }

@media (max-width: 760px) {
  .ntf-bar { padding: 12px; }
  .ntf-seg { width: 100%; }
  .ntf-seg-btn { flex: 1; justify-content: center; padding: 0 8px; }
  .ntf-filters { flex-basis: 100%; justify-content: stretch; }
  .ntf-f, .ntf-f-user { flex: 1 1 140px; min-width: 0; }
  .ntf-list { padding: 0 4px; }
  .ntf-item { grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; padding: 12px 10px; }
  .ntf-av { width: 38px; height: 38px; font-size: 15px; }
  .ntf-ic { opacity: 1; }
  .ntf-time { margin-inline-start: 0; flex-basis: 100%; }
  .ntf-day { padding: 10px 14px 6px; }
  .ntf-head-acts .ntf-btn-primary span { display: none; }
  .ntf-head-acts .ntf-btn-primary { width: 38px; padding: 0; justify-content: center; }
}


/* =========================================================
   التبويبات SfTab — تنسيق موحّد على مستوى المشروع
   - الافتراضي: تبويبات بخط سفلي وإشارة زرقاء (الهوية).
   - sh-tab-pills : شكل كبسولات (مقطّع) للتبويبات الفرعية أو القليلة.
   - sh-tab-plain : استثناء أي تبويب من هذا التنسيق.
   ملف الثيم يُحمَّل بعد هذا الملف، لذلك المحددات أعلى خصوصية منه عمدًا.
   ========================================================= */
.e-tab:not(.sh-tab-plain) {
    --tab-ink: #5B6B80;
    --tab-ink-hover: var(--sh-navy, #15305F);
    --tab-accent: var(--sh-blue, #006DB7);
    --tab-line: #E2E7EC;
    --tab-hover: var(--sh-blue-50, #EEF6FC);
    background: transparent;
    border: 0;
}

/* شريط العناوين */
.e-tab:not(.sh-tab-plain) > .e-tab-header {
    background: transparent !important;
    border: 0 !important;
    min-height: 46px;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header::before {
    border-color: var(--tab-line) !important;
    border-bottom-width: 1px !important;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-items,
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-hscroll-content,
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-hscroll-bar {
    background: transparent !important;
}

/* العنصر */
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item {
    background: transparent !important;
    border: 0 !important;
    margin: 0 2px !important;
    min-height: 46px;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item .e-tab-wrap {
    height: 44px;
    padding: 0 16px;
    border: 0 !important;
    border-radius: 10px 10px 0 0;
    background: transparent !important;
    transition: background .15s ease;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item:not(.e-disable):not(.e-active) .e-tab-wrap:hover {
    background: var(--tab-hover) !important;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item .e-tab-wrap:focus-visible,
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item.e-focused .e-tab-wrap:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(0,109,183,.35);
}

/* النص والأيقونة */
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item .e-tab-wrap .e-tab-text {
    color: var(--tab-ink) !important;
    font-family: var(--sh-font, inherit);
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    transition: color .15s ease;
}
/* الأيقونة: اللون فقط، دون لمس خط الأيقونات */
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item .e-tab-wrap .e-tab-icon,
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item .e-tab-wrap .e-tab-icon::before {
    color: var(--tab-ink) !important;
    transition: color .15s ease;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item:not(.e-disable) .e-tab-wrap:hover .e-tab-text,
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item:not(.e-disable) .e-tab-wrap:hover .e-tab-icon::before {
    color: var(--tab-ink-hover) !important;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item.e-active .e-tab-wrap .e-tab-text,
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item.e-active .e-tab-wrap .e-tab-icon,
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item.e-active .e-tab-wrap .e-tab-icon::before {
    color: var(--tab-accent) !important;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item.e-disable {
    opacity: .45;
}

/* الإشارة تحت التبويب النشط: تُرسم على العنصر نفسه لأن بعض الثيمات (bootstrap5) تخفي .e-indicator */
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-indicator {
    display: none !important;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item .e-tab-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item .e-tab-wrap .e-text-wrap {
    height: 100% !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header:not(.e-vertical) .e-toolbar-item.e-active .e-tab-wrap::after {
    content: "";
    position: absolute;
    inset-inline: 10px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--tab-accent);
}

/* زر الإغلاق */
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item .e-close-icon {
    color: #8A97A8;
    border-radius: 50%;
    margin-inline-start: 8px;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item .e-close-icon:hover {
    color: #C0392B;
    background: #FDF1EF;
}

/* أسهم التمرير والقائمة عند كثرة التبويبات */
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-scroll-nav,
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-hor-nav {
    background: #fff !important;
    border: 0 !important;
    border-radius: 8px;
    min-height: 44px;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-scroll-nav:hover,
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-hor-nav:hover {
    background: var(--tab-hover) !important;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-scroll-nav .e-nav-arrow,
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-hor-nav .e-popup-down-icon,
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-hor-nav .e-popup-up-icon {
    color: var(--tab-accent) !important;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-pop {
    border: 1px solid var(--tab-line);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(21,48,95,.14);
    padding: 6px;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-pop .e-toolbar-item .e-tab-wrap {
    border-radius: 8px;
    height: 38px;
}

/* المحتوى */
.e-tab:not(.sh-tab-plain) > .e-content {
    background: transparent !important;
    border: 0 !important;
}
.e-tab:not(.sh-tab-plain) > .e-content > .e-item.e-active {
    padding-top: 14px;
}

/* التبويبات العمودية: خلفية فاتحة للعنصر النشط بدل الخط السفلي */
.e-tab:not(.sh-tab-plain) > .e-tab-header.e-vertical .e-toolbar-item .e-tab-wrap {
    border-radius: 10px;
    justify-content: flex-start;
}
.e-tab:not(.sh-tab-plain) > .e-tab-header.e-vertical .e-toolbar-item.e-active .e-tab-wrap {
    background: var(--tab-hover) !important;
}

/* ---------- شكل الكبسولات sh-tab-pills ---------- */
.e-tab.sh-tab-pills:not(.sh-tab-plain) > .e-tab-header {
    min-height: 44px;
}
.e-tab.sh-tab-pills:not(.sh-tab-plain) > .e-tab-header::before {
    border-bottom-width: 0 !important;
}
.e-tab.sh-tab-pills:not(.sh-tab-plain) > .e-tab-header .e-toolbar-items {
    background: #EEF2F6 !important;
    border-radius: 12px;
    padding: 4px;
    height: auto !important;
    min-height: 0 !important;
    display: inline-flex !important;
    align-items: center;
}
.e-tab.sh-tab-pills:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item {
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 1px !important;
    align-self: center;
}
.e-tab.sh-tab-pills:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item.e-active .e-tab-wrap::after {
    display: none;
}
.e-tab.sh-tab-pills:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item .e-tab-wrap {
    height: 34px;
    padding: 0 14px;
    border-radius: 9px;
}
.e-tab.sh-tab-pills:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item:not(.e-disable):not(.e-active) .e-tab-wrap:hover {
    background: rgba(255,255,255,.6) !important;
}
.e-tab.sh-tab-pills:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item.e-active .e-tab-wrap {
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(21,48,95,.12);
}

/* شاشات صغيرة: عناصر أصغر قليلًا */
@media (max-width: 600px) {
    .e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item .e-tab-wrap {
        padding: 0 12px;
    }
    .e-tab:not(.sh-tab-plain) > .e-tab-header .e-toolbar-item .e-tab-wrap .e-tab-text {
        font-size: 13px;
    }
}


/* =========================================================
   ملاحظات الإصدار rln — /ReleaseNotes
   ========================================================= */
.rln { max-width: 1100px; margin: 0 auto; font-family: var(--sh-font, inherit); }
.rln *, .rln *::before, .rln *::after { box-sizing: border-box; }
.rln-card { background: #fff; border: 1px solid #E2E7EC; border-radius: 16px; padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(21,48,95,.05); }
.rln-card.is-current { border-color: rgba(0,109,183,.35); box-shadow: 0 6px 22px rgba(0,109,183,.10); }
.rln-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #EEF1F4; }
.rln-ver { font-size: 20px; font-weight: 800; color: #fff; padding: 6px 14px; border-radius: 12px; letter-spacing: .02em;
  background: linear-gradient(120deg, var(--sh-navy, #15305F), var(--sh-blue, #006DB7)); }
.rln-meta { display: flex; flex-direction: column; min-width: 0; }
.rln-meta strong { font-size: 15px; color: var(--sh-navy, #15305F); }
.rln-meta span { font-size: 12.5px; color: var(--shp-muted, #6B7A90); }
.rln-status { margin-inline-start: auto; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); }
.rln-current { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #E8F5EC; color: #1E8E3E; }
.rln-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rln-sec { border-radius: 12px; padding: 14px 16px; background: #F8FAFC; border: 1px solid #EEF1F4; }
.rln-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--sh-navy, #15305F); }
.rln-sec h3 i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; color: #fff; }
.rln-new h3 i { background: var(--sh-blue, #006DB7); }
.rln-chg h3 i { background: var(--sh-sky, #0FB2F2); }
.rln-known h3 i { background: var(--sh-orange, #E04D0A); }
.rln-sec ul { margin: 0; padding-inline-start: 18px; }
.rln-sec li { font-size: 13px; line-height: 1.8; color: #3D4B5F; margin-bottom: 4px; }
@media (max-width: 560px) {
  .rln-card { padding: 16px; }
  .rln-status { margin-inline-start: 0; }
}


/* =========================================================
   الإعدادات العامة stg — /Settings/GeneralSettings
   شريط (بحث + نطاق + شركة + فرع)، أقسام جانبية، بطاقة لكل مفتاح، شريط حفظ عائم.
   ========================================================= */
.stg { --stg-line: #E2E7EC; font-family: var(--sh-font, inherit); padding-bottom: 80px; }
.stg *, .stg *::before, .stg *::after { box-sizing: border-box; }

.stg-head-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid #D5DCE4; background: #fff; color: var(--sh-navy, #15305F); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s; }
.stg-btn:hover { border-color: var(--sh-blue, #006DB7); color: var(--sh-blue, #006DB7); }
.stg-btn-primary { background: var(--sh-blue, #006DB7); border-color: var(--sh-blue, #006DB7); color: #fff; }
.stg-btn-primary:hover { background: #005A98; color: #fff; }
.stg-btn[disabled] { opacity: .6; cursor: progress; }
.stg-btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.stg-view { display: inline-flex; border: 1px solid #D5DCE4; border-radius: 10px; overflow: hidden; height: 38px; }
.stg-view-btn { width: 40px; border: 0; background: #fff; color: #6B7A90; cursor: pointer; font-size: 14px; }
.stg-view-btn + .stg-view-btn { border-inline-start: 1px solid #D5DCE4; }
.stg-view-btn.is-on { background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); }
.stg-btn:focus-visible, .stg-view-btn:focus-visible, .stg-seg-btn:focus-visible, .stg-nav-link:focus-visible, .stg-ic:focus-visible, .stg-link:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,109,183,.25); }

/* الشريط */
.stg-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px 16px; margin-bottom: 18px; background: #fff;
  border: 1px solid var(--stg-line); border-radius: 14px; box-shadow: 0 2px 8px rgba(21,48,95,.04); }
.stg-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; margin: 0; border: 1px solid #D5DCE4; border-radius: 10px; background: #FAFCFE; }
.stg-search:focus-within { border-color: var(--sh-blue, #006DB7); box-shadow: 0 0 0 3px rgba(0,109,183,.12); background: #fff; }
.stg-search i { color: #8A97A8; font-size: 14px; }
.stg-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--sh-navy, #15305F); }
.stg-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: #EEF2F6; }
.stg-seg-btn { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #4A5A70; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.stg-seg-btn.is-on { background: #fff; color: var(--sh-blue, #006DB7); box-shadow: 0 1px 3px rgba(21,48,95,.12); }
.stg-f { flex: 0 1 200px; min-width: 160px; }
.stg-f .e-input-group, .stg-f .e-float-input { margin-bottom: 0 !important; }

/* التخطيط */
.stg-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 18px; align-items: start; }
.stg-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--stg-line); border-radius: 14px; }
.stg-nav-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  color: var(--sh-navy, #15305F); font: inherit; font-size: 13.5px; text-align: start; transition: background .15s; }
.stg-nav-link i { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 8px; font-size: 13px; background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); }
.stg-nav-link span { flex: 1; min-width: 0; }
.stg-nav-link b { font-size: 11px; font-weight: 600; color: var(--shp-muted, #6B7A90); background: #EEF2F6; border-radius: 999px; padding: 1px 8px; }
.stg-nav-link:hover { background: #F5F8FB; }
.stg-nav-link.is-on { background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); font-weight: 700; }
.stg-nav-link.is-on i { background: var(--sh-blue, #006DB7); color: #fff; }

.stg-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.stg-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--sh-navy, #15305F); }
.stg-group-title i { color: var(--sh-blue, #006DB7); }
.stg-group-title b { font-size: 11px; font-weight: 600; color: var(--shp-muted, #6B7A90); background: #EEF2F6; border-radius: 999px; padding: 1px 8px; }
.stg-group { display: flex; flex-direction: column; gap: 10px; }

/* البطاقة */
.stg-card { background: #fff; border: 1px solid var(--stg-line); border-radius: 14px; box-shadow: 0 1px 4px rgba(21,48,95,.04); overflow: hidden; }
.stg-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.stg-card-tx { min-width: 0; }
.stg-card-tx h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: var(--sh-navy, #15305F); line-height: 1.5; }
.stg-card-tx code { font-size: 11.5px; color: #6B7A90; background: #F3F5F8; border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere;
/* Bootstrap يفرض على code/kbd/pre/samp دائمًا direction:ltr + unicode-bidi:bidi-override (code حقيقي). هنا نعرض اسم إعداد كنص، فنعيده لسلوك dir=auto الطبيعي */
unicode-bidi: plaintext; }
.stg-kind { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: #6B7A90; border: 1px solid #E2E7EC; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

.stg-row { display: grid; grid-template-columns: 170px minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 12px 16px; border-top: 1px solid #EEF1F4; transition: background .15s; }
.stg-row.is-dirty { background: #FFF8F3; box-shadow: inset 3px 0 0 var(--sh-orange, #E04D0A); }
[dir=rtl] .stg-row.is-dirty { box-shadow: inset -3px 0 0 var(--sh-orange, #E04D0A); }
.stg-scope { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.stg-chip { font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #EEF2F6; color: #4A5A70; white-space: nowrap; }
.stg-chip-t1 { background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); }
.stg-chip-t2 { background: #E8F7FD; color: #0B7FAE; }
.stg-chip-t3 { background: #F1ECFB; color: #5B3FA8; }
.stg-chip-off { background: #F3F5F8; color: #6B7A90; }

.stg-editor { min-width: 0; }
.stg-input { width: 100%; min-height: 38px; padding: 7px 12px; border: 1px solid #D5DCE4; border-radius: 10px; background: #fff; font: inherit; font-size: 13.5px; color: var(--sh-navy, #15305F);
  transition: border-color .15s, box-shadow .15s; }
.stg-input:focus { outline: none; border-color: var(--sh-blue, #006DB7); box-shadow: 0 0 0 3px rgba(0,109,183,.12); }
.stg-input-num { max-width: 200px; }
.stg-area { resize: vertical; line-height: 1.7; }
.stg-mono { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; }
.stg-hint { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 12px; color: #6B7A90; }
.stg-count { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.stg-ok { color: #1E8E3E; display: inline-flex; gap: 5px; align-items: center; }
.stg-bad { color: #C0392B; display: inline-flex; gap: 5px; align-items: center; }
.stg-link { border: 0; background: none; padding: 0; color: var(--sh-blue, #006DB7); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }

.stg-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 4px 0 0; user-select: none; }
.stg-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stg-switch-track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #C9D2DC; transition: background .15s; flex: 0 0 auto; }
.stg-switch-thumb { position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: inset-inline-start .15s; }
.stg-switch input:checked + .stg-switch-track { background: var(--sh-blue, #006DB7); }
.stg-switch input:checked + .stg-switch-track .stg-switch-thumb { inset-inline-start: 21px; }
.stg-switch input:focus-visible + .stg-switch-track { box-shadow: 0 0 0 3px rgba(0,109,183,.25); }
.stg-switch-label { font-size: 13px; font-weight: 600; color: var(--sh-navy, #15305F); }

.stg-color { display: flex; gap: 8px; align-items: center; max-width: 280px; }
.stg-color input[type=color] { width: 44px; height: 38px; padding: 3px; border: 1px solid #D5DCE4; border-radius: 10px; background: #fff; cursor: pointer; flex: 0 0 auto; }

.stg-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; padding: 12px; border-radius: 10px; background: #F8FAFC; border: 1px dashed #D5DCE4; }
.stg-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.stg-field > span { font-size: 12px; font-weight: 600; color: var(--sh-navy, #15305F); }
.stg-check { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--sh-navy, #15305F); cursor: pointer; }

.stg-acts { display: flex; align-items: center; gap: 6px; padding-top: 2px; }
.stg-ic { width: 32px; height: 32px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: #6B7A90; cursor: pointer; display: grid; place-items: center; }
.stg-ic:hover, .stg-ic.is-on { background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); }

.stg-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 56px 20px; background: #fff; border: 1px solid var(--stg-line); border-radius: 14px; }
.stg-empty-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); margin-bottom: 6px; }
.stg-empty h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--sh-navy, #15305F); }
.stg-empty p { margin: 0; font-size: 13px; color: var(--shp-muted, #6B7A90); }

.stg-savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 18px auto 0; width: fit-content; max-width: 100%;
  padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--sh-navy, #15305F); color: #fff; box-shadow: 0 12px 30px rgba(21,48,95,.3); }
[dir=rtl] .stg-savebar { padding: 10px 18px 10px 12px; }
.stg-savebar > span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; margin-inline-end: 6px; }
.stg-savebar .stg-btn:not(.stg-btn-primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.stg-savebar .stg-btn-primary { background: #fff; color: var(--sh-blue, #006DB7); border-color: #fff; }

.stg-table { background: #fff; border: 1px solid var(--stg-line); border-radius: 14px; padding: 12px; }
.stg-form { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.stg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 900px) {
  .stg-layout { grid-template-columns: minmax(0,1fr); }
  .stg-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
  .stg-nav-link { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .stg-row { grid-template-columns: minmax(0,1fr) auto; }
  .stg-scope { grid-column: 1 / -1; padding-top: 0; }
}
@media (max-width: 560px) {
  .stg-f { flex: 1 1 140px; }
  .stg-seg { width: 100%; }
  .stg-seg-btn { flex: 1; }
  .stg-head-acts .stg-btn-primary span { display: none; }
  .stg-form-row { grid-template-columns: 1fr; }
  .stg-savebar { width: 100%; flex-wrap: wrap; justify-content: center; }
}


/* =========================================================
   عرض السعر — تبويب «معلومات العرض» qi
   بطاقة ملخص بهوية 2026 + أقسام بطاقات + شريط حفظ عائم.
   ========================================================= */
.qi { --qi-line: #E2E7EC; font-family: var(--sh-font, inherit); display: flex; flex-direction: column; gap: 16px; padding: 4px 0 8px; }
.qi *, .qi *::before, .qi *::after { box-sizing: border-box; }

/* الملخص */
.qi-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "main total" "acts acts"; gap: 14px 24px;
  padding: 20px 24px; border-radius: 16px; color: #fff;
  background: linear-gradient(120deg, var(--sh-navy, #15305F) 0%, var(--sh-blue, #006DB7) 75%, var(--sh-sky, #0FB2F2) 140%);
  box-shadow: 0 10px 28px rgba(21,48,95,.18); }
.qi-hero::after { content: ""; position: absolute; inset-inline-end: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.10); box-shadow: 0 0 0 30px rgba(255,255,255,.035); pointer-events: none; }
.qi-hero-main { grid-area: main; min-width: 0; z-index: 1; }
.qi-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.qi-no { font-size: 13px; font-weight: 800; letter-spacing: .03em; padding: 3px 10px; border-radius: 8px; background: rgba(255,255,255,.16); }
.qi-state { font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--sh-navy, #15305F); }
.qi-st-0 { background: #FFF1E8; color: #B23C05; }
.qi-st-1 { background: #E8F5EC; color: #1E7A37; }
.qi-st-2 { background: #F3F5F8; color: #6B7A90; }
.qi-st-3 { background: #E6F4FD; color: #0B6BA8; }
.qi-st2 { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.qi-client { margin: 0 0 8px; font-size: 21px; font-weight: 800; line-height: 1.35; color: #fff; overflow-wrap: anywhere; }
.qi-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: rgba(255,255,255,.85); }
.qi-meta span { display: inline-flex; align-items: center; gap: 6px; }
.qi-meta i { opacity: .7; font-size: 12px; }
.qi-meta .qi-soon { color: #FFD6BF; font-weight: 600; }
.qi-meta .qi-late { color: #FFB59A; font-weight: 700; }
.qi-hero-total { grid-area: total; z-index: 1; align-self: center; text-align: end; padding: 12px 18px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); min-width: 200px; }
.qi-hero-total span { display: block; font-size: 12px; color: rgba(255,255,255,.75); }
.qi-hero-total strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.3; letter-spacing: .01em; }
.qi-hero-total small { display: block; font-size: 12px; color: #FFD6BF; }
.qi-hero-acts { grid-area: acts; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }

/* الأزرار (SfButton / SfDropDownButton تحمل الصنف qi-btn) */
.qi .e-btn.qi-btn, .qi a.qi-btn, .qi .e-dropdown-btn.qi-btn, .qi-savebar .e-btn.qi-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px;
  font-family: inherit; font-size: 13.5px; font-weight: 600; text-transform: none; box-shadow: none; cursor: pointer; text-decoration: none; white-space: nowrap; }
.qi .e-btn.qi-btn-light { background: #fff; border: 1px solid #fff; color: var(--sh-blue, #006DB7); }
.qi .e-btn.qi-btn-light:hover { background: var(--sh-blue-50, #EEF6FC); }
.qi .e-btn.qi-btn-ghost, .qi .e-dropdown-btn.qi-btn-ghost { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.35); color: #fff; }
.qi .e-btn.qi-btn-ghost:hover, .qi .e-dropdown-btn.qi-btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.qi .e-btn.qi-btn-ghost .e-btn-icon, .qi .e-dropdown-btn.qi-btn-ghost .e-btn-icon, .qi .e-dropdown-btn.qi-btn-ghost .e-caret { color: #fff; }
.qi a.qi-btn-soft { background: var(--sh-blue-50, #EEF6FC); border: 1px solid transparent; color: var(--sh-blue, #006DB7); }
.qi a.qi-btn-soft:hover { border-color: var(--sh-blue, #006DB7); }
.qi a.qi-btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; flex: 0 0 auto; }
.qi-savebar .e-btn.qi-btn-primary { background: #fff; border: 1px solid #fff; color: var(--sh-blue, #006DB7); min-width: 120px; }
.qi-savebar .e-btn.qi-btn-primary:hover { background: var(--sh-blue-50, #EEF6FC); }
.qi-savebar .e-btn.qi-btn-primary[disabled] { opacity: .6; }
.qi-icbtn { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); border: 1px solid transparent; }
.qi-icbtn:hover { border-color: var(--sh-blue, #006DB7); color: var(--sh-blue, #006DB7); }

/* البطاقات */
.qi-card { container-type: inline-size; background: #fff; border: 1px solid var(--qi-line); border-radius: 16px; padding: 16px 18px 6px; box-shadow: 0 2px 8px rgba(21,48,95,.04); }
.qi-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.qi-card-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--sh-navy, #15305F); }
.qi-card-ic { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px; background: var(--sh-blue-50, #EEF6FC); color: var(--sh-blue, #006DB7); font-size: 14px; }
.qi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 2px 16px; align-items: end; }
.qi-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.qi-f { min-width: 0; padding-bottom: 10px; }
.qi-f .e-float-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.qi-w2 { grid-column: span 2; }
/* الحقل العريض يمتد عمودين فقط إذا اتسعت البطاقة لعمودين */
@container (max-width: 420px) { .qi-w2 { grid-column: auto; } }
/* حقل + زر في سطر واحد (الخصم + تطبيق الخصم، الوحدات + حفظ، رابط الموقع + حفظ).
   Syncfusion يعطي غلاف الحقل width:100%، فكان الزر ينزل لسطر ثانٍ ويرفع الحقل عن جيرانه. */
.qi-inline { display: flex; align-items: flex-end; gap: 8px; flex-wrap: nowrap; }
.qi-inline > :not(a):not(.validation-message) { flex: 1 1 0; width: auto !important; min-width: 0; }
.qi-inline > a { flex: 0 0 auto; margin-bottom: 1px; }
.qi-inline > .validation-message { position: absolute; }
.qi-f { position: relative; }

/* بحث العميل: المكوّن يرسم حقل البحث ثم مربع «بحث برقم الجوال» تحته، فيصير أطول من جيرانه.
   نضعهما في سطر واحد: الحقل يتمدد والمربع بجانبه. */
.qi-clientbox { display: flex; align-items: flex-end; gap: 12px; flex-wrap: nowrap; }
.qi-clientbox > .e-input-group, .qi-clientbox > .e-control-wrapper { flex: 1 1 0; width: auto !important; min-width: 0; }
.qi-clientbox > .e-checkbox-wrapper, .qi-clientbox > .e-css.e-checkbox-wrapper { flex: 0 0 auto; margin: 0 0 8px; white-space: nowrap; }
.qi-clientbox > .e-checkbox-wrapper .e-label { font-size: 12.5px; color: var(--shp-muted, #6B7A90); }
.qi-clientbox > .validation-message { position: absolute; bottom: -8px; }

/* التاريخ والوقت في السجل */
.qi-when { display: inline-flex; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--shp-muted, #6B7A90); }
.qi-links { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.qi-map { margin: 4px 0 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--qi-line); }

/* الإجماليات */
.qi-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin: 10px 0 14px; }
.qi-tot { padding: 10px 14px; border-radius: 12px; background: #F6F8FB; border: 1px solid #EEF1F4; }
.qi-tot span { display: block; font-size: 12px; color: var(--shp-muted, #6B7A90); margin-bottom: 2px; }
.qi-tot strong { display: block; font-size: 17px; font-weight: 800; color: var(--sh-navy, #15305F); font-variant-numeric: tabular-nums; text-align: end; }
.qi-tot-dis strong { color: var(--sh-orange, #E04D0A); }
.qi-tot-main { background: var(--sh-blue, #006DB7); border-color: var(--sh-blue, #006DB7); }
.qi-tot-main span { color: rgba(255,255,255,.8); }
.qi-tot-main strong { color: #fff; font-size: 19px; }

/* الخيارات */
.qi-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; padding: 4px 0 12px; }
.qi-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin: 0; border-radius: 12px; border: 1px solid #EEF1F4; background: #FAFBFC;
  font-size: 13.5px; font-weight: 600; color: var(--sh-navy, #15305F); }

/* السجل */
.qi-log { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.qi-log > div { padding: 10px 14px; border-radius: 12px; background: #FAFBFC; border: 1px solid #EEF1F4; }
.qi-log dt { font-size: 12px; font-weight: 600; color: var(--shp-muted, #6B7A90); margin-bottom: 3px; }
.qi-log dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--sh-navy, #15305F); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.qi-yn { padding: 1px 10px; border-radius: 999px; background: #F3F5F8; color: #6B7A90; font-size: 12px; }
.qi-yn.is-yes { background: #E8F5EC; color: #1E7A37; }

/* شريط الحفظ */
.qi-savebar { position: sticky; bottom: 14px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 4px; padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--sh-navy, #15305F); color: #fff; box-shadow: 0 12px 30px rgba(21,48,95,.28); }
[dir=rtl] .qi-savebar { padding: 10px 18px 10px 12px; }
.qi-savebar > span { font-size: 13.5px; font-weight: 600; opacity: .9; }
.qi .validation-errors { margin: 0; padding: 10px 14px 10px 30px; border-radius: 12px; background: #FDF1EF; border: 1px solid #F3C9C2; color: #B03A2E; font-size: 13px; }
[dir=rtl] .qi .validation-errors { padding: 10px 30px 10px 14px; }

@media (max-width: 900px) {
  .qi-hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "main" "total" "acts"; padding: 18px; }
  .qi-hero-total { text-align: start; }
}
@media (max-width: 560px) {
  .qi-card { padding: 14px 14px 4px; }
  .qi-client { font-size: 18px; }
  .qi-hero-total strong { font-size: 22px; }
}


/* =========================================================
   حالة جدول دفعات العرض pay-note (تبويب الدفعات في عرض السعر)
   ========================================================= */
.pay-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 4px 0 12px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid #E2E7EC; background: #F6F8FB; color: var(--sh-navy, #15305F); font-size: 13.5px; font-weight: 600; line-height: 1.7; }
.pay-note > span { display: inline-flex; align-items: baseline; gap: 8px; }
.pay-note i { font-size: 14px; }
.pay-note small { font-size: 12px; font-weight: 500; color: var(--shp-muted, #6B7A90); }
.pay-note.pay-matchesplan { background: #EDF8F0; border-color: #CBE9D3; color: #1E6B33; }
.pay-note.pay-notsaved, .pay-note.pay-noplan { background: var(--sh-blue-50, #EEF6FC); border-color: #CFE3F3; color: #0B5D99; }
.pay-note.pay-incomplete { background: #FDF1EF; border-color: #F3C9C2; color: #A2342A; }
.pay-note.pay-differsfromplan { background: #FFF4EC; border-color: #F6D2BD; color: #A8420B; }

/* =========================================================
   أكورديون الفلاتر مع العنوان shpf — PageFilterHeader.razor
   شريط واحد بشكل أكورديون الفلاتر: زر رجوع + اسم الشاشة كنص + عدد الفلاتر + أزرار + سهم.
   (بدل PageHeaderCompo + SfAccordion منفصلين — بلا رأس صفحة مستقل)
   ========================================================= */
.shpf {
    margin: 0 0 12px;
    background: #fff;
    border: 1px solid rgba(0, 109, 183, .14);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(11, 27, 43, .04), 0 6px 18px rgba(0, 109, 183, .06);
    font-family: var(--sh-font);
}

.shpf-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 14px;
    cursor: pointer;
    user-select: none;
}

.shpf.is-static .shpf-head {
    cursor: default;
}

.shpf-back {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--sh-blue-50, #E6F0F8);
    color: var(--sh-blue, #006DB7);
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease;
}

    .shpf-back:hover {
        background: rgba(0, 109, 183, .18);
    }

.shpf-title {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.shpf-title-ic {
    flex: none;
    color: var(--sh-blue, #006DB7);
    font-size: 15px;
}

.shpf-title-tx {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.shpf-title-main {
    font-size: 15px;
    font-weight: 700;
    color: var(--shp-text, #0B1B2B);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shpf-sub {
    font-size: 11.5px;
    color: var(--shp-muted, #5B6B7B);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shpf-actions {
    flex: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    cursor: default;
}

.shpf-hint {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--shp-muted, #5B6B7B);
}

    .shpf-hint i {
        font-size: 11px;
    }

/* سهم الفتح/الطي بنفس شكل سهم الأكورديون العام */
.shpf-chev {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--sh-blue-50, #E6F0F8);
    color: var(--sh-blue, #006DB7);
    font-size: 11px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

    .shpf-chev i {
        transition: transform .3s var(--sh-ease, ease);
    }

.shpf.is-open .shpf-chev {
    color: #fff;
    background: var(--sh-blue, #006DB7);
}

    .shpf.is-open .shpf-chev i {
        transform: rotate(180deg);
    }

.shpf-chev:focus-visible,
.shpf-back:focus-visible {
    outline: 2px solid var(--sh-sky, #0FB2F2);
    outline-offset: 2px;
}

/* جسم الفلاتر: يُطوى/يُفتح بحركة ناعمة (grid 0fr → 1fr) */
.shpf-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .32s var(--sh-ease, ease);
}

.shpf.is-open .shpf-body {
    grid-template-rows: 1fr;
}

.shpf-inner {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    padding: 0 16px;
    transition: visibility 0s linear .32s, padding .32s var(--sh-ease, ease);
}

.shpf.is-open .shpf-inner {
    visibility: visible;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(0, 109, 183, .10);
    transition: visibility 0s, padding .32s var(--sh-ease, ease);
    /* بعد انتهاء الفتح يُسمح بالتجاوز حتى لا تُقصّ حلقات التركيز وعناوين الحقول */
    animation: shpf-overflow 0s linear .32s forwards;
}

@keyframes shpf-overflow {
    to {
        overflow: visible;
    }
}

@media (max-width: 640px) {
    .shpf-hint {
        display: none;
    }

    .shpf-head {
        flex-wrap: wrap;
    }

    .shpf-actions {
        order: 5;
        width: 100%;
    }
}

@media print {
    .shpf-chev,
    .shpf-hint,
    .shpf-back,
    .shpf-body {
        display: none !important;
    }
}


/* =====================================================================
   تعليقات الطلبات rqc-* — صفحات RequestCommentsPage الثلاث
   (Pages/ExcuteRequests, Pages/DepartmentRequests, Pages/Internal-Claims)
   كانت الأنماط مكررة في <style> داخل كل صفحة. التصميم الزجاجي: sh-glass.css القسم 50.
   ===================================================================== */
.rqc {
    --rqc-accent: #006DB7;
    --rqc-accent-soft: #E6F0F8;
    --rqc-border: #e5e7eb;
    --rqc-text: #1f2937;
    --rqc-muted: #64748b;
    --rqc-soft: #f8fafc;
    --rqc-card: #fff;
    color: var(--rqc-text);
    max-width: 760px;
    margin-inline: auto;
    padding-block: 4px;
}

.rqc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.rqc-title { margin: 0 0 3px; font-size: 17px; font-weight: 700; }
.rqc-sub { color: var(--rqc-muted); font-size: 12px; }

.rqc-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--rqc-accent-soft);
    color: var(--rqc-accent);
    font-size: 13px;
    font-weight: 600;
}

.rqc-card,
.rqc-add {
    background: var(--rqc-card);
    border: 1px solid var(--rqc-border);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
}

.rqc-card { margin-bottom: 12px; transition: box-shadow .2s ease, border-color .2s ease; }
.rqc-card:hover { border-color: #cbd5e1; box-shadow: 0 5px 18px rgba(15, 23, 42, .06); }

.rqc-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rqc-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rqc-user-tx { min-width: 0; }

.rqc-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--rqc-accent-soft);
    color: var(--rqc-accent);
    font-size: 17px;
    font-weight: 700;
}

.rqc-user-name { font-size: 14px; font-weight: 700; }

.rqc-date {
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--rqc-muted);
    font-size: 12px;
}

.rqc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--rqc-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.rqc-badge-esc { background: #fef2f2; color: #b91c1c; }

.rqc-text {
    margin-top: 14px;
    padding: 13px 15px;
    background: var(--rqc-soft);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* حالة التصعيد (طلبات التنفيذ) */
.rqc-esc { margin-top: 14px; padding-top: 13px; border-top: 1px solid #f1f5f9; }

.rqc-esc-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--rqc-muted);
}

.rqc-esc-grid,
.rqc-escp-opts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rqc-esc-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid;
    border-radius: 10px;
    min-width: 0;
}

.rqc-esc-status.is-gm { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.rqc-esc-status.is-ceo { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.rqc-esc-status.is-off { background: var(--rqc-soft); border-color: #e2e8f0; color: var(--rqc-muted); }

.rqc-esc-ic { font-size: 19px; flex-shrink: 0; }
.rqc-esc-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.rqc-esc-name { font-size: 13px; font-weight: 700; }
.rqc-esc-desc { font-size: 11px; }
.rqc-esc-ind { font-size: 16px; flex-shrink: 0; }

.rqc-empty {
    padding: 36px 20px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: var(--rqc-soft);
}

.rqc-empty > i { display: block; margin-bottom: 10px; color: #94a3b8; font-size: 34px; }
.rqc-empty h6 { font-weight: 700; }
.rqc-empty p { margin: 0; color: var(--rqc-muted); font-size: 13px; }

/* إضافة تعليق */
.rqc-add { margin-top: 20px; padding: 22px; }

.rqc-add-head,
.rqc-escp-head { display: flex; align-items: center; gap: 12px; }

.rqc-add-head { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.rqc-add-title { margin: 0 0 3px; font-weight: 700; }

.rqc-add-ic,
.rqc-escp-ic {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--rqc-accent-soft);
    color: var(--rqc-accent);
    font-size: 19px;
}

.rqc-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }

.rqc .rqc-input,
.rqc .rqc-input textarea { min-height: 120px; }
.rqc .rqc-input.e-input-group,
.rqc .rqc-input.e-control-wrapper { width: 100%; }

.rqc-escp {
    margin-top: 18px;
    padding: 16px;
    background: var(--rqc-soft);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.rqc-escp-ic { width: 36px; height: 36px; background: #e2e8f0; color: #475569; font-size: 17px; }
.rqc-escp-title { font-weight: 700; }
.rqc-escp-opts { margin-top: 12px; }

.rqc-opt {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 13px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: var(--rqc-card);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.rqc-opt:hover { border-color: #93c5fd; }
.rqc-opt.is-selected { border-color: #93c5fd; background: var(--rqc-accent-soft); }
.rqc-opt-desc { padding-inline-start: 27px; color: var(--rqc-muted); font-size: 12px; }

.rqc-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

@media (max-width: 576px) {
    .rqc-card, .rqc-add { padding: 14px; }
    .rqc-esc-grid, .rqc-escp-opts { grid-template-columns: minmax(0, 1fr); }
    .rqc-card-head { align-items: flex-start; }
    .rqc-actions .e-btn { width: 100%; }
}
