/* ===== فونت Vazirmatn (محلی) ===== */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ===== تنظیمات سراسری ===== */
html { scroll-behavior: smooth; }

body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-feature-settings: "ss01";
}

/* گرد کردن کمی سیاست‌های عددی در چارت‌ها */
.chart-canvas { display: block; }

/* فیلد عددی با گروه‌بندی هزارگان */
input.money-input { direction: ltr; text-align: left; font-variant-numeric: tabular-nums; }

/* ===== تقویم جلالی ===== */
.jcalendar {
  position: absolute;
  z-index: 60;
  margin-top: 0.5rem;
  width: 17rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 16px 40px -12px rgb(0 0 0 / 0.18);
  padding: 0.65rem;
  user-select: none;
}
.jcalendar.hidden { display: none; }
.jcalendar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.4rem;
}
.jcalendar-header .jc-month, .jcalendar-header .jc-year {
  border: 1px solid #e2e8f0; border-radius: 0.6rem; padding: 0.2rem 0.45rem;
  font-weight: 600; background: #f8fafc;
}
.jcalendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  text-align: center;
}
.jcalendar-grid .jc-h {
  font-size: 0.7rem; color: #94a3b8; padding: 0.25rem 0;
}
.jc-day {
  padding: 0.35rem 0; border-radius: 0.55rem; font-size: 0.82rem; cursor: pointer;
}
.jc-day:hover { background: #eef2ff; }
.jc-day.is-empty { cursor: default; }
.jc-day.is-muted { color: #cbd5e1; }
.jc-day.is-today { background: #e0e7ff; font-weight: 700; }
.jc-day.is-selected { background: #4f46e5; color: #fff; font-weight: 700; }

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

/* ===== رسانه چاپ ===== */
@media print {
  .no-print { display: none !important; }
}
