.pl-print-root{background:#fff;color:#000;direction:rtl;text-align:right}.pl-page{width:120mm;height:90mm;min-height:90mm;padding:2mm;margin:0 auto 12px;background:#fff;box-sizing:border-box;page-break-after:always;break-after:page;display:flex;flex-direction:column;direction:rtl}.pl-page:last-child{page-break-after:auto;break-after:auto;margin-bottom:0}.pl-card{border:1px solid #000;border-radius:8px;padding:6px 8px;width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;font-family:Vazirmatn,Tahoma,system-ui,-apple-system,sans-serif;color:#000;background:#fff;page-break-inside:avoid}.pl-header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px}.pl-logo{display:block;width:50px;height:50px;object-fit:contain;flex-shrink:0}.pl-logo--empty{background:#f0f0f0;border:1px dashed #bbb}.pl-meta{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.pl-sender{border-bottom:2px solid #000;padding-bottom:4px;margin-bottom:4px}.pl-receiver{flex:1;min-height:0;display:flex;flex-direction:column;gap:2px}.pl-field{display:flex;gap:4px;align-items:flex-start;margin:0 0 2px;font-size:11px;line-height:1.45}.pl-field--block{flex-direction:column;gap:1px}.pl-label{font-weight:700;color:#000;white-space:nowrap;flex-shrink:0}.pl-value{font-weight:400;color:#000;overflow-wrap:anywhere;word-break:break-word}.pl-row{display:flex;justify-content:space-between;gap:8px}.pl-description{margin-top:4px}.pl-description .pl-value{min-height:28px}.postal-label-preview-frame{background:#e8e8e8;padding:16px;border-radius:8px;overflow:auto;max-height:min(70vh,720px)}@media print{@page{size:120mm 90mm;margin:0}html,body{height:initial!important;overflow:initial!important;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.pl-page{width:120mm!important;height:90mm!important;min-height:90mm!important;padding:1mm!important;margin:0!important;page-break-after:always;page-break-inside:avoid}.pl-page:last-child{page-break-after:auto}.pl-card{border:1px solid #000!important;background:#fff!important;color:#000!important}.pl-logo{display:block!important;max-width:100%!important;height:auto!important}.no-print{display:none!important}}:root{color-scheme:light;--background: #f4f5f7;--foreground: #0f1419;--card: #ffffff;--card-foreground: #0f1419;--muted: #eef0f3;--muted-foreground: #667085;--border: #e4e7ec;--input: #ffffff;--ring: rgba(15, 118, 110, .35);--primary: #0f766e;--primary-foreground: #ffffff;--primary-hover: #0d9488;--accent: #ecfdf8;--accent-foreground: #0f766e;--destructive: #b42318;--destructive-foreground: #ffffff;--destructive-soft: #fef3f2;--success: #067647;--success-soft: #ecfdf3;--warning: #b54708;--warning-soft: #fffaeb;--sidebar: #ffffff;--sidebar-border: #e4e7ec;--sidebar-muted: #667085;--sidebar-active: #ecfdf8;--sidebar-active-fg: #0f766e;--table-header: #f8f9fb;--row-hover: #f8fafc;--shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);--shadow-md: 0 8px 24px rgba(16, 24, 40, .08);--radius-sm: 6px;--radius: 8px;--radius-md: 12px;--radius-lg: 14px;--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;--font-fa: "Vazirmatn", "Inter", system-ui, -apple-system, sans-serif;--sidebar-width: 260px;--transition: .16s cubic-bezier(.2, .8, .2, 1);--bg: var(--background);--bg-elevated: var(--card);--ink: var(--foreground);--line: var(--border);--accent-soft: var(--accent);--danger: var(--destructive);--danger-soft: var(--destructive-soft);--warn: var(--warning);--warn-soft: var(--warning-soft);--ok: var(--success);--ok-soft: var(--success-soft);--shadow: var(--shadow-sm);--font-display: var(--font-sans)}html.dark,html[data-theme=dark],.dark{color-scheme:dark;--background: #0b0d10;--foreground: #e8eaed;--card: #14181d;--card-foreground: #e8eaed;--muted: #1a1f26;--muted-foreground: #9aa3af;--border: #262c35;--input: #10141a;--ring: rgba(45, 212, 191, .35);--primary: #2dd4bf;--primary-foreground: #042f2e;--primary-hover: #5eead4;--accent: #132522;--accent-foreground: #5eead4;--destructive: #f97066;--destructive-foreground: #1a0a09;--destructive-soft: #2a1514;--success: #32d583;--success-soft: #12251c;--warning: #fdb022;--warning-soft: #2a2010;--sidebar: #10141a;--sidebar-border: #1f2530;--sidebar-muted: #9aa3af;--sidebar-active: #132522;--sidebar-active-fg: #5eead4;--table-header: #12171d;--row-hover: #1a2028;--shadow-sm: 0 0 0 transparent;--shadow-md: 0 12px 32px rgba(0, 0, 0, .35)}*,*:before,*:after{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;color:var(--foreground);font-family:var(--font-sans);font-size:14px;line-height:1.5;background:var(--background);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;transition:background-color var(--transition),color var(--transition)}html[dir=rtl] body,html[lang=fa] body{font-family:var(--font-fa)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.app-shell{display:flex;min-height:100vh;max-width:none;margin:0;padding:0;background:var(--background)}.sidebar{display:flex;flex-direction:column;width:var(--sidebar-width);background:var(--sidebar);border-inline-end:1px solid var(--sidebar-border);color:var(--foreground)}.desktop-sidebar{position:sticky;top:0;height:100vh;flex-shrink:0;padding:20px 12px 16px}.sidebar-scroll{flex:1;overflow:auto;min-height:0;padding-top:4px}.sidebar-footer{flex-shrink:0;padding-top:12px;border-top:1px solid var(--sidebar-border);margin-top:12px}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:2px 8px 14px;flex-shrink:0}.sidebar-mark{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:var(--radius);background:var(--primary);color:var(--primary-foreground);font-weight:700;font-size:.9rem;flex-shrink:0}.sidebar-mark.sm{width:26px;height:26px;font-size:.78rem}.sidebar-brand-name{display:block;font-weight:600;font-size:.95rem;letter-spacing:-.02em;line-height:1.2}.sidebar-brand-sub{display:block;font-size:.75rem;color:var(--muted-foreground);margin-top:2px}.sidebar-section-label{margin:0 0 6px;padding:0 8px;font-size:.68rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-foreground)}.sidebar-nav{display:block}.sidebar-tree{display:flex;flex-direction:column;gap:2px}.sidebar-tree.depth-1{margin-top:2px;margin-inline-start:8px;padding-inline-start:8px;border-inline-start:1px solid var(--sidebar-border);gap:1px}.sidebar-tree.depth-2{margin-top:2px;margin-inline-start:6px;padding-inline-start:8px;border-inline-start:1px solid var(--sidebar-border);gap:1px}.sidebar-link{display:flex;align-items:center;gap:10px;min-height:36px;padding:7px 10px;border-radius:var(--radius);color:var(--muted-foreground);font-size:.875rem;font-weight:500;line-height:1.25;transition:background-color var(--transition),color var(--transition)}.sidebar-link.depth-0{margin-top:0}.sidebar-nav>.sidebar-tree>.sidebar-link.depth-0+.sidebar-link.depth-0,.sidebar-nav>.sidebar-tree>.sidebar-group+.sidebar-link.depth-0{margin-top:10px}.sidebar-link.depth-1,.sidebar-link.depth-2{min-height:32px;padding:5px 8px;font-size:.84rem;font-weight:500}.sidebar-link.depth-1.has-icon,.sidebar-link.depth-2.has-icon{gap:8px}.sidebar-link.depth-1:not(.has-icon),.sidebar-link.depth-2:not(.has-icon){padding-inline-start:8px}.sidebar-link svg{flex-shrink:0;opacity:.9}.sidebar-link:hover{background:var(--muted);color:var(--foreground)}.sidebar-link.is-active{background:var(--sidebar-active);color:var(--sidebar-active-fg);font-weight:600}.sidebar-link.is-active svg{opacity:1}.sidebar-group{display:flex;flex-direction:column;gap:0}.sidebar-group.depth-0{margin-top:10px}.sidebar-group.depth-0:first-child{margin-top:0}.sidebar-group-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:32px;border:0;background:transparent;color:var(--muted-foreground);padding:6px 8px;border-radius:var(--radius);font:inherit;cursor:pointer;transition:background-color var(--transition),color var(--transition)}.sidebar-group-toggle.depth-0{min-height:28px;margin-bottom:2px;padding:4px 8px;font-size:.68rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-foreground)}.sidebar-group-toggle.depth-0:hover,.sidebar-group-toggle.depth-0.is-active{color:var(--foreground);background:transparent}.sidebar-group-toggle.depth-1{min-height:32px;padding:5px 8px;font-size:.84rem;font-weight:600;letter-spacing:0;text-transform:none;color:var(--foreground)}.sidebar-group-toggle.depth-1:hover,.sidebar-group-toggle.depth-1.is-active{background:var(--muted);color:var(--foreground)}.sidebar-chevron{flex-shrink:0;opacity:.7;transition:transform var(--transition)}.sidebar-chevron.is-open{transform:rotate(180deg)}.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:.82rem;color:var(--muted-foreground);margin-bottom:4px}.breadcrumbs a{color:var(--muted-foreground);text-decoration:none}.breadcrumbs a:hover{color:var(--foreground)}.breadcrumbs-sep{opacity:.5}.app-main{flex:1;min-width:0;display:flex;flex-direction:column}.app-content{flex:1;padding:28px 32px 48px;max-width:1280px;width:100%;margin:0 auto}.mobile-header{display:none;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border);background:var(--card);position:sticky;top:0;z-index:30}.mobile-header-brand{display:flex;align-items:center;gap:8px;font-weight:600;font-size:.92rem}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--foreground);transition:background-color var(--transition),border-color var(--transition)}.icon-btn:hover{background:var(--muted)}.sidebar-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex}.sidebar-backdrop{flex:1;border:0;background:#0f141973;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:fade-in .16s ease-out}.mobile-drawer{width:min(280px,86vw);height:100%;padding:12px 12px 16px;animation:slide-in .18s cubic-bezier(.2,.8,.2,1);box-shadow:var(--shadow-md);overflow:auto}.mobile-drawer-top{display:flex;justify-content:flex-end;margin-bottom:4px}.theme-toggle-row{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:0 4px}.theme-toggle-btn{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;border:1px solid transparent;border-radius:var(--radius);background:transparent;color:var(--muted-foreground);font-size:.68rem;font-weight:600;transition:background-color var(--transition),color var(--transition),border-color var(--transition)}.theme-toggle-btn:hover{background:var(--muted);color:var(--foreground)}.theme-toggle-btn.is-active{background:var(--sidebar-active);color:var(--sidebar-active-fg);border-color:transparent}@media(max-width:900px){.desktop-sidebar{display:none}.mobile-header{display:flex}.app-content{padding:16px 16px 40px}}.page{display:grid;gap:20px}.page-enter{animation:page-enter .18s ease-out}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.page-header-text{min-width:0}.page-header-back{margin-bottom:8px}.page-title-row{display:flex;align-items:center;gap:8px;min-width:0}.page-title-row .page-title{min-width:0}.page-title-help .help-tip-btn{width:22px;height:22px;color:var(--muted-foreground)}.page-title-help .help-tip-btn:hover,.page-title-help.is-open .help-tip-btn{color:var(--primary)}.page-title-help .help-tip-bubble{max-width:min(320px,80vw);inset-inline-start:0;inset-inline-end:auto;left:auto;transform:none;text-align:start}html[dir=rtl] .page-title-help .help-tip-bubble{inset-inline-start:auto;inset-inline-end:0}.page-title,h1.page-title,h2{font-family:var(--font-sans);font-size:1.5rem;font-weight:600;letter-spacing:-.03em;margin:0;color:var(--foreground);line-height:1.25}h3{font-family:var(--font-sans);font-size:1rem;font-weight:600;letter-spacing:-.01em;margin:0 0 10px;color:var(--foreground)}.page-description,.muted{color:var(--muted-foreground)}.page-description{margin:6px 0 0;font-size:.9rem}.page-header-actions,.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.stack,.grid-2{display:grid;gap:16px}@media(min-width:900px){.grid-2{grid-template-columns:1.1fr .9fr}}.section-label{font-size:.7rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-foreground);margin:0 0 10px}.panel{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);color:var(--card-foreground)}.panel-pad{padding:18px 20px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border:1px solid var(--border);background:var(--card);color:var(--foreground);border-radius:var(--radius);padding:8px 14px;font-weight:500;font-size:.875rem;transition:background-color var(--transition),border-color var(--transition),color var(--transition),box-shadow var(--transition)}.btn:hover:not(:disabled){background:var(--muted)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--primary);border-color:var(--primary);color:var(--primary-foreground)}.btn-primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}.btn-ghost{background:transparent;border-color:transparent;color:var(--muted-foreground)}.btn-ghost:hover:not(:disabled){background:var(--muted);color:var(--foreground)}.btn-danger{background:var(--destructive-soft);border-color:transparent;color:var(--destructive)}.field,.filter-field{display:grid;gap:6px}.settings-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.check-line{display:flex;align-items:center;gap:8px;font-size:.92rem}.check-line label{display:inline-flex;align-items:center;gap:8px}.check-line input{width:16px;height:16px;min-height:0;padding:0}.field-label{display:inline-flex;align-items:center;gap:6px}.help-tip{position:relative;display:inline-flex}.help-tip-btn{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--muted-foreground)}.help-tip-btn:hover,.help-tip.is-open .help-tip-btn{color:var(--foreground)}.help-tip-bubble{position:absolute;z-index:30;top:calc(100% + 8px);left:50%;width:max-content;max-width:240px;padding:8px 10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--foreground);box-shadow:var(--shadow-md);font-size:.78rem;font-weight:500;line-height:1.45;text-align:start;white-space:normal;opacity:0;visibility:hidden;transform:translate(-50%);pointer-events:none}.help-tip:hover .help-tip-bubble,.help-tip:focus-within .help-tip-bubble,.help-tip.is-open .help-tip-bubble{opacity:1;visibility:visible}.repeat-picker{position:relative}.repeat-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:40px;border:1px solid var(--border);border-radius:var(--radius);padding:8px 12px;background:var(--input);color:var(--foreground);text-align:start}.repeat-picker-trigger:focus-visible{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--ring)}.repeat-picker-panel{position:absolute;z-index:30;top:calc(100% + 6px);left:0;width:min(320px,80vw);display:grid;gap:12px;padding:12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);box-shadow:var(--shadow-md)}.repeat-picker-label{margin-bottom:6px;font-size:.72rem;font-weight:600;color:var(--muted-foreground)}.repeat-picker-options{display:flex;flex-wrap:wrap;gap:6px}.repeat-picker-options button{border:1px solid var(--border);border-radius:999px;padding:6px 10px;background:var(--muted);color:var(--foreground);font-size:.8rem}.repeat-picker-options button.is-selected{border-color:transparent;background:var(--primary);color:var(--primary-foreground)}.field label,.filter-field span,.field>span{font-size:.78rem;font-weight:600;color:var(--muted-foreground)}.field input,.field select,.field textarea,.filter-field select,.filter-field input,.search-bar input,.jalali-picker-trigger{min-height:40px;border:1px solid var(--border);border-radius:var(--radius);padding:8px 12px;background:var(--input);color:var(--foreground);transition:border-color var(--transition),box-shadow var(--transition),background-color var(--transition)}.field input:focus,.field select:focus,.filter-field select:focus,.filter-field input:focus,.search-bar input:focus,.jalali-picker-trigger:focus-visible{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--ring)}.field-row{display:grid;gap:12px}@media(min-width:700px){.field-row{grid-template-columns:repeat(2,minmax(0,1fr))}}.search-bar{display:flex;gap:8px;margin-bottom:0;align-items:stretch}.search-bar input{flex:1;min-width:0}.search-input-wrap{position:relative;flex:1;min-width:0}.search-input-wrap .search-input-icon{position:absolute;inset-inline-start:12px;top:50%;transform:translateY(-50%);color:var(--muted-foreground);pointer-events:none}.search-input-wrap input{width:100%;padding-inline-start:38px}.catalog-search-follow{padding-top:12px;border-top:1px solid var(--border)}.filter-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding-top:4px;border-top:1px solid var(--border)}.filter-field{min-width:160px;flex:1 1 160px;max-width:240px}.filter-field select{width:100%}@media(max-width:640px){.search-bar{flex-direction:column}.filter-field{max-width:none;flex:1 1 100%}}.row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.row-actions-menu-wrap{position:relative;justify-content:flex-end}.row-action-menu{position:absolute;inset-inline-end:0;top:calc(100% + 4px);z-index:6;display:flex;flex-direction:column;gap:2px;min-width:11rem;padding:6px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card);box-shadow:var(--shadow-md)}.row-action-menu-item{display:inline-flex;align-items:center;gap:.5rem;width:100%;margin:0;padding:.45rem .6rem;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--foreground);font:inherit;font-size:.85rem;text-align:start;text-decoration:none;cursor:pointer}.row-action-menu-item:hover,.row-action-menu-item:focus-visible{background:var(--row-hover);outline:none}.row-action-menu-item:disabled{opacity:.5;cursor:not-allowed}.monitor-toggle{display:inline-flex;align-items:center;gap:8px;font-size:.82rem;color:var(--muted-foreground);cursor:pointer;-webkit-user-select:none;user-select:none}.monitor-toggle input{width:36px;height:20px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:999px;border:1px solid var(--border);background:var(--muted);position:relative;cursor:pointer;transition:background-color var(--transition),border-color var(--transition)}.monitor-toggle input:after{content:"";position:absolute;top:2px;inset-inline-start:2px;width:14px;height:14px;border-radius:50%;background:var(--card);box-shadow:var(--shadow-sm);transition:inset-inline-start var(--transition)}.monitor-toggle input:checked{background:var(--primary);border-color:var(--primary)}.monitor-toggle input:checked:after{inset-inline-start:18px}.monitor-toggle input:disabled{opacity:.55;cursor:not-allowed}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.switch-row:last-child{border-bottom:0}.strategy-fieldset{border:1px solid var(--border);border-radius:var(--radius-md);padding:12px 14px;margin:0;display:grid;gap:8px}.strategy-fieldset legend{padding:0 6px;font-weight:600}.strategy-option{display:flex;align-items:center;gap:10px}.table-wrap{overflow:auto;max-height:min(70vh,760px);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card)}table.data{width:100%;border-collapse:collapse}table.data th,table.data td{text-align:start;padding:12px 14px;border-bottom:1px solid var(--border);vertical-align:top}table.data th{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted-foreground);background:var(--table-header);position:sticky;top:0;z-index:1;white-space:nowrap}button.th-sort{display:inline-flex;align-items:center;gap:.35rem;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}button.th-sort:hover,button.th-sort:focus-visible{color:var(--foreground)}button.th-sort:focus-visible{outline:2px solid var(--ring, var(--accent));outline-offset:2px;border-radius:4px}.th-sort-indicator{display:inline-flex;opacity:.45;flex-shrink:0}button.th-sort[data-active=true] .th-sort-indicator{opacity:1;color:var(--foreground)}.stock-cell{display:inline-flex;align-items:center;gap:.45rem}.stock-dot{width:.5rem;height:.5rem;border-radius:999px;flex-shrink:0;box-shadow:0 0 0 1px color-mix(in srgb,currentColor 12%,transparent)}.stock-dot-empty{background:var(--destructive);color:var(--destructive)}.stock-dot-low{background:#eab308;color:#eab308}.stock-dot-medium{background:#2563eb;color:#2563eb}.stock-dot-high{background:var(--success);color:var(--success)}table.data tbody tr{transition:background-color var(--transition)}table.data tbody tr:hover{background:var(--row-hover)}table.data tbody tr:last-child td{border-bottom:0}table.data td{font-size:.875rem;font-variant-numeric:tabular-nums}table.data tbody tr.row-dirty{background:color-mix(in srgb,var(--accent) 8%,transparent)}.table-input{width:7.5rem;max-width:100%;padding:6px 8px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card);color:inherit;font:inherit;font-variant-numeric:tabular-nums}.table-input-qty{width:5rem}.table-input:focus{outline:2px solid color-mix(in srgb,var(--accent) 45%,transparent);border-color:var(--accent)}.table-input:disabled{opacity:.65;cursor:not-allowed}.table-check{margin:0;white-space:nowrap}.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px}.detail-grid{display:grid;gap:14px 20px;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.status-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}.status-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);color:inherit;font:inherit;cursor:pointer;white-space:nowrap}.status-tab:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent) 40%,var(--border))}.status-tab.is-active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--card));color:var(--accent);font-weight:600}.status-tab:disabled{opacity:.6;cursor:not-allowed}.status-tab-count{font-variant-numeric:tabular-nums;opacity:.85}.bulk-toolbar{gap:12px}.bulk-toolbar-row{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.col-check{width:36px;vertical-align:middle!important}.progress-track{height:8px;border-radius:999px;background:var(--muted);overflow:hidden}.progress-fill{height:100%;border-radius:inherit;background:var(--accent);transition:width .16s ease}.data-sticky thead th{background:var(--table-header)}.truncate{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-primary{font-weight:500;color:var(--foreground)}.cell-secondary{margin-top:2px;font-size:.78rem;color:var(--muted-foreground)}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 9px;font-size:.72rem;font-weight:600;border:1px solid transparent;letter-spacing:.01em}.badge-ok{background:var(--success-soft);color:var(--success)}.badge-danger{background:var(--destructive-soft);color:var(--destructive)}.badge-warn{background:var(--warning-soft);color:var(--warning)}.badge-muted{background:var(--muted);color:var(--muted-foreground)}.badge-accent{background:var(--accent);color:var(--accent-foreground)}.meta-grid,.stat-row,.kpi-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.kpi-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.kpi-card{border:1px solid var(--border);border-radius:var(--radius-md);padding:16px 18px;background:var(--card);display:grid;gap:8px;transition:border-color var(--transition)}.kpi-card-primary{border-color:color-mix(in srgb,var(--primary) 28%,var(--border));background:color-mix(in srgb,var(--accent) 70%,var(--card))}.kpi-label{font-size:.7rem;font-weight:600;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.05em}.kpi-value{font-size:clamp(1.25rem,2vw,1.65rem);font-weight:600;letter-spacing:-.03em;font-variant-numeric:tabular-nums;line-height:1.15;color:var(--foreground)}.kpi-value-negative{color:var(--destructive)}.kpi-sub{font-size:.8rem;color:var(--muted-foreground)}.money{font-variant-numeric:tabular-nums;font-weight:600}.waterfall{display:grid;gap:0;max-width:480px}.waterfall-row{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px dashed var(--border);font-variant-numeric:tabular-nums}.waterfall-row strong{font-weight:600}.waterfall-total{border-bottom:0;border-top:1px solid var(--border);margin-top:4px;padding-top:12px}.waterfall-indent{padding-inline-start:12px;color:var(--muted-foreground)}.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:4px}.warning-box{background:var(--warning-soft);border:1px solid color-mix(in srgb,var(--warning) 30%,var(--border));color:var(--warning);border-radius:var(--radius-md);padding:12px 14px}.error-text{color:var(--destructive);margin:0}.state-box{padding:36px 18px;text-align:center;color:var(--muted-foreground);border:1px dashed var(--border);border-radius:var(--radius-md);background:var(--card)}.preview-card{display:grid;gap:10px}.listing-grid{display:grid;gap:12px}@media(min-width:900px){.listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.listing-card{display:grid;gap:12px;padding:14px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card)}.listing-card-primary{border-color:color-mix(in srgb,var(--accent) 55%,var(--border))}.listing-card-preview{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ok, #2f9e44) 45%,transparent)}.listing-card-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.listing-badges{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.mono-id{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.85em;word-break:break-all}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;display:grid;place-items:center;padding:16px;background:color-mix(in srgb,#000 45%,transparent)}.modal-panel{width:min(440px,100%);max-height:min(90vh,720px);overflow:auto;padding:18px;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--card);color:var(--foreground);box-shadow:0 18px 48px color-mix(in srgb,#000 28%,transparent)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border-radius:var(--radius-sm);border:1px solid transparent;background:transparent;color:var(--muted-foreground);cursor:pointer;transition:color .14s ease,background .14s ease,border-color .14s ease}.icon-btn:hover{background:color-mix(in srgb,var(--foreground) 6%,transparent);color:var(--foreground)}.icon-btn-pinned,.icon-btn-pinned:hover{color:var(--accent)}.warning-inline{margin-top:4px;font-size:.85em;color:color-mix(in srgb,var(--warn, #d97706) 90%,var(--foreground))}.inline-pin{display:inline-block;vertical-align:-2px;margin-inline-end:6px;color:var(--accent)}.text-danger{color:color-mix(in srgb,var(--danger, #dc2626) 85%,var(--foreground));font-weight:600}.chart-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.daily-sales-chart{display:block;min-width:100%}.chart-bar{fill:color-mix(in srgb,var(--accent) 75%,var(--foreground))}.chart-bar-zero{fill:color-mix(in srgb,var(--muted-foreground) 35%,transparent)}.chart-axis-label{fill:var(--muted-foreground);font-size:9px}.chart-forecast-line{stroke:var(--accent);stroke-width:2}.chart-split-line{stroke:var(--border);stroke-width:1;stroke-dasharray:2 2}.trend-cell{display:inline-flex;align-items:center;gap:4px}@media(max-width:900px){.hide-sm{display:none}}.preview-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed var(--border)}.product-hero{display:grid;gap:16px}@media(min-width:800px){.product-hero{grid-template-columns:140px 1fr;align-items:start}}.product-hero img,.product-image-fallback{width:140px;height:140px;object-fit:cover;border-radius:var(--radius-md);background:var(--muted)}.dk-product-thumb{width:48px;height:48px;object-fit:cover;border-radius:var(--radius-sm);background:var(--muted);display:block}.clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.preset-chips{display:flex;flex-wrap:wrap;gap:6px}.preset-chip{border:1px solid var(--border);background:var(--card);border-radius:999px;padding:6px 12px;font-size:.8rem;font-weight:500;color:var(--muted-foreground);transition:background-color var(--transition),color var(--transition),border-color var(--transition)}.preset-chip:hover{background:var(--muted);color:var(--foreground)}.preset-chip-active{background:var(--accent);border-color:transparent;color:var(--accent-foreground)}.nav-group{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.toast{position:fixed;right:18px;bottom:18px;z-index:60;min-width:240px;max-width:min(420px,calc(100vw - 36px));padding:12px 14px;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--card);color:var(--foreground);box-shadow:var(--shadow-md);animation:toast-in .18s ease-out;font-size:.875rem}.toast-ok{border-color:color-mix(in srgb,var(--success) 35%,var(--border))}.toast-error{border-color:color-mix(in srgb,var(--destructive) 35%,var(--border))}.skeleton{background:linear-gradient(90deg,var(--muted) 0%,color-mix(in srgb,var(--muted) 40%,var(--card)) 50%,var(--muted) 100%);background-size:200% 100%;animation:skeleton-shine 1.2s linear infinite;border-radius:var(--radius)}.skeleton-row{height:44px}.skeleton-hero{height:140px}.skeleton-panel{height:280px}.jalali-picker{position:relative;min-width:160px}.jalali-picker-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--foreground);font-variant-numeric:tabular-nums;text-align:start;cursor:pointer}.jalali-picker-trigger:disabled{opacity:.55;cursor:not-allowed}.jalali-picker-icon{color:var(--muted-foreground);font-size:.75rem}.jalali-picker-popover{position:absolute;z-index:40;top:calc(100% + 6px);inset-inline-start:0;width:min(288px,calc(100vw - 40px));padding:12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);box-shadow:var(--shadow-md);animation:pop-in .15s ease-out}.jalali-picker-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.jalali-picker-title{font-weight:600;font-variant-numeric:tabular-nums}.jalali-picker-nav{padding:4px 10px;min-width:36px;min-height:32px}.jalali-picker-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:4px;text-align:center;font-size:.72rem;font-weight:600;color:var(--muted-foreground)}.jalali-picker-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.jalali-picker-empty{aspect-ratio:1}.jalali-picker-day{aspect-ratio:1;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--foreground);font-variant-numeric:tabular-nums;font-weight:500;transition:background-color var(--transition),color var(--transition)}.jalali-picker-day:hover{background:var(--muted)}.jalali-picker-day.is-today{box-shadow:inset 0 0 0 1px var(--primary)}.jalali-picker-day.is-selected{background:var(--primary);color:var(--primary-foreground)}.jalali-picker-footer{display:flex;justify-content:flex-end;margin-top:8px}*{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--muted-foreground) 35%,transparent) transparent}@keyframes page-enter{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes slide-in{0%{transform:translate(-12px);opacity:.6}to{transform:translate(0);opacity:1}}@keyframes pop-in{0%{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes skeleton-shine{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.page-enter{animation:none}}.linkish{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:transparent;padding:0;margin:0;color:var(--primary);font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.linkish:hover{color:var(--primary-hover)}.settlement-ltr{direction:ltr;unicode-bidi:isolate;text-align:left}.settlement-destination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem}.settlement-import-review{gap:1rem}.settlement-product-table{min-width:52rem}.settlement-product-table tfoot td{font-weight:600;background:var(--table-header)}.settlement-identity{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;font-size:.875rem}.settlement-summary-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr));gap:.75rem}.settlement-summary-grid>div{display:flex;flex-direction:column;gap:.25rem;padding:.75rem .85rem;border:1px solid var(--border);border-radius:var(--radius);background:color-mix(in srgb,var(--muted) 55%,transparent)}.settlement-summary-grid strong{font-variant-numeric:tabular-nums;font-size:.95rem}.settlement-recon-diagnostics .settlement-recon-row{cursor:pointer}.settlement-recon-diagnostics .settlement-recon-detail td{background:color-mix(in srgb,var(--muted) 40%,transparent)}.recon-status-pass{color:color-mix(in srgb,#1b7f4e 85%,var(--text));font-weight:600}.recon-status-fail{color:color-mix(in srgb,#b42318 85%,var(--text));font-weight:600}.recon-status-warn{color:color-mix(in srgb,#b54708 85%,var(--text));font-weight:600}.settlement-detail-header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:.75rem}.settlement-row-actions{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.settlement-row-actions .btn-sm{padding:.25rem .55rem;font-size:.85rem}.settlement-progress-list{margin:0;padding-inline-start:1.1rem;display:grid;gap:.35rem;font-size:.875rem}.settlement-workspace{gap:1rem}.settlement-doc-tabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));gap:.75rem}.settlement-doc-tab{display:flex;flex-direction:column;align-items:flex-start;gap:.3rem;text-align:start;padding:.85rem 1rem;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);cursor:pointer;transition:border-color var(--transition),box-shadow var(--transition),background-color var(--transition)}.settlement-doc-tab:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--border));background:var(--row-hover)}.settlement-doc-tab.is-active{border-color:var(--primary);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 40%,transparent);background:var(--accent)}.settlement-doc-tab strong{font-size:.95rem}.settlement-doc-detail{gap:.85rem;padding:1rem;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card)}.settlement-invoice-header{display:flex;flex-direction:column;gap:.85rem}.settlement-meta-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(11rem,1fr));gap:.65rem 1rem;margin:0}.settlement-meta-grid dt{font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted-foreground)}.settlement-meta-grid dd{margin:.15rem 0 0;font-size:.875rem}.settlement-totals-row{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;padding:.65rem .85rem;border-radius:var(--radius);background:var(--muted);font-variant-numeric:tabular-nums;font-size:.875rem}.settlement-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem}.settlement-toolbar input[type=search]{min-width:min(100%,18rem);flex:1 1 14rem}.settlement-lines-wrap{max-height:min(62vh,720px)}table.settlement-lines{min-width:68rem;table-layout:fixed}table.settlement-lines th,table.settlement-lines td{padding:10px 12px;vertical-align:top}table.settlement-lines th{white-space:normal;line-height:1.25;letter-spacing:.03em;border-bottom:1px solid var(--border)}table.settlement-lines .col-row{width:3.25rem}table.settlement-lines .col-product{width:18rem}table.settlement-lines .col-dkpc,table.settlement-lines .col-code{width:7.5rem}table.settlement-lines .col-num,table.settlement-lines .col-unit{width:4.25rem}table.settlement-lines .col-money{width:7.75rem;text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}table.settlement-lines .col-source{width:7rem}table.settlement-lines th.col-money,table.settlement-lines td.col-money{text-align:end}table.settlement-lines .settlement-line-row:hover{background:var(--row-hover)}.settlement-product{display:flex;align-items:flex-start;gap:.4rem}.settlement-product-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.35;word-break:break-word}.settlement-product.is-expanded .settlement-product-text{display:block;-webkit-line-clamp:unset;overflow:visible}.settlement-row-detail td{background:color-mix(in srgb,var(--muted) 70%,transparent)}.settlement-row-detail-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:.75rem 1rem;font-size:.8125rem}.settlement-pager{justify-content:center}.settlement-credit-note{font-size:.8125rem;line-height:1.45}@media(max-width:720px){.settlement-doc-tabs{grid-template-columns:1fr}table.settlement-lines{min-width:56rem}table.settlement-lines .col-product{width:14rem}}.ltr-code{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;font-size:.8125rem;white-space:nowrap}.hesabfa-relation-note{font-size:.8125rem;line-height:1.45;margin:0}.hesabfa-catalog-toolbar{align-items:end;border-top:0;padding-top:0}.filter-field-grow{flex:2 1 220px;max-width:none;min-width:200px}.catalog-search-input{width:100%;min-width:0}.filter-field .table-input,.hesabfa-catalog-toolbar .table-input{width:100%;min-height:40px}.catalog-stat-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--border);text-align:start;cursor:pointer;font:inherit;color:inherit;transition:border-color var(--transition),box-shadow var(--transition)}.catalog-stat-btn:hover,.catalog-stat-btn.is-active{border-color:var(--accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 35%,transparent)}.kpi-value-sm{font-size:.95rem;font-weight:600}.catalog-table-wrap{max-height:min(70vh,52rem);overflow:auto;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card)}table.hesabfa-products-table{min-width:64rem}table.hesabfa-products-table .col-thumb{width:3rem;padding-inline-end:0}table.hesabfa-products-table .col-name{width:22%;min-width:12rem}table.hesabfa-products-table .col-code{width:8.5rem}table.hesabfa-products-table .col-type{width:5rem}table.hesabfa-products-table .col-status{width:9.5rem}table.hesabfa-products-table .col-internal{width:14%;min-width:9rem}table.hesabfa-products-table .col-actions{width:9rem}.catalog-name{overflow-wrap:anywhere;word-break:break-word;line-height:1.35;font-weight:500}.catalog-name-sm{overflow-wrap:anywhere;font-size:.8125rem}.catalog-internal-link{text-decoration:none;color:inherit}.catalog-internal-link:hover{color:var(--accent)}.badge-stack{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.product-placeholder{width:2rem;height:2rem;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--muted-foreground) 12%,var(--card));color:var(--muted-foreground);display:inline-flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;flex-shrink:0}.product-placeholder-lg{width:4rem;height:4rem;font-size:1.25rem}.btn-compact{padding:4px 8px;font-size:.75rem;min-height:0}table.hesabfa-mappings-table{min-width:52rem}.mapping-drawer .mapping-steps{font-size:.8125rem}.mapping-suggest-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:16rem;overflow:auto}.mapping-suggest-item{display:flex;align-items:center;gap:10px;width:100%;text-align:start;justify-content:flex-start;border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 10px}.mapping-suggest-item.is-selected{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent)}.mapping-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media(max-width:640px){.mapping-review-grid{grid-template-columns:1fr}table.hesabfa-products-table,table.hesabfa-mappings-table,table.hesabfa-contacts-table,table.hesabfa-warehouses-table,table.hesabfa-inventory-table{min-width:48rem}}table.hesabfa-contacts-table{min-width:56rem}table.hesabfa-contacts-table .col-name{width:22%;min-width:11rem}table.hesabfa-contacts-table .col-code{width:7.5rem}table.hesabfa-contacts-table .col-company{width:18%;min-width:9rem}table.hesabfa-contacts-table .col-type{width:5.5rem}table.hesabfa-contacts-table .col-roles{width:8rem}table.hesabfa-contacts-table .col-status{width:6rem}table.hesabfa-contacts-table .col-actions{width:5.5rem}table.hesabfa-warehouses-table{min-width:40rem}table.hesabfa-warehouses-table .col-name{width:32%;min-width:10rem}table.hesabfa-warehouses-table .col-code,table.hesabfa-warehouses-table .col-status,table.hesabfa-warehouses-table .col-verify{width:9rem}table.hesabfa-warehouses-table .col-actions{width:7rem}.warehouse-row-actions{position:relative}.warehouse-action-menu{position:absolute;inset-inline-end:0;top:calc(100% + 4px);z-index:5;display:flex;flex-direction:column;gap:2px;min-width:9rem;padding:6px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card);box-shadow:0 8px 24px color-mix(in srgb,#000 35%,transparent)}.hesabfa-inventory-toolbar{display:flex;flex-direction:column;gap:10px}.hesabfa-inventory-toolbar-row{display:flex;flex-wrap:wrap;align-items:end;gap:12px 16px}.hesabfa-inventory-toolbar-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-inline-start:auto}.warehouse-combobox{flex:1 1 240px;max-width:28rem;min-width:200px}.warehouse-combobox-control{position:relative}.warehouse-combobox-trigger{width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;text-align:start;cursor:pointer}.warehouse-combobox-value{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;min-width:0}.warehouse-combobox-menu{position:absolute;inset-inline:0;top:calc(100% + 4px);z-index:20;display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);box-shadow:0 12px 32px color-mix(in srgb,#000 28%,transparent)}.warehouse-combobox-list{list-style:none;margin:0;padding:0;max-height:14rem;overflow:auto;display:flex;flex-direction:column;gap:2px}.warehouse-combobox-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:0;border-radius:var(--radius-sm);background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer}.warehouse-combobox-option:hover,.warehouse-combobox-option.is-active{background:color-mix(in srgb,var(--accent) 10%,transparent)}.warehouse-combobox-empty{padding:8px 10px}.hesabfa-inventory-stats .kpi-value{font-variant-numeric:tabular-nums}table.hesabfa-inventory-table{min-width:68rem}table.hesabfa-inventory-table .col-name{width:24%;min-width:14rem}table.hesabfa-inventory-table .col-code{width:8.5rem}table.hesabfa-inventory-table .col-qty{width:10rem;text-align:end}table.hesabfa-inventory-table .col-unit{width:5.5rem}table.hesabfa-inventory-table .col-internal{width:14%;min-width:9rem}table.hesabfa-inventory-table .col-status{width:9.5rem}table.hesabfa-inventory-table .col-actions{width:7.5rem}.inventory-qty-cell{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.inventory-qty-value{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.inventory-qty-badge{display:inline-flex;align-items:center;gap:6px}.inventory-qty-icon{display:inline-flex;align-items:center;justify-content:center;width:1.1rem;height:1.1rem;border-radius:999px;font-size:.7rem;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}.inventory-qty-icon.is-ok{background:color-mix(in srgb,var(--success, #16a34a) 18%,transparent);color:var(--success, #16a34a)}.inventory-qty-icon.is-muted{background:color-mix(in srgb,var(--muted-foreground) 16%,transparent);color:var(--muted-foreground)}.inventory-qty-icon.is-danger{background:color-mix(in srgb,var(--destructive) 18%,transparent);color:var(--destructive)}.inventory-qty-icon.is-warn{background:color-mix(in srgb,var(--warning) 18%,transparent);color:var(--warning)}.hesabfa-inventory-page .skeleton-panel{height:88px}@media(max-width:640px){.hesabfa-inventory-toolbar-actions{margin-inline-start:0;width:100%}table.hesabfa-inventory-table{min-width:52rem}}.order-history-sync-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.order-history-sync-banner{margin-bottom:1rem;padding:.7rem .9rem;border-radius:var(--radius-md);border:1px solid color-mix(in srgb,var(--primary) 28%,var(--border));background:color-mix(in srgb,var(--accent) 55%,var(--card));color:var(--foreground);font-size:.9rem}.order-history-sync-stats{display:grid;gap:.85rem 1.25rem;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.order-history-sync-stats .kpi-label{margin-bottom:.2rem}.order-history-filters{display:flex;flex-wrap:wrap;gap:.85rem 1rem;align-items:flex-end}.order-history-filter-field{display:grid;gap:.35rem;min-width:10rem}.order-history-filter-field.grow{flex:1 1 16rem}.order-history-filter-field>span{font-size:.75rem;font-weight:600;color:var(--muted-foreground)}.order-history-search{display:flex;align-items:center;gap:.5rem;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--background);padding:0 .75rem}.order-history-search input{border:0;background:transparent;width:100%;min-height:2.4rem;color:var(--foreground)}.order-history-search input:focus{outline:none}.order-history-filter-actions{display:flex;gap:.5rem;align-items:center}.order-history-list-meta{display:flex;justify-content:space-between;align-items:center;margin:.9rem 0 .55rem}.order-history-table-wrap{border:1px solid var(--border);border-radius:var(--radius-md);overflow:auto;background:var(--card)}.order-history-table{margin:0;width:100%;border-collapse:separate;border-spacing:0;min-width:44rem}.order-history-table thead th{position:sticky;top:0;z-index:1;background:color-mix(in srgb,var(--muted) 55%,var(--card));color:var(--muted-foreground);font-size:.72rem;font-weight:650;letter-spacing:.04em;text-transform:uppercase;padding:.75rem 1rem;border-bottom:1px solid var(--border);white-space:nowrap}.order-history-table tbody td{padding:.9rem 1rem;border-bottom:1px solid color-mix(in srgb,var(--border) 80%,transparent);vertical-align:middle;font-size:.925rem}.order-history-table tbody tr:last-child td{border-bottom:0}.order-history-table tbody tr:nth-child(2n) td{background:color-mix(in srgb,var(--muted) 28%,transparent)}.order-history-row{cursor:pointer;transition:background-color var(--transition),box-shadow var(--transition)}.order-history-row:hover td,.order-history-row:focus-visible td{background:color-mix(in srgb,var(--accent) 55%,var(--card))}.order-history-row:focus-visible{outline:none}.order-history-row:focus-visible td:first-child{box-shadow:inset 3px 0 0 var(--primary)}.oh-col-order{width:28%}.oh-col-date{width:22%;color:var(--muted-foreground);white-space:nowrap}.oh-col-num{width:12%;text-align:end;font-variant-numeric:tabular-nums}.oh-col-money{width:20%;text-align:end;white-space:nowrap;font-weight:600}.oh-col-action{width:6%;text-align:end;color:var(--muted-foreground)}.oh-order-id{display:inline-block;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.9rem;font-weight:600;letter-spacing:.01em;color:var(--foreground)}.oh-chip{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-width:2.6rem;padding:.2rem .55rem;border-radius:999px;background:color-mix(in srgb,var(--muted) 70%,transparent);color:var(--foreground);font-variant-numeric:tabular-nums;font-size:.85rem}.oh-row-hint{display:none;font-size:.8rem;margin-inline-end:.25rem}.oh-row-chevron{opacity:.45;transition:opacity var(--transition),transform var(--transition)}.order-history-row:hover .oh-row-chevron,.order-history-row:focus-visible .oh-row-chevron{opacity:1;transform:translate(2px)}[dir=rtl] .order-history-row:hover .oh-row-chevron,[dir=rtl] .order-history-row:focus-visible .oh-row-chevron{transform:translate(-2px) scaleX(-1)}[dir=rtl] .oh-row-chevron{transform:scaleX(-1)}.order-history-row:hover .oh-row-hint,.order-history-row:focus-visible .oh-row-hint{display:inline}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.order-history-pager{margin-top:.85rem}@media(max-width:720px){.oh-row-hint{display:none!important}}.order-history-detail-modal{width:min(880px,calc(100vw - 2rem));max-height:calc(100vh - 3rem);overflow:auto}.order-history-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.1rem;padding-bottom:.9rem;border-bottom:1px solid var(--border)}.order-history-detail-number{margin:.2rem 0 0;font-size:1.35rem;letter-spacing:-.02em}.order-history-detail-summary{display:flex;flex-wrap:wrap;gap:.35rem .55rem;margin-top:.45rem;color:var(--muted-foreground);font-size:.9rem}.order-history-item-list{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}.order-history-item-card{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:.9rem;align-items:center;padding:.85rem;border:1px solid var(--border);border-radius:var(--radius-md);background:color-mix(in srgb,var(--background) 55%,var(--card))}.order-history-item-media img,.order-history-item-placeholder{width:64px;height:64px;border-radius:8px;object-fit:cover;background:var(--muted)}.order-history-item-title{font-weight:600;line-height:1.35}.order-history-item-meta{display:flex;flex-wrap:wrap;gap:.35rem .75rem;margin-top:.3rem;color:var(--muted-foreground);font-size:.85rem}.order-history-item-figures{display:grid;grid-auto-flow:column;gap:1rem;text-align:end}.data-table.compact td,.data-table.compact th{padding-block:.45rem}.tabular{font-variant-numeric:tabular-nums}@media(max-width:720px){.order-history-sync-head{flex-direction:column}.order-history-filter-actions{width:100%}.order-history-item-card{grid-template-columns:56px minmax(0,1fr)}.order-history-item-figures{grid-column:1 / -1;grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));text-align:start;padding-top:.35rem;border-top:1px solid var(--border)}}.digikala-connection-strip{display:grid;gap:.75rem 1.25rem;grid-template-columns:minmax(0,1.2fr) minmax(0,1.5fr) auto;align-items:center}.digikala-connection-meta{font-size:.85rem}.digikala-overview-grid{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}.digikala-seller-name{font-size:clamp(1.35rem,2.2vw,1.85rem);font-weight:650;letter-spacing:-.02em;margin:.35rem 0 .5rem;line-height:1.25}.digikala-wallet-card{border-color:color-mix(in srgb,var(--primary) 28%,var(--border));background:color-mix(in srgb,var(--accent) 55%,var(--card))}.digikala-wallet-value{font-size:clamp(1.5rem,2.6vw,2.1rem);font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums;margin:.35rem 0 .45rem;line-height:1.15}.digikala-section-head{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between}@media(max-width:860px){.digikala-connection-strip,.digikala-overview-grid{grid-template-columns:1fr}}.auth-screen{display:grid;place-items:center;min-height:100vh;padding:24px 16px;background:var(--background)}.auth-card{width:100%;max-width:400px}.auth-card h1{margin:0;font-size:1.15rem}.auth-card p{margin:0}.auth-card .btn-primary{width:100%}.auth-card-brand{display:flex;align-items:center;gap:12px;margin-bottom:4px}.sidebar-user{display:grid;gap:8px}.sidebar-user-info{display:grid;gap:2px;padding:0 8px;min-width:0}.sidebar-user-name{font-weight:600;font-size:.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user-meta{font-size:.75rem;color:var(--muted-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user-actions{display:grid;gap:2px}.sidebar-user-actions .btn{justify-content:flex-start;min-height:34px;padding:6px 8px;font-size:.8rem}.forbidden-state{display:grid;justify-items:center;gap:8px}.forbidden-state h2{margin:0;font-size:1.05rem;color:var(--foreground)}.forbidden-state p{margin:0}.iam-self{margin-inline-start:8px}.iam-row-actions{flex-wrap:nowrap;gap:2px}.iam-row-actions .btn{min-height:32px;padding:4px 8px}.iam-danger{color:var(--destructive)}.iam-role-picker{display:grid;gap:6px;margin:0;padding:0;border:0}.iam-role-picker:disabled{opacity:.7}.iam-role-option{align-items:flex-start}.iam-roles-layout{display:grid;gap:16px}@media(min-width:900px){.iam-roles-layout{grid-template-columns:260px minmax(0,1fr);align-items:start}}.iam-role-list{display:grid;padding:6px;gap:2px}.iam-role-item{display:grid;gap:2px;text-align:start;padding:10px 12px;border:0;border-radius:var(--radius);background:transparent;color:var(--foreground)}.iam-role-item:hover{background:var(--muted)}.iam-role-item.is-active{background:var(--primary);color:var(--primary-foreground)}.iam-role-item.is-active .muted{color:inherit;opacity:.85}.iam-role-item-name{display:inline-flex;align-items:center;gap:6px;font-weight:600}.iam-role-item-meta{font-size:.75rem}.iam-permission-matrix{display:grid;gap:12px}@media(min-width:1100px){.iam-permission-matrix{grid-template-columns:repeat(2,minmax(0,1fr))}}.iam-permission-group{display:grid;gap:6px;margin:0;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius-md)}.iam-permission-group legend{display:flex;align-items:center;gap:8px;padding:0 6px;font-weight:600}.iam-group-toggle{min-height:26px;padding:2px 8px;font-size:.75rem}.iam-permission{align-items:flex-start}.iam-permission span{display:grid;gap:2px}.iam-permission code{font-size:.7rem}.supply-empty{display:grid;justify-items:center;gap:8px}.supply-run-bar{flex-wrap:wrap;gap:12px}.supply-kpi-text{font-size:.95rem;font-weight:600;margin-top:6px}.supply-warnings{display:grid;gap:6px;margin:0;list-style:none;border-color:var(--warning)}.supply-warnings li{display:flex;align-items:flex-start;gap:8px;font-size:.85rem}.supply-warnings svg{flex-shrink:0;margin-top:2px;color:var(--warning)}.supply-ai-summary h3{display:flex;align-items:center;gap:6px;margin:0 0 8px;font-size:.95rem}.supply-ai-summary p{margin:0 0 6px;white-space:pre-line;line-height:1.8}.supply-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}.supply-settings summary{cursor:pointer}.supply-settings fieldset{margin:14px 0 0;padding:0;border:0}.supply-warehouse-list{display:grid;gap:4px}.supply-table td{vertical-align:top}.supply-product{display:flex;gap:10px;min-width:240px}.supply-product img,.supply-product-placeholder{width:44px;height:44px;flex-shrink:0;border-radius:var(--radius);object-fit:cover;background:var(--muted)}.supply-product-meta{font-size:.75rem;margin-top:2px}.supply-spark{display:inline-flex;align-items:flex-end;gap:1px;height:24px;width:92px}.supply-spark span{flex:1;background:var(--border);border-radius:1px}.supply-spark span.on{background:var(--primary)}.supply-final{display:block;font-size:1.05rem}.supply-final.is-adjusted{color:var(--primary)}.supply-risk-low{background:var(--muted)}.supply-risk-medium{background:var(--warning-soft, var(--muted));color:var(--warning)}.supply-risk-high{background:var(--destructive-soft);color:var(--destructive)}.supply-reason{min-width:220px;max-width:360px;font-size:.8rem;line-height:1.7}@keyframes supply-spin{to{transform:rotate(360deg)}}.spin{animation:supply-spin 1s linear infinite;vertical-align:middle}
