.fc-wrap{--fc-c1:#008E92;--fc-c2:#DEECB4;--fc-gold:#C9A227;width:100%;max-width:100%;box-sizing:border-box;direction:rtl;font-family:inherit;font-size:11px;line-height:1.35;color:inherit}
.fc-wrap *{box-sizing:border-box}
.fc-filter{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.fc-chip{cursor:pointer;border:1px solid var(--fc-c1);background:#fff;color:var(--fc-c1);border-radius:999px;padding:3px 12px;font:inherit;font-size:12px;line-height:1.6}
.fc-chip.on{background:var(--fc-c1);color:#fff}
.fc-title{margin:12px 0 6px;font-size:14px;color:var(--fc-c1);border-right:4px solid var(--fc-c1);padding-right:8px}
.fc-grid{display:grid;grid-template-columns:repeat(var(--fc-cols,1),minmax(0,1fr));gap:6px;align-items:start}
.fc-col{min-width:0}
.fc-t{width:100%;table-layout:auto;border-collapse:collapse;margin:0;border:1px solid #e3e8d0;background:#fff}
.fc-t th,.fc-t td{padding:3px 4px;border:0;border-bottom:1px solid #eef2e0;border-right:1px solid #9fb0a0;text-align:center;vertical-align:middle;font-size:inherit;overflow-wrap:normal;word-break:keep-all}
.fc-t th:first-child,.fc-t td:first-child{border-right:0}
.fc-t td,.fc-t th{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;hyphens:none!important}
.fc-t td.fc-n,.fc-t tr.fc-pn td{white-space:normal!important}
.fc-t td.fc-ct,.fc-t th.fc-ct{width:1%;padding:2px 1px;border-right:0}
.fc-t td.fc-ct{background:#1a1a1a;color:#fff;font-weight:700;text-align:center;border-bottom:2px solid #fff}
.fc-t td.fc-ct span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;display:inline-block;max-height:100%}
.fc-t tr.fc-newcat td{border-top:3px solid #1a1a1a}
.fc-t tr.fc-cat td{background:var(--fc-c1);color:#fff;font-weight:700;text-align:right;border-right:0;border-top:2px solid var(--fc-c1)}
.fc-t tr.fc-pn td{text-align:right;font-weight:600;border-right:0;background:color-mix(in srgb,var(--fc-c2) 70%,#fff)}
.fc-t tr.fc-pn a{color:inherit;text-decoration:none}
.fc-t th{border-right:1px solid rgba(255,255,255,.55);background:var(--fc-c1);color:#fff;font-weight:600;white-space:nowrap}
.fc-t th.fc-g{background:var(--fc-gold);color:#2b2200}
.fc-t td.fc-n,.fc-t th.fc-n{text-align:right}
.fc-t td.fc-n{font-weight:600;background:inherit}
.fc-t td.fc-n a{color:inherit;text-decoration:none}
.fc-t td.fc-n a:hover{color:var(--fc-c1);text-decoration:underline}
.fc-t tr.fc-p{background:#fff}
.fc-t tr.fc-alt{background:color-mix(in srgb,var(--fc-c2) 45%,#fff)}
.fc-t tr.fc-first td{border-top:1px solid #d5dcc0}
.fc-t td.fc-pr{white-space:nowrap;font-variant-numeric:tabular-nums}
.fc-t td.fc-g{background:color-mix(in srgb,var(--fc-gold) 14%,transparent);font-weight:600}
.fc-t td.fc-z{color:#a0a0a0}
.fc-note{margin-top:4px;font-size:10px;color:#777}
.fc-empty{color:#888}
@media (max-width:767px){
.fc-wrap{font-size:9px}
.fc-t th,.fc-t td{padding:2px 1px}
.fc-v-d{display:none}
}
@media (min-width:768px){.fc-v-m{display:none}}
.fc-force-m{max-width:380px;border:1px dashed #aaa;padding:6px}
.fc-force-m .fc-wrap{font-size:9px}
.fc-force-m .fc-v-d{display:none!important}
.fc-force-m .fc-v-m{display:grid!important}
.fc-force-d .fc-v-m{display:none!important}
.fc-force-d .fc-v-d{display:grid!important}

/* v1.7 فشرده */
.fc-wrap .fc-t{margin:0!important;border-spacing:0!important}
.fc-wrap .fc-t th,.fc-wrap .fc-t td{padding:1px 3px!important;margin:0!important;line-height:1.25!important;height:auto!important;min-height:0!important;vertical-align:middle}
.fc-wrap .fc-t td p,.fc-wrap .fc-t td a{margin:0!important;padding:0!important;line-height:1.25!important}
.fc-wrap .fc-t td.fc-ct,.fc-wrap .fc-t th.fc-ct{padding:0 1px!important}
.fc-wrap .fc-grid{gap:3px}
.fc-wrap .fc-filter{margin:0 0 4px}
@media (max-width:767px){
.fc-wrap .fc-t th,.fc-wrap .fc-t td{padding:1px 2px!important;line-height:1.2!important}
.fc-wrap .fc-grid{gap:2px}
}

/* v1.8: خطوط عمودی یکدست + ستون دسته مشکی */
.fc-wrap .fc-t th,.fc-wrap .fc-t td{border-right:1px solid #9fb0a0!important;border-left:0!important}
.fc-wrap .fc-t th:last-child,.fc-wrap .fc-t td:last-child{border-right:0!important}
.fc-wrap .fc-t tr.fc-cat td{border-right:0!important}
.fc-wrap .fc-t td.fc-ct{background:#000!important;color:#fff!important;border-right:1px solid #9fb0a0!important}
.fc-wrap .fc-t tr.fc-p td.fc-ct,.fc-wrap .fc-t tr.fc-alt td.fc-ct{background:#000!important}
.fc-wrap .fc-t td.fc-ct span{color:#fff}

/* v1.9: حالت نامک = چپ به راست و حروف بزرگ */
.fc-wrap .fc-t.fc-ltr{direction:ltr}
.fc-wrap .fc-t.fc-ltr th,.fc-wrap .fc-t.fc-ltr td{text-align:left}
.fc-wrap .fc-t.fc-ltr td.fc-n,.fc-wrap .fc-t.fc-ltr td.fc-n a,.fc-wrap .fc-t.fc-ltr tr.fc-pn a{text-transform:uppercase}
.fc-wrap .fc-t.fc-ltr td.fc-ct span{writing-mode:vertical-rl}

/* v1.10: تاریخ بروزرسانی، جستجو، ردیف عنوان دسته در موبایل */
.fc-upd{font-size:11px;color:#555;margin:0 0 6px;text-align:right}
.fc-wrap .fc-search{flex:1 1 160px;max-width:260px;border:1px solid var(--fc-c1);border-radius:6px;padding:3px 10px;font:inherit;font-size:12px;line-height:1.6;background:#fff}
.fc-t tr.fc-cat{display:none}
.fc-v-m .fc-t tr.fc-cat{display:table-row}
.fc-v-m .fc-t .fc-ct{display:none}
.fc-v-m .fc-t tr.fc-cat td{text-align:center}
.fc-force-m .fc-t tr.fc-cat{display:table-row}
.fc-force-m .fc-t .fc-ct{display:none}
.fc-force-d .fc-t tr.fc-cat{display:none}
.fc-force-d .fc-t .fc-ct{display:table-cell}

/* v1.11: فیلتر جمع‌وجور، گوشه‌های گرد، وسط‌چین قیمت و رنگ، اصلاح متن عمودی دسته */
.fc-wrap .fc-filter{gap:4px;margin:0 0 5px;align-items:center}
.fc-wrap .fc-chip{padding:2px 9px;font-size:11px;line-height:1.5;border-radius:999px}
.fc-wrap .fc-search{flex:1 1 150px;max-width:220px;height:24px;padding:2px 9px;font-size:11px;line-height:1.5;border-radius:999px}
.fc-wrap .fc-col{border-radius:10px;overflow:hidden}
.fc-wrap .fc-t{border-radius:10px;overflow:hidden}
.fc-wrap .fc-t th,.fc-wrap .fc-t td:not(.fc-n){text-align:center!important}
.fc-wrap .fc-t tr.fc-pn td{text-align:right!important}
.fc-wrap .fc-t tr.fc-cat td{text-align:center!important}
.fc-wrap .fc-t td.fc-ct span{direction:rtl;unicode-bidi:isolate}
.fc-wrap .fc-t.fc-ltr td.fc-ct span{direction:rtl;unicode-bidi:isolate;writing-mode:vertical-rl}
.fc-wrap .fc-t.fc-ltr th,.fc-wrap .fc-t.fc-ltr td{text-align:center!important}
.fc-wrap .fc-t.fc-ltr td.fc-n{text-align:left!important}
.fc-wrap .fc-t.fc-ltr tr.fc-pn td{text-align:left!important}

/* v1.13: عنوان دسته در ردیف موبایل همیشه راست‌به‌چپ (حتی در جدول LTR) */
.fc-wrap .fc-t tr.fc-cat td{direction:rtl!important;unicode-bidi:isolate;text-align:center!important}


/* v1.15: چیپ دسته (چک‌باکس)، سرچ موبایل، تولتیپ طلایی */
.fc-wrap .fc-chip{display:inline-flex;align-items:center;gap:3px}
.fc-t th.fc-g[data-tip]{position:relative;cursor:pointer}
.fc-t th.fc-g[data-tip]::after{content:attr(data-tip);display:none;position:absolute;top:100%;right:0;z-index:5;width:max-content;max-width:150px;white-space:normal;background:#222;color:#fff;font-size:10px;font-weight:400;line-height:1.5;padding:4px 7px;border-radius:5px;text-align:right}
.fc-t th.fc-g[data-tip].fc-open::after{display:block}
@media (max-width:640px){
 .fc-wrap .fc-filter{padding:3px;gap:3px;margin-bottom:3px}
 .fc-wrap .fc-search{flex:1 1 100%;max-width:none;height:20px;padding:1px 8px;font-size:10px}
 .fc-wrap .fc-chip{font-size:9px;padding:0 6px;line-height:1.5;gap:2px}
}

/* v1.15: رنگ‌های شاخص در بخش فیلتر */
.fc-wrap .fc-filter{background:color-mix(in srgb,var(--fc-c2) 45%,#fff);border:1px solid color-mix(in srgb,var(--fc-c1) 35%,#fff);border-radius:10px;padding:5px 6px}
.fc-wrap .fc-chip{background:#fff;color:var(--fc-c1);border:1px solid var(--fc-c1);font-weight:600;transition:background .15s,color .15s}
.fc-wrap .fc-chip:hover{background:var(--fc-c2)}
.fc-wrap .fc-chip.on{background:var(--fc-c1);color:#fff;border-color:var(--fc-c1)}
.fc-wrap .fc-search{background:#fff;border:1px solid var(--fc-c1);color:#333}
.fc-wrap .fc-search:focus{outline:none;box-shadow:0 0 0 2px var(--fc-c2)}

/* v1.17: «همه» و تیک‌باکس SVG داخل چیپ‌ها */
.fc-wrap .fc-chip .fc-box{display:inline-flex;align-items:center;justify-content:center;flex:none;width:10px;height:10px;box-sizing:border-box;border:1px solid currentColor;border-radius:2px;background:transparent}
.fc-wrap .fc-chip .fc-box svg{width:8px;height:8px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.fc-wrap .fc-chip.on .fc-box{background:#fff;border-color:#fff}
.fc-wrap .fc-chip.on .fc-box svg{opacity:1;stroke:var(--fc-c1)}
@media (max-width:640px){
 .fc-wrap .fc-chip .fc-box{width:8px;height:8px}
 .fc-wrap .fc-chip .fc-box svg{width:6px;height:6px}
}

/* v1.19 دکمه دانلود PDF */
.fc-pdf{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid var(--fc-c1);background:#fff;color:var(--fc-c1);border-radius:6px}
.fc-pdf:hover{background:var(--fc-c1);color:#fff}
.fc-pdf.fc-busy{opacity:.5;cursor:wait}

/* v1.20.1: چیدمان فیلتر، دکمه PDF جدا، حذف فضای خالی بالا/پایین */
.fc-wrap .fc-filter{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:5px 8px;margin:0 0 6px;line-height:1}
.fc-wrap .fc-chips{display:contents}
.fc-wrap .fc-chip{box-sizing:border-box;height:24px;min-height:0;margin:0;padding:0 10px;line-height:1;display:inline-flex;align-items:center;gap:4px;text-transform:none;letter-spacing:0;box-shadow:none}
.fc-wrap .fc-search{box-sizing:border-box;height:24px;min-height:0;margin:0;line-height:1;flex:0 1 220px}
.fc-wrap .fc-pdf{box-sizing:border-box;order:99;margin:0;margin-inline-start:auto;width:24px;height:24px;border-radius:999px;position:relative}
.fc-wrap .fc-pdf::before{content:"";position:absolute;inset-inline-end:calc(100% + 8px);top:-2px;bottom:-2px;border-inline-start:1px solid color-mix(in srgb,var(--fc-c1) 35%,#fff)}
.fc-wrap .fc-pdf svg{width:14px;height:14px;display:block}
@media (max-width:640px){
 .fc-wrap .fc-filter{padding:4px 5px;gap:4px}
 .fc-wrap .fc-search{flex:1 1 0;min-width:0;max-width:none;height:22px}
 .fc-wrap .fc-pdf{order:0;margin:0;width:22px;height:22px}
 .fc-wrap .fc-pdf::before{display:none}
 .fc-wrap .fc-chips{display:flex;flex:1 1 100%;flex-wrap:wrap;gap:4px;order:1}
 .fc-wrap .fc-chip{height:20px;padding:0 7px;font-size:10px;gap:3px}
}
