/* ============================================================
   استایل‌های افزونهٔ قیمت‌گذاری ضایعات
   ============================================================ */

.scrap-container-header {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-right: 4px solid #1b48bc;
    font-size: 15px;
}
.scrap-home-header{    position: absolute;
    top: -42px;
    left: 0;}
.scrap-update-date {
background-color: rgb(0 151 99 / 10%);
    border-radius: 12px;
    font-weight: normal;
    color: #009763;
    padding: 5px 15px;
    font-size: 13px;
}
.scrap-section-title {
   color: #23282d;
    font-size: 16px;
    background-color: #fff;
    position: relative;
    border-radius: 20px 20px 0 0;
    margin: 0;
    padding: 12px 25px ;
    line-height: 25px;
    display: inline-block;
}
.scrap-section-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

/* جدول اسلایدر صفحه اصلی */
.scrap-home-table-wrapper {
    overflow: hidden;
    border-radius: 20px 0 20px 20px;
    background: #fff;
    padding: 10px;max-height:490px;
}
.scrap-slider-viewport {
    /* ارتفاع توسط جاوااسکریپت تنظیم می‌شود */
    overflow: hidden;
}
.scrap-slider-viewport:after{    content: '';
    display: inline-block;
    position: absolute;
    width: 96%;
    height: 5px;
    bottom: 8px;
    left: 7px;
    z-index: 0;
    background-color: #fff;}
.scrap-home-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
    border: none;
}
.scrap-home-table th {
    color: #222;
    padding: 12px 15px;
    text-align: center;
    font-weight: 500;
}
.scrap-home-table th span {
    color: #666;
    font-weight: normal;
    font-size: 12px;
    display: block;
}
.scrap-home-table td {
    padding: 12px 6px;
    border: none;
    font-size: 15px;
    color: #222;
    text-align: center;
    font-weight: 500;
   position:relative;
    height: 50px;
    vertical-align: middle;
}
.scrap-home-table tbody td:first-child,
.scrap-home-table thead th:first-child {
    text-align: right;
}
.scrap-home-table thead tr {
    border-bottom: 1px solid #f2f2f2;
}
.scrap-home-table tr {
    display: table;
    width: 100%;
    border-bottom: 1px solid #f2f2f2;
    table-layout: fixed;
}
.scrap-home-table tbody tr:last-child {
    border: none;
}
.scrap-home-table td a {
    color: #666;
    font-size: 14px;
    font-weight: normal;
    text-decoration: none;
    transition: color .2s;
}
.scrap-home-table td a:hover {
    color: #1b48bc;
}
.scrap-home-table tbody tr:hover {
    background-color: rgb(0 151 99 / 6%);
    border-radius: 12px;
    transition: background-color .2s;
}
.scrap-home-table tbody tr:hover td,
.scrap-home-table tbody tr:hover td a {
    font-weight: 500;
    color: #009763;
}
.scrap-home-table tbody tr:hover td a:hover {
    color: #222;
}
.priceup{content: '';
    position: absolute;
    display: inline-block;
    width: 17px;
    height: 17px;
    background-size: 17px;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 5px;
    margin-top: 5px;    background-image: url(chartarrow.svg);}
 .pricedown{content: '';
    position: absolute;
    display: inline-block;
    width: 17px;
    height: 17px;
    background-size: 17px;
    background-repeat: no-repeat;
    vertical-align: middle;
      margin-right: 5px;
    margin-top: 5px;   background-image: url(chartarrow2.svg);}   
.scrap-note {
    font-size: 12px;
    color: #6c757d;
    margin-top: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* کانتینرهای دوستونه */
.scrap-two-column-container,
.scrap-extra-charts-container {
    display: flex;
    gap: 30px;
    margin: 15px 0;
    flex-wrap: wrap;
}
.scrap-column,
.scrap-extra-column {
    flex: 1;
    min-width: 0;
}
@media (min-width: 992px) {
    .scrap-column-right,
    .scrap-column-left,
    .scrap-extra-column {
        flex: 1 1 0;
        max-width: 50%;
    }
}



/* هدر جدول و نمودار */
.scrap-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 10px;
}
.scrap-chart-header {display:block;}

.scrap-table-title {
    font-weight: bold;
    font-size: 16px;
    background-color: #fff;
    position: relative;
    border-radius: 20px 20px 0 0;
    margin: 0;
    padding: 12px 25px 0;
    line-height: 25px;
}
.scrap-table-title:after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    background-size: 27px;
    background-repeat: no-repeat;
    background-image: url(../images/cornersefid.svg);
    position: absolute;
    left: -27px;
    bottom: 0;
    z-index: 1;
    transition: all 0.3s ease-in-out 0s;
    rotate: 270deg;
}

.scrap-table-title span{font-size:13px;    color: var(--freeio-text-color); font-weight:normal;display:block}
.scrap-table-update {
    display: inline-block; background-color: rgb(0 151 99 / 10%);
    border-radius: 12px;
    font-weight: normal;
    color: #009763;
    padding: 5px 15px;
    font-size: 13px;
}

/* جدول‌های جزئیات و آمار */
.scrap-table-wrapper {
    background: #fff;
    border: none;
    border-radius: 20px 0 20px 20px;
    padding: 10px 15px 10px 10px;
    overflow: hidden;
}
.scrap-table-wrapper,.scrap-stats-table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent; /* مخفی در حالت عادی */
    scrollbar-gutter: stable; /* رزرو فضا برای جلوگیری از جابه‌جایی */
}

.scrap-table-wrapper:hover,.scrap-stats-table-wrapper:hover {
    scrollbar-color: #bbb transparent; /* نمایش در فایرفاکس هنگام هاور */
}

/* استایل اسکرول در مرورگرهای WebKit مثل Chrome و Edge */
.scrap-table-wrapper::-webkit-scrollbar,.scrap-stats-table-wrapper::-webkit-scrollbar {
    width: 8px; /* ۵px فاصله از چپ + ۳px عرض دسته اسکرول */
    background-color: transparent;
}

.scrap-table-wrapper::-webkit-scrollbar-track,.scrap-stats-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.scrap-table-wrapper::-webkit-scrollbar-thumb,.scrap-stats-table-wrapper::-webkit-scrollbar-thumb {
    background-color: transparent; /* مخفی در حالت عادی */
    border-left: 5px solid transparent; /* ایجاد فاصله ۵px از سمت چپ */
    background-clip: padding-box;
    border-radius: 1px;
    min-height: 30px;
    max-height: 50px; /* حداکثر ارتفاع دسته اسکرول */
    transition: background-color .3s ease;
}

.scrap-table-wrapper:hover::-webkit-scrollbar-thumb,.scrap-stats-table-wrapper:hover::-webkit-scrollbar-thumb {
    background-color: #bbb; /* نمایش دسته اسکرول هنگام هاور */
}

@media (min-width: 769px) {
    .scrap-table-wrapper {
        max-height: 385px;
        overflow-y: scroll; 
        direction: rtl;
    }
   .scrap-stats-table-wrapper  {
        max-height: 400px;
        overflow-y: scroll !important; 
        direction: rtl;
    }
}

.scrap-detail-table,
.scrap-stats-table {
    width: 100%;border:none;
    border-collapse: collapse;
    font-size: 13px;
    margin: 0;
}

.scrap-detail-table th,
.scrap-stats-table th {
  background-color: #f5f6f7;
    color: #1b48bc;
    padding: 12px 10px;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    padding-left: 15px;
    font-size:14px
}
.scrap-detail-table th:first-child,.scrap-stats-table th:first-child{border-radius:0 15px 15px 0;}
.scrap-detail-table th:last-child,.scrap-stats-table th:last-child{border-radius:15px 0 0 15px;}

.scrap-detail-table thead th:first-child ,.scrap-stats-table thead th:first-child{    text-align: right;}
.scrap-detail-table tbody tr{border-bottom:1px solid #f2f2f2;}
.scrap-detail-table tbody tr:last-child{border-bottom:none;}
.scrap-detail-table tbody tr:hover{background-color: rgb(0 151 99 / 6%);    transition: background-color .2s;}

.scrap-detail-table td,
.scrap-stats-table td {
    padding: 10px 6px;
    border-bottom: none;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #222;border:none;
}
.scrap-detail-table tbody td:first-child ,.scrap-stats-table tbody td:first-child{
    font-weight: normal;
    text-align: right;
    font-size: 14px;
}
.scrap-detail-table tbody tr:hover td{color:#009763;font-weight:500;    transition: color .2s;}


/* استایل‌های تغییرات */
.scrap-change-up {
    color: #009763;
    font-weight: normal;
    direction: ltr;
    display: inline-block;
    font-size: 13px;
}
.scrap-change-down {
    color: #dc3232;
    font-weight: normal;
    direction: ltr;
    display: inline-block;
    font-size: 13px;
}
.scrap-change-up span,
.scrap-change-down span {
    font-size: 9px;
    margin-right: 1px;
}
.scrap-change-none {
    color: #999;
}

/* نسخه موبایل تغییرات (درون سلول قیمت) */
.scrap-change-mobile {
    display: none;
    font-size: 0.9em;
    margin-top: 4px;
}


.scrap-detail-table th::after,
.scrap-stats-table th::after {
    content: "▲";
    position: relative;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
color:#1b48bc;    transition: all .2s;
}
.scrap-detail-table th.sort-asc::after,
.scrap-stats-table th.sort-asc::after {
    content: "▲";
    opacity: 1;
}
.scrap-detail-table th.sort-desc::after,
.scrap-stats-table th.sort-desc::after {
    content: "▼";
    opacity: 1;
}
th.col-change-khordeh,
th.col-change-omdeh {
    color: #f5f6f7;font-size:12px;
}
th.col-change-khordeh:after, th.col-change-omdeh:after{display:none;}
td.col-change-khordeh,
td.col-change-omdeh {
    padding: 8px 4px;
}

/* نمودارها */
.scrap-pie-chart-wrapper,
.scrap-forecast-chart-wrapper,
.scrap-range-chart-wrapper,
.scrap-volume-chart-wrapper {
    background: #fff;
    border-radius: 20px 0 20px 20px;
    padding: 15px;
}
.scrap-pie-chart-wrapper p{    font-size: 13px;text-align:right;
    margin-bottom: 12px;
    line-height: 24px;}
.scrap-chart-wrapper{border-radius:0 0 20px 20px; background: #fff;    padding: 15px;}
.scrap-chart-container {
    position: relative;
    height: 280px;
    min-height: 200px;
}
.scrap-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.scrap-chart-type-tabs{    position: relative;display:inline-block;
    border-radius: 20px 20px 0 0;background-color: #fff;
    padding: 12px 25px 6px 16px;}
.scrap-chart-type-tabs:after,.scrap-section-title:after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    background-size: 27px;
    background-repeat: no-repeat;
    background-image: url(../images/cornersefid.svg);
    position: absolute;
    left: -27px;
    bottom: 0;
    z-index: 1;
    transition: all 0.3s ease-in-out 0s;
    rotate: 270deg;
}

.chart-row{background-color: #fff;padding:12px 15px; border-radius:20px 0 0 0;}
/* تب‌ها و دکمه‌ها */
.scrap-chart-tabs {
    display: flex;padding:11px;
    gap: 8px;background-color: #f5f6f7; border-radius:15px;
    flex-wrap: wrap;
}
.chart-right {margin-right:0;margin-left:auto;    }
.chart-left{margin-right:auto;margin-left:0} 

.scrap-tab-btn {
        padding: 6px 16px;
    border:none;
    background: #fff;
    border-radius: 15px;
    cursor: pointer; 
    font-size: 12px;
    color: #555;
    transition: all .3s;
    margin-left: 8px;
}
.scrap-tab-btn:hover {
    background: #e9ecef;
}
.scrap-tab-btn.active {
    background: #1b48bc;
    color: #fff;
    border-color: #1b48bc;
}
.scrap-tab-btn.scrap-print-btn {
    background: #009763;
    color: #fff;
    border-color: #009763;
}
.scrap-tab-btn.scrap-print-btn:hover {
    background: #218838;
}

.scrap-range-type-btn {
     padding: 6px 16px;
    border: none;
    background: #fff;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all .3s;
    margin-right: 8px;
}
.scrap-chart-type-btn{    padding: 5px 20px 7px;
    border: none;color:#222;
    background: #fff;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14.5px;
    transition: all .3s;
    margin-left: 10px;
    font-weight: bold;
    text-shadow: none;}
    
.scrap-chart-type-btn.active,
.scrap-range-type-btn.active {
    background: #dfe3e6;
    color: #222;
    border-color: #dfe3e6;
}
.scrap-chart-type-btn:hover,
.scrap-range-type-btn:hover {
    background: #e9ecef;
}

/* دکمه توگل موبایل */
.scrap-mobile-toggler {
    display: none;
    text-align: center;
    margin: 20px 0 10px;
}
.scrap-mobile-toggler button {
    background: #1b48bc;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}
.scrap-mobile-toggler button:hover {
    background: #005a87;
}

/* نمودار دایره‌ای و محدوده */
.scrap-pie-forecast-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.scrap-pie-forecast-row .mahdudeh{float:left;}
.scrap-pie-forecast-row .scrap-range-type-btn[data-rangetype="khordebar"].active{    background: #009763;
    color: #fff;
    border-color: #009763;}
.scrap-pie-forecast-row .scrap-range-type-btn[data-rangetype="omdeh"].active{background: #1b48bc;
    color: #fff;
    border-color: #1b48bc;}


.scrap-pies-column {
    flex: 1;
    min-width: 280px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.scrap-pie-item {
    flex: 1;
    min-width: 200px;
}
.scrap-pie-item .scrap-pie-chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}
.scrap-range-column {
    flex: 1;
    min-width: 280px;
}
.scrap-pie-desc {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* ردیف آمار و حجم */
.scrap-stats-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.scrap-stats-table-col {
    flex: 1;
    min-width: 280px;
}
.scrap-volume-chart-col {
    flex: 1;
    min-width: 280px;
}
.scrap-volume-chart-container {
    position: relative;
    height: 280px;
    min-height: 200px;
}
.scrap-volume-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* جداول آمار */
.scrap-stats-table-wrapper {
   background: #fff;
    border: none;
    border-radius: 20px 0 20px 20px;
    overflow: hidden;
    padding: 15px;
    margin-top: 0;
}
.scrap-stats-table-wrapper tbody tr{border-bottom: 1px solid #f2f2f2;}
.scrap-stats-table-wrapper tbody tr:last-child{border-bottom: none;}

/* هدر صفحه دسته‌بندی */
.scrap-category-header {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-right: 5px solid #1b48bc;
}
.scrap-header-title {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #222222;
}
.scrap-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
}
.scrap-header-meta span {
    background: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
}
.scrap-header-khordeh {
    color: #1b48bc;
    font-weight: 600;
}
.scrap-header-omdeh {
    color: #dc3232;
    font-weight: 600;
}

/* پرینت */
@media print {
    .scrap-chart-tabs,
    .scrap-chart-type-tabs,
    .scrap-print-btn,
    .scrap-tab-btn,
    .scrap-range-type-btn,
    .scrap-mobile-toggler {
        display: none !important;
    }
    #scrap-mobile-sections {
        display: block !important;
    }
    .scrap-two-column-container,
    .scrap-extra-charts-container,
    .scrap-pie-forecast-row,
    .scrap-stats-row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    .scrap-column,
    .scrap-extra-column,
    .scrap-pies-column,
    .scrap-range-column,
    .scrap-stats-table-col,
    .scrap-volume-chart-col {
        flex: 1 !important;
        max-width: 50% !important;
        min-width: 0 !important;
    }
    .scrap-chart-container,
    .scrap-pie-chart-wrapper,
    .scrap-forecast-chart-wrapper,
    .scrap-range-chart-wrapper,
    .scrap-volume-chart-wrapper {
        height: 250px !important;
    }
    .scrap-detail-table th,
    .scrap-stats-table th {
        background: #333 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .print-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 2px solid #333;
        margin-bottom: 15px;
    }
    .print-logo img {
        max-height: 60px;
    }
    .print-title {
        font-size: 20px;
        font-weight: bold;
    }
    .print-url {
        font-size: 12px;
        color: #666;
    }
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .scrap-detail-table th.col-change-khordeh,
    .scrap-detail-table td.col-change-khordeh,
    .scrap-detail-table th.col-change-omdeh,
    .scrap-detail-table td.col-change-omdeh {
        display: none;
    }
    .scrap-change-mobile {
        display: block;
    }

    .scrap-stats-table th.col-max-khordeh,
    .scrap-stats-table td.col-max-khordeh,
    .scrap-stats-table th.col-max-omdeh,
    .scrap-stats-table td.col-max-omdeh {
        display: none;
    }
    .scrap-stats-combined {
        display: block;
    }

    .scrap-mobile-toggler {
        display: block;
    }
    #scrap-mobile-sections.closed {
        display: none;
    }
    #scrap-mobile-sections.opened {
        display: block;
    }
}

@media (min-width: 769px) {
    #scrap-mobile-sections {
        display: block !important;
    }
    .scrap-mobile-toggler {
        display: none;
    }
    .scrap-table-header-inner {
        width: 100%;
    }
   
    .scrap-table-update {
        float: left;
    }
    .scrap-pie-forecast-row,.scrap-stats-row{margin-top:75px;}
}

@media (max-width: 992px) {
    .scrap-two-column-container,
    .scrap-extra-charts-container,
    .scrap-pie-forecast-row,
    .scrap-stats-row {
        flex-direction: column;
    }
    .scrap-column,
    .scrap-extra-column,
    .scrap-pies-column,
    .scrap-range-column,
    .scrap-stats-table-col,
    .scrap-volume-chart-col {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100% !important;
    }
    .scrap-chart-container,
    .scrap-volume-chart-container {
        height: 220px;
    }
}
@media (max-width: 600px) {
    .scrap-header-meta {
        flex-direction: column;
        gap: 8px;
    }
    .scrap-header-title {
        font-size: 18px;
    }
    .scrap-tab-btn,
    .scrap-range-type-btn {
        font-size: 11px;
        padding: 4px 10px;
    }
    .scrap-chart-container,
    .scrap-volume-chart-container {
        height: 180px;
    }
    .scrap-detail-table th,
    .scrap-stats-table th {
        font-size: 11px;
        padding: 6px 8px;
    }
    .scrap-detail-table td,
    .scrap-stats-table td {
        font-size: 11px;
        padding: 5px 8px;
    }
}


/* === اصلاح رسپانسیو نمودار حجم (اضافه شود) === */
.scrap-volume-chart-wrapper {
    position: relative;
    width: 100%;
}

.scrap-volume-chart-container {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 250px;
    max-height: 400px;
    aspect-ratio: 16 / 9;
}

.scrap-volume-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* رسپانسیو برای تبلت */
@media (max-width: 992px) {
    .scrap-volume-chart-container {
        aspect-ratio: 4 / 3;
        min-height: 220px;
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 600px) {
    .scrap-volume-chart-container {
        aspect-ratio: 4 / 3;
        min-height: 200px;
    }
}

/* === انیمیشن نرم اسلایدر === */
.scrap-home-table-body tbody {
    will-change: transform;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}




/* ============================================================
   استایل‌های جدید - نسخه 9.0.0
   بخش‌های فروش، مزایده و شهرها
   ============================================================ */

/* === صفحه فروش === */
.scrap-sell-page {
    font-family: 'Estedad', Tahoma, Arial, sans-serif;
}

.scrap-sell-charts {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

.scrap-sell-chart-item {
    width: 100%;
}

/* کارت‌های Spread */
.scrap-spread-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.scrap-spread-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.scrap-spread-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.scrap-spread-card-icon {
    font-size: 28px;
}

.scrap-spread-card-content {
    flex: 1;
}

.scrap-spread-card-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.scrap-spread-card-value {
    font-size: 20px;
    font-weight: bold;
    color: #222222;
}

.scrap-spread-card-sub {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.scrap-spread-card-avg { border-right: 4px solid #1b48bc; }
.scrap-spread-card-max { border-right: 4px solid #009763; }
.scrap-spread-card-min { border-right: 4px solid #e74c3c; }
.scrap-spread-card-count { border-right: 4px solid #f39c12; }

/* رنگ‌های Spread در جدول */
.scrap-spread-positive {
    color: #009763;
    font-weight: bold;
}



.scrap-spread-zero {
    color: #999;
}

.scrap-no-data {
    color: #999;
    font-size: 13px;
}

/* === صفحه مزایده === */
.scrap-auction-page {
    font-family: 'Estedad', Tahoma, Arial, sans-serif;
}

/* کارت‌های آمار مزایده */
.scrap-auction-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.scrap-auction-stat-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}

.scrap-auction-stat-card:hover {
    transform: translateY(-2px);
}

.scrap-auction-stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.scrap-auction-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #222222;
    margin-bottom: 4px;
}

.scrap-auction-stat-label {
    font-size: 12px;
    color: #666;
}

.scrap-auction-stat-active {
    border-bottom: 3px solid #dc3232;
}

.scrap-auction-stat-ended {
    border-bottom: 3px solid #009763;
}

/* لیست مزایده‌های فعال */
.scrap-active-auctions {
    margin: 25px 0;
}

.scrap-auction-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s;
}

.scrap-auction-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.scrap-auction-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.scrap-auction-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #222222;
    margin: 0;
}

.scrap-auction-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.scrap-auction-badge-active {
    background: rgba(220, 50, 50, 0.1);
    color: #dc3232;
}

.scrap-auction-badge-ended {
    background: rgba(0, 151, 99, 0.1);
    color: #009763;
}

.scrap-auction-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.scrap-auction-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scrap-auction-detail-label {
    font-size: 11px;
    color: #999;
}

.scrap-auction-detail-value {
    font-size: 14px;
    font-weight: bold;
    color: #222222;
}

.scrap-auction-price-current {
    color: #1b48bc;
}

.scrap-auction-remaining {
    color: #dc3232;
}

.scrap-auction-card-footer {
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.scrap-auction-view-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #1b48bc;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.scrap-auction-view-btn:hover {
    background: #0d2d7a;
    color: #fff;
}

.scrap-no-active-auctions {
    background: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #666;
    margin: 20px 0;
}

/* نمودارهای مزایده */
.scrap-auction-charts {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

.scrap-auction-chart-item {
    width: 100%;
}

/* === صفحه شهرها === */
.scrap-location-page {
    font-family: 'Estedad', Tahoma, Arial, sans-serif;
}

.scrap-location-section {
    margin: 25px 0;
}

.scrap-location-charts {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

.scrap-location-chart-item {
    width: 100%;
}

/* === واکنش‌گرایی بخش‌های جدید === */
@media (max-width: 768px) {
    .scrap-spread-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scrap-auction-stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scrap-auction-card-body {
        grid-template-columns: 1fr;
    }
    
    .scrap-spread-card-value {
        font-size: 16px;
    }
    
    .scrap-auction-stat-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .scrap-spread-cards {
        grid-template-columns: 1fr;
    }
    
    .scrap-auction-stats-cards {
        grid-template-columns: 1fr;
    }
}

/* === حالت تاریک (Dark Mode) === */
@media (prefers-color-scheme: dark) {
    .scrap-spread-card,
    .scrap-auction-stat-card,
    .scrap-auction-card {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .scrap-spread-card-value,
    .scrap-auction-stat-value,
    .scrap-auction-card-title,
    .scrap-auction-detail-value {
        color: #f0f0f0;
    }
    
    .scrap-spread-card-label,
    .scrap-auction-stat-label,
    .scrap-auction-detail-label {
        color: #b0b0b0;
    }
}


/* === Layout های دو ستونه برای فروش === */
.scrap-sell-two-column,
.scrap-location-two-column {
    display: flex;
    gap: 30px;
    margin: 60px 0 20px;
    flex-wrap: wrap;
}

.scrap-sell-column,
.scrap-location-column {
    flex: 1;
    min-width: 300px;
}

.scrap-location-full-width {
    width: 100%;
    margin: 20px 0;
}

/* === هدر جدول با واحد در span === */
.scrap-detail-table th span,
.scrap-home-table th span {
    display: block;
    font-size: 11px;
    font-weight: normal;
    margin-top: 4px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .scrap-sell-two-column,
    .scrap-location-two-column {
        flex-direction: column;
    }
    
    .scrap-sell-column,
    .scrap-location-column {
        width: 100%;
    }
}

/* === Layout های دو ستونه برای مزایده === */
.scrap-auction-two-column {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.scrap-auction-column {
    flex: 1;
    min-width: 300px;
}

.scrap-auction-full-width {
    width: 100%;
    margin: 20px 0;
}

/* === Responsive === */
@media (max-width: 768px) {
    .scrap-auction-two-column {
        flex-direction: column;
    }
    
    .scrap-auction-column {
        width: 100%;
    }
}



/* ✅ تنظیم عرض ستون‌های جدول Ticker در صفحات شهرها */
.scrap-location-page .scrap-home-table th.col-cat,
.scrap-location-page .scrap-home-table td.col-cat {
    width: 50%;
}

.scrap-location-page .scrap-home-table th.col-khordeh,
.scrap-location-page .scrap-home-table td.col-khordeh {
    width: 25%;
}

.scrap-location-page .scrap-home-table th.col-omdeh,
.scrap-location-page .scrap-home-table td.col-omdeh {
    width: 25%;
}

/* ✅ تنظیم عرض ستون‌های جدول مقایسه شهرها */
.scrap-location-page #scrap-location-comparison-table th:nth-child(1),
.scrap-location-page #scrap-location-comparison-table td:nth-child(1) {
    width: 40%;
}

.scrap-location-page #scrap-location-comparison-table th:nth-child(2),
.scrap-location-page #scrap-location-comparison-table td:nth-child(2) {
    width: 30%;
}

.scrap-location-page #scrap-location-comparison-table th:nth-child(3),
.scrap-location-page #scrap-location-comparison-table td:nth-child(3) {
    width: 30%;
}

 
     .scrap-term-header {
    background: #dfe3e6;
    padding: 25px 30px;
    margin-bottom: 0;
    border-radius: 20px 20px 0 0;
        }
#head-info .elementor-widget-shortcode {margin-bottom:0;}
#head-info .elementor-widget-shortcode .cat-desc-collapsible {    background-color: #fff;    padding: 30px;    border-radius: 0 0 20px 20px;}
#head-info .cat-description h2{font-size:20px;margin-bottom: 15px;    margin-top: 40px;}
#head-info .cat-description h3{font-size:18px;margin-bottom: 15px;    margin-top: 40px;}
#head-info .cat-description h4{font-size:16px;margin-bottom: 10px;    margin-top: 20px;}
#head-info .cat-description strong {font-weight:500; color:#222;}
#head-info .cat-description ol, #head-info .cat-description ul {padding-right:20px;}
        .scrap-term-header-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
        }
        
        .scrap-term-col {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .scrap-term-col-title {
            border-left: 1px dashed #bbb;
            padding-left: 25px;
        }
        
        .scrap-term-col-prices {
            border-left: 1px dashed #bbb;
            padding-left: 25px;
        }
        
        .scrap-term-title-item h1.scrap-term-title {
            margin: 0 0 8px 0;
            color: #1b48bc;
            font-size: 24px;
            font-weight: bold;
            line-height: 1.3;
        }
        
        .scrap-term-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
            color: #555;
        }
        
        .scrap-term-icon {
            font-size: 18px;
            flex-shrink: 0;
        }
        
        .scrap-term-label {
            color: #555;
            flex-shrink: 0;
        }
        
        .scrap-term-value {
            font-weight: 700;
            color: #333;
        }
        
        .scrap-term-value.modifydate {
            color: #009763;
        }
        
        /* رنگ‌بندی وضعیت بازار */
        .scrap-market-hot { color: #e74c3c; }
        .scrap-market-active { color: #009763;font-weight:normal; }
        .scrap-market-slow { color: #f39c12;font-weight:normal; }
        .scrap-market-idle { color: #555;font-weight:normal; }
        .scrap-market-none { color: #95a5a6; font-weight:normal;}
        
        /* رنگ‌بندی اختلاف قیمت */
        .scrap-spread-positive { color: #009763;     display: inline-block;
    direction: ltr;}
        .scrap-spread-negative {     color: #e74c3c;
    display: inline-block;
    direction: ltr;}
        
        /* رنگ‌بندی مقایسه با کشور */
        .scrap-compare-positive { color: #009763;    display: inline-block;
    direction: ltr; }
        .scrap-compare-negative { color: #e74c3c;     display: inline-block;
    direction: ltr;}
        
        /* توضیحات */
        .scrap-term-header-description {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px dashed #ccc;
            color: #555;
            line-height: 1.8;
            font-size: 14px;
        }
         
        /* رنگ‌بندی بر اساس نوع صفحه */
        .scrap-term-header-buy { border-right-color: #009763; }
        .scrap-term-header-buy .scrap-term-title { color: #009763; }
        
        .scrap-term-header-sell { border-right-color: #e74c3c; }
        .scrap-term-header-sell .scrap-term-title { color: #e74c3c; }
        
        .scrap-term-header-location { border-right-color: #1b48bc; }
        .scrap-term-header-location .scrap-term-title { color: #1b48bc; }
         
        .scrap-term-header-auction { border-right-color: #f39c12; }
        .scrap-term-header-auction .scrap-term-title { color: #f39c12; }
        
        /* حالت تاریک */
        @media (prefers-color-scheme: dark) {
            .scrap-term-header {
                background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
            }
            .scrap-term-title-item h1.scrap-term-title { color: #4dabf7; }
            .scrap-term-item { color: #ccc; }
            .scrap-term-label { color: #aaa; }
            .scrap-term-value { color: #fff; }
            .scrap-term-col-title, .scrap-term-col-prices { border-left-color: #444; }
            .scrap-term-header-description { color: #aaa; border-top-color: #444; }
        }
        
        /* ریسپانسیو */
        @media (max-width: 991px) {
            .scrap-term-header-row {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            .scrap-term-col-title, .scrap-term-col-prices {
                border-left: none;
                padding-left: 0;
                border-bottom: 1px dashed #bbb;
                padding-bottom: 15px;
            }
            @media (prefers-color-scheme: dark) {
                .scrap-term-col-title, .scrap-term-col-prices {
                    border-bottom-color: #444;
                }
            }
        }