/* Suite Core - Central Statistics Dashboard */
:root{
  --suite-stats-primary:#1e5e9e;
  --suite-stats-primary-dark:#0b3a68;
  --suite-stats-accent:#0f766e;
  --suite-stats-text:#0f172a;
  --suite-stats-muted:#64748b;
  --suite-stats-border:#dbe5f0;
  --suite-stats-border-soft:#edf3f9;
  --suite-stats-surface:#fff;
  --suite-stats-bg:#f8fbff;
  --suite-stats-shadow:0 18px 48px rgba(15,23,42,.08);
  --suite-stats-shadow-soft:0 10px 26px rgba(15,23,42,.06);
}
.suite-stats-wrap,
.suite-stats-wrap *{box-sizing:border-box}
.suite-stats-wrap{
  width:min(100%,1240px);
  max-width:1240px;
  margin:24px auto;
  direction:rtl;
  font-family:var(--suite-core-font-family,'SuiteCoreVazir','Vazirmatn','Vazir','IRANSans','Tahoma','Segoe UI',Arial,sans-serif)!important;
  color:var(--suite-stats-text);
}
.suite-stats-head{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:18px;
  padding:24px;
  border:1px solid var(--suite-stats-border);
  border-radius:28px;
  background:radial-gradient(circle at top right,rgba(30,94,158,.16),transparent 42%),linear-gradient(135deg,#ffffff 0%,#eef7ff 100%);
  box-shadow:var(--suite-stats-shadow);
  overflow:hidden;
}
.suite-stats-head-main{min-width:0;display:flex;flex-direction:column;justify-content:center}
.suite-stats-eyebrow{
  display:inline-flex;
  width:max-content;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:4px 12px;
  border-radius:999px;
  background:#e0f2fe;
  color:#075985;
  font-size:12px;
  font-weight:950;
}
.suite-stats-head h2{margin:10px 0 6px;color:var(--suite-stats-primary-dark);font-size:30px;font-weight:950;letter-spacing:-.03em;line-height:1.5}
.suite-stats-head p{margin:0;max-width:820px;color:var(--suite-stats-muted);font-size:14px;font-weight:750;line-height:2}
.suite-stats-head-meta{display:flex;flex-direction:column;gap:10px;align-items:flex-start;justify-content:center;min-width:230px}
.suite-stats-chip,
.suite-stats-code{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  border-radius:16px;
  border:1px solid rgba(219,229,240,.95);
  background:rgba(255,255,255,.82);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
  color:#334155;
  font-weight:900;
  padding:8px 12px;
  text-align:center;
}
.suite-stats-code code{direction:ltr;unicode-bidi:plaintext;background:transparent;color:#0f766e;font-weight:950;font-size:13px}
.suite-stats-kpis,
.suite-stats-cards{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  margin:18px 0;
}
.suite-stats-cards{grid-template-columns:repeat(4,minmax(0,1fr));margin:16px 0 4px}
.suite-stats-cards-edu{grid-template-columns:repeat(6,minmax(0,1fr))}
.suite-stats-card{
  position:relative;
  min-height:132px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
  padding:18px;
  border:1px solid var(--suite-stats-border);
  border-radius:24px;
  background:linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:var(--suite-stats-shadow-soft);
  overflow:hidden;
}
.suite-stats-card:before{
  content:"";
  position:absolute;
  inset:auto auto -38px -36px;
  width:110px;
  height:110px;
  border-radius:999px;
  background:rgba(30,94,158,.10);
}
.suite-stats-card span{position:relative;color:#64748b;font-size:13px;font-weight:900;line-height:1.7}
.suite-stats-card strong{position:relative;color:#0f172a;font-size:30px;font-weight:950;line-height:1.2;letter-spacing:-.03em}
.suite-stats-card small{position:relative;color:#475569;font-size:12px;font-weight:800;line-height:1.8}
.suite-stats-card-blue:before{background:rgba(37,99,235,.12)}
.suite-stats-card-indigo:before{background:rgba(79,70,229,.13)}
.suite-stats-card-teal:before{background:rgba(15,118,110,.13)}
.suite-stats-card-green:before{background:rgba(22,163,74,.13)}
.suite-stats-card-purple:before{background:rgba(124,58,237,.13)}
.suite-stats-card-amber:before{background:rgba(245,158,11,.16)}
.suite-stats-card-red:before{background:rgba(220,38,38,.12)}
.suite-stats-section{
  margin-top:20px;
  padding:20px;
  border:1px solid var(--suite-stats-border);
  border-radius:28px;
  background:linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:var(--suite-stats-shadow-soft);
}
.suite-stats-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  padding:18px 20px;
  border-radius:22px;
  background:radial-gradient(circle at top right,rgba(30,94,158,.13),transparent 42%),linear-gradient(135deg,#f8fbff,#eef7ff);
}
.suite-stats-section-head h3{margin:0;color:var(--suite-stats-primary-dark);font-size:22px;font-weight:950;line-height:1.55;letter-spacing:-.02em}
.suite-stats-section-head p{margin:4px 0 0;color:var(--suite-stats-muted);font-size:13px;font-weight:750;line-height:1.9}
.suite-stats-grid{display:grid;gap:16px;margin-top:16px}
.suite-stats-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.suite-stats-panel{
  min-width:0;
  padding:18px;
  border:1px solid var(--suite-stats-border-soft);
  border-radius:24px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}
.suite-stats-panel h4{margin:0 0 14px;color:#0f172a;font-size:16px;font-weight:950;line-height:1.6}
.suite-stats-donut-wrap{display:flex;align-items:center;justify-content:center;margin:10px 0 18px}
.suite-stats-donut{
  width:178px;
  height:178px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:conic-gradient(var(--suite-stats-primary) 0 var(--pct), #e8eef6 var(--pct) 100%);
  box-shadow:inset 0 0 0 1px rgba(219,229,240,.9),0 16px 34px rgba(15,23,42,.08);
}
.suite-stats-donut>div{
  width:118px;
  height:118px;
  border-radius:999px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  background:#fff;
  text-align:center;
  padding:10px;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
.suite-stats-donut strong{font-size:28px;font-weight:950;color:#0f172a;line-height:1}
.suite-stats-donut span{font-size:12px;font-weight:900;color:#64748b;line-height:1.6}
.suite-stats-bars{display:flex;flex-direction:column;gap:13px}
.suite-stats-bar-row{display:flex;flex-direction:column;gap:7px;min-width:0}
.suite-stats-bar-info{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#334155;font-size:13px;font-weight:900;line-height:1.6}
.suite-stats-bar-info span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.suite-stats-bar-info b{flex:0 0 auto;color:#0f172a;font-weight:950;direction:ltr;unicode-bidi:plaintext}
.suite-stats-meter{height:12px;border-radius:999px;background:#edf3f9;overflow:hidden;border:1px solid #e2e8f0}
.suite-stats-meter span{display:block;width:var(--w,0%);height:100%;border-radius:999px;background:linear-gradient(90deg,#1d4ed8,#0f766e);transition:width .7s ease}
.suite-stats-mini-metrics{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.suite-stats-mini-metrics span{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:5px 10px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-size:12px;font-weight:900}
.suite-stats-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.suite-stats-module-card{min-width:0;border:1px solid #e2e8f0;border-radius:20px;background:#fff;padding:16px;display:flex;flex-direction:column;gap:7px;box-shadow:0 10px 22px rgba(15,23,42,.04)}
.suite-stats-module-card strong{font-size:15px;font-weight:950;color:#0f172a;line-height:1.7}
.suite-stats-module-card small{font-size:12px;font-weight:850;color:#64748b}
.suite-stats-module-slug{direction:ltr;unicode-bidi:plaintext;align-self:flex-start;display:inline-flex;border-radius:999px;background:#eef6ff;color:#075985;padding:4px 9px;font-size:11px;font-weight:950}
.suite-stats-kv{display:flex;flex-direction:column;gap:10px}
.suite-stats-kv div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:9px 12px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}
.suite-stats-kv span{color:#64748b;font-weight:850}
.suite-stats-kv strong{color:#0f172a;font-weight:950;text-align:left;direction:ltr;unicode-bidi:plaintext}
.suite-stats-empty{padding:16px;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;color:#64748b;font-weight:900;text-align:center}
@media (max-width:1180px){
  .suite-stats-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .suite-stats-cards,.suite-stats-cards-edu{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  .suite-stats-wrap{margin:16px auto;width:100%}
  .suite-stats-head{flex-direction:column;padding:20px;border-radius:24px}
  .suite-stats-head-meta{min-width:0;width:100%}
  .suite-stats-kpis,.suite-stats-cards,.suite-stats-cards-edu{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .suite-stats-grid-2{grid-template-columns:1fr}
  .suite-stats-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .suite-stats-head h2{font-size:24px}
  .suite-stats-head p{font-size:13px}
  .suite-stats-section{padding:14px;border-radius:22px}
  .suite-stats-section-head{padding:15px;border-radius:18px}
  .suite-stats-section-head h3{font-size:19px}
  .suite-stats-kpis,.suite-stats-cards,.suite-stats-cards-edu,.suite-stats-module-grid{grid-template-columns:1fr}
  .suite-stats-card{min-height:112px;padding:16px;border-radius:20px}
  .suite-stats-card strong{font-size:28px}
}

/* Personal user statistics dashboard */
.suite-user-stats-wrap{max-width:1180px}
.suite-user-stats-head .suite-stats-eyebrow{background:#ecfdf5;color:#047857}
.suite-user-stats-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}
.suite-user-stats-profile-card{
  margin:18px 0 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px;
  border:1px solid var(--suite-stats-border);
  border-radius:28px;
  background:linear-gradient(135deg,#fff,#f8fbff 58%,#ecfdf5);
  box-shadow:var(--suite-stats-shadow-soft);
}
.suite-user-stats-profile-main{display:flex;align-items:center;gap:14px;min-width:0}
.suite-user-stats-avatar-wrap{flex:0 0 auto;width:76px;height:76px;border-radius:24px;padding:4px;background:#fff;border:1px solid #dbe5f0;box-shadow:0 12px 24px rgba(15,23,42,.07);overflow:hidden}
.suite-user-stats-avatar-wrap img,.suite-user-stats-avatar{width:100%!important;height:100%!important;border-radius:20px!important;object-fit:cover!important;display:block!important}
.suite-user-stats-profile-title{min-width:0}
.suite-user-stats-profile-title h3{margin:0 0 8px;color:#0f172a;font-size:22px;font-weight:950;line-height:1.55;letter-spacing:-.02em}
.suite-user-stats-profile-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.suite-user-stats-profile-tags span,
.suite-stats-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:5px 11px;
  border-radius:999px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  color:#334155;
  font-size:12px;
  font-weight:950;
  line-height:1.5;
  white-space:nowrap;
}
.suite-stats-status-success,.suite-stats-enroll-approved{background:#dcfce7;border-color:#bbf7d0;color:#166534}
.suite-stats-status-warning,.suite-stats-enroll-pending{background:#fffbeb;border-color:#fde68a;color:#92400e}
.suite-stats-status-danger,.suite-stats-enroll-rejected{background:#fee2e2;border-color:#fecaca;color:#991b1b}
.suite-stats-status-info{background:#e0f2fe;border-color:#bae6fd;color:#075985}
.suite-stats-enroll-cancelled{background:#f1f5f9;border-color:#cbd5e1;color:#475569}
.suite-user-stats-profile-actions{flex:0 0 390px;max-width:100%;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.suite-user-stats-progress{height:13px;border-radius:999px;background:#e8eef6;border:1px solid #dbe5f0;overflow:hidden}
.suite-user-stats-progress span{display:block;width:var(--w,0%);height:100%;border-radius:999px;background:linear-gradient(90deg,#1d4ed8,#0f766e)}
.suite-user-stats-action-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.suite-stats-action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px 12px;
  border-radius:15px;
  border:0;
  background:linear-gradient(135deg,#1d4ed8,#0f766e);
  color:#fff!important;
  text-decoration:none!important;
  font-weight:950;
  font-size:13px;
  box-shadow:0 12px 24px rgba(15,118,110,.16);
  text-align:center;
}
.suite-stats-action-btn.secondary{background:#fff;color:#0f172a!important;border:1px solid #e2e8f0;box-shadow:0 10px 20px rgba(15,23,42,.05)}
.suite-user-stats-section-account .suite-stats-mini-metrics span{white-space:normal;text-align:center}
.suite-user-stats-list{display:flex;flex-direction:column;gap:9px;margin-top:14px}
.suite-user-stats-list-empty{margin-top:14px}
.suite-user-stats-list-item{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#f8fafc;
}
.suite-user-stats-list-item>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.suite-user-stats-list-item strong{min-width:0;color:#0f172a;font-size:13px;font-weight:950;line-height:1.65;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.suite-user-stats-list-item span{color:#64748b;font-size:11px;font-weight:850;line-height:1.6}
.suite-user-stats-list-item em{flex:0 0 auto;font-style:normal;border-radius:999px;background:#e0f2fe;color:#075985;padding:4px 9px;font-size:11px;font-weight:950;white-space:nowrap}
.suite-user-stats-list-item a{flex:0 0 auto;text-decoration:none!important;color:#1d4ed8;font-weight:950;font-size:12px;white-space:nowrap}
.suite-stats-user-separator{height:1px;background:#e2e8f0;margin:15px 0}
.suite-user-stats-courses-panel{margin-top:16px}
.suite-user-stats-table-wrap{width:100%;overflow:visible}
.suite-user-stats-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;border:1px solid #e2e8f0;border-radius:20px;overflow:hidden;background:#fff}
.suite-user-stats-table th,
.suite-user-stats-table td{padding:13px 12px;border-bottom:1px solid #edf2f7;text-align:right;vertical-align:middle;color:#0f172a;font-size:13px;font-weight:850;line-height:1.75;word-break:break-word;overflow-wrap:anywhere}
.suite-user-stats-table th{background:#f8fbff;color:#334155;font-size:12px;font-weight:950;white-space:nowrap}
.suite-user-stats-table tr:last-child td{border-bottom:0}
.suite-user-stats-table th:nth-child(1),.suite-user-stats-table td:nth-child(1){width:25%}
.suite-user-stats-table th:nth-child(2),.suite-user-stats-table td:nth-child(2){width:20%}
.suite-user-stats-table th:nth-child(3),.suite-user-stats-table td:nth-child(3){width:14%;text-align:center}
.suite-user-stats-table th:nth-child(4),.suite-user-stats-table td:nth-child(4){width:12%;text-align:center}
.suite-user-stats-table th:nth-child(5),.suite-user-stats-table td:nth-child(5){width:16%;text-align:center}
.suite-user-stats-table th:nth-child(6),.suite-user-stats-table td:nth-child(6){width:13%;text-align:center}
.suite-user-stats-kv strong{direction:rtl;unicode-bidi:plaintext;text-align:left}
@media (max-width:1180px){
  .suite-user-stats-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  .suite-user-stats-profile-card{flex-direction:column;align-items:stretch;border-radius:24px}
  .suite-user-stats-profile-actions{flex:0 1 auto;width:100%}
  .suite-user-stats-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .suite-user-stats-profile-main{align-items:flex-start}
  .suite-user-stats-avatar-wrap{width:66px;height:66px;border-radius:20px}
  .suite-user-stats-avatar-wrap img,.suite-user-stats-avatar{border-radius:16px!important}
  .suite-user-stats-profile-title h3{font-size:19px}
  .suite-user-stats-action-row{grid-template-columns:1fr;gap:8px}
  .suite-user-stats-kpis{grid-template-columns:1fr}
  .suite-user-stats-list-item{align-items:flex-start;flex-wrap:wrap}
  .suite-user-stats-list-item strong{white-space:normal}
  .suite-user-stats-table{border:0;background:transparent;border-radius:0}
  .suite-user-stats-table thead{display:none}
  .suite-user-stats-table tbody{display:grid;grid-template-columns:1fr;gap:12px}
  .suite-user-stats-table tr{display:block;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 10px 22px rgba(15,23,42,.04);padding:10px}
  .suite-user-stats-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%!important;padding:9px 8px;border-bottom:1px dashed #e2e8f0;text-align:left!important;font-size:12px}
  .suite-user-stats-table td:last-child{border-bottom:0}
  .suite-user-stats-table td:before{content:attr(data-label);flex:0 0 auto;color:#64748b;font-weight:950;text-align:right}
}
