

.tmu-table-box {
    width: 100%;
    direction: rtl;
    font-size: 14px;
}

/* نوار بالای جدول */
.tmu-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* تعداد نمایش */
.tmu-length {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tmu-length select {
    height: 36px;
    min-width: 70px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

/* جستجو */
.tmu-search {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tmu-search input {
    width: 220px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    outline: none;
}

.tmu-search input:focus {
    border-color: #999;
}

/* جدول */
#example {
    width: 100% !important;
    border-collapse: collapse;
    border-spacing: 0;
}

/* سلول ها */
#example th,
#example td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

/* عنوان */
#example thead th {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 28px;
}

/* فلش مرتب سازی */
#example thead th.sort-asc::after {
    content: "▲";
    position: absolute;
    left: 9px;
    font-size: 9px;
}

#example thead th.sort-desc::after {
    content: "▼";
    position: absolute;
    left: 9px;
    font-size: 9px;
}

/* پایین جدول */
.tmu-table-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 15px;
    flex-wrap: wrap;
}

.tmu-info {
    color: #666;
}

/* pagination */
.tmu-pagination {
    display: flex;
    direction: ltr;
    gap: 4px;
    flex-wrap: wrap;
}

.tmu-pagination button {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.tmu-pagination button:hover {
    background: #f3f3f3;
}

.tmu-pagination button.active {
    background: #06456d;
    color: #fff;
    border-color: #06456d;
}

.tmu-pagination button:disabled {
    opacity: .5;
    cursor: default;
}

/* موبایل */
@media (max-width: 768px) {

    .tmu-table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tmu-search {
        width: 100%;
    }

    .tmu-search input {
        width: 100%;
    }

    .tmu-table-bottom {
        flex-direction: column;
        align-items: center;
    }

    /*
     * جدول در موبایل اسکرول افقی می‌گیرد
     */
    .tmu-table-scroll {
        width: 100%;
        overflow-x: auto;
    }
}

