.petroprice-widget {
    margin: 0 auto;
    max-width: 1100px;
    background: #fff;
    border-radius: 14px;
    /* box-shadow: 0 4px 12px 0 rgba(31, 35, 47, 0.04); */
    padding: 24px 16px;
    overflow-x: auto;
}

.petroprice-table-title {
    font-size: 1.35rem;
    margin-bottom: 24px;
    color: #20242c;
    text-align: center;
    font-weight: 700;
}

.petroprice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.petroprice-table thead th {
    background: #fff;
    color: #667085;
    font-weight: 700;
    font-size: 1.02rem;
    text-align: center;
    padding: 14px 12px;
    border-bottom: 2px solid #f2f4f7;
}

.petroprice-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #f2f4f7;
    color: #20242c;
    font-size: 1.06rem;
    text-align: center;
    vertical-align: middle;
    transition: background 0.2s;
}

.petroprice-table tbody tr:last-child td {
    border-bottom: none;
}

.petroprice-table tbody tr {
    transition: background 0.2s;
}

.petroprice-table tbody tr:hover {
    background: #f9fafb;
}

.petroprice-table td:first-child, .petroprice-table th:first-child {
    width: 60px;
    text-align: center;
}

/* Name column bolder (عنوان/نام محصول) */
.petroprice-table td:nth-child(2) {
    font-weight: 700;
}

/* Price styling */
.petroprice-table td:nth-child(3) {
    font-family: 'Roboto Mono', monospace, Arial;
    font-size: 1.1rem;
    color: #20242c;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Description column softer */
.petroprice-table td:nth-child(4) {
    color: #787e99;
    font-size: 0.96rem;
}

/* Date columns smaller */
.petroprice-table td:nth-last-child(-n+2) {
    font-size: 0.92rem;
    color: #8a90a7;
}

/* "Empty" row center text */
.petroprice-table td[colspan] {
    background: #fafbfc;
    color: #b1b6c3;
    font-style: italic;
}

/* Optional: number and decimals as LTR */
.petroprice-table td,
.petroprice-table th {
    direction: ltr;
}
.petroprice-table td:not(:first-child),
.petroprice-table th:not(:first-child) {
    direction: rtl;
}

/* Responsive scroll */
@media (max-width: 700px) {
    .petroprice-widget {
        padding: 8px;
    }
    .petroprice-table-title {
        font-size: 1.05rem;
        margin-bottom: 16px;
    }
    .petroprice-table th, .petroprice-table td {
        padding: 8px 4px;
        font-size: 0.91rem;
    }
}
.petroprice-table .medium{font-size:11px;margin-left:3px;margin-bottom:0}
.petroprice-table .small{font-size:9px;margin-bottom:0}