﻿.dxbl-wait-indicator {
    --dxbl-wait-indicator-color: white;
}

.dxbl-btn.dxbl-lg {
    --dxbl-btn-line-height: 1.5rem;
}

.fs-grid--pro {
    /* outline: none !important;*/
    outline: 1px solid var(--fs-primary) !important;
}

/* «عرض الكل» مع الرسم الجزئى (2026-11-17): الجدول محتاج ارتفاع ثابت عشان يعرف يرسم الصفوف الظاهرة بس */
.fs-grid--virt {
    height: calc(100dvh - 300px);   /* باقى الشاشة تحت الهيدر وشريط البحث */
    min-height: 360px;              /* على الشاشات القصيرة مايبقاش صغير أوى */
}

/* ── إظهار border بين جميع أعمدة الجرد بشكل موحد ── */
.fs-grid--pro .dxbl-grid-table th,
.fs-grid--pro .dxbl-grid-table td {
    border-inline-end: 1px solid #e4e8f0 !important;
}

/* آخر عمود لا يحتاج border */
.fs-grid--pro .dxbl-grid-table th:last-child,
.fs-grid--pro .dxbl-grid-table td:last-child {
    border-inline-end: none !important;
}

/* ══ تغيير حجم الأعمدة — مقبض واضح وسهل الإمساك ══ */

/* الـ header cell يكون relative لإظهار المقبض */
.fs-grid--pro .dxbl-grid-header-cell {
    position: relative;
    user-select: none;
}

/* خط برتقالي خفيف على يمين كل header — يوضح نقطة التغيير */
.fs-grid--pro .dxbl-grid-header-cell::after {
    content: '';
    position: absolute;
    inset-inline-end: 0;
    top: 20%;
    height: 60%;
    width: 2px;
    background: #e4e8f0;
    border-radius: 2px;
    transition: background 0.15s, width 0.15s;
    pointer-events: none;
}
.fs-grid--pro .dxbl-grid-header-cell:hover::after {
    background: var(--fs-primary);
    width: 3px;
}

/* ── cursor hint يُضاف بواسطة JS (class fs-col-resizing) على <th> عند الاقتراب من حافة العمود ── */
.fs-grid--pro th.fs-col-resizing {
    cursor: col-resize !important;
}

/* تحويل الـ ::after البرتقالي لوناً أعمق عند hover على الحافة */
.fs-grid--pro th.fs-col-resizing::after,
.fs-grid--pro th.fs-col-resizing .dxbl-grid-header-cell::after {
    background: var(--fs-primary) !important;
    width: 3px !important;
}

    .fs-grid--pro .dxbl-grid-filter-row input,
    .fs-grid--pro .dxbl-grid-filter-row textarea,
    .fs-grid--pro .dxbl-grid-filter-row .dxbl-texteditor-input {
        color: #d32f2f !important; /* 🔴 لون النص */
        font-weight: 900 !important;
    }

        .fs-grid--pro .dxbl-grid-filter-row input::placeholder {
            color: rgba(211,47,47,.6) !important;
        }

.fs-empty {
    padding: 28px 12px;
    text-align: center;
    color: rgba(15,23,42,.75);
}

.fs-empty-icon {
    font-size: 34px;
    margin-bottom: 6px;
    opacity: .65;
}

.fs-empty-title {
    font-weight: 900;
    font-size: 15px;
}

.fs-empty-sub {
    margin-top: 6px;
    font-size: 13px;
    opacity: .8;
}



.fs-grid-actions {
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0 12px 0;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15,23,42,.05);
}

.fs-actions-left,
.fs-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fs-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(15,23,42,.18);
    background: #ffffff;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(15,23,42,.06);
    transition: background .12s ease, box-shadow .12s ease;
    cursor: pointer;
    white-space: nowrap;
}

    .fs-act-btn:hover {
        background: rgba(15,23,42,.04);
        box-shadow: 0 4px 10px rgba(15,23,42,.08);
    }

    .fs-act-btn img {
        width: 14px;
        height: 14px;
    }


.fs-cols-icon {
    font-size: 14px;
    opacity: .8;
}
/* Mobile */
@media (max-width: 640px) {
    .fs-grid-actions {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        gap: 8px;
        padding: 8px 10px;
    }

    .fs-actions-left,
    .fs-actions-right {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        flex: 0 0 auto;
    }

    .fs-act-btn {
        flex: 0 0 auto;
        height: 32px;
        padding: 0 10px;
        font-size: 12.5px;
        min-width: 72px;
    }


    .fs-act-cols {
        min-width: 150px;
    }


    .fs-act-btn img {
        width: 14px;
        height: 14px;
    }
    /* Scrollbar خفيف */
    .fs-grid-actions::-webkit-scrollbar {
        height: 4px;
    }

    .fs-grid-actions::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,.15);
        border-radius: 10px;
    }
}
