/* ---- پنل کاربری شبیه داشبورد ---- */
#dashov{position:fixed;inset:0;z-index:55;background:var(--bg);display:flex}
#dashov[hidden]{display:none!important}
.ds-wrap{display:flex;gap:8px;width:100%;height:100%;max-width:1100px;margin:0 auto;padding:max(8px,env(safe-area-inset-top,0px)) 8px max(8px,env(safe-area-inset-bottom,0px));direction:rtl}
.ds-nav{--navA:#1c2c52;--navB:#0f1b36;flex:none;width:clamp(124px,32vw,210px);background:linear-gradient(180deg,var(--navA),var(--navB));color:#e8eeff;border-radius:22px;padding:14px 8px;display:flex;flex-direction:column;gap:4px;overflow-y:auto;font-family:'Vazirmatn',Tahoma,sans-serif}
.ds-brand{display:flex;align-items:center;gap:6px;padding:2px 6px 10px}
.ds-brand svg{width:28px;height:28px;flex:none}
.ds-brand b{font-family:var(--font-logo);font-weight:400;font-size:1.1rem;line-height:1.2}
.ds-user{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:8px 6px 12px;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.12);font-size:.82rem;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.ds-user i{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--accent-fg);font-style:normal;font-weight:800;font-size:1.1rem}
.ds-item{display:flex;align-items:center;gap:8px;width:100%;padding:10px 8px;border:0;border-radius:12px;background:transparent;color:#c9d4f2;font:inherit;font-size:.77rem;font-weight:500;text-align:right}
.ds-item .ds-ico{width:20px;height:20px;flex:none}
.ds-item.on{background:#2f4b8f;color:#fff;font-weight:700}
.ds-item:hover{background:rgba(255,255,255,.08)}
.ds-item.on:hover{background:#2f4b8f}
.ds-av{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--accent) center/cover no-repeat;color:var(--accent-fg);font-style:normal;font-weight:800;font-size:1.1rem;flex:none}
.ds-av.big{width:104px;height:104px;font-size:2.4rem;border:3px solid var(--brand-soft)}
.ds-ptop{display:flex;flex-direction:column;align-items:center;gap:12px;padding:8px 0 4px}
button.ds-user{background:none;border:0;border-bottom:1px solid rgba(255,255,255,.12);border-radius:12px 12px 0 0;color:inherit;font:inherit;width:100%;text-align:right;cursor:pointer}
button.ds-user.on,button.ds-user:hover{background:rgba(255,255,255,.08)}
.ds-un{display:flex;flex-direction:column;min-width:0}
.ds-un b{font-size:.85rem;overflow-wrap:anywhere}
.ds-un small{font-size:.68rem;font-weight:500;opacity:.7}
.ds-ico{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ds-main{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:22px;overflow:hidden}
.ds-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line)}
.ds-head h4{margin:0;font-size:.95rem;font-weight:800;white-space:nowrap}
.ds-tools{display:flex;gap:2px;align-items:center}
.ds-tools button{position:relative;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--fg);display:grid;place-items:center}
.ds-tools .ds-ico{width:22px;height:22px}
.ds-tools b{position:absolute;top:2px;left:2px;min-width:17px;height:17px;border-radius:99px;background:#e11d48;color:#fff;font-size:.66rem;display:grid;place-items:center;padding:0 4px}
.ds-tools b[hidden]{display:none}
.ds-body{flex:1;min-height:0;overflow-y:auto;padding:12px 12px 20px;display:flex;flex-direction:column;gap:10px}
.ds-back{width:34px;height:34px;border:0;border-radius:50%;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;flex:none}
.ds-back .ds-ico{width:20px;height:20px}
.ds-head h4{flex:1}
#dashov{--navw:clamp(124px,32vw,210px);--pad:8px}
.ds-wrap{position:relative}
.ds-nav{width:var(--navw)}
#dashov.menu .ds-main{display:none}
#dashov.sec.col .ds-nav{display:none}
#dashov.sec:not(.col) .ds-back{display:none}
.ds-fold{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:28px;height:56px;border:1px solid var(--line);background:var(--surface);color:var(--brand);display:grid;place-items:center;padding:0;box-shadow:0 4px 14px rgba(0,0,0,.25);right:calc(var(--pad) + var(--navw) + 4px - 14px);border-radius:14px}
.ds-fold .ds-ico{width:18px;height:18px}
#dashov.menu .ds-fold{display:none}
#dashov.sec.col .ds-fold{right:var(--pad);border-radius:14px 0 0 14px;width:24px;border-right:0}
#dashov.menu .ds-nav{width:100%;padding:18px 14px;gap:6px}
#dashov.menu .ds-brand{padding:2px 6px 12px}
#dashov.menu .ds-brand b{font-size:1.5rem;flex:1}
#dashov.menu .ds-brand svg{width:36px;height:36px}
#dashov.menu .ds-brand .ds-mx svg{width:20px;height:20px}
.ds-mx{width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.1);color:#fff;display:grid;place-items:center;flex:none}
.ds-mx .ds-ico{width:20px;height:20px}
.ds-mx{display:none}
#dashov.menu .ds-mx{display:grid}
#dashov.menu .ds-user{flex-direction:row;align-items:center;gap:12px;font-size:1rem;padding:10px 6px 16px}
#dashov.menu .ds-item{padding:15px 12px;font-size:1rem;gap:14px;border-radius:14px}
#dashov.menu .ds-item .ds-ico{width:24px;height:24px}
#dashov.menu .ds-item:active{background:#2f4b8f}
@media (min-width:720px){#dashov{--pad:12px}#dashov.menu .ds-wrap{max-width:560px}}
.ds-body>*{flex:none}
.ds-bc{display:flex;align-items:center;gap:6px;font-size:.8rem;color:var(--muted)}
.ds-bc button{border:0;background:none;color:var(--muted);font:inherit;padding:0}
.ds-bc i{font-style:normal}.ds-bc span{color:var(--fg);font-weight:700}
.ds-welcome{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:16px;background:var(--brand-soft);color:var(--brand)}
.ds-welcome b{font-size:1rem}.ds-welcome span{font-size:.8rem;opacity:.9}
.ds-tabs{display:flex;gap:2px;overflow-x:auto;border-bottom:1px solid var(--line);scrollbar-width:none}
.ds-tabs::-webkit-scrollbar{display:none}
.ds-tabs button{flex:none;border:0;background:none;color:var(--muted);font:inherit;font-size:.8rem;font-weight:500;padding:10px 10px;border-bottom:3px solid transparent;white-space:nowrap}
.ds-tabs button.on{color:var(--brand);font-weight:800;border-bottom-color:var(--brand)}
.ds-list{display:flex;flex-direction:column;gap:10px}
.ds-oc{border:1px solid var(--line);border-radius:16px;padding:10px;display:flex;flex-direction:column;gap:10px;background:var(--surface)}
.ds-oc-top{display:flex;gap:10px;align-items:center}
.ds-th{display:flex;gap:4px;flex:none}
.ds-ti{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;font-weight:800;overflow:hidden}
.ds-ti svg{width:30px;height:30px}
.ds-oi{display:flex;flex-direction:column;min-width:0;gap:1px}
.ds-oi b{font-size:.9rem}.ds-oi small{color:var(--muted);font-size:.75rem}
.ds-oc-bot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.ds-st{font-size:.74rem;font-weight:800;padding:3px 12px;border-radius:99px}
.ds-st.new,.ds-st.prep{background:rgba(245,158,11,.18);color:#b45309}
.ds-st.out{background:rgba(37,99,235,.15);color:#2563eb}
.ds-st.done{background:var(--brand-soft);color:var(--brand)}
.ds-st.cancel{background:rgba(220,38,38,.12);color:var(--danger)}
:root[data-theme="dark"] .ds-st.new,:root[data-theme="dark"] .ds-st.prep{color:#fbbf24}
:root[data-theme="dark"] .ds-st.out{color:#93c5fd}
.ds-dbtn{border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:10px;padding:6px 12px;font:inherit;font-size:.78rem;font-weight:700}
.ds-det[hidden]{display:none}
.ds-empty{text-align:center;color:var(--muted);padding:28px 0;margin:0;font-size:.88rem}
.ds-fav{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:14px;padding:8px 10px}
.ds-fav .ds-oi{flex:1}
.ds-addr{margin:0;font-size:.92rem;line-height:1.9}
.ds-main .au-go{margin-top:4px}
@media (min-width:720px){#dashov{background:rgba(0,0,0,.45);align-items:center}.ds-wrap{height:min(760px,94vh);padding:0 12px}.ds-wrap>*{box-shadow:0 18px 40px rgba(0,0,0,.25)}}
