@font-face{font-family:IRANSans;src:url(/fonts/IRANSans_Light.ttf) format("truetype");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:IRANSans;src:url(/fonts/IRANSans_Medium.ttf) format("truetype");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:IRANSans;src:url(/fonts/IRANSans_Bold.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}:root{--bg:#f4f7ff;--surface:#fff;--ink:#0b1220;--muted:#667085;--line:#d5dce8;--brand:#1b6ef3;--brand-dark:#0b3d99;--accent:#ff5c33;--success:#12b76a;--radius:16px;--shadow:0 24px 60px rgba(11,18,32,.12);--font:"IRANSans",Tahoma,sans-serif;--header-height:72px}*{box-sizing:border-box;padding:0;margin:0}body,html{min-height:100%}html{direction:rtl;scroll-behavior:smooth}body{color:var(--ink);background:var(--bg);font-family:var(--font);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer;border:none;background:none}img{max-width:100%;display:block}.shell{--sidebar-width:240px;display:grid;grid-template-columns:var(--sidebar-width) 1fr;min-height:100vh;height:100vh;overflow:hidden;background:var(--bg)}.sidebar{background:linear-gradient(180deg,#132338,#0f1b2d);color:#d7e2f2;padding:28px 18px;gap:20px;height:100vh}.sidebar,.sidebar .nav{display:flex;flex-direction:column}.sidebar .nav{gap:4px;flex:1 1}.sidebar .nav a{display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:12px;color:#d7e2f2}.sidebar .nav a:hover{background:hsla(0,0%,100%,.06)}.sidebar .nav a.active{background:rgba(27,110,243,.24);color:#fff}.sidebarFooter{padding-top:12px;border-top:1px solid hsla(0,0%,100%,.08)}.sidebarFooter button{width:100%;text-align:right;padding:12px 14px;border-radius:12px;color:#d7e2f2}.sidebarFooter button:hover{background:hsla(0,0%,100%,.06)}.main{overflow:auto;padding:28px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:0 10px 30px rgba(11,18,32,.04)}.panelHeader{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.panelHeader h1{font-size:1.35rem}.input{width:100%;margin-top:8px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fbfcff;color:var(--ink)}.textarea{resize:vertical;min-height:110px}.button,.buttonGhost,.dangerBtn,.linkBtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border-radius:12px;font-weight:700}.button{background:var(--brand);color:#fff}.button:disabled{opacity:.55}.buttonGhost{background:transparent;border:1px solid var(--line);color:var(--ink)}.linkBtn{color:var(--brand);padding:0}.dangerBtn{color:var(--danger,#d64545);padding:0;background:transparent}.error{margin:12px 0;padding:12px 14px;border-radius:12px;background:rgba(214,69,69,.1);color:#d64545}.muted{color:var(--muted)}.emptyState{display:grid;grid-gap:16px;gap:16px;justify-items:start;padding:24px 0}.tableWrap{overflow-x:auto}.table{width:100%;border-collapse:collapse}.table td,.table th{text-align:right;padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:middle}.table th{color:var(--muted);font-size:.85rem;font-weight:600}.itemCell{display:flex;align-items:center;gap:10px}.itemThumb,.itemThumbFallback{width:40px;height:40px;border-radius:10px;object-fit:cover;background:#e8edf6;flex-shrink:0}.badge{display:inline-flex;padding:4px 10px;border-radius:999px;background:#eef3ff;color:var(--brand-dark);font-size:.8rem}.rowActions{display:flex;gap:12px;align-items:center}.itemForm{grid-gap:16px}.formGrid,.itemForm{display:grid;gap:16px}.formGrid{grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px}.contactBlock{display:grid;grid-gap:10px;gap:10px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.checkboxRow{display:flex;align-items:flex-start;gap:10px}.checkboxRow input{margin-top:3px}.imagePreviewGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));grid-gap:10px;gap:10px}.imagePreviewGrid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;border:1px solid var(--line)}.authPage{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top,rgba(27,110,243,.12),transparent 50%),var(--bg)}.authCard{width:min(420px,100%);background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 18px 48px rgba(11,18,32,.08)}.authCard h1{margin:8px 0;font-size:1.5rem}.authCard label{display:grid;grid-gap:8px;gap:8px;margin-bottom:14px;font-size:.92rem}.authCard p{color:var(--muted);margin-bottom:20px;line-height:1.8}.navBadge{-webkit-margin-start:auto;margin-inline-start:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--accent,#ff5c33);color:#fff;font-size:.75rem;display:inline-flex;align-items:center;justify-content:center}.chatPanel,.chatThreadPanel{display:flex;flex-direction:column;min-height:calc(100vh - 56px)}.chatList{display:grid;grid-gap:8px;gap:8px}.chatRow{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fbfcfe;transition:background .15s ease}.chatRow:hover{background:#f0f5ff}.chatRowMain{display:grid;grid-gap:4px;gap:4px;flex:1 1;min-width:0}.chatPreview{color:var(--muted);font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chatMessages{flex:1 1;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:12px 0 18px;max-height:calc(100vh - 220px)}.chatBubble{max-width:min(72%,520px);align-self:flex-start;background:#eef2f8;border-radius:16px 16px 16px 4px;padding:10px 12px}.chatBubble.mine{align-self:flex-end;background:rgba(27,110,243,.14);border-radius:16px 16px 4px 16px}.chatBubble p{line-height:1.7;white-space:pre-wrap}.chatBubble time{display:block;margin-top:6px;color:var(--muted);font-size:.75rem}.chatImage{display:block;max-width:220px;border-radius:10px;margin-bottom:6px}.chatComposer{display:grid;grid-template-columns:1fr auto;grid-gap:10px;gap:10px;padding-top:12px;border-top:1px solid var(--line)}.authBack{color:var(--brand);font-size:.9rem}.authForm{display:grid;grid-gap:14px;gap:14px}@media (max-width:900px){.shell{grid-template-columns:1fr;height:auto;overflow:visible}.sidebar{height:auto;position:-webkit-sticky;position:sticky;top:0;z-index:20}.formGrid{grid-template-columns:1fr}}