.cpt-frontend-wrap {
    direction: rtl;
    text-align: right;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    --cpt-header-bg: #f5f5f5;
    --cpt-header-text: #222;
    --cpt-stripe-bg: #fafafa;
    --cpt-border-color: #ddd;
    --cpt-font-size: 14px;
}

.cpt-last-updated {
    text-align: center;
    color: #555;
    font-size: 13px;
    margin-bottom: 8px;
}

.cpt-frontend-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.cpt-export-excel-btn {
    background: #1e7e34;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.cpt-export-excel-btn:hover {
    background: #17652a;
}

.cpt-export-excel-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.cpt-export-table-image-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.cpt-export-table-image-btn:hover {
    background: #195a8d;
}

.cpt-export-table-image-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.cpt-export-group-image-btn {
    background: rgba(255, 255, 255, 0.55);
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 2px 9px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    margin-inline-start: 10px;
    vertical-align: middle;
}

.cpt-export-group-image-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cpt-export-group-image-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

table.cpt-frontend-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 480px;
    font-family: inherit;
    font-size: var(--cpt-font-size);
}

table.cpt-frontend-table th,
table.cpt-frontend-table td {
    border: 1px solid var(--cpt-border-color);
    padding: 8px 10px;
    text-align: center;
    line-height: 1.6;
    word-break: break-word;
}

table.cpt-frontend-table th {
    background: var(--cpt-header-bg);
    color: var(--cpt-header-text);
    font-weight: bold;
}

table.cpt-frontend-table td.cpt-col-bold {
    font-weight: bold;
}

table.cpt-frontend-table tbody tr.cpt-group-header-row td {
    background: var(--cpt-header-bg);
    color: var(--cpt-header-text);
    font-weight: bold;
    text-align: center;
    border-top: 2px solid var(--cpt-border-color);
}

.cpt-frontend-wrap.cpt-groups-collapsible table.cpt-frontend-table tbody tr.cpt-group-header-row td {
    cursor: pointer;
    user-select: none;
}

.cpt-frontend-wrap.cpt-groups-collapsible table.cpt-frontend-table tbody tr.cpt-group-header-row:hover td {
    filter: brightness(0.96);
}

.cpt-group-toggle-icon {
    display: inline-block;
    transition: transform 0.15s ease;
}

table.cpt-frontend-table tbody tr.cpt-group-header-row.cpt-group-collapsed .cpt-group-toggle-icon {
    transform: rotate(-90deg);
}

table.cpt-frontend-table tbody tr.cpt-group-row-hidden {
    display: none !important;
}

.cpt-frontend-wrap.cpt-striped table.cpt-frontend-table tbody tr:nth-child(even) {
    background: var(--cpt-stripe-bg);
}

.cpt-frontend-wrap.cpt-rounded table.cpt-frontend-table {
    border-radius: 10px;
    overflow: hidden;
}

.cpt-frontend-wrap.cpt-rounded table.cpt-frontend-table th:first-child {
    border-top-right-radius: 10px;
}

.cpt-frontend-wrap.cpt-rounded table.cpt-frontend-table th:last-child {
    border-top-left-radius: 10px;
}

/* ---------------------------------------------------------
 * Freeze / sticky header row: keeps the column-title row
 * visible at the top of the screen while the visitor scrolls
 * down a long table.
 * --------------------------------------------------------- */
.cpt-frontend-wrap.cpt-freeze-header table.cpt-frontend-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--cpt-header-bg);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
}

/* ---------------------------------------------------------
 * پوسته‌های آماده‌ی سرستون/جدول — از «تنظیمات جدول» در مدیریت
 * قابل انتخابند (cpt_table_header_style_presets در helpers-core.php).
 * هر پوسته روی کل جدول اثر می‌گذارد: رنگ سرستون، رنگ زمینه‌ی بدنه،
 * رنگ ردیف‌های راه‌راه، رنگ خطوط، سایه و گردی گوشه‌ها.
 *
 * نکته‌ی مهم: چهار متغیر پایه --cpt-header-bg/--cpt-header-text/
 * --cpt-stripe-bg/--cpt-border-color همیشه به‌صورت inline style روی
 * خودِ المنت cpt-frontend-wrap ست می‌شوند (از روی چهار رنگ دستیِ بخش
 * «رنگ‌ها»؛ ببینید frontend-shortcode.php). چون inline style از هر
 * قانون کلاسی در استایل‌شیت اولویت بالاتری دارد، این پوسته‌ها هرگز
 * نباید همان چهار متغیر پایه را بازنویسی کنند — وگرنه بی‌اثر می‌مانند.
 * به همین دلیل هر پوسته متغیرهای اختصاصی خودش (--cpt-preset-*) را
 * تعریف می‌کند و قوانین زیر مستقیماً همان متغیرهای اختصاصی را روی
 * پس‌زمینه/رنگ/بوردر واقعی th و td اعمال می‌کنند؛ هیچ‌کدام از این
 * قوانین به --cpt-header-bg/--cpt-header-text/--cpt-stripe-bg/
 * --cpt-border-color وابسته نیستند. وقتی هیچ پوسته‌ای انتخاب نشده
 * باشد («سفارشی»/classic) هیچ کلاسی روی cpt-frontend-wrap اضافه
 * نمی‌شود و همان چهار رنگ دستی دقیقاً مثل قبل اعمال می‌مانند.
 * --------------------------------------------------------- */
.cpt-frontend-wrap.cpt-header-style-aurora-glass {
    --cpt-preset-header-bg: linear-gradient(120deg, #7c3aed 0%, #4f46e5 50%, #06b6d4 100%);
    --cpt-preset-header-text: #ffffff;
    --cpt-preset-stripe-bg: #e9e0fb;
    --cpt-preset-border-color: #e2dbf7;
    --cpt-preset-table-bg: #f5f1ff;
    --cpt-preset-shadow: 0 12px 28px rgba(79, 70, 229, 0.16);
    --cpt-preset-radius: 16px;
    --cpt-preset-hover: rgba(124, 58, 237, 0.07);
}

.cpt-frontend-wrap.cpt-header-style-ivory-gold {
    --cpt-preset-header-bg: linear-gradient(135deg, #f6dfa3 0%, #ddac4f 55%, #b9822a 100%);
    --cpt-preset-header-text: #4a2e05;
    --cpt-preset-stripe-bg: #f5e6bd;
    --cpt-preset-border-color: #ecdcb8;
    --cpt-preset-table-bg: #fdf6e6;
    --cpt-preset-shadow: 0 10px 24px rgba(185, 130, 42, 0.18);
    --cpt-preset-radius: 14px;
    --cpt-preset-hover: rgba(185, 130, 42, 0.08);
}

.cpt-frontend-wrap.cpt-header-style-obsidian-emerald {
    --cpt-preset-header-bg: linear-gradient(135deg, #0b1220 0%, #111827 60%, #0f2027 100%);
    --cpt-preset-header-text: #e8fbf1;
    --cpt-preset-stripe-bg: #161e29;
    --cpt-preset-border-color: #232c38;
    --cpt-preset-table-bg: #0f151c;
    --cpt-preset-body-text: #dbe4ee;
    --cpt-preset-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
    --cpt-preset-radius: 14px;
    --cpt-preset-hover: rgba(16, 185, 129, 0.09);
}

.cpt-frontend-wrap.cpt-header-style-ocean-steel {
    --cpt-preset-header-bg: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
    --cpt-preset-header-text: #ffffff;
    --cpt-preset-stripe-bg: #dcedf7;
    --cpt-preset-border-color: #d7e7f0;
    --cpt-preset-table-bg: #f0f8fc;
    --cpt-preset-shadow: 0 10px 26px rgba(3, 105, 161, 0.16);
    --cpt-preset-radius: 14px;
    --cpt-preset-hover: rgba(14, 165, 233, 0.07);
}

.cpt-frontend-wrap.cpt-header-style-rose-blush {
    --cpt-preset-header-bg: linear-gradient(120deg, #be185d 0%, #db2777 50%, #f472b6 100%);
    --cpt-preset-header-text: #ffffff;
    --cpt-preset-stripe-bg: #fbdfeb;
    --cpt-preset-border-color: #f6d9e7;
    --cpt-preset-table-bg: #fff5fa;
    --cpt-preset-shadow: 0 10px 24px rgba(219, 39, 119, 0.16);
    --cpt-preset-radius: 16px;
    --cpt-preset-hover: rgba(219, 39, 119, 0.06);
}

.cpt-frontend-wrap.cpt-header-style-forest-slate {
    --cpt-preset-header-bg: linear-gradient(135deg, #1f2e23 0%, #2f4a37 55%, #3f6b4c 100%);
    --cpt-preset-header-text: #eef7f0;
    --cpt-preset-stripe-bg: #e2ead9;
    --cpt-preset-border-color: #d9e2da;
    --cpt-preset-table-bg: #f2f6ef;
    --cpt-preset-shadow: 0 10px 24px rgba(47, 74, 55, 0.18);
    --cpt-preset-radius: 14px;
    --cpt-preset-hover: rgba(63, 107, 76, 0.07);
}

.cpt-frontend-wrap.cpt-header-style-sage-flat {
    --cpt-preset-header-bg: #7c8f70;
    --cpt-preset-header-text: #f7faf4;
    --cpt-preset-stripe-bg: #e7ede0;
    --cpt-preset-border-color: #dde4d6;
    --cpt-preset-table-bg: #f2f5ee;
    --cpt-preset-body-text: #2f3b2a;
    --cpt-preset-shadow: 0 6px 16px rgba(47, 59, 42, 0.10);
    --cpt-preset-radius: 10px;
    --cpt-preset-hover: rgba(47, 59, 42, 0.05);
}

.cpt-frontend-wrap.cpt-header-style-clay-flat {
    --cpt-preset-header-bg: #c98a63;
    --cpt-preset-header-text: #40230f;
    --cpt-preset-stripe-bg: #f5e2d1;
    --cpt-preset-border-color: #ecdccb;
    --cpt-preset-table-bg: #fdf3ea;
    --cpt-preset-body-text: #4a2c18;
    --cpt-preset-shadow: 0 6px 16px rgba(148, 90, 52, 0.12);
    --cpt-preset-radius: 10px;
    --cpt-preset-hover: rgba(148, 90, 52, 0.06);
}

.cpt-frontend-wrap.cpt-header-style-midnight-violet {
    --cpt-preset-header-bg: linear-gradient(135deg, #1e1b4b 0%, #4338ca 55%, #7c3aed 100%);
    --cpt-preset-header-text: #f5f3ff;
    --cpt-preset-stripe-bg: #ece9fe;
    --cpt-preset-border-color: #ddd6fe;
    --cpt-preset-table-bg: #faf9ff;
    --cpt-preset-shadow: 0 14px 30px rgba(67, 56, 202, 0.2);
    --cpt-preset-radius: 18px;
    --cpt-preset-hover: rgba(124, 58, 237, 0.06);
}

.cpt-frontend-wrap.cpt-header-style-glass-frost {
    --cpt-preset-header-bg: linear-gradient(120deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
    --cpt-preset-header-text: #063449;
    --cpt-preset-stripe-bg: #eaf7ff;
    --cpt-preset-border-color: #d3ecfa;
    --cpt-preset-table-bg: #f7fcff;
    --cpt-preset-shadow: 0 10px 24px rgba(14, 165, 233, 0.14);
    --cpt-preset-radius: 20px;
    --cpt-preset-hover: rgba(14, 165, 233, 0.05);
}

.cpt-frontend-wrap.cpt-header-style-copper-noir {
    --cpt-preset-header-bg: linear-gradient(135deg, #1c1917 0%, #3f2d1c 50%, #b45309 100%);
    --cpt-preset-header-text: #fdf6ec;
    --cpt-preset-stripe-bg: #f0e4d3;
    --cpt-preset-border-color: #e7d8bf;
    --cpt-preset-table-bg: #fbf7f0;
    --cpt-preset-body-text: #2b2118;
    --cpt-preset-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    --cpt-preset-radius: 12px;
    --cpt-preset-hover: rgba(180, 83, 9, 0.08);
}

.cpt-frontend-wrap.cpt-header-style-lilac-dream {
    --cpt-preset-header-bg: linear-gradient(120deg, #c4b5fd 0%, #a78bfa 100%);
    --cpt-preset-header-text: #2e1065;
    --cpt-preset-stripe-bg: #f2edfd;
    --cpt-preset-border-color: #e6dcfa;
    --cpt-preset-table-bg: #faf8ff;
    --cpt-preset-shadow: 0 8px 20px rgba(167, 139, 250, 0.15);
    --cpt-preset-radius: 16px;
    --cpt-preset-hover: rgba(124, 58, 237, 0.05);
}

.cpt-frontend-wrap.cpt-header-style-ruby-modern {
    --cpt-preset-header-bg: linear-gradient(120deg, #7f1d1d 0%, #b91c1c 50%, #ef4444 100%);
    --cpt-preset-header-text: #fff5f5;
    --cpt-preset-stripe-bg: #fde3e3;
    --cpt-preset-border-color: #f8d3d3;
    --cpt-preset-table-bg: #fff8f8;
    --cpt-preset-shadow: 0 12px 26px rgba(185, 28, 28, 0.18);
    --cpt-preset-radius: 14px;
    --cpt-preset-hover: rgba(185, 28, 28, 0.06);
}

/* زمرد بازار: دقیقاً همان پالت و سایه‌ی جدول «اختلاف کارخانه با
 * بازار» (ببینید assets/factory-gap.css → .cpt-fg-table-wrap/thead/
 * tbody tr:nth-child(even)) تا دو جدول در سایت ظاهر یکسانی داشته
 * باشند. */
.cpt-frontend-wrap.cpt-header-style-emerald-market {
    --cpt-preset-header-bg: linear-gradient(135deg, #1e9e56 0%, #157a41 100%);
    --cpt-preset-header-text: #ffffff;
    --cpt-preset-stripe-bg: #f7faf8;
    --cpt-preset-border-color: #dbe8e0;
    --cpt-preset-table-bg: #ffffff;
    --cpt-preset-body-text: #1a2130;
    --cpt-preset-shadow: 0 6px 18px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.05);
    --cpt-preset-radius: 0px;
    --cpt-preset-hover: rgba(30, 158, 86, 0.07);
    /* کادر بیرونی نرم و سبزفام، دقیقاً حس «کارت» جدول اختلاف کارخانه؛
     * بدون این، فقط خودِ جدول استایل می‌گرفت و بیرونش ساده می‌ماند. */
    background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
    border: 1px solid #e3ede6;
    border-radius: 18px;
    padding: 18px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.cpt-frontend-wrap.cpt-header-style-emerald-market .cpt-last-updated {
    display: table;
    background: #e6f1fb;
    color: #185fa5;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    margin: 0 auto 12px;
}

.cpt-frontend-wrap.cpt-header-style-emerald-market .cpt-export-excel-btn,
.cpt-frontend-wrap.cpt-header-style-emerald-market .cpt-export-table-image-btn {
    background: linear-gradient(135deg, #1e9e56 0%, #157a41 100%);
    box-shadow: 0 4px 10px rgba(21, 122, 65, 0.25);
}

.cpt-frontend-wrap.cpt-header-style-emerald-market .cpt-export-excel-btn:hover,
.cpt-frontend-wrap.cpt-header-style-emerald-market .cpt-export-table-image-btn:hover {
    filter: brightness(0.94);
}

/* قوانین مشترک همه‌ی پوسته‌ها — همه‌شان مستقیماً از --cpt-preset-*
 * می‌خوانند، نه از چهار متغیر پایه (که با inline style رونویسی
 * می‌شوند). ترتیب این قوانین در فایل مهم است: باید *بعد* از قانون
 * پایه‌ی th/td (بالای همین فایل) و بعد از cpt-freeze-header بیایند
 * تا با specificity برابر، همین‌ها برنده شوند. */
.cpt-frontend-wrap[class*="cpt-header-style-"] table.cpt-frontend-table th,
.cpt-frontend-wrap[class*="cpt-header-style-"] table.cpt-frontend-table td {
    border-color: var(--cpt-preset-border-color);
}

.cpt-frontend-wrap[class*="cpt-header-style-"] table.cpt-frontend-table thead th,
.cpt-frontend-wrap[class*="cpt-header-style-"] table.cpt-frontend-table tbody tr.cpt-group-header-row td {
    background: var(--cpt-preset-header-bg);
    color: var(--cpt-preset-header-text);
}

.cpt-frontend-wrap.cpt-freeze-header[class*="cpt-header-style-"] table.cpt-frontend-table thead th {
    background: var(--cpt-preset-header-bg);
}

.cpt-frontend-wrap[class*="cpt-header-style-"] table.cpt-frontend-table {
    background: var(--cpt-preset-table-bg, #fff);
    box-shadow: var(--cpt-preset-shadow, 0 2px 14px rgba(15, 23, 42, 0.08));
    border-radius: var(--cpt-preset-radius, 12px);
    border: 1px solid var(--cpt-preset-border-color);
    overflow: hidden;
}

.cpt-frontend-wrap[class*="cpt-header-style-"] table.cpt-frontend-table th:first-child {
    border-top-right-radius: var(--cpt-preset-radius, 12px);
}

.cpt-frontend-wrap[class*="cpt-header-style-"] table.cpt-frontend-table th:last-child {
    border-top-left-radius: var(--cpt-preset-radius, 12px);
}

.cpt-frontend-wrap[class*="cpt-header-style-"] table.cpt-frontend-table td {
    color: var(--cpt-preset-body-text, inherit);
}

.cpt-frontend-wrap[class*="cpt-header-style-"].cpt-striped table.cpt-frontend-table tbody tr:nth-child(even) {
    background: var(--cpt-preset-stripe-bg);
}

.cpt-frontend-wrap[class*="cpt-header-style-"] table.cpt-frontend-table tbody tr:hover td {
    background: var(--cpt-preset-hover, rgba(0, 0, 0, 0.03));
}

/* سرتیتر گروه از هاور معمولی ردیف‌ها مستثناست؛ وگرنه رنگ/گرادیان
 * خودِ سرتیتر (که با var(--cpt-preset-header-bg) رنگ شده) موقع هاور
 * با این پس‌زمینه‌ی روشنِ عمومی رونویسی می‌شد و ظاهرش خراب می‌شد. */
.cpt-frontend-wrap[class*="cpt-header-style-"] table.cpt-frontend-table tbody tr.cpt-group-header-row:hover td {
    background: var(--cpt-preset-header-bg);
}

/* اورورا شیشه‌ای: کمی سایه‌ی متن روی گرادیان برای خوانایی بهتر */
.cpt-frontend-wrap.cpt-header-style-aurora-glass table.cpt-frontend-table thead th {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    letter-spacing: 0.2px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

/* عاج طلایی: خط طلایی محکم زیر سرستون */
.cpt-frontend-wrap.cpt-header-style-ivory-gold table.cpt-frontend-table thead th {
    letter-spacing: 0.3px;
    border-bottom: 2px solid #b9822a;
}

/* ابسیدین زمردی: خط زمردی زیر سرستون */
.cpt-frontend-wrap.cpt-header-style-obsidian-emerald table.cpt-frontend-table thead th {
    letter-spacing: 0.2px;
    border-bottom: 2px solid #10b981;
}

/* فولادی اقیانوسی: کمی سایه‌ی متن روی گرادیان آبی */
.cpt-frontend-wrap.cpt-header-style-ocean-steel table.cpt-frontend-table thead th {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

/* رز صورتی: کمی سایه‌ی متن روی گرادیان صورتی */
.cpt-frontend-wrap.cpt-header-style-rose-blush table.cpt-frontend-table thead th {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.2px;
}

/* جنگلی سنگی: خط سبز محکم زیر سرستون */
.cpt-frontend-wrap.cpt-header-style-forest-slate table.cpt-frontend-table thead th {
    letter-spacing: 0.2px;
    border-bottom: 2px solid #3f6b4c;
}

/* سبز مریمی تخت: بدون سایه‌ی متن (چون رنگ تخت است، نه گرادیان)، فقط
 * یک خط نازک‌تر و ملایم‌تر زیر سرستون برای هم‌راستایی با حس «فلت» */
.cpt-frontend-wrap.cpt-header-style-sage-flat table.cpt-frontend-table thead th {
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

/* رسی ملایم: همان منطق، خط نازک ملایم زیر سرستون */
.cpt-frontend-wrap.cpt-header-style-clay-flat table.cpt-frontend-table thead th {
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* زمرد بازار: کمی سایه‌ی متن روی گرادیان سبز، هم‌راستا با سرستون
 * جدول «اختلاف کارخانه با بازار» */
.cpt-frontend-wrap.cpt-header-style-emerald-market table.cpt-frontend-table thead th {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.2px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.cpt-frontend-wrap.cpt-header-style-emerald-market table.cpt-frontend-table td {
    padding: 11px 12px;
    line-height: 1.65;
    transition: background-color .12s ease;
}

.cpt-frontend-wrap.cpt-header-style-emerald-market table.cpt-frontend-table td.cpt-col-bold {
    color: #1a2130;
    font-weight: 800;
}

.cpt-frontend-wrap.cpt-header-style-emerald-market .cpt-change-cell {
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.cpt-frontend-wrap.cpt-header-style-emerald-market .cpt-change-up {
    background: #e6f7ec;
    color: #0a7a4c;
}

.cpt-frontend-wrap.cpt-header-style-emerald-market .cpt-change-down {
    background: #fdeaea;
    color: #a81c1c;
}

.cpt-frontend-wrap.cpt-header-style-emerald-market .cpt-change-neutral {
    background: #eef1ef;
    color: #5f6b64;
}

.cpt-frontend-wrap.cpt-header-style-emerald-market .cpt-stopped-production {
    border-radius: 999px;
    background: #fdeaea;
    color: #a81c1c;
    font-weight: 700;
}

.cpt-change-cell {
    font-weight: bold;
    border-radius: 4px;
    padding: 3px 8px;
    display: inline-block;
    min-width: 55px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    text-align: center;
    direction: ltr;
    unicode-bidi: isolate;
}

.cpt-change-percent {
    display: inline;
    font-size: 0.85em;
    font-weight: normal;
    opacity: 0.85;
}

.cpt-change-up {
    background: #e6f6e9;
    color: #1e7e34;
}

.cpt-change-down {
    background: #fdeaea;
    color: #c62828;
}

.cpt-change-neutral {
    background: #f0f0f1;
    color: #555;
}

.cpt-stopped-production {
    font-weight: bold;
    border-radius: 4px;
    padding: 3px 8px;
    display: inline-block;
    background: #fdeaea;
    color: #c62828;
    white-space: nowrap;
}

/* برچسب «🆕 جدید» — کنار نام خودروهایی که در آخرین به‌روزرسانی تغییر
 * کرده‌اند (تنظیم style.show_new_badge)، مستقل از هایلایت کل ردیف. */
.cpt-new-badge {
    display: inline-block;
    font-size: 0.72em;
    font-weight: bold;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e6f6e9;
    color: #1e7e34;
    white-space: nowrap;
    vertical-align: middle;
    animation: cptNewBadgePop 0.35s ease;
}

@keyframes cptNewBadgePop {
    0%   { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ------------------------------------------------------------
 * شورت‌کد اختصاصی یک خودرو — [cpt_car_shortcut]
 * یک کارت کوچک و مستقل (نه یک جدول کامل)، برای نمایش یک خودرو با
 * سرستون‌های منتخب. رنگ سرِ کارت از همان پوسته‌ی رنگی جدول مبدأ می‌آید
 * (--cpt-shortcut-grad-1/2)، تا با ظاهر جدول اصلی هم‌خانواده به‌نظر برسد.
 * ------------------------------------------------------------ */
.cpt-shortcut-card {
    direction: rtl;
    text-align: right;
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin: 14px 0;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(20, 40, 70, 0.08);
    font-size: var(--cpt-font-size, 14px);
    --cpt-shortcut-grad-1: #16213E;
    --cpt-shortcut-grad-2: #1F3A5F;
}

.cpt-shortcut-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(120deg, var(--cpt-shortcut-grad-1) 0%, var(--cpt-shortcut-grad-2) 100%);
    color: #fff;
}

.cpt-shortcut-card-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 10px;
}

.cpt-shortcut-card-name {
    font-weight: 800;
    font-size: 1.1em;
    line-height: 1.4;
}

.cpt-shortcut-card-list {
    list-style: none;
    margin: 0;
    padding: 6px 18px;
}

.cpt-shortcut-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f1f3;
}

.cpt-shortcut-card-item:last-child {
    border-bottom: none;
}

.cpt-shortcut-card-label {
    color: #6b7280;
    font-size: 0.9em;
    white-space: nowrap;
}

.cpt-shortcut-card-value {
    font-weight: 700;
    color: #1d2327;
    text-align: left;
}

.cpt-shortcut-card-foot {
    padding: 10px 18px 14px;
    color: #9aa4b2;
    font-size: 0.78em;
    text-align: center;
    border-top: 1px solid #f0f1f3;
    margin-top: 4px;
}

.cpt-change-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    max-width: 100%;
}

.cpt-chart-open-btn {
    font-size: 11px;
    color: #2271b1;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.cpt-sparkline {
    display: block;
}

/* ---------------------------------------------------------
 * Price trend chart popup (weekly / monthly-daily tabs).
 * --------------------------------------------------------- */
.cpt-chart-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 24, 30, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: cptChartFadeIn 0.15s ease-out;
}

@keyframes cptChartFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cpt-chart-modal-backdrop[hidden] {
    display: none;
}

.cpt-chart-modal {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border-radius: 16px;
    padding: 18px 20px 20px;
    width: 380px;
    max-width: 92vw;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28), 0 2px 6px rgba(15, 23, 42, 0.08);
    direction: rtl;
    text-align: center;
    position: relative;
    animation: cptChartPopIn 0.18s cubic-bezier(.2,.9,.3,1.2);
}

@keyframes cptChartPopIn {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cpt-chart-modal-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 12px;
    padding-left: 30px;
}

.cpt-chart-modal-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
    background: #f0f2f5;
    padding: 4px;
    border-radius: 999px;
}

.cpt-chart-tab {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border: none;
    background: transparent;
    color: #555;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.cpt-chart-tab-active {
    background: #fff;
    color: #1d2327;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

.cpt-chart-modal-body {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cpt-chart-modal-body svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.cpt-price-chart {
    display: block;
}

.cpt-chart-grid-line {
    stroke: #e5e8ee;
    stroke-width: 1;
    stroke-dasharray: 3 4;
}

.cpt-chart-point {
    cursor: pointer;
    transition: r .12s ease;
}

.cpt-chart-point:hover,
.cpt-chart-point:focus {
    r: 6;
    outline: none;
}

.cpt-chart-point-last {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.15));
}

.cpt-chart-axis-label {
    font-size: 9.5px;
    fill: #8a8f98;
    direction: rtl;
}

.cpt-chart-axis-label-current {
    fill: #1d2327;
    font-weight: 700;
}

.cpt-chart-no-data {
    font-size: 13px;
    color: #777;
    margin: 20px 0;
}

/* Floating tooltip shown on hover/tap over a chart point. */
.cpt-chart-tooltip {
    position: fixed;
    z-index: 100001;
    background: #1d2327;
    color: #fff;
    font-size: 12px;
    line-height: 1.6;
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    white-space: nowrap;
    direction: rtl;
    text-align: center;
    transform: translate(-50%, -100%);
    opacity: 0;
    transition: opacity .1s ease;
}

.cpt-chart-tooltip.cpt-chart-tooltip-visible {
    opacity: 1;
}

.cpt-chart-tooltip strong {
    color: #fff;
    font-weight: 700;
}

.cpt-chart-tooltip span {
    display: block;
    color: #b8bcc4;
    font-size: 11px;
    margin-top: 1px;
}

.cpt-chart-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0f3;
    color: #555b66;
    border: none;
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.cpt-chart-modal-close:hover {
    background: #e63946;
    color: #fff;
    transform: rotate(90deg);
}

/* ---------------------------------------------------------
 * مقایسه‌ی دو خودرو: ستون تیک‌دار + نوار پایین جدول + پاپ‌آپ.
 * --------------------------------------------------------- */
.cpt-compare-th,
.cpt-compare-cell {
    width: 34px;
    text-align: center !important;
}

.cpt-compare-th span[aria-hidden] {
    font-size: 14px;
}

.cpt-compare-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2271b1;
}

.cpt-compare-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.cpt-compare-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: #1d2327;
    color: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
    max-width: 92vw;
    animation: cptChartFadeIn 0.15s ease-out;
    direction: rtl;
}

.cpt-compare-bar[hidden] {
    display: none;
}

.cpt-compare-bar-text {
    font-size: 13px;
    font-weight: 500;
}

.cpt-compare-bar-actions {
    display: flex;
    gap: 8px;
}

.cpt-compare-clear-btn {
    background: transparent;
    color: #cdd2d9;
    border: 1px solid #4a4f58;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
}

.cpt-compare-clear-btn:hover {
    color: #fff;
    border-color: #6a707a;
}

.cpt-compare-open-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cpt-compare-open-btn:hover:not(:disabled) {
    background: #195a8e;
}

.cpt-compare-open-btn:disabled {
    background: #4a4f58;
    cursor: not-allowed;
    opacity: 0.7;
}

.cpt-compare-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 24, 30, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
    animation: cptChartFadeIn 0.15s ease-out;
}

.cpt-compare-modal-backdrop[hidden] {
    display: none;
}

.cpt-compare-modal {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border-radius: 16px;
    padding: 18px 20px 20px;
    width: 520px;
    max-width: 94vw;
    max-height: 86vh;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28), 0 2px 6px rgba(15, 23, 42, 0.08);
    direction: rtl;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: cptChartPopIn 0.18s cubic-bezier(.2,.9,.3,1.2);
}

.cpt-compare-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 12px;
    padding-left: 30px;
}

.cpt-compare-modal-time {
    font-size: 12px;
    color: #6b7280;
    margin: -8px 0 12px;
}

.cpt-compare-modal-body {
    overflow: auto;
    border: 1px solid #eceff2;
    border-radius: 10px;
}

.cpt-compare-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cpt-compare-modal-table th,
.cpt-compare-modal-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eceff2;
    text-align: center;
    vertical-align: middle;
}

.cpt-compare-modal-table thead th {
    background: #f5f7fa;
    color: #1d2327;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 1;
}

.cpt-compare-modal-table tbody th {
    background: #fafbfc;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
}

.cpt-compare-modal-table tbody tr:nth-child(even) {
    background: #fcfdfe;
}

.cpt-compare-modal-table th.cpt-compare-modal-corner {
    background: #f5f7fa;
}

.cpt-compare-modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.cpt-compare-modal-export-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.cpt-compare-modal-export-btn:hover {
    background: #195a8d;
}

.cpt-compare-modal-export-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.cpt-compare-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0f3;
    color: #555b66;
    border: none;
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.cpt-compare-modal-close:hover {
    background: #e63946;
    color: #fff;
    transform: rotate(90deg);
}

/* ---------------------------------------------------------
 * Highlight for rows whose price changed in the most recent
 * update: a short colored flash on load, plus a lasting
 * colored edge so it's still noticeable afterwards.
 * --------------------------------------------------------- */
@keyframes cpt-row-flash-up {
    0% { background-color: #d7f4de; }
    100% { background-color: transparent; }
}

@keyframes cpt-row-flash-down {
    0% { background-color: #fbdede; }
    100% { background-color: transparent; }
}

@keyframes cpt-row-flash-neutral {
    0% { background-color: #fff6d8; }
    100% { background-color: transparent; }
}

table.cpt-frontend-table tbody tr.cpt-row-changed-up {
    animation: cpt-row-flash-up 3s ease-out 1;
}

table.cpt-frontend-table tbody tr.cpt-row-changed-down {
    animation: cpt-row-flash-down 3s ease-out 1;
}

table.cpt-frontend-table tbody tr.cpt-row-changed-neutral {
    animation: cpt-row-flash-neutral 3s ease-out 1;
}

table.cpt-frontend-table tbody tr.cpt-row-changed-up td:first-child {
    border-right: 3px solid #1e7e34;
}

table.cpt-frontend-table tbody tr.cpt-row-changed-down td:first-child {
    border-right: 3px solid #c62828;
}

table.cpt-frontend-table tbody tr.cpt-row-changed-neutral td:first-child {
    border-right: 3px solid #cfa100;
}

/* ---------------------------------------------------------
 * Mobile layout. Two admin-controlled behaviors:
 * 1) .cpt-mobile-compact — switches from a wide scrolling table
 *    to a dense, evenly-spaced, centered layout (on by default).
 *    Without this class the table just stays as a normal
 *    horizontally-scrollable table on small screens.
 * 2) .cpt-mobile-hide-header — hides the column header row on
 *    mobile (headers show by default).
 * --------------------------------------------------------- */
@media (max-width: 700px) {
    .cpt-frontend-wrap table.cpt-frontend-table {
        font-size: var(--cpt-mobile-font-size, var(--cpt-font-size));
    }

    .cpt-frontend-wrap.cpt-header-style-emerald-market {
        padding: 10px;
        border-radius: 12px;
    }

    .cpt-frontend-wrap.cpt-header-style-emerald-market table.cpt-frontend-table td {
        padding: 7px 8px;
        line-height: 1.5;
    }

    .cpt-frontend-wrap.cpt-header-style-emerald-market table.cpt-frontend-table thead th {
        padding: 8px 8px;
    }

    .cpt-frontend-wrap.cpt-header-style-emerald-market .cpt-change-cell,
    .cpt-frontend-wrap.cpt-header-style-emerald-market .cpt-stopped-production {
        padding: 3px 9px;
    }

    .cpt-frontend-wrap.cpt-freeze-header table.cpt-frontend-table thead th {
        position: static;
        box-shadow: none;
    }

    .cpt-frontend-wrap.cpt-mobile-compact {
        overflow-x: visible;
    }

    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table {
        min-width: 0;
        width: 100%;
        border: none;
    }

    .cpt-frontend-wrap.cpt-mobile-hide-header table.cpt-frontend-table thead {
        display: none;
    }

    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table,
    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table thead,
    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table tbody {
        display: block;
        width: 100%;
    }

    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table thead tr,
    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table tbody tr {
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        gap: 4px;
        padding: 8px 4px;
        border: none;
        border-bottom: 1px solid var(--cpt-border-color);
        background: transparent;
    }

    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table thead tr {
        border-bottom: 2px solid var(--cpt-border-color);
    }

    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table tbody tr:last-child {
        border-bottom: none;
    }

    .cpt-frontend-wrap.cpt-mobile-compact.cpt-striped table.cpt-frontend-table tbody tr:nth-child(even) {
        background: var(--cpt-stripe-bg);
    }

    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table th,
    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table td {
        flex: 1 1 0;
        min-width: 0;
        border: none;
        padding: 0;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table th.cpt-mobile-hide,
    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table td.cpt-mobile-hide {
        display: none !important;
    }

    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table td::before {
        content: none !important;
        display: none !important;
    }

    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table tr.cpt-group-header-row td {
        flex: 1 1 100%;
        padding: 6px 4px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .cpt-frontend-wrap.cpt-mobile-compact .cpt-change-wrap {
        align-items: center;
    }

    /* The change-badge can show "amount (percent)" which is longer than a
       bare percentage — let this specific cell wrap onto two lines instead
       of inheriting the compact layout's single-line ellipsis truncation,
       so the value never gets cut off or pushed outside its cell. */
    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table td[data-col-type="percent_change"] {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        min-width: 0;
        flex-basis: 0;
    }

    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table tr.cpt-row-changed-up,
    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table tr.cpt-row-changed-down,
    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table tr.cpt-row-changed-neutral {
        border-right: 3px solid transparent;
        padding-right: 8px;
    }

    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table tr.cpt-row-changed-up {
        border-right-color: #1e7e34;
    }

    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table tr.cpt-row-changed-down {
        border-right-color: #c62828;
    }

    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table tr.cpt-row-changed-neutral {
        border-right-color: #cfa100;
    }

    /* --- Optional: allow long values (e.g. full car names) to wrap onto a
       second line instead of being cut off with "…" in compact mode. --- */
    .cpt-frontend-wrap.cpt-mobile-compact.cpt-mobile-wrap-text table.cpt-frontend-table th,
    .cpt-frontend-wrap.cpt-mobile-compact.cpt-mobile-wrap-text table.cpt-frontend-table td {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
    }

    /* --- Per-column "wide on mobile": gives a specific column (e.g. car
       name) extra room in compact mode and lets it wrap, regardless of the
       global wrap-text toggle above. --- */
    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table th.cpt-mobile-wide,
    .cpt-frontend-wrap.cpt-mobile-compact table.cpt-frontend-table td.cpt-mobile-wide {
        flex: 2 1 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
    }

    /* ---------------------------------------------------------
     * Card layout: switches each table row into a self-contained
     * card, one field per line with its label — nothing gets cut
     * off no matter how long the text is. Chosen per-table via
     * "تنظیمات نمایش در موبایل" -> "چیدمان" -> "کارتی".
     * --------------------------------------------------------- */
    .cpt-frontend-wrap.cpt-mobile-cards {
        overflow-x: visible;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table {
        min-width: 0;
        width: 100%;
        border: none;
        border-collapse: separate;
        border-spacing: 0;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table thead {
        display: none;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table,
    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table tbody {
        display: block;
        width: 100%;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table tbody tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 10px;
        padding: 2px 10px;
        border: 1px solid var(--cpt-border-color);
        border-radius: 8px;
        background: #fff;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .cpt-frontend-wrap.cpt-mobile-cards.cpt-striped table.cpt-frontend-table tbody tr:nth-child(even) {
        background: var(--cpt-stripe-bg);
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: auto;
        border: none;
        border-bottom: 1px solid var(--cpt-border-color);
        padding: 7px 0;
        text-align: left;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table td:last-child {
        border-bottom: none;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--cpt-header-text);
        text-align: right;
        flex: 0 0 auto;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table td.cpt-mobile-hide {
        display: none !important;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table tr.cpt-group-header-row {
        border-radius: 8px;
        margin-bottom: 10px;
        overflow: hidden;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table tr.cpt-group-header-row td {
        display: block;
        text-align: center;
        border: none;
        padding: 8px 4px;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table tr.cpt-group-header-row td::before {
        content: none;
    }

    .cpt-frontend-wrap.cpt-mobile-cards .cpt-change-wrap {
        align-items: flex-end;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table tr.cpt-row-changed-up,
    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table tr.cpt-row-changed-down,
    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table tr.cpt-row-changed-neutral {
        border-right: 3px solid transparent;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table tr.cpt-row-changed-up {
        border-right-color: #1e7e34;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table tr.cpt-row-changed-down {
        border-right-color: #c62828;
    }

    .cpt-frontend-wrap.cpt-mobile-cards table.cpt-frontend-table tr.cpt-row-changed-neutral {
        border-right-color: #cfa100;
    }
}


