.elementor-676 .elementor-element.elementor-element-c7623cb{--display:flex;}.elementor-676 .elementor-element.elementor-element-9e409e5{--display:flex;}/* Start custom CSS for html, class: .elementor-element-864bbb3 */:root {
  --prt-accent: #0284c7;
  --prt-accent-dark: #0369a1;
  --prt-success: #10b981;
  --prt-danger: #ef4444;
  --prt-warning: #f59e0b;
  --prt-text: #0f172a;
  --prt-muted: #475569;
}

.aria-portal-app {
  width: 100%;
  max-width: 1280px;
  margin: 30px auto 80px;
  padding: 0 16px;
  font-family: 'Vazirmatn', sans-serif;
  color: var(--prt-text);
  box-sizing: border-box;
  direction: rtl;
}

.aria-portal-app * { box-sizing: border-box; }

.portal-login-card {
  max-width: 460px;
  margin: 60px auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  padding: 40px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  text-align: center;
}

.login-logo-badge {
  display: inline-block;
  background: #e0f2fe;
  color: var(--prt-accent);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid #bae6fd;
  margin-bottom: 12px;
}

.login-brand-head h2 { font-size: 22px; font-weight: 900; color: var(--prt-accent-dark); margin: 0 0 8px; }
.login-brand-head p { font-size: 13px; color: var(--prt-muted); margin: 0 0 26px; }

.portal-login-form { display: flex; flex-direction: column; gap: 16px; text-align: right; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field label { font-size: 12px; font-weight: 700; color: var(--prt-muted); }
.login-field input {
  background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-family: inherit; outline: none;
}

.btn-portal-login {
  background: linear-gradient(135deg, #0284c7, #0369a1); color: #ffffff; border: none; padding: 13px 20px; border-radius: 14px; font-size: 14px; font-weight: 800; font-family: inherit; cursor: pointer;
}

.login-alert-box { font-size: 12.5px; font-weight: 700; padding: 10px; border-radius: 10px; margin-top: 10px; display: none; }
.login-alert-box.error { display: block; background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; }
.login-alert-box.success { display: block; background: #ecfdf5; color: #10b981; border: 1px solid #a7f3d0; }

.portal-dashboard-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 30px; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.dash-top-bar {
  display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f1f5f9; padding-bottom: 18px; margin-bottom: 22px;
}

.dash-user-badge { display: flex; align-items: center; gap: 12px; }
.user-avatar-dot { width: 14px; height: 14px; background: var(--prt-success); border-radius: 50%; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25); }
.user-sub { display: block; font-size: 11px; color: #64748b; }
.dash-user-badge strong { font-size: 15px; color: var(--prt-text); }

.dash-bar-actions { display: flex; align-items: center; gap: 12px; }
.factory-status-chip { background: #ecfdf5; color: var(--prt-success); border: 1px solid #a7f3d0; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 800; }
.btn-staff-logout { background: #fee2e2; color: #ef4444; border: 1px solid #fecaca; padding: 6px 14px; border-radius: 10px; font-size: 12px; font-weight: 800; font-family: inherit; cursor: pointer; }

/* تب‌های بالای پرتال */
.dash-pipeline-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px;
}

.pipe-tab-btn {
  background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 12px; padding: 9px 13px; font-size: 12px; font-weight: 800; color: #475569; font-family: inherit; cursor: pointer; transition: all 0.2s;
}

.pipe-tab-btn:hover { background: #f0f9ff; border-color: var(--prt-accent); }
.pipe-tab-btn.active { background: var(--prt-accent); border-color: var(--prt-accent); color: #ffffff; }

/* تب مرحله ۱۱ (آرشیو نهایی) */
.pipe-tab-btn.archive-tab { background: #f1f5f9; color: #0f172a; border-color: #94a3b8; }
.pipe-tab-btn.archive-tab.active { background: #0f172a; color: #ffffff; }

/* تب لغو شده‌ها */
.pipe-tab-btn.rejected-tab { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.pipe-tab-btn.rejected-tab.active { background: #b91c1c; color: #ffffff; }

.dash-current-stage-info {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border: 1px solid #bae6fd; border-radius: 16px; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}

.dash-current-stage-info h3 { margin: 0 0 4px; font-size: 18px; font-weight: 900; color: var(--prt-accent-dark); }
.dash-current-stage-info p { margin: 0; font-size: 13px; color: var(--prt-muted); }

.dash-refresh-btn {
  background: #ffffff; border: 1px solid #bae6fd; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--prt-accent); cursor: pointer;
}

.dash-orders-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 22px;
}

.order-kanban-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 22px; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04); display: flex; flex-direction: column; justify-content: space-between;
}

.card-top-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.code-chip { background: #f0f9ff; color: var(--prt-accent); border: 1px solid #bae6fd; font-weight: 900; font-size: 13px; padding: 4px 12px; border-radius: 8px; }
.card-date { font-size: 11px; color: #94a3b8; }

.card-customer-row strong { font-size: 15.5px; display: block; color: var(--prt-text); margin-bottom: 2px; }
.card-customer-row span { font-size: 12px; color: #64748b; }

.card-details-box {
  background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 10px; padding: 12px; font-size: 12px; color: #334155; max-height: 150px; overflow-y: auto; line-height: 1.7; white-space: pre-wrap; margin: 12px 0;
}

.card-last-note { font-size: 11.5px; color: #475569; background: #f1f5f9; border-right: 3px solid var(--prt-accent); padding: 6px 10px; border-radius: 4px; margin-bottom: 16px; }

.card-actions-form { border-top: 1px solid #f1f5f9; padding-top: 14px; }
.card-actions-form input {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 12px; font-size: 12px; font-family: inherit; margin-bottom: 10px; outline: none;
}

/* گروه دکمه‌های عملیات */
.action-buttons-group { display: flex; gap: 8px; }

.btn-confirm-approve {
  flex: 2; background: linear-gradient(135deg, #10b981, #059669); color: #ffffff; border: none; padding: 11px; border-radius: 10px; font-size: 12.5px; font-weight: 900; font-family: inherit; cursor: pointer;
}

.btn-step-rewind {
  flex: 1.2; background: #fffbeb; color: #b45309; border: 1px solid #fde68a; padding: 11px 8px; border-radius: 10px; font-size: 12px; font-weight: 800; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}

.btn-step-restore {
  width: 100%; background: linear-gradient(135deg, #0284c7, #0369a1); color: #ffffff; border: none; padding: 12px; border-radius: 10px; font-size: 13px; font-weight: 900; font-family: inherit; cursor: pointer;
}

.btn-reject-order {
  width: 100%; margin-top: 8px; background: #fef2f2; color: #b91c1c; border: 1px dashed #f87171; padding: 8px; border-radius: 10px; font-size: 12px; font-weight: 800; font-family: inherit; cursor: pointer;
}

.btn-reject-order:hover { background: #ef4444; color: #ffffff; }

.empty-orders-alert { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: #94a3b8; font-size: 14.5px; border: 2px dashed #e2e8f0; border-radius: 18px; }
</style>/* End custom CSS */