/* =========================================================
   FACTOFFERS - DIRECT ORDER POLISH V3
   فقط صفحه سفارش از دایرکت
   ========================================================= */

/* فونت فقط همین صفحه */
#page-direct-order,
#page-direct-order button,
#page-direct-order input,
#page-direct-order textarea,
#page-direct-order select{
  font-family:'Vazirmatn',Tahoma,sans-serif !important;
}


/* =========================================================
   DARK - فقط خوانایی هدر و پیام‌ها
   ========================================================= */

#page-direct-order .fo-do2-head .pg-title,
#page-direct-order .fo-do2-head .pg-title *{
  color:#f8fafc !important;
  opacity:1 !important;
}

#page-direct-order .fo-do2-head .pg-sub{
  color:#b8c2dc !important;
  opacity:1 !important;
}


/* پیش‌نمایش پیام مشتری = حباب، نه مستطیل بزرگ */
#page-direct-order #do-user-list .fo-do2-txt{
  grid-column:1 / -1 !important;

  width:fit-content !important;
  max-width:82% !important;
  min-width:58px !important;

  flex:0 1 auto !important;

  margin:1px 0 9px auto !important;
  padding:7px 12px !important;

  background:rgba(35,44,70,.92) !important;

  color:#dce5f7 !important;

  border:1px solid rgba(148,163,184,.18) !important;
  border-inline-start:0 !important;
  border-inline-end:3px solid #7c5cff !important;

  border-radius:14px 14px 5px 14px !important;

  font-size:11.5px !important;
  font-weight:700 !important;
  line-height:1.8 !important;

  text-align:right !important;
  white-space:normal !important;

  box-shadow:none !important;
}


/* =========================================================
   LIGHT THEME
   ========================================================= */

html body.light #page-direct-order,
html body.fo-light #page-direct-order{
  background:
    linear-gradient(180deg,#f5f8fc 0%,#edf3f9 100%) !important;

  color:#172033 !important;
}


/* هدر اصلی */
html body.light #page-direct-order .fo-do2-head,
html body.fo-light #page-direct-order .fo-do2-head{
  background:
    linear-gradient(135deg,#ffffff 0%,#f8f5ff 52%,#f2f7ff 100%) !important;

  border:1px solid #d8dfea !important;

  box-shadow:
    0 5px 18px rgba(15,23,42,.055),
    inset 0 1px 0 #fff !important;
}


/* عنوان هدر */
html body.light #page-direct-order .fo-do2-head .pg-title,
html body.fo-light #page-direct-order .fo-do2-head .pg-title{
  color:#172033 !important;
  opacity:1 !important;
  text-shadow:none !important;
}


/* توضیح هدر */
html body.light #page-direct-order .fo-do2-head .pg-sub,
html body.fo-light #page-direct-order .fo-do2-head .pg-sub{
  color:#64748b !important;
  opacity:1 !important;
  text-shadow:none !important;
}


/* آیکن هدر */
html body.light #page-direct-order .fo-do2-head .pg-icon,
html body.fo-light #page-direct-order .fo-do2-head .pg-icon{
  filter:none !important;
  opacity:1 !important;
}


/* کارت‌های اصلی */
html body.light #page-direct-order .fo-do2-card,
html body.fo-light #page-direct-order .fo-do2-card{
  background:#ffffff !important;

  border:1px solid #dce3ec !important;

  box-shadow:
    0 5px 18px rgba(15,23,42,.045) !important;
}


/* تیتر کارت‌ها */
html body.light #page-direct-order .fo-do2-title,
html body.fo-light #page-direct-order .fo-do2-title{
  color:#172033 !important;
  opacity:1 !important;
}


/* =========================================================
   QUICK STATS
   ========================================================= */

html body.light #page-direct-order .fo-sq,
html body.fo-light #page-direct-order .fo-sq{
  background:#f8fafc !important;

  border:1px solid #e0e6ef !important;

  box-shadow:none !important;
}

html body.light #page-direct-order .fo-sq span,
html body.fo-light #page-direct-order .fo-sq span{
  color:#64748b !important;
  opacity:1 !important;
}


/* حالت انتخاب‌شده دیگر صورتی پررنگ نباشد */
html body.light #page-direct-order .fo-sq.on,
html body.fo-light #page-direct-order .fo-sq.on{
  background:
    linear-gradient(145deg,#fff7fb,#f5f3ff) !important;

  border:1px solid #e7b2d8 !important;

  box-shadow:
    0 5px 16px rgba(219,39,119,.10) !important;
}


/* رنگ اعداد */
html body.light #page-direct-order .fo-sq.p b,
html body.fo-light #page-direct-order .fo-sq.p b{
  color:#db2777 !important;
}

html body.light #page-direct-order .fo-sq.g b,
html body.fo-light #page-direct-order .fo-sq.g b{
  color:#059669 !important;
}

html body.light #page-direct-order .fo-sq.b b,
html body.fo-light #page-direct-order .fo-sq.b b{
  color:#0284c7 !important;
}

html body.light #page-direct-order .fo-sq.n b,
html body.fo-light #page-direct-order .fo-sq.n b{
  color:#7c3aed !important;
}


/* =========================================================
   CUSTOMER CARDS
   ========================================================= */

html body.light #page-direct-order #do-user-list .fo-do2-user,
html body.fo-light #page-direct-order #do-user-list .fo-do2-user{
  background:#ffffff !important;

  border:1px solid #e0e5ed !important;

  box-shadow:
    0 3px 12px rgba(15,23,42,.04) !important;

  opacity:1 !important;
}


/* کارت بررسی‌شده */
html body.light #page-direct-order #do-user-list .fo-do2-user.done,
html body.fo-light #page-direct-order #do-user-list .fo-do2-user.done{
  background:#f5fcf9 !important;

  border-color:#b5e8d4 !important;

  opacity:1 !important;
}


/* یوزرنیم */
html body.light #page-direct-order #do-user-list .fo-do2-user b,
html body.fo-light #page-direct-order #do-user-list .fo-do2-user b{
  color:#172033 !important;
  opacity:1 !important;
}


/* زمان */
html body.light #page-direct-order #do-user-list .fo-do2-time,
html body.fo-light #page-direct-order #do-user-list .fo-do2-time{
  background:#f8fafc !important;

  border:1px solid #e2e8f0 !important;

  color:#7c8799 !important;
}


/* موبایل */
html body.light #page-direct-order #do-user-list .fo-do2-mob,
html body.fo-light #page-direct-order #do-user-list .fo-do2-mob{
  background:#ecfdf5 !important;

  color:#047857 !important;

  border:1px solid #a7f3d0 !important;
}


/* checkbox */
html body.light #page-direct-order #do-user-list .fo-do2-ck span,
html body.fo-light #page-direct-order #do-user-list .fo-do2-ck span{
  background:#ffffff !important;

  border:2px solid #d8def0 !important;

  box-shadow:none !important;
}


/* =========================================================
   MESSAGE BUBBLE - LIGHT
   ========================================================= */

html body.light #page-direct-order #do-user-list .fo-do2-txt,
html body.fo-light #page-direct-order #do-user-list .fo-do2-txt{
  background:#f3f5f8 !important;

  color:#475569 !important;

  border:1px solid #dce2ea !important;
  border-inline-start:0 !important;
  border-inline-end:3px solid #8b5cf6 !important;

  box-shadow:none !important;
}


/* پیام‌های صرفاً 8/9 که تکراری هستند */
#page-direct-order #do-user-list .fo-do2-txt.fo-do2-trigger-only{
  display:none !important;
}


/* =========================================================
   BADGES
   ========================================================= */

html body.light #page-direct-order #do-user-list .fo-do2-badge,
html body.fo-light #page-direct-order #do-user-list .fo-do2-badge{
  background:#f3edff !important;

  border:1px solid #d8c4ff !important;

  color:#6d28d9 !important;

  box-shadow:none !important;
}


/* کد استوری */
html body.light #page-direct-order #do-user-list .fo-story-code-badge,
html body.fo-light #page-direct-order #do-user-list .fo-story-code-badge{
  background:#f3edff !important;

  border:1px solid #d8c4ff !important;

  color:#6d28d9 !important;

  box-shadow:none !important;
}


/* =========================================================
   CUSTOMER ACTION BUTTONS
   ========================================================= */

/* پروفایل */
html body.light #page-direct-order .fo-do-row-actions button:first-child,
html body.fo-light #page-direct-order .fo-do-row-actions button:first-child{
  background:#eff6ff !important;

  color:#2563eb !important;

  border:1px solid #bfdbfe !important;

  box-shadow:none !important;
}


/* انتخاب */
html body.light #page-direct-order .fo-do2-smallbtn,
html body.fo-light #page-direct-order .fo-do2-smallbtn{
  color:#ffffff !important;

  opacity:1 !important;
}


/* =========================================================
   MESSAGES / LOADING
   ========================================================= */

html body.light #page-direct-order .fo-do2-msg.info,
html body.fo-light #page-direct-order .fo-do2-msg.info{
  background:#eff6ff !important;

  border:1px solid #bfdbfe !important;

  color:#2563eb !important;
}

html body.light #page-direct-order .fo-do2-msg.ok,
html body.fo-light #page-direct-order .fo-do2-msg.ok{
  background:#ecfdf5 !important;

  border:1px solid #a7f3d0 !important;

  color:#047857 !important;
}

html body.light #page-direct-order .fo-do2-msg.err,
html body.fo-light #page-direct-order .fo-do2-msg.err{
  background:#fff1f2 !important;

  border:1px solid #fecdd3 !important;

  color:#be123c !important;
}


/* =========================================================
   IMPORTANT:
   فرم سفارش عمداً در این فایل دستکاری نشده است
   ========================================================= */
