@font-face{font-family:'Vazir';src:url('../fonts/vazir/Vazir-Regular-FD-WOL.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Vazir';src:url('../fonts/vazir/Vazir-Medium-FD-WOL.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Vazir';src:url('../fonts/vazir/Vazir-Bold-FD-WOL.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Vazir';src:url('../fonts/vazir/Vazir-Light-FD-WOL.woff2') format('woff2');font-weight:300;font-style:normal;font-display:swap}
:root{--bg:#f6f9ff;--bg2:#edf5ff;--surface:rgba(255,255,255,.86);--surface-solid:#fff;--text:#0f172a;--soft:#64748b;--muted:#94a3b8;--line:#e7edf7;--primary:#4658f0;--primary2:#5b6cff;--cyan:#14b8c5;--green:#35c484;--orange:#f9734c;--yellow:#f4b449;--red:#ef4444;--purple:#8b5cf6;--blue:#2f80ed;--navy:#10162f;--navy2:#171a3e;--sidebar-width:305px;--radius:24px;--shadow:0 18px 55px rgba(30,41,59,.08);--shadow-soft:0 10px 28px rgba(30,41,59,.06)}
*{box-sizing:border-box}html{direction:rtl;scroll-behavior:smooth}body{margin:0;min-height:100vh;font-family:'Vazir',Tahoma,Arial,sans-serif;background:radial-gradient(circle at 20% 0%,#fff 0,#eef6ff 34%,transparent 60%),linear-gradient(180deg,var(--bg2) 0,var(--bg) 260px,#fbfdff 100%);color:var(--text);font-size:14px;line-height:1.75}a{color:var(--primary);text-decoration:none;transition:.2s}a:hover{color:#2534c9}.app-shell{display:flex;min-height:100vh}.sidebar{width:var(--sidebar-width);background:radial-gradient(circle at top right,rgba(79,92,255,.28),transparent 34%),linear-gradient(180deg,#101633 0,#10172e 48%,#17183c 100%);color:#fff;padding:30px 22px;position:fixed;top:0;bottom:0;right:0;overflow:auto;box-shadow:-22px 0 55px rgba(15,23,42,.18);z-index:20}.sidebar::-webkit-scrollbar{width:6px}.sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:20px}.logo{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;margin:4px 0 30px;padding:0;background:transparent;border:0}.logo img{width:185px;max-width:90%;height:auto;object-fit:contain;background:transparent!important;border-radius:0!important;padding:0!important;box-shadow:none!important;filter:none}.logo-text{text-align:center}.logo strong{display:block;font-size:15px;font-weight:700;color:#fff;margin-top:4px}.logo span{display:block;font-size:12px;color:#c7d2fe;margin-top:2px}.app-version{display:inline-flex;margin-top:6px;padding:3px 11px;border-radius:999px;background:rgba(255,255,255,.08);color:#cbd5e1;font-size:11px}.nav-section{font-size:12px;color:#a5b4fc;margin:20px 12px 9px;font-weight:700}.sidebar nav a{height:48px;display:flex;align-items:center;gap:12px;color:#eef2ff;padding:0 15px;border-radius:14px;margin:6px 0;font-weight:600;position:relative}.sidebar nav a .nav-icon{width:23px;height:23px;display:inline-flex;align-items:center;justify-content:center;font-size:18px;opacity:.92}.sidebar nav a:hover,.sidebar nav a.active{background:linear-gradient(135deg,var(--primary),var(--primary2));box-shadow:0 12px 30px rgba(70,88,240,.34);transform:translateX(-3px);color:#fff}.sidebar-footer{position:sticky;bottom:0;margin-top:28px;padding-top:20px;background:linear-gradient(180deg,rgba(16,22,51,0),#17183c 24%)}.logout-pill{width:100%;display:flex!important;align-items:center!important;justify-content:center!important;color:#ffb4b4!important;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.045)!important;border-radius:18px!important}.main-content{margin-right:var(--sidebar-width);width:calc(100% - var(--sidebar-width));min-height:100vh}.topbar{height:76px;background:rgba(255,255,255,.78);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,232,240,.86);display:flex;align-items:center;justify-content:space-between;padding:0 38px;position:sticky;top:0;z-index:11;box-shadow:0 8px 22px rgba(15,23,42,.035)}.welcome{font-weight:700}.topbar-tools{display:flex;align-items:center;gap:14px}.date-pill,.icon-btn,.user-card{border:1px solid var(--line);background:rgba(255,255,255,.82);border-radius:18px;box-shadow:var(--shadow-soft)}.date-pill{padding:10px 18px;color:#475569}.icon-btn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;color:#475569;font-size:18px}.user-card{display:flex;align-items:center;gap:12px;padding:7px 12px 7px 16px}.avatar{width:42px;height:42px;border-radius:50%;border:1px solid #dbe6f5;background:linear-gradient(135deg,#fff,#eef6ff);display:inline-flex;align-items:center;justify-content:center;color:var(--primary);font-weight:800}.user-name{font-weight:800}.user-role{font-size:12px;color:var(--soft);margin-top:-3px}.page-container{padding:42px 48px 60px}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin:10px 0 28px;gap:18px}.page-header h1{margin:0 0 8px;font-size:32px;line-height:1.25;letter-spacing:-.7px}.page-header p{margin:0;color:var(--soft);font-size:15px}.btn,.button,button,input[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:10px 17px;min-height:42px;margin:2px;cursor:pointer;color:#111827;font-size:14px;font-family:inherit;font-weight:700;line-height:1.6;box-shadow:0 8px 20px rgba(15,23,42,.045);transition:.2s}.btn:hover,.button:hover,button:hover,input[type=submit]:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(15,23,42,.075)}.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;border-color:transparent;box-shadow:0 14px 30px rgba(70,88,240,.28)}.btn-danger{background:#ef4444;color:#fff;border-color:#ef4444}.btn-success{background:#22c55e;color:#fff;border-color:#22c55e}.btn-warning{background:#f59e0b;color:#fff;border-color:#f59e0b}.hero-action{min-width:150px;height:48px;border-radius:15px}.panel,.card,.login-card{background:var(--surface);border:1px solid rgba(231,237,247,.9);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);backdrop-filter:blur(14px)}.panel h2,.card h2{margin-top:0;font-size:22px;letter-spacing:-.35px}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;margin-bottom:28px}.kpi{background:linear-gradient(135deg,#fff 0%,#fff 45%,var(--tint,#eef6ff) 100%);border:1px solid rgba(231,237,247,.95);border-radius:22px;padding:21px 21px 18px;min-height:122px;box-shadow:var(--shadow-soft);position:relative;overflow:hidden;transition:.2s}.kpi:after{content:"";position:absolute;inset:auto -22px -32px auto;width:116px;height:116px;background:var(--bubble,rgba(70,88,240,.12));border-radius:32px;transform:rotate(12deg)}.kpi:hover{transform:translateY(-3px);box-shadow:0 20px 45px rgba(30,41,59,.1)}.kpi span{display:block;color:#334155;font-size:13px;margin-top:30px}.kpi strong{display:block;font-size:31px;line-height:1;font-weight:800;letter-spacing:-1px;position:relative;z-index:1}.kpi-icon{position:absolute;top:20px;left:20px;width:52px;height:52px;border-radius:17px;display:flex;align-items:center;justify-content:center;font-size:24px;background:var(--iconbg,#eef2ff);color:var(--iconcolor,var(--primary));z-index:1}.t-purple{--tint:#f5f0ff;--bubble:rgba(139,92,246,.13);--iconbg:#efe6ff;--iconcolor:#8b5cf6}.t-orange{--tint:#fff2ed;--bubble:rgba(249,115,76,.13);--iconbg:#ffe6de;--iconcolor:#f9734c}.t-blue{--tint:#edf7ff;--bubble:rgba(47,128,237,.13);--iconbg:#e2f1ff;--iconcolor:#2f80ed}.t-green{--tint:#edfdf5;--bubble:rgba(53,196,132,.13);--iconbg:#dcfce7;--iconcolor:#16a34a}.t-gray{--tint:#f6f7fb;--bubble:rgba(148,163,184,.16);--iconbg:#eef2f7;--iconcolor:#64748b}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.panel-link{font-weight:800;font-size:13px;color:var(--primary)}.data-table{width:100%;border-collapse:separate;border-spacing:0;background:rgba(255,255,255,.85);border:1px solid var(--line);border-radius:18px;overflow:hidden}.data-table th,.data-table td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:right;vertical-align:middle}.data-table th{background:#f5f8fc;color:#475569;font-size:12px;font-weight:800}.data-table tr:last-child td{border-bottom:0}.data-table td a{font-weight:700}.badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:800;background:#f1f5f9;color:#475569;white-space:nowrap}.badge-released,.badge-approved,.badge-completed,.badge-pass,.badge-acceptable,.badge-done,.badge-closed{background:#dcfce7;color:#15803d}.badge-draft,.badge-open,.badge-assigned,.badge-planned,.badge-submitted,.badge-added{background:#e0f2fe;color:#0369a1}.badge-in_review,.badge-in-progress,.badge-processing,.badge-alarp,.badge-investigation,.badge-action_plan,.badge-implementation,.badge-effectiveness_check,.badge-impact_assessment,.badge-verification{background:#fef3c7;color:#b45309}.badge-archived,.badge-cancelled,.badge-fail,.badge-unacceptable,.badge-overdue,.badge-expired,.badge-rejected,.badge-failed,.badge-obsolete,.badge-missing{background:#fee2e2;color:#b91c1c}.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}.chart-card{min-height:260px}.donut-wrap{display:flex;align-items:center;justify-content:space-around;gap:24px}.donut{width:170px;height:170px;border-radius:50%;background:conic-gradient(var(--primary) 0 var(--p1,50%),var(--green) var(--p1,50%) 100%);display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}.donut.gray{background:conic-gradient(#c6cbd6 0 100%)}.donut-center{width:92px;height:92px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 8px 20px rgba(15,23,42,.06);font-weight:800}.legend{display:grid;gap:10px;min-width:150px}.legend-item{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#475569}.dot{width:11px;height:11px;border-radius:50%;display:inline-block;background:var(--dot,var(--primary));margin-left:8px}.quick-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:16px}.quick-card{min-height:106px;border:1px solid var(--line);background:rgba(255,255,255,.72);border-radius:18px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:#0f172a;font-weight:800;box-shadow:0 8px 18px rgba(15,23,42,.035)}.quick-card:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(15,23,42,.08);color:var(--primary)}.quick-icon{width:48px;height:48px;border-radius:15px;display:flex;align-items:center;justify-content:center;background:#e8f2ff;font-size:24px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:24px}.messages{margin:16px 48px 0}.message{padding:13px 16px;border-radius:15px;background:#dbeafe;margin-bottom:8px;border:1px solid #bfdbfe}.message.error{background:#fee2e2;border-color:#fecaca}.message.success{background:#dcfce7;border-color:#bbf7d0}.actions{display:flex;gap:7px;flex-wrap:wrap}form p{margin:14px 0}label{display:block;margin-bottom:7px;color:#334155;font-weight:800}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:11px 13px;font-family:inherit;background:rgba(255,255,255,.9);outline:none;transition:.2s}input:focus,select:focus,textarea:focus{border-color:#b9c2ff;box-shadow:0 0 0 4px rgba(70,88,240,.1)}textarea{line-height:1.9}.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;z-index:99}.modal{background:#fff;border-radius:24px;padding:24px;width:540px;max-width:95vw;box-shadow:0 28px 90px rgba(15,23,42,.28)}.risk-matrix td,.risk-matrix th{text-align:center}.risk-cell{cursor:pointer;font-weight:800}.risk-acceptable{background:#dcfce7!important;color:#166534}.risk-alarp{background:#fef3c7!important;color:#92400e}.risk-unacceptable{background:#fee2e2!important;color:#991b1b}.login-body{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px;background:radial-gradient(circle at 50% 0,#fff,#edf5ff 45%,#f8fbff 100%)}.login-card{width:440px}.login-brand{text-align:center;margin-bottom:18px}.login-brand img{max-width:170px;max-height:100px}.readonly-box{background:#f8fafc;border:1px solid var(--line);border-radius:16px;padding:18px;line-height:2}.empty-state{color:var(--soft);text-align:center;padding:22px}.ltr-code{direction:ltr;display:inline-block}@media(max-width:1200px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.quick-grid{grid-template-columns:repeat(4,1fr)}.dashboard-grid,.chart-grid{grid-template-columns:1fr}}@media(max-width:950px){:root{--sidebar-width:100%}.sidebar{position:relative;width:100%;height:auto;border-radius:0 0 26px 26px}.app-shell{display:block}.main-content{margin-right:0;width:100%}.topbar{position:relative;padding:14px 20px;height:auto;flex-wrap:wrap}.page-container{padding:26px 18px}.messages{margin:14px 18px 0}.kpi-grid,.grid-2{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(2,1fr)}.data-table{display:block;overflow-x:auto}.page-header{align-items:flex-start;flex-direction:column}.user-card{display:none}}

/* نسخه ۴: کارت‌های داشبورد مطابق تصویر مرجع */
.dashboard-hero{margin-bottom:22px}
.dashboard-kpi-row{
  direction:ltr;
  display:grid;
  grid-template-columns:repeat(5,minmax(170px,1fr));
  gap:28px;
  margin:0 0 32px;
  align-items:stretch;
}
.dashboard-kpi-card{
  direction:rtl;
  min-height:112px;
  border-radius:22px;
  border:1px solid rgba(221,230,244,.92);
  background:linear-gradient(135deg,#fff 0%,#fff 58%,var(--card-tint,#f6f8ff) 100%);
  box-shadow:0 12px 26px rgba(30,41,59,.055), inset 0 1px 0 rgba(255,255,255,.9);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 22px 18px 18px;
  overflow:hidden;
  position:relative;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.dashboard-kpi-card:hover{
  transform:translateY(-3px);
  border-color:rgba(195,207,226,.96);
  box-shadow:0 18px 38px rgba(30,41,59,.09), inset 0 1px 0 rgba(255,255,255,.95);
}
.dashboard-kpi-card .kpi-content{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:14px;
  min-width:0;
  position:relative;
  z-index:2;
}
.dashboard-kpi-card .kpi-content strong{
  font-size:32px;
  line-height:1;
  font-weight:900;
  color:#071226;
  letter-spacing:-1.2px;
}
.dashboard-kpi-card .kpi-content span{
  color:#4b5567;
  font-size:14px;
  line-height:1.65;
  font-weight:800;
  white-space:normal;
}
.dashboard-kpi-card .kpi-art{
  width:64px;
  height:64px;
  border-radius:18px;
  flex:0 0 64px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:2;
  filter:drop-shadow(0 10px 18px rgba(30,41,59,.08));
}
.dashboard-kpi-card .kpi-art img{
  width:64px;
  height:64px;
  display:block;
  object-fit:contain;
}
.dashboard-kpi-card::before{
  content:"";
  position:absolute;
  inset:-40px auto auto -42px;
  width:122px;
  height:122px;
  border-radius:38px;
  background:var(--soft-glow,rgba(139,92,246,.07));
  transform:rotate(14deg);
  opacity:.72;
}
.dashboard-kpi-card::after{
  content:"";
  position:absolute;
  inset:auto auto -44px 18px;
  width:140px;
  height:92px;
  border-radius:50%;
  background:rgba(255,255,255,.55);
  filter:blur(14px);
}
.kpi-documents{--card-tint:#fbf7ff;--soft-glow:rgba(139,92,246,.10)}
.kpi-approval{--card-tint:#f1fff8;--soft-glow:rgba(34,197,94,.10)}
.kpi-actions{--card-tint:#f2f9ff;--soft-glow:rgba(47,128,237,.10)}
.kpi-training{--card-tint:#fff6f1;--soft-glow:rgba(249,115,76,.10)}
.kpi-risk{--card-tint:#faf5ff;--soft-glow:rgba(139,92,246,.10)}
@media(max-width:1280px){.dashboard-kpi-row{grid-template-columns:repeat(3,minmax(180px,1fr));gap:18px}}
@media(max-width:850px){.dashboard-kpi-row{grid-template-columns:1fr;direction:rtl}.dashboard-kpi-card{min-height:104px}}


/* نسخه ۸: اصلاح نهایی کارت‌های داشبورد و کوچک‌سازی لوگو */
.logo img{
  width:140px !important;
  max-width:78% !important;
}
.dashboard-kpi-card{
  background:var(--card-bg,#ffffff) !important;
  border:1px solid var(--card-border,rgba(221,230,244,.96)) !important;
  box-shadow:0 12px 26px rgba(30,41,59,.055) !important;
}
.dashboard-kpi-card::before,
.dashboard-kpi-card::after{
  display:none !important;
}
.dashboard-kpi-card .kpi-content strong{
  color:#0f172a;
}
.dashboard-kpi-card .kpi-content span{
  color:#334155;
}
.kpi-documents{
  --card-bg:#fbf6ff;
  --card-border:#eadcff;
}
.kpi-approval{
  --card-bg:#f0fbf4;
  --card-border:#d7f3e1;
}
.kpi-actions{
  --card-bg:#eff7ff;
  --card-border:#d6eaff;
}
.kpi-training{
  --card-bg:#fff4ec;
  --card-border:#ffe2d1;
}
.kpi-risk{
  --card-bg:#faf4ff;
  --card-border:#ead8ff;
}
.dashboard-kpi-card .kpi-art{
  filter:none;
}


/* نسخه ۹: سایدبار جمع‌شونده، لوگوی کوچک و مرتب‌سازی منو */
.logo img{
  width:92px !important;
  max-width:92px !important;
}
.sidebar{
  transition:width .28s ease, padding .28s ease, transform .28s ease;
}
.sidebar-toggle{
  position:absolute;
  top:16px;
  left:16px;
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:inherit;
  font-size:17px;
  z-index:5;
  transition:.2s ease;
}
.sidebar-toggle:hover{background:rgba(255,255,255,.16)}
.sidebar-toggle .toggle-close{display:none}
body.sidebar-collapsed .sidebar{
  width:92px;
  padding:22px 14px;
  overflow:visible;
}
body.sidebar-collapsed .main-content{
  margin-right:92px;
  width:calc(100% - 92px);
}
body.sidebar-collapsed .logo{
  margin-top:42px;
  margin-bottom:22px;
}
body.sidebar-collapsed .logo img{
  width:54px !important;
  max-width:54px !important;
}
body.sidebar-collapsed .logo-text,
body.sidebar-collapsed .nav-section,
body.sidebar-collapsed .nav-title,
body.sidebar-collapsed .menu-move,
body.sidebar-collapsed .sidebar-footer{
  display:none !important;
}
body.sidebar-collapsed .sidebar nav a{
  width:58px;
  height:54px;
  padding:0;
  justify-content:center;
  margin:8px auto;
}
body.sidebar-collapsed .sidebar nav a .nav-icon{
  margin:0;
  font-size:20px;
}
body.sidebar-collapsed .sidebar-toggle .toggle-open{display:none}
body.sidebar-collapsed .sidebar-toggle .toggle-close{display:inline}
.sidebar-nav .menu-item{user-select:none}
.menu-move{
  margin-right:auto;
  display:flex;
  gap:4px;
  opacity:0;
  transform:translateX(-5px);
  transition:.18s ease;
}
.sidebar nav a:hover .menu-move{
  opacity:1;
  transform:translateX(0);
}
.menu-move button{
  width:22px;
  height:22px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#e0e7ff;
  border-radius:7px;
  cursor:pointer;
  font-family:inherit;
  font-size:13px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.menu-move button:hover{
  background:rgba(255,255,255,.2);
  color:#fff;
}
@media(max-width:950px){
  body.sidebar-collapsed .main-content{margin-right:0;width:100%}
  body.sidebar-collapsed .sidebar{width:100%;height:86px;overflow:hidden}
}

/* نسخه ۱۰: سایدبار مشابه نرم‌افزار مرجع، زیرمنو، پایین‌سایدبار و درگ */
:root{--sidebar-width:305px;--imedix-sidebar:#12174e;}
.sidebar{
  background:#12174e !important;
  background-image:none !important;
  display:flex !important;
  flex-direction:column !important;
  padding:22px 22px 14px !important;
  overflow:hidden !important;
  box-shadow:-18px 0 46px rgba(18,23,78,.24) !important;
}
.sidebar-logo-only{
  margin:22px 0 28px !important;
  padding:0 !important;
  min-height:auto !important;
}
.logo.sidebar-logo-only img,
.sidebar .logo img{
  width:82px !important;
  max-width:82px !important;
  height:auto !important;
}
.sidebar-logo-only .logo-text,
.sidebar .logo-text{display:none !important;}
.sidebar-toggle{
  top:14px !important;
  left:14px !important;
  background:rgba(255,255,255,.07) !important;
  border-color:rgba(255,255,255,.14) !important;
}
.sidebar-nav{
  flex:1 1 auto;
  overflow:auto;
  padding:2px 2px 12px;
  min-height:0;
}
.sidebar-nav::-webkit-scrollbar{width:5px}
.sidebar-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:50px}
.nav-section{
  color:#9ea8ff !important;
  font-size:12px !important;
  margin:16px 12px 8px !important;
}
.sidebar nav a,
.menu-group-toggle,
.bottom-menu-toggle,
.sidebar-user-row{
  min-height:46px;
  width:100%;
  display:flex;
  align-items:center;
  gap:11px;
  color:#f8faff;
  padding:0 12px;
  border-radius:9px;
  margin:4px 0;
  font-weight:800;
  background:transparent;
  border:0;
  font-family:inherit;
  font-size:14px;
  text-align:right;
}
.menu-group-toggle,.bottom-menu-toggle{cursor:pointer;}
.sidebar nav a:hover,
.sidebar nav a.active,
.menu-group-toggle:hover,
.bottom-menu-toggle:hover{
  background:#4656ff !important;
  box-shadow:none !important;
  transform:none !important;
  color:#fff !important;
}
.nav-icon{
  width:23px !important;
  height:23px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:17px !important;
  flex:0 0 23px;
  opacity:.96;
}
.nav-title{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.group-arrow{
  margin-right:auto;
  color:#dce2ff;
  transition:transform .18s ease;
  font-size:17px;
}
.menu-group.is-open > .menu-group-toggle .group-arrow,
.bottom-menu-group.is-open > .bottom-menu-toggle .group-arrow{transform:rotate(180deg);}
.submenu,
.bottom-submenu{display:none;}
.menu-group.is-open > .submenu,
.bottom-menu-group.is-open > .bottom-submenu{display:block;}
.submenu{
  border-right:1px solid rgba(116,130,255,.44);
  margin:2px 20px 12px 0;
  padding:4px 8px 4px 0;
}
.submenu .menu-item{
  min-height:42px;
  font-size:13px;
  border-radius:8px;
  padding-right:8px;
}
.drag-handle{
  width:18px;
  height:30px;
  border-radius:6px;
  color:#929df9;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:grab;
  font-size:15px;
  letter-spacing:-3px;
  opacity:0;
  transition:.15s ease;
  flex:0 0 18px;
}
.draggable-menu-item:hover .drag-handle{opacity:1;}
.drag-handle:active{cursor:grabbing;}
.draggable-menu-item.is-dragging{
  opacity:.46;
  background:rgba(70,86,255,.55) !important;
  outline:1px dashed rgba(255,255,255,.55);
}
.sortable-menu-zone.is-drag-over{
  background:rgba(255,255,255,.035);
  border-radius:10px;
}
.menu-move{display:none !important;}
.sidebar-bottom{
  flex:0 0 auto;
  border-top:1px solid rgba(255,255,255,.12);
  padding-top:12px;
  margin-top:12px;
  background:#12174e;
}
.sidebar-product-text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  color:#fff;
  padding:0 12px 10px;
}
.sidebar-product-text strong{font-size:13px;font-weight:900;}
.sidebar-product-text span{font-size:12px;color:#cbd2ff;}
.sidebar-product-text .app-version{
  margin-top:5px;
  padding:2px 9px;
  font-size:10px;
  background:rgba(255,255,255,.09);
  color:#d9ddff;
  border-radius:999px;
}
.bottom-submenu{
  margin:0 37px 8px 0;
  padding-right:9px;
  border-right:1px solid rgba(116,130,255,.38);
}
.bottom-submenu a{
  display:block;
  color:#dce2ff;
  font-weight:700;
  font-size:12px;
  padding:7px 0;
}
.bottom-submenu a:hover{color:#fff;}
.sidebar-user-row{
  border-radius:10px;
  margin-top:4px;
  color:#fff;
}
.sidebar-user-row .logout-icon{
  margin-right:auto;
  color:#dce2ff;
  font-size:20px;
}
.sidebar-user-row .logout-icon:hover{color:#ffb4b4;}
body.sidebar-collapsed .sidebar{
  width:86px !important;
  padding:16px 12px !important;
}
body.sidebar-collapsed .main-content{
  margin-right:86px !important;
  width:calc(100% - 86px) !important;
}
body.sidebar-collapsed .sidebar-logo-only{margin-top:44px !important;margin-bottom:20px !important;}
body.sidebar-collapsed .logo.sidebar-logo-only img,
body.sidebar-collapsed .sidebar .logo img{
  width:42px !important;
  max-width:42px !important;
}
body.sidebar-collapsed .nav-title,
body.sidebar-collapsed .nav-section,
body.sidebar-collapsed .group-arrow,
body.sidebar-collapsed .drag-handle,
body.sidebar-collapsed .sidebar-product-text,
body.sidebar-collapsed .bottom-submenu{
  display:none !important;
}
body.sidebar-collapsed .submenu{
  border:0;
  margin:0;
  padding:0;
}
body.sidebar-collapsed .sidebar nav a,
body.sidebar-collapsed .menu-group-toggle,
body.sidebar-collapsed .bottom-menu-toggle,
body.sidebar-collapsed .sidebar-user-row{
  width:54px !important;
  min-height:52px !important;
  padding:0 !important;
  justify-content:center !important;
  margin:6px auto !important;
}
body.sidebar-collapsed .sidebar-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding-top:8px;
}
body.sidebar-collapsed .sidebar-user-row .logout-icon{display:none;}
@media(max-width:950px){
  .sidebar{position:relative!important;width:100%!important;height:auto!important;border-radius:0 0 26px 26px;}
  body.sidebar-collapsed .sidebar{width:100%!important;height:92px!important;overflow:hidden!important;}
  body.sidebar-collapsed .main-content{margin-right:0!important;width:100%!important;}
}

/* نسخه ۱۱ */
:root{--sidebar-width:248px;--qualio-sidebar:#12174e;--qualio-active:#4658f0}.sidebar.formwork-sidebar{background:#12174e!important;color:#fff;width:248px;padding:0;display:flex;flex-direction:column;box-shadow:none;border-left:1px solid rgba(255,255,255,.08)}.main-content{margin-right:248px;width:calc(100% - 248px)}.sidebar-brand-row{height:58px;border-bottom:1px solid rgba(255,255,255,.14);display:flex;align-items:center;justify-content:space-between;padding:0 20px}.sidebar-mini-logo{width:70px!important;max-width:70px!important;height:auto;display:block}.sidebar-toggle{position:static!important;width:30px;height:30px;border:0;background:transparent;color:#fff;font-size:22px;cursor:pointer;border-radius:8px}.sidebar-toggle:hover{background:rgba(255,255,255,.08)}.sidebar-nav{padding:18px 14px 12px;overflow:auto;flex:1}.sidebar-nav::-webkit-scrollbar{width:5px}.sidebar-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:20px}.menu-group{margin:2px 0}.menu-group.dragging{opacity:.55}.menu-parent{height:42px;display:flex;align-items:center;gap:8px;border-radius:5px;color:#fff}.menu-parent .parent-link{flex:1;min-width:0;display:flex;align-items:center;gap:10px;color:#fff;font-weight:700;height:42px;padding:0}.menu-parent .nav-icon{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;font-size:17px}.drag-handle{width:15px;color:rgba(255,255,255,.42);cursor:grab;opacity:0;font-size:14px;line-height:1}.menu-parent:hover .drag-handle{opacity:1}.submenu-toggle{width:28px;height:28px;border:0;background:transparent;color:#fff;cursor:pointer;border-radius:6px;font-size:17px;line-height:1}.submenu-toggle:hover{background:rgba(255,255,255,.1)}.submenu{display:none;margin:2px 0 8px 20px;padding:2px 12px 2px 0;border-right:2px solid rgba(70,88,240,.75)}.menu-group.open .submenu{display:block}.submenu a{display:flex!important;height:35px!important;align-items:center;margin:3px 0!important;padding:0 14px!important;color:#fff!important;border-radius:5px!important;font-weight:700!important;font-size:13px}.submenu a:hover,.submenu a.active-sub{background:#4658f0!important;box-shadow:none!important;transform:none!important}.sidebar-bottom{border-top:1px solid rgba(255,255,255,.13);padding:12px 14px 14px;background:#12174e}.bottom-menu-toggle{width:100%;height:42px;border:0;background:transparent;color:#fff;display:flex;align-items:center;gap:10px;font-family:inherit;font-weight:700;cursor:pointer;border-radius:6px}.bottom-menu-toggle:hover{background:rgba(255,255,255,.08)}.bottom-menu-toggle strong{flex:1;text-align:right}.bottom-menu-toggle em{font-style:normal}.bottom-submenu{display:none;padding:0 34px 6px 0}.bottom-submenu.open{display:block}.bottom-submenu a{display:block;color:#dbe4ff;font-size:12px;padding:6px 0}.sidebar-system-text{margin:10px 10px;color:#dbe4ff;font-size:12px;line-height:1.8}.sidebar-system-text strong,.sidebar-system-text span,.sidebar-system-text small{display:block}.sidebar-user-row{height:42px;display:flex;align-items:center;gap:10px;color:#fff!important;border-radius:6px;padding:0 8px;font-weight:700}.sidebar-user-row:hover{background:rgba(255,255,255,.08)}.user-mini-avatar{width:25px;height:25px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef5ff;color:#4658f0}.sidebar-user-row strong{flex:1}.sidebar-user-row em{font-style:normal;color:#cbd5e1;font-size:12px}body.sidebar-collapsed .sidebar.formwork-sidebar{width:72px}body.sidebar-collapsed .main-content{margin-right:72px;width:calc(100% - 72px)}body.sidebar-collapsed .sidebar-mini-logo{width:42px!important;max-width:42px!important}body.sidebar-collapsed .sidebar-brand-row{padding:0 12px;justify-content:center}body.sidebar-collapsed .sidebar-toggle{display:none}body.sidebar-collapsed .nav-title,body.sidebar-collapsed .submenu-toggle,body.sidebar-collapsed .submenu,body.sidebar-collapsed .drag-handle,body.sidebar-collapsed .sidebar-bottom{display:none!important}body.sidebar-collapsed .sidebar-nav{padding:16px 9px}body.sidebar-collapsed .menu-parent{justify-content:center}body.sidebar-collapsed .menu-parent .parent-link{justify-content:center;flex:0 0 44px}.page-actions-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-8px 0 24px;padding-bottom:14px;border-bottom:1px solid rgba(15,23,42,.18)}.page-actions-title{display:flex;align-items:center;gap:10px;color:#475569}.folder-icon{font-size:19px;color:#475569}.page-actions-buttons{display:flex;align-items:center;gap:10px;direction:rtl}.qa-btn{min-height:38px;border-radius:6px;border:1px solid rgba(15,23,42,.12);padding:8px 15px;font-family:inherit;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.qa-btn-dark{background:#33343f;color:#fff;border-color:#33343f}.qa-btn-light{background:#fff;color:#1f2937}.more-action-wrap{position:relative}.more-action-menu{position:absolute;top:calc(100% + 8px);left:0;min-width:170px;background:#33343f;border-radius:5px;padding:8px;display:none;z-index:30;box-shadow:0 16px 36px rgba(15,23,42,.22)}.more-action-menu:before{content:"";position:absolute;top:-7px;left:28px;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid #33343f}.more-action-wrap.open .more-action-menu{display:block}.more-action-menu button{width:100%;text-align:right;color:#fff;background:transparent;border:0;padding:10px 9px;border-radius:4px;cursor:pointer;font-family:inherit}.more-action-menu button:hover{background:rgba(255,255,255,.1)}.simple-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.58);z-index:200;display:flex;align-items:center;justify-content:center}.simple-modal{width:520px;max-width:92vw;background:#575864;color:#fff;border-radius:6px;padding:24px;box-shadow:0 18px 50px rgba(0,0,0,.25)}.simple-modal h3{margin:0 0 18px;font-size:22px}.simple-modal label{color:#fff}.simple-modal input{background:#fff;border-radius:4px;color:#111827;font-size:18px}.simple-modal-actions{display:flex;align-items:center;justify-content:space-between;margin-top:18px}@media(max-width:950px){.sidebar.formwork-sidebar{position:relative;width:100%}.main-content,body.sidebar-collapsed .main-content{margin-right:0;width:100%}.page-actions-bar{align-items:flex-start;flex-direction:column}}


/* نسخه ۱۲: اصلاح پایدار سایدبار، مودال و عملیات صفحه */
:root{
  --sidebar-width:250px !important;
  --qualio-sidebar:#12174e;
}
.sidebar.imx-sidebar{
  width:250px !important;
  min-width:250px !important;
  background:#12174e !important;
  color:#fff !important;
  padding:0 !important;
  display:flex !important;
  flex-direction:column !important;
  box-shadow:none !important;
  border-left:1px solid rgba(255,255,255,.08) !important;
  overflow:hidden !important;
}
.main-content{
  margin-right:250px !important;
  width:calc(100% - 250px) !important;
}
.sidebar-brand-row{
  height:58px !important;
  min-height:58px !important;
  border-bottom:1px solid rgba(255,255,255,.14) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:0 18px !important;
}
.sidebar-mini-logo{
  width:72px !important;
  max-width:72px !important;
  height:auto !important;
  display:block !important;
}
.sidebar-toggle{
  position:static !important;
  width:32px !important;
  height:32px !important;
  border:0 !important;
  background:transparent !important;
  color:#fff !important;
  font-size:26px !important;
  border-radius:8px !important;
  cursor:pointer !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.sidebar-toggle:hover{background:rgba(255,255,255,.08) !important}
.sidebar-toggle .toggle-collapsed{display:none}
body.sidebar-collapsed .sidebar-toggle .toggle-expanded{display:none}
body.sidebar-collapsed .sidebar-toggle .toggle-collapsed{display:inline}
.sidebar-nav{
  flex:1 1 auto !important;
  overflow:auto !important;
  padding:16px 14px 12px !important;
}
.menu-group{
  margin:2px 0 !important;
  border-radius:6px !important;
}
.menu-group.dragging{opacity:.55 !important}
.menu-parent{
  min-height:42px !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  border-radius:6px !important;
}
.menu-parent:hover{background:rgba(255,255,255,.045) !important}
.drag-handle{
  width:15px !important;
  cursor:grab !important;
  color:rgba(255,255,255,.46) !important;
  opacity:0 !important;
  font-size:14px !important;
  user-select:none !important;
}
.menu-parent:hover .drag-handle{opacity:1 !important}
.parent-link{
  flex:1 1 auto !important;
  min-width:0 !important;
  height:42px !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  color:#fff !important;
  font-weight:700 !important;
  padding:0 !important;
}
.parent-link:hover,
.parent-link.active{
  color:#fff !important;
  background:transparent !important;
  box-shadow:none !important;
  transform:none !important;
}
.nav-icon{
  width:24px !important;
  min-width:24px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:17px !important;
}
.nav-title{
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.submenu-toggle{
  width:28px !important;
  height:28px !important;
  border:0 !important;
  background:transparent !important;
  color:#fff !important;
  cursor:pointer !important;
  border-radius:6px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:17px !important;
}
.submenu-toggle:hover{background:rgba(255,255,255,.1) !important}
.submenu{
  display:none !important;
  margin:2px 0 8px 20px !important;
  padding:2px 12px 2px 0 !important;
  border-right:2px solid rgba(70,88,240,.9) !important;
}
.menu-group.open .submenu{display:block !important}
.submenu a{
  height:35px !important;
  display:flex !important;
  align-items:center !important;
  color:#fff !important;
  margin:3px 0 !important;
  padding:0 14px !important;
  border-radius:5px !important;
  font-size:13px !important;
  font-weight:700 !important;
}
.submenu a:hover,
.submenu a.active-sub{
  background:#4658f0 !important;
  color:#fff !important;
  transform:none !important;
  box-shadow:none !important;
}
.sidebar-bottom{
  flex:0 0 auto !important;
  border-top:1px solid rgba(255,255,255,.13) !important;
  padding:12px 14px 14px !important;
  background:#12174e !important;
}
.bottom-menu-toggle{
  width:100% !important;
  height:40px !important;
  border:0 !important;
  background:transparent !important;
  color:#fff !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  font-family:inherit !important;
  font-weight:700 !important;
  cursor:pointer !important;
  border-radius:6px !important;
}
.bottom-menu-toggle:hover{background:rgba(255,255,255,.08) !important}
.bottom-menu-toggle strong{flex:1;text-align:right}
.bottom-menu-toggle em{font-style:normal}
.bottom-submenu{display:none;padding:0 32px 6px 0}
.bottom-submenu.open{display:block}
.bottom-submenu a{display:block;color:#dbe4ff;font-size:12px;padding:6px 0}
.sidebar-system-text{
  margin:10px 10px !important;
  color:#dbe4ff !important;
  font-size:12px !important;
  line-height:1.8 !important;
}
.sidebar-system-text strong,.sidebar-system-text span,.sidebar-system-text small{display:block}
.sidebar-user-row{
  height:40px !important;
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  color:#fff !important;
  border-radius:6px !important;
  padding:0 8px !important;
  font-weight:700 !important;
}
.sidebar-user-row:hover{background:rgba(255,255,255,.08) !important}
.user-mini-avatar{
  width:25px !important;
  height:25px !important;
  border-radius:50% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#eef5ff !important;
  color:#4658f0 !important;
}
.sidebar-user-row strong{flex:1}
.sidebar-user-row em{font-style:normal;color:#cbd5e1;font-size:12px}
body.sidebar-collapsed .sidebar.imx-sidebar{
  width:76px !important;
  min-width:76px !important;
}
body.sidebar-collapsed .main-content{
  margin-right:76px !important;
  width:calc(100% - 76px) !important;
}
body.sidebar-collapsed .sidebar-brand-row{
  padding:0 12px !important;
  justify-content:center !important;
  gap:4px !important;
  flex-direction:column !important;
  height:74px !important;
}
body.sidebar-collapsed .sidebar-mini-logo{
  width:40px !important;
  max-width:40px !important;
}
body.sidebar-collapsed .sidebar-toggle{
  width:28px !important;
  height:24px !important;
  font-size:22px !important;
}
body.sidebar-collapsed .nav-title,
body.sidebar-collapsed .submenu,
body.sidebar-collapsed .submenu-toggle,
body.sidebar-collapsed .drag-handle,
body.sidebar-collapsed .sidebar-bottom{
  display:none !important;
}
body.sidebar-collapsed .sidebar-nav{
  padding:12px 9px !important;
}
body.sidebar-collapsed .menu-parent{
  justify-content:center !important;
}
body.sidebar-collapsed .parent-link{
  flex:0 0 46px !important;
  justify-content:center !important;
  padding:0 !important;
}
.page-actions-bar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  margin:0 0 24px !important;
  padding-bottom:14px !important;
  border-bottom:1px solid rgba(15,23,42,.18) !important;
}
.page-actions-title{display:flex;align-items:center;gap:10px;color:#475569}
.folder-icon{font-size:18px;color:#475569}
.page-actions-buttons{display:flex;align-items:center;gap:10px;direction:rtl}
.qa-btn{
  min-height:38px !important;
  border-radius:6px !important;
  border:1px solid rgba(15,23,42,.12) !important;
  padding:8px 15px !important;
  font-family:inherit !important;
  font-weight:800 !important;
  cursor:pointer !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.qa-btn-dark{background:#33343f !important;color:#fff !important;border-color:#33343f !important}
.qa-btn-light{background:#fff !important;color:#1f2937 !important}
.more-action-wrap{position:relative}
.more-action-menu{
  position:absolute !important;
  top:calc(100% + 8px) !important;
  left:0 !important;
  min-width:170px !important;
  background:#33343f !important;
  border-radius:5px !important;
  padding:8px !important;
  display:none !important;
  z-index:80 !important;
  box-shadow:0 16px 36px rgba(15,23,42,.22) !important;
}
.more-action-wrap.open .more-action-menu{display:block !important}
.more-action-menu::before{
  content:"";
  position:absolute;
  top:-7px;
  left:28px;
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-bottom:8px solid #33343f;
}
.more-action-menu button{
  width:100%;
  text-align:right;
  color:#fff;
  background:transparent;
  border:0;
  padding:10px 9px;
  border-radius:4px;
  cursor:pointer;
  font-family:inherit;
}
.more-action-menu button:hover{background:rgba(255,255,255,.1)}
.simple-modal-backdrop{
  position:fixed !important;
  inset:0 !important;
  background:rgba(15,23,42,.58) !important;
  z-index:200 !important;
  display:none !important;
  align-items:center !important;
  justify-content:center !important;
}
.simple-modal-backdrop.is-visible{display:flex !important}
.simple-modal{
  width:520px !important;
  max-width:92vw !important;
  background:#575864 !important;
  color:#fff !important;
  border-radius:6px !important;
  padding:24px !important;
  box-shadow:0 18px 50px rgba(0,0,0,.25) !important;
}
.simple-modal h3{margin:0 0 18px;font-size:22px;color:#fff}
.simple-modal label{color:#fff}
.simple-modal input{background:#fff;border-radius:4px;color:#111827;font-size:18px}
.simple-modal-actions{display:flex;align-items:center;justify-content:space-between;margin-top:18px}
@media(max-width:950px){
  .sidebar.imx-sidebar{position:relative !important;width:100% !important;min-width:100% !important}
  .main-content,body.sidebar-collapsed .main-content{margin-right:0 !important;width:100% !important}
  .page-actions-bar{align-items:flex-start !important;flex-direction:column !important}
}


/* حالت جمع سایدبار */
body.sidebar-collapsed .nav-title.collapsed-hide {
    display: none !important;
}
body.sidebar-collapsed .submenu {
    display: none !important;
}
body.sidebar-collapsed .drag-handle {
    display: none !important;
}


/* نسخه ۱۴: رفع خطای قالب، حالت جمع استاندارد سایدبار و مودال بدون تداخل */
body.sidebar-collapsed .nav-title,
body.sidebar-collapsed .submenu,
body.sidebar-collapsed .submenu-toggle,
body.sidebar-collapsed .drag-handle,
body.sidebar-collapsed .sidebar-bottom {
  display: none !important;
}

body.sidebar-collapsed .sidebar.imx-sidebar,
body.sidebar-collapsed .sidebar.formwork-sidebar {
  width: 76px !important;
  min-width: 76px !important;
  overflow: hidden !important;
}

body.sidebar-collapsed .main-content {
  margin-right: 76px !important;
  width: calc(100% - 76px) !important;
}

body.sidebar-collapsed .parent-link {
  justify-content: center !important;
  width: 46px !important;
  flex: 0 0 46px !important;
}

body.sidebar-collapsed .menu-parent {
  justify-content: center !important;
}

body.sidebar-collapsed .sidebar-brand-row {
  padding: 0 10px !important;
}

body.sidebar-collapsed .sidebar-mini-logo {
  width: 38px !important;
  max-width: 38px !important;
}

.simple-modal-backdrop {
  display: none !important;
}

.simple-modal-backdrop.is-visible {
  display: flex !important;
}

.page-actions-bar {
  direction: rtl;
}


/* نسخه ۱۶: آیکون‌های سفارشی سایدبار و حالت انتخاب آیتم */
.nav-icon img{
  width:18px;
  height:18px;
  display:block;
  object-fit:contain;
}
.nav-icon.small img{
  width:16px;
  height:16px;
}
.menu-group.is-current > .menu-parent{
  background:rgba(70,88,240,.16) !important;
  border-radius:8px !important;
}
.menu-group.is-current > .menu-parent .parent-link,
.menu-group.is-current > .menu-parent .nav-title{
  color:#ffffff !important;
}
.menu-group.is-current > .menu-parent::before{
  content:"";
  display:block;
  width:3px;
  height:24px;
  border-radius:99px;
  background:#7485ff;
  margin-right:0;
  margin-left:2px;
}
.menu-group .menu-parent{
  padding:0 8px;
}
body.sidebar-collapsed .menu-group.is-current > .menu-parent::before,
body.sidebar-collapsed .nav-title,
body.sidebar-collapsed .nav-icon.small,
body.sidebar-collapsed .bottom-menu-toggle,
body.sidebar-collapsed .submenu-toggle,
body.sidebar-collapsed .submenu,
body.sidebar-collapsed .drag-handle,
body.sidebar-collapsed .sidebar-bottom{
  display:none !important;
}
body.sidebar-collapsed .menu-parent{
  padding:0 !important;
}


/* نسخه ۱۷: فشرده‌سازی پایین سایدبار و آیکون برای همه آیتم‌ها */
.sidebar-nav{
  padding-bottom:10px !important;
}
.sidebar-bottom{
  padding:8px 12px 10px !important;
  border-top:1px solid rgba(255,255,255,.10) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)) !important;
}
.bottom-menu-toggle{
  height:36px !important;
  font-size:14px !important;
  gap:8px !important;
}
.bottom-submenu{
  padding:2px 26px 4px 0 !important;
}
.bottom-submenu a,
.submenu a{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}
.submenu-item-icon{
  width:16px;
  min-width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity:.95;
}
.submenu-item-icon img,
.system-mini-icon img,
.sidebar-user-row em img{
  width:15px;
  height:15px;
  display:block;
  object-fit:contain;
}
.submenu a{
  min-height:32px !important;
  padding:0 12px !important;
  font-size:12.5px !important;
}
.bottom-submenu a{
  min-height:30px !important;
  color:#dbe4ff !important;
  font-size:12px !important;
  border-radius:6px !important;
  padding:0 8px !important;
}
.bottom-submenu a:hover{
  background:rgba(255,255,255,.08) !important;
}
.sidebar-system-text{
  margin:8px 4px 8px !important;
  padding:8px 10px !important;
  background:rgba(255,255,255,.04) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:10px !important;
  display:grid !important;
  grid-template-columns:18px 1fr;
  column-gap:8px;
  row-gap:1px;
  align-items:start;
  font-size:11px !important;
  line-height:1.55 !important;
}
.system-mini-icon{
  grid-row:1 / span 3;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  opacity:.9;
  margin-top:1px;
}
.sidebar-system-text strong,
.sidebar-system-text span,
.sidebar-system-text small{
  display:block !important;
  margin:0 !important;
}
.sidebar-system-text strong{font-size:11px !important}
.sidebar-system-text span,
.sidebar-system-text small{opacity:.84}
.sidebar-user-row{
  height:36px !important;
  margin-top:4px !important;
  padding:0 8px !important;
  background:rgba(255,255,255,.02) !important;
  border:1px solid rgba(255,255,255,.06) !important;
}
.sidebar-user-row strong{
  font-size:13px !important;
}
.sidebar-user-row em{
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;
  color:#dbe4ff !important;
}
.nav-icon.small{
  width:18px !important;
  min-width:18px !important;
  height:18px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.menu-group.is-current > .submenu{
  border-right-color:#6b7cff !important;
}


/* نسخه ۱۸: مرتب‌سازی منو با موس و ذخیره ترتیب */
.drag-handle{
  opacity:1 !important;
  width:22px !important;
  min-width:22px !important;
  height:28px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:grab !important;
  color:rgba(255,255,255,.72) !important;
  font-size:15px !important;
  border-radius:7px !important;
  user-select:none !important;
}
.drag-handle:hover{
  background:rgba(255,255,255,.10) !important;
  color:#fff !important;
}
.menu-group.dragging{
  opacity:.45 !important;
  transform:scale(.98) !important;
}
.sidebar-nav.is-sorting .menu-group:not(.dragging){
  transition:transform .16s ease, background .16s ease !important;
}
.sidebar-nav.is-sorting .menu-parent{
  cursor:grabbing !important;
}
.menu-group[draggable="true"] .menu-parent{
  cursor:grab !important;
}
.menu-group[draggable="true"] .menu-parent:active{
  cursor:grabbing !important;
}
body.sidebar-collapsed .drag-handle{
  display:none !important;
}


/* نسخه ۲۱: Drag & Drop واقعی با شناور شدن آیتم از روی دستگیره */
.drag-handle{
  opacity:1 !important;
  width:24px !important;
  min-width:24px !important;
  height:30px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:grab !important;
  color:rgba(255,255,255,.78) !important;
  font-size:16px !important;
  border-radius:8px !important;
  user-select:none !important;
  touch-action:none !important;
}
.drag-handle:hover{
  background:rgba(255,255,255,.12) !important;
  color:#fff !important;
}
.drag-handle:active{
  cursor:grabbing !important;
}
.menu-is-dragging,
.menu-is-dragging *{
  cursor:grabbing !important;
  user-select:none !important;
}
.pointer-dragging{
  opacity:.96 !important;
  transform:scale(1.025) rotate(-.4deg) !important;
  background:#1e2670 !important;
  border-radius:10px !important;
  box-shadow:0 18px 42px rgba(0,0,0,.35) !important;
}
.pointer-dragging .submenu{
  display:none !important;
}
.drag-placeholder{
  border:1px dashed rgba(255,255,255,.36) !important;
  background:rgba(255,255,255,.08) !important;
  border-radius:10px !important;
  margin:5px 0 !important;
}
.sidebar-nav.is-sorting .menu-group:not(.pointer-dragging){
  transition:transform .14s ease, background .14s ease !important;
}
body.sidebar-collapsed .drag-handle{
  display:none !important;
}


/* نسخه ۲۲: اصلاح بخش پایین سایدبار؛ یکپارچه با اسکرول منو، نه ثابت */
.sidebar.imx-sidebar{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  display:block !important;
  height:100vh !important;
  padding:0 !important;
}

.sidebar.imx-sidebar::-webkit-scrollbar{
  width:6px !important;
}

.sidebar.imx-sidebar::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.22) !important;
  border-radius:999px !important;
}

.sidebar-brand-row{
  position:relative !important;
  top:auto !important;
  z-index:2 !important;
  background:#12174e !important;
}

.sidebar-nav{
  overflow:visible !important;
  flex:none !important;
  min-height:auto !important;
  padding-bottom:28px !important;
}

.sidebar-bottom{
  position:relative !important;
  inset:auto !important;
  bottom:auto !important;
  top:auto !important;
  flex:none !important;
  margin-top:72px !important;
  padding:14px 12px 18px !important;
  background:transparent !important;
  border-top:1px solid rgba(255,255,255,.14) !important;
  box-shadow:none !important;
}

.sidebar-bottom::before{
  content:"";
  display:block;
  height:1px;
  margin:-14px 0 14px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}

.bottom-menu-toggle{
  background:transparent !important;
}

.bottom-menu-toggle:hover,
.sidebar-user-row:hover{
  background:rgba(255,255,255,.08) !important;
}

.sidebar-system-text,
.sidebar-user-row{
  background:rgba(255,255,255,.045) !important;
}

/* وقتی سایدبار جمع می‌شود، بخش پایین مخفی بماند تا ظاهر تمیز باشد */
body.sidebar-collapsed .sidebar.imx-sidebar{
  overflow-y:auto !important;
}

body.sidebar-collapsed .sidebar-bottom{
  display:none !important;
}

/* هنگام درگ، محاسبه محدوده اسکرول با کل سایدبار بهتر انجام شود */
.menu-is-dragging .sidebar.imx-sidebar{
  scroll-behavior:auto !important;
}


/* نسخه ۲۳: بهینه‌سازی ظاهر فلش‌های باز و بسته شدن منو */
.submenu-toggle,
.bottom-menu-toggle em.bottom-toggle-chevron{
  font-size:0 !important;
  line-height:0 !important;
}

.submenu-toggle{
  width:30px !important;
  height:30px !important;
  border:0 !important;
  background:transparent !important;
  border-radius:8px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  position:relative !important;
  flex:0 0 30px !important;
}

.submenu-toggle::before{
  content:"" !important;
  width:8px !important;
  height:8px !important;
  display:block !important;
  border-right:2px solid rgba(255,255,255,.96) !important;
  border-bottom:2px solid rgba(255,255,255,.96) !important;
  transform:rotate(45deg) translateY(-1px) !important;
  transform-origin:center !important;
  transition:transform .18s ease, opacity .18s ease !important;
  opacity:.96 !important;
}

.submenu-toggle:hover{
  background:rgba(255,255,255,.10) !important;
}

.submenu-toggle.is-open::before,
.menu-group.open > .menu-parent .submenu-toggle::before{
  transform:rotate(225deg) translateY(1px) !important;
}

.bottom-menu-toggle{
  position:relative !important;
}

.bottom-menu-toggle em.bottom-toggle-chevron{
  width:18px !important;
  height:18px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin-right:auto !important;
  margin-left:0 !important;
  flex:0 0 18px !important;
}

.bottom-menu-toggle em.bottom-toggle-chevron::before{
  content:"" !important;
  width:7px !important;
  height:7px !important;
  display:block !important;
  border-right:2px solid rgba(255,255,255,.94) !important;
  border-bottom:2px solid rgba(255,255,255,.94) !important;
  transform:rotate(45deg) !important;
  transition:transform .18s ease !important;
}

.bottom-menu-toggle.is-open em.bottom-toggle-chevron::before{
  transform:rotate(225deg) translateY(1px) !important;
}

body.sidebar-collapsed .submenu-toggle{
  display:none !important;
}


/* نسخه ۲۴: فلش‌های سایدبار مطابق نمونه Qualio */
.submenu-toggle{
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  flex:0 0 28px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  border-radius:8px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  position:relative !important;
  font-size:0 !important;
  line-height:0 !important;
  color:transparent !important;
}

.submenu-toggle:hover{
  background:rgba(255,255,255,.08) !important;
}

.submenu-toggle::before{
  content:"" !important;
  width:7px !important;
  height:7px !important;
  display:block !important;
  border-right:2px solid #ffffff !important;
  border-bottom:2px solid #ffffff !important;
  transform:rotate(45deg) !important;
  transform-origin:50% 50% !important;
  opacity:.98 !important;
  transition:transform .18s ease, opacity .18s ease !important;
}

/* حالت باز: فلش رو به بالا مثل تصویر نمونه */
.submenu-toggle.is-open::before,
.menu-group.open > .menu-parent .submenu-toggle::before{
  transform:rotate(225deg) !important;
}

.bottom-menu-toggle em.bottom-toggle-chevron{
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  flex:0 0 22px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  margin:0 !important;
  font-size:0 !important;
  line-height:0 !important;
}

.bottom-menu-toggle em.bottom-toggle-chevron::before{
  content:"" !important;
  width:7px !important;
  height:7px !important;
  display:block !important;
  border-right:2px solid #ffffff !important;
  border-bottom:2px solid #ffffff !important;
  transform:rotate(45deg) !important;
  transform-origin:50% 50% !important;
  transition:transform .18s ease !important;
}

.bottom-menu-toggle.is-open em.bottom-toggle-chevron::before{
  transform:rotate(225deg) !important;
}

body.sidebar-collapsed .submenu-toggle{
  display:none !important;
}


/* نسخه ۲۵: حذف خط بنفش از آیتم‌های اصلی و نمایش فقط برای زیرمنو */
.menu-group.is-current > .menu-parent::before{
  display:none !important;
  content:none !important;
}

.menu-group > .menu-parent::before{
  display:none !important;
  content:none !important;
}

.menu-group.open > .submenu{
  border-right:2px solid #5366ff !important;
  padding-right:12px !important;
  margin-right:18px !important;
}

.submenu{
  border-right:2px solid rgba(83,102,255,.78) !important;
}

.menu-group:not(.open) > .submenu{
  border-right:0 !important;
}

.submenu a.active-sub{
  position:relative !important;
}

.submenu a.active-sub::before{
  content:"" !important;
  position:absolute !important;
  right:-14px !important;
  top:7px !important;
  bottom:7px !important;
  width:3px !important;
  border-radius:999px !important;
  background:#ffffff !important;
}

/* اطمینان از اینکه آیتم اصلی فقط با پس‌زمینه فعال مشخص شود، نه خط کناری */
.menu-group.is-current > .menu-parent{
  background:rgba(70,88,240,.16) !important;
  border-radius:8px !important;
  border-right:0 !important;
  border-left:0 !important;
  box-shadow:none !important;
}


/* نسخه ۲۶: اصلاح انتخاب زیرمنو و حذف خط سفید اضافی */

/* آیتم اصلی وقتی زیرمنوی آن فعال است، دیگر حالت انتخاب‌شده نگیرد */
.menu-group.is-current > .menu-parent{
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
}

/* پس‌زمینه آیتم اصلی فقط هنگام hover یا drag بماند، نه active دائمی */
.menu-group.is-current > .menu-parent .parent-link,
.menu-group.is-current > .menu-parent .nav-title{
  color:#ffffff !important;
}

/* حذف کامل خط سفید کنار زیرمنوی انتخاب‌شده */
.submenu a.active-sub::before{
  display:none !important;
  content:none !important;
}

/* رنگ خط کنار زیرمنو مشابه نمونه */
.menu-group.open > .submenu,
.submenu{
  border-right:2px solid #5366ff !important;
  padding-right:12px !important;
  margin-right:18px !important;
}

/* آیتم انتخاب‌شده فقط خود زیرمنو باشد */
.submenu a.active-sub{
  background:#4658f0 !important;
  color:#ffffff !important;
  border-radius:6px !important;
  box-shadow:none !important;
}

/* جلوگیری از نمایش هر نوع خط روی آیتم اصلی */
.menu-group > .menu-parent::before,
.menu-group.is-current > .menu-parent::before{
  display:none !important;
  content:none !important;
}

/* فلش و عنوان آیتم اصلی بدون پس‌زمینه انتخاب بمانند */
.menu-group.is-current > .menu-parent:hover{
  background:rgba(255,255,255,.045) !important;
}

/* اگر لینک اصلی کلاس active داشت، آن هم باعث انتخاب والد نشود */
.menu-parent .parent-link.active{
  background:transparent !important;
  box-shadow:none !important;
  transform:none !important;
}

/* در داشبورد اگر زیرمنو فعال است، فقط زیرمنو هایلایت شود */
.menu-group.default-open.is-current > .menu-parent{
  background:transparent !important;
}


/* نسخه ۲۷: اصلاح حالت بسته سایدبار، هاور و انتخاب آیتم‌ها */

/* در حالت بسته، هیچ زیرمنویی نمایش داده نشود */
body.sidebar-collapsed .submenu,
body.sidebar-collapsed .menu-group.open > .submenu,
body.sidebar-collapsed .bottom-submenu,
body.sidebar-collapsed .bottom-submenu.open{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  overflow:hidden !important;
  border:0 !important;
  margin:0 !important;
  padding:0 !important;
}

/* در حالت بسته فقط آیکون‌های آیتم اصلی دیده شوند */
body.sidebar-collapsed .nav-title,
body.sidebar-collapsed .collapsed-hide,
body.sidebar-collapsed .submenu-toggle,
body.sidebar-collapsed .drag-handle,
body.sidebar-collapsed .sidebar-bottom{
  display:none !important;
}

body.sidebar-collapsed .menu-parent{
  justify-content:center !important;
  padding:0 !important;
  margin:6px auto !important;
  width:48px !important;
  min-height:46px !important;
  border-radius:12px !important;
}

body.sidebar-collapsed .parent-link{
  width:48px !important;
  height:44px !important;
  flex:0 0 48px !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  padding:0 !important;
  background:transparent !important;
}

body.sidebar-collapsed .menu-group.is-current > .menu-parent{
  background:rgba(70,88,240,.22) !important;
}

/* هاور آیتم‌های اصلی مثل نمونه */
.menu-parent{
  transition:background .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

.menu-parent:hover{
  background:rgba(255,255,255,.075) !important;
  box-shadow:none !important;
}

.menu-parent:hover .parent-link{
  color:#ffffff !important;
}

/* انتخاب آیتم اصلی فقط وقتی خود همان آیتم صفحه فعال است */
.menu-parent .parent-link.active{
  background:#4658f0 !important;
  color:#ffffff !important;
  border-radius:10px !important;
  box-shadow:none !important;
  transform:none !important;
  padding-right:12px !important;
  padding-left:12px !important;
}

/* اگر زیرمنو فعال است، والد نباید مثل آیتم انتخاب‌شده هایلایت شود */
.menu-group.is-current > .menu-parent{
  background:transparent !important;
  box-shadow:none !important;
}

.menu-group.is-current > .menu-parent .parent-link.active{
  background:transparent !important;
}

/* زیرمنوی انتخاب‌شده فقط خودش هایلایت شود */
.submenu a:hover{
  background:rgba(255,255,255,.075) !important;
  color:#ffffff !important;
}

.submenu a.active-sub{
  background:#4658f0 !important;
  color:#ffffff !important;
  border-radius:7px !important;
}

/* خط بنفش فقط کنار زیرمنوها */
.menu-group > .menu-parent::before,
.menu-group.is-current > .menu-parent::before{
  display:none !important;
  content:none !important;
}

.menu-group.open > .submenu{
  border-right:2px solid #5366ff !important;
  margin-right:18px !important;
  padding-right:12px !important;
}

/* حذف هر خط سفید اضافی */
.submenu a.active-sub::before{
  display:none !important;
  content:none !important;
}


/* نسخه ۲۸: اصلاح رنگ هاور سایدبار نزدیک به نمونه Qualio */
.menu-parent:hover{
  background:#232b78 !important;
  box-shadow:inset 3px 0 0 #5366ff !important;
}

.menu-parent:hover .parent-link,
.menu-parent:hover .nav-title{
  color:#ffffff !important;
}

.menu-parent:hover .nav-icon img{
  opacity:1 !important;
}

/* هاور آیتم اصلی، با active تفاوت داشته باشد */
.menu-parent .parent-link.active{
  background:#4658f0 !important;
  color:#ffffff !important;
  border-radius:10px !important;
}

/* وقتی والد فقط به خاطر زیرمنو current است، خودش هایلایت دائمی نشود */
.menu-group.is-current > .menu-parent{
  background:transparent !important;
  box-shadow:none !important;
}

.menu-group.is-current > .menu-parent:hover{
  background:#232b78 !important;
  box-shadow:inset 3px 0 0 #5366ff !important;
}

/* هاور زیرمنوها کمی روشن‌تر از زمینه ولی ضعیف‌تر از انتخاب باشد */
.submenu a:hover{
  background:#252d80 !important;
  color:#ffffff !important;
  border-radius:7px !important;
}

/* انتخاب زیرمنو رنگ اصلی پررنگ‌تر داشته باشد */
.submenu a.active-sub{
  background:#4658f0 !important;
  color:#ffffff !important;
  border-radius:7px !important;
}

/* هاور آیتم‌های پایین سایدبار */
.bottom-menu-toggle:hover,
.sidebar-user-row:hover,
.bottom-submenu a:hover{
  background:#232b78 !important;
  color:#ffffff !important;
  box-shadow:inset 3px 0 0 #5366ff !important;
}

/* در حالت بسته هم هاور آیکون‌ها واضح باشد */
body.sidebar-collapsed .menu-parent:hover{
  background:#232b78 !important;
  box-shadow:inset 3px 0 0 #5366ff !important;
}


/* نسخه ۲۹: هاور ملایم و جدا از رنگ انتخاب‌شده */

/* رنگ هاور بسیار ملایم؛ شبیه انتخاب نباشد */
.menu-parent:hover{
  background:rgba(255,255,255,.055) !important;
  box-shadow:none !important;
}

.menu-parent:hover .parent-link,
.menu-parent:hover .nav-title{
  color:#ffffff !important;
}

/* رنگ انتخاب اصلی واضح و متفاوت از هاور */
.menu-parent .parent-link.active{
  background:#4658f0 !important;
  color:#ffffff !important;
  border-radius:10px !important;
  box-shadow:none !important;
}

/* اگر والد فقط به خاطر زیرمنو current است، خودش رنگ انتخاب نگیرد */
.menu-group.is-current > .menu-parent{
  background:transparent !important;
  box-shadow:none !important;
}

.menu-group.is-current > .menu-parent:hover{
  background:rgba(255,255,255,.055) !important;
  box-shadow:none !important;
}

/* زیرمنوی انتخاب‌شده پررنگ بماند */
.submenu a.active-sub{
  background:#4658f0 !important;
  color:#ffffff !important;
  border-radius:7px !important;
}

/* هاور زیرمنوها هم ملایم و متفاوت از انتخاب */
.submenu a:hover{
  background:rgba(255,255,255,.075) !important;
  color:#ffffff !important;
  border-radius:7px !important;
}

/* بخش پایین سایدبار: هاور ملایم */
.bottom-menu-toggle:hover,
.sidebar-user-row:hover,
.bottom-submenu a:hover{
  background:rgba(255,255,255,.055) !important;
  color:#ffffff !important;
  box-shadow:none !important;
}

/* در حالت بسته، هاور فقط کمی روشن شود */
body.sidebar-collapsed .menu-parent:hover{
  background:rgba(255,255,255,.065) !important;
  box-shadow:none !important;
}

/* هنگام درگ یا انتخاب، رنگ‌ها با هاور قاطی نشوند */
.pointer-dragging{
  background:#232b78 !important;
}


/* نسخه ۳۰: اصلاح نهایی رنگ هاور؛ هاور با انتخاب اشتباه نشود */

/* رنگ اصلی انتخاب‌شده */
:root{
  --imedix-sidebar-selected:#4658f0;
  --imedix-sidebar-hover:rgba(255,255,255,.035);
  --imedix-sidebar-hover-border:rgba(255,255,255,.10);
}

/* حذف تمام رنگ‌های هاور پررنگ قبلی */
.sidebar .menu-parent:hover,
.sidebar.imx-sidebar .menu-parent:hover,
.sidebar .menu-group.is-current > .menu-parent:hover,
.sidebar.imx-sidebar .menu-group.is-current > .menu-parent:hover{
  background:var(--imedix-sidebar-hover) !important;
  box-shadow:inset 0 0 0 1px var(--imedix-sidebar-hover-border) !important;
  transform:none !important;
}

/* لینک داخل آیتم اصلی در hover نباید مثل انتخاب آبی شود */
.sidebar .menu-parent:hover .parent-link,
.sidebar.imx-sidebar .menu-parent:hover .parent-link{
  background:transparent !important;
  color:#ffffff !important;
  box-shadow:none !important;
  transform:none !important;
}

/* آیتم اصلی فقط وقتی خودش واقعاً active است آبی شود */
.sidebar .menu-parent .parent-link.active,
.sidebar.imx-sidebar .menu-parent .parent-link.active{
  background:var(--imedix-sidebar-selected) !important;
  color:#ffffff !important;
  border-radius:10px !important;
  box-shadow:none !important;
}

/* اگر گروه فقط به خاطر زیرمنوی فعال current شده، والد آبی نشود */
.sidebar .menu-group.is-current > .menu-parent,
.sidebar.imx-sidebar .menu-group.is-current > .menu-parent{
  background:transparent !important;
  box-shadow:none !important;
}

/* اگر والد current بود و موس روی آن رفت، فقط hover ملایم بگیرد */
.sidebar .menu-group.is-current > .menu-parent:hover,
.sidebar.imx-sidebar .menu-group.is-current > .menu-parent:hover{
  background:var(--imedix-sidebar-hover) !important;
  box-shadow:inset 0 0 0 1px var(--imedix-sidebar-hover-border) !important;
}

/* زیرمنو: hover ملایم و متفاوت از انتخاب */
.sidebar .submenu a:hover,
.sidebar.imx-sidebar .submenu a:hover{
  background:rgba(255,255,255,.05) !important;
  color:#ffffff !important;
  border-radius:7px !important;
  box-shadow:none !important;
}

/* زیرمنوی انتخاب‌شده واضح و آبی بماند */
.sidebar .submenu a.active-sub,
.sidebar.imx-sidebar .submenu a.active-sub{
  background:var(--imedix-sidebar-selected) !important;
  color:#ffffff !important;
  border-radius:7px !important;
  box-shadow:none !important;
}

/* زیرمنوی انتخاب‌شده اگر hover شود همچنان انتخاب‌شده بماند */
.sidebar .submenu a.active-sub:hover,
.sidebar.imx-sidebar .submenu a.active-sub:hover{
  background:var(--imedix-sidebar-selected) !important;
}

/* بخش پایین سایدبار: hover ملایم */
.sidebar .bottom-menu-toggle:hover,
.sidebar .sidebar-user-row:hover,
.sidebar .bottom-submenu a:hover,
.sidebar.imx-sidebar .bottom-menu-toggle:hover,
.sidebar.imx-sidebar .sidebar-user-row:hover,
.sidebar.imx-sidebar .bottom-submenu a:hover{
  background:rgba(255,255,255,.045) !important;
  color:#ffffff !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.09) !important;
}

/* حالت بسته هم hover ملایم باشد */
body.sidebar-collapsed .sidebar .menu-parent:hover,
body.sidebar-collapsed .sidebar.imx-sidebar .menu-parent:hover{
  background:rgba(255,255,255,.055) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10) !important;
}

/* در حالت درگ، رنگ متفاوت از hover و selected باشد */
.pointer-dragging{
  background:#202764 !important;
  box-shadow:0 18px 42px rgba(0,0,0,.35) !important;
}


/* نسخه ۳۱: فقط یک آیتم فعال در سایدبار؛ والد و زیرمنو همزمان انتخاب نشوند */

/* لینک‌های اصلی والد هرگز رنگ انتخاب‌شده نگیرند */
.sidebar .menu-parent .parent-link.active,
.sidebar.imx-sidebar .menu-parent .parent-link.active,
.sidebar .menu-group.is-current > .menu-parent .parent-link,
.sidebar.imx-sidebar .menu-group.is-current > .menu-parent .parent-link{
  background:transparent !important;
  color:#ffffff !important;
  box-shadow:none !important;
  transform:none !important;
}

/* خود ردیف والد هم فقط در hover رنگ ملایم بگیرد، نه active */
.sidebar .menu-group.is-current > .menu-parent,
.sidebar.imx-sidebar .menu-group.is-current > .menu-parent{
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
}

/* اگر موس روی والد رفت، فقط هاور ملایم نشان داده شود */
.sidebar .menu-group.is-current > .menu-parent:hover,
.sidebar.imx-sidebar .menu-group.is-current > .menu-parent:hover,
.sidebar .menu-parent:hover,
.sidebar.imx-sidebar .menu-parent:hover{
  background:rgba(255,255,255,.035) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10) !important;
}

/* انتخاب فقط برای زیرمنوی واقعی */
.sidebar .submenu a.active-sub,
.sidebar.imx-sidebar .submenu a.active-sub{
  background:#4658f0 !important;
  color:#ffffff !important;
  border-radius:7px !important;
  box-shadow:none !important;
}

/* زیرمنوی انتخاب‌شده هنگام hover هم همان انتخاب‌شده بماند */
.sidebar .submenu a.active-sub:hover,
.sidebar.imx-sidebar .submenu a.active-sub:hover{
  background:#4658f0 !important;
}

/* زیرمنوهای غیرانتخاب‌شده فقط هاور ملایم داشته باشند */
.sidebar .submenu a:not(.active-sub):hover,
.sidebar.imx-sidebar .submenu a:not(.active-sub):hover{
  background:rgba(255,255,255,.05) !important;
  color:#ffffff !important;
}

/* خط بنفش فقط کانتینر زیرمنو، نه آیتم اصلی */
.menu-group > .menu-parent::before,
.menu-group.is-current > .menu-parent::before{
  display:none !important;
  content:none !important;
}


/* نسخه ۳۴: اصلاح نسخه ۳۱ بدون تغییر پایه ظاهری */

/* جلوگیری از بازشدن لحظه‌ای سایدبار قبل از اجرای جاوااسکریپت */
html.sidebar-collapsed-initial .sidebar.imx-sidebar,
html.sidebar-collapsed-initial .sidebar.formwork-sidebar{
  width:76px !important;
  min-width:76px !important;
  overflow:hidden !important;
  transition:none !important;
}

html.sidebar-collapsed-initial .main-content{
  margin-right:76px !important;
  width:calc(100% - 76px) !important;
  transition:none !important;
}

html.sidebar-collapsed-initial .submenu,
html.sidebar-collapsed-initial .menu-group.open > .submenu,
html.sidebar-collapsed-initial .bottom-submenu,
html.sidebar-collapsed-initial .bottom-submenu.open,
html.sidebar-collapsed-initial .sidebar-bottom,
html.sidebar-collapsed-initial .nav-title,
html.sidebar-collapsed-initial .collapsed-hide,
html.sidebar-collapsed-initial .submenu-toggle,
html.sidebar-collapsed-initial .drag-handle{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  overflow:hidden !important;
  border:0 !important;
  margin:0 !important;
  padding:0 !important;
}

html.sidebar-collapsed-initial .menu-parent{
  justify-content:center !important;
  padding:0 !important;
  margin:6px auto !important;
  width:48px !important;
  min-height:46px !important;
  border-radius:12px !important;
  transition:none !important;
}

html.sidebar-collapsed-initial .parent-link{
  width:48px !important;
  height:44px !important;
  flex:0 0 48px !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  padding:0 !important;
  background:transparent !important;
  transition:none !important;
}

html.sidebar-collapsed-initial .sidebar-brand-row{
  padding:0 10px !important;
}

html.sidebar-collapsed-initial .sidebar-mini-logo{
  width:38px !important;
  max-width:38px !important;
}

/* در حالت بسته، زیرمنوها نمایش داده نشوند */
body.sidebar-collapsed .submenu,
body.sidebar-collapsed .menu-group.open > .submenu,
body.sidebar-collapsed .bottom-submenu,
body.sidebar-collapsed .bottom-submenu.open{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  overflow:hidden !important;
  border:0 !important;
  margin:0 !important;
  padding:0 !important;
}

/* حذف انیمیشن عرضی هنگام رفتن بین صفحات */
body.sidebar-collapsed .sidebar.imx-sidebar,
body.sidebar-collapsed .main-content,
body.sidebar-collapsed .menu-parent,
body.sidebar-collapsed .parent-link{
  transition:none !important;
}

/* فقط زیرمنوی فعال انتخاب شود؛ والد همزمان هایلایت نشود */
.sidebar .menu-parent .parent-link.active,
.sidebar.imx-sidebar .menu-parent .parent-link.active,
.sidebar .menu-group.is-current > .menu-parent .parent-link,
.sidebar.imx-sidebar .menu-group.is-current > .menu-parent .parent-link{
  background:transparent !important;
  color:#ffffff !important;
  box-shadow:none !important;
  transform:none !important;
}

.sidebar .menu-group.is-current > .menu-parent,
.sidebar.imx-sidebar .menu-group.is-current > .menu-parent{
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
}

.sidebar .submenu a.active-sub,
.sidebar.imx-sidebar .submenu a.active-sub{
  background:#4658f0 !important;
  color:#ffffff !important;
  border-radius:7px !important;
  box-shadow:none !important;
}

/* هاور ملایم و متفاوت از انتخاب */
.sidebar .menu-parent:hover,
.sidebar.imx-sidebar .menu-parent:hover,
.sidebar .menu-group.is-current > .menu-parent:hover,
.sidebar.imx-sidebar .menu-group.is-current > .menu-parent:hover{
  background:rgba(255,255,255,.035) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10) !important;
}

.sidebar .submenu a:not(.active-sub):hover,
.sidebar.imx-sidebar .submenu a:not(.active-sub):hover{
  background:rgba(255,255,255,.05) !important;
  color:#ffffff !important;
}

/* نسخه ۳۵: صفحه کنترل نسخه در تنظیمات */
.version-hero{
  align-items:stretch;
}
.version-kicker{
  display:inline-flex;
  margin-bottom:10px;
  padding:5px 12px;
  border-radius:999px;
  background:rgba(70,88,240,.10);
  color:var(--primary);
  font-weight:900;
  font-size:12px;
}
.version-current-card{
  min-width:190px;
  border:1px solid rgba(231,237,247,.96);
  background:linear-gradient(135deg,#ffffff 0%,#eef3ff 100%);
  border-radius:24px;
  padding:18px 22px;
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
}
.version-current-card span,.version-current-card small{
  color:var(--soft);
  font-weight:800;
}
.version-current-card strong{
  font-size:42px;
  line-height:1.15;
  color:var(--primary);
  letter-spacing:-1px;
}
.version-summary-panel{
  margin-bottom:24px;
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(246,249,255,.86));
}
.version-summary-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.version-summary-item{
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(255,255,255,.72);
  padding:20px;
}
.version-summary-item span{
  display:inline-flex;
  margin-bottom:8px;
  color:var(--primary);
  font-weight:900;
  font-size:12px;
}
.version-summary-item strong{
  display:block;
  font-size:18px;
  margin-bottom:6px;
}
.version-summary-item p{
  margin:0;
  color:var(--soft);
}
.version-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:24px;
  align-items:start;
}
.version-timeline{
  position:relative;
  display:grid;
  gap:18px;
}
.version-timeline:before{
  content:"";
  position:absolute;
  top:10px;
  bottom:10px;
  right:34px;
  width:2px;
  background:linear-gradient(180deg,var(--primary),rgba(70,88,240,.08));
}
.version-card{
  position:relative;
  display:grid;
  grid-template-columns:78px minmax(0,1fr);
  gap:16px;
}
.version-marker{
  position:relative;
  z-index:2;
  width:68px;
  height:68px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}
.version-marker span{
  width:48px;
  height:48px;
  border-radius:17px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eef2ff;
  color:var(--primary);
  font-weight:900;
}
.version-card.is-latest .version-marker span{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
}
.version-card-body{
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.78);
  padding:20px;
  box-shadow:0 10px 24px rgba(30,41,59,.045);
}
.version-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}
.version-card-head h3{
  margin:0 0 5px;
  font-size:20px;
}
.version-card-head p,.version-desc{
  margin:0;
  color:var(--soft);
}
.version-card-head em{
  font-style:normal;
  color:#15803d;
  background:#dcfce7;
  border-radius:999px;
  padding:5px 12px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.version-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:15px 0;
}
.version-tags span{
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  padding:5px 11px;
  font-weight:800;
  font-size:12px;
}
.version-change-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:9px;
}
.version-change-list li{
  position:relative;
  padding:9px 34px 9px 12px;
  border-radius:14px;
  background:#f8fafc;
  color:#334155;
  font-weight:700;
}
.version-change-list li:before{
  content:"✓";
  position:absolute;
  right:11px;
  top:8px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#dcfce7;
  color:#15803d;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
}
.version-scenario-list{
  padding:0 20px 0 0;
  margin:0;
  display:grid;
  gap:12px;
}
.version-scenario-list li{
  padding:12px 14px;
  border-radius:16px;
  background:#f8fafc;
  color:#334155;
  font-weight:800;
}
.version-note{
  margin-top:18px;
  padding:18px;
  border-radius:20px;
  background:linear-gradient(135deg,#eef2ff,#ffffff);
  border:1px solid #dfe6ff;
}
.version-note strong{
  display:block;
  margin-bottom:8px;
  color:var(--primary);
}
.version-note p{
  margin:0;
  color:#475569;
}
.bottom-submenu a.active-sub{
  background:#4658f0 !important;
  color:#fff !important;
}
@media(max-width:1100px){.version-layout,.version-summary-grid{grid-template-columns:1fr}.version-current-card{width:100%}}
@media(max-width:620px){.version-card{grid-template-columns:1fr}.version-timeline:before{display:none}.version-marker{width:100%;height:auto;justify-content:flex-start;padding:10px}.version-card-head{flex-direction:column}}


/* نسخه ۳.۶: حذف عنوان و پس‌زمینه نوار عملیات در همه صفحات */
.document-list-header{
  margin-bottom:18px !important;
}
.imx-action-toolbar.page-actions-bar{
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:0 !important;
  margin:0 0 20px !important;
  padding:0 !important;
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}
.imx-action-toolbar.page-actions-bar.is-plain{
  justify-content:flex-start !important;
  gap:0 !important;
  padding:0 !important;
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}
.imx-action-toolbar.page-actions-bar.no-title{
  justify-content:flex-start !important;
}
.imx-action-toolbar.page-actions-bar.no-title .page-actions-buttons{
  justify-content:flex-start !important;
}
.imx-action-toolbar.page-actions-bar.actions-left{
  direction:ltr !important;
}
.imx-action-toolbar.page-actions-bar.actions-left .page-actions-title,
.imx-action-toolbar.page-actions-bar.actions-left .page-actions-buttons{
  direction:rtl !important;
}
.imx-action-toolbar.page-actions-bar.actions-left .page-actions-title{
  order:2 !important;
}
.imx-action-toolbar.page-actions-bar.actions-left .page-actions-buttons{
  order:1 !important;
  justify-content:flex-start !important;
}
.imx-action-toolbar.page-actions-bar.actions-left.no-title{
  justify-content:flex-start !important;
}
.imx-action-toolbar .page-actions-title{
  display:none !important;
}
.imx-action-toolbar .page-actions-title strong{
  display:block !important;
  color:#1e293b !important;
  font-size:15px !important;
  font-weight:900 !important;
  line-height:1.45 !important;
}
.imx-action-toolbar .page-actions-title small{
  display:block !important;
  margin-top:1px !important;
  color:#64748b !important;
  font-size:12px !important;
  font-weight:600 !important;
}
.imx-action-toolbar .folder-icon{
  width:42px !important;
  height:42px !important;
  flex:0 0 42px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:15px !important;
  color:#4658f0 !important;
  background:linear-gradient(135deg,#eef2ff,#f8fbff) !important;
  border:1px solid #dfe6ff !important;
  font-size:18px !important;
}
.imx-action-toolbar .page-actions-buttons{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  direction:rtl !important;
  flex-wrap:wrap !important;
}
.imx-action-toolbar .qa-btn{
  min-height:46px !important;
  border-radius:16px !important;
  padding:10px 18px !important;
  margin:0 !important;
  border:1px solid transparent !important;
  font-family:inherit !important;
  font-size:13px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
  line-height:1.5 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  box-shadow:0 10px 24px rgba(15,23,42,.06) !important;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease !important;
}
.imx-action-toolbar .qa-btn:hover{
  transform:translateY(-1px) !important;
  box-shadow:0 16px 30px rgba(15,23,42,.09) !important;
}
.imx-action-toolbar .qa-btn-primary,
.simple-modal .qa-btn-primary{
  background:linear-gradient(135deg,#4658f0,#6f7dff) !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 14px 30px rgba(70,88,240,.26) !important;
}
.imx-action-toolbar .qa-btn-soft{
  background:#f8faff !important;
  color:#2534c9 !important;
  border-color:#dfe6ff !important;
}
.imx-action-toolbar .qa-btn-ghost,
.simple-modal .qa-btn-ghost{
  background:#fff !important;
  color:#334155 !important;
  border-color:#e2e8f0 !important;
}
.imx-action-toolbar .more-action-wrap{
  position:relative !important;
}
.imx-action-toolbar .more-action-menu{
  top:calc(100% + 10px) !important;
  left:0 !important;
  min-width:190px !important;
  padding:8px !important;
  border-radius:16px !important;
  background:#ffffff !important;
  border:1px solid #e2e8f0 !important;
  box-shadow:0 22px 48px rgba(15,23,42,.16) !important;
}
.imx-action-toolbar .more-action-menu::before{
  border-bottom-color:#ffffff !important;
  left:26px !important;
}
.imx-action-toolbar .more-action-menu button{
  color:#334155 !important;
  font-weight:800 !important;
  border-radius:11px !important;
  padding:10px 11px !important;
  box-shadow:none !important;
}
.imx-action-toolbar .more-action-menu button:hover{
  background:#f1f5ff !important;
  color:#2534c9 !important;
}
.document-filter-panel{
  margin-bottom:16px !important;
  padding:18px !important;
  border-radius:24px !important;
}
.document-filter-grid{
  display:grid !important;
  grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto !important;
  gap:14px !important;
  align-items:end !important;
}
.document-filter-panel label{
  margin:0 0 6px !important;
  font-size:12px !important;
  color:#64748b !important;
}
.document-filter-panel input,
.document-filter-panel select{
  min-height:48px !important;
  border-radius:16px !important;
  background:#fff !important;
}
.document-filter-panel .filter-submit{
  min-height:48px !important;
  padding:10px 24px !important;
  border-radius:16px !important;
  background:#fff !important;
}
.simple-modal{
  background:#fff !important;
  color:#111827 !important;
  border-radius:24px !important;
}
.simple-modal h3,
.simple-modal label{
  color:#111827 !important;
}
.simple-modal-actions{
  gap:10px !important;
  justify-content:flex-start !important;
}
@media(max-width:950px){
  .imx-action-toolbar.page-actions-bar{
    align-items:stretch !important;
    flex-direction:column !important;
  }
  .imx-action-toolbar .page-actions-buttons{
    justify-content:stretch !important;
  }
  .imx-action-toolbar .qa-btn,
  .imx-action-toolbar .more-action-wrap{
    flex:1 1 160px !important;
  }
  .imx-action-toolbar .more-action-wrap .qa-btn{
    width:100% !important;
  }
  .document-filter-grid{
    grid-template-columns:1fr !important;
  }
  .document-filter-panel .filter-submit{
    width:100% !important;
  }
}

.imx-action-toolbar.page-actions-bar.actions-left .page-actions-buttons{
  align-items:center !important;
  gap:12px !important;
}
.imx-action-toolbar.page-actions-bar.actions-left .qa-btn,
.imx-action-toolbar.page-actions-bar.actions-left .more-action-wrap{
  flex:0 0 auto !important;
}


/* نسخه ۳.۷: تقویم شمسی و نمایش تاریخ شمسی */
.jalali-date-input{
  direction:ltr !important;
  text-align:center !important;
  font-weight:800 !important;
  letter-spacing:.3px !important;
}
.jalali-picker{
  position:absolute;
  z-index:10000;
  display:none;
  width:292px;
  padding:12px;
  border-radius:20px;
  background:#fff;
  border:1px solid #dfe6ff;
  box-shadow:0 24px 60px rgba(15,23,42,.18);
  direction:rtl;
}
.jalali-picker-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.jalali-picker-head strong{
  color:#111827;
  font-size:14px;
  font-weight:900;
}
.jalali-picker-head button,
.jalali-picker-foot button{
  border:1px solid #e2e8f0;
  background:#f8faff;
  color:#2534c9;
  border-radius:12px;
  height:34px;
  min-width:38px;
  font-family:inherit;
  font-weight:900;
  cursor:pointer;
}
.jalali-picker-week,
.jalali-picker-days{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:6px;
}
.jalali-picker-week span{
  text-align:center;
  color:#64748b;
  font-size:12px;
  font-weight:900;
  padding:4px 0;
}
.jalali-picker-days span,
.jalali-picker-days button{
  height:34px;
}
.jalali-picker-days button{
  border:0;
  background:#f8fafc;
  border-radius:11px;
  color:#1e293b;
  font-family:inherit;
  font-weight:850;
  cursor:pointer;
}
.jalali-picker-days button:hover{
  background:#4658f0;
  color:#fff;
}
.jalali-picker-foot{
  display:flex;
  gap:8px;
  justify-content:space-between;
  margin-top:10px;
}
.jalali-picker-foot button{
  flex:1;
}


/* ============================================================================
   نسخه ۳.۱۵ — یکپارچه‌سازی فونت و مرتب‌سازی هدرها
   ============================================================================ */
@font-face{
  font-family:'B Vazir';
  src:local('B Vazir'), local('BVazir'), local('Vazir');
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}
html,
body,
button,
input,
select,
textarea,
table,
.btn,
.button,
.badge,
.topbar,
.sidebar{
  font-family:'B Vazir','Vazir','Vazirmatn',Tahoma,Arial,sans-serif !important;
}
body{font-weight:400 !important;}
strong,b,.user-name,.welcome,.btn,.button,button,input[type=submit],label,.page-header h1{
  font-weight:800 !important;
}
.topbar{
  min-height:76px !important;
  height:auto !important;
  gap:18px !important;
  flex-wrap:nowrap !important;
}
.welcome{
  flex:0 0 auto !important;
  white-space:nowrap !important;
  color:#0f172a !important;
}
.topbar-tools{
  flex:1 1 auto !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:14px !important;
  flex-wrap:wrap !important;
  direction:ltr !important;
}
.topbar-tools > *{direction:rtl !important;}
.date-pill,
.icon-btn,
.user-card{
  min-height:54px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
}
.date-pill{
  height:54px !important;
  min-width:300px !important;
  white-space:nowrap !important;
}
.icon-btn{
  width:54px !important;
  height:54px !important;
  flex:0 0 54px !important;
}
.user-card{
  height:58px !important;
  min-width:210px !important;
  justify-content:flex-start !important;
}
.page-header{
  display:grid !important;
  grid-template-columns:minmax(240px,1fr) minmax(360px,auto) !important;
  align-items:start !important;
  gap:20px !important;
}
.page-header > div:first-child{
  min-width:0 !important;
}
.page-header .actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  flex-wrap:wrap !important;
  direction:rtl !important;
  max-width:100% !important;
}
.page-header .actions form{
  display:inline-flex !important;
  margin:0 !important;
}
.page-header .actions .btn,
.page-header .actions button{
  min-height:54px !important;
  border-radius:18px !important;
  padding:11px 20px !important;
  margin:0 !important;
  white-space:nowrap !important;
  box-shadow:0 10px 24px rgba(15,23,42,.055) !important;
}
.page-header .actions .btn-primary,
.page-header .actions .btn-success{
  min-width:126px !important;
}
@media(max-width:1150px){
  .topbar{align-items:stretch !important; flex-direction:column !important; padding:18px 24px !important;}
  .topbar-tools{width:100% !important; justify-content:flex-start !important; direction:rtl !important;}
  .date-pill{min-width:240px !important;}
  .page-header{grid-template-columns:1fr !important;}
  .page-header .actions{justify-content:flex-start !important;}
}
@media(max-width:650px){
  .page-header .actions .btn,
  .page-header .actions button,
  .page-header .actions form{width:100% !important;}
  .date-pill,.user-card{width:100% !important; min-width:0 !important;}
}

/* ============================================================================
   نسخه ۳.۱۶ — تقویم شمسی ریسپانسیو برای فیلدهای تاریخ کوچک‌شده
   ============================================================================ */
.jalali-picker{
  position:fixed !important;
  width:min(360px, calc(100vw - 24px)) !important;
  max-width:calc(100vw - 24px) !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  overflow:auto !important;
  max-height:calc(100vh - 24px) !important;
  padding:clamp(8px, 2.6vw, 12px) !important;
}
.jalali-picker,
.jalali-picker *{box-sizing:border-box !important;}
.jalali-picker-head{
  gap:clamp(6px, 2vw, 10px) !important;
  margin-bottom:clamp(8px, 2.2vw, 10px) !important;
}
.jalali-picker-head strong{
  font-size:clamp(13px, 3.4vw, 15px) !important;
  white-space:nowrap !important;
}
.jalali-picker-head button,
.jalali-picker-foot button{
  height:clamp(34px, 8.8vw, 48px) !important;
  min-width:clamp(38px, 10vw, 52px) !important;
  border-radius:clamp(12px, 3.2vw, 16px) !important;
}
.jalali-picker-week,
.jalali-picker-days{
  gap:clamp(4px, 1.8vw, 8px) !important;
  min-width:0 !important;
}
.jalali-picker-week span,
.jalali-picker-days span,
.jalali-picker-days button{
  min-width:0 !important;
}
.jalali-picker-days button,
.jalali-picker-days span{
  height:clamp(32px, 8.4vw, 42px) !important;
}
.jalali-picker-days button{
  border-radius:clamp(10px, 2.6vw, 14px) !important;
  font-size:clamp(12px, 3.2vw, 15px) !important;
}
.jalali-picker-foot{
  gap:clamp(6px, 2vw, 10px) !important;
  margin-top:clamp(8px, 2.2vw, 12px) !important;
}
.jalali-picker.is-compact .jalali-picker-week,
.jalali-picker.is-compact .jalali-picker-days{gap:4px !important;}
.jalali-picker.is-compact .jalali-picker-days button,
.jalali-picker.is-compact .jalali-picker-days span{height:32px !important;}
.jalali-picker.is-micro{padding:8px !important;}
.jalali-picker.is-micro .jalali-picker-head button,
.jalali-picker.is-micro .jalali-picker-foot button{height:32px !important; min-width:34px !important;}
.jalali-picker.is-micro .jalali-picker-days button,
.jalali-picker.is-micro .jalali-picker-days span{height:30px !important; font-size:12px !important;}

/* ═══════════════════════════════════════════════════
   Document Control Module — v4.0
   ═══════════════════════════════════════════════════ */

/* Wizard Steps Bar */
.wizard-steps-bar { background: var(--surface-2,#f8f9fa); border-radius: 10px; padding: 12px 16px; }
.steps-container { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; }
.steps-container .step { padding: 4px 12px; border-radius: 20px; background: #e9ecef; color: #6c757d; }
.steps-container .step.active { background: var(--primary,#2563eb); color: #fff; font-weight: 600; }
.steps-container .step.done { background: #198754; color: #fff; }
.steps-container .step-arrow { color: #adb5bd; }

/* Unit Cards */
.unit-card { transition: all 0.2s; cursor: pointer; }
.unit-card:hover { border-color: var(--primary,#2563eb); box-shadow: 0 4px 12px rgba(37,99,235,0.12); transform: translateY(-2px); }

/* Folder Cards */
.folder-card { transition: all 0.2s; cursor: pointer; }
.folder-card:hover { border-color: var(--primary,#2563eb); box-shadow: 0 4px 12px rgba(37,99,235,0.1); }
.folder-icon { font-size: 2.5rem; }

/* Code fields */
.code-field { font-family: 'Courier New', monospace; letter-spacing: 1px; text-align: center; max-width: 80px; }

/* Stat cards */
.stat-card { background: var(--surface-1,#fff); border: 1px solid var(--border,#e5e7eb); border-radius: 10px; padding: 16px; text-align: center; }
.stat-number { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.8rem; color: #6c757d; margin-top: 4px; }

/* ─── Sidebar logout button fix (v4.9.2) ─── */
.sidebar-logout-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  padding: 0 8px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 700;
}
.sidebar-logout-btn:hover { background: rgba(255,255,255,.08) !important; }
.sidebar-user-info { flex: 1; line-height: 1.4; }
.sidebar-user-info strong { display: block; font-size: .88rem; }
.sidebar-user-info small { display: block; font-size: .72rem; color: #94a3b8; font-weight: 400; }
.sidebar-logout-icon { display: flex; align-items: center; gap: .3rem; font-style: normal; color: #94a3b8; font-size: .78rem; }
.sidebar-logout-icon img { width: 16px; height: 16px; opacity: .7; }
.sidebar-logout-btn:hover .sidebar-logout-icon { color: #ffb4b4; }

/* bottom-submenu links */
.bottom-submenu a {
  display: flex !important;
  align-items: center;
  gap: .5rem;
  padding: 6px 8px !important;
  border-radius: 6px;
  color: #dbe4ff !important;
  font-size: 12px;
  transition: background .12s;
}
.bottom-submenu a:hover,
.bottom-submenu a.active-sub {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}
.submenu-item-icon img { width: 15px; height: 15px; opacity: .75; }

/* v5.0 — پاک‌سازی عناصر topbar قدیمی */
.welcome { display: none !important; }   /* جایگزین شده با tb-greeting */
.date-pill { display: none !important; }  /* حذف شد */

/* ══ Form Fill Page Layout — v5.1 ══════════════════ */
.ff-nav-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: 1rem 0 .75rem;
  font-size: .82rem; color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.ff-nav-back {
  display: inline-flex; align-items: center; gap: .3rem;
  color: #3b82f6; text-decoration: none; font-weight: 600;
  transition: color .12s;
}
.ff-nav-back:hover { color: #1d4ed8; }
.ff-nav-sep  { color: #cbd5e1; }
.ff-nav-title { color: #1e293b; font-weight: 600; }
.ff-nav-code {
  background: #eff6ff; color: #2563eb;
  border: 1px solid #bfdbfe; border-radius: 5px;
  padding: 1px 8px; font-size: .75rem; font-weight: 700;
}

/* wrapper صفحه fill — مرکزی و کمی محدودتر */
.ff-page-wrap {
  max-width: 1080px;
  margin: 0 auto;
}


/* v5.10.2 — جدول استاندارد: شماره ردیف + مرتب‌سازی با کلیک روی هدر */
.imx-sortable-table th.imx-sortable-head {
  position: relative;
  cursor: pointer;
  user-select: none;
  padding-left: 28px !important;
  transition: background .18s ease, color .18s ease;
}
.imx-sortable-table th.imx-sortable-head:hover,
.imx-sortable-table th.imx-sortable-head:focus {
  background: #eef2ff !important;
  color: #3730a3 !important;
  outline: none;
}
.imx-sortable-table th.imx-sortable-head::after {
  content: '↕';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #94a3b8;
  line-height: 1;
}
.imx-sortable-table th.imx-sortable-head.sort-asc::after { content: '↑'; color: #4f5cff; }
.imx-sortable-table th.imx-sortable-head.sort-desc::after { content: '↓'; color: #4f5cff; }
.imx-row-number-head,
.imx-row-number-cell {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 64px !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.imx-row-number-head {
  color: #64748b !important;
  font-weight: 900 !important;
}
.imx-row-number-cell {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
.imx-row-number-cell::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-inline-end: 0;
  vertical-align: middle;
  border-radius: 999px;
  background: #f1f5f9;
  position: absolute;
  opacity: 0;
}
.dc-doc-table .imx-row-number-cell,
.data-table .imx-row-number-cell,
.imx-table .imx-row-number-cell,
.exp-table .imx-row-number-cell {
  background: #fbfdff;
}
@media (max-width: 768px) {
  .imx-row-number-head,
  .imx-row-number-cell {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 50px !important;
  }
  .imx-sortable-table th.imx-sortable-head { padding-left: 22px !important; }
  .imx-sortable-table th.imx-sortable-head::after { left: 6px; }
}


/* ===== ابزار سراسری تنظیم ستون‌های جدول ===== */
.imx-table-tool-wrap{position:relative}
.imx-has-column-handle{position:relative;padding-left:34px!important}
.imx-column-handle{position:absolute;left:10px;top:50%;transform:translateY(-50%);border:0!important;background:transparent!important;box-shadow:none!important;width:18px;height:18px;min-height:18px;min-width:18px;padding:0!important;margin:0!important;color:#64748b;font-size:14px;line-height:1;display:inline-flex;align-items:center;justify-content:center;border-radius:0!important}
.imx-column-handle:hover{color:#4f5cff;transform:translateY(-50%)}
.imx-column-handle-icon{display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1;font-weight:700}
.imx-column-panel{position:fixed;top:auto;left:auto;width:280px;max-width:calc(100vw - 24px);max-height:min(560px,calc(100vh - 24px));overflow:auto;background:#fff;border:1px solid #dbe4f3;border-radius:16px;box-shadow:0 20px 50px rgba(15,23,42,.18);padding:12px;z-index:1200;display:none}
.imx-column-panel.open{display:block}
.imx-column-panel-head{display:flex;flex-direction:column;gap:2px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #edf2f7}
.imx-column-panel-head strong{font-size:14px;color:#0f172a}
.imx-column-panel-head span{font-size:12px;color:#64748b}
.imx-column-options{max-height:280px;overflow:auto;display:flex;flex-direction:column;gap:6px;padding-left:2px}
.imx-column-option{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:6px 4px;border-radius:10px;color:#334155;font-weight:700;cursor:pointer}
.imx-column-option:hover{background:#f8fbff}
.imx-column-option input{width:16px;height:16px;min-width:16px;margin:0}
.imx-column-panel-actions{display:flex;justify-content:flex-start;margin-top:10px;padding-top:10px;border-top:1px solid #edf2f7}
.imx-column-panel-actions .btn{min-height:36px;padding:8px 12px;font-size:13px}
.dc-inline-workflow-banner{display:flex;align-items:center;gap:.8rem;margin:0 0 1rem;padding:.8rem 1rem;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff;color:#1e3a8a}
.dc-inline-workflow-banner strong,.dc-inline-workflow-banner small{display:block}.dc-inline-workflow-banner small{margin-top:.2rem;color:#475569}.dc-inline-workflow-banner .imx-workflow-entry-step{white-space:nowrap;padding:.3rem .55rem;border-radius:999px;background:#dbeafe;font-size:.75rem;font-weight:800}
.imx-workflow-readonly-field{opacity:.82}
@media(max-width:950px){.imx-column-panel{width:260px}.imx-has-column-handle{padding-left:28px!important}.imx-column-handle{left:8px}}


/* v5.10.29 — جای درست آیکون تنظیم ستون‌ها در منتهی‌الیه سمت چپ جدول */
table.data-table th.imx-has-column-handle,
table.imx-table th.imx-has-column-handle,
table.dc-doc-table th.imx-has-column-handle {
  position: relative !important;
  padding-left: 34px !important;
}
table.data-table th.imx-has-column-handle .imx-column-handle,
table.imx-table th.imx-has-column-handle .imx-column-handle,
table.dc-doc-table th.imx-has-column-handle .imx-column-handle {
  left: 8px !important;
  right: auto !important;
}


/* v5.10.30 — روی سلولی که آیکون تنظیم ستون‌ها دارد، آیکون مرتب‌سازی نمایش داده نشود */
.imx-sortable-table th.imx-has-column-handle::after,
.imx-sortable-table th.imx-has-column-handle.sort-asc::after,
.imx-sortable-table th.imx-has-column-handle.sort-desc::after {
  content: none !important;
  display: none !important;
}
.imx-sortable-table th.imx-has-column-handle {
  cursor: default !important;
}
.imx-sortable-table th.imx-has-column-handle .imx-column-handle {
  cursor: pointer !important;
}

/* v5.16.38 — تغییر عرض ستون‌های همه جدول‌ها از مرز هدر */
.imx-table-resize-host {
  overflow-x: auto !important;
  scrollbar-gutter: stable;
}
.imx-resizable-table {
  max-width: none !important;
}
.imx-resizable-table th.imx-resizable-head {
  position: relative !important;
}
.imx-col-resizer {
  position: absolute;
  z-index: 8;
  top: 0;
  bottom: 0;
  left: -5px;
  width: 10px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}
[dir="ltr"] .imx-col-resizer,
.imx-resizable-table[dir="ltr"] .imx-col-resizer {
  right: -5px;
  left: auto;
}
.imx-col-resizer::after {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 4px;
  width: 2px;
  border-radius: 3px;
  background: #64748b;
  opacity: 0;
  transition: opacity .15s ease, background .15s ease, box-shadow .15s ease;
}
.imx-col-resizer:hover::after,
.imx-col-resizer:focus-visible::after,
.imx-col-resizer.is-resizing::after {
  opacity: 1;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(70, 88, 240, .13);
}
.imx-col-resizer:focus-visible {
  outline: none;
}
body.imx-column-resizing,
body.imx-column-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}
@media (pointer: coarse) {
  .imx-col-resizer {
    left: -8px;
    width: 16px;
  }
  [dir="ltr"] .imx-col-resizer,
  .imx-resizable-table[dir="ltr"] .imx-col-resizer {
    right: -8px;
    left: auto;
  }
  .imx-col-resizer::after {
    left: 7px;
  }
}

/* v5.16.40 — انتخاب سطری و عملیات گروهی جدول */
.imx-selection-head,
.imx-selection-cell {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  padding: 4px !important;
  text-align: center !important;
}
.imx-selection-head input,
.imx-selection-cell input {
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
  cursor: pointer;
  box-shadow: none;
}
.imx-selection-head {
  cursor: default !important;
}
.imx-row-number-head,
.imx-row-number-cell {
  user-select: none;
}
.imx-resizable-table tr.imx-row-selected > td {
  background: #eef2ff !important;
}
.imx-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 7px 10px;
  border-bottom: 1px solid #dbe4f3;
  background: linear-gradient(135deg, #f8faff, #eef2ff);
  direction: rtl;
}
.imx-bulk-toolbar[hidden] {
  display: none !important;
}
.imx-bulk-summary,
.imx-bulk-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  direction: rtl;
}
.imx-bulk-summary {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
}
.imx-bulk-actions {
  flex: 1 1 auto;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.imx-bulk-summary strong {
  color: #3730a3;
}
.imx-bulk-clear {
  min-height: 32px !important;
  height: 32px;
  padding: 4px 10px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  border-color: #c7d2fe;
  color: #4f46e5;
  background: #fff;
  box-shadow: none;
}
.imx-bulk-actions label {
  margin: 0;
  white-space: nowrap;
  font-size: 11px;
  color: #53657c;
}
.imx-bulk-actions select {
  width: min(330px, 34vw);
  min-width: 230px;
  min-height: 34px;
  height: 34px;
  padding: 4px 10px;
  border-radius: 9px;
  font-size: 11px;
  direction: rtl;
  text-align: right;
}
.imx-bulk-actions .btn {
  min-height: 34px !important;
  height: 34px;
  padding: 4px 12px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  font-size: 11px !important;
}
@media (max-width: 950px) {
  .imx-bulk-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 9px;
  }
  .imx-bulk-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .imx-bulk-actions select,
  .imx-bulk-actions .btn {
    width: 100%;
  }
}


/* v5.10.55 — ظاهر یکپارچه زیرمنوهای شناور در کل نرم‌افزار */
.fb-command-popover,
.more-action-menu,
.dc-more-actions-menu{
  background:#fff !important;
  border:1px solid #dbe4f3 !important;
  border-radius:14px !important;
  box-shadow:0 16px 42px rgba(15,23,42,.13) !important;
  padding:7px !important;
  direction:rtl !important;
}
.fb-command-popover{gap:5px !important;}
.more-action-menu{min-width:190px !important;}
.more-action-menu::before{display:none !important;}
.fb-command-popover button,
.more-action-menu button{
  width:100% !important;
  min-height:34px !important;
  border:1px solid #e6edf7 !important;
  background:#fff !important;
  color:#334155 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  text-align:right !important;
  padding:6px 9px !important;
  border-radius:10px !important;
  font-family:inherit !important;
  font-size:12px !important;
  font-weight:850 !important;
  line-height:1.35 !important;
  box-shadow:none !important;
  margin:0 !important;
}
.fb-command-popover button:hover,
.more-action-menu button:hover{
  background:#f8fbff !important;
  border-color:#c7d2fe !important;
  color:#4f5cff !important;
  transform:none !important;
  box-shadow:none !important;
}

/* ─────────────────────────────────────────────────────────────
   شخصی‌سازی منوی سایدبار: نمایش/مخفی‌سازی، جابه‌جایی و واحدهای سازمانی
   (نسخه ۵.۱۱.۰ — آیتم‌های منوی واحدها)
   ───────────────────────────────────────────────────────────── */
.menu-customize-bar{
  display:flex !important;align-items:center !important;justify-content:space-between !important;
  gap:8px;padding:2px 6px 6px;margin-bottom:4px;
}
.menu-customize-title{font-size:11px;font-weight:800;color:#a5b4fc;letter-spacing:.3px}
.menu-customize-btn{
  display:inline-flex !important;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.16) !important;
  background:rgba(255,255,255,.05) !important;color:#dbe4ff !important;border-radius:8px !important;
  padding:5px 9px !important;min-height:0 !important;font-size:11.5px !important;font-weight:800 !important;
  cursor:pointer;box-shadow:none !important;margin:0 !important;
}
.menu-customize-btn:hover{background:rgba(255,255,255,.12) !important;transform:none !important}
.menu-customize-btn svg{flex:0 0 auto}
body.nav-editing .menu-customize-btn{background:#4658f0 !important;border-color:#4658f0 !important;color:#fff !important}
.menu-customize-help{
  display:none;font-size:11px;line-height:1.7;color:#c7d2fe;
  background:rgba(70,88,240,.16);border:1px solid rgba(120,140,255,.3);
  border-radius:10px;padding:8px 10px;margin:0 4px 10px;
}
body.nav-editing .menu-customize-help{display:block}
.menu-showall-btn{
  display:inline-block;margin-top:6px;border:0 !important;background:rgba(255,255,255,.14) !important;
  color:#fff !important;border-radius:7px !important;padding:4px 10px !important;min-height:0 !important;
  font-size:11px !important;font-weight:800 !important;cursor:pointer;box-shadow:none !important;
}
.menu-showall-btn:hover{background:rgba(255,255,255,.26) !important;transform:none !important}

/* کلید نمایش/مخفی (چشم) کنار هر آیتم منو */
.menu-visibility-toggle{
  width:26px !important;height:26px !important;flex:0 0 26px;border:0 !important;background:transparent !important;
  color:rgba(255,255,255,.55) !important;cursor:pointer;border-radius:6px !important;
  display:none;align-items:center;justify-content:center;font-size:15px;
  padding:0 !important;min-height:0 !important;margin:0 !important;box-shadow:none !important;
}
.menu-visibility-toggle:hover{background:rgba(255,255,255,.12) !important;color:#fff !important;transform:none !important}
.menu-parent:hover .menu-visibility-toggle{display:inline-flex}
body.nav-editing .menu-visibility-toggle{display:inline-flex}
.menu-visibility-toggle .eye-off{display:none}
.menu-group.is-hidden .menu-visibility-toggle .eye-on{display:none}
.menu-group.is-hidden .menu-visibility-toggle .eye-off{display:inline}

/* آیتم‌های مخفی‌شده: در حالت عادی پنهان، در حالت ویرایش کم‌رنگ نمایش داده می‌شوند */
.menu-group.is-hidden{display:none !important}
body.nav-editing .menu-group.is-hidden{display:block !important;opacity:.45}
body.nav-editing .menu-group.is-hidden .parent-link{pointer-events:none}

/* برچسب گروه واحدها */
.menu-units-label{
  font-size:11px;font-weight:800;color:#a5b4fc;letter-spacing:.3px;
  margin:14px 8px 4px;padding-top:10px;border-top:1px solid rgba(255,255,255,.1);
}
body.nav-editing .menu-units-label{color:#c7d2fe}

/* آیتم منوی واحد سازمانی */
.imx-unit-item .menu-parent{border-right:2px solid rgba(120,140,255,.55)}
.imx-unit-item.is-current .menu-parent{border-right-color:#4658f0}
.unit-code-chip{
  margin-inline-start:auto;font-size:10px;font-weight:800;color:#c7d2fe;
  background:rgba(255,255,255,.1);border-radius:6px;padding:2px 7px;letter-spacing:.5px;
  font-family:Tahoma,Arial,sans-serif;
}

/* در حالت جمع‌شده سایدبار، عناصر شخصی‌سازی پنهان می‌شوند */
body.sidebar-collapsed .menu-customize-bar,
body.sidebar-collapsed .menu-customize-help,
body.sidebar-collapsed .menu-units-label,
body.sidebar-collapsed .menu-visibility-toggle,
body.sidebar-collapsed .unit-code-chip{display:none !important}


/* نسخه ۵.۱۱.۲: ذخیره دیتابیسی تنظیمات منوی هر کاربر */
.menu-customize-help::after{
  content:" تنظیمات برای کاربر شما ذخیره می‌شود.";
  display:block;
  margin-top:4px;
  color:#eef2ff;
  font-weight:800;
}
.imx-menu-settings-page{max-width:980px;margin:0 auto;direction:rtl;}
.imx-menu-settings-hero{background:linear-gradient(135deg,#f8fbff,#eef2ff);border:1px solid #dbe4f3;border-radius:24px;padding:24px;margin-bottom:18px;box-shadow:0 18px 46px rgba(15,23,42,.07);}
.imx-menu-settings-hero h1{margin:0 0 8px;font-size:24px;color:#0f172a;}
.imx-menu-settings-hero p{margin:0;color:#64748b;line-height:1.9;font-weight:700;}
.imx-menu-settings-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:16px;box-shadow:0 14px 35px rgba(15,23,42,.06);}
.imx-menu-settings-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px;}
.imx-menu-settings-toolbar strong{color:#0f172a;font-size:16px;}
.imx-menu-settings-actions{display:flex;gap:8px;flex-wrap:wrap;}
.imx-menu-setting-row{display:flex;align-items:center;gap:12px;border:1px solid #edf2f7;border-radius:14px;padding:10px 12px;margin:8px 0;background:#fff;transition:.16s ease;}
.imx-menu-setting-row:hover{border-color:#c7d2fe;background:#fbfdff;}
.imx-menu-setting-row.dragging{opacity:.55;transform:scale(.99);}
.imx-menu-setting-handle{width:32px;height:32px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;display:inline-flex;align-items:center;justify-content:center;cursor:grab;color:#64748b;font-weight:900;}
.imx-menu-setting-row-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.imx-menu-setting-row-title b{color:#0f172a;font-size:14px;}
.imx-menu-setting-row-title small{color:#64748b;font-weight:700;}
.imx-menu-switch{display:flex;align-items:center;gap:8px;font-weight:900;color:#334155;white-space:nowrap;}
.imx-menu-switch input{width:18px;height:18px;accent-color:#4658f0;}
.imx-menu-settings-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid #edf2f7;}
@media(max-width:720px){.imx-menu-setting-row{align-items:flex-start;}.imx-menu-settings-footer{align-items:stretch;}.imx-menu-settings-footer .btn{width:100%;}}

/* نسخه ۵.۱۱.۳: اصلاح نهایی رفتار منوی شخصی */
.menu-customize-bar,
.menu-customize-help,
.menu-showall-btn,
.menu-visibility-toggle{
  display:none !important;
}
.menu-group.is-hidden,
body.nav-editing .menu-group.is-hidden{
  display:none !important;
  opacity:1 !important;
}
.unit-nav-icon{
  border-radius:10px;
  background:linear-gradient(135deg,rgba(255,255,255,.16),rgba(255,255,255,.05));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
}
.unit-nav-icon img{
  width:18px !important;
  height:18px !important;
  opacity:1 !important;
}
.imx-menu-setting-icon{
  width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:12px;background:linear-gradient(135deg,#eef2ff,#f8fbff);border:1px solid #dbe4f3;
  flex:0 0 36px;
}
.imx-menu-setting-icon img{width:20px;height:20px;display:block;}


/* نسخه ۵.۱۱.۴: تثبیت ترتیب منوی اصلی بعد از رفرش */
.sidebar-nav{
  display:block !important;
}
.menu-group.is-hidden,
body.nav-editing .menu-group.is-hidden{
  display:none !important;
  opacity:1 !important;
  visibility:hidden !important;
  height:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}
.menu-visibility-toggle,
.menu-customize-bar,
.menu-customize-help,
.menu-showall-btn{
  display:none !important;
}


/* نسخه ۵.۱۱.۵: اسکرول حالت بسته سایدبار و یکسان‌سازی ظاهر آیکن‌های منو */
body.sidebar-collapsed .sidebar.imx-sidebar{
  width:72px !important;
  min-width:72px !important;
  max-width:72px !important;
  height:100vh !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}
body.sidebar-collapsed .sidebar-brand-row{
  flex:0 0 58px !important;
  min-height:58px !important;
  padding:0 8px !important;
}
body.sidebar-collapsed .sidebar-nav{
  flex:1 1 auto !important;
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain !important;
  -webkit-overflow-scrolling:touch !important;
  padding:12px 8px 18px !important;
  scrollbar-width:thin !important;
}
body.sidebar-collapsed .sidebar-nav::-webkit-scrollbar{width:5px !important;}
body.sidebar-collapsed .sidebar-nav::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.28) !important;
  border-radius:999px !important;
}
body.sidebar-collapsed .menu-group{
  margin:5px 0 !important;
}
body.sidebar-collapsed .menu-parent{
  min-height:46px !important;
  height:46px !important;
  padding:0 !important;
  justify-content:center !important;
}
body.sidebar-collapsed .parent-link{
  width:46px !important;
  height:46px !important;
  flex:0 0 46px !important;
  justify-content:center !important;
  padding:0 !important;
  margin:0 auto !important;
}
.nav-icon,
.submenu-item-icon,
.imx-menu-setting-icon,
.system-mini-icon{
  border-radius:12px !important;
}
.nav-icon img,
.submenu-item-icon img,
.imx-menu-setting-icon img,
.system-mini-icon img{
  display:block !important;
  object-fit:contain !important;
  filter:none !important;
}
.nav-icon img{width:20px !important;height:20px !important;}
.submenu-item-icon img{width:16px !important;height:16px !important;}
body.sidebar-collapsed .nav-icon{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  background:rgba(255,255,255,.055) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08) !important;
}
body.sidebar-collapsed .menu-group.is-current .nav-icon{
  background:rgba(83,102,255,.24) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16) !important;
}
.imx-menu-setting-icon{
  background:linear-gradient(135deg,#12174e,#5366ff) !important;
  border:1px solid rgba(83,102,255,.28) !important;
}
.imx-menu-setting-icon img{width:20px !important;height:20px !important;}


/* نسخه ۵.۱۱.۶: حذف نمایش اسکرول، حفظ جای اسکرول منو و بازطراحی رنگی آیکن‌ها */
body.sidebar-collapsed .sidebar.imx-sidebar{
  width:78px !important;
  min-width:78px !important;
  max-width:78px !important;
  padding:0 !important;
}
body.sidebar-collapsed .sidebar-brand-row{
  flex:0 0 64px !important;
  min-height:64px !important;
  padding:0 10px !important;
}
body.sidebar-collapsed .sidebar-nav{
  padding:12px 8px 18px !important;
  scrollbar-width:none !important;
  -ms-overflow-style:none !important;
}
body.sidebar-collapsed .sidebar-nav::-webkit-scrollbar{
  width:0 !important;
  height:0 !important;
  display:none !important;
  background:transparent !important;
}
body.sidebar-collapsed .menu-group,
body.sidebar-collapsed .menu-parent{
  overflow:visible !important;
}
body.sidebar-collapsed .menu-group > .menu-parent::before,
body.sidebar-collapsed .menu-group.is-current > .menu-parent::before{
  content:none !important;
  display:none !important;
}
body.sidebar-collapsed .menu-parent{
  min-height:58px !important;
  height:58px !important;
  border-radius:18px !important;
  background:transparent !important;
  box-shadow:none !important;
}
body.sidebar-collapsed .parent-link{
  width:54px !important;
  height:54px !important;
  flex:0 0 54px !important;
  border-radius:18px !important;
  justify-content:center !important;
  padding:0 !important;
  margin:0 auto !important;
  background:rgba(255,255,255,.035) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06) !important;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}
body.sidebar-collapsed .menu-parent:hover .parent-link{
  transform:translateY(-1px) !important;
  background:rgba(255,255,255,.065) !important;
  box-shadow:0 10px 20px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.1) !important;
}
body.sidebar-collapsed .menu-group.is-current .parent-link{
  background:linear-gradient(180deg,rgba(91,108,255,.22),rgba(20,184,197,.18)) !important;
  box-shadow:0 12px 24px rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.12) !important;
}
.nav-icon,
.submenu-item-icon,
.imx-menu-setting-icon,
.system-mini-icon,
.unit-nav-icon{
  background:transparent !important;
  box-shadow:none !important;
  border:none !important;
  border-radius:16px !important;
}
.nav-icon img,
.submenu-item-icon img,
.imx-menu-setting-icon img,
.system-mini-icon img,
.unit-nav-icon img{
  display:block !important;
  object-fit:contain !important;
  filter:none !important;
}
.nav-icon img{width:28px !important;height:28px !important;}
.submenu-item-icon img{width:18px !important;height:18px !important;}
.imx-menu-setting-icon img,
.system-mini-icon img,
.unit-nav-icon img{width:20px !important;height:20px !important;}
body.sidebar-collapsed .nav-icon{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
}
.sidebar-nav{scroll-behavior:auto !important;}
.sidebar-bottom .bottom-menu-toggle .nav-icon img{width:22px !important;height:22px !important;}
.sidebar-bottom .bottom-submenu .submenu-item-icon img{width:17px !important;height:17px !important;}
.sidebar-system-text .system-mini-icon{display:inline-flex !important;align-items:center;justify-content:center;vertical-align:middle;margin-left:6px;}
.imx-menu-setting-icon{
  background:linear-gradient(135deg,#f0f7ff,#eef2ff) !important;
  border:1px solid #d9e3f3 !important;
  box-shadow:0 8px 18px rgba(15,23,42,.05) !important;
}


/* نسخه ۵.۱۱.۷: هایلایت واحد انتخاب‌شده و حفظ جای منو */
.sidebar.imx-sidebar{
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
}
.sidebar.imx-sidebar .sidebar-nav{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain !important;
  -webkit-overflow-scrolling:touch !important;
}
.sidebar.imx-sidebar .sidebar-nav::-webkit-scrollbar{width:0 !important;height:0 !important;display:none !important;}
.sidebar.imx-sidebar .sidebar-nav{scrollbar-width:none !important;-ms-overflow-style:none !important;}
.sidebar.imx-sidebar .sidebar-bottom{flex:0 0 auto !important;}
.sidebar.imx-sidebar .imx-unit-item.is-current > .menu-parent,
.sidebar.imx-sidebar .imx-unit-item.is-current > .menu-parent:hover{
  background:linear-gradient(135deg,rgba(91,108,255,.22),rgba(20,184,197,.14)) !important;
  border:1px solid rgba(132,151,255,.34) !important;
  box-shadow:inset 3px 0 0 rgba(91,108,255,.92), 0 10px 24px rgba(0,0,0,.16) !important;
}
.sidebar.imx-sidebar .imx-unit-item.is-current .parent-link,
.sidebar.imx-sidebar .imx-unit-item.is-current .nav-title{
  color:#ffffff !important;
}
.sidebar.imx-sidebar .imx-unit-item.is-current .unit-code-chip{
  background:rgba(91,108,255,.46) !important;
  color:#fff !important;
}
body.sidebar-collapsed .sidebar.imx-sidebar .imx-unit-item.is-current > .menu-parent{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body.sidebar-collapsed .sidebar.imx-sidebar .imx-unit-item.is-current .parent-link{
  background:linear-gradient(180deg,rgba(91,108,255,.28),rgba(20,184,197,.20)) !important;
  box-shadow:0 12px 24px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.16) !important;
}
body.sidebar-collapsed .sidebar.imx-sidebar .imx-unit-item.is-current .nav-icon{
  transform:scale(1.04) !important;
}
.nav-icon img{width:30px !important;height:30px !important;}
body.sidebar-collapsed .nav-icon img{width:31px !important;height:31px !important;}
.submenu-item-icon img{width:19px !important;height:19px !important;}
.imx-menu-setting-icon img{width:22px !important;height:22px !important;}


/* نسخه ۵.۱۱.۸: حذف فاصله خالی بین منو و جداکننده پایین */
.sidebar.imx-sidebar .sidebar-nav{
  padding-bottom:10px !important;
}
.sidebar.imx-sidebar .sidebar-bottom{
  margin-top:0 !important;
}


/* نسخه ۵.۱۱.۹: حذف کامل فضای خالی انتهای لیست منو */
.sidebar.imx-sidebar .sidebar-nav{
  padding-bottom:0 !important;
  margin-bottom:0 !important;
}
.sidebar.imx-sidebar .sidebar-nav > .menu-group:last-of-type,
.sidebar.imx-sidebar .sidebar-nav > .imx-unit-item:last-of-type{
  margin-bottom:0 !important;
}
.sidebar.imx-sidebar .sidebar-nav > *:last-child{
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}
.sidebar.imx-sidebar .sidebar-bottom{
  margin-top:0 !important;
  padding-top:8px !important;
}
.sidebar.imx-sidebar .sidebar-bottom::before{
  margin:-8px 0 8px !important;
}


/* نسخه ۵.۱۱.۱۰: امتداد کامل منو تا خط جداکننده تنظیمات */
.sidebar.imx-sidebar{
  overflow:hidden !important;
}
.sidebar.imx-sidebar .sidebar-nav{
  flex:1 1 auto !important;
  min-height:0 !important;
  padding-bottom:0 !important;
  margin-bottom:0 !important;
}
.sidebar.imx-sidebar .sidebar-bottom{
  flex:0 0 auto !important;
  margin-top:0 !important;
  padding-top:12px !important;
  border-top:1px solid rgba(255,255,255,.14) !important;
}
.sidebar.imx-sidebar .sidebar-bottom::before{
  display:none !important;
  content:none !important;
}

/* Shared workflow entry guide shown above forms opened for completion. */
.imx-workflow-entry-banner{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) minmax(235px,auto);
  align-items:center;
  gap:14px;
  width:min(100%,1240px);
  margin:0 auto 16px;
  padding:14px 16px;
  overflow:hidden;
  direction:rtl;
  border:1px solid #bfdbfe;
  border-radius:16px;
  background:linear-gradient(135deg,#f8fbff 0%,#eef4ff 58%,#f5f3ff 100%);
  color:#172033;
  box-shadow:0 10px 28px rgba(37,99,235,.08);
}
.imx-workflow-entry-banner::before{content:'';position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#22c55e,#4f46e5,#0ea5e9)}
.imx-workflow-entry-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#4f46e5,#2563eb);color:#fff;font-size:1rem;font-weight:900;box-shadow:0 8px 18px rgba(79,70,229,.22)}
.imx-workflow-entry-copy{min-width:0}.imx-workflow-entry-copy>*{display:block}
.imx-workflow-entry-step{width:max-content;margin-bottom:3px;padding:2px 8px;border-radius:999px;background:#e0e7ff;color:#4338ca;font-size:.64rem;font-weight:900}
.imx-workflow-entry-copy strong{font-size:.86rem;color:#172033}.imx-workflow-entry-copy small{margin-top:3px;color:#64748b;font-size:.68rem;line-height:1.75}
.imx-workflow-entry-route{display:grid;gap:2px;min-width:235px;padding:9px 12px;border:1px solid rgba(99,102,241,.2);border-radius:11px;background:rgba(255,255,255,.78);box-shadow:0 4px 12px rgba(15,23,42,.04)}
.imx-workflow-entry-route small{color:#64748b;font-size:.61rem}.imx-workflow-entry-route strong{color:#3730a3;font-size:.72rem}.imx-workflow-entry-route span{color:#16803d;font-size:.61rem;font-weight:800}
.dc-inline-workflow-banner{margin-inline:auto!important}
.dc-form-fill-anchor{height:0;scroll-margin-top:90px}
@media(max-width:760px){.imx-workflow-entry-banner{grid-template-columns:auto minmax(0,1fr);padding:12px}.imx-workflow-entry-route{grid-column:1/-1;min-width:0}.imx-workflow-entry-copy small{font-size:.65rem}}
