/* PBDCO Jalali Datepicker Polishing */
#ui-datepicker-div {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid #e3e6ef;
  background: #fff;
  direction: rtl;
}
.ui-datepicker {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  direction: rtl;
  width: 320px;
  max-width: 360px;
  min-width: 280px;
}
.ui-datepicker .ui-datepicker-header {
  background: linear-gradient(90deg, #0d6efd, #4dabf7);
  color: #fff;
  border: none;
  padding: 8px 12px;
}
.ui-datepicker .ui-datepicker-title {
  font-weight: 600;
}
.ui-datepicker table {
  margin: 6px;
  width: calc(100% - 12px);
  table-layout: fixed;
}
.ui-datepicker td span, .ui-datepicker td a {
  display: block;
  text-align: center;
  height: 2.2em;
  line-height: 2.2em;
  border-radius: 6px;
}
.ui-datepicker .ui-state-default {
  background: #f8fafc;
  border: 1px solid #eef1f6;
}
.ui-datepicker .ui-state-active {
  background: #e7f1ff;
  border-color: #c7ddff;
  color: #0d6efd;
  font-weight: 600;
}
.ui-datepicker .ui-state-hover {
  background: #eef6ff;
  border-color: #d7eaff;
}
.ui-datepicker .ui-datepicker-buttonpane {
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
}
.ui-datepicker .ui-datepicker-buttonpane button {
  border-radius: 6px;
  padding: 6px 10px;
  border: 1px solid #e0e7ff;
  background: #f6f9ff;
  color: #1d4ed8;
}
/* Ensure day names align RTL and look clean */
.ui-datepicker thead th { color: #334155; font-weight: 600; }
/* Remove default jQuery UI outline for cleaner look */
.ui-datepicker .ui-state-focus { outline: none; }
