/* ==============================================
   انتخاب‌گر تاریخ شمسی (برگرفته از پنل آشپزخانه)
   ============================================== */
.jalali-input { cursor: pointer; background-image: none; }
.jalali-popup {
  position: absolute; z-index: 500; background: #fff; border: 1px solid #ddd; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 14px; width: 280px; max-width: calc(100vw - 24px);
  font-family: 'Vazirmatn', sans-serif;
}
.jalali-popup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.jalali-popup-head .jp-title { font-size: 13.5px; font-weight: 700; }
.jalali-popup-head button {
  width: 28px; height: 28px; border: none; border-radius: 8px; background: #eef2f6; color: #222;
  font-size: 14px; cursor: pointer; font-family: inherit;
}
.jalali-popup-head button:hover { background: #dde5ec; }
.jalali-weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 4px; }
.jalali-weekdays span { text-align: center; font-size: 10.5px; color: #888; font-weight: 700; padding: 4px 0; }
.jalali-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.jalali-days button {
  aspect-ratio: 1; border: none; border-radius: 8px; background: transparent; color: #222;
  font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.jalali-days button:hover { background: #eef2f6; }
.jalali-days button.jp-today { border: 1.5px solid #1976d2; }
.jalali-days button.jp-selected { background: #1976d2; color: #fff; font-weight: 700; }
.jalali-days button:disabled { visibility: hidden; cursor: default; }
.jalali-popup-foot { display: flex; justify-content: space-between; margin-top: 10px; gap: 8px; }
.jalali-popup-foot button {
  flex: 1; padding: 7px; border: none; border-radius: 9px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  background: #eef2f6; color: #222;
}
.jalali-popup-foot button.jp-today-btn { background: #e3f2fd; color: #1976d2; }
.jalali-popup-foot button:hover { opacity: .85; }
