@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');
/* این استایل فقط به پنل محصولات شرکت محدود است؛ زمینه سفید، مرزبندی ساده و طلایی ملایم مطابق مرجع است. */
html.ncp-panel-document,
html.ncp-panel-document body.ncp-page { scrollbar-width: none; -ms-overflow-style: none; }
html.ncp-panel-document::-webkit-scrollbar,
html.ncp-panel-document body.ncp-page::-webkit-scrollbar { display: none; }
.ncp-page { margin: 0; color: #252525; background: #fff; font: 15px/1.8 "Vazirmatn", Tahoma, Arial, sans-serif; direction: rtl; }
.ncp-page * { box-sizing: border-box; }
.ncp-page a { color: inherit; text-decoration: none; }
.ncp-page button, .ncp-page input { font: inherit; }
.ncp-page button, .ncp-page summary { cursor: pointer; }
.ncp-page svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ncp-page .ncp-shell { display: grid; grid-template-columns: clamp(230px, 18.3vw, 310px) minmax(0, 1fr); min-height: 100vh; border: 1px solid #d8d8d8; border-radius: 6px; }
.ncp-page .ncp-sidebar { position: relative; padding: 48px 16px; border-inline-end: 1px solid #ddd; background: #fcfcfc; text-align: center; }
.ncp-page .ncp-sidebar-home { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #8b641f; font-size: 14px; font-weight: 600; line-height: 1.7; }
.ncp-page .ncp-sidebar-home svg { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ncp-page .ncp-company-logo { width: min(174px, 85%); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; background: #f5f4f2; border: 1px solid #e4e0d8; border-radius: 18px; overflow: hidden; }
.ncp-page .ncp-company-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ncp-page .ncp-company-logo span { font-size: 13px; color: #777; padding: 12px; }
.ncp-page .ncp-sidebar h2 { margin: 14px 0 30px; font-size: 20px; overflow-wrap: anywhere; }
.ncp-page .ncp-navigation { display: grid; gap: 0px; text-align: right; }
.ncp-page .ncp-navigation > a, .ncp-page .ncp-navigation > span { display: flex; align-items: center; gap: 0px; padding: 0px 22px; min-height: 60px; font-size: 16px; border-inline-end: 3px solid transparent; }
.ncp-page .ncp-navigation svg { flex: 0 0 29px; width: 29px; height: 29px; }
.ncp-page .ncp-navigation .is-active { background: #faf3e7; color: #b88628; border-color: #bf902f; border-radius: 8px; }
.ncp-page .ncp-navigation .is-disabled { color: #858585; cursor: default; border-bottom: 1px solid #e7e7e7; }
.ncp-page .ncp-navigation .ncp-logout { margin-top: 8px; }
.ncp-page .ncp-main { min-width: 0; padding: 36px clamp(24px, 3vw, 60px) 60px; }
.ncp-page .ncp-heading { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding-left: 56px; }
.ncp-page .ncp-heading h1 { font-size: clamp(25px, 2.1vw, 30px); margin: 0; line-height: 1.8; }
.ncp-page .ncp-heading-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; direction: ltr; }
.ncp-page .ncp-back { font-weight: 700; font-size: 14px; }
.ncp-page .ncp-heading-actions .ncp-back { direction: rtl; }
.ncp-page .ncp-heading-actions .ncp-notifications-shell { position: absolute; top: 0; left: 0; }
.ncp-page .ncp-heading-has-back .ncp-heading-actions { position: absolute; top: 0; left: 0; min-height: 44px; margin: 0; }
.ncp-page .ncp-heading-has-back .ncp-heading-actions .ncp-notifications-shell { position: relative; top: auto; left: auto; }
/* ابزارهای فهرست و فرم مستقل تعرفه بدون پنجره سنگین یا درخواست جاوااسکریپتی هستند. */
.ncp-page .ncp-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 25px; }
.ncp-page .ncp-search { width: min(450px, 100%); position: relative; }
.ncp-page .ncp-search input { width: 100%; height: 53px; border: 1px solid #bdbdbd; border-radius: 8px; padding: 8px 52px 8px 15px; background: #fff; }
.ncp-page .ncp-search button { position: absolute; inset: 0 8px 0 auto; width: 36px; border: 0; color: #666; background: transparent; }
.ncp-page .ncp-count { margin: 0; margin-inline-start: auto; white-space: nowrap; }
.ncp-page .ncp-tariff { position: relative; }
.ncp-page .ncp-tariff summary { padding: 7px 12px; border: 1px solid #d8bd87; color: #8b641f; border-radius: 8px; font-size: 12px; cursor: pointer; }
.ncp-page .ncp-tariff[open] { z-index: 4; }
.ncp-page .ncp-tariff-form { position: absolute; z-index: 2; top: calc(100% + 10px); right: 0; width: 340px; max-width: 82vw; padding: 20px; background: #fff; border: 1px solid #d8bd87; border-radius: 10px; box-shadow: 0 5px 16px #0000000c; }
.ncp-page .ncp-tariff-form label { font-size: 13px; display: block; margin-bottom: 8px; }
.ncp-page .ncp-tariff-form input { width: 100%; }
.ncp-page .ncp-tariff-form .ncp-help { margin: 8px 0 14px; }
.ncp-page .ncp-tariff-form .ncp-gold-button { width: 100%; }
/* جدول تنها اطلاعات خواندنی دارد و در موبایل در قاب خودش پیمایش می‌شود. */
.ncp-page .ncp-table-wrap { overflow-x: auto; border: 1px solid #d5d5d5; border-radius: 9px; }
.ncp-page .ncp-products-table { width: 100%; min-width: 960px; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.ncp-page .ncp-products-table th { background: #fafafa; font-size: 13px; font-weight: 700; }
.ncp-page .ncp-products-table td, .ncp-page .ncp-products-table th { padding: 12px 10px; text-align: center; vertical-align: middle; border-bottom: 1px solid #dedede; border-inline-end: 1px solid #e7e7e7; overflow-wrap: anywhere; }
.ncp-page .ncp-products-table tr:last-child td { border-bottom: 0; }
.ncp-page .ncp-products-table th:last-child, .ncp-page .ncp-products-table td:last-child { border-inline-end: 0; }
.ncp-page .ncp-products-table th:first-child { width: 24%; }
.ncp-page .ncp-products-table th:nth-child(2) { width: 14%; }
.ncp-page .ncp-products-table th:nth-child(3) { width: 13%; }
.ncp-page .ncp-products-table th:nth-child(4) { width: 13%; }
.ncp-page .ncp-products-table th:nth-child(5) { width: 7%; }
.ncp-page .ncp-products-table th:nth-child(6) { width: 17%; }
.ncp-page .ncp-products-table th:last-child { width: 12%; }
.ncp-page .ncp-product-name { display: flex; align-items: center; gap: 14px; text-align: right; }
.ncp-page .ncp-product-name img { width: 76px; height: 76px; border-radius: 7px; object-fit: contain; flex: 0 0 76px; }
.ncp-page .ncp-product-name strong { font-size: 15px; }
.ncp-page .ncp-status { display: block; color: #777; margin-top: 5px; font-size: 11px; }
.ncp-page .ncp-status.is-active { color: #846022; }
.ncp-page .ncp-identifier, .ncp-page .ncp-unit { display: block; margin-top: 3px; }
.ncp-page .ncp-stock-value { display: block; }
.ncp-page .ncp-unit { color: #757575; font-size: 11px; }
.ncp-page .ncp-row-actions { display: grid; gap: 6px; justify-items: center; }
.ncp-page .ncp-row-actions form { margin: 0; }
.ncp-page .ncp-outline-button { display: inline-block; background: #fff; border: 1px solid #d9ac66; border-radius: 24px; padding: 5px 13px; min-width: 78px; font-size: 12px; line-height: 1.7; }
.ncp-page .ncp-deactivate { border-color: #dba6a1; color: #8b4039; font-size: 10px; }
.ncp-page .ncp-activate { border-color: #b1c4a4; color: #526740; font-size: 10px; }
.ncp-page .ncp-empty { padding: 50px 24px; border: 1px solid #ddd; border-radius: 10px; text-align: center; color: #777; }
.ncp-page .ncp-pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.ncp-page .ncp-pagination > * { padding: 5px 13px; border: 1px solid #ddd; border-radius: 5px; }
.ncp-page .ncp-pagination .current { background: #faf3e7; color: #916c29; border-color: #d8bd87; }
/* کارت مستقل ویرایش، تصویر و شناسه‌های قفل‌شده را از فیلدهای مجاز جدا می‌کند. */
.ncp-page .ncp-edit-card { border: 1px solid #ccc; border-radius: 28px; padding: 30px clamp(20px, 2.8vw, 50px) 42px; }
.ncp-page .ncp-product-overview { display: flex; gap: 34px; align-items: center; margin-bottom: 24px; }
.ncp-page .ncp-product-picture { width: 180px; flex: 0 0 180px; }
.ncp-page .ncp-product-picture img { width: 100%; height: 180px; object-fit: contain; border-radius: 8px; }
.ncp-page .ncp-product-information { flex: 1; min-width: 0; }
.ncp-page .ncp-product-information h2 { margin: 0 0 15px; font-size: 23px; }
.ncp-page .ncp-product-overview .ncp-product-information h2 { margin-bottom: 2px; }
.ncp-page .ncp-product-model { margin: 0 0 18px; color: #777; font-size: 13px; }
.ncp-page .ncp-product-mobile-status { display: none; }
.ncp-page .ncp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.ncp-page .ncp-facts dt { color: #7b7b7b; font-size: 12px; }
.ncp-page .ncp-facts dd { margin: 3px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.ncp-page .ncp-edit-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ncp-page .ncp-price-stock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ncp-page .ncp-price-stock.ncp-product-edit-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ncp-page .ncp-field { display: grid; gap: 7px; }
.ncp-page .ncp-field small, .ncp-page .ncp-cost-row small { font-size: 12px; color: #777; display: block; }
.ncp-page .ncp-field input, .ncp-page .ncp-cost-row input, .ncp-page .ncp-tariff-form input { height: 48px; min-width: 0; border: 1px solid #ccc; border-radius: 3px; padding: 7px 12px; background: #fff; color: #333; }
.ncp-page .ncp-help { font-size: 12px; color: #777; line-height: 1.9; }
.ncp-page .ncp-edit-card hr { border: 0; border-top: 1px solid #ddd; margin: 30px 0; }
.ncp-page .ncp-edit-card h3 { font-size: 18px; margin: 0 0 24px; }
.ncp-page .ncp-shipping-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 36px; }
.ncp-page .ncp-shipping-methods label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.ncp-page .ncp-shipping-methods input { width: 19px; height: 19px; margin: 0; flex: 0 0 19px; accent-color: #b38a3d; }
.ncp-page .ncp-shipping-costs[hidden] { display: none; }
.ncp-page .ncp-shipping-costs h4 { margin: 0 0 24px; font-size: 15px; }
.ncp-page .ncp-cost-row { display: grid; grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.3fr); align-items: center; gap: 20px; margin-top: 14px; }
.ncp-page .ncp-readonly { min-height: 48px; padding: 9px 12px; background: #f8f8f8; border: 1px solid #ddd; color: #555; }
.ncp-page .ncp-save-row { display: flex; justify-content: flex-end; margin-top: 70px; }
.ncp-page .ncp-gold-button { border: 1px solid #b78a30; border-radius: 5px; background: #ba8b32; color: #fff; padding: 9px 22px; font-weight: 700; font-size: 14px; }
.ncp-page .ncp-gold-button:hover { background: #a57b2c; }
.ncp-page .ncp-notice { padding: 12px 16px; margin-bottom: 18px; border: 1px solid #d8bd87; border-radius: 7px; background: #fffaf0; }
.ncp-page .ncp-error { color: #893e37; border-color: #dfb4ac; background: #fff8f6; }
.ncp-page .ncp-password-dialog { width: min(460px, calc(100vw - 32px)); max-width: 100%; padding: 26px; border: 1px solid #d8bd87; border-radius: 16px; background: #fff; color: #252525; box-shadow: 0 18px 50px #0002; direction: rtl; }
.ncp-page .ncp-password-dialog::backdrop { background: #0008; }
.ncp-page .ncp-password-dialog h2 { margin: 0 0 12px; font-size: 20px; }
.ncp-page .ncp-password-dialog p { margin: 0; line-height: 1.9; }
.ncp-page .ncp-password-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ncp-page input:focus-visible, .ncp-page button:focus-visible, .ncp-page a:focus-visible, .ncp-page summary:focus-visible { outline: 2px solid #bd9449; outline-offset: 3px; }
.ncp-page button:disabled, .ncp-page input:disabled { opacity: 0.65; cursor: not-allowed; }
.ncp-page .ncp-screen-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
/* صفحه ورود مستقل سفید و طلایی است؛ هیچ selector فهرست یا فرم ویرایش تغییر نمی‌کند. */
.ncp-page.ncp-login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 14px; }
.ncp-login-page .ncp-login-home { position: absolute; top: 24px; right: 24px; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px; border: 1px solid #d8bd87; border-radius: 10px; background: #fffaf0; color: #8b641f; font-weight: 600; }
.ncp-login-page .ncp-login-home:hover { background: #f8ecd5; }
.ncp-login-page .ncp-login-home svg { width: 20px; height: 20px; }
.ncp-login-page .ncp-login-card { width: min(440px, 100%); padding: 32px clamp(18px, 5vw, 40px); border: 1px solid #ddd; border-radius: 18px; background: #fff; }
.ncp-login-page .ncp-login-card h1 { font-size: 25px; margin: 0 0 28px; text-align: center; }
.ncp-login-page .ncp-login-card form { display: grid; gap: 22px; }
.ncp-login-page .ncp-login-card input:not([type="hidden"]) { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #ccc; border-radius: 5px; background: #fff; }
.ncp-login-page .ncp-login-card .ncp-notice { margin: 0; font-size: 13px; }
@media (max-width: 700px) {
	.ncp-login-page .ncp-login-home { top: 14px; right: 14px; }
}
/* در موبایل فقط چیدمان همین پنل جمع می‌شود؛ صفحات دیگر هیچ selector مشترکی ندارند. */
@media (max-width: 1050px) {
	.ncp-page .ncp-price-stock.ncp-product-edit-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ncp-page .ncp-shell { grid-template-columns: 210px minmax(0, 1fr); }
	.ncp-page .ncp-main { padding: 26px 20px; }
	.ncp-page .ncp-navigation > a, .ncp-page .ncp-navigation > span { padding: 14px 10px; gap: 12px; font-size: 16px; }
	.ncp-page .ncp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ncp-page .ncp-cost-row { grid-template-columns: 1fr; gap: 8px; }
	.ncp-page .ncp-shipping-methods { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.ncp-page .ncp-price-stock.ncp-product-edit-fields { grid-template-columns: minmax(0, 1fr); }
	.ncp-page .ncp-shell { display: block; }
	.ncp-page .ncp-sidebar { padding: 20px 14px; border-inline-end: 0; border-bottom: 1px solid #ddd; }
	.ncp-page .ncp-sidebar-home { top: 0; font-size: 11px; line-height: 18px; }
	.ncp-page .ncp-company-logo { width: 86px; }
	.ncp-page .ncp-sidebar h2 { margin: 8px 0 15px; font-size: 19px; }
	.ncp-page .ncp-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
	.ncp-page .ncp-navigation > a, .ncp-page .ncp-navigation > span { min-height: 45px; padding: 8px 12px; font-size: 13px; }
	.ncp-page .ncp-navigation svg { width: 22px; height: 22px; flex-basis: 22px; }
	.ncp-page .ncp-navigation .ncp-logout { margin-top: 0; }
	.ncp-page .ncp-main { padding: 20px 12px 36px; }
	.ncp-page .ncp-heading { flex-wrap: wrap; gap: 10px; }
	.ncp-page .ncp-heading-has-back { min-height: 100px; align-items: flex-start; }
	.ncp-page .ncp-heading-has-back .ncp-heading-actions { top: auto; bottom: 0; }
	.ncp-page .ncp-toolbar { gap: 12px; }
	.ncp-page .ncp-search { width: 100%; }
	.ncp-page .ncp-tariff-form { max-width: calc(100vw - 30px); }
	.ncp-page .ncp-edit-card { padding: 22px 16px; border-radius: 17px; }
	.ncp-page .ncp-product-overview { flex-direction: column; gap: 18px; align-items: stretch; }
	.ncp-page .ncp-product-picture { width: 130px; flex-basis: auto; margin: auto; }
	.ncp-page .ncp-product-picture img { height: 130px; }
	.ncp-page .ncp-price-stock { grid-template-columns: 1fr; gap: 16px; }
	.ncp-page .ncp-save-row { margin-top: 40px; }
	.ncp-page .ncp-save-row button { width: 100%; }
}

/* این بلوک فقط مسیر سفارشات شرکت را مطابق ساختار سفید و طلایی مرجع می‌آراید. */
.ncp-page.ncp-route-orders select, .ncp-page.ncp-route-orders textarea { font: inherit; }
/* چیدمان چهار کارت */
.ncp-page.ncp-route-orders .ncp-order-stats {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr 0.85fr;
    gap: 20px;
    margin: 0 0 30px;
}

/* اندازه و ظاهر هر کارت */
.ncp-page.ncp-route-orders .ncp-order-stats article {
    min-height: 105px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 10px;
}

/* عنوان کوچک هر کارت */
.ncp-page.ncp-route-orders .ncp-order-stats small {
    display: block;
    margin-bottom: 5px;
    color: #5e5e5e;
    font-size: 13px;
}

/* عدد یا مبلغ */
.ncp-page.ncp-route-orders .ncp-order-stats strong {
    display: block;
    font-size: clamp(17px, 1.2vw, 23px);
    line-height: 1.5;
}

/* محل و اندازه آیکون */
.ncp-page.ncp-route-orders .ncp-stat-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    background: transparent;
    border: 0;
}

/* خود فایل SVG */
.ncp-page.ncp-route-orders .ncp-stat-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* حذف قاب قبلی آیکون هشدار */
.ncp-page.ncp-route-orders .ncp-stat-icon.is-warning {
    background: transparent;
    border: 0;
}
.ncp-page.ncp-route-orders .ncp-financial-note { margin: -23px 0 25px; color: #8a6131; font-size: 12px; }
.ncp-page.ncp-route-orders .ncp-orders-tools { display: grid; grid-template-columns: minmax(280px, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 28px; }
.ncp-page.ncp-route-orders .ncp-orders-search { position: relative; max-width: 470px; }
.ncp-page.ncp-route-orders .ncp-orders-search input { width: 100%; min-height: 50px; padding: 8px 50px 8px 15px; border: 1px solid #ccc; border-radius: 8px; background: #fff; }
.ncp-page.ncp-route-orders .ncp-orders-search button { position: absolute; inset: 0 7px 0 auto; width: 38px; padding: 0; color: #666; border: 0; background: transparent; }
.ncp-page.ncp-route-orders .ncp-order-filters { display: flex; flex-wrap: wrap; gap: 9px; }
.ncp-page.ncp-route-orders .ncp-order-filters a { min-width: 78px; padding: 7px 13px; border: 1px solid #ddd; border-radius: 22px; text-align: center; font-size: 12px; }
.ncp-page.ncp-route-orders .ncp-order-filters a.is-active { border-color: #c6902e; color: #93681e; background: #fffaf1; }
.ncp-page.ncp-route-orders .ncp-orders-mobile-controls { display: none; }
.ncp-page.ncp-route-orders .ncp-date-heading { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.ncp-page.ncp-route-orders .ncp-date-sort { display: grid; line-height: .72; font-size: 9px; }
.ncp-page.ncp-route-orders .ncp-date-sort a { color: #aaa; }
.ncp-page.ncp-route-orders .ncp-date-sort a.is-active { color: #a87820; }
.ncp-page.ncp-route-orders .ncp-orders-table { width: 100%; min-width: 990px; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.ncp-page.ncp-route-orders .ncp-orders-table th { background: #fafafa; font-size: 13px; }
.ncp-page.ncp-route-orders .ncp-orders-table td, .ncp-page.ncp-route-orders .ncp-orders-table th { height: 77px; padding: 12px 9px; text-align: center; border-bottom: 1px solid #e0e0e0; }
.ncp-page.ncp-route-orders .ncp-orders-table tr:last-child td { border-bottom: 0; }
.ncp-page.ncp-route-orders .ncp-orders-table th:first-child { width: 14%; }
.ncp-page.ncp-route-orders .ncp-orders-table th:nth-child(2) { width: 16%; }
.ncp-page.ncp-route-orders .ncp-orders-table th:nth-child(3) { width: 10%; }
.ncp-page.ncp-route-orders .ncp-orders-table th:nth-child(4) { width: 14%; }
.ncp-page.ncp-route-orders .ncp-orders-table th:nth-child(5) { width: 18%; }
.ncp-page.ncp-route-orders .ncp-orders-table th:nth-child(6) { width: 15%; }
.ncp-page.ncp-route-orders .ncp-orders-table th:last-child { width: 13%; }
.ncp-page.ncp-route-orders .ncp-order-status { display: inline-flex; justify-content: center; min-width: 120px; padding: 6px 13px; border: 1px solid #d7b26d; border-radius: 22px; color: #9b6811; background: #fff9ef; font-size: 12px; }
.ncp-page.ncp-route-orders .ncp-order-status.is-approved { border-color: #a9d8a6; color: #23862d; background: #effcef; }
.ncp-page.ncp-route-orders .ncp-order-status.is-rejected, .ncp-page.ncp-route-orders .ncp-order-status.is-cancelled { border-color: #ebb2b2; color: #b83232; background: #fff3f3; }
.ncp-page.ncp-route-orders .ncp-unknown-amount { color: #9a5f35; font-size: 11px; }
.ncp-page.ncp-route-orders .ncp-order-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin: -8px 0 24px; color: #555; }
.ncp-page.ncp-route-orders .ncp-order-money-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid #d6d6d6; border-radius: 10px; margin-bottom: 18px; background: #fff; }
.ncp-page.ncp-route-orders .ncp-order-money-grid > div { min-height: 124px; padding: 25px 18px; display: grid; align-content: center; gap: 8px; text-align: center; border-inline-end: 1px solid #ddd; }
.ncp-page.ncp-route-orders .ncp-order-money-grid > div:last-child { border-inline-end: 0; }
.ncp-page.ncp-route-orders .ncp-order-money-grid small { color: #555; }
.ncp-page.ncp-route-orders .ncp-order-money-grid strong { font-size: 18px; }
.ncp-page.ncp-route-orders .ncp-order-money-grid .is-emphasis strong { font-size: 23px; }
.ncp-page.ncp-route-orders .ncp-order-detail-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; align-items: start; }
.ncp-page.ncp-route-orders .ncp-order-card { border: 1px solid #d8d8d8; border-radius: 10px; background: #fff; overflow: hidden; }
.ncp-page.ncp-route-orders .ncp-order-card > h2, .ncp-page.ncp-route-orders .ncp-receipts-card > h2 { margin: 0; padding: 17px 20px; border-bottom: 1px solid #ddd; font-size: 19px; }
.ncp-page.ncp-route-orders .ncp-order-items-head, .ncp-page.ncp-route-orders .ncp-order-item-row { display: grid; grid-template-columns: minmax(230px, 1.35fr) .35fr .75fr .72fr .72fr; gap: 10px; align-items: center; padding: 13px 18px; text-align: center; }
.ncp-page.ncp-route-orders .ncp-order-items-head { background: #fafafa; color: #555; font-size: 12px; }
.ncp-page.ncp-route-orders .ncp-order-item-row { min-height: 102px; border-top: 1px solid #e5e5e5; font-size: 12px; }
.ncp-page.ncp-route-orders .ncp-order-product { display: flex; align-items: center; gap: 13px; text-align: right; }
.ncp-page.ncp-route-orders .ncp-order-product img { width: 66px; height: 66px; flex: 0 0 66px; object-fit: contain; border-radius: 7px; }
.ncp-page.ncp-route-orders .ncp-order-product small { display: block; color: #6d6d6d; margin-top: 3px; }
.ncp-page.ncp-route-orders .ncp-order-product-quantity { display: none; }
.ncp-page.ncp-route-orders .ncp-receipts-card { padding-bottom: 16px; }
.ncp-page.ncp-route-orders .ncp-muted { padding: 22px; color: #777; }
.ncp-page.ncp-route-orders .ncp-payment-summary { margin: 14px; padding: 12px 15px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa; }
.ncp-page.ncp-route-orders .ncp-payment-summary p { margin: 4px 0; font-size: 12px; overflow-wrap: anywhere; }
.ncp-page.ncp-route-orders .ncp-receipt-list { padding: 0; }
.ncp-page.ncp-route-orders .ncp-receipt-cycle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.ncp-page.ncp-route-orders .ncp-receipt-cycle + .ncp-receipt-cycle { border-top: 1px solid #e4e4e4; }
.ncp-page.ncp-route-orders .ncp-receipt-cycle-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; }
.ncp-page.ncp-route-orders .ncp-receipt-cycle-status { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid #dedede; border-radius: 999px; background: #f6f6f6; color: #555; font-size: 13px; font-weight: 700; }
.ncp-page.ncp-route-orders .ncp-receipt-cycle-status.is-rejected { border-color: #f0b8b8; background: #fff1f1; color: #b82525; }
.ncp-page.ncp-route-orders .ncp-receipt-cycle-status.is-approved { border-color: #b9ddb9; background: #eff9ef; color: #267b35; }
.ncp-page.ncp-route-orders .ncp-receipt-list form { min-height: 63px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid #ddd; border-radius: 8px; }
.ncp-page.ncp-route-orders .ncp-receipt-list small { text-transform: uppercase; color: #777; }
.ncp-page.ncp-route-orders .ncp-receipt-rejection { grid-column: 1 / -1; margin: 5px 0 0; color: #bd2525; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.ncp-page.ncp-route-orders .ncp-receipt-rejection strong { color: #272727; }
.ncp-page.ncp-route-orders .ncp-review-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-top: 18px; padding: 20px; border: 1px solid #ddd; border-radius: 10px; }
.ncp-page.ncp-route-orders .ncp-review-actions > p { flex: 1 1 280px; margin: 7px 0; color: #777; font-size: 12px; }
.ncp-page.ncp-route-orders .ncp-approve-button, .ncp-page.ncp-route-orders .ncp-reject-button, .ncp-page.ncp-route-orders .ncp-reject-box > summary { min-width: 150px; padding: 10px 18px; border: 1px solid #42a65a; border-radius: 6px; color: #26833a; background: #fff; text-align: center; font-weight: 700; }
.ncp-page.ncp-route-orders .ncp-reject-box > summary, .ncp-page.ncp-route-orders .ncp-reject-button { border-color: #da4e4e; color: #b62d2d; }
.ncp-page.ncp-route-orders .ncp-reject-box { position: relative; }
.ncp-page.ncp-route-orders .ncp-reject-box form { position: absolute; z-index: 3; top: calc(100% + 8px); left: 0; width: 360px; max-width: 82vw; display: grid; gap: 8px; padding: 18px; border: 1px solid #e1b3b3; border-radius: 9px; background: #fff; box-shadow: 0 7px 18px #00000014; }
.ncp-page.ncp-route-orders .ncp-reject-box select, .ncp-page.ncp-route-orders .ncp-reject-box textarea { width: 100%; border: 1px solid #ccc; border-radius: 5px; padding: 8px; background: #fff; }
.ncp-page.ncp-route-orders .ncp-buyer-locked { margin-top: 18px; padding: 18px; border: 1px solid #ddd; border-radius: 9px; background: #fafafa; text-align: center; color: #666; }
.ncp-page.ncp-route-orders .ncp-rejection-result { margin-top: 18px; padding-bottom: 12px; }
.ncp-page.ncp-route-orders .ncp-rejection-result p { padding: 0 20px; }
.ncp-page.ncp-route-orders .ncp-buyer-card { margin-top: 18px; padding-bottom: 20px; }
.ncp-page.ncp-route-orders .ncp-buyer-card > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 20px; border-bottom: 1px solid #ddd; }
.ncp-page.ncp-route-orders .ncp-buyer-card h2 { margin: 0; font-size: 20px; }
.ncp-page.ncp-route-orders .ncp-buyer-card .ncp-buyer-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: 0; padding: 20px 24px 4px; }
.ncp-page.ncp-route-orders .ncp-buyer-card .ncp-buyer-summary > div { flex: 0 1 auto; min-width: 0; max-width: 100%; line-height: 1.8; overflow-wrap: anywhere; }
.ncp-page.ncp-route-orders .ncp-buyer-card .ncp-buyer-summary .ncp-buyer-address { flex: 1 1 260px; }
.ncp-page.ncp-route-orders .ncp-buyer-card dt, .ncp-page.ncp-route-orders .ncp-buyer-card dd { display: inline; }
.ncp-page.ncp-route-orders .ncp-buyer-card dt { margin-inline-end: 6px; color: #777; font-size: 12px; }
.ncp-page.ncp-route-orders .ncp-buyer-card dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.ncp-page.ncp-route-orders .ncp-buyer-card .ncp-buyer-postcode { white-space: normal; }
.ncp-page.ncp-route-orders .ncp-buyer-customer-note { margin: 10px 24px 0; line-height: 1.8; overflow-wrap: anywhere; }
.ncp-page.ncp-route-orders .ncp-buyer-customer-note strong { margin-inline-end: 6px; color: #777; font-size: 12px; }
.ncp-page.ncp-route-orders .ncp-buyer-more { margin: 10px 24px 0; padding-top: 10px; border-top: 1px solid #eee; }
.ncp-page.ncp-route-orders .ncp-buyer-more > summary { width: fit-content; color: #806339; cursor: pointer; font-size: 12px; }
.ncp-page.ncp-route-orders .ncp-buyer-more dl { margin: 8px 0 0; padding: 0; }
.ncp-page.ncp-route-orders .ncp-buyer-more dl > div + div { margin-top: 8px; }
.ncp-page.ncp-route-orders [aria-busy="true"] { opacity: .72; }

/* صفحه بررسی رسید پیش از تصمیم: چیدمان مالی، اقلام و رسیدها مطابق مرجع. */
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-meta { gap: 10px 24px; margin: 0 0 18px; font-size: 14px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-status { min-width: 0; padding: 5px 14px; border-color: #f0dfbf; border-radius: 8px; font-weight: 700; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-status::before { content: ""; width: 7px; height: 7px; margin-inline-end: 9px; border-radius: 50%; background: #e58800; }
.ncp-page.ncp-route-orders .ncp-order-rejected-page .ncp-order-status.is-rejected { border-color: #ebb2b2; }
.ncp-page.ncp-route-orders .ncp-order-rejected-page .ncp-order-status.is-rejected::before { background: #b83232; }
.ncp-page.ncp-route-orders .ncp-order-approved-page .ncp-order-status.is-approved { border-color: #a9d8a6; }
.ncp-page.ncp-route-orders .ncp-order-approved-page .ncp-order-status.is-approved::before { background: #23862d; }
.ncp-page.ncp-route-orders .ncp-order-cancelled-page .ncp-order-status.is-cancelled { border-color: #ebb2b2; }
.ncp-page.ncp-route-orders .ncp-order-cancelled-page .ncp-order-status.is-cancelled::before { background: #b83232; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-card { border-radius: 14px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-card > h2 { padding: 16px 20px 12px; font-size: 20px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-items-head,
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-item-row { grid-template-columns: minmax(0, 1.5fr) minmax(44px, .35fr) minmax(120px, .85fr); gap: 12px; padding-inline: 18px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-items-head { min-height: 52px; background: #fff; color: #282828; font-size: 13px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-item-row { min-height: 90px; font-size: 14px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-product strong { font-size: 14px; }
.ncp-page.ncp-route-orders .ncp-order-item-breakdown { margin-top: 5px; text-align: right; }
.ncp-page.ncp-route-orders .ncp-order-item-breakdown summary { color: #806339; cursor: pointer; font-size: 12px; }
.ncp-page.ncp-route-orders .ncp-order-item-breakdown small { overflow-wrap: anywhere; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-product img { width: 62px; height: 62px; flex-basis: 62px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipts-card { padding-bottom: 0; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipts-card > h2 { border-bottom: 0; padding-bottom: 0; font-size: 18px; }
.ncp-page.ncp-route-orders .ncp-order-online-page .ncp-payment-summary { display: grid; gap: 8px; margin: 0; padding: 16px 20px 22px; border: 0; border-radius: 0; background: #fff; }
.ncp-page.ncp-route-orders .ncp-order-online-page .ncp-payment-summary p { margin: 0; font-size: 14px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipt-cycle { padding: 10px 20px 18px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipt-cycle-head { font-size: 12px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipt-cycle-head small { color: #777; text-transform: none; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipt-list form { min-height: 58px; grid-template-columns: 24px minmax(0, 1fr) 54px; gap: 10px; padding: 6px 10px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipt-list form > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipt-file-icon { width: 22px; height: 22px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipt-list form .ncp-outline-button { display: grid; place-items: center; width: 54px; min-width: 0; height: 43px; padding: 7px; border-color: #dedede; border-radius: 9px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipt-list form .ncp-outline-button svg { width: 24px; height: 24px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-review-actions { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 20px 20px; border: 0; border-top: 1px solid #e4e4e4; border-radius: 0; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-review-actions > form { margin: 0; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-approve-button,
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-reject-button,
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-reject-box > summary { display: grid; place-items: center; min-width: 138px; min-height: 48px; padding: 6px 15px; border-radius: 10px; font-size: 16px; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-reject-box > summary { list-style: none; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-reject-box > summary::-webkit-details-marker { display: none; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-review-actions > p { flex: 1 1 155px; margin: 0; text-align: right; line-height: 1.8; }
.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-review-actions > p::before { content: "●"; margin-inline-end: 8px; color: #d43d3d; font-size: 11px; }
.ncp-page.ncp-route-orders .ncp-review-actions > button { cursor: pointer; }
.ncp-page.ncp-route-orders .ncp-review-dialog { width: min(600px, calc(100vw - 28px)); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid #ddd; border-radius: 12px; padding: 24px; box-shadow: 0 20px 60px #0003; }
.ncp-page.ncp-route-orders .ncp-review-dialog::backdrop { background: #0008; }
.ncp-page.ncp-route-orders .ncp-review-dialog form, .ncp-page.ncp-route-orders .ncp-review-rejection { display: grid; gap: 12px; }
.ncp-page.ncp-route-orders .ncp-review-dialog h3 { margin: 0; }
.ncp-page.ncp-route-orders .ncp-review-dialog p { margin: 0; line-height: 1.8; }
.ncp-page.ncp-route-orders .ncp-review-dialog label { display: grid; gap: 6px; }
.ncp-page.ncp-route-orders .ncp-review-dialog input[type="text"], .ncp-page.ncp-route-orders .ncp-review-dialog select, .ncp-page.ncp-route-orders .ncp-review-dialog textarea { width: 100%; border: 1px solid #ccc; border-radius: 5px; padding: 8px; }
.ncp-page.ncp-route-orders .ncp-review-dialog .ncp-review-attestation { display: flex; align-items: start; }
.ncp-page.ncp-route-orders .ncp-review-dialog [hidden] { display: none; }
.ncp-page.ncp-route-orders .ncp-review-dialog-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.ncp-page.ncp-route-orders .ncp-review-dialog-buttons > .ncp-outline-button { display: grid; place-items: center; min-width: 150px; padding: 10px 18px; border-radius: 6px; color: #8b641f; text-align: center; font-size: inherit; font-weight: 700; line-height: inherit; }

/* این استایل مستقل فقط نسخه چاپی A4 سفارش تأییدشده را آماده می‌کند. */
.ncp-print-page { margin: 0; padding: 20px; background: #eee; color: #222; direction: rtl; font: 13px/1.8 "Vazirmatn", Tahoma, Arial, sans-serif; }
.ncp-print-page * { box-sizing: border-box; }
.ncp-print-sheet { width: 210mm; min-height: 297mm; margin: 0 auto; padding: 14mm; background: #fff; }
.ncp-print-sheet > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 16px; border-bottom: 2px solid #b98a34; }
.ncp-print-brand { display: flex; align-items: center; gap: 14px; }
.ncp-print-logo { width: 58px; height: 58px; flex: 0 0 58px; }
.ncp-print-logo img { width: 100%; height: 100%; object-fit: contain; }
.ncp-print-sheet h1 { margin: 0; font-size: 23px; }
.ncp-print-sheet header p { margin: 5px 0 0; color: #666; }
.ncp-print-sheet button { padding: 8px 16px; border: 1px solid #b98a34; border-radius: 5px; color: #76551b; background: #fff; font: inherit; cursor: pointer; }
.ncp-print-sheet table { width: 100%; margin-top: 24px; border-collapse: collapse; }
.ncp-print-sheet th, .ncp-print-sheet td { padding: 10px 8px; border: 1px solid #ccc; text-align: center; }
.ncp-print-sheet th { background: #f8f4ec; }
.ncp-print-sheet tr, .ncp-print-sheet td, .ncp-print-sheet th { break-inside: avoid; page-break-inside: avoid; }
.ncp-print-payment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 24px; margin-top: 18px; padding: 12px; border: 1px solid #ccc; }
.ncp-print-payment.is-manual { grid-template-columns: 1fr; }
.ncp-print-totals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; margin: 22px 0 0; border: 1px solid #ccc; }
.ncp-print-totals div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 82px; padding: 8px 5px; border-inline-end: 1px solid #ddd; text-align: center; }
.ncp-print-totals div:last-child { border-inline-end: 0; background: #fbf5e9; }
.ncp-print-totals strong { font-size: 11px; white-space: nowrap; }
.ncp-print-notes { margin-top: 20px; padding: 11px 14px; border: 1px solid #ccc; }
.ncp-print-notes h2, .ncp-print-notes p { margin: 0; }
.ncp-print-receiver { margin-top: 30mm; padding-top: 12mm; border-top: 2px dashed #888; position: relative; break-inside: avoid; page-break-inside: avoid; }
.ncp-print-receiver::before { content: "✂ محل جداکردن مشخصات گیرنده"; position: absolute; top: -17px; right: 10px; padding: 0 8px; background: #fff; font-size: 13px; }
.ncp-print-stamp { position: absolute; top: -28mm; left: 0; width: 26mm; height: 26mm; object-fit: contain; pointer-events: none; }
.ncp-print-receiver h2 { margin: 0 0 14px; }
.ncp-print-receiver div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 25px; }
.ncp-print-receiver p { margin: 0; }
.ncp-print-receiver .is-pair-right { grid-column: 1; }
.ncp-print-receiver .is-pair-left { grid-column: 2; }
.ncp-print-receiver .is-wide { grid-column: 1 / -1; }
.ncp-print-receiver.has-customer-note .is-wide { grid-column: 1 / 3; }
.ncp-print-receiver .is-customer-note { grid-column: 3 / -1; grid-row: 1 / span 4; min-width: 0; padding-inline-start: 12px; border-inline-start: 1px solid #ddd; overflow-wrap: anywhere; }
.ncp-print-receipts { break-before: page; page-break-before: always; padding-top: 2mm; }
.ncp-print-receipts h2 { margin: 0 0 12px; font-size: 18px; }
.ncp-print-receipt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ncp-print-receipt-item { min-width: 0; margin: 0; padding: 10px; border: 1px solid #ccc; break-inside: avoid; page-break-inside: avoid; }
.ncp-print-receipt-meta { margin: 0 0 4px; color: #666; font-size: 11px; }
.ncp-print-receipt-item h3 { margin: 0 0 8px; font-size: 12px; overflow-wrap: anywhere; }
.ncp-print-receipt-item img, .ncp-print-receipt-item object { display: block; width: 100%; height: 95mm; object-fit: contain; }
.ncp-print-receipt-item:only-child { grid-column: 1 / -1; }
.ncp-print-receipt-item:only-child img, .ncp-print-receipt-item:only-child object { height: 205mm; }
.ncp-print-receipt-source { margin: 7px 0 0; font-size: 11px; }
.ncp-print-receipt-source a { color: #76551b; }
.ncp-print-receipt-item.is-unavailable img, .ncp-print-receipt-item.is-unavailable object { display: none; }
.ncp-print-receipt-item.is-unavailable::after { content: "رسید بارگذاری نشد؛ چاپ را دوباره امتحان کنید."; color: #a33; }
.ncp-print-footer { margin-top: 18px; padding-top: 7px; border-top: 1px solid #bbb; color: #666; text-align: center; font-size: 10px; }

/* این واکنش‌گرایی فقط اجزای سفارشات را در عرض متوسط جمع می‌کند. */
@media (max-width: 1250px) {
	.ncp-page.ncp-route-orders .ncp-order-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ncp-page.ncp-route-orders .ncp-orders-tools { grid-template-columns: 1fr; }
	.ncp-page.ncp-route-orders .ncp-orders-search { max-width: none; }
	.ncp-page.ncp-route-orders .ncp-order-detail-grid { grid-template-columns: 1fr; }
	.ncp-page.ncp-route-orders .ncp-order-money-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ncp-page.ncp-route-orders .ncp-order-money-grid > div:nth-child(3) { border-inline-end: 0; }
	.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-detail-grid { grid-template-columns: 1fr; }
}

/* این واکنش‌گرایی اجزای صفحه سفارشات را بدون سرریز در موبایل جمع می‌کند. */
@media (max-width: 700px) {
	.ncp-page.ncp-route-orders .ncp-order-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ncp-page.ncp-route-orders .ncp-order-stats article {
		display: grid;
		grid-template-columns: 36px minmax(0, 1fr);
		align-content: center;
		align-items: center;
		column-gap: 4px;
		min-width: 0;
		min-height: 90px;
		padding: 6px;
	}
	.ncp-page.ncp-route-orders .ncp-order-stats article > div { min-width: 0; }
	.ncp-page.ncp-route-orders .ncp-order-stats .ncp-stat-icon { width: 36px; height: 36px; }
	.ncp-page.ncp-route-orders .ncp-order-stats small { margin-bottom: 2px; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
	.ncp-page.ncp-route-orders .ncp-order-stats strong { min-width: 0; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
	.ncp-page.ncp-route-orders .ncp-order-stats article:nth-child(-n+2) strong { font-size: 14px; }
	.ncp-page.ncp-route-orders .ncp-order-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ncp-page.ncp-route-orders .ncp-order-money-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ncp-page.ncp-route-orders .ncp-order-money-grid > div { min-width: 0; min-height: 72px; padding: 10px 7px; gap: 4px; border-inline-end: 0; border-bottom: 1px solid #ddd; }
	.ncp-page.ncp-route-orders .ncp-order-money-grid > div:nth-child(1),
	.ncp-page.ncp-route-orders .ncp-order-money-grid > div:nth-child(4) { border-inline-end: 1px solid #ddd; }
	.ncp-page.ncp-route-orders .ncp-order-money-grid > div:nth-child(3) { grid-column: 1 / -1; }
	.ncp-page.ncp-route-orders .ncp-order-money-grid > div:nth-child(n+4) { border-bottom: 0; }
	.ncp-page.ncp-route-orders .ncp-order-money-grid strong { min-width: 0; font-size: 17px; overflow-wrap: anywhere; }
	.ncp-page.ncp-route-orders .ncp-order-money-grid .is-emphasis strong { font-size: 22px; }
	.ncp-page.ncp-route-orders .ncp-order-items-card > h2 { font-size: 17px; }
	.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-items-card > h2 { font-size: 18px; }
	.ncp-page.ncp-route-orders .ncp-order-items-card { overflow: hidden; }
	.ncp-page.ncp-route-orders .ncp-order-items-head { display: none; }
	.ncp-page.ncp-route-orders .ncp-order-item-row,
	.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-order-item-row { min-width: 0; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; text-align: right; }
	.ncp-page.ncp-route-orders .ncp-order-items-head + .ncp-order-item-row { border-top: 0; }
	.ncp-page.ncp-route-orders .ncp-order-item-row .ncp-order-product { grid-column: 1 / -1; min-width: 0; padding: 14px; }
	.ncp-page.ncp-route-orders .ncp-order-product > div { min-width: 0; overflow-wrap: anywhere; }
	.ncp-page.ncp-route-orders .ncp-order-product-quantity { display: inline; margin-inline-start: 6px; white-space: nowrap; font-weight: 700; }
	.ncp-page.ncp-route-orders .ncp-order-item-row > :not(:first-child) { min-width: 0; display: block; padding: 9px 12px; border-top: 1px solid #eee; overflow-wrap: anywhere; }
	.ncp-page.ncp-route-orders .ncp-order-item-row > :nth-child(2) { display: none; }
	.ncp-page.ncp-route-orders .ncp-order-item-row > :nth-child(3) { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
	.ncp-page.ncp-route-orders .ncp-order-item-row > :nth-child(even) { border-inline-end: 1px solid #eee; }
	.ncp-page.ncp-route-orders .ncp-order-item-row > :not(:first-child)::before { display: block; margin-bottom: 2px; color: #777; font-size: 11px; font-weight: 400; }
	.ncp-page.ncp-route-orders .ncp-order-item-row > :nth-child(3)::before { content: "مبلغ پرداختی مشتری"; flex: 0 0 auto; margin-bottom: 0; text-align: right; }
	.ncp-page.ncp-route-orders .ncp-order-item-row > :nth-child(3) .woocommerce-Price-amount { min-width: 0; }
	.ncp-page.ncp-route-orders .ncp-order-item-row > :nth-child(4)::before { content: "پورسانت"; }
	.ncp-page.ncp-route-orders .ncp-order-item-row > :nth-child(5)::before { content: "خالص شرکت"; }
	.ncp-page.ncp-route-orders .ncp-receipt-cycle { grid-template-columns: 1fr; }
	.ncp-page.ncp-route-orders .ncp-receipt-list form,
	.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipt-list form { justify-self: start; width: min(100%, 150px); min-height: 50px; gap: 6px; padding: 5px 8px; }
	.ncp-page.ncp-route-orders .ncp-receipt-list form { grid-template-columns: minmax(0, 1fr) auto; }
	.ncp-page.ncp-route-orders .ncp-receipt-list form > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.ncp-page.ncp-route-orders .ncp-receipt-list form > small { display: none; }
	.ncp-page.ncp-route-orders .ncp-receipt-list form .ncp-outline-button { min-width: 0; padding: 4px 5px; font-size: 10px; }
	.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipt-list form { grid-template-columns: 20px minmax(0, 1fr) 46px; }
	.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipt-file-icon { width: 19px; height: 19px; }
	.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipt-list form .ncp-outline-button { width: 46px; height: 40px; padding: 5px; }
	.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-receipt-list form .ncp-outline-button svg { width: 21px; height: 21px; }
	.ncp-page.ncp-route-orders .ncp-buyer-card .ncp-buyer-summary { gap: 16px; padding: 16px 18px 0; }
	.ncp-page.ncp-route-orders .ncp-buyer-card .ncp-buyer-summary dd { font-size: 12px; }
	.ncp-page.ncp-route-orders .ncp-reject-box { width: 100%; }
	.ncp-page.ncp-route-orders .ncp-reject-box > summary { width: 100%; }
	.ncp-page.ncp-route-orders .ncp-reject-box form { position: static; width: 100%; max-width: none; margin-top: 8px; }
	.ncp-page.ncp-route-orders .ncp-buyer-card > div { align-items: stretch; flex-direction: column; }
	.ncp-page.ncp-route-orders .ncp-buyer-card .ncp-gold-button { text-align: center; }
	.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-review-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-review-actions > form,
	.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-reject-box,
	.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-approve-button { width: 100%; }
	.ncp-page.ncp-route-orders .ncp-order-review-page .ncp-review-actions > p { grid-column: 1 / -1; text-align: right; }
}

/* این قواعد چاپ، کنترل چاپ را حذف و صفحه را دقیقاً در کاغذ A4 نگه می‌دارند. */
@media print {
	.ncp-print-page { padding: 0; background: #fff; }
	.ncp-print-sheet { width: auto; min-height: 0; margin: 0; box-shadow: none; }
	.ncp-print-sheet button { display: none; }
	.ncp-print-sheet thead { display: table-header-group; }
	.ncp-print-receiver { margin-top: 30mm; padding-top: 8mm; }
	.ncp-print-receipt-grid { display: block; }
	.ncp-print-receipt-item { display: inline-block; width: calc(50% - 12px); margin: 0 0 12px 8px; vertical-align: top; }
	.ncp-print-receipt-item:only-child { width: 100%; margin-inline-end: 0; }
	.ncp-print-footer { display: none; }
}
/* ===== صفحه اطلاعات حساب شرکت ===== */

.ncp-page.ncp-route-account .ncp-account-page {
    display: grid;
    gap: 18px;
    max-width: 1180px;
}

/* کارت‌های صفحه، هماهنگ با محصولات من */
.ncp-page.ncp-route-account .ncp-edit-card {
    margin: 0;
    padding: 22px 26px;
    border: 1px solid #dedede;
    border-radius: 10px;
    background: #fff;
}

/* عنوان هر کارت */
.ncp-page.ncp-route-account .ncp-edit-card h3 {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 700;
}

/* متن راهنما */
.ncp-page.ncp-route-account .ncp-help {
    margin: -8px 0 15px;
    font-size: 12px;
    color: #777;
}

/* نام شرکت و معرفی شرکت */
.ncp-page.ncp-route-account .ncp-price-stock {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(320px, 1.25fr);
    gap: 18px;
    align-items: start;
}

.ncp-page.ncp-route-account .ncp-company-primary-fields {
    display: grid;
    gap: 18px;
}

.ncp-page.ncp-route-account .ncp-company-identity {
    display: contents;
}

.ncp-page.ncp-route-account .ncp-account-company-logo {
    display: none;
}

/* عنوان بالای فیلدها */
.ncp-page.ncp-route-account .ncp-field {
    display: grid;
    gap: 7px;
    font-size: 13px;
}

/* ورودی‌ها و کادر معرفی شرکت */
.ncp-page.ncp-route-account .ncp-field input,
.ncp-page.ncp-route-account .ncp-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #dedede;
    border-radius: 8px;
    padding: 10px 13px;
    background: #fff;
    color: #333;
    font: inherit;
}

.ncp-page.ncp-route-account .ncp-field input {
    height: 44px;
}

.ncp-page.ncp-route-account .ncp-field textarea {
    height: 92px;
    min-height: 92px;
    resize: vertical;
    line-height: 1.8;
}

/* اطلاعات کشور، استان، تلفن و اطلاعات بانکی */
.ncp-page.ncp-route-account .ncp-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.ncp-page.ncp-route-account .ncp-facts dt {
    margin-bottom: 6px;
    font-size: 12px;
    color: #777;
}

.ncp-page.ncp-route-account .ncp-facts dd,
.ncp-page.ncp-route-account .ncp-readonly {
    min-height: 44px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #fafafa;
    color: #444;
    font-size: 13px;
}

/* نزدیک‌کردن دکمه به فیلدها */
.ncp-page.ncp-route-account .ncp-save-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 18px;
}

.ncp-page.ncp-route-account .ncp-gold-button {
    min-width: 190px;
    min-height: 44px;
    border-radius: 7px;
}

/* تبلت */
@media (max-width: 1000px) {
    .ncp-page.ncp-route-account .ncp-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* موبایل */
@media (max-width: 700px) {
    .ncp-page.ncp-route-account .ncp-account-page {
        gap: 12px;
    }

    .ncp-page.ncp-route-account .ncp-edit-card {
        padding: 18px 15px;
    }

    .ncp-page.ncp-route-account .ncp-price-stock,
    .ncp-page.ncp-route-account .ncp-facts {
        grid-template-columns: 1fr;
    }

    .ncp-page.ncp-route-account [aria-labelledby="ncp-address-heading"] .ncp-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .ncp-page.ncp-route-account [aria-labelledby="ncp-address-heading"] .ncp-facts > div:last-child {
        grid-column: 1 / -1;
    }

    .ncp-page.ncp-route-account [aria-labelledby="ncp-address-heading"] .ncp-facts dd {
        overflow-wrap: anywhere;
    }

    .ncp-page.ncp-route-account [aria-labelledby="ncp-contact-heading"] .ncp-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ncp-page.ncp-route-account [aria-labelledby="ncp-contact-heading"] .ncp-facts > div:nth-child(1) { grid-column: 1 / -1; grid-row: 1; }
    .ncp-page.ncp-route-account [aria-labelledby="ncp-contact-heading"] .ncp-facts > div:nth-child(2) { grid-column: 1; grid-row: 2; }
    .ncp-page.ncp-route-account [aria-labelledby="ncp-contact-heading"] .ncp-facts > div:nth-child(7) { grid-column: 2; grid-row: 2; }
    .ncp-page.ncp-route-account [aria-labelledby="ncp-contact-heading"] .ncp-facts > div:nth-child(3) { grid-column: 1; grid-row: 3; }
    .ncp-page.ncp-route-account [aria-labelledby="ncp-contact-heading"] .ncp-facts > div:nth-child(5) { grid-column: 2; grid-row: 3; }
    .ncp-page.ncp-route-account [aria-labelledby="ncp-contact-heading"] .ncp-facts > div:nth-child(4) { grid-column: 1; grid-row: 4; }
    .ncp-page.ncp-route-account [aria-labelledby="ncp-contact-heading"] .ncp-facts > div:nth-child(6) { grid-column: 2; grid-row: 4; }

    .ncp-page.ncp-route-account [aria-labelledby="ncp-contact-heading"] .ncp-facts dd {
        overflow-wrap: anywhere;
    }

    .ncp-page.ncp-route-account [aria-labelledby="ncp-bank-heading"] .ncp-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ncp-page.ncp-route-account [aria-labelledby="ncp-bank-heading"] .ncp-facts > div:nth-child(-n+2) {
        grid-column: 1 / -1;
    }

    .ncp-page.ncp-route-account .ncp-company-identity {
        display: grid;
        grid-template-columns: clamp(76px, 23vw, 108px) minmax(0, 1fr);
        gap: 18px 12px;
        align-items: center;
    }

    .ncp-page.ncp-route-account .ncp-company-primary-fields {
        display: contents;
    }

    .ncp-page.ncp-route-account .ncp-company-primary-fields > .ncp-field:first-child {
        grid-column: 2;
        grid-row: 1;
    }

    .ncp-page.ncp-route-account .ncp-company-primary-fields > .ncp-field:last-child {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .ncp-page.ncp-route-account .ncp-account-company-logo {
        display: grid;
        grid-column: 1;
        grid-row: 1;
        place-items: center;
        width: 100%;
        aspect-ratio: 1;
        overflow: hidden;
        border: 1px solid #e4e0d8;
        border-radius: 12px;
        background: #f5f4f2;
    }

    .ncp-page.ncp-route-account .ncp-account-company-logo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .ncp-page.ncp-route-account .ncp-account-company-logo span {
        padding: 6px;
        color: #777;
        font-size: 11px;
        text-align: center;
    }

    .ncp-page.ncp-route-account .ncp-save-row {
        margin-top: 15px;
    }

    .ncp-page.ncp-route-account .ncp-gold-button {
        width: 100%;
    }
}
.ncp-page.ncp-route-account .ncp-password-help {
    position: relative;
    top: 0;
    right: 0;
    margin: 12px 0 0;
}

/* رابط اعلان‌ها فقط در پنل جلویی شرکت */
.ncp-page .ncp-notifications-shell {
    position: relative;
    z-index: 30;
    display: flex;
    justify-content: flex-start;
    min-height: 44px;
    margin: 0;
}

.ncp-page .ncp-notifications-shell [hidden] {
    display: none !important;
}

.ncp-page .ncp-notifications-bell {
    position: relative;
    display: inline-grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    color: #494949;
    background: #fff;
    border: 1px solid #ded9cf;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(38, 31, 20, .06);
}

.ncp-page .ncp-notifications-bell:hover,
.ncp-page .ncp-notifications-bell:focus-visible {
    color: #a87319;
    border-color: #d5b36f;
    outline: 0;
}

.ncp-page .ncp-notifications-bell svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.ncp-page .ncp-notifications-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    color: #fff;
    background: #be861f;
    border: 2px solid #fff;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.ncp-page .ncp-notifications-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: clamp(360px, 31vw, 420px);
    overflow: hidden;
    color: #292929;
    background: #fff;
    border: 1px solid #ded9cf;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(32, 27, 20, .11);
    direction: rtl;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 120ms ease, transform 120ms ease;
}

.ncp-page .ncp-notifications-popup.is-open {
    opacity: 1;
    transform: translateY(0);
}

.ncp-page .ncp-notifications-header {
    display: flex;
    min-height: 58px;
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eee9df;
}

.ncp-page .ncp-notifications-header h2 {
    margin: 0;
    font-size: 18px;
}

.ncp-page .ncp-notifications-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ncp-page .ncp-notifications-mark-all {
    padding: 6px 9px;
    color: #93691f;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.ncp-page .ncp-notifications-mark-all:hover,
.ncp-page .ncp-notifications-mark-all:focus-visible {
    background: #faf5eb;
    border-color: #ead9b8;
    outline: 0;
}

.ncp-page .ncp-notifications-mark-all:disabled {
    opacity: .5;
    cursor: default;
}

.ncp-page .ncp-notifications-icon-button,
.ncp-page .ncp-notifications-back {
    min-width: 38px;
    min-height: 38px;
    padding: 5px 10px;
    color: #555;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
}

.ncp-page .ncp-notifications-icon-button {
    font-size: 24px;
    line-height: 1;
}

.ncp-page .ncp-notifications-back {
    color: #93691f;
    font-size: 13px;
}

.ncp-page .ncp-notifications-icon-button:hover,
.ncp-page .ncp-notifications-icon-button:focus-visible,
.ncp-page .ncp-notifications-back:hover,
.ncp-page .ncp-notifications-back:focus-visible {
    background: #faf5eb;
    border-color: #ead9b8;
    outline: 0;
}

.ncp-page .ncp-notifications-error {
    margin: 10px 14px 0;
    padding: 8px 10px;
    color: #8e372f;
    background: #fff4f2;
    border: 1px solid #efd0cc;
    border-radius: 7px;
    font-size: 12px;
}

.ncp-page .ncp-notifications-scroll {
    max-height: 430px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ncp-page .ncp-notifications-list {
    display: grid;
}

.ncp-page .ncp-notifications-item {
    position: relative;
    display: grid;
    width: 100%;
    gap: 3px;
    padding: 13px 28px 13px 16px;
    text-align: right;
    color: #303030;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #f0ece4;
    border-radius: 0;
}

.ncp-page .ncp-notifications-item:last-child {
    border-bottom: 0;
}

.ncp-page .ncp-notifications-item:hover,
.ncp-page .ncp-notifications-item:focus-visible {
    background: #fcfaf6;
    outline: 0;
}

.ncp-page .ncp-notifications-item.is-unread {
    background: #fffaf0;
}

.ncp-page .ncp-notifications-unread-dot {
    position: absolute;
    top: 20px;
    right: 13px;
    width: 7px;
    height: 7px;
    background: #c58b20;
    border-radius: 50%;
}

.ncp-page .ncp-notifications-item strong {
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ncp-page .ncp-notifications-excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: #696969;
    font-size: 12px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ncp-page .ncp-notifications-item time,
.ncp-page .ncp-notifications-detail time {
    color: #8a8a8a;
    font-size: 10px;
}

.ncp-page .ncp-notifications-empty {
    min-height: 150px;
    margin: 0;
    padding: 55px 20px;
    color: #777;
    text-align: center;
}

.ncp-page .ncp-notifications-detail-view {
    max-height: 500px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ncp-page .ncp-notifications-detail {
    padding: 20px 20px 24px;
}

.ncp-page .ncp-notifications-detail h3 {
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.7;
}

.ncp-page .ncp-notifications-body {
    margin-top: 18px;
    color: #3f3f3f;
    font-size: 13px;
    line-height: 2;
    overflow-wrap: anywhere;
    white-space: normal;
}

.ncp-page .ncp-notifications-read-status {
    margin: 18px 0 0;
    color: #a67520;
    font-size: 11px;
}

@media (max-width: 700px) {
    .ncp-page .ncp-notifications-popup {
        position: fixed;
        z-index: 100;
        top: auto;
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        max-height: min(78vh, 620px);
        border-radius: 16px;
        transform: translateY(8px);
    }

    .ncp-page .ncp-notifications-popup.is-open {
        transform: translateY(0);
    }

    .ncp-page .ncp-notifications-scroll {
        max-height: min(62vh, 500px);
    }

    .ncp-page .ncp-notifications-detail-view {
        max-height: min(76vh, 600px);
    }

    .ncp-page .ncp-notifications-item {
        min-height: 74px;
        padding-block: 14px;
    }
}
.ncp-notifications-tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
    border-bottom: 1px solid #eee6da;
}
.ncp-notifications-tabs button {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 10px 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #6b6256;
    font: inherit;
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}
.ncp-notifications-tabs button[aria-selected="true"] {
    background: #faf4e8;
    border-color: #e7d5ae;
    color: #946515;
    font-weight: 700;
}
.ncp-notifications-tabs button:focus-visible { outline: 2px solid #ba8828; outline-offset: 2px; }
[data-ncp-notification-category][hidden] { display: none !important; }

.ncp-page.ncp-route-orders .ncp-buyer-gated { position: relative; overflow: hidden; min-height: 230px; display: grid; }
.ncp-page.ncp-route-orders .ncp-buyer-gated > .ncp-buyer-card-header,
.ncp-page.ncp-route-orders .ncp-buyer-gated > .ncp-buyer-summary { filter: blur(5px); opacity: .65; pointer-events: none; user-select: none; }
.ncp-page.ncp-route-orders .ncp-buyer-gated > .ncp-buyer-card-header { grid-area: 1 / 1; align-self: start; }
.ncp-page.ncp-route-orders .ncp-buyer-gated > .ncp-buyer-summary { grid-area: 1 / 1; align-self: end; padding-bottom: 20px; }
.ncp-page.ncp-route-orders .ncp-buyer-gate-overlay { grid-area: 1 / 1; z-index: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 18px; text-align: center; background: rgba(255,255,255,.38); }
.ncp-page.ncp-route-orders .ncp-buyer-gate-overlay p { margin: 8px 0; }
.ncp-page.ncp-route-orders .ncp-buyer-gate-overlay .ncp-gold-button { margin: 0; }
.ncp-page.ncp-route-orders .ncp-commission-gate-action { max-width: 100%; }

/* منوی موبایل شرکت همان الگوی پنج‌گزینه‌ای پایین پنل مشتری را دارد. */
.ncp-page .ncp-mobile-bottom-nav { display: none; }
@media (max-width: 820px) {
	.ncp-page .ncp-shell { display: block; }
	.ncp-page .ncp-sidebar { display: none; }
	.ncp-page .ncp-main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
	.ncp-page .ncp-mobile-bottom-nav {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 20;
		display: grid;
		grid-template-columns: repeat(6, minmax(0, 1fr));
		min-height: 72px;
		padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
		background: rgba(255, 252, 248, 0.97);
		box-shadow: 0 -5px 18px rgba(68, 54, 36, 0.13);
		border-top: 1px solid rgba(161, 139, 108, 0.17);
	}
	.ncp-page .ncp-mobile-bottom-nav a {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 3px;
		min-width: 0;
		padding: 3px 2px;
		color: #777773;
		font-size: 10px;
		line-height: 1.2;
		text-align: center;
	}
	.ncp-page .ncp-mobile-bottom-nav a.is-active { color: #9c6a25; font-weight: 700; }
	.ncp-page .ncp-mobile-bottom-nav a svg {
		width: 25px;
		height: 25px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.7;
		stroke-linecap: round;
		stroke-linejoin: round;
	}
	.ncp-page .ncp-mobile-bottom-nav a:focus-visible {
		outline: 2px solid #bd893d;
		outline-offset: -2px;
		border-radius: 8px;
	}
}
@media print {
	.ncp-page .ncp-mobile-bottom-nav { display: none !important; }
}

/* سربرگ موبایل شرکت با هدر مشترک پنل مشتری هم‌اندازه و هم‌چیدمان است. */
.ncp-page .ncp-mobile-back { display: none; }
@media (max-width: 820px) {
	.ncp-page .ncp-main { --ncp-mobile-side-padding: 20px; }
	.ncp-page .ncp-heading,
	.ncp-page .ncp-heading-has-back {
		position: sticky;
		top: 0;
		z-index: 50;
		display: flex;
		align-items: center;
		flex-wrap: nowrap;
		gap: 12px;
		min-height: 68px;
		margin: -26px calc(0px - var(--ncp-mobile-side-padding)) 20px;
		padding: 10px 28px;
		background: rgba(248, 244, 238, 0.96);
		box-shadow: inset 0 -1px 0 rgba(120, 120, 120, 0.2);
	}
	.ncp-page .ncp-heading h1 {
		min-width: 0;
		margin: 0;
		color: #3f3223;
		font-size: 24px;
		font-weight: 600;
		line-height: 1.5;
	}
	.ncp-page .ncp-heading-actions,
	.ncp-page .ncp-heading-has-back .ncp-heading-actions {
		position: static;
		display: flex;
		align-items: center;
		flex: 0 0 auto;
		min-height: 0;
		margin: 0;
		margin-right: auto;
	}
	.ncp-page .ncp-heading-actions .ncp-notifications-shell,
	.ncp-page .ncp-heading-has-back .ncp-heading-actions .ncp-notifications-shell {
		position: relative;
		top: auto;
		left: auto;
	}
	.ncp-page .ncp-notifications-popup {
		position: absolute;
		top: calc(100% + 16px);
		right: auto;
		bottom: auto;
		left: 0;
		width: min(420px, calc(100vw - 40px));
		max-height: calc(100dvh - 100px);
	}
	.ncp-page .ncp-notifications-popup.is-open { transform: translateY(0); }
	.ncp-page .ncp-notifications-scroll { max-height: min(62vh, calc(100dvh - 210px)); }
	.ncp-page .ncp-notifications-detail-view { max-height: min(76vh, calc(100dvh - 110px)); }
	.ncp-page .ncp-heading-actions .ncp-back { display: none; }
	.ncp-page .ncp-mobile-back {
		display: inline-block;
		margin: 0 0 18px;
		color: #9c6a25;
		font-size: 13px;
		font-weight: 700;
	}
	.ncp-page .ncp-notifications-bell {
		width: 37px;
		height: 37px;
		color: #9c7c4c;
		background: transparent;
		border: 0;
		box-shadow: none;
	}
	.ncp-page .ncp-notifications-bell svg { width: 27px; height: 27px; }
}
@media (max-width: 700px) {
	.ncp-page .ncp-main { --ncp-mobile-side-padding: 12px; }
	.ncp-page .ncp-heading,
	.ncp-page .ncp-heading-has-back { margin-top: -20px; }
}
@media (max-width: 480px) {
	.ncp-page .ncp-heading h1 { font-size: 20px; }
}

/* فهرست محصولات در موبایل بدون پیمایش افقی، به کارت‌های مستقل تبدیل می‌شود. */
@media screen and (max-width: 820px) {
	.ncp-page.ncp-route-products .ncp-toolbar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 12px;
	}
	.ncp-page.ncp-route-products .ncp-search { grid-column: 1 / -1; width: 100%; }
	.ncp-page.ncp-route-products .ncp-search input { height: 44px; }
	.ncp-page.ncp-route-products .ncp-count { margin: 0; font-size: 13px; }
	.ncp-page.ncp-route-products .ncp-tariff-form { width: min(340px, calc(100vw - 44px)); max-width: none; }
	.ncp-page.ncp-route-products .ncp-table-wrap { overflow: visible; border: 0; border-radius: 0; }
	.ncp-page.ncp-route-products .ncp-products-table { display: block; min-width: 0; width: 100%; table-layout: auto; }
	.ncp-page.ncp-route-products .ncp-products-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
	.ncp-page.ncp-route-products .ncp-products-table tbody {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
	.ncp-page.ncp-route-products .ncp-products-table tr {
		display: flex;
		min-width: 0;
		flex-direction: column;
		border: 1px solid #dedede;
		border-radius: 14px;
		overflow: hidden;
		background: #fff;
	}
	.ncp-page.ncp-route-products .ncp-products-table td {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 10px;
		width: 100%;
		min-width: 0;
		padding: 10px 14px;
		border-inline-end: 0;
		border-bottom: 1px solid #f0ede9;
		text-align: right;
	}
	.ncp-page.ncp-route-products .ncp-products-table td[data-label]::before {
		content: attr(data-label);
		flex: 0 0 auto;
		color: #746d64;
		font-size: 12px;
	}
	.ncp-page.ncp-route-products .ncp-products-table td:first-child {
		align-items: center;
		min-height: 89px;
		background: #fcfaf6;
	}
	.ncp-page.ncp-route-products .ncp-product-name { min-width: 0; gap: 11px; }
	.ncp-page.ncp-route-products .ncp-product-name img { width: 64px; height: 64px; flex-basis: 64px; }
	.ncp-page.ncp-route-products .ncp-product-name > div { min-width: 0; overflow-wrap: anywhere; }
	.ncp-page.ncp-route-products .ncp-products-table td:nth-child(2) { display: block; }
	.ncp-page.ncp-route-products .ncp-identifier { margin-top: 0; overflow-wrap: anywhere; }
	.ncp-page.ncp-route-products .ncp-identifier + .ncp-identifier { margin-top: 3px; }
	.ncp-page.ncp-route-products .ncp-stock-value { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
	.ncp-page.ncp-route-products .ncp-unit { margin: 0; }
	.ncp-page.ncp-route-products .ncp-products-table td:last-child {
		margin-top: auto;
		border-bottom: 0;
	}
	.ncp-page.ncp-route-products .ncp-row-actions { display: flex; width: 100%; gap: 8px; }
	.ncp-page.ncp-route-products .ncp-row-actions > a,
	.ncp-page.ncp-route-products .ncp-row-actions > form { flex: 1 1 0; min-width: 0; }
	.ncp-page.ncp-route-products .ncp-row-actions .ncp-outline-button {
		width: 100%;
		min-width: 0;
		min-height: 40px;
		padding: 8px;
		text-align: center;
	}
}
@media screen and (max-width: 600px) {
	.ncp-page.ncp-route-products .ncp-products-table tbody { grid-template-columns: minmax(0, 1fr); }
}

/* در ویرایش محصول، عکس کنار نام و مدل می‌ماند و جزئیات زیر آن‌ها قرار می‌گیرد. */
@media screen and (max-width: 820px) {
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-product-overview {
		display: grid;
		grid-template-areas: "picture lead" "facts facts";
		grid-template-columns: 110px minmax(0, 1fr);
		column-gap: 12px;
		row-gap: 0;
		align-items: start;
	}
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-product-picture {
		grid-area: picture;
		width: 110px;
		margin: 0;
	}
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-product-picture img { height: 110px; }
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-product-information { display: contents; }
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-product-lead {
		grid-area: lead;
		min-width: 0;
	}
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-product-information h2 {
		min-width: 0;
		margin: 0;
		font-size: 19px;
		line-height: 1.4;
		overflow-wrap: anywhere;
	}
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-product-model {
		min-width: 0;
		margin: 5px 0 0;
		font-size: 12px;
		line-height: 1.5;
		overflow-wrap: anywhere;
	}
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-product-mobile-status {
		display: block;
		margin: 8px 0 0;
		color: #777;
		font-size: 12px;
		line-height: 1.5;
	}
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-fact-status { display: none; }
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-facts {
		grid-area: facts;
		width: 100%;
		margin-top: 14px;
	}
}

@media screen and (max-width: 700px) {
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-product-edit-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 12px;
	}
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-product-edit-fields > .ncp-field {
		grid-template-rows: auto 44px 1fr;
	}
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-product-edit-fields input { height: 44px; }
	.ncp-page.ncp-route-products .ncp-edit-card .ncp-product-edit-fields > .ncp-field > span {
		font-size: 13px;
	}
}

/* جست‌وجو و دو انتخاب‌گر سادهٔ وضعیت و مرتب‌سازی در موبایل. */
@media screen and (max-width: 820px) {
	.ncp-page.ncp-route-orders .ncp-orders-tools { min-width: 0; grid-template-columns: minmax(0, 1fr); }
	.ncp-page.ncp-route-orders .ncp-orders-search { width: 100%; }
	.ncp-page.ncp-route-orders .ncp-orders-search input[type="search"] {
		height: 44px;
		min-height: 44px;
		padding-block: 6px;
	}
	.ncp-page.ncp-route-orders .ncp-order-filters { display: none; }
	.ncp-page.ncp-route-orders .ncp-orders-tools { margin-bottom: 14px; }
	.ncp-page.ncp-route-orders .ncp-orders-mobile-controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
		min-width: 0;
	}
	.ncp-page.ncp-route-orders .ncp-orders-mobile-control { position: relative; min-width: 0; }
	.ncp-page.ncp-route-orders .ncp-orders-mobile-control[open] { z-index: 10; }
	.ncp-page.ncp-route-orders .ncp-orders-mobile-control summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		min-height: 42px;
		padding: 6px 2px 10px;
		border-bottom: 1px solid #bdbdbd;
		list-style: none;
		color: #333;
		font-size: 13px;
	}
	.ncp-page.ncp-route-orders .ncp-orders-mobile-control summary::-webkit-details-marker { display: none; }
	.ncp-page.ncp-route-orders .ncp-orders-mobile-control summary::after {
		content: "";
		width: 7px;
		height: 7px;
		flex: 0 0 7px;
		margin-left: 4px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg);
	}
	.ncp-page.ncp-route-orders .ncp-orders-mobile-control[open] summary::after { transform: rotate(225deg); }
	.ncp-page.ncp-route-orders .ncp-orders-mobile-current {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.ncp-page.ncp-route-orders .ncp-orders-mobile-menu {
		position: absolute;
		top: calc(100% + 6px);
		right: 0;
		display: grid;
		gap: 2px;
		min-width: 100%;
		width: max-content;
		max-width: calc(100vw - 32px);
		padding: 6px;
		border: 1px solid #ddd;
		border-radius: 8px;
		background: #fff;
		box-shadow: 0 8px 22px #00000016;
	}
	.ncp-page.ncp-route-orders .ncp-orders-mobile-control:last-child .ncp-orders-mobile-menu { right: auto; left: 0; }
	.ncp-page.ncp-route-orders .ncp-orders-mobile-menu a {
		display: block;
		padding: 7px 10px;
		border-radius: 5px;
		font-size: 13px;
		white-space: nowrap;
	}
	.ncp-page.ncp-route-orders .ncp-orders-mobile-menu a:hover,
	.ncp-page.ncp-route-orders .ncp-orders-mobile-menu a.is-active { color: #93681e; background: #fff6e8; }
	.ncp-page.ncp-route-orders .ncp-orders-table-wrap { overflow: visible; border: 0; border-radius: 0; }
	.ncp-page.ncp-route-orders .ncp-orders-table { display: block; width: 100%; min-width: 0; table-layout: auto; }
	.ncp-page.ncp-route-orders .ncp-orders-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
	.ncp-page.ncp-route-orders .ncp-orders-table tbody { display: grid; gap: 12px; }
	.ncp-page.ncp-route-orders .ncp-orders-table tbody tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px 12px;
		min-width: 0;
		padding: 14px;
		border: 1px solid #dedede;
		border-radius: 14px;
		background: #fff;
	}
	.ncp-page.ncp-route-orders .ncp-orders-table tbody td {
		height: auto;
		min-width: 0;
		padding: 0;
		border: 0;
		text-align: right;
		overflow-wrap: anywhere;
	}
	.ncp-page.ncp-route-orders .ncp-orders-table td[data-label]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 3px;
		color: #777;
		font-size: 11px;
		font-weight: 400;
	}
	.ncp-page.ncp-route-orders .ncp-orders-table td:first-child { grid-column: 1; grid-row: 1; align-self: end; font-size: 15px; }
	.ncp-page.ncp-route-orders .ncp-orders-table td:nth-child(6) { grid-column: 2; grid-row: 1 / 3; justify-self: end; align-self: center; }
	.ncp-page.ncp-route-orders .ncp-orders-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: #777; font-size: 11px; }
	.ncp-page.ncp-route-orders .ncp-orders-table td:nth-child(3) { grid-column: 1; grid-row: 3; }
	.ncp-page.ncp-route-orders .ncp-orders-table td:nth-child(4) { grid-column: 2; grid-row: 3; }
	.ncp-page.ncp-route-orders .ncp-orders-table td:nth-child(5) {
		grid-column: 1;
		grid-row: 4;
		padding-top: 10px;
		border-top: 1px solid #eee;
		font-weight: 700;
	}
	.ncp-page.ncp-route-orders .ncp-orders-table td:last-child {
		display: flex;
		grid-column: 2;
		grid-row: 4;
		align-items: flex-end;
		justify-content: flex-end;
		padding-top: 10px;
		border-top: 1px solid #eee;
	}
	.ncp-page.ncp-route-orders .ncp-orders-table .ncp-order-status {
		min-width: 0;
		max-width: 100%;
		padding: 5px 9px;
		text-align: center;
		overflow-wrap: anywhere;
	}
	.ncp-page.ncp-route-orders .ncp-orders-table td:last-child .ncp-outline-button {
		display: inline-block;
		width: auto;
		max-width: 100%;
		min-width: 0;
		min-height: 36px;
		padding: 6px 9px;
		text-align: center;
	}
}
@media screen and (min-width: 701px) and (max-width: 820px) {
	.ncp-page.ncp-route-orders .ncp-orders-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* سربرگ سفارش‌ها با الگوی هدر پرداخت مشتری؛ تاریخ فقط در هدر موبایلِ جزئیات/بررسی می‌آید. */
.ncp-page.ncp-route-orders .ncp-order-mobile-toolbar { display: none; }
.ncp-page.ncp-route-orders .ncp-heading { margin-bottom: 14px; }
.ncp-page.ncp-route-orders .ncp-heading-title { min-width: 0; }
.ncp-page.ncp-route-orders .ncp-heading h1 { color: #302c27; font-size: clamp(23px, 1.8vw, 29px); font-weight: 700; line-height: 1.45; }
.ncp-page.ncp-route-orders .ncp-heading-order-date { display: none; }
.ncp-page.ncp-route-orders .ncp-heading-actions .ncp-back { color: #45413b; font-size: 15px; }
@media (max-width: 820px) {
	.ncp-page.ncp-route-orders .ncp-heading { margin-bottom: 4px; }
	.ncp-page.ncp-route-orders .ncp-heading-order .ncp-heading-title { display: grid; gap: 2px; }
	.ncp-page.ncp-route-orders .ncp-heading h1 { color: #3f3223; font-size: 24px; line-height: 1.25; }
	.ncp-page.ncp-route-orders .ncp-heading-order-date { display: flex; flex-wrap: wrap; gap: 3px 10px; color: #77736e; font-size: 10px; line-height: 1.4; }
	.ncp-page.ncp-route-orders .ncp-heading-order + .ncp-mobile-back { display: none; }
	.ncp-page.ncp-route-orders .ncp-order-mobile-toolbar {
		position: sticky;
		top: 68px;
		z-index: 49;
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 12px;
		min-height: 0;
		margin-bottom: 8px;
		padding: 6px 0 8px;
		background: rgba(255, 255, 255, .97);
	}
	.ncp-page.ncp-route-orders .ncp-order-mobile-back { color: #45413b; font-size: 12px; font-weight: 700; white-space: nowrap; }
	.ncp-page.ncp-route-orders .ncp-order-mobile-state { display: grid; justify-items: start; gap: 4px; min-width: 0; }
	.ncp-page.ncp-route-orders .ncp-order-mobile-toolbar .ncp-order-status { align-items: center; min-width: 0; max-width: 100%; padding: 5px 12px; border-radius: 10px; font-weight: 700; line-height: 1.5; text-align: center; }
	.ncp-page.ncp-route-orders .ncp-order-mobile-toolbar .ncp-order-status::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; margin-inline-end: 8px; border-radius: 50%; background: #e58800; }
	.ncp-page.ncp-route-orders .ncp-order-mobile-toolbar .ncp-order-status.is-approved::before { background: #23862d; }
	.ncp-page.ncp-route-orders .ncp-order-mobile-toolbar .ncp-order-status.is-rejected::before,
	.ncp-page.ncp-route-orders .ncp-order-mobile-toolbar .ncp-order-status.is-cancelled::before { background: #b83232; }
	.ncp-page.ncp-route-orders .ncp-order-page > .ncp-order-meta { display: none; }
}
@media (max-width: 480px) {
	.ncp-page.ncp-route-orders .ncp-heading h1 { font-size: 20px; }
}

