/**
 * تقویم شمسی پاد + ورودی تاریخ (P8)
 */
.pad-jdate-wrap {
  display: flex;
  width: 100%;
  max-width: 100%;
}

.pad-jdate-vis {
  font-size: 1.15rem !important;
  min-height: 48px;
  letter-spacing: 0.02em;
}

.pad-jdate-btn {
  min-width: 48px;
  min-height: 48px;
  font-size: 1.2rem;
}

.pad-jcal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 1040;
}

.pad-jcal-popup {
  position: fixed;
  z-index: 1050;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 92vw);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  padding: 0.85rem;
  font-family: Vazirmatn, Tahoma, sans-serif;
}

.pad-jcal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.pad-jcal-title {
  font-weight: 700;
  font-size: 1.15rem;
}

.pad-jcal-nav {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 1.4rem;
  cursor: pointer;
}

.pad-jcal-weekdays,
.pad-jcal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  text-align: center;
}

.pad-jcal-weekdays span {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 700;
  padding: 0.25rem 0;
}

.pad-jcal-day {
  min-height: 42px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 1.05rem;
  cursor: pointer;
}

.pad-jcal-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.pad-jcal-day.is-today {
  outline: 2px solid var(--pad-brand-primary, #0B5FFF);
}

.pad-jcal-day.is-selected {
  background: var(--pad-brand-primary, #0B5FFF);
  color: #fff;
  font-weight: 700;
}

.pad-jcal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.pad-jcal-actions button {
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-weight: 700;
  cursor: pointer;
}

.pad-jcal-today {
  background: #ecfeff !important;
  border-color: #67e8f9 !important;
}
