
html[data-theme="dark"]{color-scheme:dark;
 --az-bg:#0E1613;--az-card:#16211C;--az-line:#243129;--az-line2:#2F3F37;
 --az-ink:#E9F1ED;--az-ink2:#B7C6BF;--az-ink3:#7E8D87;
 --az-soft:#1C2B25;--az-soft2:#131D18;
 --az-red-soft:#3A211C;--az-ok-soft:#16302373;--az-warn-soft:#37271573;
 --az-amber:#D98428}
html[data-theme="dark"] body{background:var(--az-bg,#0E1613);color:var(--az-ink,#E9F1ED)}
html[data-theme="dark"] .top{background:rgba(14,22,19,.92)!important}
.sb-user{cursor:pointer;position:relative;user-select:none}
.sb-user .chev{margin-right:auto;color:#8FB0A5;font-size:11px;transition:transform .15s}
.sb-user.open .chev{transform:rotate(180deg)}
.sb-menu{position:absolute;left:12px;right:12px;bottom:76px;z-index:60;
 background:#0F1F1A;border:1px solid rgba(255,255,255,.13);border-radius:13px;
 padding:6px;box-shadow:0 20px 50px rgba(0,0,0,.5)}
.sb-menu .mi{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;
 text-align:right;background:none;border:none;color:#DCE9E3;font-family:inherit;
 font-size:13px;font-weight:800;padding:10px 12px;border-radius:9px;
 text-decoration:none;cursor:pointer}
.sb-menu .mi:hover{background:rgba(255,255,255,.09)}
.sb-menu .mi.danger{color:#F3B4A5}
.sb-menu .mi svg{width:17px;height:17px;flex-shrink:0}

/* omranix-shell — پوسته داشبوردی ابزارها (نسل۲) */
html[data-omxshell] body{padding-right:248px!important;background:var(--az-bg,#EDF2F0)}
html[data-omxshell] nav{display:none!important}
html[data-omxshell] .omx-nav,html[data-omxshell] .site-nav,
html[data-omxshell] #omxNav{display:none!important}
html[data-omxshell] .container{max-width:none!important;
 padding-left:26px!important;padding-right:26px!important}
html[data-omxshell] .osh{position:fixed;top:0;bottom:0;right:0;width:248px;z-index:80;
 display:flex;flex-direction:column;box-sizing:border-box;padding:14px 12px;
 background:linear-gradient(180deg,#173B35,#10241E);color:#DCE9E3;
 font-family:'Vazirmatn',Tahoma,sans-serif}
.osh *{box-sizing:border-box}
.osh .bd{display:flex;align-items:center;gap:10px;padding:6px 8px 14px;
 border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:10px}
.osh .bd img{width:34px;height:34px}
.osh .bd b{font-size:15px;font-weight:900;color:#fff;display:block;line-height:1.5}
.osh .bd span{font-size:10px;color:#8FB0A5;font-weight:700}
.osh .it{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:11px;
 color:#C9DAD3;text-decoration:none;font-size:13.5px;font-weight:800;margin-bottom:3px}
.osh .it:hover{background:rgba(255,255,255,.08);color:#fff}
.osh .it.on{background:rgba(255,255,255,.12);color:#fff}
.osh .it svg{width:19px;height:19px;flex-shrink:0}
.osh .sp{flex:1}
.osh .usr{display:flex;align-items:center;gap:10px;padding:10px 10px;border-radius:12px;
 background:rgba(255,255,255,.06);cursor:pointer;position:relative;user-select:none}
.osh .usr .av{width:34px;height:34px;border-radius:10px;flex-shrink:0;display:flex;
 align-items:center;justify-content:center;font-weight:900;color:#fff;font-size:14px;
 background:linear-gradient(135deg,#45B593,#25695D)}
.osh .usr .n{font-size:12.5px;font-weight:900;color:#fff;line-height:1.6}
.osh .usr .r{font-size:10px;color:#8FB0A5;direction:ltr;text-align:right}
.osh .usr .chev{margin-right:auto;color:#8FB0A5;font-size:11px;transition:transform .15s}
.osh .usr.open .chev{transform:rotate(180deg)}
.osh .menu{position:absolute;left:12px;right:12px;bottom:74px;z-index:90;
 background:#0F1F1A;border:1px solid rgba(255,255,255,.13);border-radius:13px;
 padding:6px;box-shadow:0 20px 50px rgba(0,0,0,.5)}
.osh .menu .mi{display:flex;align-items:center;gap:10px;width:100%;
 text-align:right;background:none;border:none;color:#DCE9E3;font-family:inherit;
 font-size:13px;font-weight:800;padding:10px 12px;border-radius:9px;
 text-decoration:none;cursor:pointer}
.osh .menu .mi:hover{background:rgba(255,255,255,.09)}
.osh .menu .mi.danger{color:#F3B4A5}
@media(max-width:999px){html[data-omxshell] .osh{display:none}}


/* ═══════ لایه چگالی نسل۲ — فقط پوسته فعال، فقط نمایشگر ═══════ */
@media screen{
html[data-omxshell]{--dz-line:#C7D4CE;--dz-line2:#AEC0B8;--dz-head:#EBF1EE;
 --dz-ink:#152420;--dz-ink2:#43554F;--dz-ink3:#7C8E87}
html[data-omxshell] body{font-size:13px;line-height:1.78;color:var(--dz-ink);
 background:#E4EBE7!important}
html[data-omxshell] body > .container{background:#fff;
 border:1.5px solid var(--dz-line);border-radius:12px;
 margin:14px 18px 26px 18px!important;min-height:calc(100svh - 40px)}
html[data-omxshell] .o-footer .container{background:transparent!important;
 border:none!important;min-height:0!important;margin:0!important;
 padding:12px 16px!important}
html[data-omxshell] .o-header,html[data-omxshell] .o-burger,
html[data-omxshell] .o-drawer{display:none!important}
html[data-omxshell] .container{width:100%!important;max-width:none!important;
 margin:0!important;padding:18px 30px 48px!important;box-sizing:border-box}
@media(min-width:1500px){
 html[data-omxshell] .container{padding:22px 42px 58px!important}}

/* تیترها: نوارابزارِ فنی */
html[data-omxshell] h1{font-size:18px;font-weight:900;color:var(--dz-ink);
 margin:0 0 16px;padding:11px 16px;letter-spacing:-.2px;
 background:linear-gradient(180deg,#F2F7F4,#EAF1ED);
 border:1.5px solid var(--dz-line);border-radius:9px;
 border-right:4px solid #1F6D5C}
html[data-omxshell] h2{font-size:15.5px;font-weight:900;margin:20px 0 9px}
html[data-omxshell] h3{font-size:13.5px;font-weight:900;margin:14px 0 7px}
html[data-omxshell] p{font-size:12.8px}
html[data-omxshell] label{font-size:11.6px;font-weight:800;color:var(--dz-ink2)}

/* کنترل‌ها: فشرده و قاب‌سخت */
html[data-omxshell] input:not([type=checkbox]):not([type=radio]):not([type=range]),
html[data-omxshell] select,
html[data-omxshell] textarea{
 font-family:inherit;font-size:12.8px;font-weight:700;color:var(--dz-ink);
 background:#FBFDFC;border:1.5px solid var(--dz-line2);border-radius:8px;
 padding:7px 10px;border-radius:7px;box-shadow:none}
html[data-omxshell] input:focus,html[data-omxshell] select:focus,
html[data-omxshell] textarea:focus{outline:none;border-color:#1F6D5C;
 box-shadow:0 0 0 3px rgba(31,109,92,.15)}
html[data-omxshell] input::placeholder,
html[data-omxshell] textarea::placeholder{color:#9AAAA3;font-weight:600}

/* دکمه‌های مشترک */
html[data-omxshell] .btn-primary{font-size:12.8px;font-weight:900;
 padding:10px 24px;border-radius:9px;box-shadow:none;letter-spacing:0}
html[data-omxshell] .btn-secondary{font-size:12.8px;font-weight:900;
 padding:10px 22px;border-radius:9px;border-width:1.5px;box-shadow:none}

/* جدول‌ها: چگالی سازمانی — قلب تغییر */
html[data-omxshell] table{width:100%;border-collapse:collapse;background:#fff;
 font-size:12.6px;border:1.5px solid var(--dz-line)}
html[data-omxshell] table th{background:var(--dz-head);color:#2F423B;
 font-size:10.8px;font-weight:900;padding:8px 10px;
 border:1px solid var(--dz-line);white-space:nowrap}
html[data-omxshell] table td{padding:7px 10px;border:1px solid #E1E9E4;
 font-weight:600;color:var(--dz-ink)}
html[data-omxshell] table tbody tr:nth-child(even) td{background:#F7FAF8}
html[data-omxshell] table tbody tr:hover td{background:#EEF6F1}
html[data-omxshell] table tfoot td{background:var(--dz-head);font-weight:900;
 border-top:2px solid #1F6D5C}
html[data-omxshell] table th input,html[data-omxshell] table td input,
html[data-omxshell] table th select,html[data-omxshell] table td select{
 padding:5px 8px;border-width:1px;border-radius:6px;font-size:12.4px}

/* کارت‌ها: لبه سخت، بدون سایه پفکی */
html[data-omxshell] .o-card,html[data-omxshell] .card,
html[data-omxshell] .box,html[data-omxshell] .panel{
 background:#fff;border:1.5px solid var(--dz-line);border-radius:10px;
 box-shadow:none}
html[data-omxshell] hr{border:none;border-top:1.5px solid var(--dz-line);
 margin:16px 0}

/* اسکرول‌بار فنی */
html[data-omxshell] ::-webkit-scrollbar{width:10px;height:10px}
html[data-omxshell] ::-webkit-scrollbar-track{background:#E7EEEA}
html[data-omxshell] ::-webkit-scrollbar-thumb{background:#AFC0B8;
 border-radius:8px;border:2px solid #E7EEEA}
html[data-omxshell] ::-webkit-scrollbar-thumb:hover{background:#8FA69C}
}

/* فوتر سایت در حالت پوسته نمایش داده نمی‌شود (نسخه مهمان دست‌نخورده) */
html[data-omxshell] .o-footer{display:none!important}

/* ═══ پوسته موبایل: نوار بالا به‌جای ریل کناری ═══ */
html[data-omxshell="m"] body{padding-right:0!important;padding-top:56px!important}
html[data-omxshell="m"] body > .container{margin:10px 10px 20px!important;
 min-height:calc(100svh - 90px);padding:14px 14px 60px!important}
.osh-top{position:fixed;top:0;right:0;left:0;z-index:90;height:52px;
 display:flex;align-items:center;gap:9px;padding:0 12px;
 background:linear-gradient(180deg,#173B35,#10241E);color:#DCE9E3;
 font-family:'Vazirmatn',Tahoma,sans-serif;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.osh-top img{height:26px;width:auto}
.osh-top b{font-size:14px;font-weight:900;color:#fff}
.osh-top .sp{flex:1}
.osh-top .tp{font-size:11px;font-weight:800;color:#C9DAD3;text-decoration:none;
 background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.13);
 border-radius:999px;padding:6px 12px}
.osh-top .usr{cursor:pointer}
.osh-top .av{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;
 justify-content:center;font-weight:900;color:#fff;font-size:14px;
 background:linear-gradient(135deg,#45B593,#25695D)}
.osh-top .menu{position:fixed;top:58px;left:10px;width:210px;z-index:95;
 background:#0F1F1A;border:1px solid rgba(255,255,255,.13);border-radius:13px;
 padding:6px;box-shadow:0 20px 50px rgba(0,0,0,.5)}
.osh-top .menu .mi{display:flex;align-items:center;gap:10px;width:100%;
 box-sizing:border-box;text-align:right;background:none;border:none;color:#DCE9E3;
 font-family:inherit;font-size:13px;font-weight:800;padding:10px 12px;
 border-radius:9px;text-decoration:none;cursor:pointer}
.osh-top .menu .mi:hover{background:rgba(255,255,255,.09)}
.osh-top .menu .mi.danger{color:#F3B4A5}

/* ═══════ محافظ چاپ: پوسته هرگز چاپ نشود ═══════ */
@media print{
 html[data-omxshell] body{padding-right:0!important}
 html[data-omxshell] .osh{display:none!important}
}
