/* ==========================================================================
   Canin — «ثبت فاکتور خرید» (فاز ۲، ۱۴۰۵/۰۸/۱۷)
   factor.php، my-account/factors.php و admin/factors.php

   سبک «ثبت فاکتور» که مالک تأیید کرد (canin-rfq-preview/v2.html + style-v2.css).
   همه‌چیز با پیشوند fx- است و فقط همین سه صفحه این فایل را بار می‌کنند.

   روی گوشی (تا ۹۰۰px، همان مرز style.css برای منوی پایین) صفحه مثل یک اپ است:
   هدر، منوی پایین و فوتر سایت پنهان‌اند (body.fx-page، از راه $canin_body_class —
   HTML برای همه یکی است). از ۹۰۱px همین محتوا یک کارت وسط صفحه است.

   🔴 در ردیف‌های تنگ white-space:nowrap نگذار (تست ۳۲۰px با متن ۱۳۰٪)؛ عددها با
   unicode-bidi:isolate جدا می‌شوند تا «۲ ·» شبیه «۲۰» خوانده نشود.
   ========================================================================== */

@media (max-width: 900px) {
    body.fx-page .site-header,
    body.fx-page .mobile-bottom-nav,
    body.fx-page .site-footer { display: none !important; }
    body.fx-page .site-main { padding: 0 !important; margin: 0 !important; }
}
body.fx-page { background: #f4f6fb; }
html.fx-lock, html.fx-lock body { overflow: hidden; }

.fx, .fx-sheet, .fx-adm {
    --fx-bg: #f4f6fb; --fx-card: #fff; --fx-ink: #0b2545; --fx-text: #22324a; --fx-mut: #6b7a90; --fx-faint: #98a5b8;
    --fx-line: #edf1f7; --fx-blue: #1677ff; --fx-blue-d: #0757c7; --fx-blue-s: #eef5ff;
    --fx-ok: #0e9f6e; --fx-ok-s: #e9f9f2; --fx-warn: #c2410c; --fx-warn-s: #fff4ec; --fx-bad: #be123c; --fx-bad-s: #fff1f2;
    font-family: Vazirmatn, Tahoma, sans-serif;
    color: var(--fx-text);
    font-size: 14px;
    line-height: 1.7;
}
.fx *, .fx-sheet *, .fx-adm * { box-sizing: border-box; }
.fx b, .fx-sheet b, .fx-adm b, .fx bdi { unicode-bidi: isolate; }
.fx button, .fx-sheet button, .fx-adm button { font: inherit; color: inherit; cursor: pointer; }
.fx [hidden], .fx-sheet[hidden], .fx-dim[hidden], .fx-toast[hidden], .fx-adm [hidden] { display: none !important; }

/* --------------------------------------------------------------- قاب صفحه */
.fx {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--fx-bg);
    max-width: 560px;
    margin: 0 auto;
}
@media (min-width: 901px) {
    .fx { min-height: 0; margin: 28px auto 40px; border-radius: 24px; box-shadow: 0 10px 40px rgba(16, 40, 80, .08); }
    .fx .fx-top { border-radius: 24px 24px 0 0; }
    .fx .fx-foot { border-radius: 0 0 24px 24px; }
    .fx--solo .fx-body { padding-bottom: 28px; }
}

/* ------------------------------------------------------------- نوار بالا */
.fx-top { background: #fff; padding: 10px 16px 12px; border-bottom: 1px solid var(--fx-line); position: sticky; top: 0; z-index: 5; }
.fx-bar { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.fx-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--fx-ink); background: none; border: 0; flex: none; text-decoration: none; }
.fx-ic svg { width: 22px; height: 22px; }
a.fx-ic:hover, button.fx-ic:hover { background: #f4f6fb; }
.fx-bar h1 { flex: 1; font-size: 16px; font-weight: 800; color: var(--fx-ink); text-align: center; margin: 0; line-height: 1.5; }
.fx-prog { display: flex; gap: 6px; margin-top: 8px; }
.fx-prog i { flex: 1; height: 4px; border-radius: 9px; background: #e6ebf3; transition: background .2s; }
.fx-prog i.on { background: var(--fx-blue); }
.fx-plab { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--fx-faint); }
.fx-plab span.on { color: var(--fx-blue); font-weight: 700; }

/* ------------------------------------------------------------------ بدنه */
.fx-body { padding: 16px 16px 24px; flex: 1; }
.fx-ttl { font-size: 19px; font-weight: 800; color: var(--fx-ink); line-height: 1.5; margin: 0; }
.fx-sub { font-size: 13px; color: var(--fx-mut); margin: 2px 0 0; }

.fx-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 1.5px dashed #b9d3ff; border-radius: 16px; background: var(--fx-blue-s); color: var(--fx-blue-d) !important; font-weight: 800; font-size: 14.5px; margin: 14px 0 12px; padding: 8px 12px; }
.fx-add span { width: 24px; height: 24px; border-radius: 8px; background: var(--fx-blue); color: #fff; display: grid; place-items: center; font-size: 17px; line-height: 1; flex: none; }

.fx-empty { text-align: center; color: var(--fx-mut); font-size: 13px; padding: 26px 18px; }
.fx-empty-ic { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 20px; background: #fff; display: grid; place-items: center; color: #9fb3cf; box-shadow: 0 1px 2px rgba(16, 40, 80, .05); }
.fx-empty-ic svg { width: 32px; height: 32px; }
.fx-empty p { margin: 0 auto; max-width: 320px; }

/* ----------------------------------------------------------- ردیف محصول */
.fx-list { background: #fff; border-radius: 18px; padding: 2px 12px; box-shadow: 0 1px 2px rgba(16, 40, 80, .04); }
.fx-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--fx-line); }
.fx-row:last-child { border-bottom: 0; }
.fx-th { width: 48px; height: 48px; border-radius: 12px; background: #f6f8fb; flex: none; display: grid; place-items: center; overflow: hidden; color: #8fa3bf; }
.fx-th img { width: 44px; height: 44px; object-fit: contain; }
.fx-th svg { width: 24px; height: 24px; }
.fx-th--m { background: var(--fx-blue-s); color: var(--fx-blue-d); }
.fx-mid { flex: 1; min-width: 0; }
.fx-nm { font-size: 13.5px; font-weight: 700; color: var(--fx-ink); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.fx-pr { font-size: 12px; color: var(--fx-mut); overflow-wrap: anywhere; }
.fx-row--it { align-items: flex-start; }
.fx-row-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.fx-alt { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 700; border-radius: 7px; padding: 1px 7px; border: 1px dashed #c9d4e3; background: #fff; color: var(--fx-mut) !important; line-height: 1.7; text-align: right; }
.fx-alt.on { border: 1px solid transparent; background: var(--fx-ok-s); color: var(--fx-ok) !important; }

.fx-stp { display: flex; align-items: center; gap: 2px; background: #f4f6fb; border-radius: 12px; padding: 3px; flex: none; }
.fx-stp button { width: 30px; height: 30px; border-radius: 9px; background: #fff; border: 0; color: var(--fx-blue-d) !important; font-size: 17px; font-weight: 700; box-shadow: 0 1px 2px rgba(16, 40, 80, .08); display: grid; place-items: center; padding: 0; }
.fx-stp button.del { color: #e11d48 !important; }
.fx-stp input { width: 34px; height: 30px; border: 0; background: transparent; text-align: center; font: inherit; font-size: 14px; font-weight: 800; color: var(--fx-ink); padding: 0; }
.fx-stp input:focus { outline: 2px solid var(--fx-blue); border-radius: 8px; background: #fff; }

/* ------------------------------------------------------------ پایین ثابت */
.fx-foot { position: sticky; bottom: 0; z-index: 5; background: #fff; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(16, 40, 80, .06); display: flex; align-items: center; gap: 12px; margin-top: auto; }
.fx-sm { flex: 1; min-width: 0; }
.fx-sm small { display: block; font-size: 11.5px; color: var(--fx-mut); line-height: 1.5; }
.fx-sm b { display: block; font-size: 15px; color: var(--fx-ink); font-weight: 800; line-height: 1.5; }
.fx-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 15px; background: var(--fx-blue); color: #fff !important; font-weight: 800; font-size: 15px; padding: 6px 22px; box-shadow: 0 8px 18px rgba(22, 119, 255, .28); border: 0; text-decoration: none; text-align: center; line-height: 1.5; flex: none; max-width: 60%; }
.fx-cta:disabled { background: #b8c7dc; box-shadow: none; cursor: default; }
.fx-cta--full { width: 100%; max-width: none; margin-top: 14px; }
.fx-ghost { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border-radius: 15px; background: #fff; color: var(--fx-blue-d) !important; font-weight: 800; font-size: 14.5px; margin-top: 10px; border: 1.5px solid #d6e5ff; text-decoration: none; text-align: center; padding: 6px 12px; }

/* ----------------------------------------------------------------- فرم */
.fx-box { background: #fff; border-radius: 18px; padding: 14px; margin-top: 14px; box-shadow: 0 1px 2px rgba(16, 40, 80, .04); }
.fx-box h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--fx-ink); margin: 0 0 4px; }
.fx-h3ic { width: 30px; height: 30px; border-radius: 10px; background: var(--fx-blue-s); color: var(--fx-blue); display: grid; place-items: center; flex: none; }
.fx-h3ic svg { width: 18px; height: 18px; }
.fx-d { font-size: 12px; color: var(--fx-mut); margin: 0; }
.fx-fld { display: block; margin-top: 10px; }
.fx-lbl { display: block; font-size: 12.5px; font-weight: 700; color: var(--fx-ink); margin-bottom: 6px; }
.fx-lbl small { font-weight: 400; color: var(--fx-mut); }
.fx-inp { display: block; width: 100%; min-height: 50px; border-radius: 14px; background: #fff; border: 1.5px solid #e3e8f0; padding: 10px 14px; font: inherit; font-size: 14.5px; color: var(--fx-ink); line-height: 1.5; }
.fx-inp:focus { outline: none; border-color: var(--fx-blue); box-shadow: 0 0 0 4px rgba(22, 119, 255, .10); }
.fx-inp::placeholder { color: var(--fx-faint); }
select.fx-inp { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a879a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }
.fx-ta { min-height: 96px; resize: vertical; }
.fx-ltr { direction: ltr; text-align: right; }
.fx-ltr::placeholder { direction: rtl; }
.fx-inp--lock { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f6f8fb; color: var(--fx-ink); font-weight: 700; }
.fx-inp--ph { color: var(--fx-mut); font-weight: 400; font-size: 13px; }
.fx-lockic { color: var(--fx-faint); display: grid; flex: none; }
.fx-lockic svg { width: 18px; height: 18px; }
.fx-help { display: block; font-size: 11.5px; color: var(--fx-mut); margin-top: 4px; }
.fx-count { display: block; text-align: left; font-size: 11px; color: var(--fx-faint); margin-top: 4px; }
.fx-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 359px) { .fx-2col { grid-template-columns: 1fr; } }
.fx-2col .fx-fld { margin-top: 10px; }

.fx-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid #e6ebf3; border-radius: 15px; margin-top: 10px; cursor: pointer; }
.fx-opt input, .fx-tog input, .fx-reasons input { position: absolute; top: 0; right: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fx-rad { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c7d0dd; flex: none; transition: border .15s; }
.fx-opt:has(input:checked) { border-color: var(--fx-blue); background: var(--fx-blue-s); }
.fx-opt input:checked + .fx-rad { border: 7px solid var(--fx-blue); }
.fx-opt input:focus-visible + .fx-rad { box-shadow: 0 0 0 4px rgba(22, 119, 255, .18); }
.fx-opt-t { flex: 1; min-width: 0; }
.fx-opt-t b { display: block; font-size: 14.5px; color: var(--fx-ink); }
.fx-opt-t small { display: block; font-size: 12px; color: var(--fx-mut); }
.fx-badge { font-size: 11px; font-weight: 800; color: #fff; background: var(--fx-blue); border-radius: 8px; padding: 2px 8px; flex: none; }
.fx-more { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; width: 100%; margin-top: 14px; padding: 14px; border-radius: 18px; background: #fff; border: 0; color: var(--fx-blue-d) !important; font-weight: 700; font-size: 13.5px; text-align: right; }
.fx-more small { color: var(--fx-mut); font-weight: 400; }

.fx-qrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fx-seg { display: flex; flex: 1; min-width: 150px; background: #f4f6fb; border-radius: 13px; padding: 4px; gap: 4px; }
.fx-seg button { flex: 1; min-height: 38px; border-radius: 10px; border: 0; background: none; font-size: 13.5px; color: var(--fx-mut) !important; font-weight: 600; padding: 2px 4px; }
.fx-seg button.on { background: #fff; color: var(--fx-blue-d) !important; font-weight: 800; box-shadow: 0 1px 3px rgba(16, 40, 80, .10); }
.fx-tog { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px; background: #fafbfd; border-radius: 14px; border: 1px solid var(--fx-line); cursor: pointer; }
.fx-tog > span:first-child { flex: 1; min-width: 0; font-size: 13.5px; }
.fx-tog b { display: block; font-weight: 700; color: var(--fx-ink); }
.fx-tog small { display: block; font-size: 11.5px; color: var(--fx-mut); }
.fx-tog input { position: absolute; opacity: 0; pointer-events: none; }
.fx-sw { width: 44px; height: 26px; border-radius: 99px; background: #cfd8e5; position: relative; flex: none; transition: background .15s; }
.fx-sw:after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: right .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.fx-tog input:checked + .fx-sw { background: var(--fx-blue); }
.fx-tog input:checked + .fx-sw:after { right: 21px; }
.fx-tog input:focus-visible + .fx-sw { box-shadow: 0 0 0 4px rgba(22, 119, 255, .18); }

/* ------------------------------------------------------------- مرحله‌ی ۳ */
.fx-stack { display: flex; align-items: center; flex-wrap: wrap; padding: 8px 10px 10px 0; border-bottom: 1px solid var(--fx-line); }
.fx-stack .fx-th { width: 42px; height: 42px; border: 2px solid #fff; margin-left: -10px; box-shadow: 0 1px 3px rgba(16, 40, 80, .10); }
.fx-stack .fx-th img { width: 36px; height: 36px; }
.fx-stack-n { margin-right: 14px; font-size: 12.5px; color: var(--fx-mut); }
.fx-kv { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--fx-line); font-size: 13.5px; flex-wrap: wrap; }
.fx-kv:last-child { border-bottom: 0; }
.fx-kv > span { color: var(--fx-mut); }
.fx-kv > b { flex: 1; text-align: left; color: var(--fx-ink); min-width: 0; overflow-wrap: anywhere; }
.fx-kv--h > span { flex: 1; color: var(--fx-ink); font-weight: 800; }
.fx-link { background: none; border: 0; padding: 0 2px; font-size: 12.5px; color: var(--fx-blue) !important; font-weight: 700; text-decoration: none; }
.fx-est { background: linear-gradient(135deg, #0e9f6e, #047857); color: #fff; border-radius: 18px; padding: 14px; margin-top: 14px; }
.fx-est.warn { background: linear-gradient(135deg, #ea580c, #c2410c); }
.fx-est small { display: block; opacity: .88; font-size: 12px; }
.fx-est b { display: block; font-size: 21px; font-weight: 800; line-height: 1.5; color: #fff; }
.fx-est-ok { display: inline-block; font-size: 12.5px; font-weight: 700; margin-top: 4px; background: rgba(255, 255, 255, .16); border-radius: 10px; padding: 3px 10px; }
.fx-note { font-size: 11.5px; color: var(--fx-mut); margin: 8px 0 0; line-height: 1.8; }
.fx-priv { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--fx-mut); margin-top: 10px; }
.fx-priv svg { flex: none; color: var(--fx-ok); margin-top: 3px; }
.fx-err { background: var(--fx-bad-s); border: 1px solid #fecdd3; color: var(--fx-bad); border-radius: 14px; padding: 10px 14px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.fx-err div + div { margin-top: 4px; }

/* ----------------------------------------------------------------- شیت */
.fx-dim { position: fixed; inset: 0; background: rgba(11, 25, 45, .45); z-index: 9990; }
.fx-sheet { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 24px 24px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 9991; box-shadow: 0 -10px 40px rgba(11, 25, 45, .18); }
.fx-sheet--tall { top: max(24px, 6vh); display: flex; flex-direction: column; }
.fx-sheet--tall .fx-res { flex: 1; overflow-y: auto; min-height: 60px; }
.fx-hand { width: 40px; height: 5px; border-radius: 9px; background: #dfe4ec; margin: 0 auto 8px; flex: none; }
.fx-sh-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex: none; }
.fx-sh-h b { font-size: 16px; font-weight: 800; color: var(--fx-ink); }
.fx-srch { display: flex; align-items: center; gap: 8px; min-height: 48px; border-radius: 14px; background: #f4f6fb; padding: 0 14px; border: 1.5px solid var(--fx-blue); flex: none; color: var(--fx-mut); }
.fx-srch svg { width: 20px; height: 20px; flex: none; }
.fx-srch input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--fx-ink); padding: 10px 0; outline: none; }
.fx-res { margin-top: 6px; }
.fx-res .fx-row { padding: 10px 0; }
.fx-res[aria-busy="true"] { opacity: .6; }
.fx-noresult { text-align: center; color: var(--fx-mut); font-size: 13px; padding: 16px 0 6px; margin: 0; }
.fx-plus { width: 38px; height: 38px; border-radius: 12px; background: var(--fx-blue-s); color: var(--fx-blue-d) !important; font-size: 20px; font-weight: 700; display: grid; place-items: center; flex: none; border: 0; padding: 0; }
.fx-plus.added { background: var(--fx-ok-s); color: var(--fx-ok) !important; font-size: 16px; }
.fx-manual { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 12px; border-radius: 14px; background: #fafbfd; border: 1px solid var(--fx-line); text-align: right; flex: none; }
.fx-manual-ic { width: 36px; height: 36px; border-radius: 12px; background: #fff; border: 1px solid var(--fx-line); display: grid; place-items: center; color: var(--fx-blue-d); flex: none; }
.fx-manual-ic svg { width: 18px; height: 18px; }
.fx-manual-t { flex: 1; min-width: 0; font-size: 12.5px; color: var(--fx-mut); line-height: 1.6; overflow-wrap: anywhere; }
.fx-manual-t b { display: block; color: var(--fx-blue-d); font-size: 13.5px; }
.fx-hint { font-size: 11.5px; color: var(--fx-faint); margin: 8px 0 0; flex: none; }
.fx-sheet .fx-cta--full { flex: none; }
/* «محصول بعدی» کنار دکمه‌ی آبی: آبی سمت راست و پهن، طوسی سمت چپ و باریک. */
.fx-sh-btns { display: flex; gap: 8px; margin-top: 14px; flex: none; }
.fx-sheet .fx-sh-btns .fx-cta--full { margin-top: 0; flex: 1 1 auto; width: auto; min-width: 0; padding: 6px 12px; }
.fx-next { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 6px 14px; border-radius: 15px; background: #eef1f6; color: #3b4a60; border: 0; font-family: inherit; font-weight: 800; font-size: 14px; line-height: 1.4; white-space: nowrap; cursor: pointer; }
.fx-next[hidden] { display: none; }
.fx-next svg { width: 18px; height: 18px; flex: none; }
.fx-next:active { background: #e2e7ef; }

.fx-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #0b2545; color: #fff; font-family: Vazirmatn, Tahoma, sans-serif; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 12px; z-index: 9995; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 8px 20px rgba(11, 25, 45, .25); }

/* ---------------------------------------------------------------- ثبت شد */
.fx-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 6px 0; }
.fx-big { width: 86px; height: 86px; border-radius: 50%; background: var(--fx-ok-s); display: grid; place-items: center; }
.fx-big i { width: 60px; height: 60px; border-radius: 50%; background: var(--fx-ok); display: grid; place-items: center; color: #fff; }
.fx-big i svg { width: 30px; height: 30px; }
.fx-big--info { background: var(--fx-blue-s); }
.fx-big--info i { background: var(--fx-blue); }
.fx-done h2 { font-size: 21px; font-weight: 800; color: var(--fx-ink); margin: 18px 0 0; }
.fx-done > p { font-size: 13.5px; color: var(--fx-mut); margin: 4px 0 0; max-width: 360px; }
.fx-code { margin-top: 12px; font-size: 12.5px; color: var(--fx-mut); background: #fff; border-radius: 10px; padding: 4px 12px; }
.fx-code b { color: var(--fx-ink); }
.fx-tl { width: 100%; background: #fff; border-radius: 18px; padding: 16px; margin-top: 22px; text-align: right; }
.fx-st { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.fx-st:last-child { padding-bottom: 0; }
.fx-st:before { content: ""; position: absolute; right: 13px; top: 28px; bottom: 2px; width: 2px; background: #e6ebf3; }
.fx-st:last-child:before { display: none; }
.fx-dot { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #eef1f6; color: var(--fx-faint); font-weight: 800; font-size: 12px; position: relative; z-index: 1; }
.fx-dot svg { width: 14px; height: 14px; }
.fx-st b { font-size: 14px; color: var(--fx-ink); display: block; line-height: 1.6; }
.fx-st small { display: block; font-size: 12px; color: var(--fx-mut); }
.fx-st.now .fx-dot { background: var(--fx-blue); color: #fff; box-shadow: 0 0 0 5px rgba(22, 119, 255, .14); }
.fx-st.now b { color: var(--fx-blue-d); }
.fx-st.done .fx-dot { background: var(--fx-ok); color: #fff; }
.fx-st.bad .fx-dot { background: var(--fx-bad); color: #fff; }
.fx-st.bad b { color: var(--fx-bad); }

/* ------------------------------------------------------- «فاکتورهای من» */
.fx-chip { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 8px; padding: 1px 8px; line-height: 1.8; flex: none; }
.fx-chip.ok { background: var(--fx-ok-s); color: var(--fx-ok); }
.fx-chip.warn { background: var(--fx-warn-s); color: var(--fx-warn); }
.fx-chip.bad { background: var(--fx-bad-s); color: var(--fx-bad); }
.fx-chip.mute { background: #eef1f6; color: var(--fx-mut); }
.fx-chip.blue { background: var(--fx-blue-s); color: var(--fx-blue-d); }
.fx-card { display: block; background: #fff; border-radius: 18px; padding: 14px; margin-top: 12px; box-shadow: 0 1px 2px rgba(16, 40, 80, .04); color: inherit !important; text-decoration: none !important; }
a.fx-card:hover { box-shadow: 0 4px 14px rgba(16, 40, 80, .08); }
.fx-card-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-card-h b { flex: 1; font-size: 15px; font-weight: 800; color: var(--fx-ink); min-width: 0; }
.fx-card-m { font-size: 12.5px; color: var(--fx-mut); margin-top: 4px; overflow-wrap: anywhere; }
.fx-card-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--fx-line); font-size: 13px; }
.fx-card-f b { color: var(--fx-ink); }
.fx-card-f span { color: var(--fx-mut); }
.fx-card-msg { margin-top: 8px; font-size: 12.5px; color: var(--fx-bad); background: var(--fx-bad-s); border-radius: 10px; padding: 6px 10px; }
.fx-newbtn { margin-top: 14px; }
.fx-flash { border-radius: 14px; padding: 10px 14px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.fx-flash.ok { background: var(--fx-ok-s); color: var(--fx-ok); }
.fx-flash.bad { background: var(--fx-bad-s); color: var(--fx-bad); }
.fx-items { list-style: none; margin: 4px 0 0; padding: 0; }
.fx-items li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--fx-line); }
.fx-items li:last-child { border-bottom: 0; }
.fx-items .fx-th { width: 42px; height: 42px; }
.fx-items .fx-th img { width: 38px; height: 38px; }
.fx-q { flex: none; font-size: 12.5px; font-weight: 800; color: var(--fx-ink); background: #f4f6fb; border-radius: 9px; padding: 2px 8px; }
.fx-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.fx-danger { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; border-radius: 14px; background: #fff; border: 1.5px solid #fecdd3; color: var(--fx-bad) !important; font-weight: 700; font-size: 13.5px; margin-top: 12px; }
.fx-reject { background: var(--fx-bad-s); border: 1px solid #fecdd3; border-radius: 18px; padding: 14px; margin-top: 14px; }
.fx-reject h3 { color: var(--fx-bad); margin: 0 0 4px; font-size: 14px; }
.fx-reject p { margin: 0; font-size: 13px; color: #7f1d1d; white-space: pre-line; }
.fx-pre { white-space: pre-line; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ پنل مدیر */
.fx-adm { max-width: 900px; }
.fx-adm h1 { font-size: 22px; font-weight: 800; color: var(--fx-ink); margin: 0; }
.fx-adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fx-adm-head p { margin: 2px 0 0; color: var(--fx-mut); font-size: 13px; }
.fx-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }
.fx-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 12px; background: #fff; border: 1px solid #e3e8f0; color: var(--fx-mut) !important; font-weight: 700; font-size: 13px; text-decoration: none; }
.fx-tabs a.on { background: var(--fx-blue); border-color: var(--fx-blue); color: #fff !important; }
.fx-tabs a i { font-style: normal; font-size: 11px; background: rgba(0, 0, 0, .08); border-radius: 8px; padding: 0 6px; }
.fx-tabs a.on i { background: rgba(255, 255, 255, .22); }
.fx-adm .fx-card { border: 1px solid #eef1f6; }
.fx-adm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .fx-adm-grid { grid-template-columns: minmax(0, 1fr); } }
.fx-buyer { display: flex; align-items: center; gap: 12px; }
.fx-av { width: 46px; height: 46px; border-radius: 50%; background: var(--fx-blue-s); color: var(--fx-blue-d); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.fx-buyer-t { flex: 1; min-width: 0; }
.fx-buyer-t b { display: block; color: var(--fx-ink); font-size: 15px; }
.fx-buyer-t small { display: block; color: var(--fx-mut); font-size: 12px; }
.fx-tel { display: inline-flex; align-items: center; gap: 4px; direction: ltr; font-weight: 800; color: var(--fx-blue-d) !important; text-decoration: none; }
.fx-it { padding: 12px 0; border-bottom: 1px solid var(--fx-line); }
.fx-it:last-child { border-bottom: 0; }
.fx-it-h { display: flex; align-items: flex-start; gap: 10px; }
.fx-it-h .fx-mid a { color: var(--fx-ink) !important; text-decoration: none; }
.fx-it-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; padding-right: 52px; }
.fx-it-tools form { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.fx-mini { min-height: 32px; border-radius: 10px; border: 1px solid #dfe6f0; background: #fff; padding: 2px 10px; font-size: 12px; font-weight: 700; color: var(--fx-blue-d) !important; }
.fx-mini.bad { color: var(--fx-bad) !important; border-color: #fecdd3; }
.fx-mini.ok { color: #fff !important; background: var(--fx-blue); border-color: var(--fx-blue); }
.fx-qty-in { width: 64px; min-height: 32px; border-radius: 10px; border: 1px solid #dfe6f0; text-align: center; font: inherit; font-size: 13px; }
.fx-linkbox { margin-top: 8px; margin-right: 52px; padding: 10px; border-radius: 12px; background: #fafbfd; border: 1px solid var(--fx-line); }
.fx-linkbox input[type="search"] { width: 100%; min-height: 40px; border-radius: 10px; border: 1.5px solid #e3e8f0; padding: 6px 12px; font: inherit; font-size: 13.5px; }
.fx-linkres .fx-row { padding: 8px 0; }
.fx-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.fx-act .fx-cta { max-width: none; flex: 1; min-width: 180px; }
.fx-act .fx-danger { flex: 1; min-width: 140px; width: auto; margin-top: 0; min-height: 50px; }
.fx-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.fx-reasons label { cursor: pointer; }
.fx-reasons input { position: absolute; opacity: 0; pointer-events: none; }
.fx-reasons span { display: inline-block; padding: 6px 12px; border-radius: 11px; border: 1.5px solid #e3e8f0; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--fx-mut); }
.fx-reasons input:checked + span { border-color: var(--fx-bad); background: var(--fx-bad-s); color: var(--fx-bad); }
.fx-reasons input:focus-visible + span { box-shadow: 0 0 0 3px rgba(190, 18, 60, .18); }
.fx-stat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.fx-stat div { background: #f6f8fb; border-radius: 12px; padding: 8px 10px; font-size: 12px; color: var(--fx-mut); }
.fx-stat b { display: block; font-size: 15px; color: var(--fx-ink); }
.fx-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--fx-blue-d) !important; text-decoration: none; margin-bottom: 8px; }

/* ======================================================================
   فاز ۳ — پنل فروشنده (vendor-panel/factors.php) و صفحه‌های مدیر
   داخل قاب پنل فروشنده است: نوار پایینِ شناورِ پنل (تا ۹۰۰px) جای خودش را
   دارد، پس دکمه‌ی پایین فرم بالای آن می‌چسبد (fx-vfoot).
   ====================================================================== */
.fx--panel { display: block; min-height: 0; max-width: 600px; margin: 0 auto; background: transparent; box-shadow: none; border-radius: 0; padding-bottom: 8px; }
@media (min-width: 901px) { .fx--panel { margin: 0 auto; box-shadow: none; border-radius: 0; } }
.fx-phead { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.fx-phead h1 { flex: 1; margin: 0; font-size: 18px; font-weight: 800; color: var(--fx-ink); line-height: 1.5; }
.fx-phead .fx-ic { background: #fff; box-shadow: 0 1px 2px rgba(16, 40, 80, .06); }
.fx-prbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; border-radius: 12px; background: #fff; border: 1px solid #dfe5f1; color: #1f3a8a; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(16, 40, 80, .06); }
.fx-prbtn svg { width: 19px; height: 19px; flex: none; }
.fx-prbtn:hover { background: #f4f6fb; }
.fx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-mt { margin-top: 14px !important; }
.fx-h3 { font-size: 15px; font-weight: 800; color: var(--fx-ink); margin: 0; }
.fx-emptyc { text-align: center; color: var(--fx-mut); font-size: 13px; }

.fx-strip { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 10px 12px; margin-bottom: 12px; color: #fff; background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.fx-strip--blue { background: linear-gradient(135deg, #1677ff, #0757c7); }
.fx-strip--warn { background: var(--fx-warn-s); color: var(--fx-warn); }
.fx-strip-ic { width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; font-weight: 800; }
.fx-strip--warn .fx-strip-ic { background: #fff; }
.fx-strip > div { flex: 1; min-width: 0; font-size: 12px; line-height: 1.7; }
.fx-strip > div b { display: block; font-size: 13.5px; color: inherit; }
.fx-strip a { flex: none; font-size: 12px; font-weight: 800; background: #fff; color: #4f46e5 !important; border-radius: 10px; padding: 4px 10px; text-decoration: none; }
.fx-strip--blue a { color: var(--fx-blue-d) !important; }
.fx-strip--warn a { color: var(--fx-warn) !important; }

.fx-mstat { display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 14px; color: #fff; background: linear-gradient(135deg, #0b2545, #1d3b66); }
.fx-mstat-ic { width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; flex: none; }
.fx-mstat-ic svg { width: 22px; height: 22px; }
.fx-mstat small { display: block; font-size: 12px; opacity: .85; }
.fx-mstat b { display: block; font-size: 15px; font-weight: 800; color: #fff; }

.fx-tabs2 { display: flex; gap: 8px; margin: 14px 0 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fx-tabs2::-webkit-scrollbar { display: none; }
.fx-tabs2 a { flex: none; white-space: nowrap; min-height: 36px; padding: 7px 14px; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 700; color: var(--fx-mut) !important; text-decoration: none; line-height: 1.6; }
.fx-tabs2 a.on { background: var(--fx-ink); color: #fff !important; }
.fx-tabs2 a i { font-style: normal; display: inline-block; min-width: 20px; height: 20px; line-height: 20px; border-radius: 7px; background: #e11d48; color: #fff; font-size: 11px; text-align: center; margin-right: 4px; padding: 0 4px; }
.fx-tabs2 a small { font-size: 11px; opacity: .8; }

.fx-fc-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-fc-h b { font-size: 15px; color: var(--fx-ink); font-weight: 800; }
.fx-new { font-size: 10.5px; font-weight: 800; color: #fff; background: #e11d48; border-radius: 6px; padding: 0 6px; line-height: 1.8; }
.fx-tm { margin-right: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 9px; padding: 2px 9px; }
.fx-tm svg { width: 13px; height: 13px; flex: none; }
.fx-tm.g { background: var(--fx-blue-s); color: var(--fx-blue-d); }
.fx-tm.o { background: var(--fx-warn-s); color: var(--fx-warn); }
.fx-tm.m { background: #eef1f6; color: var(--fx-mut); }
.fx-fc-m { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--fx-mut); }
.fx-fc-e { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--fx-line); }
.fx-fc-e small { display: block; font-size: 12px; color: var(--fx-mut); }
.fx-fc-e b { font-size: 14.5px; color: var(--fx-ink); }
.fx-have { font-size: 11.5px; font-weight: 700; color: var(--fx-ok); background: var(--fx-ok-s); border-radius: 8px; padding: 3px 8px; }
.fx-go { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 12px; background: var(--fx-blue); color: #fff !important; font-weight: 800; font-size: 13.5px; padding: 4px 16px; margin-top: 10px; text-decoration: none; text-align: center; }

.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fx-chips > span:not(.fx-tm) { font-size: 12px; font-weight: 700; border-radius: 9px; padding: 3px 9px; background: #f4f6fb; color: var(--fx-text); }
.fx-chips .fx-tm { margin-right: 0; }
.fx-estl { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--fx-line); }
.fx-estl small { display: block; font-size: 12px; color: var(--fx-mut); }
.fx-estl b { font-size: 16px; color: var(--fx-ink); font-weight: 800; }
.fx-lockbox { position: relative; }
.fx-lockrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--fx-line); }
.fx-lockrow:last-of-type { border-bottom: 0; }
.fx-lockrow i { width: 40px; height: 40px; border-radius: 12px; background: #f1f4f9; flex: none; }
.fx-lockrow span { flex: 1; }
.fx-lockrow span:before, .fx-lockrow span:after { content: ""; display: block; height: 9px; border-radius: 6px; background: #edf1f6; }
.fx-lockrow span:before { width: 78%; }
.fx-lockrow span:after { width: 44%; margin-top: 7px; }
.fx-lockmsg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 10px; }
.fx-lockmsg div { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .95); border-radius: 14px; padding: 10px 14px; font-size: 12.5px; color: var(--fx-ink); font-weight: 700; box-shadow: 0 6px 18px rgba(16, 40, 80, .10); }
.fx-lockmsg svg { width: 18px; height: 18px; color: var(--fx-blue); flex: none; }
.fx-gift { position: relative; overflow: hidden; border-radius: 20px; padding: 16px; color: #fff; background: linear-gradient(135deg, #7c3aed, #4f46e5); margin-top: 12px; }
.fx-gift:after { content: ""; position: absolute; left: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .10); }
.fx-gift small { display: block; font-size: 12px; opacity: .9; }
.fx-gift b { display: block; font-size: 17px; font-weight: 800; line-height: 1.6; color: #fff; }
.fx-gift p { font-size: 12.5px; opacity: .92; margin: 2px 0 0; }
.fx-gift-btn { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; margin-top: 12px; min-height: 46px; border-radius: 14px; background: #fff; color: #4f46e5 !important; font-weight: 800; font-size: 14.5px; text-decoration: none; }
.fx-linkc { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--fx-blue-d) !important; font-weight: 700; text-decoration: none; }

.fx-prog--v { margin: 0 0 4px; }
.fx-plab--v { margin: 0 0 10px; }
.fx-info-r { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--fx-mut); }
.fx-info-r b { color: var(--fx-ink); }
.fx-bn { margin-top: 8px; font-size: 12.5px; color: var(--fx-text); background: #fffbeb; border-radius: 12px; padding: 8px 10px; line-height: 1.8; }
.fx-bn b { color: #92400e; }
.fx-icard-top { display: flex; gap: 10px; align-items: flex-start; }
.fx-icard-top .fx-pr b { color: var(--fx-ink); }
.fx-okt { color: var(--fx-ok); font-weight: 700; }
.fx-seg3, .fx-seg2 { display: flex; flex-wrap: wrap; background: #f4f6fb; border-radius: 13px; padding: 4px; gap: 4px; margin-top: 10px; }
.fx-seg3 label, .fx-seg2 label { flex: 1 1 auto; position: relative; cursor: pointer; }
.fx-seg3 input, .fx-seg2 input { position: absolute; top: 0; right: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fx-seg3 span, .fx-seg2 span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 36px; border-radius: 10px; font-size: 12.5px; color: var(--fx-mut); font-weight: 600; padding: 3px 8px; line-height: 1.5; }
.fx-seg3 input:checked + span, .fx-seg2 input:checked + span { background: #fff; color: var(--fx-blue-d); font-weight: 800; box-shadow: 0 1px 3px rgba(16, 40, 80, .10); }
.fx-seg3-has input:checked + span { color: var(--fx-ok); }
.fx-seg3-alt input:checked + span { color: var(--fx-warn); }
.fx-seg3-none input:checked + span { color: #e11d48; }
.fx-seg3 input:focus-visible + span, .fx-seg2 input:focus-visible + span { box-shadow: 0 0 0 3px rgba(22, 119, 255, .22); }
.fx-icard[data-s="none"] [data-show="price"] { display: none; }
.fx-icard:not([data-s="alt"]) .fx-altbox { display: none; }
.fx-icard[data-s="none"] .fx-icard-top { opacity: .6; }
.fx-altbox { margin-top: 8px; background: var(--fx-warn-s); border-radius: 12px; padding: 2px 10px 10px; }
.fx-prc { display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.fx-prc-in { flex: 1 1 180px; min-width: 0; display: block; }
.fx-prc-in .fx-inp { font-weight: 800; font-size: 15px; min-height: 46px; }
.fx-prc-in small { display: block; font-size: 11.5px; color: var(--fx-mut); margin-top: 3px; }
.fx-prc-tot { flex: none; font-size: 11.5px; color: var(--fx-mut); text-align: left; line-height: 1.5; padding-bottom: 20px; }
.fx-prc-tot b { display: block; color: var(--fx-ink); font-size: 13.5px; }
.fx-hint2 { font-size: 11.5px; color: var(--fx-ok); margin-top: 4px; }
.fx-vfoot { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; background: #fff; border-radius: 18px; box-shadow: 0 -4px 22px rgba(16, 40, 80, .10); }
@media (max-width: 900px) { .fx-vfoot { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }

.fx-hero { display: flex; align-items: center; gap: 12px; }
.fx-hero b { display: block; font-size: 16px; color: var(--fx-ink); font-weight: 800; }
.fx-hero small { display: block; font-size: 12.5px; color: var(--fx-mut); }
.fx-gi { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; display: grid; place-items: center; flex: none; font-size: 24px; }
.fx-gi--blue { background: linear-gradient(135deg, #1677ff, #0757c7); font-weight: 900; }
.fx-warnc { display: flex; gap: 10px; align-items: center; background: var(--fx-warn-s); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.fx-wi { width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--fx-warn); display: grid; place-items: center; flex: none; font-size: 18px; font-weight: 900; }
.fx-warnc b { display: block; font-size: 13.5px; color: var(--fx-warn); }
.fx-warnc small { display: block; font-size: 12px; color: #9a3412; }
.fx-ul > div { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 5px 0; line-height: 1.8; }
.fx-ul > div:before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 7px; background: var(--fx-ok-s); color: var(--fx-ok); display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 3px; }
.fx-fee { background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: 10px 12px; font-size: 12.5px; color: #78350f; line-height: 1.85; margin-top: 12px; }
.fx-fee b { color: #92400e; }
.fx-planform { margin-top: 12px; }
.fx-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.8; margin-top: 12px; cursor: pointer; }
.fx-chk input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--fx-blue); }
.fx-chk a { color: var(--fx-blue-d) !important; font-weight: 700; }
.fx-plan { border: 2px solid var(--fx-blue); border-radius: 18px; padding: 14px; background: #fff; }
.fx-plan-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fx-plan-h b { font-size: 15px; color: var(--fx-ink); font-weight: 800; }
.fx-plan-h span { font-size: 11px; font-weight: 800; color: #fff; background: var(--fx-blue); border-radius: 8px; padding: 2px 8px; }
.fx-plan-p { font-size: 24px; font-weight: 900; color: var(--fx-ink); margin-top: 6px; }
.fx-plan-p small { font-size: 13px; font-weight: 600; color: var(--fx-mut); }
.fx-wal { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--fx-line); margin-top: 10px; font-size: 13px; }
.fx-wal span { color: var(--fx-mut); }
.fx-wal b { color: var(--fx-ink); }
.fx-short { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: var(--fx-warn-s); border-radius: 12px; padding: 8px 10px; font-size: 12.5px; color: var(--fx-warn); font-weight: 700; }
.fx-short a { color: var(--fx-blue-d) !important; background: #fff; border-radius: 10px; padding: 4px 10px; font-size: 12px; text-decoration: none; }

/* مدیر: نوار ارسال پیامک، آمار، پیشنهادها، اشتراک‌ها */
.fx-send { border: 1px solid #dbe7ff; }
.fx-bar2 { height: 10px; border-radius: 9px; background: #e6ebf3; overflow: hidden; margin-top: 10px; }
.fx-bar2 i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1677ff, #0757c7); border-radius: 9px; transition: width .3s; }
.fx-bar2-l { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--fx-mut); margin-top: 6px; }
.fx-st4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
@media (max-width: 700px) { .fx-st4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fx-st4 div { background: #fff; border: 1px solid #eef1f6; border-radius: 14px; padding: 10px 12px; font-size: 12px; color: var(--fx-mut); }
.fx-st4 b { display: block; font-size: 18px; color: var(--fx-ink); font-weight: 800; }
.fx-orow { padding: 10px 0; border-bottom: 1px solid var(--fx-line); }
.fx-orow:last-child { border-bottom: 0; }
.fx-orow summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.fx-orow summary::-webkit-details-marker { display: none; }
.fx-rk { width: 28px; height: 28px; border-radius: 9px; background: #f4f6fb; color: var(--fx-ink); font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.fx-rk.f { background: #fef3c7; color: #92400e; }
.fx-orow .fx-mid b { display: block; font-size: 13.5px; color: var(--fx-ink); }
.fx-orow .fx-mid small { display: block; font-size: 11.5px; color: var(--fx-mut); }
.fx-am { flex: none; font-size: 13.5px; font-weight: 800; color: var(--fx-ink); text-align: left; }
.fx-oitems { margin: 8px 38px 0 0; font-size: 12.5px; }
.fx-oitems div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--fx-line); }
.fx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
@media (max-width: 520px) { .fx-tiles { grid-template-columns: minmax(0, 1fr); } }
.fx-tiles div { background: #fff; border: 1px solid #eef1f6; border-radius: 14px; padding: 10px 12px; font-size: 12px; color: var(--fx-mut); }
.fx-tiles b { display: block; font-size: 18px; color: var(--fx-ink); font-weight: 800; }
.fx-form2 { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fx-form2 .fx-inp { min-height: 44px; }
.fx-form2 select.fx-inp { flex: 1 1 220px; width: auto; }
.fx-form2 .fx-days { flex: 0 0 96px; width: 96px; text-align: center; }
.fx-form2 .fx-cta { min-height: 44px; max-width: none; }
.fx-srow { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--fx-line); }
.fx-srow:last-child { border-bottom: 0; }
.fx-srow .fx-av { width: 38px; height: 38px; font-size: 15px; border-radius: 12px; }
.fx-chip.gift { background: #f3e8ff; color: #7c3aed; }

/* ===================================================== فاز ۴الف (۱۴۰۵/۰۸/۱۸)
   تأیید دکتر، کارمزد، وصل — پیش‌نمایش canin-rfq-preview/faz4.html */
.fx-sumbar .fx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-priv--box { background: #fff; border-radius: 14px; padding: 9px 12px; margin: 12px 0 0; line-height: 1.8; }
.fx-priv--box svg { color: var(--fx-mut); }
.fx-oc { display: block; background: #fff; border-radius: 18px; padding: 14px; margin-top: 10px; border: 1.5px solid transparent; box-shadow: 0 1px 2px rgba(16, 40, 80, .04); color: inherit; text-decoration: none; }
.fx-oc.best { border-color: #9fe3c7; }
.fx-oc.off { opacity: .62; }
.fx-bestl { font-size: 12px; font-weight: 800; color: var(--fx-ok); margin: -2px 0 10px; }
.fx-oc-h { display: flex; align-items: center; gap: 10px; }
.fx-oc-h .fx-mid { flex: 1; min-width: 0; }
.fx-oc-h .fx-mid b { display: block; font-size: 14px; color: var(--fx-ink); line-height: 1.5; overflow-wrap: anywhere; }
.fx-oc-h .fx-mid small { display: block; font-size: 11.5px; color: var(--fx-mut); line-height: 1.7; overflow-wrap: anywhere; }
.fx-anon { width: 42px; height: 42px; border-radius: 13px; background: #f1f4f9; color: var(--fx-ink); display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; }
.fx-oc-t { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fx-oc-t small { display: block; font-size: 11.5px; color: var(--fx-mut); }
.fx-oc-t b { display: block; font-size: 19px; font-weight: 800; color: var(--fx-ink); line-height: 1.45; }
.fx-save { font-size: 11.5px; font-weight: 700; color: var(--fx-ok); }
.fx-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fx-facts span { font-size: 11.5px; color: var(--fx-text); background: #f4f6fb; border-radius: 8px; padding: 3px 8px; line-height: 1.7; }
.fx-facts span.g { background: var(--fx-ok-s); color: var(--fx-ok); font-weight: 700; }
.fx-facts span.w { background: var(--fx-warn-s); color: var(--fx-warn); font-weight: 700; }
.fx-det { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 12px; background: var(--fx-blue-s); color: var(--fx-blue-d); font-weight: 800; font-size: 13.5px; margin-top: 12px; }
.fx-detbox summary { cursor: pointer; font-weight: 800; color: var(--fx-ink); font-size: 14px; }
.fx-detbox[open] summary { margin-bottom: 10px; }
.fx-link { color: var(--fx-blue-d); font-weight: 700; }
.fx-body--foot { padding-bottom: 250px; }   /* نوار ثابت پایین در ۳۲۰ پیکسل با متن ۱۳۰٪ تا ۲۱۶ پیکسل بلند می‌شود */
.fx-oil { padding-top: 4px; padding-bottom: 4px; }
.fx-oi { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--fx-line); }
.fx-oi:last-child { border-bottom: 0; }
.fx-oi .fx-mid { flex: 1; min-width: 0; }
.fx-oi.no { opacity: .6; }
.fx-oi-p { flex: none; text-align: left; font-size: 13px; font-weight: 800; color: var(--fx-ink); }
.fx-no { color: var(--fx-bad); }
.fx-altn { font-size: 12.5px; font-weight: 700; color: var(--fx-warn); line-height: 1.7; overflow-wrap: anywhere; }
.fx-vnote { background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 12.5px; line-height: 1.85; margin-top: 12px; color: var(--fx-text); overflow-wrap: anywhere; }
.fx-vnote b { color: var(--fx-ink); }
.fx-foot2 { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; background: #fff; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(16, 40, 80, .08); z-index: 40; }
.fx-foot2-r { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--fx-mut); }
.fx-foot2-r b { font-size: 17px; color: var(--fx-ink); }
.fx-foot2 .fx-cta--full { margin-top: 10px; }
.fx-foot2-n { font-size: 11.5px; color: var(--fx-mut); text-align: center; margin-top: 6px; line-height: 1.7; }
.fx-cta--ok { background: var(--fx-ok); box-shadow: 0 8px 18px rgba(14, 159, 110, .25); }
.fx-consent { background: var(--fx-blue-s); border-radius: 14px; padding: 12px; font-size: 13px; line-height: 1.95; color: var(--fx-ink); }
.fx-consent b { color: var(--fx-blue-d); }
.fx-wait { background: #fff; border-radius: 18px; padding: 18px 16px; margin-top: 12px; text-align: center; }
.fx-wait-ic { width: 58px; height: 58px; border-radius: 50%; background: var(--fx-warn-s); color: var(--fx-warn); display: grid; place-items: center; margin: 0 auto 8px; }
.fx-wait-ic svg { width: 28px; height: 28px; }
.fx-wait > b { display: block; font-size: 16px; color: var(--fx-ink); }
.fx-wait p { font-size: 12.5px; color: var(--fx-mut); line-height: 1.9; margin: 4px 0 0; }
.fx-cd { display: inline-block; background: #f4f6fb; border-radius: 10px; padding: 6px 10px; font-size: 12px; color: var(--fx-mut); margin-top: 10px; line-height: 1.8; }
.fx-cd b { color: var(--fx-ink); }
.fx-cdw { text-align: center; }
.fx-vend { background: #fff; border-radius: 18px; padding: 14px; margin-top: 12px; border: 1.5px solid #9fe3c7; }
.fx-okl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--fx-ok); margin-bottom: 10px; }
.fx-okl svg { width: 16px; height: 16px; flex: none; }
.fx-vlg { position: relative; width: 42px; height: 42px; border-radius: 13px; background: var(--fx-blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; overflow: hidden; }
.fx-vlg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.fx-call { display: flex; align-items: center; gap: 12px; background: var(--fx-ok-s); border-radius: 16px; padding: 11px 12px; margin-top: 10px; text-decoration: none; color: var(--fx-ink); }
.fx-call-b { width: 44px; height: 44px; border-radius: 14px; background: var(--fx-ok); color: #fff; display: grid; place-items: center; flex: none; }
.fx-call-n { flex: 1; min-width: 0; font-size: 18px; font-weight: 800; letter-spacing: .3px; text-align: right; overflow-wrap: anywhere; }
.fx-call-n small { display: block; font-size: 11px; font-weight: 600; color: var(--fx-mut); letter-spacing: 0; }
.fx-tip { display: flex; gap: 8px; font-size: 12.5px; color: var(--fx-text); background: var(--fx-blue-s); border-radius: 12px; padding: 10px 12px; margin-top: 12px; line-height: 1.8; }
.fx-tip svg { flex: none; margin-top: 3px; color: var(--fx-blue); }
.fx-tip b { color: var(--fx-blue-d); }
.fx-acts { margin-top: 12px; }
.fx-acts form { margin: 0; }
.fx-acts .fx-ghost, .fx-acts .fx-danger { width: 100%; cursor: pointer; }
.fx-pop { position: fixed; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); margin: 0 auto; max-width: 420px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; background: #fff; border-radius: 24px; padding: 18px 16px 16px; z-index: 9991; box-shadow: 0 20px 50px rgba(11, 25, 45, .25); }
.fx-pop[hidden] { display: none !important; }
.fx-pop-x { position: absolute; left: 10px; top: 10px; font-size: 16px; color: var(--fx-mut) !important; }
.fx-pop-ic { width: 62px; height: 62px; border-radius: 20px; margin: 0 auto 10px; display: grid; place-items: center; font-size: 28px; color: #fff; background: linear-gradient(135deg, #0e9f6e, #059669); }
.fx-pop-ic.wal { background: var(--fx-warn-s); color: var(--fx-warn); }
.fx-pop h2 { text-align: center; font-size: 17px; font-weight: 800; color: var(--fx-ink); line-height: 1.65; margin: 0; }
.fx-pop-s { text-align: center; font-size: 13px; color: var(--fx-mut); margin: 4px 0 0; }
.fx-feeb { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; color: #78350f; margin-top: 10px; }
.fx-feeb b { color: #92400e; }
.fx-need { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--fx-warn-s); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--fx-warn); font-weight: 800; margin-top: 10px; }
.fx-win { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; border: 1.5px solid #9fe3c7; }
.fx-win.warn { border-color: #fed7aa; }
.fx-win-ic { width: 40px; height: 40px; border-radius: 13px; background: var(--fx-ok); color: #fff; display: grid; place-items: center; font-weight: 900; flex: none; }
.fx-win.warn .fx-win-ic { background: var(--fx-warn); }
.fx-win .fx-mid b { display: block; font-size: 13.5px; color: var(--fx-ink); line-height: 1.6; }
.fx-win .fx-mid small { display: block; font-size: 12px; color: var(--fx-mut); }
.fx-deal { border: 1.5px solid #fed7aa; }
.fx-deal.ok { border-color: #9fe3c7; }
.fx-deal .fx-card-h b { flex: 1; }
.fx-conn { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--fx-line); }
.fx-conn:last-child { border-bottom: 0; }
.fx-conn .fx-mid { flex: 1; min-width: 0; }
.fx-conn .fx-mid b { display: block; font-size: 13.5px; color: var(--fx-ink); line-height: 1.7; }
.fx-conn .fx-mid small { display: block; font-size: 12px; color: var(--fx-mut); line-height: 1.8; }
.fx-warnt { color: var(--fx-warn) !important; font-weight: 700; }

/* ===================================================== فاز ۴ب (۱۴۰۵/۰۸/۱۹)
   نظر، استرداد، تخلف، رتبه — پیش‌نمایش canin-rfq-preview/faz4.html (s4-07، s4-10 تا s4-12) */
.fx-star { flex: none; font-size: 12px; font-weight: 800; color: #b45309; background: #fffbeb; border-radius: 9px; padding: 2px 8px; line-height: 1.8; }
.fx-fs { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.fx-fs legend { padding: 0; text-align: center; width: 100%; }
.fx-rate { display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; }
.fx-rate input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fx-rate label { font-size: 38px; line-height: 1; color: #dfe4ec; cursor: pointer; padding: 2px; transition: color .12s; }
.fx-rate input:checked ~ label, .fx-rate label:hover, .fx-rate label:hover ~ label { color: #f59e0b; }
.fx-rate input:focus-visible + label { outline: 3px solid rgba(22, 119, 255, .35); outline-offset: 2px; border-radius: 8px; }
.fx-yn { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fx-yn label { position: relative; flex: 1 1 120px; cursor: pointer; }
.fx-yn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fx-yn span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1.5px solid #e6ebf3; border-radius: 13px; font-weight: 700; font-size: 13.5px; color: var(--fx-text); padding: 4px 10px; text-align: center; }
.fx-yn input:checked + span { border-color: var(--fx-blue); background: var(--fx-blue-s); color: var(--fx-blue-d); }
.fx-yn input:focus-visible + span { box-shadow: 0 0 0 4px rgba(22, 119, 255, .18); }
.fx-rv-s { color: #f59e0b; letter-spacing: 1px; font-size: 15px; }
.fx-rv-s i { font-style: normal; color: #dfe4ec; }
.fx-ban { border: 1.5px solid #fecdd3; background: var(--fx-bad-s); }
.fx-ban .fx-card-h b { color: var(--fx-bad); }
.fx-ban .fx-note { color: #9f1239; }
.fx-stk { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--fx-line); color: inherit; text-decoration: none; }
.fx-stk:last-child { border-bottom: 0; }
.fx-stk.off { opacity: .6; }
.fx-stk .fx-chip { margin-top: 2px; }
.fx-stk .fx-mid { flex: 1; min-width: 0; }
.fx-stk .fx-mid b { display: block; font-size: 13.5px; color: var(--fx-ink); line-height: 1.7; overflow-wrap: anywhere; }
.fx-stk .fx-mid small { display: block; font-size: 12px; color: var(--fx-mut); line-height: 1.8; overflow-wrap: anywhere; }
.fx-stks h3 { margin-bottom: 2px; }
.fx-sug { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; color: #78350f; margin-top: 10px; line-height: 1.85; }
.fx-rv-x summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--fx-bad); margin-top: 4px; }
.fx-rfd { background: #f4f6fb; border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-size: 12.5px; line-height: 1.8; }
.fx-rfd b { display: block; color: var(--fx-ink); font-size: 13px; }
.fx-rfd small { display: block; color: var(--fx-mut); overflow-wrap: anywhere; }
.fx-rfd.ok { background: var(--fx-ok-s); }
.fx-rfd.ok b { color: var(--fx-ok); }
.fx-rfd.bad { background: var(--fx-bad-s); }
.fx-rfd.bad b { color: var(--fx-bad); }
.fx-rfdx { margin-top: 12px; border-top: 1px dashed var(--fx-line); padding-top: 10px; }
.fx-rfdx summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--fx-mut); }
.fx-rank { border: 1.5px solid #d6e5ff; }
.fx-rank-h { display: flex; gap: 12px; align-items: center; }
.fx-rank-n { width: 62px; height: 62px; border-radius: 18px; background: var(--fx-blue); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1.2; }
.fx-rank-n b { font-size: 24px; font-weight: 900; color: #fff; }
.fx-rank-n small { font-size: 11px; opacity: .9; }
.fx-rank-h > div { flex: 1; min-width: 0; font-size: 12px; color: var(--fx-mut); line-height: 1.8; }
.fx-rank-h > div b { display: block; font-size: 15px; color: var(--fx-ink); }
.fx-rank-h > div small { display: block; }
.fx-rank-c { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.fx-rank-c > div { background: #f4f6fb; border-radius: 14px; padding: 10px 12px; font-size: 11.5px; color: var(--fx-mut); line-height: 1.7; min-width: 0; }
.fx-rank-c > div.first { background: #fef3c7; color: #92400e; }
.fx-rank-c span { display: block; font-weight: 700; overflow-wrap: anywhere; }
.fx-rank-c b { display: block; font-size: 17px; font-weight: 800; color: var(--fx-ink); line-height: 1.5; }
.fx-rank-c small { display: block; }
.fx-headl { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-headl .fx-mini { display: inline-flex; align-items: center; text-decoration: none; }
.fx-rfq { border: 1.5px solid #fed7aa; }
.fx-rfq .fx-kv { color: inherit; text-decoration: none; }
.fx-rfa { background: var(--fx-warn-s); border-radius: 12px; padding: 9px 12px; margin-top: 6px; font-size: 12.5px; color: #7c2d12; line-height: 1.85; overflow-wrap: anywhere; }
.fx-rfa > b { color: var(--fx-warn); }
.fx-rfa-b { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.fx-rfa-b form { margin: 0; }
.fx-rfa-no { display: flex; flex: 1 1 240px; gap: 6px; }
.fx-rfa-no .fx-inp { flex: 1; min-width: 0; min-height: 32px; padding: 4px 10px; font-size: 12.5px; }
.fx-rfa-l { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 4px; font-size: 12px; }
.fx-rfa-l a { color: var(--fx-blue-d); font-weight: 700; }
.fx-rfa-l form { margin: 0; }
.fx-linkb { background: none; border: 0; padding: 0; font-size: 12px; font-weight: 700; color: var(--fx-mut) !important; text-decoration: underline; }

/* ===================================================== فاز ۵ (۱۴۰۵/۰۸/۱۹)
   کلید روشن/خاموش، صفحه‌ی درآمد، و نسخه‌ی دسکتاپ. HTML برای گوشی و دسکتاپ یکی است؛
   از ۹۰۱ پیکسل کادرها پهن‌تر و برگه‌ها پنجره‌ی وسط صفحه‌اند، از ۱۱۰۰ پیکسل دو ستون. */
.fx-onoff.off { border: 1.5px solid #fde68a; background: #fffbeb; }
.fx-onoff.on { border: 1.5px solid #9fe3c7; }
.fx-onoff .fx-note a { color: var(--fx-blue-d); font-weight: 700; }
.fx-tiles4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .fx-tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fx-tiles b { overflow-wrap: anywhere; }
.fx-tiles .fx-tile-net { background: var(--fx-ok-s); border-color: #9fe3c7; }
.fx-tiles .fx-tile-net b { color: var(--fx-ok); }
.fx-mrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--fx-line); font-size: 12.5px; color: var(--fx-mut); }
.fx-mrow:last-child { border-bottom: 0; }
.fx-mrow b { color: var(--fx-ink); min-width: 92px; }
.fx-mrow strong { margin-right: auto; color: var(--fx-ink); font-weight: 800; }

@media (min-width: 901px) {
    /* برگه‌ی پایین گوشی، روی دسکتاپ پنجره‌ی وسط صفحه */
    .fx-sheet { top: 50%; bottom: auto; transform: translateY(-50%); border-radius: 24px; max-height: 86vh; padding-bottom: 18px; box-shadow: 0 20px 60px rgba(11, 25, 45, .25); }
    .fx-sheet--tall { top: 7vh; bottom: 7vh; transform: none; max-height: none; }
    .fx-sheet .fx-hand { display: none; }

    .fx--mid, .fx--wide { max-width: 760px; }
    /* نوار پایین «جمع کل / تأیید» دیگر به لبه‌ی پنجره نمی‌چسبد؛ ته همان کادر می‌نشیند */
    .fx--solo .fx-body--foot { padding-bottom: 28px; }
    .fx--solo .fx-foot2 { position: sticky; bottom: 0; max-width: none; margin: 18px -16px -28px; border-radius: 0 0 24px 24px; }

    .fx--panel { max-width: 940px; }
}
@media (min-width: 1100px) {
    .fx--wide { max-width: 1060px; }
    .fx--wide .fx-body { padding: 20px 22px 28px; }

    /* دو ستون کارت: فهرست «فاکتورهای من» و فهرست فروشنده */
    .fx--wide .fx-grid2, .fx--panel .fx-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 12px; }
    .fx--wide .fx-grid2 > *, .fx--panel .fx-grid2 > * { margin-top: 0; }

    /* صفحه‌ی یک فاکتور: چرخه ستون اصلی (راست)، وضعیت و جزئیات ستون کناری (چپ) */
    .fx--wide .fx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto 1fr;
                         grid-template-areas: "m s" "m d"; column-gap: 20px; align-items: start; }
    .fx--wide .fx-col-s { grid-area: s; }
    .fx--wide .fx-col-m { grid-area: m; min-width: 0; }
    .fx--wide .fx-col-d { grid-area: d; min-width: 0; }
    .fx--wide .fx-col-m > :first-child, .fx--wide .fx-col-d > :first-child { margin-top: 0; }
    .fx--wide .fx-col-s, .fx--wide .fx-col-d { position: relative; }
    .fx--wide .fx-col-d { margin-top: 12px; }

    /* فرم پیشنهاد فروشنده: کارت اقلام دوتایی */
    .fx--panel .fx-vstep[data-vstep="1"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 12px; }
    .fx--panel .fx-vstep[data-vstep="1"] > .fx-icard { margin-top: 0; }
}
.fx--panel .fx-card + .fx-strip, .fx--panel .fx-box + .fx-strip { margin-top: 12px; }   /* کارت برنده/اخطار به نوار اشتراک نچسبد */

/* ===================================================== اصلاح‌های ۱۴۰۵/۰۸/۱۹ (خواست مالک)
   «برند مشابه قبول است» و «محصول را پیدا نکردید؟» پررنگ‌تر: خاکستری بودند و دیده نمی‌شدند. */
.fx-alt { font-size: 12px; font-weight: 800; padding: 3px 10px; border: 1.5px dashed #9cc2ff; background: var(--fx-blue-s); color: var(--fx-blue-d) !important; border-radius: 9px; }
.fx-alt.on { border: 1.5px solid #9fe3c7; background: var(--fx-ok-s); color: var(--fx-ok) !important; }
.fx-manual { margin-top: 10px; background: var(--fx-blue-s); border: 1.5px dashed #9cc2ff; }
.fx-manual-ic { background: var(--fx-blue); border-color: var(--fx-blue); color: #fff; }
.fx-manual-t { color: var(--fx-text); }
.fx-manual-t b { font-size: 14px; font-weight: 800; }
.fx-manual-go { flex: none; font-size: 12px; font-weight: 800; color: #fff; background: var(--fx-blue); border-radius: 10px; padding: 6px 10px; }
.fx-sheet--tall .fx-res { margin-top: 6px; }

/* ===================================================== «۳ از ۵ دارم» و بازه‌ی قیمت (۱۴۰۵/۰۸/۱۹، خواست مالک)
   فروشنده: «چند عدد دارید؟» کنار «دارم»؛ دکتر: «از … تا … تومان» برای قلم دستی. */
.fx-qh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: #f8fafd; border: 1px solid var(--fx-line); }
.fx-qh-l { font-size: 12.5px; font-weight: 700; color: var(--fx-ink); }
.fx-qh .fx-stp { background: #fff; }
.fx-qh .fx-stp input { width: 42px; }
.fx-qh-of { font-size: 12px; color: var(--fx-mut); }
.fx-qh-w { flex: 1 1 100%; font-size: 11.5px; line-height: 1.7; color: var(--fx-warn); background: var(--fx-warn-s); border-radius: 9px; padding: 5px 9px; }
.fx-qshort { font-size: 11.5px; font-weight: 700; color: var(--fx-warn); }
.fx-rng { font-size: 12px; color: var(--fx-mut); margin-top: 2px; overflow-wrap: anywhere; }
.fx-rng b { color: var(--fx-blue-d); font-weight: 800; }
.fx-rgin { display: flex; gap: 8px; }
.fx-rgin label { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; }
.fx-rgin label > span { flex: none; font-size: 12.5px; font-weight: 700; color: var(--fx-mut); }
.fx-rgin .fx-inp { min-width: 0; min-height: 46px; padding: 8px 10px; font-weight: 700; }
.fx-help.on { color: var(--fx-blue-d); font-weight: 700; }

/* ---- پنل فروشنده: «منتظر پرداخت شما» بزرگ، هدیه‌ی کوچک، آمار پشت دکمه (۱۴۰۵/۰۸/۲۲) ----
   رنگ همان کارت هشدار قبلی (.fx-win.warn): سفید با حاشیه‌ی نارنجی کم‌رنگ؛ فقط بزرگ‌تر. */
.fx-phead--list { flex-wrap: wrap; }
.fx-phead--list h1 { min-width: 0; }
.fx-pill { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12px; font-weight: 800; line-height: 1.5; padding: 5px 10px; border-radius: 999px; text-decoration: none; background: #f3eefe; color: #6d28d9 !important; border: 1px solid #e2d7fb; white-space: nowrap; }
.fx-pill--blue { background: var(--fx-blue-s); color: var(--fx-blue-d) !important; border-color: #d6e5ff; }
.fx-pill--warn { background: var(--fx-warn-s); color: var(--fx-warn) !important; border-color: #fed7aa; }
.fx-statbtn { width: 38px; height: 38px; flex: none; border-radius: 12px; border: 1px solid #d6e5ff; background: var(--fx-blue-s); color: var(--fx-blue); display: grid; place-items: center; cursor: pointer; padding: 0; }
.fx-statbtn svg { width: 19px; height: 19px; }
.fx-stg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-stg > div { background: #f4f6fb; border-radius: 16px; padding: 12px; min-width: 0; }
.fx-stg small { display: block; font-size: 12px; color: var(--fx-mut); line-height: 1.6; }
.fx-stg b { display: block; font-size: 19px; font-weight: 900; color: var(--fx-ink); line-height: 1.5; overflow-wrap: anywhere; }
.fx-stg .wide { grid-column: 1 / -1; background: linear-gradient(135deg, #0b2545, #1d3b66); }
.fx-stg .wide small { color: #c7d4e8; }
.fx-stg .wide b { color: #fff; font-size: 17px; }

.fx-due { background: #fff; border: 1.5px solid #fed7aa; border-radius: 22px; padding: 16px; margin-bottom: 12px; box-shadow: 0 8px 22px rgba(194, 65, 12, .12); }
.fx-due-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--fx-warn); background: var(--fx-warn-s); border-radius: 999px; padding: 4px 10px; }
.fx-due-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--fx-warn); box-shadow: 0 0 0 4px rgba(194, 65, 12, .15); }
.fx-due-t { display: block; font-size: 16.5px; font-weight: 900; color: var(--fx-ink); line-height: 1.6; margin-top: 10px; }
.fx-due-s { font-size: 13px; color: var(--fx-mut); margin: 2px 0 0; line-height: 1.7; }
.fx-due-cd { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 4px 10px; margin: 12px 0 8px; }
.fx-due-cd b { font-size: 38px; font-weight: 900; line-height: 1; color: var(--fx-warn); }
.fx-due-cd span { font-size: 13px; font-weight: 700; color: var(--fx-text); padding-bottom: 4px; }
.fx-due-bar { height: 7px; background: var(--fx-warn-s); border-radius: 9px; overflow: hidden; }
.fx-due-bar i { display: block; height: 100%; background: var(--fx-warn); border-radius: 9px; }
.fx-due-fee { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.fx-due-fee > div { background: #f4f6fb; border-radius: 14px; padding: 8px 10px; min-width: 0; }
.fx-due-fee small { display: block; font-size: 11.5px; color: var(--fx-mut); line-height: 1.6; }
.fx-due-fee b { display: block; font-size: 14.5px; font-weight: 900; color: var(--fx-ink); overflow-wrap: anywhere; }
.fx-due .fx-cta--full { margin-top: 12px; }
.fx-due-n { font-size: 12px; color: var(--fx-mut); line-height: 1.8; text-align: center; margin: 8px 0 0; }
.fx-due-link { display: block; text-align: center; font-size: 13px; font-weight: 800; color: var(--fx-blue-d) !important; text-decoration: none; margin-top: 8px; }
.fx-fc--due { border: 1.5px solid #fed7aa; }
.fx-ranklock { text-align: center; border: 1.5px dashed #cbd5e1; background: repeating-linear-gradient(135deg, #f8fafc 0 10px, #f1f5f9 10px 20px); }
.fx-ranklock-ic { width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--fx-mut); display: grid; place-items: center; margin: 0 auto 8px; box-shadow: 0 3px 10px rgba(11, 37, 69, .08); }
.fx-ranklock-ic svg { width: 22px; height: 22px; }
.fx-ranklock b { display: block; font-size: 15px; color: var(--fx-ink); }
.fx-ranklock p { font-size: 12.8px; color: var(--fx-mut); line-height: 1.8; margin: 4px 0 0; }

/* ---- فرم پیشنهاد: کارمزد کانین جلوی چشم، مبلغ زنده (۱۴۰۵/۰۸/۲۳) ---- */
.fx-feebox { display: block; background: var(--fx-blue-s); border: 1px solid #d6e5ff; border-radius: 16px; padding: 12px 14px; margin: 12px 0 0; font-size: 12.8px; color: var(--fx-text); line-height: 1.9; }
.fx-feebox > b { display: block; font-size: 14px; color: var(--fx-blue-d); font-weight: 800; }
.fx-feebox .fx-feeamt { color: var(--fx-ink); font-weight: 900; white-space: nowrap; }
.fx-sm .fx-feeln { color: var(--fx-blue-d); font-weight: 700; margin-top: 1px; }
.fx-sm .fx-feeln[hidden] { display: none; }

/* فرم پیشنهاد: «فقط همین برند» وقتی خریدار جایگزین نخواسته (۱۴۰۵/۰۸/۲۴) */
.fx-noalt { color: var(--fx-mut); font-weight: 700; }
.fx-help--warn { color: #be123c; font-weight: 700; }

/* مدیر: سابقه‌ی خریدار و هشدار فاکتور باز دیگر (فاز ۲، ۱۴۰۵/۰۸/۲۴) */
.fx-buyer-t small.fx-bhist { margin-top: 3px; color: var(--fx-text); font-weight: 700; }
.fx-buyer-t small.fx-bhist--warn { color: var(--fx-warn); }

/* ---------------------------------------- فاز ۳: قیمت تقریبی + رنگ و توضیح هر قلم */
.fx-approx { display: inline-block; font-size: 10.5px; font-weight: 700; color: #8a6a00; background: #fff8e1; border: 1px solid #f3e2a6; border-radius: 6px; padding: 0 6px; margin-inline-start: 5px; line-height: 1.7; vertical-align: 1px; white-space: nowrap; }
.fx-pinfo { display: flex; gap: 8px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 12px; color: var(--fx-mut); line-height: 1.8; margin: 0 0 4px; }
.fx-pinfo i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #fff8e1; color: #8a6a00; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 12px; margin-top: 2px; }
.fx-row-b { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.fx-notebtn { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 700; border-radius: 7px; padding: 1px 7px; border: 1px dashed #c9d4e3; background: #fff; color: var(--fx-blue-d) !important; line-height: 1.7; }
.fx-itnote { display: flex; gap: 8px; align-items: flex-start; width: 100%; margin-top: 6px; font-size: 11.5px; color: var(--fx-text) !important; background: var(--fx-blue-s); border: 0; border-radius: 9px; padding: 5px 8px; line-height: 1.7; text-align: right; }
.fx-itnote-t { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fx-itnote-e { flex: none; color: var(--fx-blue-d); font-weight: 700; }
.fx-row--nt { border: 0; padding: 2px 0 8px; }
.fx-shrev { display: block; margin: 0 0 10px; font-size: 12.5px; }
.fx-shades { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.fx-shade { min-width: 52px; min-height: 40px; border-radius: 12px; border: 1.5px solid #e3e8f0; background: #fff; font-weight: 800; font-size: 13.5px; color: var(--fx-text) !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; direction: ltr; line-height: 1.4; }
.fx-shade i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); flex: none; }
.fx-shade em { font-style: normal; font-weight: 700; color: var(--fx-mut); }
.fx-shade.on { border-color: var(--fx-blue); background: var(--fx-blue-s); color: var(--fx-blue-d) !important; }
.fx-shade--add { direction: rtl; border-style: dashed; color: var(--fx-blue-d) !important; font-weight: 700; font-size: 12.5px; }
.fx-shadd { display: flex; gap: 8px; margin: 4px 0 6px; }
.fx-shadd .fx-inp { flex: 1 1 auto; min-width: 0; min-height: 44px; }
.fx-shadd-b { flex: none; min-height: 44px; border-radius: 12px; border: 0; background: var(--fx-blue-s); color: var(--fx-blue-d) !important; font-weight: 800; padding: 0 16px; }
.fx-ta--s { min-height: 64px; }
.fx-want { margin-top: 8px; background: var(--fx-blue-s); border-radius: 11px; padding: 8px 10px; font-size: 12.5px; color: var(--fx-text); line-height: 1.8; overflow-wrap: anywhere; }
.fx-want b { color: var(--fx-blue-d); }
.fx-refp { font-size: 11.5px; color: var(--fx-mut); margin-top: 2px; }
.fx-sheet [hidden] { display: none !important; }   /* دکمه‌ها و کادرهای پنهان داخل شیت (بیرون از .fx) */

/* ------------------------------ «اول شماره، بعد تسویه» (۱۴۰۵/۰۸/۲۵) — vendor-panel/factors.php */
.fx-dw { background: #fff; border: 1.5px solid #bbf7d0; border-radius: 22px; padding: 16px; margin-bottom: 12px; box-shadow: 0 8px 22px rgba(14, 159, 110, .12); }
.fx-dw-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--fx-ok); background: var(--fx-ok-s); border-radius: 999px; padding: 4px 10px; }
.fx-dw-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--fx-ok); box-shadow: 0 0 0 4px rgba(14, 159, 110, .15); }
.fx-dw-t { display: block; font-size: 16px; font-weight: 900; color: var(--fx-ink); line-height: 1.6; margin-top: 10px; }
.fx-dw-s { font-size: 13px; color: var(--fx-mut); margin: 2px 0 6px; line-height: 1.8; }
.fx-debt { margin-top: 12px; background: #fff8ec; border: 1px solid #fed7aa; border-radius: 16px; padding: 12px; }
.fx-debt-r { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--fx-text); }
.fx-debt-r + .fx-debt-r { margin-top: 6px; }
.fx-debt-r b { font-size: 16px; color: var(--fx-ink); font-weight: 900; }
.fx-debt-chip { display: inline-block; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 2px 9px; background: var(--fx-warn-s); color: var(--fx-warn); }
.fx-debt-chip.bad { background: var(--fx-bad-s); color: var(--fx-bad); }
.fx-debt-n { font-size: 12px; color: #7c5a2a; line-height: 1.85; margin: 8px 0 10px; }
.fx-debt-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.fx-debt-btns form { margin: 0; display: contents; }
.fx-debt-btns .fx-cta, .fx-debt-btns .fx-ghost { max-width: none; width: 100%; min-height: 46px; font-size: 14px; padding: 4px 10px; margin: 0; }
.fx-terms { border: 1.5px solid #d6e5ff; }
.fx-terms-v { display: inline-block; font-size: 11.5px; font-weight: 800; background: var(--fx-blue-s); color: var(--fx-blue-d); border-radius: 999px; padding: 2px 9px; }
.fx-terms-t { display: block; font-size: 15.5px; font-weight: 900; color: var(--fx-ink); line-height: 1.7; margin: 6px 0 2px; }
.fx-terms ul { margin: 6px 0 10px; padding: 0 18px 0 0; font-size: 13px; line-height: 2; color: var(--fx-text); }
.fx-terms .fx-cta { margin-top: 10px; }
.fx-lockd { border: 1.5px solid #fed7aa; }
.fx-lockd b { display: block; font-size: 15px; font-weight: 900; color: var(--fx-warn); line-height: 1.7; }
.fx-lockd p { font-size: 13px; color: var(--fx-text); line-height: 1.9; margin: 4px 0 12px; }
/* «خرید انجام نشد» (فاز ۳) */
.fx-nobuy { display: contents; }
.fx-nobuy summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; }
.fx-nobuy summary::-webkit-details-marker { display: none; }
.fx-nobuy[open] summary { grid-column: 1 / -1; }
.fx-nobuy form { grid-column: 1 / -1; display: block; background: #fff; border-radius: 14px; padding: 12px; margin-top: 2px; }
.fx-nobuy .fx-note { margin: 0 0 8px; }
.fx-nobuy .fx-help--warn { margin: 6px 0 10px; }
.fx-debt-btns .fx-fee-ticket-action { background: #edf5ff; border-color: #a6c8fa; }
.fx-fee-ticket form .fx-fld:first-of-type { margin-top: 0; }
.fx-fee-ticket form .fx-cta { margin-top: 10px; }
.fx-fee-ticket-file { min-width: 0; padding: 7px; }
.fx-fee-ticket-file::file-selector-button { font: inherit; }
@media (max-width: 480px) { .fx-debt-btns .fx-fee-ticket-action { grid-column: 1 / -1; } }
.fx-pend { margin-top: 12px; background: var(--fx-blue-s); border-radius: 14px; padding: 10px 12px; font-size: 12.5px; line-height: 1.9; color: var(--fx-text); overflow-wrap: anywhere; }
.fx-pend b { display: block; color: var(--fx-blue-d); font-size: 13.5px; }
.fx-pend.ok { background: var(--fx-ok-s); }
.fx-pend.ok b { color: var(--fx-ok); }
/* دکتر: «فروشنده اعلام کرده خرید انجام نشد» */
.fx-askq { background: #fff; border: 1.5px solid #d6e5ff; border-radius: 18px; padding: 14px; margin-top: 12px; text-align: center; }
.fx-askq b { display: block; font-size: 15px; font-weight: 900; color: var(--fx-ink); line-height: 1.7; }
.fx-askq p { font-size: 12.5px; color: var(--fx-mut); line-height: 1.85; margin: 4px 0 10px; }
