﻿/* ============================================
   منصة قدراتي — Layout مستوحى من التصميم المرفق
   ============================================ */

:root {
    --qd-blue: #29ABE2;
    --qd-green: #6DC067;
    --qd-orange: #F7A127;
    --qd-navy: #0A2D4A;
    --qd-navy-mid: #123F62;
    --qd-blue-dark: #0D6E9E;
    --qd-bg: #F4F8FB;
    --qd-white: #FFFFFF;
    --qd-text: #111827;
    --qd-muted: #6B7280;
    --qd-soft-muted: #9CA3AF;
    --qd-line: #EFF3F6;
    --qd-shadow-sm: 0 2px 12px rgba(41, 171, 226, .08);
    --qd-shadow: 0 12px 34px rgba(10, 45, 74, .09);
    --qd-radius-sm: 12px;
    --qd-radius: 16px;
    --qd-radius-lg: 24px;
}

html {
    direction: rtl;
    background: var(--qd-bg);
}

body.qd-body,
body.qd-body input,
body.qd-body select,
body.qd-body textarea,
body.qd-body button,
body.qd-body .btn,
body.qd-body .form-control,
body.qd-body .form-select,
body.qd-body .dropdown-menu,
body.qd-body .modal,
body.qd-body .offcanvas,
body.qd-body .table {
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body.qd-body {
    min-height: 100vh;
    margin: 0;
    color: var(--qd-text);
    background: var(--qd-bg);
    overflow-x: hidden;
}

.qd-container {
    width: min(1280px, calc(100% - 32px));
    margin-inline: auto;
}

/* ============ Navbar ============ */

.qd-navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 1040;
}

.qd-navbar {
    padding: 0;
    background: #fff;
    border-bottom: 2px solid rgba(41,171,226,.13);
    box-shadow: 0 2px 20px rgba(41,171,226,.10);
}

.qd-navbar-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.qd-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none !important;
}




.qd-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.qd-brand-copy strong {
    color: var(--qd-navy);
    font-size: 16px;
    font-weight: 900;
}

.qd-brand-copy small {
    margin-top: 3px;
    color: var(--qd-blue);
    font-size: 12px;
    font-weight: 700;
}

.qd-navbar .navbar-collapse {
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.qd-services {
    display: flex;
    align-items: center;
    gap: 18px;
}

.qd-service {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--qd-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.qd-service i {
    color: var(--qd-blue);
    font-size: 14px;
}

.qd-nav-actions {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.qd-inline-form {
    margin: 0;
}

.qd-nav-btn {
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--qd-text);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.qd-nav-btn:hover {
    transform: translateY(-1px);
}

.qd-nav-btn-home {
    color: var(--qd-blue) !important;
    background: rgba(41,171,226,.08);
    border-color: rgba(41,171,226,.19);
}

.qd-nav-btn-home:hover,
.qd-nav-btn-blue {
    color: #fff !important;
    background: var(--qd-blue);
    border-color: var(--qd-blue);
}

.qd-nav-btn-blue:hover {
    color: #fff !important;
    background: var(--qd-blue-dark);
}

.qd-nav-btn-green {
    color: #fff !important;
    background: var(--qd-green);
    border-color: var(--qd-green);
}

.qd-nav-btn-green:hover {
    color: #fff !important;
    background: #58a653;
}

.qd-nav-btn-orange {
    color: #fff !important;
    background: var(--qd-orange);
    border-color: var(--qd-orange);
}

.qd-nav-btn-orange:hover {
    color: #fff !important;
    background: #dd8816;
}

.qd-nav-btn-soft {
    color: var(--qd-navy) !important;
    background: #fff;
    border-color: #e5e7eb;
}

.qd-nav-btn-soft:hover {
    color: var(--qd-blue) !important;
    border-color: rgba(41,171,226,.28);
    background: rgba(41,171,226,.05);
}

.qd-nav-btn-logout {
    color: var(--qd-navy) !important;
    background: #fff;
    border-color: #e5e7eb;
}

.qd-nav-btn-logout:hover {
    color: #fff !important;
    background: var(--qd-navy);
    border-color: var(--qd-navy);
}

.qd-notification-btn {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--qd-navy);
    background: #fff;
    text-decoration: none !important;
}

.qd-notification-btn:hover {
    color: var(--qd-blue);
    border-color: rgba(41,171,226,.28);
    background: rgba(41,171,226,.05);
}

.qd-notification-btn > span {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #dc2626;
    font-size: 10px;
    font-weight: 900;
}

.qd-user-chip {
    max-width: 250px;
    min-height: 42px;
    padding: 5px 8px;
    border: 1px solid #edf0f2;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fafcfd;
}

.qd-user-chip > img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(41,171,226,.18);
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
}

.qd-user-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.qd-user-copy strong {
    overflow: hidden;
    color: var(--qd-navy);
    font-size: 11px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qd-user-copy small {
    overflow: hidden;
    margin-top: 2px;
    color: var(--qd-muted);
    font-size: 9px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qd-navbar-toggle {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border: 1px solid rgba(41,171,226,.22) !important;
    border-radius: 12px !important;
    color: var(--qd-blue) !important;
    background: rgba(41,171,226,.07) !important;
    box-shadow: none !important;
}

.qd-navbar-toggle i {
    font-size: 1.45rem;
}

/* ============ Main ============ */

.qd-main {
    min-height: calc(100vh - 160px);
}

.qd-main:not(.qd-main-home) {
    padding: 18px 0 30px;
}

.qd-app-shell {
    width: min(1600px, calc(100% - 24px));
    margin-inline: auto;
    padding: 14px;
    border: 1px solid #e9eef2;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--qd-shadow);
}

/* ============ Footer ============ */
/* =========================================
   Footer - Compact
========================================= */

.qd-footer {
    padding: 14px 0 10px;
    color: #fff;
    background: var(--qd-navy);
    border-top: 2px solid var(--qd-blue);
}


/* الصف العلوي */

.qd-footer-top {
    padding-bottom: 9px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.11);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}


/* هوية المنصة */

.qd-footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}


.qd-footer-logo {
    width: 60px;
    height: 50px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}


    .qd-footer-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


.qd-footer-brand > div {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}


.qd-footer-brand strong {
    color: #fff !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
}


.qd-footer-brand span {
    margin-top: 1px;
    color: #62c7ee !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-size: .60rem !important;
    font-weight: 700 !important;
}


/* وصف المنصة */

.qd-footer-top > p {
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,.82) !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-size: .55rem !important;
    font-weight: 550 !important;
    line-height: 1.7;
}


/* الصف السفلي */

.qd-footer-bottom {
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}


/* رابط الشركة */

.qd-company-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #f7a127 !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-size: .55rem !important;
    font-weight: 750 !important;
    text-decoration: none !important;
    transition: color .18s ease, transform .18s ease;
}


    .qd-company-link:hover {
        color: #ffc367 !important;
        transform: translateY(-1px);
    }


    .qd-company-link i {
        font-size: .62rem;
    }


/* الحقوق */

.qd-footer-bottom > span {
    color: rgba(255,255,255,.65) !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-size: .55rem !important;
    font-weight: 550 !important;
}


/* الجوال */

@media (max-width: 700px) {

    .qd-footer {
        padding: 12px 0 9px;
    }

    .qd-footer-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .qd-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .qd-footer-logo {
        width: 50px;
        height: 40px;
        flex-basis: 36px;
    }
}

/* ============ Toast ============ */

.qd-error-toast {
    min-width: 360px;
    max-width: 720px;
    overflow: hidden;
    border-radius: 16px !important;
    color: #fff;
    background: #b91c1c;
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

.qd-error-toast > div {
    gap: 10px;
    padding: 12px 14px;
}

.qd-error-toast .toast-body {
    padding: 0;
    font-size: 13px;
    font-weight: 700;
}

/* ============ Idle modal ============ */

.qd-idle-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 12px;
    direction: rtl;
    background: rgba(10,45,74,.42);
}

.qd-idle-card {
    width: min(450px, 100%);
    padding: 22px;
    border: 1px solid rgba(41,171,226,.15);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(10,45,74,.20);
}

.qd-idle-head {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.qd-idle-head > span {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--qd-orange);
    font-size: 20px;
}

.qd-idle-head > div {
    display: flex;
    flex-direction: column;
}

.qd-idle-head strong {
    color: var(--qd-navy);
    font-size: 18px;
    font-weight: 900;
}

.qd-idle-head small {
    margin-top: 2px;
    color: var(--qd-muted);
    font-size: 11px;
}

.qd-idle-message {
    padding: 13px 14px;
    border: 1px solid rgba(247,161,39,.22);
    border-radius: 14px;
    color: #7c4a0b;
    background: rgba(247,161,39,.08);
    font-size: 13px;
    line-height: 1.9;
}

.qd-idle-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============ Responsive ============ */

@media (max-width: 1199.98px) {
    .qd-navbar-inner {
        min-height: 68px;
    }

    .qd-navbar .navbar-collapse {
        margin-top: 10px;
        padding: 12px 0 4px;
        border-top: 1px solid #eef2f5;
    }

    .qd-services {
        margin-bottom: 10px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .qd-nav-actions {
        justify-content: flex-start;
        margin-inline-start: 0;
    }

    .qd-user-chip {
        max-width: 320px;
    }
}

@media (max-width: 700px) {
    .qd-container {
        width: min(100% - 20px, 1280px);
    }

    .qd-brand-copy strong {
        font-size: 14px;
    }

    .qd-brand-copy small {
        font-size: 10px;
    }

    .qd-brand-logo {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .qd-services {
        display: none;
    }

    .qd-nav-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qd-nav-btn,
    .qd-inline-form,
    .qd-inline-form .qd-nav-btn {
        width: 100%;
    }

    .qd-user-chip {
        grid-column: 1 / -1;
        max-width: none;
    }

    .qd-notification-btn {
        width: 100%;
    }

    .qd-app-shell {
        width: calc(100% - 12px);
        padding: 8px;
        border-radius: 18px;
    }

    .qd-footer-top,
    .qd-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .qd-error-toast {
        min-width: 0;
        width: calc(100vw - 24px);
    }

}

/* =====================================================
   تثبيت Cairo للنصوص الصغيرة في التصميم الجديد
   العناوين تبقى بخطها الحالي
===================================================== */

body.qd-body .home-ultra p,
body.qd-body .home-ultra span,
body.qd-body .home-ultra small,
body.qd-body .home-ultra a,
body.qd-body .home-ultra label,
body.qd-body .home-ultra .section-sub,
body.qd-body .home-ultra .portal-desc,
body.qd-body .home-ultra .portal-list-description,
body.qd-body .home-ultra .practice-desc,
body.qd-body .home-ultra .practice-list-description,
body.qd-body .home-ultra .practice-list-count,
body.qd-body .home-ultra .latest-meta,
body.qd-body .home-ultra .latest-feature p,
body.qd-body .home-ultra .paid-feature p,
body.qd-body .home-ultra .paid-meta,
body.qd-body .home-ultra .paid-price-label,
body.qd-body .home-ultra .paid-secure-note,
body.qd-body .home-ultra .home-hero-brand-text small,
body.qd-body .home-ultra .home-hero-copy h5,
body.qd-body .home-ultra .home-hero-stat-content small {
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-weight: 500 !important;
}
body.qd-body .home-ultra .portal-desc,
body.qd-body .home-ultra .practice-desc,
body.qd-body .home-ultra .section-sub {
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-weight: 500 !important;
    line-height: 1.9 !important;
}

/* =========================================
   تصغير خط الـ Layout ليطابق Home Index
========================================= */

.qd-navbar,
.qd-navbar a,
.qd-navbar button,
.qd-navbar span,
.qd-navbar small,
.qd-navbar strong,
.qd-navbar input,
.qd-navbar select {
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}


/* خدمات الهيدر */

.qd-service {
    font-size: .58rem !important;
    font-weight: 650 !important;
}


/* أزرار الهيدر */

.qd-nav-btn {
    font-size: .60rem !important;
    font-weight: 750 !important;
}


/* اسم المنصة */

.qd-brand-copy strong {
    font-size: .78rem !important;
    font-weight: 900 !important;
}


/* النص الصغير أسفل اسم المنصة */

.qd-brand-copy small {
    font-size: .52rem !important;
    font-weight: 650 !important;
}


/* اسم المستخدم */

.qd-user-copy strong {
    font-size: .60rem !important;
    font-weight: 800 !important;
}


/* الدور والمدرسة والمدينة */

.qd-user-copy small,
.qd-user-role,
.qd-user-username,
.qd-user-location {
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-size: .50rem !important;
    font-weight: 600 !important;
}


/* الأيقونات لا نصغرها كثيراً */

.qd-navbar i {
    font-size: .76rem;
}
/* =========================================
   الشعار الجديد الطولي داخل الـ Layout
========================================= */

/* =========================
   شعار الشريط العلوي
========================= */

.qd-brand-logo {
    width: 54px !important;
    height: 46px !important;
    flex: 0 0 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: #fff !important;
}


    .qd-brand-logo img {
        width: auto !important;
        height: 40px !important;
        max-width: 100% !important;
        max-height: 40px !important;
        object-fit: contain !important;
        display: block !important;
    }


/* =========================
   شعار الفوتر
========================= */

.qd-footer-logo {
    width: 48px !important;
    height: 43px !important;
    flex: 0 0 48px !important;
    padding: 2px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
}


    .qd-footer-logo img {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 6px !important;
    }


/* =========================================================
   إصلاح شريط الـ Layout على الديسكتوب
   منع زر خروج من النزول لسطر مستقل
========================================================= */

@media (min-width: 1200px) {

    /* توسيع مساحة الهيدر قليلاً */
    .qd-navbar .qd-container {
        width: min(1450px, calc(100% - 28px)) !important;
    }


    /* تقليل الفراغ بين أقسام الهيدر */
    .qd-navbar .navbar-collapse {
        gap: 10px !important;
    }


    .qd-services {
        gap: 13px !important;
        flex: 0 0 auto;
    }


    /* جميع أزرار المستخدم في سطر واحد */
    .qd-navbar-auth .qd-nav-actions,
    .qd-nav-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 5px !important;
        flex-wrap: nowrap !important;
        white-space: nowrap;
    }


        /* الفورم لا يأخذ مساحة إضافية */
        .qd-nav-actions .qd-inline-form {
            width: auto !important;
            flex: 0 0 auto !important;
            margin: 0 !important;
            padding: 0 !important;
        }


            .qd-nav-actions
            .qd-inline-form
            .qd-nav-btn {
                width: auto !important;
            }


    /* تصغير الحشو الأفقي العام قليلًا */
    .qd-navbar-auth .qd-nav-btn {
        min-height: 36px !important;
        padding: 7px 9px !important;
        font-size: .58rem !important;
    }


    /* زر خروج تحديدًا */
    .qd-nav-btn-logout {
        width: auto !important;
        min-width: 0 !important;
        padding: 7px 9px !important;
        margin: 0 !important;
    }


    /* زر تبديل الوضع */
    .qd-nav-btn-orange {
        padding-inline: 9px !important;
    }
}

/* =========================================================
   توسيع الفوتر وتقليل الهامش يمين ويسار
========================================================= */

@media (min-width: 1200px) {

    .qd-footer .qd-container {
        width: min( 1450px, calc(100% - 28px) ) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }


    /* الصف العلوي يبقى في سطر واحد */
    .qd-footer-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 18px !important;
        flex-wrap: nowrap !important;
    }


    /* الصف السفلي كذلك */
    .qd-footer-bottom {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
    }
}

/* =========================================================
   شعار الـ Layout
   نفس طريقة الاحتواء المستخدمة في Login
========================================================= */

.qd-brand-logo {
    width: 54px !important;
    height: 48px !important;
    flex: 0 0 54px !important;
    padding: 2px !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
}


    .qd-brand-logo img {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 7px !important;
    }

/* =========================================================
   تكبير خطوط الـ Layout والفوتر قليلاً
========================================================= */

/* اسم المنصة في الهيدر */
.qd-brand-copy strong {
    font-size: .86rem !important;
    font-weight: 900 !important;
}

/* النص الصغير أسفل اسم المنصة */
.qd-brand-copy small {
    font-size: .59rem !important;
    font-weight: 650 !important;
}

/* روابط الخدمات أعلى الصفحة */
.qd-service {
    font-size: .64rem !important;
    font-weight: 650 !important;
}

/* أزرار الهيدر */
.qd-nav-btn {
    font-size: .65rem !important;
    font-weight: 750 !important;
}

/* اسم المستخدم */
.qd-user-copy strong,
.qd-user-name-line > strong,
.qd-user-name-row > strong {
    font-size: .66rem !important;
    font-weight: 850 !important;
}

/* الدور */
.qd-user-role,
.qd-role-badge {
    font-size: .55rem !important;
    font-weight: 800 !important;
}

/* اسم المستخدم/الحساب */
.qd-user-username {
    font-size: .58rem !important;
    font-weight: 620 !important;
}

/* المدرسة والمدينة */
.qd-user-location,
.qd-user-location > span,
.qd-user-city {
    font-size: .58rem !important;
    font-weight: 620 !important;
}


/* =========================================================
   Footer
========================================================= */

/* اسم المنصة */
.qd-footer-brand strong {
    font-size: .78rem !important;
    font-weight: 920 !important;
}

/* النص تحت اسم المنصة */
.qd-footer-brand span {
    font-size: .60rem !important;
    font-weight: 620 !important;
}

/* وصف المنصة */
.qd-footer-top > p {
    font-size: .60rem !important;
    font-weight: 500 !important;
    line-height: 1.75 !important;
}

/* رابط الشركة */
.qd-company-link {
    font-size: .62rem !important;
    font-weight: 750 !important;
}

/* الحقوق */
.qd-footer-bottom > span {
    font-size: .59rem !important;
    font-weight: 550 !important;
}

<style >
/* =========================================================
       QUDORATI FOOTER - COMPACT PROFESSIONAL VERSION
    ========================================================= */
.qd-footer {
    direction: rtl;
    text-align: right;
    margin-top: 12px;
    color: rgba(255,255,255,.78);
    border-top: 3px solid #29ABE2;
    background: radial-gradient( 520px 170px at 8% 0%, rgba(41,171,226,.12), transparent 66% ), linear-gradient( 135deg, #071F34 0%, #0A2D4A 58%, #123F62 100% );
    font-family: "Cairo", Tahoma, Arial, sans-serif;
}


.qd-footer,
.qd-footer * {
    box-sizing: border-box;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}


    /* =========================================================
       CONTAINER
    ========================================================= */

    .qd-footer .qd-container {
        width: calc(100% - 32px);
        max-width: 1500px;
        margin: 0 auto;
        padding: 13px 8px 9px;
    }


/* =========================================================
       TOP
    ========================================================= */

.qd-footer-top {
    display: block;
}


/* =========================================================
       BRAND + DESCRIPTION
    ========================================================= */

.qd-footer-brand-wrap {
    max-width: none;
    display: flex;
    align-items: center;
    gap: 14px;
}


.qd-footer-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 9px;
}


.qd-footer-logo {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(0,0,0,.12);
    text-decoration: none !important;
}


    .qd-footer-logo img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        padding: 2px;
    }


/* =========================================================
       BRAND COPY
    ========================================================= */

.qd-footer-brand-copy {
    min-width: 150px;
}


    .qd-footer-brand-copy strong {
        display: block;
        margin: 0;
        color: #fff;
        font-size: .78rem;
        font-weight: 900;
        line-height: 1.5;
    }


    .qd-footer-brand-copy span {
        display: block;
        margin-top: 1px;
        color: #9DDCF5;
        font-size: .58rem;
        font-weight: 600;
        white-space: nowrap;
    }


/* =========================================================
       DESCRIPTION
    ========================================================= */

.qd-footer-description {
    max-width: 760px;
    margin: 0;
    padding-inline-start: 14px;
    color: rgba(255,255,255,.68);
    border-inline-start: 1px solid rgba(255,255,255,.11);
    font-size: .65rem;
    font-weight: 500;
    line-height: 1.8;
}


/* =========================================================
       LINKS
    ========================================================= */

.qd-footer-links {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-start;
}


    .qd-footer-links a {
        min-height: 31px;
        padding: 5px 9px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: rgba(255,255,255,.82) !important;
        border: 1px solid rgba(255,255,255,.11);
        border-radius: 7px;
        background: rgba(255,255,255,.045);
        font-size: .62rem;
        font-weight: 700;
        white-space: nowrap;
        text-decoration: none !important;
        transition: background .15s ease, border-color .15s ease, transform .15s ease;
    }


        .qd-footer-links a i {
            color: #74C9ED !important;
            font-size: .65rem;
        }


        .qd-footer-links a:hover {
            color: #fff !important;
            border-color: rgba(41,171,226,.32);
            background: rgba(41,171,226,.13);
            transform: translateY(-1px);
        }


            .qd-footer-links a:hover i {
                color: #fff !important;
            }


/* =========================================================
       DIVIDER
    ========================================================= */

.qd-footer-divider {
    width: 100%;
    height: 1px;
    margin: 10px 0 7px;
    background: linear-gradient( 90deg, transparent, rgba(255,255,255,.10) 12%, rgba(255,255,255,.10) 88%, transparent );
}


/* =========================================================
       BOTTOM
    ========================================================= */

.qd-footer-bottom {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}


/* =========================================================
       COMPANY
    ========================================================= */

.qd-footer-company {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.50);
    font-size: .59rem;
    font-weight: 500;
}


    .qd-footer-company > span {
        white-space: nowrap;
    }


.qd-company-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #F7B54E !important;
    font-size: .62rem;
    font-weight: 750;
    text-decoration: none !important;
    transition: color .15s ease;
}


    .qd-company-link i {
        color: #F7B54E !important;
    }


    .qd-company-link:hover,
    .qd-company-link:hover i {
        color: #FFD591 !important;
    }


    .qd-company-link
    .bi-box-arrow-up-left {
        font-size: .52rem;
        opacity: .75;
    }


/* =========================================================
       COPYRIGHT
    ========================================================= */

.qd-footer-copy {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,.58);
    font-size: .60rem;
    font-weight: 550;
    white-space: nowrap;
}


    .qd-footer-copy i {
        color: rgba(255,255,255,.48);
        font-size: .57rem;
    }


/* =========================================================
       TABLET
    ========================================================= */

@@media (max-width: 900px) {
    .qd-footer-brand-wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }


    .qd-footer-description {
        max-width: 100%;
        padding-inline-start: 0;
        border-inline-start: 0;
    }


    .qd-footer-links {
        margin-top: 9px;
    }
}


/* =========================================================
       MOBILE
    ========================================================= */

@media (max-width: 600px) {
    .qd-footer {
        margin-top: 8px;
    }


        .qd-footer .qd-container {
            width: calc(100% - 14px);
            padding: 11px 2px 8px;
        }


    .qd-footer-brand {
        width: 100%;
    }


    .qd-footer-logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }


    .qd-footer-brand-copy span {
        white-space: normal;
    }


    .qd-footer-description {
        font-size: .61rem;
        line-height: 1.7;
    }


    .qd-footer-links {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 4px;
    }


        .qd-footer-links a {
            width: 100%;
            min-height: 32px;
        }


    .qd-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }


    .qd-footer-company {
        flex-wrap: wrap;
    }
}


/* =========================================================
       SMALL MOBILE
    ========================================================= */

@media (max-width: 400px) {
    .qd-footer-links {
        grid-template-columns: 1fr;
    }


    .qd-footer-copy {
        white-space: normal;
    }
}


/* =========================================================
   QUDORATI GLOBAL RESPONSIVE LAYER
   طبقة عامة لضبط جميع صفحات النظام

   Reference : 1536 × 864
   Laptop    : 1366 × 768
   Full HD   : 1920 × 1080
   Tablet    : 768 - 820
   Mobile    : 390 - 430
========================================================= */


/* =========================================================
   1. GLOBAL SAFETY
========================================================= */

html {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}


body {
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}


/* أي عنصر Flex أو Grid لا يسمح له بدفع الصفحة خارج الشاشة */

main,
section,
article,
aside,
header,
footer,
nav,
div {
    min-width: 0;
}


/* الصور والفيديو */

img,
svg,
video,
canvas {
    max-width: 100%;
}


/* النصوص الطويلة */

p,
span,
strong,
small,
label,
td,
th {
    overflow-wrap: break-word;
}


/* =========================================================
   2. GLOBAL RESPONSIVE VARIABLES
========================================================= */

:root {
    /*
        المقاس المرجعي:
        شاشة 1536px تقريباً
    */

    --qd-screen-gutter: 12px;
    --qd-page-max: 1500px;
    --qd-section-gap: 8px;
    --qd-mobile-gutter: 6px;
}


/* =========================================================
   3. MAIN LAYOUT
========================================================= */

/*
   لا نغير تصميم الصفحة الداخلي.
   نضبط فقط مساحة الصفحة المتاحة.
*/

.layout-page-shell {
    width: 100% !important;
    max-width: none !important;
    margin-inline: auto !important;
    padding-inline: var(--qd-screen-gutter) !important;
}


.layout-content-wrap {
    width: 100% !important;
    max-width: var(--qd-page-max) !important;
    margin-inline: auto !important;
    min-width: 0 !important;
}


/* =========================================================
   4. COMMON CONTAINERS
========================================================= */

/*
   هذه القواعد لا تفرض شكلاً جديداً.
   تمنع فقط تجاوز العرض.
*/

.container,
.container-fluid,
.qd-container {
    min-width: 0;
}


.container-fluid {
    width: 100%;
}


/*
   أي Wrapper مخصص داخل الصفحات
   لن يستطيع تجاوز مساحة العرض.
*/

[class$="-page"],
[class$="-wrap"],
[class$="-shell"] {
    min-width: 0;
}


/* =========================================================
   5. FLEX PROTECTION
========================================================= */

.d-flex {
    min-width: 0;
}


    /*
   العناصر النصية داخل Flex
   يمكنها الانكماش بشكل طبيعي.
*/

    .d-flex > * {
        min-width: 0;
    }


/* =========================================================
   6. GRID PROTECTION
========================================================= */

.row {
    min-width: 0;
}


    .row > * {
        min-width: 0;
    }


/* =========================================================
   7. TABLES
========================================================= */

/*
   مهم جداً:
   الجدول لا يكسر عرض الصفحة.
*/

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/*
   الجداول المخصصة التي استخدمناها
   في الصفحات الجديدة.
*/

[class$="-table-wrap"] {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   8. FORM ELEMENTS
========================================================= */

input,
select,
textarea {
    max-width: 100%;
}


/* =========================================================
   9. BUTTON GROUPS
========================================================= */

/*
   لا نغير حجم الزر.
   فقط نسمح له بالنزول للسطر التالي
   عندما تضيق الشاشة.
*/

.btn-group-responsive,
[class$="-actions"] {
    min-width: 0;
}


/* =========================================================
   10. LARGE FULL HD
   1920 × 1080 وما فوق
========================================================= */

@media (min-width: 1800px) {

    :root {
        --qd-screen-gutter: 18px;
        --qd-page-max: 1760px;
    }


    .layout-page-shell {
        padding-inline: 18px !important;
    }


    .layout-content-wrap {
        max-width: 1760px !important;
    }
}


/* =========================================================
   11. MAIN REFERENCE
   تقريباً 1440 - 1799
   يشمل 1536 × 864
========================================================= */

@media (min-width: 1440px) and (max-width: 1799.98px) {

    :root {
        --qd-screen-gutter: 12px;
        --qd-page-max: 1500px;
    }


    .layout-page-shell {
        padding-inline: 12px !important;
    }


    .layout-content-wrap {
        max-width: 1500px !important;
    }
}


/* =========================================================
   12. SMALL LAPTOP
   يشمل 1366 × 768
========================================================= */

@media (min-width: 1200px) and (max-width: 1439.98px) {

    :root {
        --qd-screen-gutter: 8px;
        --qd-page-max: 1340px;
    }


    .layout-page-shell {
        padding-inline: 8px !important;
    }


    .layout-content-wrap {
        max-width: 1340px !important;
    }


    /*
       تقليل الفراغ الخارجي فقط.
       تصميم الصفحة الداخلي يبقى كما هو.
    */

    .container,
    .container-fluid {
        padding-inline: 8px;
    }
}


/* =========================================================
   13. MEDIUM / SMALL LAPTOP
   992 - 1199
========================================================= */

@media (min-width: 992px) and (max-width: 1199.98px) {

    :root {
        --qd-screen-gutter: 7px;
        --qd-page-max: 100%;
    }


    .layout-page-shell {
        padding-inline: 7px !important;
    }


    .layout-content-wrap {
        width: 100% !important;
        max-width: 100% !important;
    }


    .container {
        max-width: calc(100% - 10px);
    }
}


/* =========================================================
   14. TABLET
   768 - 991
========================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    :root {
        --qd-screen-gutter: 6px;
        --qd-page-max: 100%;
    }


    .layout-page-shell {
        padding: 7px 6px 18px !important;
    }


    .layout-content-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
    }


    .container,
    .container-fluid {
        width: 100%;
        max-width: 100%;
        padding-inline: 6px;
    }


    /*
       مجموعات الأزرار التي لا تتسع
       يسمح لها بالالتفاف.
    */

    .d-flex.gap-2,
    .d-flex.gap-3 {
        flex-wrap: wrap;
    }


    /*
       Nav Pills
    */

    .nav-pills {
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }


        .nav-pills .nav-item {
            flex: 0 0 auto;
        }


    /*
       Modal
    */

    .modal-dialog {
        max-width: calc(100% - 24px);
        margin-inline: auto;
    }
}


/* =========================================================
   15. MOBILE
   أقل من 768
========================================================= */

@media (max-width: 767.98px) {

    :root {
        --qd-screen-gutter: 4px;
        --qd-page-max: 100%;
    }


    .layout-page-shell {
        width: 100% !important;
        padding: 5px 4px 14px !important;
    }


    .layout-content-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 6px !important;
        border-radius: 12px !important;
    }


    .container,
    .container-fluid {
        width: 100%;
        max-width: 100%;
        padding-inline: var(--qd-mobile-gutter);
    }


    /*
       Bootstrap Rows
    */

    .row {
        --bs-gutter-x: .6rem;
    }


    /*
       Toolbar / Button collections
    */

    .d-flex.justify-content-between {
        min-width: 0;
        gap: 6px;
    }


    /*
       Nav Pills
    */

    .nav-pills {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }


        .nav-pills > * {
            flex: 0 0 auto;
        }


    /*
       Dropdowns
    */

    .dropdown-menu {
        max-width: calc(100vw - 16px);
    }


    /*
       Dialog
    */

    .modal-dialog {
        width: calc(100% - 12px);
        max-width: none;
        margin: 6px auto;
    }
}


/* =========================================================
   16. MOBILE REFERENCE
   390 - 430
========================================================= */

@media (min-width: 390px) and (max-width: 430px) {

    .layout-page-shell {
        padding-inline: 3px !important;
    }


    .layout-content-wrap {
        padding: 5px !important;
    }


    .container,
    .container-fluid {
        padding-inline: 4px;
    }
}


/* =========================================================
   17. VERY SMALL MOBILE
========================================================= */

@media (max-width: 389.98px) {

    .layout-page-shell {
        padding-inline: 2px !important;
    }


    .layout-content-wrap {
        padding: 4px !important;
    }


    .container,
    .container-fluid {
        padding-inline: 3px;
    }
}


/* =========================================================
   18. WIDE CONTENT SAFETY
========================================================= */

/*
   أي شيء لديه عرض ثابت كبير
   لن يكسر الصفحة.
*/

iframe,
embed,
object {
    max-width: 100%;
}


/* =========================================================
   19. LONG TEXT SAFETY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    max-width: 100%;
    overflow-wrap: break-word;
}


/* =========================================================
   20. PRINT
========================================================= */

@media print {

    .layout-page-shell,
    .layout-content-wrap {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }
}