.jalali-picker-overlay[hidden] { display: none !important; }
.jalali-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(9, 24, 22, .58);
  backdrop-filter: blur(5px);
}
.jalali-picker-dialog {
  width: min(100%, 390px);
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  color: #12302d;
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
  font-family: Tahoma, Arial, sans-serif;
}
.jalali-picker-stage {
  margin: 0 0 8px;
  color: #60736f;
  text-align: center;
  font-size: 13px;
}
.jalali-picker-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.jalali-picker-title {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #12302d;
  text-align: center;
  font: 700 17px/1.4 Tahoma, Arial, sans-serif;
}
.jalali-picker-title:not(:disabled) { cursor: pointer; }
.jalali-picker-title:not(:disabled):hover,
.jalali-picker-title:not(:disabled):focus-visible { background: #edf8f6; outline: 2px solid #0f766e; }
.jalali-picker-title:disabled { opacity: 1; }
.jalali-picker-nav, .jalali-picker-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #e7f6f4;
  color: #0f766e;
  font-size: 22px;
  cursor: pointer;
}
.jalali-picker-nav:disabled { opacity: .35; cursor: not-allowed; }
[data-calendar][hidden],
.jalali-picker-options[hidden],
.jalali-picker-stage[hidden],
.jalali-picker-nav[hidden],
.jalali-picker-today[hidden] { display: none !important; }
.jalali-picker-week, .jalali-picker-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.jalali-picker-week span { padding: 5px 0; color: #60736f; text-align: center; font-size: 12px; }
.jalali-picker-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #12302d;
  cursor: pointer;
}
.jalali-picker-day:hover, .jalali-picker-day:focus-visible { background: #e7f6f4; outline: 2px solid #0f766e; }
.jalali-picker-day.is-today { border: 1px solid #0f766e; }
.jalali-picker-day.is-selected { background: #0f766e; color: #fff; font-weight: 700; }
.jalali-picker-day:disabled { color: #b7c3c1; cursor: not-allowed; }
.jalali-picker-day.is-closed { background: #f6f7f7; color: #a5afad; text-decoration: line-through; }
.jalali-picker-empty { aspect-ratio: 1; }
.jalali-picker-options {
  display: grid;
  gap: 8px;
  min-height: 216px;
  align-content: center;
}
.jalali-picker-options.is-year { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jalali-picker-options.is-month { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jalali-picker-option {
  min-width: 0;
  min-height: 48px;
  padding: 6px 4px;
  border: 1px solid #d8e5e2;
  border-radius: 8px;
  background: #fff;
  color: #12302d;
  font: 700 14px/1.4 Tahoma, Arial, sans-serif;
  cursor: pointer;
}
.jalali-picker-option:hover,
.jalali-picker-option:focus-visible { background: #e7f6f4; border-color: #0f766e; outline: 2px solid #0f766e; }
.jalali-picker-option.is-selected { background: #0f766e; border-color: #0f766e; color: #fff; }
.jalali-picker-option:disabled { background: #f6f7f7; color: #b7c3c1; cursor: not-allowed; }
.jalali-picker-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.jalali-picker-today {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  cursor: pointer;
}
.jalali-picker-today:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) {
  .jalali-picker-overlay { place-items: end center; padding: 0; }
  .jalali-picker-dialog { border-radius: 18px 18px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
