@font-face {
  font-family: 'IRANYekanX';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('../fonts/woff2/IRANYekanX-Thin.woff2') format('woff2'),
       url('../fonts/woff/IRANYekanX-Thin.woff') format('woff');
}

@font-face {
  font-family: 'IRANYekanX';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/woff2/IRANYekanX-UltraLight.woff2') format('woff2'),
       url('../fonts/woff/IRANYekanX-UltraLight.woff') format('woff');
}

@font-face {
  font-family: 'IRANYekanX';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/woff2/IRANYekanX-Light.woff2') format('woff2'),
       url('../fonts/woff/IRANYekanX-Light.woff') format('woff');
}

@font-face {
  font-family: 'IRANYekanX';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/woff2/IRANYekanX-Regular.woff2') format('woff2'),
       url('../fonts/woff/IRANYekanX-Regular.woff') format('woff');
}

@font-face {
  font-family: 'IRANYekanX';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/woff2/IRANYekanX-Medium.woff2') format('woff2'),
       url('../fonts/woff/IRANYekanX-Medium.woff') format('woff');
}

@font-face {
  font-family: 'IRANYekanX';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/woff2/IRANYekanX-DemiBold.woff2') format('woff2'),
       url('../fonts/woff/IRANYekanX-DemiBold.woff') format('woff');
}

@font-face {
  font-family: 'IRANYekanX';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/woff2/IRANYekanX-Bold.woff2') format('woff2'),
       url('../fonts/woff/IRANYekanX-Bold.woff') format('woff');
}

@font-face {
  font-family: 'IRANYekanX';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/woff2/IRANYekanX-ExtraBold.woff2') format('woff2'),
       url('../fonts/woff/IRANYekanX-ExtraBold.woff') format('woff');
}

@font-face {
  font-family: 'IRANYekanX';
  font-style: normal;
  font-weight: 850;
  font-display: swap;
  src: url('../fonts/woff2/IRANYekanX-Heavy.woff2') format('woff2'),
       url('../fonts/woff/IRANYekanX-Heavy.woff') format('woff');
}

@font-face {
  font-family: 'IRANYekanX';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/woff2/IRANYekanX-Black.woff2') format('woff2'),
       url('../fonts/woff/IRANYekanX-Black.woff') format('woff');
}

@font-face {
  font-family: 'IRANYekanX';
  font-style: normal;
  font-weight: 950;
  font-display: swap;
  src: url('../fonts/woff2/IRANYekanX-ExtraBlack.woff2') format('woff2'),
       url('../fonts/woff/IRANYekanX-ExtraBlack.woff') format('woff');
}

:root {
  --bs-font-sans-serif: 'IRANYekanX', Tahoma, Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
}

html {
  font-size: 14px;
  direction: rtl;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body,
input,
button,
select,
textarea,
.card,
.navbar,
.breadcrumb,
.btn,
.badge,
.form-control,
.table,
.modal,
.dropdown-menu,
.list-group,
.nav-link,
h1, h2, h3, h4, h5, h6,
p, span, small, strong, label, dt, dd {
  font-family: 'IRANYekanX', Tahoma, Arial, sans-serif !important;
  direction: rtl;
}

.fas,
.far,
.fab,
.fa,
.fa-solid,
.fa-regular,
.fa-brands,
.fa-classic {
  font-family: var(--fa-family, "Font Awesome 7 Free") !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  text-align: right;
}

/* ── Flow panel ── */
.flow-card {
  overflow: hidden;
  border-radius: 14px !important;
}

.flow-card-header {
  background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%);
  color: #fff;
  padding: 0.85rem 1.15rem;
}

.flow-card-badge {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}

.flow-card-badge-sep {
  opacity: 0.5;
  margin: 0 0.2rem;
}

.flow-panel {
  background: #f4f6f9;
}

/* Flow map visualization */
.flow-map {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.flow-map-item {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.flow-map-item:hover {
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
}

.flow-map-item--start {
  border-color: #93c5fd;
  border-right: 3px solid #1a56db;
}

.flow-map-item--branch {
  border-color: #c7d2fe;
  border-right: 3px solid #6366f1;
}

.flow-map-item--orphan {
  border-color: #fde68a;
  border-right: 3px solid #f59e0b;
  opacity: 0.92;
}

.flow-map-node {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
}

.flow-map-node-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  margin-top: 0.1rem;
}

.flow-map-item--start .flow-map-node-icon {
  background: #1a56db;
  color: #fff;
}

.flow-map-item--branch .flow-map-node-icon {
  background: #6366f1;
  color: #fff;
}

.flow-map-node-body {
  flex: 1;
  min-width: 0;
}

.flow-map-node-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.flow-map-branches {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.flow-map-branch {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
}

.flow-map-branch--default {
  background: #fafafa;
  border-style: dashed;
  border-color: #d1d5db;
}

.flow-map-branch-if {
  font-size: 0.65rem;
  font-weight: 600;
  color: #6366f1;
  background: #eef2ff;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.35rem;
}

.flow-map-branch--default .flow-map-branch-if {
  color: #6b7280;
  background: #f3f4f6;
}

.flow-map-branch-condition {
  color: #475569;
  line-height: 1.4;
}

.flow-map-branch-arrow {
  color: #94a3b8;
  font-size: 0.6rem;
}

.flow-map-branch-target {
  font-weight: 600;
  color: #3730a3;
  white-space: nowrap;
}

.flow-map-branch--default .flow-map-branch-target {
  color: #6b7280;
}

.flow-map-direct {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #6366f1;
  padding: 0.25rem 0;
}

.flow-map-end {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #9ca3af;
  padding: 0.25rem 0;
}

.flow-map-edit {
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}

.flow-map-edit-toggle {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.45rem 0.85rem;
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.flow-map-edit-toggle:hover {
  color: #6366f1;
  background: #f8fafc;
}

.flow-map-edit-chevron {
  margin-right: auto;
  font-size: 0.55rem;
  transition: transform 0.2s;
}

.flow-map-edit-toggle--open .flow-map-edit-chevron {
  transform: rotate(180deg);
}

.flow-map-edit-panel {
  display: none;
  padding: 0 0.85rem 0.75rem;
}

.flow-map-edit-panel--open {
  display: block;
}

.flow-orphan-notice {
  margin: 0 1rem 1rem;
  padding: 0.55rem 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.flow-orphan-notice i {
  flex-shrink: 0;
}

/* Empty state */
.flow-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.flow-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #e8edf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #6b7a99;
}

.flow-empty-title {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}

.flow-empty-desc {
  font-size: 0.82rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.6;
}

/* Path preview bar */
.flow-path-bar {
  background: #fff;
  border-bottom: 1px solid #e5e9f0;
  padding: 0.75rem 1rem;
}

.flow-path-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  margin-bottom: 0.45rem;
}

.flow-path-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.flow-path-chip {
  font-size: 0.78rem;
  background: #eef2ff;
  color: #3730a3;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  font-weight: 500;
  white-space: nowrap;
}

.flow-path-chip--start {
  background: #fef3c7;
  color: #92400e;
}

.flow-path-chip--end {
  background: #f3f4f6;
  color: #6b7280;
}

.flow-path-chip--warn {
  background: #fef9c3;
  color: #a16207;
}

.flow-path-sep {
  font-size: 0.55rem;
  color: #cbd5e1;
}

/* Timeline */
.flow-timeline {
  padding: 1rem 1rem 1.25rem;
}

.flow-timeline-item {
  display: flex;
  gap: 0.75rem;
  position: relative;
}

.flow-timeline-item:not(:last-child) {
  padding-bottom: 0.5rem;
}

.flow-timeline-item:not(:last-child) .flow-timeline-rail::after {
  content: '';
  position: absolute;
  top: 22px;
  right: 50%;
  transform: translateX(50%);
  width: 2px;
  height: calc(100% + 0.5rem);
  background: linear-gradient(180deg, #93c5fd 0%, #dbeafe 100%);
  border-radius: 2px;
}

.flow-timeline-item--orphan .flow-timeline-rail::after {
  background: linear-gradient(180deg, #fcd34d 0%, #fef3c7 100%);
}

.flow-timeline-rail {
  flex-shrink: 0;
  width: 22px;
  position: relative;
}

.flow-timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #93c5fd;
  position: relative;
  z-index: 1;
  margin-top: 0.65rem;
}

.flow-timeline-dot--start {
  background: #1a56db;
  border-color: #1a56db;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.45rem;
  padding-right: 1px;
}

.flow-timeline-item--orphan .flow-timeline-dot {
  border-color: #fbbf24;
  background: #fffbeb;
}

.flow-timeline-content {
  flex: 1;
  min-width: 0;
  padding-bottom: 0.75rem;
}

/* Step card */
.flow-step-card {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s;
}

.flow-step-card:hover {
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.flow-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.flow-step-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-step-badges {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.flow-tag {
  font-size: 0.65rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}

.flow-tag--start {
  background: #fef3c7;
  color: #92400e;
}

.flow-tag--orphan {
  background: #fef9c3;
  color: #a16207;
}

.flow-tag--fields {
  background: #f1f5f9;
  color: #64748b;
}

.flow-step-target {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: #6366f1;
}

.flow-step-target i {
  font-size: 0.65rem;
  opacity: 0.7;
}

/* Link row */
.flow-link-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
  padding-right: 0.25rem;
}

.flow-link-label {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  margin: 0;
}

.flow-link-input-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}

.flow-link-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.3rem 1.75rem 0.3rem 0.65rem;
  font-size: 0.78rem;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.flow-link-select:hover {
  border-color: #93c5fd;
}

.flow-link-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.flow-link-select.is-invalid {
  border-color: #ef4444;
}

.flow-link-input-wrap--saving .flow-link-select {
  opacity: 0.55;
  pointer-events: none;
}

.flow-link-chevron {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: #94a3b8;
  pointer-events: none;
}

.flow-save-hint {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}

.flow-save-hint--show {
  opacity: 1;
  transform: scale(1);
}

/* Conditional routes */
.flow-conditions {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.flow-condition-item {
  font-size: 0.72rem;
  color: #6366f1;
  background: #eef2ff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  line-height: 1.5;
}

.flow-condition-item i {
  margin-top: 0.15rem;
  flex-shrink: 0;
  font-size: 0.65rem;
}

.flow-step-target--end {
  color: #6b7280;
}

.flow-link-row--default {
  margin-top: 0.25rem;
}

.btn-manage-routes {
  font-size: 0.78rem;
  border-color: #6366f1;
  color: #6366f1;
}

.btn-manage-routes:hover {
  background: #6366f1;
  color: #fff;
}

.flow-route-count {
  background: #6366f1;
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  margin-right: 0.25rem;
}

.flow-modal-header {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
}

.route-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
}

.route-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.route-row-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6366f1;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-row-delete {
  padding: 0;
  font-size: 0.8rem;
}

.route-empty-msg {
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  margin: 0;
}

.flow-tag--service {
  background: #e0f2fe;
  color: #0369a1;
}

.flow-tag--service-start {
  background: #dcfce7;
  color: #166534;
}

.flow-tag--service-end {
  background: #fce7f3;
  color: #9d174d;
}

.flow-tag--reject {
  background: #fee2e2;
  color: #b91c1c;
}

.flow-tag--cancel {
  background: #fef3c7;
  color: #b45309;
}

.step-flag-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.step-flag-badges .badge {
  font-size: 0.68rem;
  font-weight: 500;
}

.badge-step-start,
.step-flag-badges .badge-step-start {
  background: #dbeafe;
  color: #1d4ed8 !important;
}

.step-flag-badges .badge-step-reject,
.badge-step-reject {
  background: #fee2e2;
  color: #b91c1c !important;
}

.step-flag-badges .badge-step-cancel,
.badge-step-cancel {
  background: #fef3c7;
  color: #b45309 !important;
}

.flow-map-services {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.flow-map-service-item {
  font-size: 0.72rem;
  color: #0369a1;
  background: #f0f9ff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  line-height: 1.45;
  word-break: break-all;
}

.flow-map-service-item i {
  margin-top: 0.15rem;
  flex-shrink: 0;
  font-size: 0.65rem;
}

.flow-service-detail {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.flow-service-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  line-height: 1.45;
}

.flow-service-detail-item i {
  margin-top: 0.15rem;
  flex-shrink: 0;
  font-size: 0.65rem;
}

.btn-manage-services {
  font-size: 0.78rem;
}

.service-modal-header {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
}

.service-tabs .nav-link {
  font-size: 0.85rem;
  color: #64748b;
}

.service-tabs .nav-link.active {
  color: #0284c7;
  font-weight: 600;
}

.service-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
}

.service-card {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.service-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card-order {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0ea5e9;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-card-delete {
  padding: 0;
}

.service-input-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
}

.service-input-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.service-input-row-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0ea5e9;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-input-row-delete {
  padding: 0;
  font-size: 0.8rem;
}

.service-empty-msg {
  text-align: center;
  padding: 0.75rem;
  background: #fff;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

/* ── Confirm dialog ── */
.flowship-confirm-modal .modal-content {
  border-radius: 1.25rem;
  overflow: hidden;
}

.flowship-confirm-body {
  padding-top: 2rem !important;
}

.flowship-confirm-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.flowship-confirm-icon-wrap--primary {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #2563eb;
}

.flowship-confirm-icon-wrap--danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
  color: #dc2626;
}

.flowship-confirm-icon-wrap--warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  color: #d97706;
}

.flowship-confirm-icon-wrap--info {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  color: #0284c7;
}

.flowship-confirm-title {
  font-weight: 700;
  color: #0f172a;
}

.flowship-confirm-message {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 28rem;
  margin-inline: auto;
}

.flowship-confirm-footer {
  background: #f8fafc;
  padding-top: 1rem !important;
}

.flowship-confirm-footer .btn-light {
  border: 1px solid #e2e8f0;
  color: #475569;
}

.flowship-confirm-footer .btn-light:hover {
  background: #fff;
  border-color: #cbd5e1;
}

.flowship-toast-container {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.flowship-toast-container .toast {
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  border-radius: 0.85rem;
}

.flowship-toast-container .toast-body {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Approval stepper (cpanel) ── */
.fs-approval-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fs-approval-step {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.75rem;
  min-height: 4.375rem;
}

.fs-approval-step:last-child {
  min-height: auto;
}

.fs-approval-step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.fs-approval-step-rail::after {
  content: "";
  flex: 1;
  width: 2px;
  margin-top: 0.25rem;
  background: #e2e8f0;
}

.fs-approval-step:last-child .fs-approval-step-rail::after {
  display: none;
}

.fs-approval-step-marker {
  width: 16px;
  height: 16px;
  border-radius: 8px;
  border: 2px solid #cbd5e1;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  color: #fff;
  flex-shrink: 0;
}

.fs-approval-step.is-done .fs-approval-step-marker {
  border-color: #10b981;
  background: #10b981;
}

.fs-approval-step.is-current .fs-approval-step-marker {
  border-color: #2563eb;
  background: #fff;
  box-shadow: inset 0 0 0 3px #2563eb;
}

.fs-approval-step.is-rejected .fs-approval-step-marker {
  border-color: #ef4444;
  background: #ef4444;
}

.fs-approval-step.is-cancelled .fs-approval-step-marker {
  border-color: #94a3b8;
  background: #94a3b8;
}

.fs-approval-step-body {
  padding-top: 0;
  text-align: right;
}

.fs-approval-step-body strong {
  display: block;
  font-size: 0.8125rem;
  color: #0f172a;
  margin-bottom: 0.125rem;
}

.fs-approval-step-body span {
  display: block;
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.5;
}

.fs-approval-step-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: #94a3b8;
  line-height: 1.5;
}

.fs-approval-step.is-current .fs-approval-step-body strong {
  color: #2563eb;
}

.fs-approval-step.is-rejected .fs-approval-step-body strong {
  color: #ef4444;
}

.jdp-container,
.jdp-container .jdp-day,
.jdp-container .jdp-month,
.jdp-container .jdp-year,
.jdp-container .jdp-btn-today,
.jdp-container .jdp-btn-empty,
.jdp-container .jdp-btn-close {
  font-family: 'IRANYekanX', Tahoma, Arial, sans-serif !important;
}

.jdp-container {
  z-index: 2000 !important;
}

.jdp-overlay {
  z-index: 1999 !important;
}

.field-required-mark {
  color: #dc2626;
  font-weight: 700;
  margin-inline-start: 0.15rem;
}

.flow-help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-inline-start: 0.35rem;
  vertical-align: -0.1em;
  color: #2563eb;
  opacity: 0.85;
  text-decoration: none !important;
  line-height: 1;
  border-radius: 999px;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.flow-help-tip:hover,
.flow-help-tip:focus-visible {
  opacity: 1;
  background: #eff6ff;
  transform: scale(1.08);
  outline: none;
}

.flow-help-tip i {
  font-size: 0.85rem;
}

