/* فونت وزیرمتن — محلی، بدون وابستگی به اینترنت */
@font-face{font-family:"Vazirmatn";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/Vazirmatn-400.woff2") format("woff2")}
@font-face{font-family:"Vazirmatn";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/Vazirmatn-500.woff2") format("woff2")}
@font-face{font-family:"Vazirmatn";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/Vazirmatn-700.woff2") format("woff2")}

/* استایل‌های سفارشی — مکمل Tailwind */
:root { color-scheme: light; }
html, body { height: 100%; }
body { font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif; }

/* سایدبار موبایل با translate به بیرون از صفحه منتقل می‌شود؛ در حالت RTL
   این کار باعث اسکرول افقی ناخواسته می‌شود. clip (برخلاف hidden) اسکرول‌کانتینر
   نمی‌سازد، بنابراین position:sticky سایدبار در دسکتاپ سالم می‌ماند. */
html { overflow-x: clip; }
body { overflow-x: clip; }

/* اعداد و زمان‌هایی که باید چپ‌به‌راست بمانند */
.ltr-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* اسکرول‌بار نازک */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* انیمیشن‌ها */
@keyframes mcs-slide-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes mcs-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes mcs-pop-in   { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
.mcs-slide-in { animation: mcs-slide-in .25s ease-out both; }
.mcs-fade-in  { animation: mcs-fade-in .18s ease-out both; }
.mcs-pop-in   { animation: mcs-pop-in .2s cubic-bezier(.2,.8,.3,1) both; }

/* حذف فلش‌های input عددی */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* جدول‌ها */
.mcs-table thead th { position: sticky; top: 0; z-index: 1; }
.mcs-table tbody tr:hover { background-color: #f8fafc; }

/* فرم‌ها (سازگار با plugin forms) */
.mcs-field:focus { outline: none; box-shadow: 0 0 0 3px rgb(13 148 136 / .15); border-color: #0d9488; }

/* اسکرول افقی نرم برای chipها */
.mcs-scroll-x { overflow-x: auto; scrollbar-width: thin; }
.mcs-scroll-x::-webkit-scrollbar { height: 6px; }

/* چاپ */
@media print {
  aside, header, .no-print, .mcs-toast-wrap { display: none !important; }
  main { padding: 0 !important; }
  body { background: #fff !important; }
  .shadow-card, .shadow-pop { box-shadow: none !important; }
  table { page-break-inside: auto; }
  tr { page-break-inside: avoid; }
}
