        /* 1. Body: never scrolls — Reports.css "body{overflow:hidden}" is CORRECT.
              DO NOT override body overflow. */

        /* 2. Page content: scrolls for normal pages.
              Splitter pages: .formLayout-container is 100% height + overflow:hidden,
              so splitter fills it exactly and #DivPageContent never overflows. */
        #DivPageContent {
            overflow: auto !important;
        }

        /* 3. Sidebar: independent vertical scroll */
        .master-sidebar {
            overflow-y: auto !important;
            overflow-x: hidden !important;
        }

        /* 4. Scrollbar Theme — applied to OUR containers only, never DevExpress */
        .master-sidebar,
        #DivPageContent {
            scrollbar-width: auto;
            scrollbar-color: #8c9bb0 #e8ebef;
        }
        .master-sidebar::-webkit-scrollbar,
        #DivPageContent::-webkit-scrollbar {
            width: 12px;
            height: 12px;
        }
        .master-sidebar::-webkit-scrollbar-track,
        #DivPageContent::-webkit-scrollbar-track {
            background: #e8ebef;
        }
        .master-sidebar::-webkit-scrollbar-thumb,
        #DivPageContent::-webkit-scrollbar-thumb {
            background: #8c9bb0;
            border: 2px solid #e8ebef;
            border-radius: 6px;
        }
        .master-sidebar::-webkit-scrollbar-thumb:hover,
        #DivPageContent::-webkit-scrollbar-thumb:hover {
            background: #6b7a8d;
        }
        /* RTL: sidebar scrollbar border on correct side */
        [dir="rtl"] .master-sidebar::-webkit-scrollbar-track {
            border-left: none;
            border-right: 1px solid #c0c7cf;
        }

        /* ============================================================
           HELP VIEWER - Floating Button & Modal
           ============================================================ */
        .help-float-btn {
            position: fixed;
            bottom: 30px;
            right: 80px;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: linear-gradient(135deg, #6366f1, #4f46e5);
            color: white;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            transition: var(--transition);
        }
        .help-float-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
        }
        [dir="rtl"] .help-float-btn {
            right: auto;
            left: 80px;
        }

        .help-modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 10001;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .help-modal-overlay.open {
            display: flex;
        }

        .help-modal {
            background: white;
            border-radius: 16px;
            width: 90%;
            max-width: 900px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
            animation: helpModalIn 0.3s ease;
        }
        @keyframes helpModalIn {
            from { opacity: 0; transform: translateY(-20px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .help-modal-header {
            display: flex;
            align-items: center;
            padding: 18px 24px;
            border-bottom: 1px solid #e2e8f0;
            background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
            border-radius: 16px 16px 0 0;
        }
        .help-modal-header i {
            font-size: 1.4rem;
            color: #0284c7;
            margin-right: 12px;
        }
        [dir="rtl"] .help-modal-header i {
            margin-right: 0;
            margin-left: 12px;
        }
        .help-modal-title {
            flex: 1;
            font-size: 1.15rem;
            font-weight: 700;
            color: #0c4a6e;
        }
        .help-modal-close {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background: rgba(0, 0, 0, 0.08);
            color: #64748b;
            cursor: pointer;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        .help-modal-close:hover {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
        }

        .help-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 24px;
            line-height: 1.7;
            color: #334155;
            font-size: 0.95rem;
        }
        /* موضوع المساعدة المستند الكامل يُعرض في إطارٍ مستقلّ حتى لا تتسرّب
           قواعد <style> الخاصّة به إلى الشاشة. الحشو يُلغى هنا لأنّ الموضوع
           يحمل حشوه بنفسه، والارتفاع ثابتٌ لأنّ محتوى الإطار لا يرفع ارتفاع
           حاويته تلقائيًّا. */
        .help-modal-body.has-help-frame {
            padding: 0;
            overflow: hidden;
        }
        .help-modal-frame {
            display: block;
            width: 100%;
            height: 68vh;
            border: 0;
            background: #fff;
        }

        .help-modal-body::-webkit-scrollbar { width: 8px; }
        .help-modal-body::-webkit-scrollbar-track { background: #f1f5f9; }
        .help-modal-body::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }

        /* Help content component styles */
        .help-modal-body .hc-section { margin-bottom: 20px; }
        .help-modal-body .hc-section-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin-bottom: 8px; border-bottom: 2px solid #0ea5e9; padding-bottom: 6px; }
        .help-modal-body .hc-info-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 12px 16px; margin: 10px 0; }
        .help-modal-body .hc-tip-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 12px 16px; margin: 10px 0; }
        .help-modal-body .hc-warn-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 12px 16px; margin: 10px 0; }
        .help-modal-body .hc-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
        .help-modal-body .hc-table th { background: #f1f5f9; font-weight: 600; padding: 8px 12px; border: 1px solid #e2e8f0; text-align: right; }
        .help-modal-body .hc-table td { padding: 8px 12px; border: 1px solid #e2e8f0; }
        .help-modal-body .hc-card { background: white; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin: 10px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
        .help-modal-body .hc-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; background: #e0f2fe; color: #0284c7; }
        .help-modal-body .hc-steps { counter-reset: step; }
        .help-modal-body .hc-step { padding: 10px 10px 10px 40px; position: relative; margin: 6px 0; background: #f8fafc; border-radius: 8px; }
        .help-modal-body .hc-step:before { counter-increment: step; content: counter(step); position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; background: #0ea5e9; color: white; border-radius: 50%; text-align: center; line-height: 24px; font-size: 0.75rem; font-weight: 700; }
        [dir="rtl"] .help-modal-body .hc-step { padding: 10px 40px 10px 10px; }
        [dir="rtl"] .help-modal-body .hc-step:before { left: auto; right: 10px; }
        .help-modal-body .hc-kbd { display: inline-block; padding: 2px 8px; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 4px; font-family: monospace; font-size: 0.85rem; }
        .help-modal-body .hc-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
        .help-modal-body .hc-flow-step { background: #e0f2fe; padding: 8px 14px; border-radius: 8px; font-weight: 500; }
        .help-modal-body .hc-flow-arrow { color: #94a3b8; font-size: 1.2rem; }

        .help-modal-loading {
            text-align: center;
            padding: 40px;
            color: #94a3b8;
        }
        .help-modal-loading i {
            font-size: 2rem;
            animation: spin 1s linear infinite;
            display: block;
            margin-bottom: 12px;
        }
        @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

        .help-modal-empty {
            text-align: center;
            padding: 40px;
            color: #94a3b8;
        }
        .help-modal-empty i {
            font-size: 3rem;
            display: block;
            margin-bottom: 12px;
            color: #cbd5e1;
        }

        .help-shortcut-hint {
            padding: 12px 24px;
            border-top: 1px solid #e2e8f0;
            text-align: center;
            font-size: 0.8rem;
            color: #94a3b8;
            background: #f8fafc;
            border-radius: 0 0 16px 16px;
        }
