﻿
/*.custom-blocke {
    border-radius: var(--border-radius-medium);
    position: relative;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
}

.custom-blocke:hover {
    background-color: var(--secondary-color);
}

.custom-blocke > a {
    width: 100%;
}

.hidden-row {
    display: none !important;
}


.table-container {
    max-height: 400px;
    overflow-x: auto;*/ /* شريط تمرير أفقي */
/*}*/








/*.custom-blocke {
    border-radius: var(--border-radius-medium);
    position: relative;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
}

    .custom-blocke:hover {
        background-color: var(--secondary-color);
    }

    .custom-blocke > a {
        width: 100%;
    }

.hidden-row {
    display: none !important;
}

.table-container {
    width: 100%;  فقط لضبط العرض 
}*/

/*---------------------------------*/

/*.custom-blocke {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 24px rgba(108,92,231,0.08), 0 1px 4px rgba(0,0,0,0.04);
    border: 1.5px solid #e8e6f0;
    position: relative;
    transition: box-shadow 0.2s ease;
    margin-bottom: 2rem;
}

    .custom-blocke:hover {
        box-shadow: 0 4px 32px rgba(108,92,231,0.13), 0 2px 8px rgba(0,0,0,0.06);
        background-color: unset;*/ /* إزالة تغيير اللون القديم عند hover */
    /*}

.table-container {
    width: 100%;
    overflow-x: auto;
}*/

/* رأس الجدول */
/*.table thead tr th {
    background: #f8f7ff;
    color: black;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 11px 16px;
    border-bottom: 1.5px solid #e8e6f0;
    white-space: nowrap;
}

    .table thead tr th:first-child {
        border-radius: 10px 0 0 0;
    }

    .table thead tr th:last-child {
        border-radius: 0 10px 0 0;
    }*/

/* صفوف الجدول */
/*.table tbody tr {
    transition: background 0.15s;
}

    .table tbody tr:hover {
        background: #f5f3ff;
    }

    .table tbody tr td,
    .table tbody tr th {
        padding: 13px 16px;
        font-size: 14px;
        color: #2d2b3d;
        border-bottom: 1px solid #f0eef8;
        vertical-align: middle;
    }

    .table tbody tr:last-child td,
    .table tbody tr:last-child th {
        border-bottom: none;
    }*/

/* Pagination */
/*.pagination-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1.5px solid #e8e6f0;
}

@media (max-width: 768px) {
    .mb-3.d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
    }
}*/
/* ════════════════ CARD ════════════════ */
.custom-blocke {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 24px rgba(108,92,231,0.08), 0 1px 4px rgba(0,0,0,0.04);
    border: 1.5px solid #e8e6f0;
    position: relative;
    transition: box-shadow 0.2s ease;
    margin-bottom: 2rem;
}

    .custom-blocke:hover {
        box-shadow: 0 4px 32px rgba(108,92,231,0.13), 0 2px 8px rgba(0,0,0,0.06);
    }

/* ════════════════ TABLE CONTAINER ════════════════ */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ════════════════ TABLE HEADER ════════════════ */
.table thead tr th {
    background: #f8f7ff;
    color: #111;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 11px 16px;
    border-bottom: 1.5px solid #e8e6f0;
    white-space: nowrap;
}

    .table thead tr th:first-child {
        border-radius: 10px 0 0 0;
    }

    .table thead tr th:last-child {
        border-radius: 0 10px 0 0;
    }

/* ════════════════ TABLE BODY ════════════════ */
.table tbody tr {
    transition: background 0.15s ease;
}

    .table tbody tr:hover {
        background: #f5f3ff;
    }

    .table tbody tr td,
    .table tbody tr th {
        padding: 13px 16px;
        font-size: 14px;
        color: #2d2b3d;
        border-bottom: 1px solid #f0eef8;
        vertical-align: middle;
    }

    .table tbody tr:last-child td,
    .table tbody tr:last-child th {
        border-bottom: none;
    }

/* ════════════════ PAGINATION ════════════════ */
.pagination-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1.5px solid #e8e6f0;
    gap: 10px;
    flex-wrap: wrap;
}

/* ════════════════ SEARCH + FILTER ROW FIX ════════════════ */
.mb-3.d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* ════════════════ RESPONSIVE ════════════════ */

/* 📱 Tablets */
@media (max-width: 992px) {
    .custom-blocke {
        padding: 20px;
    }

    .table thead tr th,
    .table tbody tr td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 📱 Mobile */
@media (max-width: 768px) {

    /* Stack filter + search vertically */
    .mb-3.d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }

        /* Search full width */
        .mb-3.d-flex .position-relative,
        .mb-3.d-flex .form-select {
            width: 100% !important;
        }

    /* Table becomes scroll-friendly */
    .table-container {
        overflow-x: auto;
    }

    /* Reduce padding */
    .custom-blocke {
        padding: 16px;
        border-radius: 12px;
    }

    .pagination-area {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* 📱 Small phones */
@media (max-width: 480px) {

    .table thead tr th {
        font-size: 10.5px;
        padding: 8px 10px;
    }

    .table tbody tr td {
        font-size: 12px;
        padding: 8px 10px;
    }
}