/* CSS هسته v2 — سیستم طراحی علمدار. پیشوند bt- برای جلوگیری از تداخل */
:root{--bt-brand:#0f4c75;--bt-brand-2:#1b6ca8;--bt-brand-soft:#e6f0f8;--bt-accent:#c8963e;--bt-bg:#f1f4f8;--bt-card:#fff;--bt-text:#17212b;--bt-muted:#66768a;--bt-line:#dde4ec;--bt-soft:#eef2f7;--bt-err:#c0322a;--bt-ok:#1b8a4a;--bt-warn:#a86a00;--bt-info:#1b6ca8;--bt-side:#0b2a42;--bt-side-2:#103a5a;--bt-shadow:0 1px 2px #0f1f2e12,0 4px 14px #0f1f2e0b;--bt-shadow-lg:0 12px 40px #0f1f2e33;--bt-r:12px;--bt-h:38px;--bt-ring:#1b6ca833;color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bt-bg:#0b1218;--bt-card:#141d27;--bt-text:#e7edf3;--bt-muted:#92a3b5;--bt-line:#263443;--bt-soft:#1a2531;--bt-brand:#5ab0ea;--bt-brand-2:#82c4f0;--bt-brand-soft:#12293d;--bt-err:#ff8c83;--bt-ok:#5fd08a;--bt-warn:#e6b84a;--bt-info:#7fbdf0;--bt-side:#08121b;--bt-side-2:#0f2233;--bt-shadow:none;--bt-shadow-lg:0 12px 40px #000a;--bt-ring:#5ab0ea44;color-scheme:dark}}
:root[data-theme=dark]{--bt-bg:#0b1218;--bt-card:#141d27;--bt-text:#e7edf3;--bt-muted:#92a3b5;--bt-line:#263443;--bt-soft:#1a2531;--bt-brand:#5ab0ea;--bt-brand-2:#82c4f0;--bt-brand-soft:#12293d;--bt-err:#ff8c83;--bt-ok:#5fd08a;--bt-warn:#e6b84a;--bt-info:#7fbdf0;--bt-side:#08121b;--bt-side-2:#0f2233;--bt-shadow:none;--bt-shadow-lg:0 12px 40px #000a;--bt-ring:#5ab0ea44;color-scheme:dark}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
.bt-body{margin:0;font-family:Vazirmatn,Tahoma,"Segoe UI",system-ui,sans-serif;font-size:14px;line-height:1.7;background:var(--bt-bg);color:var(--bt-text);display:flex;min-height:100vh}
a{color:var(--bt-brand);text-decoration:none}a:hover{text-decoration:underline}
::selection{background:var(--bt-ring)}
svg.i{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
/* ===== منوی کناری ===== */
.bt-side{width:244px;background:linear-gradient(180deg,var(--bt-side),var(--bt-side-2));color:#fff;padding:14px 10px;flex-shrink:0;display:flex;flex-direction:column;gap:1px;position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ffffff30 transparent;z-index:30}
.bt-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:14.5px;line-height:1.5;border-bottom:1px solid #ffffff22;padding:4px 6px 14px;margin-bottom:10px}
.bt-brand .logo{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#e2b155,#b9822a);display:grid;place-items:center;color:#2a1a02;font-weight:800;font-size:18px;flex:none;box-shadow:0 4px 12px #0006}
.bt-brand small{display:block;font-size:9.5px;color:#e0b25f;letter-spacing:1.2px;direction:ltr;text-align:right;font-weight:600}
.bt-side a{display:flex;align-items:center;gap:8px;color:#cfe0ee;text-decoration:none;padding:7px 12px;border-radius:9px;font-size:13.3px;position:relative;transition:background .14s,color .14s}
.bt-side a::before{content:"";width:5px;height:5px;border-radius:50%;background:#ffffff40;flex:none;transition:background .14s,transform .14s}
.bt-side a:hover{background:#ffffff17;color:#fff;text-decoration:none}.bt-side a:hover::before{background:#e0b25f;transform:scale(1.4)}
.bt-side a.active{background:linear-gradient(90deg,#ffffff0a,#ffffff29);color:#fff;font-weight:600}.bt-side a.active::before{background:#e0b25f;transform:scale(1.5)}
.bt-side a.active::after{content:"";position:absolute;right:-10px;top:7px;bottom:7px;width:3px;border-radius:3px;background:#e0b25f}
.bt-side .bt-sec-h{display:flex;align-items:center;gap:7px;font-size:11px;color:#e0b25f;margin:14px 8px 3px;letter-spacing:.3px;cursor:pointer;user-select:none;font-weight:700}
.bt-side .bt-sec-h::after{content:"";margin-inline-start:auto;width:6px;height:6px;border-left:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
.bt-side .bt-sec-h.shut::after{transform:rotate(45deg)}
.bt-side a.gone{display:none}
.bt-side select{width:100%;height:36px;padding:0 10px;border-radius:9px;margin-bottom:6px;border:1px solid #ffffff2e;background-color:#ffffff12;color:#fff;font:inherit;font-size:13px}.bt-side select option{color:#111}
.bt-user{margin-top:auto;padding:12px 6px 4px;font-size:12px;color:#b8c9d8;border-top:1px solid #ffffff1f}.bt-link{background:none;border:0;color:#f0c987;cursor:pointer;padding:0;font:inherit}.bt-link:hover{text-decoration:underline}
/* ===== قاب اصلی و نوار بالا ===== */
.bt-wrap{flex:1;min-width:0;display:flex;flex-direction:column}
.bt-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;padding:10px 22px;background:color-mix(in srgb,var(--bt-bg) 82%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--bt-line)}
.bt-crumb{font-size:12.5px;color:var(--bt-muted);display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bt-crumb b{color:var(--bt-text);font-weight:600}
.bt-top .sp{flex:1}
.bt-ico{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:10px;border:1px solid var(--bt-line);background:var(--bt-card);color:var(--bt-muted);cursor:pointer;transition:all .14s;padding:0;font:inherit}.bt-ico:hover{color:var(--bt-brand);border-color:var(--bt-brand);background:var(--bt-brand-soft)}
.bt-sbtn{display:flex;align-items:center;gap:8px;height:38px;min-width:230px;padding:0 12px;border-radius:10px;border:1px solid var(--bt-line);background:var(--bt-card);color:var(--bt-muted);cursor:pointer;font:inherit;font-size:13px;transition:all .14s}.bt-sbtn:hover{border-color:var(--bt-brand);color:var(--bt-text)}
.bt-sbtn kbd{margin-inline-start:auto;direction:ltr;font:11px ui-monospace,Menlo,monospace;border:1px solid var(--bt-line);border-radius:5px;padding:0 6px;background:var(--bt-soft)}
.bt-menu{display:none}
.bt-main{flex:1;padding:22px 24px 40px;min-width:0;max-width:1560px;width:100%;animation:btin .28s ease both}
@keyframes btin{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.bt-main h1{margin:0 0 18px;font-size:23px;font-weight:800;letter-spacing:-.2px}.bt-main h3{margin:24px 0 10px;font-size:15.5px;font-weight:700}
/* ===== کارت و شبکه ===== */
.bt-card{background:var(--bt-card);border:1px solid var(--bt-line);border-radius:var(--bt-r);padding:18px 20px;margin-bottom:16px;box-shadow:var(--bt-shadow)}
.bt-card h4{margin:0 0 12px;font-size:14px;font-weight:700}
.bt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-bottom:16px}.bt-grid .bt-card{margin:0}
.bt-grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:14px;margin-bottom:16px}.bt-grid2 .bt-card{margin:0}
.bt-stat{--c1:#4a86f0;--c2:#2457d6;position:relative;overflow:hidden;color:#ffffffd9;font-size:13px;border:0;background:linear-gradient(150deg,var(--c1),var(--c2));box-shadow:0 8px 20px color-mix(in srgb,var(--c2) 30%,transparent);transition:transform .16s,box-shadow .16s}
.bt-grid>.bt-stat:nth-child(6n+2){--c1:#16b2c4;--c2:#0a8397}.bt-grid>.bt-stat:nth-child(6n+3){--c1:#9468e3;--c2:#6b43c2}.bt-grid>.bt-stat:nth-child(6n+4){--c1:#25a566;--c2:#157a47}.bt-grid>.bt-stat:nth-child(6n+5){--c1:#f5a031;--c2:#d97c0a}.bt-grid>.bt-stat:nth-child(6n+6){--c1:#5e7088;--c2:#3e4e63}
.bt-stat:hover{transform:translateY(-2px);box-shadow:var(--bt-shadow-lg)}
.bt-stat::after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;background:#ffffff1f;left:-34px;top:-44px}
.bt-stat b{display:block;font-size:24px;margin-top:6px;color:#fff;font-weight:800;font-variant-numeric:tabular-nums;position:relative;z-index:1}
.bt-grid>.bt-stat.up{--c1:#2fb86e;--c2:#168a4c}.bt-grid>.bt-stat.dn{--c1:#ef6a6a;--c2:#c93636}
.bt-stat small{display:block;margin-top:2px}
/* ===== فرم ===== */
.bt-form label{display:block;margin:0 0 5px;font-size:12.5px;color:var(--bt-muted);font-weight:600}
.bt-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.bt-form select,.bt-form textarea,.bt-main select,.bt-main input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),.bt-main textarea{width:100%;min-height:var(--bt-h);padding:7px 12px;border:1px solid var(--bt-line);border-radius:10px;background-color:var(--bt-card);color:var(--bt-text);font:inherit;transition:border-color .14s,box-shadow .14s,background-color .14s}
.bt-form textarea,.bt-main textarea{min-height:80px;resize:vertical}
input:hover:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled){border-color:color-mix(in srgb,var(--bt-brand) 40%,var(--bt-line))}
select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23778' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 12px center;padding-left:32px!important;cursor:pointer}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--bt-brand);box-shadow:0 0 0 4px var(--bt-ring)}
input:disabled,select:disabled{opacity:.6;cursor:not-allowed}
input[type=checkbox],input[type=radio]{accent-color:var(--bt-brand);width:16px;height:16px;cursor:pointer}
.bt-form p{margin:16px 0 0}
.bt-row{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end;margin-bottom:12px}.bt-row>*{flex:1;min-width:150px}.bt-row>div:has(>button),.bt-row>div:has(>.bt-btn){flex:0 0 auto;min-width:0;display:flex;gap:8px;align-items:flex-end}
.bt-form small,.bt-main small{color:var(--bt-muted)}
/* ===== دکمه‌ها: سبک گرد رنگی (مدل ۳) + کاشی آیکن‌دار (مدل ۴) ===== */
.bt-btn,button.bt-btn{--c1:#4f8cf7;--c2:#2f63d8;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:0 24px;border:0;border-radius:999px;background:linear-gradient(180deg,var(--c1),var(--c2));color:#fff;font:inherit;font-weight:700;font-size:13.5px;line-height:1;cursor:pointer;text-decoration:none;white-space:nowrap;box-shadow:0 1px 0 #ffffff40 inset,0 4px 12px color-mix(in srgb,var(--c2) 38%,transparent);transition:transform .12s,box-shadow .16s,filter .16s}
.bt-btn::before{content:"";display:none;width:18px;height:18px;background:currentColor;-webkit-mask:center/contain no-repeat;mask:center/contain no-repeat;flex:none}
.bt-btn[class*=" ic-"]::before,.bt-btn[class^="ic-"]::before{display:inline-block}
.bt-btn:hover{filter:brightness(1.07) saturate(1.05);text-decoration:none;transform:translateY(-1px);box-shadow:0 1px 0 #ffffff40 inset,0 8px 20px color-mix(in srgb,var(--c2) 48%,transparent)}
.bt-btn:active{transform:translateY(1px);box-shadow:0 2px 6px color-mix(in srgb,var(--c2) 40%,transparent)}
.bt-btn:focus-visible,.bt-ico:focus-visible{outline:0;box-shadow:0 0 0 4px var(--bt-ring)}
.bt-btn.bt-c-gray,.bt-btn.bt-sec{--c1:#98a2ae;--c2:#6f7a87}.bt-btn.bt-c-red{--c1:#f26b6b;--c2:#df3b3b}.bt-btn.bt-c-orange{--c1:#ffa94d;--c2:#f58a1f}.bt-btn.bt-c-teal{--c1:#2db3cc;--c2:#0f8da6}.bt-btn.bt-c-green{--c1:#43c977;--c2:#25a25a}.bt-btn.bt-c-purple{--c1:#9b6be0;--c2:#7447c9}
.bt-btn.bt-ghost{background:transparent;color:var(--bt-muted);box-shadow:none;font-weight:600}.bt-btn.bt-ghost:hover{background:var(--bt-soft);color:var(--bt-text);filter:none;box-shadow:none}
.bt-btn.bt-danger{--c1:#f26b6b;--c2:#df3b3b}
.bt-btn.bt-ok{--c1:#43c977;--c2:#25a25a}
.bt-btn[disabled],.bt-btn.is-busy{opacity:.6;cursor:wait;pointer-events:none}
.bt-btn.is-busy::after{content:"";width:14px;height:14px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:btspin .7s linear infinite}
@keyframes btspin{to{transform:rotate(360deg)}}
.bt-btn.bt-sm,.bt-table .bt-btn,.bt-table button.bt-btn{min-height:31px;padding:0 14px;font-size:12.3px;gap:6px;box-shadow:0 2px 6px color-mix(in srgb,var(--c2) 30%,transparent)}.bt-btn.bt-sm::before,.bt-table .bt-btn::before{width:14px;height:14px}
.bt-link-btn{background:none;border:0;color:var(--bt-brand);cursor:pointer;font:inherit;padding:0}
/* کاشی‌های رنگی داشبورد و دکمه‌های آیکن‌دار (مدل ۴) */
.bt-tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:16px}@media (max-width:1100px){.bt-tiles{grid-template-columns:repeat(3,1fr)}}@media (max-width:560px){.bt-tiles{grid-template-columns:repeat(2,1fr)}}
.bt-grid.kpi{grid-template-columns:repeat(4,1fr)}@media (max-width:1100px){.bt-grid.kpi{grid-template-columns:repeat(2,1fr)}}@media (max-width:480px){.bt-grid.kpi{grid-template-columns:1fr 1fr}}
.bt-tile{--c1:#4f8cf7;--c2:#2f63d8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:104px;padding:14px 10px;border-radius:16px;background:linear-gradient(160deg,var(--c1),var(--c2));color:#fff;font-weight:700;font-size:14px;text-decoration:none;box-shadow:0 8px 20px color-mix(in srgb,var(--c2) 32%,transparent);transition:transform .15s,box-shadow .15s,filter .15s}
.bt-tile:hover{transform:translateY(-3px);filter:brightness(1.06);text-decoration:none;box-shadow:0 14px 28px color-mix(in srgb,var(--c2) 42%,transparent)}
.bt-tile svg.i{width:27px;height:27px;stroke-width:1.7}.bt-tile small{font-weight:500;opacity:.85;font-size:11.5px;margin-top:-4px}
.bt-tile.t-blue{--c1:#4a86f0;--c2:#2457d6}.bt-tile.t-teal{--c1:#16b2c4;--c2:#0a8397}.bt-tile.t-purple{--c1:#9468e3;--c2:#6b43c2}.bt-tile.t-green{--c1:#25a566;--c2:#157a47}.bt-tile.t-orange{--c1:#f5a031;--c2:#d97c0a}.bt-tile.t-slate{--c1:#5e7088;--c2:#3e4e63}.bt-tile.t-red{--c1:#ee6b6b;--c2:#c93a3a}.bt-tile.t-pink{--c1:#ec6a9a;--c2:#c23c71}
.bt-ibtn{display:inline-flex;flex-direction:column;align-items:center;gap:7px;width:76px;padding:10px 4px;border-radius:14px;background:var(--bt-card);border:1px solid var(--bt-line);color:var(--bt-text);font-size:12px;cursor:pointer;text-decoration:none;box-shadow:var(--bt-shadow);transition:all .14s}.bt-ibtn:hover{border-color:var(--bt-brand);transform:translateY(-2px);text-decoration:none}
.ic-save::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8M7 3v5h8'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8M7 3v5h8'/%3E%3C/svg%3E")}
.ic-plus::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
.ic-trash::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v6M14 11v6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v6M14 11v6'/%3E%3C/svg%3E")}
.ic-edit::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E")}
.ic-check::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}
.ic-x::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E")}
.ic-upload::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12'/%3E%3C/svg%3E")}
.ic-print::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v8H6z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v8H6z'/%3E%3C/svg%3E")}
.ic-eye::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
.ic-download::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E")}
.ic-search::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")}
.ic-sliders::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/%3E%3C/svg%3E")}
.ic-undo::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7v6h6M3 13a9 9 0 1 0 3-7'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7v6h6M3 13a9 9 0 1 0 3-7'/%3E%3C/svg%3E")}
.ic-cart::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E")}
.ic-box::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E")}
.ic-users::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M2 21v-2a4 4 0 0 1 4-4h6a4 4 0 0 1 4 4v2M16 3.1a4 4 0 0 1 0 7.8M22 21v-2a4 4 0 0 0-3-3.9'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M2 21v-2a4 4 0 0 1 4-4h6a4 4 0 0 1 4 4v2M16 3.1a4 4 0 0 1 0 7.8M22 21v-2a4 4 0 0 0-3-3.9'/%3E%3C/svg%3E")}
.ic-wallet::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12V8a2 2 0 0 0-2-2H5a2 2 0 0 1 0-4h12v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12V8a2 2 0 0 0-2-2H5a2 2 0 0 1 0-4h12v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4z'/%3E%3C/svg%3E")}
.ic-card::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E")}
.ic-chart::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 15l4-4 3 3 5-6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 15l4-4 3 3 5-6'/%3E%3C/svg%3E")}
.ic-book::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5z'/%3E%3Cpath d='M4 19.5V22h16'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5z'/%3E%3Cpath d='M4 19.5V22h16'/%3E%3C/svg%3E")}
.ic-cheque::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M6 10h6M6 14h3M16 14h2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M6 10h6M6 14h3M16 14h2'/%3E%3C/svg%3E")}
.ic-truck::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h15v13H1zM16 8h4l3 3v5h-7z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2'/%3E%3Ccircle cx='18.5' cy='18.5' r='2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h15v13H1zM16 8h4l3 3v5h-7z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2'/%3E%3Ccircle cx='18.5' cy='18.5' r='2'/%3E%3C/svg%3E")}
.ic-cash::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
.ic-file::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h8'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h8'/%3E%3C/svg%3E")}
/* ===== جدول ===== */
.bt-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 10px}
.bt-tools input{width:220px!important;min-height:34px!important}
.bt-tools .bt-btn{min-height:34px}
.bt-tools .cnt{color:var(--bt-muted);font-size:12.5px;margin-inline-start:auto}
.bt-pop{position:relative}.bt-pop>div{position:absolute;top:40px;right:0;z-index:15;background:var(--bt-card);border:1px solid var(--bt-line);border-radius:12px;box-shadow:var(--bt-shadow-lg);padding:8px;min-width:190px;max-height:300px;overflow:auto}
.bt-pop label{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:7px;cursor:pointer;font-size:13px}.bt-pop label:hover{background:var(--bt-soft)}
.bt-scroll{overflow-x:auto;border-radius:var(--bt-r)}
.bt-table{width:100%;border-collapse:separate;border-spacing:0;background:var(--bt-card);font-size:13px;border:1px solid var(--bt-line);border-radius:var(--bt-r);overflow:hidden;box-shadow:var(--bt-shadow);margin-bottom:14px}
.bt-table th,.bt-table td{padding:10px 11px;text-align:right;vertical-align:middle;border-bottom:1px solid var(--bt-line)}
.bt-table th{background:var(--bt-soft);font-weight:700;font-size:12.3px;color:var(--bt-muted);white-space:nowrap;position:sticky;top:0;user-select:none}
.bt-table th.srt{cursor:pointer}.bt-table th.srt:hover{color:var(--bt-brand)}.bt-table th.asc::after{content:" ▲";font-size:9px}.bt-table th.desc::after{content:" ▼";font-size:9px}
.bt-table tbody tr{transition:background .1s}
.bt-table tbody tr:nth-child(even) td{background:color-mix(in srgb,var(--bt-soft) 45%,transparent)}
.bt-table tbody tr:hover td{background:var(--bt-brand-soft)}
.bt-table tbody tr:last-child td{border-bottom:0}
.bt-table tfoot td{background:var(--bt-soft);font-weight:800;border-top:2px solid var(--bt-line);border-bottom:0}
.bt-table tr.picked td{background:color-mix(in srgb,var(--bt-accent) 16%,transparent)!important}
.bt-table form{display:inline-flex;gap:6px;align-items:center;flex-wrap:nowrap;margin:2px 0}
.bt-table td input:not([type=checkbox]):not([type=hidden]),.bt-table td select{width:auto;min-width:56px;max-width:130px;min-height:30px;padding:3px 9px;font-size:12.5px;border-radius:8px}
.bt-table td select{padding-left:26px!important}
.bt-table td:last-child{white-space:normal}.bt-table td>a{display:inline-block;margin-inline-end:8px}
.bt-table form.wrap{flex-wrap:wrap;max-width:330px}
.bt-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.bt-chip{background:var(--bt-card);border:1px solid var(--bt-line);border-radius:999px;padding:3px 14px;font-size:12.5px;color:var(--bt-muted)}.bt-chip b{color:var(--bt-text);font-weight:700;margin-inline-start:4px}
a.bt-chip:hover{border-color:var(--bt-brand);color:var(--bt-brand);text-decoration:none}
.bt-trans{display:inline-flex;gap:6px;align-items:center;padding:6px 8px;border:1px dashed var(--bt-line);border-radius:10px;margin:3px}.bt-trans input{min-width:150px}
.bt-empty{text-align:center;color:var(--bt-muted);padding:26px}
/* ===== پیام‌ها و اعلان (Toast) ===== */
.bt-flash{padding:11px 16px;border-radius:10px;margin-bottom:14px;border:1px solid transparent;font-weight:500}.bt-flash.bt-ok{background:#e3f4ea;color:#156a35;border-color:#bfe3cd}.bt-flash.bt-err{background:#fdebea;color:#a0211a;border-color:#f3c3bf}
.bt-toasts{position:fixed;left:18px;bottom:18px;z-index:100;display:flex;flex-direction:column;gap:10px;max-width:min(420px,calc(100vw - 36px))}
.bt-toast{display:flex;gap:10px;align-items:flex-start;padding:12px 16px;border-radius:12px;background:var(--bt-card);border:1px solid var(--bt-line);border-right:4px solid var(--bt-brand);box-shadow:var(--bt-shadow-lg);animation:bttoast .3s ease both;font-weight:500}
.bt-toast.ok{border-right-color:var(--bt-ok)}.bt-toast.err{border-right-color:var(--bt-err)}.bt-toast.out{animation:bttoastout .25s ease forwards}
.bt-toast button{margin-inline-start:auto;background:none;border:0;color:var(--bt-muted);cursor:pointer;font-size:18px;line-height:1;padding:0}
@keyframes bttoast{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:none}}@keyframes bttoastout{to{opacity:0;transform:translateX(-24px)}}
/* ===== مودال و پالت فرمان ===== */
.bt-ov{position:fixed;inset:0;background:#06101a99;backdrop-filter:blur(3px);z-index:90;display:none;align-items:flex-start;justify-content:center;padding:12vh 16px 16px;animation:btfade .15s ease both}.bt-ov.on{display:flex}
@keyframes btfade{from{opacity:0}to{opacity:1}}
.bt-dlg{background:var(--bt-card);border:1px solid var(--bt-line);border-radius:16px;box-shadow:var(--bt-shadow-lg);width:100%;max-width:440px;padding:22px;animation:btin .2s ease both}
.bt-dlg h4{margin:0 0 8px;font-size:16px}.bt-dlg p{margin:0 0 18px;color:var(--bt-muted)}.bt-dlg .acts{display:flex;gap:10px;justify-content:flex-start}
.bt-cmd{max-width:580px;padding:0;overflow:hidden}
.bt-cmd input{width:100%!important;border:0!important;border-bottom:1px solid var(--bt-line)!important;border-radius:0!important;min-height:52px!important;padding:0 18px!important;font-size:15px!important;box-shadow:none!important}
.bt-cmd ul{list-style:none;margin:0;padding:6px;max-height:min(52vh,420px);overflow:auto}
.bt-cmd li a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:9px;color:var(--bt-text);text-decoration:none}.bt-cmd li a small{margin-inline-start:auto;color:var(--bt-muted)}
.bt-cmd li.on a,.bt-cmd li a:hover{background:var(--bt-brand-soft);color:var(--bt-brand)}
.bt-cmd .ft{padding:8px 14px;border-top:1px solid var(--bt-line);font-size:11.5px;color:var(--bt-muted);display:flex;gap:14px}
.bt-cmd .ft kbd{font:11px ui-monospace,monospace;border:1px solid var(--bt-line);border-radius:4px;padding:0 5px;background:var(--bt-soft)}
/* ===== نشان وضعیت ===== */
.bt-badge{display:inline-flex;align-items:center;gap:5px;padding:2px 11px;border-radius:999px;font-size:11.5px;font-weight:700;background:var(--bt-soft);color:var(--bt-muted);border:1px solid var(--bt-line);white-space:nowrap}
.bt-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.bt-badge.posted,.bt-badge.confirmed,.bt-badge.paid,.bt-badge.approved,.bt-badge.active,.bt-badge.done,.bt-badge.answered,.bt-badge.received,.bt-badge.matched,.bt-badge.cleared,.bt-badge.open_ok{background:#e3f4ea;color:#156a35;border-color:#bfe3cd}
.bt-badge.cancelled,.bt-badge.rejected,.bt-badge.bounced,.bt-badge.terminated,.bt-badge.returned,.bt-badge.suspended,.bt-badge.overdue,.bt-badge.defaulted{background:#fdebea;color:#a0211a;border-color:#f3c3bf}
.bt-badge.pending,.bt-badge.pending_approval,.bt-badge.draft,.bt-badge.hold,.bt-badge.submitted,.bt-badge.todo,.bt-badge.unmatched{background:#fff4d6;color:#8a5a00;border-color:#f0dc9b}
.bt-badge.ordered,.bt-badge.doing,.bt-badge.open,.bt-badge.reviewed,.bt-badge.referred,.bt-badge.converted,.bt-badge.issued{background:#e3effb;color:#175e9a;border-color:#bcd8f2}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .bt-badge.posted,:root:not([data-theme=light]) .bt-badge.confirmed,:root:not([data-theme=light]) .bt-badge.paid,:root:not([data-theme=light]) .bt-badge.approved,:root:not([data-theme=light]) .bt-badge.active,:root:not([data-theme=light]) .bt-badge.done,:root:not([data-theme=light]) .bt-badge.answered,:root:not([data-theme=light]) .bt-badge.received,:root:not([data-theme=light]) .bt-badge.matched,:root:not([data-theme=light]) .bt-badge.cleared{background:#12301f;color:#7fd9a0;border-color:#1f5a38}:root:not([data-theme=light]) .bt-badge.cancelled,:root:not([data-theme=light]) .bt-badge.rejected,:root:not([data-theme=light]) .bt-badge.bounced,:root:not([data-theme=light]) .bt-badge.terminated,:root:not([data-theme=light]) .bt-badge.returned,:root:not([data-theme=light]) .bt-badge.suspended,:root:not([data-theme=light]) .bt-badge.overdue,:root:not([data-theme=light]) .bt-badge.defaulted{background:#3a1816;color:#ffa9a2;border-color:#6a2a26}:root:not([data-theme=light]) .bt-badge.pending,:root:not([data-theme=light]) .bt-badge.pending_approval,:root:not([data-theme=light]) .bt-badge.draft,:root:not([data-theme=light]) .bt-badge.hold,:root:not([data-theme=light]) .bt-badge.submitted,:root:not([data-theme=light]) .bt-badge.todo,:root:not([data-theme=light]) .bt-badge.unmatched{background:#352b0c;color:#e8c768;border-color:#5c4a14}:root:not([data-theme=light]) .bt-badge.ordered,:root:not([data-theme=light]) .bt-badge.doing,:root:not([data-theme=light]) .bt-badge.open,:root:not([data-theme=light]) .bt-badge.reviewed,:root:not([data-theme=light]) .bt-badge.referred,:root:not([data-theme=light]) .bt-badge.converted,:root:not([data-theme=light]) .bt-badge.issued{background:#10283d;color:#8cc3f4;border-color:#244d70}}
:root[data-theme=dark] .bt-badge.posted,:root[data-theme=dark] .bt-badge.confirmed,:root[data-theme=dark] .bt-badge.paid,:root[data-theme=dark] .bt-badge.approved,:root[data-theme=dark] .bt-badge.active,:root[data-theme=dark] .bt-badge.done,:root[data-theme=dark] .bt-badge.answered,:root[data-theme=dark] .bt-badge.received,:root[data-theme=dark] .bt-badge.matched,:root[data-theme=dark] .bt-badge.cleared{background:#12301f;color:#7fd9a0;border-color:#1f5a38}:root[data-theme=dark] .bt-badge.cancelled,:root[data-theme=dark] .bt-badge.rejected,:root[data-theme=dark] .bt-badge.bounced,:root[data-theme=dark] .bt-badge.terminated,:root[data-theme=dark] .bt-badge.returned,:root[data-theme=dark] .bt-badge.suspended,:root[data-theme=dark] .bt-badge.overdue,:root[data-theme=dark] .bt-badge.defaulted{background:#3a1816;color:#ffa9a2;border-color:#6a2a26}:root[data-theme=dark] .bt-badge.pending,:root[data-theme=dark] .bt-badge.pending_approval,:root[data-theme=dark] .bt-badge.draft,:root[data-theme=dark] .bt-badge.hold,:root[data-theme=dark] .bt-badge.submitted,:root[data-theme=dark] .bt-badge.todo,:root[data-theme=dark] .bt-badge.unmatched{background:#352b0c;color:#e8c768;border-color:#5c4a14}:root[data-theme=dark] .bt-badge.ordered,:root[data-theme=dark] .bt-badge.doing,:root[data-theme=dark] .bt-badge.open,:root[data-theme=dark] .bt-badge.reviewed,:root[data-theme=dark] .bt-badge.referred,:root[data-theme=dark] .bt-badge.converted,:root[data-theme=dark] .bt-badge.issued{background:#10283d;color:#8cc3f4;border-color:#244d70}
.bt-num{font-variant-numeric:tabular-nums;direction:ltr;text-align:left}.bt-mono{font-family:ui-monospace,Menlo,monospace;direction:ltr;text-align:left;font-size:12px}
.bt-timeline li:last-child{border-bottom:0!important}
/* ===== نمودارها ===== */
.bt-chart{width:100%;height:auto;display:block;overflow:visible}
.bt-chart text{font-family:inherit;fill:var(--bt-muted);font-size:11px}
.bt-chart .grid{stroke:var(--bt-line);stroke-width:1;stroke-dasharray:3 4}
.bt-chart .b1{fill:var(--bt-brand)}.bt-chart .b2{fill:var(--bt-accent)}
.bt-chart rect.bar{transition:opacity .15s,transform .15s;transform-box:fill-box;transform-origin:bottom}.bt-chart g.col:hover rect.bar{opacity:.78}
.bt-chart .line{fill:none;stroke:var(--bt-ok);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.bt-chart .dot{fill:var(--bt-card);stroke:var(--bt-ok);stroke-width:2.2}
.bt-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--bt-muted);margin:0 0 8px}.bt-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-inline-end:6px;vertical-align:middle}
.bt-tip{position:fixed;z-index:95;pointer-events:none;background:#0b1620;color:#fff;border-radius:9px;padding:7px 11px;font-size:12px;box-shadow:var(--bt-shadow-lg);display:none;line-height:1.8}
.bt-donut-wrap{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.bt-donut-wrap svg{width:150px;height:150px;flex:none}
.bt-donut-wrap ul{list-style:none;margin:0;padding:0;flex:1;min-width:150px;font-size:12.5px}.bt-donut-wrap li{display:flex;align-items:center;gap:8px;padding:3px 0}.bt-donut-wrap li i{width:10px;height:10px;border-radius:3px;flex:none}.bt-donut-wrap li span{margin-inline-start:auto;color:var(--bt-muted);direction:ltr}
.bt-meter{height:9px;border-radius:9px;background:var(--bt-soft);overflow:hidden}.bt-meter i{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,var(--bt-brand),var(--bt-accent))}
.bt-login{margin:auto;max-width:400px;width:100%;padding:16px}.bt-login .bt-btn{width:100%}
hr{border:0;border-top:1px solid var(--bt-line)}
.bt-main .bt-card .bt-btn+.bt-btn{margin-inline-start:6px}
@media (max-width:980px){.bt-sbtn{min-width:0}.bt-sbtn span,.bt-sbtn kbd{display:none}}
@media (max-width:860px){.bt-body{display:block}.bt-side{position:fixed;inset:0 0 0 auto;height:100vh;transform:translateX(105%);transition:transform .22s;width:270px;box-shadow:var(--bt-shadow-lg)}.bt-side.open{transform:none}.bt-menu{display:inline-grid}.bt-main{padding:16px}.bt-top{padding:8px 14px}.bt-crumb{display:none}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media print{.bt-side,.bt-top,.bt-btn,.bt-tools,.bt-toasts,form{display:none!important}.bt-main{padding:0;animation:none}.bt-card,.bt-table{box-shadow:none}}
.bt-lines td:first-child select{max-width:none!important;width:100%;min-width:230px}.bt-lines td input{width:100%!important;max-width:170px!important}
.bt-table td>a.bt-btn{display:inline-flex;margin-inline-end:6px}

/* ===== چیدمان ستون عملیات (v3) ===== */
.bt-acts{display:inline-flex;gap:6px;align-items:center;flex-wrap:nowrap;white-space:nowrap;margin:0}
p.bt-acts{display:flex;flex-wrap:wrap;margin:0 0 14px}
.bt-table td:last-child{white-space:nowrap;width:1%}
.bt-more{position:relative;display:inline-block}
.bt-more>summary{list-style:none;cursor:pointer}
.bt-more>summary::-webkit-details-marker{display:none}
.bt-more-box{position:fixed;top:0;left:0;z-index:30;min-width:230px;max-width:min(320px,86vw);background:var(--bt-card);color:var(--bt-text);border:1px solid var(--bt-line);border-radius:12px;padding:10px;box-shadow:0 12px 32px rgba(0,0,0,.18);display:flex;flex-direction:column;gap:8px;white-space:normal}
.bt-more-box form{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0}
.bt-more-box input,.bt-more-box select{max-width:100%;min-width:0}
.bt-more-box .bt-btn{width:auto}
.bt-del{display:flex;flex-wrap:wrap;gap:6px}
@media(max-width:760px){.bt-more-box{inset-inline:12px!important;left:12px!important;top:auto!important;bottom:12px;max-width:none}}
.bt-dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px 20px;margin:0}
.bt-dl>div{border-bottom:1px dashed var(--bt-line);padding:6px 0}
.bt-dl dt{font-size:12px;opacity:.65;margin:0}
.bt-dl dd{margin:2px 0 0;font-weight:600;word-break:break-word}

/* نوار متن آماده / متن هوشمند */
.bt-ai{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 6px;padding:6px;border:1px dashed var(--bt-line);border-radius:12px;background:var(--bt-soft)}
.bt-ai .bt-ai-sel{flex:0 1 190px;min-width:0;height:32px;font-size:12px}
.bt-ai .bt-ai-p{flex:1 1 160px;min-width:0;height:32px;font-size:12px}
.bt-ai .bt-btn[hidden]{display:none}
.bt-row>div:has(>.bt-ai){grid-column:1/-1;flex:1 1 100%;width:100%}
div:has(>.bt-ai) textarea{width:100%;min-height:96px}
.bt-ai .bt-ai-sel{flex:0 1 200px}
.bt-trans{display:inline-flex!important;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 8px 8px}
.bt-trans input{width:150px;height:34px;font-size:12px}

/* پاپ‌آپ */
.bt-frm{position:fixed;inset:0;z-index:200;background:rgba(10,18,32,.55);display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px)}
.bt-frm-box{width:min(1100px,94vw);height:88vh;background:var(--bt-card);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 24px 70px rgba(0,0,0,.45)}
.bt-frm-box.full{width:100vw;height:100vh;border-radius:0}
.bt-frm-bar{display:flex;gap:8px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--bt-line);flex-wrap:wrap}.bt-frm-bar .sp{flex:1}
.bt-frm iframe{flex:1;width:100%;border:0;background:var(--bt-bg)}
.bt-embedded .bt-side,.bt-embedded .bt-top,.bt-embedded .bt-ptool{display:none!important}
.bt-embedded .bt-wrap{margin:0!important;padding:0!important;width:100%!important;max-width:none!important}
.bt-embedded .bt-main{padding:16px!important}
.bt-main>h1{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
@media(max-width:700px){.bt-frm-box{width:100vw;height:100vh;border-radius:0}}

@media print{.no-print,.bt-side,.bt-top,.bt-ai,.bt-toasts,.bt-frm,#cmdk,.bt-ptool{display:none!important}
 .pr-body,body{background:#fff!important;padding:0!important}.pr-sheet{box-shadow:none;border-radius:0;max-width:none;padding:0;min-height:0}
 .bt-wrap{margin:0!important;padding:0!important}.bt-main{padding:0!important;max-width:none!important}
 .bt-acts,.bt-table th:last-child.act,.bt-more{display:none!important}.bt-table td:has(>.bt-acts),.bt-table th.act{display:none!important}
 .bt-card{box-shadow:none!important;border:1px solid #ccc!important}a{color:inherit!important;text-decoration:none!important}}


.bt-inl{display:inline-flex;gap:4px;align-items:center;margin:0}.bt-rfilter .bt-row{align-items:end}.pr-sum td{background:var(--bt-soft);font-weight:700}.pr-first td{border-top:2px solid var(--bt-line)}.bt-ok{color:#15803d}.bt-err{color:#b91c1c;font-weight:700}
.pr-sec td{background:var(--bt-soft);font-size:1.05em}.pr-grp td{font-weight:700;border-top:1px solid var(--bt-line)}
.bt-actrow{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end}.bt-actrow form{display:flex!important;gap:6px;align-items:center;flex-wrap:wrap;padding:8px 10px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-soft)}.bt-actrow select,.bt-actrow input{min-width:0;width:auto;max-width:170px}
.bt-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-bottom:14px}.bt-tiles .bt-card{margin:0}
/* ---- صفحهٔ ورود ---- */
.lg-wrap{margin:auto;width:100%;max-width:430px;padding:20px 16px}
.lg-card{background:var(--bt-card);border:1px solid var(--bt-line);border-radius:18px;padding:26px 24px 20px;box-shadow:0 18px 50px -24px rgba(15,76,117,.45)}
.lg-head{text-align:center;margin-bottom:16px}.lg-logo{display:inline-grid;place-items:center;width:54px;height:54px;border-radius:16px;background:var(--bt-brand-soft);font-size:26px}
.lg-head h1{margin:10px 0 2px;font-size:20px}.lg-head p{margin:0;color:var(--bt-muted);font-size:12.5px}
.lg-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--bt-soft);padding:4px;border-radius:12px;margin-bottom:16px}
.lg-tab{border:0;background:transparent;color:var(--bt-muted);font:inherit;padding:9px 6px;border-radius:9px;cursor:pointer;transition:all .15s}
.lg-tab.on{background:var(--bt-card);color:var(--bt-brand);font-weight:700;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.lg-form{display:flex;flex-direction:column;gap:12px}.lg-f{display:flex;flex-direction:column;gap:5px}.lg-f span{font-size:12.5px;color:var(--bt-muted)}
.lg-f input{height:42px;border:1px solid var(--bt-line);border-radius:10px;padding:0 12px;background:var(--bt-bg);color:var(--bt-text);font:inherit;width:100%;box-sizing:border-box}
.lg-f input:focus{outline:2px solid var(--bt-brand-2);outline-offset:1px}
.lg-pw{position:relative}.lg-pw input{padding-inline-end:70px}
.lg-eye{position:absolute;inset-inline-end:6px;top:50%;transform:translateY(-50%);border:0;background:var(--bt-soft);color:var(--bt-brand);font:inherit;font-size:12px;padding:5px 10px;border-radius:7px;cursor:pointer}
.lg-cap{display:flex;align-items:center;gap:8px;justify-content:space-between}.lg-cap img{border-radius:8px;border:1px solid var(--bt-line);max-width:calc(100% - 52px);height:auto}
.lg-ico{width:42px;height:42px;border-radius:10px;border:1px solid var(--bt-line);background:var(--bt-soft);color:var(--bt-brand);font-size:20px;cursor:pointer}
.lg-code{text-align:center;font-size:22px;letter-spacing:.45em;font-weight:700}
.lg-timer{text-align:center;font-size:13px;color:var(--bt-muted)}.lg-timer b{color:var(--bt-brand);font-size:16px;direction:ltr;display:inline-block}.lg-timer.done{color:#b3261e}
.lg-hint{margin:0;font-size:12.5px;color:var(--bt-muted)}.lg-go{width:100%;height:44px;font-size:15px}
.lg-resend{margin-top:10px;text-align:center}.lg-link{border:0;background:none;color:var(--bt-brand);font:inherit;cursor:pointer;text-decoration:underline}
.lg-foot{text-align:center;font-size:11.5px;color:var(--bt-muted);margin:14px 0 0}
