/* ==========================================================
   منصة اختبار الأجزاء — ملف التنسيق المشترك
   مقسّم إلى أجزاء مستقلة يمكن نسخ أي جزء منها لمشروع آخر.
   الفهرس:
   1) الخطوط   2) المتغيرات   3) الأساسيات   4) هيكل الصفحة
   5) الشريط الجانبي   6) الشريط العلوي   7) رأس الصفحة والأزرار
   8) بطاقات المؤشرات   9) نموذج الفلاتر   10) الجدول والترقيم
   ========================================================== */

/* 1) الخطوط ------------------------------------------------ */
@font-face {
    font-family: "Alyamama";
    src: url("../assets/fonts/Alyamama-Regular.ttf") format("truetype");
    font-weight: 400
}

@font-face {
    font-family: "Alyamama";
    src: url("../assets/fonts/Alyamama-Bold.ttf") format("truetype");
    font-weight: 700
}

@font-face {
    font-family: "Doran";
    src: url("../assets/fonts/Doran-Bold.ttf") format("truetype");
    font-weight: 700
}


/* 2) المتغيرات (غيّر الألوان من هنا فقط) ---------------------- */
:root {
    --c-primary: #005c61;
    --c-primary-dark: #003f43;
    --c-gold: #d0ba92;
    --c-bg: #f3f1ec;
    --c-surface: #ffffff;
    --c-text: #1f2a2b;
    --c-muted: #6b7677;
    --c-faint: #9aa3a4;
    --c-border: #e6e1d6;
    --c-danger: #9a3b2e;
    --font-body: "Alyamama",sans-serif;
    --font-head: "Doran","Alyamama",sans-serif;
}

/* 3) الأساسيات --------------------------------------------- */
body {
    margin: 0;
    background: var(--c-bg)
}

a {
    color: var(--c-primary);
    text-decoration: none
}

    a:hover {
        color: var(--c-primary-dark)
    }
.main-body {
    margin: 11px;
    padding: 5px 11px;
}
@media only screen and (max-width: 1024px) and (max-height: 768px) {
    .main-body {
        margin: 7px;
        padding: 5px 3px;
    }
    table.dataTable tbody td {
        padding-left: 1px !important;
        border: 0px !important;
        border-bottom: 1px solid #f0ece2 !important;
        font-size: 15px !important; 
    }
}
.text-right {
    text-align: right
}

.text-muted {
    color: var(--c-muted)
}

.text-faint {
    color: var(--c-faint)
}

.text-primary {
    color: var(--c-primary)
}

.fw-bold {
    font-weight: 700
}

.ltr-num {
    font-variant-numeric: tabular-nums;
    direction: ltr;
    unicode-bidi: isolate
}

/* 4) هيكل الصفحة ------------------------------------------- */
.app {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-bg)
}

.main {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column
}

.content {
    padding: 28px 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 28px
}

.content-tight {
    gap: 22px
}

.section-block {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.section-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--c-primary);
    margin: 0
}

    .section-title small {
        font-family: var(--font-body);
        font-weight: 400;
        font-size: 14px;
        color: var(--c-muted);
        margin-right: 10px
    }

.grid {
    display: grid;
    gap: 20px
}

.grid-3 {
    grid-template-columns: repeat(3,minmax(0,1fr))
}

.grid-4 {
    grid-template-columns: repeat(4,minmax(0,1fr))
}

/* 5) الشريط الجانبي ---------------------------------------- */
.sidebar {
    flex: 1 1 260px;
    max-width: 280px;
    background: var(--c-primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
   /* padding: 11px 28px 20px 24px*/
}

.sidebar-watermark {
    position: absolute;
    left: -70px;
   /* bottom: -10px;*/
    width: 190px;
    opacity: .22;
    pointer-events: none
}

.sidebar-logo {
    display: flex;
    justify-content: center;
    padding: 0px;
}

.sidebar-logo-img {
    width: 190px;
    height: auto;
    margin:25px 5px;
}

.user-card {
    background: #003f43 !important;
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px
}

.user-card-text {
    display: flex;
    flex-direction: column
}

.user-card-label {
    font-size: 12px;
    color: var(--c-gold)
}

.user-card-name {
    font-size: 15px;
    font-weight: 700
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative
}

    .nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 18px;
        border-radius: 12px;
        color: #fff;
        font-size: 16px
    }

        .nav a:hover {
            background: rgba(255,255,255,.08);
            color: #fff
        }

        .nav a.active {
            background: rgba(255,255,255,.08)
        }

        .nav a.sub {
            padding: 9px 18px;
            margin-right: 30px;
            font-size: 14px;
            color: #d9d3c6;
            border-radius: 10px;
            background: rgba(255,255,255,.08);
            font-weight:600;
        }

            .nav a.sub:hover {
                color: #fff
            }

            .nav a.sub.on {
                background: var(--c-gold);
                color: var(--c-primary-dark);
                font-weight: 700
            }

/* 6) الشريط العلوي ----------------------------------------- */
.topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 32px;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border)
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight:600;
    color: var(--c-muted);
    margin-bottom:0px;
}

.breadcrumb-home {
    display: flex;
    align-items: center;
    gap: 6px
}

.breadcrumb-current {
    color: var(--c-primary);
    font-weight: 700
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px
}

.exam-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 99px;
    padding: 8px 16px;
    font-size: 14px
}

    .exam-badge strong {
        color: var(--c-primary) !important;
    }

.logout {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--c-danger);
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 10px
}

/* 7) رأس الصفحة والأزرار ------------------------------------ */
.page-head {
   
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px
}

.page-head-text {
   
    display: flex;
    flex-direction: column;
    gap: 4px
}

.page-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 30px;
    color: var(--c-primary)
}

.page-subtitle {
    margin: 0;
    margin-bottom:15px;
    font-size: 15px;
    color: var(--c-muted)
}

.page-actions {
    display: flex;
    gap: 10px
}

.btn {
    /*display: flex;*/
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer
}

.btn-outline {
    background: var(--c-surface);
    color: var(--c-primary);
    border: 1.5px solid var(--c-primary);
    padding: 10px 18px
}

.btn-primary {
    background: var(--c-primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    box-shadow: 0 4px 0 var(--c-gold)
}
    .btn-primary:hover, .btn-primary:not(:disabled):not(.disabled):active {
        color: #fff;
        background-color: var(--c-gold);
        border-color: var(--c-gold);
    }
    .btn-primary:focus {
        box-shadow: 0 4px 0 var(--c-gold)
    }
    .btn-accent {
        background: var(--c-gold);
        color: var(--c-primary-dark);
        border: none;
        padding: 10px 22px;
        height: 44px
    }
        .btn-accent:hover {
            background: var(--c-primary);
            color: #fff
        }
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--c-surface);
    color: var(--c-primary);
    border: 1.5px solid var(--c-primary);
    border-radius: 10px;
    padding: 5px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  /*  min-height: 36px*/
}
    .btn-sm:hover {
        background: var(--c-primary);
        color: #fff
    }
.btn-sm-del {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--c-surface);
    color: #9a3b2e;
    border: 1.5px solid #9a3b2e;
    border-radius: 10px;
    padding: 5px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
   
   
    /*  min-height: 36px*/
}
@media only screen and (max-width: 1024px) and (max-height: 768px) {
    .btn-sm, .btn-sm-del {
        width: 100%;
        -webkit-justify-content: center;
        justify-content: center;
    }
}
    .btn-sm-del:hover {
        background: #9a3b2e;
        color: #fff
    }

/* 8) بطاقات المؤشرات (KPI) --------------------------------- */
.kpi {
    background: var(--c-surface);
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    box-shadow: 0 6px 0 var(--c-gold)
}

    .kpi.dark {
        background: var(--c-primary);
        color: #fff
    }

.kpi-label {
    font-size: 15px;
    color: #4e5a5b
}

.kpi.dark .kpi-label {
    color: var(--c-gold)
}

.kpi-value {
    font-family: var(--font-head);
    font-size: 44px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: -.5px
}

.kpi.dark .kpi-value {
    color: #fff
}

.kpi-note {
    font-size: 13px;
    color: var(--c-muted)
}

.kpi-note-light {
    color: var(--c-gold)
}

.bar {
    height: 8px;
    border-radius: 99px;
    background: #e9e4d8;
    overflow: hidden
}

.bar-fill {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--c-gold)
}

    .bar-fill.alt {
        background: var(--c-primary)
    }

.kpi.dark .bar {
    background: rgba(255,255,255,.18)
}

/* 9) نموذج الفلاتر ----------------------------------------- */
.filters-card {
    background: var(--c-surface);
    border-radius: 18px;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    box-shadow: 0 6px 0 var(--c-gold)
}

.field {
    margin:15px 0px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 220px;
    min-width: 0
}

    .field label {
        font-size: 13px;
        color: #4e5a5b;
        font-weight: 700
    }

    .field select, .field input {
        font-family: inherit;
        font-size: 14px;
        color: var(--c-text);
        background: var(--c-surface);
        border: 1.5px solid #dcd6c8;
        border-radius: 12px;
        padding: 10px 14px;
        height: 44px;
        box-sizing: border-box;
        width: 100%
    }

        .field select:focus, .field input:focus {
            outline: 2px solid var(--c-primary);
            outline-offset: 1px;
            border-color: var(--c-primary)
        }

/* 10) الجدول والترقيم -------------------------------------- */
.table-card {
    background: var(--c-surface);
    border-radius: 18px;
    padding: 8px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 6px 0 var(--c-gold)
}

.table-scroll {
    overflow-x: auto;
    margin-bottom:11px;
}

.data-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    /* min-width: 1180px;*/
    font-size: 14px;
    background-color: #ffffff;
    width: 100% !important;
}

    .data-table thead th {
        background: var(--c-primary);
        color: #fff;
        font-weight: 700;
        font-size: 13.5px;
        padding: 14px 12px;
        text-align: center;
        white-space: nowrap;
        position: sticky;
        top: 0
    }

        .data-table thead th:first-child {
            border-top-right-radius: 14px
        }

        .data-table thead th:last-child {
            border-top-left-radius: 14px
        }

        .data-table thead th.text-right {
            text-align: right
        }

    .data-table tbody td {
        padding: 11px 12px;
        text-align: center;
        border-bottom: 1px solid #e8e4dc;
        color: var(--c-text);
        vertical-align: middle;
    }
@media only screen and (max-width: 1024px) and (max-height: 768px) {
    .data-table tbody td {
        display: block !important;
        width: 100% !important;
    }

}
        .data-table tbody td.text-right {
            text-align: right
        }

        .data-table tbody td.text-primary {
            color: var(--c-primary) !important;

        }

        .data-table tbody td.text-muted {
            color: var(--c-muted)
        }

        .data-table tbody td.text-faint {
            color: var(--c-faint)
        }

        .data-table tbody td.fw-bold {
            font-weight: 700
        }

/*    .data-table tbody tr:nth-child(even) td {
        background: #faf8f3
    }*/

    .data-table tbody tr:hover td {
        background: #eef4f3
    }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e4f0ef;
    color: var(--c-primary);
    border-radius: 99px;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 13px
}

.rank {
    display: inline-flex;
    min-width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 99px;
    background: #f3eee2;
    color: #7a6236;
    font-weight: 700
}

    .rank.top {
        background: var(--c-gold);
        color: var(--c-primary-dark)
    }

.table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px
}

.table-footer-info {
    font-size: 13px;
    color: var(--c-muted)
}

.pagination {
    display: flex;
    gap: 6px;
    align-items: center
}

.pagination-gap {
    padding: 0 4px
}

.page-btn {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1.5px solid #dcd6c8;
    background: var(--c-surface);
    color: var(--c-text);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    padding: 0 10px
}

    .page-btn.on {
        background: var(--c-primary);
        border-color: var(--c-primary);
        color: #fff;
        font-weight: 700
    }

    .page-btn:hover {
        border-color: var(--c-primary)
    }

/* طباعة: إخفاء الشريط الجانبي والأزرار */
@media print {
    .sidebar, .topbar, .page-actions, .filters-card, .pagination, .btn-sm {
        display: none !important
    }

    .app {
        display: block
    }
}
/* 11) صفحة تسجيل الدخول ------------------------------------ */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-bg);
    direction:rtl;
}

.login-brand {
    flex: 1 1 100px;
    background: var(--c-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 32px;
    text-align: center;
    min-height: 260px
}

.login-watermark {
    left: -60px;
    bottom: -30px;
    width: 260px
}

.login-logo {
    width: 240px;
    max-width: 80%;
    height: auto;
    position: relative
}

.login-brand-title {
    margin: 10px 0 0;
    font-family: var(--font-head);
    font-size: 48px;
    position: relative
}

.login-brand-text {
    margin: 0;
    color: #d9d3c6;
    font-size: 16px;
    max-width: 320px;
    position: relative
}

.login-main {
    flex: 1 1 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px
}

.login-card {
    width: 100%;
    max-width: 600px;
    background: var(--c-surface);
    border-radius: 18px;
    padding: 30px;
    display: flex;
    flex-direction: column;

    box-shadow: 0 6px 0 var(--c-gold)
}
@media only screen and (max-width: 1024px) and (max-height: 768px) {
    .login-card {
        max-width: 100%;
        padding: 11px;
    }   
}

    .login-card .field {
        flex: none
    }

.login-error {
    background: #fbeceb;
    color: var(--c-danger);
    border: 1px solid #efc7c2;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px
}

    .login-error[hidden] {
        display: none
    }

.password-wrap {
    position: relative
}

    .password-wrap input {
        padding-left: 46px
    }

.password-toggle {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--c-muted);
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center
}

    .password-toggle:hover {
        color: var(--c-primary)
    }

.login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4e5a5b;
    cursor: pointer
}

    .check input {
        width: 18px;
        height: 18px;
        accent-color: var(--c-primary)
    }

.login-submit {
    justify-content: center;
   
    font-size: 15px
}

.field input[aria-invalid="true"] {
    border-color: var(--c-danger)
}
.lists {
    margin-top:5px;
    border: 1px solid #ddd;
    width: 100%;
    background-color: #eee;
}

    .lists td {
        padding-right: 5px;
    }

    .lists label {
        padding: 7px;
        margin-right: 3px;
        cursor: pointer;
    }

        .lists label:hover {
            background-color: var(--mainColor);
            color: #005c61;
        }
/* 12) القائمة المنسدلة في الشريط الجانبي ---------------------- */
.nav-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: none;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    text-align: start;
    cursor: pointer
}

    .nav-toggle:hover {
        background: rgba(255,255,255,.08)
    }

    .nav-toggle.active {
        background: rgba(255,255,255,.08)
    }

    .nav-toggle:focus-visible, .nav a:focus-visible {
        outline: 2px solid var(--c-gold);
        outline-offset: 2px
    }

.nav-chevron {
    margin-right: auto;
    transition: transform .25s ease;
    opacity: .85
}

.nav-group.open .nav-chevron {
    transform: rotate(180deg)
}

.nav-sub {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .25s ease,visibility 0s .25s
}

.nav-group.open .nav-sub {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .25s ease,visibility 0s
}

.nav-sub-inner {
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.nav-group.open .nav-sub-inner {
    padding-top: 4px
}

@media (prefers-reduced-motion:reduce) {
    .nav-sub, .nav-chevron {
        transition: none
    }
}


/* الترقيم */
.page-btn.disabled {
    opacity: .45;
    cursor: default;
    pointer-events: none;
}

.paginate_button {
    text-decoration: none;
}

/* مربع البحث الخاص بالمكتبة */
.dataTables_filter {
    padding: 14px 16px;
}

    .dataTables_filter label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        font-weight: 700;
        color: #4e5a5b;
    }

    .dataTables_filter input {
        font-family: inherit;
        font-size: 14px;
        height: 40px;
        padding: 0 14px;
        border: 1.5px solid #dcd6c8;
        border-radius: 12px;
    }

        .dataTables_filter input:focus {
            outline: 2px solid var(--c-primary);
            outline-offset: 1px;
        }
.bg-card {
    background: var(--c-surface);
    border-radius: 18px;
    padding: 20px 24px;
   
  
    box-shadow: 0 6px 0 var(--c-gold)
}
.button2 {
   /* background: #EEE !important;*/
    color: var(--mainColor) !important;
    padding: 0px 15px !important;
    height: auto !important;
    width: auto !important;
}
.button3 {
    /* background: #EEE !important;*/
    color: #0a931b !important;
    padding: 0px 15px !important;
    height: auto !important;
    width: auto !important;
}

.button4 {
    /*background: #EEE !important;*/
    color: #ff0000 !important;
    padding:0px 15px !important;
    height: auto !important;
    width: auto !important;
}
.table {
    --bs-table-bg: transparent !important;
}
.select2-container--default .select2-selection--single
{
    font-weight:600 !important;
}
/*.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}*/

/* 13) التجاوب مع شاشات الجوال والتابلت ----------------------- */
.menu-btn, .sidebar-close {
    display: none
}

.nav-overlay {
    display: none
}

.topbar-start {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0
}

.menu-btn {
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: var(--c-surface);
    color: var(--c-primary);
    cursor: pointer;
    flex: none
}

    .menu-btn:hover {
        background: var(--c-bg)
    }

.sidebar-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    z-index: 2
}

@media (max-width:1024px) {
    .grid-4 {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .content {
        padding: 24px 20px 32px
    }

    .topbar {
        padding: 14px 20px
    }
}

/* الشريط الجانبي يتحول إلى قائمة جانبية منزلقة */
@media (max-width:900px) {
    .menu-btn, .sidebar-close {
        display: flex
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        width: 290px;
        max-width: 86vw;
        flex: none;
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .28s ease,visibility 0s .28s
    }

    body.nav-open .sidebar {
        transform: none;
        visibility: visible;
        transition: transform .28s ease,visibility 0s
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(0,31,33,.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity .28s ease,visibility 0s .28s
    }

    body.nav-open .nav-overlay {
        opacity: 1;
        visibility: visible;
        transition: opacity .28s ease,visibility 0s
    }

    .nav-overlay[hidden] {
        display: block
    }

    body.nav-open {
        overflow: hidden
    }

    .main {
        flex: 1 1 100%
    }

    .grid-3 {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media (max-width:700px) {
    .content {
        padding: 18px 14px 28px;
        gap: 22px
    }

    .topbar {
        padding: 10px 14px
    }

    .topbar-actions {
        gap: 8px
    }

    .exam-badge .text-muted {
        display: none
    }

    .exam-badge {
        padding: 6px 12px;
        font-size: 13px
    }

    .logout {
        font-size: 0;
        gap: 0;
        padding: 8px
    }

        .logout svg {
            width: 20px;
            height: 20px
        }

    .breadcrumb {
        font-size: 13px;
        gap: 6px;
        flex-wrap: wrap
    }

    .breadcrumb-home {
        font-size: 0;
        gap: 0
    }

    .page-title {
        font-size: 24px
    }

    .page-subtitle {
        font-size: 14px
    }

    .page-actions {
        width: 100%
    }

        .page-actions .btn {
            flex: 1;
            justify-content: center
        }

    .grid-3, .grid-4 {
        grid-template-columns: minmax(0,1fr);
        gap: 14px
    }

    .kpi {
        padding: 18px 20px
    }

    .kpi-value {
        font-size: 36px
    }

    .section-title small {
        display: block;
        margin: 2px 0 0
    }

    .filters-card {
        padding: 16px;
        gap: 12px
    }

    .field {
        flex: 1 1 100%
    }

    .filters-card .btn-accent {
        width: 100%;
        justify-content: center
    }

    /* الجدول يتحول إلى بطاقات، كل صف بطاقة */
    .table-card {
        padding: 1px;
        /*background: transparent;*/
        box-shadow: none
    }

    .table-scroll {
        overflow: visible
    }

    .data-table {
        min-width: 0;
        display: block
    }

        .data-table thead {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0 0 0 0)
        }

        .data-table tbody {
            display: flex;
            flex-direction: column;
            gap: 12px
        }

            .data-table tbody tr {
                display: block;
                background: var(--c-surface);
                border-radius: 16px;
                padding: 6px;
                box-shadow: 0 4px 0 var(--c-gold);
                direction: rtl;
                text-align: right;
            }

                .data-table tbody td, .data-table tbody tr:nth-child(even) td, .data-table tbody tr:hover td {
                    display: flex;
                    align-items: center;
                   /* justify-content: space-between;*/
                    gap: 14px;
                    background: none;
                    text-align: right !important;
                    padding: 6px;
                    border-bottom: 1px solid #f0ece2
                }

                    .data-table tbody td::before {
                        content: attr(data-label);
                        flex: none;
                        font-size: 12.5px;
                        font-weight: 700;
                        color: var(--c-muted)
                    }

                    .data-table tbody td.text-right {
                        text-align: start
                    }

                    .data-table tbody td:empty {
                        display: none
                    }

                    .data-table tbody td:last-child {
                        border-bottom: none;
                        padding: 10px 0 8px
                    }

                        .data-table tbody td:last-child::before {
                            display: none
                        }

                        .data-table tbody td:last-child .btn-sm {
                            width: 100%;
                            justify-content: center
                        }

    .table-footer {
        justify-content: center;
        text-align: center;
        padding: 14px 4px
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center
    }

    .login-brand {
        padding: 32px 20px;
        min-height: 0
    }

    .login-watermark {
        display: none
    }

    .login-main {
        padding: 20px 14px
    }

    .login-card {
        padding: 24px 20px
    }
}

@media print {
    .menu-btn, .nav-overlay {
        display: none !important
    }
}
