/* grid header */


.rz-grid-table thead th {
    background-color: darkorange !important;
    color: white !important;
    font-weight: bold;
}

/* hover rows */

.rz-grid-table tbody tr:hover {
    background-color: #f1f5f9 !important;
}

/* filter row */

.rz-grid-table thead tr:nth-child(2) th {
    padding: 2px 2px !important;
    height: 25px !important;
}

/* filter inputs */

.rz-grid-table thead input {
    width: 100px !important;
    height: 30px !important;
    font-size: 12px;
}

/* dropdown */

.rz-grid-table .rz-dropdown {
    height: 25px !important;
    font-size: 12px;
}


.rz-grid-table {
    /*عرض أعمدة الجريد*/
    min-width: 300px;
}

.grid-container {
    width: 100%;
    overflow-x: auto;
}



/* mobile grid cards */

@media (max-width:768px) {

    .rz-paginator {
        display: none;
    }

    .card-grid .rz-data-grid-data b {
        color: #555;
    }

    /* الكارت */
    .card-grid .rz-data-grid-data tr {
        display: block;
        direction: rtl;
        background: #fff;
        border: 1px solid #ff6a00;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        margin-bottom: 12px;
        padding: 12px;
    }

    /* الخلايا */
    .card-grid .rz-data-grid-data td {
        display: block;
        width: 100%;
        border: none;
        padding: 6px 0;
        text-align: right !important;
    }

        .card-grid .rz-data-grid-data td * {
            text-align: right !important;
        }

    /* النص داخل الخلية (المهم) */
    .card-grid .rz-cell-data {
        width: 100%;
        text-align: right !important;
        direction: rtl;
    }

    .action-buttons {
        display: flex;
        justify-content: space-between;
    }

        .action-buttons .rz-button {
            flex: 1;
        }
}



.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.search-box {
    width: 100%;
    margin-top: 10px;
}

.search-input {
    height: 36px;
    width: 100%;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.grid-scroll {
    width: 100%;
    overflow-x: auto;
}

.grid-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* هو ده الحل الحقيقي */


/*.rz-data-grid-scrollable {
    overflow: auto !important;
}

.rz-data-grid-table {
    width: max-content !important;
    min-width: 100% !important;
}

.rz-data-grid-table {
    width: 1500px !important;
}*/