/* One calendar shared by the student portal and WordPress administration. */
.ptp-jalali-pop {
  position: fixed;
  z-index: 100000;
  box-sizing: border-box;
  width: 348px;
  max-width: calc(100vw - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid #d5e1ed;
  border-radius: 20px;
  background: #fff;
  color: #173968;
  box-shadow: 0 18px 60px -20px #17396855;
  direction: rtl;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
  animation: ptp-calendar-enter .16s ease-out;
}
.ptp-jalali-pop * { box-sizing: border-box; }
.ptp-jalali-pop button { display: inline-flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid transparent; border-radius: 10px; background: #f2f6fc; color: #214293; font: inherit; font-size: 13px; line-height: 1.6; cursor: pointer; }
.ptp-jalali-pop button:hover { background: #e9effc; color: #173968; }
.ptp-jalali-pop button:disabled { opacity: .4; cursor: not-allowed; }
.ptp-jalali-pop :is(button,input):focus-visible { outline: 2px solid #638bd4; outline-offset: 2px; }
.ptp-jalali-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ptp-jalali-head strong { font-size: 15px; font-weight: 700; }
.ptp-jalali-head button { width: 40px; height: 40px; font-size: 24px; }
.ptp-jalali-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.ptp-jalali-grid .weekday { padding: 4px 0 8px; color: #637791; text-align: center; font-size: 12px; }
.ptp-jalali-grid .day { padding: 0; width: 100%; min-height: 36px; aspect-ratio: 1; border: 1px solid transparent; background: transparent; color: #173968; }
.ptp-jalali-grid .day.today { border-color: #b5c7e7; }
.ptp-jalali-grid .day.selected { background: #214293; border-color: #214293; color: #fff; font-weight: 700; }
.ptp-jalali-grid .day.selected:hover { background: #193576; color: #fff; }
.ptp-jalali-time { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-top: 14px; border-top: 1px solid #e1e8f2; margin-top: 14px; }
.ptp-jalali-time label { display: grid; gap: 6px; margin: 0; font-size: 12px; color: #536a84; }
.ptp-jalali-time input { width: 100%; min-width: 0; min-height: 42px; margin: 0; padding: 8px 10px; border: 1px solid #cbd9e9; border-radius: 10px; background: #fff; color: #173968; font: inherit; font-size: 16px; text-align: center; }
.ptp-jalali-time input[aria-invalid=true] { border-color: #bd3541; }
.ptp-jalali-pop .ptp-jalali-error { color: #af2532; font-size: 12px; line-height: 1.9; margin: 10px 0 0; }
.ptp-jalali-pop [hidden] { display: none !important; }
.ptp-jalali-foot { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.ptp-jalali-foot button { min-height: 40px; }
.ptp-jalali-foot .ptp-jalali-apply { grid-column: 1 / -1; min-height: 44px; background: #214293; color: #fff; font-weight: 700; }
.ptp-jalali-foot .ptp-jalali-apply:hover { background: #193576; color: #fff; }
@keyframes ptp-calendar-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 380px) { .ptp-jalali-pop { padding: 12px; border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .ptp-jalali-pop { animation: none; } }
