/* کانتینر اصلی */
.ppt-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    font-family: inherit;
    box-sizing: border-box;
}

/* عنوان بالای جدول */
.ppt-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2c7be5;
}

.ppt-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: right;
}

/* فرم جستجو */
.ppt-search-form {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ppt-search-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.ppt-search-form button {
    padding: 10px 20px;
    background: #2c7be5;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.ppt-search-form button:hover {
    background: #1a68d1;
}

/* کانتینر جدول برای اسکرول افقی در صورت نیاز */
.ppt-table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

/* استایل جدول */
.ppt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    min-width: 600px;
}

.ppt-table th,
.ppt-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}

.ppt-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #2c7be5;
}

/* ردیف‌های دو رنگ */
.ppt-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.ppt-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.ppt-table tbody tr:hover {
    background-color: #f0f7ff;
}

/* لینک‌ها */
.ppt-table a {
    color: #2c7be5;
    text-decoration: none;
    transition: color 0.2s;
}

.ppt-table a:hover {
    color: #1a68d1;
    text-decoration: underline;
}

/* ستون قیمت */
.ppt-col-price {
    font-weight: 600;
    color: #2c7be5;
    direction: rtl;
}

/* پیام محصول یافت نشد */
.ppt-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

/* صفحه‌بندی */
.ppt-pagination {
    margin-top: 20px;
    text-align: center;
}

.ppt-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
}

.ppt-pagination li {
    margin: 0;
}

.ppt-pagination a,
.ppt-pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: all 0.2s;
}

.ppt-pagination a:hover {
    background: #f0f0f0;
    border-color: #2c7be5;
}

.ppt-pagination .current {
    background: #2c7be5;
    color: #fff;
    border-color: #2c7be5;
}

/* ==================== */
/* حالت موبایل (کارت) */
/* ==================== */
@media (max-width: 768px) {
    
    .ppt-table-container {
        overflow-x: hidden;
    }
    
    .ppt-table {
        min-width: 100%;
    }
    
    .ppt-table thead {
        display: none;
    }
    
    .ppt-table,
    .ppt-table tbody,
    .ppt-table tr,
    .ppt-table td {
        display: block;
        width: 100%;
    }
    
    .ppt-table tr {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .ppt-table td {
        text-align: right;
        padding: 12px;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .ppt-table td:last-child {
        border-bottom: none;
    }
    
    .ppt-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        margin-left: 10px;
        flex-shrink: 0;
    }
    
    /* مخفی کردن ستون‌های غیرفعال در موبایل */
    .ppt-hide-mobile {
        display: none !important;
    }
    
    /* استایل خاص برای ردیف‌هایی که مخفی نیستند */
    td:not(.ppt-hide-mobile) {
        background: #fff;
    }
}

/* حالت خیلی کوچک موبایل */
@media (max-width: 480px) {
    .ppt-title {
        font-size: 16px;
    }
    
    .ppt-search-form input[type="text"] {
        width: 100%;
    }
    
    .ppt-search-form button {
        width: 100%;
    }
}

.ppt-date{
    color:#2c7be5;
    font-weight:700;
}