.nd54-dashboard-view{padding:18px;overflow-y:auto;min-height:0;background:#f7faff;direction:rtl}.nd54-dashboard-loading{min-height:260px;display:grid;place-content:center;gap:12px;text-align:center;color:#71809a}.nd54-dashboard-loading span{width:24px;height:24px;border:3px solid #dbe8fa;border-top-color:#1673e6;border-radius:50%;animation:nd54spin .8s linear infinite;margin:auto}@keyframes nd54spin{to{transform:rotate(360deg)}}.nd54-welcome,.nd54-alerts,.nd54-assets,.nd54-actions,.nd54-empty-dashboard,.nd54-dashboard-error{background:#fff;border:1px solid #dfe9f7;border-radius:18px;padding:18px;margin-bottom:14px;box-shadow:0 8px 24px rgba(35,77,130,.05)}.nd54-welcome small{color:#7d8ca5}.nd54-welcome h3{font-size:22px;margin:5px 0;color:#14213a}.nd54-welcome p{margin:0;color:#8490a3;font-size:13px}.nd54-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.nd54-section-head b{font-size:15px;color:#1b2940}.nd54-section-head span{min-width:26px;height:26px;border-radius:13px;background:#edf4ff;color:#176fd5;display:grid;place-items:center;font-weight:800}.nd54-alerts{display:grid;gap:9px}.nd54-alert{width:100%;border:0;border-radius:13px;padding:12px 13px;display:grid;grid-template-columns:30px 1fr 20px;align-items:center;text-align:right;cursor:pointer}.nd54-alert i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:900}.nd54-alert span{font-size:13px;font-weight:700}.nd54-alert.danger{background:#fff4f4;color:#a82b2b}.nd54-alert.danger i{background:#ffe0e0}.nd54-alert.warn{background:#fff8e8;color:#956200}.nd54-alert.warn i{background:#ffedbd}.nd54-alert.info{background:#eff7ff;color:#1762a8}.nd54-alert.info i{background:#dcecff}.nd54-assets-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nd54-stat{border:1px solid #e2ebf7;background:#fbfdff;border-radius:15px;padding:14px;display:grid;grid-template-columns:36px 1fr auto;align-items:center;text-align:right;cursor:pointer}.nd54-stat i{width:34px;height:34px;border-radius:11px;background:#eaf3ff;color:#176fd5;display:grid;place-items:center;font-style:normal;font-size:18px}.nd54-stat span{font-size:13px;color:#637089;padding-right:9px}.nd54-stat strong{font-size:22px;color:#17243b}.nd54-stat.danger strong{color:#d73535}.nd54-actions>div:last-child{display:grid;gap:8px}.nd54-actions button{border:1px solid #e3ebf6;background:#fff;border-radius:12px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;font-weight:800;color:#23334f;cursor:pointer}.nd54-actions button:hover,.nd54-stat:hover,.nd54-alert:hover{border-color:#a9ccfa;transform:translateY(-1px)}.nd54-empty-dashboard{text-align:center;padding:36px 20px}.nd54-empty-icon{font-size:36px;color:#2b7de9}.nd54-empty-dashboard h3{margin:10px 0 6px}.nd54-empty-dashboard p{color:#7d899c}.nd54-empty-dashboard>div:last-child{display:flex;gap:10px;justify-content:center;margin-top:18px}.nd54-empty-dashboard button,.nd54-dashboard-error button{border:0;background:#1673e6;color:white;border-radius:11px;padding:11px 16px;font-weight:800}.nd54-dashboard-error{text-align:center}.nd54-dashboard-error p{color:#7b8798}@media(max-width:520px){.nd54-dashboard-view{padding:12px}.nd54-assets-grid{grid-template-columns:1fr 1fr}.nd54-stat{grid-template-columns:32px 1fr auto;padding:11px}.nd54-stat strong{font-size:19px}}

/* RC53.25 focused smart dashboard */
.nd54-welcome,.nd54-actions{display:none!important}
.nd54-dashboard-view{padding-top:14px}
.nd5325-filter-bar{margin:10px 18px 12px;padding:10px 12px;border:1px solid #cfe1f8;background:#eef6ff;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#31577f;font-size:13px;box-shadow:0 6px 18px rgba(35,77,130,.05)}
.nd5325-filter-bar b{color:#145fb8}
.nd5325-filter-bar button{width:28px;height:28px;border:1px solid #bfd6f1;background:#fff;color:#55728f;border-radius:50%;font-size:18px;line-height:1;cursor:pointer}
.nd-dashboard-filter-hidden{display:none!important}
@media(max-width:520px){.nd5325-filter-bar{margin:8px 10px 10px}}

/* RC53.26 financial actions / important states */
.nd5326-financial{border-color:#f4dfb4;background:linear-gradient(180deg,#fffdf8,#fff)}
.nd5326-important{border-color:#f0dfe2}


/* RC53.27 — compact modern dashboard and single-row navigation */
.nd40-nav{
  height:62px!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:0!important;
  padding:0 8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
}
.nd40-nav::-webkit-scrollbar{display:none!important}
.nd40-nav-item{
  flex:1 0 auto!important;
  min-width:92px!important;
  padding:0 7px!important;
  gap:5px!important;
  white-space:nowrap!important;
}
.nd40-nav-item b{
  white-space:nowrap!important;
  word-break:keep-all!important;
  line-height:1!important;
  font-size:12.5px!important;
}
.nd40-nav-item span{flex:0 0 auto!important;font-size:15px!important}

.nd54-dashboard-view{padding:14px!important;background:linear-gradient(180deg,#f8fbff 0%,#f5f8fd 100%)!important}
.nd54-alerts,.nd54-assets{border-radius:17px!important;padding:15px!important;margin-bottom:12px!important;box-shadow:0 7px 22px rgba(35,77,130,.045)!important}
.nd5327-financial{border-color:#f1dfbb!important;background:#fffdfa!important}
.nd5327-important{border-color:#eddfe3!important;background:#fff!important}
.nd54-section-head{margin-bottom:10px!important}
.nd54-section-head b{font-size:16px!important}
.nd54-section-head span{width:24px!important;min-width:24px!important;height:24px!important;font-size:12px!important}
.nd54-alert{min-height:48px!important;padding:10px 12px!important;border:1px solid transparent!important;grid-template-columns:28px minmax(0,1fr) 16px!important;gap:7px!important}
.nd54-alert span{font-size:12.8px!important;line-height:1.65!important}
.nd54-alert.info{background:#f1f7ff!important;color:#185fa9!important;border-color:#deebfb!important}
.nd54-alert.info i{background:#e0edff!important}

.nd54-assets-grid{
  display:grid!important;
  grid-template-columns:repeat(var(--nd-dashboard-card-count,4),minmax(0,1fr))!important;
  gap:8px!important;
}
.nd54-stat{
  min-width:0!important;
  min-height:94px!important;
  padding:10px 6px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  gap:4px!important;
  text-align:center!important;
  border-radius:14px!important;
}
.nd54-stat i{width:30px!important;height:30px!important;border-radius:10px!important;font-size:16px!important}
.nd54-stat strong{font-size:21px!important;line-height:1.1!important;order:2!important}
.nd54-stat span{font-size:11.5px!important;line-height:1.25!important;padding:0!important;white-space:nowrap!important;order:3!important}
.nd54-stat i{order:1!important}
@media(max-width:390px){
 .nd40-nav-item{min-width:86px!important;padding:0 5px!important}
 .nd40-nav-item b{font-size:11.8px!important}
 .nd54-dashboard-view{padding:10px!important}
 .nd54-alerts,.nd54-assets{padding:12px!important}
 .nd54-assets-grid{gap:6px!important}
 .nd54-stat{min-height:88px!important;padding:8px 3px!important}
 .nd54-stat strong{font-size:19px!important}
 .nd54-stat span{font-size:10.5px!important}
}


/* RC53.28 — summary first on RTL right, counts inside top navigation */
.nd40-nav{
  flex-direction:row!important;
  direction:rtl!important;
  height:68px!important;
  padding:0 5px!important;
  overflow-x:hidden!important;
}
.nd40-nav-item{
  min-width:0!important;
  flex:1 1 25%!important;
  padding:7px 3px 6px!important;
  display:grid!important;
  grid-template-columns:auto auto!important;
  grid-template-rows:auto 17px!important;
  align-content:center!important;
  justify-content:center!important;
  column-gap:5px!important;
  row-gap:2px!important;
  white-space:nowrap!important;
}
.nd40-nav-item>span{grid-column:1;grid-row:1;font-size:15px!important;line-height:1!important}
.nd40-nav-item>b{grid-column:2;grid-row:1;font-size:12px!important;line-height:1.2!important;white-space:nowrap!important}
.nd5328-nav-count{
  grid-column:1 / -1;
  grid-row:2;
  display:block;
  min-height:17px;
  font-size:12px;
  line-height:17px;
  font-weight:900;
  color:#7c8da6;
  text-align:center;
}
.nd40-nav-item.active .nd5328-nav-count{color:#176ee5}
.nd5328-nav-count:empty{visibility:hidden}
.nd54-assets{display:none!important}
@media(max-width:390px){
 .nd40-nav{height:66px!important;padding:0 2px!important}
 .nd40-nav-item{min-width:0!important;padding:6px 1px 5px!important;column-gap:3px!important}
 .nd40-nav-item>b{font-size:11.2px!important}
 .nd40-nav-item>span{font-size:14px!important}
 .nd5328-nav-count{font-size:11px!important}
}
\n\n/* RC53.29 — refined navigation, separate support replies, live summary refresh */\n.nd40-nav{height:74px!important;padding:0 4px!important}\n.nd40-nav-item{\n  grid-template-columns:auto auto!important;\n  grid-template-rows:24px 18px!important;\n  column-gap:3px!important;\n  row-gap:1px!important;\n  padding:8px 2px 7px!important;\n}\n.nd40-nav-item>span{align-self:center!important;justify-self:end!important;font-size:15px!important}\n.nd40-nav-item>b{align-self:center!important;justify-self:start!important;font-size:12px!important;letter-spacing:-.15px!important}\n.nd5328-nav-count{font-size:12px!important;line-height:18px!important;color:#73839b!important}\n.nd40-nav-item.active .nd5328-nav-count{color:#176ee5!important}\n.nd5329-support{border-color:#d9e8fb!important;background:linear-gradient(180deg,#fbfdff,#fff)!important}\n.nd5329-support .nd54-section-head{margin-bottom:10px!important}\n.nd5329-support .nd54-section-head b{color:#174f91!important}\n.nd5329-support .nd54-alert.info{background:#eef6ff!important;border-color:#d8e9fd!important}\n.nd5329-support .nd54-alert.info span{color:#145da8!important}\n@media(max-width:390px){\n .nd40-nav{height:72px!important;padding:0 1px!important}\n .nd40-nav-item{grid-template-rows:23px 17px!important;column-gap:2px!important;padding:7px 1px 6px!important}\n .nd40-nav-item>b{font-size:10.9px!important}\n .nd40-nav-item>span{font-size:13px!important}\n .nd5328-nav-count{font-size:10.8px!important}\n}\n
/* RC53.30 — true two-line navigation + API-only renewal matching */
#ndCustomerPanel .nd40-nav{
  direction:rtl!important;
  height:78px!important;
  align-items:stretch!important;
  padding:0 3px!important;
}
#ndCustomerPanel .nd40-nav .nd40-nav-item{
  position:relative!important;
  display:grid!important;
  grid-template-columns:auto auto!important;
  grid-template-rows:28px 20px!important;
  grid-template-areas:"icon title" "count count"!important;
  align-content:center!important;
  justify-content:center!important;
  align-items:center!important;
  column-gap:4px!important;
  row-gap:0!important;
  min-width:0!important;
  height:100%!important;
  padding:7px 2px 8px!important;
  white-space:nowrap!important;
}
#ndCustomerPanel .nd40-nav .nd40-nav-item>span{
  grid-area:icon!important;
  display:block!important;
  align-self:center!important;
  justify-self:end!important;
  margin:0!important;
  font-size:15px!important;
  line-height:1!important;
}
#ndCustomerPanel .nd40-nav .nd40-nav-item>b{
  grid-area:title!important;
  display:block!important;
  align-self:center!important;
  justify-self:start!important;
  margin:0!important;
  font-size:12px!important;
  line-height:1.2!important;
}
#ndCustomerPanel .nd40-nav .nd40-nav-item>.nd5328-nav-count{
  grid-area:count!important;
  display:block!important;
  position:static!important;
  width:100%!important;
  min-width:0!important;
  height:20px!important;
  min-height:20px!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
  font-size:11.5px!important;
  font-weight:900!important;
  line-height:20px!important;
  color:#7b8aa0!important;
  transform:none!important;
}
#ndCustomerPanel .nd40-nav .nd40-nav-item>.nd5328-nav-count:empty{visibility:hidden!important}
#ndCustomerPanel .nd40-nav .nd40-nav-item.active>.nd5328-nav-count{color:#176ee5!important}
@media(max-width:390px){
 #ndCustomerPanel .nd40-nav{height:76px!important;padding:0 1px!important}
 #ndCustomerPanel .nd40-nav .nd40-nav-item{grid-template-rows:27px 19px!important;column-gap:2px!important;padding:7px 1px 7px!important}
 #ndCustomerPanel .nd40-nav .nd40-nav-item>b{font-size:10.8px!important;letter-spacing:-.2px!important}
 #ndCustomerPanel .nd40-nav .nd40-nav-item>span{font-size:13px!important}
 #ndCustomerPanel .nd40-nav .nd40-nav-item>.nd5328-nav-count{font-size:10.5px!important;line-height:19px!important;height:19px!important;min-height:19px!important}
}

/* RC53.42 — keep cached dashboard visible during background refresh */
.nd54-dashboard-view.nd54-dashboard-refreshing{position:relative}
.nd54-dashboard-view.nd54-dashboard-refreshing:after{content:'در حال به‌روزرسانی…';position:sticky;bottom:8px;display:block;width:max-content;margin:8px auto 0;padding:5px 10px;border-radius:999px;background:rgba(23,43,77,.88);color:#fff;font-size:9px;font-weight:800;z-index:3;box-shadow:0 5px 16px rgba(23,43,77,.18)}

/* RC53.50 — compact dashboard lists and readable mobile account navigation */
.nd5350-extra-row[hidden]{display:none!important}
.nd5350-more{
  width:100%;border:1px dashed #cbdcf1;background:#f8fbff;color:#2567b5;
  min-height:42px;border-radius:12px;padding:9px 13px;display:flex;align-items:center;
  justify-content:center;gap:8px;font:800 11px/1.4 Tahoma,Arial,sans-serif;cursor:pointer
}
.nd5350-more:hover{background:#eef6ff;border-color:#9fc5f2}
.nd5350-more b{font-size:15px;line-height:1}
@media(max-width:520px){
 #ndCustomerPanel .nd40-nav{
   display:flex!important;direction:rtl!important;overflow-x:auto!important;overflow-y:hidden!important;
   height:72px!important;min-height:72px!important;padding:0 5px!important;background:#fff!important;
   scrollbar-width:none!important;overscroll-behavior-x:contain!important;flex:0 0 72px!important
 }
 #ndCustomerPanel .nd40-nav::-webkit-scrollbar{display:none!important}
 #ndCustomerPanel .nd40-nav .nd40-nav-item{
   flex:1 0 88px!important;min-width:88px!important;height:72px!important;box-sizing:border-box!important;
   display:grid!important;grid-template-columns:auto auto!important;grid-template-rows:30px 20px!important;
   grid-template-areas:'icon title' 'count count'!important;align-content:center!important;justify-content:center!important;
   column-gap:4px!important;padding:7px 5px 8px!important;white-space:nowrap!important
 }
 #ndCustomerPanel .nd40-nav .nd40-nav-item>b{font-size:12px!important;line-height:1.25!important;letter-spacing:0!important}
 #ndCustomerPanel .nd40-nav .nd40-nav-item>span{font-size:14px!important;line-height:1!important}
 #ndCustomerPanel .nd40-nav .nd40-nav-item>.nd5328-nav-count{font-size:11px!important;height:20px!important;line-height:20px!important}
 .nd54-dashboard-view{padding-top:12px!important}
 .nd54-alerts{padding:14px!important;gap:8px!important}
 .nd54-alert{padding:11px 10px!important;grid-template-columns:28px minmax(0,1fr) 18px!important}
 .nd54-alert span{font-size:11.5px!important;line-height:1.75!important;overflow-wrap:anywhere}
}


/* RC53.52 — grouped financial actions with per-category compact expansion */
.nd5351-financial{display:grid!important;gap:12px!important}
.nd5351-financial>.nd54-section-head{margin-bottom:0!important}
.nd5351-financial-group{display:grid;gap:7px;padding:10px;border:1px solid #f0dfb9;border-radius:14px;background:#fff}
.nd5351-financial-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:1px 3px 6px;border-bottom:1px solid #f5ead2}
.nd5351-financial-group-head b{font-size:13px;color:#81570b}
.nd5351-financial-group-head span{min-width:26px;height:24px;padding:0 7px;border-radius:999px;background:#fff2cb;color:#9a6500;display:grid;place-items:center;font-size:11px;font-weight:900}
.nd5351-group-extra[hidden]{display:none!important}
.nd5351-group-more{min-height:38px;background:#fffaf0;border-color:#ead7aa;color:#8b620f}
.nd5351-group-more:hover{background:#fff4d8;border-color:#d8bd7a}
@media(max-width:520px){
 .nd5351-financial{gap:10px!important}
 .nd5351-financial-group{padding:9px;gap:6px;border-radius:13px}
 .nd5351-financial-group-head b{font-size:12px}
 .nd5351-financial-group .nd54-alert{min-height:46px!important}
}
