/* گزارش اجتماعی: پیشنهادها بیرون کارت فیلتر و متن بلند در قاب مستقل خوانا می‌مانند. */
.tm-panel-ui .card.tm-social-filter { overflow: visible; position: relative; z-index: 5; }
.tm-panel-ui .tm-social-filter .card-body { overflow: visible; }
.tm-panel-ui .tm-social-suggestion-row { display: flex; align-items: center; gap: .5rem; padding: .5rem; }
.tm-panel-ui .tm-social-suggestion-profile { display: flex; align-items: center; gap: .5rem; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tm-panel-ui .tm-social-suggestion-row > a > span:last-child { min-width: 0; }
.tm-panel-ui .tm-social-suggestion-row strong, .tm-panel-ui .tm-social-suggestion-row small { display: block; }
.tm-app .tm-panel-ui[data-social-admin] .tm-social-suggestion-row > button.btn { flex: 0 0 auto; width: auto; min-width: 3.5rem; }
.tm-panel-ui .tm-social-message { min-width: 16rem; max-width: 34rem; }
.tm-panel-ui .tm-social-message-text { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.tm-panel-ui .tm-social-message:has(> [data-message-expand]) > [data-message-short]:not([hidden]) {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.tm-panel-ui .tm-social-message-full { max-height: 18rem; overflow: auto; overscroll-behavior: contain; direction: ltr; }
.tm-panel-ui .tm-text-toggle { border: 0; padding: .25rem 0; background: transparent; color: var(--bs-primary); font: inherit; text-align: start; cursor: pointer; }
.tm-panel-ui .tm-text-toggle:hover { color: var(--bs-link-hover-color); }
.tm-panel-ui .tm-text-toggle:focus-visible { outline: 2px solid var(--tm-color-primary); outline-offset: 2px; }
.tm-panel-ui .tm-social-report-table .tm-monitoring-owner { min-width: 13rem; max-width: 23rem; }
.tm-panel-ui[data-social-admin] .tm-monitoring-owner .small { font-size: max(.875rem, 12px); }
.tm-panel-ui .tm-social-report-table th { white-space: nowrap; }
/* شروع محتوای ستون‌ها با بازشدن متن بلند جابه‌جا نمی‌شود. */
.tm-panel-ui table.tm-social-report-table > tbody > tr > td { vertical-align: top; text-align: start; }
/* ستون انتخاب چسبان نیز رنگ ردیف را با همان متغیرهای Bootstrap حفظ می‌کند. */
.tm-panel-ui .tm-table-wrapper .tm-social-report-table.tm-table-has-select-column > tbody > tr > td:first-child {
    box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg))), -1px 0 0 var(--tm-border-color);
}
/* ستون‌های مرتبط یکجا نمایش داده می‌شوند؛ متن و اطلاعات امنیتی عرض جدول را افزایش نمی‌دهند. */
.tm-panel-ui .table-responsive table.tm-social-purge-table { table-layout: fixed; width: 100%; min-width: 0; }
.tm-panel-ui .tm-social-purge-table col.tm-selection-cell { width: 3rem; }
.tm-panel-ui .tm-social-purge-table .tm-social-reference-column { width: 5rem; }
.tm-panel-ui .tm-social-purge-table .tm-social-owner-column { width: 23%; }
.tm-panel-ui .tm-social-purge-table .tm-social-time-column { width: 15%; }
.tm-panel-ui .tm-social-purge-table :is(.tm-social-message, .tm-monitoring-owner) { min-width: 0; max-width: 100%; }
.tm-panel-ui .tm-social-purge-table th { white-space: normal; }
.tm-panel-ui .tm-social-purge-table td { overflow-wrap: break-word; }
.tm-app .tm-panel-ui .tm-social-purge-table th .tm-store-menu-sort-link { min-height: 2rem; white-space: normal; flex-wrap: wrap; }
.tm-panel-ui .tm-social-security { margin-top: .75rem; }
.tm-panel-ui .tm-social-security summary { cursor: pointer; color: var(--bs-primary); }
.tm-panel-ui .tm-social-security dl { margin: .5rem 0 0; }
.tm-panel-ui .tm-social-security dd { margin: 0 0 .5rem; overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
    .tm-panel-ui .tm-social-message,
    .tm-panel-ui .tm-social-report-table .tm-monitoring-owner { min-width: 0; max-width: 100%; width: 100%; }
}
/* خطای فیلد گروهی شامل ورودی و دکمه‌های متصل؛ مشترک ایجاد و تغییر پلن. */
.tm-panel-ui .input-group.tm-input-group-invalid,
.tm-panel-ui .input-group:has(.input-validation-error) {
    outline: 1px solid var(--tm-color-danger);
    border-radius: var(--bs-border-radius, .375rem);
}
.tm-panel-ui .input-group.tm-input-group-invalid .form-control,
.tm-panel-ui .input-group.tm-input-group-invalid .btn,
.tm-panel-ui .input-group:has(.input-validation-error) .form-control,
.tm-panel-ui .input-group:has(.input-validation-error) .btn {
    border-color: var(--tm-color-danger);
}
.tm-panel-ui .input-group.tm-input-group-invalid label,
.tm-panel-ui .input-group:has(.input-validation-error) label {
    color: var(--tm-color-danger);
}

/* سیاست دامنه با عرض موجود جاری می‌شود؛ فاصله و شکست خط کد Razor وارد متن نمی‌شود. */
.tm-panel-ui .tm-domain-policy-notice {
    white-space: normal;
    text-align: center;
}

:root {
    --tm-font-family: "vazir-black-fd", "vazir-black", "iransansweb(fanum)", "yekan", Tahoma, sans-serif;
    --tm-navigation-font-family: var(--tm-font-family);
    --tm-color-primary: #0d6efd;
    --tm-color-primary-hover: #0b5ed7;
    --tm-color-header: #0d6efd;
    --tm-color-edit: #ffc107;
    --tm-color-danger: #dc3545;
    --tm-color-success: #198754;
    --tm-color-info: #0dcaf0;
    --tm-color-warning: #ffc107;
    --tm-body-bg: #f4f7fb;
    --tm-surface-bg: #ffffff;
    --tm-surface-alt-bg: #f8fafc;
    --tm-product-media-ratio: 1;
    --tm-product-media-fit: contain;
    --tm-product-media-bg: var(--tm-surface-bg);
    --tm-border-color: #d9e2ef;
    --tm-border-strong: #c4d0e1;
    --tm-head-bg: #edf3fb;
    --tm-head-color: #213750;
    --tm-text-color: #1f2937;
    --tm-muted-color: #5d6b7c;
    --tm-placeholder1-label-color: #64748b;
    --tm-placeholder1-text-color: #94a3b8;
    --tm-nav-hover-bg: #eef4ff;
    --tm-nav-hover-color: #164f9d;
    --tm-active-bg: #164f9d;
    --tm-table-striped-bg: rgba(13, 110, 253, .035);
    --tm-table-hover-bg: rgba(13, 110, 253, .065);
    --tm-table-header-bg: var(--tm-color-header);
    --tm-table-header-color: #ffffff;
    --tm-table-header-border: #0b5ed7;
    --tm-table-header-height: 3.25rem;
    --tm-table-cell-padding-block: .75rem;
    --tm-table-cell-padding-inline: .8rem;
    --tm-table-row-separator-color: var(--tm-border-color);
    --tm-table-row-separator-width: 1px;
    --tm-shadow-sm: 0 .25rem .9rem rgba(15, 23, 42, .08);
    --tm-radius-card: .5rem;
    --tm-radius-control: .7rem;
    --tm-control-height: 2.75rem;
    --tm-button-height: 2.75rem;
    --tm-icon-button-size: 44px;
    --tm-page-gutter: clamp(.65rem, 1.6vw, 1.25rem);
    --tm-section-gap: 1rem;
    --tm-card-gap: 1rem;
    --tm-field-gap: 1rem;
    --tm-label-gap: .45rem;
    --tm-help-gap: .4rem;
    --tm-action-gap: .5rem;
    --tm-button-icon-gap: .45rem;
    --tm-drag-duration: 160ms;
}

/* تنظیم متغیرهای عمومی پروژه و Bootstrap برای حالت تیره از یک نقطه مرکزی انجام می‌شود. */
[data-bs-theme="dark"] {
    --tm-body-bg: #111418;
    --tm-surface-bg: #1b2028;
    --tm-surface-alt-bg: #242b35;
    --tm-border-color: #3a4553;
    --tm-border-strong: #4d5a6b;
    --tm-head-bg: #252d38;
    --tm-head-color: #e8eef7;
    --tm-text-color: #e2e8f0;
    --tm-muted-color: #a7b4c8;
    --tm-placeholder1-label-color: #cbd5e1;
    --tm-placeholder1-text-color: #94a3b8;
    --tm-nav-hover-bg: rgba(91, 141, 239, .18);
    --tm-nav-hover-color: #a9c7ff;
    --tm-active-bg: #2f6fed;
    --tm-table-striped-bg: rgba(255, 255, 255, .035);
    --tm-table-hover-bg: rgba(91, 141, 239, .14);
    --tm-shadow-sm: 0 .25rem .9rem rgba(0, 0, 0, .32);
    --bs-body-bg: var(--tm-body-bg);
    --bs-body-color: var(--tm-text-color);
    --bs-border-color: var(--tm-border-color);
    --bs-tertiary-bg: var(--tm-surface-alt-bg);
    --bs-secondary-color: var(--tm-muted-color);
}

html,
body {
    font-family: var(--tm-font-family);
    color: var(--tm-text-color);
    background-color: var(--tm-body-bg);
    line-height: 1.6;
}

.tm-app main {
    min-height: calc(100vh - 220px);
}

/* پوستهٔ فلکس فضای باقی‌مانده بین سربرگ و فوتر را به تایم‌لاین خانه می‌دهد. */
.tm-app main.tm-home-main { min-height: 0; }
body.tm-app:has(main.tm-home-main) { min-height: 100dvh; }
.tm-home-main > .tm-social-timeline:has(> .tm-social-empty:not(.d-none)) { margin-block: .75rem 0; }
.tm-home-main > .tm-social-timeline > .tm-social-empty { margin-block: 0; }

.tm-app .navbar {
    background-color: var(--tm-surface-bg) !important;
    border-bottom-color: var(--tm-border-color) !important;
}

.tm-app .navbar-brand {
    font-weight: 700;
    color: var(--tm-head-color);
}

.tm-app .navbar-brand:hover {
    color: var(--tm-active-bg);
}

.tm-app .navbar .nav-link {
    font-size: .95rem;
    color: var(--tm-text-color);
}

/* کنترل انتخاب Theme در منوی بالایی با dropdown بوت‌استرپ نمایش داده می‌شود. */
.tm-app .navbar .tm-theme-toggle {
    min-width: 2.7rem;
}

.tm-app .navbar .tm-theme-toggle::after {
    margin-inline-start: .35rem;
    margin-inline-end: 0;
}

.tm-app .tm-theme-menu {
    min-width: 12rem;
}

.tm-app .tm-theme-option {
    font-family: var(--tm-font-family);
    color: var(--tm-text-color);
}

.tm-app .tm-theme-check {
    margin-inline-start: auto;
    opacity: 0;
}

.tm-app .tm-theme-option.active .tm-theme-check,
.tm-app .tm-theme-option[aria-pressed="true"] .tm-theme-check {
    opacity: 1;
}

.tm-app .tm-theme-option.active,
.tm-app .tm-theme-option[aria-pressed="true"] {
    color: var(--tm-nav-hover-color);
    background-color: var(--tm-nav-hover-bg);
}

/* رنگ hover و active لینک‌های منوی بالا با متغیرهای Theme هماهنگ می‌شود. */
.tm-app .navbar .tm-top-nav-link:hover {
    color: var(--tm-nav-hover-color) !important;
    background: var(--tm-nav-hover-bg);
}

.tm-app .navbar .tm-top-nav-link.active,
.tm-app .navbar .tm-top-nav-link[aria-current="page"] {
    color: #fff !important;
    background: var(--tm-active-bg);
    box-shadow: 0 6px 16px rgba(47, 111, 237, .24);
}

.tm-app .card {
    border: 1px solid var(--tm-border-color);
    border-radius: .5rem !important;
    box-shadow: var(--tm-shadow-sm);
    color: var(--tm-text-color);
    background-color: var(--tm-surface-bg);
}

.tm-app .card-header {
    border-bottom: 1px solid var(--tm-border-color);
    font-weight: 700;
    color: var(--tm-head-color);
    background-color: var(--tm-head-bg);
}

/* Header نخست Card باید دقیقاً شعاع گوشه‌های خود Card را دنبال کند. */
.tm-app .card > .card-header:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.tm-app .card > .card-header {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

/* رنگ Header صفحه‌های عملیاتی مستقل از رنگ قدیمی باقی‌مانده در View است. */
.tm-app .card-header.tm-card-header-create {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.tm-app .card-header.tm-card-header-edit {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.tm-app .card > .card-header.tm-card-header-delete,
.tm-app .card > .card-header.bg-danger {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.tm-app .card > .card-header
    :is(h1, h2, h3, h4, h5, h6, strong, .text-primary, .text-info, .text-success, .text-warning, .text-danger, .text-dark, .text-white, .text-muted, .text-secondary, .text-body, .text-body-secondary):not(.btn):not(.btn *) {
    color: inherit !important;
}

/* ترجیح دائمی کاربر: لینک‌ها در تمام حالت‌ها بدون زیرخط هستند؛ Focus و خط‌خوردگی قیمت دست‌نخورده می‌مانند. */
.tm-app :is(a, [role="link"], .btn-link) {
    text-decoration: none !important;
}

.tm-app .card > .card-header a:not(.btn) {
    color: inherit !important;
    text-decoration-color: currentColor;
}

.tm-app .card-footer {
    color: var(--tm-text-color);
    background-color: var(--tm-surface-alt-bg);
    border-top-color: var(--tm-border-color);
}

.tm-app .form-label {
    margin-bottom: .45rem;
    color: var(--tm-head-color);
    font-weight: 600;
}

.tm-app .tm-placeholder1-label.form-label,
.tm-app .form-floating > label,
.tm-app .tm-placeholder1-field.form-floating > label {
    color: var(--tm-placeholder1-label-color);
    font-weight: 500;
    letter-spacing: 0;
    opacity: .9;
}

.tm-app .form-control,
.tm-app .form-select,
.tm-app .form-label,
.tm-app .form-check-label,
.tm-app .input-group-text,
.tm-app .form-text {
    font-family: var(--tm-font-family);
}

.tm-app .form-control,
.tm-app .form-select {
    min-height: 2.7rem;
    border-radius: .7rem;
    border-color: var(--tm-border-strong);
    color: var(--tm-text-color);
    background-color: var(--tm-surface-bg);
    font-size: .95rem;
    direction: rtl;
    text-align: right;
}

.tm-app .form-control:focus,
.tm-app .form-select:focus {
    border-color: #8cb6ff;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.tm-app textarea.form-control {
    min-height: 7rem;
}

.tm-app input.form-control[type="email"],
.tm-app input.form-control[type="number"],
.tm-app input.form-control[type="tel"],
.tm-app input.form-control[type="url"] {
    direction: rtl !important;
    text-align: right !important;
}

.tm-app .form-control::placeholder,
.tm-app textarea.form-control::placeholder {
    color: var(--tm-placeholder1-text-color);
    font-weight: 400;
    opacity: 1;
    direction: rtl;
    text-align: right;
}

.tm-app .form-floating > label {
    /* قرارداد تصویری مصوب My/Store/Create: ابتدای Label و مکان‌نما روی یک محور راست قرار می‌گیرند. */
    right: 0;
    left: auto;
    transform-origin: top right;
    transform: scale(.85) translateY(-.5rem) translateX(-.15rem);
}

.tm-app .form-floating:has(> :is(.form-control, .form-select), > .tm-field-counter-shell > :is(.form-control, .form-select)) > label {
    right: 0;
    left: auto;
    transform: scale(.85) translateY(-.5rem) translateX(-.15rem);
    transform-origin: top right;
}

/*
 * Label همه فیلدهای متنی همیشه در ناحیه بالای داخل کادر می‌ماند؛ بنابراین حالت خالی،
 * Autofill، مقدار اولیه و Focus هیچ‌کدام باعث هم‌پوشانی Label و متن نمی‌شوند.
 */
.tm-app .form-floating > :is(.form-control, .form-select),
.tm-app .form-floating > .tm-field-counter-shell > :is(.form-control, .form-select) {
    min-height: calc(3.5rem + 2px);
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}

.tm-app .form-floating > .tm-field-counter-shell {
    width: 100%;
}

.tm-app .form-floating > .tm-field-counter-shell > textarea.form-control {
    min-height: 8rem;
}

.tm-app .tm-placeholder1-auto-floating {
    width: 100%;
}

.tm-app .tm-placeholder1-auto-floating > .form-control,
.tm-app .tm-placeholder1-auto-floating > .form-select,
.tm-app .tm-placeholder1-auto-floating > .form-control-sm,
.tm-app .tm-placeholder1-auto-floating > .form-select-sm {
    min-height: 3.65rem;
    padding-top: 1.625rem;
    padding-bottom: .625rem;
    font-size: .95rem;
}

.tm-app .tm-placeholder1-auto-floating > textarea.form-control {
    min-height: 8rem;
}

.tm-app .tm-placeholder1-auto-floating > label {
    padding-top: 1rem;
    padding-bottom: .55rem;
}

.tm-app .form-floating > .form-control:focus ~ label,
.tm-app .form-floating > .form-control:not(:placeholder-shown) ~ label,
.tm-app .form-floating > .form-select ~ label,
.tm-app .tm-placeholder1-field.form-floating > .form-control:focus ~ label,
.tm-app .tm-placeholder1-field.form-floating > .form-control:not(:placeholder-shown) ~ label,
.tm-app .tm-placeholder1-field.form-floating > .form-select ~ label {
    color: var(--tm-placeholder1-label-color);
    font-weight: 500;
    opacity: .85;
}

/* در فیلد شناور فقط Label بالا نمایش داده می‌شود؛ Placeholder تکراری در هر عمقی باید نامرئی بماند. */
.tm-app .form-floating .form-control::placeholder,
.tm-app .form-floating .form-control-plaintext::placeholder,
.tm-app .form-floating textarea.form-control::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

.tm-app .tm-placeholder1-external-label-control::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

/* فقط آیکن تیک اعتبارسنجی Bootstrap حذف می‌شود؛ سایر حالت‌ها و ظاهر فیلد بدون تغییر می‌ماند. */
.tm-app .was-validated .form-control:valid,
.tm-app .form-control.is-valid {
    background-image: none !important;
}

.tm-app .was-validated .form-select:valid,
.tm-app .form-select.is-valid {
    --bs-form-select-bg-icon: none !important;
}

.tm-app .tm-dir-ltr,
.tm-app [dir="ltr"] {
    direction: ltr;
}

.tm-app .tm-dir-ltr .form-control,
.tm-app .tm-dir-ltr .form-select,
.tm-app [dir="ltr"] .form-control,
.tm-app [dir="ltr"] .form-select,
.tm-app [dir="ltr"] .form-label {
    direction: ltr;
    text-align: left;
}

.tm-app .tm-dir-rtl .form-control,
.tm-app .tm-dir-rtl .form-select,
.tm-app .tm-dir-rtl .form-label {
    direction: rtl;
    text-align: right;
}

.tm-app .tm-dir-ltr input.form-control[type="email"],
.tm-app .tm-dir-ltr input.form-control[type="number"],
.tm-app .tm-dir-ltr input.form-control[type="tel"],
.tm-app .tm-dir-ltr input.form-control[type="url"],
.tm-app [dir="ltr"] input.form-control[type="email"],
.tm-app [dir="ltr"] input.form-control[type="number"],
.tm-app [dir="ltr"] input.form-control[type="tel"],
.tm-app [dir="ltr"] input.form-control[type="url"] {
    direction: ltr !important;
    text-align: left !important;
}

.tm-app .form-select {
    text-align: right;
    text-align-last: right;
}

.tm-app .form-select option {
    direction: rtl;
    text-align: right;
}

.tm-app .tm-dir-ltr .form-select,
.tm-app [dir="ltr"] .form-select {
    text-align: left;
    text-align-last: left;
}

.tm-app .tm-dir-ltr .form-control::placeholder,
.tm-app [dir="ltr"] .form-control::placeholder,
.tm-app .tm-dir-ltr textarea.form-control::placeholder,
.tm-app [dir="ltr"] textarea.form-control::placeholder {
    direction: ltr;
    text-align: left;
}

.tm-app .form-check-input {
    /* رنگ پس‌زمینه checkbox و switch باید دست Bootstrap بماند تا حالت checked و knob toggle خراب نشود. */
    border-color: #9eb2cb;
}

.tm-app .form-check-input:checked,
.tm-app .form-check-input[type="checkbox"]:indeterminate {
    /* رنگ فعال toggle باید مثل Bootstrap بماند تا وضعیت فعال در همه صفحه‌ها واضح دیده شود. */
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.tm-app .btn {
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
    border-radius: .7rem;
    font-weight: 600;
}

.tm-app :is(a, button, label).btn {
    display: inline-flex;
}

.tm-app :is(a, button)[aria-label]:has(> :is(.bi, svg)):not(:has(> :not(.bi):not(svg):not(.visually-hidden))) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tm-app :is(a, button)[aria-label]:has(> :is(.bi, svg)):not(:has(> :not(.bi):not(svg):not(.visually-hidden))) > .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tm-app :is(a, button)[aria-label]:has(> :is(.bi, svg)):not(:has(> :not(.bi):not(svg):not(.visually-hidden))) > .bi::before {
    display: block;
    line-height: 1;
    vertical-align: 0;
}

.tm-app :is(a, button)[aria-label]:has(> :is(.bi, svg)):not(:has(> :not(.bi):not(svg):not(.visually-hidden))) > svg {
    display: block;
    margin: auto;
}

.tm-app .btn-sm {
    border-radius: .6rem;
}

/* رنگ عملیات از معنای دکمه می‌آید، نه از View یا رنگ قدیمی باقی‌مانده روی آن. */
.tm-app .btn.tm-action-add {
    color: #fff !important;
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.tm-app .btn.tm-action-add:hover,
.tm-app .btn.tm-action-add:focus-visible {
    color: #fff !important;
    background-color: #157347 !important;
    border-color: #146c43 !important;
}

.tm-app .btn.tm-action-submit {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.tm-app .btn.tm-action-submit:hover,
.tm-app .btn.tm-action-submit:focus-visible {
    color: #fff !important;
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
}

.tm-app .btn.tm-action-edit {
    color: #000 !important;
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.tm-app .btn.tm-action-edit:hover,
.tm-app .btn.tm-action-edit:focus-visible {
    color: #000 !important;
    background-color: #ffca2c !important;
    border-color: #ffc720 !important;
}

.tm-app .btn.tm-action-delete {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.tm-app .btn.tm-action-delete:hover,
.tm-app .btn.tm-action-delete:focus-visible {
    color: #fff !important;
    background-color: #bb2d3b !important;
    border-color: #b02a37 !important;
}

.tm-app .btn.tm-action-cancel {
    color: #6c757d !important;
    background-color: transparent !important;
    border-color: #6c757d !important;
}

.tm-app .btn.tm-action-cancel:hover,
.tm-app .btn.tm-action-cancel:focus-visible {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.tm-app .btn:is(.tm-action-add, .tm-action-submit, .tm-action-edit, .tm-action-delete, .tm-action-cancel):disabled,
.tm-app .btn:is(.tm-action-add, .tm-action-submit, .tm-action-edit, .tm-action-delete, .tm-action-cancel).disabled {
    opacity: .65;
}

/*
 * ردیف نهایی فرم باید تمام عرض موجود را مصرف کند؛ هر اقدام نیز سهم برابر می‌گیرد.
 * شرط «فقط فرزندهای btn» مانع اثرگذاری این قاعده روی نوارهای فیلتر و ابزارهای ترکیبی می‌شود.
 */
.tm-app .tm-form-actions,
.tm-app form :is(.d-flex, .card-footer, .modal-footer):has(> button.btn:is([type="submit"], :not([type]))):not(:has(> :not(.btn))):not(:has(> .btn-sm)),
.tm-app form :is(.d-flex, .card-footer, .modal-footer):has(> input.btn[type="submit"]):not(:has(> :not(.btn))):not(:has(> .btn-sm)) {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: .5rem !important;
    width: 100%;
}

.tm-app .tm-form-actions > .btn,
.tm-app form :is(.d-flex, .card-footer, .modal-footer):has(> button.btn:is([type="submit"], :not([type]))):not(:has(> :not(.btn))):not(:has(> .btn-sm)) > .btn,
.tm-app form :is(.d-flex, .card-footer, .modal-footer):has(> input.btn[type="submit"]):not(:has(> :not(.btn))):not(:has(> .btn-sm)) > .btn {
    width: 100% !important;
    min-width: 0;
    min-height: 2.75rem;
    padding-inline: .9rem;
    white-space: normal;
}

@media (max-width: 575.98px) {
    .tm-app .tm-form-actions,
    .tm-app form :is(.d-flex, .card-footer, .modal-footer):has(> button.btn:is([type="submit"], :not([type]))):not(:has(> :not(.btn))):not(:has(> .btn-sm)),
    .tm-app form :is(.d-flex, .card-footer, .modal-footer):has(> input.btn[type="submit"]):not(:has(> :not(.btn))):not(:has(> .btn-sm)),
    .tm-app :is(.d-flex, .card-footer, .modal-footer):has(> :is(.tm-action-add, .tm-action-submit, .tm-action-edit)):has(> .tm-action-cancel),
    .tm-app :is(div, footer):has(> :is(.tm-action-add, .tm-action-submit, .tm-action-edit)):has(> .tm-action-cancel):not(:has(> :not(.btn):not(input[type="hidden"]))) {
        display: grid !important;
        grid-auto-flow: row;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-columns: minmax(0, 1fr);
        align-items: stretch !important;
        justify-content: stretch !important;
        gap: .5rem !important;
        width: 100%;
    }

    .tm-app .tm-form-actions > .btn,
    .tm-app :is(.d-flex, .card-footer, .modal-footer):has(> :is(.tm-action-add, .tm-action-submit, .tm-action-edit)):has(> .tm-action-cancel) > .btn,
    .tm-app :is(div, footer):has(> :is(.tm-action-add, .tm-action-submit, .tm-action-edit)):has(> .tm-action-cancel):not(:has(> :not(.btn):not(input[type="hidden"]))) > .btn {
        width: 100% !important;
        min-width: 0;
        white-space: normal;
    }
}

.tm-app .alert {
    border-radius: .85rem;
}

.tm-app .list-group-item {
    border-color: var(--tm-border-color);
    color: var(--tm-text-color);
    background-color: var(--tm-surface-bg);
}

.tm-app .list-group-item.active {
    border-color: #0d6efd;
}

.tm-app .table-responsive,
.tm-app .table-responsive-sm,
.tm-app .table-responsive-md,
.tm-app .table-responsive-lg,
.tm-app .table-responsive-xl,
.tm-app .table-responsive-xxl,
.tm-app .tm-table-wrapper {
    border: 1px solid var(--tm-border-color);
    border-radius: .5rem !important;
    background-color: var(--tm-surface-bg);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.tm-app .table-responsive > .table,
.tm-app .table-responsive-sm > .table,
.tm-app .table-responsive-md > .table,
.tm-app .table-responsive-lg > .table,
.tm-app .table-responsive-xl > .table,
.tm-app .table-responsive-xxl > .table,
.tm-app .tm-table-wrapper > .table {
    margin-bottom: 0;
}

.tm-app .table,
.tm-app .table.tm-table {
    --bs-table-border-color: var(--tm-border-color);
    --bs-table-color: var(--tm-text-color);
    --bs-table-bg: var(--tm-surface-bg);
    --bs-table-striped-color: var(--tm-text-color);
    --bs-table-striped-bg: var(--tm-table-striped-bg);
    --bs-table-hover-color: var(--tm-text-color);
    --bs-table-hover-bg: var(--tm-table-hover-bg);
    color: var(--tm-text-color);
}

.tm-app .table > :not(caption) > * > * {
    vertical-align: middle;
    padding: .72rem .8rem;
}

.tm-app .table > thead > tr > th {
    background-color: var(--tm-head-bg);
    color: var(--tm-head-color);
    border-inline-start: 1px solid var(--tm-border-color);
    border-bottom-color: var(--tm-border-strong);
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.tm-app .table > thead > tr > th:last-child {
    border-inline-end: 1px solid var(--tm-border-color);
}

.tm-app .table > thead > tr > th > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    color: inherit !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.tm-app .table thead.table-light th,
.tm-app .table thead.table-primary th,
.tm-app .table thead.table-secondary th,
.tm-app .table thead.table-dark th,
.tm-app .table thead[class*="table-"] th {
    background-color: var(--tm-head-bg);
    color: var(--tm-head-color);
}

.tm-app .table td .btn {
    margin: .1rem;
}

.tm-app .tm-store-menu-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--tm-border-color);
    border-radius: .5rem;
    background-color: var(--tm-surface-bg);
    -webkit-overflow-scrolling: touch;
}

.tm-app .tm-store-menu-table-wrap > .table {
    width: 100%;
    min-width: 100%;
    margin-bottom: 0;
}

.tm-app .tm-store-menu-order-cell {
    white-space: nowrap;
}

.tm-app .tm-store-menu-order-content {
    display: inline-flex;
    min-width: 3.75rem;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    vertical-align: middle;
}

.tm-app .tm-store-menu-drag-handle,
.tm-app .tm-drag-handle {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: var(--tm-muted-color);
    background: transparent;
    font-size: 1rem;
    line-height: 1;
    cursor: grab;
    touch-action: none;
}

.tm-app .tm-store-menu-drag-handle:active,
.tm-app .tm-drag-handle:active,
.tm-app tr[draggable="true"]:active {
    cursor: grabbing;
}

.tm-app tr[draggable="true"] {
    cursor: grab;
    user-select: none;
}

.tm-app .tm-store-menu-order-content :is(.order-badge, [data-order-badge]) {
    display: inline-flex;
    min-width: 1.4rem;
    min-height: 1.4rem;
    align-items: center;
    justify-content: center;
    padding: .2rem .35rem;
    border-radius: .375rem;
    color: var(--tm-text-color) !important;
    background-color: var(--tm-surface-alt-bg) !important;
    font-weight: 600;
    line-height: 1;
}

.tm-app .table .text-nowrap .btn {
    white-space: nowrap;
}

.tm-app .table thead th a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    color: inherit;
    text-decoration: none !important;
    white-space: nowrap;
}

.tm-app .table thead th a:hover,
.tm-app .table thead th a:focus {
    color: inherit;
    text-decoration: none !important;
}

.tm-app .table thead th a :is(.bi-arrow-down-up, .bi-chevron-up, .bi-chevron-down) {
    width: 1rem;
    color: inherit;
    font-size: .72rem;
    line-height: 1;
}

.tm-app .tm-sortable,
.tm-app .tm-sortable-head {
    cursor: pointer;
    user-select: none;
}

.tm-app .tm-sort-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.tm-app .tm-sortable .tm-sort-icon {
    display: inline-flex;
    width: 1rem;
    align-items: center;
    justify-content: center;
    visibility: visible;
    color: var(--bs-secondary-color);
    font-size: .85rem;
    line-height: 1;
}

.tm-app .tm-sortable.tm-sorted .tm-sort-icon {
    visibility: visible;
}

.tm-app .tm-drag-handle {
    cursor: grab;
    color: #475569;
    touch-action: none;
    user-select: none;
}

.tm-app .tm-admin-plan-page #planOrderBody tr[draggable="true"] {
    cursor: grab;
}

.tm-app .tm-admin-plan-page #planOrderBody tr[draggable="true"]:active {
    cursor: grabbing;
}

.tm-app.tm-plan-reordering,
.tm-app.tm-plan-reordering * {
    user-select: none;
}

.tm-app.tm-plan-reordering .tm-drag-handle {
    cursor: grabbing;
}

.tm-app tr.sortable-dragging {
    opacity: .55;
}

.tm-app tr.drag-over {
    outline: 2px dashed #0d6efd;
    outline-offset: -2px;
}

.tm-app .tm-plan-toggle .tm-arrow {
    display: inline-block;
    transition: transform .2s ease;
    font-size: 18px;
    line-height: 1;
}

.tm-app .tm-plan-toggle[aria-expanded="true"] .tm-arrow {
    transform: rotate(180deg);
}

.tm-app .tm-plan-quota-summary {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: .5rem .75rem !important;
}

/* رنگ مشترک محدودیت ادمین در فهرست، فرم و پیام؛ بر انقضای پلن اولویت دارد. */
.tm-app { --tm-moderation-bg: #fff7df; --tm-moderation-fg: #713f12; --tm-moderation-border: #dca849; }
.tm-app[data-bs-theme="dark"], [data-bs-theme="dark"] .tm-app {
    --tm-moderation-bg: #553015; --tm-moderation-fg: #ffdab0; --tm-moderation-border: #bc7026;
}
.tm-app .tm-plan-expired {
    background: var(--bs-danger-bg-subtle) !important;
    color: var(--bs-danger-text-emphasis) !important;
    border-color: var(--bs-danger-border-subtle) !important;
}

.tm-app .tm-plan-admin-disabled {
    background: var(--tm-moderation-bg) !important;
    color: var(--tm-moderation-fg) !important;
    border-color: var(--tm-moderation-border) !important;
}

/* سلول و ستون sticky نباید رنگ وضعیت کل ردیف فروشگاه را بپوشانند. */
.tm-panel-ui .store-record.tm-plan-expired > td {
    --bs-table-bg: var(--bs-danger-bg-subtle);
    --bs-table-accent-bg: transparent;
    background-color: var(--bs-danger-bg-subtle) !important;
}

.tm-panel-ui .store-record.tm-plan-admin-disabled > td {
    --bs-table-bg: var(--tm-moderation-bg);
    --bs-table-accent-bg: transparent;
    background-color: var(--tm-moderation-bg) !important;
}

.tm-app [data-tm-plan-status-notice] {
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.tm-app .tm-plan-quota-summary > .small {
    min-width: 0;
}

.tm-app .tm-plan-quota-summary > .small > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .35rem .75rem;
    margin: 0;
}

.tm-app .tm-plan-quota-summary > .small > .row > [class*="col-"] {
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
}

.tm-app .tm-plan-quota-summary > .tm-plan-toggle {
    align-self: center !important;
    flex: none;
    white-space: nowrap;
}

@media (min-width: 850px) {
    .tm-app .tm-plan-quota-summary > .small > .row {
        grid-template-columns: minmax(10rem, .8fr) minmax(15rem, 1.2fr);
    }

    .tm-app .tm-plan-quota-summary > .small > .row > [class*="col-"]:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .tm-app .tm-plan-quota-summary {
        gap: .4rem .55rem !important;
        padding: .75rem;
    }

    .tm-app .tm-plan-quota-summary > .tm-plan-toggle {
        padding-inline: .6rem;
    }
}

.tm-app .tm-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
    line-height: 1;
}

.tm-app .tm-social-off {
    opacity: .3;
    filter: grayscale(1);
}

.tm-app .tm-social-on {
    opacity: 1;
}

.tm-app .plan-card {
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tm-app .plan-card:hover {
    cursor: pointer;
    border-color: #0d6efd !important;
    transform: translateY(-1px);
}

.tm-app input[type="radio"]:checked + .plan-card {
    background-color: #e7f0ff;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .2) !important;
}

.tm-app .tm-plan-grid {
    row-gap: 1rem;
}

/* جابه‌جایی کارت زیر ماوس می‌تواند کلیک لبهٔ نام یا کلید را از دست بدهد. */
.tm-app .tm-plan-grid .plan-card:hover { transform: none; }

.tm-app .tm-plan-card-label {
    overflow: hidden;
    border-radius: .5rem;
    text-align: start;
}

.tm-app .plan-radio:focus-visible + .tm-plan-card-label {
    outline: 3px solid var(--bs-primary);
    outline-offset: 3px;
}

.tm-app .tm-plan-card-label .card-body {
    padding: 1rem;
}

.tm-app .tm-plan-card-label .card-footer {
    background-color: var(--tm-surface-alt-bg);
    border-top-color: var(--tm-border-color);
}

.tm-app .tm-plan-select-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: .25rem .55rem;
    border: 1px solid var(--tm-border-color);
    border-radius: .5rem;
    color: var(--tm-muted-color);
    background: var(--tm-surface-alt-bg);
    font-size: .78rem;
    font-weight: 700;
}

.tm-app input[type="radio"]:checked + .tm-plan-card-label .tm-plan-select-badge {
    color: #fff;
    border-color: #0d6efd;
    background: #0d6efd;
}

.tm-app input[type="radio"]:checked + .tm-plan-card-label .card-footer {
    background-color: #dbeafe;
}

.tm-app .tm-plan-description {
    min-height: 42px;
}

.tm-app .tm-plan-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin: .75rem 0;
}

.tm-app .tm-plan-summary-item {
    min-height: 58px;
    padding: .5rem;
    border: 1px solid var(--tm-border-color);
    border-radius: .5rem;
    background: var(--tm-surface-alt-bg);
}

.tm-app .tm-plan-summary-item span,
.tm-app .tm-plan-feature-grid span {
    display: block;
    color: var(--tm-muted-color);
    font-size: .78rem;
}

.tm-app .tm-plan-summary-item strong {
    display: block;
    margin-top: .15rem;
    color: var(--tm-text-color);
    font-size: .98rem;
}

.tm-app .tm-plan-summary-products strong {
    color: #0d6efd;
    font-size: 1.18rem;
}

.tm-app .tm-plan-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem;
}

.tm-app .tm-plan-feature-grid > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .38rem 0;
    border-bottom: 1px dashed var(--tm-border-color);
}

.tm-app .tm-plan-feature-grid > div:last-child {
    border-bottom: 0;
}

.tm-app .tm-plan-feature-grid strong {
    flex: 0 0 auto;
    color: var(--tm-text-color);
    font-size: .88rem;
}

.tm-app .store-card {
    border: 1px solid var(--tm-border-color);
    border-radius: .8rem;
}

.tm-app .pagination .page-link {
    border-color: var(--tm-border-strong);
    border-radius: .55rem;
    margin: 0 .1rem;
}

.tm-suggest-list {
    z-index: 2000;
}

.tm-suggest-dropdown {
    z-index: 2000;
    top: 58px;
    max-height: 260px;
    overflow: auto;
}

.tm-plan-logo {
    max-height: 100px;
    object-fit: contain;
}

.tm-plan-logo-small { width:32px; height:32px; object-fit:contain; flex-shrink:0; }

.tm-plan-logo-frame {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-bottom: 1px solid var(--tm-border-color);
}

.tm-plan-logo-placeholder {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    background: #f8f9fa;
}

.tm-h-22 {
    height: 22px;
}

.tm-h-180 {
    height: 180px;
}

.tm-max-h-72 {
    max-height: 72px;
}

.tm-max-h-100 {
    max-height: 100px;
}

.tm-max-h-360 {
    max-height: 360px;
}

.tm-size-50 {
    width: 50px;
    height: 50px;
}

.tm-img-60 {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.tm-img-60-rounded {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.tm-img-90 {
    width: 90px;
    height: 90px;
    object-fit: cover;
}

.tm-img-92 {
    width: 92px;
    height: 92px;
    object-fit: cover;
}

.tm-img-110 {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
}

.tm-img-64-rounded {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.tm-img-42 {
    width: 42px;
    height: 42px;
    object-fit: cover;
}

.tm-product-image {
    object-fit: var(--tm-product-media-fit);
    background-color: var(--tm-product-media-bg);
}

.tm-image-card-item {
    width: 120px;
    cursor: move;
    margin-top: 15px;
    margin-left: 15px;
}

.tm-image-remove-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    line-height: 1;
    top: -12px;
    left: -12px;
    z-index: 1000;
}

.tm-progress-h-6 { height: 6px; }
.tm-progress-h-7 { height: 7px; }

.tm-w-40 { width: 40px; }
.tm-w-60 { width: 60px; }
.tm-w-70 { width: 70px; }
.tm-w-80 { width: 80px; }
.tm-w-90 { width: 90px; }
.tm-w-110 { width: 110px; }
.tm-w-120 { width: 120px; }
.tm-w-130 { width: 130px; }
.tm-w-140 { width: 140px; }
.tm-w-150 { width: 150px; }
.tm-w-160 { width: 160px; }
.tm-w-170 { width: 170px; }
.tm-w-180 { width: 180px; }
.tm-w-220 { width: 220px; }
.tm-w-240 { width: 240px; }
.tm-w-420 { width: 420px; }
.tm-wp-5 { width: 5%; }

.tm-app .tm-plan-page .card,
.tm-app .tm-plan-page .form-control,
.tm-app .tm-plan-page .form-select,
.tm-app .tm-plan-page .form-label,
.tm-app .tm-plan-page .table,
.tm-app .tm-plan-page .btn,
.tm-app .tm-plan-page .page-link {
    font-family: var(--tm-font-family) !important;
}

.tm-app .tm-store-filter-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: nowrap;
}

.tm-app .tm-store-filter-row .form-select {
    flex: 1 1 auto;
    min-width: 0;
}

.tm-app .tm-store-add-btn {
    white-space: nowrap;
    min-width: 190px;
}

.tm-app .tm-operations-col {
    width: 36%;
    min-width: 360px;
    white-space: nowrap;
}

.tm-app .tm-operations-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: .25rem;
}

.tm-app .tm-tree-toggle {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tm-app .tm-image-card-wrapper {
    margin: 15px !important;
    position: relative;
    width: 120px;
    height: 120px;
    cursor: grab;
    background-color: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tm-app .tm-image-card-wrapper:active {
    cursor: grabbing;
}

.tm-app .tm-image-card-wrapper img {
    pointer-events: none;
    width: 100%;
    height: 100%;
    object-fit: var(--tm-product-media-fit);
    background-color: var(--tm-product-media-bg);
    border-radius: 6px;
}

.tm-app .tm-delete-btn-corner {
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 1000;
    width: 24px;
    height: 24px;
    padding: 0;
    line-height: 22px;
    border-radius: 50%;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.tm-app .tm-upload-overlay {
    background: rgba(0, 0, 0, .35);
    border-radius: 10px;
}

.tm-app .tm-plan-details-row td {
    background: #f8f9fa;
    white-space: normal !important;
}

.tm-app .tm-plan-details-row .row {
    margin-right: 0;
    margin-left: 0;
}

.tm-app .tm-plan-details-row [class^="col-"],
.tm-app .tm-plan-details-row [class*=" col-"] {
    min-width: 0;
    padding-right: .35rem;
    padding-left: .35rem;
}

.tm-app .tm-plan-details-row .text-nowrap {
    white-space: normal !important;
}

.tm-app .tm-plan-details-row .card,
.tm-app .tm-plan-details-row .list-group-item {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tm-app .tm-plan-details-row .tm-metric-label,
.tm-app .tm-plan-details-row .tm-metric-value {
    min-width: 0;
}

.tm-app .tm-plan-details-row .tm-metric-value {
    text-align: start;
}

.tm-app .tm-plan-details-row .progress {
    min-width: 0;
}

.tm-app .tm-social i {
    font-size: 1.25rem;
}

.tm-app .tm-social .tm-off {
    opacity: .25;
    filter: grayscale(100%);
}

.tm-app #storesTable .plan-td .tm-plan-toggle {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    flex-wrap: wrap;
}

.tm-app #storesTable .plan-td .plan-name-text,
.tm-app #storesTable .plan-end-td .plan-end-date {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tm-app .tm-cell-nowrap {
    white-space: nowrap;
}

.tm-app .ac-box {
    position: relative;
}

.tm-app .ac-list {
    position: absolute;
    z-index: 2000;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: .5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    max-height: 260px;
    overflow: auto;
    display: none;
}

.tm-app .ac-item {
    padding: .5rem .75rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-app .ac-item:hover {
    background: #f8f9fa;
}

.tm-app .product-row {
    border: 1px solid var(--tm-border-color);
    border-radius: .75rem;
    padding: .75rem;
}

.tm-app .combo-row {
    border: 1px dashed var(--tm-border-color);
    border-radius: .75rem;
    padding: .5rem .75rem;
}

.tm-app .tm-product-bulk-selection-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(.25rem, 1vw, .75rem);
    min-width: 0;
    padding: .5rem .75rem;
}

.tm-app .tm-product-bulk-select-all {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.tm-app .tm-product-bulk-select-all .form-check-input {
    float: none;
    flex: 0 0 auto;
    margin: 0;
    margin-inline-end: .5rem;
}

.tm-app .tm-product-bulk-select-all .form-check-label {
    display: inline-flex;
    align-items: center;
    line-height: 1.35;
}

.tm-app .tm-product-bulk-product-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: .625rem;
}

.tm-app .tm-product-bulk-product-image,
.tm-app .tm-product-bulk-product-image-placeholder {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    border: 1px solid var(--tm-border-color);
    border-radius: .625rem;
}

.tm-app .tm-product-bulk-product-image {
    display: block;
    object-fit: var(--tm-product-media-fit);
    background: var(--tm-surface-alt-bg);
}

.tm-app .tm-product-bulk-product-image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-muted-color);
    background: var(--tm-surface-alt-bg);
}

.tm-panel-ui .tm-product-list-image,
.tm-panel-ui .tm-product-list-image-placeholder {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--tm-border-color);
    border-radius: .625rem;
}

.tm-panel-ui .tm-product-list-image {
    display: inline-block;
    object-fit: var(--tm-product-media-fit);
    background: var(--tm-surface-alt-bg);
}

.tm-panel-ui .tm-product-list-image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-muted-color);
    background: var(--tm-surface-alt-bg);
}

.tm-panel-ui .tm-product-combination-summary {
    display: flex;
    align-items: center;
    gap: .875rem;
}

.tm-panel-ui .tm-product-combination-primary-image {
    width: 4rem;
    height: 4rem;
    flex: 0 0 4rem;
    object-fit: var(--tm-product-media-fit);
    border: 1px solid var(--tm-border-color);
    border-radius: .75rem;
    background: var(--tm-surface-bg);
}

.tm-panel-ui .tm-discount-mode-box {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: calc(3.5rem + 2px);
    padding: 1.45rem .75rem .45rem;
    border: 1px solid var(--tm-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--tm-surface-bg);
}

.tm-panel-ui .tm-discount-mode-label {
    position: absolute;
    inset-block-start: .35rem;
    inset-inline-start: .75rem;
    color: var(--tm-muted-color);
    font-size: .75rem;
    line-height: 1;
    pointer-events: none;
}

.tm-panel-ui .tm-discount-mode-options {
    min-width: 0;
    font-size: .875rem;
}

.tm-panel-ui .tm-discount-mode-options .form-check {
    white-space: nowrap;
}

.tm-panel-ui .tm-product-combination-discount-form > *,
.tm-panel-ui .tm-product-combination-discount-form .row > * {
    min-width: 0;
}

.tm-app .tm-product-bulk-selection-counts {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: .4rem;
    min-width: 0;
    font-size: clamp(.68rem, 1.3vw, .82rem);
    white-space: normal;
    flex-wrap: wrap;
}

.tm-app .tm-product-bulk-selection-counts > span,
.tm-app .tm-product-bulk-selection-actions,
.tm-app .tm-product-bulk-selection-actions .btn {
    display: inline-flex;
    align-items: center;
}

.tm-app .tm-product-bulk-selection-counts > span {
    gap: .2rem;
}

.tm-app .tm-product-bulk-selection-actions {
    flex: 0 0 auto;
    gap: .35rem;
    margin-inline-start: auto;
}

.tm-app .tm-product-bulk-selection-actions .btn {
    justify-content: center;
    gap: .3rem;
    min-height: var(--tm-button-height);
    padding: .375rem .75rem;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .tm-panel-ui .tm-product-combination-primary-image {
        width: 3.25rem;
        height: 3.25rem;
        flex-basis: 3.25rem;
    }

    .tm-app .tm-product-bulk-selection-toolbar {
        gap: .25rem;
        padding: .35rem .75rem;
    }

    .tm-app .tm-product-bulk-selection-counts {
        gap: .25rem;
    }

    .tm-app .tm-product-bulk-selection-counts .badge {
        padding: .25em .4em;
    }

    .tm-app .tm-product-bulk-selection-actions {
        gap: .25rem;
    }

    .tm-app .tm-product-bulk-selection-actions .btn {
        width: var(--tm-button-height);
        min-width: var(--tm-button-height);
        height: var(--tm-button-height);
        padding: 0;
    }
}

.tm-app .combo-indent {
    padding-right: 1.75rem;
}

.tm-app .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* کد تخفیف شناسهٔ انگلیسی است؛ فونت فارسی نباید شکل ارقام آن را تغییر دهد. */
.tm-app .tm-discount-code {
    font-family: Tahoma, Arial, sans-serif !important;
    direction: ltr;
    unicode-bidi: isolate;
}

.tm-app .sell-price {
    border-width: 2px !important;
    border-color: #198754 !important;
    background-color: #fff !important;
    font-weight: 700;
}

.tm-app .muted {
    color: var(--tm-muted-color);
    font-size: .9rem;
}

.tm-app .tm-field {
    position: relative;
}

.tm-app .tm-field-label {
    position: absolute;
    top: -10px;
    right: 12px;
    padding: 0 8px;
    font-size: .85rem;
    color: var(--tm-muted-color);
    background: var(--tm-surface-bg);
    pointer-events: none;
}

.tm-app .bg-light .tm-field-label {
    background: var(--tm-surface-alt-bg);
}

.tm-app .tm-field-control {
    padding-top: 1.15rem;
    padding-bottom: .35rem;
}

.tm-app .discount-panel .form-control::placeholder {
    text-align: right;
}

.tm-app .discount-mode-label {
    font-size: .85rem;
}

.tm-app .discount-action-hint {
    display: block;
    font-size: .85rem;
}

.tm-app .footer {
    background-color: var(--tm-surface-bg);
    border-top-color: var(--tm-border-color) !important;
}

/* کلاس‌های ثابت Bootstrap و پروژه در حالت تیره با متغیرهای مرکزی هماهنگ می‌شوند. */
[data-bs-theme="dark"] .tm-app .text-dark {
    color: var(--tm-text-color) !important;
}

[data-bs-theme="dark"] .tm-app .text-muted {
    color: var(--tm-muted-color) !important;
}

[data-bs-theme="dark"] .tm-app .bg-white,
[data-bs-theme="dark"] .tm-app .bg-light,
[data-bs-theme="dark"] .tm-app .bg-body {
    color: var(--tm-text-color) !important;
    background-color: var(--tm-surface-bg) !important;
}

[data-bs-theme="dark"] .tm-app .border,
[data-bs-theme="dark"] .tm-app .border-top,
[data-bs-theme="dark"] .tm-app .border-bottom,
[data-bs-theme="dark"] .tm-app .border-start,
[data-bs-theme="dark"] .tm-app .border-end {
    border-color: var(--tm-border-color) !important;
}

[data-bs-theme="dark"] .tm-app .dropdown-menu {
    border-color: var(--tm-border-color);
    background-color: var(--tm-surface-bg);
    box-shadow: var(--tm-shadow-sm);
}

[data-bs-theme="dark"] .tm-app .dropdown-item {
    color: var(--tm-text-color);
}

[data-bs-theme="dark"] .tm-app .dropdown-item:hover,
[data-bs-theme="dark"] .tm-app .dropdown-item:focus {
    color: var(--tm-nav-hover-color);
    background-color: var(--tm-nav-hover-bg);
}

[data-bs-theme="dark"] .tm-app .navbar .tm-top-nav-link:not(.active):not([aria-current="page"]) {
    color: var(--tm-text-color) !important;
}

[data-bs-theme="dark"] .tm-app .table-light,
[data-bs-theme="dark"] .tm-app .table-primary,
[data-bs-theme="dark"] .tm-app .table-secondary {
    --bs-table-color: var(--tm-head-color);
    --bs-table-bg: var(--tm-head-bg);
    --bs-table-border-color: var(--tm-border-color);
}

[data-bs-theme="dark"] .tm-app .input-group-text,
[data-bs-theme="dark"] .tm-app .form-control:disabled,
[data-bs-theme="dark"] .tm-app .form-select:disabled {
    color: var(--tm-muted-color);
    border-color: var(--tm-border-color);
    background-color: var(--tm-surface-alt-bg);
}

[data-bs-theme="dark"] .tm-app .tm-plan-logo-frame,
[data-bs-theme="dark"] .tm-app .tm-plan-logo-placeholder,
[data-bs-theme="dark"] .tm-app .tm-plan-details-row td,
[data-bs-theme="dark"] .tm-app .tm-image-card-wrapper,
[data-bs-theme="dark"] .tm-app .ac-list,
[data-bs-theme="dark"] .tm-app .tm-suggest-dropdown {
    color: var(--tm-text-color);
    border-color: var(--tm-border-color);
    background-color: var(--tm-surface-alt-bg);
}

[data-bs-theme="dark"] .tm-app .ac-item:hover {
    background-color: var(--tm-nav-hover-bg);
}

[data-bs-theme="dark"] .tm-app .sell-price {
    color: #212529 !important;
    background-color: #fff !important;
}

/* بخش‌های عمومی فروشگاه که رنگ‌های ثابت داشتند از طریق Layout به حالت تیره واکنش می‌دهند. */
[data-bs-theme="dark"] .tm-app .tm-digi-menu-bar {
    border-bottom-color: var(--tm-border-color);
    background: linear-gradient(90deg, var(--tm-surface-alt-bg) 0%, var(--tm-surface-bg) 100%);
}

[data-bs-theme="dark"] .tm-app .tm-digi-mega-menu,
[data-bs-theme="dark"] .tm-app .tm-digi-cat-list,
[data-bs-theme="dark"] .tm-app .tm-digi-panels,
[data-bs-theme="dark"] .tm-app .tm-store-categories-offcanvas {
    color: var(--tm-text-color);
    border-color: var(--tm-border-color);
    background: var(--tm-surface-bg);
}

[data-bs-theme="dark"] .tm-app .tm-digi-cat-item,
[data-bs-theme="dark"] .tm-app .tm-digi-menu-shortcut,
[data-bs-theme="dark"] .tm-app .tm-digi-option-link,
[data-bs-theme="dark"] .tm-app .tm-store-categories-offcanvas .list-group-item,
[data-bs-theme="dark"] .tm-app .tm-store-categories-offcanvas .accordion-button,
[data-bs-theme="dark"] .tm-app .tm-store-products-card .tm-sort-chip {
    color: var(--tm-text-color);
    border-color: var(--tm-border-color);
    background: var(--tm-surface-alt-bg);
}

[data-bs-theme="dark"] .tm-app .tm-digi-cat-meta,
[data-bs-theme="dark"] .tm-app .tm-digi-option-link small,
[data-bs-theme="dark"] .tm-app .tm-store-categories-offcanvas .tm-offcanvas-option-link small,
[data-bs-theme="dark"] .tm-app .tm-digi-menu-current {
    color: var(--tm-muted-color) !important;
}

[data-bs-theme="dark"] .tm-app .tm-digi-subpanel {
    color: var(--tm-text-color);
    border-color: var(--tm-border-color);
    background: var(--tm-surface-alt-bg);
}

[data-bs-theme="dark"] .tm-app .tm-digi-menu-shortcut:hover,
[data-bs-theme="dark"] .tm-app .tm-digi-option-link:hover,
[data-bs-theme="dark"] .tm-app .tm-digi-option-link.active,
[data-bs-theme="dark"] .tm-app .tm-store-products-card .tm-sort-chip:hover,
[data-bs-theme="dark"] .tm-app .tm-store-products-card .tm-sort-chip.active,
[data-bs-theme="dark"] .tm-app .tm-store-categories-offcanvas .list-group-item:hover,
[data-bs-theme="dark"] .tm-app .tm-store-categories-offcanvas .list-group-item.active {
    color: var(--tm-nav-hover-color);
    border-color: var(--tm-active-bg);
    background: var(--tm-nav-hover-bg);
}

/* منوی پایین موبایل نیز از همان Theme عمومی Layout استفاده می‌کند. */
[data-bs-theme="dark"] .tm-app .tm-mobile-bottom-nav,
[data-bs-theme="dark"] .tm-app .tm-global-mobile-bottom-nav {
    border-top-color: var(--tm-border-color);
    background: var(--tm-surface-bg);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .32);
}

[data-bs-theme="dark"] .tm-app .tm-mobile-bottom-nav-item,
[data-bs-theme="dark"] .tm-app .tm-global-mobile-bottom-nav-item {
    color: var(--tm-muted-color);
}

[data-bs-theme="dark"] .tm-app .tm-mobile-bottom-nav-item.active,
[data-bs-theme="dark"] .tm-app .tm-mobile-bottom-nav-item:hover,
[data-bs-theme="dark"] .tm-app .tm-global-mobile-bottom-nav-item.active,
[data-bs-theme="dark"] .tm-app .tm-global-mobile-bottom-nav-item:hover {
    color: var(--tm-nav-hover-color);
}

/* استایل‌های کمکی صفحه‌های سنگین ادمین بعد از Layout هم با !important قابل کنترل می‌مانند. */
[data-bs-theme="dark"] .tm-app .tm-admin-heavy-page .card-body > .d-flex,
[data-bs-theme="dark"] .tm-app .tm-admin-heavy-page .table-responsive,
[data-bs-theme="dark"] .tm-app .tm-admin-heavy-page .alert + .card {
    color: var(--tm-text-color) !important;
    border-color: var(--tm-border-color) !important;
    background: var(--tm-surface-bg) !important;
}

@media (max-width: 991.98px) {
    .tm-app .card {
        border-radius: .5rem !important;
    }

    .tm-app .card-header .d-flex {
        flex-wrap: wrap;
        gap: .5rem;
    }

    .tm-app .card-body {
        padding: .9rem;
    }

    .tm-app .btn {
        min-height: 2.55rem;
    }

    .tm-app .table > :not(caption) > * > * {
        padding: .62rem .66rem;
        font-size: .88rem;
    }

    .tm-app .table td.text-nowrap {
        white-space: normal !important;
        min-width: 11rem;
    }

    .tm-app .table td .btn {
        width: 100%;
        margin: .15rem 0;
    }

    .tm-app .navbar .navbar-nav .btn {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .tm-app .tm-store-filter-row {
        flex-wrap: wrap;
    }

    .tm-app .tm-store-add-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .tm-app .tm-tree-toggle {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

@media (max-width: 575.98px) {
    .tm-app .container,
    .tm-app .container-fluid {
        padding-right: .65rem;
        padding-left: .65rem;
    }

    .tm-app .table-responsive,
    .tm-app .tm-table-wrapper {
        border-radius: .5rem !important;
    }
}

/* ==========================================================================
   Migrated Admin/My component compatibility layer
   Rules below are centralized here so Views never own fixed UI styling.
   ========================================================================== */
/* رسانه و هویت مانیتورینگ؛ یک قرارداد مشترک برای فهرست و مودال. */
.tm-panel-ui .tm-monitoring-avatar { width: 36px; height: 36px; font-size: 1rem; }
.tm-panel-ui .tm-monitoring-owner { min-width: 0; overflow-wrap: break-word; word-break: normal; }
.tm-panel-ui .tm-monitoring-owner > div:last-child { min-width: 0; flex: 1 1 auto; }
.tm-panel-ui .tm-monitoring-change-image { display: block; width: 100%; max-width: 320px; height: 180px; object-fit: contain; border-radius: .5rem; }
.tm-panel-ui .tm-monitoring-thumbnail { flex: 0 0 4.5rem; width: 4.5rem; height: 4.5rem; display: grid; place-items: center; overflow: hidden; }
.tm-panel-ui .tm-monitoring-thumbnail > img { width: 100%; height: 100%; object-fit: contain; }
.tm-catalog-thumb-wrap { position: relative; flex: none; }
.tm-catalog-thumb-wrap .tm-monitoring-thumbnail:disabled { opacity: 1; }
.tm-catalog-more { max-width: 100%; }
.tm-catalog-more > summary { list-style: none; }
.tm-catalog-more > summary::-webkit-details-marker { display: none; }
.tm-catalog-more[open] > a { display: block; margin-block-start: .3rem; }
.tm-catalog-diffs { border-block-start: 1px solid var(--bs-border-color); }
.tm-catalog-change { display: grid; gap: .35rem; min-width: 0; padding-block: .4rem; color: var(--bs-body-color); }
.tm-catalog-diffs .tm-catalog-change + .tm-catalog-change { border-block-start: 1px solid var(--bs-border-color); }
.tm-catalog-change-title { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-size: .875rem; overflow-wrap: anywhere; }
.tm-catalog-impact { font-weight: 600; color: var(--bs-primary-text-emphasis); }
.tm-catalog-change-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
.tm-catalog-change-pair > div, .tm-catalog-image-side { display: flex; flex-wrap: wrap; align-content: start; align-items: baseline; gap: .15rem .5rem; min-width: 0; padding: .35rem .55rem; background-color: var(--bs-tertiary-bg); border-radius: .375rem; }
.tm-catalog-side-label { font-size: .75rem; color: var(--bs-secondary-color); }
.tm-catalog-value { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: .875rem; }
.tm-catalog-edited-text { background-color: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }
.tm-catalog-diffs .tm-catalog-value { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tm-catalog-image-pair { padding: 0; border: 0; color: inherit; background: transparent; text-align: start; }
.tm-catalog-image-pair:not(:disabled) { cursor: zoom-in; }
.tm-catalog-image-side { align-items: center; }
.tm-catalog-image-side > img { width: 4.5rem; height: 3.5rem; object-fit: contain; }
.tm-catalog-monitoring-detail .tm-catalog-image-side > img { width: min(100%, 11rem); height: 6.75rem; }
.tm-catalog-image-dialog { width: min(64rem, calc(100vw - 1rem)); max-width: 100%; max-height: calc(100dvh - 1rem); overflow: auto; overscroll-behavior: contain; margin: auto; padding: .75rem; border: 1px solid var(--bs-border-color); border-radius: .75rem; background: var(--bs-body-bg); color: var(--bs-body-color); }
.tm-catalog-image-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.tm-catalog-image-dialog [hidden] { display: none !important; }
.tm-catalog-viewer-head, .tm-catalog-viewer-tools, .tm-catalog-zoom-tools, .tm-catalog-swipe-control { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tm-catalog-viewer-head { justify-content: space-between; margin-block-end: .5rem; }
.tm-catalog-viewer-panes { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; height: min(55vh, 34rem); height: min(55dvh, 34rem); }
.tm-catalog-viewer-panes.is-zoomed { cursor: grab; touch-action: none; }
.tm-catalog-viewer-panes.is-zoomed:active { cursor: grabbing; }
.tm-catalog-viewer-panes.is-single, .tm-catalog-viewer-panes.is-swipe { grid-template-columns: 1fr; }
.tm-catalog-viewer-pane { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: .45rem; }
.tm-catalog-viewer-pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: translate(var(--catalog-pan-x,0%), var(--catalog-pan-y,0%)) scale(var(--catalog-zoom,1)); user-select: none; pointer-events: none; }
.tm-catalog-viewer-caption { position: absolute; top: .4rem; inset-inline-start: .4rem; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: .3rem; padding: .1rem .45rem; font-size: .8rem; }
.tm-catalog-viewer-missing { text-align: center; padding: .75rem; }
.tm-catalog-viewer-panes.is-swipe > .tm-catalog-viewer-pane { grid-area: 1 / 1; }
.tm-catalog-viewer-panes.is-swipe > .tm-catalog-viewer-pane:nth-child(2) { clip-path: inset(0 calc(100% - var(--catalog-split,50%)) 0 0); }
.tm-catalog-viewer-panes.is-swipe > .tm-catalog-viewer-pane:nth-child(2) .tm-catalog-viewer-caption { inset-inline-start: auto; inset-inline-end: .4rem; }
.tm-catalog-viewer-panes.is-swipe { overflow: hidden; }
.tm-catalog-divider { position: absolute; inset-block: 0; left: var(--catalog-split,50%); width: 2.75rem; transform: translateX(-50%); cursor: ew-resize; touch-action: none; }
.tm-catalog-divider::after { content: ""; position: absolute; inset-block: 0; left: 50%; width: 2px; background: var(--bs-primary); }
.tm-catalog-viewer-tools { margin-block-start: .6rem; }
.tm-catalog-zoom-tools { margin-inline-start: auto; }
.tm-catalog-swipe-control { font-size: .875rem; }
.tm-catalog-swipe-control input { max-width: 7rem; accent-color: var(--bs-primary); }
.tm-catalog-image-dialog button { min-height: 2.75rem; min-width: 2.75rem; }
.tm-catalog-image-pair:focus-visible, .tm-catalog-viewer-panes:focus-visible, .tm-catalog-image-dialog :is(button,input):focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
@media (max-width: 575.98px) {
    .tm-catalog-change-pair { gap: .3rem; }
    .tm-catalog-change-pair > div { flex-direction: column; }
    .tm-catalog-image-side { flex-direction: column; align-items: start; }
    .tm-catalog-viewer-panes { gap: .25rem; }
}
.tm-panel-ui.tm-monitoring-modal .modal-body { overflow-wrap: anywhere; }
.tm-panel-ui.tm-monitoring-modal .modal-dialog, .tm-disclosure-modal .modal-dialog { width: calc(100% - 2rem); height: calc(100dvh - 2rem); min-height: 0; margin: 1rem auto; }
.tm-panel-ui.tm-monitoring-modal .modal-content, .tm-disclosure-modal .modal-content { max-height: 100%; }
.tm-panel-ui.tm-monitoring-modal .modal-body > *,
.tm-panel-ui.tm-monitoring-modal .row > *,
.tm-panel-ui .tm-catalog-monitoring article .d-flex > div { min-width: 0; }
.tm-panel-ui .tm-catalog-monitoring-detail .tm-summary-grid,
.tm-panel-ui .tm-catalog-monitoring .tm-operation-meta { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/CatalogMonitoring/Details.cshtml */
.tm-catalog-monitoring-detail .tm-summary-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem;
        }
        .tm-catalog-monitoring-detail .tm-source-event > summary { cursor: pointer; list-style: none; }
        .tm-catalog-monitoring-detail .tm-source-event > summary::-webkit-details-marker { display: none; }
        .tm-catalog-monitoring-detail .tm-source-event > summary::after { content: "＋"; margin-inline-start: auto; }
        .tm-catalog-monitoring-detail .tm-source-event[open] > summary::after { content: "−"; }
        .tm-catalog-monitoring-detail .tm-change-value {
            white-space: pre-wrap; overflow-wrap: anywhere; max-height: 18rem; overflow: auto; direction: auto; min-height: 2.5rem;
        }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/CatalogMonitoring/Index.cshtml */
.tm-catalog-monitoring .tm-operation-icon {
            width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; border-radius: .75rem;
            display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
        }
        .tm-catalog-monitoring .tm-operation-meta {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .5rem 1rem;
            font-size: .875rem;
        }
        .tm-catalog-monitoring .tm-monitoring-autocomplete-wrap { position: relative; }
        .tm-catalog-monitoring .tm-monitoring-suggestions {
            position: absolute; inset-inline: .25rem; top: calc(100% - .1rem); z-index: 1080;
            max-height: 240px; overflow-y: auto; border: 1px solid var(--bs-border-color);
            border-radius: .5rem; background: var(--bs-body-bg); box-shadow: 0 12px 30px rgba(15,23,42,.16);
        }
        .tm-catalog-monitoring .tm-monitoring-suggestions:empty { display: none; }
        .tm-catalog-monitoring .tm-monitoring-suggestions button {
            display: block; width: 100%; border: 0; padding: .5rem .65rem; text-align: start; background: transparent;
        }
        .tm-catalog-monitoring .tm-monitoring-suggestions button:hover,
        .tm-catalog-monitoring .tm-monitoring-suggestions button:focus { background: var(--bs-tertiary-bg); }
        .tm-catalog-monitoring .tm-change-badge { white-space: normal; text-align: start; }
        .tm-catalog-monitoring .tm-history-icon { text-decoration: none; }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/ContentReport/Index.cshtml */
.tm-content-report-suggestions {
            position: absolute;
            z-index: 20;
            inset-inline: 0;
            min-width: 0;
            top: 100%;
            max-height: 220px;
            overflow-y: auto;
            background: var(--bs-body-bg);
            border: 1px solid var(--bs-border-color);
            border-radius: .5rem;
            box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
        }
        .tm-content-report-suggestions:empty { display: none; }
        .tm-content-report-suggestions button {
            display: block;
            width: 100%;
            border: 0;
            background: transparent;
            padding: .45rem .65rem;
            text-align: start;
        }
        .tm-content-report-suggestions button:hover,
        .tm-content-report-suggestions button[aria-selected="true"] { background: var(--bs-tertiary-bg); }

/* رنگ وضعیت با متن وضعیت همراه است؛ حالت خوانده‌شدن، رنگ پرونده را حذف نمی‌کند. */
.tm-panel-ui .tm-table > tbody > tr[data-report-status="Open"] { --tm-report-row: var(--bs-primary-bg-subtle); }
.tm-panel-ui .tm-table > tbody > tr[data-report-status="Ignored"] { --tm-report-row: var(--bs-secondary-bg-subtle); }
.tm-panel-ui .tm-table > tbody > tr[data-report-status="Warning"] { --tm-report-row: var(--bs-warning-bg-subtle); }
.tm-panel-ui .tm-table > tbody > tr[data-report-status="ProductBlocked"] { --tm-report-row: var(--bs-danger-bg-subtle); }
.tm-panel-ui .tm-table > tbody > tr[data-report-status="StoreBlocked"] { --tm-report-row: color-mix(in srgb, var(--bs-danger) 21%, var(--bs-body-bg)); }
.tm-panel-ui .tm-table > tbody > tr[data-report-status="UserBlocked"] { --tm-report-row: color-mix(in srgb, var(--bs-danger) 30%, var(--bs-body-bg)); }
.tm-panel-ui .tm-table > tbody > tr[data-report-status="Restored"] { --tm-report-row: var(--bs-success-bg-subtle); }
.tm-panel-ui .tm-table > tbody > tr[data-report-status] { background-color: var(--tm-report-row, var(--bs-body-bg)); }
.tm-panel-ui .tm-table > tbody > tr[data-report-status] > td {
    background-color: var(--tm-report-row, var(--bs-body-bg));
    --bs-table-bg: var(--tm-report-row, var(--bs-body-bg));
    --bs-table-accent-bg: transparent;
}
.tm-panel-ui .tm-table > tbody > tr[data-report-status]:hover > td {
    background-color: color-mix(in srgb, var(--tm-report-row, var(--bs-body-bg)) 90%, var(--bs-emphasis-color));
}

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/DataLifecycle/Index.cshtml */
.tm-lifecycle-card {
        border: 0;
        border-radius: 1rem;
        box-shadow: 0 .45rem 1.35rem rgba(15, 23, 42, .08);
    }

    .tm-lifecycle-kpi {
        border-right: 4px solid var(--bs-primary);
        background: var(--bs-tertiary-bg);
        border-radius: .85rem;
        padding: 1rem;
        height: 100%;
    }

    .tm-lifecycle-table th {
        white-space: nowrap;
    }

    .tm-lifecycle-table td {
        vertical-align: middle;
    }

    .tm-lifecycle-help summary {
        cursor: pointer;
        font-weight: 700;
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/DataLifecycle/Manual.cshtml */
.tm-manual-card {
        border: 0;
        border-radius: 1rem;
        box-shadow: 0 .45rem 1.35rem rgba(15, 23, 42, .08);
    }

    .tm-manual-step {
        border-right: 4px solid var(--bs-primary);
        background: var(--bs-tertiary-bg);
        border-radius: .85rem;
        padding: 1rem;
        height: 100%;
    }

    .tm-manual-help summary {
        cursor: pointer;
        font-weight: 700;
    }

    .tm-action-card {
        border-radius: .9rem;
        height: 100%;
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/DataLifecycle/Policy.cshtml */
.tm-policy-card {
        border: 0;
        border-radius: 1rem;
        box-shadow: 0 .45rem 1.35rem rgba(15, 23, 42, .08);
    }

    .tm-policy-note {
        line-height: 1.9;
    }

    .tm-policy-help summary {
        cursor: pointer;
        font-weight: 700;
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/EntityLifecycle/History.cshtml */
.tm-lifecycle-history .tm-history-actions {
        display: flex;
        flex-wrap: wrap;
        gap: .65rem;
        align-items: center;
    }

    @media (max-width: 767.98px) {
        .tm-lifecycle-history .tm-history-table-wrap {
            overflow: visible;
            border: 0;
            background: transparent;
            box-shadow: none;
        }

        .tm-lifecycle-history .tm-history-table {
            min-width: 0 !important;
            display: block;
        }

        .tm-lifecycle-history .tm-history-table thead {
            display: none;
        }

        .tm-lifecycle-history .tm-history-table tbody,
        .tm-lifecycle-history .tm-history-table tr,
        .tm-lifecycle-history .tm-history-table td {
            display: block;
            width: 100%;
        }

        .tm-lifecycle-history .tm-history-table tr {
            margin-bottom: 1rem;
            padding: .75rem;
            border: 1px solid #dbe4ee;
            border-radius: .85rem;
            background: #fff;
            box-shadow: 0 .35rem .9rem rgba(15, 23, 42, .06);
        }

        .tm-lifecycle-history .tm-history-table td {
            display: grid;
            grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr);
            gap: .75rem;
            padding: .55rem .25rem;
            border-bottom: 1px dashed #e2e8f0;
            overflow-wrap: anywhere;
        }

        .tm-lifecycle-history .tm-history-table td:last-child {
            border-bottom: 0;
        }

        .tm-lifecycle-history .tm-history-table td::before {
            content: attr(data-label);
            color: #475569;
            font-weight: 900;
        }

        .tm-lifecycle-history .tm-history-table td.tm-history-select {
            display: flex;
            justify-content: flex-end;
        }

        .tm-lifecycle-history .tm-history-table td.tm-history-select::before {
            content: "انتخاب";
            margin-left: auto;
        }

        .tm-lifecycle-history .tm-history-actions > * {
            width: 100%;
        }
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/ExcelExport/Index.cshtml */
.tm-excel-filter .form-label { margin-bottom: .25rem; }
    .tm-excel-ac { position: relative; }
    .tm-excel-ac-list {
        position: absolute;
        z-index: 1055;
        inset-inline: 0;
        top: 100%;
        max-height: 240px;
        overflow-y: auto;
        background: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: 0 0 6px 6px;
        box-shadow: 0 .5rem 1rem rgba(15, 23, 42, .12);
    }
    .tm-excel-ac-list .list-group-item { border-inline: 0; border-radius: 0; text-align: start; }
    .tm-excel-ac-status { padding: .65rem .75rem; color: var(--bs-secondary-color); font-size: .8rem; }
    .tm-excel-sort { display: inline-flex; align-items: center; gap: .35rem; color: inherit; text-decoration: none; white-space: nowrap; }
    .tm-excel-sort:hover { color: var(--bs-primary); }
    .tm-excel-toolbar { border-bottom: 1px solid var(--bs-border-color); }
    .tm-excel-select-cell { width: 42px; text-align: center; }
    .tm-excel-message { min-width: 180px; max-width: 280px; overflow-wrap: anywhere; }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/LegalTerms/Index.cshtml */
.tm-panel-ui .tm-terms-switch {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0;
    min-width: 0;
}
.tm-panel-ui .tm-terms-switch .form-check-input {
    float: none;
    flex: 0 0 2em;
    margin: 0;
}
.tm-panel-ui .tm-terms-switch .form-check-label { min-width: 0; }
.tm-panel-ui .tm-terms-report-table th,
.tm-panel-ui .tm-terms-report-table td { min-width: 9rem; }
.tm-panel-ui .tm-terms-report-table .tm-terms-title-cell { min-width: 15rem; white-space: normal; overflow-wrap: break-word; }
.tm-panel-ui .tm-terms-report-table .tm-terms-user-cell { min-width: 13rem; white-space: normal; word-break: normal; }
.tm-panel-ui .tm-terms-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 2; }
.tm-panel-ui .tm-terms-report-table .tm-terms-stores-cell { min-width: 15rem; white-space: normal; overflow-wrap: anywhere; }
.tm-panel-ui .tm-terms-report-table th:first-child,
.tm-panel-ui .tm-terms-report-table td:first-child { min-width: 3rem; }
@media (min-width: 768px) {
    .tm-panel-ui .tm-terms-report-table .tm-terms-title-cell { min-width: 20rem; }
    .tm-panel-ui .tm-terms-report-table .tm-terms-user-cell { min-width: 18rem; }
}
@media (max-width: 575.98px) {
    .tm-panel-ui .tm-terms-report-table td { min-width: 0; }
}
.tm-terms-admin-card {
        border: 0;
        border-radius: 1rem;
        box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .08);
        overflow: hidden;
    }

    .tm-terms-editor {
        line-height: 1.9;
        min-height: 28rem;
        resize: vertical;
    }

    .tm-terms-status {
        border-right: 4px solid var(--bs-primary);
        background: var(--bs-tertiary-bg);
        border-radius: .75rem;
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/Plan/Index.cshtml */
.tm-plan-index-page .tm-plan-filter {
        padding: .75rem !important;
    }

    .tm-plan-index-page .tm-plan-filter-switches {
        min-height: 58px;
    }

    .tm-plan-index-page .tm-plan-filter-switch {
        min-height: auto;
        gap: .55rem !important;
        padding: 0 !important;
    }

    .tm-plan-index-page .tm-plan-filter-switch .form-check-input {
        float: none;
        flex: 0 0 auto;
        margin: 0 !important;
    }

    .tm-plan-index-page .tm-plan-filter-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 9rem);
        justify-content: end;
        gap: .5rem;
    }

    .tm-plan-index-page .tm-plan-filter-actions .tm-plan-fit-button {
        flex: 0 0 9rem !important;
        width: 9rem !important;
        min-height: 42px;
    }

    .tm-plan-index-page .tm-plan-export-button {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .tm-plan-index-page .tm-plan-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .tm-plan-index-page .tm-plan-table {
        width: 100%;
        min-width: 92rem !important;
        table-layout: fixed;
        margin-bottom: 0;
        font-size: .84rem;
    }

    .tm-plan-index-page .tm-plan-table .tm-plan-col-order { width: 5.5rem; }
    .tm-plan-index-page .tm-plan-table .tm-plan-col-id { width: 4rem; }
    .tm-plan-index-page .tm-plan-table .tm-plan-col-logo { width: 4.5rem; }
    .tm-plan-index-page .tm-plan-table .tm-plan-col-type { width: 5.5rem; }
    .tm-plan-index-page .tm-plan-table .tm-plan-col-name { width: 9rem; }
    .tm-plan-index-page .tm-plan-table .tm-plan-col-date { width: 7.5rem; }
    .tm-plan-index-page .tm-plan-table .tm-plan-col-status { width: 6rem; }
    .tm-plan-index-page .tm-plan-table .tm-plan-col-price { width: 8rem; }
    .tm-plan-index-page .tm-plan-table .tm-plan-col-staff { width: 6rem; }
    .tm-plan-index-page .tm-plan-table .tm-plan-col-actions { width: 13rem; }

    .tm-plan-index-page .tm-plan-table th,
    .tm-plan-index-page .tm-plan-table td {
        min-width: 0;
        padding: .45rem .3rem;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .tm-plan-index-page .tm-plan-table .tm-img-60 {
        width: 42px;
        height: 42px;
        max-width: 100%;
        object-fit: contain;
    }

    .tm-plan-index-page .tm-plan-table-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .35rem;
        width: 100%;
    }

    .tm-plan-index-page .tm-plan-table-actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 32px;
        margin: 0;
        padding: .3rem .25rem;
        line-height: 1.35;
    }

    .tm-plan-index-page .tm-plan-order-handle,
    .tm-plan-index-page .tm-plan-mobile-order-handle {
        touch-action: none;
    }

    .tm-plan-mobile-list {
        display: grid;
        gap: .75rem;
    }

    .tm-plan-mobile-card {
        overflow: hidden;
        border: 1px solid rgba(148, 163, 184, .42);
        border-radius: .8rem;
        background: #fff;
        box-shadow: 0 .3rem .9rem rgba(15, 23, 42, .055);
    }

    .tm-plan-mobile-card.is-inactive {
        border-color: rgba(255, 193, 7, .65);
        background: #fffdf5;
    }

    .tm-plan-mobile-card.tm-sortable-dragging {
        opacity: .55;
    }

    .tm-plan-mobile-card.tm-sortable-target {
        outline: 2px dashed var(--bs-primary);
        outline-offset: -3px;
    }

    .tm-plan-mobile-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .65rem;
        padding: .65rem .75rem;
        border-bottom: 1px solid rgba(148, 163, 184, .24);
        background: #f8fafc;
    }

    .tm-plan-mobile-card-title {
        min-width: 0;
    }

    .tm-plan-mobile-card-title strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tm-plan-mobile-status {
        display: flex;
        align-items: center;
        gap: .4rem;
        flex: 0 0 auto;
    }

    .tm-plan-mobile-status .form-check {
        min-height: auto;
        margin: 0;
        padding: 0;
    }

    .tm-plan-mobile-status .form-check-input {
        float: none;
        margin: 0 !important;
    }

    .tm-plan-mobile-header-tools,
    .tm-plan-mobile-order-content {
        display: flex;
        align-items: center;
    }

    .tm-plan-mobile-header-tools {
        flex: 0 0 auto;
        gap: .35rem;
    }

    .tm-plan-mobile-order-content {
        gap: .1rem;
    }

    .tm-plan-mobile-order-content .order-badge {
        display: inline-flex;
        min-width: 1.4rem;
        min-height: 1.4rem;
        align-items: center;
        justify-content: center;
        padding: .2rem .35rem;
        border: 1px solid var(--bs-border-color);
        border-radius: .375rem;
        background: var(--bs-tertiary-bg);
        line-height: 1;
    }

    .tm-plan-mobile-card-body {
        padding: .65rem .75rem;
    }

    .tm-plan-mobile-summary {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        align-items: center;
        gap: .65rem;
    }

    .tm-plan-mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        border: 1px solid rgba(148, 163, 184, .32);
        border-radius: .55rem;
        background: #fff;
    }

    .tm-plan-mobile-logo img {
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

    .tm-plan-mobile-main-grid,
    .tm-plan-mobile-dates {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .45rem;
    }

    .tm-plan-mobile-dates {
        margin-top: .6rem;
        padding-top: .6rem;
        border-top: 1px solid rgba(148, 163, 184, .2);
    }

    .tm-plan-mobile-field {
        min-width: 0;
    }

    .tm-plan-mobile-field span {
        display: block;
        margin-bottom: .08rem;
        color: #64748b;
        font-size: .68rem;
        font-weight: 900;
    }

    .tm-plan-mobile-field strong {
        display: block;
        overflow-wrap: anywhere;
        font-size: .82rem;
    }

    .tm-plan-mobile-actions {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: .4rem;
        padding: .55rem .75rem;
        border-top: 1px solid rgba(148, 163, 184, .24);
        background: #f8fafc;
    }

    .tm-plan-mobile-action-button i,
    .tm-plan-mobile-action-button i::before {
        display: block;
        line-height: 1;
    }

    @media (max-width: 767.98px) {
        .tm-plan-index-page .tm-plan-filter {
            padding: .65rem !important;
        }

        .tm-plan-index-page .tm-plan-filter-switches {
            min-height: auto;
        }
    }

    @media (max-width: 575.98px) {
        .tm-plan-index-page .tm-plan-filter-actions {
            grid-template-columns: minmax(0, 1fr);
        }

        .tm-plan-index-page .tm-plan-filter-actions .tm-plan-fit-button {
            width: 100% !important;
            min-width: 0;
        }

        .tm-plan-mobile-card-header {
            align-items: flex-start;
        }

        .tm-plan-mobile-header-tools {
            flex-direction: column-reverse;
            align-items: flex-end;
        }
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/PlanExtension/Index.cshtml */
.tm-suggestion-list {
            border: 1px solid #dee2e6;
            border-radius: .5rem;
            margin-top: .25rem;
            max-height: 220px;
            overflow-y: auto;
            background: #fff;
            position: relative;
            z-index: 5;
        }

        .tm-suggestion-list:empty {
            display: none;
        }

        .tm-suggestion-list button {
            width: 100%;
            border: 0;
            border-bottom: 1px solid #f1f3f5;
            background: #fff;
            padding: .5rem .75rem;
            text-align: right;
        }

        .tm-suggestion-list button:hover {
            background: #f8f9fa;
        }

        .tm-selected-list {
            display: flex;
            flex-wrap: wrap;
            gap: .4rem;
            margin-top: .5rem;
            min-height: 2rem;
        }

        .tm-selected-chip {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            border: 1px solid #ced4da;
            border-radius: 999px;
            background: #f8f9fa;
            padding: .25rem .65rem;
            max-width: 100%;
        }

        .tm-selected-chip span {
            overflow-wrap: anywhere;
        }

        .tm-selected-chip button {
            border: 0;
            background: transparent;
            color: #dc3545;
            line-height: 1;
            padding: 0;
        }

        .tm-check-list {
            border: 1px solid #dee2e6;
            border-radius: .5rem;
            padding: .75rem;
            max-height: 240px;
            overflow-y: auto;
            background: #fff;
        }

        .tm-plan-option-label {
            display: inline-flex;
            align-items: center;
            flex-wrap: wrap;
            gap: .35rem;
            line-height: 1.8;
        }

        .tm-plan-option-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 1.25rem;
            padding: .05rem .45rem;
            border-radius: 999px;
            font-size: .72rem;
            font-weight: 800;
            line-height: 1.2;
        }

        .tm-plan-option-badge-expired {
            color: #b42318;
            background: #fff1f0;
            border: 1px solid #ffccc7;
        }

        .tm-plan-option-badge-inactive {
            color: #495057;
            background: #f1f3f5;
            border: 1px solid #dee2e6;
        }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/PostShippingMethod/Index.cshtml */
.tm-admin-postshipping-page .card {
        border: 1px solid rgba(148, 163, 184, .32);
        border-radius: 1rem;
        overflow: hidden;
    }

    .tm-admin-postshipping-page .card-header {
        min-height: 58px;
        font-weight: 800;
    }

    .tm-admin-postshipping-page .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .35rem;
        line-height: 1.35;
        white-space: nowrap;
    }

    .tm-postshipping-card-header {
        gap: .75rem;
    }

    .tm-postshipping-header-actions,
    .tm-postshipping-submit-actions,
    .tm-postshipping-table-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: .5rem;
    }

    .tm-postshipping-header-actions .btn {
        min-height: 40px;
        padding-inline: 1rem;
    }

    .tm-postshipping-form .form-label {
        width: 100%;
        margin-bottom: .4rem;
        color: #1f2d3d;
        font-weight: 800;
        text-align: right;
    }

    .tm-postshipping-form .form-control,
    .tm-postshipping-filter-form .form-control {
        min-height: 46px;
        border-radius: .7rem;
        font-weight: 700;
        text-align: right;
    }

    .tm-postshipping-option-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .75rem;
    }

    .tm-postshipping-mode-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    .tm-postshipping-check {
        min-height: 48px;
        margin: 0;
        padding: .65rem .8rem;
        border: 1px solid rgba(148, 163, 184, .35);
        border-radius: .75rem;
        background: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: .55rem;
    }

    .tm-postshipping-check .form-check-input {
        float: none;
        flex: 0 0 auto;
        width: 1.05rem;
        height: 1.05rem;
        margin: 0;
        cursor: pointer;
    }

    .tm-postshipping-check .form-check-label {
        margin: 0;
        color: #1f2d3d;
        font-weight: 800;
        line-height: 1.55;
        cursor: pointer;
    }

    .tm-postshipping-mode-box {
        border: 1px solid rgba(148, 163, 184, .32);
        border-radius: .85rem;
        background: #f8fafc;
        padding: .9rem;
    }

    .tm-postshipping-mode-title {
        margin-bottom: .75rem;
        color: #64748b;
        font-weight: 800;
        line-height: 1.8;
        text-align: center;
    }

    .tm-postshipping-submit-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: .75rem;
        padding-top: .15rem;
    }

    .tm-postshipping-submit-actions .btn {
        min-height: 44px;
        padding-inline: 1.15rem;
        font-weight: 800;
    }

    .tm-postshipping-edit-hint {
        line-height: 1.8;
        text-align: right;
    }

    .tm-postshipping-filter-form {
        align-items: end;
        row-gap: .85rem;
    }

    .tm-postshipping-filter-form .btn {
        min-height: 46px;
        font-weight: 800;
    }

    .tm-postshipping-table-actions {
        justify-content: center;
        flex-wrap: nowrap;
    }

    .tm-postshipping-table-actions form {
        margin: 0;
    }

    .tm-postshipping-table-actions .btn {
        min-height: 36px;
        padding-inline: .85rem;
    }

    .tm-admin-postshipping-page .table th,
    .tm-admin-postshipping-page .table td {
        text-align: center;
        vertical-align: middle;
    }

    @media (max-width: 1199.98px) {
        .tm-postshipping-option-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 767.98px) {
        .tm-postshipping-option-grid,
        .tm-postshipping-mode-grid {
            grid-template-columns: 1fr;
        }

        .tm-postshipping-header-actions,
        .tm-postshipping-submit-actions,
        .tm-postshipping-submit-row,
        .tm-postshipping-table-actions {
            width: 100%;
        }

        .tm-postshipping-table-actions {
            flex-wrap: wrap;
        }

        .tm-postshipping-edit-hint {
            width: 100%;
            text-align: center;
        }
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/ProductCommentSpamSetting/_AntiSpamNav.cshtml */
.tm-antispam-shell { --tm-radius: 1rem; }
    .tm-antispam-nav { top: 1rem; z-index: 20; }
    @media (min-width: 992px) and (min-height: 601px) {
        .tm-antispam-shell #saved-posts { scroll-margin-block-start: 15rem; }
    }
    .tm-antispam-nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: .55rem; }
    .tm-antispam-nav-grid .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; white-space: normal; line-height: 1.35; }
    .tm-antispam-card { border: 0; border-radius: var(--tm-radius); box-shadow: 0 .35rem 1.25rem rgba(15, 23, 42, .07); }
    .tm-antispam-card .card-header { border: 0; border-radius: var(--tm-radius) var(--tm-radius) 0 0; }
    .tm-field-help { color: var(--bs-secondary-color); font-size: .8rem; line-height: 1.65; margin-top: .35rem; }
    .tm-unit { display: inline-flex; align-items: center; border-radius: 999px; padding: .12rem .55rem; background: var(--bs-tertiary-bg); font-size: .75rem; font-weight: 700; }
    .tm-guide { border-right: 4px solid var(--bs-info); background: var(--bs-info-bg-subtle); border-radius: .75rem; padding: .85rem 1rem; }
    .tm-danger-zone { border: 1px solid var(--bs-danger-border-subtle); background: var(--bs-danger-bg-subtle); border-radius: .85rem; }
    .tm-responsive-table { min-width: 950px; }
    /* در نمایشگر کوتاه، منوی چندردیفه نباید دکمه‌ها و فیلدهای صفحه را بپوشاند. */
    @media (max-width: 991.98px), (max-height: 600px) { .tm-antispam-nav { position: static !important; } }
    @media (max-width: 767.98px) {
        .tm-antispam-nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .tm-antispam-nav-grid .btn { font-size: .84rem; }
    }
    @media (max-width: 420px) { .tm-antispam-nav-grid { grid-template-columns: 1fr; } }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/ProductRecycle/_RecycleStickyNav.cshtml */
.tm-recycle-sticky-nav {
        /* فهرست بلند بازیافت نباید در نمایشگر کوتاه روی فرم تأیید و عملیات قرار بگیرد. */
        position: static !important;
        top: 1rem;
        z-index: 10;
    }

    .tm-recycle-nav-grid,
    .tm-recycle-danger-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: .5rem;
    }

    .tm-recycle-nav-grid .btn,
    .tm-recycle-danger-grid .btn {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.45;
    }

    .tm-recycle-sticky-nav + .card-body .table-responsive {
        border: 1px solid var(--bs-border-color);
        border-radius: 8px;
        max-height: min(62vh, 34rem);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        background: var(--bs-body-bg, #fff);
        direction: ltr;
        isolation: isolate;
        scrollbar-gutter: stable;
    }

    .tm-recycle-sticky-nav + .card-body .table-responsive table {
        min-width: 860px;
        direction: rtl;
        margin-bottom: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .tm-recycle-sticky-nav + .card-body .table-responsive th:first-child,
    .tm-recycle-sticky-nav + .card-body .table-responsive tbody td:first-child:not([colspan]) {
        position: sticky;
        right: 0;
        left: auto;
        z-index: 12;
        width: 3rem;
        min-width: 3rem;
        max-width: 3rem;
        text-align: center;
        background-color: var(--bs-table-bg-type, var(--bs-table-bg, var(--bs-body-bg, #fff)));
        background-clip: padding-box;
        box-shadow: -1px 0 0 var(--bs-border-color);
    }

    .tm-recycle-sticky-nav + .card-body .table-responsive tbody tr:hover > td:first-child:not([colspan]) {
        background-color: var(--bs-table-hover-bg, var(--bs-table-bg-type, var(--bs-table-bg, var(--bs-body-bg, #fff))));
    }

    .tm-recycle-sticky-nav + .card-body .table-responsive thead th {
        z-index: 13;
        background-clip: padding-box;
    }

    .tm-recycle-sticky-nav + .card-body .table-responsive thead th:first-child {
        z-index: 14;
    }

    .tm-recycle-sticky-nav + .card-body .d-flex.justify-content-end.gap-2.mb-3,
    .tm-recycle-sticky-nav + .card-body .col-12.d-flex.justify-content-end.gap-2,
    .tm-recycle-sticky-nav + .card-body .d-flex.justify-content-between.align-items-center.mb-2,
    .tm-recycle-sticky-nav + .card-body .mt-4.d-flex.justify-content-between {
        gap: .75rem !important;
        flex-wrap: wrap;
    }

    .tm-recycle-sticky-nav + .card-body .pagination {
        flex-wrap: wrap;
        gap: .35rem;
    }

    .tm-recycle-sticky-nav + .card-body .page-link {
        min-width: 42px;
        text-align: center;
    }

    @media (max-width: 991.98px) {
        .tm-recycle-sticky-nav {
            position: static !important;
            top: auto;
        }

        .tm-recycle-sticky-nav .card {
            border-radius: 1rem;
        }

        .tm-recycle-sticky-nav .card-body {
            padding: .9rem;
        }

        .tm-recycle-nav-grid,
        .tm-recycle-danger-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .tm-recycle-sticky-nav + .card-body {
            padding: 1rem;
        }

        .tm-recycle-sticky-nav + .card-body .d-flex.justify-content-end.gap-2.mb-3 > *,
        .tm-recycle-sticky-nav + .card-body .col-12.d-flex.justify-content-end.gap-2 > *,
        .tm-recycle-sticky-nav + .card-body .mt-4.d-flex.justify-content-between > * {
            flex: 1 1 100%;
        }

        .tm-recycle-sticky-nav + .card-body .d-flex.justify-content-end.gap-2.mb-3 .btn,
        .tm-recycle-sticky-nav + .card-body .col-12.d-flex.justify-content-end.gap-2 .btn,
        .tm-recycle-sticky-nav + .card-body .mt-4.d-flex.justify-content-between .btn,
        .tm-recycle-sticky-nav + .card-body .mt-4.d-flex.justify-content-between button {
            width: 100%;
        }

        .tm-recycle-sticky-nav + .card-body .d-flex.justify-content-between.align-items-center.mb-2 {
            align-items: stretch !important;
        }

        .tm-recycle-sticky-nav + .card-body .d-flex.justify-content-between.align-items-center.mb-2 > div:last-child {
            display: grid !important;
            grid-template-columns: 1fr;
            width: 100%;
            gap: .75rem !important;
        }
    }

    @media (max-width: 767.98px) {
        .tm-recycle-sticky-nav {
            margin-bottom: 1rem !important;
        }

        .tm-recycle-nav-grid,
        .tm-recycle-danger-grid {
            grid-template-columns: 1fr;
        }

        .tm-recycle-nav-grid .btn,
        .tm-recycle-danger-grid .btn {
            min-height: 46px;
            font-size: .95rem;
        }

        .tm-recycle-sticky-nav + .card-body .form-floating > .form-control,
        .tm-recycle-sticky-nav + .card-body .form-floating > .form-select,
        .tm-recycle-sticky-nav + .card-body .form-control,
        .tm-recycle-sticky-nav + .card-body .form-select {
            min-height: 46px;
            font-size: .95rem;
        }

        .tm-recycle-sticky-nav + .card-body .table-responsive {
            margin-inline: -.35rem;
            border-radius: .75rem;
        }

        .tm-recycle-sticky-nav + .card-body .table-responsive table {
            min-width: 780px;
            font-size: .9rem;
        }

        .tm-recycle-sticky-nav + .card-body .pagination {
            justify-content: center;
        }
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/SearchAnalytics/ConfirmHardDelete.cshtml */
.tm-delete-stat {
        border: 1px solid rgba(220, 53, 69, .18);
        border-radius: 8px;
        padding: 1rem;
        background: linear-gradient(180deg, rgba(220, 53, 69, .06), #fff);
        min-height: 92px;
    }

    .tm-delete-stat span {
        display: block;
        color: #6c757d;
        font-size: .85rem;
        margin-bottom: .5rem;
    }

    .tm-delete-stat strong {
        font-size: 1.5rem;
        color: #dc3545;
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/SearchAnalytics/Index.cshtml */
.tm-search-analytics .tm-search-hero,
    .tm-search-analytics .tm-search-stat,
    .tm-search-analytics .card {
        border-radius: 8px;
    }

    .tm-search-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1.1rem 1.25rem;
        margin-bottom: 1rem;
        color: #fff;
        background: linear-gradient(135deg, #0f766e, #0ea5e9);
        box-shadow: 0 18px 42px rgba(14, 165, 233, .18);
    }

    .tm-search-hero h1 {
        margin: 0 0 .35rem;
        font-size: 1.45rem;
        font-weight: 900;
    }

    .tm-search-hero p {
        margin: 0;
        color: rgba(255, 255, 255, .86);
    }

    .tm-search-hero-icon {
        width: 3.1rem;
        height: 3.1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999rem;
        background: rgba(255, 255, 255, .18);
        font-size: 1.55rem;
    }

    .tm-search-stat-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: .75rem;
        margin-bottom: 1rem;
    }

    .tm-search-stat {
        padding: .9rem;
        background: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color-translucent);
        box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    }

    .tm-search-stat span,
    .tm-search-mini-row span {
        display: block;
        color: var(--bs-secondary-color);
        font-size: .84rem;
    }

    .tm-search-stat strong {
        display: block;
        margin-top: .25rem;
        font-size: 1.25rem;
        font-weight: 900;
    }

    .tm-search-mini-row {
        padding: .85rem 1rem;
        border-bottom: 1px solid var(--bs-border-color-translucent);
    }

    .tm-search-mini-row:last-child {
        border-bottom: 0;
    }

    .tm-search-detail-box {
        height: 100%;
        padding: 1rem;
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: 8px;
        background: color-mix(in srgb, var(--bs-body-bg) 92%, var(--bs-tertiary-bg));
    }

    @media (max-width: 1199.98px) {
        .tm-search-stat-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    @media (max-width: 575.98px) {
        .tm-search-stat-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/SeoSitemap/Index.cshtml */
.tm-sitemap-admin { --tm-ink:#152238; --tm-soft:#f5f7fb; }
    .tm-sitemap-hero { padding:1.35rem; border:1px solid #dfe5ef; border-radius:1rem; background:linear-gradient(125deg,#fff 20%,#f3f7ff); }
    .tm-hero-kicker { color:#3157a6; font-size:.72rem; font-weight:800; letter-spacing:.08em; margin-bottom:.4rem; }
    .tm-stat-card { min-height:140px; padding:1rem; border-radius:1rem; color:#fff; display:flex; flex-direction:column; box-shadow:0 10px 24px rgba(21,34,56,.1); }
    .tm-stat-card span { font-size:.78rem; opacity:.88; }
    .tm-stat-card strong { font-size:1.8rem; margin:auto 0 .2rem; }
    .tm-stat-card small { opacity:.82; }
    .tm-stat-card.is-green { background:linear-gradient(135deg,#087f5b,#20a46b); }
    .tm-stat-card.is-blue { background:linear-gradient(135deg,#2458a6,#477ce0); }
    .tm-stat-card.is-red { background:linear-gradient(135deg,#b4233f,#df4a59); }
    .tm-stat-card.is-violet { background:linear-gradient(135deg,#6338a5,#8d5bd0); }
    .tm-sitemap-links { display:grid; gap:.45rem; }
    .tm-sitemap-links a { color:var(--tm-ink); text-decoration:none; display:grid; grid-template-columns:auto 1fr auto; gap:.65rem; align-items:center; padding:.55rem .7rem; border-radius:.7rem; background:var(--tm-soft); }
    .tm-sitemap-links a:hover { background:#e9effb; }
    .tm-sitemap-links b { font-size:.72rem; color:#65758b; }
    .tm-entity-tabs { gap:.5rem; }
    /* تب‌های سربرگ رنگی نباید رنگ سفید لینک عمومی را روی سطح روشن به ارث ببرند. */
    .tm-panel-ui .tm-sitemap-admin .tm-entity-tabs { min-width:0; max-width:100%; }
    .tm-panel-ui .tm-sitemap-admin .tm-entity-tabs a.nav-link { color:#12395b !important; background:#fff; border:2px solid transparent; min-height:44px; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.5rem; }
    .tm-panel-ui .tm-sitemap-admin .tm-entity-tabs a.nav-link:hover { color:#12395b !important; background:#e9effb; }
    .tm-panel-ui .tm-sitemap-admin .tm-entity-tabs a.nav-link.active { color:#fff !important; background:#12395b; border-color:#fff; }
    .tm-panel-ui .tm-sitemap-admin .tm-entity-tabs a.nav-link:focus-visible { outline:3px solid #fff; outline-offset:2px; box-shadow:0 0 0 5px #12395b; }
    .tm-panel-ui .tm-sitemap-admin .tm-entity-tabs span { color:inherit; font-size:.75rem; padding:.1rem .45rem; border-radius:2rem; background:#e9effb; }
    .tm-panel-ui .tm-sitemap-admin .tm-entity-tabs .active span { background:rgba(255,255,255,.2); }
    .tm-panel-ui .tm-sitemap-admin .tm-page-header :is(.tm-hero-kicker, .text-secondary) { color:#fff !important; }
    .tm-entry-icon { width:2.65rem; height:2.65rem; flex:0 0 auto; border-radius:.8rem; display:grid; place-items:center; color:#fff; }
    .tm-entry-icon.is-store { background:linear-gradient(135deg,#087f5b,#20a46b); }
    .tm-entry-icon.is-product { background:linear-gradient(135deg,#2458a6,#477ce0); }
    .tm-entry-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.5rem; }
    .tm-entry-facts div { background:#f6f8fb; border-radius:.65rem; padding:.55rem .65rem; min-width:0; }
    .tm-entry-facts span,.tm-entry-facts strong { display:block; overflow-wrap:anywhere; }
    .tm-entry-facts span { color:#768399; font-size:.68rem; margin-bottom:.15rem; }
    .tm-entry-facts strong { color:var(--tm-ink); font-size:.78rem; }
    .tm-empty-icon { width:4rem; height:4rem; display:grid; place-items:center; border-radius:50%; margin:auto; color:#477ce0; background:#eef3ff; font-size:1.5rem; }
    .gap-x-3 { column-gap:1rem; }
    .min-w-0 { min-width:0; }
    @media (max-width:767.98px) {
        .tm-sitemap-hero { padding:1rem; }
        .tm-entry-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
        .tm-stat-card { min-height:125px; }
        .tm-stat-card strong { font-size:1.45rem; }
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/ShoppingCartManagement/Index.cshtml */
/* هدر جدول در اسکرول عمودی ثابت می‌ماند. */
    .shopping-admin-cart-table-wrap {
        max-height: calc(100vh - 290px);
        overflow-y: auto;
    }

    .shopping-admin-cart-table-wrap thead th {
        position: sticky;
        top: 0;
        z-index: 4;
        box-shadow: inset 0 -1px 0 #dee2e6;
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/ShoppingStorePaymentConfig/Limits.cshtml */
.tm-store-settings-page {
        --tm-setting-radius: 1rem;
        --tm-setting-border: color-mix(in srgb, var(--bs-border-color) 82%, transparent);
    }

    .tm-store-settings-page .tm-settings-hero,
    .tm-store-settings-page .tm-settings-card,
    .tm-store-settings-page .tm-limit-card {
        border: 1px solid var(--tm-setting-border);
        border-radius: var(--tm-setting-radius);
        background: var(--bs-body-bg);
        box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
    }

    .tm-store-settings-page .tm-settings-hero {
        position: relative;
        overflow: hidden;
        padding: clamp(1.15rem, 2vw, 1.65rem);
        background:
            radial-gradient(circle at 8% 10%, rgba(13, 110, 253, .16), transparent 34%),
            linear-gradient(145deg,
                color-mix(in srgb, var(--bs-primary) 7%, var(--bs-body-bg)),
                var(--bs-body-bg) 72%);
    }

    .tm-store-settings-page .tm-settings-hero::after {
        content: "";
        position: absolute;
        inset-inline-end: -3.5rem;
        inset-block-start: -4.5rem;
        width: 12rem;
        height: 12rem;
        border: 1.5rem solid rgba(13, 110, 253, .07);
        border-radius: 50%;
        pointer-events: none;
    }

    .tm-store-settings-page .tm-settings-kicker {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        margin-bottom: .45rem;
        color: var(--bs-primary);
        font-size: .78rem;
        font-weight: 900;
    }

    .tm-store-settings-page .tm-settings-summary {
        display: flex;
        flex-wrap: wrap;
        gap: .55rem;
        margin-top: 1rem;
    }

    .tm-store-settings-page .tm-summary-chip {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        min-height: 34px;
        padding: .35rem .65rem;
        border: 1px solid color-mix(in srgb, var(--bs-primary) 16%, var(--bs-border-color));
        border-radius: 999rem;
        color: var(--bs-body-color);
        background: color-mix(in srgb, var(--bs-primary) 5%, var(--bs-body-bg));
        font-size: .78rem;
        font-weight: 800;
    }

    .tm-store-settings-page .tm-global-setting {
        padding: clamp(1rem, 2vw, 1.4rem);
        border-color: color-mix(in srgb, var(--bs-primary) 28%, var(--bs-border-color));
        background:
            linear-gradient(135deg,
                color-mix(in srgb, var(--bs-primary) 5%, var(--bs-body-bg)),
                var(--bs-body-bg));
    }

    .tm-store-settings-page .tm-setting-icon,
    .tm-store-settings-page .tm-limit-icon {
        width: 2.8rem;
        min-width: 2.8rem;
        height: 2.8rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: .85rem;
        color: var(--bs-primary);
        background: color-mix(in srgb, var(--bs-primary) 12%, var(--bs-body-bg));
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bs-primary) 18%, transparent);
    }

    .tm-store-settings-page .tm-global-switch-panel {
        min-width: min(100%, 300px);
        padding: .9rem 1rem;
        border: 1px solid var(--tm-setting-border);
        border-radius: .9rem;
        background: var(--bs-body-bg);
    }

    .tm-store-settings-page .tm-store-toggle-row + .tm-store-toggle-row {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--tm-setting-border);
    }

    .tm-store-settings-page .tm-store-toggle-row.is-saving {
        opacity: .68;
        pointer-events: none;
    }

    .tm-store-settings-page .tm-auto-save-note {
        display: flex;
        align-items: center;
        gap: .35rem;
        margin-top: .65rem;
        color: var(--bs-secondary-color);
        font-size: .73rem;
        font-weight: 700;
    }

    .tm-store-settings-page .tm-global-switch {
        min-height: 2rem;
        display: flex;
        align-items: center;
        gap: .7rem;
        margin: 0;
        padding-inline-start: 0;
    }

    .tm-store-settings-page .tm-global-switch .form-check-input {
        float: none;
        width: 3rem;
        height: 1.55rem;
        margin: 0;
        cursor: pointer;
    }

    .tm-store-settings-page .tm-global-switch .form-check-label {
        cursor: pointer;
        font-weight: 900;
    }

    .tm-store-settings-page .tm-setting-status {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        margin-top: .65rem;
        padding: .3rem .55rem;
        border-radius: 999rem;
        font-size: .76rem;
        font-weight: 900;
    }

    .tm-store-settings-page .tm-setting-status.is-on {
        color: var(--bs-success-text-emphasis);
        background: var(--bs-success-bg-subtle);
    }

    .tm-store-settings-page .tm-setting-status.is-off {
        color: var(--bs-secondary-color);
        background: var(--bs-secondary-bg);
    }

    .tm-store-settings-page .tm-setting-impact {
        margin-top: 1rem;
        padding: .75rem .85rem;
        border-inline-start: 3px solid var(--bs-info);
        border-radius: .7rem;
        color: var(--bs-body-color);
        background: var(--bs-info-bg-subtle);
        font-size: .82rem;
        line-height: 1.8;
    }

    .tm-store-settings-page .tm-settings-section {
        scroll-margin-top: 1rem;
    }

    .tm-store-settings-page .tm-section-intro {
        padding: .35rem .25rem;
    }

    .tm-store-settings-page .tm-section-intro h2 {
        display: flex;
        align-items: center;
        gap: .55rem;
    }

    .tm-store-settings-page .tm-limit-card {
        height: 100%;
        padding: 1rem;
        transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .tm-store-settings-page .tm-limit-card:focus-within {
        border-color: color-mix(in srgb, var(--bs-primary) 52%, var(--bs-border-color));
        box-shadow: 0 16px 38px rgba(13, 110, 253, .1);
        transform: translateY(-1px);
    }

    .tm-store-settings-page .tm-limit-icon {
        width: 2.35rem;
        min-width: 2.35rem;
        height: 2.35rem;
        border-radius: .7rem;
        font-size: .95rem;
    }

    .tm-store-settings-page .tm-limit-code {
        display: block;
        color: var(--bs-secondary-color);
        direction: ltr;
        font-size: .7rem;
        font-weight: 700;
        text-align: right;
    }

    .tm-store-settings-page .tm-limit-fields {
        display: grid;
        grid-template-columns: minmax(130px, .8fr) minmax(180px, 1.2fr);
        gap: .8rem;
        margin-top: 1rem;
    }

    .tm-store-settings-page .tm-limit-control {
        min-height: 44px;
        border-radius: .72rem;
        font-weight: 750;
    }

    .tm-store-settings-page .tm-limit-number {
        direction: ltr;
        text-align: center;
    }

    .tm-store-settings-page .tm-limit-switch {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        margin: 0;
        padding: .45rem .7rem;
        border: 1px solid var(--tm-setting-border);
        border-radius: .72rem;
        background: color-mix(in srgb, var(--bs-secondary-bg) 55%, var(--bs-body-bg));
    }

    .tm-store-settings-page .tm-limit-switch .form-check-input {
        float: none;
        margin: 0;
        cursor: pointer;
    }

    .tm-store-settings-page .tm-limit-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        margin-top: 1rem;
        padding-top: .85rem;
        border-top: 1px solid var(--tm-setting-border);
    }

    .tm-store-settings-page .tm-settings-save-btn {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .4rem;
        border-radius: .7rem;
        font-weight: 850;
        white-space: nowrap;
    }

    .tm-store-settings-page .tm-empty-setting {
        padding: 1.2rem;
        border: 1px dashed var(--tm-setting-border);
        border-radius: var(--tm-setting-radius);
        color: var(--bs-secondary-color);
        text-align: center;
        background: color-mix(in srgb, var(--bs-secondary-bg) 48%, var(--bs-body-bg));
    }

    @media (max-width: 767.98px) {
        .tm-store-settings-page .tm-settings-hero-actions,
        .tm-store-settings-page .tm-global-setting-body,
        .tm-store-settings-page .tm-limit-footer {
            align-items: stretch !important;
            flex-direction: column;
        }

        .tm-store-settings-page .tm-global-switch-panel {
            width: 100%;
        }

        .tm-store-settings-page .tm-limit-fields {
            grid-template-columns: 1fr;
        }

        .tm-store-settings-page .tm-settings-save-btn {
            width: 100%;
        }
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/Social/Index.cshtml */
.tm-social-admin-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1rem;
        padding: 1rem;
        border: 1px solid rgba(15, 23, 42, .1);
        border-radius: 8px;
        background: var(--bs-body-bg);
        box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
    }

    .tm-social-admin-hero h1 {
        margin: 0;
        font-size: 1.35rem;
        font-weight: 900;
        letter-spacing: 0;
    }

    .tm-social-admin-hero p {
        margin: .3rem 0 0;
        color: var(--bs-secondary-color);
    }

    .tm-social-admin-pulse {
        width: .9rem;
        height: .9rem;
        border-radius: 50%;
        background: #22c55e;
        box-shadow: 0 0 0 .45rem rgba(34, 197, 94, .16);
    }

    .tm-social-admin-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: .75rem;
        margin-bottom: 1rem;
    }

    .tm-social-admin-stat {
        padding: .85rem;
        border: 1px solid rgba(15, 23, 42, .09);
        border-radius: 8px;
        background: var(--bs-body-bg);
        box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    }

    .tm-social-admin-stat span {
        display: block;
        color: var(--bs-secondary-color);
        font-size: .82rem;
    }

    .tm-social-admin-stat strong {
        display: block;
        margin-top: .25rem;
        font-size: 1.3rem;
        font-weight: 950;
    }

    .tm-social-admin .tm-user-suggest {
        position: absolute;
        z-index: 1080;
        min-width: 16rem;
        max-height: 16rem;
        overflow-y: auto;
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: 8px;
        background: var(--bs-body-bg);
        box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
    }

    .tm-social-admin .tm-user-suggest button {
        width: 100%;
        display: flex;
        justify-content: space-between;
        border: 0;
        padding: .55rem .7rem;
        background: transparent;
        text-align: start;
    }

    .tm-social-admin .tm-user-suggest button:hover {
        background: color-mix(in srgb, var(--bs-primary) 9%, var(--bs-body-bg));
    }

    .tm-policy-switch {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .9rem 1rem;
        border: 1px solid rgba(15, 23, 42, .1);
        border-radius: 8px;
        background: color-mix(in srgb, var(--bs-primary) 4%, var(--bs-body-bg));
    }

    .tm-policy-switch strong {
        display: block;
        margin-bottom: .25rem;
        font-weight: 900;
    }

    .tm-policy-switch p {
        margin: 0;
        color: var(--bs-secondary-color);
        font-size: .9rem;
    }

    .tm-policy-switch .form-check {
        min-width: 10.5rem;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: .55rem;
    }

    @media (max-width: 1199.98px) {
        .tm-social-admin-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    @media (max-width: 575.98px) {
        .tm-social-admin-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .tm-policy-switch {
            align-items: flex-start;
            flex-direction: column;
        }

        .tm-policy-switch .form-check {
            min-width: 0;
            width: 100%;
            justify-content: flex-start;
        }
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/StoreDomain/HardDeleteFilteredPaymentReportConfirm.cshtml */
.tm-domain-filter-delete-preview { min-width: 1420px; }
    .tm-domain-filter-delete-preview th { white-space: nowrap; }
    .tm-domain-filter-delete-preview td { vertical-align: middle; }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/StoreDomain/HardDeleteSelectedPaymentReportConfirm.cshtml */
.tm-domain-delete-preview { min-width: 1750px; }
    .tm-domain-delete-preview th { white-space: nowrap; }
    .tm-domain-delete-preview td { vertical-align: middle; }
    .tm-domain-delete-note { min-width: 230px; max-width: 320px; white-space: normal; }

/* مدیریت دامنه: ردیف خوانا و فشرده؛ فرم عملیات در مودال مشترک قرار می‌گیرد. */
.tm-panel-ui .tm-record-dates {
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: space-between;
    align-items: baseline;
    gap: .35rem .75rem;
}
.tm-panel-ui .tm-record-dates dt { font-weight: 400; color: var(--bs-secondary-color); }
.tm-panel-ui .tm-record-dates dd { margin: 0; font-variant-numeric: tabular-nums; }
.tm-panel-ui .tm-domain-management .tm-domain-records { min-width: 54rem; }
.tm-panel-ui .tm-domain-management .tm-domain-records th,
.tm-panel-ui .tm-domain-management .tm-domain-records td { padding: .75rem; }
.tm-panel-ui .tm-domain-management .tm-domain-records .tm-domain-note { min-width: 9rem; max-width: 17rem; }
@media (max-width: 767.98px) {
    .tm-panel-ui .tm-domain-management .tm-domain-records { min-width: 0; }
    .tm-panel-ui .tm-domain-management .tm-domain-records .tm-domain-note { min-width: 0; max-width: none; }
    .tm-panel-ui .tm-domain-reset-toolbar { width: 100%; }
    .tm-panel-ui .tm-domain-reset-toolbar .btn { flex: 1 1 auto; }
}
.tm-panel-ui .tm-domain-management .tm-domain-table {
    width: 100%;
    table-layout: auto;
}
.tm-panel-ui .tm-domain-management .tm-table-wrapper:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}
.tm-panel-ui .tm-domain-management .tm-domain-table th {
    white-space: nowrap;
}
.tm-panel-ui .tm-domain-management .tm-domain-table td {
    vertical-align: middle;
}
.tm-panel-ui .tm-domain-management .tm-domain-table .tm-domain-note {
    min-width: 10rem;
    max-width: 22rem;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}
.tm-panel-ui .tm-domain-management .tm-domain-table bdi,
.tm-panel-ui .tm-domain-management .tm-domain-table [dir="ltr"] {
    white-space: nowrap;
    word-break: normal;
}
.tm-panel-ui .tm-domain-management .tm-domain-ac:not([hidden]) { display: block; }
.tm-panel-ui .tm-domain-management .tm-domain-ac[hidden] { display: none; }
.tm-panel-ui .tm-domain-management .tm-domain-ac button.active { background: var(--bs-primary-bg-subtle, #e7f1ff); }
@media (max-width: 767.98px) {
    .tm-panel-ui .tm-domain-management .tm-domain-table .tm-domain-note {
        min-width: 0;
        max-width: none;
    }
}

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/StoreDomain/Index.cshtml */
.tm-domain-ac {
        position: absolute;
        z-index: 1050;
        inset-inline: 0;
        top: 100%;
        max-height: 230px;
        overflow: auto;
        background: #fff;
        border: 1px solid #dee2e6;
        border-top: 0;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
        display: none;
    }

    .tm-domain-ac button {
        width: 100%;
        border: 0;
        background: #fff;
        text-align: start;
        padding: .45rem .65rem;
    }

    .tm-domain-ac button:hover,
    .tm-domain-ac button:focus {
        background: #f5f7fb;
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/StoreDomain/Report.cshtml */
.tm-admin-store-domain-report .tm-domain-report-ac { position: relative; }
    .tm-admin-store-domain-report .tm-domain-report-ac-list {
        position: absolute;
        z-index: 1055;
        inset-inline: 0;
        top: 100%;
        max-height: 240px;
        overflow-y: auto;
        background: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: 0 0 6px 6px;
        box-shadow: 0 .5rem 1rem rgba(15, 23, 42, .12);
    }
    .tm-admin-store-domain-report .tm-domain-report-ac-list button {
        border: 0;
        border-bottom: 1px solid var(--bs-border-color);
        border-radius: 0;
        text-align: right;
    }
    .tm-admin-store-domain-report .tm-domain-report-ac-list button:last-child { border-bottom: 0; }
    .tm-admin-store-domain-report .tm-domain-report-ac-list button.active {
        color: var(--bs-primary-text-emphasis);
        background: var(--bs-primary-bg-subtle);
    }
    .tm-admin-store-domain-report .tm-domain-report-ac-status {
        padding: .65rem .75rem;
        color: var(--bs-secondary-color);
        font-size: .8rem;
    }
    .tm-domain-report-heading { min-width: 0; }
    .tm-domain-report-nav { flex: 0 0 auto; }
    .tm-domain-report-filter .card-body { padding: 1rem; }
    .tm-domain-report-filter .form-label { font-size: .78rem; margin-bottom: .25rem; }
    .tm-domain-report-filter .input-group .form-control { min-width: 0; }
    .tm-domain-report-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding: .75rem 1rem;
        margin-top: 1rem;
        background: #fff;
        border: 1px solid rgba(148, 163, 184, .35);
        border-bottom: 0;
        border-radius: .75rem .75rem 0 0;
    }
    .tm-domain-report-table-wrap {
        overflow-x: auto;
        background: #fff;
        border: 1px solid rgba(148, 163, 184, .35);
        border-radius: 0 0 .75rem .75rem;
    }
    .tm-admin-heavy-page.tm-admin-store-domain-report .tm-domain-report-table-wrap table {
        width: 100%;
        min-width: 0 !important;
        table-layout: fixed;
        margin: 0;
    }
    .tm-domain-report-table th,
    .tm-domain-report-table td {
        padding: .72rem .55rem;
        overflow-wrap: anywhere;
    }
    .tm-domain-report-table th { white-space: normal !important; }
    .tm-domain-report-table td { vertical-align: top !important; line-height: 1.75; }
    .tm-domain-report-table .tm-col-select { width: 42px; text-align: center; }
    .tm-domain-report-table .tm-col-id { width: 9%; }
    .tm-domain-report-table .tm-col-domain { width: 16%; }
    .tm-domain-report-table .tm-col-owner { width: 14%; }
    .tm-domain-report-table .tm-col-status { width: 16%; }
    .tm-domain-report-table .tm-col-plan { width: 18%; }
    .tm-domain-report-table .tm-col-events { width: 13%; }
    .tm-domain-report-table .tm-col-delete { width: 14%; }
    .tm-domain-sort { display: inline-flex; align-items: center; gap: .35rem; color: inherit; text-decoration: none; }
    .tm-domain-sort:hover { color: var(--bs-primary); }
    .tm-domain-report-code { direction: ltr; text-align: left; overflow-wrap: anywhere; }
    .tm-domain-report-row-protected > td { background: rgba(25, 135, 84, .035); }
    .tm-domain-delete-owner { display: block; color: var(--bs-danger); font-weight: 800; direction: ltr; }
    .tm-domain-report-details summary { width: max-content; cursor: pointer; }
    .tm-domain-report-pagination { margin-top: 1rem; }

    @media (max-width: 1199.98px) {
        .tm-domain-report-table th,
        .tm-domain-report-table td { font-size: .89rem; padding-inline: .42rem; }
    }

    @media (max-width: 991.98px) {
        .tm-domain-report-heading { width: 100%; }
        .tm-domain-report-nav { width: 100%; }
        .tm-domain-report-nav .btn { flex: 1 1 50%; }
        .tm-domain-report-toolbar > * { width: 100%; }
        .tm-domain-report-toolbar .d-flex { width: 100%; }
        .tm-domain-report-toolbar .btn { flex: 1 1 calc(50% - .5rem); }
        .tm-admin-heavy-page.tm-admin-store-domain-report .tm-domain-report-table-wrap {
            overflow: visible;
            border: 0;
            background: transparent;
        }
        .tm-admin-heavy-page.tm-admin-store-domain-report .tm-domain-report-table {
            display: block;
            background: transparent;
        }
        .tm-domain-report-table thead { display: none; }
        .tm-domain-report-table tbody { display: grid; gap: .75rem; }
        .tm-domain-report-table tr {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            position: relative;
            overflow: hidden;
            background: #fff;
            border: 1px solid rgba(148, 163, 184, .38);
            border-radius: .75rem;
            box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .045);
        }
        .tm-domain-report-table td {
            display: block;
            width: auto !important;
            min-width: 0;
            border: 0;
            border-bottom: 1px solid rgba(148, 163, 184, .2);
            padding: .75rem;
        }
        .tm-domain-report-table td[colspan] {
            grid-column: 1 / -1;
            border-bottom: 0;
        }
        .tm-domain-report-table td::before {
            content: attr(data-label);
            display: block;
            margin-bottom: .25rem;
            color: #64748b;
            font-size: .75rem;
            font-weight: 900;
        }
        .tm-domain-report-table .tm-col-select {
            grid-column: 1 / -1;
            min-height: 42px;
            text-align: right;
            background: #f8fafc;
        }
        .tm-domain-report-table .tm-col-select::before { display: inline; margin-left: .5rem; }
        .tm-domain-report-table .tm-col-delete { grid-column: 1 / -1; }
    }

    @media (max-width: 575.98px) {
        .tm-domain-report-table tr { grid-template-columns: 1fr; }
        .tm-domain-report-table .tm-col-select,
        .tm-domain-report-table .tm-col-delete { grid-column: auto; }
        .tm-domain-report-toolbar .btn { flex: 1 1 100%; }
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/SystemNotification/Create.cshtml */
.tm-system-notification-page .tm-placeholder1-form .form-floating > label {
            color: #64748b;
            font-weight: 500;
            letter-spacing: 0;
            opacity: .9;
        }

        .tm-system-notification-page .tm-placeholder1-form .form-floating > .form-control:focus ~ label,
        .tm-system-notification-page .tm-placeholder1-form .form-floating > .form-control:not(:placeholder-shown) ~ label,
        .tm-system-notification-page .tm-placeholder1-form .form-floating > .form-select ~ label {
            color: #64748b;
            font-weight: 500;
            opacity: .85;
        }

        .tm-system-notification-page .tm-placeholder1-form .form-control::placeholder,
        .tm-system-notification-page .tm-placeholder1-form textarea.form-control::placeholder {
            color: #94a3b8;
            font-weight: 400;
            opacity: 1;
        }

        .tm-system-notification-page .tm-placeholder1-form .tm-floating-textarea {
            min-height: 10rem;
        }

        .tm-suggestion-list {
            border: 1px solid #dee2e6;
            border-radius: .5rem;
            margin-top: .25rem;
            max-height: 220px;
            overflow-y: auto;
            background: #fff;
            position: relative;
            z-index: 5;
        }

        .tm-suggestion-list:empty {
            display: none;
        }

        .tm-suggestion-list button {
            width: 100%;
            border: 0;
            border-bottom: 1px solid #f1f3f5;
            background: #fff;
            padding: .5rem .75rem;
            text-align: right;
        }

        .tm-suggestion-list button:hover {
            background: #f8f9fa;
        }

        .tm-selected-list {
            display: flex;
            flex-wrap: wrap;
            gap: .4rem;
            margin-top: .5rem;
            min-height: 2rem;
        }

        .tm-selected-chip {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            border: 1px solid #ced4da;
            border-radius: 999px;
            background: #f8f9fa;
            padding: .25rem .65rem;
            max-width: 100%;
        }

        .tm-selected-chip span {
            overflow-wrap: anywhere;
        }

        .tm-selected-chip button {
            border: 0;
            background: transparent;
            color: #dc3545;
            line-height: 1;
            padding: 0;
        }

        .tm-check-list {
            border: 1px solid #dee2e6;
            border-radius: .5rem;
            padding: .75rem;
            max-height: 240px;
            overflow-y: auto;
            background: #fff;
        }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/SystemNotification/Edit.cshtml */
.tm-system-notification-page .tm-placeholder1-form .form-floating > label {
            color: #64748b;
            font-weight: 500;
            letter-spacing: 0;
            opacity: .9;
        }

        .tm-system-notification-page .tm-placeholder1-form .form-floating > .form-control:focus ~ label,
        .tm-system-notification-page .tm-placeholder1-form .form-floating > .form-control:not(:placeholder-shown) ~ label,
        .tm-system-notification-page .tm-placeholder1-form .form-floating > .form-select ~ label {
            color: #64748b;
            font-weight: 500;
            opacity: .85;
        }

        .tm-system-notification-page .tm-placeholder1-form .form-control::placeholder,
        .tm-system-notification-page .tm-placeholder1-form textarea.form-control::placeholder {
            color: #94a3b8;
            font-weight: 400;
            opacity: 1;
        }

        /* نوع textarea در selector مانع غلبه حداقل ارتفاع عمومی فیلدهای پنل در موبایل می‌شود. */
        .tm-system-notification-page .tm-placeholder1-form textarea.tm-floating-textarea {
            min-height: 12rem;
        }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/SystemNotification/Index.cshtml */
.tm-system-notification-page .tm-placeholder1-form .form-floating > label {
            color: #64748b;
            font-weight: 500;
            letter-spacing: 0;
            opacity: .9;
        }

        .tm-system-notification-page .tm-placeholder1-form .form-floating > .form-control:focus ~ label,
        .tm-system-notification-page .tm-placeholder1-form .form-floating > .form-control:not(:placeholder-shown) ~ label,
        .tm-system-notification-page .tm-placeholder1-form .form-floating > .form-select ~ label {
            color: #64748b;
            font-weight: 500;
            opacity: .85;
        }

        .tm-system-notification-page .tm-placeholder1-form .form-control::placeholder {
            color: #94a3b8;
            font-weight: 400;
            opacity: 1;
        }

        .tm-system-notification-page .tm-placeholder1-filter .btn {
            min-height: 58px;
        }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/TeraPayment/_DiscountFormFields.cshtml */
.discount-token-wrap {
        min-height: 38px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        padding: .35rem;
        display: flex;
        flex-wrap: wrap;
        gap: .35rem;
        align-items: center;
        background: #fff;
    }

    .discount-token {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        padding: .18rem .5rem;
        border-radius: 999px;
        background: #eef4ff;
        color: #174a8b;
        font-size: .82rem;
        line-height: 1.6;
    }

    .discount-token button {
        border: 0;
        background: transparent;
        color: inherit;
        padding: 0;
        line-height: 1;
    }

    .discount-ac {
        position: absolute;
        z-index: 1050;
        inset-inline: 0;
        top: 100%;
        max-height: 220px;
        overflow: auto;
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
        display: none;
    }

    .discount-ac button {
        width: 100%;
        border: 0;
        background: #fff;
        text-align: start;
        padding: .45rem .65rem;
    }

    .discount-ac button:hover {
        background: #f5f7fb;
    }

    .discount-plan-list {
        max-height: 260px;
        overflow: auto;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        padding: .25rem .75rem;
    }

    .discount-switch-card {
        min-height: 70px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        padding: .75rem;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
    }

    .discount-switch-card .form-check-input {
        width: 3rem;
        height: 1.5rem;
        margin-inline-start: 0;
    }

    .tm-discount-form .form-switch {
        display: flex;
        align-items: center;
        gap: .5rem;
        padding-inline-start: 0;
    }

    .tm-discount-form .form-switch .form-check-input {
        float: none;
        flex: 0 0 auto;
        margin: 0;
    }

    .tm-discount-form .form-switch .form-check-label {
        margin: 0;
    }

/* Migrated component styles: ZarMall.Web/Areas/Admin/Views/TeraPayment/Discounts.cshtml */
.tera-discount-status-toggle .form-check-input {
        width: 2.8rem;
        height: 1.35rem;
        cursor: pointer;
    }

    .tera-discount-status-toggle .badge {
        min-width: 58px;
    }

/* Migrated component styles: ZarMall.Web/Areas/My/Views/Impersonation/Ended.cshtml */
.tm-impersonation-ended { margin: 0; font-family: Tahoma, sans-serif; background: #f8f9fa; color: #212529; }
        .tm-impersonation-ended main { max-width: 38rem; margin: 12vh auto; padding: 2rem; text-align: center; background: #fff; border: 1px solid #dee2e6; border-radius: 1rem; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.08); }
        .tm-impersonation-ended :is(a, button) { display: inline-flex; align-items: center; justify-content: center; margin-top: 1rem; padding: .65rem 1rem; color: #fff; background: #343a40; border: 0; border-radius: .5rem; text-align: center; vertical-align: middle; text-decoration: none; cursor: pointer; }

/* Migrated component styles: ZarMall.Web/Areas/My/Views/PostShipping/Index.cshtml */
#postshipping-root .postshipping-section {
    border: 1px solid color-mix(in srgb, var(--tm-border-color) 82%, transparent);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 .35rem 1.15rem rgba(15, 23, 42, .055);
}

#postshipping-root .postshipping-section--top {
    position: relative;
    z-index: 20;
    overflow: visible;
}

#postshipping-root .postshipping-section--weights {
    position: relative;
    overflow: visible;
}

#postshipping-root[aria-busy="true"] {
    cursor: progress;
}

#postshipping-root[aria-busy="true"] > :not(#postshipping-flash) {
    opacity: .72;
    pointer-events: none;
}

#postshipping-root .postshipping-section > .card-header {
    border-bottom: 1px solid color-mix(in srgb, var(--tm-border-color) 82%, transparent);
    font-weight: 600;
}

#postshipping-root .tm-shipping-hero {
    border: 1px solid rgba(13, 110, 253, .16);
    background:
        radial-gradient(circle at 8% 12%, rgba(13, 110, 253, .12), transparent 34%),
        var(--tm-surface-bg);
}

#postshipping-root .tm-shipping-hero-icon,
#postshipping-root .tm-shipping-store-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
}

#postshipping-root .tm-shipping-hero-icon {
    width: 3rem;
    height: 3rem;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    box-shadow: 0 .5rem 1rem rgba(13, 110, 253, .22);
    font-size: 1.35rem;
}

#postshipping-root .tm-shipping-campaign-link,
#postshipping-root .tm-shipping-store-dropdown > .btn,
#postshipping-root .tm-shipping-method-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

#postshipping-root .tm-shipping-header-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .55rem;
}

#postshipping-root .tm-shipping-store-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: .85rem 1rem;
    border: 1px solid rgba(13, 110, 253, .18);
    border-radius: .9rem;
    background: color-mix(in srgb, var(--tm-surface-bg) 92%, #0d6efd 8%);
}

#postshipping-root .tm-shipping-store-icon {
    width: 2.35rem;
    height: 2.35rem;
    color: #0d6efd;
    background: rgba(13, 110, 253, .1);
    font-size: 1.05rem;
}

#postshipping-root .tm-shipping-store-dropdown {
    flex: 0 0 auto;
}

#postshipping-root .tm-shipping-store-dropdown .dropdown-menu {
    width: min(28rem, calc(100vw - 3rem));
    max-width: 100%;
    max-height: 20rem;
    padding: .45rem;
    overflow-y: auto;
    border-color: rgba(13, 110, 253, .2);
    border-radius: .85rem;
    box-shadow: 0 1rem 2.4rem rgba(15, 23, 42, .16);
    z-index: 1080;
}

#postshipping-root .tm-shipping-store-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.8rem;
    margin-block: .15rem;
    padding: .65rem .8rem;
    border-radius: .6rem;
    direction: rtl;
    text-align: right;
}

#postshipping-root .tm-shipping-store-dropdown .dropdown-item.active {
    color: #fff;
    background: #0d6efd;
}

#postshipping-root .tm-shipping-single-store-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 2.35rem;
    padding-inline: .75rem;
}

#postshipping-root .tm-shipping-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
}

#postshipping-root .postshipping-section--methods { border-inline-start: 4px solid #0d6efd; }
#postshipping-root .postshipping-section--methods > .card-header { background: #eef5ff; }
#postshipping-root .postshipping-section--workspace { border-inline-start: 4px solid #0d6efd; }
#postshipping-root .postshipping-section--workspace > .card-header { background: #eef5ff; }
#postshipping-root .postshipping-section--provinces { border-inline-start: 4px solid #20c997; }
#postshipping-root .postshipping-section--provinces > .card-header { background: #ecfbf7; }
#postshipping-root .postshipping-section--weights { border-inline-start: 4px solid #fd7e14; }
#postshipping-root .postshipping-section--free { border-inline-start: 4px solid #198754; }
#postshipping-root .postshipping-section--free > .card-header { background: #eefbf3; }
#postshipping-root .postshipping-section--pike { border-inline-start: 4px solid #6f42c1; }
#postshipping-root .postshipping-section--pike > .card-header { background: #f4eeff; }
#postshipping-root .postshipping-section--history { border-inline-start: 4px solid #6c757d; }
#postshipping-root .postshipping-section--history > .card-header { background: #f5f6f7; }

#postshipping-root #psStoreMethodBody tr[data-method-selected="true"] {
    box-shadow: inset -5px 0 0 #0d6efd, 0 .3rem .8rem rgba(13, 110, 253, .1);
}

#postshipping-root #psStoreMethodBody tr[data-method-selected="true"] > td {
    background: color-mix(in srgb, var(--tm-surface-bg) 88%, #0d6efd 12%);
}

#postshipping-root .tm-shipping-method-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

#postshipping-root .tm-shipping-effective-badge {
    max-width: 100%;
    padding: .45rem .65rem;
    white-space: normal;
    line-height: 1.55;
    text-align: right;
}

#postshipping-root .tm-shipping-method-form {
    display: grid;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

#postshipping-root .tm-shipping-method-switches,
#postshipping-root .tm-shipping-method-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem 1rem;
}

#postshipping-root .tm-shipping-method-switches .form-check,
#postshipping-root .tm-shipping-payment-box .form-check {
    margin: 0;
}

#postshipping-root .tm-shipping-method-select-cell .btn,
#postshipping-root .tm-shipping-method-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    white-space: nowrap;
}

#postshipping-root .tm-shipping-method-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: .85rem;
}

#postshipping-root .tm-shipping-editor-group {
    min-width: 0;
    margin: 0;
    padding: .85rem;
    border: 1px solid color-mix(in srgb, var(--tm-border-color) 88%, transparent);
    border-radius: .8rem;
    background: color-mix(in srgb, var(--tm-surface-alt-bg) 76%, transparent);
}

#postshipping-root .tm-shipping-editor-group > legend {
    float: none;
    width: auto;
    margin: 0 0 .65rem;
    padding: 0;
    font-size: .9rem;
    font-weight: 700;
}

#postshipping-root .tm-shipping-editor-group > small {
    display: block;
    margin-top: .65rem;
    line-height: 1.65;
}

#postshipping-root .tm-shipping-payment-box {
    padding: .85rem;
}

#postshipping-root .tm-shipping-payment-choices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem 1.15rem;
}

#postshipping-root .tm-shipping-method-workspace:focus {
    outline: 0;
}

#postshipping-root .tm-shipping-method-workspace:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .2), 0 .35rem 1.15rem rgba(15, 23, 42, .08);
}

#postshipping-root .tm-shipping-workspace-heading {
    display: grid;
    gap: .85rem;
    padding: 1rem;
}

#postshipping-root .tm-shipping-workspace-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

#postshipping-root .tm-shipping-context-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

#postshipping-root .tm-shipping-context-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    padding: .7rem .8rem;
    border: 1px solid rgba(13, 110, 253, .18);
    border-radius: .75rem;
    background: color-mix(in srgb, var(--tm-surface-bg) 94%, #0d6efd 6%);
}

#postshipping-root .tm-shipping-context-icon {
    display: inline-flex;
    flex: 0 0 2.15rem;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: .65rem;
    color: #0d6efd;
    background: rgba(13, 110, 253, .1);
}

#postshipping-root .tm-shipping-context-copy {
    min-width: 0;
}

#postshipping-root .tm-shipping-context-label,
#postshipping-root .tm-shipping-context-value {
    display: block;
}

#postshipping-root .tm-shipping-context-label {
    color: var(--tm-muted-color);
    font-size: .75rem;
}

#postshipping-root .tm-shipping-context-value {
    overflow: hidden;
    color: var(--tm-text-color, var(--bs-body-color)) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#postshipping-root .tm-shipping-rule-context {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem 1rem;
    color: var(--tm-muted-color);
    font-size: .82rem;
    line-height: 1.65;
}

#postshipping-root .postshipping-section--weights .tm-shipping-rule-context {
    color: rgba(255, 255, 255, .9) !important;
}

#postshipping-root .postshipping-section--weights .tm-shipping-rule-context strong {
    color: #fff !important;
}

#postshipping-root .tm-shipping-rule-context > span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

#postshipping-root .tm-check-dropdown-field,
#postshipping-root .tm-check-dropdown {
    position: relative;
    width: 100%;
    min-width: 0;
}

#postshipping-root .tm-check-dropdown-field > label {
    position: absolute;
    z-index: 3;
    inset-block-start: .32rem;
    inset-inline-start: .78rem;
    max-width: calc(100% - 3.5rem);
    overflow: hidden;
    color: var(--tm-muted-color);
    font-size: .72rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

#postshipping-root .tm-check-dropdown-field:focus-within > label {
    color: var(--bs-primary);
}

#postshipping-root .tm-check-dropdown-toggle {
    min-height: 3.65rem;
    padding-block: 1.42rem .38rem;
    padding-inline-start: .78rem;
    padding-inline-end: 2.35rem;
    overflow: hidden;
    color: var(--tm-text-color, var(--bs-body-color));
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#postshipping-root .tm-check-dropdown-toggle:disabled {
    color: var(--tm-muted-color);
}

#postshipping-root .tm-check-dropdown-toggle[aria-invalid="true"] {
    border-color: var(--bs-danger);
    box-shadow: 0 0 0 .2rem rgba(var(--bs-danger-rgb), .16);
}

#postshipping-root .tm-check-dropdown-menu {
    z-index: 1080;
    width: 100%;
    min-width: min(20rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 1.5rem);
    padding: .55rem;
    border-color: var(--tm-border-color, var(--bs-border-color));
    box-shadow: 0 .75rem 1.75rem rgba(15, 23, 42, .14);
}

#postshipping-root .tm-check-dropdown-tools {
    padding-block-end: .45rem;
}

#postshipping-root .tm-check-dropdown-options {
    max-height: min(19rem, 48vh);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

@media (max-width: 575.98px) {
    #postshipping-root .tm-check-dropdown-menu {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

#postshipping-root .tm-check-dropdown-option {
    display: flex;
    align-items: center;
    gap: .48rem;
    min-height: 2.75rem;
    margin: 0;
    padding: .35rem .3rem;
    border-radius: .45rem;
}

#postshipping-root .tm-check-dropdown-option:hover,
#postshipping-root .tm-check-dropdown-option:focus-within {
    background: color-mix(in srgb, var(--bs-primary) 8%, transparent);
}

#postshipping-root .tm-check-dropdown-option .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

#postshipping-root .tm-check-dropdown-option .form-check-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    cursor: pointer;
}

#postshipping-root .tm-shipping-destination-summary {
    max-width: 32rem;
    overflow-wrap: anywhere;
    line-height: 1.75;
}

#postshipping-root .tm-shipping-method-workspace .alert {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

#postshipping-root .tm-shipping-bulk-policy {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: .8rem;
}

#postshipping-root .tm-shipping-bulk-policy .tm-field-group {
    min-width: min(100%, 19rem);
}

#postshipping-root .tm-shipping-bulk-policy > small {
    flex: 1 0 100%;
    line-height: 1.65;
}

#postshipping-root .tm-shipping-province-form {
    display: grid;
    grid-template-columns: minmax(19rem, 1fr) auto;
    align-items: center;
    gap: .55rem;
    min-width: 26rem;
}

#postshipping-root .tm-shipping-province-choice-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

#postshipping-root .tm-shipping-province-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: var(--tm-control-height);
    margin: 0;
    padding: .45rem .55rem;
    border: 1px solid var(--tm-border-color);
    border-radius: .65rem;
    background: var(--tm-surface-bg);
    cursor: pointer;
}

#postshipping-root .tm-shipping-province-radio .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

#postshipping-root .tm-shipping-province-radio .form-check-label {
    margin: 0;
    white-space: nowrap;
    cursor: pointer;
}

#postshipping-root .tm-shipping-province-radio--inherit:has(.form-check-input:checked) {
    border-color: #6c757d;
    background: rgba(108, 117, 125, .1);
}

#postshipping-root .tm-shipping-province-radio--allow:has(.form-check-input:checked) {
    border-color: #198754;
    background: rgba(25, 135, 84, .12);
}

#postshipping-root .tm-shipping-province-radio--block:has(.form-check-input:checked) {
    border-color: #dc3545;
    background: rgba(220, 53, 69, .11);
}

#postshipping-root .tm-shipping-province-form .btn {
    min-height: var(--tm-control-height);
}

#postshipping-root .tm-drag-handle {
    cursor: grab;
    user-select: none;
}

#postshipping-root tr.sortable-dragging { opacity: .7; }

#postshipping-root tr.drag-over {
    outline: 2px dashed rgba(13, 110, 253, .35);
    outline-offset: -2px;
}

[data-bs-theme="dark"] #postshipping-root .tm-shipping-hero,
[data-bs-theme="dark"] #postshipping-root .tm-shipping-store-panel,
[data-bs-theme="dark"] #postshipping-root .tm-shipping-context-item {
    background: color-mix(in srgb, var(--tm-surface-bg) 92%, #0d6efd 8%);
}

[data-bs-theme="dark"] #postshipping-root .postshipping-section > .card-header {
    background: var(--tm-surface-alt-bg);
}

@media (max-width: 991.98px) {
    #postshipping-root .card-body { padding: .85rem; }
    #postshipping-root .table-responsive[style*="max-height"] { max-height: none !important; }
    #postshipping-root table { font-size: .9rem; }
    #postshipping-root .tm-shipping-method-form,
    #postshipping-root .tm-shipping-province-form { min-width: 0; }

    #postshipping-root .tm-shipping-method-editor-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #postshipping-root .tm-store-menu-table-wrap {
        max-height: none;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    #postshipping-root table.tm-shipping-method-table {
        display: block;
        min-width: 0 !important;
        border: 0;
        background: transparent;
    }

    #postshipping-root table.tm-shipping-method-table > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    #postshipping-root table.tm-shipping-method-table > tbody {
        display: grid;
        gap: .75rem;
        width: 100%;
        padding: .75rem;
    }

    #postshipping-root table.tm-shipping-method-table > tbody > tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "summary order"
            "status status"
            "action action";
        width: 100%;
        min-width: 0;
        overflow: hidden;
        border: 1px solid var(--tm-border-color);
        border-radius: .9rem;
        background: var(--tm-surface-bg);
        box-shadow: var(--tm-shadow-sm);
    }

    #postshipping-root table.tm-shipping-method-table > tbody > tr[data-method-selected="true"] {
        border: 2px solid #0d6efd;
        box-shadow: 0 .4rem 1rem rgba(13, 110, 253, .16);
    }

    #postshipping-root table.tm-shipping-method-table > tbody > tr > td {
        position: static !important;
        display: block;
        width: 100%;
        min-width: 0 !important;
        min-height: 0;
        padding: .7rem .8rem;
        border: 0;
        background: transparent !important;
        box-shadow: none !important;
        white-space: normal !important;
        text-align: right;
    }

    #postshipping-root table.tm-shipping-method-table > tbody > tr[data-method-selected="true"] > td {
        background: color-mix(in srgb, var(--tm-surface-bg) 94%, #0d6efd 6%) !important;
    }

    #postshipping-root table.tm-shipping-method-table > tbody > tr > td::before {
        display: none;
    }

    #postshipping-root table.tm-shipping-method-table > tbody > tr > td > * {
        grid-column: auto;
        max-width: 100%;
    }

    #postshipping-root .tm-shipping-method-order-cell {
        grid-area: order;
        display: flex !important;
        align-items: flex-start;
        justify-content: flex-end;
        width: auto !important;
    }

    #postshipping-root .tm-shipping-method-summary-cell {
        grid-area: summary;
    }

    #postshipping-root .tm-shipping-method-status-cell {
        grid-area: status;
        border-top: 1px solid var(--tm-table-row-separator-color) !important;
    }

    #postshipping-root .tm-shipping-method-select-cell {
        grid-area: action;
        display: flex !important;
        align-items: center;
        justify-content: stretch;
        border-top: 1px solid var(--tm-table-row-separator-color) !important;
    }

    #postshipping-root .tm-shipping-method-select-cell .btn {
        width: 100% !important;
        min-height: 44px;
        font-size: .875rem !important;
    }
}

@media (max-width: 767.98px) {
    #postshipping-root .card-header {
        font-size: .95rem;
        line-height: 1.35;
    }

    #postshipping-root .tm-shipping-store-panel {
        align-items: stretch;
        flex-direction: column;
    }

    #postshipping-root .tm-shipping-store-dropdown,
    #postshipping-root .tm-shipping-store-dropdown > .btn,
    #postshipping-root .tm-shipping-campaign-link,
    #postshipping-root .tm-shipping-single-store-badge {
        width: 100%;
    }

    #postshipping-root .tm-shipping-header-links {
        width: 100%;
    }

    #postshipping-root .tm-shipping-header-links .btn {
        flex: 1 1 12rem;
    }

    #postshipping-root .tm-shipping-store-dropdown .dropdown-menu {
        width: 100%;
    }

    #postshipping-root .tm-shipping-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
    }

    #postshipping-root .btn,
    #postshipping-root .form-control,
    #postshipping-root .form-select {
        min-height: 2.75rem;
    }

    #postshipping-root .tm-shipping-bulk-policy .btn {
        flex: 1 1 10rem;
    }

    #postshipping-root .tm-shipping-method-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    #postshipping-root .tm-shipping-method-actions .btn {
        width: 100%;
        min-height: 44px;
        flex: 0 0 auto;
    }

    #postshipping-root .tm-shipping-province-form {
        grid-template-columns: 1fr;
        width: 100%;
    }

    #postshipping-root .table td,
    #postshipping-root .table th {
        white-space: normal;
        vertical-align: top;
    }
}

@media (max-width: 575.98px) {
    #postshipping-root .tm-shipping-hero .card-body { padding: .85rem; }
    #postshipping-root .tm-shipping-hero-icon { width: 2.6rem; height: 2.6rem; }
    #postshipping-root .tm-shipping-context-list { grid-template-columns: minmax(0, 1fr); }
    #postshipping-root .tm-shipping-workspace-title-row { align-items: flex-start; flex-direction: column; }
    #postshipping-root .tm-shipping-method-switches { align-items: stretch; flex-direction: column; }
    #postshipping-root .tm-shipping-method-actions { grid-template-columns: minmax(0, 1fr); }
    #postshipping-root .tm-shipping-method-actions .btn { width: 100%; }
    #postshipping-root .tm-shipping-payment-choices { align-items: stretch; flex-direction: column; }
}

/* Migrated component styles: ZarMall.Web/Areas/My/Views/Profile/EditAccountInfo.cshtml */
.tm-profile-photo-card {
        border: 1px solid #edf0f4;
        border-radius: 1rem;
        background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
        padding: 1rem;
    }

    .tm-profile-photo-shell { position: relative; display: inline-flex; flex: 0 0 auto; }
    #editAccountInfoForm .tm-profile-photo-delete {
        position: absolute;
        inset-inline-end: 0;
        bottom: 0;
        width: 32px;
        height: 32px;
        min-height: 32px;
        min-width: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
        background-color: var(--bs-body-bg, #fff);
        z-index: 1;
    }

    /* پیام کنار فیلد کافی است؛ آرم بانک و فلش انتخاب‌گر حفظ می‌شوند. */
    #bankAccountForm .form-control { background-image: none !important; }
    #bankAccountForm .form-select { --bs-form-select-bg-icon: none !important; }

    .tm-profile-photo-preview {
        width: 96px;
        height: 96px;
        font-size: 2.2rem;
    }

    #editAccountInfoForm .form-floating > label {
        color: #64748b;
        font-weight: 500;
        letter-spacing: 0;
        opacity: .9;
    }

    #editAccountInfoForm .form-control::placeholder,
    #editAccountInfoForm .form-select::placeholder {
        color: #94a3b8;
        font-weight: 400;
        opacity: 1;
    }

    #editAccountInfoForm .form-floating > .form-control::placeholder {
        color: transparent;
    }

    #editAccountInfoForm .form-floating > .form-control:focus ~ label,
    #editAccountInfoForm .form-floating > .form-control:not(:placeholder-shown) ~ label,
    #editAccountInfoForm .form-floating > .form-select ~ label {
        color: #64748b;
        font-weight: 500;
        opacity: .85;
    }

    .tm-profile-validation-message,
    .field-validation-error,
    .validation-summary-errors {
        font-family: inherit;
        direction: rtl;
        text-align: right;
        line-height: 1.8;
        letter-spacing: 0;
    }

    .field-validation-error {
        display: block;
        margin-top: .35rem;
        font-size: .82rem;
        font-weight: 700;
    }

    .tm-profile-validation-message {
        border-radius: .75rem;
        font-size: .88rem;
        font-weight: 800;
    }

    .tm-password-policy {
        border: 1px solid #e2e8f0;
        border-radius: .85rem;
        background: #f8fafc;
        color: #475569;
        font-size: .78rem;
        line-height: 1.9;
        padding: .75rem .9rem;
    }

    .tm-password-policy ul {
        margin: .35rem 0 0;
        padding-right: 1rem;
    }

    .tm-password-policy li {
        margin-bottom: .15rem;
    }

    .tm-password-field {
        position: relative;
    }

    .tm-password-field .form-control {
        padding-left: 3.35rem;
    }

    /* پیام فارسی و کادر خطا کافی است؛ آیکن اعتبارسنجی نباید با کلید نمایش رمز تداخل کند. */
    #editAccountInfoForm .tm-password-field .form-control {
        background-image: none !important;
    }

    .tm-password-toggle {
        position: absolute;
        top: 1.75rem;
        left: .8rem;
        z-index: 5;
        width: 2.25rem;
        height: 2.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        color: #64748b;
        background: transparent;
        transform: translateY(-50%);
        transition: background-color .15s ease, color .15s ease;
    }

    .tm-password-toggle:hover,
    .tm-password-toggle:focus-visible {
        color: #0f172a;
        background: #e2e8f0;
        outline: none;
    }

    .tm-password-strength {
        height: .45rem;
        border-radius: 999px;
        background: #e2e8f0;
        overflow: hidden;
    }

    .tm-password-strength-bar {
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: #dc3545;
        transition: width .2s ease, background-color .2s ease;
    }

/* Migrated component styles: ZarMall.Web/Areas/My/Views/ShoppingOrder/Index.cshtml */
/* سفارش‌های پرداخت‌شده که هنوز اقدامی روی آن‌ها انجام نشده با رنگ ملایم مشخص می‌شوند. */
    #shoppingOrderTableBody .shopping-order-row-pending > td {
        background-color: #fff8db !important;
    }

/* Migrated component styles: ZarMall.Web/Areas/My/Views/Social/Index.cshtml */
.tm-social-dashboard .tm-social-profile-hero,
    .tm-social-dashboard .tm-social-panel {
        border: 1px solid rgba(15, 23, 42, .1);
        border-radius: 8px;
        background: var(--bs-body-bg);
        box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
    }

    .tm-social-profile-hero {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.1rem;
    }

    .tm-social-profile-avatar {
        width: 5rem;
        min-width: 5rem;
        height: 5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(135deg, #ef4444, #f59e0b 42%, #2563eb);
        font-size: 2rem;
        font-weight: 900;
        text-transform: uppercase;
        overflow: hidden;
    }

    .tm-social-profile-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .tm-social-profile-hero h1,
    .tm-social-panel h2 {
        margin: 0;
        font-weight: 900;
        letter-spacing: 0;
    }

    .tm-social-profile-hero h1 {
        font-size: 1.45rem;
    }

    .tm-social-panel h2 {
        font-size: 1.05rem;
    }

    .tm-social-panel {
        padding: 1rem;
    }

    .tm-social-panel p {
        margin: .25rem 0 .8rem;
        color: var(--bs-secondary-color);
        font-size: .9rem;
    }

    .tm-social-stats {
        display: flex;
        align-items: center;
        gap: .8rem;
        flex-wrap: wrap;
        margin-top: .65rem;
        color: var(--bs-secondary-color);
    }

    .tm-social-stats strong {
        color: var(--bs-body-color);
        font-weight: 900;
    }

    .tm-social-stats > span {
        display: none;
    }

    .tm-social-status-pill {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: 999px;
        padding: .25rem .65rem;
        color: var(--bs-secondary-color);
        background: color-mix(in srgb, var(--bs-body-bg) 90%, #e2e8f0);
        font-size: .78rem;
        font-weight: 850;
    }

    .tm-social-status-pill i {
        color: #94a3b8;
        font-size: .55rem;
    }

    .tm-social-status-pill.is-online {
        border-color: rgba(34, 197, 94, .28);
        color: #15803d;
        background: rgba(34, 197, 94, .1);
    }

    .tm-social-status-pill.is-online i {
        color: #22c55e;
    }

    .tm-social-stat-link {
        display: inline-flex;
        align-items: center;
        gap: .25rem;
        border: 0;
        padding: .25rem .1rem;
        background: transparent;
        color: var(--bs-secondary-color);
        text-decoration: none;
        font: inherit;
        cursor: pointer;
    }

    .tm-social-stat-link:hover,
    .tm-social-stat-link:focus {
        color: var(--bs-primary);
    }

    .tm-social-follow-row {
        display: flex;
        align-items: center;
        gap: .65rem;
        padding: .65rem .25rem;
    }

    .tm-social-follow-row + .tm-social-follow-row {
        border-top: 1px solid var(--bs-border-color-translucent);
    }

    .tm-social-follow-avatar {
        width: 2.4rem;
        min-width: 2.4rem;
        height: 2.4rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(135deg, #ef4444, #f97316 45%, #2563eb);
        font-weight: 900;
        text-transform: uppercase;
    }

    .tm-social-follow-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tm-social-notifications {
        display: grid;
        gap: .65rem;
    }

    .tm-social-notification {
        display: flex;
        align-items: center;
        gap: .75rem;
        padding: .7rem;
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: 8px;
        background: color-mix(in srgb, var(--bs-body-bg) 92%, #e2e8f0);
    }

    .tm-social-notification.is-unseen {
        border-color: rgba(220, 53, 69, .25);
        background: color-mix(in srgb, var(--bs-danger) 7%, var(--bs-body-bg));
    }

    .tm-social-notification-icon {
        width: 2.2rem;
        min-width: 2.2rem;
        height: 2.2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: var(--bs-primary);
        background: rgba(13, 110, 253, .1);
    }

    .tm-social-notification-avatar {
        width: 2.2rem;
        min-width: 2.2rem;
        height: 2.2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(135deg, #ef4444, #f97316 45%, #2563eb);
        font-weight: 950;
        text-decoration: none;
        text-transform: uppercase;
    }

    .tm-social-notification-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .tm-social-notification-actor {
        display: inline-block;
        max-width: 100%;
        overflow-wrap: anywhere;
        margin-bottom: .1rem;
        color: var(--bs-body-color);
        font-weight: 950;
        text-decoration: none;
    }

    .tm-social-notification-actor:hover,
    .tm-social-notification-actor:focus {
        color: var(--bs-primary);
    }

    .tm-social-empty {
        padding: .85rem;
        border-radius: 8px;
        background: color-mix(in srgb, var(--bs-primary) 7%, var(--bs-body-bg));
        color: var(--bs-secondary-color);
        text-align: center;
    }

    .tm-social-search-results {
        margin-top: .6rem;
        display: grid;
        gap: .5rem;
    }

    .tm-social-search-item {
        display: flex;
        align-items: center;
        gap: .65rem;
        padding: .65rem;
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: 8px;
        background: color-mix(in srgb, var(--bs-body-bg) 94%, var(--bs-primary));
    }

    .tm-social-search-item .tm-social-search-avatar {
        width: 2.35rem;
        min-width: 2.35rem;
        height: 2.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(135deg, #ef4444, #f97316 45%, #2563eb);
        font-weight: 900;
        text-transform: uppercase;
    }

    .tm-social-search-item .tm-social-search-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tm-social-search-item a {
        color: var(--bs-body-color);
        font-weight: 900;
        text-decoration: none;
    }

    .tm-last-seen-settings {
        display: grid;
        gap: .9rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--bs-border-color-translucent);
    }

    .tm-last-seen-settings h3 {
        margin: 0;
        font-size: .95rem;
        font-weight: 950;
        letter-spacing: 0;
    }

    .tm-last-seen-settings p {
        margin: .25rem 0 0;
    }

    .tm-last-seen-exception-box {
        display: grid;
        gap: .55rem;
    }

    .tm-last-seen-exception-list {
        display: grid;
        gap: .5rem;
    }

    .tm-last-seen-exception-item {
        display: flex;
        align-items: center;
        gap: .65rem;
        padding: .65rem;
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: 8px;
        background: color-mix(in srgb, var(--bs-body-bg) 94%, var(--bs-primary));
    }

    .tm-last-seen-exception-avatar {
        width: 2.35rem;
        min-width: 2.35rem;
        height: 2.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(135deg, #ef4444, #f97316 45%, #2563eb);
        font-weight: 950;
        text-decoration: none;
        text-transform: uppercase;
    }

    .tm-last-seen-exception-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tm-last-seen-exception-name {
        color: var(--bs-body-color);
        font-weight: 950;
        text-decoration: none;
    }

    .tm-last-seen-exception-item small {
        display: block;
        color: var(--bs-secondary-color);
        font-size: .76rem;
    }

    .tm-last-seen-empty {
        padding: .75rem;
        border: 1px dashed var(--bs-border-color);
        border-radius: 8px;
        color: var(--bs-secondary-color);
        text-align: center;
    }

    .tm-saved-board {
        display: grid;
        gap: 1.15rem;
        padding: .25rem 0 .1rem;
    }

    .tm-saved-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding-bottom: .85rem;
        border-bottom: 1px solid var(--bs-border-color-translucent);
    }

    .tm-saved-head h3 {
        margin: 0;
        color: var(--bs-body-color);
        font-size: 1.05rem;
        font-weight: 950;
        letter-spacing: 0;
    }

    .tm-saved-head p,
    .tm-saved-empty span {
        margin: .18rem 0 0;
        color: var(--bs-secondary-color);
        font-size: .88rem;
    }

    .tm-saved-lock {
        width: 2.35rem;
        min-width: 2.35rem;
        height: 2.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: 50%;
        color: var(--bs-secondary-color);
        background: color-mix(in srgb, var(--bs-body-bg) 88%, #e2e8f0);
    }

    .tm-saved-count-strip {
        justify-self: start;
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        width: fit-content;
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: 999px;
        padding: .48rem .8rem;
        background: color-mix(in srgb, var(--bs-body-bg) 92%, #e2e8f0);
        color: inherit;
    }

    .tm-saved-count-strip strong {
        font-weight: 950;
    }

    .tm-saved-count-strip span {
        color: var(--bs-secondary-color);
    }

    .tm-saved-grid-shell {
        display: grid;
        gap: .85rem;
        padding-top: .35rem;
    }

    .tm-saved-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .18rem;
        max-width: 52rem;
    }

    .tm-saved-tile {
        position: relative;
        display: block;
        aspect-ratio: var(--tm-product-media-ratio);
        overflow: hidden;
        border: 0;
        padding: 0;
        border-radius: 3px;
        background: var(--tm-product-media-bg);
        cursor: pointer;
    }

    .tm-saved-tile.is-unsaved {
        display: none;
    }

    .tm-saved-tile img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: var(--tm-product-media-fit);
        transition: filter .22s ease;
    }

    .tm-saved-tile-type {
        position: absolute;
        top: .55rem;
        inset-inline-end: .55rem;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.65rem;
        height: 1.65rem;
        border-radius: 50%;
        color: #fff;
        background: rgba(15, 23, 42, .58);
        backdrop-filter: blur(8px);
    }

    .tm-saved-tile-overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.25rem;
        color: #fff;
        background: rgba(0, 0, 0, .42);
        font-weight: 950;
        opacity: 0;
        transition: opacity .18s ease;
    }

    .tm-saved-tile-overlay span {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
    }

    .tm-saved-tile:hover img,
    .tm-saved-tile:focus-visible img {
        filter: saturate(1.05);
    }

    .tm-saved-tile:hover .tm-saved-tile-overlay,
    .tm-saved-tile:focus-visible .tm-saved-tile-overlay {
        opacity: 1;
    }

    .tm-saved-empty {
        min-height: 14rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .55rem;
        border: 1px dashed var(--bs-border-color);
        border-radius: 8px;
        color: var(--bs-secondary-color);
        text-align: center;
    }

    .tm-saved-empty i {
        width: 4rem;
        height: 4rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid currentColor;
        border-radius: 50%;
        font-size: 1.75rem;
    }

    .tm-saved-empty strong {
        color: var(--bs-body-color);
        font-size: 1.05rem;
        font-weight: 950;
    }

    .tm-saved-detail-modal .modal-content {
        overflow: hidden;
        border: 0;
        border-radius: 8px;
        box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
    }

    .tm-saved-detail-modal .modal-body {
        padding: 0;
        background: color-mix(in srgb, var(--bs-body-bg) 96%, #e5e7eb);
    }

    .tm-saved-detail-modal .tm-social-timeline {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 1rem;
    }

    .tm-saved-detail-modal .tm-social-timeline-head,
    .tm-saved-detail-modal .tm-social-empty,
    .tm-saved-detail-modal .tm-social-loading {
        display: none;
    }

    .tm-saved-detail-modal .tm-social-feed {
        width: min(100%, 54rem);
        margin-inline: auto;
    }

    .tm-saved-detail-modal .tm-social-post.d-none {
        display: none !important;
    }

    .tm-saved-detail-modal .tm-social-comments-tray:not(.d-none) {
        position: static;
        inset: auto;
        transform: none;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        width: auto;
        max-width: none;
        height: auto;
        max-height: none;
        margin-top: .65rem;
        padding: 0;
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: 8px;
        background: var(--bs-body-bg);
        box-shadow: none;
    }

    .tm-saved-detail-modal .tm-social-comments-tray:not(.d-none) .tm-social-comments-panel {
        grid-column: 1;
        min-height: 0;
        overflow: visible;
    }

    .tm-saved-detail-modal .tm-social-comments-tray:not(.d-none) .tm-social-comments-scroll {
        flex: 0 1 auto;
        max-height: min(50vh, 24rem);
    }

    .tm-saved-detail-modal .tm-social-comments-tray:not(.d-none) .tm-social-comments-head {
        margin: 0;
        padding: .75rem .9rem;
    }

    .tm-saved-detail-modal .tm-social-comments-tray:not(.d-none) .tm-social-comments-close {
        position: static;
    }

    .tm-saved-detail-modal .tm-social-comments-tray:not(.d-none)::before,
    .tm-saved-detail-modal .tm-social-comments-modal-media {
        display: none !important;
    }

    @media (max-width: 575.98px) {
        .tm-social-profile-hero {
            align-items: flex-start;
        }

        .tm-social-profile-avatar {
            width: 4rem;
            min-width: 4rem;
            height: 4rem;
        }

        .tm-saved-grid {
            gap: .12rem;
        }

        .tm-saved-detail-modal .modal-dialog {
            margin: 0;
            min-height: 100%;
        }

        .tm-saved-detail-modal .modal-content {
            min-height: 100vh;
            border-radius: 0;
        }

        .tm-saved-detail-modal .tm-social-timeline {
            padding: .35rem 0;
        }
    }

/* داشبورد اجتماعی: اطلاعات حساب روی سطح خوانا و تنظیمات در Grid مشترک Bootstrap. */
.tm-social-dashboard .tm-social-profile-hero,
.tm-social-dashboard .tm-social-panel {
    background: var(--tm-surface-bg);
    border-color: var(--tm-border-color);
    box-shadow: var(--tm-shadow-sm);
}

.tm-social-dashboard .tm-social-profile-hero {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem;
}

.tm-social-dashboard .tm-social-profile-hero > .flex-grow-1 {
    flex-basis: 0;
}

.tm-social-dashboard .tm-social-profile-avatar {
    width: 72px;
    min-width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.tm-social-dashboard .tm-social-profile-username {
    flex-basis: 100%;
    margin: 0 0 .15rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--tm-text-color);
    overflow-wrap: anywhere;
}

.tm-social-dashboard .tm-social-status-pill {
    background: var(--tm-surface-alt-bg);
    border-color: var(--tm-border-color);
    color: var(--tm-muted-color);
}

.tm-social-dashboard .tm-social-status-pill.is-online {
    background: var(--bs-success-bg-subtle);
    border-color: var(--bs-success-border-subtle);
    color: var(--bs-success-text-emphasis);
}

.tm-social-dashboard .tm-social-status-pill.is-online i {
    color: currentColor;
}

.tm-social-dashboard .tm-social-stats {
    flex: 0 0 100%;
    flex-wrap: nowrap;
    gap: .5rem;
    margin-top: .25rem;
}

.tm-social-dashboard .tm-social-stat-link {
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 64px;
    justify-content: center;
    gap: .25rem;
    padding: .6rem .25rem;
    border: 1px solid var(--tm-border-color);
    border-radius: var(--tm-radius-control);
    background: var(--tm-surface-alt-bg);
    color: var(--tm-muted-color);
    font-size: .78rem;
}

.tm-social-dashboard .tm-social-stat-link strong {
    color: var(--tm-text-color);
    font-size: 1.05rem;
}

.tm-social-dashboard .tm-social-stat-link:hover {
    border-color: var(--tm-color-primary);
    background: var(--tm-nav-hover-bg);
    color: var(--tm-nav-hover-color);
}

.tm-social-dashboard .tm-social-stat-link:focus-visible {
    outline: 2px solid var(--tm-color-primary);
    outline-offset: 2px;
}

.tm-social-dashboard .tm-social-panel {
    padding: 1.25rem;
}

.tm-social-dashboard .tm-social-panel p {
    color: var(--tm-muted-color);
    font-size: .85rem;
    line-height: 1.9;
}

.tm-social-dashboard .tm-last-seen-settings {
    border: 0;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.tm-social-dashboard .tm-last-seen-settings h3,
.tm-social-dashboard .tm-social-setting-title {
    font-size: 1.05rem;
    color: var(--tm-text-color);
}

.tm-social-dashboard [data-social-privacy-form] .form-switch {
    flex-shrink: 0;
    margin-top: .25rem;
}

.tm-social-dashboard .tm-last-seen-exception-item > .flex-grow-1 {
    overflow-wrap: anywhere;
}

.tm-social-dashboard .tm-last-seen-empty {
    font-size: .8rem;
}

.tm-social-dashboard .tm-social-activity-tabs .nav-item {
    flex: 1 0 auto;
}

.tm-social-dashboard .tm-social-activity-tabs .nav-link {
    width: 100%;
    min-height: 44px;
}

.tm-social-dashboard .tm-social-activity-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: .75rem;
    padding: 1rem 0;
}

@media (max-width: 767.98px) {
    .tm-social-dashboard .tm-social-activity-item {
        grid-template-columns: auto minmax(0, 1fr);
        gap: .4rem .65rem;
    }

    .tm-social-dashboard .tm-social-activity-item > small {
        grid-column: 2;
    }
}

@media (max-width: 575.98px) {
    .tm-social-dashboard .tm-social-profile-hero,
    .tm-social-dashboard .tm-social-panel { padding: .85rem; }
    .tm-social-dashboard .tm-social-profile-avatar { width: 56px; min-width: 56px; height: 56px; font-size: 1.5rem; }
    .tm-social-dashboard .tm-social-profile-username { font-size: 1rem; }
    .tm-social-dashboard .tm-social-stats { gap: .3rem; }
    .tm-social-dashboard .tm-social-stat-link { font-size: .68rem; }
    .tm-social-dashboard .tm-social-stat-link strong { font-size: .9rem; }
    .tm-social-dashboard .tm-social-settings-save .btn { width: 100%; }
    .tm-social-dashboard .tm-saved-empty { padding: 1rem; }
    .tm-social-dashboard .tm-saved-detail-modal .modal-dialog {
        margin: .5rem;
        height: calc(100% - 1rem);
        min-height: 0;
    }
    .tm-social-dashboard .tm-saved-detail-modal .modal-content {
        min-height: 0;
        max-height: 100%;
        border-radius: var(--tm-radius-card);
    }
}


/* فهرست مشترک اعلان‌های سیستمی و اجتماعی؛ نشانهٔ جدید تنها پس از تأیید سرور برداشته می‌شود. */
.tm-social-notifications-hero,
    .tm-social-notification-filters,
    .tm-notification-card {
        border: 1px solid rgba(15, 23, 42, .1);
        border-radius: 8px;
        background: var(--bs-body-bg);
        box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
    }

    .tm-social-notifications-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem;
    }

    .tm-social-notifications-hero h1 {
        margin: 0;
        font-size: 1.35rem;
        font-weight: 950;
        letter-spacing: 0;
    }

    .tm-social-notifications-hero p {
        margin: .25rem 0 0;
        color: var(--bs-secondary-color);
    }

    .tm-social-notification-filters {
        display: flex;
        gap: .5rem;
        flex-wrap: wrap;
        margin-top: 1rem;
        padding: .75rem;
    }

    .tm-notification-list {
        display: grid;
        gap: .75rem;
        margin-top: 1rem;
    }

    .tm-notification-card {
        display: flex;
        align-items: flex-start;
        gap: .8rem;
        padding: .85rem;
        min-width: 0;
    }

    .tm-notification-card > .flex-grow-1 {
        min-width: 0;
        overflow-wrap: break-word;
    }

    .tm-notification-new {
        display: inline-block;
        flex: 0 0 .55rem;
        width: .55rem;
        height: .55rem;
        margin-top: .45rem;
        border-radius: 50%;
        background: var(--bs-primary);
    }

    .tm-notification-card.is-unseen {
        border-color: rgba(13, 110, 253, .28);
        background: color-mix(in srgb, var(--bs-primary) 6%, var(--bs-body-bg));
    }

    .tm-notification-card-icon {
        width: 2.65rem;
        min-width: 2.65rem;
        height: 2.65rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: var(--bs-primary);
        background: rgba(13, 110, 253, .1);
        font-size: 1.25rem;
    }

    .tm-social-notification-avatar {
        width: 2.65rem;
        min-width: 2.65rem;
        height: 2.65rem;
        /* رنگ و مرکز بودن حرف از tm-profile-avatar مرکزی می‌آید. */
    }

    .tm-social-notification-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .tm-social-notification-actor {
        display: inline-block;
        margin-bottom: .15rem;
        color: var(--bs-body-color);
        font-weight: 950;
        text-decoration: none;
    }

    .tm-social-notification-actor:hover,
    .tm-social-notification-actor:focus {
        color: var(--bs-primary);
    }

    .tm-notification-body {
        font-weight: 850;
        line-height: 1.9;
        white-space: pre-wrap;
    }

    .tm-notification-meta {
        display: flex;
        gap: .45rem;
        flex-wrap: wrap;
        color: var(--bs-secondary-color);
        font-size: .84rem;
    }

    .tm-social-notification-empty,
    .tm-social-notification-error,
    .tm-social-notification-loading {
        margin-top: 1rem;
        padding: .9rem;
        border-radius: 8px;
        background: color-mix(in srgb, var(--bs-primary) 7%, var(--bs-body-bg));
        color: var(--bs-secondary-color);
        text-align: center;
    }

    .tm-social-notification-error {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .65rem;
        flex-wrap: wrap;
    }

    @media (max-width: 575.98px) {
        .tm-social-notifications-hero {
            align-items: flex-start;
            flex-direction: column;
        }
    }

/* Migrated component styles: ZarMall.Web/Areas/My/Views/Store/Create.cshtml */
.tm-store-confirm-social-link {
        min-width: 14rem;
        max-width: 100%;
        padding: .7rem .85rem;
        border: 1px solid rgba(13, 110, 253, .22);
        border-radius: .75rem;
        background: rgba(13, 110, 253, .06);
        color: #0d6efd;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: .7rem;
    }

    .tm-store-confirm-social-link:hover {
        border-color: rgba(13, 110, 253, .42);
        background: rgba(13, 110, 253, .1);
        color: #0a58ca;
    }

    .tm-store-confirm-social-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: .7rem;
        background: #0d6efd;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        font-size: 1.15rem;
    }

    .tm-store-confirm-social-title {
        color: #1f2d3d;
        font-weight: 800;
        line-height: 1.4;
    }

    .tm-store-confirm-social-id {
        color: #64748b;
        direction: ltr;
        text-align: left;
        line-height: 1.4;
        word-break: break-all;
    }

    .tm-store-confirm-plan-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: .85rem;
        padding: .8rem .9rem;
        border: 1px solid rgba(148, 163, 184, .28);
        border-radius: .85rem;
        background: linear-gradient(135deg, rgba(13, 110, 253, .08), rgba(25, 135, 84, .06));
    }

    .tm-store-confirm-plan-title {
        color: #1f2d3d;
        font-weight: 900;
        line-height: 1.5;
    }

    .tm-store-confirm-plan-badge {
        padding: .35rem .65rem;
        border-radius: 999px;
        background: #0d6efd;
        color: #fff;
        font-weight: 800;
        text-align: center;
    }

    .tm-store-confirm-plan-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: .65rem;
    }

    .tm-store-confirm-plan-item {
        min-height: 4.25rem;
        padding: .7rem .8rem;
        border: 1px solid rgba(148, 163, 184, .25);
        border-radius: .75rem;
        background: #fff;
    }

    .tm-store-confirm-plan-label {
        color: #64748b;
        font-size: .78rem;
        font-weight: 700;
        line-height: 1.4;
    }

    .tm-store-confirm-plan-value {
        margin-top: .25rem;
        color: #1f2d3d;
        font-weight: 900;
        line-height: 1.45;
    }

    .tm-store-logo-preview-wrap,
    .tm-store-logo-confirm-wrap {
        width: 100%;
        display: flex;
        align-items: center;
    }

    .tm-store-logo-preview-wrap {
        justify-content: flex-end;
        justify-content: right;
    }

    .tm-store-logo-confirm-wrap {
        justify-content: center;
    }

    /* قاب لوگو در سربرگ، فهرست، جستجو و پیش‌نمایش باید همه اجزای نشان را حفظ کند. */
    .tm-app img.tm-store-logo-image {
        aspect-ratio: 1;
        object-fit: contain;
        object-position: center;
        padding: .3rem;
        background-color: #fff;
    }

    .tm-social-avatar:has(> .tm-store-logo-image) {
        border-radius: .375rem;
        background: #fff;
    }

    .tm-store-logo-preview-img,
    .tm-store-logo-confirm-img {
        width: 96px;
        height: 96px;
        max-width: 100%;
        border: 1px solid var(--bs-border-color);
        border-radius: .75rem;
    }

    .tm-field-with-counter > .form-floating {
        position: relative;
    }

    .tm-field-with-counter .form-control {
        padding-left: 7.75rem;
    }

    .tm-field-with-counter textarea.form-control {
        padding-bottom: 2rem;
    }

    .tm-field-char-counter {
        position: absolute;
        left: .85rem;
        bottom: -.5rem;
        z-index: 4;
        padding: 0 .45rem;
        background: var(--bs-body-bg, #fff);
        color: #64748b;
        font-size: .72rem;
        font-weight: 700;
        line-height: 1.25;
        pointer-events: none;
        white-space: nowrap;
    }

    [data-bs-theme="dark"] .tm-field-char-counter {
        background: var(--bs-body-bg, #212529);
        color: #94a3b8;
    }

    .tm-field-with-counter > .text-danger,
    .tm-field-with-counter > span.text-danger {
        display: block;
        margin-top: .55rem;
    }

    @media (max-width: 767.98px) {
        .tm-store-logo-preview-wrap {
            justify-content: center;
        }
    }

/* Migrated component styles: ZarMall.Web/Areas/My/Views/Store/Edit.cshtml */
.tm-store-logo-preview {
        position: relative;
        display: inline-flex;
        max-width: 100%;
    }

    .tm-panel-ui button.btn.tm-store-logo-delete {
        position: absolute;
        inset-block-start: .35rem;
        inset-inline-start: .35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.75rem;
        height: 1.75rem;
        min-width: 1.75rem;
        min-height: 1.75rem;
        font-size: .875rem;
        line-height: 1;
        padding: 0;
        border-radius: 50%;
        box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .18);
        z-index: 2;
    }

/* Migrated component styles: ZarMall.Web/Areas/My/Views/Store/Index.cshtml */
/* فقط ستون/متن نام پلن کمی بزرگ‌تر */
        #storesTable th[data-col="4"] {
            font-size: 1.07rem;
            font-weight: 700;
        }

        #storesTable .plan-td .plan-name-text {
            font-size: 1.06rem;
            line-height: 1.4;
            font-weight: 700;
        }

        /* کنترل ستون دامین تا بیش‌ازحد بزرگ نشود */
        #storesTable td:nth-child(4),
        #storesTable th[data-col="3"] {
            font-size: .95rem;
        }

        #storesTable {
            width: 100%;
            table-layout: fixed;
            margin-bottom: 0;
            font-size: .84rem;
        }

        #storesTable .store-col-order { width: 5.5rem; }
        #storesTable .store-col-logo { width: 4.5rem; }
        #storesTable .store-col-name { width: 14%; }
        #storesTable .store-col-domain { width: 16%; }
        #storesTable .store-col-plan { width: 14%; }
        #storesTable .store-col-expiration { width: 14%; }
        #storesTable .store-col-status { width: 9%; }
        #storesTable .store-col-actions { width: 19%; }

        #storesTable th,
        #storesTable td {
            min-width: 0;
            padding: .45rem .3rem;
            overflow-wrap: break-word;
            word-break: normal;
        }

        #storesTable .store-domain-cell {
            direction: ltr;
            overflow-wrap: anywhere;
        }

        #storesTable .tm-size-50 {
            width: 42px;
            height: 42px;
            max-width: 100%;
            object-fit: contain;
        }

        .store-table-actions {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: .35rem;
            width: 100%;
        }

        .store-table-actions .btn {
            width: 100%;
            min-width: 0;
            padding-inline: .3rem;
            white-space: normal;
            line-height: 1.4;
        }

        /* عملیات این فهرست در یک ستون محدود می‌ماند تا سوابق کنسلی، کنترل وضعیت را زیر ستون ثابت نپوشاند. */
        @media (min-width: 768px) {
            .tm-panel-ui #storesTable { min-width: 68rem; }
            .tm-panel-ui #storesTable .store-name { min-width: 14rem; max-width: 20rem; white-space: normal; overflow-wrap: normal; }
            .tm-panel-ui #storesTable .store-domain-cell { min-width: 12rem; white-space: nowrap; overflow-wrap: normal; }
            .tm-panel-ui #storesTable .plan-td { min-width: 10rem; }
            .tm-panel-ui #storesTable .plan-end-td { min-width: 9rem; }
            .tm-panel-ui #storesTable :is(.tm-actions-head, .tm-actions-cell) {
                width: 10rem;
                min-width: 10rem;
                max-width: 10rem;
                white-space: normal !important;
            }
            .tm-panel-ui #storesTable .store-table-actions {
                display: grid;
                grid-template-columns: minmax(0, 1fr);
                width: 100% !important;
                min-width: 0;
                max-width: 10rem;
                direction: rtl;
            }
            .tm-panel-ui #storesTable .store-table-actions > .btn {
                width: 100% !important;
                min-width: 0;
                white-space: normal !important;
            }
            /* پیمایش افقیِ کنترل فوکوس‌شده، عرض ستون ثابت عملیات را نیز در نظر می‌گیرد. */
            .tm-panel-ui .table-responsive:has(> #storesTable) { scroll-padding-left: 11rem; }
        }

        #storesTable .tm-store-sort-button {
            width: auto;
            padding: 0;
            border: 0;
            color: inherit;
            background: transparent;
            font: inherit;
            font-weight: inherit;
        }

        .store-mobile-card {
            min-width: 0;
            overflow: hidden;
            border: 1px solid var(--bs-border-color);
            border-radius: 8px;
            background: var(--bs-body-bg);
            box-shadow: 0 .5rem 1.25rem rgba(15, 23, 42, .08);
        }

        .store-mobile-card.is-inactive {
            border-color: rgba(220, 53, 69, .45);
            background: rgba(220, 53, 69, .035);
        }

        .store-mobile-card-header,
        .store-mobile-actions {
            display: flex;
            align-items: center;
            gap: .75rem;
            padding: .85rem;
        }

        .store-mobile-card-header {
            justify-content: space-between;
            border-bottom: 1px solid var(--bs-border-color);
        }

        .store-mobile-identity {
            min-width: 0;
            display: flex;
            align-items: center;
            gap: .75rem;
        }

        .store-mobile-logo,
        .store-mobile-logo-placeholder {
            flex: 0 0 48px;
            width: 48px;
            height: 48px;
            border: 1px solid var(--bs-border-color);
            border-radius: 8px;
            background: var(--bs-tertiary-bg);
        }

        .store-mobile-logo {
            object-fit: contain;
        }

        .store-mobile-logo-placeholder {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--bs-secondary-color);
            font-size: 1.25rem;
        }

        .store-mobile-card-body {
            display: grid;
            gap: 0;
        }

        .store-mobile-field {
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
            padding: .8rem .85rem;
            border-bottom: 1px solid var(--bs-border-color);
        }

        .store-mobile-label {
            flex: 0 0 auto;
            color: var(--bs-secondary-color);
            font-size: .82rem;
            font-weight: 700;
        }

        .store-mobile-field > :last-child {
            min-width: 0;
            overflow-wrap: anywhere;
            text-align: end;
        }

        .store-mobile-actions {
            align-items: stretch;
        }

        .store-mobile-icon-action {
            flex: 0 0 44px;
            width: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding-inline: 0;
            font-size: 1.05rem;
        }

/* خلاصهٔ پلن در کارت انتخاب تعرفه نیز استفاده می‌شود. */
.tm-plan-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}
.tm-plan-summary-item {
    min-width: 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-body-bg);
}
@media (max-width: 991.98px) {
    .tm-plan-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .tm-plan-summary { grid-template-columns: 1fr; gap: .6rem; padding: .75rem; }
    .tm-plan-summary-item { padding: .85rem 1rem; }
}

/* پنجرهٔ جزئیات پلن فروشگاه؛ تنها محتوای میان سربرگ و مبلغ نهایی پیمایش می‌شود. */
#storePlanDetailsModal {
    --plan-accent: #2169ce;
    --plan-gutter: clamp(1rem, 2.2vw, 1.8125rem);
    --plan-edge: 1rem;
    --tm-font-family: var(--tm-commerce-font-family);
    --bs-modal-zindex: 5080;
    z-index: var(--bs-modal-zindex);
    font-family: var(--tm-font-family);
    color: var(--tm-text-color);
}
[data-bs-theme="dark"] #storePlanDetailsModal { --plan-accent: #93bcff; }
body:has(#storePlanDetailsModal.show) > .modal-backdrop {
    --bs-backdrop-zindex: 5070;
    --bs-backdrop-bg: #1b2b42;
    --bs-backdrop-opacity: .42;
    z-index: var(--bs-backdrop-zindex);
    backdrop-filter: blur(2px);
}
#storePlanDetailsModal .modal-dialog {
    width: calc(100% - var(--plan-edge) * 2);
    max-width: 990px;
    height: calc(100% - var(--plan-edge) * 2);
    min-height: 0;
    margin: var(--plan-edge) auto;
}
#storePlanDetailsModal .modal-content {
    max-height: 100%;
    min-height: 0;
    border: 1px solid var(--tm-border-color);
    border-radius: 1.375rem;
    overflow: hidden;
    background: var(--tm-surface-bg);
    box-shadow: 0 1.5rem 4.5rem rgb(17 38 66 / .25);
}
#storePlanDetailsModal .modal-header {
    gap: .9rem;
    padding: 1.15rem var(--plan-gutter);
    border-color: var(--tm-border-color);
}
#storePlanDetailsModal .tm-plan-detail-store-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 3.1rem;
    height: 3.1rem;
    border: 1px solid color-mix(in srgb, var(--plan-accent) 18%, var(--tm-surface-bg));
    border-radius: .875rem;
    background: color-mix(in srgb, var(--plan-accent) 9%, var(--tm-surface-bg));
    color: var(--plan-accent);
    font-size: 1.5rem;
}
#storePlanDetailsModal .modal-header > div { min-width: 0; }
#storePlanDetailsModal .modal-title {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
#storePlanDetailsModal .tm-plan-detail-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .1rem .55rem;
    color: var(--tm-muted-color);
    font-size: .8rem;
    overflow-wrap: anywhere;
}
.tm-plan-detail-identity > bdi { font-family: "Segoe UI", Tahoma, sans-serif; direction: ltr; }
.tm-plan-detail-identity > span:not(:last-child)::after { content: "·"; margin-inline-start: .55rem; color: var(--tm-muted-color); }
#storePlanDetailsModal .btn-close {
    flex: none;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    margin-inline-start: auto;
    border: 1px solid var(--tm-border-color);
    border-radius: .7rem;
    color: var(--tm-muted-color);
    filter: none;
    opacity: 1;
    background: transparent;
    position: relative;
}
#storePlanDetailsModal .btn-close:empty::before,
#storePlanDetailsModal .btn-close:empty::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
}
#storePlanDetailsModal .btn-close:empty::after { transform: rotate(-45deg); }
#storePlanDetailsModal .btn-close:hover { background: var(--tm-surface-alt-bg); color: var(--tm-text-color); }
#storePlanDetailsModal :is([data-store-plan-details-body], [data-store-plan-details-content]) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
#storePlanDetailsModal .modal-body {
    min-height: 0;
    padding: 1.35rem var(--plan-gutter) 1.5rem;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.tm-plan-detail-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.4fr);
    align-items: center;
    gap: clamp(.65rem, 1.6vw, 1.375rem);
    padding: 1.15rem 1.55rem;
    border: 1px solid color-mix(in srgb, var(--plan-accent) 19%, var(--tm-surface-bg));
    border-radius: 1rem;
    background: linear-gradient(115deg,
        color-mix(in srgb, var(--plan-accent) 7%, var(--tm-surface-bg)),
        color-mix(in srgb, var(--plan-accent) 3%, var(--tm-surface-bg)) 56%,
        color-mix(in srgb, var(--plan-accent) 8%, var(--tm-surface-bg)));
}
.tm-plan-detail-summary > * { min-width: 0; }
.tm-plan-detail-eyelabel, .tm-plan-detail-price > span, .tm-plan-detail-dates dt, .tm-plan-detail-time :is(small, span) {
    color: var(--tm-muted-color);
    font-size: .8rem;
    font-weight: 400;
}
.tm-plan-detail-plan-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem .75rem;
    overflow-wrap: anywhere;
}
.tm-plan-detail-plan-name > :is(b, strong) { font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1.4; color: var(--tm-head-color); }
.tm-plan-detail-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .1rem .55rem;
    border: 1px solid var(--bs-success-border-subtle);
    border-radius: 2rem;
    background: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
    font-size: .75rem;
    font-weight: 700;
}
.tm-plan-detail-status > i { flex: none; width: .375rem; height: .375rem; border-radius: 50%; background: currentColor; }
.tm-plan-detail-status[data-state="expired"] { border-color: var(--bs-danger-border-subtle); background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }
.tm-plan-detail-status[data-state="disabled"] { border-color: var(--tm-moderation-border); background: var(--tm-moderation-bg); color: var(--tm-moderation-fg); }
.tm-plan-detail-dates {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding-inline: clamp(.6rem, 1.6vw, 1.4rem);
    border-inline: 1px solid var(--tm-border-color);
}
.tm-plan-detail-dates > div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.tm-plan-detail-dates dd { margin: 0; color: var(--tm-head-color); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.tm-plan-detail-validity { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.tm-plan-detail-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 5.375rem;
    aspect-ratio: 1;
    flex: none;
}
.tm-plan-detail-ring::before {
    content: "";
    position: absolute;
    inset: .15rem;
    border-radius: 50%;
    background: conic-gradient(var(--plan-accent) var(--tm-plan-remaining, 0%), var(--tm-border-color) 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - .38rem), #000 calc(100% - .33rem));
}
.tm-plan-detail-ring > span, .tm-plan-detail-time { display: grid; gap: .12rem; }
.tm-plan-detail-ring > span { text-align: center; line-height: 1.2; }
.tm-plan-detail-ring b { color: var(--tm-head-color); font-weight: 800; font-size: 1.8rem; }
.tm-plan-detail-ring.is-long b { font-size: 1.12rem; }
.tm-plan-detail-ring small { font-size: .68rem; color: var(--tm-muted-color); }
.tm-plan-detail-time :is(b, strong) { font-size: .95rem; }
.tm-plan-detail-vat {
    margin-top: .75rem;
    padding-inline: .85rem;
    border: 1px solid var(--tm-border-color);
    border-radius: .7rem;
}
.tm-plan-detail-vat[open] { padding-bottom: .6rem; }
.tm-plan-detail-vat > summary { padding-block: .65rem; color: var(--plan-accent); font-size: .875rem; font-weight: 700; }
.tm-plan-detail-vat > summary:focus-visible { outline: 2px solid var(--plan-accent); }
.tm-plan-detail-tabs {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: clamp(1rem, 2vw, 1.75rem);
    margin: 1.1rem 0 1.25rem;
    border-bottom: 1px solid var(--tm-border-color);
}
#storePlanDetailsModal .tm-plan-detail-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .5rem .1rem;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--tm-muted-color);
    font: inherit;
    font-size: .9rem;
}
#storePlanDetailsModal .tm-plan-detail-tabs .nav-link:is(.active, [aria-selected="true"]) { color: var(--plan-accent); border-bottom-color: currentColor; font-weight: 700; }
#storePlanDetailsModal .tm-plan-detail-tabs .nav-link:hover { color: var(--plan-accent); }
#storePlanDetailsModal :is(.btn-close, .nav-link, .btn):focus-visible { outline: 2px solid var(--plan-accent); outline-offset: 1px; }
.tm-plan-detail-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.tm-plan-detail-group { min-width: 0; border: 1px solid var(--tm-border-color); border-radius: .9rem; overflow: hidden; }
.tm-plan-detail-group-head, .tm-plan-detail-metric { display: flex; align-items: center; gap: .6rem; }
.tm-plan-detail-group-head { justify-content: space-between; padding: .7rem 1rem; border-bottom: 1px solid var(--tm-border-color); background: var(--tm-surface-alt-bg); }
.tm-plan-detail-group-head :is(h2, h3, h4) { margin: 0; color: var(--tm-head-color); font-size: 1rem; font-weight: 700; }
.tm-plan-detail-group-head > :is(small, span) { color: var(--tm-muted-color); font-size: .7rem; }
.tm-plan-detail-metric { margin: 0 1rem; min-height: 2.9375rem; padding-block: .35rem; font-size: .875rem; overflow-wrap: anywhere; }
.tm-plan-detail-metric + .tm-plan-detail-metric { border-top: 1px solid color-mix(in srgb, var(--tm-border-color) 66%, transparent); }
.tm-plan-detail-metric > .bi { color: var(--tm-muted-color); width: 1.25rem; flex: none; text-align: center; font-size: 1rem; }
.tm-plan-detail-amount, .tm-plan-detail-unavailable { margin-inline-start: auto; }
.tm-plan-detail-amount { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.tm-plan-detail-amount b { color: var(--tm-head-color); font-weight: 700; font-size: 1.05rem; }
.tm-plan-detail-amount span { color: var(--tm-muted-color); font-size: .75rem; }
.tm-plan-detail-amount strong { color: var(--tm-muted-color); font-weight: 400; }
.tm-plan-detail-amount.is-over b { color: var(--bs-danger-text-emphasis); }
.tm-plan-detail-unavailable { color: var(--tm-muted-color); background: var(--tm-surface-alt-bg); border-radius: .4rem; padding: .15rem .45rem; font-size: .7rem; }
#storePlanDetailsModal .modal-footer {
    justify-content: space-between;
    gap: .6rem 1rem;
    margin: 0;
    padding: .9rem var(--plan-gutter);
    border-color: var(--tm-border-color);
    background: var(--tm-surface-alt-bg);
}
#storePlanDetailsModal .modal-footer > * { margin: 0; }
.tm-plan-detail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .65rem; overflow-wrap: anywhere; }
.tm-plan-detail-price :is(b, strong) { color: var(--tm-head-color); font-size: 1.05rem; }
#storePlanDetailsModal .modal-footer .btn-primary { min-height: 44px; border-radius: .65rem; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; font-weight: 700; }

@media (max-width: 767.98px) {
    #storePlanDetailsModal { --plan-edge: max(.375rem, env(safe-area-inset-top), env(safe-area-inset-bottom)); --plan-gutter: .85rem; }
    #storePlanDetailsModal .modal-content { border-radius: 1.05rem; height: auto; }
    #storePlanDetailsModal .modal-header { padding: 14px var(--plan-gutter); gap: .6rem; }
    #storePlanDetailsModal .modal-title { font-size: max(18px, 1.15rem); }
    #storePlanDetailsModal .tm-plan-detail-store-icon { width: 40px; height: 40px; border-radius: .65rem; font-size: 19px; }
    #storePlanDetailsModal .tm-plan-detail-identity { gap: .1rem .35rem; font-size: max(11px, .7rem); }
    #storePlanDetailsModal .modal-body { padding: .875rem var(--plan-gutter); }
    .tm-plan-detail-summary { grid-template-columns: minmax(0, 1fr) minmax(4rem, auto); gap: .65rem .4rem; padding: .8rem; }
    .tm-plan-detail-validity { grid-column: 2; grid-row: 1; justify-content: flex-end; }
    .tm-plan-detail-ring { width: max(60px, 3.8rem); }
    .tm-plan-detail-ring b { font-size: max(21px, 1.35rem); }
    .tm-plan-detail-ring.is-long b { font-size: .9rem; }
    .tm-plan-detail-ring small { font-size: .6rem; }
    .tm-plan-detail-plan-name > strong { font-size: max(26px, 1.55rem); }
    .tm-plan-detail-ring + .tm-plan-detail-time { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .tm-plan-detail-time :is(b, strong) { display: none; }
    .tm-plan-detail-time :is(span, small) { font-size: .65rem; }
    .tm-plan-detail-dates { grid-column: 1/-1; grid-row: 2; display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 0 0; border: 0; border-top: 1px solid var(--tm-border-color); }
    .tm-plan-detail-dates > div { flex-wrap: wrap; gap: .1rem .35rem; }
    .tm-plan-detail-dates dt { font-size: max(11px, .7rem); }
    .tm-plan-detail-dates dd { font-size: max(12px, .8rem); }
    .tm-plan-detail-tabs { justify-content: space-between; gap: .25rem; margin: .55rem 0 .8rem; }
    #storePlanDetailsModal .tm-plan-detail-tabs .nav-link { gap: .3rem; font-size: max(12px, .76rem); line-height: 1.4; }
    .tm-plan-detail-groups { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
    .tm-plan-detail-group-head { padding: .55rem .75rem; }
    .tm-plan-detail-group-head :is(h2,h3,h4) { font-size: max(14px, .9rem); }
    .tm-plan-detail-metric { min-height: max(38px, 2.4rem); margin-inline: .75rem; gap: .45rem; font-size: max(12px, .8rem); }
    #storePlanDetailsModal .modal-footer { padding: .6rem var(--plan-gutter); gap: .35rem .65rem; }
    #storePlanDetailsModal .modal-footer .btn-primary { gap: .5rem; font-size: max(12px, .8rem); }
    .tm-plan-detail-price { gap: .1rem .35rem; }
}
@media (max-width: 359.98px) {
    #storePlanDetailsModal .tm-plan-detail-tabs .nav-link > .bi { display: none; }
    .tm-plan-detail-plan-name { gap: .25rem; }
    .tm-plan-detail-price { flex-direction: column; }
}
@media (max-height: 480px) {
    #storePlanDetailsModal .modal-header, #storePlanDetailsModal .modal-footer { padding-block: .25rem; }
}

/* جستجوی محلی منو و فهرست‌های انتخابی از قرارداد فیلدهای مرکزی پیروی می‌کند. */
.tm-sidebar-search { padding: .75rem .75rem 0; }
.tm-sidebar-search-hidden { display: none !important; }
.tm-search-select { position: relative; }
.tm-search-select-open { z-index: 1020; }
.tm-search-select > .tm-search-select-toggle { height: auto; text-align: start; white-space: normal; overflow-wrap: anywhere; }
.tm-search-select:has(select.input-validation-error) > .tm-search-select-toggle,
.tm-search-select:has(select[aria-invalid="true"]) > .tm-search-select-toggle { border-color: var(--bs-danger); }
.tm-search-select-popup {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + .25rem);
    padding: .5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    scroll-margin-block: 1rem 6rem;
}
.tm-search-select-popup[hidden], .tm-search-select-option[hidden] { display: none !important; }
.tm-search-select-options { max-height: min(15rem, var(--tm-search-select-list-height, 35dvh)); overflow-y: auto; overscroll-behavior: contain; }
.tm-search-select-option { min-height: 44px; padding: .6rem .75rem; cursor: pointer; overflow-wrap: anywhere; }
.tm-search-select-option.active { color: var(--bs-primary); background: var(--bs-primary-bg-subtle); }
.tm-search-select-option[aria-selected="true"] { font-weight: 700; }

/* Migrated component styles: ZarMall.Web/Views/Shared/_AccountSidebar.cshtml */
.tm-account-sidebar {
            position: sticky;
            top: .75rem;
            z-index: 1010;
        }

        .tm-account-sidebar .tm-sidebar-panel {
            overflow: hidden;
            border: 1px solid rgba(15, 23, 42, .1);
            border-radius: 8px;
            background: var(--bs-body-bg);
            box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
        }

        .tm-account-sidebar .tm-sidebar-header {
            padding: 1rem;
            background: color-mix(in srgb, var(--bs-primary) 7%, var(--bs-body-bg));
            border-bottom: 1px solid var(--bs-border-color-translucent);
        }

        .tm-account-sidebar .tm-sidebar-title-icon,
        .tm-sidebar-offcanvas .tm-sidebar-title-icon {
            width: 2.45rem;
            height: 2.45rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            color: #fff;
            background: var(--bs-primary);
            box-shadow: 0 10px 22px rgba(13, 110, 253, .24);
        }

        .tm-account-sidebar .tm-sidebar-kicker,
        .tm-sidebar-offcanvas .tm-sidebar-kicker {
            font-size: .75rem;
            color: var(--bs-secondary-color);
        }

        .tm-account-sidebar .tm-sidebar-scroll {
            max-height: none;
            overflow: visible;
        }

        .tm-sidebar-offcanvas .tm-sidebar-scroll {
            max-height: calc(100dvh - 4.75rem);
            overflow-y: auto;
            scrollbar-width: thin;
        }

        .tm-account-sidebar .tm-sidebar-nav {
            padding: .75rem;
        }

        .tm-account-sidebar .tm-sidebar-section,
        .tm-sidebar-offcanvas .tm-sidebar-section {
            margin-bottom: .7rem;
        }

        .tm-account-sidebar .tm-sidebar-section:last-child,
        .tm-sidebar-offcanvas .tm-sidebar-section:last-child {
            margin-bottom: 0;
        }

        .tm-account-sidebar .tm-sidebar-section-title,
        .tm-sidebar-offcanvas .tm-sidebar-section-title {
            display: flex;
            align-items: center;
            gap: .5rem;
            margin: .35rem .35rem .55rem;
            font-size: .78rem;
            font-weight: 800;
            color: var(--bs-secondary-color);
        }

        .tm-account-sidebar .tm-sidebar-section-title::after,
        .tm-sidebar-offcanvas .tm-sidebar-section-title::after {
            content: "";
            flex: 1 1 auto;
            border-bottom: 1px solid var(--bs-border-color-translucent);
        }

        .tm-account-sidebar .tm-sidebar-group,
        .tm-sidebar-offcanvas .tm-sidebar-group {
            border: 1px solid var(--bs-border-color-translucent);
            border-radius: 8px;
            background: color-mix(in srgb, var(--bs-body-bg) 96%, var(--bs-primary));
        }

        .tm-account-sidebar .tm-sidebar-group[open],
        .tm-sidebar-offcanvas .tm-sidebar-group[open] {
            border-color: color-mix(in srgb, var(--bs-primary) 24%, var(--bs-border-color));
            box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
        }

        .tm-account-sidebar .tm-sidebar-group-summary,
        .tm-sidebar-offcanvas .tm-sidebar-group-summary {
            min-height: 46px;
            display: flex;
            align-items: center;
            gap: .55rem;
            padding: .65rem .7rem;
            border-radius: 8px;
            color: var(--bs-body-color);
            font-size: .84rem;
            font-weight: 800;
            cursor: pointer;
            list-style: none;
            user-select: none;
        }

        .tm-account-sidebar .tm-sidebar-group-summary::-webkit-details-marker,
        .tm-sidebar-offcanvas .tm-sidebar-group-summary::-webkit-details-marker {
            display: none;
        }

        .tm-account-sidebar .tm-sidebar-group-summary:hover,
        .tm-sidebar-offcanvas .tm-sidebar-group-summary:hover {
            color: var(--bs-primary);
            background: color-mix(in srgb, var(--bs-primary) 7%, transparent);
        }

        .tm-account-sidebar .tm-sidebar-group-chevron,
        .tm-sidebar-offcanvas .tm-sidebar-group-chevron {
            margin-inline-start: auto;
            transition: transform .18s ease;
        }

        .tm-account-sidebar .tm-sidebar-group[open] .tm-sidebar-group-chevron,
        .tm-sidebar-offcanvas .tm-sidebar-group[open] .tm-sidebar-group-chevron {
            transform: rotate(180deg);
        }

        .tm-account-sidebar .tm-sidebar-group > .tm-sidebar-menu,
        .tm-sidebar-offcanvas .tm-sidebar-group > .tm-sidebar-menu {
            padding: 0 .45rem .5rem;
        }

        .tm-account-sidebar .tm-sidebar-start-store,
        .tm-sidebar-offcanvas .tm-sidebar-start-store {
            display: flex;
            align-items: center;
            gap: .7rem;
            margin: .85rem 0 .7rem;
            padding: .85rem;
            border: 1px dashed color-mix(in srgb, var(--bs-primary) 46%, var(--bs-border-color));
            border-radius: 8px;
            color: var(--bs-body-color);
            background: color-mix(in srgb, var(--bs-primary) 6%, var(--bs-body-bg));
            text-decoration: none;
        }

        .tm-account-sidebar .tm-sidebar-start-store:hover,
        .tm-sidebar-offcanvas .tm-sidebar-start-store:hover {
            color: var(--bs-primary);
            border-style: solid;
            background: color-mix(in srgb, var(--bs-primary) 10%, var(--bs-body-bg));
        }

        .tm-account-sidebar .tm-sidebar-menu,
        .tm-sidebar-offcanvas .tm-sidebar-menu {
            gap: .32rem;
        }

        .tm-account-sidebar .tm-sidebar-link,
        .tm-sidebar-offcanvas .tm-sidebar-link {
            --tm-sidebar-accent: var(--bs-primary);
            --tm-sidebar-accent-rgb: 13, 110, 253;
            min-height: 46px;
            display: flex;
            align-items: center;
            gap: .65rem;
            padding: .58rem .65rem;
            border: 1px solid transparent;
            border-radius: 8px !important;
            color: var(--bs-body-color);
            background: transparent;
            text-decoration: none;
            transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
        }

        .tm-account-sidebar .tm-sidebar-link:hover,
        .tm-sidebar-offcanvas .tm-sidebar-link:hover {
            color: var(--tm-sidebar-accent);
            background: linear-gradient(135deg, rgba(var(--tm-sidebar-accent-rgb), .12), rgba(var(--tm-sidebar-accent-rgb), .04));
            border-color: rgba(var(--tm-sidebar-accent-rgb), .22);
            transform: translateY(-1px);
        }

        .tm-account-sidebar .tm-sidebar-link.active,
        .tm-sidebar-offcanvas .tm-sidebar-link.active {
            color: #fff;
            background: linear-gradient(135deg, var(--tm-sidebar-accent), color-mix(in srgb, var(--tm-sidebar-accent) 76%, #111827));
            border-color: rgba(var(--tm-sidebar-accent-rgb), .6);
            box-shadow: 0 12px 24px rgba(var(--tm-sidebar-accent-rgb), .24);
        }

        .tm-account-sidebar .tm-sidebar-menu > .tm-sidebar-link:nth-child(6n + 1),
        .tm-sidebar-offcanvas .tm-sidebar-menu > .tm-sidebar-link:nth-child(6n + 1) {
            --tm-sidebar-accent: #0d6efd;
            --tm-sidebar-accent-rgb: 13, 110, 253;
        }

        .tm-account-sidebar .tm-sidebar-menu > .tm-sidebar-link:nth-child(6n + 2),
        .tm-sidebar-offcanvas .tm-sidebar-menu > .tm-sidebar-link:nth-child(6n + 2) {
            --tm-sidebar-accent: #7c3aed;
            --tm-sidebar-accent-rgb: 124, 58, 237;
        }

        .tm-account-sidebar .tm-sidebar-menu > .tm-sidebar-link:nth-child(6n + 3),
        .tm-sidebar-offcanvas .tm-sidebar-menu > .tm-sidebar-link:nth-child(6n + 3) {
            --tm-sidebar-accent: #0f766e;
            --tm-sidebar-accent-rgb: 15, 118, 110;
        }

        .tm-account-sidebar .tm-sidebar-menu > .tm-sidebar-link:nth-child(6n + 4),
        .tm-sidebar-offcanvas .tm-sidebar-menu > .tm-sidebar-link:nth-child(6n + 4) {
            --tm-sidebar-accent: #dc3545;
            --tm-sidebar-accent-rgb: 220, 53, 69;
        }

        .tm-account-sidebar .tm-sidebar-menu > .tm-sidebar-link:nth-child(6n + 5),
        .tm-sidebar-offcanvas .tm-sidebar-menu > .tm-sidebar-link:nth-child(6n + 5) {
            --tm-sidebar-accent: #b45309;
            --tm-sidebar-accent-rgb: 180, 83, 9;
        }

        .tm-account-sidebar .tm-sidebar-menu > .tm-sidebar-link:nth-child(6n),
        .tm-sidebar-offcanvas .tm-sidebar-menu > .tm-sidebar-link:nth-child(6n) {
            --tm-sidebar-accent: #0ea5e9;
            --tm-sidebar-accent-rgb: 14, 165, 233;
        }

        .tm-account-sidebar .tm-sidebar-icon,
        .tm-sidebar-offcanvas .tm-sidebar-icon {
            width: 2.1rem;
            min-width: 2.1rem;
            height: 2.1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            color: var(--tm-sidebar-accent);
            background: linear-gradient(135deg, rgba(var(--tm-sidebar-accent-rgb), .18), rgba(var(--tm-sidebar-accent-rgb), .06));
            box-shadow: inset 0 0 0 1px rgba(var(--tm-sidebar-accent-rgb), .16), 0 8px 16px rgba(var(--tm-sidebar-accent-rgb), .08);
            transition: background-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
        }

        .tm-account-sidebar .tm-sidebar-icon i,
        .tm-sidebar-offcanvas .tm-sidebar-icon i {
            font-size: 1.06rem;
            line-height: 1;
        }

        .tm-account-sidebar .tm-sidebar-link:hover .tm-sidebar-icon,
        .tm-sidebar-offcanvas .tm-sidebar-link:hover .tm-sidebar-icon {
            color: #fff;
            background: var(--tm-sidebar-accent);
            box-shadow: 0 10px 18px rgba(var(--tm-sidebar-accent-rgb), .24);
            transform: scale(1.07) rotate(-3deg);
        }

        .tm-account-sidebar .tm-sidebar-link.active .tm-sidebar-icon,
        .tm-sidebar-offcanvas .tm-sidebar-link.active .tm-sidebar-icon {
            color: #fff;
            background: rgba(255, 255, 255, .18);
        }

        .tm-account-sidebar .tm-sidebar-label,
        .tm-sidebar-offcanvas .tm-sidebar-label {
            min-width: 0;
            flex: 1 1 auto;
            line-height: 1.65;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow-wrap: normal;
        }

        .tm-account-sidebar .tm-sidebar-badge,
        .tm-sidebar-offcanvas .tm-sidebar-badge {
            margin-inline-start: auto;
        }

        .tm-account-sidebar .tm-sidebar-notification-count,
        .tm-sidebar-offcanvas .tm-sidebar-notification-count {
            width: 1.85rem;
            min-width: 1.85rem;
            height: 1.85rem;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 1.85rem;
            font-size: .7rem;
            line-height: 1;
        }

        .tm-account-sidebar .tm-sidebar-logout,
        .tm-sidebar-offcanvas .tm-sidebar-logout {
            width: 100%;
            text-align: start;
        }

        .tm-account-sidebar .tm-sidebar-logout .tm-sidebar-icon,
        .tm-sidebar-offcanvas .tm-sidebar-logout .tm-sidebar-icon {
            color: var(--bs-danger);
            background: color-mix(in srgb, var(--bs-danger) 12%, var(--bs-body-bg));
        }

        .tm-sidebar-mobile-portal {
            display: none;
        }

        .tm-sidebar-mobile-host {
            width: 100%;
            min-height: 0;
        }

        .tm-sidebar-mobile-host:empty {
            display: none;
        }

        .tm-sidebar-mobile-portal:not(.tm-sidebar-mobile-portal-hidden) {
            display: flex;
            justify-content: flex-start;
            width: 100%;
            margin: .35rem 0 1rem;
        }

        .tm-sidebar-mobile-trigger {
            position: static;
            z-index: 2;
            flex: 0 0 auto;
            width: auto !important;
            max-width: 100%;
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            gap: .55rem;
            padding: .52rem .82rem;
            border: 1px solid rgba(255, 255, 255, .66);
            border-radius: 999rem;
            color: #0f172a;
            background: rgba(255, 255, 255, .76);
            box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
            backdrop-filter: blur(18px) saturate(160%);
            -webkit-backdrop-filter: blur(18px) saturate(160%);
        }

        .tm-sidebar-mobile-trigger i {
            font-size: 1.08rem;
        }

        .tm-sidebar-mobile-trigger span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .tm-sidebar-offcanvas {
            --bs-offcanvas-width: min(390px, 92vw);
            z-index: 5100;
            color: var(--bs-body-color);
            background: color-mix(in srgb, var(--bs-body-bg) 97%, var(--bs-primary));
            border-inline-start: 1px solid rgba(255, 255, 255, .58);
            box-shadow: -12px 0 46px rgba(15, 23, 42, .18);
        }

        body.tm-sidebar-offcanvas-open > .offcanvas-backdrop {
            z-index: 5090;
        }

        .tm-sidebar-offcanvas .offcanvas-header {
            padding: .95rem 1rem;
            border-bottom: 1px solid rgba(15, 23, 42, .08);
        }

        .tm-sidebar-offcanvas .offcanvas-body {
            padding: 0;
        }

        [data-bs-theme="dark"] .tm-sidebar-mobile-trigger {
            color: #f8fafc;
            border-color: rgba(255, 255, 255, .14);
            background: rgba(17, 24, 39, .72);
            box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
        }

        [data-bs-theme="dark"] .tm-sidebar-offcanvas {
            background: color-mix(in srgb, var(--bs-body-bg) 97%, var(--bs-primary));
            border-inline-start-color: rgba(255, 255, 255, .12);
        }

        @media (max-width: 991.98px) {
            .tm-account-sidebar {
                position: static;
                top: auto;
            }
        }

        @media (max-width: 1199.98px) {
            main .row > [class*="col-"]:has(> .tm-account-sidebar),
            main .row > aside:has(> .tm-account-sidebar) {
                display: none !important;
            }

            main .row > [class*="col-"]:has(> .tm-account-sidebar) + [class*="col-"],
            main .row > aside:has(> .tm-account-sidebar) + [class*="col-"] {
                flex: 0 0 100%;
                width: 100%;
                max-width: 100%;
            }
        }

        @media (max-width: 575.98px) {
            .tm-sidebar-mobile-portal:not(.tm-sidebar-mobile-portal-hidden) {
                margin: .25rem 0 .9rem;
            }

            .tm-sidebar-mobile-trigger {
                min-height: 42px;
                padding: .46rem .68rem;
                font-size: .88rem;
            }
        }

        @media (min-width: 1200px) {
            .tm-sidebar-mobile-portal {
                display: none !important;
            }
        }

/* Migrated component styles: ZarMall.Web/Views/Shared/_AdminHeavyPageStyles.cshtml */
.tm-admin-heavy-page {
        color: #1f2d3d;
    }

    .tm-admin-heavy-page h1,
    .tm-admin-heavy-page h2,
    .tm-admin-heavy-page h3,
    .tm-admin-heavy-page .h4 {
        color: #1f2d3d;
        font-weight: 900;
        letter-spacing: 0;
    }

    .tm-admin-heavy-page .card {
        border: 1px solid rgba(148, 163, 184, .28) !important;
        border-radius: 1rem;
        box-shadow: 0 .75rem 1.75rem rgba(15, 23, 42, .06) !important;
        overflow: hidden;
    }

    .tm-admin-heavy-page .card-header {
        min-height: 54px;
        background: #f8fafc;
        color: #1f2d3d;
        font-weight: 900;
        display: flex;
        align-items: center;
    }

    .tm-admin-heavy-page .card-header.bg-primary,
    .tm-admin-heavy-page .card-header.bg-info,
    .tm-admin-heavy-page .card-header.bg-success,
    .tm-admin-heavy-page .card-header.bg-danger,
    .tm-admin-heavy-page .card-header.bg-warning {
        color: #fff;
    }

    .tm-admin-heavy-page .btn,
    .tm-admin-heavy-page a.btn,
    .tm-admin-heavy-page button.btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .35rem;
        line-height: 1.35;
        white-space: nowrap;
        font-weight: 800;
    }

    .tm-admin-heavy-page .table-responsive {
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: .9rem;
        background: #fff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
        -webkit-overflow-scrolling: touch;
    }

    .tm-admin-heavy-page .table-responsive table {
        min-width: 900px;
        margin-bottom: 0;
    }

    .tm-admin-heavy-page .table {
        color: #1f2d3d;
    }

    .tm-admin-heavy-page .table thead th {
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
        border-bottom-color: rgba(148, 163, 184, .45);
    }

    .tm-admin-heavy-page .table tbody td {
        vertical-align: middle;
    }

    .tm-admin-heavy-page .table tbody tr:hover > * {
        background-color: #f8fbff;
    }

    .tm-admin-heavy-page .table td .btn {
        min-height: 36px;
        padding-inline: .75rem;
    }

    .tm-admin-heavy-page .table td form {
        margin-bottom: 0;
    }

    .tm-admin-heavy-page .table td .d-flex,
    .tm-admin-heavy-page .table td .text-nowrap {
        align-items: center;
        gap: .45rem;
    }

    .tm-admin-heavy-page .row.g-2.mb-3 > [class*="col-"] > .card .card-body,
    .tm-admin-heavy-page .row.g-3.mb-3 > [class*="col-"] > .card .card-body {
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        border-top: 3px solid rgba(13, 110, 253, .55);
    }

    .tm-admin-heavy-page .card-header,
    .tm-admin-heavy-page .card-body > .d-flex,
    .tm-admin-heavy-page .alert + .d-flex,
    .tm-admin-heavy-page .alert + .card {
        gap: .75rem;
    }

    .tm-admin-heavy-page .card-body.row,
    .tm-admin-heavy-page form .card-body.row,
    .tm-admin-heavy-page form.row {
        row-gap: .9rem;
    }

    .tm-admin-heavy-page .btn-sm {
        min-height: 38px;
    }

    .tm-admin-heavy-page .form-label {
        color: #334155;
        font-weight: 800;
        line-height: 1.6;
        margin-bottom: .35rem;
    }

    .tm-admin-heavy-page .form-control,
    .tm-admin-heavy-page .form-select {
        border-radius: .72rem;
        border-color: #cbd5e1;
        font-weight: 700;
    }

    .tm-admin-heavy-page .form-control-sm,
    .tm-admin-heavy-page .form-select-sm {
        min-height: 40px;
    }

    .tm-admin-heavy-page .shopping-admin-cart-table-wrap {
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: .9rem;
        background: #fff;
    }

    .tm-admin-heavy-page .shopping-admin-cart-table-wrap table {
        min-width: 1180px;
    }

    .tm-admin-heavy-page.tm-admin-monitoring-page .table-responsive table,
    .tm-admin-heavy-page.tm-admin-cart-page .table-responsive table {
        min-width: 1160px;
    }

    .tm-admin-heavy-page.tm-admin-tera-payment-page .table-responsive table {
        min-width: 1180px;
    }

    .tm-admin-heavy-page.tm-admin-shopping-discount-page .table-responsive table {
        min-width: 1220px;
    }

    .tm-admin-heavy-page.tm-admin-postshipping-page .table-responsive table {
        min-width: 1120px;
    }

    .tm-admin-heavy-page.tm-admin-plan-page .table-responsive table,
    .tm-admin-heavy-page.tm-admin-plan-report-page .table-responsive table {
        min-width: 1260px;
    }

    .tm-admin-heavy-page.tm-admin-payment-config-page .table-responsive table {
        min-width: 1160px;
    }

    .tm-admin-heavy-page .row.g-2.align-items-end,
    .tm-admin-heavy-page .row.g-2.align-items-center {
        row-gap: .85rem;
    }

    .tm-admin-heavy-page .form-check {
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    .tm-admin-heavy-page .form-check:not(.form-switch) {
        gap: .5rem;
        padding-right: 0;
    }

    .tm-admin-heavy-page .form-check:not(.form-switch) .form-check-input {
        float: none;
        flex: 0 0 auto;
        width: 1.05rem;
        height: 1.05rem;
        margin: 0;
    }

    .tm-admin-heavy-page .form-check:not(.form-switch) .form-check-label {
        margin: 0;
        line-height: 1.6;
        font-weight: 800;
    }

    .tm-admin-heavy-page .badge {
        min-height: 1.65rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1.25;
    }

    @media (max-width: 991.98px) {
        .tm-admin-heavy-page .d-flex.justify-content-between.align-items-center,
        .tm-admin-heavy-page .d-flex.flex-wrap.justify-content-between.align-items-center,
        .tm-admin-heavy-page .d-flex.justify-content-between.align-items-center.mb-3,
        .tm-admin-heavy-page .d-flex.flex-wrap.align-items-center.justify-content-between,
        .tm-admin-heavy-page .d-flex.gap-2:not(.tm-monitoring-owner),
        .tm-admin-heavy-page .d-flex.flex-wrap.gap-2:not(.tm-monitoring-owner) {
            gap: .75rem !important;
            flex-wrap: wrap !important;
        }

        .tm-admin-heavy-page .d-flex.gap-2:not(.tm-monitoring-owner) > .btn,
        .tm-admin-heavy-page .d-flex.gap-2:not(.tm-monitoring-owner) > a,
        .tm-admin-heavy-page .d-flex.flex-wrap.gap-2:not(.tm-monitoring-owner) > .btn,
        .tm-admin-heavy-page .d-flex.flex-wrap.gap-2:not(.tm-monitoring-owner) > a {
            flex: 1 1 calc(50% - .5rem);
        }

        .tm-admin-heavy-page .table-responsive table {
            min-width: 820px;
        }

        .tm-admin-heavy-page.tm-admin-payment-config-page .d-flex.gap-2.align-items-center {
            width: 100%;
            justify-content: flex-start;
            flex-wrap: wrap;
        }
    }

    @media (max-width: 767.98px) {
        .tm-admin-heavy-page .card-body {
            padding: 1rem;
        }

        .tm-admin-heavy-page .btn,
        .tm-admin-heavy-page a.btn,
        .tm-admin-heavy-page button.btn {
            width: 100%;
        }

        .tm-admin-heavy-page .d-flex.gap-2:not(.tm-monitoring-owner) > .btn,
        .tm-admin-heavy-page .d-flex.gap-2:not(.tm-monitoring-owner) > a,
        .tm-admin-heavy-page .d-flex.flex-wrap.gap-2:not(.tm-monitoring-owner) > .btn,
        .tm-admin-heavy-page .d-flex.flex-wrap.gap-2:not(.tm-monitoring-owner) > a {
            flex: 1 1 100%;
        }

        .tm-admin-heavy-page .table-responsive {
            margin-inline: -.35rem;
        }

        .tm-admin-heavy-page .table-responsive table {
            min-width: 760px;
            font-size: .91rem;
        }

        .tm-admin-heavy-page h1,
        .tm-admin-heavy-page .h4 {
            font-size: 1.15rem;
            line-height: 1.8;
        }

        .tm-admin-heavy-page.tm-admin-monitoring-page .row.g-3 > [class*="col-"],
        .tm-admin-heavy-page.tm-admin-cart-page .row.g-3 > [class*="col-"],
        .tm-admin-heavy-page.tm-admin-plan-page .row.g-3 > [class*="col-"] {
            width: 100%;
        }

        .tm-admin-heavy-page.tm-admin-payment-config-page .row.g-2 > [class*="col-"] {
            width: 100%;
        }
    }

/* Migrated component styles: ZarMall.Web/Views/Shared/_AdminResponsiveStyles.cshtml */
.tm-area-admin .container,
    .tm-area-admin .container-fluid {
        padding-inline: .9rem;
    }

    .tm-area-admin .card {
        border-radius: 1rem;
    }

    .tm-area-admin .card-header {
        gap: .75rem;
        flex-wrap: wrap;
    }

    .tm-area-admin .card-header .btn,
    .tm-area-admin .card-header a.btn {
        white-space: normal;
    }

    .tm-area-admin .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    .tm-area-admin .pagination {
        flex-wrap: wrap;
        gap: .35rem;
    }

    .tm-area-admin .page-link {
        min-width: 42px;
        text-align: center;
    }

    .tm-area-admin .btn {
        min-height: 40px;
    }

    .tm-area-admin .form-control,
    .tm-area-admin .form-select {
        min-height: 42px;
    }

    .tm-area-admin .tm-account-sidebar {
        position: sticky;
        top: 1rem;
    }

    .tm-area-admin .tm-account-sidebar-toggle {
        min-height: 44px;
    }

    .tm-area-admin .tm-account-sidebar-body .list-group-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    @media (max-width: 1199.98px) {
        .tm-area-admin .tm-account-sidebar {
            position: static;
            top: auto;
            margin-bottom: 1rem;
        }

        .tm-area-admin .tm-account-sidebar-body {
            border-top: 1px solid var(--bs-border-color-translucent);
            padding-top: .75rem;
            margin-top: .75rem;
        }
    }

    @media (max-width: 991.98px) {
        .tm-area-admin .d-flex.justify-content-between.align-items-center,
        .tm-area-admin .d-flex.justify-content-between.align-items-center.mb-3,
        .tm-area-admin .d-flex.justify-content-between.align-items-center.mb-2,
        .tm-area-admin .d-flex.justify-content-end.gap-2,
        .tm-area-admin .d-flex.justify-content-end.gap-2.mb-3,
        .tm-area-admin .d-flex.justify-content-between,
        .tm-area-admin .card-header.d-flex {
            flex-wrap: wrap;
            gap: .75rem !important;
        }

        .tm-area-admin .d-flex.justify-content-end.gap-2 > .btn,
        .tm-area-admin .d-flex.justify-content-end.gap-2 > a,
        .tm-area-admin .card-header.d-flex .btn,
        .tm-area-admin .card-header.d-flex a.btn {
            flex: 1 1 calc(50% - .5rem);
        }

        .tm-area-admin .table-responsive table {
            min-width: 760px;
        }

        .tm-area-admin .shopping-admin-cart-table-wrap {
            max-height: none;
        }
    }

    @media (max-width: 767.98px) {
        .tm-area-admin .container,
        .tm-area-admin .container-fluid {
            padding-inline: .65rem;
        }

        .tm-area-admin main.pb-3 {
            padding-bottom: 1rem !important;
        }

        .tm-area-admin .card-header {
            padding: .9rem 1rem;
        }

        .tm-area-admin .card-body {
            padding: 1rem;
        }

        .tm-area-admin .btn,
        .tm-area-admin a.btn,
        .tm-area-admin button.btn {
            width: 100%;
        }

        .tm-area-admin .d-flex.justify-content-end.gap-2 > .btn,
        .tm-area-admin .d-flex.justify-content-end.gap-2 > a,
        .tm-area-admin .card-header.d-flex .btn,
        .tm-area-admin .card-header.d-flex a.btn {
            flex: 1 1 100%;
        }

        .tm-area-admin .table-responsive {
            margin-inline: -.35rem;
        }

        .tm-area-admin .table-responsive table {
            min-width: 680px;
            font-size: .92rem;
        }

        .tm-area-admin .h4,
        .tm-area-admin h1.h4,
        .tm-area-admin h4,
        .tm-area-admin h5 {
            line-height: 1.6;
        }

        .tm-area-admin .form-floating > .form-control,
        .tm-area-admin .form-floating > .form-select,
        .tm-area-admin .form-control,
        .tm-area-admin .form-select {
            min-height: 46px;
            font-size: .95rem;
        }

        .tm-area-admin .tm-account-sidebar .list-group {
            margin-bottom: 0 !important;
        }
    }

/* Migrated component styles: ZarMall.Web/Views/Shared/_ImpersonationBanner.cshtml */
.tm-impersonation-banner {
            position: sticky !important;
            inset-block-start: 0 !important;
            z-index: 2147483647 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: .75rem !important;
            width: 100% !important;
            padding: .65rem 1rem !important;
            color: #2c2100 !important;
            background: #ffb020 !important;
            border-bottom: 3px solid #8a5a00 !important;
            box-shadow: 0 .25rem .75rem rgba(0,0,0,.25) !important;
        }

        .tm-impersonation-banner__text {
            display: flex !important;
            flex-wrap: wrap !important;
            align-items: center !important;
            gap: .35rem .75rem !important;
        }

        .tm-impersonation-banner__timer { white-space: nowrap !important; }

        @media (max-width: 767.98px) {
            .tm-impersonation-banner {
                align-items: stretch !important;
                flex-direction: column !important;
                padding: .6rem .75rem !important;
                font-size: .83rem !important;
            }

            .tm-impersonation-banner form,
            .tm-impersonation-banner button { width: 100% !important; }
        }

/* Migrated component styles: ZarMall.Web/Views/Shared/_UserNav.cshtml */
.tm-social-top-link {
            min-height: 2.75rem;
        }

        .tm-social-top-cluster {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            flex-wrap: nowrap;
        }

        .tm-social-layout-profile {
            width: 2.55rem;
            min-width: 2.55rem;
            height: 2.55rem;
        }

        /* قاب و حرف جایگزین آواتار در منو، پروفایل و مانیتورینگ یک منبع مشترک دارند. */
        .tm-app .tm-profile-avatar {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
            padding: 2px;
            border: 0;
            border-radius: 50%;
            background: conic-gradient(from 210deg, #f97316, #ec4899, #6366f1, #22c55e, #f97316);
            box-shadow: 0 0 0 1px rgba(15, 23, 42, .12);
            line-height: 1;
            text-decoration: none;
        }

        .tm-app .tm-profile-avatar-small { width: 32px; height: 32px; font-size: 1rem; }

        .tm-app .tm-profile-avatar > img,
        .tm-app .tm-profile-avatar > .tm-profile-avatar-initial {
            width: 100%;
            height: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--bs-body-bg);
            border-radius: 50%;
        }

        .tm-app .tm-profile-avatar > img {
            object-fit: cover;
            object-position: center;
            background: var(--bs-body-bg);
        }

        .tm-app .tm-profile-avatar > .tm-profile-avatar-initial {
            color: #fff;
            background: linear-gradient(135deg, #ef4444, #f97316 45%, #2563eb);
            font-weight: 1000;
            line-height: 1;
            text-align: center;
            text-transform: uppercase;
            direction: ltr;
        }

        .tm-app .tm-profile-avatar-initial > span {
            display: block;
            line-height: 1;
            /* جابه‌جایی runtime از معیار واقعی فونت می‌آید تا خود حرف، نه فقط کادر خط، وسط باشد. */
            translate: var(--tm-avatar-letter-x, 0px) var(--tm-avatar-letter-y, 0px);
        }

        .tm-social-nav-center > a.tm-social-top-link {
            display: none !important;
        }

        .tm-social-main-link,
        .tm-social-direct-link {
            min-height: 2.75rem;
        }

        /* شمارنده داخل دکمه می‌ماند تا قاب اسکرول منوی موبایل آن را نبرد. */
        .tm-app .navbar [data-direct-unread-count] {
            top: .125rem !important;
            transform: none !important;
            font-size: .625rem;
            padding: .25em .45em;
        }

        .tm-social-layout-search-item {
            /* جستجوی داخل Navbar باید همراه با Header اصلی روی محتوای Viewها قرار بگیرد. */
            position: relative;
            z-index: var(--tm-main-menu-shell-z-index, 4999);
            width: min(100%, 15.5rem);
            margin-inline: .25rem;
        }

        .tm-social-layout-search {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            /* این wrapper لایه پایه لیست نتایج را نگه می‌دارد. */
            position: relative;
            z-index: var(--tm-main-menu-shell-z-index, 4999);
            width: 100%;
        }

        @media (min-width: 1200px) and (max-width: 1399.98px) {
            .tm-main-navbar:has(.tm-main-brand-authenticated) .tm-social-layout-search-item {
                width: clamp(10rem, calc(100vw - 65rem), 15.5rem);
            }
        }

        .tm-social-layout-search-icon {
            position: relative;
            grid-row: 1;
            grid-column: 1;
            align-self: center;
            justify-self: start;
            inset-inline-start: .7rem;
            top: auto;
            z-index: 2;
            width: 1.6rem;
            height: 1.6rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transform: none;
            border: 0;
            border-radius: 50%;
            color: var(--bs-secondary-color);
            background: transparent;
            font-weight: 900;
        }

        .tm-social-layout-search-icon:hover {
            color: var(--bs-primary);
            background: rgba(13, 110, 253, .09);
        }

        .tm-social-layout-search-input {
            grid-row: 1;
            grid-column: 1;
            width: 100%;
            min-height: 2.45rem;
            padding: .45rem 2.35rem .45rem .85rem;
            border: 1px solid var(--bs-border-color-translucent);
            border-radius: 999rem;
            background: color-mix(in srgb, var(--bs-body-bg) 92%, var(--bs-primary));
            color: var(--bs-body-color);
            outline: none;
        }

        .tm-social-layout-search-input:focus {
            border-color: rgba(13, 110, 253, .45);
            box-shadow: 0 0 0 .18rem rgba(13, 110, 253, .12);
        }

        .tm-social-layout-search-results {
            grid-row: 2;
            grid-column: 1;
            max-height: min(26rem, 65dvh);
            overflow-y: auto;
            overscroll-behavior: contain;
            /* لیست نتایج نباید پشت جدول‌ها، کارت‌ها یا کنترل‌های sticky صفحات قرار بگیرد. */
            position: absolute;
            inset-inline-start: 0;
            top: calc(100% + .45rem);
            z-index: var(--tm-main-menu-z-index, 5000);
            width: min(22rem, 92vw);
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: .45rem;
            padding: .55rem;
            border: 1px solid var(--bs-border-color-translucent);
            border-radius: 8px;
            background: var(--bs-body-bg);
            box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
        }

        .tm-social-layout-search-result {
            position: relative;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: .65rem;
            padding: .5rem;
            width: 100%;
            border: 0;
            border-radius: 8px;
            color: inherit;
            background: transparent;
            text-align: inherit;
        }

        .tm-social-layout-search-result:hover {
            background: color-mix(in srgb, var(--bs-primary) 9%, var(--bs-body-bg));
        }

        .tm-social-layout-search-result[role="link"] { cursor: pointer; }
        .tm-main-navbar-mobile-quick .tm-social-layout-search-results {
            inset-inline-start: auto;
            inset-inline-end: 0;
            width: min(22rem, calc(100vw - 2rem));
        }
        .tm-social-layout-search-result:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
        .tm-main-navbar .tm-social-layout-search-result > .min-w-0 { flex: 1 1 0; }
        .tm-main-navbar .tm-social-layout-search-result > .min-w-0 > a {
            display: block;
            overflow-wrap: anywhere;
            white-space: normal;
        }
        .tm-app .tm-main-navbar .tm-social-layout-search-result > .btn {
            flex: 0 0 auto;
            width: auto;
            min-width: 0;
            max-width: 100%;
            padding: .35rem .55rem;
            font-size: .78rem;
            white-space: nowrap;
        }
        .tm-main-navbar .tm-social-layout-search-result > .tm-social-follow-btn { margin-inline-start: auto; }
        .tm-main-navbar .tm-social-layout-search-result > .min-w-0 { min-width: 0; }
        @media (max-width: 359.98px) {
            .tm-app .tm-main-navbar .tm-social-layout-search-result { gap: .35rem; padding-inline: .3rem; }
            .tm-app .tm-main-navbar .tm-social-layout-search-result > .btn { padding-inline: .4rem; font-size: .72rem; }
        }

        .tm-social-layout-search-title {
            padding: .15rem .35rem 0;
            color: var(--bs-secondary-color);
            font-size: .76rem;
            font-weight: 900;
        }

        .tm-social-layout-search-avatar {
            width: 2.3rem;
            min-width: 2.3rem;
            height: 2.3rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-radius: 50%;
            color: #fff;
            background: linear-gradient(135deg, #ef4444, #f97316 45%, #2563eb);
            font-weight: 900;
            text-transform: uppercase;
        }

        .tm-social-layout-search-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .tm-social-layout-search-avatar.tm-social-layout-search-store-logo {
            border: 1px solid color-mix(in srgb, var(--bs-border-color) 80%, transparent);
            border-radius: 6px;
            color: var(--bs-primary);
            background: var(--bs-body-bg);
        }

        .tm-social-layout-search-avatar.tm-social-layout-search-store-logo img {
            object-fit: contain;
            padding: .12rem;
        }

        .tm-social-layout-search-result a {
            color: var(--bs-body-color);
            font-weight: 900;
            text-decoration: none;
        }

        .tm-social-top-stat {
            display: inline-flex;
            align-items: center;
            gap: .22rem;
            padding: .34rem .55rem;
            color: #0f172a;
            background: #fff;
            box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
            font-weight: 950;
            text-decoration: none;
        }

        .tm-social-top-stat strong {
            font-size: 1.04rem;
            font-weight: 1000;
            line-height: 1;
        }

        .tm-social-top-stat span {
            font-size: .74rem;
            font-weight: 850;
        }

        @media (max-width: 991.98px) {
            .tm-social-top-cluster {
                width: 100%;
                justify-content: flex-start;
                flex-wrap: nowrap;
                gap: .4rem;
                margin-block: .35rem;
                overflow-x: auto;
                overflow-y: hidden;
                scrollbar-width: thin;
                -webkit-overflow-scrolling: touch;
            }

            .tm-main-navbar-mobile-quick .tm-social-nav-center,
            .tm-main-navbar-collapse.collapse:not(.show) .tm-social-nav-center {
                margin: 0 !important;
            }

            .tm-main-navbar-mobile-quick .tm-social-top-cluster,
            .tm-main-navbar-collapse.collapse:not(.show) .tm-social-top-cluster {
                /* در حالت بسته موبایل، خلاصه اجتماعی واقعی کاربر شامل پروفایل، آمار و آیکن دایرکت دیده می‌شود. */
                max-width: 100%;
                margin-block: 0;
            }

            .tm-main-navbar-mobile-quick .tm-social-main-link,
            .tm-main-navbar-collapse.collapse:not(.show) .tm-social-main-link {
                display: none !important;
            }

            .tm-main-navbar-mobile-quick .tm-social-layout-profile,
            .tm-main-navbar-mobile-quick .tm-social-top-stat,
            .tm-main-navbar-mobile-quick .tm-social-direct-link,
            .tm-main-navbar-collapse.collapse:not(.show) .tm-social-layout-profile,
            .tm-main-navbar-collapse.collapse:not(.show) .tm-social-top-stat,
            .tm-main-navbar-collapse.collapse:not(.show) .tm-social-direct-link {
                display: inline-flex !important;
                flex: 0 0 auto;
            }

            .tm-main-navbar-mobile-quick .tm-social-top-stat,
            .tm-main-navbar-collapse .tm-social-top-stat {
                min-height: 2.35rem;
                border-radius: 999rem;
                padding: .28rem .52rem;
            }

            .tm-main-navbar-mobile-quick .tm-social-top-stat strong,
            .tm-main-navbar-collapse .tm-social-top-stat strong {
                font-size: .95rem;
            }

            .tm-main-navbar-mobile-quick .tm-social-top-stat span,
            .tm-main-navbar-collapse .tm-social-top-stat span {
                font-size: .68rem;
            }

            .tm-main-navbar-mobile-quick .tm-social-top-stat.d-xxl-inline-flex,
            .tm-main-navbar-collapse .tm-social-top-stat.d-xxl-inline-flex {
                /* در تبلت و موبایل هم فالویینگ باید مثل فالور در خلاصه اجتماعی دیده شود. */
                display: inline-flex !important;
            }

            .tm-main-navbar-mobile-quick .tm-social-main-link,
            .tm-main-navbar-mobile-quick .tm-social-direct-link,
            .tm-main-navbar-collapse .tm-social-main-link,
            .tm-main-navbar-collapse .tm-social-direct-link {
                justify-content: center !important;
                flex: 0 0 2.45rem;
                width: 2.45rem !important;
                min-width: 2.45rem;
                padding-inline: 0 !important;
            }

            .tm-main-navbar-mobile-quick .tm-social-main-link span.d-none,
            .tm-main-navbar-mobile-quick .tm-social-direct-link span.d-none,
            .tm-main-navbar-collapse .tm-social-main-link span.d-none,
            .tm-main-navbar-collapse .tm-social-direct-link span.d-none {
                /* دایرکت در تبلت و موبایل فقط آیکنی است و متن داخل ردیف فشرده نمایش داده نمی‌شود. */
                display: none !important;
            }

            .tm-social-layout-search-item {
                width: 100%;
                margin: 0;
            }

            .tm-main-navbar-mobile-quick .tm-social-layout-search-item {
                flex: 1 0 clamp(10rem, 30vw, 18rem);
                width: clamp(10rem, 30vw, 18rem);
                min-width: 10rem;
            }

            .tm-social-layout-search-results {
                position: static;
                width: 100%;
                margin-top: .45rem;
            }

            .tm-main-navbar-mobile-quick .tm-social-layout-search-results {
                position: absolute;
                width: min(22rem, 92vw);
                margin-top: 0;
            }
        }

/* Migrated reusable component styles: ZarMall.Web/wwwroot/css/active-session.css */
.tm-active-session-page {
    --tm-session-radius: 1rem;
    max-width: 1600px;
}

.tm-session-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    overflow: hidden;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid color-mix(in srgb, var(--bs-primary) 18%, var(--bs-border-color));
    border-radius: var(--tm-session-radius);
    background: linear-gradient(135deg, color-mix(in srgb, var(--bs-primary) 9%, var(--bs-body-bg)), var(--bs-body-bg) 62%);
    box-shadow: 0 16px 45px rgba(15, 23, 42, .07);
}

.tm-session-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .55rem;
    color: var(--bs-primary);
    font-size: .82rem;
    font-weight: 800;
}

.tm-session-hero-icon {
    display: grid;
    width: 4.5rem;
    min-width: 4.5rem;
    height: 4.5rem;
    place-items: center;
    border-radius: 1.25rem;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 12%, var(--bs-body-bg));
    font-size: 2rem;
}

.tm-session-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 23rem), 1fr));
    gap: 1rem;
}

.tm-session-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: var(--tm-session-radius);
    background: var(--bs-body-bg);
    box-shadow: 0 10px 35px rgba(15, 23, 42, .06);
}

.tm-session-card.is-current {
    border-color: color-mix(in srgb, var(--bs-success) 45%, var(--bs-border-color));
    box-shadow: 0 12px 38px color-mix(in srgb, var(--bs-success) 12%, transparent);
}

.tm-session-device-icon {
    display: grid;
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: .9rem;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 10%, var(--bs-body-bg));
    font-size: 1.35rem;
}

.tm-session-details {
    display: grid;
    gap: .7rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.tm-session-details > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.tm-session-details dt {
    color: var(--bs-secondary-color);
    font-size: .84rem;
    font-weight: 600;
}

.tm-session-details dd {
    margin: 0;
    text-align: end;
    font-size: .88rem;
    font-weight: 650;
}

.tm-session-empty {
    padding: clamp(2.5rem, 8vw, 5rem) 1rem;
    border: 1px dashed var(--bs-border-color);
    border-radius: var(--tm-session-radius);
    color: var(--bs-secondary-color);
}

.tm-session-filter-form .form-label {
    font-size: .84rem;
    font-weight: 700;
}

.tm-session-table-wrap {
    max-height: min(68vh, 52rem);
}

.tm-session-table {
    min-width: 78rem;
}

.tm-session-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
    box-shadow: inset 0 -1px var(--bs-border-color);
}

.tm-session-table thead a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: inherit;
    text-decoration: none;
}

.tm-session-table td,
.tm-session-table th {
    padding: .85rem;
    vertical-align: middle;
}

.tm-session-select-column {
    width: 5.5rem;
    min-width: 5.5rem;
}

.tm-session-selection-toolbar {
    background: color-mix(in srgb, var(--bs-tertiary-bg) 70%, transparent);
}

.tm-session-selection-toolbar form {
    margin: 0;
}

.min-w-0 { min-width: 0; }

@media (max-width: 575.98px) {
    .tm-session-hero-icon { display: none; }
    .tm-session-card { padding: 1rem; }
    .tm-session-details > div { align-items: flex-start; }
}

.tm-panel-ui .tm-btn-close-sm {
    font-size: .65rem;
}

.tm-panel-ui .tm-clickable {
    cursor: pointer;
}

.tm-panel-ui .tm-image-card,
.tm-panel-ui .tm-image-card-wrapper {
    touch-action: none;
}

.tm-panel-ui .tm-image-drag-surface[data-tm-drag-handle] {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    border-radius: var(--tm-radius-control);
    cursor: grab;
}

.tm-panel-ui .tm-image-drag-surface[data-tm-drag-handle]:active,
body.tm-is-dragging .tm-panel-ui .tm-image-drag-surface[data-tm-drag-handle] {
    cursor: grabbing;
}

.tm-panel-ui .tm-image-drag-surface[data-tm-drag-handle]:focus-visible {
    outline: .2rem solid rgba(13, 110, 253, .28);
    outline-offset: 2px;
}

.tm-panel-ui .tm-image-drag-surface[data-tm-drag-handle] img,
.tm-panel-ui .tm-image-drag-surface[data-tm-drag-handle] .badge {
    pointer-events: none;
}

.tm-panel-ui .tm-image-drag-handle {
    position: absolute;
    inset-block-end: .35rem;
    inset-inline-end: .35rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tm-icon-button-size);
    height: var(--tm-icon-button-size);
    padding: 0;
    border: 1px solid rgba(var(--bs-dark-rgb), .2);
    border-radius: var(--tm-radius-sm);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: var(--tm-shadow-sm);
}

@media (prefers-reduced-motion: reduce) {
    .tm-session-card,
    .tm-session-hero { scroll-behavior: auto; }
}

/* Migrated reusable component styles: ZarMall.Web/wwwroot/css/store-menu-management.css */
.tm-store-menu-layout {
    --bs-gutter-x: .9rem;
    --bs-gutter-y: .9rem;
    align-items: flex-start;
}

.tm-social-follow-avatar {
    width: 2.375rem;
    height: 2.375rem;
    object-fit: cover;
    flex: 0 0 2.375rem;
}

.tm-social-follow-avatar-fallback {
    background: linear-gradient(135deg, #f97316, #db2777, #2563eb);
}

.tm-store-menu-card {
    overflow: hidden;
    border-radius: .5rem;
}

.tm-store-menu-sort-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.tm-store-menu-sort-link:hover,
.tm-store-menu-sort-link:focus {
    color: var(--bs-primary);
}

.tm-store-menu-sort-icon {
    width: 1rem;
    color: var(--bs-secondary-color);
    font-size: .72rem;
    line-height: 1;
}

.tm-store-menu-drag-handle {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--bs-secondary-color);
    background: transparent;
    cursor: grab;
    touch-action: none;
}

.tm-store-menu-drag-handle:active {
    cursor: grabbing;
}

[data-tm-order-list][data-order-enabled="true"] [data-tm-order-item] {
    cursor: grab;
    user-select: none;
}

[data-tm-order-list][data-order-enabled="true"] [data-tm-order-item]:active {
    cursor: grabbing;
}

[data-tm-order-list][data-order-enabled="true"] [data-tm-order-item] :is(input:not([type="checkbox"]), select, textarea, label) {
    cursor: auto;
}

[data-tm-order-list][data-order-enabled="true"] [data-tm-order-item] :is(a, button, [role="button"], input[type="checkbox"]) {
    cursor: pointer;
}

[data-tm-order-list][data-order-enabled="true"] [data-tm-order-item] :is(button:disabled, input:disabled) {
    cursor: not-allowed;
}

[data-tm-order-item].tm-sortable-dragging {
    opacity: .45;
}

[data-tm-order-item].tm-sortable-target {
    outline: 2px dashed var(--bs-primary);
    outline-offset: -3px;
}

.tm-store-menu-mobile-card {
    border-radius: .5rem;
}

.tm-store-menu-icon-button {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tm-store-menu-reorder-help {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: -.15rem .15rem .75rem;
    color: var(--bs-secondary-color);
    font-size: .78rem;
    line-height: 1.5;
}

.tm-store-menu-filter-row > [class*="col-"] {
    align-self: stretch;
}

.tm-store-menu-filter-row .form-floating,
.tm-store-menu-filter-row .form-select,
.tm-store-menu-filter-row .tm-store-menu-add-button {
    height: 100%;
}

.tm-store-menu-add-button {
    min-height: 3.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

.tm-store-menu-add-button .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tm-app .tm-store-menu-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
}

.tm-store-menu-table-wrap .table {
    width: 100%;
    min-width: 100%;
    margin-bottom: 0;
}

.tm-store-menu-order-cell {
    white-space: nowrap;
}

.tm-store-menu-order-content {
    display: inline-flex;
    min-width: 3.75rem;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .tm-store-menu-layout {
        --bs-gutter-x: 0;
        --bs-gutter-y: 1rem;
    }

}

/* ==========================================================================
   ZarMall Admin/My design-system enforcement layer
   Bootstrap owns layout primitives; these rules define only ZarMall semantics.
   ========================================================================== */
.tm-panel-ui {
    overflow-x: clip;
}

/* قرارداد نهایی چیدمان تمام‌صفحه در پنل‌های Admin و My */
.tm-panel-ui .tm-page-shell,
.tm-panel-ui.tm-page-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-block: 1.5rem !important;
    margin-inline: auto !important;
    padding: 0 !important;
}

.tm-panel-ui :is(.tm-page-shell, .tm-panel-ui.tm-page-shell) > .row {
    --bs-gutter-x: var(--tm-section-gap);
    --bs-gutter-y: var(--tm-section-gap);
    align-items: flex-start;
}

.tm-panel-ui .tm-page-shell :is(.row, [class*="col-"]) {
    min-width: 0;
}

.tm-panel-ui .tm-page-shell > .row > :is([class*="col-"], main):not(:has(> .tm-account-sidebar)) {
    min-width: 0;
}

.tm-panel-ui .tm-page-header {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-block-end: var(--tm-section-gap);
    padding: .8rem 1rem;
    border: 1px solid var(--tm-table-header-border) !important;
    border-radius: var(--tm-radius-card);
    color: #fff !important;
    background: var(--tm-color-header) !important;
    box-shadow: var(--tm-shadow-sm);
    text-align: right;
}

.tm-panel-ui .card-header.tm-page-header {
    margin-block-end: 0;
    border-width: 0 0 1px !important;
    border-radius: 0;
    box-shadow: none;
}

.tm-panel-ui .tm-page-header :is(.text-muted, .form-text, small),
.tm-panel-ui .tm-page-header.tm-page-title {
    color: rgba(255, 255, 255, .86) !important;
}

.tm-panel-ui .tm-page-title {
    margin: 0 !important;
    color: inherit;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.6;
}

.tm-panel-ui .tm-page-header.tm-page-title {
    color: #fff !important;
}

.tm-panel-ui .tm-page-header .btn {
    min-height: 44px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.tm-panel-ui .tm-page-header :is(.btn-outline-primary, .btn-outline-secondary, .btn-light) {
    border-color: #fff;
    color: var(--tm-color-primary);
    background: #fff;
}

.tm-panel-ui .tm-page-header :is(.btn-outline-primary, .btn-outline-secondary, .btn-light):is(:hover, :focus-visible) {
    border-color: rgba(255, 255, 255, .9);
    color: var(--tm-color-primary-hover);
    background: rgba(255, 255, 255, .9);
}

/* دکمه بازگشت روی سربرگ آبی باید همان کنتراست دکمه روشن مشترک را حفظ کند. */
.tm-panel-ui .tm-page-header .btn.tm-action-cancel {
    color: var(--tm-color-primary) !important;
    background-color: #fff !important;
    border-color: #fff !important;
}

.tm-panel-ui .tm-page-header .btn.tm-action-cancel:is(:hover, :focus-visible) {
    color: var(--tm-color-primary-hover) !important;
    background-color: rgba(255, 255, 255, .9) !important;
}

.tm-panel-ui .tm-main-layout-container,
.tm-main-layout-container:has(.tm-social-profile-page),
.tm-main-layout-container:has(> main > :is(.container, .container-fluid) > .row > * > .tm-account-sidebar) {
    width: 100%;
    max-width: 1600px;
    padding-inline: var(--tm-page-gutter);
}

.tm-main-layout-container:has(.tm-social-profile-page) > main > .row {
    --bs-gutter-x: var(--tm-section-gap);
}

.tm-main-layout-container:has(.tm-social-profile-page) > main > .row > * {
    min-width: 0;
}

/* اندازه قاب و ستون‌های پنل در تمام Areaها همان Admin/Plan است؛ فرم‌های ورود و صفحات بدون منوی داخلی تغییر نمی‌کنند. */
.tm-main-layout-container > main:has(> .row > * > .tm-site-info),
.tm-main-layout-container > main > :is(.container, .container-fluid):has(> .row > * > .tm-account-sidebar) {
    width: 100%;
    max-width: none;
    padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5) !important;
}

.tm-main-layout-container > main:has(> .row > * > .tm-site-info) > .row,
.tm-main-layout-container > main > :is(.container, .container-fluid) > .row:has(> * > .tm-account-sidebar) {
    --bs-gutter-x: var(--tm-section-gap);
}

.tm-main-layout-container > main:has(> .row > * > .tm-site-info) > .row > *,
.tm-main-layout-container > main > :is(.container, .container-fluid) > .row:has(> * > .tm-account-sidebar) > * {
    min-width: 0;
}

.tm-panel-ui main > :first-child {
    margin-top: 0;
}

.tm-panel-ui :is(.tm-page, .tm-content-stack) {
    display: grid;
    gap: var(--tm-section-gap);
    min-width: 0;
}

.tm-panel-ui :is(.tm-page-actions, .tm-form-actions, .tm-mobile-row-actions) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--tm-action-gap);
}

.tm-panel-ui .card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tm-border-color) !important;
    border-radius: var(--tm-radius-card) !important;
    background: var(--tm-surface-bg);
    box-shadow: var(--tm-shadow-sm) !important;
}

/* فهرست پیشنهادها باید از کادر کارت خارج شود؛ گردی سربرگ و پابرگ همچنان حفظ می‌شود. */
.tm-panel-ui .card.tm-card-with-suggestions { overflow: visible; }
.tm-panel-ui .tm-card-with-suggestions > .card-header:first-child { border-radius: var(--tm-radius-card) var(--tm-radius-card) 0 0; }
.tm-panel-ui .tm-card-with-suggestions > .card-footer:last-child { border-radius: 0 0 var(--tm-radius-card) var(--tm-radius-card); }

.tm-panel-ui .card-header {
    min-height: 3.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    text-align: right;
}

.tm-panel-ui .card-header :is(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    line-height: 1.6;
}

.tm-panel-ui .tm-store-profit-store-name {
    color: #12395b !important;
    border: 1px solid rgba(255, 255, 255, .78);
    background: #fff !important;
    font-weight: 700;
}

[data-bs-theme="dark"] .tm-panel-ui .tm-store-profit-store-name {
    color: #d9ecff !important;
    border-color: rgba(217, 236, 255, .62);
    background: #173f5f !important;
}

.tm-panel-ui .card-body {
    min-width: 0;
    padding: 1rem;
}

.tm-panel-ui .card-footer {
    padding: .85rem 1rem;
}

.tm-panel-ui .tm-page-shell :is(.form-control, .form-select, .input-group, .dropdown, .autocomplete) {
    max-width: 100%;
}

.tm-panel-ui .tm-page-shell select.form-select {
    width: 100%;
}

/* Wrapper فیلد انتخاب نیز باید داخل Grid/Card جمع شود و صرفاً خود select محدود نشود. */
.tm-panel-ui .tm-page-shell :is(.tm-field-group, .form-floating, .input-group, [class*="col-"]):has(> select.form-select) {
    min-width: 0;
    max-width: 100%;
}

.tm-panel-ui :is(.tm-card-header-delete, .tm-card-header-danger, [data-tm-card-variant="danger"]) {
    color: #fff !important;
    border-color: var(--tm-color-danger) !important;
    background: var(--tm-color-danger) !important;
}

.tm-panel-ui :is(.tm-form-grid, form .row) {
    --bs-gutter-y: var(--tm-field-gap);
}

.tm-panel-ui .tm-form-stack {
    display: grid;
    gap: var(--tm-field-gap);
}

.tm-panel-ui .tm-field-group {
    display: grid;
    gap: var(--tm-label-gap);
    min-width: 0;
}

.tm-panel-ui .form-label {
    margin-bottom: var(--tm-label-gap);
}

.tm-panel-ui :is(.form-control, .form-select, .input-group-text) {
    min-height: var(--tm-control-height);
    border-radius: var(--tm-radius-control);
}

.tm-panel-ui .input-group > :is(.form-control, .form-select, .input-group-text, .btn) {
    border-radius: 0;
}

.tm-panel-ui .input-group > :first-child {
    border-start-start-radius: var(--tm-radius-control);
    border-end-start-radius: var(--tm-radius-control);
}

.tm-panel-ui .input-group > :last-child {
    border-start-end-radius: var(--tm-radius-control);
    border-end-end-radius: var(--tm-radius-control);
}

/* در فیلدهای پولی پنل، واحد ریال به لبه چپ فیلد متصل می‌ماند. */
.tm-panel-ui .tm-currency-input-group {
    direction: ltr;
    flex-wrap: nowrap;
}

.tm-panel-ui .tm-currency-input-group > :is(.form-control, .form-floating),
.tm-panel-ui .tm-currency-input-group > .form-floating > .form-control {
    direction: ltr;
    text-align: right;
}

.tm-panel-ui .tm-currency-input-group > .form-floating {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.tm-panel-ui .tm-currency-input-group > .form-floating > label {
    right: 0;
    left: auto;
    width: 100%;
    direction: rtl;
    text-align: right;
}

.tm-panel-ui .tm-currency-input-group > .input-group-text {
    border-radius: var(--tm-radius-control) 0 0 var(--tm-radius-control) !important;
    white-space: nowrap;
}

.tm-panel-ui .tm-currency-input-group > .form-floating > .form-control {
    border-radius: 0 var(--tm-radius-control) var(--tm-radius-control) 0 !important;
}

/* کارت‌های عددی فرم ترکیب، ساختار و ارتفاع یکسان دارند تا دسکتاپ و تبلت هم‌تراز بمانند. */
.tm-panel-ui .tm-combination-field-card {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--tm-border-color);
    border-radius: var(--tm-radius-card);
    background: var(--tm-surface-bg);
}

.tm-panel-ui .tm-combination-field-card.is-stock {
    border-color: color-mix(in srgb, var(--bs-primary) 30%, var(--tm-border-color));
    background: color-mix(in srgb, var(--bs-primary) 4%, var(--tm-surface-bg));
}

.tm-panel-ui .tm-combination-field-card.is-cost {
    border-color: color-mix(in srgb, var(--bs-warning) 38%, var(--tm-border-color));
    background: color-mix(in srgb, var(--bs-warning) 6%, var(--tm-surface-bg));
}

.tm-panel-ui .tm-combination-field-card.is-sale {
    border-color: color-mix(in srgb, var(--bs-success) 48%, var(--tm-border-color));
    background: var(--bs-success-bg-subtle);
}

.tm-panel-ui .tm-combination-field-card.is-neutral {
    background: color-mix(in srgb, var(--bs-secondary-bg) 40%, var(--tm-surface-bg));
}

.tm-panel-ui .tm-combination-field-card .tm-combination-field-help {
    flex: 1 1 auto;
}

.tm-panel-ui .tm-combination-field-card .form-floating,
.tm-panel-ui .tm-combination-field-card .input-group {
    width: 100%;
}

.tm-panel-ui .tm-combination-field-card .form-text {
    min-height: 1.7em;
}

.tm-panel-ui .tm-store-settings-page .tm-limit-number {
    direction: ltr;
    text-align: right;
}

.tm-panel-ui .tm-store-settings-page .tm-limit-card .card-body {
    min-width: 0;
}

/* کارت محدودیت از کلاس فرم استفاده می‌کند؛ عنوان نمایشی باید فضای واقعی کارت را مصرف کند. */
.tm-panel-ui .tm-store-settings-page .tm-limit-form,
.tm-panel-ui .tm-store-settings-page .tm-limit-form .card-body,
.tm-panel-ui .tm-store-settings-page .tm-limit-form .row > *,
.tm-panel-ui .tm-store-settings-page .tm-limit-form .form-floating {
    min-width: 0;
}

.tm-panel-ui .tm-store-settings-page .tm-limit-form .tm-field-with-counter .form-control {
    padding-left: .85rem;
}

/* عنوان محدودیت چندخطی است تا در موبایل و کنار سایدبار کامل دیده شود. */
.tm-panel-ui .tm-store-settings-page .tm-limit-form .tm-limit-title {
    min-height: 4.375rem;
    height: auto;
    field-sizing: content;
    resize: vertical;
    overflow-wrap: anywhere;
    padding-bottom: 1.35rem;
}

.tm-panel-ui .tm-store-settings-page .tm-limit-form.is-saving {
    opacity: .78;
}

.tm-panel-ui .form-text,
.tm-panel-ui :is(.field-validation-error, .invalid-feedback) {
    margin-top: var(--tm-help-gap);
    line-height: 1.7;
    text-align: right;
}

.tm-panel-ui .btn:not(.btn-sm) {
    min-height: var(--tm-button-height);
    padding-inline: 1rem;
}

/* فاصله و هم‌ترازی آیکن و متن دکمه در تمام صفحات پنل از یک قرارداد مرکزی می‌آید. */
.tm-panel-ui :is(a, button, label).btn:has(:is(.bi, svg)) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--tm-button-icon-gap);
    vertical-align: middle;
}

.tm-panel-ui :is(a, button, label).btn:has(:is(.bi, svg)) :is(.bi, svg) {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
}

.tm-panel-ui .tm-icon-action {
    width: var(--tm-icon-button-size);
    min-width: var(--tm-icon-button-size);
    height: var(--tm-icon-button-size);
    min-height: var(--tm-icon-button-size);
    display: inline-flex;
    flex: 0 0 var(--tm-icon-button-size);
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.tm-panel-ui .tm-icon-action > :is(.bi, svg) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
}

.tm-panel-ui .tm-icon-action > .bi::before {
    display: block;
    line-height: 1;
    vertical-align: 0;
}

/* کلیک سابقه نباید حلقه فوکوس باقی بگذارد؛ نشانگر صفحه‌کلید حفظ می‌شود. */
.tm-panel-ui .tm-icon-action[data-discount-history-id]:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none !important;
    border-color: transparent;
}

:is(.tm-panel-ui, .tm-counter-scope) .tm-field-with-counter {
    position: relative;
    min-width: 0;
}

:is(.tm-panel-ui, .tm-counter-scope) .tm-field-with-counter > .form-floating,
:is(.tm-panel-ui, .tm-counter-scope) .tm-field-counter-shell {
    position: relative;
}

:is(.tm-panel-ui, .tm-counter-scope) .tm-field-with-counter .form-control {
    padding-left: 7.75rem;
}

:is(.tm-panel-ui, .tm-counter-scope) .tm-field-with-counter textarea.form-control {
    min-height: 8rem;
    padding-bottom: 2rem;
}

:is(.tm-panel-ui, .tm-counter-scope) .tm-field-char-counter {
    position: absolute;
    bottom: -.5rem;
    left: .85rem;
    z-index: 4;
    max-width: calc(100% - 1.7rem);
    padding-inline: .45rem;
    overflow: hidden;
    color: var(--tm-muted-color, #64748b);
    background: var(--tm-surface-bg, var(--bs-body-bg, #fff));
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

:is(.tm-panel-ui, .tm-counter-scope) .bg-light .tm-field-char-counter,
:is(.tm-panel-ui, .tm-counter-scope) .card-footer .tm-field-char-counter {
    background: var(--tm-surface-alt-bg);
}

:is(.tm-panel-ui, .tm-counter-scope) .tm-field-with-counter > :is(.text-danger, .invalid-feedback) {
    display: block;
    margin-top: .6rem;
}

.tm-panel-ui :is(.tm-table-wrapper, .tm-table-shell) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: contain;
    direction: ltr;
    isolation: isolate;
    scrollbar-gutter: auto;
}

.tm-panel-ui .tm-table-section {
    width: 100%;
    min-width: 0;
    margin-inline: 0;
}

.tm-panel-ui :is(.tm-table-wrapper, .tm-table-shell) > table.tm-table {
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
    max-width: none;
    margin: 0;
    direction: rtl;
    border-collapse: separate;
    border-spacing: 0;
}

.tm-panel-ui .tm-table > thead.tm-table-head {
    --bs-table-color: var(--tm-table-header-color);
    --bs-table-bg: var(--tm-table-header-bg);
    --bs-table-border-color: var(--tm-table-header-border);
    color: var(--tm-table-header-color);
    background-color: var(--tm-table-header-bg);
}

.tm-panel-ui .tm-table > thead.tm-table-head > tr {
    height: var(--tm-table-header-height);
}

.tm-panel-ui .tm-table > thead.tm-table-head > tr > th {
    box-sizing: border-box;
    height: auto;
    padding-block: var(--tm-table-cell-padding-block);
    padding-inline: var(--tm-table-cell-padding-inline);
    border-color: var(--tm-table-header-border);
    color: var(--tm-table-header-color);
    background-color: var(--tm-table-header-bg);
    background-clip: padding-box;
    box-shadow: inset 0 -1px 0 var(--tm-table-header-border);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.tm-panel-ui .tm-table > thead.tm-table-head > tr > th :is(a, button) {
    color: var(--tm-table-header-color);
}

.tm-panel-ui .tm-table > thead.tm-table-head > tr > th :is(a, button):is(:hover, :focus-visible) {
    color: var(--tm-table-header-color);
}

.tm-panel-ui .tm-table > thead.tm-table-head > tr > th[role="button"] {
    cursor: pointer;
}

.tm-panel-ui .tm-table > thead.tm-table-head > tr > th[role="button"]::after {
    margin-inline-start: .35rem;
    color: currentColor;
    content: "⇅";
    font-size: .9em;
    opacity: .88;
}

.tm-panel-ui .tm-table > thead.tm-table-head > tr > th[role="button"][aria-sort="ascending"]::after {
    content: "↑";
}

.tm-panel-ui .tm-table > thead.tm-table-head > tr > th[role="button"][aria-sort="descending"]::after {
    content: "↓";
}

.tm-panel-ui .tm-table > thead.tm-table-head .tm-store-menu-sort-icon,
.tm-panel-ui .tm-table > thead.tm-table-head :is(.bi-arrow-down-up, .bi-chevron-up, .bi-chevron-down) {
    color: var(--tm-table-header-color);
    opacity: .88;
}

.tm-panel-ui .tm-table > thead.tm-table-head > tr > th[aria-sort]:not([aria-sort="none"]),
.tm-panel-ui .tm-table > thead.tm-table-head > tr > th.tm-sorted {
    background-color: color-mix(in srgb, var(--tm-table-header-bg) 82%, #001f4f);
}

.tm-panel-ui .tm-table > tbody > tr > td {
    height: 3.25rem;
    padding-block: var(--tm-table-cell-padding-block);
    padding-inline: var(--tm-table-cell-padding-inline);
    border-bottom: var(--tm-table-row-separator-width) solid var(--tm-table-row-separator-color) !important;
    vertical-align: middle;
}

/* ستون هویت و اطلاعات چندخطی در کنار مبلغ‌های بدون شکست نباید تا عرض یک حرف فشرده شوند. */
@media (min-width: 768px) {
    .tm-panel-ui .tm-table .tm-table-identity-cell {
        width: 15rem;
        min-width: 15rem;
        max-width: 20rem;
    }

    .tm-panel-ui .tm-table .tm-table-entity-cell {
        min-width: 14rem;
        max-width: 24rem;
        overflow-wrap: anywhere;
    }
}

/* متن آزاد طولانی نباید عرض ذاتی جدول را بر سایر ستون‌ها غالب کند. */
.tm-panel-ui .tm-table .tm-table-description-cell {
    min-width: 12rem;
    max-width: 28rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tm-panel-ui .tm-table > tbody > tr:hover > td {
    background-color: var(--tm-table-hover-bg);
}

/* مقدار desktop اسکرول داخلی را به جدول محدود می‌کند؛ کارت‌های موبایل همراه صفحه پیمایش می‌شوند. */
.tm-panel-ui :is(.tm-table-wrapper, .tm-table-shell):is([data-tm-scrollable="true"], [data-tm-scrollable="desktop"]),
.tm-panel-ui :is(.tm-table-wrapper, .tm-table-shell)[class*="tm-table-h-"] {
    max-height: min(72vh, 44rem);
    overflow: auto;
}

.tm-panel-ui :is(.tm-table-wrapper, .tm-table-shell):is([data-tm-scrollable="true"], [data-tm-scrollable="desktop"]) .tm-table > thead.tm-table-head > tr > th,
.tm-panel-ui :is(.tm-table-wrapper, .tm-table-shell)[class*="tm-table-h-"] .tm-table > thead.tm-table-head > tr > th {
    position: sticky;
    top: 0;
    z-index: 10;
}

.tm-panel-ui .tm-table-wrapper .tm-table-has-select-column :is(th, td):first-child:not([colspan]) {
    position: sticky;
    right: 0;
    left: auto;
    z-index: 11;
    width: 3rem;
    min-width: 3rem;
    max-width: 3rem;
    text-align: center;
    background: var(--tm-surface-bg);
    box-shadow: -1px 0 0 var(--tm-border-color);
}

/* تقاطع سربرگ چسبان و ستون انتخاب باید بالاتر از سایر سلول‌های سربرگ بماند. */
.tm-panel-ui .tm-table-wrapper .tm-table.tm-table-has-select-column > thead.tm-table-head > tr > th:first-child:not([colspan]) {
    z-index: 12;
    background-color: var(--tm-table-header-bg);
}

.tm-panel-ui .tm-table-wrapper .tm-table-has-select-column :is(th, td):first-child:not([colspan]) > .form-check-input {
    float: none;
    width: 1rem;
    height: 1rem;
    display: block;
    margin: 0 auto;
    vertical-align: middle;
}

.tm-panel-ui .tm-table :is(.tm-order-cell, [data-tm-order-cell]),
.tm-panel-ui .tm-table :is(.tm-status-cell, [data-tm-status-cell]),
.tm-panel-ui .tm-table :is(.tm-actions-cell, [data-tm-actions-cell]) {
    text-align: center;
    vertical-align: middle;
}

.tm-panel-ui .tm-table-status-toggle {
    position: relative;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    padding: .125rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--tm-muted-color);
    vertical-align: middle;
    cursor: pointer;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.tm-panel-ui .tm-table-status-toggle::after {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 .1rem .3rem rgba(15, 23, 42, .28);
    content: "";
    transform: translateX(0);
    transition: transform .16s ease;
}

[dir="rtl"] .tm-panel-ui .tm-table-status-toggle[aria-checked="true"]::after {
    transform: translateX(-1.25rem);
}

[dir="ltr"] .tm-panel-ui .tm-table-status-toggle[aria-checked="true"]::after {
    transform: translateX(1.25rem);
}

.tm-panel-ui .tm-table-status-toggle[aria-checked="true"] {
    background: var(--tm-color-primary);
}

.tm-panel-ui .tm-table-status-toggle:focus-visible {
    outline: .2rem solid rgba(13, 110, 253, .28);
    outline-offset: 2px;
}

.tm-panel-ui .tm-table-status-toggle.is-disabled {
    cursor: not-allowed;
    opacity: .55;
}

.tm-panel-ui .tm-table :is(.tm-order-cell, [data-tm-order-cell]) {
    width: 6rem;
    min-width: 6rem;
    padding-inline: .35rem;
}

/* لینک مشاهده عمومی محصول در فهرست، برای لمس و متن چندخطی فضای کافی دارد. */
.tm-panel-ui .tm-product-public-link { min-height: 44px; }

.tm-panel-ui .tm-table :is(.tm-order-cell, [data-tm-order-cell]) :is(.tm-store-menu-order-content, .tm-order-content) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    margin-inline: auto;
}

.tm-panel-ui .tm-table :is(.tm-actions-cell, [data-tm-actions-cell]) > :is(div, form) {
    align-items: center;
    justify-content: center;
}

/* در Desktop و Tablet عملیات یک ردیف واحد و با Gap ثابت باقی می‌ماند. */
@media (min-width: 768px) {
    .tm-panel-ui .tm-table:has(:is(.tm-actions-cell, [data-tm-actions-cell])) {
        table-layout: auto !important;
    }

    .tm-panel-ui .tm-table :is(.tm-actions-cell, [data-tm-actions-cell]) {
        width: 1%;
        min-width: max-content;
        white-space: nowrap !important;
    }

    .tm-panel-ui .tm-table :is(.tm-actions-cell, [data-tm-actions-cell]) .btn {
        width: auto !important;
        margin: 0;
        vertical-align: middle;
        white-space: nowrap !important;
    }

    .tm-panel-ui .tm-table :is(.tm-actions-cell, [data-tm-actions-cell]) > :is(div, form) {
        width: max-content !important;
        min-width: max-content;
        max-width: none;
        display: inline-flex;
        flex-wrap: nowrap;
        gap: var(--tm-action-gap);
        margin: 0;
        vertical-align: middle;
    }

    /* ترتیب هندسی عملیات برای محاسبه Gap و ناوبری دیداری ثابت است؛ متن هر عمل همچنان RTL می‌ماند. */
    .tm-panel-ui .tm-table :is(.tm-actions-cell, [data-tm-actions-cell]) > div {
        direction: ltr;
    }

    .tm-panel-ui .tm-table :is(.tm-actions-cell, [data-tm-actions-cell]) > div > * {
        direction: rtl;
    }

    .tm-panel-ui .tm-table :is(.tm-actions-cell, [data-tm-actions-cell]) > :is(.btn, div, form):not(:first-child) {
        margin-inline-start: var(--tm-action-gap);
    }

    /* وقتی عملیات ستون آخر است، در Scroll افقی از دسترس کاربر خارج نمی‌شود. */
    .tm-panel-ui .tm-table:has(> tbody > tr > :is(td.tm-actions-cell, td[data-tm-actions-cell]):last-child) > thead.tm-table-head > tr > th:last-child {
        position: sticky;
        left: 0;
        z-index: 12;
        background-color: var(--tm-table-header-bg);
        box-shadow: 1px 0 0 var(--tm-table-header-border);
    }

    .tm-panel-ui .tm-table:has(> tbody > tr > :is(td.tm-actions-cell, td[data-tm-actions-cell]):last-child) > tbody > tr > :is(td.tm-actions-cell, td[data-tm-actions-cell]):last-child {
        position: sticky;
        left: 0;
        z-index: 9;
        background-color: var(--tm-surface-bg);
        box-shadow: 1px 0 0 var(--tm-table-row-separator-color);
    }

    .tm-panel-ui .tm-table:has(> tbody > tr > :is(td.tm-actions-cell, td[data-tm-actions-cell]):last-child) > tbody > tr:hover > :is(td.tm-actions-cell, td[data-tm-actions-cell]):last-child {
        background-color: color-mix(in srgb, var(--tm-surface-bg) 88%, var(--tm-color-primary));
    }
}

.tm-panel-ui .tm-pagination {
    gap: .35rem;
    margin-bottom: 0;
}

.tm-panel-ui .tm-pagination .page-link {
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-align: center;
}

.tm-panel-ui .tm-pagination-summary {
    margin-top: .65rem;
    color: var(--tm-muted-color);
    font-size: .875rem;
    font-weight: 700;
    text-align: center;
}

.tm-panel-ui .tm-table-footer {
    margin-block: 1rem 0 !important;
    padding-block-start: 1rem;
    border-top: 1px solid var(--tm-border-color);
}

.tm-panel-ui :is(nav, div).tm-table-footer {
    display: grid;
    gap: .65rem;
}

.tm-panel-ui .card-footer > .tm-table-footer:first-child {
    margin-block-start: 0 !important;
    padding-block-start: 0;
    border-top: 0;
}

.tm-panel-ui .pagination.tm-table-footer,
.tm-panel-ui .tm-table-footer > .pagination {
    justify-content: center;
    margin-bottom: 0;
}

.tm-panel-ui .tm-mobile-row-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tm-border-color);
    border-radius: var(--tm-radius-card);
    color: var(--tm-text-color);
    background: var(--tm-surface-bg);
    box-shadow: var(--tm-shadow-sm);
}

.tm-panel-ui .tm-mobile-row-field {
    display: grid;
    grid-template-columns: minmax(5.5rem, .8fr) minmax(0, 1.2fr);
    gap: .75rem;
    align-items: start;
    padding: .75rem .85rem;
    border-bottom: 1px solid var(--tm-border-color);
}

.tm-panel-ui .tm-mobile-row-label {
    color: var(--tm-muted-color);
    font-size: .82rem;
    font-weight: 700;
}

.tm-panel-ui .tm-mobile-row-value {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.tm-panel-ui .tm-mobile-row-actions {
    padding: .75rem .85rem;
    border-top: 1px solid var(--tm-border-color);
}

.tm-panel-ui .tm-drag-guide {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .75rem;
    color: var(--tm-muted-color);
    font-size: .82rem;
    line-height: 1.7;
}

.tm-panel-ui .tm-drag-guide.tm-drag-guide-after {
    margin: .75rem 1rem;
}

.tm-panel-ui .tm-drag-handle,
.tm-panel-ui [data-tm-drag-handle] {
    width: var(--tm-icon-button-size);
    min-width: var(--tm-icon-button-size);
    height: var(--tm-icon-button-size);
    min-height: var(--tm-icon-button-size);
    display: inline-flex;
    flex: 0 0 var(--tm-icon-button-size);
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--tm-radius-control);
    color: var(--tm-muted-color);
    background: transparent;
    line-height: 1;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.tm-panel-ui [data-tm-order-list] > [data-tm-order-item] {
    cursor: default;
}

.tm-panel-ui [data-tm-order-list] > [data-tm-order-item] [data-tm-drag-handle] {
    cursor: grab !important;
}

.tm-panel-ui [data-tm-order-list] > [data-tm-order-item] [data-tm-drag-handle]:active,
body.tm-is-dragging .tm-panel-ui [data-tm-drag-handle] {
    cursor: grabbing !important;
}

.tm-panel-ui [data-tm-order-page-target] {
    transition: box-shadow .15s ease, transform .15s ease, background-color .15s ease;
}

.tm-panel-ui [data-tm-order-page-target].tm-drag-page-target-active {
    color: var(--bs-primary-text-emphasis);
    background-color: var(--bs-primary-bg-subtle);
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .24);
    transform: translateY(-2px);
}

.tm-panel-ui .tm-product-page-drop-guide {
    border-style: dashed;
}

.tm-panel-ui .tm-drag-handle:focus-visible,
.tm-panel-ui [data-tm-drag-handle]:focus-visible {
    outline: .2rem solid rgba(13, 110, 253, .28);
    outline-offset: 2px;
}

body.tm-is-dragging,
body.tm-is-dragging * {
    cursor: grabbing !important;
    user-select: none !important;
}

.tm-panel-ui .tm-drag-source {
    opacity: .7;
    outline: 2px solid color-mix(in srgb, var(--tm-color-primary) 45%, transparent);
    outline-offset: -2px;
}

.tm-drag-ghost {
    position: fixed;
    z-index: 10050;
    inset: auto;
    max-width: min(42rem, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid var(--tm-border-strong);
    border-radius: var(--tm-radius-card);
    opacity: .92;
    background: var(--tm-surface-bg);
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .2);
    transform: translate3d(0, 0, 0);
    transition: none;
    pointer-events: none !important;
}

.tm-panel-ui .tm-drag-placeholder {
    outline: 2px dashed var(--tm-color-primary);
    outline-offset: -3px;
    background: color-mix(in srgb, var(--tm-color-primary) 7%, var(--tm-surface-bg)) !important;
}

.tm-panel-ui [data-tm-order-item] {
    transition: background-color var(--tm-drag-duration) ease, outline-color var(--tm-drag-duration) ease, opacity var(--tm-drag-duration) ease;
}

.tm-panel-ui :is(.alert, .modal-content, .accordion-item, .nav-tabs) {
    border-color: var(--tm-border-color);
}

.tm-panel-ui .modal-content {
    max-height: calc(100dvh - 2rem);
    overflow: hidden;
    border-radius: var(--tm-radius-card);
}

.tm-panel-ui .modal-body {
    overflow: auto;
}

/* مودال‌های پنل باید بالاتر از هدر و منوی اصلی با z-index پنج‌هزار نمایش داده شوند. */
.tm-panel-ui .modal {
    --bs-modal-zindex: 5080;
    z-index: var(--bs-modal-zindex);
}

.tm-panel-ui .modal-backdrop {
    --bs-backdrop-zindex: 5070;
    z-index: var(--bs-backdrop-zindex);
}

.tm-panel-ui :is(.tm-empty-state, .tm-no-result, .tm-error-state, .tm-loading-state) {
    display: grid;
    place-items: center;
    gap: .75rem;
    min-height: 10rem;
    padding: 2rem 1rem;
    color: var(--tm-muted-color);
    text-align: center;
}

.tm-panel-ui .tm-pre-line { white-space: pre-line; }
.tm-panel-ui .tm-pre-wrap { white-space: pre-wrap; }
.tm-panel-ui .tm-cursor-pointer { cursor: pointer; }
.tm-panel-ui .tm-textarea-lg { min-height: 9rem; }
.tm-panel-ui .tm-progress-zero { width: 0; }
.tm-panel-ui .tm-max-w-sm { max-width: 42.5rem; }
.tm-panel-ui .tm-max-w-lg { max-width: 47.5rem; }
.tm-panel-ui .tm-min-w-240 { min-width: 15rem; }
.tm-panel-ui .tm-min-w-260 { min-width: 16.25rem; }
.tm-panel-ui .tm-min-w-280 { min-width: 17.5rem; }
.tm-panel-ui .tm-min-w-300 { min-width: 18.75rem; }
.tm-panel-ui .tm-min-w-320 { min-width: 20rem; }
.tm-panel-ui .tm-max-w-190 { max-width: 11.875rem; }
.tm-panel-ui .tm-z-dropdown { z-index: 1050; }
.tm-panel-ui .tm-initially-hidden { display: none; }
.tm-panel-ui .tm-sticky-offset { top: 1rem; z-index: 10; }
.tm-panel-ui .tm-table-h-160 { max-height: 10rem; }
.tm-panel-ui .tm-table-h-320 { max-height: 20rem; }
.tm-panel-ui .tm-table-h-360 { max-height: 22.5rem; }
.tm-panel-ui .tm-table-h-560 { max-height: 35rem; }
.tm-panel-ui .tm-table-h-600 { max-height: 37.5rem; }

@media (max-width: 767.98px) {
    .tm-panel-ui .tm-page-shell,
    .tm-panel-ui.tm-page-shell {
        margin-block: 1rem calc(5.5rem + env(safe-area-inset-bottom)) !important;
    }

    .tm-panel-ui .tm-page-header {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        padding: .75rem .85rem;
    }

    .tm-panel-ui .tm-page-header .btn {
        width: 100%;
    }

    .tm-panel-ui .tm-page-title {
        font-size: 20px !important;
    }

    .tm-panel-ui .tm-page-actions,
    .tm-panel-ui .tm-form-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .tm-panel-ui :is(.tm-page-actions, .tm-form-actions) > .btn {
        width: 100%;
        min-height: 44px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .4rem;
    }

    .tm-panel-ui :is(.tm-responsive-card-table.tm-table-wrapper, .tm-table-wrapper:has(> table.tm-responsive-card-table)) {
        max-height: none;
        overflow: visible;
        border: 0;
        background: transparent;
        direction: rtl;
    }

    .tm-panel-ui .tm-responsive-card-table > table,
    .tm-panel-ui table.tm-responsive-card-table {
        display: block;
        min-width: 0 !important;
        border: 0;
        background: transparent;
    }

    .tm-panel-ui table.tm-responsive-card-table > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .tm-panel-ui table.tm-responsive-card-table > tbody,
    .tm-panel-ui table.tm-responsive-card-table > tbody > tr,
    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td {
        display: block;
        width: 100%;
    }

    .tm-panel-ui table.tm-responsive-card-table > tbody {
        display: grid;
        gap: var(--tm-card-gap);
    }

    .tm-panel-ui table.tm-responsive-card-table > tbody > tr {
        min-width: 0;
        overflow: hidden;
        border: 1px solid var(--tm-border-color);
        border-radius: var(--tm-radius-card);
        background: var(--tm-surface-bg);
        box-shadow: var(--tm-shadow-sm);
    }

    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td {
        position: static !important;
        height: auto !important;
        min-height: 3.25rem;
        min-width: 0 !important;
        max-width: none !important;
        display: grid;
        grid-template-columns: minmax(5.5rem, .8fr) minmax(0, 1.2fr);
        gap: .75rem;
        align-items: center;
        padding: .75rem .85rem;
        border: 0;
        border-bottom: var(--tm-table-row-separator-width) solid var(--tm-table-row-separator-color);
        background: transparent !important;
        box-shadow: none !important;
        white-space: normal !important;
        text-align: right;
    }

    .tm-panel-ui .tm-table-wrapper > table.tm-responsive-card-table.tm-table-has-select-column > tbody > tr > td:first-child:not([colspan]) {
        width: 100% !important;
    }

    /* متن بلند در کارت موبایل از تمام عرض استفاده می‌کند و برچسب بالای آن باقی می‌ماند. */
    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td.tm-table-prose-cell {
        grid-template-columns: minmax(0, 1fr);
    }

    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td.tm-table-prose-cell > * {
        grid-column: 1 / -1;
        min-width: 0;
    }

    /* عرض ستون ترتیب دسکتاپ نباید برچسب و مقدار کارت موبایل را به خارج سلول براند. */
    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td[data-tm-order-cell] {
        width: 100%;
    }

    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td::before {
        content: attr(data-tm-label);
        grid-column: 1;
        align-self: start;
        color: var(--tm-muted-color);
        font-size: .82rem;
        font-weight: 700;
        text-align: right;
    }

    /* محتوای چندخطی هر سلول در ستون مقدار باقی می‌ماند؛ بدون Wrapper یا اصلاح DOM در JavaScript. */
    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td > * {
        grid-column: 2;
        min-width: 0;
        max-width: 100%;
    }

    /* هویت و جزئیات بلند در کارت موبایل از تمام عرض استفاده می‌کنند تا نام، تلفن و متن خوانا بمانند. */
    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td.tm-table-identity-cell,
    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td.tm-table-detail-cell {
        grid-template-columns: minmax(0, 1fr);
    }

    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td.tm-table-identity-cell > *,
    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td.tm-table-detail-cell > * {
        grid-column: 1;
    }

    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td:last-child {
        border-bottom: 0;
    }

    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td.tm-mobile-actions-cell {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: var(--tm-action-gap);
        padding: .75rem .85rem;
    }

    .tm-panel-ui table.tm-responsive-card-table > tbody > tr > td.tm-mobile-actions-cell::before {
        display: none;
    }

    .tm-panel-ui .tm-row-action .tm-mobile-action-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    body.tm-panel-ui .tm-mobile-actions-cell .tm-row-action,
    body.tm-panel-ui .tm-mobile-row-actions .tm-row-action,
    body.tm-panel-ui :is(.store-mobile-actions, .tm-store-menu-mobile-actions) .tm-row-action {
        position: relative;
        width: var(--tm-icon-button-size) !important;
        min-width: var(--tm-icon-button-size);
        height: var(--tm-icon-button-size);
        min-height: var(--tm-icon-button-size);
        display: inline-flex;
        flex: 0 0 var(--tm-icon-button-size);
        align-items: center;
        justify-content: center;
        /* در حالت فقط آیکن، فاصله متن نباید مرکز آیکن را جابه‌جا کند. */
        gap: 0;
        padding: 0;
        font-size: 0;
        line-height: 1;
    }

    .tm-panel-ui :is(.tm-mobile-actions-cell, .tm-mobile-row-actions, .store-mobile-actions, .tm-store-menu-mobile-actions) .tm-row-action > :is(.bi, svg) {
        width: 1rem;
        height: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        line-height: 1;
    }

    .tm-panel-ui :is(.tm-mobile-actions-cell, .tm-mobile-row-actions, .store-mobile-actions, .tm-store-menu-mobile-actions) .tm-row-action > .bi::before {
        display: block;
        line-height: 1;
        vertical-align: 0;
    }

    /* جدول‌هایی که صریحاً Scroll مستقل می‌خواهند در نمای کارتی موبایل نیز از Scroll صفحه جدا می‌مانند. */
    body.tm-panel-ui :is(.tm-table-wrapper, .tm-table-shell)[data-tm-scrollable="true"] {
        max-height: min(72vh, 44rem);
        overflow: auto;
        direction: ltr;
        scrollbar-gutter: stable;
    }

    .tm-panel-ui .pagination {
        flex-wrap: wrap;
        gap: .3rem;
    }

    .tm-panel-ui .pagination .page-link {
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding: .45rem;
    }

    .tm-panel-ui .modal-dialog {
        max-width: calc(100% - 1rem);
        margin: .5rem auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tm-panel-ui *,
    .tm-panel-ui *::before,
    .tm-panel-ui *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Task5 consolidated Razor style blocks. Source selectors remain scoped to their original page components. */
/* Source: ZarMall.Web/Areas/Accounting/Views/Account/ChangePassword.cshtml */
    .tm-change-password-page {
        color: #1f2d3d;
    }

    .tm-change-password-shell {
        border: 1px solid rgba(148, 163, 184, .28);
        border-radius: 1.25rem;
        background: #fff;
        box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .08);
        overflow: hidden;
    }

    .tm-change-password-hero {
        min-height: 100%;
        background: linear-gradient(145deg, #0d6efd 0%, #184b9b 56%, #16213f 100%);
        color: #fff;
        padding: 2rem;
        position: relative;
        overflow: hidden;
    }

    .tm-change-password-hero::after {
        content: "";
        position: absolute;
        inset-inline-start: -5rem;
        inset-block-end: -6rem;
        width: 14rem;
        height: 14rem;
        border-radius: 50%;
        background: rgba(255, 255, 255, .12);
    }

    .tm-change-password-icon {
        width: 3.4rem;
        height: 3.4rem;
        border-radius: 1rem;
        background: rgba(255, 255, 255, .16);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.65rem;
        margin-bottom: 1.25rem;
    }

    .tm-change-password-hero h1 {
        font-weight: 900;
        line-height: 1.7;
        letter-spacing: 0;
    }

    .tm-change-password-form-panel {
        padding: 2rem;
    }

    .tm-password-policy {
        border: 1px solid #e2e8f0;
        border-radius: .9rem;
        background: #f8fafc;
        color: #475569;
        font-size: .78rem;
        line-height: 1.9;
        padding: .8rem .95rem;
    }

    .tm-password-policy ul {
        margin: .35rem 0 0;
        padding-right: 1rem;
    }

    .tm-password-policy li {
        margin-bottom: .15rem;
    }

    .tm-change-password-hero .tm-password-policy {
        position: relative;
        z-index: 1;
        border-color: rgba(255, 255, 255, .22);
        background: rgba(255, 255, 255, .12);
        color: rgba(255, 255, 255, .88);
        box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .14);
    }

    .tm-change-password-hero .tm-password-policy .text-dark {
        color: #fff !important;
    }

    .tm-change-password-field {
        position: relative;
        margin-bottom: 1rem;
    }

    .tm-change-password-field .form-control {
        min-height: 58px;
        border: 1px solid #cbd5e1;
        border-radius: .85rem;
        padding-left: 3.35rem;
        font-weight: 800;
        box-shadow: none;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

    .tm-change-password-field .form-control:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .12);
    }

    #changePasswordForm .form-floating > label {
        color: #64748b;
        font-weight: 500;
        letter-spacing: 0;
        opacity: .9;
    }

    #changePasswordForm .form-control::placeholder {
        color: #94a3b8;
        font-weight: 400;
        opacity: 1;
    }

    #changePasswordForm .form-floating > .form-control::placeholder {
        color: transparent;
    }

    #changePasswordForm .form-floating > .form-control:focus ~ label,
    #changePasswordForm .form-floating > .form-control:not(:placeholder-shown) ~ label {
        color: #64748b;
        font-weight: 500;
        opacity: .85;
    }

    .tm-password-toggle {
        position: absolute;
        top: 1.8rem;
        left: .8rem;
        z-index: 5;
        width: 2.25rem;
        height: 2.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        color: #64748b;
        background: transparent;
        transform: translateY(-50%);
        transition: background-color .15s ease, color .15s ease;
    }

    .tm-password-toggle:hover,
    .tm-password-toggle:focus-visible {
        color: #0f172a;
        background: #e2e8f0;
        outline: none;
    }

    .tm-change-password-strength {
        height: .45rem;
        border-radius: 999px;
        background: #e2e8f0;
        overflow: hidden;
    }

    .tm-change-password-strength-bar {
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: #dc3545;
        transition: width .2s ease, background-color .2s ease;
    }

    .tm-change-password-submit {
        min-height: 48px;
        border-radius: .85rem;
        font-weight: 900;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .45rem;
    }

    .field-validation-error,
    .validation-summary-errors {
        font-family: inherit;
        direction: rtl;
        text-align: right;
        line-height: 1.8;
        letter-spacing: 0;
    }

    .field-validation-error {
        display: block;
        margin-top: .35rem;
        font-size: .82rem;
        font-weight: 700;
    }

    @media (max-width: 991.98px) {
        .tm-change-password-hero,
        .tm-change-password-form-panel {
            padding: 1.35rem;
        }
    }

/* Source: ZarMall.Web/Areas/Accounting/Views/Account/Login.cshtml */
    /* رنگ پذیرش قوانین باید بر رنگ عمومی چک‌باکس اولویت داشته باشد. */
    .tm-app .tm-account-login .form-check-input.is-valid {
        border-color: var(--bs-form-valid-border-color);
    }

    .tm-app .tm-account-login .form-check-input.is-valid:checked {
        background-color: var(--bs-form-valid-color);
    }

    .tm-app .tm-account-login .form-check-input.is-invalid {
        border-color: var(--bs-form-invalid-border-color);
    }

    .tm-account-login .tm-login-icon-field > .form-control {
        padding-inline-start: 3rem;
    }

    .tm-account-login .tm-login-icon-field > label {
        /* 3.4rem اثر Scale را جبران می‌کند تا Label دقیقاً با caret پس از آیکن هم‌محور بماند. */
        padding-inline-start: 3.4rem;
    }

    .tm-account-login .tm-login-field-icon {
        align-items: center;
        color: #64748b;
        display: flex;
        height: calc(3.5rem + 2px);
        inset-inline-start: 1rem;
        pointer-events: none;
        position: absolute;
        top: 0;
        z-index: 4;
    }

    .tm-account-login .tm-login-field-icon > i {
        display: block;
        font-size: 1.1rem;
        line-height: 1;
        text-align: center;
        width: 1.25rem;
    }

/* Source: ZarMall.Web/Areas/Accounting/Views/Account/ResetPassword.cshtml */
    .tm-reset-password-field {
        position: relative;
        margin-bottom: 1rem;
    }

    .tm-reset-password-field .form-control {
        min-height: 58px;
        padding-left: 3.35rem;
    }

    .tm-reset-password-toggle {
        position: absolute;
        top: 1.8rem;
        left: .8rem;
        z-index: 5;
        width: 2.25rem;
        height: 2.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        color: #64748b;
        background: transparent;
        transform: translateY(-50%);
        transition: background-color .15s ease, color .15s ease;
    }

    .tm-reset-password-toggle:hover,
    .tm-reset-password-toggle:focus-visible {
        color: #0f172a;
        background: #e2e8f0;
        outline: none;
    }

    .tm-reset-password-policy {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #f8fafc;
        color: #475569;
        font-size: .8rem;
        line-height: 1.9;
        padding: .85rem 1rem;
    }

    .tm-reset-password-policy ul {
        margin: .35rem 0 0;
        padding-right: 1rem;
    }

    .tm-reset-password-policy li {
        margin-bottom: .15rem;
    }

    .tm-reset-password-strength {
        height: .45rem;
        border-radius: 999px;
        background: #e2e8f0;
        overflow: hidden;
    }

    .tm-reset-password-strength-bar {
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: #dc3545;
        transition: width .2s ease, background-color .2s ease;
    }

    #resetPasswordForm .field-validation-error,
    #resetPasswordForm .validation-summary-errors {
        font-family: inherit;
        direction: rtl;
        text-align: right;
        letter-spacing: 0;
    }

    #resetPasswordForm .field-validation-error {
        display: block;
        margin-top: .35rem;
        font-size: .82rem;
        font-weight: 700;
    }

    [data-bs-theme="dark"] .tm-reset-password-policy {
        border-color: rgba(148, 163, 184, .35);
        background: rgba(30, 41, 59, .72);
        color: #cbd5e1;
    }

/* Source: ZarMall.Web/Areas/Accounting/Views/AdminPermission/Index.cshtml */
    .admin-permission-page {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .admin-permission-page .card-header > *,
    .admin-permission-page #user-access-report .btn {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
    }

    .admin-permission-page #user-access-report .btn {
        display: inline-block;
        overflow-wrap: anywhere;
    }

    .admin-permission-page .tm-permission-stat {
        min-height: 70px;
        border: 1px solid rgba(148, 163, 184, .35);
        border-radius: 8px;
        padding: .75rem;
        background: var(--bs-body-bg);
    }

    .admin-permission-page .tm-permission-stat span {
        display: block;
        font-weight: 800;
        color: var(--bs-primary);
    }

    .admin-permission-page .tm-permission-stat small {
        color: var(--bs-secondary-color);
    }

    .admin-permission-page .tm-permission-tree,
    .admin-permission-page .tm-permission-children {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .admin-permission-page .tm-permission-tree {
        font-size: .875rem;
    }

    .admin-permission-page .tm-permission-children {
        position: relative;
        margin-inline-start: 1.15rem;
        padding-inline-start: 1rem;
        border-inline-start: 1px solid rgba(148, 163, 184, .55);
    }

    .admin-permission-page .tm-permission-node {
        position: relative;
        margin-block: .12rem;
    }

    .admin-permission-page .tm-permission-children > .tm-permission-node::before {
        content: "";
        position: absolute;
        inset-inline-start: -1rem;
        top: 1rem;
        width: .85rem;
        border-top: 1px solid rgba(148, 163, 184, .55);
    }

    .admin-permission-page .tm-permission-row {
        display: flex;
        align-items: center;
        gap: .4rem;
        min-height: 30px;
        padding: .18rem .25rem;
        border-radius: 5px;
        background: transparent;
    }

    .admin-permission-page .tm-permission-row:hover {
        background: rgba(15, 23, 42, .035);
    }

    .admin-permission-page .tm-permission-row.is-page {
        background: rgba(var(--bs-primary-rgb), .055);
    }

    .admin-permission-page .tm-permission-toggle {
        width: 22px;
        height: 22px;
        min-width: 22px;
        padding: 0;
        border: 1px solid rgba(148, 163, 184, .45);
        border-radius: 4px;
        background: var(--bs-body-bg);
        color: var(--bs-secondary-color);
        font-size: .72rem;
        line-height: 1;
    }

    .admin-permission-page .tm-permission-toggle:hover,
    .admin-permission-page .tm-permission-toggle:focus {
        border-color: rgba(var(--bs-primary-rgb), .45);
        color: var(--bs-primary);
        background: rgba(var(--bs-primary-rgb), .06);
    }

    .admin-permission-page .tm-tree-toolbar {
        align-items: center;
    }

    .admin-permission-page .tm-icon-action {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .admin-permission-page .tm-permission-check {
        width: .95rem;
        height: .95rem;
        margin-top: 0;
    }

    .admin-permission-page .tm-permission-label {
        min-width: 0;
        flex: 1 1 auto;
    }

    .admin-permission-page .tm-permission-title-line {
        display: flex;
        align-items: center;
        gap: .35rem;
        flex-wrap: wrap;
        line-height: 1.65;
    }

    .admin-permission-page .tm-permission-title {
        font-weight: 700;
    }

    .admin-permission-page .tm-permission-route {
        color: var(--bs-secondary-color);
        font-size: .75rem;
        font-weight: 400;
        overflow-wrap: anywhere;
    }

    .admin-permission-page .tm-permission-label small {
        font-size: .75rem;
        line-height: 1.5;
    }

    .admin-permission-page .tm-permission-label .badge {
        font-size: .68rem;
        font-weight: 500;
        padding: .18rem .35rem;
    }

    .admin-permission-page .tm-permission-node.is-collapsed > .tm-permission-children {
        display: none;
    }

    .admin-permission-page .tm-permission-node.is-filter-hidden {
        display: none;
    }

    .admin-permission-page .tm-user-picker {
        position: relative;
    }

    .admin-permission-page .tm-user-suggestion-list {
        display: grid;
        gap: .25rem;
        max-height: 300px;
        overflow-y: auto;
        margin-top: .25rem;
        padding: .35rem;
        border: 1px solid rgba(148, 163, 184, .45);
        border-radius: 8px;
        background: #fff;
    }

    .admin-permission-page .tm-user-suggestion-list:empty {
        display: none;
    }

    .admin-permission-page .tm-user-suggestion {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        width: 100%;
        border: 0;
        border-radius: 6px;
        padding: .55rem .65rem;
        background: transparent;
        text-align: start;
    }

    .admin-permission-page .tm-user-suggestion:hover,
    .admin-permission-page .tm-user-suggestion:focus {
        background: rgba(var(--bs-primary-rgb), .08);
    }

    .admin-permission-page .tm-user-suggestion-main {
        display: grid;
        gap: .12rem;
        min-width: 0;
    }

    .admin-permission-page .tm-user-suggestion-main strong {
        direction: ltr;
        text-align: start;
    }

    .admin-permission-page .tm-user-suggestion-main small {
        color: var(--bs-secondary-color);
        overflow-wrap: anywhere;
    }

    .admin-permission-page .tm-selected-user-list {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
    }

    .admin-permission-page .tm-selected-user-chip {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        max-width: 100%;
        border: 1px solid rgba(13, 110, 253, .28);
        border-radius: 999px;
        padding: .35rem .55rem;
        background: rgba(13, 110, 253, .08);
    }

    .admin-permission-page .tm-selected-user-chip span {
        direction: ltr;
        overflow-wrap: anywhere;
    }

    .admin-permission-page .tm-selected-user-chip button {
        width: 24px;
        height: 24px;
        border: 0;
        border-radius: 50%;
        background: rgba(220, 53, 69, .12);
        color: var(--bs-danger);
        line-height: 1;
    }

/* Source: ZarMall.Web/Areas/Direct/Views/Direct/Index.cshtml */
    .tm-direct-page {
        --tm-direct-chat-bg: color-mix(in srgb, var(--tm-surface-bg) 86%, #e9e4da);
        --tm-direct-pattern: color-mix(in srgb, var(--tm-muted-color) 10%, transparent);
    }

    .tm-direct-shell {
        height: var(--tm-direct-available-height, calc(100dvh - 12rem));
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(16rem, 31%) minmax(0, 1fr);
        overflow: hidden;
        border: 1px solid var(--tm-border-color);
        border-radius: 1.5rem;
        background: var(--tm-surface-bg);
        box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
    }

    .tm-direct-threads {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-inline-end: 1px solid var(--tm-border-color);
        background: var(--tm-surface-bg);
    }

    .tm-direct-side-head,
    .tm-direct-chat-head {
        display: flex;
        align-items: center;
        gap: .75rem;
        padding: 1.1rem;
        flex: 0 0 auto;
    }

    .tm-direct-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: .75rem;
        margin-bottom: 1rem;
    }

    .tm-direct-toolbar > div {
        min-width: 0;
        flex: 1 1 9rem;
    }

    .tm-direct-page .tm-direct-new-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .35rem;
        min-height: 44px;
        padding-inline: .75rem;
        border-radius: .85rem;
        font-size: .78rem;
        white-space: normal;
    }

    .tm-direct-chat-head {
        border-bottom: 1px solid color-mix(in srgb, var(--tm-border-color) 65%, transparent);
        background: var(--tm-surface-bg);
    }

    .tm-direct-head-main {
        flex: 1 1 auto;
    }

    .tm-app .tm-direct-page .tm-direct-back {
        display: none;
    }

    .tm-direct-toolbar h1,
    .tm-direct-side-head h2,
    .tm-direct-chat-head h2,
    .tm-direct-chat-empty h2 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 800;
        letter-spacing: 0;
    }

    .tm-direct-toolbar p,
    .tm-direct-side-head p,
    .tm-direct-chat-head p,
    .tm-direct-chat-empty p {
        margin: .2rem 0 0;
        color: var(--tm-muted-color);
        font-size: .8rem;
        line-height: 1.9;
        overflow-wrap: anywhere;
    }

    .tm-direct-toolbar h1 {
        font-size: 1.45rem;
    }

    .tm-direct-start {
        position: relative;
        padding: 0 1rem 1rem;
        flex: 0 0 auto;
    }

    .tm-direct-search {
        position: relative;
    }

    .tm-direct-search > .tm-direct-suggest {
        inset-inline: 0;
        inset-block-start: calc(100% + .35rem);
        width: 100%;
        min-width: 0;
        max-height: min(16rem, 40dvh);
        margin: 0;
        border-radius: .9rem;
    }

    .tm-direct-suggest button {
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
        min-height: 44px;
        color: var(--tm-text-color);
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .tm-direct-suggest button small {
        color: var(--tm-muted-color);
    }

    .tm-direct-suggest button[aria-selected="true"] {
        background: color-mix(in srgb, var(--bs-primary) 12%, var(--bs-body-bg));
        outline: 2px solid var(--bs-primary);
        outline-offset: -2px;
    }

    .tm-direct-threads,
    .tm-direct-chat-head > div,
    .tm-direct-bubble {
        min-width: 0;
    }

    .tm-social-deleted-message {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        min-width: 18rem;
        max-width: 45rem;
    }

    .tm-direct-chat-head h2,
    .tm-direct-thread-name {
        direction: ltr;
        unicode-bidi: isolate;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .tm-direct-meta {
        flex-wrap: wrap;
    }

    .tm-direct-thread-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        padding: .25rem .65rem .75rem;
        scrollbar-width: thin;
    }

    .tm-direct-thread-row {
        display: flex;
        align-items: center;
        min-width: 0;
        -webkit-touch-callout: none;
    }

    .tm-direct-thread-row > .tm-direct-thread {
        flex: 1 1 auto;
        min-width: 0;
        padding-inline-end: .25rem;
    }

    .tm-direct-thread-menu {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        color: var(--tm-muted-color);
        background: transparent;
    }

    .tm-direct-thread-menu:hover {
        color: var(--tm-text-color);
        background: var(--tm-surface-alt-bg);
    }

    .tm-direct-thread-menu:focus-visible {
        outline: 2px solid var(--bs-primary);
        outline-offset: -2px;
    }

    .tm-direct-context-menu {
        position: fixed;
        inset: auto;
        left: var(--tm-direct-menu-x, 8px);
        top: var(--tm-direct-menu-y, 8px);
        z-index: 1090;
        width: 13rem;
        min-width: 0;
        max-width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
        padding: .35rem;
        border: 1px solid var(--tm-border-color);
        border-radius: .85rem;
        background: var(--tm-surface-bg);
        box-shadow: var(--tm-shadow-sm);
    }

    .tm-direct-context-menu[hidden],
    .tm-direct-context-menu [hidden] {
        display: none !important;
    }

    .tm-direct-context-menu .dropdown-item {
        display: flex;
        align-items: center;
        gap: .65rem;
        min-height: 44px;
        padding: .65rem;
        border-radius: .55rem;
        color: var(--tm-text-color);
        white-space: normal;
        text-align: start;
    }

    .tm-direct-context-menu .dropdown-item:focus-visible {
        outline: 2px solid var(--bs-primary);
        outline-offset: -2px;
    }

    .tm-direct-message {
        -webkit-touch-callout: none;
    }

    .tm-direct-thread {
        height: auto;
        position: relative;
        display: flex;
        align-items: center;
        gap: .75rem;
        margin-block: .25rem;
        padding: .8rem .7rem;
        border-radius: 1rem;
        color: var(--tm-text-color);
        text-decoration: none;
        transition: background-color .18s ease;
    }

    .tm-direct-thread:hover {
        color: var(--tm-text-color);
        background: var(--tm-surface-alt-bg);
    }

    .tm-direct-thread.active {
        background: color-mix(in srgb, var(--bs-primary) 9%, var(--tm-surface-bg));
    }

    .tm-direct-thread.active::before {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        inset-block: 1.1rem;
        width: 3px;
        border-radius: 999px;
        background: var(--bs-primary);
    }

    .tm-direct-thread:focus-visible,
    .tm-direct-page :is(.tm-direct-like, .tm-direct-reply-btn, .tm-direct-info-btn):focus-visible {
        outline: 2px solid var(--bs-primary);
        outline-offset: 2px;
    }

    .tm-direct-thread-main {
        min-width: 0;
        flex: 1 1 auto;
    }

    .tm-direct-thread-heading,
    .tm-direct-thread-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .4rem .65rem;
        min-width: 0;
    }

    .tm-direct-thread-heading {
        flex-wrap: wrap;
        margin-bottom: .12rem;
    }

    .tm-direct-thread-name {
        display: block;
        min-width: 0;
        font-weight: 800;
        font-size: .91rem;
    }

    .tm-direct-thread-time {
        flex: 0 0 auto;
        direction: ltr;
        unicode-bidi: isolate;
        color: var(--tm-muted-color);
        font-size: .72rem;
        font-weight: 400;
    }

    .tm-direct-thread-last {
        display: block;
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--tm-muted-color);
        font-size: .79rem;
        line-height: 1.85;
    }

    .tm-direct-thread-bottom .badge {
        flex: 0 0 auto;
        border-radius: 999px;
        min-width: 1.35rem;
        line-height: 1.35;
    }

    .tm-direct-thread-status {
        display: block;
        margin-bottom: .1rem;
        color: var(--tm-muted-color);
        font-size: .75rem;
        font-weight: 400;
        overflow-wrap: anywhere;
    }

    .tm-direct-thread-status.is-online {
        color: var(--bs-success-text-emphasis, #146c43);
    }

    .tm-direct-avatar {
        position: relative;
        width: 2.75rem;
        min-width: 2.75rem;
        height: 2.75rem;
        flex-shrink: 0;
        /* رنگ و مرکز حرف فقط از آواتار مشترک پروژه می‌آید. */
    }

    .tm-direct-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .tm-direct-avatar.is-online::after {
        content: "";
        position: absolute;
        inset-inline-end: .08rem;
        bottom: .08rem;
        width: .58rem;
        height: .58rem;
        border: 2px solid var(--tm-surface-bg);
        border-radius: 50%;
        background: #22c55e;
    }

    .tm-direct-chat {
        min-width: 0;
        min-height: 0;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        /* بافت سبک CSS به فایل تصویری و درخواست شبکه وابسته نیست. */
        background-color: var(--tm-direct-chat-bg);
        background-image: radial-gradient(var(--tm-direct-pattern) .8px, transparent .8px);
        background-size: 18px 18px;
    }

    .tm-direct-chat-empty,
    .tm-direct-draft-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .65rem;
        padding: 1.5rem;
        color: var(--tm-muted-color);
        text-align: center;
        overflow-wrap: anywhere;
    }

    .tm-direct-chat-empty {
        grid-row: 1 / -1;
    }

    .tm-direct-draft-empty {
        flex: 1 0 auto;
        min-height: 10rem;
        margin: auto;
        max-width: 25rem;
    }

    .tm-direct-draft-empty h2,
    .tm-direct-draft-empty h3 {
        margin: 0;
        color: var(--tm-text-color);
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .tm-direct-draft-empty p {
        margin: 0;
        font-size: .85rem;
        line-height: 2;
    }

    .tm-direct-empty-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 4.5rem;
        height: 4.5rem;
        flex: 0 0 auto;
        margin-bottom: .4rem;
        border: 1px solid color-mix(in srgb, var(--bs-primary) 13%, var(--tm-surface-bg));
        border-radius: 1.6rem;
        color: var(--bs-primary);
        background: color-mix(in srgb, var(--bs-primary) 7%, var(--tm-surface-bg));
        box-shadow: 0 8px 24px rgba(13, 110, 253, .08);
    }

    .tm-direct-empty-icon i {
        font-size: 2rem;
        color: var(--bs-primary);
    }

    .tm-direct-messages {
        overflow-anchor: none;
        display: flex;
        flex-direction: column;
        gap: .9rem;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        padding: 1.4rem clamp(.8rem, 2vw, 1.6rem);
        scrollbar-width: thin;
        scroll-behavior: auto;
    }

    .tm-direct-messages:focus-visible {
        outline: 2px solid var(--bs-primary);
        outline-offset: -3px;
    }

    .tm-direct-message {
        flex: 0 0 auto;
        height: auto;
        display: flex;
        align-items: flex-end;
        gap: .5rem;
        max-width: min(85%, 34rem);
        min-width: 0;
        align-self: flex-start;
    }

    .tm-direct-message.is-mine {
        align-self: flex-end;
    }

    .tm-direct-bubble {
        position: relative;
        padding: .75rem .95rem .45rem;
        border: 1px solid color-mix(in srgb, var(--tm-border-color) 50%, transparent);
        border-radius: 1.1rem 1.1rem .3rem 1.1rem;
        color: var(--tm-text-color);
        background: var(--tm-surface-bg);
        box-shadow: 0 2px 5px rgba(15, 23, 42, .035);
    }

    .tm-direct-message.is-mine .tm-direct-bubble {
        color: #fff;
        border-color: transparent;
        background: linear-gradient(135deg, #0d6efd, #1759c4);
        border-bottom-left-radius: .3rem;
        border-bottom-right-radius: 1.1rem;
    }

    .tm-direct-reply-preview {
        margin-bottom: .45rem;
        padding: .4rem .55rem;
        border-inline-start: 3px solid currentColor;
        border-radius: .6rem;
        background: color-mix(in srgb, var(--bs-primary) 7%, transparent);
        font-size: .82rem;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .tm-direct-message.is-mine .tm-direct-reply-preview {
        background: rgba(255, 255, 255, .14);
    }

    .tm-direct-text {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        line-height: 1.85;
    }

    .tm-direct-meta {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: .2rem .4rem;
        margin-top: .4rem;
        font-size: .72rem;
    }

    .tm-direct-like,
    .tm-direct-reply-btn,
    .tm-direct-info-btn {
        border: 0;
        min-width: 1.75rem;
        min-height: 1.75rem;
        padding: .15rem;
        border-radius: .45rem;
        color: inherit;
        background: transparent;
        font: inherit;
    }

    .tm-direct-like.is-active {
        color: #d63360;
    }

    .tm-direct-message.is-mine .tm-direct-like.is-active {
        color: #ffc1d0;
    }

    .tm-direct-page :is(.tm-direct-like, .tm-direct-reply-btn, .tm-direct-info-btn):hover {
        background: rgba(127, 127, 127, .13);
    }

    .tm-direct-ticks {
        display: inline-flex;
        align-items: center;
        color: currentColor;
        font-size: .92rem;
    }

    .tm-direct-ticks.is-read {
        color: #b3e8ff;
        opacity: 1;
    }

    .tm-direct-info-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        opacity: .9;
    }

    .tm-direct-info-btn:hover,
    .tm-direct-info-btn:focus {
        opacity: 1;
    }

    .tm-direct-info-popover {
        /* جزئیات در جریان پیام باز می‌شود تا داخل قاب قابل‌اسکرول بریده نشود. */
        position: relative;
        width: 100%;
        margin-top: .5rem;
        border: 1px solid var(--tm-border-color);
        border-radius: .85rem;
        padding: .65rem .75rem;
        color: var(--tm-text-color);
        background: var(--tm-surface-bg);
        box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
        font-size: .78rem;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    .tm-direct-composer {
        min-width: 0;
        padding: .85rem 1rem 1rem;
        border-top: 1px solid color-mix(in srgb, var(--tm-border-color) 65%, transparent);
        background: var(--tm-surface-bg);
    }

    .tm-direct-composer-row {
        display: flex;
        align-items: center;
        gap: .6rem;
        min-width: 0;
    }

    .tm-direct-composer-row > .form-floating {
        min-width: 0;
        flex: 1 1 auto;
    }

    .tm-app .tm-direct-composer .form-floating > textarea.form-control {
        resize: none;
        height: var(--tm-direct-composer-height, calc(3.5rem + 2px));
        min-height: calc(3.5rem + 2px);
        max-height: min(14rem, 35dvh);
        overflow-y: auto;
    }

    .tm-app .tm-direct-composer .form-floating > textarea.form-control.is-measuring { overflow-y: hidden; }

    .tm-direct-page .tm-direct-composer-row > .tm-emoji-button,
    .tm-direct-page .tm-direct-send-button {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .tm-direct-page .tm-direct-send-button {
        box-shadow: 0 4px 12px rgba(13, 110, 253, .2);
    }

    .tm-direct-send-button i {
        font-size: 1.1rem;
    }

    .tm-direct-reply-target {
        margin-bottom: .7rem;
        padding: .6rem .75rem;
        border-inline-start: 3px solid var(--bs-primary);
        border-radius: .75rem;
        background: color-mix(in srgb, var(--bs-primary) 7%, var(--tm-surface-bg));
        font-size: .84rem;
        max-height: 8rem;
        overflow-y: auto;
        overflow-wrap: anywhere;
    }

    .tm-direct-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .6rem;
        margin: .75rem .25rem;
        padding: 1.4rem .9rem;
        border: 1px dashed var(--tm-border-color);
        border-radius: 1rem;
        background: var(--tm-surface-alt-bg);
        color: var(--tm-muted-color);
        text-align: center;
        line-height: 2;
        font-size: .85rem;
    }

    .tm-direct-empty p {
        margin: 0;
    }

    .tm-user-suggest {
        position: absolute;
        z-index: 1080;
        min-width: 16rem;
        max-height: 16rem;
        overflow-y: auto;
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: 8px;
        background: var(--bs-body-bg);
        box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
    }

    .tm-social-user-suggest {
        inset-inline: 0;
        inset-block-start: 100%;
        width: 100%;
        max-height: 16rem;
        overflow-y: auto;
    }

    .tm-user-suggest button {
        width: 100%;
        display: flex;
        justify-content: space-between;
        border: 0;
        padding: .55rem .7rem;
        background: transparent;
        text-align: start;
    }

    .tm-user-suggest button:hover {
        background: color-mix(in srgb, var(--bs-primary) 9%, var(--bs-body-bg));
    }

    @media (max-width: 991.98px) {
        .tm-direct-shell {
            grid-template-columns: 1fr;
            /* فضای منوی بالایی و ناوبری ثابت پایین برای دسترسی مستقیم به ارسال حفظ می‌شود. */
            height: var(--tm-direct-available-height, calc(100dvh - 16rem));
            border-radius: 1.15rem;
        }

        .tm-direct-threads {
            border-inline-end: 0;
        }

        /* فهرست و گفتگو در موبایل دو نمای مستقل با همان داده و عملیات هستند. */
        .tm-direct-page:not(.is-chat-open) .tm-direct-chat,
        .tm-direct-page.is-chat-open .tm-direct-threads {
            display: none;
        }

        .tm-app .tm-direct-page .tm-direct-back {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 44px;
            width: 44px;
            min-width: 44px;
            height: 44px;
            min-height: 44px;
            padding: 0;
            border-radius: 50%;
            color: var(--tm-text-color);
            background: var(--tm-surface-alt-bg);
        }

        .tm-direct-message {
            max-width: 92%;
        }

        .tm-direct-chat-head {
            gap: .6rem;
            padding: .75rem;
        }

        .tm-direct-messages {
            padding-block: 1rem;
        }
    }

    @media (max-width: 575.98px) {
        .tm-direct-composer {
            padding: .65rem;
        }

        .tm-direct-composer-row {
            gap: .35rem;
        }

        .tm-direct-messages {
            padding-inline: .6rem;
        }

        .tm-direct-message {
            gap: .35rem;
            max-width: 100%;
        }

        .tm-direct-message > .tm-direct-avatar {
            width: 1.9rem;
            min-width: 1.9rem;
            height: 1.9rem;
        }

        .tm-direct-bubble {
            padding-inline: .7rem;
        }

        .tm-direct-meta {
            gap: .15rem .3rem;
        }
    }

    @media (pointer: coarse) {
        .tm-direct-page :is(.tm-direct-like, .tm-direct-reply-btn, .tm-direct-info-btn, .tm-direct-reply-target .btn) {
            min-width: 44px;
            min-height: 44px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .tm-direct-messages {
            scroll-behavior: auto;
        }

        .tm-direct-thread {
            transition: none;
        }
    }

/* نمایش مشترک قوانین سایت، خرید و ایجاد فروشگاه */
@font-face {
    font-family: "Vazir FD";
    src: url("../Static/Fonts/vazir/Farsi-Digits/Vazir-FD.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

.tm-terms-page { max-width: 52rem; }

.tm-terms-document, .tm-terms-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--tm-border-color);
    border-radius: var(--tm-radius-card);
    background: var(--bs-body-bg);
}

.tm-terms-modal .modal-content { max-height: min(100%, 42rem); }
.tm-terms-modal .modal-dialog {
    width: calc(100% - 1.5rem);
    max-width: 48rem;
    height: calc(100dvh - 1.5rem);
    min-height: 0;
    margin: .75rem auto;
}

.tm-terms-heading {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem clamp(1rem, 3vw, 1.5rem);
    overflow-wrap: anywhere;
    background: var(--tm-nav-hover-bg);
    border-bottom: 1px solid var(--tm-border-color);
}

.tm-terms-heading :is(h1, h2) { font-weight: 750; line-height: 1.5; }
.tm-terms-heading > div { min-width: 0; }

.tm-terms-icon {
    display: grid;
    place-items: center;
    flex: 0 0 2.75rem;
    height: 2.75rem;
    border-radius: .75rem;
    background: var(--bs-primary);
    color: white;
    font-size: 1.25rem;
}

.tm-terms-modal .btn-close {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
}

.tm-terms-text, .tm-site-prose {
    font-family: "Vazir FD", var(--tm-font-family);
    font-weight: 400;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 2;
    color: var(--bs-body-color);
}

.tm-terms-scroll { max-height: min(36rem, 52dvh); overflow-y: auto; }
.tm-terms-modal .modal-body { padding: 1rem clamp(1rem, 3vw, 1.5rem); }
.tm-terms-modal .modal-body:focus-visible, .tm-terms-text:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

.tm-terms-modal .modal-footer {
    gap: .5rem;
    padding: .75rem 1rem;
    background: var(--bs-body-bg);
}
.tm-terms-modal .modal-footer > * { margin: 0; }
.tm-terms-modal .modal-footer .btn { min-height: 2.75rem; }

.form-check.tm-terms-consent {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    min-height: 2.75rem;
    margin-bottom: 0;
    padding: .5rem .75rem;
    border: 1px solid var(--tm-border-color);
    border-radius: .65rem;
    background: var(--bs-tertiary-bg);
}
.tm-terms-consent .form-check-input { flex: 0 0 auto; float: none; margin: 0; }
.tm-terms-consent .form-check-label { flex: 1; cursor: pointer; }
.tm-terms-consent:has(:checked) { border-color: var(--bs-success); }
details.tm-terms-document > summary::-webkit-details-marker { display: none; }
details.tm-terms-document[open] > summary .bi-chevron-down { transform: rotate(180deg); }

@media (max-width: 575.98px) {
    .tm-terms-modal .modal-footer .btn { flex: 1 1 auto; }
}
@media (max-height: 480px) {
    .tm-terms-modal .tm-terms-heading, .tm-terms-modal .modal-footer { padding-block: .375rem; }
}

/* Source: ZarMall.Web/Views/Shared/Partials/Public/_ProductComments.cshtml */
    .tm-comment-mention-suggest {
        position: absolute;
        z-index: 1085;
        min-width: min(18rem, calc(100vw - 2rem));
        max-height: 15rem;
        overflow-y: auto;
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: 8px;
        background: var(--bs-body-bg);
        box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
    }

    .tm-comment-mention-suggest button {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        border: 0;
        padding: .55rem .7rem;
        color: var(--bs-body-color);
        background: transparent;
        text-align: start;
    }

    .tm-comment-mention-suggest button:hover {
        background: color-mix(in srgb, var(--bs-primary) 9%, var(--bs-body-bg));
    }

    .tm-comment-mention-suggest strong {
        direction: ltr;
    }

    .tm-product-comment-author,
    .tm-product-comment-mention {
        color: var(--bs-primary);
        text-decoration: none;
    }

    .tm-product-comment-author:hover,
    .tm-product-comment-author:focus,
    .tm-product-comment-mention:hover,
    .tm-product-comment-mention:focus {
        text-decoration: underline;
    }

/* Source: ZarMall.Web/Views/Shared/Partials/Public/_ProductPriceHistoryChart.cshtml */
.tm-panel-ui .tm-price-monitoring-detail {
    min-width: 0;
    color: var(--bs-body-color);
}

.tm-panel-ui .tm-price-monitoring-detail .tm-product-gallery-inner {
    padding: .75rem;
}

.tm-panel-ui .tm-price-monitoring-detail .tm-product-gallery-social-shell {
    min-width: 0;
}

.tm-panel-ui .tm-price-event-comparison > tbody > .tm-price-event-changed > :is(th, td) {
    background-color: color-mix(in srgb, var(--bs-info) 12%, var(--tm-surface-bg));
    --bs-table-bg-state: transparent;
}

.tm-panel-ui .tm-price-event-comparison > tbody > .tm-price-event-changed > th {
    border-inline-start: 3px solid var(--bs-info);
}

.tm-panel-ui .tm-price-event-comparison bdi {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
}

@media (min-width: 768px) {
    .tm-panel-ui .tm-price-event-comparison > tbody > tr > :is(th, td) {
        min-width: 9rem;
    }

    .tm-panel-ui .tm-price-event-comparison > tbody > tr > td:last-child {
        min-width: 15rem;
    }
}

.tm-price-history-modal {
    /* همان لایه مصوب مودال‌های مرکزی، بالاتر از هدر و منوی اصلی. */
    --bs-modal-zindex: 5080;
    z-index: var(--bs-modal-zindex);
    --tm-chart-blue: #2563eb;
    --tm-chart-green: #12825e;
    --tm-chart-red: #d42d4c;
    --tm-chart-text: var(--tm-muted-color);
    --tm-chart-grid: color-mix(in srgb, var(--tm-border-color) 65%, transparent);
    --tm-chart-tint: color-mix(in srgb, var(--tm-chart-blue) 7%, var(--tm-surface-bg));
    --tm-chart-focus: color-mix(in srgb, var(--tm-chart-blue) 10%, transparent);
    color: var(--tm-text-color);
}

body:has(.tm-price-history-modal.show) > .modal-backdrop {
    --bs-backdrop-zindex: 5070;
    z-index: var(--bs-backdrop-zindex);
}

[data-bs-theme="dark"] .tm-price-history-modal,
.tm-price-history-modal[data-bs-theme="dark"] {
    --tm-chart-blue: #79aaff;
    --tm-chart-green: #4bd6a2;
    --tm-chart-red: #ff8299;
}

.tm-price-history-modal .modal-dialog {
    width: calc(100% - 3rem);
    max-width: 980px;
    margin: 1.5rem auto;
    height: calc(100% - 3rem);
    min-height: calc(100% - 3rem);
}

.tm-price-history-modal .modal-content {
    border: 1px solid var(--tm-border-color);
    border-radius: 24px;
    background: var(--tm-surface-bg);
    color: var(--tm-text-color);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
    overflow: hidden;
}

.tm-price-history-header {
    direction: rtl;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--tm-border-color);
    background: linear-gradient(120deg, var(--tm-surface-bg) 45%, var(--tm-chart-tint));
}

.tm-price-history-heading-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    height: 48px;
    border: 1px solid color-mix(in srgb, var(--tm-chart-blue) 22%, transparent);
    border-radius: 15px;
    background: var(--tm-chart-tint);
    color: var(--tm-chart-blue);
    font-size: 1.35rem;
}

.tm-price-history-heading {
    flex: 1;
    text-align: right;
    min-width: 0;
}

.tm-price-history-heading .modal-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--tm-text-color);
    margin: 0 0 .3rem;
    line-height: 1.7;
}

.tm-price-history-product-title,
.tm-price-history-selected-combination {
    color: var(--tm-chart-text);
    font-size: .8rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.tm-price-history-product-title {
    color: var(--tm-text-color);
}

.tm-price-history-selected-combination:empty {
    display: none;
}

.tm-price-history-modal .tm-price-history-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--tm-border-color);
    border-radius: 50%;
    background: var(--tm-surface-bg);
    color: var(--tm-muted-color);
}

.tm-price-history-modal .tm-price-history-close:hover {
    color: var(--tm-text-color);
    background: var(--tm-surface-alt-bg);
}

.tm-price-history-body {
    direction: rtl;
    padding: 1.25rem 1.5rem 1.5rem;
    overscroll-behavior: contain;
}

.tm-price-history-selector-panel {
    display: grid;
    gap: .8rem;
    margin-bottom: 1.25rem;
}

.tm-price-history-selector-row {
    display: grid;
    grid-template-columns: minmax(100px, max-content) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.tm-price-history-selector-label {
    color: var(--tm-muted-color);
    font-size: .8rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.tm-price-history-selector-options {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    gap: .5rem;
}

.tm-price-history-option {
    min-height: 44px;
    max-width: 100%;
    border: 1px solid var(--tm-border-color);
    background: var(--tm-surface-bg);
    color: var(--tm-text-color);
    border-radius: 12px;
    padding: .55rem .85rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: start;
    overflow-wrap: break-word;
    transition: border-color .16s ease, background-color .16s ease;
}

.tm-price-history-option > span:last-child {
    min-width: 0;
}

.tm-price-history-option:hover {
    border-color: var(--tm-chart-blue);
    background: var(--tm-surface-alt-bg);
}

.tm-price-history-option.active {
    border-color: var(--tm-chart-blue);
    background: var(--tm-chart-tint);
    color: var(--tm-chart-blue);
    box-shadow: inset 0 0 0 1px var(--tm-chart-blue);
}

.tm-price-history-option:focus-visible,
.tm-price-history-modal .tm-price-history-close:focus-visible {
    outline: 3px solid var(--tm-chart-blue);
    outline-offset: 3px;
    box-shadow: none;
}

.tm-price-history-color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, .25);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7);
    flex: 0 0 auto;
}

.tm-price-history-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    margin: 0 0 1.25rem;
}

.tm-price-history-metric {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--tm-border-color);
    border-radius: 16px;
    background: var(--tm-surface-alt-bg);
}

.tm-price-history-metric:first-child {
    background: var(--tm-chart-tint);
    border-color: color-mix(in srgb, var(--tm-chart-blue) 30%, var(--tm-border-color));
}

.tm-price-history-metric dt {
    color: var(--tm-muted-color);
    font-size: .75rem;
    font-weight: 500;
    margin-bottom: .6rem;
}

.tm-price-history-metric dd {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .3rem;
    color: var(--tm-text-color);
    font-size: 1.03rem;
    font-weight: 800;
    margin: 0;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.tm-price-history-metric:first-child dd {
    color: var(--tm-chart-blue);
}

.tm-price-history-metric dd span {
    color: var(--tm-muted-color);
    font-size: .7rem;
    font-weight: 500;
}

.tm-price-history-chart-card {
    border: 1px solid var(--tm-border-color);
    border-radius: 18px;
    background: var(--tm-surface-bg);
    overflow: hidden;
}

.tm-price-history-chart-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .25rem .75rem;
    padding: 1.1rem 1.25rem .6rem;
}

.tm-price-history-chart-heading h3 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--tm-text-color);
    margin: 0;
}

.tm-price-history-chart-heading > span {
    font-size: .7rem;
    color: var(--tm-muted-color);
}

.tm-price-history-plot-shell {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--tm-surface-bg);
}

.tm-price-history-svg {
    display: block;
    direction: ltr;
    width: 100%;
    height: 100%;
}

.tm-price-history-svg text {
    font-family: inherit;
    fill: var(--tm-chart-text);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.tm-price-history-grid-line {
    stroke: var(--tm-chart-grid);
    stroke-width: 1;
    stroke-dasharray: 3 5;
}

.tm-price-history-line-path {
    fill: none;
    stroke: var(--tm-chart-blue);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tm-price-history-area-path {
    fill: url(#tmPriceHistoryAreaGradient);
}

.tm-price-history-gradient-stop {
    stop-color: var(--tm-chart-blue);
}

.tm-price-history-point {
    fill: var(--tm-chart-blue);
    stroke: var(--tm-surface-bg);
    stroke-width: 2;
}

.tm-price-history-point.has-discount { fill: var(--tm-chart-green); }
.tm-price-history-point.is-deleted { fill: var(--tm-chart-red); }

.tm-price-history-hover-zone {
    fill: transparent;
    cursor: crosshair;
}

.tm-price-history-crosshair {
    stroke: var(--tm-chart-focus);
    stroke-width: 22;
    pointer-events: none;
}

.tm-price-history-focus-line {
    stroke: var(--tm-chart-blue);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    pointer-events: none;
}

.tm-price-history-state {
    position: absolute;
    inset: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--tm-muted-color);
    text-align: center;
    font-size: .85rem;
    line-height: 1.9;
}

.tm-price-history-state > .bi {
    color: var(--tm-chart-blue);
    font-size: 2rem;
}

/* هنگام تعویض ترکیب، پیام کوچک روی همان نمودار قرار می‌گیرد و ابعاد مودال ثابت می‌ماند. */
.tm-price-history-state-compact {
    inset: .5rem .5rem auto;
    flex-direction: row;
    gap: .5rem;
    width: fit-content;
    max-width: calc(100% - 1rem);
    margin-inline: auto;
    padding: .35rem .7rem;
    border: 1px solid var(--tm-border-color);
    border-radius: 10px;
    background: var(--tm-surface-bg);
    font-size: .75rem;
    pointer-events: none;
}

.tm-price-history-state-compact > .bi {
    font-size: 1rem;
}

.tm-price-history-state[data-mode="error"],
.tm-price-history-state[data-mode="error"] > .bi {
    color: var(--tm-chart-red);
}

.tm-price-history-tooltip {
    position: absolute;
    z-index: 4;
    width: min(290px, calc(100% - 16px));
    max-height: calc(100% - 16px);
    border-radius: 14px;
    background: var(--tm-surface-alt-bg);
    border: 1px solid var(--tm-border-strong);
    color: var(--tm-text-color);
    padding: .85rem 1rem;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    text-align: right;
    overflow-wrap: anywhere;
}

.tm-price-history-tooltip-title {
    color: var(--tm-muted-color);
    font-size: .75rem;
    margin-bottom: .5rem;
}

.tm-price-history-tooltip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .15rem .5rem;
    color: var(--tm-muted-color);
    font-size: .72rem;
    margin-top: .35rem;
}

.tm-price-history-tooltip-row strong {
    color: var(--tm-text-color);
    font-weight: 600;
}

.tm-price-history-tooltip-price {
    color: var(--tm-chart-blue);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: .6rem;
}

.tm-price-history-footer {
    padding: .85rem 1.25rem 1rem;
    border-top: 1px solid var(--tm-chart-grid);
    color: var(--tm-chart-text);
    font-size: .7rem;
}

.tm-price-history-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1.25rem;
}

.tm-price-history-legend span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.tm-history-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.tm-history-dot-available { background: var(--tm-chart-blue); }
.tm-history-dot-discount { background: var(--tm-chart-green); }
.tm-history-dot-deleted { background: var(--tm-chart-red); }

@media (max-width: 767.98px) {
    .tm-price-history-modal .modal-dialog {
        width: calc(100% - 1rem);
        max-width: none;
        margin: .5rem auto;
        height: calc(100% - 1rem);
        min-height: calc(100% - 1rem);
    }

    .tm-price-history-modal .modal-content { border-radius: 20px; }
    .tm-price-history-header { padding: 1rem; gap: .7rem; }
    .tm-price-history-heading-icon { flex-basis: 40px; height: 40px; font-size: 1.1rem; border-radius: 12px; }
    .tm-price-history-heading .modal-title { font-size: 1rem; }
    .tm-price-history-body { padding: 1rem; }
    .tm-price-history-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tm-price-history-metric { padding: .8rem; }
    .tm-price-history-metric dd { font-size: .95rem; }
    .tm-price-history-selector-row { grid-template-columns: 1fr; gap: .4rem; }
    .tm-price-history-chart-heading { padding: 1rem .8rem .6rem; }
    .tm-price-history-plot-shell { height: 280px; }
    .tm-price-history-footer { padding: .8rem; }
    .tm-price-history-legend { gap: .5rem .85rem; }
}

@media (max-width: 359.98px) {
    .tm-price-history-heading-icon { display: none; }
    .tm-price-history-header, .tm-price-history-body { padding: .85rem; }
    .tm-price-history-metric { padding: .65rem; }
    .tm-price-history-metric dd { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tm-price-history-option { transition: none; }
}


/* Source: ZarMall.Web/Views/Shared/Partials/Public/_SocialTimeline.cshtml */
    .tm-social-timeline {
        width: min(100%, 680px);
        margin: 1.5rem auto 2rem;
        padding-inline: .75rem;
    }

    .tm-social-timeline-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .tm-social-timeline-head h2 {
        margin: 0;
        font-size: clamp(1.15rem, 2vw, 1.55rem);
        font-weight: 900;
        letter-spacing: 0;
    }

    .tm-social-timeline-head p {
        margin: .25rem 0 0;
        color: var(--bs-secondary-color);
        font-size: .92rem;
    }

    .tm-social-live-dot {
        width: .85rem;
        height: .85rem;
        border-radius: 50%;
        background: #22c55e;
        box-shadow: 0 0 0 .42rem rgba(34, 197, 94, .14);
    }

    .tm-social-search-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        margin-bottom: 1rem;
        padding: .65rem .8rem;
        border: 1px solid rgba(13, 110, 253, .18);
        border-radius: 8px;
        background: color-mix(in srgb, #eff6ff 78%, var(--bs-body-bg));
        color: var(--bs-body-color);
    }

    .tm-social-search-summary-title {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        gap: .45rem;
        font-weight: 900;
    }

    .tm-social-search-summary-title span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tm-social-search-summary button {
        width: 2rem;
        height: 2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        border: 0;
        border-radius: 50%;
        color: var(--bs-body-color);
        background: rgba(15, 23, 42, .08);
    }

    .tm-social-search-summary button:hover {
        color: #b91c1c;
        background: rgba(220, 38, 38, .14);
    }

    .tm-social-search-people {
        margin-bottom: 1rem;
        padding: .85rem;
        border: 1px solid rgba(15, 23, 42, .1);
        border-radius: 8px;
        background: var(--bs-body-bg);
        box-shadow: 0 16px 38px rgba(15, 23, 42, .07);
    }

    .tm-social-search-section-head,
    .tm-social-product-search-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
    }

    .tm-social-search-section-head {
        margin-bottom: .7rem;
    }

    .tm-social-search-section-head strong,
    .tm-social-product-search-title span {
        font-weight: 900;
    }

    .tm-social-search-section-head span,
    .tm-social-search-section-head small {
        color: var(--bs-secondary-color);
        font-size: .82rem;
    }

    .tm-social-product-search-title {
        margin: .25rem 0 .75rem;
        padding-inline: .25rem;
        color: var(--bs-secondary-color);
    }

    .tm-social-user-search {
        margin-bottom: 1rem;
    }

    .tm-social-search-results {
        margin-top: .6rem;
        display: grid;
        gap: .5rem;
    }

    .tm-social-search-item {
        display: flex;
        align-items: center;
        gap: .65rem;
        padding: .65rem .75rem;
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: 8px;
        background: var(--bs-body-bg);
        box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
    }

    .tm-social-search-avatar {
        width: 2.35rem;
        min-width: 2.35rem;
        height: 2.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(135deg, #ef4444, #f97316 45%, #2563eb);
        font-weight: 900;
        text-transform: uppercase;
    }

    .tm-social-search-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tm-social-search-item a {
        color: var(--bs-body-color);
        font-weight: 900;
        text-decoration: none;
    }

    .tm-social-feed {
        display: grid;
        gap: 1.15rem;
    }

    .tm-social-post {
        overflow: hidden;
        border: 1px solid rgba(15, 23, 42, .1);
        border-radius: 8px;
        background: var(--bs-body-bg);
        box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
    }

    .tm-social-post-head {
        min-height: 66px;
        display: flex;
        align-items: center;
        gap: .75rem;
        padding: .8rem .9rem;
    }

    .tm-social-avatar {
        width: 2.65rem;
        min-width: 2.65rem;
        height: 2.65rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(135deg, #ef4444, #f97316 45%, #2563eb);
        font-weight: 900;
        text-transform: uppercase;
    }

    .tm-social-profile-link {
        display: inline-flex;
        text-decoration: none;
        border-radius: 50%;
    }

    .tm-social-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .tm-social-user-line {
        display: flex;
        align-items: center;
        gap: .4rem;
        flex-wrap: wrap;
    }

    .tm-social-user {
        font-weight: 900;
        color: var(--bs-body-color);
        text-decoration: none;
    }

    .tm-social-user:hover {
        color: var(--bs-primary);
    }

    .tm-social-store {
        display: block;
        color: var(--bs-secondary-color);
        text-decoration: none;
        font-size: .86rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tm-social-chip {
        display: inline-flex;
        align-items: center;
        min-height: 1.35rem;
        padding: .1rem .42rem;
        border-radius: 999rem;
        color: #0f172a;
        background: #fef3c7;
        font-size: .72rem;
        font-weight: 800;
    }

    .tm-social-chip.is-followed {
        background: #dcfce7;
        color: #166534;
    }

    .tm-social-follow-btn {
        margin-inline-start: auto;
        white-space: nowrap;
        border-radius: 999rem;
    }

    .tm-social-repost-text,
    .tm-social-caption,
    .tm-social-origin,
    .tm-social-counts {
        padding-inline: .95rem;
    }

    .tm-social-repost-text {
        font-size: .85rem;
        white-space: pre-line;
        overflow-wrap: anywhere;
        padding-bottom: .7rem;
        color: var(--bs-body-color);
        line-height: 1.9;
    }

    .tm-social-media-link {
        display: block;
        position: relative;
        width: 100%;
        aspect-ratio: var(--tm-product-media-ratio);
        overflow: hidden;
        color: inherit;
        background: var(--tm-product-media-bg);
    }

    .tm-social-media {
        width: 100%;
        height: 100%;
        min-height: 100%;
        display: block;
        object-fit: var(--tm-product-media-fit);
        object-position: center center;
    }

    .tm-social-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: .3rem;
        padding: .65rem .75rem .25rem;
    }

    .tm-social-icon-btn {
        width: 2.5rem;
        height: 2.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        color: var(--bs-body-color);
        background: transparent;
        text-decoration: none;
        transition: background-color .18s ease, color .18s ease, transform .18s ease;
    }

    .tm-social-icon-btn:hover {
        color: var(--bs-primary);
        background: rgba(13, 110, 253, .09);
        transform: translateY(-1px);
    }

    .tm-social-icon-btn.is-active {
        color: #e11d48;
    }

    .tm-social-icon-btn:has(> .bi-bookmark-fill),
    .tm-saved-count-strip .bi-bookmark-fill {
        color: var(--bs-emphasis-color);
    }

    .tm-social-icon-btn i {
        font-size: 1.35rem;
        line-height: 1;
    }

    .tm-social-counts {
        display: flex;
        align-items: center;
        gap: .35rem;
        margin-top: .1rem;
        font-weight: 850;
        font-size: .92rem;
    }

    .tm-social-caption {
        padding-top: .45rem;
        padding-bottom: .25rem;
        white-space: normal;
        line-height: 1.9;
    }

    .tm-social-caption > span {
        white-space: pre-line;
    }

    .tm-social-caption a,
    .tm-social-caption > strong {
        color: var(--bs-body-color);
        font-weight: 900;
        text-decoration: none;
        margin-inline-end: .35rem;
    }

    .tm-social-origin {
        padding-top: .1rem;
        padding-bottom: .85rem;
        color: var(--bs-secondary-color);
        font-size: .84rem;
    }

    .tm-social-origin a,
    .tm-social-mention {
        color: var(--bs-primary);
        font-weight: 850;
        text-decoration: none;
    }

    .tm-social-origin a:hover,
    .tm-social-origin a:focus,
    .tm-social-mention:hover,
    .tm-social-mention:focus {
        text-decoration: underline;
    }

    .tm-social-comments-tray {
        color: var(--tm-text-color);
        background: var(--tm-surface-bg);
        direction: rtl;
    }

    /* پنل مستقل، تصویر را تمام‌قد نگه می‌دارد و فقط متن نظرات اسکرول می‌شود. */
    .tm-social-comments-panel {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
        background: var(--tm-surface-bg);
    }

    .tm-social-comments-head {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        min-width: 0;
        min-height: 4.25rem;
        padding: .75rem 1rem;
        border-bottom: 1px solid var(--tm-border-color);
        color: var(--tm-muted-color);
        font-size: .86rem;
    }

    .tm-social-comments-head strong {
        color: var(--tm-text-color);
        font-weight: 900;
    }

    .tm-social-comments-author {
        display: flex;
        align-items: center;
        gap: .65rem;
        flex: 1;
        min-width: 0;
    }

    .tm-social-comments-author > div {
        min-width: 0;
    }

    .tm-social-comments-author .tm-social-avatar {
        width: 2.35rem;
        min-width: 2.35rem;
        height: 2.35rem;
    }

    .tm-social-comments-author .tm-social-user {
        overflow-wrap: anywhere;
    }

    .tm-social-comments-scroll {
        flex: 1 1 0;
        min-width: 0;
        min-height: 0;
        padding: 1rem;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    .tm-social-comments-caption {
        margin-bottom: .8rem;
        overflow-wrap: anywhere;
        white-space: normal;
        line-height: 1.9;
        font-size: .9rem;
    }

    .tm-social-comments-caption > .tm-social-caption {
        padding: 0;
    }

    .tm-social-comments-caption:empty {
        display: none;
    }

    .tm-social-comments-list {
        display: grid;
        align-content: start;
        gap: 1.2rem;
        min-width: 0;
    }

    .tm-social-comment,
    .tm-product-comments-panel .tm-product-comment-item {
        display: grid;
        grid-template-columns: 2.25rem minmax(0, 1fr);
        column-gap: .75rem;
        row-gap: 0;
        align-items: start;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .tm-social-comment-avatar,
    .tm-product-comments-panel .tm-product-comment-avatar {
        width: 2.25rem;
        height: 2.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border: 0;
        border-radius: 50%;
        box-shadow: none;
        color: #fff;
        background: linear-gradient(135deg, #2563eb, #db2777);
        font-weight: 900;
        text-transform: uppercase;
    }

    .tm-social-comment-avatar img {
        display: block;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        border-radius: inherit;
        object-fit: cover;
    }

    .tm-social-comment-body {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .tm-comment-content-row {
        display: flex;
        align-items: flex-start;
        gap: .5rem;
        min-width: 0;
        grid-column: 2;
    }

    .tm-comment-content-row > :is(.tm-social-comment-text, .tm-product-comment-body) {
        flex: 1 1 0;
        min-width: 0;
    }

    .tm-comment-inline-actions {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: .15rem;
    }

    .tm-social-comment-reply {
        margin-inline-start: 1rem;
        padding-inline-start: .5rem;
        border-inline-start: 1px solid var(--tm-border-color);
    }

    .tm-comment-content-row :is(.tm-social-comment-delete, .tm-social-comment-reply-button) {
        flex: 0 0 auto;
        min-width: 1.75rem;
        min-height: 1.75rem;
        padding: .125rem .25rem;
        border: 0;
        color: var(--bs-secondary-color);
        font-size: .75rem;
        line-height: 1.5;
        text-decoration: none;
    }

    .tm-comment-content-row .tm-social-comment-delete:hover,
    .tm-comment-content-row .tm-social-comment-delete:focus-visible {
        color: var(--bs-danger-text-emphasis);
    }

    .tm-social-comment-meta,
    .tm-product-comments-panel .tm-product-comment-head {
        display: flex;
        align-items: center;
        gap: .4rem;
        flex-wrap: wrap;
        margin-bottom: .2rem;
        font-size: .78rem;
    }

    .tm-social-comment-author,
    .tm-product-comments-panel .tm-product-comment-author {
        font-weight: 900;
        font-size: inherit;
        color: var(--bs-body-color);
        text-decoration: none;
    }

    .tm-social-comment-author:hover,
    .tm-social-comment-author:focus {
        color: var(--bs-primary);
    }

    .tm-social-comment-badge {
        display: inline-flex;
        align-items: center;
        min-height: 1.2rem;
        padding: .05rem .35rem;
        border-radius: 999rem;
        background: #dcfce7;
        color: #166534;
        font-size: .7rem;
        font-weight: 850;
    }

    .tm-social-comment-time,
    .tm-product-comments-panel .tm-product-comment-time,
    .tm-product-comments-panel .tm-product-comment-edited {
        color: var(--bs-secondary-color);
    }

    .tm-social-comment-text,
    .tm-product-comments-panel .tm-product-comment-body {
        margin: 0;
        color: var(--tm-text-color);
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        line-height: 1.85;
        font-size: .9rem;
    }

    .tm-social-comments-footer {
        flex: 0 0 auto;
        border-top: 1px solid var(--tm-border-color);
    }

    .tm-social-comments-actions {
        gap: .15rem;
        padding: .35rem .65rem 0;
    }

    .tm-social-comments-actions .tm-social-icon-btn {
        width: 2.75rem;
        height: 2.75rem;
        flex: 0 0 auto;
        border-radius: 0;
    }

    /* عدد و آیکون یک کنترل مشترک‌اند و فاصله‌شان در فید و هر دو مودال یکسان است. */
    .tm-social-actions .tm-social-action-count {
        width: auto;
        min-width: 2.75rem;
        gap: .25rem;
        padding-inline: .25rem;
        border-radius: 0;
        flex: 0 0 auto;
    }

    .tm-social-action-count-value {
        font-size: .78rem;
        font-weight: 750;
        font-variant-numeric: tabular-nums;
        line-height: 1;
        white-space: nowrap;
        direction: ltr;
    }

    .tm-social-like-action {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        gap: .1rem;
    }

    .tm-social-count-button {
        min-height: 2.75rem;
        padding: 0 .15rem;
        border: 0;
        background: transparent;
        color: var(--tm-text-color);
    }

    .tm-social-count-button:disabled,
    .tm-social-likers-summary:disabled {
        opacity: 1;
        cursor: default;
    }

    .tm-social-count-button:not(:disabled):hover,
    .tm-social-likers-summary:not(:disabled):hover {
        color: var(--bs-primary);
    }

    .tm-social-count-button:focus-visible,
    .tm-social-likers-summary:focus-visible {
        outline: 2px solid var(--bs-primary);
        outline-offset: 2px;
    }

    .tm-social-likers-summary {
        display: inline-flex;
        align-items: center;
        flex-wrap: wrap;
        gap: .15rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        font: inherit;
        text-align: start;
    }

    .tm-social-likers-summary bdi { font-weight: 800; }

    body.tm-product-likers-open { overflow: hidden; }

    .tm-product-likers-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1090;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        background: rgba(0, 0, 0, .5);
    }

    .tm-product-likers-panel {
        display: flex;
        flex-direction: column;
        width: min(100%, 440px);
        max-height: min(82vh, 680px);
        max-height: min(82dvh, 680px);
        min-height: 160px;
        min-width: 0;
        overflow: hidden;
        border: 1px solid var(--tm-border-color);
        border-radius: .75rem;
        background: var(--tm-surface-bg);
        color: var(--tm-text-color);
        box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
    }

    .tm-product-likers-head {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        padding: .35rem .75rem;
        border-bottom: 1px solid var(--tm-border-color);
    }

    .tm-product-likers-search { flex: 0 0 auto; padding: .75rem .85rem 0; }
    .tm-product-likers-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .75rem .85rem; }
    .tm-product-likers-list { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
    .tm-product-liker { display: flex; align-items: center; justify-content: space-between; gap: .65rem; min-width: 0; }
    .tm-product-liker-profile { display: flex; align-items: center; gap: .6rem; min-width: 0; color: inherit; text-decoration: none; font-size: .86rem; }
    .tm-product-liker-profile .tm-social-comment-avatar { flex: 0 0 auto; }
    .tm-product-liker-profile bdi { overflow-wrap: anywhere; }
    .tm-product-liker .btn { flex: 0 0 auto; white-space: nowrap; }
    .tm-product-likers-status { margin: .75rem 0 0; color: var(--tm-muted-color); font-size: .85rem; }
    .tm-product-likers-sentinel { height: 1px; }

    .tm-social-liked-by {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: .2rem .3rem;
        padding: .1rem .95rem .45rem;
        font-size: .8rem;
        line-height: 1.5;
        color: var(--tm-text-color);
        overflow-wrap: anywhere;
    }

    .tm-social-liked-by a {
        color: inherit;
        font-weight: 800;
        text-decoration: none;
    }

    .tm-social-liked-by a:hover {
        text-decoration: underline;
    }

    .tm-social-liked-avatar {
        width: 1.25rem;
        height: 1.25rem;
        border-radius: 50%;
        object-fit: cover;
        flex: 0 0 auto;
    }

    .tm-social-comment-form {
        flex: 0 0 auto;
        margin: 0;
        padding: 0 1rem;
        border-top: 1px solid var(--tm-border-color);
        background: var(--tm-surface-bg);
    }

    /* ورودی فلت مشترک ثبت، ویرایش و پاسخ نظر طبق درخواست کاربر. */
    .tm-social-comment-form .tm-social-comment-compose,
    .tm-product-comment-form .tm-social-comment-compose {
        display: flex;
        align-items: center;
        gap: .65rem;
        width: 100%;
        min-width: 0;
    }

    .tm-social-comment-form .tm-social-comment-compose textarea.form-control,
    .tm-product-comment-form .tm-social-comment-compose textarea.form-control {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        height: 2.9rem;
        min-height: 2.9rem;
        max-height: 7rem;
        margin: 0;
        padding: .75rem 0;
        border: 0;
        border-radius: 0;
        outline: 0;
        box-shadow: none;
        color: var(--tm-text-color);
        background: transparent;
        background-image: none;
        resize: none;
        overflow-y: auto;
        line-height: 1.4rem;
        font-size: .9rem;
    }

    .tm-social-comment-form .tm-social-comment-compose:focus-within,
    .tm-product-comment-form .tm-social-comment-compose:focus-within {
        box-shadow: inset 0 -2px color-mix(in srgb, var(--bs-primary) 45%, transparent);
    }

    .tm-social-comment-form .tm-social-comment-send,
    .tm-product-comment-form .tm-social-comment-send {
        flex: 0 0 auto;
        min-width: 2rem;
        min-height: 2rem;
        margin: 0;
        padding: .25rem 0;
        border: 0;
        border-radius: 0;
        color: var(--bs-primary);
        background: transparent;
        box-shadow: none;
        font-size: .75rem;
        font-weight: 700;
        line-height: 1.5;
        text-decoration: none;
        white-space: nowrap;
    }

    /* اقدام‌های کوتاه کنار متن نظر باید فشرده بمانند، حتی در فرم پاسخ و ویرایش. */
    .tm-product-comments-panel .tm-product-comment-form .tm-action-cancel {
        min-width: 2rem;
        min-height: 2rem;
        padding: .25rem .375rem;
        font-size: .75rem;
        line-height: 1.5;
        text-decoration: none;
    }

    .tm-social-comment-form .tm-social-comment-send:disabled,
    .tm-product-comment-form .tm-social-comment-send:disabled {
        opacity: .4;
    }

    .tm-social-comment-form .tm-social-comment-send:focus-visible,
    .tm-product-comment-form .tm-social-comment-send:focus-visible,
    .tm-social-comments-close:focus-visible,
    .tm-social-comments-actions .tm-social-icon-btn:focus-visible {
        outline: 2px solid var(--bs-primary);
        outline-offset: -2px;
    }

    .tm-social-comment-error {
        margin: 0;
        padding-bottom: .65rem;
        color: var(--bs-danger-text-emphasis, var(--bs-danger));
        font-size: .8rem;
        overflow-wrap: anywhere;
    }

    .tm-product-comments-composer > .tm-product-comment-form[data-comment-form="root"] {
        display: block;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .tm-social-comments-panel > [data-social-comment-login] {
        flex: 0 0 auto;
        min-height: 3.25rem;
        border: 0;
        border-top: 1px solid var(--tm-border-color);
        border-radius: 0;
    }

    .tm-social-comments-panel > .tm-social-comment-login {
        flex: 0 0 auto;
        margin: 0;
        padding: .65rem 1rem;
        border: 0;
        border-top: 1px solid var(--tm-border-color);
        border-radius: 0;
        background: var(--tm-surface-bg);
        color: var(--tm-text-color);
    }

    .tm-social-comments-more,
    .tm-social-comments-loading,
    .tm-social-comments-empty {
        margin-top: .65rem;
    }

    .tm-social-comments-loading,
    .tm-social-comments-empty {
        padding-block: .75rem;
        color: var(--tm-muted-color);
        font-size: .86rem;
        text-align: center;
    }

    .tm-social-comments-modal-media {
        display: none;
    }

    .tm-social-comments-close {
        width: 2.75rem;
        height: 2.75rem;
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        color: var(--tm-text-color);
        background: transparent;
    }

    .tm-social-comments-close:hover {
        background: var(--tm-surface-alt-bg);
    }

    body.tm-social-comments-open,
    body.tm-product-comments-mobile-open {
        overflow: hidden;
    }

    .tm-social-comments-backdrop {
        position: fixed;
        inset: 0;
        /* همان لایه مرکزی مودال، بالاتر از هدر و منوی اصلی. */
        z-index: 5070;
        background: rgba(0, 0, 0, .68);
    }

    @media (min-width: 768px) {
        .tm-social-comments-tray:not(.d-none) {
            position: fixed;
            top: 50%;
            left: 50%;
            z-index: 5080;
            width: min(calc(100vw - 3rem), 1080px, calc(82vh + 380px));
            width: min(calc(100vw - 3rem), 1080px, calc(82dvh + 380px));
            height: min(82vh, 760px);
            height: min(82dvh, 760px);
            display: grid;
            grid-template-columns: minmax(0, 1fr) clamp(320px, 34vw, 380px);
            grid-template-rows: minmax(0, 1fr);
            margin: 0;
            padding: 0;
            overflow: hidden;
            border: 1px solid var(--tm-border-color);
            border-radius: 12px;
            box-shadow: 0 36px 90px rgba(0, 0, 0, .42);
            transform: translate(-50%, -50%);
        }

        .tm-social-comments-tray:not(.d-none) .tm-social-comments-modal-media {
            grid-column: 1;
            grid-row: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 0;
            min-height: 0;
            background: #000;
        }

        .tm-social-comments-tray:not(.d-none) .tm-social-comments-modal-media img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
        }

        .tm-social-comments-tray:not(.d-none) .tm-social-comments-panel {
            grid-column: 2;
            grid-row: 1;
        }

        .tm-social-comments-head > strong,
        .tm-social-comments-head > span {
            display: none;
        }
    }

    @media (max-width: 767.98px) {
        .tm-social-comments-tray:not(.d-none) {
            position: fixed;
            bottom: 0;
            left: 50%;
            z-index: 5080;
            width: min(100%, 36rem);
            height: min(86vh, 680px);
            height: min(86dvh, 680px);
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            grid-template-rows: minmax(0, 1fr);
            margin: 0;
            padding: 2.65rem 0 env(safe-area-inset-bottom, 0px);
            overflow: hidden;
            border: 0;
            border-radius: 26px 26px 0 0;
            box-shadow: 0 -24px 52px rgba(0, 0, 0, .28);
            transform: translateX(-50%);
        }

        .tm-social-comments-backdrop {
            background: rgba(0, 0, 0, .42);
        }

        .tm-social-comments-tray:not(.d-none)::before {
            content: "";
            position: absolute;
            top: .85rem;
            left: 50%;
            width: 52px;
            height: 5px;
            border-radius: 999px;
            background: var(--tm-muted-color);
            opacity: .75;
            transform: translateX(-50%);
        }

        .tm-social-comments-tray:not(.d-none) .tm-social-comments-head {
            min-height: 3.25rem;
            padding: 0 4.1rem .8rem;
            text-align: center;
        }

        /* تصویر در راست می‌ماند؛ بدنه و ورودی موبایل همچنان تمام‌عرض هستند. */
        .tm-social-comments-tray:not(.d-none) > .tm-social-comments-modal-media {
            position: absolute;
            top: 2.5rem;
            right: .9rem;
            display: block;
            width: 44px;
            height: 44px;
            overflow: hidden;
            border-radius: 4px;
            background: var(--tm-surface-alt-bg);
        }

        .tm-social-comments-tray:not(.d-none) > .tm-social-comments-modal-media img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .tm-social-comments-tray:not(.d-none) .tm-social-comments-head strong {
            flex: 1;
            font-size: 1.1rem;
        }

        .tm-social-comments-tray:not(.d-none) .tm-social-comments-head > span,
        .tm-social-comments-tray:not(.d-none) .tm-social-comments-author {
            display: none;
        }

        .tm-social-comments-tray:not(.d-none) .tm-social-comments-close {
            position: absolute;
            left: .5rem;
            top: .35rem;
        }

        .tm-social-comments-tray:not(.d-none) .tm-social-comments-scroll {
            padding: .85rem .9rem;
        }

        .tm-social-comments-tray:not(.d-none) .tm-social-comment-avatar {
            width: 46px;
            height: 46px;
        }

        .tm-social-comments-tray:not(.d-none) .tm-social-comment {
            grid-template-columns: 48px minmax(0, 1fr);
            gap: .82rem;
        }

        .tm-social-comments-list > .tm-product-comment-item {
            grid-template-columns: 48px minmax(0, 1fr);
            column-gap: .82rem;
        }

        .tm-social-comments-list > .tm-product-comment-item > .tm-product-comment-avatar {
            width: 46px;
            height: 46px;
        }

        .tm-social-comments-tray:not(.d-none) .tm-social-comment-form {
            padding-inline: .9rem;
        }
    }

    /* در نمایشگر کوتاه، فضای خواندن نظرات با حفظ حاشیه امن بیشتر می‌شود. */
    @media (max-height: 480px) {
        .tm-social-comments-tray:not(.d-none) {
            height: calc(100vh - 1rem);
            height: calc(100dvh - 1rem);
        }
    }

    .tm-social-loading,
    .tm-social-load-error,
    .tm-social-empty {
        margin-top: 1rem;
        padding: .85rem;
        border-radius: 8px;
        background: color-mix(in srgb, var(--bs-primary) 7%, var(--bs-body-bg));
        color: var(--bs-secondary-color);
        text-align: center;
    }

    .tm-social-load-error {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .65rem;
        flex-wrap: wrap;
    }

    @media (max-width: 575.98px) {
        .tm-social-timeline {
            padding-inline: .35rem;
            margin-top: 1rem;
        }

        .tm-social-post {
            border-inline: 0;
            border-radius: 0;
        }

        .tm-social-follow-btn {
            padding-inline: .55rem;
            font-size: .78rem;
        }
    }

/* Source: ZarMall.Web/Views/Social/Profile.cshtml */
    /* Bootstrap RTL فاقد text-break است؛ نام عمومی تا ۱۰۰ نویسه باید در پروفایل و مودال کامل بماند. */
    .tm-social-username-wrap {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .tm-social-profile-page {
        /* ارتفاع فقط متعلق به پوستهٔ بیرونی است؛ main تو در تو نباید یک صفحهٔ دیگر بسازد. */
        min-height: 0;
        width: 100%;
        min-width: 0;
        margin: 0 0 2.5rem;
        overflow-wrap: anywhere;
    }

    .tm-app .tm-main-layout-container:has(.tm-social-profile-page) main { min-height: 0; }
    .tm-social-profile-bio { font-size: .85rem; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }

    @keyframes tm-comment-arrival {
        0%, 100% { background-color: transparent; }
        22%, 55% { background-color: color-mix(in srgb, var(--bs-primary) 14%, var(--bs-body-bg)); }
    }
    .tm-comment-arrival { animation: tm-comment-arrival 2s ease-in-out; }
    @media (prefers-reduced-motion: reduce) {
        .tm-comment-arrival { animation: none; outline: 2px solid var(--bs-primary); outline-offset: 2px; }
    }

    /* عرض پست پروفایل دقیقاً همان تایم‌لاین اصلی است. */
    .tm-social-profile-page > .tm-social-timeline {
        width: min(100%, 680px);
    }

    .tm-social-profile-page .tm-social-post-head > .min-w-0 {
        flex: 1 1 auto;
    }

    .tm-social-profile-page .tm-social-user {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .tm-social-profile-card {
        border: 1px solid rgba(15, 23, 42, .1);
        border-radius: 8px;
        background: var(--bs-body-bg);
        box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
        padding: 1rem;
    }

    .tm-social-profile-top {
        display: grid;
        grid-template-columns: 6rem minmax(0, 1fr) auto;
        gap: 1rem;
        align-items: center;
    }

    .tm-social-profile-avatar {
        width: 5.8rem;
        height: 5.8rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border: 3px solid #fff;
        border-radius: 50%;
        color: #fff;
        background: radial-gradient(circle at 30% 20%, #feda75 0 18%, #fa7e1e 38%, #d62976 62%, #962fbf 78%, #4f5bd5 100%);
        box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 16px 32px rgba(15, 23, 42, .16);
        font-size: 2rem;
        font-weight: 900;
    }

    .tm-social-profile-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .tm-social-profile-name {
        display: flex;
        align-items: center;
        gap: .6rem;
        flex-wrap: wrap;
    }

    .tm-social-profile-name h1 {
        margin: 0;
        direction: ltr;
        font-size: 1.3rem;
        font-weight: 950;
        letter-spacing: 0;
    }

    .tm-social-profile-last-seen {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        width: fit-content;
        margin-top: .45rem;
        border: 1px solid var(--bs-border-color-translucent);
        border-radius: 999px;
        padding: .25rem .65rem;
        color: var(--bs-secondary-color);
        background: color-mix(in srgb, var(--bs-body-bg) 90%, #e2e8f0);
        font-size: .8rem;
        font-weight: 850;
    }

    .tm-social-profile-last-seen i {
        color: #94a3b8;
        font-size: .55rem;
    }

    .tm-social-profile-last-seen.is-online {
        border-color: rgba(34, 197, 94, .28);
        color: #15803d;
        background: rgba(34, 197, 94, .1);
    }

    .tm-social-profile-last-seen.is-online i {
        color: #22c55e;
    }

    .tm-social-profile-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .5rem;
        margin-top: .85rem;
    }

    .tm-social-profile-stats:has([data-profile-store-stat]) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tm-social-profile-stat[href] { cursor: pointer; }
    .tm-social-profile-stat:disabled { cursor: default; }
    .tm-profile-photo-trigger { padding: 0; flex-shrink: 0; }
    .tm-profile-photo-trigger:enabled { cursor: zoom-in; }
    .tm-profile-photo-trigger:disabled { cursor: default; opacity: 1; }
    .tm-profile-photo-trigger:focus-visible { outline: 3px solid var(--bs-primary); outline-offset: 4px; }
    /* همان لایه مودال‌های مرکزی پروژه؛ بالاتر از منوی اصلی. */
    .tm-profile-modal, .tm-product-gallery-modal, .tm-terms-modal { --bs-modal-zindex: 5080; z-index: var(--bs-modal-zindex); }
    body:has(:is(.tm-profile-modal, .tm-product-gallery-modal, .tm-terms-modal).show) > .modal-backdrop { --bs-backdrop-zindex: 5070; z-index: var(--bs-backdrop-zindex); }
    .tm-profile-modal .modal-content { max-height: calc(100dvh - 2 * var(--bs-modal-margin, .5rem)); }
    .tm-profile-modal .modal-header { flex-shrink: 0; gap: .75rem; }
    .tm-profile-modal .modal-title { min-width: 0; overflow-wrap: anywhere; }
    .tm-profile-modal .btn-close { flex-shrink: 0; }
    .tm-profile-image-modal .modal-content { height: min(calc(100dvh - 2 * var(--bs-modal-margin, .5rem)), 52rem); }
    .tm-profile-image-modal .modal-body { min-height: 0; overflow: auto; container-type: size; }
    .tm-profile-image-modal .tm-profile-preview-image {
        width: min(100cqw, 100cqh, 660px);
        height: auto;
        max-height: none;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .tm-social-profile-stat {
        width: 100%;
        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 8px;
        padding: .65rem .5rem;
        text-align: center;
        background: color-mix(in srgb, var(--bs-body-bg) 92%, var(--bs-primary) 8%);
        color: var(--bs-body-color);
        cursor: default;
    }

    button.tm-social-profile-stat {
        cursor: pointer;
        transition: border-color .18s ease, background-color .18s ease;
    }

    button.tm-social-profile-stat:hover {
        border-color: rgba(13, 110, 253, .35);
        background: color-mix(in srgb, var(--bs-body-bg) 86%, var(--bs-primary) 14%);
    }

    .tm-social-profile-stat strong {
        display: block;
        direction: ltr;
        font-size: 1.08rem;
        font-weight: 950;
        line-height: 1.15;
    }

    .tm-social-profile-stat span {
        color: var(--bs-secondary-color);
        font-size: .78rem;
        font-weight: 800;
    }

    .tm-social-private-note {
        margin-top: 1rem;
        border: 1px dashed rgba(15, 23, 42, .22);
        border-radius: 8px;
        padding: 1rem;
        text-align: center;
        color: var(--bs-secondary-color);
        background: var(--bs-tertiary-bg);
    }

    @media (max-width: 575.98px) {
        .tm-social-profile-stats:has([data-profile-store-stat]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .tm-profile-image-modal .modal-content { height: 100dvh; max-height: 100dvh; }
        .tm-social-profile-top {
            grid-template-columns: 3.2rem minmax(0, 1fr) auto;
            gap: .5rem;
        }

        .tm-social-profile-avatar {
            width: 4.6rem;
            height: 4.6rem;
            font-size: 1.7rem;
        }
    }

.tm-permission-search {
    min-width: 15rem;
}

.tm-impersonation-reason {
    min-width: 13.75rem;
    white-space: normal;
}

.tm-product-main-image,
.tm-product-gallery-modal-image {
    object-fit: var(--tm-product-media-fit);
}

.tm-product-gallery-modal-stage {
    height: min(76dvh, 60rem);
    background: var(--tm-product-media-bg);
}

.tm-product-gallery-modal .modal-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tm-product-gallery-modal .btn-close {
    --bs-btn-close-opacity: .85;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
}

.tm-product-gallery-modal-stage .tm-product-gallery-modal-image {
    width: 100%;
    height: 100%;
    max-height: 100%;
}

.tm-product-gallery-modal-image {
    max-height: 80vh;
}

.tm-store-product-card-image {
    height: auto;
    aspect-ratio: var(--tm-product-media-ratio);
    object-fit: var(--tm-product-media-fit);
    background: var(--tm-product-media-bg);
}

.tm-shopping-cart-quantity-cell {
    max-width: 150px;
}

/* جدول سبد در موبایل semantic و قابل اسکرول می‌ماند؛ ستون عملیات همیشه داخل viewport است. */
.tm-shopping-cart-table-wrapper {
    position: relative;
}

@media (max-width: 767.98px) {
    #shoppingUnifiedCartRoot .tm-shopping-cart-table {
        min-width: 44rem;
    }

    #shoppingUnifiedCartRoot .tm-shopping-cart-table > :not(caption) > * > :last-child {
        position: sticky;
        left: 0;
        z-index: 2;
        min-width: 4.75rem;
        background-color: var(--tm-surface-bg);
        box-shadow: 1px 0 0 var(--tm-border-color);
    }

    #shoppingUnifiedCartRoot .tm-shopping-cart-table > thead > tr > :last-child {
        z-index: 4;
        background-color: var(--tm-head-bg);
    }

    #shoppingUnifiedCartRoot .tm-shopping-cart-table.table-hover > tbody > tr:hover > :last-child {
        background-color: var(--tm-table-hover-bg);
    }
}
/* قرارداد مرکزی ظاهر AutoComplete: رفتار، endpoint و داده هر ویو را تغییر نمی‌دهد. */
.tm-app .tm-autocomplete-shell {
    position: relative;
}

.tm-app .tm-autocomplete-menu {
    position: absolute;
    z-index: 2000;
    inset-inline: 0;
    top: 100%;
    width: 100%;
    min-width: 100%;
    max-height: 260px;
    margin-top: 0;
    overflow: auto;
    color: var(--tm-text-color, var(--bs-body-color));
    background: var(--tm-surface-bg, var(--bs-body-bg));
    border: 1px solid var(--tm-border-color, var(--bs-border-color));
    border-radius: 0 0 .5rem .5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.tm-app .tm-autocomplete-menu > :is(button, a, .ac-item, [role="option"], .ui-menu-item-wrapper),
.tm-app .tm-autocomplete-menu .tm-autocomplete-option {
    width: 100%;
    padding: .5rem .75rem;
    color: inherit;
    background: inherit;
    border-inline: 0;
    border-radius: 0;
    text-align: start;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.tm-app .tm-autocomplete-menu > :is(button, a, .ac-item, [role="option"], .ui-menu-item-wrapper):hover,
.tm-app .tm-autocomplete-menu > :is(button, a, .ac-item, [role="option"], .ui-menu-item-wrapper):focus,
.tm-app .tm-autocomplete-menu .tm-autocomplete-option.active {
    color: var(--tm-nav-hover-color, var(--bs-emphasis-color));
    background: var(--tm-nav-hover-bg, var(--bs-tertiary-bg));
}

[data-bs-theme="dark"] .tm-app .tm-autocomplete-menu {
    color: var(--tm-text-color);
    background: var(--tm-surface-alt-bg);
    border-color: var(--tm-border-color);
}


/* Leaflet 1.9.4 (BSD-2-Clause) — self-hosted in the central panel design system. */
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
/* Observability: جدول‌های حجیم، مستقل و قابل استفاده در RTL */
.tm-observability-page .tm-observability-table-scroll {
    max-height: 32rem;
    overflow: auto;
    /* اسکرول عمودی همیشه سمت راست است؛ جهت خود جدول جداگانه RTL می‌ماند. */
    direction: ltr;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    border: 1px solid var(--tm-border-color, var(--bs-border-color));
}

.tm-observability-page .tm-observability-table-scroll > table {
    direction: rtl;
    min-width: max-content;
}

.tm-observability-page .tm-observability-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    color: var(--tm-table-header-color, #fff);
    background: var(--tm-table-header-bg, #0d6efd);
    border-color: var(--tm-table-header-border, #0b5ed7);
    white-space: nowrap;
}

.tm-observability-page .tm-observability-table-scroll thead th :is(a, button, i) {
    color: inherit !important;
}

.tm-observability-page .tm-observability-table-scroll .table-bordered > :not(caption) > * > * {
    border-width: 1px;
    border-color: var(--bs-border-color);
}

.tm-observability-page .tm-observability-table-scroll .tm-selection-cell {
    width: 3rem;
    min-width: 3rem;
    text-align: center;
}

/* فرم رسیدگی مسئله منبع در کارت موبایل تمام عرض امن کارت را می‌گیرد. */
@media (max-width: 767.98px) {
    .tm-panel-ui.tm-observability-page table.tm-responsive-card-table > tbody > tr > td.tm-resource-health-state-cell {
        grid-template-columns: minmax(0, 1fr);
    }

    .tm-panel-ui.tm-observability-page .tm-resource-health-state-cell::before,
    .tm-panel-ui.tm-observability-page .tm-resource-health-state-form {
        grid-column: 1;
    }

    .tm-panel-ui.tm-observability-page .tm-resource-health-state-form {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100%;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
    }

    .tm-panel-ui.tm-observability-page .tm-resource-health-state-form > :is(.form-control, .form-select, .btn) {
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
    }
}

/* عملیات Schedule حتی در باریک‌ترین Viewport و هنگام Scroll افقی در دسترس می‌ماند. */
.tm-observability-page .tm-observability-table-scroll > .tm-observability-schedule-table {
    width: 100%;
    min-width: 68rem;
    table-layout: fixed;
}

.tm-observability-page .tm-observability-schedule-table .tm-schedule-col-identity {
    width: 16%;
}

.tm-observability-page .tm-observability-schedule-table .tm-schedule-col-times {
    width: 21%;
}

.tm-observability-page .tm-observability-schedule-table .tm-schedule-col-status {
    width: 16%;
}

.tm-observability-page .tm-observability-schedule-table .tm-schedule-col-result {
    width: 23%;
}

.tm-observability-page .tm-observability-schedule-table .tm-schedule-col-settings {
    width: 14%;
}

.tm-observability-page .tm-observability-schedule-table .tm-schedule-col-actions {
    width: 10%;
}

.tm-observability-page .tm-observability-schedule-table > :is(thead, tbody) > tr > :is(th, td) {
    padding: .625rem .75rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.tm-observability-page .tm-observability-schedule-table > tbody > tr > td {
    vertical-align: top;
}

@media (min-width: 768px) {
    .tm-panel-ui.tm-observability-page .tm-observability-schedule-table:has(:is(.tm-actions-cell, [data-tm-actions-cell])) {
        table-layout: fixed !important;
    }

    .tm-panel-ui.tm-observability-page .tm-observability-schedule-table :is(.tm-actions-cell, [data-tm-actions-cell]) {
        width: auto;
        min-width: 0;
        white-space: normal !important;
    }

    .tm-panel-ui.tm-observability-page .tm-observability-schedule-table :is(.tm-actions-cell, [data-tm-actions-cell]) > div {
        width: 100% !important;
        min-width: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

.tm-observability-page .tm-observability-schedule-table > thead > tr > th:last-child {
    position: sticky;
    left: 0;
    z-index: 6;
    background: var(--tm-table-header-bg, #0d6efd);
}

.tm-observability-page .tm-observability-schedule-table > tbody > tr > td:last-child:not([colspan]) {
    position: sticky;
    left: 0;
    z-index: 4;
    max-width: min(17rem, 75vw);
    background: var(--tm-surface-bg, var(--bs-body-bg));
    box-shadow: 1px 0 0 var(--tm-table-row-separator-color, var(--bs-border-color));
}

.tm-observability-page .tm-observability-schedule-table > tbody > tr:hover > td:last-child:not([colspan]) {
    background: color-mix(in srgb, var(--tm-surface-bg, var(--bs-body-bg)) 88%, var(--tm-color-primary, #0d6efd));
}

.tm-observability-page a.tm-sortable {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: inherit;
    text-decoration: none;
}

.tm-observability-page a.tm-sortable:hover,
.tm-observability-page a.tm-sortable:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.tm-observability-page .tm-observability-page-size {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    color: var(--bs-emphasis-color);
    font-size: .875rem;
    font-weight: 800;
    line-height: 1.25;
    background: var(--bs-primary-bg-subtle);
    border: 1px solid rgba(var(--bs-primary-rgb), .5);
    border-radius: var(--bs-border-radius);
    padding: .35rem .5rem;
}

.tm-observability-page .tm-observability-page-size .form-select {
    width: auto;
    min-width: 5.25rem;
    color: var(--bs-emphasis-color);
    background-color: var(--bs-body-bg);
    border-color: var(--bs-primary);
    font-weight: 800;
}

.tm-observability-page .tm-observability-grid-controls {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-inline-start: auto;
}

.tm-observability-page .tm-observability-grid-refresh {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
    min-height: 2.15rem;
    font-weight: 800;
    box-shadow: 0 .125rem .35rem rgba(var(--bs-primary-rgb), .25);
}

.tm-observability-page section.card[aria-busy="true"] {
    position: relative;
    opacity: .72;
    pointer-events: none;
}

.tm-observability-page section.card[aria-busy="true"]::after {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 10;
    width: 2rem;
    height: 2rem;
    border: .25rem solid rgba(13, 110, 253, .22);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    content: "";
    animation: tm-observability-spin .7s linear infinite;
}

.tm-observability-page main[aria-busy="true"] {
    position: relative;
    opacity: .72;
    pointer-events: none;
}

.tm-observability-page main[aria-busy="true"]::after {
    position: fixed;
    inset: 50% auto auto 50%;
    z-index: 1090;
    width: 2.5rem;
    height: 2.5rem;
    border: .3rem solid rgba(13, 110, 253, .22);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    content: "";
    animation: tm-observability-spin .7s linear infinite;
}

@keyframes tm-observability-spin {
    to { transform: rotate(360deg); }
}

.tm-observability-page .tm-journey-path {
    max-width: 30rem;
    unicode-bidi: plaintext;
}

.tm-observability-page .tm-journey-timeline {
    position: relative;
    margin: 0;
    padding: 0 1.25rem 0 0;
    list-style: none;
}

.tm-observability-page .tm-journey-timeline::before {
    position: absolute;
    inset-block: .75rem;
    inset-inline-start: .34rem;
    width: 2px;
    background: var(--bs-border-color);
    content: "";
}

.tm-observability-page .tm-journey-timeline-item {
    position: relative;
    padding-block: 0 1rem;
}

.tm-observability-page .tm-journey-timeline-item::before {
    position: absolute;
    inset-block-start: .45rem;
    inset-inline-start: -1.24rem;
    width: .75rem;
    height: .75rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--bs-primary);
    box-shadow: 0 0 0 1px var(--bs-primary);
    content: "";
}

.tm-observability-page .tm-observability-autocomplete {
    position: relative;
}

.tm-observability-page .tm-observability-suggestions {
    position: absolute;
    inset-inline: calc(var(--bs-gutter-x) * .5);
    top: 100%;
    z-index: 1080;
    max-height: 18rem;
    overflow-y: auto;
    box-shadow: var(--bs-box-shadow);
}

.tm-observability-page .tm-observability-suggestions:empty {
    display: none;
}

.tm-observability-page .tm-observability-suggestions .list-group-item {
    text-align: right;
}

.tm-observability-page .tm-grid-pager {
    border-top: 1px solid var(--bs-border-color);
}

.tm-observability-page .tm-observability-glossary dd:last-child {
    margin-bottom: 0;
}

.tm-observability-page .tm-observability-detail-list dt {
    color: var(--bs-secondary-color);
}

.tm-observability-page .tm-observability-detail-list dd {
    overflow-wrap: anywhere;
}

.tm-observability-page .tm-observability-code-block {
    max-height: 32rem;
    margin: 0;
    padding: 1rem;
    overflow: auto;
    color: var(--bs-body-color);
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* قرارداد محدود صفحه Plan: Header آبی پروژه، ستون عملیات ثابت و دکمه‌های یک‌ردیفه در دسکتاپ. */
.tm-panel-ui .tm-plan-index-page.tm-page-shell {
    padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5) !important;
}

.tm-panel-ui .tm-plan-index-page .tm-plan-table > thead.tm-table-head {
    --bs-table-color: var(--tm-table-header-color, #fff);
    --bs-table-bg: var(--tm-table-header-bg, #0d6efd);
    --bs-table-border-color: var(--tm-table-header-border, #0b5ed7);
    color: var(--tm-table-header-color, #fff);
    background-color: var(--tm-table-header-bg, #0d6efd);
}

.tm-panel-ui .tm-plan-index-page .tm-plan-table > thead.tm-table-head > tr > th,
.tm-panel-ui .tm-plan-index-page .tm-plan-table > thead.tm-table-head > tr > th :is(a, button),
.tm-panel-ui .tm-plan-index-page .tm-plan-table > thead.tm-table-head .tm-store-menu-sort-icon {
    border-color: var(--tm-table-header-border, #0b5ed7);
    color: var(--tm-table-header-color, #fff);
    background-color: var(--tm-table-header-bg, #0d6efd);
}

.tm-panel-ui .tm-plan-index-page .tm-plan-table > thead.tm-table-head > tr > th {
    height: auto;
    --bs-table-bg-state: var(--tm-table-header-bg, #0d6efd);
    --bs-table-bg-type: var(--tm-table-header-bg, #0d6efd);
    background: var(--tm-table-header-bg, #0d6efd) !important;
    box-shadow: none !important;
}

.tm-panel-ui .tm-plan-index-page .tm-plan-table > thead.tm-table-head > tr > th[aria-sort]:not([aria-sort="none"]),
.tm-panel-ui .tm-plan-index-page .tm-plan-table > thead.tm-table-head > tr > th.tm-sorted {
    color: var(--tm-table-header-color, #fff);
    --bs-table-bg-state: var(--tm-table-header-bg, #0d6efd);
    --bs-table-bg-type: var(--tm-table-header-bg, #0d6efd);
    background: var(--tm-table-header-bg, #0d6efd) !important;
    box-shadow: none !important;
}

@media (min-width: 768px) {
    .tm-panel-ui .tm-plan-index-page .tm-plan-table {
        table-layout: auto !important;
        min-width: 100rem;
    }

    .tm-panel-ui .tm-plan-index-page .tm-plan-table > thead.tm-table-head > tr > th {
        white-space: nowrap;
    }

    .tm-panel-ui .tm-plan-index-page .tm-plan-table > thead.tm-table-head > tr > th.tm-actions-head {
        position: sticky !important;
        left: 0 !important;
        right: auto !important;
        z-index: 6;
        width: 24rem;
        min-width: 24rem;
        background: var(--tm-table-header-bg, #0d6efd) !important;
    }

    .tm-panel-ui .tm-plan-index-page .tm-plan-table > tbody > tr > .tm-actions-cell {
        position: sticky !important;
        left: 0 !important;
        right: auto !important;
        z-index: 4;
        width: 24rem !important;
        min-width: 24rem;
        white-space: nowrap !important;
        background: var(--bs-body-bg);
        box-shadow: 1px 0 0 var(--bs-border-color);
    }

    .tm-panel-ui .tm-plan-index-page .tm-plan-table > tbody > tr > .tm-actions-cell > .tm-plan-table-actions {
        width: max-content !important;
        min-width: max-content;
        max-width: none;
        display: flex;
        flex-wrap: nowrap;
        gap: .35rem;
        direction: rtl;
    }

    .tm-panel-ui .tm-plan-index-page .tm-plan-table .tm-plan-table-actions > .btn {
        width: auto !important;
        min-width: max-content;
        margin: 0 !important;
        white-space: nowrap;
    }
}

/* SiteAnnouncement: نمایش عمومی و مدیریت ادمین */
.tm-site-announcement-host {
    position: relative;
    z-index: 1040;
}

.tm-site-announcement-host > input[type="hidden"] {
    display: none;
}

.tm-site-announcement-banner {
    width: 100%;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .12);
}

.tm-site-announcement-banner .container-fluid {
    position: relative;
    min-height: 2.75rem;
    padding-inline: 3.5rem !important;
}

.tm-site-announcement-close {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.75rem;
    line-height: 1;
    opacity: .8;
}

.tm-site-announcement-close-banner {
    position: absolute;
    inset-inline-end: .5rem;
    top: 50%;
    transform: translateY(-50%);
}

.tm-site-announcement-close-modal {
    margin-inline-start: auto;
}

.tm-site-announcement-close:hover,
.tm-site-announcement-close:focus-visible {
    opacity: 1;
}

.tm-site-announcement-modal {
    padding: .75rem;
}

.tm-site-announcement-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.tm-site-announcement-modal .modal-dialog {
    width: min(100%, 42rem);
    max-width: 42rem;
    min-height: 0;
    margin: auto;
}

.tm-site-announcement-modal .modal-content {
    max-height: calc(100dvh - 1.5rem);
}

.tm-site-announcement-modal .modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.tm-site-announcement-modal-image {
    max-height: min(58vh, 38rem);
    object-fit: contain;
}

.tm-site-announcement-modal-text {
    white-space: pre-line;
}

/* کنترل مشترک ایموجی برای نظر، پاسخ، ویرایش و ری‌پست؛ بدون وابستگی به CSS صفحه. */
.tm-emoji-button {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .4rem;
    border: 0;
    border-radius: 0;
    color: var(--tm-text-color, var(--bs-body-color));
    background: transparent;
    box-shadow: none;
    text-decoration: none;
}

.tm-emoji-button i { font-size: 1.4rem; line-height: 1; }
.tm-emoji-button:hover { color: var(--bs-primary); }
.tm-emoji-button:focus-visible,
.tm-emoji-picker button:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

.tm-emoji-field-row { display: flex; align-items: flex-start; gap: .4rem; min-width: 0; }
.tm-emoji-field-row > textarea,
.tm-emoji-field-row > .form-floating { flex: 1 1 0; min-width: 0; }

.tm-emoji-picker {
    position: fixed;
    z-index: 1110;
    display: flex;
    flex-direction: column;
    width: min(20.5rem, calc(100vw - 1rem));
    height: min(23rem, calc(100dvh - 1rem));
    min-width: 0;
    padding: .65rem;
    border: 1px solid var(--tm-border-color, var(--bs-border-color));
    border-radius: .65rem;
    background: var(--tm-surface-bg, var(--bs-body-bg));
    color: var(--tm-text-color, var(--bs-body-color));
    box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .2);
    overflow: hidden;
}

.tm-emoji-picker-head { position: absolute; top: .3rem; inset-inline-end: .3rem; z-index: 1; }
/* انتخاب ایموجی در مودال نظرات باید بالاتر از خود مودال باز شود. */
body.tm-social-comments-open .tm-emoji-picker,
body.tm-product-comments-mobile-open .tm-emoji-picker { z-index: 5095; }
.tm-emoji-picker-close { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; min-width: 24px; min-height: 24px; padding: .15rem; border: 0; border-radius: .25rem; color: var(--bs-secondary-color); background: var(--tm-surface-bg, var(--bs-body-bg)); font-size: .75rem; line-height: 1; }
.tm-emoji-sections { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; }
.tm-emoji-group { margin: 0 0 .65rem; }
.tm-emoji-group-title { margin: 0 0 .45rem; padding-inline-end: 1.75rem; font-size: .8rem; font-weight: 600; line-height: 1.5; color: var(--bs-secondary-color); text-align: start; }
.tm-emoji-sentinel { height: 1px; }
.tm-emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: 2.6rem;
    align-content: start;
    gap: .15rem;
}

.tm-emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: .25rem;
    border: 0;
    border-radius: .25rem;
    color: inherit;
    background: transparent;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.65rem;
    line-height: 1;
}

.tm-emoji-item:hover { background: color-mix(in srgb, var(--bs-primary) 12%, transparent); }
.tm-emoji-status { flex: 0 0 auto; margin: .4rem 0 0; min-height: 1.1rem; font-size: .75rem; color: var(--tm-muted-color, var(--bs-secondary-color)); overflow-wrap: anywhere; }

/* عدد در فضای داخلی فلش‌های آیکون ری‌پست، بدون حذف شمارش متنی موجود. */

.tm-repost-form.tm-social-comment-form { padding: 0; }
.tm-repost-form .tm-social-comment-error:empty { padding: 0; }

.tm-site-announcement-admin-image {
    width: min(100%, 32rem);
    max-height: 24rem;
    object-fit: contain;
}

.tm-site-announcement-text-clamp,
.tm-site-announcement-user-agent {
    display: block;
    overflow-wrap: anywhere;
    word-break: normal;
}

.tm-site-announcement-admin-preview [data-announcement-preview-surface] {
    min-height: 5rem;
    white-space: pre-line;
}

/* ظاهر مصوب صفحات عمومی خرید؛ scope مستقل، بدون تغییر قرارداد فرم و رفتار JavaScript. */
@font-face {
    font-family: "ZarMallCommerce";
    src: url("../Static/Fonts/vazir/Farsi-Digits/Vazir-FD.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "ZarMallCommerce";
    src: url("../Static/Fonts/vazir/Farsi-Digits/Vazir-Medium-FD.woff2") format("woff2");
    font-weight: 500 600;
    font-display: swap;
}
@font-face {
    font-family: "ZarMallCommerce";
    src: url("../Static/Fonts/vazir/Farsi-Digits/Vazir-Bold-FD.woff2") format("woff2");
    font-weight: 700 900;
    font-display: swap;
}

.tm-main-layout-container:has(.tm-commerce-ui) {
    font-size: 16px;
    font-family: var(--tm-font-family);
    line-height: 1.8;
    color: var(--tm-text-color);
    --tm-font-family: var(--tm-commerce-font-family);
    /* سطوح و متن از پالت مرکزی زر مال ارث می‌برند؛ رنگ تصویر فقط روی کارت باقی می‌ماند. */
    --tm-commerce-soft: var(--tm-head-bg);
    --tm-commerce-subtle: var(--tm-surface-alt-bg);
    --tm-commerce-accent: var(--tm-color-primary-hover);
    --tm-commerce-accent-soft: var(--tm-nav-hover-bg);
    --tm-commerce-warm-bg: #fff2e7;
    --tm-commerce-warm-text: #914620;
    --tm-commerce-highlight: rgb(255 255 255 / 70%);
    --tm-commerce-shadow: 0 8px 24px rgb(15 23 42 / 7%), inset 0 1px 0 rgb(255 255 255 / 80%);
    --bs-body-font-family: var(--tm-font-family);
    --bs-body-color: var(--tm-text-color);
    --bs-body-bg: var(--tm-surface-bg);
    --bs-border-color: var(--tm-border-color);
    --bs-secondary-color: var(--tm-muted-color);
    --bs-link-color: var(--tm-commerce-accent);
    --bs-link-color-rgb: 11, 94, 215;
    --bs-link-hover-color: #0a58ca;
    --bs-link-hover-color-rgb: 10, 88, 202;
}

[data-bs-theme="dark"] .tm-main-layout-container:has(.tm-commerce-ui) {
    --tm-commerce-accent: #6ea8fe;
    --tm-commerce-warm-bg: #493526;
    --tm-commerce-warm-text: #f3c09a;
    --tm-commerce-highlight: rgb(255 255 255 / 8%);
    --tm-commerce-shadow: 0 8px 24px rgb(0 0 0 / 16%), inset 0 1px 0 rgb(255 255 255 / 5%);
    --bs-link-color-rgb: 110, 168, 254;
    --bs-link-hover-color: #8bb9fe;
    --bs-link-hover-color-rgb: 139, 185, 254;
}

/* منوی اصلی عمداً هیچ override صفحه‌ای ندارد؛ فونت و اندازه‌های Home مرجع همه صفحات هستند. */
body:has(.tm-commerce-ui) { background-color: var(--tm-body-bg); }
/* بوم روشن فروشگاه یکدست سفید است؛ سبد مستقل و حالت تیره از این قاعده جدا هستند. */
html:not([data-bs-theme="dark"]):has(:is(.tm-commerce-store, .tm-store-list-page, .tm-public-product-page.tm-commerce-ui)),
html:not([data-bs-theme="dark"]) body:has(:is(.tm-commerce-store, .tm-store-list-page, .tm-public-product-page.tm-commerce-ui)) { background-color: #fff; }
/* سبد خرید، قاب مشترک صفحات حساب را حفظ می‌کند و عرض محدود صفحات ویترین را نمی‌گیرد. */
body:has(.tm-commerce-ui) .tm-main-layout-container.container:not(:has(#shoppingUnifiedCartRoot)) { max-width: 1240px; }
body:has(.tm-commerce-ui) .footer { background: var(--tm-surface-bg); color: var(--tm-muted-color); font-size: 13px; }
.tm-commerce-ui { color: var(--tm-text-color); }
.tm-commerce-ui :is(h1, h2, h3, h4) { color: var(--tm-head-color); font-weight: 700; line-height: 1.65; }
.tm-commerce-ui :is(p, li, dd, h1, h2, h3, h4) { overflow-wrap: anywhere; }
.tm-commerce-ui :is(.small, small):where(:not(#productCommentsPanel *)) { font-size: 14px; }
.tm-commerce-ui .btn:where(:not(#productCommentsPanel *)) {
    min-height: 44px;
    border-radius: .625rem;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    padding: .55rem 1rem;
}
.tm-commerce-ui :is(.btn-primary, .tm-product-add-cart-btn, .shopping-create-checkout-btn.btn-success) {
    --bs-btn-bg: var(--tm-color-primary);
    --bs-btn-border-color: var(--tm-color-primary);
    --bs-btn-hover-bg: var(--tm-color-primary-hover);
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-disabled-bg: var(--tm-color-primary);
    --bs-btn-disabled-border-color: var(--tm-color-primary);
}
.tm-commerce-ui .btn-outline-primary:where(:not(#productCommentsPanel *)) {
    --bs-btn-color: var(--tm-commerce-accent);
    --bs-btn-border-color: var(--tm-border-color);
    --bs-btn-hover-bg: var(--tm-commerce-accent-soft);
    --bs-btn-hover-color: var(--tm-commerce-accent);
    --bs-btn-hover-border-color: var(--tm-commerce-accent);
    --bs-btn-active-bg: var(--tm-commerce-accent-soft);
    --bs-btn-active-color: var(--tm-commerce-accent);
}
.tm-commerce-ui :is(.card, .alert) { border-radius: 1rem; }
.tm-app .tm-commerce-ui .card { border-radius: 1rem !important; }
.tm-commerce-ui .card { --bs-card-bg: var(--tm-surface-bg); --bs-card-border-color: var(--tm-border-color); }
.tm-commerce-ui .alert { font-size: 14px; line-height: 1.9; }
.tm-commerce-ui :is(.form-control, .form-select):where(:not(#productCommentsPanel *)) { font-size: 15px; }
.tm-commerce-ui :is(a, button, input, select):where(:not(#productCommentsPanel *)):focus-visible { outline: 3px solid var(--tm-commerce-accent); outline-offset: 3px; }

/* فهرست فروشگاه‌ها: تصویر افقی و محتوای خوانا، بدون تغییر کلیک و بارگذاری تدریجی. */
.tm-commerce-ui .tm-store-list-hero {
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--tm-color-primary) 16%, var(--tm-border-color));
    border-radius: 1.25rem;
    background: linear-gradient(120deg, rgb(13 110 253 / 6%), transparent 54%, rgb(13 110 253 / 2%)), var(--tm-surface-bg);
    box-shadow: 0 3px 8px rgb(15 23 42 / 3%), 0 14px 32px rgb(13 110 253 / 4%), inset 0 1px 0 var(--tm-commerce-highlight);
    color: var(--tm-head-color);
}
.tm-commerce-ui .tm-store-list-hero h1 { font-size: 34px; color: var(--tm-head-color); margin: .4rem 0 0; }
.tm-commerce-ui .tm-store-list-kicker { color: var(--tm-commerce-accent); background: var(--tm-surface-bg); border-color: var(--tm-border-color); font-weight: 500; }
.tm-commerce-ui .tm-store-list-card {
    display: flex;
    flex-direction: column;
    border-color: var(--tm-border-color);
    border-radius: 1rem;
    background: var(--tm-surface-bg);
    box-shadow: var(--tm-commerce-shadow);
}
.tm-commerce-ui .tm-store-list-card-media { min-height: 0; height: 170px; padding: 1rem; background: var(--tm-commerce-soft); }
.tm-commerce-ui .tm-store-list-card-media img { width: auto; height: 100%; max-width: 100%; aspect-ratio: 1; }
.tm-commerce-ui .tm-store-list-card-body { padding: 1.5rem; display: flex; flex: 1; flex-direction: column; }
.tm-commerce-ui .tm-store-list-footer { margin-top: auto; padding-top: 1rem; gap: .75rem; flex-wrap: wrap; }
.tm-commerce-ui .tm-store-list-footer small { color: var(--tm-muted-color); font-weight: 400; }
.tm-commerce-ui .tm-store-list-hero p { color: var(--tm-muted-color); margin: .75rem 0 0; font-size: 16px; line-height: 1.9; }
.tm-commerce-ui .tm-store-list-section-title { margin: 1.75rem 0 1rem; font-size: 22px; }
.tm-commerce-ui .tm-store-list-card-body > .tm-store-list-footer { margin-top: auto; border-top: 1px solid var(--tm-border-color); }
.tm-commerce-ui .tm-store-list-card-body > :nth-last-child(2) { margin-bottom: 1.25rem; }

/* رنگ تصویر فقط سطوح تزئینی را رنگ‌آمیزی می‌کند؛ رنگ نوشته و محصول دست‌نخورده می‌ماند. */
.tm-commerce-ui [data-tm-image-palette].tm-has-image-palette {
    border-color: color-mix(in srgb, rgb(var(--tm-image-accent)) 26%, var(--tm-border-color));
    background: linear-gradient(180deg, rgb(var(--tm-image-accent) / 5%), rgb(var(--tm-image-accent) / 1%)), var(--tm-surface-bg);
}
.tm-commerce-ui .tm-has-image-palette :is(.tm-store-list-card-media, .tm-storefront-product-media, .tm-storefront-deal-media) {
    background: linear-gradient(135deg, rgb(var(--tm-image-accent) / 19%), rgb(var(--tm-image-accent) / 8%)), var(--tm-surface-bg);
}
.tm-commerce-ui .tm-has-image-palette .tm-store-list-footer { border-color: color-mix(in srgb, rgb(var(--tm-image-accent)) 22%, var(--tm-border-color)); }
[data-bs-theme="dark"] .tm-commerce-ui .tm-has-image-palette :is(.tm-store-list-card-media, .tm-storefront-product-media, .tm-storefront-deal-media) {
    background: linear-gradient(135deg, rgb(var(--tm-image-accent) / 27%), rgb(var(--tm-image-accent) / 12%)), var(--tm-surface-bg);
}
.tm-commerce-ui .tm-store-list-card h2 { font-size: 20px; color: var(--tm-head-color); }
.tm-commerce-ui .tm-store-list-card p { font-size: 15px; color: var(--tm-muted-color); line-height: 1.9; }
.tm-commerce-ui .tm-store-list-description-toggle { min-height: 44px; font-size: 14px; font-weight: 500; }
.tm-commerce-ui .tm-store-list-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.25rem 0 0; }
.tm-commerce-ui .tm-store-list-stats span { display: inline-flex; align-items: center; gap: .5rem; min-height: 2rem; border: 0; background: transparent; color: var(--tm-muted-color); font-size: 14px; font-weight: 400; }
.tm-commerce-ui .tm-store-list-stats strong { color: var(--tm-head-color); font-size: 18px; }
.tm-commerce-ui .tm-store-list-campaigns { margin-top: 1rem; }
.tm-commerce-ui .tm-store-list-campaigns span { background: var(--tm-commerce-accent-soft); color: var(--tm-commerce-accent); border-color: var(--tm-border-color); font-weight: 500; }

/* پوسته مشترک فروشگاه، تماس و درباره؛ سبد خرید مستقل است. */
.tm-commerce-store,
.tm-public-product-page.tm-commerce-ui {
    --tm-store-header-bg: linear-gradient(115deg, rgb(13 110 253 / 5%), transparent 56%, rgb(13 110 253 / 1%)), var(--tm-surface-bg);
    --tm-store-header-border: color-mix(in srgb, var(--tm-color-primary) 18%, var(--tm-border-color));
    --tm-store-header-shadow: 0 2px 6px rgb(15 23 42 / 3%), 0 12px 28px rgb(13 110 253 / 4%), inset 0 1px 0 var(--tm-commerce-highlight);
}
body:has(.tm-commerce-store) .tm-storefront-page { background: var(--tm-body-bg); }
html:not([data-bs-theme="dark"]) .tm-commerce-store.tm-storefront-page { background: #fff; }
body:has(.tm-commerce-store) .container-xxl { max-width: 1240px; }
body:has(.tm-commerce-store) .tm-storefront-hero { background: transparent; padding: 0 0 1rem; color: var(--tm-text-color); }
body:has(.tm-commerce-store) .tm-storefront-hero > .container-xxl > .row {
    padding: 1.5rem;
    margin: 0;
    border: 1px solid var(--tm-store-header-border);
    border-top: 2px solid var(--tm-color-primary);
    border-radius: 1.125rem;
    background: var(--tm-store-header-bg);
    box-shadow: var(--tm-store-header-shadow);
}
body:has(.tm-commerce-store) .tm-storefront-hero > .container-xxl > .row > [class*="col-"] { margin-top: 0; }
body:has(.tm-commerce-store) .tm-storefront-identity { grid-template-columns: 76px minmax(0, 1fr); }
body:has(.tm-commerce-store) .tm-storefront-logo { width: 76px; height: 76px; border: 1px solid var(--tm-store-header-border); border-radius: 1rem; box-shadow: 0 5px 16px rgb(13 110 253 / 12%); }
body:has(.tm-commerce-store) .tm-storefront-title { font-size: 28px; line-height: 1.7; color: var(--tm-head-color); }
body:has(.tm-commerce-store) .tm-storefront-title a:is(:hover, :focus-visible) { color: var(--tm-commerce-accent); }
body:has(.tm-commerce-store) .tm-storefront-desc { color: var(--tm-muted-color); font-size: 15px; }
body:has(.tm-commerce-store) :is(.tm-storefront-domain, .tm-storefront-panel-kicker) { background: var(--tm-commerce-subtle); color: var(--tm-muted-color); border-color: var(--tm-border-color); font-size: 13px; font-weight: 500; }
body:has(.tm-commerce-store) :is(.tm-storefront-report-btn, .tm-storefront-social-link) { width: 44px; height: 44px; color: var(--tm-muted-color); background: var(--tm-commerce-subtle); border-color: var(--tm-border-color); }
/* سطح دیداری کوچک‌تر است، اما محدوده لمس ۴۴ پیکسلی و رفتار لینک حفظ می‌شود. */
body:has(.tm-commerce-store) .tm-storefront-social-link {
    --tm-social-brand-color: var(--tm-color-primary);
    color: var(--tm-social-brand-color);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
body:has(.tm-commerce-store) .tm-storefront-social-link:has(.bi-instagram) { --tm-social-brand-color: #c0266f; }
body:has(.tm-commerce-store) .tm-storefront-social-link:has(.bi-telegram) { --tm-social-brand-color: #087bb5; }
body:has(.tm-commerce-store) .tm-storefront-social-link:has(.bi-whatsapp) { --tm-social-brand-color: #148447; }
body:has(.tm-commerce-store) .tm-storefront-social-link:has(.bi-facebook) { --tm-social-brand-color: #0866ff; }
body:has(.tm-commerce-store) .tm-storefront-social-link:has(.bi-twitter-x) { --tm-social-brand-color: var(--tm-text-color); }
body:has(.tm-commerce-store) .tm-storefront-social-link > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid color-mix(in srgb, var(--tm-social-brand-color) 20%, var(--tm-border-color));
    border-radius: .5rem;
    color: var(--tm-social-brand-color);
    background: color-mix(in srgb, var(--tm-social-brand-color) 5%, var(--tm-surface-bg));
    box-shadow: 0 2px 4px rgb(15 23 42 / 5%), inset 0 1px 0 var(--tm-commerce-highlight);
    font-size: 17px;
    line-height: 1;
}
body:has(.tm-commerce-store) .tm-storefront-social-link:is(:hover, :focus-visible) { color: var(--tm-social-brand-color); background: transparent; border-color: transparent; box-shadow: none; }
body:has(.tm-commerce-store) .tm-storefront-social-link:is(:hover, :focus-visible) > i { border-color: var(--tm-social-brand-color); background: color-mix(in srgb, var(--tm-social-brand-color) 9%, var(--tm-surface-bg)); }
[data-bs-theme="dark"] body:has(.tm-commerce-store) .tm-storefront-social-link:has(.bi-instagram) { --tm-social-brand-color: #f078af; }
[data-bs-theme="dark"] body:has(.tm-commerce-store) .tm-storefront-social-link:has(.bi-telegram) { --tm-social-brand-color: #62c4f1; }
[data-bs-theme="dark"] body:has(.tm-commerce-store) .tm-storefront-social-link:has(.bi-whatsapp) { --tm-social-brand-color: #61d795; }
[data-bs-theme="dark"] body:has(.tm-commerce-store) .tm-storefront-social-link:has(.bi-facebook) { --tm-social-brand-color: #80b1ff; }
body:has(.tm-commerce-store) .tm-storefront-socials { margin-top: .75rem; }
body:has(.tm-commerce-store) .tm-storefront-stats { margin-top: 1rem; gap: .75rem; }
body:has(.tm-commerce-store) .tm-storefront-stats > div { min-height: 0; padding: .5rem .75rem; border: 0; border-inline-start: 1px solid var(--tm-border-color); border-radius: 0; background: transparent; backdrop-filter: none; }
body:has(.tm-commerce-store) .tm-storefront-stats strong { color: var(--tm-head-color); font-size: 18px; }
body:has(.tm-commerce-store) .tm-storefront-stats span { color: var(--tm-muted-color); font-size: 13px; font-weight: 400; }
body:has(.tm-commerce-store) .tm-storefront-hero-panel { background: linear-gradient(145deg, rgb(13 110 253 / 2%), transparent 65%), var(--tm-surface-bg); padding: 1rem; border: 1px solid var(--tm-store-header-border); border-radius: .75rem; box-shadow: 0 2px 8px rgb(15 23 42 / 4%), inset 0 1px 0 var(--tm-commerce-highlight); backdrop-filter: none; }
body:has(.tm-commerce-store) .tm-storefront-panel-kicker { color: var(--tm-commerce-accent); background: var(--tm-surface-bg); border-color: var(--tm-store-header-border); }
body:has(.tm-commerce-store) .tm-storefront-hero-panel h2 { color: var(--tm-head-color); font-size: 17px; font-weight: 700; }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-campaign-list { gap: .35rem; }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-campaign-type { background: var(--tm-surface-bg); border-color: var(--tm-border-color); padding: .4rem .5rem; box-shadow: 0 1px 2px rgb(15 23 42 / 3%); }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-campaign-type.is-active { background: linear-gradient(110deg, rgb(13 110 253 / 3%), transparent), var(--tm-surface-bg); border-color: var(--tm-store-header-border); }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-campaign-type-head { color: var(--tm-muted-color); }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-campaign-type-head strong { color: var(--tm-head-color); font-size: 14px; font-weight: 500; }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-campaign-type-head :is(small, i) { color: var(--tm-muted-color); }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-campaign-type.is-active .tm-storefront-campaign-type-head > i { color: var(--tm-commerce-accent); }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-campaign-type.is-active .tm-storefront-campaign-type-head small { color: var(--tm-commerce-accent); }
.tm-main-layout-container:has(.tm-commerce-ui) :is(.tm-storefront-campaign-card, .tm-storefront-coupon-empty) { background: var(--tm-surface-bg); border-color: var(--tm-border-color); color: var(--tm-text-color); }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-campaign-copy small { color: var(--tm-muted-color); }
body:has(.tm-commerce-store) .tm-storefront-nav-band { padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
body:has(.tm-commerce-store) .tm-storefront-nav-shell { padding: .4rem .5rem; background: var(--tm-surface-bg); border: 1px solid var(--tm-border-color); border-radius: .75rem; }
body:has(.tm-commerce-store) :is(.tm-storefront-nav-link, .tm-storefront-mobile-menu-btn) { min-height: 44px; font-size: 14px; font-weight: 500; color: var(--tm-text-color); background: var(--tm-surface-bg); border-color: var(--tm-border-color); }
body:has(.tm-commerce-store) .tm-storefront-nav-link:is(.active, :hover, :focus-visible) { color: var(--tm-commerce-accent); background: var(--tm-commerce-accent-soft); border-color: var(--tm-border-color); }
.tm-commerce-ui .tm-store-footer { margin-top: 1.5rem; background: var(--tm-surface-bg); border-color: var(--tm-border-color); }
.tm-commerce-ui .tm-store-footer :is(p, a, span) { color: var(--tm-muted-color); }
.tm-commerce-ui .tm-store-footer-map-note { color: var(--tm-muted-color); }
.tm-commerce-ui .tm-store-footer :is(.tm-store-footer-heading h2, .tm-store-footer-about-title) { color: var(--tm-head-color); }
.tm-commerce-ui .tm-store-footer :is(.tm-store-footer-section, .tm-store-footer-bottom, .tm-store-footer-map) { border-color: var(--tm-border-color); }
.tm-commerce-ui .tm-store-footer a:is(:hover, :focus-visible) { color: var(--tm-commerce-accent); }
.tm-public-product-page .tm-store-footer > .container-xxl { padding-inline: 0; }

/* هدر محصول فقط هویت و لینک‌های فروشگاه را نشان می‌دهد؛ گالری و کنترل‌های خرید دست‌نخورده‌اند. */
.tm-commerce-ui .tm-storefront-compact-header { background: var(--tm-store-header-bg); border: 1px solid var(--tm-store-header-border); border-top: 2px solid var(--tm-color-primary); border-radius: 1.125rem; box-shadow: var(--tm-store-header-shadow); }
.tm-commerce-ui .tm-storefront-compact-logo { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--tm-store-header-border); border-radius: .875rem; box-shadow: 0 5px 16px rgb(13 110 253 / 12%); }
.tm-commerce-ui .tm-storefront-compact-name { display: block; color: var(--tm-head-color); font-size: 21px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.tm-commerce-ui .tm-storefront-compact-name:is(:hover, :focus-visible) { color: var(--tm-commerce-accent); }
.tm-commerce-ui .tm-storefront-compact-domain { color: var(--tm-commerce-accent); font-size: 13px; overflow-wrap: anywhere; }
/* لینک دامنه همان فونت متن قبلی را دارد؛ از استایل لینک عنوان فروشگاه ارث نمی‌برد. */
.tm-app a.tm-store-domain-link { font: inherit; }
.tm-commerce-ui .tm-store-domain-label { display: inline-block; max-width: 100%; font-family: Tahoma, sans-serif; font-size: 13px; font-weight: 400; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; vertical-align: middle; }
.tm-commerce-ui .tm-store-list-domain { color: var(--tm-commerce-accent); margin-top: .25rem; }
.tm-commerce-ui .tm-storefront-domain { min-width: 0; max-width: 100%; }
.tm-commerce-ui .tm-storefront-domain > span { min-width: 0; }
/* فرصت‌ها به‌صورت Overlay باز می‌شوند تا ارتفاع هدر محصول تغییر نکند. */
.tm-commerce-ui .tm-storefront-inline-opportunities { display: grid; gap: .25rem; max-height: 6rem; overflow-y: auto; overscroll-behavior: contain; padding: .25rem; scrollbar-width: thin; }
.tm-commerce-ui .tm-storefront-inline-offer { display: flex; align-items: baseline; justify-content: flex-end; gap: .4rem; width: 100%; margin: 0; padding: .2rem .35rem; border: 0; border-radius: .375rem; background: transparent; color: var(--tm-text-color); font: inherit; font-size: 12px; line-height: 1.7; text-align: end; overflow-wrap: anywhere; }
.tm-commerce-ui button.tm-storefront-inline-offer { cursor: pointer; }
.tm-commerce-ui button.tm-storefront-inline-offer:hover { background: var(--tm-commerce-subtle); }
.tm-commerce-ui .tm-storefront-inline-offer > i { flex-shrink: 0; }
.tm-commerce-ui .tm-storefront-inline-opportunities:focus-visible { outline: 2px solid var(--tm-commerce-accent); outline-offset: 2px; border-radius: .375rem; }
/* حذف کادر آبی ضخیم جستجو؛ فوکوس با خط باریک خنثی همچنان قابل تشخیص است. */
.tm-commerce-store .tm-storefront-product-search .form-control:focus { border-color: var(--tm-border-color); box-shadow: none; outline: 1px solid var(--tm-muted-color); outline-offset: -1px; }

/* صفحات محتوایی از همان سطوح سفید، آبی و تایپوگرافی فروشگاه استفاده می‌کنند. */
.tm-commerce-store .tm-store-contact-public-page { background: transparent; }
.tm-commerce-store .tm-store-contact-public-body { padding-block: 1.5rem 2rem; }
.tm-commerce-store .tm-storefront-subpage-heading { border-color: var(--tm-border-color); flex-wrap: wrap; }
.tm-commerce-store .tm-storefront-subpage-heading span { color: var(--tm-commerce-accent); font-size: 14px; font-weight: 500; }
.tm-commerce-store .tm-storefront-subpage-heading h2 { color: var(--tm-head-color); font-size: 26px; font-weight: 700; }
.tm-commerce-store :is(.tm-store-contact-panel, .tm-store-contact-empty, .tm-store-about-public-card, .tm-store-contact-map-shell) { background: var(--tm-surface-bg); color: var(--tm-text-color); border: 1px solid var(--tm-border-color); border-radius: 1rem; box-shadow: var(--tm-commerce-shadow); }
.tm-commerce-store :is(.tm-store-contact-panel, .tm-store-about-public-card) { padding: 1.5rem; }
.tm-commerce-store .tm-store-about-public-card { max-width: none; }
.tm-commerce-store .tm-store-contact-panel h2 { font-size: 20px; font-weight: 700; color: var(--tm-head-color); }
.tm-commerce-store :is(.tm-store-contact-method, .tm-store-contact-address) { background: var(--tm-commerce-subtle); color: var(--tm-text-color); border-color: var(--tm-border-color); border-radius: .75rem; min-width: 0; }
.tm-commerce-store .tm-store-contact-method > span { min-width: 0; }
.tm-commerce-store .tm-store-contact-method:is(:hover, :focus-visible) { background: var(--tm-commerce-accent-soft); color: var(--tm-commerce-accent); border-color: var(--tm-commerce-accent); }
.tm-commerce-store :is(.tm-store-contact-method, .tm-store-contact-address, .tm-store-contact-empty) i { color: var(--tm-commerce-accent); }
.tm-commerce-store :is(.tm-store-contact-method, .tm-store-contact-address) small { color: var(--tm-muted-color); font-size: 13px; font-weight: 400; }
.tm-commerce-store :is(.tm-store-contact-method, .tm-store-contact-address) strong { font-size: 15px; font-weight: 500; }
.tm-commerce-store .tm-store-contact-address p { color: var(--tm-text-color); font-size: 15px; }
.tm-commerce-store .tm-store-contact-panel .btn-outline-success { --bs-btn-color: var(--bs-success-text-emphasis); --bs-btn-border-color: var(--bs-success-text-emphasis); }
.tm-commerce-store .tm-store-contact-map-note { background: var(--tm-commerce-accent-soft); color: var(--tm-commerce-accent); border-color: var(--tm-border-color); font-size: 14px; font-weight: 400; }
.tm-commerce-store .tm-store-about-content { color: var(--tm-text-color); font-size: 16px; line-height: 2.1; }
.tm-commerce-store .tm-store-about-public-icon { border-radius: .75rem; background: var(--tm-color-primary); }

/* رنگ منوی داخلی فروشگاه و محصول؛ منوی اصلی مشترک خارج از این scope است. */
.tm-main-layout-container:has(.tm-commerce-ui) :is(.tm-storefront-nav-link, .tm-storefront-mobile-menu-btn) { color: var(--tm-text-color); background: var(--tm-surface-bg); border-color: var(--tm-border-color); }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-nav-link:is(.active, :hover, :focus-visible) { color: var(--tm-commerce-accent); background: var(--tm-commerce-accent-soft); border-color: var(--tm-border-color); }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-submenu .dropdown-item small { color: var(--tm-muted-color); }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-submenu .dropdown-item.active { color: #fff; background: var(--tm-color-primary); }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-submenu .dropdown-item.active small { color: #fff; }
.tm-main-layout-container:has(.tm-commerce-ui) :is(.tm-store-footer-heading, .tm-storefront-products-head span, .tm-storefront-empty i, .tm-store-list-empty i) { color: var(--tm-commerce-accent); }
/* منوی پایین فروشگاه از استایل اصلی site.css پیروی می‌کند؛ بازطراحی فروشگاه آن را بازنویسی نمی‌کند. */
.tm-storefront-bottom-nav { font-family: var(--tm-navigation-font-family); line-height: 1.6; }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-offcanvas .offcanvas-header { border-color: var(--tm-border-color); }
.tm-main-layout-container:has(.tm-commerce-ui) :is(.tm-storefront-offcanvas .offcanvas-title, .tm-storefront-mobile-menu-btn strong) { color: var(--tm-head-color); }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-offcanvas .offcanvas-body { background: var(--tm-surface-alt-bg); }
.tm-main-layout-container:has(.tm-commerce-ui) :is(.tm-storefront-mobile-category-card, .tm-storefront-mobile-all, .tm-storefront-mobile-category-head, .tm-storefront-mobile-option) { color: var(--tm-text-color); background: var(--tm-surface-bg); border-color: var(--tm-border-color); }
.tm-main-layout-container:has(.tm-commerce-ui) :is(.tm-storefront-mobile-all, .tm-storefront-mobile-category-head, .tm-storefront-mobile-option) small { color: var(--tm-muted-color); }
.tm-main-layout-container:has(.tm-commerce-ui) .tm-storefront-mobile-category-card.active { border-color: var(--tm-commerce-accent); box-shadow: 0 10px 24px rgb(13 110 253 / 8%); }
.tm-main-layout-container:has(.tm-commerce-ui) :is(.tm-storefront-mobile-all, .tm-storefront-mobile-category-head, .tm-storefront-mobile-option).active { color: #fff; background: var(--tm-color-primary); border-color: var(--tm-color-primary); }
.tm-main-layout-container:has(.tm-commerce-ui) :is(.tm-storefront-mobile-all, .tm-storefront-mobile-category-head, .tm-storefront-mobile-option).active small { color: #fff; }

.tm-commerce-store .tm-storefront-section { padding-block: 1.5rem; }
.tm-commerce-store .tm-storefront-featured { background: transparent; color: var(--tm-text-color); padding-bottom: 0; }
.tm-commerce-store .tm-storefront-featured > .container-xxl { background: var(--tm-commerce-soft); border: 1px solid var(--tm-border-color); border-radius: 1rem; padding: 1.5rem; }
.tm-commerce-store :is(.tm-storefront-section-head, .tm-storefront-products-head) { align-items: center; flex-wrap: wrap; }
.tm-commerce-store :is(.tm-storefront-section-head, .tm-storefront-products-head) h2 { color: var(--tm-head-color); font-size: 22px; font-weight: 700; }
.tm-commerce-store .tm-storefront-section-head span { color: var(--tm-commerce-accent); font-weight: 500; }
.tm-commerce-store .tm-storefront-featured .btn-outline-light { --bs-btn-color: var(--tm-commerce-accent); --bs-btn-border-color: var(--tm-border-color); --bs-btn-hover-color: var(--tm-commerce-accent); --bs-btn-hover-bg: var(--tm-surface-bg); }
.tm-commerce-store :is(.tm-storefront-deal-card, .tm-storefront-product-card) { border-color: var(--tm-border-color); border-radius: 1rem; background: var(--tm-surface-bg); box-shadow: var(--tm-commerce-shadow); }
.tm-commerce-store .tm-storefront-deal-card { display: flex; align-items: center; padding: .75rem; gap: .75rem; }
.tm-commerce-store .tm-storefront-deal-media { width: 36%; max-width: 210px; flex: 0 0 36%; background: transparent; }
.tm-commerce-store .tm-storefront-deal-body { flex: 1; min-width: 0; padding: .5rem; }
.tm-commerce-store :is(.tm-storefront-deal-body, .tm-storefront-product-body) h3 { font-size: 19px; min-height: 0; font-weight: 700; color: var(--tm-head-color); }
.tm-commerce-store .tm-storefront-product-card { display: flex; flex-direction: column; }
.tm-commerce-store .tm-storefront-product-card:focus-within { outline: 2px solid var(--tm-commerce-accent); outline-offset: 3px; }
.tm-commerce-store :is(.tm-storefront-product-media, .tm-storefront-deal-media) { aspect-ratio: var(--tm-product-media-ratio); overflow: hidden; background: var(--tm-product-media-bg); }
.tm-commerce-store :is(.tm-storefront-product-media, .tm-storefront-deal-media) img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: var(--tm-product-media-fit); }
.tm-commerce-store .tm-storefront-product-media img { padding: 1rem; }
.tm-commerce-store .tm-storefront-product-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.tm-commerce-store .tm-storefront-product-category { color: var(--tm-muted-color); font-size: 13px; font-weight: 400; }
.tm-commerce-store .tm-storefront-product-footer { margin-top: auto; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
.tm-commerce-store .tm-storefront-price-row { display: flex; flex-direction: column; width: 100%; min-height: 0; align-items: flex-end; gap: 0; text-align: end; }
.tm-commerce-store .tm-storefront-price-row strong { font-size: 24px; color: var(--tm-head-color); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.tm-commerce-store .tm-storefront-price-row small { color: var(--tm-muted-color); font-size: 14px; font-weight: 400; line-height: 1.25; }
.tm-commerce-store .tm-storefront-discount-badge { min-width: 2.2rem; min-height: 1.8rem; border-radius: .5rem; box-shadow: none; background: var(--tm-commerce-warm-bg); color: var(--tm-commerce-warm-text); font-weight: 500; }
.tm-commerce-store .tm-storefront-countdown { background: var(--tm-commerce-warm-bg); color: var(--tm-commerce-warm-text); border-color: transparent; font-size: 14px; font-weight: 500; }
.tm-commerce-store .tm-storefront-sort { border-color: transparent; background: transparent; color: var(--tm-muted-color); font-size: 14px; font-weight: 500; border-radius: .5rem; min-height: 44px; }
.tm-commerce-store .tm-storefront-sort.active { color: var(--tm-commerce-accent); background: var(--tm-commerce-accent-soft); }
.tm-commerce-store .tm-storefront-sort-list { flex-wrap: wrap; min-width: 0; max-width: 100%; overflow: visible; }

/* محصول: همان گالری، انتخاب ترکیب، تعداد و وضعیت خرید در چیدمان متوازن. */
.tm-commerce-ui .tm-commerce-product-hero { box-shadow: var(--tm-commerce-shadow); border-color: var(--tm-border-color); }
.tm-commerce-ui :is(.tm-product-gallery-surface, .tm-product-info-surface) { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.tm-commerce-ui .tm-product-gallery-inner { padding: 0; }
.tm-commerce-ui .tm-product-main-carousel { background: var(--tm-commerce-subtle) !important; border-color: var(--tm-border-color) !important; }
.tm-commerce-ui .tm-product-thumb-strip { justify-content: safe center !important; }
.tm-commerce-ui .tm-product-thumb { width: 68px; min-width: 68px; flex-basis: 68px; height: 68px; min-height: 0; }
.tm-commerce-ui .tm-product-thumb.active { border-color: var(--tm-commerce-accent) !important; box-shadow: none !important; }
.tm-commerce-ui .tm-product-gallery-action-btn { width: 44px; height: 44px; background: var(--tm-commerce-subtle); border: 1px solid var(--tm-border-color); border-radius: .625rem; color: var(--tm-muted-color); }
.tm-commerce-ui .tm-product-title { font-size: 30px; line-height: 1.6; color: var(--tm-head-color); font-weight: 700; }
.tm-product-description-section { min-width: 0; color: var(--tm-text-color); font-size: 14px; line-height: 1.9; }
.tm-product-description-disclosure > summary, .tm-product-description-text { direction: rtl; text-align: justify; text-align-last: start; white-space: pre-line; overflow-wrap: anywhere; }
.tm-product-description-disclosure > summary { list-style: none; cursor: pointer; white-space: normal; }
.tm-product-description-preview, .tm-product-description-full { white-space: pre-line; }
.tm-product-description-disclosure > summary::-webkit-details-marker { display: none; }
.tm-product-description-more, .tm-product-description-less { display: inline; margin-inline-start: .35rem; color: var(--tm-color-primary); font-weight: 700; white-space: nowrap; }
.tm-product-description-full, .tm-product-description-less, .tm-product-description-disclosure[open] > summary .tm-product-description-preview, .tm-product-description-disclosure[open] .tm-product-description-more { display: none; }
.tm-product-description-disclosure[open] :is(.tm-product-description-full, .tm-product-description-less) { display: inline; }
.tm-product-description-disclosure > summary:focus-visible { outline: 2px solid var(--tm-color-primary); outline-offset: 3px; border-radius: .25rem; }
/* ارتفاع فقط هنگام انیمیشن محدود می‌شود؛ متن کامل و کنترل بومی قابل دسترسی باقی می‌مانند. */
.tm-product-description-disclosure.is-animating { overflow: hidden; }
html.tm-description-animating { overflow-anchor: none; }
.tm-product-description-disclosure[data-tm-description-single-line="true"] > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; text-align: start; }
.tm-product-description-disclosure[data-tm-description-single-line="true"] .tm-product-description-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; max-height: 1.9em; overflow: hidden; }
.tm-product-description-disclosure[data-tm-description-single-line="true"][open] .tm-product-description-preview { display: none; }
.tm-product-description-disclosure[data-tm-description-single-line="true"][open] .tm-product-description-full { display: block; min-width: 0; }
.tm-product-description-disclosure[data-tm-description-static] > summary { cursor: text; }
.tm-product-description-disclosure[data-tm-description-static] :is(.tm-product-description-more, .tm-product-description-less) { visibility: hidden; }
:root { --tm-commerce-font-family: "ZarMallCommerce", Tahoma, sans-serif; }
#productCommentsPanel {
    --tm-font-family: var(--tm-commerce-font-family);
    --bs-body-font-family: var(--tm-font-family);
    --bs-body-color: var(--tm-text-color);
    --bs-secondary-color: var(--tm-muted-color);
    font: 400 15px / 1.8 var(--tm-font-family);
}
#productCommentsPanel .tm-social-comment-compose :is(.tm-emoji-button, .tm-social-comment-send) {
    min-height: 44px;
}
#productCommentsPanel .tm-social-comments-modal-media,
#productCommentsPanel .tm-product-comments-media-carousel .carousel-item { background: var(--tm-product-media-bg); }
#productCommentsPanel .tm-social-comments-modal-media img { object-fit: var(--tm-product-media-fit, contain); object-position: center; }
#productCommentsPanel .tm-social-comments-actions [data-product-save-button] { margin-inline-start: auto; }
@media (min-width: 768px) {
    /* کنار ستون نظرها، تمام ارتفاع عکس برابر عرض آن است. */
    #productCommentsPanel:not(.d-none) {
        --tm-comments-side: clamp(320px, 34vw, 380px);
        --tm-comments-photo: min(700px, calc(100vw - 3rem - var(--tm-comments-side)), calc(100dvh - 3rem));
        width: calc(var(--tm-comments-photo) + var(--tm-comments-side));
        height: var(--tm-comments-photo);
        grid-template-columns: minmax(0, 1fr) var(--tm-comments-side);
    }
}
@media (max-width: 767.98px) {
    #productCommentsPanel:not(.d-none) { grid-template-rows: min(23dvh, 160px) minmax(0, 1fr); padding-top: 0; }
    #productCommentsPanel::before { display: none; }
    #productCommentsPanel > .tm-social-comments-modal-media {
        position: static; display: flex; grid-row: 1; width: 100%; height: 100%; border-radius: 0;
    }
    #productCommentsPanel .tm-social-comments-panel { grid-column: 1; grid-row: 2; }
    #productCommentsPanel .tm-social-comments-head { min-height: 2.8rem; padding: .3rem .75rem; }
    #productCommentsPanel .tm-social-comments-author { display: flex; text-align: start; }
    #productCommentsPanel .tm-social-comments-close { position: static; }
}
.tm-saved-detail-modal #productCommentsPanel:not(.d-none) {
    width: 100%; height: auto; grid-template: auto / minmax(0, 1fr); padding: 0;
}
.tm-saved-detail-modal #productCommentsPanel .tm-social-comments-panel { grid-area: 1 / 1; }
.tm-commerce-ui :is(.tm-product-store-link, .tm-product-meta-chip, .tm-product-plan-badge) { font-weight: 500; font-size: 13px; box-shadow: none; }
.tm-commerce-ui .tm-selected-combination-box { padding: .75rem 1rem; background: var(--tm-commerce-subtle); border-color: var(--tm-border-color); color: var(--tm-text-color); font-weight: 400; }
.tm-commerce-ui .tm-product-section-surface { background: var(--tm-surface-bg); border-color: var(--tm-border-color); color: var(--tm-text-color); box-shadow: var(--tm-commerce-shadow); }
.tm-commerce-ui .tm-product-buy-title { color: var(--tm-head-color); }
.tm-commerce-ui .tm-product-qty-row { background: var(--tm-surface-bg); border-color: var(--tm-border-color); }
.tm-commerce-ui .tm-public-store-menu-band { background: var(--tm-surface-bg); border-color: var(--tm-border-color); box-shadow: var(--tm-commerce-shadow); }
.tm-commerce-ui .tm-product-comments-mobile-trigger { color: var(--tm-text-color); }
.tm-social-actions.tm-product-comments-mobile-actions { justify-content: flex-start; }
.tm-commerce-ui .tm-product-like-button:not([aria-checked="true"]):not(.is-liked) { color: var(--tm-text-color); }
.tm-commerce-ui .tm-product-public-prop { background: var(--tm-commerce-subtle); border-color: var(--tm-border-color); }
.tm-commerce-ui .tm-product-public-prop-title { color: var(--tm-muted-color); }
.tm-commerce-ui .tm-product-public-prop-value { color: var(--tm-text-color); }
.tm-commerce-ui .tm-product-buy-card { position: static; background: var(--tm-commerce-soft); border: 1px solid var(--tm-border-color); border-radius: .75rem; box-shadow: none; }
.tm-commerce-ui .tm-product-price-box { display: flex; flex-direction: column; align-items: flex-end; gap: 0; text-align: end; padding: 0; margin: 0; border: 0; }
/* فضای انتخاب ترکیب و خرید مشترک است؛ ارتفاع هر بخش فقط تابع محتوای واقعی است. */
.tm-commerce-ui .tm-product-title-block { padding-bottom: .5rem; }
.tm-commerce-ui .tm-product-detail-pane:empty { display: none; }
.tm-commerce-ui .tm-product-selectors { margin-bottom: 0 !important; }
.tm-commerce-ui .tm-product-buy-card .tm-product-cart-controls { margin-top: .5rem; }
@media (min-width: 576px) {
    .tm-commerce-ui .tm-product-side-column .tm-product-selectors .col-md-6 { width: 50%; max-width: 50%; flex: 0 0 50%; }
}
@media (max-width: 991.98px) {
    .tm-commerce-ui .tm-product-main-ratio::before { padding-top: min(82%, 360px); }
}
.tm-commerce-ui #jsPriceCurrent { font-size: 28px; color: var(--tm-head-color); line-height: 1.2; font-weight: 700; margin: 0; }
.tm-commerce-ui #jsPriceOld { min-height: 0; margin: 0; line-height: 1.25; }
.tm-commerce-ui .tm-product-stock-row { border: 0; margin: 0; padding: 0; }
.tm-commerce-ui :is(.tm-product-discount-badge, .tm-product-discount-percent) { background: var(--tm-commerce-warm-bg); color: var(--tm-commerce-warm-text); box-shadow: none; font-weight: 500; }
.tm-commerce-ui .tm-product-cart-controls { gap: .75rem; }
.tm-app .tm-commerce-ui .tm-product-add-cart-btn { font-size: 15px; background-color: var(--bs-btn-bg) !important; border-color: var(--bs-btn-border-color) !important; }
.tm-app .tm-commerce-ui .tm-product-add-cart-btn:is(:hover, :focus-visible) { background-color: var(--bs-btn-hover-bg) !important; border-color: var(--bs-btn-hover-border-color) !important; }
.tm-app .tm-commerce-ui .tm-product-add-cart-btn:disabled { background-color: var(--bs-btn-disabled-bg) !important; border-color: var(--bs-btn-disabled-border-color) !important; }
.tm-commerce-ui .tm-product-discount-grid { grid-template-columns: minmax(0, 1fr); }
.tm-commerce-ui .tm-product-discount-card { background: var(--tm-surface-bg); border-color: var(--tm-border-color); border-radius: .75rem; box-shadow: none; }

/* سبد: scope هر فروشگاه و جدول پنج‌ستونه/کنترل‌های ساخته‌شده با AJAX بدون تغییر می‌مانند. */
#shoppingUnifiedCartRoot.tm-commerce-ui { padding-inline: 0; }
.tm-commerce-ui .tm-cart-page-heading { margin-bottom: 1.25rem !important; gap: 1rem; flex-wrap: wrap; }
.tm-commerce-ui .tm-cart-page-heading h1 { font-size: 30px; }
.tm-commerce-ui .tm-cart-global-summary { border: 1px solid var(--tm-border-color) !important; box-shadow: none !important; margin-bottom: 1.5rem !important; }
.tm-commerce-ui .tm-cart-global-summary .card-body { padding: 1.25rem 1.5rem; }
.tm-commerce-ui .tm-cart-global-summary dl { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: .75rem 1rem; margin-inline: 0; font-size: 14px; line-height: 1.9; }
.tm-commerce-ui .tm-cart-global-summary dl > :is(dt, dd) { width: auto; padding: 0; margin: 0; }
.tm-commerce-ui .tm-cart-global-summary :is(dt, dd) { margin-bottom: .5rem; }
.tm-commerce-ui .tm-cart-global-summary dt { font-weight: 400; }
.tm-commerce-ui .shopping-store-group { background: transparent; box-shadow: none !important; margin-bottom: 2rem !important; }
.tm-commerce-ui .shopping-store-group > .card-header { background: var(--tm-surface-bg) !important; color: var(--tm-head-color) !important; border: 1px solid var(--tm-border-color); border-color: var(--tm-border-color) !important; border-radius: 1rem 1rem 0 0; padding: 1rem 1.25rem; }
.tm-commerce-ui .shopping-store-group > .card-header .text-white { color: var(--tm-head-color) !important; }
.tm-commerce-ui .tm-cart-store-layout { margin-top: 0; margin-inline: 0; }
.tm-commerce-ui .tm-cart-items-panel { background: var(--tm-surface-bg); border: 1px solid var(--tm-border-color); border-radius: 1rem; overflow: hidden; }
.tm-commerce-ui .tm-cart-settings-panel { margin-top: 1.25rem; padding: 1.25rem; background: var(--tm-surface-bg) !important; border: 1px solid var(--tm-border-color); border-radius: 1rem; }
.tm-commerce-ui .tm-cart-store-summary-panel { height: auto !important; padding: 1.25rem !important; background: var(--tm-surface-bg); border: 1px solid var(--tm-border-color) !important; border-top: 3px solid var(--tm-commerce-accent) !important; border-radius: 1rem !important; box-shadow: var(--tm-commerce-shadow); }
.tm-commerce-ui .tm-cart-store-summary-panel dl { font-size: 14px; line-height: 1.9; }
.tm-commerce-ui .tm-cart-store-summary-panel dt { font-weight: 400; }
.tm-commerce-ui .tm-cart-store-summary-panel :is(dt, dd) { margin-bottom: .8rem; }
.tm-commerce-ui .tm-cart-store-summary-panel dd.text-danger { color: var(--bs-success-text-emphasis) !important; }
.tm-commerce-ui .tm-shopping-cart-table { --bs-table-bg: var(--tm-surface-bg); --bs-table-color: var(--tm-text-color); margin-bottom: 0; font-size: 14px; }
.tm-commerce-ui .tm-shopping-cart-table thead { --bs-table-bg: var(--tm-commerce-subtle); --bs-table-color: var(--tm-muted-color); }
.tm-commerce-ui .tm-shopping-cart-table th { padding: .85rem .6rem; font-size: 13px; font-weight: 500; }
.tm-commerce-ui .tm-shopping-cart-table > thead > tr > th { background: var(--tm-commerce-subtle); color: var(--tm-muted-color); }
.tm-commerce-ui .tm-shopping-cart-table td { padding: 1.1rem .65rem; }
.tm-commerce-ui .tm-shopping-cart-table [data-role="item-image"] { width: 76px !important; height: 76px !important; object-fit: contain !important; background: var(--tm-commerce-subtle); border-radius: .625rem; }
.tm-commerce-ui .tm-shopping-cart-table [data-role="item-name"] { font-size: 15px; font-weight: 700; color: var(--tm-head-color) !important; }
.tm-commerce-ui :is(.shopping-qty-btn, .shopping-remove-item-btn) { min-width: 44px; padding: .4rem; }
.tm-commerce-ui .shopping-qty-input { min-width: 3rem; }
/* منوی پنل فضای جدول سبد را محدود می‌کند؛ کنترل تعداد یک ردیف می‌ماند و جدول در کادر خودش پیمایش می‌شود. */
.tm-commerce-ui .tm-shopping-cart-quantity-cell .input-group { flex-wrap: nowrap; }
@media (min-width: 768px) {
    #shoppingUnifiedCartRoot .tm-shopping-cart-table { min-width: 760px; }
    .tm-commerce-ui .tm-shopping-cart-quantity-cell { min-width: 160px; }
}

/* فونت منوی حساب در سبد خرید نیز از قرارداد ثابت ناوبری پیروی می‌کند. */
.tm-app :is(.tm-sidebar-panel, .tm-sidebar-offcanvas, .tm-sidebar-mobile-trigger) {
    --tm-font-family: var(--tm-navigation-font-family);
    font-family: var(--tm-navigation-font-family);
    line-height: 1.6;
}
.tm-commerce-ui .tm-cart-store-settings > .form-label { font-size: 16px; font-weight: 700; }
.tm-commerce-ui .shopping-discount-code-box { padding: 1rem !important; border-radius: .75rem !important; }

@media (max-width: 1199.98px) {
    body:has(.tm-commerce-store) .tm-storefront-hero > .container-xxl > .row { gap: 1.25rem 0; }
}
@media (min-width: 992px) {
    .tm-commerce-store #tmStorefrontProductGrid:not(:has(> :nth-child(3))) > [class*="col-"] { width: 50%; }
    .tm-commerce-store .tm-storefront-featured .row > [class*="col-"]:only-child { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .tm-commerce-ui .tm-cart-store-layout > .tm-cart-store-main,
    .tm-commerce-ui .tm-cart-store-layout > .tm-cart-store-aside { width: 100%; }
}
@media (max-width: 767.98px) {
    .tm-commerce-ui .tm-cart-global-summary dl { grid-template-columns: minmax(0, 1fr) auto; }
    /* حفظ معنای جدول و هر پنج ستون؛ نام ستون از عنوان ثابت فعلی و بدون وابستگی JS. */
    #shoppingUnifiedCartRoot.tm-commerce-ui .tm-shopping-cart-table { min-width: 0; table-layout: auto; }
    .tm-commerce-ui .tm-shopping-cart-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .tm-commerce-ui .tm-shopping-cart-table tbody { display: block; }
    .tm-commerce-ui .tm-shopping-cart-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; padding: 1.25rem; border-bottom: 1px solid var(--tm-border-color); }
    .tm-commerce-ui .tm-shopping-cart-table td { display: block; width: auto !important; min-width: 0; padding: 0; border: 0; text-align: start !important; }
    .tm-commerce-ui .tm-shopping-cart-table td:first-child { grid-column: 1 / -1; }
    #shoppingUnifiedCartRoot.tm-commerce-ui .tm-shopping-cart-table td:last-child { position: static; box-shadow: none; width: auto; background: transparent; }
    .tm-commerce-ui .tm-shopping-cart-table td:nth-child(2)::before { content: "قیمت واحد"; }
    .tm-commerce-ui .tm-shopping-cart-table td:nth-child(3)::before { content: "تعداد"; }
    .tm-commerce-ui .tm-shopping-cart-table td:nth-child(4)::before { content: "جمع"; }
    .tm-commerce-ui .tm-shopping-cart-table td:nth-child(n+2)::before { display: block; font-size: 13px; color: var(--tm-muted-color); margin-bottom: .5rem; }
    .tm-commerce-ui .tm-shopping-cart-table td:last-child { align-self: end; }
    .tm-commerce-ui .tm-shopping-cart-quantity-cell { max-width: 100%; }
    .tm-commerce-ui .tm-shopping-cart-quantity-cell .input-group { flex-wrap: nowrap; }
    #shoppingUnifiedCartRoot.tm-commerce-ui .tm-shopping-cart-quantity-cell .shopping-qty-btn { min-width: 36px; width: 36px; flex: 0 0 36px; }
    #shoppingUnifiedCartRoot.tm-commerce-ui .tm-shopping-cart-quantity-cell .shopping-qty-input { min-width: 2rem; width: 2rem; flex: 1 1 2rem; padding-inline: .2rem; }
}
@media (max-width: 575.98px) {
    .tm-main-layout-container:has(.tm-commerce-ui) { font-size: 15px; }
    .tm-commerce-ui .tm-storefront-compact-name { font-size: 18px; }
    .tm-commerce-ui .tm-storefront-compact-logo { width: 56px; height: 56px; }
    .tm-commerce-store .tm-storefront-subpage-heading h2 { font-size: 22px; }
    .tm-commerce-store :is(.tm-store-contact-panel, .tm-store-about-public-card) { padding: 1.25rem; }
    .tm-commerce-ui .tm-store-list-hero { padding: 1.5rem; }
    .tm-commerce-ui .tm-store-list-hero h1 { font-size: 28px; }
    .tm-commerce-ui .tm-store-list-card-media { height: 145px; }
    .tm-commerce-ui .tm-store-list-card-body { padding: 1.25rem; }
    body:has(.tm-commerce-store) .tm-storefront-hero > .container-xxl > .row { padding: 1.25rem .5rem; }
    body:has(.tm-commerce-store) .tm-storefront-identity { grid-template-columns: 56px minmax(0, 1fr); gap: .75rem; }
    body:has(.tm-commerce-store) .tm-storefront-logo { width: 56px; height: 56px; }
    body:has(.tm-commerce-store) .tm-storefront-title { font-size: 22px; }
    body:has(.tm-commerce-store) .tm-storefront-stats { gap: .25rem; }
    body:has(.tm-commerce-store) .tm-storefront-stats > div { padding: .35rem .4rem; }
    body:has(.tm-commerce-store) .tm-storefront-stats span { font-size: 12px; }
    .tm-commerce-store .tm-storefront-featured > .container-xxl { width: calc(100% - 1.5rem); padding: 1.25rem; }
    .tm-commerce-store .tm-storefront-deal-card { flex-wrap: wrap; gap: .5rem; }
    .tm-commerce-store .tm-storefront-deal-media { width: 100%; max-width: 210px; margin-inline: auto; flex-basis: 100%; }
    .tm-commerce-store .tm-storefront-deal-body { flex-basis: 100%; padding: .5rem; }
    .tm-commerce-store .tm-storefront-price-row strong { font-size: 23px; }
    .tm-commerce-store .tm-storefront-sort { font-size: 13px; padding: .4rem .5rem; }
    .tm-commerce-ui .tm-product-title { font-size: 24px; }
    .tm-commerce-ui #jsPriceCurrent { font-size: 26px; }
    .tm-commerce-ui .tm-product-thumb { width: 56px; min-width: 56px; flex-basis: 56px; height: 56px; }
    .tm-commerce-ui .tm-cart-page-heading h1 { font-size: 24px; }
    .tm-commerce-ui .tm-cart-global-summary .card-body { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .tm-commerce-ui :is(.tm-store-list-card, .tm-storefront-deal-card, .tm-storefront-product-card) { transition: none; transform: none; }
}

@media (max-width: 575.98px) {
    .tm-site-announcement-banner .container-fluid {
        align-items: flex-start !important;
        font-size: .875rem;
    }

    .tm-site-announcement-modal .modal-dialog {
        width: 100%;
        margin: auto;
    }
}
/* تاریخچه‌های بلند: رندر محتوای خارج viewport به تعویق می‌افتد؛ دسترسی به تمام سوابق محفوظ است. */
.tm-panel-ui .tm-history-entry {
    content-visibility: auto;
    contain-intrinsic-size: auto 32rem;
}

.tm-panel-ui .tm-history-entry dd {
    overflow-wrap: anywhere;
    min-width: 0;
}

/* مودال اسکرولی تاریخچه در مرز breakpoint نیز کاملاً داخل viewport می‌ماند. */
.tm-panel-ui .tm-history-modal .modal-dialog {
    height: calc(100dvh - 2rem);
    min-height: 0;
    margin-block: 1rem;
}

/* آرم داخل کادر متن است و فضای آن از متن و برچسب جدا نگه داشته می‌شود. */
.tm-panel-ui .tm-field-with-logo:has(> .tm-field-logo:not([hidden])) > .form-control,
.tm-panel-ui .tm-field-with-logo:has(> .tm-field-logo:not([hidden])) > .form-select {
    padding-inline-end: 3.25rem !important;
}
.tm-panel-ui .tm-field-with-logo > .tm-field-logo {
    position: absolute;
    inset-inline-end: .75rem;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain;
    pointer-events: none;
}
/* شماره‌های چپ‌به‌راست نیز جای آرمِ سمت چپ را خالی می‌گذارند. */
.tm-panel-ui .tm-field-with-logo:has(> .tm-field-logo:not([hidden])) > .form-control[dir="ltr"] {
    padding-inline-start: 3.25rem !important;
    padding-inline-end: .75rem !important;
}
.tm-panel-ui .tm-field-with-logo:has(> .tm-field-logo:not([hidden])) > .form-select {
    padding-inline-end: 4.75rem !important;
}
.tm-panel-ui .tm-field-with-logo:has(> .form-select) > .tm-field-logo {
    inset-inline-end: 2.25rem;
}

/* پیشوند شبا بیرون مقدار ورودی می‌ماند؛ جای آرم بانک و متن عددی مستقل است. */
#bankAccountForm .tm-bank-sheba > .form-control {
    padding-inline-start: 2.5rem !important;
    text-align: left !important;
}
#bankAccountForm .tm-bank-sheba-prefix {
    position: absolute;
    left: .75rem;
    bottom: .625rem;
    font-size: .875rem;
    line-height: 1.5;
    pointer-events: none;
}
#bankAccountForm .tm-bank-sheba:has(> .tm-field-logo:not([hidden])) > .form-control {
    padding-inline-start: 5rem !important;
}
#bankAccountForm .tm-bank-sheba:has(> .tm-field-logo:not([hidden])) > .tm-bank-sheba-prefix {
    left: 3.25rem;
}

/* جزئیات و پیش‌نمایش اسناد در پنل؛ بدون وابستگی به عرض صفحه. */
.tm-panel-ui .tm-receipt-preview { max-height: 65vh; object-fit: contain; }
.tm-panel-ui .tm-document-preview { width: 100%; height: 65vh; min-height: 20rem; }
.tm-panel-ui .tm-detail-list > dd { overflow-wrap: anywhere; }
/* عنوان هر مشخصه بالای مقدار خودش می‌ماند؛ متن‌های بلند به ستون مجاور وارد نمی‌شوند. */
.tm-panel-ui .tm-plan-payment-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    align-items: stretch;
    gap: .75rem;
    text-align: start;
}
.tm-panel-ui .tm-plan-payment-facts > div {
    background: var(--bs-tertiary-bg);
    padding: .75rem 1rem;
    border-radius: .65rem;
}
.tm-panel-ui .tm-detail-grid > div { min-width: 0; }
.tm-panel-ui .tm-detail-grid dt { color: var(--tm-muted-color); font-size: .78rem; margin-bottom: .35rem; }
.tm-panel-ui .tm-detail-grid dd { margin: 0; font-size: .9rem; line-height: 1.9; overflow-wrap: anywhere; }
.tm-panel-ui .tm-table-grid > :not(caption) > * > * { border-inline: 1px solid var(--tm-table-row-separator-color, #cad7e8); }

.tm-panel-ui table.tm-table-grid { min-width: 60rem; }

/* گزارش گیرندگان: نام و مشخصات فروشگاه باید خوانا بمانند؛ اسکرول فقط در قاب جدول است. */
@media (min-width: 768px) {
    .tm-panel-ui table.tm-recipient-table { min-width: 75rem; table-layout: auto; }
    .tm-panel-ui .tm-recipient-table th { white-space: nowrap; }
    .tm-panel-ui .tm-recipient-table td:nth-child(2) { min-width: 9rem; white-space: nowrap; }
    .tm-panel-ui .tm-recipient-table td:nth-child(3) { min-width: 15rem; }
    .tm-panel-ui .tm-recipient-table td:nth-child(4) { min-width: 20rem; }
    .tm-panel-ui .tm-recipient-table td:nth-child(6) { min-width: 12rem; }
    .tm-panel-ui .tm-recipient-table td:nth-child(7) { white-space: nowrap; }
}

/* نمای کلی شخصی: تمام ظاهر نمودار و کارت‌ها در Design System مرکزی نگهداری می‌شود. */
.tm-panel-ui .tm-overview-page { --tm-overview-accent: #2474dc; }
.tm-panel-ui .tm-page-header.tm-overview-hero {
    display: block;
    color: #fff;
    background: radial-gradient(ellipse at 0% 0%, #3178b9 0%, transparent 62%), linear-gradient(120deg, #16436c, #102c4e) !important;
    border: 1px solid #22496e !important;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 45, 78, .13);
}
.tm-panel-ui .tm-overview-hero p { color: #d7e6f5; max-width: 38rem; }
.tm-panel-ui .tm-overview-eyebrow { display: flex; align-items: center; gap: .5rem; color: #d0e8ff; font-size: .8rem; }
.tm-panel-ui .tm-overview-live-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #8de1cb; }
.tm-panel-ui .tm-overview-date { display: inline-flex; gap: .5rem; align-items: center; font-size: .8rem; padding: .5rem .75rem; border: 1px solid rgba(255,255,255,.25); border-radius: .65rem; background: rgba(255,255,255,.07); }
.tm-panel-ui .tm-overview-tabs { display: inline-flex; padding: .3rem; gap: .25rem; background: var(--tm-surface-bg); border: 1px solid var(--tm-border-color); border-radius: .85rem; }
.tm-panel-ui .tm-overview-tabs .nav-link { border-radius: .6rem; min-width: 7rem; text-align: center; }
.tm-panel-ui .tm-overview-tabs .nav-link:not(.active) { color: var(--tm-muted-color); }
.tm-panel-ui .tm-overview-filter { border-radius: .85rem; }
.tm-panel-ui .tm-overview-page :is(a.card, .tm-overview-store-link, .tm-overview-status-row, .tm-overview-insight) { color: var(--tm-text-color); text-decoration: none; }
.tm-panel-ui .tm-overview-page :is(a.card, .tm-overview-store-link) { transition: border-color .18s ease, box-shadow .18s ease; }
.tm-panel-ui .tm-overview-page :is(a.card, .tm-overview-store-link):is(:hover,:focus-visible) { border-color: var(--tm-overview-accent); box-shadow: 0 4px 18px rgba(30, 79, 132, .11); }
.tm-panel-ui .tm-overview-feature { border-radius: .85rem; border-top: 3px solid var(--tm-overview-accent); }
.tm-panel-ui .tm-overview-feature-profit { border-top-color: #19856b; }
.tm-panel-ui .tm-overview-amount { font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 800; line-height: 1.6; overflow-wrap: anywhere; }
.tm-panel-ui .tm-overview-amount > span { font-size: .8rem; font-weight: 400; color: var(--tm-muted-color); }
.tm-panel-ui .tm-overview-metric { border-radius: .85rem; }
.tm-panel-ui .tm-overview-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; flex: 0 0 2.6rem; border-radius: .7rem; color: var(--tm-overview-accent); background: var(--tm-nav-hover-bg); font-size: 1.15rem; }
.tm-panel-ui .tm-overview-count { font-weight: 800; font-size: 1.8rem; margin-bottom: .25rem; overflow-wrap: anywhere; }
.tm-panel-ui .tm-overview-chart-frame { width: 100%; min-width: 0; line-height: 0; }
.tm-panel-ui .tm-overview-chart-frame svg { display: block; width: 100%; height: auto; min-height: 130px; cursor: pointer; overflow: visible; }
.tm-panel-ui .tm-overview-chart-grid { stroke: var(--tm-border-color); stroke-width: 1; stroke-dasharray: 3 5; }
.tm-panel-ui .tm-overview-chart-area { fill: var(--tm-overview-accent); opacity: .1; }
.tm-panel-ui .tm-overview-chart-line { fill: none; stroke: var(--tm-overview-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tm-panel-ui .tm-overview-chart-guide { stroke: var(--tm-muted-color); stroke-width: 1; stroke-dasharray: 3 4; opacity: .5; }
.tm-panel-ui .tm-overview-chart-point { fill: var(--tm-surface-bg); stroke: var(--tm-overview-accent); stroke-width: 3; }
.tm-panel-ui .tm-overview-chart-readout { padding: .4rem .65rem; border-radius: .5rem; background: var(--tm-surface-alt-bg); color: var(--tm-text-color); overflow-wrap: anywhere; }
.tm-panel-ui .tm-overview-chart-empty { background: var(--tm-surface-alt-bg); border-radius: .8rem; border: 1px dashed var(--tm-border-color); }
.tm-panel-ui .tm-overview-chart-empty > i { font-size: 2rem; color: var(--tm-muted-color); }
.tm-panel-ui .tm-overview-daily-table { max-height: 22rem; }
.tm-panel-ui .tm-overview-meter { display: block; width: 100%; height: .55rem; border: 0; background: var(--tm-surface-alt-bg); border-radius: 1rem; }
.tm-panel-ui .tm-overview-meter::-webkit-meter-bar { background: var(--tm-surface-alt-bg); border: 0; border-radius: 1rem; }
.tm-panel-ui .tm-overview-meter::-webkit-meter-optimum-value { background: var(--tm-overview-accent); border-radius: 1rem; }
.tm-panel-ui .tm-overview-meter::-moz-meter-bar { background: var(--tm-overview-accent); border-radius: 1rem; }
.tm-panel-ui .tm-overview-status-row:hover { background: var(--tm-surface-alt-bg); }
.tm-panel-ui .tm-overview-insight { border-bottom: 1px solid var(--tm-border-color); font-size: .85rem; }
.tm-panel-ui .tm-overview-insight strong { text-align: end; overflow-wrap: anywhere; }
.tm-panel-ui .tm-overview-store-link { border: 1px solid var(--tm-border-color); border-radius: .8rem; background: var(--tm-surface-bg); overflow-wrap: anywhere; }
.tm-panel-ui a.tm-overview-store-link:is(:link, :visited, :hover, :focus-visible, :active) { text-decoration: none; }
/* حلقه‌ها صرفاً نسبت اجزای یک کل را نشان می‌دهند؛ مقدار SVG از داده معتبر سمت سرور می‌آید. */
.tm-panel-ui .tm-overview-ring { padding-top: 1rem; border-top: 1px solid var(--tm-border-color); }
.tm-panel-ui .tm-overview-ring-visual { position: relative; width: 6rem; height: 6rem; flex: 0 0 6rem; }
.tm-panel-ui .tm-overview-ring-visual svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.tm-panel-ui .tm-overview-ring-track, .tm-panel-ui .tm-overview-ring-segment { fill: none; stroke-width: 9; }
.tm-panel-ui .tm-overview-ring-track { stroke: var(--tm-border-color); }
.tm-panel-ui .tm-overview-ring-segment { stroke: currentColor; }
.tm-panel-ui .tm-overview-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .9rem; }
.tm-panel-ui .tm-overview-ring-center strong { font-size: .95rem; line-height: 1.5; max-width: 100%; overflow-wrap: anywhere; }
.tm-panel-ui .tm-overview-ring-center small { font-size: .65rem; color: var(--tm-muted-color); }
.tm-panel-ui .tm-overview-ring-caption { flex: 1 1 8rem; min-width: 0; font-size: .72rem; overflow-wrap: anywhere; }
.tm-panel-ui .tm-overview-ring-key { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; flex: 0 0 .5rem; margin-top: .35rem; }
.tm-panel-ui .tm-overview-ring-blue { color: var(--tm-overview-accent); }
.tm-panel-ui .tm-overview-ring-green { color: #19856b; }
.tm-panel-ui .tm-overview-ring-amber { color: #b16b0b; }
.tm-panel-ui .tm-overview-ring-purple { color: #8664c7; }
.tm-panel-ui .tm-overview-ring-muted { color: #9baabb; }
[data-bs-theme="dark"] .tm-panel-ui .tm-overview-ring-green { color: #62ccb0; }
[data-bs-theme="dark"] .tm-panel-ui .tm-overview-ring-amber { color: #e6b465; }
[data-bs-theme="dark"] .tm-panel-ui .tm-overview-ring-purple { color: #bca0ef; }
.tm-panel-ui .tm-overview-disclosure { font-size: .85rem; color: var(--tm-muted-color); }
.tm-panel-ui .tm-overview-welcome { border-color: #7dbaa9; border-radius: .85rem; }
[data-bs-theme="dark"] .tm-panel-ui .tm-overview-page { --tm-overview-accent: #8abaff; }
@media (prefers-reduced-motion: reduce) {
    .tm-panel-ui .tm-overview-page :is(a.card, .tm-overview-store-link) { transition: none; }
}

/* ستون‌های گزارش جامع باید در قاب جدول خوانا بمانند؛ کارت موبایل از قرارداد مشترک استفاده می‌کند. */
@media (min-width: 768px) {
    .tm-panel-ui .tm-ticket-report-table { width: max-content; min-width: 100%; }
    .tm-panel-ui .tm-ticket-report-table :is(th, td) { min-width: 10rem; max-width: 24rem; }
}
/* متن پیام و اسناد خرید در هر دو سطح عمومی و پنل، شکست خط و خوانایی مشترک دارد. */
.tm-disclosure-text { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; line-height: 2; }
.tm-panel-ui .form-floating > .tm-disclosure-editor { min-height: 16rem; height: auto; }
/* در جدول شواهد خرید، ستون‌های هویت و فروشگاه در دسکتاپ فشرده نمی‌شوند؛ اسکرول داخل قاب باقی می‌ماند. */
/* هدر قابل مرتب‌سازی روی کارت موبایل نیز قابل لمس و دسترس‌پذیر باقی می‌ماند. */
@media (max-width: 767.98px) {
    .tm-panel-ui table.tm-responsive-card-table.tm-mobile-sort-header > thead {
        position: static; display: block; width: 100%; height: auto;
        overflow: visible; clip: auto; clip-path: none; white-space: normal;
        margin-bottom: .75rem;
    }
    /* ارتفاع سربرگ چندخطی موبایل باید بر ارتفاع ثابت سربرگ دسکتاپ اولویت داشته باشد. */
    .tm-panel-ui .tm-table.tm-mobile-sort-header > thead.tm-table-head > tr {
        display: flex; flex-wrap: wrap; gap: .5rem; height: auto;
    }
    .tm-panel-ui table.tm-mobile-sort-header > thead > tr > th {
        display: none;
    }
    .tm-panel-ui table.tm-mobile-sort-header > thead > tr > th[aria-sort] {
        display: block; width: auto; min-width: 0; padding: .5rem;
        border: 1px solid var(--tm-border-color); border-radius: .375rem;
    }
    .tm-panel-ui table.tm-mobile-sort-header .tm-sort-link {
        display: inline-flex; align-items: center; min-height: 2rem;
    }
}
@media (min-width: 768px) {
    .tm-panel-ui .tm-checkout-consent-table { min-width: 76rem; }
    .tm-panel-ui .tm-checkout-consent-table :is(th, td):nth-child(2) { min-width: 15rem; }
    .tm-panel-ui .tm-checkout-consent-table :is(th, td):nth-child(3) { min-width: 16rem; }
    .tm-panel-ui .tm-checkout-consent-table :is(th, td):nth-child(5) { min-width: 9rem; }
    .tm-panel-ui .tm-checkout-consent-table :is(th, td):nth-child(6) { min-width: 19rem; }
}
/* پیشرفت صف‌های ادمین؛ بدون استایل runtime در View و با رنگ مشترک Bootstrap. */
.tm-panel-ui .tm-worker-progress {
    display: block;
    width: 100%;
    max-width: 16rem;
    height: .75rem;
    margin-block-end: .375rem;
    accent-color: var(--bs-primary);
}

/* تنظیمات داخل ردیف ورکر باید برای Label و مقدار فضای خوانا داشته باشند. */
@media (min-width: 768px) {
    .tm-panel-ui .tm-worker-table {
        min-width: 80rem;
    }

    .tm-panel-ui .tm-worker-table :is(th, td):nth-child(2),
    .tm-panel-ui .tm-worker-table :is(th, td):nth-child(4) {
        min-width: 14rem;
    }

    .tm-panel-ui .tm-worker-table :is(th, td):nth-child(3),
    .tm-panel-ui .tm-worker-table :is(th, td):nth-child(6) {
        min-width: 9rem;
    }

    .tm-panel-ui .tm-worker-table :is(th, td):nth-child(5) {
        min-width: 16rem;
    }

    .tm-panel-ui .tm-worker-actions {
        min-width: 18rem;
    }
}

/* گفت‌وگوی تیکت: خوانایی پیام، نام فایل و عملیات در همه اندازه‌ها از همین Design System تأمین می‌شود. */
.tm-panel-ui .tm-ticket-page main,
.tm-panel-ui .tm-ticket-message,
.tm-panel-ui .tm-ticket-message .card-body { min-width: 0; }
.tm-panel-ui .tm-ticket-message > .card-header { background: var(--tm-surface-alt-bg) !important; color: var(--tm-text-color) !important; border-color: var(--tm-border-color) !important; }
.tm-panel-ui .tm-ticket-message .tm-pre-wrap,
.tm-panel-ui .tm-ticket-page [data-ticket-reply-preview] { overflow-wrap: anywhere; word-break: normal; unicode-bidi: plaintext; }
.tm-panel-ui .tm-ticket-message:focus { outline: 3px solid var(--tm-color-primary); outline-offset: 3px; }
.tm-panel-ui .tm-ticket-quote { background: var(--tm-surface-alt-bg); border-inline-start: 3px solid var(--tm-color-primary); padding: .8rem; border-radius: var(--tm-radius-card); color: var(--tm-text-color); }
.tm-panel-ui .tm-ticket-attachment { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; max-width: 100%; white-space: normal !important; text-align: start; }
.tm-panel-ui .tm-ticket-attachment > span:first-of-type { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
.tm-panel-ui .tm-ticket-page .tm-page-header > div { min-width: 0; }
.tm-panel-ui .tm-ticket-page .tm-page-title { overflow-wrap: anywhere; }

.tm-panel-ui .tm-ticket-attachment > span:first-of-type { max-width: 100%; white-space: normal; }
.tm-panel-ui .tm-ticket-long-text { display: block; min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: normal; }

.tm-panel-ui .tm-ticket-selection { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; gap: .5rem; padding: .5rem; cursor: pointer; }
.tm-panel-ui .tm-ticket-selection .form-check-input { float: none; margin: 0; flex: 0 0 auto; }
/* لینک‌های سربرگ آبی نیز باید پیش از Hover کنتراست خوانا داشته باشند. */
/* پیام پشتیبانی و امتیازدهی تیکت از رنگ‌های مشترک سازگار با تم استفاده می‌کنند. */
.tm-panel-ui .tm-ticket-message-admin > .card-header { background: var(--bs-info-bg-subtle) !important; color: var(--bs-info-text-emphasis) !important; }
.tm-panel-ui .tm-ticket-message-admin { border-color: var(--bs-info-border-subtle); }
.tm-panel-ui .tm-ticket-message-admin > .card-body { background: color-mix(in srgb, var(--bs-info-bg-subtle) 28%, var(--tm-surface-bg)); }
.tm-panel-ui .tm-ticket-rating { display: flex; flex-wrap: wrap; gap: .25rem; }
.tm-panel-ui .tm-ticket-rating label {
    display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center;
    width: 44px; min-height: 44px !important; padding: .25rem; border-color: transparent; background: transparent;
}
.tm-panel-ui .tm-ticket-rating-emoji { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-size: 1.4rem; line-height: 1; }
/* عرض ستون‌های گزارش در دسکتاپ حفظ می‌شود؛ اسکرول در قاب جدول و کارت کامل در موبایل. */
@media (min-width: 768px) {
    .tm-panel-ui .tm-ticket-rating-table { min-width: 80rem; }
    .tm-panel-ui .tm-ticket-rating-table :is(th, td):nth-child(1) { min-width: 16rem; }
    .tm-panel-ui .tm-ticket-rating-table :is(th, td):nth-child(2) { min-width: 14rem; }
    .tm-panel-ui .tm-ticket-rating-table :is(th, td):nth-child(3) { min-width: 10rem; }
    .tm-panel-ui .tm-ticket-rating-table :is(th, td):nth-child(5) { min-width: 22rem; }
    .tm-panel-ui .tm-ticket-rating-table :is(th, td):nth-child(6) { min-width: 10rem; }
    .tm-panel-ui .tm-ticket-rating-table :is(th, td):nth-child(7) { min-width: 9rem; }
}
.tm-panel-ui .tm-ticket-rating .btn-check:focus-visible + label { outline: 3px solid var(--tm-color-primary); outline-offset: 2px; }
.tm-panel-ui .tm-ticket-rating .btn-check:checked + label {
    background-color: var(--bs-primary-bg-subtle); border-color: var(--bs-primary); box-shadow: inset 0 0 0 1px var(--bs-primary);
}

.tm-panel-ui .tm-ticket-close-reason { white-space: pre-wrap; overflow-wrap: anywhere; }


/* دکمه بازگشت روی سربرگ رنگی همان سطح سفید و متن آبی کنترل‌های سربرگ را دارد. */
.tm-panel-ui .tm-ticket-page .tm-page-header .tm-action-cancel {
    color: #0d6efd !important; background-color: #fff !important; border-color: #fff !important;
}
.tm-panel-ui .tm-ticket-page .tm-page-header .tm-action-cancel:is(:hover, :focus-visible) { color: #0b5ed7 !important; }

/* جدول‌های اعلان از خطوط و سربرگ مشترک پلن پیروی می‌کنند؛ رنگ سلول انتخاب نیز حفظ می‌شود. */
.tm-panel-ui .tm-table-wrapper .tm-table-grid > thead.tm-table-head > tr > th,
.tm-panel-ui .tm-table-wrapper .tm-table-grid > thead.tm-table-head > tr > th[aria-sort]:not([aria-sort="none"]) {
    --bs-table-bg: var(--tm-table-header-bg, #0d6efd);
    --bs-table-bg-state: var(--tm-table-header-bg, #0d6efd);
    --bs-table-bg-type: var(--tm-table-header-bg, #0d6efd);
    background: var(--tm-table-header-bg, #0d6efd);
    color: var(--tm-table-header-color, #fff);
}
@media (max-width: 767.98px) {
    .tm-panel-ui .tm-table-wrapper table.tm-mobile-sort-header.tm-table-has-select-column > thead > tr > th:first-child:not([colspan]) {
        display: flex;
        align-items: center;
        justify-content: center;
        position: static;
        width: 3rem;
        min-width: 3rem;
        border-radius: .375rem;
    }
}
@media (min-width: 768px) {
    .tm-panel-ui .tm-announcement-view-table { min-width: 90rem; table-layout: auto; }
    .tm-panel-ui .tm-announcement-view-table td:nth-child(3) { min-width: 13rem; }
    .tm-panel-ui .tm-announcement-view-table td:nth-child(4) { min-width: 13rem; }
    .tm-panel-ui .tm-announcement-view-table td:nth-child(6) { min-width: 12rem; }
    .tm-panel-ui .tm-announcement-view-table td:nth-child(n+7) { min-width: 16rem; max-width: 24rem; overflow-wrap: anywhere; }
    .tm-panel-ui .tm-announcement-table { min-width: 78rem; table-layout: auto; }
    .tm-panel-ui .tm-announcement-table td:nth-child(3) { min-width: 16rem; }
}

/* شواهد اصلاح محتوا: متن کامل و تصاویر قابل مشاهده در همه اندازه‌ها. */
.tm-panel-ui .tm-content-evidence { min-width: 0; }
.tm-panel-ui .tm-content-evidence-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.tm-panel-ui .tm-content-evidence-image { width: 6rem; height: 6rem; max-width: 100%; object-fit: contain; border: 1px solid var(--bs-border-color); border-radius: .5rem; }
.tm-panel-ui .tm-content-evidence-media { width: 6rem; min-height: 6rem; display: grid; align-items: center; text-align: center; }

/* حفظ سطرهای متن ساده در نمایش اولیه و AJAX؛ داده همچنان توسط Razor کدگذاری می‌شود. */
.tm-multiline-text, .tm-notification-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* متن بلند جدول بدون بریدن محتوا، عرض همه ستون‌ها را جابه‌جا نکند. */
.tm-panel-ui .tm-table-description { width: 20rem; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
.tm-panel-ui .tm-content-gallery { min-width: 0; }
.tm-panel-ui .tm-content-gallery-main { width: 100%; aspect-ratio: 1; object-fit: contain; max-height: 25rem; }
.tm-panel-ui .tm-content-gallery-zoom { display: block; width: 100%; height: min(75dvh, 55rem); object-fit: contain; }

@media (min-width: 768px) {
    .tm-panel-ui .tm-lifecycle-history-table { min-width: 78rem; table-layout: auto; }
    .tm-panel-ui .tm-lifecycle-rules-table { min-width: 78rem; table-layout: auto; }
    .tm-panel-ui .tm-lifecycle-policy-cell { min-width: 15rem; max-width: 22rem; }
}

/* قاب جدول بلند: اسکرول عمودی در راست و محتوای فارسی با ترتیب RTL حفظ می‌شود. */
.tm-panel-ui .tm-table-scroll-right {
    max-height: min(65vh, 38rem);
    overflow: auto;
    direction: ltr;
    scrollbar-gutter: stable;
    isolation: isolate;
}
.tm-panel-ui .tm-table-scroll-right > table { direction: rtl; }
.tm-panel-ui .tm-table-scroll-right thead th { position: sticky; top: 0; z-index: 2; }
@media (max-width: 991.98px) {
    .tm-panel-ui .tm-table-scroll-right { max-height: none; }
}

/* صفحه محتوای غیرقابل‌نمایش: مشترک بین مسیر عمومی و Host فروشگاه محدودشده. */
.tm-content-unavailable-card {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 1.25rem;
    background: var(--tm-surface-bg, #fff);
    box-shadow: 0 .5rem 2rem rgb(25 36 56 / 5%);
    overflow-wrap: anywhere;
}
.tm-content-unavailable-card h1 { line-height: 1.8; }
.tm-content-unavailable-card .btn { white-space: normal; min-height: 44px; }
.tm-content-unavailable-symbol {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--bs-primary-bg-subtle, #cfe2ff);
    color: var(--bs-primary-text-emphasis, #052c65);
    font-size: 1.8rem;
    font-weight: 700;
}

/* وضعیت مشترک محدودیت محتوایی در فهرست، فرم و پاسخ AJAX. */
.tm-panel-ui .tm-moderation-notice, .tm-panel-ui .tm-moderation-status,
.tm-panel-ui .tm-plan-admin-disabled {
    color: var(--tm-moderation-fg);
    background-color: var(--tm-moderation-bg);
    border-color: var(--tm-moderation-border);
}
.tm-panel-ui .tm-moderation-row { --bs-table-bg: var(--tm-moderation-bg); --bs-table-striped-bg: var(--tm-moderation-bg); }
.tm-panel-ui .tm-moderation-notice .btn-outline-dark { color: var(--tm-moderation-fg); border-color: var(--tm-moderation-border); }
.tm-panel-ui .tm-moderation-notice .btn-outline-dark:is(:hover, :focus-visible, :active) { color: var(--tm-moderation-bg); background-color: var(--tm-moderation-fg); }
.tm-panel-ui .tm-moderation-status { border: 1px solid var(--tm-moderation-border); white-space: normal; line-height: 1.6; }
.tm-panel-ui .tm-moderation-notice { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.tm-panel-ui .tm-moderation-notice .btn { white-space: normal; }
.tm-panel-ui #bulkErrorsArea { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

/* رنگ وضعیت متعلق به ردیف فروشگاه است؛ دکمه جزئیات پلن سطح رنگی جدا نمی‌سازد. */
.tm-panel-ui .store-record [data-store-plan-details-url],
.tm-panel-ui .store-record [data-store-plan-details-url]:is(:hover, :focus, :active) { background: transparent !important; }

/* اطلاعات سیاست دامنه از چیدمان طبیعی RTL پیروی می‌کند؛ متن هشدار، جدول یا لیبل را وسط‌چین نمی‌کند. */
.tm-panel-ui .tm-domain-policy-summary { background: var(--bs-info-bg-subtle); border: 1px solid var(--bs-info-border-subtle); border-radius: var(--bs-border-radius); padding: 1rem; text-align: start; white-space: normal; }
.tm-panel-ui .tm-domain-policy-summary p { white-space: normal; text-align: start; }
.tm-panel-ui .tm-store-edit .tm-domain-current { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.tm-panel-ui .tm-autocomplete-filter { position: relative; z-index: 20; overflow: visible; }
.tm-panel-ui .tm-autocomplete-filter .card-body { overflow: visible; }
.tm-panel-ui .tm-autocomplete-filter .tm-domain-ac { z-index: 30; max-height: min(18rem, var(--tm-domain-suggestions-height, 50vh)); background: var(--bs-body-bg); color: var(--bs-body-color); }
.tm-panel-ui .tm-autocomplete-filter .tm-domain-ac button { background: var(--bs-body-bg); color: var(--bs-body-color); white-space: normal; overflow-wrap: anywhere; }
.tm-panel-ui .tm-autocomplete-filter .tm-domain-ac button.active { background: var(--bs-primary-bg-subtle); }
.tm-panel-ui .tm-autocomplete-filter .tm-domain-ac.tm-autocomplete-above { top: auto; bottom: 100%; border-top: 1px solid var(--bs-border-color); border-radius: .375rem .375rem 0 0; }
.tm-panel-ui .tm-domain-management .tm-domain-table .tm-store-domain-link { white-space: normal; overflow-wrap: anywhere; }
.tm-panel-ui .tm-confirm-sort { background: transparent; border: 0; padding: 0; font: inherit; color: inherit; }
.tm-panel-ui .tm-domain-management .tm-domain-records td { vertical-align: top; }
.tm-panel-ui .tm-domain-management .tm-domain-table .tm-import-domain-value { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
    .tm-panel-ui .tm-store-edit .tm-detail-grid { grid-template-columns: minmax(0,1fr); }
    .tm-panel-ui .tm-domain-management .tm-domain-records th, .tm-panel-ui .tm-domain-management .tm-domain-records td { padding: .6rem; }
}

/* دکمه کنار فیلد شناور و نمایش مسیر طولانی در انتخاب‌گر پوشه. */
.tm-panel-ui .tm-field-action { min-height: 3.625rem; }
.tm-panel-ui .tm-storage-path { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
/* جفت عنوان و مقدار در جزئیات و تأیید مرجوعی؛ متن بلند در موبایل کامل می‌ماند. */
.tm-panel-ui .tm-return-facts {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr);
    gap: .65rem 1rem;
    align-items: start;
}
.tm-panel-ui .tm-return-facts dt,
.tm-panel-ui .tm-return-facts dd {
    margin: 0;
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
}
.tm-panel-ui .tm-return-facts dt { color: var(--bs-secondary-color); }
.tm-panel-ui .tm-return-facts dd[dir="ltr"] { text-align: right; }
.tm-panel-ui .tm-return-facts dd,
.tm-panel-ui .tm-return-text { white-space: pre-line; }
/* فیلدهای جدول مرجوعی در کارت موبایل عرض کامل می‌گیرند تا برچسب و عدد فشرده نشوند. */
@media (max-width: 575.98px) {
    .tm-panel-ui .tm-return-facts { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
    .tm-panel-ui .tm-return-facts dd { margin-bottom: .75rem; }
    .tm-panel-ui .tm-return-page .tm-responsive-card-table td:has(.form-floating) {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }
}

/* صندوق نظرات: متن کامل، عملیات فشرده و مودال سازگار با نمایشگر کوتاه. */
.tm-panel-ui .tm-comment-inbox-table { min-width: 64rem; }
.tm-panel-ui .tm-comment-inbox-table .tm-comment-body { min-width: 18rem; width: 34%; }
.tm-panel-ui .tm-comment-text { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.tm-panel-ui .tm-comment-person { min-width: 8rem; overflow-wrap: anywhere; word-break: normal; }
.tm-panel-ui .tm-comment-reply-input { min-height: 10rem; }
.tm-panel-ui #comment-reply-modal form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 3.5rem); }
.tm-panel-ui #comment-reply-modal .modal-body { overflow-y: auto; }
@media (max-width: 575.98px) {
 .tm-panel-ui .tm-comment-inbox-table { min-width: 0; }
 .tm-panel-ui .tm-comment-inbox-table .tm-comment-body { min-width: 0; width: auto; }
 .tm-panel-ui .tm-comment-person { min-width: 0; }
 .tm-panel-ui #comment-reply-modal form { max-height: calc(100dvh - 1rem); }
}

/* اجزای اجتماعی: چیدمان فشرده و پیوسته در تمام عرض‌ها. */
.tm-social-profile-actions { justify-content: flex-end; max-width: 24rem; }
.tm-social-profile-actions form { margin: 0; }
.tm-social-profile-actions:empty { display: none !important; }
@media (max-width: 575.98px) {
    .tm-social-profile-actions { max-width: 12rem; gap: .35rem !important; }
    .tm-social-profile-actions .btn { font-size: .72rem; padding-inline: .5rem !important; gap: .3rem !important; white-space: nowrap; }
    .tm-social-profile-top .tm-social-profile-avatar { width: 3.2rem; height: 3.2rem; }
    .tm-social-profile-name h1 { font-size: 1rem; }
    .tm-social-profile-last-seen { font-size: .65rem; padding-inline: .4rem; }
}
@media (max-width: 359.98px) { .tm-social-profile-actions { max-width: 7rem; } }
.tm-social-dashboard .tab-pane:focus { outline: 0; }
.tm-social-dashboard .tab-pane:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bs-primary) 45%, transparent); }
.tm-social-comments-tray[tabindex="-1"]:focus { outline: 0; }
.tm-repost-description .tm-repost-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tm-repost-description.is-expanded .tm-repost-desc { display: block; }
.tm-text-disclosure { background: none; border: 0; padding: .2rem 0; color: var(--bs-primary); font: inherit; font-size: .85rem; cursor: pointer; }
.tm-text-disclosure:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.tm-repost-form.tm-social-comment-form .tm-social-comment-compose textarea.form-control { min-height: 6rem; max-height: min(20rem, 38dvh); resize: none; overflow-y: hidden; }
.tm-social-search-page { max-width: 68rem; }
.tm-search-filters { gap: .25rem; }
.tm-search-filters .nav-link { min-height: 2.75rem; display: grid; place-items: center; }
@media (max-width: 575.98px) {
    .tm-search-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tm-search-filters .nav-link { padding-inline: .125rem; font-size: .875rem; }
    .tm-social-search-row { flex-wrap: wrap; }
    .tm-social-search-row > a { flex-basis: 12rem; }
}
.tm-social-search-row { background: var(--bs-body-bg); cursor: pointer; }
.tm-social-search-row > a { min-width: 0; }
.tm-social-search-row .tm-profile-avatar, .tm-search-result-image { width: 3rem; height: 3rem; flex: 0 0 3rem; }
.tm-search-result-image { display: grid; place-items: center; border-radius: .5rem; overflow: hidden; background: var(--bs-tertiary-bg); }
.tm-search-result-image img { width: 100%; height: 100%; object-fit: contain; }
.tm-social-search-row .tm-social-follow-btn { flex-shrink: 0; }
@media(max-width: 359.98px) { .tm-social-search-row { padding: .65rem !important; gap: .4rem !important; } .tm-social-search-row .btn { font-size: .72rem; padding-inline: .4rem; } }

/* اعلان اجتماعی: فاصله‌های قالب نباید به ارتفاع متن تبدیل شوند. */
.tm-panel-ui [data-social-notification-list] .tm-notification-body { white-space: normal; font-weight: 600; line-height: 1.7; }
.tm-panel-ui .tm-notification-caption { min-width: 0; margin-block: .2rem; font-size: .85rem; line-height: 1.7; }
.tm-panel-ui .tm-notification-caption [data-caption-text] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-panel-ui .tm-notification-caption.is-expanded [data-caption-text] { white-space: pre-wrap; overflow-wrap: anywhere; }
.tm-panel-ui .tm-repost-suggest-choice { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--bs-body-color); font: inherit; text-align: start; white-space: normal; overflow-wrap: anywhere; padding: .35rem; cursor: pointer; }
.tm-panel-ui .tm-repost-suggest > div:hover { background: color-mix(in srgb, var(--bs-primary) 8%, var(--bs-body-bg)); }
.tm-panel-ui .tm-repost-suggest-choice:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }

/* فید اصلی: تصویر و محتوا در اولویت؛ گزینه‌ها فقط با درخواست کاربر باز می‌شوند. */
.tm-social-feed-text-action { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.25rem; padding: .15rem .25rem; border: 0; background: transparent; color: var(--bs-primary); font: inherit; font-size: .82rem; font-weight: 700; text-align: start; }
.tm-social-feed-text-action:hover { color: var(--bs-link-hover-color); }
.tm-social-feed-text-action:focus-visible,
.tm-social-feed-sheet-action:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.tm-social-feed-text-action:disabled,
.tm-social-feed-sheet-action:disabled { opacity: .55; cursor: wait; }
.tm-social-feed-menu { flex: 0 0 2.25rem; width: 2.25rem; height: 2.5rem; margin-inline-start: auto; border-radius: .25rem; }
.tm-social-feed-menu:hover { color: var(--bs-body-color); background: var(--bs-tertiary-bg); transform: none; }
.tm-social-feed-menu:focus-visible { outline: 2px solid var(--bs-secondary-color); outline-offset: -2px; }
.tm-social-feed-context-preview { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .4rem; min-width: 0; padding: 0 .8rem .35rem; color: var(--bs-secondary-color); font-size: .76rem; line-height: 1.6; }
.tm-social-feed-context-preview .tm-social-feed-text-action { min-height: 1.85rem; color: inherit; font-size: inherit; }
.tm-social-feed-person { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; max-width: 100%; color: var(--bs-body-color); }
.tm-social-feed-person-name { min-width: 0; overflow-wrap: anywhere; }
.tm-social-feed-avatar { width: 2rem; height: 2rem; flex: 0 0 2rem; }
.tm-social-feed-context-preview .tm-social-feed-avatar { width: 1.35rem; height: 1.35rem; flex-basis: 1.35rem; font-size: .65rem; }
.tm-social-feed-repost-list { display: grid; gap: 0; min-width: 0; }
.tm-social-feed-repost { min-width: 0; padding-block: .75rem; }
.tm-social-feed-repost + .tm-social-feed-repost { border-top: 1px solid var(--bs-border-color); }
.tm-social-feed-repost:first-child { padding-top: 0; }
.tm-social-feed-repost:last-child { padding-bottom: 0; }
.tm-social-feed-repost-caption { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.tm-social-feed-dialog .modal-dialog { width: calc(100% - 1rem); max-width: 28rem; margin-inline: auto; }
.tm-social-feed-dialog .modal-header { padding: .75rem 1rem; }
.tm-social-feed-dialog .modal-body { padding: .75rem 1rem; }
.tm-social-feed-sheet-action { display: block; width: 100%; min-height: 2.75rem; padding: .6rem 0; border: 0; border-top: 1px solid var(--bs-border-color); background: transparent; color: var(--bs-body-color); font: inherit; text-align: start; overflow-wrap: anywhere; }
.tm-social-feed-sheet-action:hover { color: var(--bs-primary); }
.tm-social-feed-sheet-action:first-child { border-top: 0; }
.tm-social-feed-option { display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 3.25rem; padding: .75rem 1.1rem; border: 0; background: transparent; color: var(--bs-body-color); font: inherit; font-size: .95rem; line-height: 1.6; text-align: start; }
.tm-social-feed-option > i { flex: 0 0 1.5rem; font-size: 1.4rem; line-height: 1; text-align: center; }
.tm-social-feed-option > span { min-width: 0; overflow-wrap: break-word; }
.tm-social-feed-option:hover { background: var(--bs-tertiary-bg); }
.tm-social-feed-option:focus-visible,
.tm-social-feed-sheet-handle:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -3px; }
.tm-social-feed-option:disabled { opacity: .55; cursor: wait; }
.tm-social-feed-option-reason { margin: 0; padding: 0 1.1rem .8rem; color: var(--bs-secondary-color); font-size: .82rem; line-height: 1.8; overflow-wrap: break-word; }
.tm-social-feed-popover { z-index: 5080; width: min(18.5rem, calc(100vw - 1rem)); max-width: none; max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--bs-border-color-translucent); border-radius: 1rem; background: var(--bs-body-bg); box-shadow: 0 .35rem 1.5rem rgba(0, 0, 0, .16); font-family: inherit; }
.tm-social-feed-popover .popover-body { padding: .35rem 0; color: inherit; }
.tm-social-feed-popover .tm-social-feed-option { min-height: 2.9rem; font-size: .85rem; }
.tm-social-feed-popover .tm-social-feed-option > i { display: none; }
.tm-social-feed-sheet-handle { display: none; }
@media (max-width: 767.98px) {
    /* مختصات مشترک پیکسلی، ضخامت و تیرگی دو خط را حتی در ردیف‌های کسری یکسان نگه می‌دارد. */
    .tm-social-feed-menu > .bi-three-dots { position: relative; display: block; width: 20px; height: 16px; }
    .tm-social-feed-menu > .bi-three-dots::before,
    .tm-social-feed-menu > .bi-three-dots::after { content: ""; position: absolute; left: 0; height: 2px; border-radius: 1px; background: currentColor; }
    .tm-social-feed-menu > .bi-three-dots::before { top: 3px; width: 100%; }
    .tm-social-feed-menu > .bi-three-dots::after { top: 11px; width: 13px; }
    /* جابه‌جایی پنل در انیمیشن نباید اسکرول قاب بیرونی بسازد؛ بدنه همچنان اسکرول دارد. */
    .tm-social-feed-dialog.is-post-options { overflow-y: hidden; }
    .tm-social-feed-dialog.is-post-options .modal-dialog { width: 100%; max-width: none; height: 100%; height: 100dvh; min-height: 100%; max-height: none; margin: 0; align-items: flex-end; }
    .tm-social-feed-dialog.is-post-options .modal-content { max-height: calc(100% - 1rem); border: 0; border-radius: 1.5rem 1.5rem 0 0; box-shadow: none; }
    .tm-social-feed-dialog.is-post-options .modal-header { display: none; }
    .tm-social-feed-dialog.is-post-options .modal-body { flex: 0 1 auto; padding: 0 0 max(.75rem, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
    .tm-social-feed-dialog.is-post-options .tm-social-feed-sheet-handle { display: flex; flex: 0 0 2.75rem; width: 100%; min-height: 2.75rem; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; }
    .tm-social-feed-sheet-handle > span { width: 2.4rem; height: .25rem; border-radius: 1rem; background: var(--bs-secondary-color); opacity: .65; }
    .tm-social-feed-dialog.is-post-options.fade .modal-dialog { transform: translateY(100%); }
    .tm-social-feed-dialog.is-post-options.show .modal-dialog { transform: none; }
}
.tm-social-feed-hidden { display: none !important; }
.tm-social-feed-spacer { min-width: 0; overflow-anchor: none; pointer-events: none; }
[data-personalized-feed="true"] { margin-top: .5rem; }
[data-personalized-feed="true"] .tm-social-feed { overflow-anchor: none; gap: .85rem; }
[data-personalized-feed="true"] .tm-social-post-head { flex-wrap: nowrap; align-items: center; min-height: 3.5rem; gap: .55rem; padding: .55rem .8rem; }
[data-personalized-feed="true"] .tm-social-post-head > .min-w-0 { flex: 1 1 0; }
[data-personalized-feed="true"] .tm-social-avatar { width: 2.35rem; height: 2.35rem; min-width: 2.35rem; }
[data-personalized-feed="true"] .tm-social-store { white-space: normal; overflow: visible; overflow-wrap: anywhere; font-size: .78rem; }
[data-personalized-feed="true"] .tm-social-user { overflow-wrap: anywhere; font-size: .88rem; }
[data-personalized-feed="true"] .tm-social-follow-btn { flex-shrink: 0; }
[data-personalized-feed="true"] .tm-social-chip.is-followed { display: none; }
[data-personalized-feed="true"] :is(.tm-social-loading, .tm-social-load-error, .tm-social-empty) { margin-top: .5rem; padding: .5rem .25rem; background: transparent; font-size: .85rem; }
@media (max-width: 575.98px) {
    [data-personalized-feed="true"] .tm-social-post-head { padding-inline: .55rem; gap: .4rem; }
    .tm-social-feed-context-preview { padding-inline: .55rem; }
}

/* متن و ویرایشگر قوانین؛ هماهنگ با فیلدها و فاصله‌های مرکزی پنل */
.tm-panel-ui .tm-store-terms-text:not(.tm-terms-text) { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; text-align: justify; }
.tm-panel-ui .tm-store-terms-editor { min-height: 32rem; height: 65vh; resize: vertical; }

/* نام بلند فروشگاه در تاریخچه نباید به ستون بسیار باریک و ردیف بلند تبدیل شود. */
@media (min-width: 768px) {
    .tm-panel-ui .tm-store-access-activity-table { min-width: 78rem; }
    .tm-panel-ui .tm-store-access-activity-table :is(th, td):nth-child(3) { min-width: 12rem; max-width: 15rem; overflow-wrap: anywhere; }
    .tm-panel-ui .tm-store-access-activity-table :is(th, td):nth-child(2) { white-space: nowrap; }
}

/* پیمایش گزارش از سمت راست؛ جهت محتوا و سربرگ فارسی حفظ می‌شود. */
.tm-panel-ui .tm-report-scroll { max-height: min(65vh, 38rem); overflow: auto; direction: ltr; scrollbar-gutter: stable; }
.tm-panel-ui .tm-report-scroll > table { direction: rtl; }
.tm-panel-ui .tm-report-scroll thead { position: sticky; top: 0; z-index: 2; }
.tm-panel-ui .tm-report-scroll bdi { white-space: nowrap; }
@media (min-width: 768px) {
    .tm-panel-ui .tm-store-access-monitoring-table { min-width: 76rem; }
    .tm-panel-ui .tm-store-access-monitoring-table :is(th, td) { min-width: 8rem; overflow-wrap: anywhere; }
    .tm-panel-ui .tm-store-access-monitoring-table td[data-tm-label="فروشگاه"] { min-width: 14rem; }
}
/* گزارش متنی قابل کپی پایش؛ داخل Design System پنل و بدون استایل صفحه‌ای. */
.tm-panel-ui .tm-performance-diagnostic { min-height: 24rem; font-family: monospace; font-size: .8rem; }
.tm-panel-ui .tm-table-wrapper.tm-table-shell.tm-performance-scroll { max-height: 90vh; max-height: 90dvh; overflow: auto; direction: ltr; scrollbar-gutter: stable; }
.tm-panel-ui .tm-performance-scroll > table { direction: rtl; }
.tm-panel-ui .tm-table-wrapper.tm-table-shell.tm-operational-scroll { max-height: 80vh; max-height: 80dvh; overflow: auto; direction: ltr; scrollbar-gutter: stable; }
@media (min-width: 768px) {
    .tm-panel-ui .tm-admin-plan-report-page .tm-plan-report-results[data-tm-scrollable] {
        max-height: 85vh;
        max-height: 85dvh;
    }
    .tm-panel-ui .tm-admin-plan-report-page .tm-plan-report-results > table.tm-table {
        min-width: 100%;
    }
}
.tm-panel-ui .tm-admin-plan-report-page details > summary {
    color: var(--bs-link-color);
    padding-block: .3rem;
    font-weight: 600;
}
.tm-panel-ui .tm-admin-plan-report-page details[open] > summary {
    margin-bottom: .3rem;
}
.tm-panel-ui .tm-operational-scroll > table { direction: rtl; }
.tm-panel-ui .tm-operational-scroll thead { position: sticky; top: 0; z-index: 2; }
.tm-panel-ui .tm-performance-scroll thead { position: sticky; top: 0; z-index: 2; }
.tm-panel-ui .tm-performance-refresh #pp-interval { width: 5.5rem; }
.tm-panel-ui .tm-performance-refresh #pp-unit { width: 6rem; }
.tm-panel-ui #performance-results[aria-busy="true"] { opacity: .65; }
/* آمار فروشگاه: نمودار مقدم است و جدول، خروجی و فیلترهای فرعی در دسترس می‌مانند. */
.tm-panel-ui.tm-analytics-page { --tm-analytics-accent: #168c80; }
.tm-panel-ui .tm-analytics-hero {
    padding: 1.35rem; border: 1px solid var(--tm-border-color); border-radius: 1rem;
    background: radial-gradient(ellipse at 0% 0%, rgba(138, 116, 215, .12), transparent 55%), linear-gradient(120deg, rgba(26, 161, 143, .09), var(--tm-surface-bg));
}
.tm-panel-ui .tm-analytics-heading { flex: 1 1 15rem; min-width: 0; }
.tm-panel-ui .tm-analytics-eyebrow { color: var(--tm-analytics-accent); font-size: .8rem; font-weight: 600; }
.tm-panel-ui .tm-analytics-hero-icon {
    display: grid; place-items: center; width: 4.1rem; height: 4.1rem; border-radius: 1.1rem;
    background: var(--tm-surface-bg); color: var(--tm-analytics-accent); font-size: 2.1rem;
    box-shadow: 0 5px 20px rgba(36, 75, 92, .08); transform: rotate(-7deg);
}
.tm-panel-ui .tm-analytics-scope { padding: .35rem .65rem; border-radius: .5rem; background: var(--tm-surface-bg); overflow-wrap: anywhere; }
.tm-panel-ui .tm-analytics-filter, .tm-panel-ui .tm-analytics-card, .tm-panel-ui .tm-analytics-stat { border-radius: .9rem; min-width: 0; }
.tm-panel-ui .tm-analytics-presets .btn { min-width: 3.25rem; }
.tm-panel-ui .tm-analytics-status {
    padding: .8rem 1rem; border: 1px solid var(--tm-border-color); border-radius: .8rem;
    background: var(--tm-surface-alt-bg); font-size: .85rem;
}
.tm-panel-ui .tm-analytics-status-pending { border-color: #d9b778; background: rgba(225, 163, 48, .08); }
.tm-panel-ui .tm-analytics-status > div { flex: 1 1 15rem; min-width: 0; }
.tm-panel-ui .tm-analytics-teal { --tm-chart-color: #168c80; color: #168c80; }
.tm-panel-ui .tm-analytics-purple { --tm-chart-color: #8464c5; color: #8464c5; }
.tm-panel-ui .tm-analytics-blue { --tm-chart-color: #387ac9; color: #387ac9; }
.tm-panel-ui .tm-analytics-amber { --tm-chart-color: #b57a24; color: #b57a24; }
.tm-panel-ui .tm-analytics-pink { color: #d66d93; }
.tm-panel-ui .tm-analytics-slate { color: #71849d; }
.tm-panel-ui .tm-analytics-stat { border-top: 3px solid var(--tm-chart-color); }
.tm-panel-ui .tm-analytics-stat h2 { color: var(--tm-text-color); line-height: 1.7; }
.tm-panel-ui .tm-analytics-stat-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .65rem; background: color-mix(in srgb, var(--tm-chart-color) 10%, transparent); }
.tm-panel-ui .tm-analytics-number { display: block; font-size: clamp(1.2rem, 2.3vw, 1.9rem); line-height: 1.6; font-weight: 800; overflow-wrap: anywhere; color: var(--tm-text-color); }
.tm-panel-ui .tm-analytics-duration { font-size: clamp(1rem, 1.6vw, 1.4rem); padding-block: .2rem; }
.tm-panel-ui .tm-analytics-card > .card-header {
    background: transparent !important; color: var(--tm-text-color) !important; border: 0;
    padding: 1.1rem 1rem .65rem; flex-wrap: wrap; border-radius: .9rem .9rem 0 0;
}
.tm-panel-ui .tm-analytics-card > .card-header > div { min-width: 0; flex: 1 1 13rem; }
.tm-panel-ui .tm-analytics-card > .card-header :is(h2, p) { color: var(--tm-text-color) !important; }
.tm-panel-ui .tm-analytics-card > .card-header p { color: var(--tm-muted-color) !important; font-weight: normal; }
.tm-panel-ui .tm-analytics-export { color: var(--tm-muted-color) !important; background: transparent !important; border-color: transparent !important; white-space: nowrap; }
.tm-panel-ui .tm-analytics-export:is(:hover,:focus-visible) { color: var(--tm-analytics-accent) !important; background: var(--tm-surface-alt-bg) !important; }
.tm-panel-ui .tm-analytics-empty { border-radius: .7rem; background: var(--tm-surface-alt-bg); }
.tm-panel-ui .tm-analytics-empty > i { color: var(--tm-analytics-accent); font-size: 1.7rem; }
.tm-panel-ui .tm-analytics-ranking-name { min-width: 0; overflow-wrap: break-word; line-height: 1.8; }
.tm-panel-ui .tm-analytics-ranking li:last-child { margin-bottom: .25rem !important; }
.tm-panel-ui .tm-analytics-meter { width: 100%; height: .5rem; display: block; border: 0; background: var(--tm-surface-alt-bg); border-radius: 1rem; }
.tm-panel-ui .tm-analytics-meter::-webkit-meter-bar { border: 0; background: var(--tm-surface-alt-bg); border-radius: 1rem; }
.tm-panel-ui .tm-analytics-meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, #75c8bb, #168c80); border-radius: 1rem; }
.tm-panel-ui .tm-analytics-meter::-moz-meter-bar { background: #168c80; border-radius: 1rem; }
.tm-panel-ui .tm-analytics-details { border-top: 1px solid var(--tm-border-color); }
.tm-panel-ui .tm-analytics-details > summary { padding: .8rem 1rem; color: var(--tm-muted-color); font-size: .8rem; list-style: none; cursor: pointer; }
.tm-panel-ui .tm-analytics-details[open] > summary > .bi-chevron-down { transform: rotate(180deg); }
.tm-panel-ui .tm-analytics-details .tm-observability-page-size { background: var(--tm-surface-alt-bg); }
.tm-panel-ui .tm-analytics-guide, .tm-panel-ui .tm-analytics-source-filter { color: var(--tm-muted-color); font-size: .85rem; }
.tm-panel-ui .tm-analytics-switch .nav-link { font-size: .8rem; padding: .45rem .7rem; color: var(--tm-muted-color); }
.tm-panel-ui .tm-analytics-switch .nav-link.active { color: #fff; background: var(--tm-analytics-accent); }
.tm-panel-ui .tm-analytics-chart-frame { width: 100%; min-width: 0; height: 200px; }
.tm-panel-ui .tm-analytics-chart-frame svg { display: block; width: 100%; height: 100%; touch-action: pan-y; border-radius: .5rem; }
.tm-panel-ui .tm-analytics-chart-grid { stroke: var(--tm-border-color); stroke-width: 1; stroke-dasharray: 3 5; }
.tm-panel-ui .tm-analytics-chart-area { fill: var(--tm-analytics-accent); opacity: .08; }
.tm-panel-ui .tm-analytics-chart-line { fill: none; stroke: var(--tm-analytics-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tm-panel-ui .tm-analytics-chart-guide { stroke: var(--tm-muted-color); stroke-width: 1; stroke-dasharray: 3 4; opacity: .5; }
.tm-panel-ui .tm-analytics-chart-point { fill: var(--tm-surface-bg); stroke: var(--tm-analytics-accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tm-panel-ui .tm-analytics-readout { padding: .5rem .7rem; background: var(--tm-surface-alt-bg); border-radius: .5rem; color: var(--tm-text-color); font-size: .8rem; min-height: 2.3rem; }
.tm-panel-ui .tm-analytics-trend-empty .tm-analytics-chart-line { stroke: var(--tm-muted-color); stroke-dasharray: 5 5; opacity: .45; }
.tm-panel-ui .tm-analytics-trend-empty .tm-analytics-chart-area { opacity: 0; }
.tm-panel-ui .tm-analytics-donut { position: relative; width: 10rem; height: 10rem; flex: 0 0 10rem; }
.tm-panel-ui .tm-analytics-donut svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.tm-panel-ui .tm-analytics-donut-track, .tm-panel-ui .tm-analytics-donut-segment { fill: none; stroke-width: 12; }
.tm-panel-ui .tm-analytics-donut-track { stroke: var(--tm-border-color); }
.tm-panel-ui .tm-analytics-donut-segment { stroke: currentColor; }
.tm-panel-ui .tm-analytics-donut-total { position: absolute; inset: 1.8rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tm-panel-ui .tm-analytics-donut-total strong { font-size: 1.25rem; overflow-wrap: anywhere; max-width: 100%; }
.tm-panel-ui .tm-analytics-donut-total small { color: var(--tm-muted-color); font-size: .7rem; }
.tm-panel-ui .tm-analytics-key { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; flex: 0 0 .55rem; }
.tm-panel-ui .tm-analytics-channel-list { min-width: 0; font-size: .8rem; }
.tm-panel-ui .tm-analytics-channel-list li { border-bottom: 1px solid var(--tm-border-color); }
.tm-panel-ui .tm-analytics-channel-list li:last-child { border-bottom: 0; }
[data-bs-theme="dark"] .tm-panel-ui.tm-analytics-page { --tm-analytics-accent: #5ecabb; }
@media (max-width: 575.98px) {
    .tm-panel-ui .tm-analytics-hero { padding: 1rem; }
    .tm-panel-ui .tm-analytics-hero-icon { width: 2.8rem; height: 2.8rem; font-size: 1.5rem; }
    .tm-panel-ui .tm-analytics-stat .card-body { padding: .8rem !important; }
    .tm-panel-ui .tm-analytics-stat small { font-size: .7rem; }
    .tm-panel-ui .tm-analytics-chart-frame { height: 165px; }
    .tm-panel-ui .tm-analytics-ranking-name { font-size: .8rem; }
}
.tm-panel-ui .tm-performance-table bdi.text-break { display: block; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
@media (min-width: 768px) {
    .tm-panel-ui .tm-performance-table td[data-tm-label="صفحه / عملیات"] { min-width: 12rem; max-width: 22rem; white-space: normal; }
}
/* شناسهٔ SQL تا ۱۲۸ کاراکتر باید کامل بماند و ستون شمارش را از قاب جدول خارج نکند. */
.tm-panel-ui .tm-database-tables-table bdi { white-space: normal; overflow-wrap: anywhere; word-break: normal; }
@media (min-width: 768px) {
    .tm-panel-ui .table-responsive .tm-database-tables-table { table-layout: auto; width: 100%; min-width: 80rem; }
    .tm-panel-ui .tm-database-tables-table :is(th, td) { min-width: 7rem; }
    .tm-panel-ui .tm-database-tables-table :is(th, td):first-child { min-width: 16rem; }
    .tm-panel-ui .tm-database-tables-table :is(th, td):nth-child(2) { min-width: 18rem; max-width: 26rem; }
    .tm-panel-ui .tm-database-tables-table :is(th, td):nth-child(3) { min-width: 5rem; }
}
/* نمودار رشد جدول: مقیاس عددی دقیق در متن و نمودار واکنش‌گرا در مودال. */
.tm-table-growth-chart { width: 100%; min-width: 0; color: var(--bs-body-color); }
.tm-table-growth-chart svg { display: block; width: 100%; height: auto; font-family: inherit; }
.tm-table-growth-chart text { fill: currentColor; font-size: 12px; }
.tm-growth-grid { stroke: var(--bs-border-color, #dee2e6); stroke-width: 1; }
.tm-growth-line { fill: none; stroke: var(--bs-primary, #0d6efd); stroke-width: 2; }
.tm-growth-dot { fill: var(--bs-primary, #0d6efd); }
/* Bootstrap RTL کلاس text-break ندارد؛ مسیر ثابت ذخیره‌سازی در عرض کوچک کامل شکسته شود. */
.tm-panel-ui form[action$="/FileStorageSetting/Save"] bdi.text-break {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* انتخاب عکس مطابق حساب کاربری؛ نام طولانی نباید عرض صفحه را افزایش دهد. */
.tm-panel-ui .tm-file-picker { min-width: 0; }
.tm-panel-ui .tm-file-picker > span { min-width: 0; overflow-wrap: anywhere; }
.tm-panel-ui .tm-file-picker > button { flex-shrink: 0; }

/* رنگ‌ها مقدار runtime هستند؛ چیدمان و اندازه فقط از Design System مشترک می‌آید. */
.tm-panel-ui .tm-color-picker-row { min-width: 0; }
.tm-panel-ui .tm-color-picker-row > .form-floating,
.tm-panel-ui .tm-color-picker-row > .tm-color-text-input { flex: 1 1 0; min-width: 0; }
.tm-panel-ui .tm-color-picker-row > button { flex-shrink: 0; }
.tm-panel-ui .tm-color-picker-toggle { padding: .375rem; min-width: 44px; min-height: 44px; }
.tm-panel-ui .tm-color-preview { display: inline-block; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid var(--bs-border-color, #adb5bd); border-radius: .375rem; vertical-align: middle; }
.tm-panel-ui .tm-color-palette { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .25rem; }
.tm-panel-ui .tm-color-palette-item { width: 100%; min-height: 36px; padding: 0; border: 1px solid var(--bs-border-color, #adb5bd); border-radius: .375rem; }
.tm-panel-ui .tm-color-palette-item:focus-visible { outline: 3px solid var(--bs-primary); outline-offset: 2px; }
.tm-panel-ui .tm-color-dialog .modal-body { overflow-x: hidden; }

/* پیش‌نمایش فایل در فهرست و نمایشگر تمام‌صفحه */
.tm-panel-ui .tm-file-preview { width: 64px; height: 56px; object-fit: contain; border-radius: .35rem; }
.tm-panel-ui .tm-file-preview-large { max-width: 100%; max-height: calc(100dvh - 7rem); object-fit: contain; }

/* انتخاب مشترک روش پرداخت؛ کارت فشرده و قابل استفاده با لمس و صفحه‌کلید. */
.tm-panel-ui .tm-payment-method-group { border: 1px solid var(--bs-border-color); border-radius: .75rem; padding: .75rem; }
.tm-panel-ui .tm-payment-method-group > summary { cursor: pointer; list-style: none; min-height: 2.5rem; }
.tm-panel-ui .tm-payment-choice { display: flex; align-items: center; gap: .625rem; padding: .75rem; margin: 0; height: 100%; border: 1px solid var(--bs-border-color); border-radius: .625rem; cursor: pointer; overflow-wrap: anywhere; }
.tm-panel-ui .tm-payment-choice:has(input:checked) { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); }
.tm-panel-ui .tm-payment-choice:focus-within, .tm-panel-ui .tm-payment-method-group > summary:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.tm-panel-ui .tm-payment-choice img { flex-shrink: 0; object-fit: contain; }
.tm-panel-ui .tm-receipt-image-preview { display: block; max-width: min(100%, 16rem); max-height: 12rem; object-fit: contain; margin-inline: auto; }
.tm-panel-ui .tm-receipt-image-preview[hidden] { display: none; }

/* پیش‌نمایش فشرده رسید؛ حذف فقط انتخاب محلی و پیش از ارسال است. */
.tm-panel-ui .tm-receipt-selection { position: relative; display: table; max-width: 100%; }
.tm-panel-ui .tm-receipt-selection[hidden] { display: none; }
.tm-panel-ui .tm-receipt-remove { position: absolute; top: .25rem; right: .25rem; z-index: 1; width: 2.5rem; height: 2.5rem; padding: .375rem; box-shadow: 0 1px 5px #0002; }

/* پیشنهاد مالک کیف پول با همان آواتار و پیوند پروفایل مشترک مدیریت. */
.tm-wallet-suggestions{position:absolute;inset-inline:0.5rem;top:100%;z-index:20;max-height:14rem;overflow:auto;overscroll-behavior:contain;}
.tm-wallet-suggestions-above{top:auto;bottom:100%;}

/* مسیر مشترک انتخاب پلن، اطلاعات فروشگاه و پرداخت؛ بدون ذخیره پیش‌نویس. */
.tm-plan-checkout { scroll-margin-top:6rem; }
/* فقط متن وضعیت ثبت و نمایش نظر رنگ می‌گیرد؛ رنگ آبی و Focus استاندارد Switch حفظ می‌شود. */
.tm-panel-ui :is(#storeCreateForm, #storeEditForm, #storePlanUpdateForm) .form-switch .form-check-input:is([name="ProductCommentCreateEnabled"], [name="ProductCommentDisplayEnabled"]) + .form-check-label {
    color: var(--bs-secondary);
}
.tm-panel-ui :is(#storeCreateForm, #storeEditForm, #storePlanUpdateForm) .form-switch .form-check-input:is([name="ProductCommentCreateEnabled"], [name="ProductCommentDisplayEnabled"]):checked + .form-check-label {
    color: var(--bs-success);
}
.tm-plan-steps { display:flex; gap:.35rem; }
.tm-plan-step { flex:1; border:0; border-bottom:3px solid var(--bs-border-color); background:transparent; color:var(--bs-secondary-color); padding:.65rem .25rem; font:inherit; font-size:.875rem; border-radius:.35rem .35rem 0 0; }
.tm-plan-step span { display:inline-flex; justify-content:center; align-items:center; width:1.5rem; height:1.5rem; border-radius:50%; background:var(--bs-tertiary-bg); margin-inline-end:.25rem; }
.tm-plan-step.active { color:var(--bs-primary); border-bottom-color:var(--bs-primary); font-weight:700; }
.tm-plan-step.active span { background:var(--bs-primary); color:#fff; }
.tm-plan-step:focus-visible { outline:2px solid var(--bs-primary); outline-offset:2px; }
.tm-plan-step:disabled { cursor:default; }
[data-plan-step-title]:focus { outline:none; }
@media (max-width:575.98px) { .tm-plan-step { font-size:.75rem; } .tm-plan-step span { display:flex; margin:0 auto .25rem; } }

/* خلاصه پلن انتخابی با همان کادر و بازشونده صفحات محصولات. */
.tm-app .btn[data-plan-choose] { min-height:44px; }
.tm-app .tm-checkout-plan-summary strong { overflow-wrap:anywhere; }
.tm-app .tm-checkout-plan-summary { grid-template-columns:minmax(0,1fr); }
.tm-app .tm-checkout-plan-summary > .small > .row { grid-template-columns:repeat(2,minmax(0,1fr)); }
.tm-app .tm-checkout-plan-summary > .tm-plan-toggle { justify-self:end; }
/* ردیف مالیات اختیاری نباید شمارش odd قاعده عمومی را به مشخصه آخر تحمیل کند. */
.tm-app .tm-checkout-plan-summary > .small > .row > [class*="col-"]:last-child:nth-child(odd) { grid-column:auto; }
.tm-app .tm-checkout-plan-summary > .small > .row > [data-selected-plan-vat] { grid-column:1 / -1; }
.tm-app .tm-plan-select-badge:focus-visible { outline:2px solid var(--bs-primary); outline-offset:3px; }
.tm-app .tm-text-justify { text-align:justify; }

/* فقط شکل ارقام عوض می‌شود؛ مقدار دقیق فرم و قرارداد اعتبارسنجی انگلیسی باقی می‌ماند. */
@font-face {
    font-family: 'ZarMallNumericDigits';
    src: url('../Static/Fonts/vazir/Farsi-Digits/Vazir-FD.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0030-0039;
}
.tm-app :is(input, select, textarea)[data-tm-numeric]:not([type="hidden"]):not(.zar-datepicker-input):not(jdp-container *):not(.datepicker-plot-area *) {
    font-family: 'ZarMallNumericDigits', var(--tm-font-family, Tahoma), sans-serif !important;
}
@media (min-width:1200px) {
    .tm-app .tm-checkout-plan-summary { grid-template-columns:minmax(0,1fr) auto; }
    .tm-app .tm-checkout-plan-summary > .small > .row { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:1199.98px) {
    /* فاصله امن منوی ثابت از main تأمین می‌شود؛ حاشیه دوم در فرم خرید لازم نیست. */
    .tm-panel-ui .tm-page-shell:has(.tm-plan-checkout) { margin-bottom:0 !important; }
}

/* جزئیات نظر: فاصله‌ها داخل مودال بمانند و رشته بلند مرورگر در همان ستون بشکند. */
[data-comment-detail-panel] > dl.row { margin-inline: 0; }
[data-comment-detail-panel] dd, [data-comment-detail-panel] bdi { overflow-wrap: anywhere; white-space: normal; }

/* ویرایشگر مرکزی مطابق طرح مصوب؛ ابزارهای اصلی زیر پیش‌نمایش و تأیید همیشه در دسترس است. */
.tm-image-editor.modal { --ie-accent: #0663ff; --ie-selected-text: #0053dc; --ie-selected: #dce9ff; --ie-stage: #e7e8ed; z-index: 5120; }
[data-bs-theme="dark"] .tm-image-editor.modal { --ie-accent: #8ab4ff; --ie-selected-text: #a8c7ff; --ie-selected: #213c65; --ie-stage: #252a34; }
.tm-image-editor.modal.fade .modal-dialog { transform: none; }
.tm-image-editor-backdrop { z-index: 5110; }
.tm-image-editor .modal-dialog { width: calc(100% - 2rem); max-width: 1080px; margin: 1rem auto; min-height: calc(100% - 2rem); height: calc(100% - 2rem); }
.tm-image-editor .modal-content { max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); border: 1px solid var(--bs-border-color); border-radius: 18px; overflow: hidden; box-shadow: 0 16px 48px #16213526, 0 2px 7px #1621351a; }
.tm-image-editor .modal-header { flex-shrink: 0; gap: .5rem; padding: .75rem 1.5rem; min-height: 76px; border-bottom-color: var(--bs-border-color); }
.tm-image-editor-heading { display: flex; align-items: center; min-width: 0; gap: 1rem; }
.tm-image-editor-brand { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; padding-inline-end: 1rem; border-inline-end: 1px solid var(--bs-secondary-color); font-size: 22px; font-weight: 750; white-space: nowrap; }
.tm-image-editor-brand > .bi { color: var(--ie-accent); font-size: 30px; line-height: 1; }
.tm-image-editor .modal-title { font-size: 24px; line-height: 1.6; font-weight: 750; white-space: nowrap; }
.tm-image-editor .tm-image-editor-close { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; margin: 0 auto 0 0; color: var(--bs-body-color); border: 0; box-sizing: border-box; font-size: 1.4rem; }
.tm-image-editor .modal-body { padding: .875rem 1.5rem 0; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; }
.tm-image-editor .modal-footer { flex-shrink: 0; justify-content: flex-start; direction: ltr; padding: .65rem 1.5rem; gap: 1rem; background: var(--bs-body-bg); border-top-color: var(--bs-border-color); }
.tm-image-editor .modal-footer > * { margin: 0; }
.tm-image-editor .modal-footer > .btn { direction: rtl; font-size: 17px; font-weight: 650; }
.tm-app .tm-image-editor .btn { min-height: 44px; min-width: 44px; }
.tm-image-editor .btn.tm-image-editor-apply { min-width: 220px; min-height: 48px; background: #0663ff; border-color: #0663ff; border-radius: .6rem; }
.tm-image-editor .btn.tm-image-editor-apply:hover { background: #0053dc; border-color: #0053dc; }
.tm-image-editor .btn.tm-image-editor-cancel { color: var(--bs-body-color); min-width: 100px; }
.tm-image-editor .btn:focus-visible, .tm-image-editor-thumb:focus-visible, .tm-image-editor-rotate:focus-visible { outline: 2px solid var(--ie-accent); outline-offset: 2px; box-shadow: none; }
.tm-image-editor-toolbar { display: flex; flex-direction: column; gap: .5rem; padding-block: .6rem; }
.tm-image-editor-tools { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); width: 100%; gap: .25rem; min-width: 0; }
.tm-image-editor .btn.tm-image-editor-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .5rem; border: 1px solid transparent; border-radius: .55rem; color: var(--bs-body-color); line-height: 1; }
.tm-image-editor .btn.tm-image-editor-tool { width: 100%; }
.tm-image-editor-tools > .tm-image-editor-tool + .tm-image-editor-tool { border-inline-start-color: var(--bs-border-color); }
.tm-image-editor-icon > .bi { font-size: 26px; line-height: 1; }
.tm-image-editor .tm-image-editor-icon:hover { background: var(--bs-tertiary-bg); }
.tm-image-editor .tm-image-editor-icon[aria-pressed="true"] { color: var(--ie-selected-text); background: var(--ie-selected); border-color: transparent; }
.tm-image-editor .tm-image-editor-icon[data-ie-remove] { color: var(--bs-danger-text-emphasis); }
.tm-image-editor .tm-image-editor-icon[data-ie-remove]:hover { background: var(--bs-danger-bg-subtle); }
.tm-image-editor-crop-actions { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: .5rem; padding-top: .5rem; border-top: 1px solid var(--bs-border-color); }
.tm-image-editor-crop-actions[hidden] { display: none; }
.tm-image-editor-crop-modes, .tm-image-editor-crop-commit { display: flex; align-items: center; gap: .25rem; }
.tm-image-editor-crop-modes { padding: 2px; border: 1px solid var(--bs-border-color); border-radius: .65rem; }
.tm-image-editor .tm-image-editor-crop-actions .tm-image-editor-icon { width: 44px; height: 44px; }
.tm-image-editor .btn.tm-image-editor-confirm-crop { color: var(--ie-selected-text); background: var(--ie-selected); }
.tm-image-editor [hidden] { display: none !important; }
.tm-image-editor-rotate { position: absolute; width: 44px; height: 44px; padding: 0; border: 1px solid var(--bs-border-color); border-radius: 50%; background: var(--bs-body-bg); box-shadow: 0 2px 6px #16213524; color: var(--ie-accent); font-size: 1.5rem; touch-action: none; cursor: url('/images/image-rotate-cursor.svg') 16 16, grab; }
.tm-image-editor-rotate[hidden] { display: none; }
.tm-image-editor .tm-image-editor-rotate:not(:disabled) { cursor: url('/images/image-rotate-cursor.svg') 16 16, grab; }
.tm-image-editor-stage.is-rotating, .tm-image-editor-stage.is-rotating canvas { cursor: url('/images/image-rotate-cursor.svg') 16 16, grabbing; }
.tm-image-actions { position: absolute; top: -.65rem; left: -.65rem; display: flex; gap: .25rem; z-index: 2; }
/* فقط اندازه و ظاهر عملیات تصویر مشترک است؛ محل قرارگیری را همان قاب هر فرم تعیین می‌کند. */
.tm-app .btn.tm-image-action { --tm-image-action-size: 32px; box-sizing: border-box; width: var(--tm-image-action-size); height: var(--tm-image-action-size); min-width: var(--tm-image-action-size); min-height: var(--tm-image-action-size); max-width: var(--tm-image-action-size); max-height: var(--tm-image-action-size); flex: 0 0 var(--tm-image-action-size); padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; border-width: 1px; border-radius: .5rem; font-size: 16px !important; line-height: 1; color: var(--bs-body-color) !important; background-color: var(--bs-body-bg) !important; border-color: var(--bs-border-color) !important; }
.tm-app .btn.tm-image-action > .bi { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; font-size: 16px !important; line-height: 1; }
.tm-app .btn.tm-image-action > .bi::before { font-size: 16px; line-height: 1; vertical-align: 0; }
.tm-app .btn.tm-image-action:has(> .bi-trash) { color: #fff !important; background-color: var(--bs-danger) !important; border-color: var(--bs-danger) !important; }
.tm-app .btn.tm-image-action:is(:hover, :focus-visible) { color: var(--bs-body-color) !important; background-color: var(--bs-secondary-bg) !important; border-color: var(--bs-border-color) !important; }
.tm-app .btn.tm-image-action:has(> .bi-trash):is(:hover, :focus-visible) { color: #fff !important; background-color: #bb2d3b !important; border-color: #b02a37 !important; }
.tm-app .btn.tm-image-action:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.tm-app .btn.tm-image-action[hidden] { display: none !important; }
@media (pointer: coarse) { .tm-app .btn.tm-image-action { --tm-image-action-size: 44px; } }
.tm-image-editor-stage { position: relative; width: 100%; height: clamp(180px, calc(100vh - 420px), 456px); height: clamp(180px, calc(100dvh - 420px), 456px); min-height: 150px; overflow: hidden; border-radius: .75rem; background: var(--ie-stage); direction: ltr; }
@media (min-width: 768px) {
    .tm-image-editor:has([data-ie-crop-actions]:not([hidden])) .tm-image-editor-stage { height: clamp(180px, calc(100vh - 480px), 456px); height: clamp(180px, calc(100dvh - 480px), 456px); }
}
.tm-image-editor-stage > [data-ie-canvas] { display: block; width: 100%; height: 100%; touch-action: none; outline-offset: -3px; }
.tm-image-editor-stage > [data-ie-canvas]:focus-visible { outline: 2px solid var(--ie-accent); }
.tm-image-editor-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; background: var(--bs-body-bg); color: var(--bs-body-color); direction: rtl; }
.tm-image-editor-status[hidden] { display: none; }
.tm-image-editor-batch { display: flex; gap: .5rem; align-items: center; justify-content: center; border-top: 1px solid var(--bs-border-color); padding-block: .875rem; }
.tm-image-editor-batch:not(.is-overflowing) > .tm-image-editor-batch-nav { display: none; }
.tm-image-editor-batch:not(.is-overflowing) > .tm-image-editor-thumbs { max-width: 100%; }
.tm-image-editor .tm-image-editor-batch-nav { color: var(--bs-secondary-color); flex: 0 0 44px; padding: 0; border: 0; }
.tm-image-editor .tm-image-editor-batch-nav:disabled { opacity: .2; }
.tm-image-editor-thumbs { min-width: 0; width: max-content; max-width: calc(100% - 104px); display: flex; gap: .875rem; overflow-x: auto; padding: .2rem; overscroll-behavior: contain; scrollbar-width: thin; }
.tm-image-editor-thumb { position: relative; flex: 0 0 196px; width: 196px; height: 112px; padding: 4px; overflow: hidden; border: 2px solid transparent; border-radius: .9rem; background: var(--bs-body-bg); color: var(--bs-body-color); }
.tm-image-editor-thumb[aria-current="true"] { border-color: var(--ie-accent); }
.tm-image-editor-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: .55rem; background: var(--ie-stage); }
.tm-image-editor-thumb span { position: absolute; inset: 4px; display: flex; align-items: center; justify-content: center; border-radius: .55rem; color: var(--bs-secondary-color); background: var(--ie-stage); font-size: 1.2rem; }
.tm-image-editor-avatar { position: absolute; right: .65rem; bottom: .65rem; width: 64px; height: 64px; border-radius: 50%; background: var(--bs-tertiary-bg); border: 2px solid var(--bs-body-bg); box-shadow: 0 2px 8px #16213533; pointer-events: none; }
.tm-image-editor-avatar[hidden] { display: none; }
@media (max-width: 767.98px) {
    .tm-image-editor .modal-dialog { width: calc(100% - 1rem); max-width: 520px; margin: .5rem auto; min-height: calc(100% - 1rem); height: calc(100% - 1rem); }
    .tm-image-editor .modal-content { max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); border-radius: 16px; }
    .tm-image-editor .modal-header { min-height: 66px; padding: .5rem .75rem; }
    .tm-image-editor-heading { gap: .65rem; }
    .tm-image-editor-brand { font-size: 18px; padding-inline-end: .65rem; gap: .35rem; }
    .tm-image-editor-brand > .bi { font-size: 28px; }
    .tm-image-editor .modal-title { font-size: 18px; }
    .tm-image-editor .tm-image-editor-close { font-size: 1.1rem; }
    .tm-image-editor .modal-body { padding: .5rem .65rem 0; }
    .tm-image-editor-stage { height: min(360px, calc((100vw - 40px) * .9), calc(100vh - 460px)); height: min(360px, calc((100vw - 40px) * .9), calc(100dvh - 460px)); min-height: 180px; }
    .tm-image-editor-toolbar { gap: .5rem; padding-block: .5rem; }
    .tm-image-editor-tools { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .tm-image-editor-tools > .tm-image-editor-tool:nth-child(6) { border-inline-start-color: transparent; }
    .tm-image-editor-icon > .bi { font-size: 24px; }
    .tm-image-editor-batch { border-top: 0; padding-block: .35rem 1rem; gap: 0; position: relative; }
    .tm-image-editor .btn.tm-image-editor-batch-nav { position: absolute; z-index: 1; width: 44px; min-width: 44px; background: var(--bs-body-bg); opacity: .9; }
    .tm-image-editor .tm-image-editor-batch-nav:disabled { visibility: hidden; }
    .tm-image-editor [data-ie-prev] { right: 0; }
    .tm-image-editor [data-ie-next] { left: 0; }
    .tm-image-editor-thumbs { max-width: 100%; gap: .35rem; }
    .tm-image-editor-thumb { flex-basis: calc((100vw - 60px) / 3); width: calc((100vw - 60px) / 3); max-width: 144px; height: 82px; border-radius: .7rem; padding: 3px; }
    .tm-image-editor .modal-footer { flex-direction: column; align-items: stretch; gap: .1rem; padding: .65rem .75rem max(.4rem, env(safe-area-inset-bottom)); }
    .tm-image-editor .btn.tm-image-editor-apply { width: 100%; min-width: 0; min-height: 46px; }
    .tm-image-editor .btn.tm-image-editor-cancel { min-height: 44px; }
}
@media (max-height: 520px) {
    .tm-image-editor-stage { height: 180px; min-height: 180px; }
    .tm-image-editor .modal-header { min-height: 56px; padding-block: .25rem; }
    .tm-image-editor .modal-footer { flex-direction: row; gap: .5rem; padding-block: .35rem; }
    .tm-image-editor .btn.tm-image-editor-apply { width: auto; flex: 1; max-width: 220px; }
    .tm-image-editor .btn.tm-image-editor-cancel { min-width: 80px; }
}

/* صفحات عمومی اطلاعات زر مال از پوسته و منوی مشترک پنل استفاده می‌کنند. */
.tm-site-info {
    display: grid;
    gap: clamp(.85rem, 2vw, 1.35rem);
    width: min(100%, 72rem);
    min-width: 0;
    margin: 1rem auto 2rem;
}
.tm-site-info > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--tm-section-gap);
    margin: 0;
}
.tm-site-info > .row > * { width: auto; margin: 0; padding: 0; }
@media (min-width: 992px) {
    .tm-site-info > .row:has(.tm-store-contact-map-shell) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.tm-site-info-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--bs-border-color);
    border-inline-start: .3rem solid var(--bs-primary);
    border-radius: 1rem;
    background: linear-gradient(105deg, transparent, rgba(var(--bs-primary-rgb), .09)), var(--bs-body-bg);
}
.tm-site-info-heading h1 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.85rem); font-weight: 800; }
.tm-site-info-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: .9rem;
    color: white;
    background: var(--bs-primary);
    font-size: 1.4rem;
}
.tm-site-info-card, .tm-site-info .tm-store-contact-panel {
    min-width: 0;
    padding: clamp(1rem, 2.4vw, 2rem);
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-body-bg);
    box-shadow: 0 .25rem 1.25rem rgba(20, 43, 72, .05);
    scroll-margin-top: 6rem;
}
.tm-site-section-title { margin: 0 0 1rem; font-size: 1.12rem; font-weight: 800; overflow-wrap: anywhere; }
.tm-site-prose { max-width: 58rem; font-size: 1rem; line-height: 2.15; }
.tm-site-terms-content { max-width: none; text-align: justify; }
.tm-site-terms-nav, .tm-site-networks, .tm-site-terms-meta { display: flex; flex-wrap: wrap; gap: .6rem; }
.tm-site-terms-nav a, .tm-site-network {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .45rem .9rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
    color: var(--bs-emphasis-color);
    text-decoration: none;
    line-height: 1.6;
}
.tm-site-terms-nav a:hover, .tm-site-network:hover {
    color: var(--bs-link-color);
    border-color: currentColor;
    background: var(--bs-tertiary-bg);
}
.tm-site-network i { font-size: 1.15rem; }
.tm-site-terms-meta { color: var(--bs-secondary-color); font-size: .82rem; column-gap: 1.25rem; }
.tm-site-info .tm-store-contact-panel h2 { font-size: 1.12rem; }
.tm-site-info .tm-store-contact-map-shell { overflow: hidden; border-radius: 1rem; min-height: 18rem; height: 100%; }
.tm-site-info .tm-store-contact-map-shell iframe { height: 100%; min-height: 18rem; }
.tm-site-info .tm-store-contact-map-shell:has(+ .tm-store-contact-map-note) { height: auto; }
@media (max-width: 575.98px) {
    .tm-site-terms-nav { gap: .4rem; }
    .tm-site-terms-nav a { padding-inline: .65rem; }
}

/* پیوندهای خود زر مال؛ نوار چهارگزینه‌ای ناوبری موبایل مستقل است. */
.zm-site-footer {
    --footer-inset: clamp(1.5rem, 4vw, 3.5rem);
    --footer-icon-bg: #edf5f8;
    --footer-icon-color: #16668a;
    flex: none;
    min-width: 0;
    background: var(--tm-surface-bg);
    color: var(--tm-head-color);
    font-family: var(--tm-commerce-font-family);
}
[data-bs-theme="dark"] .zm-site-footer {
    --footer-icon-bg: #213947;
    --footer-icon-color: #93d6e7;
}
.zm-site-footer__handle { display: none; }
.zm-site-footer__band {
    color: white;
}
.zm-site-footer__inner {
    display: flex;
    align-items: center;
}
.zm-site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    color: #fff;
}
.zm-site-footer__brand:is(:hover, :focus-visible) { color: #fff; }
.zm-site-footer__logo {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 19px;
    background: linear-gradient(142deg, #157bfa, #0875ba 54%, #058182);
    box-shadow: inset 0 0 0 1px #ffffff35, 0 6px 16px #00182826;
    font-size: 35px;
}
.zm-site-footer__name { display: grid; gap: 3px; }
.zm-site-footer__name b { color: white; font-size: clamp(1.25rem, 1.6vw, 1.375rem); line-height: 1.2; font-weight: 900; }
.zm-site-footer__name span { color: #f3f8fa; font-size: .75rem; font-weight: 500; }
.zm-site-footer__social {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.zm-site-footer__social strong { color: #d5e5ed; font-size: 13px; font-weight: 500; }
.zm-site-footer__networks { gap: 8px; }
.zm-site-footer__network {
    width: 44px;
    min-height: 44px;
    border-radius: 12px;
    border-color: #ffffff55;
    padding: 0;
    color: #fff;
    background: #ffffff0c;
}
.zm-site-footer__network i { font-size: 20px; }
.zm-site-footer__network span { display: none; }
.zm-site-footer__network:is(:hover, :focus-visible) { background: #ffffff26; color: #fff; }
.zm-site-footer__links {
    align-items: center;
}
.zm-site-footer__links a {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    color: var(--tm-head-color);
    font-size: 14px;
    font-weight: 700;
}
.zm-site-footer__links a:is(:hover, :focus-visible) { color: var(--footer-icon-color); }
.zm-site-footer__links a > .bi-chevron-left { margin-inline-start: auto; color: var(--tm-muted-color); font-size: 12px; }
.zm-site-footer__link-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--footer-icon-color);
    background: var(--footer-icon-bg);
    border-radius: 11px;
    font-size: 18px;
}
.zm-site-footer :is(a, button):focus-visible { outline: 2px solid #358fba; outline-offset: 2px; }
@media (min-width: 768px) {
    .zm-site-footer {
        --footer-surface: color-mix(in srgb, var(--tm-surface-bg) 45%, var(--tm-body-bg));
        position: relative;
        isolation: isolate;
        background: transparent;
        color: var(--bs-emphasis-color);
    }
    .zm-site-footer::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset-inline: 0;
        inset-block: -3rem 0;
        background: linear-gradient(to bottom,
            transparent,
            color-mix(in srgb, var(--footer-surface) 12%, transparent) .75rem,
            color-mix(in srgb, var(--footer-surface) 50%, transparent) 1.5rem,
            color-mix(in srgb, var(--footer-surface) 88%, transparent) 2.25rem,
            var(--footer-surface) 3rem);
        pointer-events: none;
    }
    .zm-site-footer__content {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px clamp(16px, 2vw, 32px);
        min-height: 118px;
        padding: 16px max(var(--footer-inset), calc((100% - 86rem) / 2));
    }
    .zm-site-footer__band, .zm-site-footer__brand, .zm-site-footer__brand:is(:hover, :focus-visible),
    .zm-site-footer__name b { color: inherit; }
    .zm-site-footer__name span, .zm-site-footer__social strong { color: var(--bs-secondary-color); }
    .zm-site-footer__logo { background: transparent; box-shadow: none; }
    .zm-site-footer__network { background: transparent; color: inherit; border-color: var(--bs-border-color-translucent); }
    .zm-site-footer__network:is(:hover, :focus-visible) { background: transparent; color: inherit; border-color: currentColor; }
    .zm-site-footer__links {
        display: flex;
        flex-wrap: wrap;
        gap: 0 clamp(8px, 1.15vw, 20px);
        justify-content: center;
        place-self: stretch center;
        max-width: 100%;
    }
    .zm-site-footer__links a { color: inherit; }
    .zm-site-footer__links a:is(:hover, :focus-visible) { color: inherit; text-decoration: underline; text-underline-offset: .25em; }
    .zm-site-footer__link-icon { width: 23px; height: 26px; font-size: 17px; background: none; color: inherit; }
    .zm-site-footer__links a > .bi-chevron-left { display: none; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .zm-site-footer__content { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
    .zm-site-footer__social { grid-area: 1 / 2; }
    .zm-site-footer__links { grid-column: 1 / -1; justify-self: start; }
}
@media (min-width: 768px) and (max-width: 1199.98px) and (max-height: 500px) {
    .zm-site-footer__content { min-height: 0; padding-block: 8px; row-gap: 0; }
    .zm-site-footer__logo { width: 40px; height: 40px; border-radius: 12px; font-size: 23px; }
    .zm-site-footer__name b { font-size: 1.125rem; }
    .zm-site-footer__social { flex-direction: row; align-items: center; }
}
@media (max-width: 1199.98px) {
    .tm-has-global-mobile-bottom-nav > .zm-site-footer {
        --footer-clearance: var(--footer-dock-space, calc(var(--tm-global-mobile-bottom-nav-clearance) + 8px));
        margin-bottom: var(--footer-clearance);
    }
    body.tm-app.tm-has-global-mobile-bottom-nav:has(> .zm-site-footer) .tm-main-layout-container > main.pb-3 {
        padding-bottom: 1rem !important;
    }
}
@media (max-width: 767.98px) {
    .zm-site-footer {
        --footer-inset: 16px;
        position: relative;
        margin: 0 9px max(8px, env(safe-area-inset-bottom));
        border: 0;
        border-radius: 17px;
        box-shadow: 0 5px 16px #163b5d0b;
    }
    .zm-site-footer__content {
        display: block;
        overflow: hidden;
        border: 1px solid var(--tm-border-color);
        border-radius: 17px;
        background: var(--tm-surface-bg);
    }
    .zm-site-footer__band {
        background: linear-gradient(110deg, rgb(39 66 92 / var(--footer-band-alpha, 1)) 4%,
            rgb(33 75 103 / var(--footer-band-alpha, 1)) 48%, rgb(26 91 102 / var(--footer-band-alpha, 1)));
    }
    .zm-site-footer__inner { min-height: 78px; padding-inline: var(--footer-inset); }
    .zm-site-footer__brand { gap: 11px; }
    .zm-site-footer__logo { width: 42px; height: 42px; border-radius: 13px; font-size: 25px; }
    .zm-site-footer__name { gap: 0; }
    .zm-site-footer__name b { font-size: 25px; }
    .zm-site-footer__name span { font-size: 12px; }
    .zm-site-footer__links {
        display: grid;
        padding: 3px var(--footer-inset);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 16px;
    }
    .zm-site-footer__links a, .zm-site-footer__links a + a { padding: 8px 0; gap: 7px; border-inline: 0; }
    .zm-site-footer__links a:nth-child(n+3) { border-top: 1px solid var(--tm-border-color); }
    .zm-site-footer__link-icon { width: 29px; height: 29px; border-radius: 8px; font-size: 15px; }
    .zm-site-footer__links a > .bi-chevron-left { font-size: 10px; }
    .zm-site-footer__social {
        margin: 0;
        justify-self: stretch;
        padding: 5px var(--footer-inset);
        background: var(--tm-surface-alt-bg);
        border-top: 1px solid var(--tm-border-color);
        flex-flow: row wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0 6px;
    }
    .zm-site-footer__social strong { color: var(--tm-muted-color); font-size: 12px; font-weight: 600; }
    .zm-site-footer__networks { gap: 2px; }
    .zm-site-footer__network { border: 0; background: transparent; color: var(--tm-head-color); }
    .zm-site-footer__network:is(:hover, :focus-visible) { color: var(--footer-icon-color); background: var(--footer-icon-bg); }
    .zm-site-footer[data-drawer-ready] .zm-site-footer__handle {
        width: 100%;
        min-height: 54px;
        padding: 0 14px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border: 1px solid var(--tm-border-color);
        border-radius: inherit;
        background: var(--tm-surface-bg);
        color: var(--tm-head-color);
        font: 700 13px var(--tm-commerce-font-family);
        cursor: pointer;
    }
    .zm-site-footer.is-open .zm-site-footer__handle { border-start-start-radius: 0; border-start-end-radius: 0; }
    .zm-site-footer__handle:focus-visible { outline-offset: -3px; }
    .zm-site-footer__handle-label { display: inline-flex; align-items: center; gap: 8px; }
    .zm-site-footer__handle-label i { color: var(--footer-icon-color); font-size: 19px; }
    .zm-site-footer__direction {
        display: grid;
        place-items: center;
        width: 36px;
        height: 32px;
        border-radius: 10px;
        color: var(--footer-icon-color);
        background: var(--footer-icon-bg);
        border: 1px solid var(--tm-border-color);
    }
    .zm-site-footer__arrows { transition: transform .32s cubic-bezier(.22,.72,.25,1); }
    .zm-site-footer.is-open .zm-site-footer__arrows { transform: rotate(180deg); }

    /* قاب روی محتوای بالای دستگیره باز می‌شود تا مختصات لمس دوم ثابت بماند. */
    .zm-site-footer[data-drawer-ready] .zm-site-footer__panel {
        position: absolute;
        z-index: 10;
        inset-inline: 0;
        bottom: 100%;
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows .32s cubic-bezier(.22,.72,.25,1);
    }
    .zm-site-footer.is-open .zm-site-footer__panel { grid-template-rows: 1fr; }
    .zm-site-footer[data-drawer-ready] .zm-site-footer__clip { min-height: 0; overflow: hidden; }
    .zm-site-footer[data-drawer-ready] .zm-site-footer__content {
        max-height: calc(100dvh - var(--footer-clearance, 12px) - 64px);
        overflow-y: auto;
        overscroll-behavior-y: contain;
        border-radius: 17px 17px 0 0;
        border-bottom: 0;
    }
    @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .zm-site-footer[data-drawer-ready] .zm-site-footer__content {
            --footer-band-alpha: .85;
            background: color-mix(in srgb, var(--tm-surface-bg) 60%, transparent);
            box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%);
            -webkit-backdrop-filter: blur(18px);
            backdrop-filter: blur(18px);
        }
        .zm-site-footer[data-drawer-ready] .zm-site-footer__social {
            background: color-mix(in srgb, var(--tm-surface-alt-bg) 60%, transparent);
        }
    }
}
@media (prefers-reduced-motion: reduce) {
    .zm-site-footer[data-drawer-ready] .zm-site-footer__panel, .zm-site-footer__arrows { transition: none; }
}

/* The footer keeps its own place in the document and stays above the mobile dock. */
html:has(.tm-app > .zm-site-footer) { scroll-padding-bottom: var(--zm-footer-obstruction, 0px); }
.tm-app > .zm-site-footer {
    position: sticky;
    bottom: var(--footer-clearance, 0px);
    z-index: 1020;
    flex: none;
}

/* Shared inline plan panel. Breakpoints follow the available panel width. */
.tm-panel-ui .tm-inline-plan {
    container: inline-plan / inline-size;
    min-width: 0;
    border: 1px solid var(--tm-border-color);
    border-radius: .95rem;
    background: var(--tm-surface-bg);
    box-shadow: var(--tm-shadow-sm);
    color: var(--tm-text-color);
    font-family: var(--tm-commerce-font-family, var(--tm-font-family));
    font-size: .9375rem;
    line-height: 1.65;
    text-align: start;
}

.tm-panel-ui .tm-inline-plan [hidden] { display: none !important; }

.tm-panel-ui .tm-inline-plan .tm-ip-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .875rem .375rem;
    align-items: center;
    padding: .875rem;
    border-radius: inherit;
    background: linear-gradient(105deg, var(--tm-surface-alt-bg), var(--tm-surface-bg) 52%, var(--tm-head-bg));
}

.tm-panel-ui .tm-ip-summary:has(.tm-ip-toggle[aria-expanded="true"]) { border-end-end-radius: 0; border-end-start-radius: 0; }
.tm-panel-ui .tm-ip-metric { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.tm-panel-ui .tm-ip-metric > div { min-width: 0; overflow-wrap: anywhere; }
.tm-panel-ui .tm-ip-metric:nth-child(even) { border-inline-start: 1px solid var(--tm-border-color); padding-inline-start: .625rem; }
.tm-panel-ui .tm-ip-label, .tm-panel-ui .tm-ip-number { display: block; }
.tm-panel-ui .tm-ip-label { font-size: .76rem; color: var(--tm-muted-color); }
.tm-panel-ui .tm-ip-number { font-size: 1.08rem; line-height: 1.55; color: var(--tm-head-color); font-weight: 800; }
.tm-panel-ui .tm-ip-number :is(small, em) { font-size: .78em; font-style: normal; font-weight: 600; }
.tm-panel-ui .tm-ip-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2.125rem;
    border: 1px solid var(--tm-border-color);
    border-radius: .6rem;
    background: var(--tm-surface-alt-bg);
    color: var(--tm-muted-color);
    font-size: 1.0625rem;
}
.tm-panel-ui .tm-ip-metric:first-child .tm-ip-icon { background: var(--tm-nav-hover-bg); color: var(--tm-nav-hover-color); }

.tm-panel-ui .tm-inline-plan .tm-ip-toggle,
.tm-panel-ui .tm-inline-plan .tm-ip-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: max(2.75rem, var(--tm-icon-button-size));
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.55;
    cursor: pointer;
}

.tm-panel-ui .tm-inline-plan .tm-ip-toggle {
    grid-column: 1 / -1;
    justify-self: stretch;
    padding: .35rem .9rem;
    border: 1px solid var(--tm-border-strong);
    border-radius: .6rem;
    background: var(--tm-surface-bg);
    color: var(--tm-nav-hover-color);
}
.tm-panel-ui .tm-inline-plan .tm-ip-toggle:hover { border-color: var(--tm-nav-hover-color); }
.tm-panel-ui .tm-inline-plan :is(.tm-ip-toggle, .tm-ip-tab):focus-visible {
    outline: 2px solid var(--tm-nav-hover-color);
    outline-offset: 2px;
}
.tm-panel-ui .tm-ip-toggle[aria-expanded="true"] .tm-ip-open-label,
.tm-panel-ui .tm-ip-toggle[aria-expanded="false"] .tm-ip-close-label { display: none; }
.tm-panel-ui .tm-ip-toggle .bi-chevron-down { font-size: .8rem; transition: transform 130ms ease; }
.tm-panel-ui .tm-ip-toggle[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }

.tm-panel-ui .tm-ip-details { padding: 0 .75rem .875rem; border-top: 1px solid var(--tm-border-color); }
.tm-panel-ui .tm-ip-tabs {
    display: flex;
    align-items: stretch;
    justify-content: space-evenly;
    gap: .5rem;
    margin-bottom: .75rem;
    border-bottom: 1px solid var(--tm-border-color);
}
.tm-panel-ui .tm-inline-plan .tm-ip-tab {
    position: relative;
    padding: .625rem .2rem;
    border: 0;
    background: transparent;
    color: var(--tm-muted-color);
}
.tm-panel-ui .tm-inline-plan .tm-ip-tab:is(:hover, [aria-selected="true"]) { color: var(--tm-nav-hover-color); }
.tm-panel-ui .tm-ip-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--tm-color-primary);
}

.tm-panel-ui .tm-ip-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: .75rem; }
.tm-panel-ui .tm-ip-group {
    min-width: 0;
    border: 1px solid var(--tm-border-color);
    border-radius: .7rem;
    background: var(--tm-surface-bg);
}
.tm-panel-ui .tm-ip-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin: 0;
    padding: .55rem .8rem;
    border-bottom: 1px solid var(--tm-border-color);
    border-start-start-radius: inherit;
    border-start-end-radius: inherit;
    background: var(--tm-surface-alt-bg);
    color: var(--tm-head-color);
    font-size: .92rem;
    font-weight: 700;
}
.tm-panel-ui .tm-ip-group-head :is(h3, h4) { margin: 0; font-size: inherit; font-weight: inherit; }
.tm-panel-ui .tm-ip-group-head small { font-size: .72rem; font-weight: 400; color: var(--tm-muted-color); }
.tm-panel-ui .tm-ip-row {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    min-width: 0;
    margin-inline: .8rem;
    padding-block: .43rem;
    font-size: .85rem;
    overflow-wrap: anywhere;
}
.tm-panel-ui .tm-ip-row + .tm-ip-row { border-top: 1px solid var(--tm-border-color); }
.tm-panel-ui .tm-ip-row > .bi { flex: none; color: var(--tm-muted-color); }
.tm-panel-ui .tm-ip-value { flex: 0 1 auto; margin-inline-start: auto; text-align: end; color: var(--tm-head-color); font-variant-numeric: tabular-nums; }
.tm-panel-ui .tm-ip-value small { color: var(--tm-muted-color); }
.tm-panel-ui .tm-ip-plan-name, .tm-panel-ui .tm-ip-description { margin: .65rem .8rem; overflow-wrap: anywhere; }
.tm-panel-ui .tm-ip-plan-name { font-size: 1.15rem; font-weight: 800; color: var(--tm-head-color); }
.tm-panel-ui .tm-ip-description { color: var(--tm-muted-color); font-size: .85rem; white-space: pre-line; }
.tm-panel-ui .tm-ip-networks { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem; padding: .7rem .8rem; }
.tm-panel-ui .tm-ip-network { display: grid; justify-items: center; gap: .12rem; color: var(--tm-muted-color); text-align: center; font-size: .76rem; line-height: 1.5; }
.tm-panel-ui .tm-ip-network > .bi {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    background: var(--tm-surface-alt-bg);
    font-size: 1.1rem;
}
.tm-panel-ui .tm-ip-network small { font-size: .68rem; }
.tm-panel-ui .tm-ip-network.is-enabled { color: var(--bs-success-text-emphasis); }
.tm-panel-ui .tm-ip-network.is-enabled > .bi { background: var(--bs-success-bg-subtle); }

@container inline-plan (min-width: 40rem) {
    .tm-panel-ui .tm-inline-plan .tm-ip-summary { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr) auto; gap: 1rem; padding: 1.25rem 1.5rem; }
    .tm-panel-ui .tm-ip-metric { gap: .8rem; }
    .tm-panel-ui .tm-ip-metric:nth-child(even) { padding-inline-start: 1.25rem; }
    .tm-panel-ui .tm-ip-icon { width: 2.75rem; height: 2.75rem; border-radius: .75rem; font-size: 1.35rem; }
    .tm-panel-ui .tm-ip-number { font-size: 1.35rem; }
    .tm-panel-ui .tm-inline-plan .tm-ip-toggle { grid-column: auto; justify-self: end; }
    .tm-panel-ui .tm-ip-details { padding: 0 1.5rem 1.25rem; }
    .tm-panel-ui .tm-ip-tabs { justify-content: flex-start; gap: 1.5rem; margin-bottom: 1rem; }
    .tm-panel-ui .tm-ip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .tm-panel-ui .tm-ip-row { padding-block: .55rem; }
    .tm-panel-ui .tm-ip-selection .tm-ip-summary { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
    .tm-panel-ui .tm-ip-selection .tm-ip-toggle { grid-column: 3; grid-row: 1 / 3; }
}

@container inline-plan (min-width: 58rem) {
    .tm-panel-ui .tm-ip-selection .tm-ip-summary { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.5fr) minmax(0, 1fr) auto; }
    .tm-panel-ui .tm-ip-selection .tm-ip-metric { gap: .5rem; }
    .tm-panel-ui .tm-ip-selection .tm-ip-metric + .tm-ip-metric { padding-inline-start: .75rem; border-inline-start: 1px solid var(--tm-border-color); }
    .tm-panel-ui .tm-ip-selection .tm-ip-icon { width: 2.2rem; height: 2.2rem; font-size: 1.1rem; }
    .tm-panel-ui .tm-ip-selection .tm-ip-number { font-size: 1.05rem; }
    .tm-panel-ui .tm-ip-selection .tm-ip-toggle { grid-column: auto; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .tm-panel-ui .tm-ip-toggle .bi-chevron-down { transition: none; }
}
