﻿/* ==========================================================================
   تم مدرن سامانه (لایه‌ی افزودنی)
   - بعد از همه‌ی استایل‌های قبلی بارگذاری می‌شود و فقط ظاهر را بازنویسی می‌کند.
   - ابعاد/چیدمانی که اسکریپت‌ها محاسبه می‌کنند (ارتفاع هدر گرید، دیالوگ و ...) تغییر نمی‌کند.
   - خاموش کردن کامل: در Web.config مقدار appSetting با نام ModernTheme را false کنید.
   ========================================================================== */
:root{
  --c-primary:#2563eb; --c-primary-d:#1d4ed8; --c-primary-l:#dbeafe; --c-primary-xl:#eff6ff;
  --c-ink:#0f172a; --c-text:#1e293b; --c-muted:#64748b; --c-line:#e2e8f0; --c-line-d:#cbd5e1;
  --c-bg:#f1f5f9; --c-surface:#ffffff; --c-hover:#f8fafc;
  --c-ok:#16a34a; --c-warn:#f59e0b; --c-danger:#dc2626; --c-info:#0891b2;
  --r-sm:6px; --r-md:10px; --r-lg:14px;
  --sh-1:0 1px 2px rgba(15,23,42,.06),0 1px 3px rgba(15,23,42,.08);
  --sh-2:0 4px 12px rgba(15,23,42,.10);
  --sh-3:0 20px 50px rgba(15,23,42,.25);
  --focus:0 0 0 3px rgba(37,99,235,.25);
  --font:Vazirmatn,Vazirmatnx,Tahoma,sans-serif;
}
html{ -webkit-text-size-adjust:100%; }
body{ font-family:var(--font); color:var(--c-text); background:var(--c-bg); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
::selection{ background:var(--c-primary-l); color:var(--c-ink); }
a{ color:var(--c-primary); }
a:hover{ color:var(--c-primary-d); }
:focus-visible{ outline:2px solid var(--c-primary); outline-offset:1px; }

/* ---------- نوار پیمایش ---------- */
*{ scrollbar-width:thin; scrollbar-color:var(--c-line-d) transparent; }
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-thumb{ background:var(--c-line-d); border-radius:10px; border:2px solid transparent; background-clip:content-box; }
::-webkit-scrollbar-thumb:hover{ background:var(--c-muted); background-clip:content-box; }
::-webkit-scrollbar-track{ background:transparent; }

/* ---------- فرم‌ها ---------- */
input, button, textarea, select{ font-family:var(--font); font-size:13px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], input[type=tel], textarea, select{
  border:1px solid var(--c-line-d); border-radius:var(--r-sm); padding:5px 9px; background:#fff; color:var(--c-ink);
  transition:border-color .15s, box-shadow .15s; }
input[type=text]:hover, input[type=password]:hover, textarea:hover, select:hover{ border-color:var(--c-muted); }
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus, textarea:focus, select:focus{
  border-color:var(--c-primary); background:#fff; box-shadow:var(--focus); outline:none; }
input:disabled, textarea:disabled, select:disabled{ background:var(--c-bg); color:var(--c-muted); cursor:not-allowed; }
input[type=checkbox], input[type=radio]{ accent-color:var(--c-primary); }
legend{ color:var(--c-primary-d); font-weight:700; }
.validation{ border-right:3px solid var(--c-danger) !important; }
.validationError{ border:1px solid var(--c-danger) !important; border-right-width:3px !important; box-shadow:0 0 0 3px rgba(220,38,38,.12); }
.inputbox{ border:1px solid var(--c-line-d) !important; border-radius:var(--r-sm); }
.inputbox:hover{ border-color:var(--c-primary) !important; }
.inputbox button:hover{ border:1px solid var(--c-primary-l) !important; background:var(--c-primary-xl) !important; border-radius:var(--r-sm); }

/* ---------- دکمه‌ها ---------- */
button, .btn{ border-radius:var(--r-sm); transition:background-color .15s, box-shadow .15s, border-color .15s, transform .05s; }
.btn{ font-family:var(--font); font-weight:600; }
.btn:active{ transform:translateY(1px); }
.btn-default{ background:#fff; border-color:var(--c-line-d); color:var(--c-text); }
.btn-default:hover{ background:var(--c-hover); border-color:var(--c-muted); color:var(--c-ink); }
.btn-primary{ background:var(--c-primary); border-color:var(--c-primary); color:#fff; }
.btn-primary:hover, .btn-primary:focus{ background:var(--c-primary-d); border-color:var(--c-primary-d); }
.btn-success{ background:var(--c-ok); border-color:var(--c-ok); }
.btn-success:hover{ background:#15803d; border-color:#15803d; }
.btn-info{ background:var(--c-info); border-color:var(--c-info); }
.btn-warning{ background:var(--c-warn); border-color:var(--c-warn); color:#fff; }
.btn-danger{ background:var(--c-danger); border-color:var(--c-danger); }
.btn-danger:hover{ background:#b91c1c; border-color:#b91c1c; }
.btn:focus-visible{ box-shadow:var(--focus); }

/* ---------- پنل‌ها ---------- */
.panel{ border:1px solid var(--c-line); border-radius:var(--r-md); box-shadow:var(--sh-1); background:var(--c-surface); overflow:hidden; }
.panelHead, .panelHeadGreen{ border-radius:0; font-weight:700; }
.module{ border-radius:var(--r-md); }
.row-red{ background-color:#fee2e2 !important; }

/* ---------- دیالوگ ---------- */
.dialogModal{ background:rgba(15,23,42,.45) !important; backdrop-filter:blur(2px); }
.dialog{ border:0 !important; border-radius:var(--r-md); box-shadow:var(--sh-3); background:var(--c-primary-d); overflow:hidden; }
.dialog > .dialog_header #tdTitle{ font-size:12px; letter-spacing:0; }
.dialog > .dialog_header #tdCloseButton{ background:transparent; border-radius:var(--r-sm); }
.dialog > .dialog_header #tdCloseButton:hover{ background:var(--c-danger); }
.dialog > .dialog_header #tdMaximizeButton:hover{ background:rgba(255,255,255,.18); }
.dialog > .dialog_content{ border:0; border-radius:var(--r-sm); background:#fff; }
.dialog .dialog_buttons{ border:0; background:var(--c-hover); border-top:1px solid var(--c-line); }
.dialog .dialog_buttons button{ border:1px solid var(--c-line-d); background:#fff; border-radius:var(--r-sm); padding:2px 10px; font-weight:600; transition:all .15s; }
.dialog .dialog_buttons button:hover{ border-color:var(--c-primary); background:var(--c-primary-xl); color:var(--c-primary-d) !important; }
.dialog .dialog_buttons button:focus{ border-color:var(--c-primary); background:var(--c-primary-l); box-shadow:var(--focus); }
.dialog .dialog_buttons button.disabled, .dialog .dialog_buttons button.disabled:hover{ background:var(--c-bg) !important; border-color:var(--c-line) !important; }

/* ---------- لودینگ (BlockUI) ---------- */
.blockUI.blockui_modal{ background:rgba(255,255,255,.65) !important; backdrop-filter:blur(2px); }
.blockUI #imgLoading{ display:none !important; }
.blockUI td[valign=middle]::before, .blockUI td[valign="middle"]::before{
  content:""; display:block; width:38px; height:38px; margin:0 auto 10px; border-radius:50%;
  border:4px solid var(--c-primary-l); border-top-color:var(--c-primary); animation:mt-spin .8s linear infinite; }
.blockUI .blockui_text{ color:var(--c-primary-d) !important; font-weight:600; }
@keyframes mt-spin{ to{ transform:rotate(360deg); } }

/* ---------- ریبون و منو ---------- */
.ribbon{ font-size:12px; }
.ribbon .ribbonHeaderButtons .ribbonHeaderButton{ border-radius:var(--r-sm) var(--r-sm) 0 0; transition:background .15s; }
.ribbon .ribbonHeaderButtons .ribbonHeaderButton:hover{ background:var(--c-primary-xl); border-color:var(--c-line); }
.ribbon .ribbonHeaderButtons .ribbonHeaderButton.focus{ background:var(--c-bg); border-color:var(--c-line-d); color:var(--c-primary-d); font-weight:600; }
.ribbon .ribbonHeaderButtons .ribbonHeaderButton.fileButton{ background:var(--c-primary); border-color:var(--c-primary); }
.ribbon .ribbonHeaderButtons .ribbonHeaderButton.fileButton:hover{ background:var(--c-primary-d); border-color:var(--c-primary-d); }
.ribbon .ribbonContainerTabs{ background:var(--c-bg); border-bottom:1px solid var(--c-line-d); }
.ribbon .toolbarButton:hover, .ribbon .ribbonGroupSmallButton:hover, .ribbon .ribbonGroupLargeButton:hover{
  background:var(--c-primary-xl) !important; border-color:var(--c-primary-l) !important; border-radius:var(--r-sm); }
.ribbon .toolbarButton.focus, .ribbon .ribbonGroupSmallButton.focus, .ribbon .ribbonGroupLargeButton.focus{
  background:var(--c-primary-l) !important; border-color:var(--c-primary) !important; border-radius:var(--r-sm); }
.ribbon .contextMenu{ border-radius:var(--r-sm); box-shadow:var(--sh-2); border-color:var(--c-line-d); }
.ribbon .contextMenu .item:hover td{ background:var(--c-primary-xl) !important; }
.menu{ background:#fff; border-top:0; border-bottom:1px solid var(--c-line); box-shadow:var(--sh-1); }
.menu .menuItem{ border-radius:var(--r-sm); transition:background .15s; }
.menu .menuItem:hover{ background:var(--c-primary-xl); color:var(--c-primary-d); }
.menu .menuItem.focus{ border-color:var(--c-line-d); background:var(--c-hover); }
.menu .menuSubItem{ background:#fff; border:1px solid var(--c-line-d); border-radius:var(--r-sm); box-shadow:var(--sh-2); }
.contextMenu, .ContextMenu{ border-radius:var(--r-sm); box-shadow:var(--sh-2); }

/* ---------- تب ---------- */
.tab .tabHeaders .tabHeader{
  background:var(--c-hover); border:1px solid var(--c-line); border-bottom:0; color:var(--c-muted);
  border-top-left-radius:var(--r-sm); border-top-right-radius:var(--r-sm); transition:background .15s,color .15s; }
.tab .tabHeaders .tabHeader:hover{ background:var(--c-primary-xl); border-color:var(--c-primary-l); color:var(--c-primary-d); }
.tab .tabHeaders .tabHeader.selected{ background:#fff; border-color:var(--c-line-d); border-top:3px solid var(--c-primary); color:var(--c-primary-d); font-weight:700; }
.tab .tabContainers .tabContainer{ border:1px solid var(--c-line-d); border-top:1px solid var(--c-line-d); background:#fff; }

/* ---------- گرید ---------- */
.gridView{ border-radius:var(--r-md); }
.gridView.blue .gridView_headerTitle{ background:var(--c-primary-xl); color:var(--c-primary-d); font-weight:700; border-radius:var(--r-md) var(--r-md) 0 0; }
.gridView.blue .gridView_header{ background:var(--c-hover) !important; filter:none; border-bottom:2px solid var(--c-line-d); }
.gridView.blue .gridView_header th{ color:var(--c-muted); font-weight:700; border-left:1px solid var(--c-line); border-top:0; background:transparent; }
.gridView.blue .gridView_header th[fieldName]:hover{ color:var(--c-primary-d); background:var(--c-primary-xl); text-decoration:none; }
.gridView.blue .gridView_content{ background:#fff; }
.gridView.blue .gridView_content tr > td{ border-left:1px solid var(--c-line); border-bottom:1px solid var(--c-line); color:var(--c-text); }
.gridView.blue .gridView_content tr.alternatingRow{ background:var(--c-hover); }
.gridView.blue .gridView_content tr:hover, .gridView.blue .gridView_content tr.hover{ background:var(--c-primary-xl) !important; }
.gridView.blue .gridView_content tr.selected, .gridView.blue .gridView_content tr.focus, .gridView.blue .gridView_content tr.selectedRow{ background:var(--c-primary-l) !important; }
.gridView .gridView_content .gridRowNumber, .gridView.blue .gridView_content tr.hover .gridRowNumber{ background:var(--c-bg); color:var(--c-muted); }
.gridView .gridView_footer input[type=text]{ border:1px solid var(--c-line-d); border-radius:var(--r-sm); }
.gridView.blue .gridView_footer #divPaging.showSimplePaging{ box-shadow:var(--sh-2); border-radius:var(--r-md); }

/* ---------- لیست‌ها و درخت ---------- */
.datalist{ border:1px solid var(--c-line-d); border-radius:var(--r-md); }
.datalist .datalist_header{ background:var(--c-primary) !important; }
.datalist .datalist_content .datalist_item > td{ border-bottom-color:var(--c-line); }
.datalist .datalist_content .datalist_item:hover > td{ background:var(--c-primary-xl); border-color:var(--c-primary-l); }
.datalist .datalist_content .datalist_item.focus > td{ background:var(--c-primary-l) !important; border-color:var(--c-primary) !important; }

/* ---------- پیام خطای سروری ---------- */
#divErrorPanel{ background:rgba(15,23,42,.55) !important; backdrop-filter:blur(2px); z-index:99999; }
#divErrorPanel > tbody > tr > td > div{ background:#fff !important; color:var(--c-ink) !important; border-top:6px solid var(--c-danger); border-radius:var(--r-md); box-shadow:var(--sh-3); max-width:900px; margin:5vh auto; padding:32px !important; }
#divErrorPanel .title{ color:var(--c-danger); font-size:18px !important; }
#divErrorPanel .detailText{ max-height:30vh; overflow:auto; direction:ltr; text-align:left; background:var(--c-bg); border-radius:var(--r-sm); font-family:Consolas,monospace; font-size:12px; }
#divErrorPanel button{ background:var(--c-danger) !important; color:#fff !important; border:0; padding:6px 18px; font-weight:600; cursor:pointer; }
#divErrorPanel button:hover{ background:#b91c1c !important; }

/* ---------- کاربرد: چاپ ---------- */
@media print{
  body{ background:#fff !important; }
  .dialogModal, .blockUI{ display:none !important; }
}

/* ---------- نمایش‌گر کوچک (موبایل/تبلت) ---------- */
@media (max-width:768px){
  input[type=text], input[type=password], select, textarea{ font-size:16px; } /* جلوگیری از زوم خودکار iOS */
  .dialog{ max-width:100vw; }
}
/* قانون حالت «کاهش حرکت» یک‌جا پایین‌تر تعریف شده است (همراه استثنای نشانگرهای بارگذاری) */

/* ==========================================================================
   بخش دوم: پوشش همه‌ی تم‌های گرید/دیالوگ (blue, silver, dark, metronic / bootstrap, metro, ...)
   با دوبار نوشتن نام کلاس، اولویت از قواعد قدیمی (مثل .gridView.silver ...) بیشتر می‌شود.
   ========================================================================== */
html body .gridView.gridView{ border-radius:var(--r-md); }
html body .gridView.gridView #divBody{ border:1px solid var(--c-line) !important; border-radius:var(--r-md) !important; overflow:hidden; background:#fff; box-shadow:var(--sh-1); }
html body .gridView.gridView .gridView_headerTitle{ background:var(--c-primary-xl) !important; color:var(--c-primary-d) !important; font-weight:700; border-radius:0; border-bottom:1px solid var(--c-line); }
html body .gridView.gridView .gridView_header{ background:var(--c-hover) !important; background-image:none !important; filter:none !important; color:var(--c-muted) !important; border-bottom:2px solid var(--c-line-d) !important; font-weight:700; }
html body .gridView.gridView .gridView_header th{ background-color:transparent !important; color:var(--c-muted) !important; font-weight:700; border-top:0 !important; border-left:1px solid var(--c-line) !important; padding-top:6px; padding-bottom:6px; }
html body .gridView.gridView .gridView_header th[fieldName]:hover{ background:var(--c-primary-xl) !important; color:var(--c-primary-d) !important; text-decoration:none !important; }
html body .gridView.gridView .gridView_content{ background:#fff !important; }
html body .gridView.gridView .gridView_content tr > td{ border-left:1px solid var(--c-line) !important; border-bottom:1px solid var(--c-line) !important; color:var(--c-text); padding-top:5px; padding-bottom:5px; }
html body .gridView.gridView .gridView_content tr.alternatingRow > td{ background:var(--c-hover) !important; }
html body .gridView.gridView .gridView_content tr.hover > td{ background:var(--c-primary-xl) !important; }
html body .gridView.gridView .gridView_content tr.focus > td{ background:var(--c-primary-l) !important; color:var(--c-ink) !important; border-bottom:1px solid var(--c-primary) !important; }
/* فقط لینک/برچسب/سلول‌های متنی؛ دکمه‌های واقعی (button/input) هنگام هاور ردیف رنگ متن خود را حفظ می‌کنند */
html body .gridView.gridView .gridView_content tr.hover a.gridButton, html body .gridView.gridView .gridView_content tr.focus a.gridButton, html body .gridView.gridView .gridView_content tr.hover label.gridButton, html body .gridView.gridView .gridView_content tr.focus label.gridButton{ color:var(--c-primary-d) !important; }
html body .gridView.gridView .gridView_content a.gridButton, html body .gridView.gridView .gridView_content label.gridButton, html body .gridView.gridView .gridView_content td.gridButton{ color:var(--c-primary) !important; text-decoration:none; }
html body .gridView.gridView .gridView_content a.gridButton:hover{ text-decoration:underline; }
html body .gridView.gridView .gridView_content .gridRowNumber{ background:var(--c-bg) !important; color:var(--c-muted); }
html body .gridView.gridView .gridView_footer, html body .gridView.gridView .gridView_footer #divPaging{ background:var(--c-hover) !important; color:var(--c-muted) !important; border-top:1px solid var(--c-line) !important; }
html body .gridView.gridView .listMenu .menuGroupText{ background:var(--c-hover) !important; color:var(--c-primary-d) !important; }
html body .gridView.gridView .listMenu .menuItem:hover{ background:var(--c-primary-xl) !important; border:0 !important; }
html body .gridView.gridView .listMenu .menuItem.focus{ background:var(--c-primary-l) !important; border:0 !important; }
html body .gridView.gridView .searchPanel input[type=text]{ padding:3px 6px; }

/* دیالوگ‌ها: همه‌ی تم‌ها */
html body .dialog.dialog{ border:0 !important; border-radius:var(--r-md) !important; box-shadow:var(--sh-3) !important; overflow:hidden; }
html body .dialog.dialog.bootstrap, html body .dialog.dialog.metronic, html body .dialog.dialog.metro, html body .dialog.dialog.office2013{ background:#fff !important; }
html body .dialog.dialog > .dialog_header{ background:linear-gradient(135deg,#1e3a8a,#2563eb) !important; color:#fff; }
html body .dialog.dialog > .dialog_header #tdTitle{ color:#fff !important; font-size:14px; font-weight:700; }
html body .dialog.dialog > .dialog_header #tdCloseButton{ background-color:transparent !important; border-radius:var(--r-sm) !important; }
html body .dialog.dialog > .dialog_header #tdCloseButton:hover{ background-color:var(--c-danger) !important; }
html body .dialog.dialog > .dialog_header #tdMaximizeButton:hover{ background-color:rgba(255,255,255,.2) !important; }
/* آیکن‌های سیستمی دیالوگ تیره‌اند؛ روی هدر رنگی سفید می‌شوند */
html body .dialog.dialog > .dialog_header #tdCloseButton div, html body .dialog.dialog > .dialog_header #tdMaximizeButton > div{ filter:brightness(0) invert(1); }
html body .dialog.dialog > .dialog_content{ background:#fff !important; border:0 !important; border-radius:var(--r-sm); }
html body .dialog.dialog .dialog_buttons{ background:var(--c-hover) !important; border:0 !important; border-top:1px solid var(--c-line) !important; border-radius:0 !important; }
html body .dialog.dialog .dialog_buttons button{ border:1px solid var(--c-line-d) !important; background:#fff !important; background-image:none !important; color:var(--c-text) !important; text-shadow:none !important; box-shadow:none !important; border-radius:var(--r-sm) !important; font-size:13px; font-weight:600; }
html body .dialog.dialog .dialog_buttons button:hover{ border-color:var(--c-primary) !important; background:var(--c-primary-xl) !important; color:var(--c-primary-d) !important; }
html body .dialog.dialog .dialog_buttons button.btnBlue, html body .dialog.dialog .dialog_buttons button.btnGreen{ background:var(--c-primary) !important; border-color:var(--c-primary) !important; color:#fff !important; }
html body .dialog.dialog .dialog_buttons button.btnBlue:hover, html body .dialog.dialog .dialog_buttons button.btnGreen:hover{ background:var(--c-primary-d) !important; }
html body .dialog.dialog .dialog_buttons button.btnRed{ background:var(--c-danger) !important; border-color:var(--c-danger) !important; color:#fff !important; }
html body .dialog.dialog .dialog_buttons button.btnRed:hover{ background:#b91c1c !important; }
html body .dialog.dialog .dialog_buttons button.disabled{ opacity:.5; }

/* دکمه‌ها و فرم‌ها با اولویت بالاتر از Site.css و bootstrap.css */
html body .btn.btn-primary{ background:var(--c-primary) !important; border-color:var(--c-primary) !important; color:#fff !important; background-image:none !important; }
html body .btn.btn-primary:hover{ background:var(--c-primary-d) !important; }
html body .btn.btn-default{ background:#fff !important; border-color:var(--c-line-d) !important; color:var(--c-text) !important; background-image:none !important; }
html body .btn.btn-default:hover{ background:var(--c-primary-xl) !important; border-color:var(--c-primary) !important; }
html body .btn.btn-success{ background:var(--c-ok) !important; border-color:var(--c-ok) !important; background-image:none !important; }
html body .btn.btn-danger{ background:var(--c-danger) !important; border-color:var(--c-danger) !important; background-image:none !important; }
html body .btn.btn-warning{ background:var(--c-warn) !important; border-color:var(--c-warn) !important; background-image:none !important; }
html body .btn.btn-info{ background:var(--c-info) !important; border-color:var(--c-info) !important; background-image:none !important; }
html body .btn{ border-radius:var(--r-sm) !important; font-family:var(--font); }
html body .form-horizontal .control-label{ color:var(--c-muted); font-weight:600; }
html body .form-group{ margin-bottom:12px; }
html body input[type=text]:focus, html body input[type=password]:focus{ background-image:none !important; }
html body .tab .tabHeaders .tabHeader.selected{ background:#fff !important; color:var(--c-primary-d) !important; }
html body .tab .tabHeaders .tabHeader:hover{ background:var(--c-primary-xl) !important; color:var(--c-primary-d) !important; }
html body .menuItem:hover{ background-color:var(--c-primary-xl); }

/* کارت‌های داشبورد (health-status-block): رنگ هر کارت حفظ می‌شود؛ فقط گوشه، سایه و حرکت ملایم */
html body .health-status-block{ border-radius:var(--r-md) !important; box-shadow:var(--sh-1); overflow:hidden; transition:transform .15s, box-shadow .15s; }
html body .health-status-block:hover{ transform:translateY(-2px); box-shadow:var(--sh-2); }
html body .health-status-block .count{ font-weight:800; }

/* ==========================================================================
   صفحه ورود سازمانی (دو ستون: معرفی + فرم)
   ========================================================================== */
#divCenter.lg-wrap{ display:flex; align-items:center; justify-content:center; padding:24px; box-sizing:border-box; overflow:auto;
  background:radial-gradient(1200px 600px at 85% -10%,rgba(59,130,246,.45),transparent 60%),linear-gradient(135deg,#0b1220 0%,#16306b 55%,#1d4ed8 100%) !important; }
.lg-card{ display:flex; width:min(920px,100%); min-height:520px; background:#fff; border-radius:20px; overflow:hidden; box-shadow:0 30px 80px rgba(2,6,23,.55); }
.lg-brand{ flex:1 1 46%; color:#fff; padding:44px 38px; display:flex; flex-direction:column; text-align:right;
  background:linear-gradient(160deg,#1e40af,#2563eb 60%,#38bdf8); position:relative; overflow:hidden; }
.lg-brand::after{ content:""; position:absolute; width:340px; height:340px; border-radius:50%; left:-120px; bottom:-120px; background:rgba(255,255,255,.10); }
.lg-brand::before{ content:""; position:absolute; width:200px; height:200px; border-radius:50%; right:-60px; top:-60px; background:rgba(255,255,255,.08); }
.lg-logo{ width:64px; height:64px; border-radius:18px; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; font-size:30px; margin-bottom:26px; backdrop-filter:blur(4px); }
.lg-brand h1{ font-size:22px; line-height:1.7; margin:0 0 10px; font-weight:800; color:#fff; }
.lg-brand p{ font-size:13px; line-height:2; opacity:.92; margin:0 0 22px; }
.lg-points{ list-style:none; padding:0; margin:0; font-size:13px; line-height:2.2; position:relative; z-index:1; }
.lg-points li{ padding-right:22px; position:relative; }
.lg-points li::before{ content:"\2713"; position:absolute; right:0; top:0; width:16px; height:16px; line-height:16px; margin-top:8px; text-align:center; font-size:10px; border-radius:50%; background:rgba(255,255,255,.25); }
.lg-foot{ margin-top:auto; font-size:12px; opacity:.75; position:relative; z-index:1; }
.lg-form{ flex:1 1 54%; padding:44px 44px 30px; display:flex; flex-direction:column; justify-content:center; text-align:right; color:var(--c-text); }
.lg-form h2{ margin:0 0 4px; font-size:22px; font-weight:800; color:var(--c-ink); }
.lg-sub{ margin:0 0 22px; color:var(--c-muted); font-size:13px; }
.lg-label{ display:block; font-weight:600; font-size:12px; margin:12px 0 5px; color:var(--c-muted); }
#divCenter .lg-input{ width:100%; box-sizing:border-box; padding:11px 14px !important; font-size:14px; border:1.5px solid var(--c-line-d); border-radius:10px; background:#f8fafc; }
#divCenter .lg-input:focus{ background:#fff; border-color:var(--c-primary); box-shadow:var(--focus); }
.lg-captcha{ margin-top:12px; }
.lg-captcha input[type=text]{ padding:8px 12px; border-radius:10px; }
.lg-remember{ display:block; margin:14px 0; font-size:12px; color:var(--c-muted); cursor:pointer; }
.lg-actions{ display:flex; gap:10px; }
#divCenter .lg-actions button{ flex:0 0 auto; border:0; border-radius:10px; padding:11px 20px; font-weight:700; font-size:14px; cursor:pointer; background:var(--c-bg); color:var(--c-text); }
#divCenter .lg-actions button:hover{ background:var(--c-line); }
#divCenter .lg-actions #btnLogin{ flex:1 1 auto; background:linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff; box-shadow:0 8px 18px rgba(37,99,235,.35); }
#divCenter .lg-actions #btnLogin:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.lg-note{ margin:16px 0 0; font-size:11px; color:var(--c-muted); }
#divCenter .lg-error{ display:block; min-height:18px; margin-top:10px; color:var(--c-danger) !important; font-weight:600; font-size:13px; }
.lg-loading{ display:flex !important; align-items:center; gap:12px; justify-content:center; padding:30px 0; font-weight:600; background:none !important; box-shadow:none !important; }
.lg-loading[style*="display: none"]{ display:none !important; }
.lg-spin{ width:22px; height:22px; border-radius:50%; border:3px solid var(--c-primary-l); border-top-color:var(--c-primary); animation:mt-spin .8s linear infinite; }
@media (max-width:760px){
  .lg-card{ flex-direction:column; min-height:0; }
  .lg-brand{ padding:24px; flex:none; } .lg-points, .lg-brand p{ display:none; }
  .lg-form{ padding:26px 22px; }
}

/* ==========================================================================
   ریبون جدید: نوار تب تیره، تب‌ها به‌شکل قرص، گروه‌ها به‌شکل کارت
   (ارتفاع‌ها مثل قبل است تا چیدمان صفحات به‌هم نریزد)
   ========================================================================== */
html body .ribbon{ background:var(--c-bg); border-bottom:1px solid var(--c-line-d); }
html body .ribbon .ribbonHeaderButtontoolbarButtons{ background:transparent !important; }
html body .ribbon .ribbonHeaderButtons{ background:linear-gradient(90deg,#0f172a,#1e3a8a); padding:3px 6px 0; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton{
  color:#cbd5e1; border:0 !important; border-radius:8px 8px 0 0 !important; margin-left:2px; padding:5px 14px 5px !important; font-weight:600; transition:background .15s,color .15s; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton:hover{ background:rgba(255,255,255,.12) !important; color:#fff; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton.focus{ background:var(--c-bg) !important; color:var(--c-primary-d) !important; font-weight:800; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton.fileButton{ background:linear-gradient(135deg,#38bdf8,#2563eb) !important; color:#fff !important; border-radius:8px !important; margin-bottom:3px; }
html body .ribbon .ribbonContainerTabs{ background:var(--c-bg) !important; border-bottom:1px solid var(--c-line-d); padding:4px 4px 0; }
html body .ribbon .ribbonGroup{ border:1px solid var(--c-line) !important; background:#fff; border-radius:10px; margin:0 3px 3px; box-shadow:var(--sh-1); }
html body .ribbon .ribbonGroupName{ color:var(--c-muted) !important; font-weight:600; letter-spacing:0; border-top:1px solid var(--c-line); margin-top:2px; padding-top:1px; }
html body .ribbon .ribbonGroupLargeButton, html body .ribbon .ribbonGroupSmallButton, html body .ribbon .toolbarButton{ border-radius:8px; color:var(--c-text); transition:background .15s,transform .1s; }
html body .ribbon .ribbonGroupLargeButton:hover, html body .ribbon .ribbonGroupSmallButton:hover, html body .ribbon .toolbarButton:hover{ background:var(--c-primary-xl) !important; border-color:var(--c-primary-l) !important; transform:translateY(-1px); }
html body .ribbon .ribbonGroupLargeButton:active, html body .ribbon .ribbonGroupSmallButton:active{ transform:none; background:var(--c-primary-l) !important; }
html body .ribbon .fileItems .fileItem:hover{ background:var(--c-primary-xl); }

/* ==========================================================================
   داشبورد: کارت‌های آماری (رنگ هر کارت حفظ می‌شود، سبک جدید)
   ========================================================================== */
#divGeneral{ padding:6px; }
html body .health-status-block{ margin:8px !important; border-radius:16px !important; min-height:92px; position:relative; cursor:pointer;
  background-image:linear-gradient(135deg,rgba(255,255,255,.22),rgba(0,0,0,.08)) !important; box-shadow:0 6px 16px rgba(15,23,42,.14) !important; }
html body .health-status-block::after{ content:""; position:absolute; width:120px; height:120px; border-radius:50%; left:-40px; bottom:-50px; background:rgba(255,255,255,.14); pointer-events:none; }
html body .health-status-block:hover{ transform:translateY(-4px); box-shadow:0 14px 28px rgba(15,23,42,.22) !important; }
html body .health-status-block .icon{ background:rgba(255,255,255,.22) !important; border-radius:16px 0 0 16px !important; font-size:32px; display:flex; align-items:center; justify-content:center; min-height:92px; backdrop-filter:blur(2px); }
html body .health-status-block .detail{ border-radius:0 16px 16px 0 !important; padding:10px 14px; }
html body .health-status-block .count{ font-size:30px; line-height:1.2; text-shadow:0 2px 6px rgba(0,0,0,.2); }
html body .health-status-block .desc{ font-size:12px; opacity:.95; line-height:1.7; }

/* نشانگر بارگذاری تدریجی ردیف‌های گرید */
.gridLazyMore{ text-align:center; padding:10px; color:var(--c-primary-d); font-weight:600; font-size:12px; background:var(--c-primary-xl); position:sticky; bottom:0; }
.gridEmpty{ text-align:center; padding:28px 10px; color:var(--c-muted, #8a94a6); font-size:13px; }
.gridEmpty i{ margin-left:6px; opacity:.7; }
/* ظرف‌های inline-block (مثلاً دور گرید داخل پنل) زیر خودشان فاصله‌ی خط پایه (~۷px) می‌گذاشتند که در محاسبه‌ی ارتفاع دیده نمی‌شد و تب اسکرول اضافه می‌گرفت */
[style*="display: inline-block"][style*="width: 100%"], [style*="display:inline-block"][style*="width:100%"]{ vertical-align:top; }
/* نشانگر فقط اگر بارگذاری بیش از ۰٫۳ ثانیه طول بکشد دیده می‌شود؛ بارگذاری‌های سریع بدون چشمک، یک‌باره جایگزین می‌شوند */
.gridLoadingOv{ position:absolute; inset:0; z-index:30; cursor:progress; overflow:hidden; border-radius:inherit; opacity:0; animation:mt-fade .18s ease-out .3s forwards; }
.gridLoadingOv::before{ content:""; position:absolute; inset:0; background:rgba(255,255,255,.45); }
.gridLoadingBar{ position:absolute; top:0; left:0; width:35%; height:3px; border-radius:3px; background:var(--c-primary,#2563eb); will-change:transform; animation:grid-bar .9s cubic-bezier(.4,0,.2,1) infinite; }
.gridLoadingSpin{ position:absolute; left:50%; top:50%; width:30px; height:30px; margin:-15px 0 0 -15px; border-radius:50%; border:3px solid rgba(37,99,235,.18); border-top-color:var(--c-primary,#2563eb); will-change:transform; backface-visibility:hidden; animation:mt-spin .75s linear infinite; }
@keyframes grid-bar{ from{ transform:translateX(-110%); } to{ transform:translateX(300%); } }

/* ==========================================================================
   اصلاح ریبون: نوار بالا کاملاً تیره (قبلاً فقط پشت دکمه‌ها رنگ داشت و متن روشن روی زمینه‌ی سفید گم می‌شد)
   ========================================================================== */
html body .ribbon > div:first-child{ background:linear-gradient(90deg,#0f172a 0%,#1e3a8a 100%) !important; height:36px !important; padding:4px 8px 0; box-sizing:border-box; border-radius:0; }
html body .ribbon .ribbonHeaderButtons{ background:transparent !important; height:32px; padding:0 !important; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton{
  color:#e2e8f0 !important; font-size:12.5px; font-weight:600; padding:7px 16px 6px !important; margin-left:3px;
  border-radius:9px 9px 0 0 !important; border:0 !important; background:transparent; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton:hover{ background:rgba(255,255,255,.16) !important; color:#fff !important; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton.focus{ background:#f1f5f9 !important; color:#1d4ed8 !important; font-weight:800; box-shadow:0 -2px 0 #38bdf8 inset; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton.focus *, html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton.focus span{ color:#1d4ed8 !important; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton.fileButton{ background:linear-gradient(135deg,#38bdf8,#2563eb) !important; color:#fff !important; border-radius:9px !important; margin:0 0 3px 8px; box-shadow:0 4px 10px rgba(14,165,233,.4); }
html body .ribbon .toolbarButtons, html body .ribbon .toolbarButtons *{ color:#e2e8f0; }
html body .ribbon .toolbarButtons .toolbarButton:hover{ background:rgba(255,255,255,.16) !important; border-color:transparent !important; }
html body .ribbon .ribbonContainerTabs{ background:#f1f5f9 !important; border-bottom:1px solid #cbd5e1 !important; box-shadow:0 2px 6px rgba(15,23,42,.06); }
html body .ribbon .ribbonGroupLargeButton, html body .ribbon .ribbonGroupSmallButton{ color:#1e293b !important; }
html body .ribbon .ribbonGroupLargeButton:hover, html body .ribbon .ribbonGroupSmallButton:hover{ color:#1d4ed8 !important; }
html body .ribbon .ribbonGroupName{ color:#64748b !important; }
html body .ribbon .fileItems{ background:#fff; border-radius:0 0 12px 12px; box-shadow:0 12px 30px rgba(15,23,42,.2); }
html body .ribbon .fileItems .fileItem{ color:#1e293b; }
html body .ribbon .fileItems .fileItem:hover{ background:#eff6ff !important; color:#1d4ed8 !important; }
html body .ribbon .fileItems .fileItem:hover *{ color:#1d4ed8 !important; }

/* ==========================================================================
   میز کار (داشبورد) — طراحی جدید
   ========================================================================== */
#divGeneral .dsk-hero{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin:10px 14px 6px; padding:22px 28px; border-radius:20px; color:#fff; position:relative; overflow:hidden;
  background:linear-gradient(120deg,#0f172a 0%,#1e3a8a 50%,#0ea5e9 100%); box-shadow:0 14px 34px rgba(30,58,138,.28); }
#divGeneral .dsk-hero::before{ content:""; position:absolute; width:260px; height:260px; border-radius:50%; left:-70px; top:-110px; background:rgba(255,255,255,.10); }
#divGeneral .dsk-hero::after{ content:""; position:absolute; width:150px; height:150px; border-radius:50%; left:140px; bottom:-90px; background:rgba(255,255,255,.08); }
#divGeneral .dsk-hero h2{ margin:0 0 4px; font-size:24px; font-weight:800; color:#fff; }
#divGeneral .dsk-hero p{ margin:0; font-size:13px; opacity:.9; }
#divGeneral .dsk-hero-note{ font-size:13px; opacity:.9; background:rgba(255,255,255,.14); padding:8px 16px; border-radius:999px; backdrop-filter:blur(4px); position:relative; z-index:1; }

/* پنل‌ها = کارت‌های مدرن با نوار رنگی */
html body .panel{ border:0 !important; border-radius:18px !important; background:#fff; box-shadow:0 4px 18px rgba(15,23,42,.08) !important; margin:12px 8px 8px !important; overflow:hidden; }
html body .panelHead{ background:#fff !important; color:#0f172a !important; font-weight:800; font-size:14px; padding:14px 18px !important; border:0 !important; border-bottom:1px solid #eef2f7 !important; border-radius:0 !important; position:relative; }
html body .panelHead::before{ content:""; display:inline-block; width:6px; height:18px; border-radius:6px; background:linear-gradient(180deg,#2563eb,#38bdf8); margin-left:10px; vertical-align:-3px; }
html body .panelHeadGreen{ background:#fff !important; color:#0f172a !important; font-weight:800; font-size:14px; padding:14px 18px !important; border-bottom:1px solid #eef2f7 !important; }
html body .panelHeadGreen::before{ content:""; display:inline-block; width:6px; height:18px; border-radius:6px; background:linear-gradient(180deg,#16a34a,#4ade80); margin-left:10px; vertical-align:-3px; }
html body .panelHead span[id$="Refresh"], html body .panelHead span[id$="refresh"]{ font-size:11px; font-weight:600; color:#2563eb; background:#eff6ff; padding:4px 12px; border-radius:999px; transition:background .15s; }
html body .panelHead span[id$="Refresh"]:hover, html body .panelHead span[id$="refresh"]:hover{ background:#dbeafe; }
html body .panelBody{ padding:10px 8px 6px; background:#fff; }

/* کارت‌های آماری: سفید با نوار رنگ و آیکن گرد؛ رنگ هر کارت از کلاس status-badge خودش می‌آید */
.status-badge-cyan{ --acc:#0891b2; } .status-badge-green{ --acc:#16a34a; } .status-badge-pink{ --acc:#059669; } .status-badge-red{ --acc:#dc2626; }
.status-badge-pinky,.status-badge-pinky1{ --acc:#db2777; } .status-badge-pinky2{ --acc:#e11d48; } .status-badge-pinky3{ --acc:#c026d3; }
.status-badge-puprle1{ --acc:#7c3aed; } .status-badge-puprle2{ --acc:#6d28d9; } .status-badge-puprle3{ --acc:#5b21b6; }
.status-badge-orange,.status-badge-orange1{ --acc:#f59e0b; } .status-badge-orange2{ --acc:#d97706; } .status-badge-orange3{ --acc:#b45309; } .status-badge-orange4{ --acc:#92400e; }
html body .health-status-block{ --acc:#2563eb; background:#fff !important; background-image:none !important; color:#0f172a !important; border:1px solid #eef2f7; border-right:5px solid var(--acc) !important;
  border-radius:16px !important; min-height:96px; margin:8px !important; box-shadow:0 2px 10px rgba(15,23,42,.06) !important; overflow:hidden; transition:transform .18s, box-shadow .18s, border-color .18s; }
html body .health-status-block::after{ background:var(--acc) !important; opacity:.07; width:130px; height:130px; left:-40px; bottom:-60px; }
html body .health-status-block:hover{ transform:translateY(-4px); box-shadow:0 14px 28px rgba(15,23,42,.14) !important; border-color:var(--acc); }
html body .health-status-block .icon{ background:color-mix(in srgb,var(--acc) 13%,#fff) !important; color:var(--acc) !important; width:60px !important; height:60px !important; min-height:0 !important; border-radius:50% !important;
  margin:18px 14px 0 8px; font-size:26px; display:flex; align-items:center; justify-content:center; float:right; }
html body .health-status-block .icon *{ color:var(--acc); }
html body .health-status-block .detail{ background:transparent !important; width:calc(100% - 96px) !important; padding:12px 6px; border-radius:0 !important; }
html body .health-status-block .count{ color:#0f172a !important; font-size:32px; font-weight:800; text-shadow:none; }
html body .health-status-block .desc{ color:#64748b !important; font-size:12px; line-height:1.8; }

/* باکس‌های info-box2 (طراحی سؤال اساتید و ...) */
html body .info-box2{ border-radius:16px !important; background:#f8fafc !important; border:1px solid #e2e8f0; box-shadow:none; transition:transform .18s, box-shadow .18s, border-color .18s; }
html body .info-box2:hover{ transform:translateY(-3px); box-shadow:0 12px 24px rgba(15,23,42,.12); border-color:#93c5fd; background:#fff !important; }

/* پس‌زمینه‌ی ملایم پنل‌های اصلی */
html body #tblContent > tbody > tr > td{ background:#f1f5f9 !important; }

/* ==========================================================================
   لودینگ سراسری (Block.block در X92.Utils.js): حلقه‌ی گرادیانی + متن، به‌جای gif قدیمی
   ========================================================================== */
body div.divBlock{ background:rgba(248,250,252,.42) !important; animation:mt-fade .2s ease-out .15s both; }
body div.divBlock > div{ background-image:none !important; position:relative; width:100%; }
body div.divBlock > div::before{ content:""; position:absolute; left:50%; top:50%; width:58px; height:58px; margin:-44px 0 0 -29px; border-radius:50%;
  background:conic-gradient(from 0deg,rgba(37,99,235,0) 0%,#38bdf8 55%,#1d4ed8 100%);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px)); mask:radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px));
  animation:mt-spin .85s linear infinite; }
body div.divBlock > div::after{ content:"\62F \631  \62D \627 \644  \628 \627 \631 \6AF \630 \627 \631 \6CC \2026 "; position:absolute; left:50%; top:50%; transform:translate(-50%,28px); white-space:nowrap;
  font:700 13px/1 var(--font); color:#1e3a8a; background:#fff; padding:8px 18px; border-radius:999px; box-shadow:0 6px 18px rgba(15,23,42,.14); animation:mt-pulse 1.4s ease-in-out infinite; }
@keyframes mt-fade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes mt-pulse{ 50%{ opacity:.55; } }

/* نام کاربر و دکمه‌ی خروج: داخل نوار تیره‌ی ریبون، سفید و پررنگ */
html body .ribbon > div:first-child{ display:flex !important; align-items:flex-end; justify-content:space-between; height:auto !important; min-height:38px; }
html body .ribbon > div:first-child::after, html body .ribbon > div:first-child::before{ display:none; }
html body .ribbon .ribbonHeaderButtons{ float:none !important; align-self:flex-end; display:flex; align-items:flex-end; }
html body .ribbon .toolbarButtons{ float:none !important; align-self:center; display:flex; align-items:center; gap:10px; padding:3px 14px; margin-bottom:3px; border-radius:999px; background:rgba(255,255,255,.14); }
html body .ribbon .toolbarButtons, html body .ribbon .toolbarButtons *{ color:#fff !important; opacity:1 !important; font-weight:700; font-size:12.5px; }
html body .ribbon .toolbarButtons img{ filter:brightness(0) invert(1); opacity:1 !important; }
html body .ribbon .toolbarButtons .toolbarButton:hover{ background:rgba(255,255,255,.2) !important; border-radius:999px; }

/* ==========================================================================
   صفحه ورود (قالب DefaultPages/Default.html): شیشه‌ای تیره روی زمینه‌ی شفقی متحرک — بدون تصویر
   رنگ اصلی از --bg-Login-Color گرفته می‌شود تا هر سازمان رنگ خودش را داشته باشد
   ========================================================================== */
.lg3{ --brand:var(--bg-Login-Color,#0d6b7a); position:relative; min-height:100vh; min-height:100dvh; display:flex; align-items:center; justify-content:center; padding:24px 16px; box-sizing:border-box; overflow:hidden; direction:rtl; font-family:var(--font); color:#e2e8f0;
  background:#050b1a; }
.lg3 *{ box-sizing:border-box; }
.lg3-bg{ position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.lg3-bg i{ position:absolute; border-radius:50%; filter:blur(90px); opacity:.55; animation:lg3-drift 18s ease-in-out infinite alternate; }
.lg3-bg i:nth-child(1){ width:560px; height:560px; background:var(--brand); right:-120px; top:-140px; }
.lg3-bg i:nth-child(2){ width:480px; height:480px; background:#2563eb; left:-140px; bottom:-120px; animation-duration:22s; animation-delay:-6s; }
.lg3-bg i:nth-child(3){ width:360px; height:360px; background:#7c3aed; left:38%; top:46%; opacity:.30; animation-duration:26s; animation-delay:-12s; }
.lg3-bg::after{ content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.16) 1px,transparent 1.2px); background-size:26px 26px; mask-image:radial-gradient(ellipse at center,#000 30%,transparent 78%); -webkit-mask-image:radial-gradient(ellipse at center,#000 30%,transparent 78%); }
@keyframes lg3-drift{ to{ transform:translate3d(60px,40px,0) scale(1.12); } }

.lg3-card{ position:relative; z-index:1; width:100%; max-width:430px; padding:64px 32px 24px; border-radius:26px; background:linear-gradient(160deg,rgba(255,255,255,.14),rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.18); box-shadow:0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.2); margin-top:56px; }
.lg3-logo{ position:absolute; top:-52px; left:50%; transform:translateX(-50%); width:104px; height:104px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 14px 34px rgba(0,0,0,.45), 0 0 0 7px rgba(255,255,255,.12); }
.lg3-logo img{ max-width:76px !important; max-height:76px !important; margin:0 !important; display:block; }
.lg3-head{ text-align:center; margin-bottom:20px; }
.lg3-title{ margin:0; font-size:18px; font-weight:800; color:#fff; line-height:1.9; }
.lg3-org{ margin-top:2px; font-size:13.5px; font-weight:600; color:#a5b4fc; }
.lg3-hello{ margin:14px 0 0; font-size:12.5px; color:#94a3b8; }

.lg3-card .input-field-PageLogin{ max-width:none; width:100%; height:52px; margin:10px 0; padding:0; border-radius:14px; background:rgba(2,6,23,.45); border:1.5px solid rgba(255,255,255,.14); display:grid; grid-template-columns:48px 1fr; align-items:center; direction:rtl; transition:border-color .18s, box-shadow .18s, background .18s; }
.lg3-card .input-field-PageLogin:hover{ border-color:rgba(255,255,255,.3); }
.lg3-card .input-field-PageLogin:focus-within{ border-color:#60a5fa; background:rgba(2,6,23,.65); box-shadow:0 0 0 4px rgba(96,165,250,.22); }
.lg3-card .input-field-PageLogin i{ line-height:50px; text-align:center; color:#94a3b8; font-size:15px; }
.lg3-card .input-field-PageLogin:focus-within i{ color:#93c5fd; }
.lg3-card .input-field-PageLogin input{ width:100%; height:100%; padding:0 4px 0 14px !important; font-size:14px; font-weight:600; color:#fff !important; text-align:right; background:transparent !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; outline:0; }
.lg3-card .input-field-PageLogin input::placeholder{ color:#64748b; font-weight:500; }
.lg3-card input:-webkit-autofill, .lg3-card input:-webkit-autofill:focus{ -webkit-text-fill-color:#fff; -webkit-box-shadow:0 0 0 100px #0b1730 inset !important; caret-color:#fff; transition:background-color 9999s; }

.lg3-card .captcha-login{ margin:10px 0 0; }
.lg3-card .captcha-login .row{ margin:0; display:block; }
.lg3-card .captcha-login .col-12{ padding:0; width:100%; max-width:none; text-align:center; }
.lg3-card .captcha-login .col-12 > img{ display:block; margin:0 auto; width:auto; max-width:100%; border-radius:12px; background:#fff; padding:2px; }
.lg3-card .captcha-login table{ display:table !important; table-layout:fixed; width:100%; margin:8px 0 0 !important; }
.lg3-card .captcha-login table td:first-child{ width:auto; }
.lg3-card .captcha-login table td:last-child{ width:46px; text-align:center; vertical-align:middle; }
.lg3-card .captcha-login table input{ width:100%; height:48px; margin:0; border-radius:14px; text-align:center; font-size:17px; letter-spacing:4px; font-weight:700; color:#fff !important; background:rgba(2,6,23,.45) !important; border:1.5px solid rgba(255,255,255,.14) !important; box-shadow:none !important; }
.lg3-card .captcha-login table input:focus{ border-color:#60a5fa !important; box-shadow:0 0 0 4px rgba(96,165,250,.22) !important; }
.lg3-card .captcha-login table td:last-child img{ width:26px; height:26px; margin:0 auto; cursor:pointer; filter:invert(1) brightness(1.4); transition:transform .4s; }
.lg3-card .captcha-login table td:last-child img:hover{ transform:rotate(180deg); }

.lg3-card .form-group{ margin:10px 0 0; }
.lg3-card .form-group select{ width:100%; height:48px; padding:0 14px; border-radius:14px; color:#fff; background:rgba(2,6,23,.45); border:1.5px solid rgba(255,255,255,.14); }
.lg3-card .form-group select option{ color:#0f172a; }
.lg3-card .btn-PageLogin-login{ display:flex; gap:10px; margin-top:18px; }
.lg3-card .btn-PageLogin, .lg3-card .btn-PageLogin2{ height:50px; margin:0 !important; width:auto; border-radius:14px; font-weight:800; font-size:14.5px; text-transform:none; border:0; cursor:pointer; transition:transform .15s, filter .15s, box-shadow .15s; }
.lg3-card #btnLogin{ flex:1 1 auto; color:#fff; background:linear-gradient(135deg,#3b82f6,#6366f1) !important; box-shadow:0 12px 28px rgba(79,70,229,.45); }
.lg3-card #btnLogin:hover{ filter:brightness(1.12); transform:translateY(-1px); }
.lg3-card #btnLogin:active{ transform:none; }
.lg3-card #btnForgetPwd{ flex:0 0 auto; padding:0 16px; font-size:12.5px; color:#cbd5e1 !important; background:rgba(255,255,255,.08) !important; }
.lg3-card #btnForgetPwd:hover{ background:rgba(255,255,255,.16) !important; }
.lg3-card #divRecoveryPassword input[type=text]{ width:100%; height:48px; border-radius:14px; text-align:center; margin-bottom:8px; color:#fff; background:rgba(2,6,23,.45); border:1.5px solid rgba(255,255,255,.14); }
.lg3-card #divRecoveryPassword .btn-PageLogin2{ width:calc(50% - 6px); background:rgba(255,255,255,.12); color:#fff; }
.lg3-card .error-Login{ display:block; margin-top:14px; text-align:center; color:#fca5a5 !important; font-weight:700; font-size:13px; }
.lg3-foot{ margin-top:18px; text-align:center; font-size:12px; color:#94a3b8; }
.lg3-foot .butAboutUs, .lg3-foot .butAboutUs *{ color:#94a3b8 !important; }
.lg3-foot img{ filter:grayscale(1) brightness(1.6); opacity:.8; }
@media (max-width:480px){
  .lg3{ padding:16px 12px; }
  .lg3-card{ padding:60px 18px 18px; border-radius:22px; }
  .lg3-bg i{ filter:blur(70px); }
}
@media (max-height:620px){ .lg3-card{ margin-top:48px; } }
@media (prefers-reduced-motion:reduce){ .lg3-bg i{ animation:none; } }

/* بعد از ورود صفحه نباید اسکرول شود؛ فقط خود گرید اسکرول می‌خورد
   (کلاس my-custom-body فقط برای صفحه‌ی ورود لازم است و بعد از ورود باقی می‌ماند) */
html body.my-custom-body:not(:has(.lg3, .input-field-PageLogin, .container-PageLogin)){ overflow:hidden !important; }

/* ریبون: آیکن و متن دکمه‌ها وسط‌چین عمودی (قبلاً آیکن به لبه‌ی بالا چسبیده بود) */
html body .ribbon .ribbonContainerTabs .ribbonContainerTab{ padding-top:5px; }
html body .ribbon .ribbonGroup{ padding-top:4px; }
html body .ribbon .ribbonGroupButtons{ height:64px; }
html body .ribbon .ribbonGroupLargeButton{
  box-sizing:border-box; height:62px; min-width:54px; padding:4px 8px !important;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; line-height:1.25; }
html body .ribbon .ribbonGroupLargeButton img{ width:28px; height:28px; margin:0 !important; flex:none; }
/* دکمه‌های کوچک: سه ردیف در ارتفاع ۶۴ پیکسل جا شوند تا کادر گروه از ریبن بیرون نزند */
html body .ribbon .ribbonGroupSmallButton{ display:flex; align-items:center; gap:6px; box-sizing:border-box; height:21px; padding:0 6px !important; line-height:1; white-space:nowrap; }
html body .ribbon .ribbonGroupSmallButton img{ width:16px; height:16px; flex:none; }
html body .ribbon .ribbonGroup{ box-sizing:border-box; }
html body .ribbon .ribbonGroupButtons{ overflow:visible; }
.lg3-card .error-Login{ width:100% !important; margin:14px 0 0 !important; padding:10px 14px !important; border-radius:12px; background:rgba(239,68,68,.14) !important; border:1px solid rgba(248,113,113,.4) !important; float:none !important; }

/* ==========================================================================
   چیدمان دو ستونی (col-md-3 + col-md-9 و مشابه): با flex، ستون دوم هرگز زیر ستون اول نمی‌افتد
   (قبلاً به‌خاطر float و گرد شدن عرض‌ها، گرید «سوالات» پایین صفحه و زیر پنل درس‌ها لود می‌شد)
   ========================================================================== */
@media (min-width:992px){
  :is(div,section):has(> .col-md-3 + .col-md-9), :is(div,section):has(> .col-md-9 + .col-md-3),
  :is(div,section):has(> .col-md-4 + .col-md-8), :is(div,section):has(> .col-md-8 + .col-md-4){
    display:flex; flex-wrap:nowrap; align-items:flex-start; }
  :is(div,section):has(> .col-md-3 + .col-md-9)::before, :is(div,section):has(> .col-md-3 + .col-md-9)::after,
  :is(div,section):has(> .col-md-9 + .col-md-3)::before, :is(div,section):has(> .col-md-9 + .col-md-3)::after,
  :is(div,section):has(> .col-md-4 + .col-md-8)::before, :is(div,section):has(> .col-md-4 + .col-md-8)::after,
  :is(div,section):has(> .col-md-8 + .col-md-4)::before, :is(div,section):has(> .col-md-8 + .col-md-4)::after{ display:none; }
  :is(div,section):has(> .col-md-3 + .col-md-9) > [class*="col-md-"], :is(div,section):has(> .col-md-9 + .col-md-3) > [class*="col-md-"],
  :is(div,section):has(> .col-md-4 + .col-md-8) > [class*="col-md-"], :is(div,section):has(> .col-md-8 + .col-md-4) > [class*="col-md-"]{
    float:none; min-width:0; box-sizing:border-box; }
  :is(div,section):has(> .col-md-3 + .col-md-9) > .col-md-3, :is(div,section):has(> .col-md-9 + .col-md-3) > .col-md-3{ flex:0 0 25%; max-width:25%; }
  :is(div,section):has(> .col-md-4 + .col-md-8) > .col-md-4, :is(div,section):has(> .col-md-8 + .col-md-4) > .col-md-4{ flex:0 0 33.3333%; max-width:33.3333%; }
  :is(div,section):has(> .col-md-3 + .col-md-9) > .col-md-9, :is(div,section):has(> .col-md-9 + .col-md-3) > .col-md-9,
  :is(div,section):has(> .col-md-4 + .col-md-8) > .col-md-8, :is(div,section):has(> .col-md-8 + .col-md-4) > .col-md-8{ flex:1 1 0; width:auto; max-width:none; }
}

/* ==========================================================================
   select2 (لیست‌های جست‌وجوپذیر مثل «آزمون») هماهنگ با تم
   ========================================================================== */
html body .select2-container{ max-width:100%; }
html body .select2-container--default .select2-selection--single{
  height:36px; border:1px solid var(--c-line-d); border-radius:var(--r-md); background:#fff; outline:none; transition:border-color .15s, box-shadow .15s; }
html body .select2-container--default .select2-selection--single .select2-selection__rendered{ line-height:34px; padding:0 12px; color:var(--c-text); }
html body .select2-container--default .select2-selection--single .select2-selection__arrow{ height:34px; }
html body .select2-container--default .select2-selection--single .select2-selection__placeholder{ color:var(--c-muted); }
html body .select2-container--default .select2-selection--multiple{ min-height:36px; border:1px solid var(--c-line-d); border-radius:var(--r-md); }
html body .select2-container--default:hover .select2-selection--single{ border-color:var(--c-muted); }
html body .select2-container--default.select2-container--focus .select2-selection--single,
html body .select2-container--default.select2-container--open .select2-selection--single,
html body .select2-container--default.select2-container--focus .select2-selection--multiple{ border-color:var(--c-primary); box-shadow:var(--focus); }
html body .select2-dropdown{ border:1px solid var(--c-line-d); border-radius:var(--r-md); box-shadow:var(--sh-3); overflow:hidden; z-index:100000; }
html body .select2-search--dropdown{ padding:8px; }
html body .select2-search--dropdown .select2-search__field{ height:32px; border:1px solid var(--c-line-d); border-radius:var(--r-sm); padding:0 10px; }
html body .select2-results__option{ padding:7px 12px; }
html body .select2-container--default .select2-results__option--highlighted[aria-selected]{ background:var(--c-primary); color:#fff; }
html body .select2-container--default .select2-results__option[aria-selected=true]{ background:var(--c-primary-xl); color:var(--c-primary-d); }

/* دکمه‌های آیکنی کنار فیلدها (مثل «+» افزودن آزمون) */
html body button.buttonIcon{
  display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; padding:0; margin:0 6px;
  vertical-align:middle; font-size:16px; line-height:1; cursor:pointer;
  background:var(--c-primary-xl); color:var(--c-primary); border:1px solid var(--c-primary-l); border-radius:var(--r-md);
  box-shadow:none; transition:background .15s,color .15s,transform .1s; }
html body button.buttonIcon i{ padding:0; margin:0; font-size:16px; }
html body button.buttonIcon:hover{ background:var(--c-primary); color:#fff; border-color:var(--c-primary); transform:translateY(-1px); }
html body button.buttonIcon:active{ transform:none; }

/* بعد از ورود، صفحه (بادی) هرگز اسکرول نمی‌خورد؛ فقط محتوای تب‌ها و گریدها اسکرول دارند */
html:has(body .ribbon), html body:has(.ribbon){ overflow:hidden !important; height:100%; }

/* ناحیه‌ی ردیف‌های گرید یک «بلوک مرجع» است: عناصر absolute داخل ردیف‌ها (فرمول‌های ریاضی، تصاویر، منوها) دیگر از آن بیرون نمی‌زنند
   و ارتفاع اسکرول کانتینر تب را بی‌دلیل زیاد نمی‌کنند (مشکل اسکرول اضافه‌ی صفحه با بارگذاری ردیف‌ها) */
html body .gridView .gridView_content{ position:relative; }

/* ==========================================================================
   آیکن‌های برداری ریبن (RibbonIcons در Ribbon.ascx.js): کاشی رنگی گرد با آیکن سفید؛ رنگ بر اساس مفهوم دکمه
   سبز=افزودن، آبی=اطلاعات/گزارش، قرمز=حذف، کهربایی=ویرایش، بنفش=کپی/جابجایی، ایندیگو=ورود/خروج/آزمون
   ========================================================================== */
html body .rb-ico{ display:inline-flex; align-items:center; justify-content:center; color:#fff; flex:none; box-shadow:0 2px 5px rgba(15,23,42,.22), inset 0 1px 0 rgba(255,255,255,.35); transition:transform .15s; }
html body .rb-ico.rb-lg{ width:36px; height:36px; border-radius:11px; }
html body .rb-ico.rb-md{ width:26px; height:26px; border-radius:8px; }
html body .rb-ico.rb-sm{ width:17px; height:17px; border-radius:5px; }
html body .gridButton .rb-ico, html body .inputbox .rb-ico{ vertical-align:middle; margin:0 2px; }
html body .ribbon .ribbonGroupLargeButton:hover .rb-ico{ transform:translateY(-1px) scale(1.06); }
html body .rb-ico svg{ display:block; }
html body .rb-green{ background:linear-gradient(135deg,#16a34a,#4ade80); }
html body .rb-blue{ background:linear-gradient(135deg,#2563eb,#60a5fa); }
html body .rb-red{ background:linear-gradient(135deg,#dc2626,#f87171); }
html body .rb-amber{ background:linear-gradient(135deg,#d97706,#fbbf24); }
html body .rb-indigo{ background:linear-gradient(135deg,#4338ca,#818cf8); }
html body .rb-teal{ background:linear-gradient(135deg,#0f766e,#2dd4bf); }
html body .rb-purple{ background:linear-gradient(135deg,#7c3aed,#c084fc); }
html body .rb-slate{ background:linear-gradient(135deg,#475569,#94a3b8); }
html body .rb-orange{ background:linear-gradient(135deg,#ea580c,#fb923c); }
html body .ribbon .ribbonGroupSmallButtonImage{ display:flex; align-items:center; }

/* ==========================================================================
   فرم‌های نسل ۲ (دیالوگ‌ها و پنل‌های ویرایش): ورودی‌های گرد با حلقه‌ی فوکوس، چک‌باکس‌های کارتی،
   فیلدست‌های کارت‌مانند، جدول گزینه‌های سوال به صورت ردیف‌های مجزا.
   فقط ظاهر عوض می‌شود؛ ابعادی که اسکریپت‌ها حساب می‌کنند (ارتفاع تب/ویزارد/دیالوگ) دست نمی‌خورد.
   ========================================================================== */
html body .dialog .dialog_content{ background:#f4f7fb !important; }
html body .dialog_content .tab .tabContainers .tabContainer{ background:#fff; border-color:#dfe6ef; border-radius:0 0 12px 12px; }
html body .dialog_content :is(input[type=text],input[type=password],input[type=email],input[type=number],input[type=tel],input[type=search],textarea,select):not(.gridView *){
  min-height:34px; border:1.5px solid #d3dbe7; border-radius:10px; padding:6px 12px; background:#fff; color:var(--c-ink);
  box-shadow:inset 0 1px 1px rgba(15,23,42,.04); font-size:13px; transition:border-color .15s, box-shadow .15s; }
html body .dialog_content :is(input[type=text],input[type=password],input[type=email],input[type=number],input[type=tel],input[type=search],textarea,select):not(.gridView *):hover{ border-color:#94a3b8; }
html body .dialog_content :is(input[type=text],input[type=password],input[type=email],input[type=number],input[type=tel],input[type=search],textarea,select):not(.gridView *):focus{
  border-color:var(--c-primary); box-shadow:0 0 0 4px rgba(37,99,235,.14); background:#fff; }
html body .dialog_content textarea{ min-height:72px; line-height:1.9; }
html body .dialog_content select{ padding-inline-end:28px; cursor:pointer; }
/* فیلد الزامی: نوار قرمز باریک به‌جای کادر ضخیم */
html body .dialog_content .validation{ border-right-width:4px !important; border-right-color:#ef4444 !important; }
html body .dialog_content .validationError{ border-color:#ef4444 !important; box-shadow:0 0 0 4px rgba(239,68,68,.14) !important; }

/* چک‌باکس و رادیو: کارت کوچک قابل کلیک */
html body .dialog_content label.hx1, html body .dialog_content label.hx2{
  display:inline-flex; align-items:center; gap:8px; padding:5px 12px; margin:2px 0; border:1px solid transparent; border-radius:10px;
  cursor:pointer; font-weight:600; color:var(--c-text); transition:background .15s, border-color .15s; }
html body .dialog_content label.hx1:hover, html body .dialog_content label.hx2:hover{ background:var(--c-primary-xl); border-color:var(--c-primary-l); }
html body .dialog_content input[type=checkbox], html body .dialog_content input[type=radio]{ width:17px; height:17px; margin:0; cursor:pointer; }
html body .dialog_content .checkbox{ margin:4px 0; }

/* گروه‌بندی‌ها */
html body .dialog_content fieldset{ border:1px solid #dfe6ef !important; border-radius:14px; padding:10px 16px 14px !important; margin:12px 0; background:#fbfcfe; }
html body .dialog_content fieldset > legend{ display:inline-block; width:auto; border:0 !important; margin:0 0 4px; padding:2px 14px; font-size:12.5px; border-radius:999px; background:var(--c-primary-xl); color:var(--c-primary-d); }

/* چیدمان‌های جدولی و bootstrap */
html body .dialog_content table:not(.gridView table) > tbody > tr > td{ padding-top:6px; padding-bottom:6px; vertical-align:middle; }
html body .dialog_content .form-group{ margin-bottom:12px; }
html body .dialog_content .control-label, html body .dialog_content .form-group > label{ font-weight:600; color:#475569; font-size:12.5px; }
html body .dialog_content .help-block{ color:var(--c-muted); font-size:12px; }

/* متن پرسش و گزینه‌ها در فرم طراحی سوال */
html body .dialog_content .answer, html body .dialog_content .answer.pasteFilter{
  border:1.5px solid #d3dbe7 !important; border-radius:10px; padding:8px 12px; background:#fff; line-height:1.9; min-height:40px; transition:border-color .15s, box-shadow .15s; }
html body .dialog_content .answer:focus{ outline:none; border-color:var(--c-primary) !important; box-shadow:0 0 0 4px rgba(37,99,235,.14); }
html body .dialog_content #tblAnswers{ border-collapse:separate; border-spacing:0 8px; }
html body .dialog_content #tblAnswers th{ font-size:12px; color:var(--c-muted); font-weight:700; padding:0 8px 2px; }
html body .dialog_content #tblAnswers tr.rowanswer > td{ background:#f6f9fd; padding:8px 10px; border-top:1px solid #e3eaf3; border-bottom:1px solid #e3eaf3; vertical-align:middle; }
html body .dialog_content #tblAnswers tr.rowanswer > td:first-child{ border-radius:0 12px 12px 0; border-right:1px solid #e3eaf3; font-weight:800; color:var(--c-primary-d); }
html body .dialog_content #tblAnswers tr.rowanswer > td:last-child{ border-radius:12px 0 0 12px; border-left:1px solid #e3eaf3; }
html body .dialog_content #tblAnswers tr.rowanswer:hover > td{ background:#eef4ff; }
html body .dialog_content .inputbox button{ border-radius:8px; }

/* دکمه‌های داخل فرم */
html body .dialog_content .btn{ border-radius:10px; padding:6px 16px; }
html body .dialog_content .btn-primary{ box-shadow:0 2px 6px rgba(37,99,235,.3); }

/* پنل‌های داده (فرم‌های داخل پنل) */
html body .panelBody :is(input[type=text],input[type=password],input[type=email],input[type=number],textarea,select):not(.gridView *){ border-radius:10px; min-height:32px; border-color:#d3dbe7; }
html body .panelBody :is(input[type=text],input[type=password],input[type=email],input[type=number],textarea,select):not(.gridView *):focus{ box-shadow:0 0 0 4px rgba(37,99,235,.14); border-color:var(--c-primary); }

/* تب‌ها: سربرگ نرم‌تر با نوار رنگی زیر تب فعال */
html body .tab .tabHeaders .tabHeader{ border-radius:10px 10px 0 0; font-weight:600; }
html body .tab .tabHeaders .tabHeader.selected{ border-top:1px solid var(--c-line-d) !important; box-shadow:inset 0 -3px 0 var(--c-primary); }
/* ورودی‌هایی که با استایل درون‌خطی عرض ۸۰٪ دارند تمام عرض ستون را بگیرند تا فرم مرتب‌تر شود */
html body .dialog_content :is(input[type=text],input[type=password],select,textarea)[style*="width: 80%"], html body .dialog_content :is(input[type=text],input[type=password],select,textarea)[style*="width:80%"]{ width:100% !important; box-sizing:border-box; }

/* ===== فرم‌های نسل ۲ - لایه‌ی عمومی (برای همه‌ی فرم‌ها، بدون نیاز به ویرایش تک‌تک) ===== */
.dialog_content table{border-collapse:separate;border-spacing:0 6px;max-width:100%}
.dialog_content td,.dialog_content th{padding:4px 8px;vertical-align:middle;font-size:13px;color:var(--c-text,#1f2a37)}
.dialog_content td:first-child:not(:only-child){white-space:nowrap;color:#475569;font-weight:600}
.dialog_content input[type=text],.dialog_content input[type=password],.dialog_content input[type=number],.dialog_content input[type=email],.dialog_content input[type=tel],.dialog_content input[type=search],.dialog_content input[type=date],.dialog_content select,.dialog_content textarea{min-height:34px;box-sizing:border-box;border:1px solid #cfd8e3;border-radius:8px;padding:5px 10px;background:#fff;font-family:inherit;font-size:13px;transition:border-color .15s,box-shadow .15s}
.dialog_content input:disabled,.dialog_content select:disabled,.dialog_content textarea:disabled,.dialog_content input[readonly]{background:#eef2f7;color:#64748b}
.dialog_content input[type=button],.dialog_content input[type=submit],.dialog_content button{border-radius:8px;min-height:34px;padding:5px 16px;font-family:inherit;cursor:pointer}
.dialog_content hr{border:0;border-top:1px solid #e3e9f1;margin:10px 0}
.dialog_content h1,.dialog_content h2,.dialog_content h3{font-size:15px;font-weight:700;color:#0f172a;margin:8px 0}
.dialog_content img{max-width:100%}
.dialog_content{box-sizing:border-box;max-width:100vw;overflow-x:auto}
@media (max-width:768px){.dialog_content td,.dialog_content th{display:block;width:auto!important}.dialog_content input[type=text],.dialog_content select,.dialog_content textarea{width:100%!important}}

/* ===== اصلاحات عمومی نسل ۲: چک‌باکس/رادیوی بوت‌استرپ، دکمه‌های ورودی، کادرهای صفحه‌ی ورود ===== */
/* بوت‌استرپ قدیمی چک‌باکس را absolute می‌کرد و متن زیر آن می‌رفت (RTL) */
html body .checkbox input[type=checkbox], html body .radio input[type=radio], html body .checkbox-inline input[type=checkbox], html body .radio-inline input[type=radio]{ position:static !important; float:none !important; margin:0 !important; }
html body .checkbox label, html body .radio label{ display:inline-flex !important; align-items:center; gap:8px; padding:5px 12px !important; min-height:0; margin:0; line-height:1.6; cursor:pointer; border-radius:10px; font-weight:600; }
html body .checkbox label:hover, html body .radio label:hover{ background:var(--c-primary-xl); }
html body label.hx1, html body label.hx2{ display:inline-flex; align-items:center; gap:8px; line-height:1.6; }
/* دکمه‌های کنار کادر متن (ویرایشگر / پاک‌کن‌ها) همیشه در یک ردیف */
html body .inputbox #divButtons{ display:flex; flex-wrap:nowrap; align-items:center; gap:2px; white-space:nowrap; }
html body .inputbox button{ width:28px !important; height:28px !important; padding:0 !important; display:inline-flex !important; align-items:center; justify-content:center; flex:none; border-radius:8px; }
html body .inputbox td:last-child{ width:auto !important; white-space:nowrap; }
html body .inputbox .rb-ico.rb-sm{ width:22px; height:22px; border-radius:7px; margin:0; }
/* صفحه‌ی ورود: گوشه‌ی همه‌ی کادرها گرد (autofill رنگ را در گوشه‌ی بدون‌گردی نشان می‌داد) */
.lg3-card .input-field-PageLogin{ overflow:hidden; }
.lg3-card .input-field-PageLogin input, .lg3-card .captcha-login table input, .lg3-card .form-group select{ border-radius:14px !important; background-clip:padding-box; }
.lg3-card .input-field-PageLogin input{ border-radius:0 !important; }
.lg3-card .form-group select{ overflow:hidden; -webkit-appearance:none; appearance:none; padding-inline-end:36px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:left 14px center; }
.lg3-card .captcha-login table input:-webkit-autofill{ border-radius:14px; }

/* کادر متن پاسخ/ورودی: کل عرض را بگیرد و دکمه‌ها کنارش در حداقل جا قرار گیرند */
html body .inputbox{ table-layout:auto; width:100% !important; }
html body .inputbox td.selector{ width:100% !important; }
html body .inputbox td.selector > *{ width:100% !important; box-sizing:border-box; margin:0; }
html body .inputbox td:last-child{ width:1% !important; }
html body .dialog_content .inputbox .answer{ width:100% !important; box-sizing:border-box; min-height:44px; }

/* ===== اطلاعیه‌های صفحه‌ی ورود (کنار کادر ورود در صفحه‌ی بزرگ، زیر آن در موبایل) ===== */
.lg3{ flex-wrap:wrap; gap:24px; align-content:center; }
.lg3 > .lg3-card, .lg3 > .lg3-news{ position:relative; z-index:1; }
.lg3-news{ width:min(460px,100%); max-height:min(640px,86vh); display:flex; flex-direction:column; border-radius:24px; overflow:hidden;
  background:linear-gradient(160deg,rgba(255,255,255,.10),rgba(255,255,255,.04)); border:1px solid rgba(255,255,255,.14);
  box-shadow:0 30px 70px rgba(2,6,23,.55); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); animation:lg3NewsIn .5s ease both; }
.lg3-news-head{ display:flex; align-items:center; gap:10px; padding:16px 20px; border-bottom:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.05); color:#fff; font-size:15px; }
.lg3-news-ico{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:11px; color:#fff; background:linear-gradient(135deg,#f59e0b,#fb923c); box-shadow:0 6px 16px rgba(245,158,11,.45); }
.lg3-news-body{ padding:16px 20px 20px; overflow:auto; font-size:13.5px; line-height:2.1; color:#dbe4f3; text-align:right; }
.lg3-news-body p{ margin:0 0 10px; }
.lg3-news-body a{ color:#93c5fd; text-decoration:underline; }
.lg3-news-body ul, .lg3-news-body ol{ margin:6px 0 10px; padding-inline-start:22px; }
.lg3-news-body li{ margin-bottom:4px; }
.lg3-news-body h1, .lg3-news-body h2, .lg3-news-body h3, .lg3-news-body h4{ color:#fff; font-size:14.5px; margin:12px 0 6px; }
.lg3-news-body img{ max-width:100%; height:auto; border-radius:12px; }
.lg3-news-body table{ max-width:100%; border-collapse:collapse; }
.lg3-news-body td, .lg3-news-body th{ border:1px solid rgba(255,255,255,.18); padding:4px 8px; }
.lg3-news-body *{ background-color:transparent !important; color:inherit; }
.lg3-news-body a *{ color:#93c5fd; }
.lg3-news-body::-webkit-scrollbar{ width:6px; }
.lg3-news-body::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.25); border-radius:6px; }
@keyframes lg3NewsIn{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
@media (max-width:980px){ .lg3{ align-items:flex-start; padding-top:32px; } .lg3-news{ max-height:none; } }

/* ===== UI/UX عمومی: دسترس‌پذیری و جزئیات ظاهری ===== */
html body :focus-visible{ outline:3px solid rgba(37,99,235,.45); outline-offset:2px; border-radius:6px; }
html body input:focus-visible, html body select:focus-visible, html body textarea:focus-visible{ outline-offset:0; }
html body *{ scrollbar-width:thin; scrollbar-color:#b6c2d4 transparent; }
html body *::-webkit-scrollbar{ width:8px; height:8px; }
html body *::-webkit-scrollbar-thumb{ background:#b6c2d4; border-radius:8px; }
html body *::-webkit-scrollbar-thumb:hover{ background:#8fa0b8; }
html body ::selection{ background:rgba(37,99,235,.22); }
/* حالت «کاهش حرکت» ویندوز (Show animations خاموش):
   - ترنزیشن‌ها کاملاً خاموش (۰٫۰۱ms روی همه‌ی ویژگی‌ها ترنزیشن می‌ساخت و اندازه‌گیری ارتفاع گریدها یک فریم عقب می‌ماند)
   - انیمیشن‌های تزئینی یک بار و فوری اجرا می‌شوند و می‌ایستند
   - نشانگرهای «در حال بارگذاری» بازخورد ضروری‌اند و با سرعت عادی می‌چرخند؛ قبلاً مدتشان ۰٫۰۱ms می‌شد و اسپینر در هر فریم
     در زاویه‌ای تصادفی رسم می‌شد (پرش و «لگ» دایره‌ی لودینگ) */
@media (prefers-reduced-motion:reduce){
  html body *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:0s !important; transition-delay:0s !important; }
  html body .tbl-spin, html body .lg-spin, html body .ip-spin{ animation-duration:.8s !important; animation-iteration-count:infinite !important; }
  html body .gridLoadingSpin, html body .spinner-border, html body .spinner-grow{ animation-duration:.75s !important; animation-iteration-count:infinite !important; }
  html body .gridLoadingBar{ animation-duration:.9s !important; animation-iteration-count:infinite !important; }
  html body .fa-spin{ animation-duration:2s !important; animation-iteration-count:infinite !important; }
  html body .fa-pulse{ animation-duration:1s !important; animation-iteration-count:infinite !important; }
  html body .progress-bar-animated, html body .ip-bar i{ animation-duration:1s !important; animation-iteration-count:infinite !important; }
}
/* کارت‌های وضعیت داشبورد: هر وضعیت رنگ خودش را دارد (از DashColors)؛ عدد هم همرنگ وضعیت */
html body .health-status-block .count{ color:var(--acc,#0f172a) !important; }
html body .health-status-block:hover .desc{ color:var(--acc,#475569) !important; }

/* کارت‌های آماری داشبورد: آیکن و متن همیشه وسط‌چین عمودی (قبلاً آیکن به لبه‌ی بالای کادر می‌چسبید) */
html body .health-status-block{ display:flex !important; align-items:center; min-height:96px; }
html body .health-status-block::before{ display:none !important; }
html body .health-status-block .icon{ float:none !important; flex:none; margin:0 14px !important; }
html body .health-status-block .detail{ float:none !important; flex:1 1 auto; width:auto !important; min-width:0; padding:12px 6px; }

/* ===== آیکن باکس‌های داشبورد: وسط‌چین عمودی و افقی ===== */
html body .info-box2{display:flex !important;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:92px;padding:10px 6px !important;text-align:center;position:relative;}
html body .info-box2 .icon{float:none !important;display:flex;align-items:center;justify-content:center;margin:0 !important;width:auto !important;height:auto !important;padding:0 !important;}
html body .info-box2 .icon img{margin:0 auto !important;display:block;height:36px;}
html body .info-box2 .detail{float:none !important;width:100%;padding:0 !important;margin:0 !important;text-align:center;}
html body .info-box2 .detail .title{padding:0 !important;display:block;line-height:1.5;}

/* ===== الگوی واحد کاشی‌های داشبورد (info-box2): گرید ثابت، اندازه‌ی یکسان، بدون پرش در hover ===== */
html body .panelBody.hx3{display:flex !important;flex-wrap:wrap;align-items:stretch;align-content:flex-start;margin:0 !important;padding:10px !important;width:100% !important;box-sizing:border-box;}
html body .panelBody.hx3>[class*="col-"]{float:none !important;width:33.3333% !important;max-width:33.3333%;padding:6px !important;margin:0 !important;box-sizing:border-box;display:block;}
html body .info-box2{height:108px !important;min-height:108px !important;margin:0 !important;width:100% !important;box-sizing:border-box;overflow:hidden;gap:8px !important;}
html body .info-box2:hover{transform:none !important;margin:0 !important;min-height:108px !important;border-radius:16px !important;box-shadow:0 8px 20px rgba(37,99,235,.18) !important;}
html body .info-box2 .icon{height:40px !important;width:40px !important;flex:0 0 40px;}
html body .info-box2 .icon img{width:40px !important;height:40px !important;object-fit:contain;margin:0 !important;}
html body .info-box2 .detail{flex:0 0 auto;width:100%;}
html body .info-box2 .detail .title{font-size:12px;font-weight:600;line-height:1.5;max-height:3em;overflow:hidden;}
html body .info-box2 .detail .count{display:block;margin:0 !important;font-size:12px;}
html body .info-box2 .detail .count:empty{display:none;}
html body .info-box2 .lbl{position:absolute;top:6px;inset-inline-end:8px;margin:0 !important;}

/* ===== ویرایشگر سوال چندگزینه‌ای: کارت‌های گزینه با برچسب حرف، سوئیچ «صحیح» و هایلایت گزینه‌ی درست ===== */
@counter-style abjad-fa{ system:fixed; symbols:"الف" "ب" "ج" "د" "ه" "و" "ز" "ح"; fallback:decimal; }
html body #tblAnswers{ display:block; clear:both; float:none !important; width:100% !important; box-sizing:border-box; border:0 !important; margin-top:14px !important; counter-reset:opt; }
html body #tblAnswers thead{ display:none; }
/* v1108b: ویرایشگر حالت ۲ - دکمه‌های «پاک کردن استایل همه‌ی گزینه‌ها» (btnClearAll / btnClearFullAll) در نوار بالای گزینه‌ها دوباره نمایش داده می‌شوند */
html body #tblAnswers thead.hx4{ display:block; }
html body #tblAnswers thead tr{ display:flex; justify-content:flex-start; }
html body #tblAnswers thead th{ display:none !important; }
html body #tblAnswers thead th.hx5{ display:flex !important; gap:8px; align-items:center; font-size:0 !important; padding:0 !important; width:auto !important; }
html body #tblAnswers thead th button{ display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 12px; border:1px solid #cbd5e1 !important; border-radius:10px; background:#fff !important; font-size:12.5px; font-weight:600; color:#334155; cursor:pointer; font-family:inherit; }
html body #tblAnswers thead th button:hover{ border-color:#2563eb !important; background:#eff6ff !important; color:#1d4ed8; }
html body #tblAnswers thead th button img{ width:18px; height:18px; }
html body #tblAnswers thead #btnClearAll::after{ content:"پاک کردن استایل همه‌ی گزینه‌ها"; }
html body #tblAnswers thead #btnClearFullAll::after{ content:"پاک کردن کامل استایل (متن ساده)"; }
html body #tblAnswers tbody{ display:flex; flex-direction:column; gap:10px; }
html body #tblAnswers tr.rowanswer{ display:grid; grid-template-columns:44px 112px minmax(0,1fr) 74px; align-items:center; gap:12px; padding:10px 14px; background:#fff; border:1.5px solid #e2e8f0; border-radius:14px; transition:border-color .15s, box-shadow .15s, background .15s; counter-increment:opt; }
html body #tblAnswers tr.rowanswer:focus-within{ border-color:#60a5fa; box-shadow:0 0 0 4px rgba(37,99,235,.10); }
html body #tblAnswers tr.rowanswer:has(.ckhIsCorrect:checked){ border-color:#22c55e; background:#f0fdf4; box-shadow:0 0 0 3px rgba(34,197,94,.14); }
html body #tblAnswers tr.rowanswer > td{ display:block; padding:0 !important; border:0 !important; background:none !important; text-align:start; }
/* برچسب حرف (الف، ب، ج، د) */
html body #tblAnswers tr.rowanswer > td:first-child{ font-size:0 !important; width:40px; height:40px; border-radius:50% !important; background:#eff6ff !important; display:flex; align-items:center; justify-content:center; }
html body #tblAnswers tr.rowanswer > td:first-child::before{ content:counter(opt, abjad-fa); font-size:15px; font-weight:700; color:#1d4ed8; }
html body #tblAnswers tr.rowanswer:has(.ckhIsCorrect:checked) > td:first-child{ background:#22c55e !important; }
html body #tblAnswers tr.rowanswer:has(.ckhIsCorrect:checked) > td:first-child::before{ color:#fff; }
/* سوئیچ «پاسخ صحیح» */
html body #tblAnswers tr.rowanswer > td label{ display:inline-flex; align-items:center; justify-content:center; gap:6px; width:100%; margin:0; padding:7px 10px; border:1.5px solid #cbd5e1; border-radius:999px; font-size:0 !important; font-weight:600; color:#475569; cursor:pointer; user-select:none; transition:all .15s; }
html body #tblAnswers tr.rowanswer > td label:hover{ border-color:#22c55e; color:#15803d; }
html body #tblAnswers tr.rowanswer > td label:has(.ckhIsCorrect:checked){ background:#22c55e; border-color:#22c55e; color:#fff; }
html body #tblAnswers tr.rowanswer > td label::before{ content:"پاسخ صحیح"; font-size:12.5px; }
html body #tblAnswers tr.rowanswer > td label:has(.ckhIsCorrect:checked)::before{ content:"✓ پاسخ صحیح"; }
html body #tblAnswers .ckhIsCorrect{ position:absolute !important; opacity:0; width:0; height:0; pointer-events:none; }
/* ستون‌های متنیِ «گزینه صحیح/نادرست» (حالت بدون انتخاب) */
html body #tblAnswers tr.rowanswer > td:nth-child(2):not(.hx6){ font-size:12.5px; font-weight:600; color:#64748b; text-align:center; }
/* متن گزینه */
html body #tblAnswers .inputbox{ border:0 !important; background:none !important; }
html body #tblAnswers .answer, html body #tblAnswers .answer.pasteFilter{ min-height:44px !important; height:auto !important; max-height:160px; padding:10px 12px !important; border:1px solid #e2e8f0 !important; border-radius:10px !important; background:#f8fafc; font-size:14.5px; line-height:1.9; }
html body #tblAnswers .answer:focus{ background:#fff; }
html body #tblAnswers .answer:empty::before{ content:"متن گزینه را اینجا بنویسید…"; color:#94a3b8; }
/* ضریب MPL */
html body #tblAnswers input.mpl{ width:100% !important; height:40px; text-align:center; border:1px solid #e2e8f0; border-radius:10px; background:#f8fafc; }
html body #tblAnswers tr.rowanswer > td:last-child::before{ content:"MPL"; display:block; font-size:10.5px; color:#94a3b8; text-align:center; margin-bottom:2px; }
/* ردیف‌های ترجمه همین الگو را دارند ولی بدون ستون صحیح/MPL */
html body #tblAnswers tr.rowanswerTranslate{ display:grid; grid-template-columns:44px minmax(0,1fr); align-items:center; gap:12px; padding:10px 14px; background:#fff; border:1.5px dashed #cbd5e1; border-radius:14px; counter-increment:opt; }
html body #tblAnswers tr.rowanswerTranslate > td{ display:block; padding:0 !important; border:0 !important; }
html body #tblAnswers tr.rowanswerTranslate > td:first-child{ font-size:0 !important; width:40px; height:40px; border-radius:50% !important; background:#f1f5f9; display:flex; align-items:center; justify-content:center; }
html body #tblAnswers tr.rowanswerTranslate > td:first-child::before{ content:counter(opt, abjad-fa); font-size:15px; font-weight:700; color:#64748b; }
@media (max-width:900px){ html body #tblAnswers tr.rowanswer{ grid-template-columns:44px minmax(0,1fr); } html body #tblAnswers tr.rowanswer > td:nth-child(2), html body #tblAnswers tr.rowanswer > td:last-child{ grid-column:2; } }

html body .qe-hint{ display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:12px; padding:9px 14px; background:#f8fafc; border:1px dashed #cbd5e1; border-radius:10px; font-size:12px; color:#64748b; }
html body .qe-hint kbd{ display:inline-block; min-width:22px; padding:1px 6px; text-align:center; background:#fff; border:1px solid #cbd5e1; border-bottom-width:2px; border-radius:6px; font:600 11px/1.5 Consolas, monospace; color:#334155; }

/* ===== ریبن نسخه‌ی ۳ (روشن و مدرن) + تب فعال با کادر آبی و هاله‌ی نورانی مثل Edge ===== */
html body .ribbon > div:first-child{ background:linear-gradient(180deg,#ffffff 0%,#f1f5f9 100%) !important; border-bottom:1px solid #dbe3ee; min-height:46px !important; padding:6px 12px 6px !important; align-items:center !important; }
html body .ribbon .ribbonHeaderButtons{ align-items:center !important; gap:6px; height:auto !important; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton{ color:#475569 !important; font-size:13px; font-weight:600; padding:8px 18px !important; margin:0 !important; border:2px solid transparent !important; border-radius:11px !important; background:transparent !important; transition:background .15s, color .15s, box-shadow .2s, border-color .2s; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton:hover{ background:#e8f0fe !important; color:#1d4ed8 !important; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton.focus{ background:#fff !important; color:#1d4ed8 !important; font-weight:800; border-color:#3b82f6 !important; box-shadow:0 0 0 3px rgba(59,130,246,.22), 0 6px 18px rgba(59,130,246,.38) !important; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton.fileButton{ color:#fff !important; border-color:transparent !important; background:linear-gradient(135deg,#38bdf8,#2563eb) !important; margin-inline-end:8px !important; box-shadow:0 4px 12px rgba(37,99,235,.35) !important; }
html body .ribbon .toolbarButtons{ background:#fff !important; border:1px solid #dbe3ee; box-shadow:0 1px 3px rgba(15,23,42,.06); }
html body .ribbon .toolbarButtons, html body .ribbon .toolbarButtons *{ color:#334155 !important; }
html body .ribbon .toolbarButtons img{ filter:invert(.78); }
html body .ribbon .toolbarButtons .toolbarButton:hover{ background:#eff6ff !important; }
html body .ribbon .ribbonContainerTabs{ background:#f8fafc !important; border-bottom:1px solid #dbe3ee !important; box-shadow:0 4px 10px rgba(15,23,42,.04); padding:8px 8px 4px !important; }
html body .ribbon .ribbonGroup{ border:1px solid #e2e8f0 !important; border-radius:14px !important; box-shadow:0 1px 2px rgba(15,23,42,.05) !important; }
html body .ribbon .ribbonGroupLargeButton, html body .ribbon .ribbonGroupSmallButton{ border:1px solid transparent !important; border-radius:10px !important; }
html body .ribbon .ribbonGroupLargeButton:hover, html body .ribbon .ribbonGroupSmallButton:hover{ background:#eff6ff !important; border-color:#bfdbfe !important; }
html body .tab .tabHeaders .tabHeader.selected{ border:2px solid #3b82f6 !important; border-radius:11px 11px 0 0 !important; box-shadow:0 0 0 3px rgba(59,130,246,.2), 0 -4px 16px rgba(59,130,246,.3) !important; background:#fff !important; color:#1d4ed8 !important; position:relative; z-index:2; }

html body #tblAnswers{ margin-top:18px !important; }
html body #tblAnswers tr.rowanswer{ column-gap:16px !important; }
html body #tblAnswers tr.rowanswer > td:nth-child(3){ min-width:0; padding-inline-start:6px !important; }

/* ===== اصلاح پرش صفحه هنگام انتخاب گزینه‌ی صحیح + اسکرول تو در تو ===== */
html body #tblAnswers tr.rowanswer > td label{ position:relative; }
html body #tblAnswers .ckhIsCorrect{ left:0 !important; top:0 !important; }
html body .dialog_content:has(.wizard){ overflow:hidden !important; }
html body .wizard .stepContent{ overflow-x:hidden !important; overflow-y:auto !important; overscroll-behavior:contain; scroll-behavior:auto; }
html body .dialog_content{ overflow-x:hidden; overscroll-behavior:contain; }

/* ===== نوار مراحل ===== */
html body .wz-stepper{ display:flex; gap:8px; margin:0 0 14px; padding:6px; background:#f1f5f9; border-radius:14px; }
html body .wz-step{ flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:9px 10px; border:2px solid transparent; border-radius:10px; background:transparent; color:#64748b; font:600 13px/1.4 inherit; font-family:inherit; cursor:pointer; transition:all .18s; }
html body .wz-step b{ display:inline-flex; width:24px; height:24px; align-items:center; justify-content:center; border-radius:50%; background:#cbd5e1; color:#fff; font-size:12px; }
html body .wz-step:hover{ background:#e8f0fe; color:#1d4ed8; }
html body .wz-step.done b{ background:#22c55e; }
html body .wz-step.done b::before{ content:"✓"; }
html body .wz-step.done b{ font-size:0; } html body .wz-step.done b::before{ font-size:13px; }
html body .wz-step.on{ background:#fff; color:#1d4ed8; border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.2), 0 4px 14px rgba(59,130,246,.28); }
html body .wz-step.on b{ background:#2563eb; }
html body .wizard .wizardStepTitle{ display:none; }

/* ===== پیش‌نمایش زنده ===== */
html body .qe-preview{ margin-top:14px; padding:14px 18px; background:#fff; border:1.5px solid #dbeafe; border-radius:14px; box-shadow:0 2px 10px rgba(37,99,235,.06); }
html body .qe-pv-h{ font-size:12px; font-weight:700; color:#2563eb; margin-bottom:8px; }
html body .qe-pv-q{ font-size:15px; line-height:2; color:#0f172a; padding-bottom:8px; border-bottom:1px dashed #e2e8f0; }
html body .qe-pv-q img, html body .qe-pv-o img{ max-width:100%; height:auto; }
html body .qe-pv-o{ list-style:none; margin:10px 0 0; padding:0; counter-reset:pv; display:flex; flex-direction:column; gap:6px; }
html body .qe-pv-o li{ counter-increment:pv; display:flex; align-items:baseline; gap:10px; padding:7px 12px; border:1px solid #e2e8f0; border-radius:10px; font-size:14px; }
html body .qe-pv-o li::before{ content:counter(pv, abjad-fa) ")"; font-weight:700; color:#64748b; min-width:28px; }
html body .qe-pv-o li.ok{ background:#f0fdf4; border-color:#86efac; }
html body .qe-pv-o li.ok::before{ color:#16a34a; }

/* ===== نشانگر فیلد اجباری/خطا: به‌جای خط قرمز ضخیم ===== */
html body .validation{ border-right-width:1px !important; border-color:#fca5a5 !important; background-image:linear-gradient(#ef4444,#ef4444); background-repeat:no-repeat; background-size:3px 14px; background-position:right 6px center; }
html body .validationError{ border:1.5px solid #ef4444 !important; background-color:#fef2f2 !important; box-shadow:0 0 0 3px rgba(239,68,68,.12); }

/* ===== فرم‌های جدولی داخل دیالوگ (مثل افزودن منبع): کارت دوستونه، برچسب بالای ورودی ===== */
html body .dialog_content #divGeneral > .row{ display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:16px; margin:0 !important; padding:6px 4px; }
html body .dialog_content #divGeneral > .row > [class*="col-"]{ float:none !important; width:auto !important; padding:16px 18px !important; background:#f8fafc; border:1px solid #e2e8f0; border-radius:16px; box-sizing:border-box; }
html body .dialog_content #divGeneral > .row > [class*="col-"] > table, html body .dialog_content #divGeneral > .row > [class*="col-"] > table > tbody{ display:block; width:100% !important; }
html body .dialog_content #divGeneral > .row > [class*="col-"] > table > tbody > tr{ display:flex; flex-direction:column; gap:5px; margin-bottom:11px; }
html body .dialog_content #divGeneral > .row > [class*="col-"] > table > tbody > tr > td{ display:block; width:auto !important; padding:0 !important; border:0 !important; white-space:normal; }
html body .dialog_content #divGeneral > .row > [class*="col-"] > table > tbody > tr > td:first-child:not(:only-child){ font-size:12.5px; font-weight:700; color:#475569; }
html body .dialog_content #divGeneral > .row > [class*="col-"] > table > tbody > tr > td:first-child:empty{ display:none; }
html body .dialog_content #divGeneral > .row > [class*="col-"] input[type=text], html body .dialog_content #divGeneral > .row > [class*="col-"] select, html body .dialog_content #divGeneral > .row > [class*="col-"] .select2-container{ width:100% !important; max-width:none !important; box-sizing:border-box; }
html body .dialog_content #divGeneral > .row > [class*="col-"] .checkbox{ margin:0; }
html body .dialog_content #divGeneral > .row > [class*="col-"] .simpleUploader button, html body .dialog_content #divGeneral > .row > [class*="col-"] .btn-primary{ border-radius:10px !important; min-height:38px; }

/* ===== تب‌ها: خط آبی سرتاسری زیر نوار تب‌ها و تب فعال پیوسته به آن ===== */
html body .tab > .tabHeaders, html body .tab .tabHeaders{ border-bottom:2px solid #3b82f6 !important; box-shadow:0 3px 8px -2px rgba(59,130,246,.35); background:linear-gradient(180deg,#fff,#f1f5f9); }
html body .tab .tabHeaders .tabHeader.selected{ border-bottom-color:#fff !important; margin-bottom:-2px; }

/* ===== اصلاح نهایی: فرم‌های دیالوگ (pseudo-elementهای bootstrap row دیگر سلول گرید نمی‌گیرند) ===== */
html body .dialog_content #divGeneral > .row::before, html body .dialog_content #divGeneral > .row::after{ display:none !important; content:none !important; }
html body .dialog_content #divGeneral > .row{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
html body .dialog_content #divGeneral > .row > [class*="col-"]{ min-width:0; }
@media (max-width:760px){ html body .dialog_content #divGeneral > .row{ grid-template-columns:minmax(0,1fr); } }

/* ===== ریبن: نوار بالایی ارغوانی، تب فعال سفید با کادر آبی نورانی ===== */
html body .ribbon > div:first-child{ background:linear-gradient(120deg,#0f172a 0%,#1e3a8a 55%,#1e6fd9 100%) !important; border-bottom:0; box-shadow:0 4px 14px rgba(30,58,138,.28); }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton{ color:#e0ecff !important; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton:hover{ background:rgba(255,255,255,.18) !important; color:#fff !important; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton.focus{ background:#fff !important; color:#1d4ed8 !important; }
html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton.focus *, html body .ribbon .ribbonHeaderButtons .ribbonHeaderButton.focus span{ color:#1d4ed8 !important; }
html body .ribbon .toolbarButtons{ background:rgba(255,255,255,.95) !important; border:0; }

/* ===== آیکن کاشی‌های میزکار هم‌اندازه و هم‌طرح آیکن‌های ریبن ===== */
html body .info-box2 .icon{ height:44px !important; width:44px !important; flex:0 0 44px; }
html body .info-box2 .icon img{ width:44px !important; height:44px !important; border-radius:12px; box-shadow:0 4px 10px rgba(15,23,42,.18); }

/* ===== ریبن: فقط یک خط پایین (حذف خط‌های تکراری) ===== */
html body .ribbon{ border:0 !important; border-bottom:1px solid #cbd5e1 !important; box-shadow:none !important; }
html body .ribbon > div:first-child{ border:0 !important; }
html body .ribbon .ribbonContainerTabs{ border:0 !important; box-shadow:none !important; }
html body .ribbon .ribbonContainerTabs .ribbonContainerTab{ border-top:0 !important; }
html body .ribbon > div:nth-child(3){ border:0 !important; height:0; }

/* ===== پنل کناری قابل‌بستن (Drawer) ===== */
html body .sd-col{ transition:width .22s ease, max-width .22s ease; position:relative; }
html body .sd-col > .panel > .panelHead{ position:relative; padding-inline-end:44px; }
html body .sd-toggle{ position:absolute; top:50%; inset-inline-end:10px; transform:translateY(-50%); width:30px; height:30px; border:0; border-radius:9px; background:#eff6ff; color:#1d4ed8; font-size:16px; line-height:1; cursor:pointer; transition:background .15s, transform .22s; }
html body .sd-toggle:hover{ background:#dbeafe; }
html body .sd-col.sd-collapsed{ width:58px !important; max-width:58px; }
html body .sd-col.sd-collapsed + .sd-main{ width:calc(100% - 58px) !important; }
html body .sd-col.sd-collapsed > .panel > .panelBody{ display:none; }
html body .sd-col.sd-collapsed > .panel > .panelHead{ writing-mode:vertical-rl; text-orientation:mixed; padding:60px 12px 20px !important; min-height:170px; white-space:nowrap; }
html body .sd-col.sd-collapsed .sd-toggle{ top:14px; inset-inline-end:14px; transform:rotate(180deg); }

/* ===== قاب تب صفحه: کادر آبی گوشه‌گرد دور کل تب؛ زیر تب فعال خط نیست (پل سفید با JS) ===== */
html body .tab.pt-frame{ position:relative; }
html body .tab.pt-frame #divScrollHeader{ height:44px !important; padding:8px 14px 0; margin:0 6px; box-sizing:border-box; }
html body .tab.pt-frame .tabHeaders{ border:0 !important; box-shadow:none !important; background:none !important; height:36px; padding:0; }
html body .tab.pt-frame .tabHeaders .tabHeader{ border-radius:12px 12px 0 0 !important; }
html body .tab.pt-frame .tabHeaders .tabHeader.selected{ border:2px solid #3b82f6 !important; border-bottom-color:#fff !important; background:#fff !important; margin-bottom:0 !important; position:relative; z-index:4; box-shadow:0 -3px 12px rgba(59,130,246,.25) !important; }
html body .tab.pt-frame .tabContainers{ position:relative; border:2px solid #3b82f6 !important; border-radius:16px !important; box-shadow:0 0 0 4px rgba(59,130,246,.12), 0 12px 30px rgba(59,130,246,.2); margin:0 6px 10px; background:#fff; }
html body .tab.pt-frame .tabContainers > .tabContainer{ border:0 !important; border-radius:14px; }
html body .tab-bridge{ position:absolute; height:2px; background:#fff; z-index:3; pointer-events:none; display:none; }

/* ===== پنل کناری قابل‌بستن: چیدمان flex تا ستون محتوا هنگام بسته شدن کل عرض را بگیرد ===== */
html body .sd-row{ display:flex !important; flex-wrap:nowrap; align-items:flex-start; }
html body .sd-row::before, html body .sd-row::after{ display:none !important; content:none !important; }
html body .sd-row > .sd-col{ float:none !important; flex:0 0 auto; width:25% !important; max-width:none; transition:width .22s ease; }
@media (max-width:991px){ html body .sd-row > .sd-col{ width:33.3333% !important; } }
html body .sd-row > .sd-main{ float:none !important; flex:1 1 0; width:auto !important; min-width:0; max-width:100%; }
html body .sd-row > .sd-col.sd-collapsed{ width:58px !important; }
html body .sd-main > *{ max-width:100%; box-sizing:border-box; }

/* ===== ریبن قابل‌جمع‌شدن: دکمه‌ی آویزان زیر ریبن، Ctrl+F1، و نمایش موقت با کلیک روی منو ===== */
html body .ribbon{ position:relative; z-index:8; }
html body .ribbon > div:first-child{ position:relative; }
html body .rb-toggle{ position:absolute; left:18px; bottom:-15px; z-index:9; width:46px; height:16px; padding:0; border:2px solid #3b82f6; border-top:0; border-radius:0 0 12px 12px; background:#fff; cursor:pointer; box-shadow:0 4px 10px rgba(59,130,246,.25); transition:background .15s; }
html body .rb-toggle:hover{ background:#eff6ff; }
html body .rb-toggle i{ display:block; width:7px; height:7px; margin:2px auto 0; border-left:2px solid #1d4ed8; border-top:2px solid #1d4ed8; transform:rotate(45deg); transition:transform .2s; }
html body.rb-collapsed .rb-toggle i{ transform:rotate(225deg); margin-top:0; }
html body .ribbon.rb-closing .rb-toggle i{ transform:rotate(225deg); margin-top:0; }
html body .ribbon.rb-closing .ribbonContainerTabs{ position:absolute !important; top:100%; left:0; right:0; z-index:1400; opacity:0; transform:translateY(-12px); transition:opacity .18s ease, transform .18s ease; pointer-events:none; }
html body .ribbon.rb-opening .ribbonContainerTabs{ opacity:0; transform:translateY(-12px); }
html body .ribbon.rb-opening.rb-go .ribbonContainerTabs{ opacity:1; transform:none; transition:opacity .24s ease, transform .24s cubic-bezier(.2,.8,.2,1); }
html body.rb-collapsed .ribbon:not(.rb-peek) .ribbonContainerTabs{ display:none !important; }
html body.rb-collapsed .ribbon.rb-peek .ribbonContainerTabs{ display:block !important; position:absolute; top:100%; left:0; right:0; z-index:1500; background:#fff; border-radius:0 0 14px 14px; box-shadow:0 14px 30px rgba(15,23,42,.25); border-bottom:2px solid #3b82f6 !important; }
html body.rb-collapsed .ribbon{ border-bottom:2px solid #1e3a8a !important; }
/* تب‌ها همه تا لبه‌ی پایین نوار کشیده می‌شوند تا تب فعال دقیقاً به کادر وصل شود */
html body .tab.pt-frame .tabHeaders .tabHeader{ box-sizing:border-box; height:34px; margin-top:2px; vertical-align:bottom; display:inline-flex; align-items:center; }
html body .tab.pt-frame .tabHeaders .tabHeader.selected{ height:36px; margin-top:0 !important; }
/* پنل کناری: همان چیدمان flex بدون وابستگی به کلاس JS (والدی که ستون .sd-col دارد) */
html body :has(> .sd-col){ display:flex !important; flex-wrap:nowrap; align-items:flex-start; }
html body :has(> .sd-col)::before, html body :has(> .sd-col)::after{ display:none !important; content:none !important; }
html body :has(> .sd-col) > .sd-col{ float:none !important; flex:0 0 auto; width:25% !important; max-width:none; transition:width .22s ease; }
@media (max-width:991px){ html body :has(> .sd-col) > .sd-col{ width:33.3333% !important; } }
html body :has(> .sd-col) > .sd-main{ float:none !important; flex:1 1 0; width:auto !important; min-width:0; max-width:100%; }
html body :has(> .sd-col) > .sd-col.sd-collapsed{ width:58px !important; min-width:58px; max-width:58px; overflow:hidden; }
html body .sd-col.sd-collapsed > .panel{ width:100% !important; min-width:0 !important; max-width:100% !important; }

/* ===================== فرم‌ها و دیالوگ‌ها: ریسپانسیو، بدون برش، هم‌تراز ===================== */
html body .dialog{ max-width:98vw; }
html body .dialog > .dialog_content{ max-width:100%; box-sizing:border-box; }
/* فرم‌های جدولی (برچسب | فیلد) */
html body .dialog_content #divGeneral > table{ width:100% !important; table-layout:auto; }
html body .dialog_content #divGeneral > table > tbody > tr > td:first-child:not(:only-child){ width:40% !important; padding-inline-end:12px; font-weight:600; color:#475569; font-size:12.5px; vertical-align:middle; }
html body .dialog_content #divGeneral > table > tbody > tr > td:not(:first-child){ min-width:0; }
html body .dialog_content #divGeneral > table > tbody > tr > td > :is(input[type=text],input[type=password],input[type=number],select,textarea,.select2-container){ width:100% !important; max-width:100% !important; box-sizing:border-box; }
/* فرم‌های bootstrap: label.col-* + .col-* (فرم پروفایل، انتخاب درس و ...) */
html body .dialog_content .form-group.hx7{ display:flex !important; flex-wrap:wrap; align-items:center; margin:0 0 10px !important; gap:4px 0; }
html body .dialog_content .form-group.hx7::before, html body .dialog_content .form-group.hx7::after{ display:none !important; content:none !important; }
html body .dialog_content .form-group > label.control-label{ float:none !important; width:30% !important; max-width:none; padding:0 8px !important; margin:0 !important; text-align:start; font-size:12.5px; font-weight:700; color:#475569; }
html body .dialog_content .form-group.hx7 > [class*="col-"]:not(label){ float:none !important; width:auto !important; flex:1 1 0; min-width:0; padding:0 8px !important; }
html body .dialog_content .form-group.hx7 > [class*="col-"] :is(input[type=text],input[type=password],input[type=number],input[type=email],select,textarea,.select2-container){ width:100% !important; max-width:460px !important; box-sizing:border-box; }
html body .dialog_content .form-horizontal{ margin:0; }
html body .dialog_content .form-horizontal .form-group, html body .dialog_content .form-group.row{ margin-left:0 !important; margin-right:0 !important; }
/* ردیف .row که ستون‌هایش جدول ندارند (مثل «درس:») کارت‌بندی نشود */
html body .dialog_content #divGeneral > .row:not(.hx8){ display:flex !important; flex-wrap:wrap; align-items:center; gap:8px 0; padding:6px 4px; margin:0 0 8px !important; }
html body .dialog_content #divGeneral > .row:not(.hx8) > [class*="col-"]{ background:none !important; border:0 !important; padding:0 8px !important; border-radius:0; }
html body .dialog_content #divGeneral > .row:not(.hx8) > label[class*="col-"]{ flex:0 0 30%; width:30% !important; }
html body .dialog_content #divGeneral > .row:not(.hx8) > div[class*="col-"]{ flex:1 1 0; width:auto !important; min-width:0; }
html body .dialog_content #divGeneral > .row:not(.hx8) select{ width:100% !important; max-width:460px; }
@media (max-width:576px){
  html body .dialog_content .form-group > label.control-label, html body .dialog_content #divGeneral > .row:not(.hx8) > label[class*="col-"]{ width:100% !important; flex-basis:100%; }
  html body .dialog_content #divGeneral > table > tbody > tr > td:first-child:not(:only-child){ width:auto !important; }
}

/* ===================== دکمه‌ی بارگذاری فایل ===================== */
html body .qq-upload-button{ display:inline-flex !important; align-items:center; gap:8px; width:auto !important; min-width:150px; padding:9px 18px !important; margin:6px 0; border:0 !important; border-radius:12px !important; background:linear-gradient(135deg,#2563eb,#7c3aed) !important; color:#fff !important; font-weight:700; font-size:13px; cursor:pointer; box-shadow:0 6px 16px rgba(79,70,229,.32); transition:transform .15s, box-shadow .15s, filter .15s; }
html body .qq-upload-button::before{ content:""; width:18px; height:18px; flex:0 0 18px; background:center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 16V4m0 0 4.5 4.5M12 4 7.5 8.5'/><path d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/></svg>"); }
html body .qq-upload-button:hover, html body .qq-upload-button-hover{ transform:translateY(-1px); filter:brightness(1.06); box-shadow:0 10px 22px rgba(79,70,229,.4); background:linear-gradient(135deg,#2563eb,#7c3aed) !important; }
html body .qq-upload-button:active{ transform:none; }
html body .qq-upload-list{ margin:8px 0 0; padding:0; list-style:none; }
html body .qq-upload-list li{ padding:8px 12px; margin-bottom:6px; border:1px solid #e2e8f0; border-radius:10px; background:#f8fafc; font-size:12.5px; color:#334155; line-height:1.9; }
html body .qq-upload-list li.qq-upload-success{ background:#f0fdf4; border-color:#bbf7d0; color:#166534; }
html body .qq-upload-list li.qq-upload-fail{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }
html body .qq-upload-list li *{ color:inherit; }

/* ===================== گریدها: ظاهر یکپارچه و جذاب ===================== */
html body .gridView.gridView #divBody{ border:1px solid #dbe3ef !important; border-radius:16px !important; box-shadow:0 8px 24px rgba(15,23,42,.07) !important; overflow:hidden; }
html body .gridView.gridView .gridView_header{ background:linear-gradient(180deg,#f8fafc 0%,#eaf0fa 100%) !important; border-bottom:2px solid #c7d4ea !important; }
html body .gridView.gridView .gridView_header th{ color:#334155 !important; font-size:12.5px; font-weight:800; letter-spacing:0; padding-top:10px !important; padding-bottom:10px !important; border-left:1px solid #e2e8f0 !important; }
html body .gridView.gridView .gridView_content tr > td{ border-left:0 !important; border-bottom:1px solid #eef2f7 !important; padding-top:8px !important; padding-bottom:8px !important; }
html body .gridView.gridView .gridView_content tr.alternatingRow > td{ background:#fafcff !important; }
html body .gridView.gridView .gridView_content tr.hover > td{ background:#eff6ff !important; }
html body .gridView.gridView .gridView_content tr.hover > td:first-child{ box-shadow:inset -3px 0 0 #3b82f6; }
html body .gridView.gridView .gridView_content tr.focus > td{ background:#dbeafe !important; border-bottom:1px solid #93c5fd !important; }
html body .gridView.gridView .gridView_content tr.focus > td:first-child{ box-shadow:inset -4px 0 0 #2563eb; }
html body .gridView.gridView .gridView_content .gridRowNumber{ background:#f1f5f9 !important; color:#64748b; font-weight:700; }
html body .gridView.gridView .gridView_content td button, html body .gridView.gridView .gridView_content td input[type=button]{ border-radius:10px !important; padding:4px 12px; font-weight:700; font-size:12px; box-shadow:0 2px 6px rgba(15,23,42,.12); }
html body .gridView.gridView .gridView_footer, html body .gridView.gridView .gridView_footer #divPaging{ background:linear-gradient(180deg,#f8fafc,#eef2f8) !important; border-top:1px solid #dbe3ef !important; border-radius:0 0 14px 14px; min-height:34px; }
html body .gridView.gridView .gridView_footer a{ border-radius:8px; padding:2px 8px; transition:background .15s; }
html body .gridView.gridView .gridView_footer a:hover{ background:#dbeafe; text-decoration:none; }
html body .gridView.gridView .gridView_footer :is(a.selected,span.selected,.currentPage){ background:#2563eb; color:#fff !important; border-radius:8px; }
html body .gridView.gridView .gridView_content::-webkit-scrollbar, html body .gridView.gridView ::-webkit-scrollbar{ width:10px; height:10px; }
html body .gridView.gridView ::-webkit-scrollbar-thumb{ background:#b6c4dc; border-radius:10px; border:2px solid #f1f5f9; }
html body .gridView.gridView ::-webkit-scrollbar-thumb:hover{ background:#8da2c6; }

/* ===================== تب‌های داخل دیالوگ: ارتفاع و حاشیه‌ی فشرده‌تر ===================== */
html body .dialog_content .tab.pt-frame .tabContainers{ margin:0 4px 4px; box-shadow:0 0 0 3px rgba(59,130,246,.10), 0 6px 16px rgba(59,130,246,.14); }
html body .dialog_content .tab.pt-frame #divScrollHeader{ margin:0 4px; }

/* ===================== ImportRunner: پنل پیشرفت ورود اطلاعات از وب‌سرویس ===================== */
html body .ip{ margin-top:14px; border:1px solid #dbe3ef; border-radius:16px; background:#fff; box-shadow:0 6px 18px rgba(15,23,42,.06); overflow:hidden; font-size:13px; }
html body .ip-top{ display:flex; align-items:center; gap:10px; padding:12px 16px 6px; }
html body .ip-state{ flex:1; font-size:13.5px; color:#1e293b; }
html body .ip-pct{ font-weight:800; color:#1d4ed8; font-size:14px; }
html body .ip-spin{ width:12px; height:12px; border-radius:50%; background:#94a3b8; flex:0 0 12px; }
html body .ip.ip-run .ip-spin{ background:none; border:2px solid #cbd5e1; border-top-color:#2563eb; animation:ipspin .8s linear infinite; }
html body .ip.ip-ok .ip-spin{ background:#16a34a; } html body .ip.ip-warn .ip-spin{ background:#f59e0b; } html body .ip.ip-err .ip-spin{ background:#dc2626; }
@keyframes ipspin{ to{ transform:rotate(360deg); } }
html body .ip-bar{ height:10px; margin:4px 16px 4px; border-radius:999px; background:#e8eef8; overflow:hidden; }
html body .ip-bar i{ display:block; height:100%; width:0; border-radius:999px; background:linear-gradient(90deg,#2563eb,#7c3aed); transition:width .25s ease; }
html body .ip.ip-run .ip-bar i{ background-image:linear-gradient(135deg,rgba(255,255,255,.25) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.25) 50%,rgba(255,255,255,.25) 75%,transparent 75%); background-size:18px 18px; background-color:#2563eb; animation:ipstripe 1s linear infinite; }
@keyframes ipstripe{ to{ background-position:18px 0; } }
html body .ip.ip-ok .ip-bar i{ background:#16a34a; } html body .ip.ip-err .ip-bar i{ background:#dc2626; }
html body .ip-step{ padding:0 16px 8px; color:#64748b; font-size:12px; min-height:16px; }
html body .ip-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(96px,1fr)); gap:8px; padding:0 16px 10px; }
html body .ip-st{ border-radius:12px; padding:8px 10px; background:#f1f5f9; text-align:center; }
html body .ip-st b{ display:block; font-size:18px; color:#0f172a; line-height:1.3; }
html body .ip-st span{ font-size:11.5px; color:#64748b; }
html body .ip-st.ip-good{ background:#ecfdf5; } html body .ip-st.ip-good b{ color:#15803d; }
html body .ip-st.ip-bad{ background:#fef2f2; } html body .ip-st.ip-bad b{ color:#b91c1c; }
html body .ip-log{ list-style:none; margin:0; padding:6px 10px; max-height:230px; overflow:auto; background:#f8fafc; border-top:1px solid #e2e8f0; }
html body .ip-l{ display:flex; gap:8px; align-items:flex-start; padding:5px 8px; margin-bottom:3px; border-radius:8px; border-inline-start:3px solid #94a3b8; background:#fff; font-size:12.5px; line-height:1.7; }
html body .ip-l b{ flex:0 0 16px; } html body .ip-l span{ flex:1; white-space:pre-wrap; word-break:break-word; } html body .ip-l time{ color:#94a3b8; font-size:11px; direction:ltr; }
html body .ip-l.ip-o{ border-color:#16a34a; } html body .ip-l.ip-o b{ color:#16a34a; }
html body .ip-l.ip-w{ border-color:#f59e0b; background:#fffbeb; } html body .ip-l.ip-w b{ color:#d97706; }
html body .ip-l.ip-e{ border-color:#dc2626; background:#fef2f2; } html body .ip-l.ip-e b{ color:#dc2626; }
html body .ip-l.ip-i b{ color:#2563eb; }
html body .ip-foot{ padding:8px 16px 10px; text-align:left; border-top:1px solid #e2e8f0; }
html body .ip-copy{ border:1px solid #cbd5e1; background:#fff; border-radius:10px; padding:4px 14px; font-size:12px; cursor:pointer; }
html body .ip-copy:hover{ background:#eff6ff; border-color:#93c5fd; }

/* ---------- لودینگ Block.block (ورود و ...) هم‌شکل با لودینگ سراسری ---------- */
/* ظاهر بلاک کل صفحه فقط یک‌جا (بالاتر، divBlock) تعریف شده است؛ تعریف دوم که با آن تداخل داشت حذف شد */
body:has(> div.divBlock) #gl-ov, body:has(> .blockUI) #gl-ov{ display:none !important; }

/* نوار وضعیت پایین صفحه (نام کاربر / نام کاربری) حذف شد */
html body .statusBar, html body #divStatusBar{ display:none !important; }

/* ===================== فرم پروفایل کاربر (تب «پروفایل کاربری») ===================== */
html body #divProfile .col-sm-12, html body #divProfile .col-sm-6, html body #divProfileDetail .col-sm-12{ float:none !important; width:100% !important; max-width:none !important; padding:0 !important; }
html body #divProfile .form-horizontal, html body #divProfileDetail .form-horizontal{ margin:0 !important; padding:0 !important; }
html body #divProfile .form-group, html body #divProfileDetail .form-group{ display:flex !important; align-items:center; flex-wrap:nowrap; gap:12px; margin:0 0 12px !important; padding:0 !important; }
html body #divProfile .form-group > label.control-label, html body #divProfileDetail .form-group > label.control-label{ flex:0 0 130px; width:130px !important; max-width:130px; padding:0 !important; margin:0 !important; float:none !important; text-align:right; font-weight:600; }
html body #divProfile .form-group > [class*=col-sm-], html body #divProfileDetail .form-group > [class*=col-sm-]{ float:none !important; width:auto !important; flex:1 1 auto; min-width:0; padding:0 !important; }
html body #divProfile .form-group > label[class*=col-sm-]:not(.control-label), html body #divProfileDetail .form-group > label[class*=col-sm-]:not(.control-label){ flex:0 0 auto; width:auto !important; margin:0; color:#94a3b8; font-weight:500; }
html body #divProfile .form-group select, html body #divProfile .form-group input[type=text], html body #divProfileDetail .form-group select, html body #divProfileDetail .form-group input[type=text]{ width:100% !important; max-width:360px !important; min-width:0; box-sizing:border-box; }
html body #divProfileDetail .select2-container{ width:100% !important; max-width:360px; }
html body #divProfile .form-group > [class*=col-sm-].hx9, html body #divProfileDetail .form-group > [class*=col-sm-].hx9{ flex:0 1 360px; }
html body #divProfile .form-group:not(.hx7), html body #divProfileDetail .form-group:not(.hx7){ padding-right:142px !important; }
html body #divProfile #lblToken{ display:inline-block; font:12px Consolas,monospace; direction:ltr; word-break:break-all; color:#475569; background:#f1f5f9; padding:4px 10px; border-radius:8px; }
html body .tabContainer:has(#divProfile){ overflow-x:hidden !important; }

/* ===================== هدر درخت (تب «دسترسی ها» و ...) و جعبه‌ی جستجو ===================== */
html body .treeHeader.treeHeader{ height:auto !important; min-height:40px; padding:6px 10px !important; background:#eff6ff !important; border:1px solid #dbeafe; border-bottom:0; border-radius:12px 12px 0 0; color:#1e3a8a; box-sizing:border-box; }
html body .treeHeader > table{ width:100%; }
html body .treeHeader td{ vertical-align:middle; }
html body .treeHeader td:last-child{ white-space:nowrap; text-align:left; }
html body .treeHeader img, html body .treeHeader .rb-ico{ display:inline-block !important; vertical-align:middle; margin:0 3px !important; }
html body .treeHeader + * .inputbox, html body .treeHeader ~ .inputbox{ margin:0 !important; border-radius:0 !important; border-left:0 !important; border-right:0 !important; }

/* ===================== هدر لیست داده (DataList) مثل «گروه‌های دسترسی» ===================== */
html body .datalist .datalist_header{ height:auto !important; min-height:36px; display:block; }
html body .datalist .datalist_header > table{ height:36px; width:100%; }
html body .datalist .datalist_header th{ padding:0 10px !important; height:36px; vertical-align:middle !important; line-height:1.2; text-align:right; font-weight:700; }
html body .datalist .datalist_header th input[type=checkbox]{ margin:0 !important; vertical-align:middle; position:static; }

/* ===================== آپلودر و گالری فایل ===================== */
html body .customFileStyle + label{ display:inline-flex !important; align-items:center; gap:8px; float:none !important; width:auto !important; min-width:150px; padding:10px 20px !important; margin:0 !important; border:0 !important; border-radius:12px !important; background:linear-gradient(135deg,#2563eb,#7c3aed) !important; color:#fff !important; font-weight:700; cursor:pointer; box-shadow:0 6px 16px rgba(79,70,229,.3); transition:transform .15s, box-shadow .15s, filter .15s; }
html body .customFileStyle + label::before{ content:""; width:18px; height:18px; flex:0 0 18px; background:center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 16V4M7 9l5-5 5 5M4 20h16'/></svg>"); }
html body .customFileStyle + label:hover{ transform:translateY(-1px); filter:brightness(1.06); box-shadow:0 10px 22px rgba(79,70,229,.4); }
html body #dropzone{ float:none !important; width:auto !important; height:auto !important; min-height:0 !important; line-height:1.5 !important; flex:0 1 auto; display:inline-flex; align-items:center; justify-content:center; min-width:220px; margin:0 12px 0 0 !important; padding:10px 18px !important; border:2px dashed #93c5fd !important; border-radius:12px !important; background:#eff6ff !important; color:#1d4ed8; font-weight:600; font-size:12.5px; box-shadow:none !important; transition:all .15s; }
html body #dropzone.in, html body #dropzone.hover{ background:#dbeafe !important; border-color:#2563eb !important; transform:scale(1.02); }
html body .fileupload-progress .progress{ height:8px; border-radius:999px; background:#e2e8f0; box-shadow:none; margin:10px 0 4px; overflow:hidden; }
html body .fileupload-progress .progress-bar{ background:linear-gradient(90deg,#2563eb,#06b6d4); border-radius:999px; }
html body #progress{ flex:0 0 100%; height:4px; border-radius:999px; background:#e2e8f0; overflow:hidden; margin-bottom:8px; }
html body #progress .bar{ height:4px; background:linear-gradient(90deg,#2563eb,#06b6d4); }

html body .gallery{ border-collapse:separate; border-spacing:0 10px; }
html body .gallery > tbody > tr > td{ vertical-align:top; }
html body .gallery > tbody > tr:first-child > td > div{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:12px 14px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px; }
html body .gallery .treeView{ border:1px solid #e2e8f0 !important; border-radius:0 0 12px 12px; background:#fff; }
html body .gallery #divFiles{ border:1px solid #e2e8f0 !important; border-radius:12px; background:#fff; padding:10px; box-sizing:border-box; }
html body .gallery #divFiles .item{ border:1px solid transparent; border-radius:12px; transition:all .15s; }
html body .gallery #divFiles.largIcon .item{ float:left; width:116px; height:116px; margin:6px; padding:8px 4px; box-sizing:border-box; }
html body .gallery #divFiles .item:hover{ background:#eff6ff; border-color:#bfdbfe; transform:translateY(-1px); }
html body .gallery #divFiles .item.focus{ background:#dbeafe; border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.2); }
html body .gallery #divFiles .item .title{ font-size:11.5px; word-break:break-all; line-height:1.4; }
html body .gallery .gl-btn{ display:inline-flex; align-items:center; gap:6px; margin:0 0 10px 8px; padding:7px 16px; border:1px solid #cbd5e1; border-radius:10px; background:#fff; color:#334155; font-weight:700; cursor:pointer; transition:all .15s; }
html body .gallery .gl-btn::before{ content:""; width:16px; height:16px; background:center/contain no-repeat; }
html body .gallery .gl-dl::before{ background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v12M7 11l5 5 5-5M4 20h16'/></svg>"); }
html body .gallery .gl-del::before{ background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/></svg>"); }
html body .gallery .gl-dl:hover{ border-color:#2563eb; background:#eff6ff; color:#1d4ed8; }
html body .gallery .gl-del:hover{ border-color:#dc2626; background:#fef2f2; color:#b91c1c; }

/* کارت ورود: افکت شیشه‌ای روی پس‌زمینه‌ی جداگانه (::before) است؛ backdrop-filter روی خودِ کارت باعث می‌شد دیالوگ‌های position:fixed داخل کارت
   (مثل «نمایش اطلاعات نرم‌افزار») نسبت به کارت جایگذاری شوند، نه صفحه، و در گوشه بریده شوند. */
.lg3-card::before{ content:""; position:absolute; inset:0; border-radius:inherit; backdrop-filter:blur(22px) saturate(140%); -webkit-backdrop-filter:blur(22px) saturate(140%); z-index:-1; pointer-events:none; }

/* هدر دیالوگ: ارتفاع کافی و عنوان وسط‌چین (قبلاً عنوان پایین می‌افتاد و بریده می‌شد) */
html body .dialog.dialog > .dialog_header{ height:auto !important; min-height:38px; padding:0 8px !important; box-sizing:border-box; display:flex; align-items:center; overflow:visible; }
html body .dialog.dialog > .dialog_header > table{ flex:1 1 auto; width:100%; height:38px; }
html body .dialog.dialog > .dialog_header td{ vertical-align:middle !important; padding:0; line-height:1.3; }
html body .dialog.dialog > .dialog_header #tdTitle{ width:100%; max-width:1px; padding:0 8px !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* آیکن‌های کنار کادر متن (گزینه‌ها و ...) ۲۴ پیکسل */
html body .inputbox .rb-ico.rb-sm, html body #tblAnswers .inputbox .rb-ico.rb-sm{ width:24px !important; height:24px !important; border-radius:7px !important; margin:0 !important; }
html body .inputbox .rb-ico.rb-sm svg{ width:15px !important; height:15px !important; }
html body .inputbox button{ width:30px !important; height:30px !important; }

/* ویرایشگر متن (پنجره‌ی ویرایشگر): کل فضای پنجره را پر کند */
html body .dialog_content .tox.tox-tinymce{ max-height:none !important; }

/* ===== v1107b: dialog buttons, grid footer/toolbar, add/remove buttons, source box ===== */
html body .dialog.dialog > .dialog_header #tdCloseButton, html body .dialog.dialog > .dialog_header #tdMaximizeButton{ width:40px !important; min-width:40px; height:34px !important; padding:0 !important; border-radius:8px !important; cursor:pointer; text-align:center; vertical-align:middle; transition:background .15s; }
html body .dialog.dialog > .dialog_header #tdCloseButton > div, html body .dialog.dialog > .dialog_header #tdMaximizeButton > div{ width:18px !important; height:18px !important; margin:0 auto; filter:none !important; background-color:transparent !important; background-repeat:no-repeat !important; background-position:center !important; background-size:16px 16px !important; font-size:0; overflow:hidden; }
html body .dialog.dialog > .dialog_header #tdCloseButton > div{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important; }
html body .dialog.dialog > .dialog_header #tdMaximizeButton > div{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='3' width='10' height='10' rx='1.5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") !important; }
html body .dialog.dialog > .dialog_header #tdMaximizeButton.restore > div{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2.5' y='5.5' width='8' height='8' rx='1.5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3Cpath d='M5.5 5.5v-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-2' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") !important; }
html body .dialog.dialog > .dialog_header #tdCloseButton:hover{ background:#dc2626 !important; }
html body .dialog.dialog > .dialog_header #tdMaximizeButton:hover{ background:rgba(255,255,255,.22) !important; }
html body .dialog.dialog > .dialog_header > table{ border-collapse:separate; border-spacing:2px 0; }

/* add/remove between two grids */
html body td.hx10, html body td.hx11{ width:52px !important; min-width:52px; padding:0 4px !important; text-align:center; vertical-align:middle !important; }
html body #btnAdd, html body #btnRemove{ display:block !important; width:32px !important; height:32px !important; min-width:32px; margin:10px auto !important; padding:6px; box-sizing:border-box; object-fit:contain; border:1px solid #cbd5e1; border-radius:8px; background-color:#fff; box-shadow:0 1px 2px rgba(0,0,0,.08); transition:.15s; visibility:visible !important; opacity:1 !important; }
html body #btnAdd:hover{ background-color:#dcfce7; border-color:#22c55e; }
html body #btnRemove:hover{ background-color:#fee2e2; border-color:#ef4444; }

/* grid footer / pager */
html body .gridView.gridView .gridView_footer{ height:auto !important; min-height:36px; overflow:visible !important; padding:3px 6px; box-sizing:border-box; }
html body .gridView.gridView .gridView_footer > table{ width:100%; }
html body .gridView.gridView .gridView_footer #divPaging{ height:auto !important; white-space:nowrap; font-size:12px; }
html body .gridView.gridView .gridView_footer #divPaging > tbody > tr > td{ padding:0 8px; vertical-align:middle; }
html body .gridView.gridView .gridView_footer #divPaging img{ height:20px; width:auto; vertical-align:middle; }
html body .gridView.gridView .gridView_footer #divPaging input[type=text]{ width:36px !important; height:24px !important; text-align:center; margin:0 3px; }
html body .gridView.gridView .gridView_footer #divPaging select{ height:24px; border:1px solid #cbd5e1; border-radius:6px; padding:0 4px; }
html body .gridView.gridView .gridView_footer #divSimplePaging{ white-space:nowrap; }
html body .gridView.gridView .gridView_footer #divSimplePaging td{ padding:0 3px; vertical-align:middle; }
html body .gridView.gridView .gridView_footer #divPaging.showSimplePaging{ position:fixed !important; z-index:100000 !important; background:#fff !important; border:1px solid #cbd5e1; border-radius:10px; padding:8px 10px; box-shadow:0 8px 24px rgba(15,23,42,.25); }

/* grid toolbar buttons (refresh/filter/export) */
html body .gridView.gridView .gridView_headerTitle{ display:flex; align-items:center; height:34px !important; padding:0 6px; box-sizing:border-box; overflow:visible; }
html body .gridView.gridView #divActionButtons{ display:flex !important; align-items:center; gap:4px; float:none !important; margin:0; }
html body .gridView.gridView #divActionButtons > img{ width:26px !important; height:26px !important; padding:4px; box-sizing:border-box; object-fit:contain; border-radius:6px; cursor:pointer; margin:0 !important; vertical-align:middle; }
html body .gridView.gridView #divActionButtons > img:hover{ background:#dbeafe; }
html body .gridView.gridView .gridView_headerTitle #lblTitle{ margin:0 8px; line-height:1; }

/* source box */
html body fieldset.hx12{ padding:8px 12px 10px; }
html body .RowData{ padding:6px 0; border-bottom:1px dashed #e2e8f0; }
html body .RowData:last-child{ border-bottom:0; }
html body .RowData > table{ width:100%; border-collapse:collapse; }
html body .RowData .form-inline{ display:flex; flex-wrap:wrap; gap:8px 12px; align-items:flex-end; }
html body .RowData .form-group{ display:flex; flex-direction:column; gap:3px; margin:0; }
html body .RowData .form-group > label{ font-size:11px; color:#64748b; font-weight:600; margin:0; }
html body .RowData .form-group > input[type=text]{ height:30px; padding:0 8px; border:1px solid #cbd5e1; border-radius:6px; box-sizing:border-box; }
html body .RowData .form-group:first-child{ flex:1 1 280px; flex-direction:row; align-items:center; }
html body .RowData .form-group:first-child .select2-container{ min-width:200px; flex:1 1 auto; }
html body .RowData #delrow{ cursor:pointer; padding-bottom:0 !important; }
html body .RowData > table > tbody > tr > td:last-child{ vertical-align:middle !important; padding:0 8px !important; width:34px; }

/* paging nav */
html body .gridView.gridView .gridView_footer img[role=first]{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 5v14M10 6l6 6-6 6'/%3E%3C/svg%3E"); width:28px !important; height:28px !important; padding:5px; box-sizing:border-box; border:1px solid #cbd5e1; border-radius:8px; background:#fff; margin:0 2px; transition:.15s; }
html body .gridView.gridView .gridView_footer img[role=first]:hover{ background:#dbeafe; border-color:#93c5fd; }
html body .gridView.gridView .gridView_footer img[role=prev]{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); width:28px !important; height:28px !important; padding:5px; box-sizing:border-box; border:1px solid #cbd5e1; border-radius:8px; background:#fff; margin:0 2px; transition:.15s; }
html body .gridView.gridView .gridView_footer img[role=prev]:hover{ background:#dbeafe; border-color:#93c5fd; }
html body .gridView.gridView .gridView_footer img[role=next]{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); width:28px !important; height:28px !important; padding:5px; box-sizing:border-box; border:1px solid #cbd5e1; border-radius:8px; background:#fff; margin:0 2px; transition:.15s; }
html body .gridView.gridView .gridView_footer img[role=next]:hover{ background:#dbeafe; border-color:#93c5fd; }
html body .gridView.gridView .gridView_footer img[role=last]{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5v14M14 6l-6 6 6 6'/%3E%3C/svg%3E"); width:28px !important; height:28px !important; padding:5px; box-sizing:border-box; border:1px solid #cbd5e1; border-radius:8px; background:#fff; margin:0 2px; transition:.15s; }
html body .gridView.gridView .gridView_footer img[role=last]:hover{ background:#dbeafe; border-color:#93c5fd; }
html body .gridView.gridView .gridView_footer td.pg-close{ display:none; }
html body .gridView.gridView .gridView_footer #divPaging.showSimplePaging td.pg-close{ display:table-cell; width:28px; height:28px; text-align:center; vertical-align:middle; font-size:20px; line-height:28px; color:#64748b; cursor:pointer; border-radius:8px; }
html body .gridView.gridView .gridView_footer #divPaging.showSimplePaging td.pg-close:hover{ background:#fee2e2; color:#dc2626; }
html body .gridView.gridView .searchPanel input[type=text]{ height:30px !important; min-height:30px; border:1px solid #cbd5e1 !important; border-radius:6px; background:#fff !important; padding:0 8px !important; box-sizing:border-box; width:100%; }
html body .gridView.gridView .searchPanel input[type=text]:focus{ border-color:#2563eb !important; box-shadow:0 0 0 3px rgba(37,99,235,.15); outline:0; }
html body .gridView.gridView .searchPanel input::placeholder{ color:#94a3b8; }
/* question grid cell */
html body .gridView.gridView td.GridTextLarg .gridButton, html body .gridView.gridView td.GridTextLarg img.gridButton{ display:inline-block !important; vertical-align:middle; margin:0 0 0 6px !important; }
html body .gridView.gridView td.GridTextLarg p{ display:inline; margin:0 !important; }
html body .gridView.gridView td.GridTextLarg{ line-height:1.6; }
/* option row tool buttons */
html body #tblAnswers .inputbox button, html body #tblAnswers .inputbox .rb-ico.rb-sm{ width:30px !important; height:30px !important; }
html body #tblAnswers .inputbox #divButtons{ gap:6px; }
/* source box compact */
html body .RowData .inputbox{ min-height:0 !important; height:34px !important; margin:0 !important; }
html body .RowData .inputbox td{ padding:0 3px !important; vertical-align:middle !important; }
html body .RowData .select2-container .select2-selection--single{ height:28px !important; line-height:26px; border:0 !important; }
html body .RowData .form-group:first-child{ align-items:flex-end; }
html body td.hx13{ vertical-align:middle !important; padding:0 8px !important; width:34px; }
html body .butAdd{ display:inline-flex; width:32px; height:32px; align-items:center; justify-content:center; border:1px solid #bbf7d0; background:#f0fdf4; border-radius:8px; }
html body .butAdd:hover{ background:#dcfce7; }
html body #txtfreeSource{ width:100% !important; max-width:560px; height:30px; border:1px solid #cbd5e1; border-radius:6px; padding:0 8px; box-sizing:border-box; }
html body #freeSource .form-group{ margin:0 0 6px; display:flex; flex-direction:row; align-items:center; gap:8px; }
html body fieldset.hx12 > div, html body fieldset.hx12 table{ margin:0 !important; }

/* v1107c: assign-users header in one row, grid toolbar/filter polish */
html body fieldset.au-head{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 32px; padding:8px 16px !important; margin:6px 0 !important; }
html body fieldset.au-head .au-row{ display:flex; align-items:center; gap:8px; }
html body fieldset.au-head .au-row > label{ margin:0; font-weight:700; color:#475569; }
html body .gridView.gridView .searchPanel{ background:#fff; }
html body .gridView.gridView .searchPanel td{ padding:4px 6px !important; vertical-align:middle; }
html body .gridView.gridView .searchPanel input[type=text]::placeholder{ content:"جستجو"; font-style:normal; }
html body .gridView.gridView .gridView_footer img[role]{ box-shadow:0 1px 2px rgba(15,23,42,.08); }
html body .gridView.gridView .gridView_footer #divPaging img[role], html body .gridView.gridView .gridView_footer #divSimplePaging img[role]{ width:30px !important; height:30px !important; padding:6px; }

html body .gridView.gridView .gridView_footer img[role]{ display:inline-block !important; vertical-align:middle; min-width:30px; min-height:30px; }

/* v1107d paging nav: restyled */
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role]{ width:32px !important; height:32px !important; min-width:32px; padding:7px !important; box-sizing:border-box; border:0 !important; border-radius:8px !important; background-color:#eef2f7 !important; box-shadow:none !important; margin:0 3px !important; cursor:pointer; transition:background-color .15s; }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=first]{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5v14M14 6l-6 6 6 6'/%3E%3C/svg%3E"); }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=first]:hover{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5v14M14 6l-6 6 6 6'/%3E%3C/svg%3E"); background-color:#2563eb !important; }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=prev]{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=prev]:hover{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); background-color:#2563eb !important; }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=next]{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=next]:hover{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); background-color:#2563eb !important; }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=last]{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 5v14M10 6l6 6-6 6'/%3E%3C/svg%3E"); }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=last]:hover{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 5v14M10 6l6 6-6 6'/%3E%3C/svg%3E"); background-color:#2563eb !important; }
html body .gridView.gridView .gridView_footer #divPaging input[type=text]{ border:1px solid #cbd5e1 !important; border-radius:8px; font-weight:700; }

/* v1107e paging order: last,next,[page],prev,first left-to-right */
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=first]{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 5v14M10 6l6 6-6 6'/%3E%3C/svg%3E"); }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=first]:hover{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 5v14M10 6l6 6-6 6'/%3E%3C/svg%3E"); }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=prev]{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=prev]:hover{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=next]{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=next]:hover{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=last]{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5v14M14 6l-6 6 6 6'/%3E%3C/svg%3E"); }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role][role=last]:hover{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5v14M14 6l-6 6 6 6'/%3E%3C/svg%3E"); }
html body .gridView.gridView .gridView_footer #divPaging table table{ direction:ltr; }
html body .gridView.gridView .gridView_footer #divSimplePaging tr{ display:flex !important; direction:ltr; align-items:center; gap:2px; }
html body .gridView.gridView .gridView_footer #divSimplePaging td.hx14{ order:1; }
html body .gridView.gridView .gridView_footer #divSimplePaging td.hx15{ order:2; }
html body .gridView.gridView .gridView_footer #divSimplePaging td:not(.hx16):not(.hx17){ order:3; direction:rtl; padding:0 8px; }
html body .gridView.gridView .gridView_footer #divSimplePaging td.hx18{ order:4; }
html body .gridView.gridView .gridView_footer #divSimplePaging td.hx19{ order:5; }
html body .gridView.gridView .gridView_footer #divSimplePaging td.hx17{ order:6; }

/* v1107f: modern pager (pill) */
html body .gridView.gridView .gridView_footer #divPaging{ width:100%; }
html body .gridView.gridView .gridView_footer #divPaging > tbody > tr{ display:flex !important; align-items:center; justify-content:space-between; gap:14px; flex-wrap:nowrap; }
html body .gridView.gridView .gridView_footer #divPaging > tbody > tr > td{ padding:0 !important; display:block; }
html body .gridView.gridView .gridView_footer #divPaging > tbody > tr > td:first-child{ background:#eff6ff; color:#1d4ed8; border-radius:999px; padding:5px 14px !important; font-weight:700; font-size:12px; }
html body .gridView.gridView .gridView_footer #divPaging > tbody > tr > td:first-child label{ font-weight:800; }
html body .gridView.gridView .gridView_footer #divPaging > tbody > tr > td:nth-child(2) > table{ background:#fff; border:1px solid #e2e8f0; border-radius:999px; padding:3px 6px; box-shadow:0 1px 3px rgba(15,23,42,.08); direction:ltr; }
html body .gridView.gridView .gridView_footer #divPaging > tbody > tr > td:nth-child(2) td{ padding:0 1px !important; }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role]{ width:30px !important; height:30px !important; min-width:30px; padding:7px !important; border-radius:50% !important; background-color:transparent !important; margin:0 !important; }
html body .gridView.gridView .gridView_footer :is(#divPaging,#divSimplePaging) img[role]:hover{ background-color:#2563eb !important; box-shadow:0 3px 8px rgba(37,99,235,.35) !important; transform:translateY(-1px); }
html body .gridView.gridView .gridView_footer #divPaging #txtPaging{ width:42px !important; height:28px !important; border:0 !important; background:#eff6ff !important; color:#1d4ed8; font-weight:800; font-size:13px; border-radius:999px !important; margin:0 4px !important; text-align:center; }
html body .gridView.gridView .gridView_footer #divPaging #txtPaging:focus{ outline:0; box-shadow:0 0 0 3px rgba(37,99,235,.25); }
html body .gridView.gridView .gridView_footer #divPaging .lblTotalPage{ color:#64748b; font-weight:700; margin-left:2px; }
html body .gridView.gridView .gridView_footer #divPaging > tbody > tr > td:last-child{ display:flex; align-items:center; gap:8px; font-size:12px; color:#64748b; white-space:nowrap; }
html body .gridView.gridView .gridView_footer #divPaging #cmbPaging{ height:30px; padding:0 10px; border:1px solid #e2e8f0; border-radius:999px; background:#fff; font-weight:700; color:#334155; cursor:pointer; }
html body .gridView.gridView .gridView_footer #divPaging #cmbPaging:hover{ border-color:#93c5fd; }
html body .gridView.gridView .gridView_footer #divSimplePaging tr{ background:#fff; border:1px solid #e2e8f0; border-radius:999px; padding:3px 8px; box-shadow:0 1px 3px rgba(15,23,42,.08); }

/* v1107g: source box fills the full row */
html body table.hx20{ width:100% !important; }
html body table.hx20 > tbody > tr > td:first-child{ width:100% !important; }
html body #DataRow, html body #DataRow .RowData, html body #DataRow .RowData > table{ width:100% !important; }
html body .RowData > table > tbody > tr > td:first-child{ width:100% !important; }
html body .RowData .form-inline{ display:flex !important; flex-wrap:nowrap !important; width:100%; gap:10px; align-items:flex-end; }
html body .RowData .form-group{ flex:1 1 90px; min-width:70px; }
html body .RowData .form-group:first-child{ flex:3 1 280px; min-width:240px; }
html body .RowData .form-group > input[type=text]{ width:100% !important; }
html body .RowData .form-group:first-child > .inputbox{ width:100% !important; }
html body .RowData .form-group.hx21{ flex:0 0 auto; }
html body .RowData .form-group:first-child > table.inputbox, html body .RowData .form-group:first-child > div{ width:100% !important; }

/* v1107h: source row as a responsive grid (replaces earlier .form-inline-based rules) */
html body .RowData .src-grid{ display:grid; grid-template-columns:minmax(260px,3fr) repeat(7,minmax(64px,1fr)) auto auto; gap:10px 12px; align-items:end; width:100%; }
html body .RowData .src-cell{ display:flex; flex-direction:column; gap:4px; min-width:0; }
html body .RowData .src-cell > label{ font-size:11px; font-weight:600; color:#64748b; margin:0; white-space:nowrap; }
html body .RowData .src-cell > input[type=text]{ width:100% !important; height:34px; padding:0 8px; border:1px solid #cbd5e1; border-radius:6px; box-sizing:border-box; background:#fff; }
html body .RowData .src-cell > input[type=text]:focus{ border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.15); outline:0; }
html body .RowData .src-main > *{ width:100% !important; max-width:100%; box-sizing:border-box; }
html body .RowData .src-main .select2-container{ width:100% !important; }
html body .RowData .src-view{ align-items:flex-start; }
html body .RowData .src-view img{ width:22px; height:22px; vertical-align:middle; }
html body .RowData .src-del{ align-self:center; padding:0 4px; }
@media (max-width:1100px){
  html body .RowData .src-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  html body .RowData .src-main{ grid-column:1 / -1; }
}

/* v1107i: source row overflow fix (long source names must not push the next columns) */
html body .RowData .src-grid{ grid-template-columns:minmax(0,3fr) repeat(7,minmax(0,1fr)) auto; }
html body .RowData .src-main{ min-width:0; overflow:hidden; }
html body .RowData .src-main .inputbox{ table-layout:fixed; width:100% !important; }
html body .RowData .src-main .inputbox td.selector{ overflow:hidden; }
html body .RowData .src-main .inputbox td:last-child{ width:72px !important; }
html body .RowData .src-main .select2-selection__rendered{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
html body .RowData .src-view{ grid-column:1 / -1; grid-row:2; flex-direction:row; align-items:center; gap:8px; }
html body .RowData .src-del{ grid-row:1; grid-column:9; }
@media (max-width:1100px){
  html body .RowData .src-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  html body .RowData .src-main{ grid-column:1 / -1; }
  html body .RowData .src-del{ grid-row:auto; grid-column:auto; }
}

/* v1107j: inputbox tool buttons 24px icons, add-source button */
html body .inputboxButton{ width:32px !important; height:32px !important; padding:0 !important; display:inline-flex !important; align-items:center; justify-content:center; flex:none; }
html body .inputboxButton > *{ width:24px !important; height:24px !important; min-width:24px; max-width:none !important; border-radius:7px; }
html body .inputboxButton svg{ width:15px !important; height:15px !important; }
html body .inputbox #divButtons{ overflow:visible !important; }
html body .src-actions{ display:flex; justify-content:flex-start; margin-top:10px; }
html body button.src-add{ display:inline-flex; align-items:center; gap:8px; height:34px; padding:0 16px; border:1.5px dashed #22c55e; border-radius:10px; background:#f0fdf4; color:#15803d; font-weight:700; font-size:13px; cursor:pointer; transition:.15s; }
html body button.src-add i{ font-size:16px; color:#16a34a; }
html body button.src-add:hover{ background:#22c55e; color:#fff; border-style:solid; }
html body button.src-add:hover i{ color:#fff; }
html body .RowData .src-del i{ font-size:20px !important; }

/* v1107k: add-source button must not inherit the old 32x32 .butAdd box */
html body button.butAdd.src-add{ width:auto !important; min-width:0 !important; height:36px !important; padding:0 18px !important; white-space:nowrap; justify-content:center; }

/* v1107m: شماره سوال (نشان کهربایی برای سوال استفاده‌شده) + برچسب «در دفترچه» روی متن سوال */
html body .grdQuestionList a.qid{display:inline-flex !important;align-items:center;justify-content:center;min-width:0;max-width:100%;height:26px;padding:0 9px;border-radius:13px !important;background:#f1f5f9;color:#475569 !important;border:1px solid #e2e8f0;font-weight:600;font-size:11.5px;line-height:1;text-decoration:none !important;cursor:default;box-sizing:border-box;white-space:nowrap}
html body .grdQuestionList a.qid.used{background:linear-gradient(180deg,#f59e0b,#d97706);color:#fff !important;border-color:#d97706;cursor:pointer !important;box-shadow:0 2px 4px rgba(180,83,9,.3)}
html body .grdQuestionList a.qid.used:hover{background:linear-gradient(180deg,#fbbf24,#b45309);box-shadow:0 3px 8px rgba(180,83,9,.4)}
/* سلول سوال: آیکن‌ها | متن (خط‌های بعدی زیر آیکن نمی‌روند) | برچسب «در دفترچه» در انتهای سمت چپ */
html body .grdQuestionList .q-wrap{display:flex;align-items:flex-start;gap:10px}
html body .grdQuestionList .q-icons{display:inline-flex;gap:4px;flex:0 0 auto}
html body .grdQuestionList .q-text{flex:1 1 auto;min-width:0}
html body .grdQuestionList .booklet-tag{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 10px;border-radius:11px;background:linear-gradient(180deg,#f59e0b,#d97706);color:#fff;font-size:11px;font-weight:600;white-space:nowrap;box-shadow:0 2px 4px rgba(180,83,9,.3)}
html body .grdQuestionList .booklet-tag i{font-size:11px}

/* صفحه ورود: دیالوگ «اطلاعات/نسخه» باید همیشه بالاتر از کارت اطلاعیه‌ها و فرم ورود باشد */
html body:has(.lg3) .dialogModal{ z-index:99990 !important; }
html body:has(.lg3) .dialog{ z-index:100000 !important; }
html body:has(.lg3) .lg3 > .lg3-news{ z-index:1 !important; }
html body:has(.lg3) .lg3 > .lg3-card{ z-index:5 !important; }

/* v1108a: تقویم (پنجره‌ی انتخاب تاریخ و فیلد تاریخ) - طراحی مدرن و یکپارچه برای همه‌ی فرم‌ها */
html body .inputbox.hx22{ min-width:280px !important; }
html body .inputbox.hx22 td.selector{ min-width:140px; }
html body .inputbox.hx22 td.selector > input{ direction:ltr !important; text-align:center !important; font-size:13px !important; padding:0 10px 0 6px !important; text-overflow:clip !important; letter-spacing:.2px; cursor:pointer; }
html body table.calendar{ width:320px !important; background:#fff !important; border:1px solid var(--c-line-d) !important; border-radius:14px !important; box-shadow:0 18px 48px rgba(15,23,42,.22) !important; overflow:hidden; border-collapse:separate !important; font-family:var(--font); font-size:13px; color:var(--c-text); direction:rtl; }
html body table.calendar td, html body table.calendar th{ border:0 !important; }
html body table.calendar table{ border-collapse:separate; }
html body table.calendar #tdDate{ table-layout:fixed; width:100%; }
/* سربرگ: دکمه‌های ماه قبل/بعد + انتخاب سال و ماه */
html body table.calendar tr.title{ background:linear-gradient(120deg,#0f172a 0%,#1e3a8a 55%,#1e6fd9 100%) !important; direction:ltr; }
html body table.calendar tr.title td{ padding:10px 3px; vertical-align:middle; text-align:center; }
html body table.calendar tr.title td:nth-child(2), html body table.calendar tr.title td:nth-child(4){ width:0 !important; padding:0 !important; overflow:hidden; font-size:0; }
html body table.calendar tr.title td:nth-child(2) *, html body table.calendar tr.title td:nth-child(4) *{ display:none; }
html body table.calendar tr.title td:nth-child(1), html body table.calendar tr.title td:nth-child(6){ width:40px; }
html body table.calendar tr.title select{ width:100%; min-width:0; height:32px; border:0 !important; border-radius:8px; padding:0 6px; background:#fff; color:var(--c-ink); font-family:inherit; font-size:13px; direction:rtl; box-shadow:none; }
html body table.calendar tr.title img{ width:30px !important; height:30px !important; padding:6px; box-sizing:border-box; border-radius:8px; background:rgba(255,255,255,.14); cursor:pointer; vertical-align:middle; }
html body table.calendar tr.title img:hover{ background:rgba(255,255,255,.28); }
html body table.calendar tr.title img#btnNext{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
html body table.calendar tr.title img#btnBack{ content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
/* شبکه‌ی روزها */
html body table.calendar #tblDays{ table-layout:fixed; border-collapse:separate; border-spacing:3px; width:calc(100% - 12px); margin:6px; }
html body table.calendar #tblDays th{ padding:6px 0; font-size:12px; font-weight:700; color:var(--c-muted); text-align:center; border-bottom:1px solid var(--c-line) !important; }
html body table.calendar #tblDays th:last-child{ color:var(--c-danger); }
html body table.calendar #tblDays td{ height:36px; padding:0 !important; text-align:center; vertical-align:middle; border-radius:10px; font-size:14px; }
html body table.calendar #tblDays td.day{ font-weight:400; cursor:pointer; color:var(--c-ink); transition:background .12s,color .12s; }
html body table.calendar #tblDays td.day:last-child{ color:var(--c-danger); }
html body table.calendar #tblDays td.day:hover{ background:var(--c-primary-l) !important; color:var(--c-primary-d) !important; border:0 !important; }
html body table.calendar #tblDays td.day.today{ background:#fff7e6 !important; box-shadow:inset 0 0 0 1.5px var(--c-warn); border:0 !important; font-weight:700; }
html body table.calendar #tblDays td.day.selected{ background:linear-gradient(135deg,#2563eb,#1d4ed8) !important; color:#fff !important; font-weight:700; border:0 !important; box-shadow:0 4px 10px rgba(37,99,235,.35); }
/* امروز */
html body table.calendar #tdDate > tbody > tr:last-child > td{ padding:6px 14px 10px; font-size:12px; color:var(--c-muted); text-align:right !important; }
html body table.calendar #tdDate > tbody > tr:last-child label{ color:var(--c-ink); font-weight:700; margin:0; }
/* ساعت */
html body table.calendar #tdTime{ width:100%; table-layout:fixed; border-top:1px solid var(--c-line) !important; background:var(--c-hover); padding:8px 10px 12px; border-spacing:6px; border-collapse:separate; }
html body table.calendar #tdTime td{ text-align:center; padding:0 !important; font-size:12px; color:var(--c-muted); }
html body table.calendar #tdTime select{ width:100%; height:32px; border:1px solid var(--c-line-d) !important; border-radius:8px; padding:0 6px; background:#fff; color:var(--c-ink); font-family:inherit; font-size:13px; direction:ltr; }
html body table.calendar #tdTime select:focus, html body table.calendar tr.title select:focus{ outline:0; box-shadow:var(--focus); }
/* ردیف خالی آخر ماه مخفی شود تا پنجره کوتاه‌تر شود */
html body table.calendar #tblDays tbody tr:not(.hx23){ display:none; }
html body table.calendar tr.title td:nth-child(3), html body table.calendar tr.title td:nth-child(5){ width:auto; }

/* v1109: هدر تب‌ها هیچ‌وقت به خط بعد نرود (تب «دفترچه» دیده نمی‌شد چون هدرها شکسته و زیر لبه‌ی ۳۶ پیکسلی پنهان می‌شدند) */
html body .tab .tabHeaders{ white-space:nowrap; }
html body .tab .tabHeaders .tabHeader{ flex-shrink:0; white-space:nowrap; }
html body .tab .tabHeaders .tabHeader .headerText{ white-space:nowrap; max-width:340px; overflow:hidden; text-overflow:ellipsis; }

/* v1109: یک لودینگ واحد برای بارگذاری تب (به‌جای چند لودینگ پشت‌سرهم از کنترل‌های داخلی) */
.tabBootLoading{ position:absolute; inset:0; z-index:2147483000; background:#fff; display:flex; align-items:center; justify-content:center; }
.tabBootLoading.tbl-out{ opacity:0; pointer-events:none; transition:opacity .16s ease-out; }
.tabBootLoading .tbl-box{ display:flex; flex-direction:column; align-items:center; gap:12px; color:#1e3a8a; font-weight:600; }
/* اسپینر و لایه‌ی لودینگ روی لایه‌ی گرافیکی جدا: چرخش مستقل از کارهای سنگینِ رشته‌ی اصلی مرورگر (بدون لگ) */
.tabBootLoading{ will-change:opacity; transform:translateZ(0); contain:layout paint; }
.tabBootLoading .tbl-spin{ width:44px; height:44px; border-radius:50%; border:4px solid #dbe6fb; border-top-color:#2563eb; animation:tbl-rot .8s linear infinite; will-change:transform; backface-visibility:hidden; }
@keyframes tbl-rot{ to{ transform:rotate(360deg); } }
/* در زمان لودینگ تب فقط همان یک اسپینر تب دیده شود: نشانگرهای بارگذاری گریدها و کنترل‌های داخل تب پنهان‌اند
   (قبلاً اسپینر گرید کم‌رنگ از پشت لایه‌ی تب دیده می‌شد و دو اسپینر روی هم می‌افتاد) */
.tabBooting .blockUI, .tabBooting .blockMsg, .tabBooting .lg-loading,
.tabBooting .gridLoadingOv, .tabBooting .gridLazyMore, .tabBooting .lg-spin, .tabBooting .spinner-border, .tabBooting .spinner-grow{ visibility:hidden !important; }
body.tabBootingBody div.divBlock{ display:none !important; }

/* v1110: آیکن‌های داخل همه‌ی گریدها هم‌اندازه (22px) */
html body .gridView .gridView_content td img.gridButton, html body .gridView .gridView_content td img[data-rb]{ width:22px !important; height:22px !important; min-width:22px; padding:0 !important; margin:0 3px !important; vertical-align:middle !important; display:inline-block !important; object-fit:contain; border-radius:7px; }
html body .gridView .gridView_content tr.hover td img.gridButton, html body .gridView .gridView_content tr.focus td img.gridButton, html body .gridView .gridView_content tr.selected td img.gridButton{ width:22px !important; height:22px !important; }

/* v1111: ستون آیکن‌ها یک‌خطی بماند */
html body .gridView .gridView_content td img.gridButton, html body .gridView .gridView_content td img[data-rb]{ margin:0 2px !important; }

/* v1112: آیکن مخفی (display:none درون‌خطی) نباید با قاعده‌ی اندازه‌ی آیکن‌های گرید دوباره نمایش داده شود */
html body .gridView .gridView_content td img.gridButton[style*="display:none"], html body .gridView .gridView_content td img.gridButton[style*="display: none"], html body .gridView .gridView_content td img.quiztext[quiztextid="0"], html body .gridView .gridView_content td img.quiztext[quiztextid=""]{ display:none !important; }
/* عنوان سوال در گریدها: چیدمان آیکن + متن چندخطی بدون سرریز به ستون کناری */
html body .gridView .gridView_content .q-wrap{ display:flex; align-items:flex-start; gap:8px; }
html body .gridView .gridView_content .q-icons{ display:inline-flex; gap:4px; flex:0 0 auto; align-items:center; }
html body .gridView .gridView_content .q-text{ flex:1 1 auto; min-width:0; overflow-wrap:anywhere; word-break:break-word; }

/* ==========================================================================
   v1120 — ریسپانسیو کل سامانه (موبایل/تبلت/پنجره‌ی باریک برنامه‌ی نصب‌شده)
   فقط زیر ۸۲۰ پیکسل اعمال می‌شود و نمایش دسکتاپ را تغییر نمی‌دهد.
   اصل: هیچ المانی نباید صفحه را افقی اسکرول کند؛ نوارهای عریض (ریبون، تب‌ها، گرید) داخل خودشان اسکرول افقی دارند.
   ========================================================================== */
@media (max-width:820px){
  html, body{ max-width:100vw; -webkit-text-size-adjust:100%; }
  img, video, canvas, svg{ max-width:100%; }
  input[type=text], input[type=password], input[type=number], input[type=tel], input[type=email], input[type=search], select, textarea{ max-width:100%; box-sizing:border-box; font-size:16px; }
  button, .btn, input[type=button], input[type=submit]{ min-height:38px; }

  /* --- ریبون: نوار تب‌ها و گروه‌ها داخل خودشان اسکرول افقی می‌شوند --- */
  html body .ribbon{ max-width:100vw; }
  html body .ribbon > div:first-child{ flex-wrap:nowrap; overflow:hidden; }
  html body .ribbon .ribbonHeaderButtons{ overflow-x:auto; overflow-y:hidden; flex:1 1 auto; min-width:0; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  html body .ribbon .ribbonHeaderButtons::-webkit-scrollbar{ display:none; }
  html body .ribbon .ribbonHeaderButton{ flex:none; white-space:nowrap; padding-left:10px; padding-right:10px; }
  html body .ribbon .toolbarButtons{ flex:none; gap:4px; padding:3px 8px; }
  html body .ribbon .toolbarButtons .toolbarButton span, html body .ribbon .toolbarButtons .toolbarButton font{ display:none; }   /* فقط آیکن */
  html body .ribbon .ribbonContainerTabs{ overflow-x:auto; overflow-y:hidden; white-space:nowrap; -webkit-overflow-scrolling:touch; }
  html body .ribbon .ribbonContainerTab{ flex-wrap:nowrap; width:max-content; min-width:100%; }
  html body .ribbon .ribbonContainerTab[style*="block"], html body .ribbon .ribbonContainerTab[style*="flex"]{ display:flex !important; }
  html body .ribbon .ribbonGroup{ flex:none; float:none !important; }
  html body .ribbon .fileItems{ max-width:100vw; max-height:70vh; overflow:auto; }

  /* --- تب‌ها --- */
  html body .tabHeaders{ overflow-x:auto; overflow-y:hidden; white-space:nowrap; max-width:100vw; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  html body .tabHeaders::-webkit-scrollbar{ display:none; }
  html body .tabHeader{ flex:none; display:inline-block; white-space:nowrap; }
  html body #tblContent{ width:100% !important; table-layout:fixed; }
  html body #tblContent > tbody > tr > td{ padding:0 !important; max-width:100vw; }
  html body .tabContainers, html body .tabContainer{ max-width:100vw; overflow:auto; -webkit-overflow-scrolling:touch; }

  /* --- گرید --- */
  html body .gridView{ max-width:100vw; box-sizing:border-box; }
  html body .gridView_content{ overflow-x:auto !important; -webkit-overflow-scrolling:touch; }
  html body .gridView_content table{ min-width:max(100%,900px); }   /* table-layout:fixed با max-content عرض میلیونی می‌داد */
  html body .gridView_header, html body .gridView_footer{ flex-wrap:wrap; height:auto !important; gap:6px; }
  html body .gridView_footer *{ max-width:100%; }

  /* --- فرم‌ها و جدول‌های چیدمان: ستون‌ها زیر هم --- */
  html body table[width="100%"] input[type=text], html body table[width="100%"] select, html body table[width="100%"] textarea{ width:100% !important; }
  html body .dialog_content table, html body .dialog_content tbody, html body .dialog_content tr{ max-width:100%; }
  html body .dialog{ max-width:100vw !important; }
  html body .dialog_content{ overflow:auto !important; -webkit-overflow-scrolling:touch; }
  html body .dialog_buttons{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; height:auto !important; }
  html body .dialog_buttons button{ float:none !important; }

  /* --- نوار وضعیت و عنوان‌های بلند --- */
  html body .statusbar{ overflow:hidden; white-space:nowrap; text-overflow:ellipsis; max-width:100vw; }
  html body .dialog_header, html body .gridView_headerTitle{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  /* --- محتوای ادیتور/پیش‌نمایش سوال --- */
  html body .q-wrap{ flex-wrap:wrap; }
  html body .cke, html body .cke_inner, html body .cke_contents{ max-width:100% !important; }
}
@media (max-width:480px){
  html body .ribbon .ribbonGroupName{ display:none; }
  html body .ribbon .ribbonGroupLargeButton{ min-width:54px; }
  html body .gridView_content td, html body .gridView_content th{ padding:4px 6px; font-size:12px; }
}

/* v1121 — چیدمان عمودی پنل‌های کناری (درخت درس + جدول) در موبایل */
@media (max-width:820px){
  html body div.hx24{ flex-wrap:wrap !important; }
  html body div.hx24 > .sd-col,
  html body div.hx24 > .sd-main{ width:100% !important; max-width:100% !important; flex:0 0 100% !important; }
  html body .sd-col.sd-collapsed{ width:100% !important; max-width:100% !important; }
  html body .sd-col.sd-collapsed + .sd-main{ width:100% !important; }
  html body .sd-col > .panel > .panelBody{ max-height:40vh; overflow:auto; }
  html body .sd-main{ min-width:0; overflow-x:auto; }
}

/* v1122 — جابه‌جایی دکمه‌ی باز/بسته‌کردن ریبون در موبایل تا روی دکمه‌ی کاربر نیفتد */
@media (max-width:820px){
  html body .rb-toggle{ left:50% !important; margin-left:-23px; top:calc(100% - 1px) !important; bottom:auto !important; height:16px !important; min-height:0 !important; width:46px !important; }
  html body .gridView_content .btn, html body .gridView_content button{ min-height:0; padding-top:4px; padding-bottom:4px; line-height:1.3; }
}

/* v1123 — دکمه‌های پایین دیالوگ در موبایل کوچک‌تر تا بریده نشوند */
@media (max-width:820px){
  html body .dialog_buttons button, html body .dialog_buttons .btn, html body .dialog_buttons input[type=button]{ min-height:30px !important; padding:3px 12px !important; line-height:1.3; }
  html body .dialog_buttons{ padding-top:4px !important; padding-bottom:4px !important; box-sizing:border-box; }
}

/* v1124 — گروه ورودی (رمز عبور + دکمه‌ی چشم) در موبایل کنار هم بماند */
@media (max-width:820px){
  html body .input-group{ display:flex !important; flex-wrap:nowrap !important; align-items:stretch; width:100%; }
  html body .input-group > input, html body .input-group > select{ flex:1 1 auto !important; width:1% !important; min-width:0 !important; }
  html body .input-group > .btn, html body .input-group > button{ flex:0 0 auto; }
}

/* v1125 — گرید در موبایل: جدول چیدمان بیرونی با عرض محتوا بزرگ نشود تا خود گرید اسکرول افقی بدهد */
@media (max-width:820px){
  html body .gridView #divBody > table{ table-layout:fixed !important; width:100% !important; }
  html body .gridView #divBody > table > tbody > tr > td{ min-width:0; max-width:100%; }
}

/* v1126 — پنل «انتخاب درس» جمع‌شده در موبایل: فقط یک نوار کم‌ارتفاع؛ جدول سوالات ارتفاع قابل استفاده بگیرد */
@media (max-width:820px){
  html body :has(> .sd-col) > .sd-col.sd-collapsed{ width:100% !important; min-width:0 !important; max-width:100% !important; overflow:visible; }
  html body .sd-col.sd-collapsed > .panel{ height:auto !important; min-height:0 !important; }
  html body .sd-col.sd-collapsed > .panel > .panelHead{ writing-mode:horizontal-tb !important; min-height:0 !important; padding:10px 48px 10px 14px !important; white-space:normal; }
  html body .sd-col.sd-collapsed .sd-toggle{ top:50% !important; transform:translateY(-50%) rotate(180deg) !important; inset-inline-end:10px; }
  html body :has(> .sd-col) > .sd-col.sd-collapsed + .sd-main{ width:100% !important; max-width:100% !important; flex:0 0 100% !important; }
  html body .sd-main .gridView_content{ min-height:min(62vh,460px) !important; }
}

/* v1127 — نوار تب‌های بالای ریبون در موبایل: همه‌ی تب‌ها در چند ردیف دیده شوند (به‌جای اسکرول پنهان) */
@media (max-width:820px){
  html body .ribbon > div:first-child{ height:auto !important; min-height:0; overflow:visible !important; align-items:flex-start; }
  html body .ribbon .ribbonHeaderButtons{ display:flex !important; flex-wrap:wrap !important; overflow:visible !important; height:auto !important; row-gap:2px; }
  html body .ribbon .ribbonHeaderButton{ padding-left:8px; padding-right:8px; }
}
@media (max-width:480px){
  html body .ribbon .ribbonHeaderButton{ font-size:12px !important; padding:5px 6px !important; min-height:0 !important; line-height:1.5; }
}

/* v1128: جلوگیری از لرزش چیدمان (scroll anchoring) */
html body .tabContainer, html body .gridView_content, html body .sd-main{ overflow-anchor:none; }

/* v1129: متن سلول‌های همه‌ی گریدها وسط‌چین، بدون روی‌هم‌افتادن (شکستن خط به‌جای سرریز به ستون کناری) */
html body .gridView.gridView .gridView_content tr > td,
html body .gridView.gridView .gridView_header th{
  text-align:center !important; vertical-align:middle !important;
  white-space:normal !important; overflow:hidden !important; text-overflow:ellipsis;
  overflow-wrap:anywhere; word-break:normal; line-height:1.7; box-sizing:border-box;
}
html body .gridView.gridView .gridView_content tr > td > div,
html body .gridView.gridView .gridView_content tr > td > span,
html body .gridView.gridView .gridView_content tr > td > label{
  max-width:100%; white-space:normal !important; overflow-wrap:anywhere; text-align:center; unicode-bidi:plaintext;
}
html body .gridView.gridView .gridView_content tr > td{ unicode-bidi:plaintext; }
html body .dialog_content .gridView.gridView .gridView_content tr > td:first-child{ white-space:normal !important; }

/* v1130: آیکن‌های داخل سلول گرید در ستون‌های باریک بریده نشوند */
html body .gridView.gridView .gridView_content tr > td > img{ max-width:100%; height:auto; object-fit:contain; vertical-align:middle; }
html body .gridView.gridView .gridView_content tr > td.hx25{ padding-left:1px !important; padding-right:1px !important; }

/* v1131 (اصلاح‌شده): فقط راست‌چینی ستون‌های آیکن‌دار + چک‌باکس کامل دیده شود؛ عرض پنجره‌ها را خودِ Dialog.ascx.js بزرگ می‌کند */
html body .gridView.gridView .gridView_content tr > td,
html body .gridView.gridView .gridView_header th{ overflow-wrap:break-word; }
html body .gridView.gridView .gridView_content tr > td.hx16,
html body .gridView.gridView .gridView_content tr > td.hx26,
html body .gridView.gridView .gridView_content tr > td.hx27,
html body .gridView.gridView .gridView_content tr > td.hx28{ text-align:right !important; }
html body .gridView.gridView .gridView_content tr > td.hx16 > *,
html body .gridView.gridView .gridView_content tr > td.hx26 > *{ text-align:right; }

/* v1132: سلول/هدر چک‌باکس بریده نشود */
html body .gridView.gridView .gridView_content tr > td.hx29,
html body .gridView.gridView .gridView_header th.hx30{ overflow:visible !important; padding-left:0 !important; padding-right:0 !important; text-align:center !important; }
html body .gridView.gridView input[type=checkbox]{ margin:0 auto !important; display:inline-block; vertical-align:middle; position:static; }
/* v1133: تغییر اندازه‌ی پنجره‌ها نرم باشد (به‌جای پرش)؛ فقط پنجره‌هایی که گرید دارند */
html body .dialog.dlg-animate{ transition:width .18s ease, height .18s ease; }
/* v1141: transition ارتفاع محتوای پنجره حذف شد؛ با چند تغییر پشت‌سرهم اندازه را «بازی» می‌داد */ html body .dialog .dialog_content{ transition:none !important; }
/* v1134: پنجره‌های دارای دو گرید و دکمه‌های انتقال وسط: عرض مساوی + ستون دکمه‌ها همیشه دیده شود؛ اسکرول پنجره/تب بعد از تنظیم اندازه حذف می‌شود */
html body .dialog_content table[width="100%"] > tbody > tr > td[style*="width:50%"]{ width:calc(50% - 30px) !important; max-width:calc(50% - 30px); min-width:0; }
html body .dialog_content table[width="100%"] > tbody > tr > td[style*="width:23px"]{ width:60px !important; min-width:60px; text-align:center; overflow:visible !important; }
html body .dialog_content table[width="100%"].hx31{ table-layout:fixed; }
html body .dialog_content table[width="100%"] > tbody > tr > td[style*="width:50%"] .gridView{ width:100% !important; min-width:0; }

/* v1135: عناصر مخفیِ select2 خارج از کادر، اسکرول افقی کاذب می‌سازند؛ در پنجره‌های بدون گرید اسکرول افقی حذف شد */
html body .dialog .dialog_content{ overflow-x:hidden !important; }

/* v1136: pager centered + full-pager popup stays inside the viewport */
html body .gridView.gridView .gridView_footer > table{ width:100%; }
html body .gridView.gridView .gridView_footer #divSimplePaging{ margin:0 auto !important; }
html body .gridView.gridView .gridView_footer > table > tbody > tr > td.hx32{ text-align:center; }
html body .gridView.gridView .gridView_footer #divSimplePaging tr{ justify-content:center; }
html body .gridView.gridView .gridView_footer #divPaging.showSimplePaging{ width:max-content !important; max-width:calc(100vw - 16px) !important; }
html body .gridView.gridView .gridView_footer #divPaging.showSimplePaging > tbody > tr{ justify-content:flex-start; flex-wrap:wrap; }

/* v1137: grids with few rows must not stretch rows to the full height; empty-state panel */
html body .gridView .gridView_content table{ height:auto !important; min-height:0 !important; }
html body .gridView .gridView_content table > tbody > tr, html body .gridView .gridView_content table > thead > tr{ height:auto !important; }
html body .gridView .gridView_content{ align-content:flex-start; }
.emptyState{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:360px; margin:8px; padding:28px 20px; text-align:center; color:#64748b; background:linear-gradient(180deg,#f8fafc,#f1f5f9); border:2px dashed #cbd5e1; border-radius:16px; }
.emptyState .es-ico{ width:72px; height:72px; border-radius:20px; display:flex; align-items:center; justify-content:center; font-size:34px; background:#e0e7ff; color:#4338ca; }
.emptyState .es-title{ font-size:15px; font-weight:800; color:#334155; }
.emptyState .es-text{ font-size:12.5px; line-height:1.9; max-width:360px; }

/* v1138: ستون ترتیب (جابجایی بالا/پایین + شماره) در یک خط و مرتب */
html body .gridView .gridView_content td.hx33, html body .gridView .gridView_content td.hx34{ white-space:nowrap !important; text-align:center !important; overflow:visible !important; padding-left:2px !important; padding-right:2px !important; font-size:12px; }
html body .gridView .gridView_content td.hx33 > img, html body .gridView .gridView_content td.hx34 > img{ width:20px !important; height:20px !important; min-width:20px !important; margin:0 1px !important; vertical-align:middle !important; display:inline-block !important; }

/* v1139: آیکن نمایش رمز مرورگر روی تقویم/پاپ‌آپ‌ها نیفتد */
input[type=password]::-ms-reveal, input[type=password]::-ms-clear{ display:none !important; }
input[type=password]::-webkit-credentials-auto-fill-button, input[type=password]::-webkit-contacts-auto-fill-button{ visibility:hidden !important; display:none !important; pointer-events:none; }
/* v1140 perf: no per-cell :has() on grids; use fixed order for pager only */

/* ==========================================================================
   v1200 — لایه‌ی سراسری ریسپانسیو و دسترس‌پذیری (فاز ۴)
   ========================================================================== */

/* ۱) فوکوس صفحه‌کلید در همه‌ی کنترل‌ها دیده شود (فقط هنگام کار با کیبورد، نه کلیک موس) */
html body :is(a, button, input, select, textarea, [tabindex]):focus-visible{
  outline:2px solid var(--c-primary, #2563eb) !important; outline-offset:2px; }
html body .select2-container--focus .select2-selection{ box-shadow:0 0 0 3px rgba(37,99,235,.18); }

/* ۲) هیچ عنصری با عرض ثابت (style="width:…px") از صفحه بیرون نزند */
@media (max-width:820px){
  html body [style*="width"]:not(.gridView_content *):not(.ribbon *):not(.dialog):not(iframe):not(canvas){ max-width:100%; box-sizing:border-box; }
  html body td[width], html body th[width], html body table[width]:not([width="100%"]){ max-width:100%; }
  html body fieldset{ min-width:0; max-width:100%; box-sizing:border-box; }
  html body pre, html body code{ white-space:pre-wrap; word-break:break-word; }
  html body .panel, html body .panelBody{ max-width:100%; box-sizing:border-box; }

  /* ۳) جدول‌های چیدمان فرم (جدولی که مستقیماً فیلد ورودی دارد) بیرون از دیالوگ هم زیر هم چیده شوند؛
        جدول‌های داده (گرید، گزینه‌های سوال، گزارش‌ها) دست نمی‌خورند */
  html body table:not(.gridView table):not(#tblAnswers):not(.mce-item-table):not(.no-stack):has(> tbody > tr > td > :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea, .select2-container)),
  html body table:not(.gridView table):not(#tblAnswers):not(.mce-item-table):not(.no-stack):has(> tbody > tr > td > :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea, .select2-container)) > tbody,
  html body table:not(.gridView table):not(#tblAnswers):not(.mce-item-table):not(.no-stack):has(> tbody > tr > td > :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea, .select2-container)) > tbody > tr{
    display:block; width:100% !important; }
  html body table:not(.gridView table):not(#tblAnswers):not(.mce-item-table):not(.no-stack):has(> tbody > tr > td > :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea, .select2-container)) > tbody > tr > td{
    display:block; width:auto !important; padding-inline:2px; }
  html body table:not(.gridView table):not(#tblAnswers):not(.mce-item-table):not(.no-stack):has(> tbody > tr > td > :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea, .select2-container)) > tbody > tr > td:empty{ display:none; }
  html body .select2-container{ max-width:100% !important; }
  html body .select2-container--open .select2-dropdown{ max-width:calc(100vw - 16px); }

  /* ۴) اهداف لمسی حداقل ۳۶ پیکسل */
  html body input[type=checkbox], html body input[type=radio]{ min-width:18px; min-height:18px; }
  html body .ribbon .ribbonSmallButton, html body .tabHeader{ min-height:36px; }
}

/* ۵) جدول‌های عریض گزارش در موبایل داخل خودشان اسکرول افقی شوند (به‌جای بیرون زدن از صفحه) */
@media (max-width:820px){
  html body .tabContainer > table:not(:has(> tbody > tr > td > :is(input, select, textarea))),
  html body .panelBody > table:not(:has(> tbody > tr > td > :is(input, select, textarea))){ display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
}

/* نوار باریک «در حال انجام» برای عملیات‌های سمت سرور (WebBusy در X7.ControlLoader.js) */
#webBusyBar{ position:fixed; top:0; left:0; right:0; height:3px; z-index:2147483000; pointer-events:none; opacity:0; transition:opacity .2s; overflow:hidden; }
#webBusyBar.on{ opacity:1; }
#webBusyBar i{ position:absolute; top:0; bottom:0; width:35%; background:linear-gradient(90deg,transparent,var(--c-primary,#2563eb),transparent); animation:webBusyMove 1.1s ease-in-out infinite; }
@keyframes webBusyMove{ from{ left:-35%; } to{ left:100%; } }
@media (prefers-reduced-motion:reduce){ #webBusyBar i{ animation-duration:3s; } }

/* v1140 — چشم رمز عبور کنار فیلد و زیر تقویم */
html body .dialog_content .input-group{ display:flex !important; flex-wrap:nowrap !important; align-items:stretch; gap:6px; width:100%; max-width:340px; position:static !important; z-index:auto !important; }
html body .dialog_content .input-group > input{ flex:1 1 auto !important; width:1% !important; min-width:0 !important; margin:0 !important; max-width:none !important; z-index:auto !important; position:static !important; }
html body .dialog_content .input-group > .btn, html body .dialog_content .input-group > button{ flex:0 0 38px; width:38px; min-height:34px; padding:0 !important; margin:0 !important; position:static !important; z-index:auto !important; display:inline-flex; align-items:center; justify-content:center; }
html body .calendar, html body .calendarContainer, html body [class*="calendar_"]{ z-index:100000; }

/* v1141 — فاصله‌ی داخلی محتوای تب‌ها از لبه‌ها */
html body .dialog_content .tab .tabContainers .tabContainer{ padding:10px 16px 16px !important; box-sizing:border-box; }
